{"version":3,"sources":["../../../../client-data/packages/overreact-cc/src/environment/requestor.js","../../../../client-data/packages/overreact-cc/src/environment/schema.js","../../../../client-data/packages/overreact-cc/src/environment/environment-instance.js","../../../../client-data/packages/overreact-cc/src/environment/use-cc-environment.js","../../../../client-data/packages/overreact-cc/src/request-contract-helper/options.js","../../../../client-data/packages/overreact-cc/src/entity/user/spec/fetch.js","../../../../client-data/packages/overreact-cc/src/entity/user/spec/mutation.js","../../../../client-data/packages/overreact-cc/src/entity/user/hooks/use-user.js","../../../../client-data/packages/overreact-cc/src/entity/customer/spec/fetch.js","../../../../client-data/packages/overreact-cc/src/entity/customer/spec/mutation.js","../../../../client-data/packages/overreact-cc/src/entity/customer/hooks/use-customer.js","../../../../client-data/packages/overreact-cc/src/entity/account/spec/fetch.js","../../../../client-data/packages/overreact-cc/src/entity/account/spec/mutation.js","../../../../client-data/packages/overreact-cc/src/entity/account/hooks/use-account.js","../../../../client-data/packages/overreact-cc/src/entity/account/spec/coll-fetch.js","../../../../client-data/packages/overreact-cc/src/entity/account/hooks/use-accounts.js","../../../../client-data/packages/overreact-cc/src/entity/sub-geographies/spec/fetch.js","../../../../client-data/packages/overreact-cc/src/entity/sub-geographies/hooks/use-sub-geographies.js","../../../../client-data/packages/overreact-cc/src/entity/time-zones/spec/coll-fetch.js","../../../../client-data/packages/overreact-cc/src/entity/time-zones/hooks/use-time-zones.js","../../../../client-data/packages/overreact-cc/src/entity/countries/spec/coll-fetch.js","../../../../client-data/packages/overreact-cc/src/entity/countries/hooks/use-countries.js","../../../../client-data/packages/overreact-cc/src/entity/currencies/spec/coll-fetch.js","../../../../client-data/packages/overreact-cc/src/entity/currencies/hooks/use-currencies.js","../../../../client-data/packages/overreact-cc/src/entity/currency-countries-mappings/spec/coll-fetch.js","../../../../client-data/packages/overreact-cc/src/entity/currency-countries-mappings/hooks/use-currency-countries-mappings.js","../../../../client-data/packages/overreact-cc/src/entity/country-currencies-mappings/spec/coll-fetch.js","../../../../client-data/packages/overreact-cc/src/entity/country-currencies-mappings/hooks/use-country-currencies-mappings.js","../../../../client-data/packages/overreact-cc/src/entity/validate-address/spec/fetch.js","../../../../client-data/packages/overreact-cc/src/entity/validate-address/hooks/use-validate-address.js","../../../../client-data/packages/overreact-cc/src/entity/sign-up/spec/fetch.js","../../../../client-data/packages/overreact-cc/src/entity/sign-up/hooks/use-sign-up.js","../../../../client-data/packages/overreact-cc/src/entity/estimate-taxes/spec/fetch.js","../../../../client-data/packages/overreact-cc/src/entity/estimate-taxes/hooks/use-estimate-taxes.js","../../../../client-data/packages/overreact-cc/src/entity/top-up-limit/spec/fetch.js","../../../../client-data/packages/overreact-cc/src/entity/top-up-limit/hooks/use-top-up-limit.js","../../../../client-data/packages/overreact-cc/src/entity/offline-payment-instructions/spec/fetch.js","../../../../client-data/packages/overreact-cc/src/entity/offline-payment-instructions/hooks/use-offline-payment-instructions.js","../../../../client-data/packages/overreact-cc/src/entity/create-expert-from-smart/spec/fetch.js","../../../../client-data/packages/overreact-cc/src/entity/create-expert-from-smart/hooks/use-create-expert-from-smart.js","../../../../client-data/packages/overreact-cc/src/entity/payment-instrument/spec/fetch.js","../../../../client-data/packages/overreact-cc/src/entity/payment-instrument/hooks/use-payment-instrument.js","../../../../client-data/packages/overreact-cc/src/entity/get-coupon-details/spec/fetch.js","../../../../client-data/packages/overreact-cc/src/entity/get-coupon-details/hooks/use-get-coupon-details.js","../../../../client-data/packages/overreact-cc/src/entity/get-coupon-string-for-signup/spec/fetch.js","../../../../client-data/packages/overreact-cc/src/entity/get-coupon-string-for-signup/hooks/use-get-coupon-string-for-signup.js","../../../../client-data/packages/overreact-cc/src/entity/get-coupon-valid-for-customer-website/spec/fetch.js","../../../../client-data/packages/overreact-cc/src/entity/get-coupon-valid-for-customer-website/hooks/use-get-coupon-valid-for-customer-website.js","../../../../client-data/packages/overreact-cc/src/entity/save-coupon-string-for-signup/spec/fetch.js","../../../../client-data/packages/overreact-cc/src/entity/save-coupon-string-for-signup/hooks/use-save-coupon-string-for-signup.js","../../../../client-data/packages/overreact-cc/src/entity/country-timezones-mapping/spec/coll-fetch.js","../../../../client-data/packages/overreact-cc/src/entity/country-timezones-mapping/hooks/use-country-timezones-mapping.js","../../../../client-data/packages/overreact-ad-insight/src/environment/schema.js","../../../../client-data/packages/overreact-ad-insight/src/environment/requestor.js","../../../../client-data/packages/overreact-ad-insight/src/environment/environment-instance.js","../../../../client-data/packages/overreact-ad-insight/src/entity/audience-kpi-estimation-v2/spec/fetch.js","../../../../client-data/packages/overreact-ad-insight/src/entity/audience-kpi-estimation-v2/hooks/use-audience-kpi-estimation-v2.js","../../../../client-data/packages/overreact-ad-insight/src/entity/campaign-ids-with-esc-budget-landscape/spec/fetch.js","../../../../client-data/packages/overreact-ad-insight/src/entity/campaign-ids-with-esc-budget-landscape/hooks/use-campaign-ids-with-esc-budget-landscape.js","../../../../client-data/packages/overreact-ad-insight/src/entity/esc-budget-landscape/spec/fetch.js","../../../../client-data/packages/overreact-ad-insight/src/entity/esc-budget-landscape/hooks/use-esc-budget-landscape.js","../../../../client-data/packages/overreact-bingads/src/request-contract-helper/header.js","../../../../client-data/packages/overreact-bingads/src/environment/edm.js","../../../../client-data/packages/overreact-bingads/src/request-contract-helper/bulk.js","../../../../client-data/packages/overreact-bingads/src/request-contract-helper/use-variables.js","../../../../client-data/packages/overreact-odata-campaign/env/edm.js","../../../../client-data/packages/overreact-odata-campaign/env/schema.js","../../../../client-data/packages/overreact-odata-campaign/env/requestor.js","../../../../client-data/packages/overreact-odata-campaign/env/env-instance.js","../../../../client-data/packages/overreact-odata-campaign/specs/customer/account/__specs/entity/destroy-decorators.js","../../../../client-data/packages/overreact-odata-campaign/specs/customer/account/__specs/entity/destroy-spec.js","../../../../client-data/packages/overreact-odata-campaign/specs/customer/account/__specs/entity/fetch-decorators.js","../../../../client-data/packages/overreact-odata-campaign/specs/customer/account/__specs/entity/fetch-spec.js","../../../../client-data/packages/overreact-odata-campaign/specs/customer/account/__specs/entity/mutation-decorators.js","../../../../client-data/packages/overreact-odata-campaign/specs/customer/account/__specs/entity/mutation-spec.js","../../../../client-data/packages/overreact-odata-campaign/specs/customer/account/__hooks/entity/entity-hook.js","../../../../client-data/packages/overreact-odata-campaign/specs/customer/account/__hooks/entity/hook-decorators.js","../../../../client-data/packages/overreact-odata-campaign/specs/customer/account/__specs/coll/add-decorators.js","../../../../client-data/packages/overreact-odata-campaign/specs/customer/account/__specs/coll/add-spec.js","../../../../client-data/packages/overreact-odata-campaign/specs/customer/account/__specs/coll/destroy-decorators.js","../../../../client-data/packages/overreact-odata-campaign/specs/customer/account/__specs/coll/destroy-spec.js","../../../../client-data/packages/overreact-odata-campaign/specs/customer/account/__specs/coll/fetch-decorators.js","../../../../client-data/packages/overreact-odata-campaign/specs/customer/account/__specs/coll/fetch-spec.js","../../../../client-data/packages/overreact-odata-campaign/specs/customer/account/__specs/coll/mutation-decorators.js","../../../../client-data/packages/overreact-odata-campaign/specs/customer/account/__specs/coll/mutation-spec.js","../../../../client-data/packages/overreact-odata-campaign/specs/customer/account/business_category_recommendations/__specs/calls/action-decorators.js","../../../../client-data/packages/overreact-odata-campaign/specs/customer/account/business_category_recommendations/__specs/calls/action-spec.js","../../../../client-data/packages/overreact-odata-campaign/specs/customer/account/get_extracted_business_info/__specs/calls/action-decorators.js","../../../../client-data/packages/overreact-odata-campaign/specs/customer/account/get_extracted_business_info/__specs/calls/action-spec.js","../../../../client-data/packages/overreact-odata-campaign/specs/customer/account/post_a_b_testing_flight_log/__specs/calls/action-decorators.js","../../../../client-data/packages/overreact-odata-campaign/specs/customer/account/post_a_b_testing_flight_log/__specs/calls/action-spec.js","../../../../client-data/packages/overreact-odata-campaign/specs/customer/account/post_a_b_testing_flight_log/__hooks/calls/action-hook.js","../../../../client-data/packages/overreact-odata-campaign/specs/customer/account/post_a_b_testing_flight_log/__hooks/calls/hook-decorators.js","../../../../client-data/packages/overreact-odata-campaign/specs/customer/account/post_a_b_testing_event_log/__specs/calls/action-decorators.js","../../../../client-data/packages/overreact-odata-campaign/specs/customer/account/post_a_b_testing_event_log/__specs/calls/action-spec.js","../../../../client-data/packages/overreact-odata-campaign/specs/customer/account/post_a_b_testing_event_log/__hooks/calls/action-hook.js","../../../../client-data/packages/overreact-odata-campaign/specs/customer/account/post_a_b_testing_event_log/__hooks/calls/hook-decorators.js","../../../../client-data/packages/overreact-odata-campaign/specs/customer/account/campaign/prepare_ad_recommendation/__specs/calls/action-decorators.js","../../../../client-data/packages/overreact-odata-campaign/specs/customer/account/campaign/prepare_ad_recommendation/__specs/calls/action-spec.js","../../../../client-data/packages/overreact-odata-campaign/specs/customer/account/campaign/prepare_ad_recommendation/__hooks/calls/action-hook.js","../../../../client-data/packages/overreact-odata-campaign/specs/customer/account/campaign/prepare_ad_recommendation/__hooks/calls/hook-decorators.js","../../../../client-data/packages/overreact-odata-campaign/specs/customer/account/tag/__specs/coll/add-decorators.js","../../../../client-data/packages/overreact-odata-campaign/specs/customer/account/tag/__specs/coll/add-spec.js","../../../../client-data/packages/overreact-odata-campaign/specs/customer/account/tag/__specs/coll/destroy-decorators.js","../../../../client-data/packages/overreact-odata-campaign/specs/customer/account/tag/__specs/coll/destroy-spec.js","../../../../client-data/packages/overreact-odata-campaign/specs/customer/account/tag/__specs/coll/fetch-decorators.js","../../../../client-data/packages/overreact-odata-campaign/specs/customer/account/tag/__specs/coll/fetch-spec.js","../../../../client-data/packages/overreact-odata-campaign/specs/customer/account/tag/__specs/coll/mutation-decorators.js","../../../../client-data/packages/overreact-odata-campaign/specs/customer/account/tag/__specs/coll/mutation-spec.js","../../../../client-data/packages/odata-bulk-upsert-config/src/model/Account.js","../../../../client-data/packages/odata-bulk-upsert-config/src/model/AccountNegativeKeyword.js","../../../../client-data/packages/odata-bulk-upsert-config/src/model/AccountNegativeKeywordList.js","../../../../client-data/packages/odata-bulk-upsert-config/src/model/AccountNegativeKeywordListAssociation.js","../../../../client-data/packages/odata-bulk-upsert-config/src/model/Ad.js","../../../../client-data/packages/odata-bulk-upsert-config/src/model/AdExtensionAssociation.js","../../../../client-data/packages/odata-bulk-upsert-config/src/model/AdGroup.js","../../../../client-data/packages/odata-bulk-upsert-config/src/model/AdGroupAdCustomizerAttribute.js","../../../../client-data/packages/odata-bulk-upsert-config/src/model/AdGroupAudienceCriterion.js","../../../../client-data/packages/odata-bulk-upsert-config/src/model/AdGroupCriterion.js","../../../../client-data/packages/odata-bulk-upsert-config/src/model/AdGroupNegativeKeyword.js","../../../../client-data/packages/odata-bulk-upsert-config/src/model/AppAdExtension.js","../../../../client-data/packages/odata-bulk-upsert-config/src/model/AppInstallAd.js","../../../../client-data/packages/odata-bulk-upsert-config/src/model/AssetGroup.js","../../../../client-data/packages/odata-bulk-upsert-config/src/model/AssetGroupSearchTheme.js","../../../../client-data/packages/odata-bulk-upsert-config/src/model/AssetGroupUrlTarget.js","../../../../client-data/packages/odata-bulk-upsert-config/src/model/AudienceGroup.js","../../../../client-data/packages/odata-bulk-upsert-config/src/model/AudienceGroupAssetGroupAssociation.js","../../../../client-data/packages/odata-bulk-upsert-config/src/model/BidAmountDetail.js","../../../../client-data/packages/odata-bulk-upsert-config/src/model/BiddingScheme.js","../../../../client-data/packages/odata-bulk-upsert-config/src/model/BrandItem.js","../../../../client-data/packages/odata-bulk-upsert-config/src/model/BrandList.js","../../../../client-data/packages/odata-bulk-upsert-config/src/model/Budget.js","../../../../client-data/packages/odata-bulk-upsert-config/src/model/CallAdExtension.js","../../../../client-data/packages/odata-bulk-upsert-config/src/model/CalloutAdExtension.js","../../../../client-data/packages/odata-bulk-upsert-config/src/model/Campaign.js","../../../../client-data/packages/odata-bulk-upsert-config/src/model/CampaignAdCustomizerAttribute.js","../../../../client-data/packages/odata-bulk-upsert-config/src/model/CampaignAudienceCriterion.js","../../../../client-data/packages/odata-bulk-upsert-config/src/model/CampaignCriterion.js","../../../../client-data/packages/odata-bulk-upsert-config/src/model/CampaignNegativeKeyword.js","../../../../client-data/packages/odata-bulk-upsert-config/src/model/CampaignNegativeWebpage.js","../../../../client-data/packages/odata-bulk-upsert-config/src/model/CampaignProductScope.js","../../../../client-data/packages/odata-bulk-upsert-config/src/model/CampaignObjectiveSetting.js","../../../../client-data/packages/odata-bulk-upsert-config/src/model/CoOpSetting.js","../../../../client-data/packages/odata-bulk-upsert-config/src/model/Criterion.js","../../../../client-data/packages/odata-bulk-upsert-config/src/model/DisclaimerAdExtension.js","../../../../client-data/packages/odata-bulk-upsert-config/src/model/DsaTarget.js","../../../../client-data/packages/odata-bulk-upsert-config/src/model/DynamicDataAdExtension.js","../../../../client-data/packages/odata-bulk-upsert-config/src/model/DynamicSearchAd.js","../../../../client-data/packages/odata-bulk-upsert-config/src/model/ExpandedTextAd.js","../../../../client-data/packages/odata-bulk-upsert-config/src/model/Experiment.js","../../../../client-data/packages/odata-bulk-upsert-config/src/model/HotelAd.js","../../../../client-data/packages/odata-bulk-upsert-config/src/model/Keyword.js","../../../../client-data/packages/odata-bulk-upsert-config/src/model/KeywordAdCustomizerAttribute.js","../../../../client-data/packages/odata-bulk-upsert-config/src/model/NegativeAdGroupDsaTarget.js","../../../../client-data/packages/odata-bulk-upsert-config/src/model/NegativeCampaignDsaTarget.js","../../../../client-data/packages/odata-bulk-upsert-config/src/model/NegativeKeyword.js","../../../../client-data/packages/odata-bulk-upsert-config/src/model/NegativeKeywordList.js","../../../../client-data/packages/odata-bulk-upsert-config/src/model/NewCustomerAcquisitionGoal.js","../../../../client-data/packages/odata-bulk-upsert-config/src/model/LocationAdExtension.js","../../../../client-data/packages/odata-bulk-upsert-config/src/model/PortfolioBidStrategy.js","../../../../client-data/packages/odata-bulk-upsert-config/src/model/ProductAd.js","../../../../client-data/packages/odata-bulk-upsert-config/src/model/ProductGroup.js","../../../../client-data/packages/odata-bulk-upsert-config/src/model/ProductListingGroup.js","../../../../client-data/packages/odata-bulk-upsert-config/src/model/ProductCondition.js","../../../../client-data/packages/odata-bulk-upsert-config/src/model/ProductPartition.js","../../../../client-data/packages/odata-bulk-upsert-config/src/model/ResponsiveAd.js","../../../../client-data/packages/odata-bulk-upsert-config/src/model/ResponsiveSearchAd.js","../../../../client-data/packages/odata-bulk-upsert-config/src/model/ReviewAdExtension.js","../../../../client-data/packages/odata-bulk-upsert-config/src/model/SharedEntityAssociation.js","../../../../client-data/packages/odata-bulk-upsert-config/src/model/ShoppingCampaign.js","../../../../client-data/packages/odata-bulk-upsert-config/src/model/SiteLink.js","../../../../client-data/packages/odata-bulk-upsert-config/src/model/TextAd.js","../../../../client-data/packages/odata-bulk-upsert-config/src/model/CampaignConversionGoal.js","../../../../client-data/packages/odata-bulk-upsert-config/src/model/BrandListAssociation.js","../../../../client-data/packages/overreact-odata-multi-channel/env/edm.js","../../../../client-data/packages/overreact-odata-multi-channel/env/schema.js","../../../../client-data/packages/overreact-odata-multi-channel/env/requestor.js","../../../../client-data/packages/overreact-odata-multi-channel/env/env-instance.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/get_link_preview/__specs/calls/action-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/get_link_preview/__specs/calls/action-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/load_calendar/__specs/calls/action-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/load_calendar/__specs/calls/action-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/generate_o_auth_tokens/__specs/calls/action-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/generate_o_auth_tokens/__specs/calls/action-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/load_social_metrics/__specs/calls/action-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/load_social_metrics/__specs/calls/action-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/get_u_p_budget_suggestions/__specs/calls/action-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/get_u_p_budget_suggestions/__specs/calls/action-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/get_u_p_budget_suggestions/__hooks/calls/action-hook.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/get_u_p_budget_suggestions/__hooks/calls/hook-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/get_subscription_ads_budget_suggestions/__specs/calls/action-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/get_subscription_ads_budget_suggestions/__specs/calls/action-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/get_subscription_ads_budget_suggestions/__hooks/calls/action-hook.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/get_subscription_ads_budget_suggestions/__hooks/calls/hook-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/get_suggested_ads/__specs/calls/action-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/get_suggested_ads/__specs/calls/action-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/get_category_suggestions/__specs/calls/action-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/get_category_suggestions/__specs/calls/action-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/get_category_suggestions/__hooks/calls/action-hook.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/get_category_suggestions/__hooks/calls/hook-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/get_activities_count/__specs/calls/action-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/get_activities_count/__specs/calls/action-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/get_mca_product_service_recommendations/__specs/calls/action-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/get_mca_product_service_recommendations/__specs/calls/action-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/get_mca_product_service_recommendations/__hooks/calls/action-hook.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/get_mca_product_service_recommendations/__hooks/calls/hook-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/get_target_suggestions/__specs/calls/action-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/get_target_suggestions/__specs/calls/action-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/validate_url/__specs/calls/action-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/validate_url/__specs/calls/action-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/get_audience_reach_estimations/__specs/calls/action-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/get_audience_reach_estimations/__specs/calls/action-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/get_audience_reach_estimations/__hooks/calls/action-hook.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/get_audience_reach_estimations/__hooks/calls/hook-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/get_mca_blob_upload_url/__specs/calls/action-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/get_mca_blob_upload_url/__specs/calls/action-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/get_mca_blob_upload_url/__hooks/calls/action-hook.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/get_mca_blob_upload_url/__hooks/calls/hook-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/submit_change_history_report_task/__specs/calls/action-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/submit_change_history_report_task/__specs/calls/action-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/poll_change_history_report/__specs/calls/action-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/poll_change_history_report/__specs/calls/action-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/mca_ads_performance_metrics/__specs/calls/action-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/mca_ads_performance_metrics/__specs/calls/action-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/mca_alert_informations/__specs/calls/action-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/mca_alert_informations/__specs/calls/action-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/mca_conversion_metrics/__specs/calls/action-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/mca_conversion_metrics/__specs/calls/action-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/get_ad_auto_complete/__specs/calls/action-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/get_ad_auto_complete/__specs/calls/action-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/get_fb_ad_account/__specs/calls/func-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/get_fb_ad_account/__specs/calls/func-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/get_mca_search_term_metrics/__specs/calls/func-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/get_mca_search_term_metrics/__specs/calls/func-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/campaign/__specs/entity/destroy-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/campaign/__specs/entity/destroy-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/campaign/__specs/entity/side-effect.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/campaign/__specs/entity/fetch-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/campaign/__specs/entity/fetch-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/campaign/__specs/entity/mutation-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/campaign/__specs/entity/mutation-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/campaign/__hooks/entity/entity-hook.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/campaign/__hooks/entity/hook-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/campaign/__specs/coll/add-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/campaign/__specs/coll/add-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/campaign/__specs/coll/destroy-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/campaign/__specs/coll/destroy-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/campaign/__specs/coll/fetch-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/campaign/__specs/coll/fetch-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/campaign/__specs/coll/mutation-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/campaign/__specs/coll/mutation-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/campaign/get_u_p_budget_suggestions/__specs/calls/action-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/campaign/get_u_p_budget_suggestions/__specs/calls/action-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/campaign/get_suggested_ads/__specs/calls/action-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/campaign/get_suggested_ads/__specs/calls/action-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/campaign/disassociate_profile/__specs/calls/action-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/campaign/disassociate_profile/__specs/calls/action-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/campaign/associate_profile/__specs/calls/action-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/campaign/associate_profile/__specs/calls/action-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/campaign/dismiss_ad_suggestions/__specs/calls/action-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/campaign/dismiss_ad_suggestions/__specs/calls/action-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/campaign/get_image_suggestions/__specs/calls/action-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/campaign/get_image_suggestions/__specs/calls/action-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/campaign/apply_target_actions/__specs/calls/action-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/campaign/apply_target_actions/__specs/calls/action-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/campaign/set_keywords/__specs/calls/action-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/campaign/set_keywords/__specs/calls/action-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/campaign/update_url/__specs/calls/action-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/campaign/update_url/__specs/calls/action-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/campaign/mca_ads_performance_metrics/__specs/calls/action-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/campaign/mca_ads_performance_metrics/__specs/calls/action-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/campaign/mca_conversion_metrics/__specs/calls/action-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/campaign/mca_conversion_metrics/__specs/calls/action-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/campaign/delete_mca_channel_ads/__specs/calls/action-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/campaign/delete_mca_channel_ads/__specs/calls/action-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/campaign/get_top_ads/__specs/calls/func-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/campaign/get_top_ads/__specs/calls/func-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/campaign/get_mca_search_term_metrics/__specs/calls/func-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/campaign/get_mca_search_term_metrics/__specs/calls/func-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/disapproved_campaign/__specs/entity/destroy-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/disapproved_campaign/__specs/entity/destroy-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/disapproved_campaign/__specs/entity/fetch-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/disapproved_campaign/__specs/entity/fetch-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/disapproved_campaign/__specs/entity/mutation-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/disapproved_campaign/__specs/entity/mutation-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/disapproved_campaign/__specs/coll/add-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/disapproved_campaign/__specs/coll/add-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/disapproved_campaign/__specs/coll/destroy-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/disapproved_campaign/__specs/coll/destroy-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/disapproved_campaign/__specs/coll/fetch-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/disapproved_campaign/__specs/coll/fetch-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/disapproved_campaign/__specs/coll/mutation-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/disapproved_campaign/__specs/coll/mutation-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/social_profile/__specs/entity/destroy-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/social_profile/__specs/entity/destroy-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/social_profile/__specs/entity/fetch-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/social_profile/__specs/entity/fetch-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/social_profile/__specs/entity/mutation-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/social_profile/__specs/entity/mutation-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/social_profile/__specs/coll/add-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/social_profile/__specs/coll/add-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/social_profile/__specs/coll/destroy-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/social_profile/__specs/coll/destroy-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/social_profile/__specs/coll/fetch-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/social_profile/__specs/coll/fetch-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/social_profile/__specs/coll/mutation-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/social_profile/__specs/coll/mutation-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/social_profile/__hooks/coll/coll-hook.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/social_profile/__hooks/coll/hook-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/social_profile/load_thread/__specs/calls/action-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/social_profile/load_thread/__specs/calls/action-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/social_profile/load_conversation/__specs/calls/func-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/social_profile/load_conversation/__specs/calls/func-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/channel_profile/__specs/entity/destroy-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/channel_profile/__specs/entity/destroy-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/channel_profile/__specs/entity/fetch-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/channel_profile/__specs/entity/fetch-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/channel_profile/__specs/entity/mutation-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/channel_profile/__specs/entity/mutation-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/channel_profile/__specs/coll/add-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/channel_profile/__specs/coll/add-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/channel_profile/__specs/coll/destroy-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/channel_profile/__specs/coll/destroy-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/channel_profile/__specs/coll/fetch-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/channel_profile/__specs/coll/fetch-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/channel_profile/__specs/coll/mutation-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/channel_profile/__specs/coll/mutation-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/channel_profile/verify_fb_ad_account_status/__specs/calls/func-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/channel_profile/verify_fb_ad_account_status/__specs/calls/func-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/channel_profile/send_fb_ad_account_invitation/__specs/calls/func-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/channel_profile/send_fb_ad_account_invitation/__specs/calls/func-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/post/__specs/entity/destroy-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/post/__specs/entity/destroy-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/post/__specs/entity/fetch-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/post/__specs/entity/fetch-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/post/__specs/entity/mutation-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/post/__specs/entity/mutation-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/post/__specs/coll/add-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/post/__specs/coll/add-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/post/__specs/coll/destroy-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/post/__specs/coll/destroy-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/post/__specs/coll/fetch-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/post/__specs/coll/fetch-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/post/__specs/coll/mutation-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/post/__specs/coll/mutation-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/post/__hooks/coll/coll-hook.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/post/__hooks/coll/hook-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/activity/__specs/entity/destroy-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/activity/__specs/entity/destroy-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/activity/__specs/entity/fetch-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/activity/__specs/entity/fetch-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/activity/__specs/entity/mutation-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/activity/__specs/entity/mutation-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/activity/__specs/coll/add-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/activity/__specs/coll/add-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/activity/__specs/coll/destroy-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/activity/__specs/coll/destroy-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/activity/__specs/coll/fetch-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/activity/__specs/coll/fetch-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/activity/__specs/coll/mutation-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/activity/__specs/coll/mutation-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/tag/__specs/entity/destroy-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/tag/__specs/entity/destroy-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/tag/__specs/entity/fetch-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/tag/__specs/entity/fetch-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/tag/__specs/entity/mutation-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/tag/__specs/entity/mutation-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/tag/__specs/coll/add-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/tag/__specs/coll/add-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/tag/__specs/coll/destroy-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/tag/__specs/coll/destroy-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/tag/__specs/coll/fetch-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/tag/__specs/coll/fetch-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/tag/__specs/coll/mutation-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/tag/__specs/coll/mutation-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/goal/__specs/entity/destroy-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/goal/__specs/entity/destroy-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/goal/__specs/entity/fetch-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/goal/__specs/entity/fetch-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/goal/__specs/entity/mutation-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/goal/__specs/entity/mutation-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/goal/__specs/coll/add-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/goal/__specs/coll/add-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/goal/__specs/coll/destroy-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/goal/__specs/coll/destroy-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/goal/__specs/coll/fetch-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/goal/__specs/coll/fetch-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/goal/__specs/coll/mutation-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/goal/__specs/coll/mutation-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/mca_location/__specs/entity/destroy-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/mca_location/__specs/entity/destroy-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/mca_location/__specs/entity/fetch-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/mca_location/__specs/entity/fetch-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/mca_location/__specs/entity/mutation-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/mca_location/__specs/entity/mutation-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/mca_location/__specs/coll/add-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/mca_location/__specs/coll/add-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/mca_location/__specs/coll/destroy-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/mca_location/__specs/coll/destroy-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/mca_location/__specs/coll/fetch-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/mca_location/__specs/coll/fetch-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/mca_location/__specs/coll/mutation-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/mca_location/__specs/coll/mutation-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/subscription_plan/__specs/entity/destroy-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/subscription_plan/__specs/entity/destroy-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/subscription_plan/__specs/entity/fetch-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/subscription_plan/__specs/entity/fetch-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/subscription_plan/__specs/entity/mutation-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/subscription_plan/__specs/entity/mutation-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/subscription_plan/__specs/coll/add-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/subscription_plan/__specs/coll/add-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/subscription_plan/__specs/coll/destroy-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/subscription_plan/__specs/coll/destroy-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/subscription_plan/__specs/coll/fetch-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/subscription_plan/__specs/coll/fetch-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/subscription_plan/__specs/coll/mutation-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/subscription_plan/__specs/coll/mutation-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/campaign/target/__specs/entity/destroy-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/campaign/target/__specs/entity/destroy-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/campaign/target/__specs/entity/fetch-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/campaign/target/__specs/entity/fetch-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/campaign/target/__specs/entity/mutation-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/campaign/target/__specs/entity/mutation-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/campaign/target/__specs/coll/add-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/campaign/target/__specs/coll/add-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/campaign/target/__specs/coll/fetch-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/campaign/target/__specs/coll/fetch-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/campaign/target/__hooks/coll/coll-hook.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/campaign/target/__hooks/coll/hook-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/campaign/ad/__specs/entity/destroy-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/campaign/ad/__specs/entity/destroy-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/campaign/ad/__specs/entity/fetch-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/campaign/ad/__specs/entity/fetch-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/campaign/ad/__specs/entity/mutation-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/campaign/ad/__specs/entity/mutation-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/campaign/ad/__specs/coll/add-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/campaign/ad/__specs/coll/add-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/campaign/ad/__specs/coll/destroy-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/campaign/ad/__specs/coll/destroy-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/campaign/ad/__specs/coll/fetch-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/campaign/ad/__specs/coll/fetch-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/campaign/ad/__specs/coll/mutation-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/campaign/ad/__specs/coll/mutation-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/campaign/keyword/__specs/entity/destroy-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/campaign/keyword/__specs/entity/destroy-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/campaign/keyword/__specs/entity/fetch-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/campaign/keyword/__specs/entity/fetch-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/campaign/keyword/__specs/entity/mutation-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/campaign/keyword/__specs/entity/mutation-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/campaign/keyword/__specs/coll/add-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/campaign/keyword/__specs/coll/add-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/campaign/keyword/__specs/coll/destroy-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/campaign/keyword/__specs/coll/destroy-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/campaign/keyword/__specs/coll/fetch-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/campaign/keyword/__specs/coll/fetch-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/campaign/keyword/__specs/coll/mutation-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/campaign/keyword/__specs/coll/mutation-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/social_profile/activity/__specs/entity/destroy-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/social_profile/activity/__specs/entity/destroy-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/social_profile/activity/__specs/entity/fetch-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/social_profile/activity/__specs/entity/fetch-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/social_profile/activity/__specs/entity/mutation-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/social_profile/activity/__specs/entity/mutation-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/social_profile/activity/__specs/coll/add-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/social_profile/activity/__specs/coll/add-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/social_profile/activity/__specs/coll/destroy-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/social_profile/activity/__specs/coll/destroy-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/social_profile/activity/__specs/coll/fetch-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/social_profile/activity/__specs/coll/fetch-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/social_profile/activity/__specs/coll/mutation-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/social_profile/activity/__specs/coll/mutation-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/social_profile/activity/reply_as_comment/__specs/calls/action-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/social_profile/activity/reply_as_comment/__specs/calls/action-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/social_profile/activity/reply_as_message/__specs/calls/action-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/social_profile/activity/reply_as_message/__specs/calls/action-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/goal/set_clarity_event_info/__specs/calls/action-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/goal/set_clarity_event_info/__specs/calls/action-spec.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/goal/get_clarity_event_info/__specs/calls/func-decorators.js","../../../../client-data/packages/overreact-odata-multi-channel/specs/customer/account/goal/get_clarity_event_info/__specs/calls/func-spec.js"],"names":["localeParam","localeUs","isCCError","response","ResultType","getRequestor","_ref","serviceRoot","locale","uri","requestVerb","options","body","restfulService","RestfulServiceBase","cleanedRootUrl","URI","path","toString","currentLocale","uriWithLocale","addQuery","url","concat","http","ajax","_objectSpread","method","data","JSON","stringify","then","Promise","reject","schema","Schema","user","customer","account","sub_geography","time_zones","countries","currencies","currency_countries_mappings","country_currencies_mappings","validate_address","sign_up","estimate_taxes","top_up_limit","offline_payment_instructions","create_expert_from_smart","payment_instrument","get_coupon_details","get_coupon_string_for_signup","get_coupon_valid_for_customer_website","save_coupon_string_for_signup","country_timezones_mapping","middlewares","_defineProperty","middlewareTypes","FETCH_POLICY","createFetchPolicyMiddleware","ERROR","createErrorMiddleware","store","Store","env","CC_ENVIRONMENT_TAG","environmentLookupFn","environmentTag","useCCEnvironment","useMemo","requestor","customStore","customMiddlewares","overreactRequestor","Environment","networkRequestor","getDefaultOptions","contentType","dataType","cacheResponse","x-ms-requestid","uuidv4","xhrFields","withCredentials","fetchRequestContract","createRequestContract","dataPath","verb","requestVerbs","GET","uriFactoryFn","params","descriptor","variables","locator","uid","search","cid","id","searchString","_","isEmpty","queryString","headerFactoryFn","keySelector","parentKeySelector","fetchResponseContract","createResponseContract","requestContract","responseType","responseTypes","ENTITY","processorFn","mutationRequestContract","PATCH","fetchPolicy","FetchPolicy","NetworkOnly","payloadFactoryFn","User","mutationResponseContract","fetchSpec","createSpec","specTypes","FETCH","refetchSpec","REFETCH","mutationSpec","MUTATION","DEFAULT_CONFIG_VALLUE","useUser","dataLocator","config","arguments","length","undefined","dataRefId","useDataRefId","defaultConfig","fetch","refetch","mutation","fetchConfig","useFetch","refetchFn","useRefetch","read","useCallback","param","requestConfig","updateFn","useMutation","update","_len","rest","Array","_key","apply","_fetch","_slicedToArray","error","StoreOrNetwork","Customer","useCustomer","aid","Account","useAccount","updateWithVariables","_len2","_key2","top","skip","predicates","name","customerId","isNumber","COLL","value","countryCode","subGeography","Key","timeZones","useCurrencies","_useFetch","_useFetch2","currencyCountriesMappings","currency","countryCurrenciesMapping","country","POST","address","accountId","BusinessAddress","entity","OriginalAddress","BusinessName","isMca","isUp","noupsw","isExpertStandalone","isSubscriptionAds","isStreamlined","isPMaxLite","isChinaSignup","isFullyManagedFacebookAdAccountEnabled","isBingAdsOptional","authType","isSwitchedFromSmart","prefix","suffix","upse","mfba","push","idp","suffixString","join","searchAndSuffixString","headers","X-Requested-With","totalAmount","isTaxIncluded","estimateTaxes","topUpLimit","currencyCode","OfflinePaymentInstructions","Id","paymentInstrument","ccl","cco","coupon","DEFAULT_CONFIG","useGetCouponDetails","websiteUrl","result","websiteURL","couponString","campaign","audience_kpi_estimation_v2","campaign_ids_with_esc_budget_landscape","use_esc_budget_landscape","additionalHeader","requestHeader","isString","getReader","TextDecoder","decode","status","json","catch","responseJSONParseError","responseJSON","ok","AD_INSIGHT_ENVIRONMENT_TAG","getEnvironmentInstance","customMiddleWares","customer_id","account_id","initialSearch","omit","Number","getDefaultHeaderObj","r","useAudienceKPIEstimationV2","refetchConfig","parameter","payload","campaign_id","cache-control","content-type","x-ms-lastwritetime","x-ms-applicationname","edm","EDM","schemas","$ROOT","$$ref","type","properties","Customers","items","$$ODataExtension","Name","NavigationProperty","mapObject","extend","resIdsPlugin","odataPlugin","odataBulkUpsertPlugin","window","campaignODataConfigs","bulkUpsertSchema","rootResourceIdentifier","types","resolve","ResourceIdentifier","defineConstProperty","Error","usePostponeReadVariables","lookupCacheByVariables","postponeRead","app","ad_group","keyword","ad","negative_keyword_list","negative_keyword","bulk_edit_session","bulk_edit_result","audience","remessaging_audience","tag","task_item","goal","conversion_advice","task_item_execution","ad_group_criterion","audience_ad_group_criterion","ad_group_audience_association","audience_association","audience_criterion_with_b_i","ad_group_audience_criterion_with_b_i","ad_group_audience_criterion","campaign_criterion","campaign_audience_criterion","product_offer","product_partition","preference","product_offer_store","image","ad_extension","image_ad_extension","location_ad_extension","ad_extension_association","annotation_opt_out_info","automated_extension","label","budget","portfolio_bid_strategy","location","biddable_ad_group_criterion","dsa_target","domain_category","negative_ad_group_criterion","negative_ad_group_dsa_target","negative_campaign_criterion","negative_campaign_dsa_target","dsa_search_term","category","negative_keyword_conflict","search_term","demographic","feed","ad_customizer_attribute","ad_customizer_attribute_value","feed_item","feed_upload_history","feed_association","recommendation","performance_target","performance_target_instance","experiment","performance_time_series","language_detect","responsive_search_ad_instance","smart_listing","business","search_phrase","product_group","product_attribute_statistic","stock_image","placement_exclusion_list","negative_site","asset_link","asset_with_b_i_data","shared_entity_association","promotion_ad_extension","note","note_segment","video","video_resource","video_caption_file","filter_link_ad_extension","smart_page","flyer_ad_extension","reparenting_user_setting","video_ad_extension","account_label_association_count","location_targeting_info","responsive_search_ad","import_recommendation","seasonality_adjustment","r_s_a_ad_customizer_attribute","dimension_row","multi_account_overview","report_data_report_info","upload_url","app_install_ad","dynamic_search_ad","expanded_text_ad","mobile_ad","product_ad","responsive_ad","text_ad","ad_group_criterion_grid_data","order_item_bid_info","biddable_campaign_criterion","campaign_criterion_grid_data","vertical_sub_account","vertical_hotel_group","action_ad_extension","app_ad_extension","call_ad_extension","callout_ad_extension","disclaimer_ad_extension","dynamic_data_ad_extension","price_ad_extension","review_ad_extension","sitelink2_ad_extension","structured_snippet_ad_extension","application_install_goal","destination_goal","duration_goal","event_goal","in_store_transaction_goal","in_store_visit_goal","multi_stage_goal","offline_conversion_goal","page_views_per_visit_goal","product_conversion_goal","smart_goal","combined_list_audience","custom_audience","customer_list_audience","in_market_audience","product_audience","remarketing_similar_audience","customer_shared_entity_association","bulk_download_task_item_execution","bulk_upsert_task_item_execution","offline_conversion_upload_task_item_execution","pps_reconciliation_report_manager_task_item_execution","pps_reconciliation_report_upload_task_item_execution","feed_upload_result","feed_import_result","cloud_import_result","cloud_import_v2_result","google_tag_manager_import_result","import_result","multi_account_google_import_result","smart_import_scheduler_result","multi_account_download_result","bulk_upload_task_item_execution","report_data_task_item_execution","script_task_item_execution","script_item_change","script_changes_summary","bing_places_task_item","bulk_download_task_item","bulk_upsert_task_item","email_rule","offline_conversion_upload_task_item","pps_reconciliation_report_manager_task_item","pps_reconciliation_report_upload_task_item","facebook_task_item","feed_upload_task_item_base","create_feed_upload_task_item","import_feed_and_feed_mapping_upload_task_item","import_feed_item_upload_task_item","replace_feed_upload_task_item","r_s_a_ad_customizer_feed_upload_task_item","update_feed_upload_task_item","google_my_business_task_item","amazon_import_task_item","cloud_import_task_item","google_tag_manager_import_task_item","import_task_item","multi_account_google_import_task_item","smart_import_scheduler_task_item","multi_account_download_task_item","multi_account_bulk_upload_task_item","report_task_item","report_data_task_item","report_rule","report_email_rule","script_task_item","update_campaign_store_id_task_item","advertiser_rule","mca_schedule_post_task_item","mca_social_metrics_sync_up_task_item","mca_social_profile_init_task_item","mca_report_job_task_item","tip","custom_column","company","industry","job_function","advice_event","custom_event_for_event","custom_event_for_value","page_load_event","travel_dimension_row","report_data_column_info","fb_event_owner","fb_place","http_request_message","stock_image_asset","report_data_enum_filter","report_data_text_filter","report_data_column_set","ads_api_error","totals_with_performance_metrics","account_totals","campaign_totals","aggregate_budget","performance_metrics","custom_column_error_response","custom_column_error_detail_item","goal_performance_metrics","performance_metrics_totals_by_network_split","custom_column_output_value","insertion_order","insertion_order_details","product_condition","attribute_statistic","base_expression","filter","entity_filter","child_entity_filter","bulk_edit_action","ad_group_audience_criterion_complex","ad_extension_association_complex","dictionary_2_of_string__string","dictionary_2_of_string__import_statistics","target_totals","key_value_pair_2_of_int64__string","delivery_status_detail","d_b_null","experiment_metrics","dictionary_2_of_string__dictionary_2_of_string__int64","asset","manager_account","entity_id_parent_id","owner","rerun_run_report_result","single_account_google_import_task_item","single_account_import_result","image_asset","smart_estimation_point","budget_kpi_estimations_response","ads_count","ad_groups_count","dictionary_2_of_ad_type__int32","fb_business","fb_cover","fb_location","fb_page","fb_picture","fb_post","fb_rating","fb_photo","fb_call_to_action","fb_event","fb_event_time","fb_user","fb_id_name_map","smart_page_fb_error","smart_page_fb_errors","smart_page_metric","click_metric","smart_page_business_hours","smart_page_time_slots","smart_page_suggestion","smart_page_image","multi_account_recommendation","dictionary_2_of_verified_tracking_vendor_field__string","b_i_data_status","http_response_message","i_enumerable_1_of_attribute_statistic","grid_data_parameters","conversion_goal_details","criterion","list_1_of_b_i_data_status","key_value_pair_2_of_string__string","blob","i_enumerable_1_of_i_enumerable_1_of_string","data_availability","report_parameters","report_preview_parameters","multi_account_overview_parameters","multi_account_recommendation_parameters","key_value_pair_2_of_int32__boolean","search_term_selection_item","alert_information","fb_page_authorization_data","i_enumerable_1_of_fb_page","ads_api_batch_errors","smart_page_association","smart_page_metric_set","smart_page_details","smart_page_partner_details","website_source_data","entity_editorial_reasons_collection","ad_resource_not_eligible_reasons_collection","set_smart_listings_result","ad_strength_and_action_items","medias","recommendation_media_option","recommendation_page_defination","media_generation_result","image_generation","media_output","budget_recommendation_response","target","mca_keyword","mca_ad","extracted_business_info","target_recommendation","a_b_testing_flight_log","a_b_testing_event_log","date_range","tag_setting","file_content_result","version","http_content","key_value_pair_2_of_string__i_enumerable_1_of_string","stream_content","read_only_memory_content","multipart_content","multipart_form_data_content","byte_array_content","string_content","json_content","header_encoding_selector_1_of_http_content","form_url_encoded_content","http_method","account_inactive_reason","quality_score_data","segmented_performance_metrics","segmentation_key","year_segmentation_key","week_segmentation_key","top_vs_other_segmentation_key","quarter_segmentation_key","network_segmentation_key","month_segmentation_key","medium_segmentation_key","hour_of_the_day_segmentation_key","goal_type_segmentation_key","goal_name_segmentation_key","goal_category_segmentation_key","device_type_segmentation_key","device_o_s_segmentation_key","delivered_match_type_segmentation_key","day_segmentation_key","day_of_the_week_segmentation_key","currency_segmentation_key","bidded_match_type_segmentation_key","audience_type_segmentation_key","audience_name_segmentation_key","ad_scenario_segmentation_key","ad_position_segmentation_key","phone_performance_metrics","segmented_phone_performance_metrics","custom_parameter","bidding_scheme","unknown_bidding_scheme","target_roas_bidding_scheme","target_impression_share_bidding_scheme","target_cpa_bidding_scheme","percent_cpc_bidding_scheme","max_roas_bidding_scheme","max_conversion_value_bidding_scheme","max_conversions_bidding_scheme","bid","max_clicks_bidding_scheme","manual_cpv_bidding_scheme","manual_cpm_bidding_scheme","manual_bidding_scheme","inherit_from_parent_bidding_scheme","enhanced_cpc_bidding_scheme","cost_per_sale_bidding_scheme","commission_bidding_scheme","campaign_settings","smart_settings","verified_tracking_setting","verified_tracking_data","shopping_settings","expert_mode_settings","dynamic_search_ads_setting","disclaimer_setting","audience_settings","note_campaign_association","note_ad_group_association","audience_criterion","bid_amount_detail","bid_estimation_data","app_url","label_association_counts","appeal","text_asset","video_asset","ad_rotation","updatable_date","age_criterion","day_time_criterion","device_criterion","gender_criterion","location_criterion","geo_point","location_intent_criterion","profile_criterion","company_name_criterion","industry_criterion","job_function_criterion","radius_criterion","store_criterion","webpage","webpage_parameter","webpage_condition","criterion_bid","fixed_bid","bid_multiplier","criterion_cashback","cashback_adjustment","bid_adjustment_recommendation","schedule","day_time","key_value_pair_2_of_int64__campaign_editorial_reason_collection","price_table_row","setting","target_setting","target_setting_detail","co_op_setting","recommendation_action","metric_change","product_group_cashback","campaign_cashback","ad_group_cashback","campaign_conversion_goal","account_item","sharing_scope","used_by","goal_stage","destination_goal_stage","event_goal_stage","selection","comparison_date_range","custom_column_definition","search_term_selection","performance_target_instance_selection","dimension_report_selection","automated_extension_selection","ad_extension_selection","bulk_edit_batch_action","association_action","audience_association_action","label_association_action","label_disassociation_action","bid_estimate_action","copy_action","list_action","numeric_action","query_only_action","text_action","bulk_edit_item_change","key_value_pair_2_of_string__list_1_of_editorial_error","editorial_error","api_editorial_error","mca_api_editorial_error","editorial_info","mca_editorial_reason","audience_expression","page_visitors_who_visited_another_page_expression","expression","page_visitors_who_did_not_visit_another_page_expression","expression_collection","page_visitors_expression","custom_events_expression","audience_set","dictionary_2_of_string__int64","annotation_opt_out","aggregated_negative_keyword","offline_conversion_file","key_value_pair_2_of_int64__i_enumerable_1_of_ads_api_error","cloud_import_task_base_result","cloud_import_task_result","import_statistics","entity_count","key_value_pair_2_of_string__i_enumerable_1_of_ads_api_error","key_value_pair_2_of_string__bulk_upload_entity_statistics","bulk_upload_entity_statistics","bulk_file","key_value_pair_2_of_string__ads_api_error","bing_places_filter","notification_delivery_option","email_notification_delivery_option","import_user_preference","import_adjustment_for_numeric_property","import_prefix_and_suffix_for_string_property","import_search_and_replace_for_string_property","facebook_import_context","google_my_business_filter","amazon_import_context","ad_words_import_context","import_user_preferences","import_update_entity_preference","import_append_dest_url_preference","import_search_and_replace_dest_url_preference","append_preferences_for_tracking_template","search_and_replace_preferences_for_tracking_template","g_t_m_import_context","g_t_m_tag_draft","google_account_property","file_import_context","smart_import_google_import_context","smart_import_facebook_import_context","aggregate_filter","predicate","report_sort","campaign_report_scope","ad_group_report_scope","conditional_format","crop_settings","seasonality_adjustment_campaign_association","migration_statuses","performance_target_metric","feed_attribute","feed_item_attribute_value","feed_item_targets","feed_item_campaign_target","feed_item_adgroup_target","feed_item_audience_target","feed_item_location_target","feed_item_platform_target","feed_item_keyword_target","feed_upload_task_detail_base","update_feed_upload_task_detail","replace_feed_upload_task_detail","create_feed_upload_task_detail","feed_schedule_information","advice_summary","advice_message","goal_advice_summary","advice_item","event_advice_summary","event_advice_detail","last_import_info","performance_data_point","performance_change_percent_metrics","segmented_performance_change_percent_metrics","phone_performance_change_percent_metrics","segmented_phone_performance_change_percent_metrics","smart_page_data_context","smart_page_social_urls","smart_page_video","smart_page_call_to_action","smart_page_location","uet_user_setting","tag_info","audience_item","goal_item","tag_used_by_info","used_by_pair","size","bid_below_first_page_detail","negative_keyword_conflict_detail_collection","negative_keyword_conflict_detail","experiment_statistic_1_of_int64","experiment_statistic_1_of_double","experiment_statistic_1_of_single","grid_data_filter","ad_extension_association_grid_data_parameters","automated_extension_grid_data_parameters","grid_pagination","editorial_language_to_publisher_countries","editorial_reason","ad_resource_not_eligible_reason","campaign_management_error_detail","editorial_error_detail","publisher_country_editorial_errors","recommendation_image","recommendation_image_option","media_asset","image_filter","image_filter_parameter","crop_setting","output_image","budget_info","age_target","gender_target","geo_target","location_target","radius_target","channel_appeal_info","ad_source","offline_ad_identity","carousel_ad","image_ad","lead_image_ad","provisioning_editorial_result","search_ad","lead_ad","video_ad","extracted_address","location_target_recommendation","radius_target_recommendation","entity_tag_header_value","business_category_recommendations","prepare_ad_recommendation","post_a_b_testing_flight_log","post_a_b_testing_event_log","ENVIRONMENT_TAG","networkPolicy","fn","DELETE","edmEntity","$withKey","Accounts","composeSearchString","headerDecorator","responseContract","obj","keySelectorDecorator","request","processorDecorator","destroySpec","sideEffects","urlDecorator","originValue","isArray","first","payloadDecorator","decorator","destroy","mutationConfig","destroyConfig","mutateFn","destroyFn","newData","_len3","_key3","ADD","PAGINATION","_objectWithoutProperties","_excluded","$call","ClientId","actionSpec","usePostABTestingFlightLog","action","callFn","usePostABTestingEventLog","Campaigns","usePrepareAdRecommendation","CustomerId","AccountId","Tags","tag_id","identity","TagId","FinalUrlSuffix","bulkDeleteValueIfEmpty","AccountNegativeKeyword","parent","bulk-upload-type","Status","bulk-upload-header","ParentId","Keyword","MatchType","AccountNegativeKeywordList","AccountNegativeKeywordListAssociation","SharedEntityId","EntityId","Ad","DisplayUrl","DestinationUrl","FinalUrls","bulk-upload-mapper","MobileFinalUrls","TrackingUrlTemplate","UrlCustomParameters","map","p","Value","CampaignName","AdGroupName","DevicePreference","NativePreference","None","AdExtensionAssociation","Type","AdGroup","StartDate","TargetSetting","EndDate","AdScheduleUseSearcherTimeZone","SearchBid","AdGroupPercentCpcBid","AdGroupCommissionRate","CpvBid","CpmBid","ContentBid","NativeBidAdjustment","MultimediaAdBidAdjustment","AdDistribution","BingYahooAndSearchPartners","BingYahooOnly","SearchPartnersOnly","InHousePromotion","Medium","bulk-upload-full-mapper","medium","key","AdRotation","PricingModel","RemarketingTargetingSetting","bidType","AdGroupType","HotelAdGroupType","CashbackPercent","CashbackScope","CouponsEnabled","Placement","Canvas","UseOptimizedTargeting","BoostPublisherIds","BoostAccountIds","BoostAdunitIds","BoostTriggerIds","FrequencyCapSettings","CapValue","AdGroupAdCustomizerAttribute","AdCustomizerAttributeValue","AdGroupAudienceCriterion","CriterionType","AdGroupCriterion","AdGroupNegativeKeyword","Text","AppAdExtension","AppInstallAd","AppPlatform","AppStoreId","textAssetMapper","assets","text","Asset","AssetGroup","Path1","Path2","CallToAction","Headlines","LongHeadlines","Descriptions","Images","Videos","AssetGroupSearchTheme","AssetGroupSearchThemeId","SearchTheme","AssetGroupId","AssetGroupUrlTarget","Condition1","Operator1","Value1","Condition2","Operator2","Value2","Condition3","Operator3","Value3","AssetGroupUrlTargetId","getAudienceIdArray","audiences","getProfileIdArray","profiles","AudienceGroup","Audiences","NegativeAudiences","companyNameTargets","jobTargets","AgeRanges","GenderTypes","AudienceGroupAssetGroupAssociation","AudienceGroupId","BidAmountDetail","Amount","BiddingScheme","ManualCpi","ManualCpc","MaxCpc","TargetCpa","TargetRoas","TargetAdPosition","TargetImpressionShare","BidStrategyId","CostPerSale","PercentMaxCpc","CommissionRate","BrandItem","BrandList","Budget","Monthly","DailyStandard","DailyAccelerated","LifetimeBudgetStandard","CallAdExtension","CalloutAdExtension","Campaign","CampaignSubType","BudgetId","BudgetName","TimeZone","Languages","filterable","AutomatedCallToActionOptOut","CampaignType","CampaignGoal","MoreCalls","MoreVisitsToPhysicalLocation","MoreWebsiteActions","MoreBrandAwareness","MoreSales","DomainName","LanguageCode","Source","DynamicDescriptionEnabled","AutoGeneratedAssetsEnabled","IsBroadMatchOnlyCampaign","DisclaimerAdsEnabled","BidStrategyName","CashbackMonthlyBudget","PersonalizedOffersEnabled","VerifiedTrackingData","FeedLabel","SalesCountry","ShoppableAdsEnabled","BrandOnly","LocalInventoryAdsEnabled","Priority","Low","High","Highest","ProviderId","IsLeadGenCampaign","AutoTargetingEnabled","AutoGeneratedImageOptOut","AutoGeneratedTextOptOut","FinalUrlExpansionOptOut","CostPerSaleOptOut","AppStore","AppId","PageFeedIds","DisplayUrlMode","WebsiteDescription","IsDealCampaign","CallToActionOptOut","UseCampaignLevelDates","CampaignAdCustomizerAttribute","CampaignAudienceCriterion","CampaignCriterion","CampaignNegativeKeyword","CampaignNegativeWebpage","CampaignProductScope","ProductCondition1","ProductCondition2","ProductCondition3","ProductCondition4","ProductCondition5","ProductCondition6","ProductCondition7","ProductValue1","ProductValue2","ProductValue3","ProductValue4","ProductValue5","ProductValue6","ProductValue7","ProductOperator1","ProductOperator2","ProductOperator3","ProductOperator4","ProductOperator5","ProductOperator6","ProductOperator7","CampaignObjectiveSetting","CampaignObjectiveSettingType","CoOpSetting","BidOption","BidBoostValue","BidMaxValue","formatName","newValue","contains","replace","Criterion","pairs","DeviceCriterion","DeviceName","BidAdjustment","OSName","BidMultiplier","AudienceId","AudienceName","AgeCriterion","Target","GenderCriterion","CompanyNameCriterion","IndustryCriterion","JobFunctionCriterion","JobTitleCriterion","JobSeniorityCriterion","RadiusCriterion","Radius","RadiusUnit","Latitude","Longitude","LocationCriterion","LocationType","LocationId","LocationIntentCriterion","IntentOption","NegativeStoreCriterion","StoreId","DayTimeCriterion","Day","FromHour","FromMinute","ToHour","ToMinute","conditions","WebPage","Parameter","Conditions","isAllWebpage","i","setEmpty","isUndefined","Operand","Operator","ArgumentOperand","AdvanceBookingWindowCriterion","MinDays","MaxDays","CheckInDayCriterion","CheckInDay","LengthofStayCriterion","MinNights","MaxNights","CheckInDateCriterion","DateSelectionTypeCriterion","HotelDateSelectionType","ContextualTarget","CategoryId","TargetOptionId","DealCriterion","DealId","GenreCriterion","PlacementId","DisclaimerAdExtension","DsaTarget","DynamicDataAdExtension","DynamicSearchAd","TextPart2","ExpandedTextAd","TitlePart1","TitlePart2","TitlePart3","Experiment","HotelAd","isReadOnly","Bid","Param1","Param2","Param3","KeywordAdCustomizerAttribute","NegativeAdGroupDsaTarget","NegativeCampaignDsaTarget","NegativeKeyword","ModifiedTime","NegativeKeywordList","NewCustomerAcquisitionGoal","AudienceIds","AdditionalConversionValue","LocationAdExtension","PortfolioBidStrategy","ProductAd","PromotionalText","ProductGroup","BidBoost","IsLeaf","ProductListingGroup","IsExcluded","ProductCondition","Attribute","ProductPartition","BidAmount","ProductValue","ResponsiveAd","LandscapeImageMediaId","SquareImageMediaId","LandscapeLogoMediaId","SquareLogoMediaId","LongHeadline","CallToActionLanguage","CallToActionText","maxLength","distinguishCJK","distinguishWideChar","CallToActionAriaText","AdSubType","ImpressionTrackingUrls","HotSpots","BoostAnchors","AdType","ResponsiveSearchAd","pinnedField","PinnedField","ReviewAdExtension","SharedEntityAssociation","ShoppingCampaign","FeedId","IsPromotionsForBrands","NewCustomerAcquisitionGoalId","NewCustomerAcquisitionBidOnlyMode","SiteLink","TextAd","CampaignConversionGoal","nullable","GoalId","SubType","Action","CampaignId","BrandListAssociation","IsExclusion","social_profile","post","activity","channel_user","mca_location","channel_profile","target_action","subscription_plan","listings_mapping","bing_user","facebook_page","facebook_user","google_user","instagram_user","linked_in_user","twitter_user","bing_places_review","facebook_comment","facebook_conversation_thread","facebook_post","facebook_review","facebook_wall_post","google_my_business_question","question_answer","google_my_business_review","instagram_comment","instagram_post","linked_in_comment","linked_in_share","tweet_activity","tweet","twitter_mention","twitter_post","twitter_retweet","mca_destination_goal","metric","comment_for_reply","message_for_reply","url_preview_result","o_auth_tokens","ad_auto_complete","mca_conversion_metric","mca_search_term_metric","mca_ad_metric","fb_ad_account","set_mca_goal_result","suggest_budget_response","mca_category","mca_keyword_recommendations_response","mca_target_recommendation","audience_reach_estimations_response","mca_ad_metric_set","mca_alert_information","mca_conversion_metric_set","review_reply","media","attachment","media_attachment","file_attachment","channel_data","posting_status","mca_api_error","mca_editorial_error","mca_business_listing","internal_info","ad_suggestion","site_word","mca_keyword_recommendation","mca_location_target_recommendation","mca_radius_target_recommendation","clarity_event_info","disapproved_campaign","load_calendar","load_social_metrics","get_u_p_budget_suggestions","get_subscription_ads_budget_suggestions","get_suggested_ads","get_activities_count","get_target_suggestions","validate_url","get_mca_blob_upload_url","submit_change_history_report_task","poll_change_history_report","dismiss_ad_suggestions","get_image_suggestions","apply_target_actions","set_keywords","delete_mca_channel_ads","get_top_ads","load_thread","load_conversation","verify_fb_ad_account_status","send_fb_ad_account_invitation","reply_as_comment","reply_as_message","set_clarity_event_info","values","createTimestamp","Date","now","useGetUPBudgetSuggestions","useGetSubscriptionAdsBudgetSuggestions","useGetCategorySuggestions","useGetMcaProductServiceRecommendations","useGetAudienceReachEstimations","useGetMcaBlobUploadUrl","funcParams","pick","searchParams","SearchTerm","parentIdSelector","sideEffectFn","spec","tryMergeItemsToCacheStore","Ads","Targets","Keywords","schemaName","itemKeySelector","parentSchemaName","parentId","CampaignIdsWithEscBudgetLandscapeDataKey","_ref2","tryDeleteItemsInCacheStore","keysToDelete","useCampaign","profileId","SocialProfiles","Website","DisapprovedCampaigns","social_profile_id","addSpec","useSocialProfiles","pagination","create","add","paginationConfig","createConfig","expandedPaginationConfig","fetchVariables","_usePagination","usePagination","_usePagination2","paginationMethods","createFn","additionalDescriptor","_len4","_key4","loadMore","hasMore","isLoading","channel_profile_id","ChannelProfiles","parseInt","post_id","Posts","usePosts","mergeNewRecords","records","newRecords","uniq","_toConsumableArray","activity_id","Activities","goal_id","Goals","mca_location_id","McaLocations","subscription_plan_id","SubscriptionPlans","target_id","TargetActions","useTargets","ad_id","AdSource","AdRecommendationGuid","item","TemplateAdId","keyword_id"],"mappings":"wmBAKA,IAAMA,EAAc,MACdC,EAAW,QAEXC,EAAY,SAAAC,GAAQ,OAA4B,IAAxBA,EAASC,YAA4C,IAAxBD,EAASC,YAE7D,SAASC,EAAYC,GAGzB,IAFDC,EAAWD,EAAXC,YACAC,EAAMF,EAANE,OAEA,OAAO,SAA0BC,EAAKC,EAAaC,EAASC,GAC1D,IAAMC,EAAiB,IAAIC,IAAmB,IACxCC,EAAiBC,IAAIT,GAAaU,KAAK,IAAIC,WAC3CC,EAAgBX,GAAUP,EAC1BmB,EAAgBJ,IAAIP,GAAKY,SAASrB,EAAamB,GAAeD,WAE9DI,EAAG,GAAAC,OAAMR,GAAcQ,OAAGH,GAEhC,OAAOP,EAAeW,KAAKC,KAAKH,uWAAGI,CAAA,CACjCC,OAAQjB,EACRkB,KAAMC,KAAKC,UAAUlB,IAClBD,IACFoB,KAAK,SAAC5B,GACP,OAAID,EAAUC,GACL6B,IAAQC,OAAO9B,GAEjBA,qBCJA+B,EAAS,IAAIC,SAxBG,CAC3BC,KAAM,OACNC,SAAU,WACVC,QAAS,UACTC,cAAe,gBACfC,WAAY,aACZC,UAAW,YACXC,WAAY,aACZC,4BAA6B,8BAC7BC,4BAA6B,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AAyB0yB,GAK9B,OAAO,SAAAtzB,GAAM,OAAsBszB,EAAGtzB,GAH7ByK,eCyCQmpB,CAXnB,SAA4B5zB,GAE1B,OADoBA,EAAZ8H,UAWRjH,YAAa,SAAAX,GAAS,OAAIA,EAAUC,QAAQF,WAAW83C,SACvDj3C,kBAAmB,SAAAZ,GAAS,OAAIA,EAAUC,QAAQF,WAAWoK,cAGzDwpB,GAAmB7yB,iCAAuB,CAC9CC,mBACAC,aAAcC,gBAAcC,OAC5BP,YDlCK,SAA8ByyB,GAMnC,OAAO,SAAAQ,GAAG,OAAmBR,EAAGQ,IC4BnBC,CAAqB,SAAArpB,GAAC,OAAIA,EAAEpC,KACzCjH,YD1BK,SAA4BiyB,GAMjC,OAAO,SAACh5B,EAAU05B,GAAO,OAAkCV,EAAGh5B,EAAU05B,ICoB3DC,CAAmB,SAAAvpB,GAAC,OAAIA,MAGd3I,qBACvBd,GACA4yB,GACA7xB,YAAUC,MACVkyB,GACA51B,GAGyBwD,qBACzBd,GACA4yB,GACA7xB,YAAUG,QACVgyB,GACA51B","file":"static/js/application.initial~5816e4ab.54899a95.chunk.js","sourcesContent":["import URI from 'urijs';\r\nimport Promise from 'bluebird';\r\nimport RestfulServiceBase from '@bingads-webui-clientcenter/restful-service';\r\n\r\n// Some cc calls take LCIDCookie as local input, which will return non-English data\r\nconst localeParam = 'mkt';\r\nconst localeUs = 'en-US';\r\n\r\nconst isCCError = response => response.ResultType === 1 || response.ResultType === 3;\r\n\r\nexport function getRequestor({\r\n serviceRoot,\r\n locale,\r\n}) {\r\n return function networkRequestor(uri, requestVerb, options, body) {\r\n const restfulService = new RestfulServiceBase({});\r\n const cleanedRootUrl = URI(serviceRoot).path('').toString();\r\n const currentLocale = locale || localeUs;\r\n const uriWithLocale = URI(uri).addQuery(localeParam, currentLocale).toString();\r\n\r\n const url = `${cleanedRootUrl}${uriWithLocale}`;\r\n\r\n return restfulService.http.ajax(url, {\r\n method: requestVerb,\r\n data: JSON.stringify(body),\r\n ...options,\r\n }).then((response) => {\r\n if (isCCError(response)) {\r\n return Promise.reject(response);\r\n }\r\n return response;\r\n });\r\n };\r\n}\r\n","import { Schema } from '@bingads-webui-react/overreact';\r\n\r\nconst schemaToModelMapping = {\r\n user: 'user',\r\n customer: 'customer',\r\n account: 'account',\r\n sub_geography: 'sub_geography',\r\n time_zones: 'time_zones',\r\n countries: 'countries',\r\n currencies: 'currencies',\r\n currency_countries_mappings: 'currency_countries_mappings',\r\n country_currencies_mappings: 'country_currencies_mappings',\r\n validate_address: 'validate_address',\r\n sign_up: 'sign_up',\r\n estimate_taxes: 'estimate_taxes',\r\n top_up_limit: 'top_up_limit',\r\n offline_payment_instructions: 'offline_payment_instructions',\r\n create_expert_from_smart: 'create_expert_from_smart',\r\n payment_instrument: 'payment_instrument',\r\n get_coupon_details: 'get_coupon_details',\r\n get_coupon_string_for_signup: 'get_coupon_string_for_signup',\r\n get_coupon_valid_for_customer_website: 'get_coupon_valid_for_customer_website',\r\n save_coupon_string_for_signup: 'save_coupon_string_for_signup',\r\n country_timezones_mapping: 'country_timezones_mapping',\r\n};\r\n\r\nexport const schema = new Schema(schemaToModelMapping, () => { });\r\n","import {\r\n Environment,\r\n middlewareTypes,\r\n createFetchPolicyMiddleware,\r\n createErrorMiddleware,\r\n Store,\r\n} from '@bingads-webui-react/overreact';\r\nimport { schema } from './schema';\r\n\r\nexport const middlewares = {\r\n [middlewareTypes.FETCH_POLICY]: createFetchPolicyMiddleware(),\r\n [middlewareTypes.ERROR]: createErrorMiddleware(),\r\n};\r\n\r\nconst store = new Store();\r\nlet env = null;\r\n\r\nexport const CC_ENVIRONMENT_TAG = 'ClientCenter_Endpoint';\r\n\r\nexport function getEnvironmentInstance(requestor, customStore, customMiddlewares) {\r\n if (!env) {\r\n env = new Environment(\r\n requestor,\r\n schema,\r\n customStore || store,\r\n customMiddlewares || middlewares,\r\n CC_ENVIRONMENT_TAG\r\n );\r\n }\r\n\r\n // allow caller to update requestor\r\n env.networkRequestor = requestor;\r\n env.middlewares = customMiddlewares || middlewares;\r\n\r\n return env;\r\n}\r\n\r\nexport function environmentLookupFn(environmentTag) {\r\n return environmentTag === CC_ENVIRONMENT_TAG;\r\n}\r\n","import { useMemo } from 'react';\r\nimport { getRequestor } from './requestor';\r\nimport { getEnvironmentInstance } from './environment-instance';\r\n\r\nexport function useCCEnvironment({\r\n serviceRoot,\r\n store,\r\n middlewares,\r\n locale,\r\n}) {\r\n return useMemo(() => {\r\n const overreactRequestor = getRequestor({\r\n serviceRoot,\r\n locale,\r\n });\r\n return getEnvironmentInstance(overreactRequestor, store, middlewares);\r\n }, [locale, middlewares, serviceRoot, store]);\r\n}\r\n","import { v4 as uuidv4 } from 'uuid';\r\n\r\nfunction generateRequestId() {\r\n return uuidv4();\r\n}\r\n\r\nexport function getDefaultOptions() {\r\n return {\r\n contentType: 'application/json',\r\n dataType: 'json',\r\n cacheResponse: false,\r\n 'x-ms-requestid': generateRequestId(),\r\n xhrFields: {\r\n withCredentials: true,\r\n },\r\n };\r\n}\r\n","import _ from 'underscore';\r\nimport queryString from 'query-string';\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { schema } from '../../../environment/schema';\r\nimport { getDefaultOptions } from '../../../request-contract-helper/index';\r\n\r\nfunction ccUrlFactory(params) {\r\n const { variables } = params;\r\n\r\n const {\r\n locator,\r\n } = variables;\r\n\r\n const { descriptor } = locator;\r\n const { uid, cid } = descriptor;\r\n\r\n const search = {\r\n uid,\r\n cid,\r\n id: uid,\r\n };\r\n\r\n const searchString = _.isEmpty(search) ? '' : `?${queryString.stringify(search)}`;\r\n\r\n return `cc/API/User${searchString}`;\r\n}\r\n\r\nfunction ccOptionsFactory() {\r\n return getDefaultOptions();\r\n}\r\n\r\nexport const fetchRequestContract = createRequestContract({\r\n schema,\r\n dataPath: 'user',\r\n verb: requestVerbs.GET,\r\n uriFactoryFn: ccUrlFactory,\r\n headerFactoryFn: ccOptionsFactory,\r\n keySelector: variables => variables.locator.descriptor.uid,\r\n parentKeySelector: variables => variables.locator.descriptor.uid,\r\n});\r\n\r\nexport const fetchResponseContract = createResponseContract({\r\n requestContract: fetchRequestContract,\r\n responseType: responseTypes.ENTITY,\r\n keySelector: user => user.id,\r\n processorFn: response => response,\r\n});\r\n","import _ from 'underscore';\r\nimport queryString from 'query-string';\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n FetchPolicy,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { schema } from '../../../environment/schema';\r\nimport { getDefaultOptions } from '../../../request-contract-helper';\r\n\r\nfunction ccUrlFactory(params) {\r\n const { variables } = params;\r\n\r\n const {\r\n locator,\r\n } = variables;\r\n\r\n const { descriptor } = locator;\r\n const { uid, cid } = descriptor;\r\n\r\n const search = {\r\n uid,\r\n cid,\r\n id: uid,\r\n };\r\n\r\n const searchString = _.isEmpty(search) ? '' : `?${queryString.stringify(search)}`;\r\n\r\n return `cc/API/User${searchString}`;\r\n}\r\n\r\nfunction ccOptionsFactory() {\r\n return getDefaultOptions();\r\n}\r\n\r\nfunction ccPayloadFactory(params) {\r\n const { data } = params;\r\n return data.User ? data : { User: data };\r\n}\r\n\r\nexport const mutationRequestContract = createRequestContract({\r\n schema,\r\n dataPath: 'user',\r\n verb: requestVerbs.PATCH,\r\n fetchPolicy: FetchPolicy.NetworkOnly,\r\n uriFactoryFn: ccUrlFactory,\r\n headerFactoryFn: ccOptionsFactory,\r\n payloadFactoryFn: ccPayloadFactory,\r\n keySelector: variables => variables.locator.descriptor.uid,\r\n parentKeySelector: variables => variables.locator.descriptor.uid,\r\n});\r\n\r\nexport const mutationResponseContract = createResponseContract({\r\n requestContract: mutationRequestContract,\r\n responseType: responseTypes.ENTITY,\r\n keySelector: user => user.id,\r\n processorFn: response => response,\r\n});\r\n","import { useCallback, useMemo } from 'react';\r\n\r\nimport {\r\n createSpec,\r\n specTypes,\r\n useFetch,\r\n useDataRefId,\r\n useRefetch,\r\n useMutation,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { environmentLookupFn } from '../../../environment/environment-instance';\r\nimport {\r\n fetchRequestContract,\r\n fetchResponseContract,\r\n} from '../spec/fetch';\r\n\r\nimport {\r\n mutationRequestContract,\r\n mutationResponseContract,\r\n} from '../spec/mutation';\r\n\r\nconst fetchSpec = createSpec(\r\n fetchRequestContract, fetchResponseContract,\r\n specTypes.FETCH, null, environmentLookupFn\r\n);\r\nconst refetchSpec = createSpec(\r\n fetchRequestContract, fetchResponseContract,\r\n specTypes.REFETCH, null, environmentLookupFn\r\n);\r\nconst mutationSpec = createSpec(\r\n mutationRequestContract, mutationResponseContract,\r\n specTypes.MUTATION, null, environmentLookupFn\r\n);\r\n\r\nconst DEFAULT_CONFIG_VALLUE = {};\r\n\r\nexport function useUser(dataLocator, config = DEFAULT_CONFIG_VALLUE) {\r\n const dataRefId = useDataRefId(null, environmentLookupFn);\r\n\r\n const defaultConfig = useMemo(() => ({\r\n fetch: config.fetch || DEFAULT_CONFIG_VALLUE,\r\n refetch: config.refetch || DEFAULT_CONFIG_VALLUE,\r\n mutation: config.mutation || DEFAULT_CONFIG_VALLUE,\r\n }), [config]);\r\n\r\n const { fetch: fetchConfig, refetch, mutation } = defaultConfig;\r\n\r\n const fetch = useFetch(dataRefId, fetchSpec, dataLocator, fetchConfig);\r\n const refetchFn = useRefetch(dataRefId, refetchSpec, refetch);\r\n\r\n const read = useCallback((param = {}, requestConfig) => {\r\n refetchFn({\r\n variables: { ...dataLocator, ...param.variables },\r\n }, requestConfig);\r\n }, [dataLocator, refetchFn]);\r\n\r\n const updateFn = useMutation(dataRefId, mutationSpec, mutation.update);\r\n\r\n const update = useCallback((data, ...rest) => {\r\n updateFn({ ...dataLocator }, data, ...rest);\r\n }, [dataLocator, updateFn]);\r\n\r\n const [data, error] = fetch;\r\n\r\n return [{ data, error }, { read, update }];\r\n}\r\n","import _ from 'underscore';\r\nimport queryString from 'query-string';\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n FetchPolicy,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { schema } from '../../../environment/schema';\r\nimport { getDefaultOptions } from '../../../request-contract-helper/index';\r\n\r\nfunction ccUrlFactory(params) {\r\n const { variables } = params;\r\n\r\n const {\r\n locator,\r\n } = variables;\r\n\r\n const { descriptor } = locator;\r\n const { uid, cid } = descriptor;\r\n\r\n const search = {\r\n uid,\r\n cid,\r\n id: cid,\r\n };\r\n\r\n const searchString = _.isEmpty(search) ? '' : `?${queryString.stringify(search)}`;\r\n\r\n return `cc/API/Customer${searchString}`;\r\n}\r\n\r\nfunction ccOptionsFactory() {\r\n return getDefaultOptions();\r\n}\r\n\r\nexport const fetchRequestContract = createRequestContract({\r\n schema,\r\n dataPath: 'user:customer',\r\n verb: requestVerbs.GET,\r\n fetchPolicy: FetchPolicy.StoreOrNetwork,\r\n uriFactoryFn: ccUrlFactory,\r\n headerFactoryFn: ccOptionsFactory,\r\n keySelector: variables => variables.locator.descriptor.cid,\r\n parentKeySelector: variables => variables.locator.descriptor.uid,\r\n});\r\n\r\nexport const fetchResponseContract = createResponseContract({\r\n requestContract: fetchRequestContract,\r\n responseType: responseTypes.ENTITY,\r\n keySelector: customer => customer.id,\r\n processorFn: response => response,\r\n});\r\n","import _ from 'underscore';\r\nimport queryString from 'query-string';\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n FetchPolicy,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { schema } from '../../../environment/schema';\r\nimport { getDefaultOptions } from '../../../request-contract-helper';\r\n\r\nfunction ccUrlFactory(params) {\r\n const { variables } = params;\r\n\r\n const {\r\n locator,\r\n } = variables;\r\n\r\n const { descriptor } = locator;\r\n const { uid, cid } = descriptor;\r\n\r\n const search = {\r\n uid,\r\n cid,\r\n id: cid,\r\n };\r\n\r\n const searchString = _.isEmpty(search) ? '' : `?${queryString.stringify(search)}`;\r\n\r\n return `cc/API/Customer${searchString}`;\r\n}\r\n\r\nfunction ccOptionsFactory() {\r\n return getDefaultOptions();\r\n}\r\n\r\nfunction ccPayloadFactory(params) {\r\n const { data } = params;\r\n return data.Customer ? data : { Customer: data };\r\n}\r\n\r\nexport const mutationRequestContract = createRequestContract({\r\n schema,\r\n dataPath: 'user:customer',\r\n verb: requestVerbs.PATCH,\r\n fetchPolicy: FetchPolicy.NetworkOnly,\r\n uriFactoryFn: ccUrlFactory,\r\n headerFactoryFn: ccOptionsFactory,\r\n payloadFactoryFn: ccPayloadFactory,\r\n keySelector: variables => variables.locator.descriptor.cid,\r\n parentKeySelector: variables => variables.locator.descriptor.uid,\r\n});\r\n\r\nexport const mutationResponseContract = createResponseContract({\r\n requestContract: mutationRequestContract,\r\n responseType: responseTypes.ENTITY,\r\n keySelector: customer => customer.id,\r\n processorFn: response => response,\r\n});\r\n","import { useCallback, useMemo } from 'react';\r\n\r\nimport {\r\n createSpec,\r\n specTypes,\r\n useFetch,\r\n useDataRefId,\r\n useRefetch,\r\n useMutation,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport {\r\n fetchRequestContract,\r\n fetchResponseContract,\r\n} from '../spec/fetch';\r\n\r\nimport {\r\n mutationRequestContract,\r\n mutationResponseContract,\r\n} from '../spec/mutation';\r\n\r\nimport { environmentLookupFn } from '../../../environment/environment-instance';\r\n\r\nconst fetchSpec = createSpec(\r\n fetchRequestContract, fetchResponseContract,\r\n specTypes.FETCH, null, environmentLookupFn\r\n);\r\nconst refetchSpec = createSpec(\r\n fetchRequestContract, fetchResponseContract,\r\n specTypes.REFETCH, null, environmentLookupFn\r\n);\r\nconst mutationSpec = createSpec(\r\n mutationRequestContract, mutationResponseContract,\r\n specTypes.MUTATION, null, environmentLookupFn\r\n);\r\n\r\nexport function useCustomer(dataLocator, config = {}) {\r\n const dataRefId = useDataRefId(null, environmentLookupFn);\r\n const defaultConfig = useMemo(() => ({\r\n fetch: config.fetch || {},\r\n refetch: config.refetch || {},\r\n mutation: config.mutation || {},\r\n }), [config]);\r\n\r\n const { fetch: fetchConfig, refetch, mutation } = defaultConfig;\r\n\r\n const fetch = useFetch(dataRefId, fetchSpec, dataLocator, fetchConfig);\r\n const refetchFn = useRefetch(dataRefId, refetchSpec, refetch);\r\n\r\n const read = useCallback((param = {}, requestConfig) => {\r\n refetchFn({\r\n variables: { ...dataLocator, ...param.variables },\r\n }, requestConfig);\r\n }, [dataLocator, refetchFn]);\r\n\r\n const updateFn = useMutation(dataRefId, mutationSpec, mutation.update);\r\n\r\n const update = useCallback((data, ...rest) => {\r\n updateFn({ ...dataLocator }, data, ...rest);\r\n }, [dataLocator, updateFn]);\r\n\r\n const [data, error] = fetch;\r\n\r\n return [{ data, error }, { read, update }];\r\n}\r\n\r\nexport function useCustomerWithDefaultSetting({\r\n cid,\r\n uid,\r\n}) {\r\n const customerVariables = useMemo(() => ({\r\n locator: {\r\n descriptor: { cid, uid },\r\n },\r\n }), [cid, uid]);\r\n return useCustomer(customerVariables);\r\n}\r\n","import _ from 'underscore';\r\nimport queryString from 'query-string';\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n FetchPolicy,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { schema } from '../../../environment/schema';\r\nimport { getDefaultOptions } from '../../../request-contract-helper/index';\r\n\r\nfunction ccUrlFactory(params) {\r\n const { variables } = params;\r\n\r\n const {\r\n locator,\r\n } = variables;\r\n\r\n const { descriptor } = locator;\r\n const { uid, cid, aid } = descriptor;\r\n\r\n const search = {\r\n uid,\r\n cid,\r\n id: aid,\r\n };\r\n\r\n const searchString = _.isEmpty(search) ? '' : `?${queryString.stringify(search)}`;\r\n\r\n return `cc/API/Account${searchString}`;\r\n}\r\n\r\nfunction ccOptionsFactory() {\r\n return getDefaultOptions();\r\n}\r\n\r\nexport const fetchRequestContract = createRequestContract({\r\n schema,\r\n dataPath: 'user:customer:account',\r\n verb: requestVerbs.GET,\r\n fetchPolicy: FetchPolicy.StoreOrNetwork,\r\n uriFactoryFn: ccUrlFactory,\r\n headerFactoryFn: ccOptionsFactory,\r\n keySelector: variables => variables.locator.descriptor.aid,\r\n parentKeySelector: variables => variables.locator.descriptor.cid,\r\n});\r\n\r\nexport const fetchResponseContract = createResponseContract({\r\n requestContract: fetchRequestContract,\r\n responseType: responseTypes.ENTITY,\r\n keySelector: account => account.id,\r\n processorFn: response => response,\r\n});\r\n","import _ from 'underscore';\r\nimport queryString from 'query-string';\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n FetchPolicy,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { schema } from '../../../environment/schema';\r\nimport { getDefaultOptions } from '../../../request-contract-helper';\r\n\r\nfunction ccUrlFactory(params) {\r\n const { variables } = params;\r\n\r\n const {\r\n locator,\r\n } = variables;\r\n\r\n const { descriptor } = locator;\r\n const { uid, cid, aid } = descriptor;\r\n\r\n const search = {\r\n uid,\r\n cid,\r\n id: aid,\r\n };\r\n\r\n const searchString = _.isEmpty(search) ? '' : `?${queryString.stringify(search)}`;\r\n\r\n return `cc/API/Account${searchString}`;\r\n}\r\n\r\nfunction ccOptionsFactory() {\r\n return getDefaultOptions();\r\n}\r\n\r\nfunction ccPayloadFactory(params) {\r\n const { data } = params;\r\n return data.Account ? data : { Account: data };\r\n}\r\n\r\nexport const mutationRequestContract = createRequestContract({\r\n schema,\r\n dataPath: 'user:customer:account',\r\n verb: requestVerbs.PATCH,\r\n fetchPolicy: FetchPolicy.NetworkOnly,\r\n uriFactoryFn: ccUrlFactory,\r\n headerFactoryFn: ccOptionsFactory,\r\n payloadFactoryFn: ccPayloadFactory,\r\n keySelector: variables => variables.locator.descriptor.aid,\r\n parentKeySelector: variables => variables.locator.descriptor.cid,\r\n});\r\n\r\nexport const mutationResponseContract = createResponseContract({\r\n requestContract: mutationRequestContract,\r\n responseType: responseTypes.ENTITY,\r\n keySelector: account => account.id,\r\n processorFn: response => response,\r\n});\r\n","import { useCallback, useMemo } from 'react';\r\n\r\nimport {\r\n createSpec,\r\n specTypes,\r\n useFetch,\r\n useDataRefId,\r\n useRefetch,\r\n useMutation,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { environmentLookupFn } from '../../../environment/environment-instance';\r\nimport {\r\n fetchRequestContract,\r\n fetchResponseContract,\r\n} from '../spec/fetch';\r\n\r\nimport {\r\n mutationRequestContract,\r\n mutationResponseContract,\r\n} from '../spec/mutation';\r\n\r\nconst fetchSpec = createSpec(\r\n fetchRequestContract, fetchResponseContract,\r\n specTypes.FETCH, null, environmentLookupFn\r\n);\r\nconst refetchSpec = createSpec(\r\n fetchRequestContract, fetchResponseContract,\r\n specTypes.REFETCH, null, environmentLookupFn\r\n);\r\nconst mutationSpec = createSpec(\r\n mutationRequestContract, mutationResponseContract,\r\n specTypes.MUTATION, null, environmentLookupFn\r\n);\r\n\r\nexport function useAccount(dataLocator, config = {}) {\r\n const dataRefId = useDataRefId(null, environmentLookupFn);\r\n\r\n const defaultConfig = useMemo(() => ({\r\n fetch: config.fetch || {},\r\n refetch: config.refetch || {},\r\n mutation: config.mutation || {},\r\n }), [config]);\r\n\r\n const { fetch: fetchConfig, refetch, mutation } = defaultConfig;\r\n\r\n const fetch = useFetch(dataRefId, fetchSpec, dataLocator, fetchConfig);\r\n const refetchFn = useRefetch(dataRefId, refetchSpec, refetch);\r\n\r\n const read = useCallback((param = {}, requestConfig) => {\r\n refetchFn({\r\n variables: { ...dataLocator, ...param.variables },\r\n }, requestConfig);\r\n }, [dataLocator, refetchFn]);\r\n\r\n const updateFn = useMutation(dataRefId, mutationSpec, mutation.update);\r\n\r\n const update = useCallback((data, ...rest) => {\r\n updateFn({ ...dataLocator }, data, ...rest);\r\n }, [dataLocator, updateFn]);\r\n\r\n const updateWithVariables = useCallback((data, variables, ...rest) => {\r\n updateFn({ ...dataLocator, ...variables }, data, ...rest);\r\n }, [dataLocator, updateFn]);\r\n\r\n const [data, error] = fetch;\r\n\r\n return [{ data, error }, { read, update, updateWithVariables }];\r\n}\r\n\r\nexport function useAccountWithDefaultSetting({\r\n aid,\r\n cid,\r\n uid,\r\n}) {\r\n const accountVariables = useMemo(() => ({\r\n locator: {\r\n descriptor: { cid, aid, uid },\r\n },\r\n }), [aid, uid, cid]);\r\n\r\n return useAccount(accountVariables);\r\n}\r\n","import _ from 'underscore';\r\nimport queryString from 'query-string';\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n FetchPolicy,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { schema } from '../../../environment/schema';\r\nimport { getDefaultOptions } from '../../../request-contract-helper/index';\r\n\r\nfunction ccUrlFactory(params) {\r\n const { variables } = params;\r\n\r\n const {\r\n locator,\r\n top,\r\n skip,\r\n predicates,\r\n name,\r\n } = variables;\r\n\r\n const { descriptor } = locator;\r\n const { uid, cid } = descriptor;\r\n\r\n let search = {\r\n uid,\r\n cid,\r\n customerId: cid,\r\n };\r\n if (_.isNumber(top)) {\r\n search = {\r\n ...search,\r\n top,\r\n };\r\n }\r\n if (_.isNumber(skip)) {\r\n search = {\r\n ...search,\r\n skip,\r\n };\r\n }\r\n if (predicates) {\r\n search = {\r\n ...search,\r\n predicates: JSON.stringify(predicates),\r\n };\r\n }\r\n if (name) {\r\n search = {\r\n ...search,\r\n name,\r\n };\r\n }\r\n\r\n const searchString = _.isEmpty(search) ? '' : `?${queryString.stringify(search)}`;\r\n\r\n return `cc/API/Account${searchString}`;\r\n}\r\n\r\nfunction ccOptionsFactory() {\r\n return getDefaultOptions();\r\n}\r\n\r\nexport const fetchRequestContract = createRequestContract({\r\n schema,\r\n dataPath: 'user:customer:account',\r\n verb: requestVerbs.GET,\r\n fetchPolicy: FetchPolicy.StoreOrNetwork,\r\n uriFactoryFn: ccUrlFactory,\r\n headerFactoryFn: ccOptionsFactory,\r\n parentKeySelector: variables => variables.locator.descriptor.cid,\r\n});\r\n\r\nexport const fetchResponseContract = createResponseContract({\r\n requestContract: fetchRequestContract,\r\n responseType: responseTypes.COLL,\r\n keySelector: account => account.id,\r\n processorFn: response => response.value,\r\n});\r\n","import { useCallback, useMemo } from 'react';\r\n\r\nimport {\r\n createSpec,\r\n specTypes,\r\n useFetch,\r\n useDataRefId,\r\n useRefetch,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { environmentLookupFn } from '../../../environment/environment-instance';\r\nimport {\r\n fetchRequestContract,\r\n fetchResponseContract,\r\n} from '../spec/coll-fetch';\r\n\r\nconst fetchSpec = createSpec(\r\n fetchRequestContract, fetchResponseContract,\r\n specTypes.FETCH, null, environmentLookupFn\r\n);\r\nconst refetchSpec = createSpec(\r\n fetchRequestContract, fetchResponseContract,\r\n specTypes.REFETCH, null, environmentLookupFn\r\n);\r\n\r\nconst DEFAULT_CONFIG = {};\r\n\r\nexport function useAccounts(dataLocator, config = DEFAULT_CONFIG) {\r\n const dataRefId = useDataRefId(null, environmentLookupFn);\r\n\r\n const defaultConfig = useMemo(() => ({\r\n fetch: config.fetch || {},\r\n refetch: config.refetch || {},\r\n }), [config]);\r\n\r\n const { fetch: fetchConfig, refetch } = defaultConfig;\r\n\r\n const fetch = useFetch(dataRefId, fetchSpec, dataLocator, fetchConfig);\r\n const refetchFn = useRefetch(dataRefId, refetchSpec, refetch);\r\n\r\n const read = useCallback((param = {}, requestConfig, ...rest) => {\r\n refetchFn({\r\n variables: { ...dataLocator, ...param.variables },\r\n }, requestConfig, ...rest);\r\n }, [dataLocator, refetchFn]);\r\n\r\n const [data, error] = fetch;\r\n\r\n return [{ data, error }, { read }];\r\n}\r\n","import _ from 'underscore';\r\nimport queryString from 'query-string';\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { schema } from '../../../environment/schema';\r\nimport { getDefaultOptions } from '../../../request-contract-helper/index';\r\n\r\nfunction ccUrlFactory(params) {\r\n const { variables } = params;\r\n\r\n const {\r\n locator,\r\n countryCode,\r\n } = variables;\r\n\r\n const { descriptor } = locator;\r\n const { uid, cid } = descriptor;\r\n\r\n const search = {\r\n uid,\r\n cid,\r\n countryCode,\r\n };\r\n\r\n const searchString = _.isEmpty(search) ? '' : `?${queryString.stringify(search)}`;\r\n\r\n return `cc/API/DomainData/LocalizedMappingSubGeography${searchString}`;\r\n}\r\n\r\nfunction ccOptionsFactory() {\r\n return getDefaultOptions();\r\n}\r\n\r\nexport const fetchRequestContract = createRequestContract({\r\n schema,\r\n dataPath: 'user:customer:sub_geography',\r\n verb: requestVerbs.GET,\r\n uriFactoryFn: ccUrlFactory,\r\n headerFactoryFn: ccOptionsFactory,\r\n keySelector: variables => variables.countryCode,\r\n parentKeySelector: variables => variables.locator.descriptor.cid,\r\n});\r\n\r\nexport const fetchResponseContract = createResponseContract({\r\n requestContract: fetchRequestContract,\r\n responseType: responseTypes.COLL,\r\n keySelector: subGeography => subGeography.Key,\r\n processorFn: response => response.value,\r\n});\r\n","import { useCallback, useMemo } from 'react';\r\n\r\nimport {\r\n createSpec,\r\n specTypes,\r\n useFetch,\r\n useDataRefId,\r\n useRefetch,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport {\r\n fetchRequestContract,\r\n fetchResponseContract,\r\n} from '../spec/fetch';\r\nimport { environmentLookupFn } from '../../../environment/environment-instance';\r\n\r\nconst fetchSpec = createSpec(\r\n fetchRequestContract, fetchResponseContract,\r\n specTypes.FETCH, null, environmentLookupFn\r\n);\r\nconst refetchSpec = createSpec(\r\n fetchRequestContract, fetchResponseContract,\r\n specTypes.REFETCH, null, environmentLookupFn\r\n);\r\n\r\nexport function useSubGeographies(dataLocator, config = {}) {\r\n const dataRefId = useDataRefId(null, environmentLookupFn);\r\n\r\n const defaultConfig = useMemo(() => ({\r\n fetch: config.fetch || {},\r\n refetch: config.refetch || {},\r\n }), [config]);\r\n\r\n const { fetch: fetchConfig, refetch } = defaultConfig;\r\n\r\n const [data, error] = useFetch(dataRefId, fetchSpec, dataLocator, fetchConfig);\r\n const refetchFn = useRefetch(dataRefId, refetchSpec, refetch);\r\n\r\n const read = useCallback((param = {}, requestConfig) => {\r\n refetchFn({\r\n variables: { ...dataLocator, ...param.variables },\r\n }, requestConfig);\r\n }, [dataLocator, refetchFn]);\r\n\r\n return [{ data, error }, { read }];\r\n}\r\n","import _ from 'underscore';\r\nimport queryString from 'query-string';\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { schema } from '../../../environment/schema';\r\nimport { getDefaultOptions } from '../../../request-contract-helper/index';\r\n\r\nfunction ccUrlFactory(params) {\r\n const { variables } = params;\r\n\r\n const {\r\n locator,\r\n } = variables;\r\n\r\n const { descriptor } = locator;\r\n const { uid, cid } = descriptor;\r\n\r\n const search = {\r\n uid,\r\n cid,\r\n };\r\n\r\n const searchString = _.isEmpty(search) ? '' : `?${queryString.stringify(search)}`;\r\n\r\n return `cc/API/DomainData/TimeZoneMapping${searchString}`;\r\n}\r\n\r\nfunction ccOptionsFactory() {\r\n return getDefaultOptions();\r\n}\r\n\r\nexport const fetchRequestContract = createRequestContract({\r\n schema,\r\n dataPath: 'user:customer:time_zones',\r\n verb: requestVerbs.GET,\r\n uriFactoryFn: ccUrlFactory,\r\n headerFactoryFn: ccOptionsFactory,\r\n parentKeySelector: variables => variables.locator.descriptor.cid,\r\n});\r\n\r\nexport const fetchResponseContract = createResponseContract({\r\n requestContract: fetchRequestContract,\r\n responseType: responseTypes.COLL,\r\n keySelector: timeZones => timeZones.id,\r\n processorFn: response => response,\r\n});\r\n","import { useCallback, useMemo } from 'react';\r\n\r\nimport {\r\n createSpec,\r\n specTypes,\r\n useFetch,\r\n useDataRefId,\r\n useRefetch,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport {\r\n fetchRequestContract,\r\n fetchResponseContract,\r\n} from '../spec/coll-fetch';\r\n\r\nimport { environmentLookupFn } from '../../../environment/environment-instance';\r\n\r\nconst fetchSpec = createSpec(\r\n fetchRequestContract, fetchResponseContract,\r\n specTypes.FETCH, null, environmentLookupFn\r\n);\r\nconst refetchSpec =\r\n createSpec(fetchRequestContract, fetchResponseContract, specTypes.REFETCH);\r\n\r\nexport function useTimeZones(dataLocator, config = {}) {\r\n const dataRefId = useDataRefId(null, environmentLookupFn);\r\n\r\n const defaultConfig = useMemo(() => ({\r\n fetch: config.fetch || {},\r\n refetch: config.refetch || {},\r\n }), [config]);\r\n\r\n const { fetch: fetchConfig, refetch } = defaultConfig;\r\n\r\n const [data, error] = useFetch(dataRefId, fetchSpec, dataLocator, fetchConfig);\r\n const refetchFn = useRefetch(dataRefId, refetchSpec, refetch);\r\n\r\n const read = useCallback((param = {}, requestConfig) => {\r\n refetchFn({\r\n variables: { ...dataLocator, ...param.variables },\r\n }, requestConfig);\r\n }, [dataLocator, refetchFn]);\r\n\r\n return [{ data, error }, { read }];\r\n}\r\n","import _ from 'underscore';\r\nimport queryString from 'query-string';\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { schema } from '../../../environment/schema';\r\nimport { getDefaultOptions } from '../../../request-contract-helper/index';\r\n\r\nfunction ccUrlFactory(params) {\r\n const { variables } = params;\r\n\r\n const {\r\n locator,\r\n } = variables;\r\n\r\n const { descriptor } = locator;\r\n const { uid, cid } = descriptor;\r\n\r\n const search = {\r\n uid,\r\n cid,\r\n };\r\n\r\n const searchString = _.isEmpty(search) ? '' : `?${queryString.stringify(search)}`;\r\n\r\n return `cc/API/DomainData/CountryMapping${searchString}`;\r\n}\r\n\r\nfunction ccOptionsFactory() {\r\n return getDefaultOptions();\r\n}\r\n\r\nexport const fetchRequestContract = createRequestContract({\r\n schema,\r\n dataPath: 'user:customer:countries',\r\n verb: requestVerbs.GET,\r\n uriFactoryFn: ccUrlFactory,\r\n headerFactoryFn: ccOptionsFactory,\r\n parentKeySelector: variables => variables.locator.descriptor.cid,\r\n});\r\n\r\nexport const fetchResponseContract = createResponseContract({\r\n requestContract: fetchRequestContract,\r\n responseType: responseTypes.COLL,\r\n keySelector: countries => countries.id,\r\n processorFn: response => response,\r\n});\r\n","import { useCallback, useMemo } from 'react';\r\n\r\nimport {\r\n createSpec,\r\n specTypes,\r\n useFetch,\r\n useDataRefId,\r\n useRefetch,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport {\r\n fetchRequestContract,\r\n fetchResponseContract,\r\n} from '../spec/coll-fetch';\r\nimport { environmentLookupFn } from '../../../environment/environment-instance';\r\n\r\nconst fetchSpec = createSpec(\r\n fetchRequestContract, fetchResponseContract,\r\n specTypes.FETCH, null, environmentLookupFn\r\n);\r\nconst refetchSpec = createSpec(\r\n fetchRequestContract, fetchResponseContract,\r\n specTypes.REFETCH, null, environmentLookupFn\r\n);\r\n\r\nexport function useCountries(dataLocator, config = {}) {\r\n const dataRefId = useDataRefId(null, environmentLookupFn);\r\n const defaultConfig = useMemo(() => ({\r\n fetch: config.fetch || {},\r\n refetch: config.refetch || {},\r\n }), [config]);\r\n\r\n const { fetch: fetchConfig, refetch } = defaultConfig;\r\n\r\n const [data, error] = useFetch(dataRefId, fetchSpec, dataLocator, fetchConfig);\r\n const refetchFn = useRefetch(dataRefId, refetchSpec, refetch);\r\n\r\n const read = useCallback((param = {}, requestConfig) => {\r\n refetchFn({\r\n variables: { ...dataLocator, ...param.variables },\r\n }, requestConfig);\r\n }, [dataLocator, refetchFn]);\r\n\r\n return [{ data, error }, { read }];\r\n}\r\n","import _ from 'underscore';\r\nimport queryString from 'query-string';\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { schema } from '../../../environment/schema';\r\nimport { getDefaultOptions } from '../../../request-contract-helper/index';\r\n\r\nfunction ccUrlFactory(params) {\r\n const { variables } = params;\r\n\r\n const {\r\n locator,\r\n } = variables;\r\n\r\n const { descriptor } = locator;\r\n const { uid, cid } = descriptor;\r\n\r\n const search = {\r\n uid,\r\n cid,\r\n };\r\n\r\n const searchString = _.isEmpty(search) ? '' : `?${queryString.stringify(search)}`;\r\n\r\n return `cc/API/DomainData/CurrencyMapping${searchString}`;\r\n}\r\n\r\nfunction ccOptionsFactory() {\r\n return getDefaultOptions();\r\n}\r\n\r\nexport const fetchRequestContract = createRequestContract({\r\n schema,\r\n dataPath: 'user:customer:currencies',\r\n verb: requestVerbs.GET,\r\n uriFactoryFn: ccUrlFactory,\r\n headerFactoryFn: ccOptionsFactory,\r\n parentKeySelector: variables => variables.locator.descriptor.cid,\r\n});\r\n\r\nexport const fetchResponseContract = createResponseContract({\r\n requestContract: fetchRequestContract,\r\n responseType: responseTypes.COLL,\r\n keySelector: currencies => currencies.id,\r\n processorFn: response => response,\r\n});\r\n","import { useCallback, useMemo } from 'react';\r\n\r\nimport {\r\n createSpec,\r\n specTypes,\r\n useFetch,\r\n useDataRefId,\r\n useRefetch,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport {\r\n fetchRequestContract,\r\n fetchResponseContract,\r\n} from '../spec/coll-fetch';\r\n\r\nimport { environmentLookupFn } from '../../../environment/environment-instance';\r\n\r\nconst fetchSpec = createSpec(\r\n fetchRequestContract, fetchResponseContract,\r\n specTypes.FETCH, null, environmentLookupFn\r\n);\r\nconst refetchSpec = createSpec(\r\n fetchRequestContract, fetchResponseContract,\r\n specTypes.REFETCH, null, environmentLookupFn\r\n);\r\n\r\nexport function useCurrencies(dataLocator, config = {}) {\r\n const dataRefId = useDataRefId(null, environmentLookupFn);\r\n const defaultConfig = useMemo(() => ({\r\n fetch: config.fetch || {},\r\n refetch: config.refetch || {},\r\n }), [config]);\r\n\r\n const { fetch: fetchConfig, refetch } = defaultConfig;\r\n\r\n const [data, error] = useFetch(dataRefId, fetchSpec, dataLocator, fetchConfig);\r\n const refetchFn = useRefetch(dataRefId, refetchSpec, refetch);\r\n\r\n const read = useCallback((param = {}, requestConfig) => {\r\n refetchFn({\r\n variables: { ...dataLocator, ...param.variables },\r\n }, requestConfig);\r\n }, [dataLocator, refetchFn]);\r\n\r\n return [{ data, error }, { read }];\r\n}\r\n","import _ from 'underscore';\r\nimport queryString from 'query-string';\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { schema } from '../../../environment/schema';\r\nimport { getDefaultOptions } from '../../../request-contract-helper/index';\r\n\r\nfunction ccUrlFactory(params) {\r\n const { variables } = params;\r\n\r\n const {\r\n locator,\r\n } = variables;\r\n\r\n const { descriptor } = locator;\r\n const { uid, cid } = descriptor;\r\n\r\n const search = {\r\n uid,\r\n cid,\r\n };\r\n\r\n const searchString = _.isEmpty(search) ? '' : `?${queryString.stringify(search)}`;\r\n\r\n return `cc/API/Currency/CurrencyCountriesMapping${searchString}`;\r\n}\r\n\r\nfunction ccOptionsFactory() {\r\n return getDefaultOptions();\r\n}\r\n\r\nexport const fetchRequestContract = createRequestContract({\r\n schema,\r\n dataPath: 'user:customer:currency_countries_mappings',\r\n verb: requestVerbs.GET,\r\n uriFactoryFn: ccUrlFactory,\r\n headerFactoryFn: ccOptionsFactory,\r\n parentKeySelector: variables => variables.locator.descriptor.cid,\r\n});\r\n\r\nexport const fetchResponseContract = createResponseContract({\r\n requestContract: fetchRequestContract,\r\n responseType: responseTypes.COLL,\r\n keySelector: currencyCountriesMappings => currencyCountriesMappings.currency,\r\n processorFn: response => response,\r\n});\r\n","import { useCallback, useMemo } from 'react';\r\n\r\nimport {\r\n createSpec,\r\n specTypes,\r\n useFetch,\r\n useDataRefId,\r\n useRefetch,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport {\r\n fetchRequestContract,\r\n fetchResponseContract,\r\n} from '../spec/coll-fetch';\r\n\r\nimport { environmentLookupFn } from '../../../environment/environment-instance';\r\n\r\nconst fetchSpec = createSpec(\r\n fetchRequestContract, fetchResponseContract,\r\n specTypes.FETCH, null, environmentLookupFn\r\n);\r\nconst refetchSpec = createSpec(\r\n fetchRequestContract, fetchResponseContract,\r\n specTypes.REFETCH, null, environmentLookupFn\r\n);\r\n\r\nexport function useCurrencyCountriesMappings(dataLocator, config = {}) {\r\n const dataRefId = useDataRefId(null, environmentLookupFn);\r\n\r\n const defaultConfig = useMemo(() => ({\r\n fetch: config.fetch || {},\r\n refetch: config.refetch || {},\r\n }), [config]);\r\n\r\n const { fetch: fetchConfig, refetch } = defaultConfig;\r\n\r\n const [data, error] = useFetch(dataRefId, fetchSpec, dataLocator, fetchConfig);\r\n const refetchFn = useRefetch(dataRefId, refetchSpec, refetch);\r\n\r\n const read = useCallback((param = {}, requestConfig) => {\r\n refetchFn({\r\n variables: { ...dataLocator, ...param.variables },\r\n }, requestConfig);\r\n }, [dataLocator, refetchFn]);\r\n\r\n return [{ data, error }, { read }];\r\n}\r\n","import _ from 'underscore';\r\nimport queryString from 'query-string';\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { schema } from '../../../environment/schema';\r\nimport { getDefaultOptions } from '../../../request-contract-helper/index';\r\n\r\nfunction ccUrlFactory(params) {\r\n const { variables } = params;\r\n\r\n const {\r\n locator,\r\n } = variables;\r\n\r\n const { descriptor } = locator;\r\n const { uid, cid } = descriptor;\r\n\r\n const search = {\r\n uid,\r\n cid,\r\n };\r\n\r\n const searchString = _.isEmpty(search) ? '' : `?${queryString.stringify(search)}`;\r\n\r\n return `cc/API/Currency/CountryCurrenciesMapping${searchString}`;\r\n}\r\n\r\nfunction ccOptionsFactory() {\r\n return getDefaultOptions();\r\n}\r\n\r\nexport const fetchRequestContract = createRequestContract({\r\n schema,\r\n dataPath: 'user:customer:country_currencies_mappings',\r\n verb: requestVerbs.GET,\r\n uriFactoryFn: ccUrlFactory,\r\n headerFactoryFn: ccOptionsFactory,\r\n parentKeySelector: variables => variables.locator.descriptor.cid,\r\n});\r\n\r\nexport const fetchResponseContract = createResponseContract({\r\n requestContract: fetchRequestContract,\r\n responseType: responseTypes.COLL,\r\n keySelector: countryCurrenciesMapping => countryCurrenciesMapping.country,\r\n processorFn: response => response,\r\n});\r\n","import { useCallback, useMemo } from 'react';\r\n\r\nimport {\r\n createSpec,\r\n specTypes,\r\n useFetch,\r\n useDataRefId,\r\n useRefetch,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport {\r\n fetchRequestContract,\r\n fetchResponseContract,\r\n} from '../spec/coll-fetch';\r\n\r\nimport { environmentLookupFn } from '../../../environment/environment-instance';\r\n\r\nconst fetchSpec = createSpec(\r\n fetchRequestContract, fetchResponseContract,\r\n specTypes.FETCH, null, environmentLookupFn\r\n);\r\nconst refetchSpec = createSpec(\r\n fetchRequestContract, fetchResponseContract,\r\n specTypes.REFETCH, null, environmentLookupFn\r\n);\r\n\r\nexport function useCountryCurrenciesMappings(dataLocator, config = {}) {\r\n const dataRefId = useDataRefId(null, environmentLookupFn);\r\n\r\n const defaultConfig = useMemo(() => ({\r\n fetch: config.fetch || {},\r\n refetch: config.refetch || {},\r\n }), [config]);\r\n\r\n const { fetch: fetchConfig, refetch } = defaultConfig;\r\n\r\n const [data, error] = useFetch(dataRefId, fetchSpec, dataLocator, fetchConfig);\r\n const refetchFn = useRefetch(dataRefId, refetchSpec, refetch);\r\n\r\n const read = useCallback((param = {}, requestConfig) => {\r\n refetchFn({\r\n variables: { ...dataLocator, ...param.variables },\r\n }, requestConfig);\r\n }, [dataLocator, refetchFn]);\r\n\r\n return [{ data, error }, { read }];\r\n}\r\n","import {\r\n createRequestContract,\r\n createResponseContract,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { schema } from '../../../environment/schema';\r\nimport { getDefaultOptions } from '../../../request-contract-helper/index';\r\n\r\nfunction ccUrlFactory() {\r\n return 'cc/Account/ValidateAddressAndTax';\r\n}\r\n\r\nfunction ccOptionsFactory() {\r\n return getDefaultOptions();\r\n}\r\n\r\nfunction ccPayloadFactory(params) {\r\n const { variables } = params;\r\n\r\n const {\r\n locator,\r\n address,\r\n } = variables;\r\n\r\n const { descriptor } = locator;\r\n const { uid, cid, aid } = descriptor;\r\n\r\n return {\r\n uid,\r\n customerId: cid,\r\n accountId: aid,\r\n Account: {\r\n BusinessAddress: address,\r\n },\r\n };\r\n}\r\n\r\nexport const fetchRequestContract = createRequestContract({\r\n schema,\r\n dataPath: 'user:customer:account:validate_address',\r\n verb: requestVerbs.POST,\r\n uriFactoryFn: ccUrlFactory,\r\n headerFactoryFn: ccOptionsFactory,\r\n payloadFactoryFn: ccPayloadFactory,\r\n parentKeySelector: variables => variables.locator.descriptor.aid,\r\n});\r\n\r\nexport const fetchResponseContract = createResponseContract({\r\n requestContract: fetchRequestContract,\r\n responseType: responseTypes.ENTITY,\r\n keySelector: entity => entity.OriginalAddress.BusinessName,\r\n processorFn: response => response,\r\n});\r\n","import { useCallback, useMemo } from 'react';\r\n\r\nimport {\r\n createSpec,\r\n specTypes,\r\n useFetch,\r\n useDataRefId,\r\n useRefetch,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { environmentLookupFn } from '../../../environment/environment-instance';\r\nimport {\r\n fetchRequestContract,\r\n fetchResponseContract,\r\n} from '../spec/fetch';\r\n\r\nconst fetchSpec = createSpec(\r\n fetchRequestContract, fetchResponseContract,\r\n specTypes.FETCH, null, environmentLookupFn\r\n);\r\nconst refetchSpec = createSpec(\r\n fetchRequestContract, fetchResponseContract,\r\n specTypes.REFETCH, null, environmentLookupFn\r\n);\r\n\r\nexport function useValidateAddress(dataLocator, config = {}) {\r\n const dataRefId = useDataRefId(null, environmentLookupFn);\r\n\r\n const defaultConfig = useMemo(() => ({\r\n fetch: config.fetch || {},\r\n refetch: config.refetch || {},\r\n }), [config]);\r\n\r\n const { fetch: fetchConfig, refetch } = defaultConfig;\r\n\r\n const [data, error] = useFetch(dataRefId, fetchSpec, dataLocator, fetchConfig);\r\n const refetchFn = useRefetch(dataRefId, refetchSpec, refetch);\r\n\r\n const read = useCallback((param = {}, requestConfig) => {\r\n refetchFn({\r\n variables: { ...dataLocator, ...param.variables },\r\n }, requestConfig);\r\n }, [dataLocator, refetchFn]);\r\n\r\n return [{ data, error }, { read }];\r\n}\r\n","import _ from 'underscore';\r\nimport queryString from 'query-string';\r\nimport stringify from 'json-stable-stringify';\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n FetchPolicy,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { schema } from '../../../environment/schema';\r\nimport { getDefaultOptions } from '../../../request-contract-helper/index';\r\n\r\nfunction ccUrlFactory(params) {\r\n const { variables } = params;\r\n\r\n const {\r\n isMca,\r\n isUp,\r\n noupsw,\r\n isExpertStandalone,\r\n isSubscriptionAds,\r\n isStreamlined,\r\n isPMaxLite,\r\n isChinaSignup,\r\n isFullyManagedFacebookAdAccountEnabled,\r\n isBingAdsOptional,\r\n authType,\r\n isSwitchedFromSmart,\r\n } = variables;\r\n\r\n let search = {};\r\n let prefix = '';\r\n const suffix = [];\r\n\r\n if (isMca) {\r\n search = { isMca: true };\r\n } else if (isSubscriptionAds) {\r\n prefix = 'subscription/';\r\n } else if (isUp) {\r\n search = { upse: true, noupsw };\r\n prefix = 'enhanced/';\r\n\r\n if (isFullyManagedFacebookAdAccountEnabled) {\r\n // if mfba=true, customer will be created with ManagedFacebookAdAccount DB pilot set to true\r\n search.mfba = 'true';\r\n }\r\n if (isBingAdsOptional) {\r\n suffix.push('bing-opt-out');\r\n }\r\n } else if (isChinaSignup) {\r\n prefix = 'china/';\r\n } else if (isExpertStandalone) {\r\n prefix = 'expert/';\r\n } else if (isStreamlined) {\r\n // For streamlined signup, we'll create ESC account by default\r\n // If we do need to create expert account, we'll pass search.isExpert='true'\r\n prefix = 'unified/';\r\n } else if (isPMaxLite) {\r\n prefix = 'PMaxLite/';\r\n } else if (isSwitchedFromSmart) {\r\n prefix = 'smart/';\r\n }\r\n\r\n if (!_.isEmpty(authType)) {\r\n search.idp = authType;\r\n }\r\n const searchString = _.isEmpty(search) ? '' : `?${queryString.stringify(search)}`;\r\n const suffixString = _.isEmpty(suffix) ? '' : suffix.join('&');\r\n\r\n const searchAndSuffixString = searchString ? `${searchString}&${suffixString}` : `?${suffixString}`;\r\n\r\n return `${prefix}Signup/CustomerAccountUserSignup${searchAndSuffixString}`;\r\n}\r\n\r\nfunction ccOptionsFactory(params) {\r\n const { data } = params;\r\n const defaultOptions = getDefaultOptions();\r\n return {\r\n ...defaultOptions,\r\n headers: {\r\n 'X-Requested-With': 'XMLHttpRequest',\r\n },\r\n contentType: 'application/x-www-form-urlencoded',\r\n data,\r\n };\r\n}\r\n\r\nexport const fetchRequestContract = createRequestContract({\r\n schema,\r\n dataPath: 'sign_up',\r\n verb: requestVerbs.POST,\r\n fetchPolicy: FetchPolicy.NetworkOnly,\r\n uriFactoryFn: ccUrlFactory,\r\n headerFactoryFn: ccOptionsFactory,\r\n parentKeySelector: variables => stringify(variables),\r\n});\r\n\r\nexport const fetchResponseContract = createResponseContract({\r\n requestContract: fetchRequestContract,\r\n responseType: responseTypes.ENTITY,\r\n keySelector: entity => stringify(entity),\r\n processorFn: response => response,\r\n});\r\n","import { useCallback, useMemo } from 'react';\r\n\r\nimport {\r\n createSpec,\r\n specTypes,\r\n useFetch,\r\n useDataRefId,\r\n useRefetch,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport {\r\n fetchRequestContract,\r\n fetchResponseContract,\r\n} from '../spec/fetch';\r\nimport { environmentLookupFn } from '../../../environment/environment-instance';\r\n\r\nconst fetchSpec = createSpec(\r\n fetchRequestContract, fetchResponseContract,\r\n specTypes.FETCH, null, environmentLookupFn\r\n);\r\nconst refetchSpec = createSpec(\r\n fetchRequestContract, fetchResponseContract,\r\n specTypes.REFETCH, null, environmentLookupFn\r\n);\r\n\r\nexport function useSignUp(dataLocator, config = {}) {\r\n const dataRefId = useDataRefId(null, environmentLookupFn);\r\n const defaultConfig = useMemo(() => ({\r\n fetch: config.fetch || {},\r\n refetch: config.refetch || {},\r\n }), [config]);\r\n const { fetch: fetchConfig, refetch: refetchConfig } = defaultConfig;\r\n const [data, error] = useFetch(dataRefId, fetchSpec, dataLocator, fetchConfig);\r\n\r\n const refetchFn = useRefetch(dataRefId, refetchSpec, refetchConfig);\r\n\r\n const read = useCallback((param = {}, requestConfig) => {\r\n refetchFn({\r\n variables: { ...dataLocator, ...param.variables },\r\n payload: { ...param.data },\r\n }, requestConfig);\r\n }, [dataLocator, refetchFn]);\r\n\r\n return [{ data, error }, { read }];\r\n}\r\n","import _ from 'underscore';\r\nimport queryString from 'query-string';\r\nimport stringify from 'json-stable-stringify';\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { schema } from '../../../environment/schema';\r\nimport { getDefaultOptions } from '../../../request-contract-helper/index';\r\n\r\nfunction ccUrlFactory(params) {\r\n const { variables } = params;\r\n\r\n const {\r\n locator,\r\n totalAmount,\r\n isTaxIncluded,\r\n } = variables;\r\n\r\n const { descriptor } = locator;\r\n const { uid, cid, aid } = descriptor;\r\n\r\n const search = {\r\n uid,\r\n cid,\r\n accountId: aid,\r\n totalAmount,\r\n isTaxIncluded,\r\n };\r\n\r\n const searchString = _.isEmpty(search) ? '' : `?${queryString.stringify(search)}`;\r\n\r\n return `cc/API/Billing/EstimateTaxesAllPayments${searchString}`;\r\n}\r\n\r\nfunction ccOptionsFactory() {\r\n return getDefaultOptions();\r\n}\r\n\r\nexport const fetchRequestContract = createRequestContract({\r\n schema,\r\n dataPath: 'user:customer:account:estimate_taxes',\r\n verb: requestVerbs.GET,\r\n uriFactoryFn: ccUrlFactory,\r\n headerFactoryFn: ccOptionsFactory,\r\n parentKeySelector: variables => variables.locator.descriptor.aid,\r\n});\r\n\r\nexport const fetchResponseContract = createResponseContract({\r\n requestContract: fetchRequestContract,\r\n responseType: responseTypes.COLL,\r\n keySelector: estimateTaxes => stringify(estimateTaxes),\r\n processorFn: response => response,\r\n});\r\n","import { useCallback, useMemo } from 'react';\r\n\r\nimport {\r\n createSpec,\r\n specTypes,\r\n useFetch,\r\n useDataRefId,\r\n useRefetch,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport {\r\n fetchRequestContract,\r\n fetchResponseContract,\r\n} from '../spec/fetch';\r\nimport { environmentLookupFn } from '../../../environment/environment-instance';\r\n\r\nconst fetchSpec = createSpec(\r\n fetchRequestContract, fetchResponseContract,\r\n specTypes.FETCH, null, environmentLookupFn\r\n);\r\nconst refetchSpec = createSpec(\r\n fetchRequestContract, fetchResponseContract,\r\n specTypes.REFETCH, null, environmentLookupFn\r\n);\r\n\r\nexport function useEstimateTaxes(dataLocator, config = {}) {\r\n const dataRefId = useDataRefId(null, environmentLookupFn);\r\n\r\n const defaultConfig = useMemo(() => ({\r\n fetch: config.fetch || {},\r\n refetch: config.refetch || {},\r\n }), [config]);\r\n\r\n const { fetch: fetchConfig, refetch } = defaultConfig;\r\n\r\n const [data, error] = useFetch(dataRefId, fetchSpec, dataLocator, fetchConfig);\r\n const refetchFn = useRefetch(dataRefId, refetchSpec, refetch);\r\n\r\n const read = useCallback((param = {}, requestConfig) => {\r\n refetchFn({\r\n variables: { ...dataLocator, ...param.variables },\r\n }, requestConfig);\r\n }, [dataLocator, refetchFn]);\r\n\r\n return [{ data, error }, { read }];\r\n}\r\n","import _ from 'underscore';\r\nimport queryString from 'query-string';\r\nimport stringify from 'json-stable-stringify';\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { schema } from '../../../environment/schema';\r\nimport { getDefaultOptions } from '../../../request-contract-helper/index';\r\n\r\nfunction ccUrlFactory(params) {\r\n const { variables } = params;\r\n\r\n const {\r\n locator,\r\n } = variables;\r\n\r\n const { descriptor } = locator;\r\n const { uid, cid, aid } = descriptor;\r\n\r\n const search = {\r\n uid,\r\n cid,\r\n accountId: aid,\r\n customerId: cid,\r\n };\r\n\r\n const searchString = _.isEmpty(search) ? '' : `?${queryString.stringify(search)}`;\r\n\r\n return `cc/API/PaymentUtility/TopUpLimit${searchString}`;\r\n}\r\n\r\nfunction ccOptionsFactory() {\r\n return getDefaultOptions();\r\n}\r\n\r\nexport const fetchRequestContract = createRequestContract({\r\n schema,\r\n dataPath: 'user:customer:account:top_up_limit',\r\n verb: requestVerbs.GET,\r\n uriFactoryFn: ccUrlFactory,\r\n headerFactoryFn: ccOptionsFactory,\r\n parentKeySelector: variables => variables.locator.descriptor.aid,\r\n});\r\n\r\nexport const fetchResponseContract = createResponseContract({\r\n requestContract: fetchRequestContract,\r\n responseType: responseTypes.COLL,\r\n keySelector: topUpLimit => stringify(topUpLimit),\r\n processorFn: response => response,\r\n});\r\n","import { useCallback, useMemo } from 'react';\r\n\r\nimport {\r\n createSpec,\r\n specTypes,\r\n useFetch,\r\n useDataRefId,\r\n useRefetch,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport {\r\n fetchRequestContract,\r\n fetchResponseContract,\r\n} from '../spec/fetch';\r\nimport { environmentLookupFn } from '../../../environment/environment-instance';\r\n\r\nconst fetchSpec = createSpec(\r\n fetchRequestContract, fetchResponseContract,\r\n specTypes.FETCH, null, environmentLookupFn\r\n);\r\nconst refetchSpec = createSpec(\r\n fetchRequestContract, fetchResponseContract,\r\n specTypes.REFETCH, null, environmentLookupFn\r\n);\r\n\r\nexport function useTopUpLimit(dataLocator, config = {}) {\r\n const dataRefId = useDataRefId(null, environmentLookupFn);\r\n\r\n const defaultConfig = useMemo(() => ({\r\n fetch: config.fetch || {},\r\n refetch: config.refetch || {},\r\n }), [config]);\r\n\r\n const { fetch: fetchConfig, refetch } = defaultConfig;\r\n\r\n const [data, error] = useFetch(dataRefId, fetchSpec, dataLocator, fetchConfig);\r\n const refetchFn = useRefetch(dataRefId, refetchSpec, refetch);\r\n\r\n const read = useCallback((param = {}, requestConfig) => {\r\n refetchFn({\r\n variables: { ...dataLocator, ...param.variables },\r\n }, requestConfig);\r\n }, [dataLocator, refetchFn]);\r\n\r\n return [{ data, error }, { read }];\r\n}\r\n","import _ from 'underscore';\r\nimport queryString from 'query-string';\r\nimport stringify from 'json-stable-stringify';\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { schema } from '../../../environment/schema';\r\nimport { getDefaultOptions } from '../../../request-contract-helper/index';\r\n\r\nfunction ccUrlFactory(params) {\r\n const { variables } = params;\r\n\r\n const {\r\n locator,\r\n currencyCode,\r\n countryCode,\r\n } = variables;\r\n\r\n const { descriptor } = locator;\r\n const { uid, cid } = descriptor;\r\n\r\n const search = {\r\n uid,\r\n cid,\r\n currencyCode,\r\n countryCode,\r\n };\r\n\r\n const searchString = _.isEmpty(search) ? '' : `?${queryString.stringify(search)}`;\r\n\r\n return `cc/Payment/OfflinePaymentInstructions${searchString}`;\r\n}\r\n\r\nfunction ccOptionsFactory() {\r\n return getDefaultOptions();\r\n}\r\n\r\nexport const fetchRequestContract = createRequestContract({\r\n schema,\r\n dataPath: 'user:customer:offline_payment_instructions',\r\n verb: requestVerbs.GET,\r\n uriFactoryFn: ccUrlFactory,\r\n headerFactoryFn: ccOptionsFactory,\r\n parentKeySelector: variables => variables.locator.descriptor.cid,\r\n});\r\n\r\nexport const fetchResponseContract = createResponseContract({\r\n requestContract: fetchRequestContract,\r\n responseType: responseTypes.COLL,\r\n keySelector: OfflinePaymentInstructions => stringify(OfflinePaymentInstructions),\r\n processorFn: response => response,\r\n});\r\n","import { useCallback, useMemo } from 'react';\r\n\r\nimport {\r\n createSpec,\r\n specTypes,\r\n useFetch,\r\n useDataRefId,\r\n useRefetch,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport {\r\n fetchRequestContract,\r\n fetchResponseContract,\r\n} from '../spec/fetch';\r\nimport { environmentLookupFn } from '../../../environment/environment-instance';\r\n\r\nconst fetchSpec = createSpec(\r\n fetchRequestContract, fetchResponseContract,\r\n specTypes.FETCH, null, environmentLookupFn\r\n);\r\nconst refetchSpec = createSpec(\r\n fetchRequestContract, fetchResponseContract,\r\n specTypes.REFETCH, null, environmentLookupFn\r\n);\r\n\r\nexport function useOfflinePaymentInstructions(dataLocator, config = {}) {\r\n const dataRefId = useDataRefId(null, environmentLookupFn);\r\n\r\n const defaultConfig = useMemo(() => ({\r\n fetch: config.fetch || {},\r\n refetch: config.refetch || {},\r\n }), [config]);\r\n\r\n const { fetch: fetchConfig, refetch } = defaultConfig;\r\n\r\n const [data, error] = useFetch(dataRefId, fetchSpec, dataLocator, fetchConfig);\r\n const refetchFn = useRefetch(dataRefId, refetchSpec, refetch);\r\n\r\n const read = useCallback((param = {}, requestConfig) => {\r\n refetchFn({\r\n variables: { ...dataLocator, ...param.variables },\r\n }, requestConfig);\r\n }, [dataLocator, refetchFn]);\r\n\r\n return [{ data, error }, { read }];\r\n}\r\n","import _ from 'underscore';\r\nimport queryString from 'query-string';\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { schema } from '../../../environment/schema';\r\nimport { getDefaultOptions } from '../../../request-contract-helper/index';\r\n\r\nfunction ccUrlFactory(params) {\r\n const { variables } = params;\r\n\r\n const {\r\n locator,\r\n } = variables;\r\n\r\n const { descriptor } = locator;\r\n const { uid, cid, aid } = descriptor;\r\n\r\n const search = {\r\n uid,\r\n cid,\r\n accountId: aid,\r\n };\r\n\r\n const searchString = _.isEmpty(search) ? '' : `?${queryString.stringify(search)}`;\r\n\r\n return `cc/API/Account/CreateExpertFromSmart${searchString}`;\r\n}\r\n\r\nfunction ccOptionsFactory() {\r\n const defaultOptions = getDefaultOptions();\r\n return {\r\n ...defaultOptions,\r\n headers: {\r\n 'X-Requested-With': 'XMLHttpRequest',\r\n },\r\n };\r\n}\r\n\r\nexport const fetchRequestContract = createRequestContract({\r\n schema,\r\n dataPath: 'user:customer:account:create_expert_from_smart',\r\n verb: requestVerbs.POST,\r\n uriFactoryFn: ccUrlFactory,\r\n headerFactoryFn: ccOptionsFactory,\r\n parentKeySelector: variables => variables.locator.descriptor.aid,\r\n});\r\n\r\nexport const fetchResponseContract = createResponseContract({\r\n requestContract: fetchRequestContract,\r\n responseType: responseTypes.ENTITY,\r\n keySelector: entity => entity.id,\r\n processorFn: response => response,\r\n});\r\n","import { useCallback, useMemo } from 'react';\r\n\r\nimport {\r\n createSpec,\r\n specTypes,\r\n useFetch,\r\n useDataRefId,\r\n useRefetch,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport {\r\n fetchRequestContract,\r\n fetchResponseContract,\r\n} from '../spec/fetch';\r\nimport { environmentLookupFn } from '../../../environment/environment-instance';\r\n\r\nconst fetchSpec = createSpec(\r\n fetchRequestContract, fetchResponseContract,\r\n specTypes.FETCH, null, environmentLookupFn\r\n);\r\nconst refetchSpec = createSpec(\r\n fetchRequestContract, fetchResponseContract,\r\n specTypes.REFETCH, null, environmentLookupFn\r\n);\r\n\r\nexport function useCreateExpertFromSmart(dataLocator, config = {}) {\r\n const dataRefId = useDataRefId(null, environmentLookupFn);\r\n const defaultConfig = useMemo(() => ({\r\n fetch: config.fetch || {},\r\n refetch: config.refetch || {},\r\n }), [config]);\r\n const { fetch: fetchConfig, refetch: refetchConfig } = defaultConfig;\r\n const [data, error] = useFetch(dataRefId, fetchSpec, dataLocator, fetchConfig);\r\n\r\n const refetchFn = useRefetch(dataRefId, refetchSpec, refetchConfig);\r\n\r\n const read = useCallback((param = {}, requestConfig) => {\r\n refetchFn({\r\n variables: { ...dataLocator, ...param.variables },\r\n }, requestConfig);\r\n }, [dataLocator, refetchFn]);\r\n\r\n return [{ data, error }, { read }];\r\n}\r\n","import _ from 'underscore';\r\nimport queryString from 'query-string';\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n FetchPolicy,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { schema } from '../../../environment/schema';\r\nimport { getDefaultOptions } from '../../../request-contract-helper/index';\r\n\r\nfunction ccUrlFactory(params) {\r\n const { variables } = params;\r\n\r\n const {\r\n locator,\r\n Id,\r\n } = variables;\r\n\r\n const { descriptor } = locator;\r\n const { uid, cid } = descriptor;\r\n\r\n const search = {\r\n Id,\r\n cid,\r\n uid,\r\n };\r\n\r\n const searchString = _.isEmpty(search) ? '' : `?${queryString.stringify(search)}`;\r\n\r\n return `cc/API/PaymentInstrument${searchString}`;\r\n}\r\n\r\nfunction ccOptionsFactory() {\r\n return getDefaultOptions();\r\n}\r\n\r\nexport const fetchRequestContract = createRequestContract({\r\n schema,\r\n dataPath: 'user:customer:payment_instrument',\r\n verb: requestVerbs.GET,\r\n fetchPolicy: FetchPolicy.StoreOrNetwork,\r\n uriFactoryFn: ccUrlFactory,\r\n headerFactoryFn: ccOptionsFactory,\r\n keySelector: variables => variables.Id,\r\n parentKeySelector: variables => variables.locator.descriptor.cid,\r\n});\r\n\r\nexport const fetchResponseContract = createResponseContract({\r\n requestContract: fetchRequestContract,\r\n responseType: responseTypes.ENTITY,\r\n keySelector: paymentInstrument => paymentInstrument.Id,\r\n processorFn: response => response,\r\n});\r\n\r\n","import { useCallback, useMemo } from 'react';\r\n\r\nimport {\r\n createSpec,\r\n specTypes,\r\n useFetch,\r\n useDataRefId,\r\n useRefetch,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { environmentLookupFn } from '../../../environment/environment-instance';\r\nimport {\r\n fetchRequestContract,\r\n fetchResponseContract,\r\n} from '../spec/fetch';\r\n\r\nconst fetchSpec = createSpec(\r\n fetchRequestContract, fetchResponseContract,\r\n specTypes.FETCH, null, environmentLookupFn\r\n);\r\nconst refetchSpec = createSpec(\r\n fetchRequestContract, fetchResponseContract,\r\n specTypes.REFETCH, null, environmentLookupFn\r\n);\r\n\r\nconst DEFAULT_CONFIG = {};\r\n\r\nexport function usePaymentInstrument(dataLocator, config = DEFAULT_CONFIG) {\r\n const dataRefId = useDataRefId(null, environmentLookupFn);\r\n\r\n const defaultConfig = useMemo(() => ({\r\n fetch: config.fetch || {},\r\n refetch: config.refetch || {},\r\n }), [config]);\r\n\r\n const { fetch: fetchConfig, refetch } = defaultConfig;\r\n\r\n const [data, error] = useFetch(dataRefId, fetchSpec, dataLocator, fetchConfig);\r\n const refetchFn = useRefetch(dataRefId, refetchSpec, refetch);\r\n\r\n const read = useCallback((param = {}, requestConfig) => {\r\n refetchFn({\r\n variables: { ...dataLocator, ...param.variables },\r\n }, requestConfig);\r\n }, [dataLocator, refetchFn]);\r\n\r\n return [{ data, error }, { read }];\r\n}\r\n","import _ from 'underscore';\r\nimport queryString from 'query-string';\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n FetchPolicy,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { schema } from '../../../environment/schema';\r\nimport { getDefaultOptions } from '../../../request-contract-helper/index';\r\n\r\nfunction ccUrlFactory(params) {\r\n const { variables } = params;\r\n\r\n const {\r\n locator,\r\n ccl,\r\n cco,\r\n } = variables;\r\n\r\n const { descriptor } = locator;\r\n const { uid, cid } = descriptor;\r\n\r\n let search = {\r\n cid,\r\n uid,\r\n };\r\n if (ccl) {\r\n search = {\r\n ...search,\r\n ccl,\r\n };\r\n }\r\n if (cco) {\r\n search = {\r\n ...search,\r\n cco,\r\n };\r\n }\r\n\r\n const searchString = _.isEmpty(search) ? '' : `?${queryString.stringify(search)}`;\r\n\r\n return `cc/API/Coupon/GetCouponDetails${searchString}`;\r\n}\r\n\r\nfunction ccOptionsFactory() {\r\n return getDefaultOptions();\r\n}\r\n\r\nexport const fetchRequestContract = createRequestContract({\r\n schema,\r\n dataPath: 'user:customer:get_coupon_details',\r\n verb: requestVerbs.GET,\r\n fetchPolicy: FetchPolicy.NetworkOnly,\r\n uriFactoryFn: ccUrlFactory,\r\n headerFactoryFn: ccOptionsFactory,\r\n parentKeySelector: variables => variables.locator.descriptor.cid,\r\n});\r\n\r\nexport const fetchResponseContract = createResponseContract({\r\n requestContract: fetchRequestContract,\r\n responseType: responseTypes.COLL,\r\n keySelector: coupon => coupon.id,\r\n processorFn: response => response,\r\n});\r\n\r\n","import { useCallback, useMemo } from 'react';\r\n\r\nimport {\r\n createSpec,\r\n specTypes,\r\n useFetch,\r\n useDataRefId,\r\n useRefetch,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { environmentLookupFn } from '../../../environment/environment-instance';\r\nimport {\r\n fetchRequestContract,\r\n fetchResponseContract,\r\n} from '../spec/fetch';\r\n\r\nconst fetchSpec = createSpec(\r\n fetchRequestContract, fetchResponseContract,\r\n specTypes.FETCH, null, environmentLookupFn\r\n);\r\nconst refetchSpec = createSpec(\r\n fetchRequestContract, fetchResponseContract,\r\n specTypes.REFETCH, null, environmentLookupFn\r\n);\r\n\r\nconst DEFAULT_CONFIG = {};\r\n\r\nexport function useGetCouponDetails(dataLocator, config = DEFAULT_CONFIG) {\r\n const dataRefId = useDataRefId(null, environmentLookupFn);\r\n\r\n const defaultConfig = useMemo(() => ({\r\n fetch: config.fetch || {},\r\n refetch: config.refetch || {},\r\n }), [config]);\r\n\r\n const { fetch: fetchConfig, refetch } = defaultConfig;\r\n\r\n const [data, error] = useFetch(dataRefId, fetchSpec, dataLocator, fetchConfig);\r\n const refetchFn = useRefetch(dataRefId, refetchSpec, refetch);\r\n\r\n const read = useCallback((param = {}, requestConfig, ...rest) => {\r\n refetchFn({\r\n variables: { ...dataLocator, ...param.variables },\r\n }, requestConfig, ...rest);\r\n }, [dataLocator, refetchFn]);\r\n\r\n return [{ data, error }, { read }];\r\n}\r\n","import _ from 'underscore';\r\nimport queryString from 'query-string';\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n FetchPolicy,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { schema } from '../../../environment/schema';\r\nimport { getDefaultOptions } from '../../../request-contract-helper/index';\r\n\r\nfunction ccUrlFactory(params) {\r\n const { variables } = params;\r\n\r\n const {\r\n locator,\r\n } = variables;\r\n\r\n const { descriptor } = locator;\r\n const { uid, cid } = descriptor;\r\n\r\n const search = {\r\n cid,\r\n uid,\r\n };\r\n\r\n const searchString = _.isEmpty(search) ? '' : `?${queryString.stringify(search)}`;\r\n\r\n return `cc/API/Coupon/GetCouponStringForSignup${searchString}`;\r\n}\r\n\r\nfunction ccOptionsFactory() {\r\n return getDefaultOptions();\r\n}\r\n\r\nexport const fetchRequestContract = createRequestContract({\r\n schema,\r\n dataPath: 'user:customer:get_coupon_string_for_signup',\r\n verb: requestVerbs.GET,\r\n fetchPolicy: FetchPolicy.NetworkOnly,\r\n uriFactoryFn: ccUrlFactory,\r\n headerFactoryFn: ccOptionsFactory,\r\n parentKeySelector: variables => variables.locator.descriptor.cid,\r\n});\r\n\r\nexport const fetchResponseContract = createResponseContract({\r\n requestContract: fetchRequestContract,\r\n responseType: responseTypes.COLL,\r\n keySelector: coupon => coupon.id,\r\n processorFn: response => response,\r\n});\r\n\r\n","import { useCallback, useMemo } from 'react';\r\n\r\nimport {\r\n createSpec,\r\n specTypes,\r\n useFetch,\r\n useDataRefId,\r\n useRefetch,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { environmentLookupFn } from '../../../environment/environment-instance';\r\nimport {\r\n fetchRequestContract,\r\n fetchResponseContract,\r\n} from '../spec/fetch';\r\n\r\nconst fetchSpec = createSpec(\r\n fetchRequestContract, fetchResponseContract,\r\n specTypes.FETCH, null, environmentLookupFn\r\n);\r\nconst refetchSpec = createSpec(\r\n fetchRequestContract, fetchResponseContract,\r\n specTypes.REFETCH, null, environmentLookupFn\r\n);\r\n\r\nconst DEFAULT_CONFIG = {};\r\n\r\nexport function useGetCouponStringForSignup(dataLocator, config = DEFAULT_CONFIG) {\r\n const dataRefId = useDataRefId(null, environmentLookupFn);\r\n\r\n const defaultConfig = useMemo(() => ({\r\n fetch: config.fetch || {},\r\n refetch: config.refetch || {},\r\n }), [config]);\r\n\r\n const { fetch: fetchConfig, refetch } = defaultConfig;\r\n\r\n const [data, error] = useFetch(dataRefId, fetchSpec, dataLocator, fetchConfig);\r\n const refetchFn = useRefetch(dataRefId, refetchSpec, refetch);\r\n\r\n const read = useCallback((param = {}, requestConfig, ...rest) => {\r\n refetchFn({\r\n variables: { ...dataLocator, ...param.variables },\r\n }, requestConfig, ...rest);\r\n }, [dataLocator, refetchFn]);\r\n\r\n return [{ data, error }, { read }];\r\n}\r\n","import _ from 'underscore';\r\nimport queryString from 'query-string';\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n FetchPolicy,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { schema } from '../../../environment/schema';\r\nimport { getDefaultOptions } from '../../../request-contract-helper/index';\r\n\r\nfunction ccUrlFactory(params) {\r\n const { variables } = params;\r\n\r\n const {\r\n locator,\r\n websiteUrl,\r\n } = variables;\r\n\r\n const { descriptor } = locator;\r\n const { uid, cid } = descriptor;\r\n\r\n const search = {\r\n cid,\r\n uid,\r\n websiteUrl,\r\n };\r\n\r\n const searchString = _.isEmpty(search) ? '' : `?${queryString.stringify(search)}`;\r\n\r\n return `cc/API/Coupon/GetCouponValidForCustomerWebsite${searchString}`;\r\n}\r\n\r\nfunction ccOptionsFactory() {\r\n return getDefaultOptions();\r\n}\r\n\r\nexport const fetchRequestContract = createRequestContract({\r\n schema,\r\n dataPath: 'user:customer:get_coupon_valid_for_customer_website',\r\n verb: requestVerbs.GET,\r\n fetchPolicy: FetchPolicy.NetworkOnly,\r\n uriFactoryFn: ccUrlFactory,\r\n headerFactoryFn: ccOptionsFactory,\r\n parentKeySelector: variables => variables.locator.descriptor.cid,\r\n});\r\n\r\nexport const fetchResponseContract = createResponseContract({\r\n requestContract: fetchRequestContract,\r\n responseType: responseTypes.COLL,\r\n keySelector: result => result.websiteURL,\r\n processorFn: response => response,\r\n});\r\n\r\n","import { useCallback, useMemo } from 'react';\r\n\r\nimport {\r\n createSpec,\r\n specTypes,\r\n useFetch,\r\n useDataRefId,\r\n useRefetch,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { environmentLookupFn } from '../../../environment/environment-instance';\r\nimport {\r\n fetchRequestContract,\r\n fetchResponseContract,\r\n} from '../spec/fetch';\r\n\r\nconst fetchSpec = createSpec(\r\n fetchRequestContract, fetchResponseContract,\r\n specTypes.FETCH, null, environmentLookupFn\r\n);\r\nconst refetchSpec = createSpec(\r\n fetchRequestContract, fetchResponseContract,\r\n specTypes.REFETCH, null, environmentLookupFn\r\n);\r\n\r\nconst DEFAULT_CONFIG = {};\r\n\r\nexport function useGetCouponValidForCustomerWebsite(dataLocator, config = DEFAULT_CONFIG) {\r\n const dataRefId = useDataRefId(null, environmentLookupFn);\r\n\r\n const defaultConfig = useMemo(() => ({\r\n fetch: config.fetch || {},\r\n refetch: config.refetch || {},\r\n }), [config]);\r\n\r\n const { fetch: fetchConfig, refetch } = defaultConfig;\r\n\r\n const [data, error] = useFetch(dataRefId, fetchSpec, dataLocator, fetchConfig);\r\n const refetchFn = useRefetch(dataRefId, refetchSpec, refetch);\r\n\r\n const read = useCallback((param = {}, requestConfig, ...rest) => {\r\n refetchFn({\r\n variables: { ...dataLocator, ...param.variables },\r\n }, requestConfig, ...rest);\r\n }, [dataLocator, refetchFn]);\r\n\r\n return [{ data, error }, { read }];\r\n}\r\n","import _ from 'underscore';\r\nimport queryString from 'query-string';\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n FetchPolicy,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { schema } from '../../../environment/schema';\r\nimport { getDefaultOptions } from '../../../request-contract-helper/index';\r\n\r\nfunction ccUrlFactory(params) {\r\n const { variables } = params;\r\n\r\n const {\r\n locator,\r\n id,\r\n } = variables;\r\n\r\n const { descriptor } = locator;\r\n const { uid, cid } = descriptor;\r\n\r\n const search = {\r\n cid,\r\n uid,\r\n id,\r\n };\r\n\r\n const searchString = _.isEmpty(search) ? '' : `?${queryString.stringify(search)}`;\r\n\r\n return `cc/API/Coupon/SaveCouponStringForSignup${searchString}`;\r\n}\r\n\r\nfunction ccOptionsFactory() {\r\n return getDefaultOptions();\r\n}\r\n\r\nfunction ccPayloadFactory(params) {\r\n const { data } = params;\r\n return data;\r\n}\r\n\r\nexport const fetchRequestContract = createRequestContract({\r\n schema,\r\n dataPath: 'user:customer:save_coupon_string_for_signup',\r\n verb: requestVerbs.PATCH,\r\n fetchPolicy: FetchPolicy.NetworkOnly,\r\n uriFactoryFn: ccUrlFactory,\r\n headerFactoryFn: ccOptionsFactory,\r\n payloadFactoryFn: ccPayloadFactory,\r\n parentKeySelector: variables => variables.locator.descriptor.cid,\r\n});\r\n\r\nexport const fetchResponseContract = createResponseContract({\r\n requestContract: fetchRequestContract,\r\n responseType: responseTypes.COLL,\r\n keySelector: coupon => coupon.couponString,\r\n processorFn: response => response,\r\n});\r\n","import { useCallback, useMemo } from 'react';\r\n\r\nimport {\r\n createSpec,\r\n specTypes,\r\n useFetch,\r\n useDataRefId,\r\n useRefetch,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { environmentLookupFn } from '../../../environment/environment-instance';\r\nimport {\r\n fetchRequestContract,\r\n fetchResponseContract,\r\n} from '../spec/fetch';\r\n\r\nconst fetchSpec = createSpec(\r\n fetchRequestContract, fetchResponseContract,\r\n specTypes.FETCH, null, environmentLookupFn\r\n);\r\nconst refetchSpec = createSpec(\r\n fetchRequestContract, fetchResponseContract,\r\n specTypes.REFETCH, null, environmentLookupFn\r\n);\r\n\r\nconst DEFAULT_CONFIG = {};\r\n\r\nexport function useSaveCouponStringForSignup(dataLocator, config = DEFAULT_CONFIG) {\r\n const dataRefId = useDataRefId(null, environmentLookupFn);\r\n\r\n const defaultConfig = useMemo(() => ({\r\n fetch: config.fetch || {},\r\n refetch: config.refetch || {},\r\n }), [config]);\r\n\r\n const { fetch: fetchConfig, refetch } = defaultConfig;\r\n\r\n const [data, error] = useFetch(dataRefId, fetchSpec, dataLocator, fetchConfig);\r\n const refetchFn = useRefetch(dataRefId, refetchSpec, refetch);\r\n\r\n const update = useCallback((param = {}, requestConfig, ...rest) => {\r\n refetchFn({\r\n variables: { ...dataLocator, ...param.variables },\r\n payload: { ...param.data },\r\n }, requestConfig, ...rest);\r\n }, [dataLocator, refetchFn]);\r\n\r\n return [{ data, error }, { update }];\r\n}\r\n","import _ from 'underscore';\r\nimport queryString from 'query-string';\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { schema } from '../../../environment/schema';\r\nimport { getDefaultOptions } from '../../../request-contract-helper/index';\r\n\r\nfunction ccUrlFactory(params) {\r\n const { variables } = params;\r\n\r\n const {\r\n locator,\r\n } = variables;\r\n\r\n const { descriptor } = locator;\r\n const { uid, cid } = descriptor;\r\n\r\n const search = {\r\n uid,\r\n cid,\r\n };\r\n\r\n const searchString = _.isEmpty(search) ? '' : `?${queryString.stringify(search)}`;\r\n\r\n return `cc/API/TimeZone/GetTimeZonesPerCountry${searchString}`;\r\n}\r\n\r\nfunction ccOptionsFactory() {\r\n return getDefaultOptions();\r\n}\r\n\r\nexport const fetchRequestContract = createRequestContract({\r\n schema,\r\n dataPath: 'user:customer:country_timezones_mapping',\r\n verb: requestVerbs.GET,\r\n uriFactoryFn: ccUrlFactory,\r\n headerFactoryFn: ccOptionsFactory,\r\n parentKeySelector: variables => variables.locator.descriptor.cid,\r\n});\r\n\r\nexport const fetchResponseContract = createResponseContract({\r\n requestContract: fetchRequestContract,\r\n responseType: responseTypes.COLL,\r\n keySelector: timeZones => timeZones.country,\r\n processorFn: response => response,\r\n});\r\n","import { useCallback, useMemo } from 'react';\r\n\r\nimport {\r\n createSpec,\r\n specTypes,\r\n useFetch,\r\n useDataRefId,\r\n useRefetch,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport {\r\n fetchRequestContract,\r\n fetchResponseContract,\r\n} from '../spec/coll-fetch';\r\n\r\nimport { environmentLookupFn } from '../../../environment/environment-instance';\r\n\r\nconst fetchSpec = createSpec(\r\n fetchRequestContract, fetchResponseContract,\r\n specTypes.FETCH, null, environmentLookupFn\r\n);\r\nconst refetchSpec =\r\n createSpec(fetchRequestContract, fetchResponseContract, specTypes.REFETCH);\r\n\r\nexport function useCountryTimeZonesMapping(dataLocator, config = {}) {\r\n const dataRefId = useDataRefId(null, environmentLookupFn);\r\n\r\n const defaultConfig = useMemo(() => ({\r\n fetch: config.fetch || {},\r\n refetch: config.refetch || {},\r\n }), [config]);\r\n\r\n const { fetch: fetchConfig, refetch } = defaultConfig;\r\n\r\n const [data, error] = useFetch(dataRefId, fetchSpec, dataLocator, fetchConfig);\r\n const refetchFn = useRefetch(dataRefId, refetchSpec, refetch);\r\n\r\n const read = useCallback((param = {}, requestConfig) => {\r\n refetchFn({\r\n variables: { ...dataLocator, ...param.variables },\r\n }, requestConfig);\r\n }, [dataLocator, refetchFn]);\r\n\r\n return [{ data, error }, { read }];\r\n}\r\n","import { Schema } from '@bingads-webui-react/overreact';\r\n\r\nconst schemaToModelMapping = {\r\n customer: 'customer',\r\n account: 'account',\r\n campaign: 'campaign',\r\n audience_kpi_estimation_v2: 'audience_kpi_estimation_v2',\r\n campaign_ids_with_esc_budget_landscape: 'campaign_ids_with_esc_budget_landscape',\r\n use_esc_budget_landscape: 'use_esc_budget_landscape',\r\n};\r\n\r\nexport const schema = new Schema(schemaToModelMapping, () => {});\r\n","import { isString } from 'underscore';\r\n\r\nexport function getRequestor(serviceRoot, additionalHeader) {\r\n return function networkRequestor(uri, requestVerb, headers, body) {\r\n const url = `${serviceRoot}${uri}`;\r\n const requestHeader = {\r\n ...additionalHeader,\r\n ...headers,\r\n };\r\n\r\n return fetch(url, {\r\n method: requestVerb,\r\n headers: requestHeader,\r\n body: isString(body) ? body : JSON.stringify(body),\r\n }).then((response) => {\r\n if (isString(body)) {\r\n const reader = response.body.getReader();\r\n return reader.read().then(({ value }) => {\r\n const responseString = new TextDecoder().decode(value);\r\n return responseString;\r\n });\r\n }\r\n\r\n if (response.status === 401) {\r\n const error = {\r\n status: response.status,\r\n };\r\n throw error;\r\n } else if (response.status === 204) {\r\n return {};\r\n }\r\n\r\n // read the JSON response in the body\r\n return response.json().catch((responseJSONParseError) => {\r\n // handle JSON parsing error here\r\n const error = {\r\n status: response.status,\r\n responseJSONParseError,\r\n };\r\n throw error;\r\n }).then((responseJSON) => {\r\n if (!response.ok) {\r\n // 400/500 error with JSON body\r\n const error = {\r\n status: response.status,\r\n responseJSON,\r\n };\r\n throw error;\r\n }\r\n\r\n // normal response with JSON body\r\n return responseJSON;\r\n });\r\n });\r\n };\r\n}\r\n","import {\r\n Environment,\r\n middlewareTypes,\r\n createFetchPolicyMiddleware,\r\n createErrorMiddleware,\r\n Store,\r\n} from '@bingads-webui-react/overreact';\r\nimport { schema } from './schema';\r\n\r\nexport { getRequestor } from './requestor';\r\n\r\nexport const middlewares = {\r\n [middlewareTypes.FETCH_POLICY]: createFetchPolicyMiddleware(),\r\n [middlewareTypes.ERROR]: createErrorMiddleware(),\r\n};\r\n\r\nconst store = new Store();\r\nlet env = null;\r\n\r\nexport const AD_INSIGHT_ENVIRONMENT_TAG = 'Ad_Insight_Endpoint';\r\n\r\nexport function getEnvironmentInstance(requestor, customStore, customMiddleWares) {\r\n if (!env) {\r\n env = new Environment(\r\n requestor,\r\n schema,\r\n customStore || store,\r\n customMiddleWares || middlewares,\r\n AD_INSIGHT_ENVIRONMENT_TAG\r\n );\r\n }\r\n // allow caller to update requestor\r\n env.networkRequestor = requestor;\r\n env.middlewares = customMiddleWares || middlewares;\r\n\r\n return env;\r\n}\r\n\r\nexport function environmentLookupFn(environmentTag) {\r\n return environmentTag === AD_INSIGHT_ENVIRONMENT_TAG;\r\n}\r\n","/* eslint-disable camelcase */\r\nimport _ from 'underscore';\r\nimport queryString from 'query-string';\r\nimport stringify from 'json-stable-stringify';\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n FetchPolicy\r\n} from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nimport { schema } from '../../../environment/schema';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n\r\n const { locator } = variables;\r\n const { descriptor } = locator;\r\n const {\r\n customer_id,\r\n account_id,\r\n } = descriptor;\r\n\r\n const initialSearch = _.omit(variables, 'locator');\r\n const searchString = _.isEmpty(initialSearch) ? '' : `?${queryString.stringify(initialSearch)}`;\r\n\r\n return `/Customers(${Number(customer_id)})/Accounts(${Number(account_id)})/Default.AudienceKPIEstimationV2${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory() {\r\n return getDefaultHeaderObj();\r\n}\r\n\r\nfunction odataPayloadFactory(params) {\r\n return params.data;\r\n}\r\n\r\nexport const fetchRequestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:audience_kpi_estimation_v2',\r\n verb: requestVerbs.POST,\r\n fetchPolicy: FetchPolicy.NetworkOnly,\r\n uriFactoryFn: odataUrlFactory,\r\n headerFactoryFn: odataHeaderFactory,\r\n payloadFactoryFn: odataPayloadFactory,\r\n keySelector: variables => stringify(variables),\r\n parentKeySelector: variables => variables.locator.descriptor.account_id,\r\n});\r\n\r\nexport const fetchResponseContract = createResponseContract({\r\n requestContract: fetchRequestContract,\r\n responseType: responseTypes.ENTITY,\r\n keySelector: r => stringify(r),\r\n processorFn: r => r,\r\n});\r\n","import { useCallback, useMemo } from 'react';\r\n\r\nimport {\r\n createSpec,\r\n specTypes,\r\n useFetch,\r\n useDataRefId,\r\n useRefetch,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { environmentLookupFn } from '../../../environment/index';\r\nimport { fetchRequestContract, fetchResponseContract } from '../spec/fetch';\r\n\r\nconst fetchSpec = createSpec(\r\n fetchRequestContract, fetchResponseContract,\r\n specTypes.FETCH, null, environmentLookupFn\r\n);\r\nconst refetchSpec = createSpec(\r\n fetchRequestContract, fetchResponseContract,\r\n specTypes.REFETCH, null, environmentLookupFn\r\n);\r\n\r\nconst DEFAULT_CONFIG = {};\r\n\r\nexport function useAudienceKPIEstimationV2(variables, config = DEFAULT_CONFIG) {\r\n const dataRefId = useDataRefId(null, environmentLookupFn);\r\n\r\n const defaultConfig = useMemo(() => ({\r\n fetch: config.fetch || {},\r\n refetch: config.refetch || {},\r\n }), [config]);\r\n\r\n const {\r\n fetch: fetchConfig,\r\n refetch: refetchConfig,\r\n } = defaultConfig;\r\n\r\n const [data, error] = useFetch(dataRefId, fetchSpec, variables, fetchConfig);\r\n const refetchFn = useRefetch(dataRefId, refetchSpec, refetchConfig);\r\n\r\n const refetch = useCallback((parameter = {}, ...rest) => {\r\n refetchFn(\r\n {\r\n variables: {\r\n ...variables,\r\n ...parameter.variables,\r\n },\r\n payload: {\r\n ...parameter.payload,\r\n },\r\n },\r\n refetchConfig,\r\n ...rest\r\n );\r\n }, [refetchFn, refetchConfig, variables]);\r\n\r\n return [{ data, error }, { refetch }];\r\n}\r\n","/* eslint-disable camelcase */\r\nimport _ from 'underscore';\r\nimport queryString from 'query-string';\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n FetchPolicy,\r\n} from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nimport { schema } from '../../../environment/schema';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n\r\n const { locator } = variables;\r\n const { descriptor } = locator;\r\n const {\r\n customer_id,\r\n account_id,\r\n } = descriptor;\r\n\r\n const initialSearch = _.omit(variables, 'locator');\r\n const searchString = _.isEmpty(initialSearch) ? '' : `?${queryString.stringify(initialSearch)}`;\r\n\r\n return `/Customers(${Number(customer_id)})/Accounts(${Number(account_id)})/Recommendation.GetCampaignIdsWithESCBudgetLandscape${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory() {\r\n return getDefaultHeaderObj();\r\n}\r\n\r\nconst CampaignIdsWithEscBudgetLandscapeDataKey = 'CampaignIdsWithEscBudgetLandscapeDataKey';\r\n\r\nexport const fetchRequestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:campaign_ids_with_esc_budget_landscape',\r\n verb: requestVerbs.GET,\r\n fetchPolicy: FetchPolicy.NetworkOnly,\r\n uriFactoryFn: odataUrlFactory,\r\n headerFactoryFn: odataHeaderFactory,\r\n keySelector: () => CampaignIdsWithEscBudgetLandscapeDataKey,\r\n parentKeySelector: variables => variables.locator.descriptor.account_id,\r\n});\r\n\r\nexport const fetchResponseContract = createResponseContract({\r\n requestContract: fetchRequestContract,\r\n responseType: responseTypes.ENTITY,\r\n // we hard code the key here to make it possible to remove invalid data cache\r\n keySelector: () => CampaignIdsWithEscBudgetLandscapeDataKey,\r\n processorFn: r => r,\r\n});\r\n","import { useCallback, useMemo } from 'react';\r\n\r\nimport {\r\n createSpec,\r\n specTypes,\r\n useFetch,\r\n useDataRefId,\r\n useRefetch,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { environmentLookupFn } from '../../../environment/index';\r\nimport { fetchRequestContract, fetchResponseContract } from '../spec/fetch';\r\n\r\nconst fetchSpec = createSpec(\r\n fetchRequestContract, fetchResponseContract,\r\n specTypes.FETCH, null, environmentLookupFn\r\n);\r\nconst refetchSpec = createSpec(\r\n fetchRequestContract, fetchResponseContract,\r\n specTypes.REFETCH, null, environmentLookupFn\r\n);\r\n\r\nconst DEFAULT_CONFIG = {};\r\n\r\nexport function useCampaignIdsWithESCBudgetLandscape(dataLocator, config = DEFAULT_CONFIG) {\r\n const dataRefId = useDataRefId(null, environmentLookupFn);\r\n const defaultConfig = useMemo(() => ({\r\n fetch: config.fetch || {},\r\n refetch: config.refetch || {},\r\n }), [config]);\r\n const { fetch: fetchConfig, refetch: refetchConfig } = defaultConfig;\r\n\r\n const fetch = useFetch(dataRefId, fetchSpec, dataLocator, fetchConfig);\r\n const refetchFn = useRefetch(dataRefId, refetchSpec, refetchConfig);\r\n\r\n const read = useCallback((param = {}, requestConfig, ...rest) => {\r\n refetchFn({\r\n variables: { ...dataLocator, ...param.variables },\r\n }, requestConfig, ...rest);\r\n }, [dataLocator, refetchFn]);\r\n\r\n const [data, error] = fetch;\r\n\r\n return [{\r\n data,\r\n error,\r\n }, {\r\n read,\r\n }];\r\n}\r\n","/* eslint-disable camelcase */\r\nimport _ from 'underscore';\r\nimport queryString from 'query-string';\r\nimport stringify from 'json-stable-stringify';\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n FetchPolicy\r\n} from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nimport { schema } from '../../../environment/schema';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n\r\n const { locator } = variables;\r\n const { descriptor } = locator;\r\n const {\r\n customer_id,\r\n account_id,\r\n campaign_id,\r\n } = descriptor;\r\n\r\n const initialSearch = _.omit(variables, 'locator');\r\n const searchString = _.isEmpty(initialSearch) ? '' : `?${queryString.stringify(initialSearch)}`;\r\n\r\n return `/Customers(${Number(customer_id)})/Accounts(${Number(account_id)})/Campaigns(${Number(campaign_id)})/Recommendation.GetESCBudgetLandscape${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory() {\r\n return getDefaultHeaderObj();\r\n}\r\n\r\nexport const fetchRequestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:campaign:use_esc_budget_landscape',\r\n verb: requestVerbs.GET,\r\n fetchPolicy: FetchPolicy.NetworkOnly,\r\n uriFactoryFn: odataUrlFactory,\r\n headerFactoryFn: odataHeaderFactory,\r\n keySelector: variables => stringify(variables),\r\n parentKeySelector: variables => variables.locator.descriptor.campaign_id,\r\n});\r\n\r\nexport const fetchResponseContract = createResponseContract({\r\n requestContract: fetchRequestContract,\r\n responseType: responseTypes.ENTITY,\r\n keySelector: r => stringify(r),\r\n processorFn: r => r,\r\n});\r\n","import { useCallback, useMemo } from 'react';\r\n\r\nimport {\r\n createSpec,\r\n specTypes,\r\n useFetch,\r\n useDataRefId,\r\n useRefetch,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { environmentLookupFn } from '../../../environment/index';\r\nimport { fetchRequestContract, fetchResponseContract } from '../spec/fetch';\r\n\r\nconst fetchSpec = createSpec(\r\n fetchRequestContract, fetchResponseContract,\r\n specTypes.FETCH, null, environmentLookupFn\r\n);\r\nconst refetchSpec = createSpec(\r\n fetchRequestContract, fetchResponseContract,\r\n specTypes.REFETCH, null, environmentLookupFn\r\n);\r\n\r\nconst DEFAULT_CONFIG = {};\r\n\r\nexport function useESCBudgetLandscape(dataLocator, config = DEFAULT_CONFIG) {\r\n const dataRefId = useDataRefId(null, environmentLookupFn);\r\n const defaultConfig = useMemo(() => ({\r\n fetch: config.fetch || {},\r\n refetch: config.refetch || {},\r\n }), [config]);\r\n const { fetch: fetchConfig, refetch: refetchConfig } = defaultConfig;\r\n\r\n const fetch = useFetch(dataRefId, fetchSpec, dataLocator, fetchConfig);\r\n const refetchFn = useRefetch(dataRefId, refetchSpec, refetchConfig);\r\n\r\n const read = useCallback((param = {}, requestConfig, ...rest) => {\r\n refetchFn({\r\n variables: { ...dataLocator, ...param.variables },\r\n }, requestConfig, ...rest);\r\n }, [dataLocator, refetchFn]);\r\n\r\n const [data, error] = fetch;\r\n\r\n return [{\r\n data,\r\n error,\r\n }, {\r\n read,\r\n }];\r\n}\r\n","import { v4 as uuidv4 } from 'uuid';\r\n\r\nfunction generateRequestId() {\r\n return uuidv4();\r\n}\r\n\r\nexport function getDefaultHeaderObj() {\r\n return {\r\n 'cache-control': 'no-cache',\r\n 'content-type': 'application/json',\r\n 'x-ms-lastwritetime': 'Max',\r\n 'x-ms-applicationname': 'bingadsweb',\r\n 'x-ms-requestid': generateRequestId(),\r\n };\r\n}\r\n","// TODO: make this edm as a separate package in smart project?\r\nimport _ from 'underscore';\r\nimport { EDM } from '@bingads-webui/edm-core';\r\nimport { resIdsPlugin } from '@bingads-webui/edm-resource-identifiers';\r\nimport { odataPlugin } from '@bingads-webui/edm-odata';\r\nimport { odataBulkUpsertPlugin } from '@bingads-webui/edm-bulk';\r\nimport { defineConstProperty } from '@bingads-webui/reflection';\r\nimport { schemas } from '@bingads-webui/campaign-odata-schemas';\r\nimport * as bulkUpsertSchema from '@bingads-webui/odata-bulk-upsert-config';\r\n\r\nexport const edm = new EDM({\r\n schemas: {\r\n $ROOT: {\r\n $$ref: '$ROOT',\r\n type: 'object',\r\n properties: {\r\n Customers: {\r\n type: 'array',\r\n items: schemas['Model/Customer'],\r\n },\r\n },\r\n $$ODataExtension: {\r\n Name: '$ROOT',\r\n NavigationProperty: [\r\n 'Customers',\r\n ],\r\n },\r\n },\r\n ..._.mapObject(\r\n schemas,\r\n (schema, name) => _.extend(schema, { $$ref: name })\r\n ),\r\n },\r\n});\r\n\r\nresIdsPlugin(edm);\r\n\r\nodataPlugin(edm, '' /* we don't use edm to send request so make host url empty */, {});\r\n\r\nodataBulkUpsertPlugin(edm, _.extend({}, window.campaignODataConfigs, {\r\n bulkUpsertSchema,\r\n}));\r\n\r\nconst root = edm.types.resolve('$ROOT');\r\n\r\nconst rootResourceIdentifier = new root.ResourceIdentifier();\r\ndefineConstProperty(edm, 'root', rootResourceIdentifier);\r\ndefineConstProperty(edm, 'Customers', rootResourceIdentifier.Customers);\r\n","import _ from 'underscore';\r\nimport { serialize, parse, populateIds } from '@bingads-webui/odata-bulk-upsert';\r\nimport { edm } from '../environment/edm';\r\n\r\nclass BulkError extends Error {\r\n constructor({\r\n entity,\r\n errors,\r\n }) {\r\n super();\r\n this.entity = entity;\r\n this.errors = errors;\r\n }\r\n}\r\n\r\nexport function getBulkUrl(params) {\r\n const { variables } = params;\r\n const { locator } = variables;\r\n const { descriptor } = locator;\r\n const { cid, aid } = descriptor;\r\n\r\n const entity = edm\r\n .Customers.$withKey(cid)\r\n .Accounts.$withKey(aid);\r\n\r\n return `${entity.path}/Default.BulkUpsert`;\r\n}\r\n\r\nexport function getBulkPayload(entitySchema, data) {\r\n const CsvRows = serialize(entitySchema, data);\r\n const payload = {\r\n CsvRows,\r\n };\r\n\r\n return payload;\r\n}\r\n\r\nexport function getProcessedBulkResult(response, request) {\r\n const { data } = request;\r\n const csvData = parse(response);\r\n const {\r\n results,\r\n errors,\r\n } = csvData;\r\n\r\n const ret = populateIds(results, data);\r\n\r\n if (!_.isEmpty(errors)) {\r\n throw new BulkError({\r\n entity: ret,\r\n errors,\r\n });\r\n }\r\n\r\n return Array.isArray(ret) ? ret : [ret];\r\n}\r\n","import { useMemo } from 'react';\r\nimport _ from 'underscore';\r\n\r\nconst DEFAULT_OPTIONS = {};\r\n\r\nexport const postponeReadConfig = {\r\n fetch: { postponeRead: true },\r\n};\r\n\r\nexport const usePostponeReadVariables = lookupCacheByVariables => useMemo(\r\n () => (\r\n lookupCacheByVariables ?\r\n {\r\n fetch: {\r\n postponeRead: true,\r\n lookupCacheByVariables,\r\n },\r\n refetch: {\r\n lookupCacheByVariables,\r\n },\r\n } :\r\n {\r\n fetch: {\r\n postponeRead: true,\r\n },\r\n }),\r\n [lookupCacheByVariables]\r\n);\r\n\r\nexport const useCustomerLevelVariables = ({\r\n customerId,\r\n userId,\r\n}) => useMemo(() => ({\r\n locator: {\r\n descriptor: {\r\n uid: userId,\r\n cid: customerId,\r\n customer_id: customerId,\r\n },\r\n },\r\n}), [userId, customerId]);\r\n\r\nexport const useAccountLevelVariables = ({\r\n customerId,\r\n accountId,\r\n userId,\r\n options = DEFAULT_OPTIONS,\r\n}) => useMemo(() => (_.extend({}, options, {\r\n locator: {\r\n descriptor: {\r\n uid: userId,\r\n cid: customerId,\r\n aid: accountId,\r\n customer_id: customerId,\r\n account_id: accountId,\r\n },\r\n order: ['cid', 'aid'],\r\n },\r\n})), [options, userId, customerId, accountId]);\r\n","import _ from 'underscore';\r\nimport {\r\n EDM,\r\n resIdsPlugin,\r\n defineConstProperty,\r\n} from '@bingads-webui-react/overreact-odata';\r\n\r\n// import { odataPlugin } from '@bingads-webui/edm-odata';\r\nimport { schemas } from '@bingads-webui/campaign-odata-schemas';\r\n\r\nexport const edm = new EDM({\r\n schemas: {\r\n $ROOT: {\r\n $$ref: '$ROOT',\r\n type: 'object',\r\n properties: {\r\n Customers: {\r\n type: 'array',\r\n items: schemas['Model/Customer'],\r\n },\r\n },\r\n $$ODataExtension: {\r\n Name: '$ROOT',\r\n NavigationProperty: [\r\n 'Customers',\r\n ],\r\n },\r\n },\r\n ..._.mapObject(\r\n schemas,\r\n (schema, name) => _.extend(schema, { $$ref: name })\r\n ),\r\n },\r\n});\r\n\r\nresIdsPlugin(edm);\r\n\r\n// odataPlugin(edm, '', {});\r\nconst root = edm.types.resolve('$ROOT');\r\n\r\nconst rootResourceIdentifier = new root.ResourceIdentifier();\r\ndefineConstProperty(edm, 'root', rootResourceIdentifier);\r\ndefineConstProperty(edm, 'Customers', rootResourceIdentifier.Customers);\r\n","import { Schema } from '@bingads-webui-react/overreact';\r\n\r\nimport { edm } from './edm';\r\n\r\nconst schemaToModelMapping = {\r\n customer: 'Model/Customer',\r\n account: 'Model/Account',\r\n app: 'Model/App',\r\n campaign: 'Model/Campaign',\r\n ad_group: 'Model/AdGroup',\r\n keyword: 'Model/Keyword',\r\n ad: 'Model/Ad',\r\n negative_keyword_list: 'Model/NegativeKeywordList',\r\n negative_keyword: 'Model/NegativeKeyword',\r\n bulk_edit_session: 'Model/BulkEditSession',\r\n bulk_edit_result: 'Model/BulkEditResult',\r\n audience: 'Model/Audience',\r\n remessaging_audience: 'Model/RemessagingAudience',\r\n tag: 'Model/Tag',\r\n task_item: 'Model/TaskItem',\r\n goal: 'Model/Goal',\r\n conversion_advice: 'Model/ConversionAdvice',\r\n task_item_execution: 'Model/TaskItemExecution',\r\n ad_group_criterion: 'Model/AdGroupCriterion',\r\n audience_ad_group_criterion: 'Model/AudienceAdGroupCriterion',\r\n ad_group_audience_association: 'Model/AdGroupAudienceAssociation',\r\n audience_association: 'Model/AudienceAssociation',\r\n audience_criterion_with_b_i: 'Model/AudienceCriterionWithBI',\r\n ad_group_audience_criterion_with_b_i: 'Model/AdGroupAudienceCriterionWithBI',\r\n ad_group_audience_criterion: 'Model/AdGroupAudienceCriterion',\r\n campaign_criterion: 'Model/CampaignCriterion',\r\n campaign_audience_criterion: 'Model/CampaignAudienceCriterion',\r\n product_offer: 'Model/ProductOffer',\r\n product_partition: 'Model/ProductPartition',\r\n preference: 'Model/Preference',\r\n product_offer_store: 'Model/ProductOfferStore',\r\n image: 'Model/Image',\r\n ad_extension: 'Model/AdExtension',\r\n image_ad_extension: 'Model/ImageAdExtension',\r\n location_ad_extension: 'Model/LocationAdExtension',\r\n ad_extension_association: 'Model/AdExtensionAssociation',\r\n annotation_opt_out_info: 'Model/AnnotationOptOutInfo',\r\n automated_extension: 'Model/AutomatedExtension',\r\n label: 'Model/Label',\r\n budget: 'Model/Budget',\r\n portfolio_bid_strategy: 'Model/PortfolioBidStrategy',\r\n location: 'Model/Location',\r\n biddable_ad_group_criterion: 'Model/BiddableAdGroupCriterion',\r\n dsa_target: 'Model/DsaTarget',\r\n domain_category: 'Model/DomainCategory',\r\n negative_ad_group_criterion: 'Model/NegativeAdGroupCriterion',\r\n negative_ad_group_dsa_target: 'Model/NegativeAdGroupDsaTarget',\r\n negative_campaign_criterion: 'Model/NegativeCampaignCriterion',\r\n negative_campaign_dsa_target: 'Model/NegativeCampaignDsaTarget',\r\n dsa_search_term: 'Model/DsaSearchTerm',\r\n category: 'Model/Category',\r\n negative_keyword_conflict: 'Model/NegativeKeywordConflict',\r\n search_term: 'Model/SearchTerm',\r\n demographic: 'Model/Demographic',\r\n feed: 'Model/Feed',\r\n ad_customizer_attribute: 'Model/AdCustomizerAttribute',\r\n ad_customizer_attribute_value: 'Model/AdCustomizerAttributeValue',\r\n feed_item: 'Model/FeedItem',\r\n feed_upload_history: 'Model/FeedUploadHistory',\r\n feed_association: 'Model/FeedAssociation',\r\n recommendation: 'Model/Recommendation',\r\n performance_target: 'Model/PerformanceTarget',\r\n performance_target_instance: 'Model/PerformanceTargetInstance',\r\n experiment: 'Model/Experiment',\r\n performance_time_series: 'Model/PerformanceTimeSeries',\r\n language_detect: 'Model/LanguageDetect',\r\n responsive_search_ad_instance: 'Model/ResponsiveSearchAdInstance',\r\n smart_listing: 'Model/SmartListing',\r\n business: 'Model/Business',\r\n search_phrase: 'Model/SearchPhrase',\r\n product_group: 'Model/ProductGroup',\r\n product_attribute_statistic: 'Model/ProductAttributeStatistic',\r\n stock_image: 'Model/StockImage',\r\n placement_exclusion_list: 'Model/PlacementExclusionList',\r\n negative_site: 'Model/NegativeSite',\r\n asset_link: 'Model/AssetLink',\r\n asset_with_b_i_data: 'Model/AssetWithBIData',\r\n shared_entity_association: 'Model/SharedEntityAssociation',\r\n promotion_ad_extension: 'Model/PromotionAdExtension',\r\n note: 'Model/Note',\r\n note_segment: 'Model/NoteSegment',\r\n video: 'Model/Video',\r\n video_resource: 'Model/VideoResource',\r\n video_caption_file: 'Model/VideoCaptionFile',\r\n filter_link_ad_extension: 'Model/FilterLinkAdExtension',\r\n smart_page: 'Model/SmartPage',\r\n flyer_ad_extension: 'Model/FlyerAdExtension',\r\n reparenting_user_setting: 'Model/ReparentingUserSetting',\r\n video_ad_extension: 'Model/VideoAdExtension',\r\n account_label_association_count: 'Model/AccountLabelAssociationCount',\r\n location_targeting_info: 'Model/LocationTargetingInfo',\r\n responsive_search_ad: 'Model/ResponsiveSearchAd',\r\n import_recommendation: 'Model/ImportRecommendation',\r\n seasonality_adjustment: 'Model/SeasonalityAdjustment',\r\n r_s_a_ad_customizer_attribute: 'Model/RSAAdCustomizerAttribute',\r\n dimension_row: 'Model/DimensionRow',\r\n multi_account_overview: 'Model/MultiAccountOverview',\r\n report_data_report_info: 'Model/ReportDataReportInfo',\r\n upload_url: 'Model/UploadUrl',\r\n app_install_ad: 'Model/AppInstallAd',\r\n dynamic_search_ad: 'Model/DynamicSearchAd',\r\n expanded_text_ad: 'Model/ExpandedTextAd',\r\n mobile_ad: 'Model/MobileAd',\r\n product_ad: 'Model/ProductAd',\r\n responsive_ad: 'Model/ResponsiveAd',\r\n text_ad: 'Model/TextAd',\r\n ad_group_criterion_grid_data: 'Model/AdGroupCriterionGridData',\r\n order_item_bid_info: 'Model/OrderItemBidInfo',\r\n biddable_campaign_criterion: 'Model/BiddableCampaignCriterion',\r\n campaign_criterion_grid_data: 'Model/CampaignCriterionGridData',\r\n vertical_sub_account: 'Model/VerticalSubAccount',\r\n vertical_hotel_group: 'Model/VerticalHotelGroup',\r\n action_ad_extension: 'Model/ActionAdExtension',\r\n app_ad_extension: 'Model/AppAdExtension',\r\n call_ad_extension: 'Model/CallAdExtension',\r\n callout_ad_extension: 'Model/CalloutAdExtension',\r\n disclaimer_ad_extension: 'Model/DisclaimerAdExtension',\r\n dynamic_data_ad_extension: 'Model/DynamicDataAdExtension',\r\n price_ad_extension: 'Model/PriceAdExtension',\r\n review_ad_extension: 'Model/ReviewAdExtension',\r\n sitelink2_ad_extension: 'Model/Sitelink2AdExtension',\r\n structured_snippet_ad_extension: 'Model/StructuredSnippetAdExtension',\r\n application_install_goal: 'Model/ApplicationInstallGoal',\r\n destination_goal: 'Model/DestinationGoal',\r\n duration_goal: 'Model/DurationGoal',\r\n event_goal: 'Model/EventGoal',\r\n in_store_transaction_goal: 'Model/InStoreTransactionGoal',\r\n in_store_visit_goal: 'Model/InStoreVisitGoal',\r\n multi_stage_goal: 'Model/MultiStageGoal',\r\n offline_conversion_goal: 'Model/OfflineConversionGoal',\r\n page_views_per_visit_goal: 'Model/PageViewsPerVisitGoal',\r\n product_conversion_goal: 'Model/ProductConversionGoal',\r\n smart_goal: 'Model/SmartGoal',\r\n combined_list_audience: 'Model/CombinedListAudience',\r\n custom_audience: 'Model/CustomAudience',\r\n customer_list_audience: 'Model/CustomerListAudience',\r\n in_market_audience: 'Model/InMarketAudience',\r\n product_audience: 'Model/ProductAudience',\r\n remarketing_similar_audience: 'Model/RemarketingSimilarAudience',\r\n customer_shared_entity_association: 'Model/CustomerSharedEntityAssociation',\r\n bulk_download_task_item_execution: 'Model/BulkDownloadTaskItemExecution',\r\n bulk_upsert_task_item_execution: 'Model/BulkUpsertTaskItemExecution',\r\n offline_conversion_upload_task_item_execution: 'Model/OfflineConversionUploadTaskItemExecution',\r\n pps_reconciliation_report_manager_task_item_execution: 'Model/PpsReconciliationReportManagerTaskItemExecution',\r\n pps_reconciliation_report_upload_task_item_execution: 'Model/PpsReconciliationReportUploadTaskItemExecution',\r\n feed_upload_result: 'Model/FeedUploadResult',\r\n feed_import_result: 'Model/FeedImportResult',\r\n cloud_import_result: 'Model/CloudImportResult',\r\n cloud_import_v2_result: 'Model/CloudImportV2Result',\r\n google_tag_manager_import_result: 'Model/GoogleTagManagerImportResult',\r\n import_result: 'Model/ImportResult',\r\n multi_account_google_import_result: 'Model/MultiAccountGoogleImportResult',\r\n smart_import_scheduler_result: 'Model/SmartImportSchedulerResult',\r\n multi_account_download_result: 'Model/MultiAccountDownloadResult',\r\n bulk_upload_task_item_execution: 'Model/BulkUploadTaskItemExecution',\r\n report_data_task_item_execution: 'Model/ReportDataTaskItemExecution',\r\n script_task_item_execution: 'Model/ScriptTaskItemExecution',\r\n script_item_change: 'Model/ScriptItemChange',\r\n script_changes_summary: 'Model/ScriptChangesSummary',\r\n bing_places_task_item: 'Model/BingPlacesTaskItem',\r\n bulk_download_task_item: 'Model/BulkDownloadTaskItem',\r\n bulk_upsert_task_item: 'Model/BulkUpsertTaskItem',\r\n email_rule: 'Model/EmailRule',\r\n offline_conversion_upload_task_item: 'Model/OfflineConversionUploadTaskItem',\r\n pps_reconciliation_report_manager_task_item: 'Model/PpsReconciliationReportManagerTaskItem',\r\n pps_reconciliation_report_upload_task_item: 'Model/PpsReconciliationReportUploadTaskItem',\r\n facebook_task_item: 'Model/FacebookTaskItem',\r\n feed_upload_task_item_base: 'Model/FeedUploadTaskItemBase',\r\n create_feed_upload_task_item: 'Model/CreateFeedUploadTaskItem',\r\n import_feed_and_feed_mapping_upload_task_item: 'Model/ImportFeedAndFeedMappingUploadTaskItem',\r\n import_feed_item_upload_task_item: 'Model/ImportFeedItemUploadTaskItem',\r\n replace_feed_upload_task_item: 'Model/ReplaceFeedUploadTaskItem',\r\n r_s_a_ad_customizer_feed_upload_task_item: 'Model/RSAAdCustomizerFeedUploadTaskItem',\r\n update_feed_upload_task_item: 'Model/UpdateFeedUploadTaskItem',\r\n google_my_business_task_item: 'Model/GoogleMyBusinessTaskItem',\r\n amazon_import_task_item: 'Model/AmazonImportTaskItem',\r\n cloud_import_task_item: 'Model/CloudImportTaskItem',\r\n google_tag_manager_import_task_item: 'Model/GoogleTagManagerImportTaskItem',\r\n import_task_item: 'Model/ImportTaskItem',\r\n multi_account_google_import_task_item: 'Model/MultiAccountGoogleImportTaskItem',\r\n smart_import_scheduler_task_item: 'Model/SmartImportSchedulerTaskItem',\r\n multi_account_download_task_item: 'Model/MultiAccountDownloadTaskItem',\r\n multi_account_bulk_upload_task_item: 'Model/MultiAccountBulkUploadTaskItem',\r\n report_task_item: 'Model/ReportTaskItem',\r\n report_data_task_item: 'Model/ReportDataTaskItem',\r\n report_rule: 'Model/ReportRule',\r\n report_email_rule: 'Model/ReportEmailRule',\r\n script_task_item: 'Model/ScriptTaskItem',\r\n update_campaign_store_id_task_item: 'Model/UpdateCampaignStoreIdTaskItem',\r\n advertiser_rule: 'Model/AdvertiserRule',\r\n mca_schedule_post_task_item: 'Model/McaSchedulePostTaskItem',\r\n mca_social_metrics_sync_up_task_item: 'Model/McaSocialMetricsSyncUpTaskItem',\r\n mca_social_profile_init_task_item: 'Model/McaSocialProfileInitTaskItem',\r\n mca_report_job_task_item: 'Model/McaReportJobTaskItem',\r\n tip: 'Model/Tip',\r\n custom_column: 'Model/CustomColumn',\r\n company: 'Model/Company',\r\n industry: 'Model/Industry',\r\n job_function: 'Model/JobFunction',\r\n advice_event: 'Model/AdviceEvent',\r\n custom_event_for_event: 'Model/CustomEventForEvent',\r\n custom_event_for_value: 'Model/CustomEventForValue',\r\n page_load_event: 'Model/PageLoadEvent',\r\n travel_dimension_row: 'Model/TravelDimensionRow',\r\n report_data_column_info: 'Model/ReportDataColumnInfo',\r\n fb_event_owner: 'Model/FbEventOwner',\r\n fb_place: 'Model/FbPlace',\r\n http_request_message: 'Model/HttpRequestMessage',\r\n stock_image_asset: 'Model/StockImageAsset',\r\n report_data_enum_filter: 'Model/ReportDataEnumFilter',\r\n report_data_text_filter: 'Model/ReportDataTextFilter',\r\n report_data_column_set: 'Model/ReportDataColumnSet',\r\n ads_api_error: 'Model/AdsApiError',\r\n totals_with_performance_metrics: 'Model/TotalsWithPerformanceMetrics',\r\n account_totals: 'Model/AccountTotals',\r\n campaign_totals: 'Model/CampaignTotals',\r\n aggregate_budget: 'Model/AggregateBudget',\r\n performance_metrics: 'Model/PerformanceMetrics',\r\n custom_column_error_response: 'Model/CustomColumnErrorResponse',\r\n custom_column_error_detail_item: 'Model/CustomColumnErrorDetailItem',\r\n goal_performance_metrics: 'Model/GoalPerformanceMetrics',\r\n performance_metrics_totals_by_network_split: 'Model/PerformanceMetricsTotalsByNetworkSplit',\r\n custom_column_output_value: 'Model/CustomColumnOutputValue',\r\n insertion_order: 'Model/InsertionOrder',\r\n insertion_order_details: 'Model/InsertionOrderDetails',\r\n user: 'Model/User',\r\n product_condition: 'Model/ProductCondition',\r\n attribute_statistic: 'Model/AttributeStatistic',\r\n base_expression: 'Model/BaseExpression',\r\n filter: 'Model/Filter',\r\n entity_filter: 'Model/EntityFilter',\r\n child_entity_filter: 'Model/ChildEntityFilter',\r\n bulk_edit_action: 'Model/BulkEditAction',\r\n ad_group_audience_criterion_complex: 'Model/AdGroupAudienceCriterionComplex',\r\n ad_extension_association_complex: 'Model/AdExtensionAssociationComplex',\r\n dictionary_2_of_string__string: 'Model/Dictionary_2OfString_String',\r\n dictionary_2_of_string__import_statistics: 'Model/Dictionary_2OfString_ImportStatistics',\r\n target_totals: 'Model/TargetTotals',\r\n key_value_pair_2_of_int64__string: 'Model/KeyValuePair_2OfInt64_String',\r\n delivery_status_detail: 'Model/DeliveryStatusDetail',\r\n d_b_null: 'Model/DBNull',\r\n experiment_metrics: 'Model/ExperimentMetrics',\r\n dictionary_2_of_string__dictionary_2_of_string__int64: 'Model/Dictionary_2OfString_Dictionary_2OfString_Int64',\r\n asset: 'Model/Asset',\r\n manager_account: 'Model/ManagerAccount',\r\n entity_id_parent_id: 'Model/EntityIdParentId',\r\n owner: 'Model/Owner',\r\n rerun_run_report_result: 'Model/RerunRunReportResult',\r\n single_account_google_import_task_item: 'Model/SingleAccountGoogleImportTaskItem',\r\n single_account_import_result: 'Model/SingleAccountImportResult',\r\n image_asset: 'Model/ImageAsset',\r\n smart_estimation_point: 'Model/SmartEstimationPoint',\r\n budget_kpi_estimations_response: 'Model/BudgetKpiEstimationsResponse',\r\n ads_count: 'Model/AdsCount',\r\n ad_groups_count: 'Model/AdGroupsCount',\r\n dictionary_2_of_ad_type__int32: 'Model/Dictionary_2OfAdType_Int32',\r\n fb_business: 'Model/FbBusiness',\r\n fb_cover: 'Model/FbCover',\r\n fb_location: 'Model/FbLocation',\r\n fb_page: 'Model/FbPage',\r\n fb_picture: 'Model/FbPicture',\r\n fb_post: 'Model/FbPost',\r\n fb_rating: 'Model/FbRating',\r\n fb_photo: 'Model/FbPhoto',\r\n fb_call_to_action: 'Model/FbCallToAction',\r\n fb_event: 'Model/FbEvent',\r\n fb_event_time: 'Model/FbEventTime',\r\n fb_user: 'Model/FbUser',\r\n fb_id_name_map: 'Model/FbIdNameMap',\r\n smart_page_fb_error: 'Model/SmartPageFbError',\r\n smart_page_fb_errors: 'Model/SmartPageFbErrors',\r\n smart_page_metric: 'Model/SmartPageMetric',\r\n click_metric: 'Model/ClickMetric',\r\n smart_page_business_hours: 'Model/SmartPageBusinessHours',\r\n smart_page_time_slots: 'Model/SmartPageTimeSlots',\r\n smart_page_suggestion: 'Model/SmartPageSuggestion',\r\n smart_page_image: 'Model/SmartPageImage',\r\n multi_account_recommendation: 'Model/MultiAccountRecommendation',\r\n dictionary_2_of_verified_tracking_vendor_field__string: 'Model/Dictionary_2OfVerifiedTrackingVendorField_String',\r\n b_i_data_status: 'Model/BIDataStatus',\r\n http_response_message: 'Model/HttpResponseMessage',\r\n i_enumerable_1_of_attribute_statistic: 'Model/IEnumerable_1OfAttributeStatistic',\r\n grid_data_parameters: 'Model/GridDataParameters',\r\n conversion_goal_details: 'Model/ConversionGoalDetails',\r\n criterion: 'Model/Criterion',\r\n list_1_of_b_i_data_status: 'Model/List_1OfBIDataStatus',\r\n key_value_pair_2_of_string__string: 'Model/KeyValuePair_2OfString_String',\r\n blob: 'Model/Blob',\r\n i_enumerable_1_of_i_enumerable_1_of_string: 'Model/IEnumerable_1OfIEnumerable_1OfString',\r\n data_availability: 'Model/DataAvailability',\r\n report_parameters: 'Model/ReportParameters',\r\n report_preview_parameters: 'Model/ReportPreviewParameters',\r\n multi_account_overview_parameters: 'Model/MultiAccountOverviewParameters',\r\n multi_account_recommendation_parameters: 'Model/MultiAccountRecommendationParameters',\r\n key_value_pair_2_of_int32__boolean: 'Model/KeyValuePair_2OfInt32_Boolean',\r\n search_term_selection_item: 'Model/SearchTermSelectionItem',\r\n alert_information: 'Model/AlertInformation',\r\n fb_page_authorization_data: 'Model/FbPageAuthorizationData',\r\n i_enumerable_1_of_fb_page: 'Model/IEnumerable_1OfFbPage',\r\n ads_api_batch_errors: 'Model/AdsApiBatchErrors',\r\n smart_page_association: 'Model/SmartPageAssociation',\r\n smart_page_metric_set: 'Model/SmartPageMetricSet',\r\n smart_page_details: 'Model/SmartPageDetails',\r\n smart_page_partner_details: 'Model/SmartPagePartnerDetails',\r\n website_source_data: 'Model/WebsiteSourceData',\r\n entity_editorial_reasons_collection: 'Model/EntityEditorialReasonsCollection',\r\n ad_resource_not_eligible_reasons_collection: 'Model/AdResourceNotEligibleReasonsCollection',\r\n set_smart_listings_result: 'Model/SetSmartListingsResult',\r\n ad_strength_and_action_items: 'Model/AdStrengthAndActionItems',\r\n medias: 'Model/Medias',\r\n recommendation_media_option: 'Model/RecommendationMediaOption',\r\n recommendation_page_defination: 'Model/RecommendationPageDefination',\r\n media_generation_result: 'Model/MediaGenerationResult',\r\n image_generation: 'Model/ImageGeneration',\r\n media_output: 'Model/MediaOutput',\r\n budget_recommendation_response: 'Model/BudgetRecommendationResponse',\r\n target: 'Model/Target',\r\n mca_keyword: 'Model/McaKeyword',\r\n mca_ad: 'Model/McaAd',\r\n extracted_business_info: 'Model/ExtractedBusinessInfo',\r\n target_recommendation: 'Model/TargetRecommendation',\r\n a_b_testing_flight_log: 'Model/ABTestingFlightLog',\r\n a_b_testing_event_log: 'Model/ABTestingEventLog',\r\n date_range: 'Model/DateRange',\r\n tag_setting: 'Model/TagSetting',\r\n file_content_result: 'Model/FileContentResult',\r\n version: 'Model/Version',\r\n http_content: 'Model/HttpContent',\r\n key_value_pair_2_of_string__i_enumerable_1_of_string: 'Model/KeyValuePair_2OfString_IEnumerable_1OfString',\r\n stream_content: 'Model/StreamContent',\r\n read_only_memory_content: 'Model/ReadOnlyMemoryContent',\r\n multipart_content: 'Model/MultipartContent',\r\n multipart_form_data_content: 'Model/MultipartFormDataContent',\r\n byte_array_content: 'Model/ByteArrayContent',\r\n string_content: 'Model/StringContent',\r\n json_content: 'Model/JsonContent',\r\n header_encoding_selector_1_of_http_content: 'Model/HeaderEncodingSelector_1OfHttpContent',\r\n form_url_encoded_content: 'Model/FormUrlEncodedContent',\r\n http_method: 'Model/HttpMethod',\r\n uri: 'Model/Uri',\r\n account_inactive_reason: 'Model/AccountInactiveReason',\r\n quality_score_data: 'Model/QualityScoreData',\r\n segmented_performance_metrics: 'Model/SegmentedPerformanceMetrics',\r\n segmentation_key: 'Model/SegmentationKey',\r\n year_segmentation_key: 'Model/YearSegmentationKey',\r\n week_segmentation_key: 'Model/WeekSegmentationKey',\r\n top_vs_other_segmentation_key: 'Model/TopVsOtherSegmentationKey',\r\n quarter_segmentation_key: 'Model/QuarterSegmentationKey',\r\n network_segmentation_key: 'Model/NetworkSegmentationKey',\r\n month_segmentation_key: 'Model/MonthSegmentationKey',\r\n medium_segmentation_key: 'Model/MediumSegmentationKey',\r\n hour_of_the_day_segmentation_key: 'Model/HourOfTheDaySegmentationKey',\r\n goal_type_segmentation_key: 'Model/GoalTypeSegmentationKey',\r\n goal_name_segmentation_key: 'Model/GoalNameSegmentationKey',\r\n goal_category_segmentation_key: 'Model/GoalCategorySegmentationKey',\r\n device_type_segmentation_key: 'Model/DeviceTypeSegmentationKey',\r\n device_o_s_segmentation_key: 'Model/DeviceOSSegmentationKey',\r\n delivered_match_type_segmentation_key: 'Model/DeliveredMatchTypeSegmentationKey',\r\n day_segmentation_key: 'Model/DaySegmentationKey',\r\n day_of_the_week_segmentation_key: 'Model/DayOfTheWeekSegmentationKey',\r\n currency_segmentation_key: 'Model/CurrencySegmentationKey',\r\n bidded_match_type_segmentation_key: 'Model/BiddedMatchTypeSegmentationKey',\r\n audience_type_segmentation_key: 'Model/AudienceTypeSegmentationKey',\r\n audience_name_segmentation_key: 'Model/AudienceNameSegmentationKey',\r\n ad_scenario_segmentation_key: 'Model/AdScenarioSegmentationKey',\r\n ad_position_segmentation_key: 'Model/AdPositionSegmentationKey',\r\n phone_performance_metrics: 'Model/PhonePerformanceMetrics',\r\n segmented_phone_performance_metrics: 'Model/SegmentedPhonePerformanceMetrics',\r\n custom_parameter: 'Model/CustomParameter',\r\n bidding_scheme: 'Model/BiddingScheme',\r\n unknown_bidding_scheme: 'Model/UnknownBiddingScheme',\r\n target_roas_bidding_scheme: 'Model/TargetRoasBiddingScheme',\r\n target_impression_share_bidding_scheme: 'Model/TargetImpressionShareBiddingScheme',\r\n target_cpa_bidding_scheme: 'Model/TargetCpaBiddingScheme',\r\n percent_cpc_bidding_scheme: 'Model/PercentCpcBiddingScheme',\r\n max_roas_bidding_scheme: 'Model/MaxRoasBiddingScheme',\r\n max_conversion_value_bidding_scheme: 'Model/MaxConversionValueBiddingScheme',\r\n max_conversions_bidding_scheme: 'Model/MaxConversionsBiddingScheme',\r\n bid: 'Model/Bid',\r\n max_clicks_bidding_scheme: 'Model/MaxClicksBiddingScheme',\r\n manual_cpv_bidding_scheme: 'Model/ManualCpvBiddingScheme',\r\n manual_cpm_bidding_scheme: 'Model/ManualCpmBiddingScheme',\r\n manual_bidding_scheme: 'Model/ManualBiddingScheme',\r\n inherit_from_parent_bidding_scheme: 'Model/InheritFromParentBiddingScheme',\r\n enhanced_cpc_bidding_scheme: 'Model/EnhancedCpcBiddingScheme',\r\n cost_per_sale_bidding_scheme: 'Model/CostPerSaleBiddingScheme',\r\n commission_bidding_scheme: 'Model/CommissionBiddingScheme',\r\n campaign_settings: 'Model/CampaignSettings',\r\n smart_settings: 'Model/SmartSettings',\r\n verified_tracking_setting: 'Model/VerifiedTrackingSetting',\r\n verified_tracking_data: 'Model/VerifiedTrackingData',\r\n shopping_settings: 'Model/ShoppingSettings',\r\n expert_mode_settings: 'Model/ExpertModeSettings',\r\n dynamic_search_ads_setting: 'Model/DynamicSearchAdsSetting',\r\n disclaimer_setting: 'Model/DisclaimerSetting',\r\n audience_settings: 'Model/AudienceSettings',\r\n note_campaign_association: 'Model/NoteCampaignAssociation',\r\n note_ad_group_association: 'Model/NoteAdGroupAssociation',\r\n audience_criterion: 'Model/AudienceCriterion',\r\n bid_amount_detail: 'Model/BidAmountDetail',\r\n bid_estimation_data: 'Model/BidEstimationData',\r\n app_url: 'Model/AppUrl',\r\n label_association_counts: 'Model/LabelAssociationCounts',\r\n appeal: 'Model/Appeal',\r\n text_asset: 'Model/TextAsset',\r\n video_asset: 'Model/VideoAsset',\r\n ad_rotation: 'Model/AdRotation',\r\n updatable_date: 'Model/UpdatableDate',\r\n age_criterion: 'Model/AgeCriterion',\r\n day_time_criterion: 'Model/DayTimeCriterion',\r\n device_criterion: 'Model/DeviceCriterion',\r\n gender_criterion: 'Model/GenderCriterion',\r\n location_criterion: 'Model/LocationCriterion',\r\n geo_point: 'Model/GeoPoint',\r\n location_intent_criterion: 'Model/LocationIntentCriterion',\r\n profile_criterion: 'Model/ProfileCriterion',\r\n company_name_criterion: 'Model/CompanyNameCriterion',\r\n industry_criterion: 'Model/IndustryCriterion',\r\n job_function_criterion: 'Model/JobFunctionCriterion',\r\n radius_criterion: 'Model/RadiusCriterion',\r\n store_criterion: 'Model/StoreCriterion',\r\n webpage: 'Model/Webpage',\r\n webpage_parameter: 'Model/WebpageParameter',\r\n webpage_condition: 'Model/WebpageCondition',\r\n criterion_bid: 'Model/CriterionBid',\r\n fixed_bid: 'Model/FixedBid',\r\n bid_multiplier: 'Model/BidMultiplier',\r\n criterion_cashback: 'Model/CriterionCashback',\r\n cashback_adjustment: 'Model/CashbackAdjustment',\r\n bid_adjustment_recommendation: 'Model/BidAdjustmentRecommendation',\r\n schedule: 'Model/Schedule',\r\n day_time: 'Model/DayTime',\r\n key_value_pair_2_of_int64__campaign_editorial_reason_collection: 'Model/KeyValuePair_2OfInt64_CampaignEditorialReasonCollection',\r\n address: 'Model/Address',\r\n price_table_row: 'Model/PriceTableRow',\r\n setting: 'Model/Setting',\r\n target_setting: 'Model/TargetSetting',\r\n target_setting_detail: 'Model/TargetSettingDetail',\r\n co_op_setting: 'Model/CoOpSetting',\r\n recommendation_action: 'Model/RecommendationAction',\r\n metric_change: 'Model/MetricChange',\r\n product_group_cashback: 'Model/ProductGroupCashback',\r\n campaign_cashback: 'Model/CampaignCashback',\r\n ad_group_cashback: 'Model/AdGroupCashback',\r\n campaign_conversion_goal: 'Model/CampaignConversionGoal',\r\n account_item: 'Model/AccountItem',\r\n sharing_scope: 'Model/SharingScope',\r\n used_by: 'Model/UsedBy',\r\n goal_stage: 'Model/GoalStage',\r\n destination_goal_stage: 'Model/DestinationGoalStage',\r\n event_goal_stage: 'Model/EventGoalStage',\r\n selection: 'Model/Selection',\r\n comparison_date_range: 'Model/ComparisonDateRange',\r\n custom_column_definition: 'Model/CustomColumnDefinition',\r\n search_term_selection: 'Model/SearchTermSelection',\r\n performance_target_instance_selection: 'Model/PerformanceTargetInstanceSelection',\r\n dimension_report_selection: 'Model/DimensionReportSelection',\r\n automated_extension_selection: 'Model/AutomatedExtensionSelection',\r\n ad_extension_selection: 'Model/AdExtensionSelection',\r\n bulk_edit_batch_action: 'Model/BulkEditBatchAction',\r\n association_action: 'Model/AssociationAction',\r\n audience_association_action: 'Model/AudienceAssociationAction',\r\n label_association_action: 'Model/LabelAssociationAction',\r\n label_disassociation_action: 'Model/LabelDisassociationAction',\r\n bid_estimate_action: 'Model/BidEstimateAction',\r\n copy_action: 'Model/CopyAction',\r\n list_action: 'Model/ListAction',\r\n numeric_action: 'Model/NumericAction',\r\n query_only_action: 'Model/QueryOnlyAction',\r\n text_action: 'Model/TextAction',\r\n bulk_edit_item_change: 'Model/BulkEditItemChange',\r\n key_value_pair_2_of_string__list_1_of_editorial_error: 'Model/KeyValuePair_2OfString_List_1OfEditorialError',\r\n editorial_error: 'Model/EditorialError',\r\n api_editorial_error: 'Model/ApiEditorialError',\r\n mca_api_editorial_error: 'Model/McaApiEditorialError',\r\n editorial_info: 'Model/EditorialInfo',\r\n mca_editorial_reason: 'Model/McaEditorialReason',\r\n audience_expression: 'Model/AudienceExpression',\r\n page_visitors_who_visited_another_page_expression: 'Model/PageVisitorsWhoVisitedAnotherPageExpression',\r\n expression: 'Model/Expression',\r\n page_visitors_who_did_not_visit_another_page_expression: 'Model/PageVisitorsWhoDidNotVisitAnotherPageExpression',\r\n expression_collection: 'Model/ExpressionCollection',\r\n page_visitors_expression: 'Model/PageVisitorsExpression',\r\n custom_events_expression: 'Model/CustomEventsExpression',\r\n audience_set: 'Model/AudienceSet',\r\n dictionary_2_of_string__int64: 'Model/Dictionary_2OfString_Int64',\r\n annotation_opt_out: 'Model/AnnotationOptOut',\r\n aggregated_negative_keyword: 'Model/AggregatedNegativeKeyword',\r\n offline_conversion_file: 'Model/OfflineConversionFile',\r\n key_value_pair_2_of_int64__i_enumerable_1_of_ads_api_error: 'Model/KeyValuePair_2OfInt64_IEnumerable_1OfAdsApiError',\r\n cloud_import_task_base_result: 'Model/CloudImportTaskBaseResult',\r\n cloud_import_task_result: 'Model/CloudImportTaskResult',\r\n import_statistics: 'Model/ImportStatistics',\r\n entity_count: 'Model/EntityCount',\r\n key_value_pair_2_of_string__i_enumerable_1_of_ads_api_error: 'Model/KeyValuePair_2OfString_IEnumerable_1OfAdsApiError',\r\n key_value_pair_2_of_string__bulk_upload_entity_statistics: 'Model/KeyValuePair_2OfString_BulkUploadEntityStatistics',\r\n bulk_upload_entity_statistics: 'Model/BulkUploadEntityStatistics',\r\n bulk_file: 'Model/BulkFile',\r\n key_value_pair_2_of_string__ads_api_error: 'Model/KeyValuePair_2OfString_AdsApiError',\r\n bing_places_filter: 'Model/BingPlacesFilter',\r\n notification_delivery_option: 'Model/NotificationDeliveryOption',\r\n email_notification_delivery_option: 'Model/EmailNotificationDeliveryOption',\r\n import_user_preference: 'Model/ImportUserPreference',\r\n import_adjustment_for_numeric_property: 'Model/ImportAdjustmentForNumericProperty',\r\n import_prefix_and_suffix_for_string_property: 'Model/ImportPrefixAndSuffixForStringProperty',\r\n import_search_and_replace_for_string_property: 'Model/ImportSearchAndReplaceForStringProperty',\r\n facebook_import_context: 'Model/FacebookImportContext',\r\n google_my_business_filter: 'Model/GoogleMyBusinessFilter',\r\n amazon_import_context: 'Model/AmazonImportContext',\r\n ad_words_import_context: 'Model/AdWordsImportContext',\r\n import_user_preferences: 'Model/ImportUserPreferences',\r\n import_update_entity_preference: 'Model/ImportUpdateEntityPreference',\r\n import_append_dest_url_preference: 'Model/ImportAppendDestUrlPreference',\r\n import_search_and_replace_dest_url_preference: 'Model/ImportSearchAndReplaceDestUrlPreference',\r\n append_preferences_for_tracking_template: 'Model/AppendPreferencesForTrackingTemplate',\r\n search_and_replace_preferences_for_tracking_template: 'Model/SearchAndReplacePreferencesForTrackingTemplate',\r\n g_t_m_import_context: 'Model/GTMImportContext',\r\n g_t_m_tag_draft: 'Model/GTMTagDraft',\r\n google_account_property: 'Model/GoogleAccountProperty',\r\n file_import_context: 'Model/FileImportContext',\r\n smart_import_google_import_context: 'Model/SmartImportGoogleImportContext',\r\n smart_import_facebook_import_context: 'Model/SmartImportFacebookImportContext',\r\n aggregate_filter: 'Model/AggregateFilter',\r\n predicate: 'Model/Predicate',\r\n report_sort: 'Model/ReportSort',\r\n campaign_report_scope: 'Model/CampaignReportScope',\r\n ad_group_report_scope: 'Model/AdGroupReportScope',\r\n conditional_format: 'Model/ConditionalFormat',\r\n crop_settings: 'Model/CropSettings',\r\n seasonality_adjustment_campaign_association: 'Model/SeasonalityAdjustmentCampaignAssociation',\r\n migration_statuses: 'Model/MigrationStatuses',\r\n performance_target_metric: 'Model/PerformanceTargetMetric',\r\n feed_attribute: 'Model/FeedAttribute',\r\n feed_item_attribute_value: 'Model/FeedItemAttributeValue',\r\n feed_item_targets: 'Model/FeedItemTargets',\r\n feed_item_campaign_target: 'Model/FeedItemCampaignTarget',\r\n feed_item_adgroup_target: 'Model/FeedItemAdgroupTarget',\r\n feed_item_audience_target: 'Model/FeedItemAudienceTarget',\r\n feed_item_location_target: 'Model/FeedItemLocationTarget',\r\n feed_item_platform_target: 'Model/FeedItemPlatformTarget',\r\n feed_item_keyword_target: 'Model/FeedItemKeywordTarget',\r\n feed_upload_task_detail_base: 'Model/FeedUploadTaskDetailBase',\r\n update_feed_upload_task_detail: 'Model/UpdateFeedUploadTaskDetail',\r\n replace_feed_upload_task_detail: 'Model/ReplaceFeedUploadTaskDetail',\r\n create_feed_upload_task_detail: 'Model/CreateFeedUploadTaskDetail',\r\n feed_schedule_information: 'Model/FeedScheduleInformation',\r\n advice_summary: 'Model/AdviceSummary',\r\n advice_message: 'Model/AdviceMessage',\r\n goal_advice_summary: 'Model/GoalAdviceSummary',\r\n advice_item: 'Model/AdviceItem',\r\n event_advice_summary: 'Model/EventAdviceSummary',\r\n event_advice_detail: 'Model/EventAdviceDetail',\r\n last_import_info: 'Model/LastImportInfo',\r\n performance_data_point: 'Model/PerformanceDataPoint',\r\n performance_change_percent_metrics: 'Model/PerformanceChangePercentMetrics',\r\n segmented_performance_change_percent_metrics: 'Model/SegmentedPerformanceChangePercentMetrics',\r\n phone_performance_change_percent_metrics: 'Model/PhonePerformanceChangePercentMetrics',\r\n segmented_phone_performance_change_percent_metrics: 'Model/SegmentedPhonePerformanceChangePercentMetrics',\r\n smart_page_data_context: 'Model/SmartPageDataContext',\r\n smart_page_social_urls: 'Model/SmartPageSocialUrls',\r\n smart_page_video: 'Model/SmartPageVideo',\r\n smart_page_call_to_action: 'Model/SmartPageCallToAction',\r\n smart_page_location: 'Model/SmartPageLocation',\r\n uet_user_setting: 'Model/UetUserSetting',\r\n tag_info: 'Model/TagInfo',\r\n audience_item: 'Model/AudienceItem',\r\n goal_item: 'Model/GoalItem',\r\n tag_used_by_info: 'Model/TagUsedByInfo',\r\n used_by_pair: 'Model/UsedByPair',\r\n size: 'Model/Size',\r\n bid_below_first_page_detail: 'Model/BidBelowFirstPageDetail',\r\n negative_keyword_conflict_detail_collection: 'Model/NegativeKeywordConflictDetailCollection',\r\n negative_keyword_conflict_detail: 'Model/NegativeKeywordConflictDetail',\r\n experiment_statistic_1_of_int64: 'Model/ExperimentStatistic_1OfInt64',\r\n experiment_statistic_1_of_double: 'Model/ExperimentStatistic_1OfDouble',\r\n experiment_statistic_1_of_single: 'Model/ExperimentStatistic_1OfSingle',\r\n grid_data_filter: 'Model/GridDataFilter',\r\n ad_extension_association_grid_data_parameters: 'Model/AdExtensionAssociationGridDataParameters',\r\n automated_extension_grid_data_parameters: 'Model/AutomatedExtensionGridDataParameters',\r\n grid_pagination: 'Model/GridPagination',\r\n editorial_language_to_publisher_countries: 'Model/EditorialLanguageToPublisherCountries',\r\n editorial_reason: 'Model/EditorialReason',\r\n ad_resource_not_eligible_reason: 'Model/AdResourceNotEligibleReason',\r\n campaign_management_error_detail: 'Model/CampaignManagementErrorDetail',\r\n editorial_error_detail: 'Model/EditorialErrorDetail',\r\n publisher_country_editorial_errors: 'Model/PublisherCountryEditorialErrors',\r\n recommendation_image: 'Model/RecommendationImage',\r\n recommendation_image_option: 'Model/RecommendationImageOption',\r\n media_asset: 'Model/MediaAsset',\r\n image_filter: 'Model/ImageFilter',\r\n image_filter_parameter: 'Model/ImageFilterParameter',\r\n crop_setting: 'Model/CropSetting',\r\n output_image: 'Model/OutputImage',\r\n budget_info: 'Model/BudgetInfo',\r\n age_target: 'Model/AgeTarget',\r\n gender_target: 'Model/GenderTarget',\r\n geo_target: 'Model/GeoTarget',\r\n location_target: 'Model/LocationTarget',\r\n radius_target: 'Model/RadiusTarget',\r\n channel_appeal_info: 'Model/ChannelAppealInfo',\r\n ad_source: 'Model/AdSource',\r\n offline_ad_identity: 'Model/OfflineAdIdentity',\r\n carousel_ad: 'Model/CarouselAd',\r\n image_ad: 'Model/ImageAd',\r\n lead_image_ad: 'Model/LeadImageAd',\r\n provisioning_editorial_result: 'Model/ProvisioningEditorialResult',\r\n search_ad: 'Model/SearchAd',\r\n lead_ad: 'Model/LeadAd',\r\n video_ad: 'Model/VideoAd',\r\n extracted_address: 'Model/ExtractedAddress',\r\n location_target_recommendation: 'Model/LocationTargetRecommendation',\r\n radius_target_recommendation: 'Model/RadiusTargetRecommendation',\r\n entity_tag_header_value: 'Model/EntityTagHeaderValue',\r\n business_category_recommendations: 'BusinessCategoryRecommendations',\r\n prepare_ad_recommendation: 'PrepareAdRecommendation',\r\n post_a_b_testing_flight_log: 'PostABTestingFlightLog',\r\n post_a_b_testing_event_log: 'PostABTestingEventLog',\r\n};\r\n\r\nexport const schema = new Schema(\r\n schemaToModelMapping,\r\n name => edm.schema.schemas[name]\r\n);\r\n","import { isString } from 'underscore';\r\n\r\nexport function getRequestor(serviceRoot, additionalHeader) {\r\n return function networkRequestor(uri, requestVerb, headers, body) {\r\n const url = `${serviceRoot}${uri}`;\r\n const requestHeader = {\r\n ...additionalHeader,\r\n ...headers,\r\n };\r\n\r\n return fetch(url, {\r\n method: requestVerb,\r\n headers: requestHeader,\r\n body: isString(body) ? body : JSON.stringify(body),\r\n }).then((response) => {\r\n if (isString(body)) {\r\n const reader = response.body.getReader();\r\n return reader.read().then(({ value }) => {\r\n const responseString = new TextDecoder().decode(value);\r\n return responseString;\r\n });\r\n }\r\n if (response.status === 401) {\r\n const error = {\r\n status: response.status,\r\n };\r\n throw error;\r\n } else if (response.status === 204) {\r\n return {};\r\n }\r\n\r\n // read the JSON response in the body\r\n return response.json().catch((responseJSONParseError) => {\r\n // handle JSON parsing error here\r\n const error = {\r\n status: response.status,\r\n responseJSONParseError,\r\n };\r\n throw error;\r\n }).then((responseJSON) => {\r\n if (!response.ok) {\r\n // 400/500 error with JSON body\r\n const error = {\r\n status: response.status,\r\n responseJSON,\r\n };\r\n throw error;\r\n }\r\n\r\n // normal response with JSON body\r\n return responseJSON;\r\n });\r\n });\r\n };\r\n}\r\n","import {\r\n Environment,\r\n middlewareTypes,\r\n createFetchPolicyMiddleware,\r\n createErrorMiddleware,\r\n Store,\r\n} from '@bingads-webui-react/overreact';\r\nimport { schema } from './schema';\r\n\r\nexport { getRequestor } from './requestor';\r\n\r\nexport const middlewares = {\r\n [middlewareTypes.FETCH_POLICY]: createFetchPolicyMiddleware(),\r\n [middlewareTypes.ERROR]: createErrorMiddleware(),\r\n};\r\n\r\nconst store = new Store();\r\nlet env = null;\r\n\r\nexport const ENVIRONMENT_TAG = 'Campaign_Endpoint';\r\n\r\nexport function getEnvironmentInstance(requestor, customStore, customMiddleWares) {\r\n if (!env) {\r\n env = new Environment(\r\n requestor,\r\n schema,\r\n customStore || store,\r\n customMiddleWares || middlewares,\r\n ENVIRONMENT_TAG\r\n );\r\n }\r\n // allow caller to update requestor\r\n env.networkRequestor = requestor;\r\n env.middlewares = customMiddleWares || middlewares;\r\n\r\n return env;\r\n}\r\n\r\nexport function environmentLookupFn(environmentTag) {\r\n return environmentTag === ENVIRONMENT_TAG;\r\n}\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\n\r\nexport const networkPolicy = FetchPolicy.StoreOrNetwork;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../env/env-instance';\r\nimport { schema } from '../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './destroy-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n const { headers } = params;\r\n return headers;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account',\r\n verb: requestVerbs.DELETE,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n keySelector: variables => variables.locator.descriptor.account_id,\r\n parentKeySelector: variables => variables.locator.descriptor.customer_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.ENTITY,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r),\r\n});\r\n\r\nexport const destroySpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.DELETE,\r\n sideEffects.destroy,\r\n environmentLookupFn\r\n);\r\n","import _ from 'underscore';\r\nimport { FetchPolicy } from '@bingads-webui-react/overreact';\r\n\r\nexport const networkPolicy = FetchPolicy.StoreOrNetwork;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n if (_.isArray(originValue.value)) {\r\n // when fetching all account properties, MT will respond with an array with 1 element\r\n return _.first(originValue.value);\r\n }\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../env/env-instance';\r\nimport { schema } from '../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './fetch-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n const { headers } = params;\r\n return headers;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account',\r\n verb: requestVerbs.GET,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n keySelector: variables => variables.locator.descriptor.account_id,\r\n parentKeySelector: variables => variables.locator.descriptor.customer_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.ENTITY,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r),\r\n});\r\n\r\nexport const fetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.FETCH,\r\n sideEffects.fetch,\r\n environmentLookupFn\r\n);\r\n\r\nexport const refetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.REFETCH,\r\n sideEffects.refetch,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\n\r\nexport const networkPolicy = FetchPolicy.StoreOrNetwork;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n // removed originValue since it was empty\r\n function decorator(response, request) {\r\n // TODO: Add decoration\r\n return {\r\n ...request.data,\r\n Id: request.variables.locator.descriptor.account_id,\r\n };\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../env/env-instance';\r\nimport { schema } from '../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n payloadDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './mutation-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n return params.headers;\r\n}\r\n\r\nfunction odataPayloadFactory(params) {\r\n return params.data;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account',\r\n verb: requestVerbs.PATCH,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n payloadFactoryFn: payloadDecorator(odataPayloadFactory),\r\n keySelector: variables => variables.locator.descriptor.account_id,\r\n parentKeySelector: variables => variables.locator.descriptor.customer_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.ENTITY,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r),\r\n});\r\n\r\nexport const mutationSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.MUTATION,\r\n sideEffects.mutation,\r\n environmentLookupFn\r\n);\r\n","import { useCallback, useMemo } from 'react';\r\n\r\nimport {\r\n useDataRefId,\r\n useFetch,\r\n useMutation,\r\n useRefetch,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { environmentLookupFn } from '../../../../../env/env-instance';\r\n\r\nimport { destroySpec } from '../../__specs/entity/destroy-spec';\r\nimport { fetchSpec, refetchSpec } from '../../__specs/entity/fetch-spec';\r\nimport { mutationSpec } from '../../__specs/entity/mutation-spec';\r\n\r\nimport { dataRefIdDecorator } from './hook-decorators';\r\n\r\nexport function useAccount(variables, config = {}) {\r\n const dataRefId = useDataRefId(dataRefIdDecorator(), environmentLookupFn);\r\n\r\n const defaultConfig = useMemo(() => ({\r\n fetch: config.fetch || {},\r\n refetch: config.refetch || {},\r\n mutation: config.mutation || {},\r\n destroy: config.destroy || {},\r\n }), [config]);\r\n\r\n const {\r\n fetch: fetchConfig,\r\n refetch: refetchConfig,\r\n mutation: mutationConfig,\r\n destroy: destroyConfig,\r\n } = defaultConfig;\r\n\r\n const [data, error] = useFetch(dataRefId, fetchSpec, variables, fetchConfig);\r\n const mutateFn = useMutation(dataRefId, mutationSpec, mutationConfig);\r\n const destroyFn = useMutation(dataRefId, destroySpec, destroyConfig);\r\n const refetchFn = useRefetch(dataRefId, refetchSpec, refetchConfig);\r\n\r\n const update = useCallback((newData, ...rest) => {\r\n mutateFn(variables, newData, ...rest);\r\n }, [mutateFn, variables]);\r\n\r\n // FIXME: likezh: Why would destroy need data?\r\n const destroy = useCallback((newData, ...rest) => {\r\n destroyFn(variables, newData, ...rest);\r\n }, [destroyFn, variables]);\r\n\r\n const refetch = useCallback((parameter = {}, ...rest) => {\r\n refetchFn(\r\n {\r\n variables: {\r\n ...variables,\r\n ...parameter.variables,\r\n },\r\n payload: parameter.payload,\r\n },\r\n refetchConfig,\r\n ...rest\r\n );\r\n }, [refetchFn, refetchConfig, variables]);\r\n\r\n return [{ data, error }, { update, destroy, refetch }];\r\n}\r\n","export function dataRefIdDecorator() {\r\n return null;\r\n}\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\n\r\nexport const networkPolicy = FetchPolicy.StoreOrNetwork;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../env/env-instance';\r\nimport { schema } from '../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n payloadDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './add-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts;\r\n\r\n const searchString = composeSearchString(variables, edmEntity);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n return params.headers;\r\n}\r\n\r\nfunction odataPayloadFactory(params) {\r\n return params.data;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account',\r\n verb: requestVerbs.POST,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n payloadFactoryFn: payloadDecorator(odataPayloadFactory),\r\n keySelector: variables => variables.locator.descriptor.account_id,\r\n parentKeySelector: variables => variables.locator.descriptor.customer_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.COLL,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r.value),\r\n});\r\n\r\nexport const addSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.ADD,\r\n sideEffects.add,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\n\r\nexport const networkPolicy = FetchPolicy.StoreOrNetwork;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../env/env-instance';\r\nimport { schema } from '../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './destroy-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n const { headers } = params;\r\n return headers;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account',\r\n verb: requestVerbs.DELETE,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n keySelector: variables => variables.locator.descriptor.account_id,\r\n parentKeySelector: variables => variables.locator.descriptor.customer_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.ENTITY,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r),\r\n});\r\n\r\nexport const destroySpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.DELETE,\r\n sideEffects.destroy,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\n\r\nexport const networkPolicy = FetchPolicy.StoreOrNetwork;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../env/env-instance';\r\nimport { schema } from '../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './fetch-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts;\r\n\r\n const searchString = composeSearchString(variables, edmEntity);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n const { headers } = params;\r\n return headers;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account',\r\n verb: requestVerbs.GET,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n keySelector: variables => variables.locator.descriptor.account_id,\r\n parentKeySelector: variables => variables.locator.descriptor.customer_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.COLL,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r.value),\r\n});\r\n\r\nexport const fetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.PAGINATION,\r\n sideEffects.pagination,\r\n environmentLookupFn\r\n);\r\n\r\nexport const refetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.REFETCH,\r\n sideEffects.refetch,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\n\r\nexport const networkPolicy = FetchPolicy.StoreOrNetwork;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../env/env-instance';\r\nimport { schema } from '../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n payloadDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './mutation-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts;\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n return params.headers;\r\n}\r\n\r\nfunction odataPayloadFactory(params) {\r\n return params.data;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account',\r\n verb: requestVerbs.PATCH,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n payloadFactoryFn: payloadDecorator(odataPayloadFactory),\r\n keySelector: variables => variables.locator.descriptor.account_id,\r\n parentKeySelector: variables => variables.locator.descriptor.customer_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.COLL,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r.value),\r\n});\r\n\r\nexport const mutationSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.MUTATION,\r\n sideEffects.mutation,\r\n environmentLookupFn\r\n);\r\n","import stringify from 'json-stable-stringify';\r\nimport { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.NetworkOnly;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n return originValue.ClientId;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n return {\r\n value: originValue && originValue.value,\r\n ClientId: stringify(request.variables),\r\n };\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n payloadDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './action-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor }, ...rest } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)['Default.BusinessCategoryRecommendations']\r\n .$call(rest);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n return params.headers;\r\n}\r\n\r\nfunction odataPayloadFactory(params) {\r\n return params.data;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:business_category_recommendations',\r\n verb: requestVerbs.POST,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n payloadFactoryFn: payloadDecorator(odataPayloadFactory),\r\n keySelector: variables => variables.locator.descriptor.account_id,\r\n parentKeySelector: variables => variables.locator.descriptor.customer_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.ENTITY,\r\n keySelector: keySelectorDecorator(r => r),\r\n processorFn: processorDecorator(r => r),\r\n});\r\n\r\nexport const fetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.FETCH,\r\n sideEffects.fetch,\r\n environmentLookupFn\r\n);\r\n\r\nexport const actionSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.MUTATION,\r\n sideEffects.mutation,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.NetworkOnly;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n payloadDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './action-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor }, ...rest } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)['Default.GetExtractedBusinessInfo']\r\n .$call(rest);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n return params.headers;\r\n}\r\n\r\nfunction odataPayloadFactory(params) {\r\n return params.data;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:extracted_business_info',\r\n verb: requestVerbs.POST,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n payloadFactoryFn: payloadDecorator(odataPayloadFactory),\r\n keySelector: variables => variables.locator.descriptor.account_id,\r\n parentKeySelector: variables => variables.locator.descriptor.customer_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.ENTITY,\r\n keySelector: keySelectorDecorator(r => r),\r\n processorFn: processorDecorator(r => r),\r\n});\r\n\r\nexport const fetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.FETCH,\r\n sideEffects.fetch,\r\n environmentLookupFn\r\n);\r\n\r\nexport const actionSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.MUTATION,\r\n sideEffects.mutation,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.StoreOrNetwork;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n payloadDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './action-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor }, ...rest } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)['Default.PostABTestingFlightLog']\r\n .$call(rest);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n return params.headers;\r\n}\r\n\r\nfunction odataPayloadFactory(params) {\r\n return params.data;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:post_a_b_testing_flight_log',\r\n verb: requestVerbs.POST,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n payloadFactoryFn: payloadDecorator(odataPayloadFactory),\r\n keySelector: variables => variables.locator.descriptor.account_id,\r\n parentKeySelector: variables => variables.locator.descriptor.customer_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.ENTITY,\r\n keySelector: keySelectorDecorator(r => r),\r\n processorFn: processorDecorator(r => r),\r\n});\r\n\r\nexport const fetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.FETCH,\r\n sideEffects.fetch,\r\n environmentLookupFn\r\n);\r\n\r\nexport const actionSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.MUTATION,\r\n sideEffects.mutation,\r\n environmentLookupFn\r\n);\r\n","import { useCallback, useMemo } from 'react';\r\n\r\nimport {\r\n useFetch,\r\n useMutation,\r\n useDataRefId,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { fetchSpec, actionSpec } from '../../__specs/calls/action-spec';\r\n\r\nimport { dataRefIdDecorator } from './hook-decorators';\r\n\r\nexport function usePostABTestingFlightLog(variables, config = {}) {\r\n const { locator } = variables;\r\n const dataRefId = useDataRefId(dataRefIdDecorator(), environmentLookupFn);\r\n\r\n const defaultConfig = useMemo(() => ({\r\n mutation: config.mutation || {},\r\n fetch: config.fetch || {},\r\n }), [config]);\r\n\r\n const { fetch: fetchConfig, mutation: mutationConfig } = defaultConfig;\r\n\r\n const fetch = useFetch(dataRefId, fetchSpec, locator, fetchConfig);\r\n const action = useMutation(dataRefId, actionSpec, mutationConfig);\r\n\r\n const callFn = useCallback((param = {}, requestConfig, ...rest) => {\r\n action(\r\n {\r\n ...variables,\r\n ...param.variables,\r\n },\r\n param.payload,\r\n requestConfig,\r\n ...rest\r\n );\r\n }, [variables, action]);\r\n\r\n const [data, error] = fetch;\r\n\r\n return [{ data, error }, { callFn }];\r\n}\r\n","export function dataRefIdDecorator() {\r\n return null;\r\n}\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.NetworkOnly;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n payloadDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './action-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor }, ...rest } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)['Default.PostABTestingEventLog']\r\n .$call(rest);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n return params.headers;\r\n}\r\n\r\nfunction odataPayloadFactory(params) {\r\n return params.data;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:post_a_b_testing_event_log',\r\n verb: requestVerbs.POST,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n payloadFactoryFn: payloadDecorator(odataPayloadFactory),\r\n keySelector: variables => variables.locator.descriptor.account_id,\r\n parentKeySelector: variables => variables.locator.descriptor.customer_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.ENTITY,\r\n keySelector: keySelectorDecorator(r => r),\r\n processorFn: processorDecorator(r => r),\r\n});\r\n\r\nexport const fetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.FETCH,\r\n sideEffects.fetch,\r\n environmentLookupFn\r\n);\r\n\r\nexport const actionSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.MUTATION,\r\n sideEffects.mutation,\r\n environmentLookupFn\r\n);\r\n","import { useCallback, useMemo } from 'react';\r\n\r\nimport {\r\n useFetch,\r\n useMutation,\r\n useDataRefId,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { fetchSpec, actionSpec } from '../../__specs/calls/action-spec';\r\n\r\nimport { dataRefIdDecorator } from './hook-decorators';\r\n\r\nexport function usePostABTestingEventLog(variables, config = {}) {\r\n const { locator } = variables;\r\n const dataRefId = useDataRefId(dataRefIdDecorator(), environmentLookupFn);\r\n\r\n const defaultConfig = useMemo(() => ({\r\n mutation: config.mutation || {},\r\n fetch: config.fetch || {},\r\n }), [config]);\r\n\r\n const { fetch: fetchConfig, mutation: mutationConfig } = defaultConfig;\r\n\r\n const fetch = useFetch(dataRefId, fetchSpec, locator, fetchConfig);\r\n const action = useMutation(dataRefId, actionSpec, mutationConfig);\r\n\r\n const callFn = useCallback((param = {}, requestConfig, ...rest) => {\r\n action(\r\n {\r\n ...variables,\r\n ...param.variables,\r\n },\r\n param.payload,\r\n requestConfig,\r\n ...rest\r\n );\r\n }, [variables, action]);\r\n\r\n const [data, error] = fetch;\r\n\r\n return [{ data, error }, { callFn }];\r\n}\r\n","export function dataRefIdDecorator() {\r\n return null;\r\n}\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.NetworkOnly;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n payloadDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './action-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor }, ...rest } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n campaign_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .Campaigns.$withKey(campaign_id)['Default.PrepareAdRecommendation']\r\n .$call(rest);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n return params.headers;\r\n}\r\n\r\nfunction odataPayloadFactory(params) {\r\n return params.data;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:campaign:prepare_ad_recommendation',\r\n verb: requestVerbs.POST,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n payloadFactoryFn: payloadDecorator(odataPayloadFactory),\r\n keySelector: variables => variables.locator.descriptor.campaign_id,\r\n parentKeySelector: variables => variables.locator.descriptor.account_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.ENTITY,\r\n keySelector: keySelectorDecorator(r => r),\r\n processorFn: processorDecorator(r => r),\r\n});\r\n\r\nexport const fetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.FETCH,\r\n sideEffects.fetch,\r\n environmentLookupFn\r\n);\r\n\r\nexport const actionSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.MUTATION,\r\n sideEffects.mutation,\r\n environmentLookupFn\r\n);\r\n","import { useCallback, useMemo } from 'react';\r\n\r\nimport {\r\n useFetch,\r\n useMutation,\r\n useDataRefId,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { environmentLookupFn } from '../../../../../../../env/env-instance';\r\nimport { fetchSpec, actionSpec } from '../../__specs/calls/action-spec';\r\n\r\nimport { dataRefIdDecorator } from './hook-decorators';\r\n\r\nconst DEFAULT_CONFIG = {};\r\n\r\nexport function usePrepareAdRecommendation(variables, config = DEFAULT_CONFIG) {\r\n const { locator } = variables;\r\n const dataRefId = useDataRefId(dataRefIdDecorator(), environmentLookupFn);\r\n\r\n const defaultConfig = useMemo(() => ({\r\n mutation: config.mutation || {},\r\n fetch: config.fetch || {},\r\n }), [config]);\r\n\r\n const { fetch: fetchConfig, mutation: mutationConfig } = defaultConfig;\r\n\r\n const fetch = useFetch(dataRefId, fetchSpec, locator, fetchConfig);\r\n const action = useMutation(dataRefId, actionSpec, mutationConfig);\r\n\r\n const callFn = useCallback((param = {}, requestConfig, ...rest) => {\r\n action(\r\n {\r\n ...variables,\r\n ...param.variables,\r\n },\r\n param.payload,\r\n requestConfig,\r\n ...rest\r\n );\r\n }, [variables, action]);\r\n\r\n const [data, error] = fetch;\r\n\r\n return [{ data, error }, { callFn }];\r\n}\r\n","export function dataRefIdDecorator() {\r\n return null;\r\n}\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.NetworkOnly;\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","import _ from 'underscore';\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../env/schema';\r\n\r\nimport {\r\n headerDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './add-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id: CustomerId,\r\n account_id: AccountId,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(CustomerId)\r\n .Accounts.$withKey(AccountId)\r\n .Tags;\r\n\r\n const searchString = composeSearchString(variables, edmEntity);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n return params.headers;\r\n}\r\n\r\nfunction odataPayloadFactory(params) {\r\n return params.data;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:tag',\r\n verb: requestVerbs.POST,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: odataUrlFactory,\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n payloadFactoryFn: odataPayloadFactory,\r\n keySelector: variables => variables.locator.descriptor.tag_id,\r\n parentKeySelector: variables => variables.locator.descriptor.account_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.ENTITY,\r\n keySelector: _.identity,\r\n processorFn: _.identity,\r\n});\r\n\r\nexport const addSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.ADD,\r\n sideEffects.add,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.NetworkOnly;\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","import _ from 'underscore';\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../env/schema';\r\n\r\nimport {\r\n headerDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './destroy-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id: CustomerId,\r\n account_id: AccountId,\r\n tag_id: TagId,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(CustomerId)\r\n .Accounts.$withKey(AccountId)\r\n .Tags.$withKey(TagId);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n const { headers } = params;\r\n return headers;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:tag',\r\n verb: requestVerbs.DELETE,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: odataUrlFactory,\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n keySelector: variables => variables.locator.descriptor.tag_id,\r\n parentKeySelector: variables => variables.locator.descriptor.account_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.ENTITY,\r\n keySelector: _.identity,\r\n processorFn: _.identity,\r\n});\r\n\r\nexport const destroySpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.DELETE,\r\n sideEffects.destroy,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.StoreOrNetwork;\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","import {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../env/schema';\r\n\r\nimport {\r\n headerDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './fetch-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id: CustomerId,\r\n account_id: AccountId,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(CustomerId)\r\n .Accounts.$withKey(AccountId)\r\n .Tags;\r\n\r\n const searchString = composeSearchString(variables, edmEntity);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n const { headers } = params;\r\n return headers;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:tag',\r\n verb: requestVerbs.GET,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: odataUrlFactory,\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n keySelector: variables => variables.locator.descriptor.tag_id,\r\n parentKeySelector: variables => variables.locator.descriptor.account_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.COLL,\r\n keySelector: r => r.Id,\r\n processorFn: r => r.value,\r\n});\r\n\r\nexport const fetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.PAGINATION,\r\n sideEffects.pagination,\r\n environmentLookupFn\r\n);\r\n\r\nexport const refetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.REFETCH,\r\n sideEffects.refetch,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\n\r\nexport const networkPolicy = FetchPolicy.NetworkOnly;\r\n\r\nexport function urlDecorator() {\r\n function decorator(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id: CustomerId,\r\n account_id: AccountId,\r\n tag_id: TagId,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(CustomerId)\r\n .Accounts.$withKey(AccountId)\r\n .Tags.$withKey(TagId);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n }\r\n\r\n return params => decorator(params);\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","import _ from 'underscore';\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './mutation-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id: CustomerId,\r\n account_id: AccountId,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(CustomerId)\r\n .Accounts.$withKey(AccountId)\r\n .Tags;\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n return params.headers;\r\n}\r\n\r\nfunction odataPayloadFactory(params) {\r\n return params.data;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:tag',\r\n verb: requestVerbs.PATCH,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n payloadFactoryFn: odataPayloadFactory,\r\n keySelector: variables => variables.locator.descriptor.tag_id,\r\n parentKeySelector: variables => variables.locator.descriptor.account_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.ENTITY,\r\n keySelector: _.identity,\r\n processorFn: _.identity,\r\n});\r\n\r\nexport const mutationSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.MUTATION,\r\n sideEffects.mutation,\r\n environmentLookupFn\r\n);\r\n","export const Account = {\r\n properties: {\r\n FinalUrlSuffix: {\r\n bulkDeleteValueIfEmpty: true,\r\n },\r\n },\r\n};\r\n","export const AccountNegativeKeyword = {\r\n parent: 'Account',\r\n properties: {\r\n 'bulk-upload-type': {\r\n type: 'string',\r\n value: 'Account Shared Negative Keyword',\r\n },\r\n Status: {\r\n 'bulk-upload-header': 'Status',\r\n },\r\n Id: {\r\n 'bulk-upload-header': 'Id',\r\n },\r\n ParentId: {\r\n 'bulk-upload-header': 'Parent Id',\r\n },\r\n ClientId: {\r\n 'bulk-upload-header': 'Client Id',\r\n },\r\n Keyword: {\r\n 'bulk-upload-header': 'Keyword',\r\n },\r\n MatchType: {\r\n 'bulk-upload-header': 'Match Type',\r\n },\r\n Name: {\r\n 'bulk-upload-header': 'Name',\r\n },\r\n },\r\n};\r\n","export const AccountNegativeKeywordList = {\r\n parent: 'Account',\r\n properties: {\r\n 'bulk-upload-type': {\r\n type: 'string',\r\n value: 'Account Negative Keyword List',\r\n },\r\n Id: {\r\n 'bulk-upload-header': 'Id',\r\n },\r\n ParentId: {\r\n 'bulk-upload-header': 'Parent Id',\r\n },\r\n ClientId: {\r\n 'bulk-upload-header': 'Client Id',\r\n },\r\n MatchType: {\r\n 'bulk-upload-header': 'Match Type',\r\n },\r\n Name: {\r\n 'bulk-upload-header': 'Name',\r\n },\r\n },\r\n};\r\n","export const AccountNegativeKeywordListAssociation = {\r\n properties: {\r\n SharedEntityId: {\r\n 'bulk-upload-header': 'Id',\r\n },\r\n EntityId: {\r\n 'bulk-upload-header': 'Parent Id',\r\n },\r\n Id: {\r\n 'bulk-upload-header': 'Id',\r\n },\r\n Status: {\r\n 'bulk-upload-header': 'Status',\r\n },\r\n 'bulk-upload-type': {\r\n type: 'string',\r\n value: 'Account Negative Keyword List Association',\r\n },\r\n },\r\n};\r\n","import _ from 'underscore';\r\n\r\nexport const Ad = {\r\n parent: 'AdGroup',\r\n properties: {\r\n // the header value is set to \"Text Ad\"\r\n // as the current Ad schema is only responsible for Text Ads in MT.\r\n 'bulk-upload-type': {\r\n type: 'string',\r\n value: 'Text Ad',\r\n },\r\n DisplayUrl: {\r\n 'bulk-upload-header': 'Display Url',\r\n },\r\n DestinationUrl: {\r\n 'bulk-upload-header': 'Destination Url',\r\n },\r\n FinalUrls: {\r\n 'bulk-upload-header': 'Final Url',\r\n 'bulk-upload-mapper': function (value) {\r\n return value.join('; ');\r\n },\r\n },\r\n FinalUrlSuffix: {\r\n 'bulk-upload-header': 'Final Url Suffix',\r\n },\r\n MobileFinalUrls: {\r\n 'bulk-upload-header': 'Mobile Final Url',\r\n 'bulk-upload-mapper': function (value) {\r\n return value.join('; ');\r\n },\r\n },\r\n TrackingUrlTemplate: {\r\n 'bulk-upload-header': 'Tracking Template',\r\n },\r\n UrlCustomParameters: {\r\n 'bulk-upload-header': 'Custom Parameter',\r\n 'bulk-upload-mapper': function (value) {\r\n return _.map(value, p => `{_${p.Key}}=${p.Value}`).join('; ');\r\n },\r\n },\r\n CampaignName: {\r\n 'bulk-upload-header': 'Campaign',\r\n },\r\n AdGroupName: {\r\n 'bulk-upload-header': 'Ad Group',\r\n },\r\n DevicePreference: {\r\n 'bulk-upload-header': 'Device Preference',\r\n },\r\n NativePreference: {\r\n 'bulk-upload-header': 'Ad Format Preference',\r\n 'bulk-upload-mapper': function (value) {\r\n const mapping = {\r\n None: 'All',\r\n NativePreference: 'Native',\r\n };\r\n\r\n return mapping[value];\r\n },\r\n },\r\n },\r\n};\r\n","export const AdExtensionAssociation = {\r\n properties: {\r\n Type: {\r\n 'bulk-upload-header': 'Type',\r\n 'bulk-upload-mapper': function (value) {\r\n if (value === 'CampaignDisclaimerAdExtension') {\r\n return 'Campaign Disclaimer Ad Extension';\r\n }\r\n return value;\r\n },\r\n },\r\n CampaignName: {\r\n 'bulk-upload-header': 'Campaign',\r\n },\r\n },\r\n};\r\n","import _ from 'underscore';\r\n\r\nexport const AdGroup = {\r\n parent: 'Campaign',\r\n properties: {\r\n 'bulk-upload-type': {\r\n type: 'string',\r\n value: 'AdGroup',\r\n },\r\n Name: {\r\n 'bulk-upload-header': 'Ad Group',\r\n },\r\n CampaignName: {\r\n 'bulk-upload-header': 'Campaign',\r\n },\r\n StartDate: {\r\n 'bulk-upload-header': 'Start Date',\r\n },\r\n TargetSetting: {\r\n 'bulk-upload-header': 'Target Setting',\r\n },\r\n EndDate: {\r\n 'bulk-upload-header': 'End Date',\r\n },\r\n AdScheduleUseSearcherTimeZone: {\r\n 'bulk-upload-header': 'Ad Schedule Use Searcher Time Zone',\r\n },\r\n TrackingUrlTemplate: {\r\n 'bulk-upload-header': 'Tracking Template',\r\n bulkDeleteValueIfEmpty: true,\r\n },\r\n UrlCustomParameters: {\r\n 'bulk-upload-header': 'Custom Parameter',\r\n 'bulk-upload-mapper': function (value) {\r\n return _.map(value, p => `{_${p.Key}}=${p.Value}`).join('; ');\r\n },\r\n bulkDeleteValueIfEmpty: true,\r\n },\r\n FinalUrlSuffix: {\r\n 'bulk-upload-header': 'Final Url Suffix',\r\n bulkDeleteValueIfEmpty: true,\r\n },\r\n SearchBid: {\r\n 'bulk-upload-header': 'Cpc Bid',\r\n },\r\n AdGroupPercentCpcBid: {\r\n 'bulk-upload-header': 'Percent Cpc Bid',\r\n },\r\n AdGroupCommissionRate: {\r\n 'bulk-upload-header': 'Commission Rate',\r\n },\r\n CpvBid: {\r\n 'bulk-upload-header': 'Cpv Bid',\r\n type: 'number',\r\n },\r\n CpmBid: {\r\n 'bulk-upload-header': 'Cpm Bid',\r\n type: 'number',\r\n },\r\n ContentBid: {\r\n 'bulk-upload-header': 'Content Bid',\r\n },\r\n NativeBidAdjustment: {\r\n 'bulk-upload-header': 'Bid Adjustment',\r\n },\r\n MultimediaAdBidAdjustment: {\r\n 'bulk-upload-header': 'Multi Media Ad Bid Adjustment',\r\n },\r\n AdDistribution: {\r\n 'bulk-upload-header': 'Network Distribution',\r\n 'bulk-upload-mapper': function (value) {\r\n const mapping = {\r\n BingYahooAndSearchPartners: 'OwnedAndOperatedAndSyndicatedSearch',\r\n BingYahooOnly: 'OwnedAndOperatedOnly',\r\n SearchPartnersOnly: 'SyndicatedSearchOnly',\r\n InHousePromotion: 'InHousePromotion',\r\n };\r\n\r\n return _.result(mapping, value);\r\n },\r\n },\r\n Medium: {\r\n 'bulk-upload-full-mapper': function (medium) {\r\n return [{\r\n key: 'Search Network',\r\n value: medium === 'Search' || medium === 'SearchAndContent' ? 'On' : 'Off',\r\n }, {\r\n key: 'Content Network',\r\n value: medium === 'Content' || medium === 'SearchAndContent' ? 'On' : 'Off',\r\n }];\r\n },\r\n },\r\n AdRotation: {\r\n 'bulk-upload-header': 'Ad Rotation',\r\n },\r\n PricingModel: {\r\n 'bulk-upload-header': 'Pricing Model',\r\n },\r\n RemarketingTargetingSetting: {\r\n 'bulk-upload-full-mapper': function (bidType) {\r\n return [{\r\n key: 'Remarketing Targeting Setting',\r\n value: bidType,\r\n }];\r\n },\r\n },\r\n AdGroupType: {\r\n 'bulk-upload-header': 'Ad Group Type',\r\n },\r\n HotelAdGroupType: {\r\n 'bulk-upload-header': 'Hotel Ad Group Type',\r\n 'bulk-upload-mapper': function (value) {\r\n return value.join('|');\r\n },\r\n },\r\n CashbackPercent: {\r\n 'bulk-upload-header': 'Cashback Percent',\r\n },\r\n CashbackScope: {\r\n 'bulk-upload-header': 'Cashback Scope',\r\n },\r\n CouponsEnabled: {\r\n 'bulk-upload-header': 'Personalized Coupons Enabled',\r\n },\r\n Placement: {\r\n 'bulk-upload-header': 'Placement',\r\n },\r\n Canvas: {\r\n 'bulk-upload-header': 'Canvas',\r\n },\r\n UseOptimizedTargeting: {\r\n 'bulk-upload-header': 'Use Optimized Targeting',\r\n },\r\n BoostPublisherIds: {\r\n 'bulk-upload-header': 'Boost Publisher Ids',\r\n },\r\n BoostAccountIds: {\r\n 'bulk-upload-header': 'Boost Account Ids',\r\n },\r\n BoostAdunitIds: {\r\n 'bulk-upload-header': 'Boost Adunit Ids',\r\n },\r\n BoostTriggerIds: {\r\n 'bulk-upload-header': 'Boost Trigger Ids',\r\n },\r\n FrequencyCapSettings: {\r\n 'bulk-upload-header': 'Frequency Cap Settings',\r\n 'bulk-upload-mapper': function (value) {\r\n if (_.isEmpty(value) || _.isEmpty(value[0]) || !value[0].CapValue) {\r\n return 'delete_value';\r\n }\r\n\r\n return JSON.stringify(value);\r\n },\r\n },\r\n },\r\n};\r\n","export const AdGroupAdCustomizerAttribute = {\r\n parent: 'AdGroup',\r\n properties: {\r\n 'bulk-upload-type': {\r\n type: 'string',\r\n value: 'AdGroup AdCustomizer Attribute',\r\n },\r\n AdCustomizerAttributeValue: {\r\n 'bulk-upload-header': 'AdCustomizer AttributeValue',\r\n },\r\n },\r\n};\r\n","export const AdGroupAudienceCriterion = {\r\n properties: {\r\n CriterionType: {\r\n 'bulk-upload-header': 'Type',\r\n 'bulk-upload-mapper': function (value) {\r\n switch (value) {\r\n case 'Remessaging':\r\n return 'Ad Group Remarketing List Association';\r\n case 'NegativeRemessaging':\r\n return 'Ad Group Negative Remarketing List Association';\r\n case 'Custom':\r\n return 'Ad Group Custom Audience Association';\r\n case 'NegativeCustom':\r\n return 'Ad Group Negative Custom Audience Association';\r\n case 'InMarket':\r\n return 'Ad Group In Market Audience Association';\r\n case 'NegativeInMarket':\r\n return 'Ad Group Negative In Market Audience Association';\r\n case 'Product':\r\n return 'Ad Group Product Audience Association';\r\n case 'NegativeProduct':\r\n return 'Ad Group Negative Product Audience Association';\r\n case 'RemarketingSimilar':\r\n return 'Ad Group Similar Remarketing List Association';\r\n case 'NegativeRemarketingSimilar':\r\n return 'Ad Group Negative Similar Remarketing List Association';\r\n case 'CustomerList':\r\n return 'Ad Group Customer List Association';\r\n case 'NegativeCustomerList':\r\n return 'Ad Group Negative Customer List Association';\r\n case 'CombinedList':\r\n return 'Ad Group Combined List Association';\r\n case 'NegativeCombinedList':\r\n return 'Ad Group Negative Combined List Association';\r\n case 'ImpressionBasedRemarketing':\r\n return 'Ad Group Impression Based Remarketing List Association';\r\n case 'NegativeImpressionBasedRemarketing':\r\n return 'Ad Group Negative Impression Based Remarketing List Association';\r\n case 'CustomSegment':\r\n return 'Ad Group Custom Segment Association';\r\n default:\r\n return 'Ad Group Unknown Association';\r\n }\r\n },\r\n },\r\n },\r\n};\r\n","export const AdGroupCriterion = {\r\n properties: {\r\n CriterionType: {\r\n 'bulk-upload-header': 'Type',\r\n 'bulk-upload-mapper': function (value) {\r\n switch (value) {\r\n case 'Device':\r\n return 'AdGroup DeviceOS Criterion';\r\n case 'Age':\r\n return 'AdGroup Age Criterion';\r\n case 'NegativeAge':\r\n return 'AdGroup Negative Age Criterion';\r\n case 'Gender':\r\n return 'AdGroup Gender Criterion';\r\n case 'NegativeGender':\r\n return 'AdGroup Negative Gender Criterion';\r\n case 'Radius':\r\n return 'AdGroup Radius Criterion';\r\n case 'Location':\r\n return 'AdGroup Location Criterion';\r\n case 'NegativeLocation':\r\n return 'AdGroup Negative Location Criterion';\r\n case 'LocationIntentCriterion':\r\n return 'AdGroup Location Intent Criterion';\r\n case 'DayTime':\r\n return 'AdGroup Day Time Criterion';\r\n case 'CompanyName':\r\n return 'Ad Group Company Name Criterion';\r\n case 'NegativeCompanyName':\r\n return 'Ad Group Negative Company Name Criterion';\r\n case 'Industry':\r\n return 'Ad Group Industry Criterion';\r\n case 'NegativeIndustry':\r\n return 'Ad Group Negative Industry Criterion';\r\n case 'JobFunction':\r\n return 'Ad Group Job Function Criterion';\r\n case 'NegativeJobFunction':\r\n return 'Ad Group Negative Job Function Criterion';\r\n case 'AdvanceBookingWindow':\r\n return 'Ad Group Advance Booking Window Criterion';\r\n case 'CheckInDay':\r\n return 'Ad Group Check In Day Criterion';\r\n case 'LengthofStay':\r\n return 'Ad Group Length of Stay Criterion';\r\n case 'CheckInDate':\r\n return 'Ad Group Check In Date Criterion';\r\n case 'DateSelectionType':\r\n return 'Ad Group Hotel Date Selection Type Criterion';\r\n case 'ContextualTarget':\r\n return 'Ad Group Contextual Target';\r\n case 'Genre':\r\n return 'AdGroup Genre Criterion';\r\n case 'AdGroupPlacementCriterion':\r\n return 'AdGroup Placement Criterion';\r\n default:\r\n return 'AdGroup Unknown Criterion';\r\n }\r\n },\r\n },\r\n CampaignName: {\r\n 'bulk-upload-header': 'Campaign',\r\n },\r\n AdGroupName: {\r\n 'bulk-upload-header': 'Ad Group',\r\n },\r\n },\r\n};\r\n","export const AdGroupNegativeKeyword = {\r\n parent: 'AdGroup',\r\n properties: {\r\n 'bulk-upload-type': {\r\n type: 'string',\r\n value: 'Ad Group Negative Keyword',\r\n },\r\n Text: {\r\n 'bulk-upload-header': 'Keyword',\r\n },\r\n MatchType: {\r\n 'bulk-upload-header': 'Match Type',\r\n },\r\n },\r\n};\r\n","export const AppAdExtension = {\r\n properties: {\r\n 'bulk-upload-type': {\r\n type: 'string',\r\n value: 'AppAdExtension',\r\n },\r\n },\r\n};\r\n","import _ from 'underscore';\r\n\r\nexport const AppInstallAd = {\r\n parent: 'AdGroup',\r\n properties: {\r\n 'bulk-upload-type': {\r\n type: 'string',\r\n value: 'App Install Ad',\r\n },\r\n AppPlatform: {\r\n 'bulk-upload-header': 'App Platform',\r\n },\r\n AppStoreId: {\r\n 'bulk-upload-header': 'App ID',\r\n },\r\n FinalUrls: {\r\n 'bulk-upload-header': 'Final Url',\r\n 'bulk-upload-mapper': function (value) {\r\n return value.join('; ');\r\n },\r\n },\r\n MobileFinalUrls: {\r\n 'bulk-upload-header': 'Mobile Final Url',\r\n 'bulk-upload-mapper': function (value) {\r\n return value.join('; ');\r\n },\r\n },\r\n TrackingUrlTemplate: {\r\n 'bulk-upload-header': 'Tracking Template',\r\n },\r\n FinalUrlSuffix: {\r\n 'bulk-upload-header': 'Final Url Suffix',\r\n },\r\n UrlCustomParameters: {\r\n 'bulk-upload-header': 'Custom Parameter',\r\n 'bulk-upload-mapper': function (value) {\r\n return _.map(value, p => `{_${p.Key}}=${p.Value}`).join('; ');\r\n },\r\n },\r\n DevicePreference: {\r\n 'bulk-upload-header': 'Device Preference',\r\n },\r\n CampaignName: {\r\n 'bulk-upload-header': 'Campaign',\r\n },\r\n AdGroupName: {\r\n 'bulk-upload-header': 'Ad Group',\r\n },\r\n },\r\n};\r\n","import { identity } from 'underscore';\r\n\r\nconst textAssetMapper = assets =>\r\n JSON.stringify(assets.map(asset => ({\r\n text: asset.Asset.Text,\r\n })));\r\n\r\nexport const AssetGroup = {\r\n parent: 'Campaign',\r\n properties: {\r\n 'bulk-upload-type': {\r\n type: 'string',\r\n value: 'Asset Group',\r\n },\r\n Name: {\r\n 'bulk-upload-header': 'Asset Group',\r\n },\r\n CampaignName: {\r\n 'bulk-upload-header': 'Campaign',\r\n },\r\n BusinessName: {\r\n 'bulk-upload-header': 'Business Name',\r\n },\r\n Path1: {\r\n 'bulk-upload-header': 'Path 1',\r\n },\r\n Path2: {\r\n 'bulk-upload-header': 'Path 2',\r\n },\r\n CallToAction: {\r\n 'bulk-upload-header': 'Call To Action',\r\n },\r\n FinalUrls: {\r\n 'bulk-upload-header': 'Final Url',\r\n 'bulk-upload-mapper': function (value) {\r\n return value.join('; ');\r\n },\r\n },\r\n MobileFinalUrls: {\r\n 'bulk-upload-header': 'Mobile Final Url',\r\n 'bulk-upload-mapper': identity,\r\n },\r\n Headlines: {\r\n 'bulk-upload-header': 'Headlines',\r\n 'bulk-upload-mapper': textAssetMapper,\r\n },\r\n LongHeadlines: {\r\n 'bulk-upload-header': 'Long Headlines',\r\n 'bulk-upload-mapper': textAssetMapper,\r\n },\r\n Descriptions: {\r\n 'bulk-upload-header': 'Descriptions',\r\n 'bulk-upload-mapper': textAssetMapper,\r\n },\r\n Images: {\r\n type: 'string',\r\n },\r\n StartDate: {\r\n 'bulk-upload-header': 'Start Date',\r\n },\r\n EndDate: {\r\n 'bulk-upload-header': 'End Date',\r\n },\r\n Videos: {\r\n type: 'string',\r\n },\r\n },\r\n};\r\n","export const AssetGroupSearchTheme = {\r\n parent: 'AssetGroup',\r\n properties: {\r\n 'bulk-upload-type': {\r\n type: 'string',\r\n value: 'Asset Group Search Theme',\r\n },\r\n AssetGroupSearchThemeId: {\r\n 'bulk-upload-header': 'Id',\r\n },\r\n SearchTheme: {\r\n 'bulk-upload-header': 'Search Theme',\r\n },\r\n AssetGroupId: {\r\n 'bulk-upload-header': 'Parent ID',\r\n },\r\n Status: {\r\n 'bulk-upload-header': 'Status',\r\n },\r\n },\r\n};\r\n","export const AssetGroupUrlTarget = {\r\n parent: 'AssetGroup',\r\n properties: {\r\n 'bulk-upload-type': {\r\n type: 'string',\r\n value: 'Asset Group Url Target',\r\n },\r\n AssetGroupId: {\r\n 'bulk-upload-header': 'Parent ID',\r\n },\r\n Condition1: {\r\n 'bulk-upload-header': 'Asset Group Target Condition 1',\r\n },\r\n Operator1: {\r\n 'bulk-upload-header': 'Asset Group Target Condition Operator 1',\r\n },\r\n Value1: {\r\n 'bulk-upload-header': 'Asset Group Target Value 1',\r\n },\r\n Condition2: {\r\n 'bulk-upload-header': 'Asset Group Target Condition 2',\r\n },\r\n Operator2: {\r\n 'bulk-upload-header': 'Asset Group Target Condition Operator 2',\r\n },\r\n Value2: {\r\n 'bulk-upload-header': 'Asset Group Target Value 2',\r\n },\r\n Condition3: {\r\n 'bulk-upload-header': 'Asset Group Target Condition 3',\r\n },\r\n Operator3: {\r\n 'bulk-upload-header': 'Asset Group Target Condition Operator 3',\r\n },\r\n Value3: {\r\n 'bulk-upload-header': 'Asset Group Target Value 3',\r\n },\r\n AssetGroupUrlTargetId: {\r\n 'bulk-upload-header': 'Id',\r\n },\r\n Status: {\r\n 'bulk-upload-header': 'Status',\r\n },\r\n },\r\n};\r\n","import { isEmpty, map } from 'underscore';\r\n\r\nconst getAudienceIdArray = (audiences) => {\r\n if (isEmpty(audiences)) {\r\n return 'delete_value';\r\n }\r\n\r\n return map(audiences, audience => audience.Id).join(';');\r\n};\r\n\r\nconst getProfileIdArray = (profiles) => {\r\n if (isEmpty(profiles)) {\r\n return 'delete_value';\r\n }\r\n\r\n return profiles.join(';');\r\n};\r\n\r\nexport const AudienceGroup = {\r\n properties: {\r\n 'bulk-upload-type': {\r\n type: 'string',\r\n value: 'Audience Group',\r\n },\r\n Id: {\r\n 'bulk-upload-header': 'Id',\r\n },\r\n Name: {\r\n 'bulk-upload-header': 'Audience Group Name',\r\n },\r\n Audiences: {\r\n 'bulk-upload-header': 'Audiences',\r\n 'bulk-upload-mapper': getAudienceIdArray,\r\n },\r\n NegativeAudiences: {\r\n 'bulk-upload-header': 'Negative Audiences',\r\n 'bulk-upload-mapper': getAudienceIdArray,\r\n },\r\n companyNameTargets: {\r\n 'bulk-upload-header': 'Company Name',\r\n 'bulk-upload-mapper': getProfileIdArray,\r\n },\r\n industry: {\r\n 'bulk-upload-header': 'Industry',\r\n 'bulk-upload-mapper': getProfileIdArray,\r\n },\r\n jobTargets: {\r\n 'bulk-upload-header': 'Job Function',\r\n 'bulk-upload-mapper': getProfileIdArray,\r\n },\r\n AgeRanges: {\r\n 'bulk-upload-header': 'Age Ranges',\r\n 'bulk-upload-mapper': function (value) {\r\n return value.join(';');\r\n },\r\n },\r\n GenderTypes: {\r\n 'bulk-upload-header': 'Gender Types',\r\n 'bulk-upload-mapper': function (value) {\r\n return value.join(';');\r\n },\r\n },\r\n },\r\n};\r\n","export const AudienceGroupAssetGroupAssociation = {\r\n properties: {\r\n 'bulk-upload-type': {\r\n type: 'string',\r\n value: 'Audience Group Asset Group Association',\r\n },\r\n AudienceGroupId: {\r\n 'bulk-upload-header': 'Id',\r\n },\r\n AssetGroupId: {\r\n 'bulk-upload-header': 'Parent ID',\r\n },\r\n Status: {\r\n 'bulk-upload-header': 'Status',\r\n },\r\n },\r\n};\r\n","export const BidAmountDetail = {\r\n properties: {\r\n Amount: {\r\n 'bulk-upload-header': 'Bid',\r\n },\r\n },\r\n};\r\n","export const BiddingScheme = {\r\n properties: {\r\n Type: {\r\n 'bulk-upload-header': 'Bid Strategy Type',\r\n },\r\n ManualCpi: {\r\n 'bulk-upload-header': 'Bid Strategy ManualCpi',\r\n },\r\n ManualCpc: {\r\n 'bulk-upload-header': 'Bid Strategy ManualCpc',\r\n },\r\n MaxCpc: {\r\n 'bulk-upload-header': 'Bid Strategy MaxCpc',\r\n 'bulk-upload-mapper': function (value) {\r\n return value ? value.Amount : undefined;\r\n },\r\n },\r\n TargetCpa: {\r\n 'bulk-upload-header': 'Bid Strategy TargetCpa',\r\n },\r\n TargetRoas: {\r\n 'bulk-upload-header': 'Bid Strategy TargetRoas',\r\n },\r\n TargetAdPosition: {\r\n 'bulk-upload-header': 'Bid Strategy TargetAdPosition',\r\n },\r\n TargetImpressionShare: {\r\n 'bulk-upload-header': 'Bid Strategy TargetImpressionShare',\r\n },\r\n BidStrategyId: {\r\n 'bulk-upload-header': 'Bid Strategy Id',\r\n },\r\n CostPerSale: {\r\n 'bulk-upload-header': 'Bid Strategy TargetCostPerSale',\r\n },\r\n PercentMaxCpc: {\r\n 'bulk-upload-header': 'Bid Strategy PercentMaxCpc',\r\n },\r\n CommissionRate: {\r\n 'bulk-upload-header': 'Bid Strategy CommissionRate',\r\n },\r\n },\r\n};\r\n","// Type,Name,Client Id,Id,Parent Id,Brand Id\r\n// Format Version,6,,,,\r\n// Brand List,,0-0-0,-1,,,,\r\n// Brand Item,,0-0-0-0-0,,-1,\r\n\r\nexport const BrandItem = {\r\n parent: 'BrandList',\r\n properties: {\r\n 'bulk-upload-type': {\r\n type: 'string',\r\n value: 'Brand Item',\r\n },\r\n Status: {\r\n 'bulk-upload-header': 'Status',\r\n },\r\n Id: {\r\n 'bulk-upload-header': 'Brand Id',\r\n },\r\n ParentId: {\r\n 'bulk-upload-header': 'Parent ID',\r\n },\r\n ClientId: {\r\n 'bulk-upload-header': 'Client Id',\r\n },\r\n },\r\n};\r\n","// Type,Name,Client Id,Id,Parent Id,Brand Id\r\n// Format Version,6,,,,\r\n// Brand List,,0-0-0,-1,,,,\r\n// Brand Item,,0-0-0-0-0,,-1,\r\n\r\nexport const BrandList = {\r\n parent: 'Account',\r\n properties: {\r\n 'bulk-upload-type': {\r\n type: 'string',\r\n value: 'Brand List',\r\n },\r\n Id: {\r\n 'bulk-upload-header': 'Id',\r\n },\r\n Name: {\r\n 'bulk-upload-header': 'Name',\r\n },\r\n ParentId: {\r\n 'bulk-upload-header': 'Parent ID',\r\n },\r\n ClientId: {\r\n 'bulk-upload-header': 'Client Id',\r\n },\r\n Status: {\r\n 'bulk-upload-header': 'Status',\r\n },\r\n },\r\n};\r\n","export const Budget = {\r\n properties: {\r\n 'bulk-upload-type': {\r\n type: 'string',\r\n value: 'Budget',\r\n },\r\n Name: {\r\n 'bulk-upload-header': 'Budget Name',\r\n },\r\n Amount: {\r\n 'bulk-upload-header': 'Budget',\r\n },\r\n Type: {\r\n 'bulk-upload-header': 'Budget Type',\r\n 'bulk-upload-mapper': function (value) {\r\n const mapping = {\r\n Monthly: 'Monthly',\r\n DailyStandard: 'DailyBudgetStandard',\r\n DailyAccelerated: 'DailyBudgetAccelerated',\r\n LifetimeBudgetStandard: 'LifetimeBudgetStandard',\r\n };\r\n\r\n return mapping[value];\r\n },\r\n },\r\n },\r\n};\r\n","export const CallAdExtension = {\r\n properties: {\r\n 'bulk-upload-type': {\r\n type: 'string',\r\n value: 'CallAdExtension',\r\n },\r\n },\r\n};\r\n","export const CalloutAdExtension = {\r\n properties: {\r\n 'bulk-upload-type': {\r\n type: 'string',\r\n value: 'CalloutAdExtension',\r\n },\r\n },\r\n};\r\n","import _ from 'underscore';\r\n\r\nexport const Campaign = {\r\n properties: {\r\n 'bulk-upload-type': {\r\n type: 'string',\r\n value: 'Campaign',\r\n },\r\n Name: {\r\n 'bulk-upload-header': 'Campaign',\r\n },\r\n CampaignSubType: {\r\n 'bulk-upload-header': 'Sub Type',\r\n },\r\n TrackingUrlTemplate: {\r\n 'bulk-upload-header': 'Tracking Template',\r\n bulkDeleteValueIfEmpty: true,\r\n },\r\n UrlCustomParameters: {\r\n 'bulk-upload-header': 'Custom Parameter',\r\n 'bulk-upload-mapper': function (value) {\r\n return _.map(value, p => `{_${p.Key}}=${p.Value}`).join('; ');\r\n },\r\n bulkDeleteValueIfEmpty: true,\r\n },\r\n FinalUrlSuffix: {\r\n 'bulk-upload-header': 'Final Url Suffix',\r\n bulkDeleteValueIfEmpty: true,\r\n },\r\n BudgetId: {\r\n 'bulk-upload-header': 'Budget Id',\r\n },\r\n BudgetName: {\r\n 'bulk-upload-header': 'Budget Name',\r\n },\r\n TimeZone: {\r\n 'bulk-upload-header': 'Time Zone',\r\n },\r\n AdScheduleUseSearcherTimeZone: {\r\n 'bulk-upload-header': 'Ad Schedule Use Searcher Time Zone',\r\n },\r\n Languages: {\r\n filterable: true,\r\n 'bulk-upload-header': 'Language',\r\n 'bulk-upload-mapper': function (value) {\r\n return value.join(';');\r\n },\r\n },\r\n NativeBidAdjustment: {\r\n 'bulk-upload-header': 'Bid Adjustment',\r\n },\r\n MultimediaAdBidAdjustment: {\r\n 'bulk-upload-header': 'Multi Media Ad Bid Adjustment',\r\n },\r\n AutomatedCallToActionOptOut: {\r\n 'bulk-upload-header': 'Automated Call To Action Opt Out',\r\n type: 'boolean',\r\n },\r\n CampaignType: {\r\n 'bulk-upload-header': 'Campaign Type',\r\n 'bulk-upload-mapper': function (value) {\r\n if (value === 'DynamicSearchAds') {\r\n return 'Dynamic Search';\r\n }\r\n return value;\r\n },\r\n },\r\n CampaignGoal: {\r\n 'bulk-upload-header': 'Campaign Goal',\r\n 'bulk-upload-mapper': function (value) {\r\n const mapping = {\r\n MoreCalls: 1,\r\n MoreVisitsToPhysicalLocation: 2,\r\n MoreWebsiteActions: 3,\r\n MoreBrandAwareness: 4,\r\n MoreSales: 5,\r\n };\r\n\r\n return mapping[value];\r\n },\r\n },\r\n DomainName: {\r\n 'bulk-upload-header': 'Website',\r\n },\r\n LanguageCode: {\r\n 'bulk-upload-header': 'Domain Language',\r\n },\r\n Source: {\r\n 'bulk-upload-header': 'Source',\r\n },\r\n DynamicDescriptionEnabled: {\r\n 'bulk-upload-header': 'Dynamic Description Enabled',\r\n },\r\n AutoGeneratedAssetsEnabled: {\r\n 'bulk-upload-header': 'RSA Auto Generated Assets Enabled',\r\n },\r\n IsBroadMatchOnlyCampaign: {\r\n 'bulk-upload-header': 'Is Broad Match Only Campaign',\r\n },\r\n TargetSetting: {\r\n 'bulk-upload-header': 'Target Setting',\r\n },\r\n DisclaimerAdsEnabled: {\r\n 'bulk-upload-header': 'Disclaimer Ads Enabled',\r\n },\r\n BidStrategyId: {\r\n 'bulk-upload-header': 'Bid Strategy Id',\r\n },\r\n BidStrategyName: {\r\n 'bulk-upload-header': 'Bid Strategy Name',\r\n },\r\n CashbackMonthlyBudget: {\r\n 'bulk-upload-header': 'Cashback Monthly Budget',\r\n },\r\n CashbackPercent: {\r\n 'bulk-upload-header': 'Cashback Percent',\r\n },\r\n CashbackScope: {\r\n 'bulk-upload-header': 'Cashback Scope',\r\n },\r\n PersonalizedOffersEnabled: {\r\n 'bulk-upload-header': 'Personalized Offers Enabled',\r\n },\r\n CouponsEnabled: {\r\n 'bulk-upload-header': 'Personalized Coupons Enabled',\r\n },\r\n VerifiedTrackingData: {\r\n 'bulk-upload-header': 'Verified Tracking Settings',\r\n 'bulk-upload-mapper': function (value) {\r\n if (_.isEmpty(value) || (_.isString(value) && value.length === 0)) {\r\n // '': two inouts are empty\r\n // 'error': Only one of id is '', invalid\r\n return 'delete_value';\r\n }\r\n return value;\r\n },\r\n },\r\n FeedLabel: {\r\n 'bulk-upload-header': 'FeedLabel',\r\n },\r\n SalesCountry: {\r\n 'bulk-upload-header': 'Country Code',\r\n },\r\n ShoppableAdsEnabled: {\r\n 'bulk-upload-header': 'Shoppable Ads Enabled',\r\n 'bulk-upload-mapper': function (value) {\r\n return value ? 'true' : 'false';\r\n },\r\n },\r\n BrandOnly: {\r\n 'bulk-upload-header': 'Brand Only',\r\n 'bulk-upload-mapper': function (value) {\r\n return value ? 'true' : 'false';\r\n },\r\n },\r\n LocalInventoryAdsEnabled: {\r\n 'bulk-upload-header': 'Local Inventory Ads Enabled',\r\n 'bulk-upload-mapper': function (value) {\r\n return value ? 'true' : 'false';\r\n },\r\n },\r\n Priority: {\r\n 'bulk-upload-mapper': function (value) {\r\n const mapping = {\r\n Low: 0,\r\n Medium: 1,\r\n High: 2,\r\n Highest: 3,\r\n };\r\n\r\n return mapping[value];\r\n },\r\n },\r\n ProviderId: {\r\n 'bulk-upload-header': 'Store Id',\r\n },\r\n IsLeadGenCampaign: {\r\n 'bulk-upload-header': 'Is Lead Gen Campaign',\r\n },\r\n AutoTargetingEnabled: {\r\n 'bulk-upload-header': 'Predictive Targeting Enabled',\r\n type: 'boolean',\r\n },\r\n AutoGeneratedImageOptOut: {\r\n 'bulk-upload-header': 'Auto Generated Image Assets Opt Out',\r\n type: 'boolean',\r\n },\r\n AutoGeneratedTextOptOut: {\r\n 'bulk-upload-header': 'Auto Generated Text Assets Opt Out',\r\n type: 'boolean',\r\n },\r\n FinalUrlExpansionOptOut: {\r\n 'bulk-upload-header': 'Url Expansion Opt Out',\r\n type: 'boolean',\r\n },\r\n CostPerSaleOptOut: {\r\n 'bulk-upload-header': 'Cost Per Sale Opt Out',\r\n type: 'boolean',\r\n },\r\n AppStore: {\r\n 'bulk-upload-header': 'App Store',\r\n type: 'string',\r\n },\r\n AppId: {\r\n 'bulk-upload-header': 'App Id',\r\n type: 'string',\r\n },\r\n PageFeedIds: {\r\n type: 'string',\r\n 'bulk-upload-header': 'Page Feed Ids',\r\n 'bulk-upload-mapper': function (value) {\r\n if (_.isArray(value)) {\r\n return _.isEmpty(value) ? 'delete_value' : value.join(';');\r\n }\r\n return '';\r\n },\r\n },\r\n DisplayUrlMode: {\r\n type: 'string',\r\n 'bulk-upload-header': 'Vanity Pharma Display URL Mode',\r\n },\r\n WebsiteDescription: {\r\n type: 'string',\r\n 'bulk-upload-header': 'Vanity Pharma Website Description',\r\n },\r\n IsDealCampaign: {\r\n 'bulk-upload-header': 'Is Deal Campaign',\r\n type: 'boolean',\r\n },\r\n CallToActionOptOut: {\r\n 'bulk-upload-header': 'Call To Action Opt Out',\r\n type: 'boolean',\r\n },\r\n StartDate: {\r\n 'bulk-upload-header': 'Start Date',\r\n },\r\n EndDate: {\r\n 'bulk-upload-header': 'End Date',\r\n },\r\n UseCampaignLevelDates: {\r\n 'bulk-upload-header': 'Use Campaign Level Dates',\r\n },\r\n },\r\n};\r\n","export const CampaignAdCustomizerAttribute = {\r\n parent: 'Campaign',\r\n properties: {\r\n 'bulk-upload-type': {\r\n type: 'string',\r\n value: 'Campaign AdCustomizer Attribute',\r\n },\r\n AdCustomizerAttributeValue: {\r\n 'bulk-upload-header': 'AdCustomizer AttributeValue',\r\n },\r\n },\r\n};\r\n","export const CampaignAudienceCriterion = {\r\n properties: {\r\n CriterionType: {\r\n 'bulk-upload-header': 'Type',\r\n 'bulk-upload-mapper': function (value) {\r\n switch (value) {\r\n case 'Remessaging':\r\n return 'Campaign Remarketing List Association';\r\n case 'NegativeRemessaging':\r\n return 'Campaign Negative Remarketing List Association';\r\n case 'Custom':\r\n return 'Campaign Custom Audience Association';\r\n case 'NegativeCustom':\r\n return 'Campaign Negative Custom Audience Association';\r\n case 'InMarket':\r\n return 'Campaign In Market Audience Association';\r\n case 'NegativeInMarket':\r\n return 'Campaign Negative In Market Audience Association';\r\n case 'Product':\r\n return 'Campaign Product Audience Association';\r\n case 'NegativeProduct':\r\n return 'Campaign Negative Product Audience Association';\r\n case 'RemarketingSimilar':\r\n return 'Campaign Similar Remarketing List Association';\r\n case 'NegativeRemarketingSimilar':\r\n return 'Campaign Negative Similar Remarketing List Association';\r\n case 'CustomerList':\r\n return 'Campaign Customer List Association';\r\n case 'NegativeCustomerList':\r\n return 'Campaign Negative Customer List Association';\r\n case 'CombinedList':\r\n return 'Campaign Combined List Association';\r\n case 'NegativeCombinedList':\r\n return 'Campaign Negative Combined List Association';\r\n case 'ImpressionBasedRemarketing':\r\n return 'Campaign Impression Based Remarketing List Association';\r\n case 'NegativeImpressionBasedRemarketing':\r\n return 'Campaign Negative Impression Based Remarketing List Association';\r\n default:\r\n return 'Campaign Unknown Association';\r\n }\r\n },\r\n },\r\n },\r\n};\r\n","export const CampaignCriterion = {\r\n properties: {\r\n CriterionType: {\r\n 'bulk-upload-header': 'Type',\r\n 'bulk-upload-mapper': function (value) {\r\n switch (value) {\r\n case 'Device':\r\n return 'Campaign DeviceOS Criterion';\r\n case 'Age':\r\n return 'Campaign Age Criterion';\r\n case 'Gender':\r\n return 'Campaign Gender Criterion';\r\n case 'Radius':\r\n return 'Campaign Radius Criterion';\r\n case 'Location':\r\n return 'Campaign Location Criterion';\r\n case 'NegativeLocation':\r\n return 'Campaign Negative Location Criterion';\r\n case 'LocationIntentCriterion':\r\n return 'Campaign Location Intent Criterion';\r\n case 'DayTime':\r\n return 'Campaign Day Time Criterion';\r\n case 'CompanyName':\r\n return 'Campaign Company Name Criterion';\r\n case 'NegativeCompanyName':\r\n return 'Campaign Negative Company Name Criterion';\r\n case 'Industry':\r\n return 'Campaign Industry Criterion';\r\n case 'NegativeIndustry':\r\n return 'Campaign Negative Industry Criterion';\r\n case 'JobFunction':\r\n return 'Campaign Job Function Criterion';\r\n case 'JobTitle':\r\n return 'Campaign Job Title Criterion';\r\n case 'JobSeniority':\r\n return 'Campaign Job Seniority Criterion';\r\n case 'NegativeJobFunction':\r\n return 'Campaign Negative Job Function Criterion';\r\n case 'NegativeStore':\r\n return 'Campaign Negative Store Criterion';\r\n case 'DealCriterion':\r\n return 'Campaign Deal Criterion';\r\n default:\r\n return 'Campaign Unknown Criterion';\r\n }\r\n },\r\n },\r\n CampaignName: {\r\n 'bulk-upload-header': 'Campaign',\r\n },\r\n },\r\n};\r\n","export const CampaignNegativeKeyword = {\r\n parent: 'Campaign',\r\n properties: {\r\n 'bulk-upload-type': {\r\n type: 'string',\r\n value: 'Campaign Negative Keyword',\r\n },\r\n Text: {\r\n 'bulk-upload-header': 'Keyword',\r\n },\r\n MatchType: {\r\n 'bulk-upload-header': 'Match Type',\r\n },\r\n },\r\n};\r\n","export const CampaignNegativeWebpage = {\r\n properties: {\r\n 'bulk-upload-type': {\r\n type: 'string',\r\n value: 'Campaign Negative Webpage',\r\n },\r\n CampaignName: {\r\n 'bulk-upload-header': 'Campaign',\r\n },\r\n },\r\n};\r\n","export const CampaignProductScope = {\r\n parent: 'Campaign',\r\n properties: {\r\n 'bulk-upload-type': {\r\n type: 'string',\r\n value: 'Campaign Product Scope',\r\n },\r\n CampaignName: {\r\n 'bulk-upload-header': 'Campaign',\r\n },\r\n ProductCondition1: {\r\n 'bulk-upload-header': 'Product Condition 1',\r\n },\r\n ProductCondition2: {\r\n 'bulk-upload-header': 'Product Condition 2',\r\n },\r\n ProductCondition3: {\r\n 'bulk-upload-header': 'Product Condition 3',\r\n },\r\n ProductCondition4: {\r\n 'bulk-upload-header': 'Product Condition 4',\r\n },\r\n ProductCondition5: {\r\n 'bulk-upload-header': 'Product Condition 5',\r\n },\r\n ProductCondition6: {\r\n 'bulk-upload-header': 'Product Condition 6',\r\n },\r\n ProductCondition7: {\r\n 'bulk-upload-header': 'Product Condition 7',\r\n },\r\n ProductValue1: {\r\n 'bulk-upload-header': 'Product Value 1',\r\n },\r\n ProductValue2: {\r\n 'bulk-upload-header': 'Product Value 2',\r\n },\r\n ProductValue3: {\r\n 'bulk-upload-header': 'Product Value 3',\r\n },\r\n ProductValue4: {\r\n 'bulk-upload-header': 'Product Value 4',\r\n },\r\n ProductValue5: {\r\n 'bulk-upload-header': 'Product Value 5',\r\n },\r\n ProductValue6: {\r\n 'bulk-upload-header': 'Product Value 6',\r\n },\r\n ProductValue7: {\r\n 'bulk-upload-header': 'Product Value 7',\r\n },\r\n ProductOperator1: {\r\n 'bulk-upload-header': 'Product Operator 1',\r\n },\r\n ProductOperator2: {\r\n 'bulk-upload-header': 'Product Operator 2',\r\n },\r\n ProductOperator3: {\r\n 'bulk-upload-header': 'Product Operator 3',\r\n },\r\n ProductOperator4: {\r\n 'bulk-upload-header': 'Product Operator 4',\r\n },\r\n ProductOperator5: {\r\n 'bulk-upload-header': 'Product Operator 5',\r\n },\r\n ProductOperator6: {\r\n 'bulk-upload-header': 'Product Operator 6',\r\n },\r\n ProductOperator7: {\r\n 'bulk-upload-header': 'Product Operator 7',\r\n },\r\n },\r\n};\r\n","export const CampaignObjectiveSetting = {\r\n properties: {\r\n CampaignObjectiveSettingType: {\r\n 'bulk-upload-header': 'Campaign Objective Type',\r\n },\r\n },\r\n};\r\n","export const CoOpSetting = {\r\n properties: {\r\n BidOption: {\r\n 'bulk-upload-header': 'Bid Option',\r\n },\r\n BidBoostValue: {\r\n 'bulk-upload-header': 'Bid Boost Value',\r\n },\r\n BidMaxValue: {\r\n 'bulk-upload-header': 'Maximum Bid',\r\n },\r\n },\r\n};\r\n","import _ from 'underscore';\r\n\r\nconst formatName = function (value) {\r\n let newValue = value;\r\n\r\n if (_.contains(value, '\"')) {\r\n newValue = value.replace(/\"/g, '\"\"');\r\n }\r\n\r\n if (_.contains(value, ',') || _.contains(value, '\"') || _.contains(value, '\\n')) {\r\n newValue = `\"${value}\"`;\r\n }\r\n\r\n return newValue;\r\n};\r\n\r\nexport const Criterion = {\r\n 'bulk-upload-full-mapper': function (criterion) {\r\n let pairs = [];\r\n if (criterion.Type === 'Device') {\r\n pairs.push({\r\n key: 'Target',\r\n value: criterion.DeviceCriterion.DeviceName,\r\n });\r\n pairs.push({\r\n key: 'Bid Adjustment',\r\n value: criterion.BidAdjustment,\r\n });\r\n pairs.push({\r\n key: 'OS Names',\r\n value: criterion.DeviceCriterion.OSName,\r\n });\r\n pairs.push({\r\n key: 'Cashback Percent',\r\n value: criterion.CashbackPercent,\r\n });\r\n } else if (criterion.Type === 'Audience') {\r\n pairs = [];\r\n pairs.push({\r\n key: 'Bid Adjustment',\r\n value: criterion.BidMultiplier,\r\n });\r\n pairs.push({\r\n key: 'Audience Id',\r\n value: criterion.AudienceId,\r\n });\r\n pairs.push({\r\n key: 'Audience',\r\n value: formatName(criterion.AudienceName),\r\n });\r\n pairs.push({\r\n key: 'Cashback Percent',\r\n value: criterion.CashbackPercent,\r\n });\r\n } else if (criterion.Type === 'Age') {\r\n pairs.push({\r\n key: 'Target',\r\n value: criterion.AgeCriterion.Target,\r\n });\r\n pairs.push({\r\n key: 'Bid Adjustment',\r\n value: criterion.BidAdjustment,\r\n });\r\n pairs.push({\r\n key: 'Cashback Percent',\r\n value: criterion.CashbackPercent,\r\n });\r\n } else if (criterion.Type === 'Gender') {\r\n pairs.push({\r\n key: 'Target',\r\n value: criterion.GenderCriterion.Target,\r\n });\r\n pairs.push({\r\n key: 'Bid Adjustment',\r\n value: criterion.BidAdjustment,\r\n });\r\n pairs.push({\r\n key: 'Cashback Percent',\r\n value: criterion.CashbackPercent,\r\n });\r\n } else if (criterion.Type === 'CompanyName') {\r\n pairs.push({\r\n key: 'Profile Id',\r\n value: criterion.CompanyNameCriterion.Target,\r\n });\r\n pairs.push({\r\n key: 'Bid Adjustment',\r\n value: criterion.BidAdjustment,\r\n });\r\n pairs.push({\r\n key: 'Cashback Percent',\r\n value: criterion.CashbackPercent,\r\n });\r\n } else if (criterion.Type === 'Industry') {\r\n pairs.push({\r\n key: 'Profile Id',\r\n value: criterion.IndustryCriterion.Target,\r\n });\r\n pairs.push({\r\n key: 'Bid Adjustment',\r\n value: criterion.BidAdjustment,\r\n });\r\n pairs.push({\r\n key: 'Cashback Percent',\r\n value: criterion.CashbackPercent,\r\n });\r\n } else if (criterion.Type === 'JobFunction') {\r\n pairs.push({\r\n key: 'Profile Id',\r\n value: criterion.JobFunctionCriterion.Target,\r\n });\r\n pairs.push({\r\n key: 'Bid Adjustment',\r\n value: criterion.BidAdjustment,\r\n });\r\n pairs.push({\r\n key: 'Cashback Percent',\r\n value: criterion.CashbackPercent,\r\n });\r\n } else if (criterion.Type === 'JobTitle') {\r\n pairs.push({\r\n key: 'Profile Id',\r\n value: criterion.JobTitleCriterion.Target,\r\n });\r\n } else if (criterion.Type === 'JobSeniority') {\r\n pairs.push({\r\n key: 'Profile Id',\r\n value: criterion.JobSeniorityCriterion.Target,\r\n });\r\n } else if (criterion.Type === 'Radius') {\r\n if (criterion.RadiusCriterion.Name) {\r\n pairs.push({\r\n key: 'Name',\r\n value: `\"${criterion.RadiusCriterion.Name}\"`,\r\n });\r\n }\r\n pairs.push({\r\n key: 'Radius',\r\n value: criterion.RadiusCriterion.Radius,\r\n });\r\n pairs.push({\r\n key: 'Bid Adjustment',\r\n value: criterion.BidAdjustment,\r\n });\r\n pairs.push({\r\n key: 'Cashback Percent',\r\n value: criterion.CashbackPercent,\r\n });\r\n pairs.push({\r\n key: 'Unit',\r\n value: criterion.RadiusCriterion.RadiusUnit,\r\n });\r\n pairs.push({\r\n key: 'Latitude',\r\n value: criterion.RadiusCriterion.Latitude,\r\n });\r\n pairs.push({\r\n key: 'Longitude',\r\n value: criterion.RadiusCriterion.Longitude,\r\n });\r\n } else if (criterion.Type === 'Location' || criterion.Type === 'NegativeLocation') {\r\n pairs.push({\r\n key: 'Sub Type',\r\n value: criterion.LocationCriterion.LocationType,\r\n });\r\n pairs.push({\r\n key: 'Bid Adjustment',\r\n value: criterion.BidAdjustment,\r\n });\r\n pairs.push({\r\n key: 'Cashback Percent',\r\n value: criterion.CashbackPercent,\r\n });\r\n pairs.push({\r\n key: 'Target',\r\n value: criterion.LocationCriterion.LocationId,\r\n });\r\n } else if (criterion.Type === 'LocationIntentCriterion') {\r\n pairs.push({\r\n key: 'Target',\r\n value: criterion.LocationIntentCriterion.IntentOption,\r\n });\r\n } else if (criterion.Type === 'NegativeStore') {\r\n pairs.push({\r\n key: 'Store Id',\r\n value: criterion.NegativeStoreCriterion.StoreId,\r\n });\r\n } else if (criterion.Type === 'DayTime') {\r\n pairs.push({\r\n key: 'Target',\r\n value: criterion.DayTimeCriterion.Day,\r\n });\r\n pairs.push({\r\n key: 'Bid Adjustment',\r\n value: criterion.BidAdjustment,\r\n });\r\n pairs.push({\r\n key: 'Cashback Percent',\r\n value: criterion.CashbackPercent,\r\n });\r\n pairs.push({\r\n key: 'From Hour',\r\n value: criterion.DayTimeCriterion.FromHour,\r\n });\r\n pairs.push({\r\n key: 'From Minute',\r\n value: criterion.DayTimeCriterion.FromMinute,\r\n });\r\n pairs.push({\r\n key: 'To Hour',\r\n value: criterion.DayTimeCriterion.ToHour,\r\n });\r\n pairs.push({\r\n key: 'To Minute',\r\n value: criterion.DayTimeCriterion.ToMinute,\r\n });\r\n } else if (criterion.Type === 'Webpage') {\r\n const conditions = criterion.WebPage.Parameter.Conditions;\r\n const isAllWebpage = conditions.length === 0;\r\n\r\n for (let i = 0; i < 3; i += 1) {\r\n const setEmpty = isAllWebpage || _.isUndefined(conditions[i]);\r\n\r\n pairs.push({\r\n key: `Dynamic Ad Target Condition ${i + 1}`,\r\n value: setEmpty ? '' : conditions[i].Operand.replace('PageTitle', 'PAGE_TITLE').replace('PageContent', 'PAGE_CONTENT'),\r\n });\r\n\r\n pairs.push({\r\n key: `Dynamic Ad Target Condition Operator ${i + 1}`,\r\n value: setEmpty ? '' : conditions[i].Operator,\r\n });\r\n\r\n pairs.push({\r\n key: `Dynamic Ad Target Value ${i + 1}`,\r\n value: setEmpty ? '' : conditions[i].ArgumentOperand,\r\n });\r\n }\r\n } else if (criterion.Type === 'NegativeWebpage') {\r\n const conditions = criterion.WebPage.Parameter.Conditions;\r\n const isAllWebpage = conditions.length === 0;\r\n\r\n for (let i = 0; i < 3; i += 1) {\r\n const setEmpty = isAllWebpage || _.isUndefined(conditions[i]);\r\n\r\n pairs.push({\r\n key: `Condition ${i + 1}`,\r\n value: setEmpty ? '' : conditions[i].Operand.replace('PageTitle', 'PAGE_TITLE').replace('PageContent', 'PAGE_CONTENT'),\r\n });\r\n\r\n pairs.push({\r\n key: `Condition Operator ${i + 1}`,\r\n value: setEmpty ? '' : conditions[i].Operator,\r\n });\r\n\r\n pairs.push({\r\n key: `Value ${i + 1}`,\r\n value: setEmpty ? '' : conditions[i].ArgumentOperand,\r\n });\r\n }\r\n } else if (criterion.Type === 'AdvanceBookingWindow') {\r\n pairs.push({\r\n key: 'Min Target Value',\r\n value: criterion.AdvanceBookingWindowCriterion.MinDays,\r\n });\r\n pairs.push({\r\n key: 'Max Target Value',\r\n value: criterion.AdvanceBookingWindowCriterion.MaxDays,\r\n });\r\n pairs.push({\r\n key: 'Bid Adjustment',\r\n value: criterion.BidAdjustment,\r\n });\r\n } else if (criterion.Type === 'CheckInDay') {\r\n pairs.push({\r\n key: 'Target',\r\n value: criterion.CheckInDayCriterion.CheckInDay,\r\n });\r\n pairs.push({\r\n key: 'Bid Adjustment',\r\n value: criterion.BidAdjustment,\r\n });\r\n } else if (criterion.Type === 'LengthofStay') {\r\n pairs.push({\r\n key: 'Min Target Value',\r\n value: criterion.LengthofStayCriterion.MinNights,\r\n });\r\n pairs.push({\r\n key: 'Max Target Value',\r\n value: criterion.LengthofStayCriterion.MaxNights,\r\n });\r\n pairs.push({\r\n key: 'Bid Adjustment',\r\n value: criterion.BidAdjustment,\r\n });\r\n } else if (criterion.Type === 'CheckInDate') {\r\n pairs.push({\r\n key: 'Min Target Value',\r\n value: criterion.CheckInDateCriterion.StartDate,\r\n });\r\n pairs.push({\r\n key: 'Max Target Value',\r\n value: criterion.CheckInDateCriterion.EndDate,\r\n });\r\n pairs.push({\r\n key: 'Bid Adjustment',\r\n value: criterion.BidAdjustment,\r\n });\r\n } else if (criterion.Type === 'DateSelectionType') {\r\n pairs.push({\r\n key: 'Target',\r\n value: criterion.DateSelectionTypeCriterion.HotelDateSelectionType,\r\n });\r\n pairs.push({\r\n key: 'Bid Adjustment',\r\n value: criterion.BidAdjustment,\r\n });\r\n } else if (criterion.Type === 'ContextualTarget') {\r\n pairs.push({\r\n key: 'Category Id',\r\n value: criterion.ContextualTarget.CategoryId,\r\n });\r\n pairs.push({\r\n key: 'Target Option Id',\r\n value: criterion.ContextualTarget.TargetOptionId,\r\n });\r\n } else if (criterion.Type === 'DealCriterion') {\r\n pairs.push({\r\n key: 'Target',\r\n value: criterion.DealCriterion.DealId,\r\n });\r\n } else if (criterion.Type === 'Genre') {\r\n pairs.push({\r\n key: 'Target',\r\n value: criterion.GenreCriterion.Target,\r\n });\r\n } else if (criterion.Type === 'Placement') {\r\n pairs.push({\r\n key: 'Target',\r\n value: criterion.PlacementId,\r\n });\r\n }\r\n return pairs;\r\n },\r\n};\r\n","export const DisclaimerAdExtension = {\r\n properties: {\r\n 'bulk-upload-type': {\r\n type: 'string',\r\n value: 'DisclaimerAdExtension',\r\n },\r\n },\r\n};\r\n","export const DsaTarget = {\r\n properties: {\r\n 'bulk-upload-type': {\r\n type: 'string',\r\n value: 'Ad Group Dynamic Search Ad Target',\r\n },\r\n AdGroupName: {\r\n 'bulk-upload-header': 'Ad Group',\r\n },\r\n CampaignName: {\r\n 'bulk-upload-header': 'Campaign',\r\n },\r\n },\r\n};\r\n","export const DynamicDataAdExtension = {\r\n properties: {\r\n 'bulk-upload-type': {\r\n type: 'string',\r\n value: 'DynamicDataAdExtension',\r\n },\r\n },\r\n};\r\n","import _ from 'underscore';\r\n\r\nexport const DynamicSearchAd = {\r\n properties: {\r\n 'bulk-upload-type': {\r\n type: 'string',\r\n value: 'Dynamic Search Ad',\r\n },\r\n TextPart2: {\r\n 'bulk-upload-header': 'Text Part 2',\r\n },\r\n DisplayUrl: {\r\n 'bulk-upload-header': 'Domain',\r\n },\r\n Path1: {\r\n 'bulk-upload-header': 'Path 1',\r\n },\r\n Path2: {\r\n 'bulk-upload-header': 'Path 2',\r\n },\r\n TrackingUrlTemplate: {\r\n 'bulk-upload-header': 'Tracking Template',\r\n },\r\n FinalUrlSuffix: {\r\n 'bulk-upload-header': 'Final Url Suffix',\r\n },\r\n UrlCustomParameters: {\r\n 'bulk-upload-header': 'Custom Parameter',\r\n 'bulk-upload-mapper': function (value) {\r\n return _.map(value, p => `{_${p.Key}}=${p.Value}`).join('; ');\r\n },\r\n },\r\n DevicePreference: {\r\n 'bulk-upload-header': 'Device Preference',\r\n },\r\n CampaignName: {\r\n 'bulk-upload-header': 'Campaign',\r\n },\r\n AdGroupName: {\r\n 'bulk-upload-header': 'Ad Group',\r\n },\r\n },\r\n};\r\n","import _ from 'underscore';\r\n\r\nexport const ExpandedTextAd = {\r\n properties: {\r\n 'bulk-upload-type': {\r\n type: 'string',\r\n value: 'Expanded Text Ad',\r\n },\r\n TextPart2: {\r\n 'bulk-upload-header': 'Text Part 2',\r\n },\r\n TitlePart1: {\r\n 'bulk-upload-header': 'Title Part 1',\r\n },\r\n TitlePart2: {\r\n 'bulk-upload-header': 'Title Part 2',\r\n },\r\n TitlePart3: {\r\n 'bulk-upload-header': 'Title Part 3',\r\n },\r\n Path1: {\r\n 'bulk-upload-header': 'Path 1',\r\n },\r\n Path2: {\r\n 'bulk-upload-header': 'Path 2',\r\n },\r\n DisplayUrl: {\r\n 'bulk-upload-header': 'Domain',\r\n },\r\n FinalUrls: {\r\n 'bulk-upload-header': 'Final Url',\r\n 'bulk-upload-mapper': function (value) {\r\n return value.join('; ');\r\n },\r\n },\r\n MobileFinalUrls: {\r\n 'bulk-upload-header': 'Mobile Final Url',\r\n 'bulk-upload-mapper': function (value) {\r\n return value.join('; ');\r\n },\r\n },\r\n TrackingUrlTemplate: {\r\n 'bulk-upload-header': 'Tracking Template',\r\n },\r\n FinalUrlSuffix: {\r\n 'bulk-upload-header': 'Final Url Suffix',\r\n },\r\n UrlCustomParameters: {\r\n 'bulk-upload-header': 'Custom Parameter',\r\n 'bulk-upload-mapper': function (value) {\r\n return _.map(value, p => `{_${p.Key}}=${p.Value}`).join('; ');\r\n },\r\n },\r\n CampaignName: {\r\n 'bulk-upload-header': 'Campaign',\r\n },\r\n AdGroupName: {\r\n 'bulk-upload-header': 'Ad Group',\r\n },\r\n NativePreference: {\r\n 'bulk-upload-header': 'Ad Format Preference',\r\n 'bulk-upload-mapper': function (value) {\r\n const mapping = {\r\n None: 'All',\r\n NativePreference: 'Native',\r\n };\r\n\r\n return mapping[value];\r\n },\r\n },\r\n },\r\n};\r\n","export const Experiment = {\r\n properties: {\r\n 'bulk-upload-type': {\r\n type: 'string',\r\n value: 'Experiment',\r\n },\r\n },\r\n};\r\n","export const HotelAd = {\r\n properties: {\r\n 'bulk-upload-type': {\r\n type: 'string',\r\n value: 'Hotel Ad',\r\n },\r\n CampaignName: {\r\n 'bulk-upload-header': 'Campaign',\r\n },\r\n AdGroupName: {\r\n 'bulk-upload-header': 'Ad Group',\r\n },\r\n },\r\n};\r\n","import _ from 'underscore';\r\n\r\nexport const Keyword = {\r\n parent: 'AdGroup',\r\n properties: {\r\n 'bulk-upload-type': {\r\n type: 'string',\r\n value: 'Keyword',\r\n },\r\n Text: {\r\n 'bulk-upload-header': 'Keyword',\r\n },\r\n MatchType: {\r\n 'bulk-upload-header': 'Match Type',\r\n isReadOnly: true,\r\n },\r\n Bid: {\r\n bulkDeleteValueIfEmpty: true,\r\n },\r\n CampaignName: {\r\n 'bulk-upload-header': 'Campaign',\r\n },\r\n AdGroupName: {\r\n 'bulk-upload-header': 'Ad Group',\r\n },\r\n Param1: {\r\n bulkDeleteValueIfEmpty: true,\r\n },\r\n Param2: {\r\n bulkDeleteValueIfEmpty: true,\r\n },\r\n Param3: {\r\n bulkDeleteValueIfEmpty: true,\r\n },\r\n DestinationUrl: {\r\n 'bulk-upload-header': 'Destination Url',\r\n },\r\n TrackingUrlTemplate: {\r\n 'bulk-upload-header': 'Tracking Template',\r\n bulkDeleteValueIfEmpty: true,\r\n },\r\n FinalUrlSuffix: {\r\n 'bulk-upload-header': 'Final Url Suffix',\r\n bulkDeleteValueIfEmpty: true,\r\n },\r\n UrlCustomParameters: {\r\n 'bulk-upload-header': 'Custom Parameter',\r\n 'bulk-upload-mapper': function (value) {\r\n if (_.isArray(value)) {\r\n return _.map(value, p => `{_${p.Key}}=${p.Value}`).join('; ');\r\n }\r\n return value;\r\n },\r\n bulkDeleteValueIfEmpty: true,\r\n },\r\n FinalUrls: {\r\n 'bulk-upload-header': 'Final Url',\r\n 'bulk-upload-mapper': function (value) {\r\n return value.join('; ');\r\n },\r\n },\r\n MobileFinalUrls: {\r\n filterable: true,\r\n 'bulk-upload-header': 'Mobile Final Url',\r\n 'bulk-upload-mapper': function (value) {\r\n return value.join('; ');\r\n },\r\n },\r\n },\r\n};\r\n","export const KeywordAdCustomizerAttribute = {\r\n parent: 'Keyword',\r\n properties: {\r\n 'bulk-upload-type': {\r\n type: 'string',\r\n value: 'Keyword AdCustomizer Attribute',\r\n },\r\n AdCustomizerAttributeValue: {\r\n 'bulk-upload-header': 'AdCustomizer AttributeValue',\r\n },\r\n },\r\n};\r\n","export const NegativeAdGroupDsaTarget = {\r\n properties: {\r\n 'bulk-upload-type': {\r\n type: 'string',\r\n value: 'Ad Group Negative Dynamic Search Ad Target',\r\n },\r\n },\r\n};\r\n","export const NegativeCampaignDsaTarget = {\r\n properties: {\r\n 'bulk-upload-type': {\r\n type: 'string',\r\n value: 'Campaign Negative Dynamic Search Ad Target',\r\n },\r\n },\r\n};\r\n","// https://docs.microsoft.com/en-us/advertising/bulk-service/shared-negative-keyword?view=bingads-13\r\n// Type,Status,Id,Parent Id,Campaign,Ad Group,Client Id,Modified Time,Keyword,Match Type,Name\r\n// Format Version,,,,,,,,,,6.0\r\n// Shared Negative Keyword,Active,,-19,,,ClientIdGoesHere,,shoes,Exact,\r\n\r\nexport const NegativeKeyword = {\r\n parent: 'Account',\r\n properties: {\r\n 'bulk-upload-type': {\r\n type: 'string',\r\n value: 'Shared Negative Keyword',\r\n },\r\n Status: {\r\n 'bulk-upload-header': 'Status',\r\n },\r\n Id: {\r\n 'bulk-upload-header': 'Id',\r\n },\r\n ParentId: {\r\n 'bulk-upload-header': 'Parent Id',\r\n },\r\n Campaign: {\r\n 'bulk-upload-header': 'Campaign',\r\n },\r\n AdGroup: {\r\n 'bulk-upload-header': 'Ad Group',\r\n },\r\n ClientId: {\r\n 'bulk-upload-header': 'Client Id',\r\n },\r\n ModifiedTime: {\r\n 'bulk-upload-header': 'Modified Time',\r\n },\r\n Keyword: {\r\n 'bulk-upload-header': 'Keyword',\r\n },\r\n MatchType: {\r\n 'bulk-upload-header': 'Match Type',\r\n },\r\n Name: {\r\n 'bulk-upload-header': 'Name',\r\n },\r\n },\r\n};\r\n","// https://docs.microsoft.com/en-us/advertising/bulk-service/negative-keyword-list?view=bingads-13\r\n// Type,Status,Id,Parent Id,Campaign,Ad Group,Client Id,Modified Time,Keyword,Match Type,Name\r\n// Format Version,,,,,,,,,,6.0\r\n// Shared Negative Keyword,Active,,-19,,,ClientIdGoesHere,,shoes,Exact,\r\n\r\nexport const NegativeKeywordList = {\r\n parent: 'Account',\r\n properties: {\r\n 'bulk-upload-type': {\r\n type: 'string',\r\n value: 'Negative Keyword List',\r\n },\r\n Status: {\r\n 'bulk-upload-header': 'Status',\r\n },\r\n Id: {\r\n 'bulk-upload-header': 'Id',\r\n },\r\n ParentId: {\r\n 'bulk-upload-header': 'Parent Id',\r\n },\r\n Campaign: {\r\n 'bulk-upload-header': 'Campaign',\r\n },\r\n AdGroup: {\r\n 'bulk-upload-header': 'Ad Group',\r\n },\r\n ClientId: {\r\n 'bulk-upload-header': 'Client Id',\r\n },\r\n ModifiedTime: {\r\n 'bulk-upload-header': 'Modified Time',\r\n },\r\n Keyword: {\r\n 'bulk-upload-header': 'Keyword',\r\n },\r\n MatchType: {\r\n 'bulk-upload-header': 'Match Type',\r\n },\r\n Name: {\r\n 'bulk-upload-header': 'Name',\r\n },\r\n },\r\n};\r\n","export const NewCustomerAcquisitionGoal = {\r\n parent: 'Account',\r\n properties: {\r\n 'bulk-upload-type': {\r\n type: 'string',\r\n value: 'New Customer Acquisition Goal',\r\n },\r\n Id: {\r\n 'bulk-upload-header': 'Id',\r\n },\r\n ParentId: {\r\n 'bulk-upload-header': 'Parent ID',\r\n },\r\n ClientId: {\r\n 'bulk-upload-header': 'Client Id',\r\n },\r\n AudienceIds: {\r\n 'bulk-upload-header': 'Target',\r\n },\r\n AdditionalConversionValue: {\r\n 'bulk-upload-header': 'Additional Conversion Value',\r\n },\r\n },\r\n};\r\n","export const LocationAdExtension = {\r\n properties: {\r\n 'bulk-upload-type': {\r\n type: 'string',\r\n value: 'LocationAdExtension',\r\n },\r\n },\r\n};\r\n","export const PortfolioBidStrategy = {\r\n properties: {\r\n 'bulk-upload-type': {\r\n type: 'string',\r\n value: 'Bid Strategy',\r\n },\r\n Name: {\r\n 'bulk-upload-header': 'Bid Strategy Name',\r\n },\r\n Type: {\r\n 'bulk-upload-header': 'Bid Strategy Type',\r\n },\r\n MaxCpc: {\r\n 'bulk-upload-header': 'Bid Strategy MaxCpc',\r\n 'bulk-upload-mapper': function (value) {\r\n return value ? value.Amount : undefined;\r\n },\r\n },\r\n TargetCpa: {\r\n 'bulk-upload-header': 'Bid Strategy TargetCpa',\r\n },\r\n TargetRoas: {\r\n 'bulk-upload-header': 'Bid Strategy TargetRoas',\r\n },\r\n TargetAdPosition: {\r\n 'bulk-upload-header': 'Bid Strategy TargetAdPosition',\r\n },\r\n TargetImpressionShare: {\r\n 'bulk-upload-header': 'Bid Strategy TargetImpressionShare',\r\n },\r\n CampaignType: {\r\n 'bulk-upload-header': 'Campaign Type',\r\n },\r\n },\r\n};\r\n","export const ProductAd = {\r\n properties: {\r\n 'bulk-upload-type': {\r\n type: 'string',\r\n value: 'Product Ad',\r\n },\r\n PromotionalText: {\r\n 'bulk-upload-header': 'Promotion',\r\n },\r\n CampaignName: {\r\n 'bulk-upload-header': 'Campaign',\r\n },\r\n AdGroupName: {\r\n 'bulk-upload-header': 'Ad Group',\r\n },\r\n },\r\n};\r\n","export const ProductGroup = {\r\n properties: {\r\n 'bulk-upload-type': {\r\n type: 'string',\r\n value: 'Ad Group Product Partition',\r\n },\r\n BidBoost: {\r\n 'bulk-upload-header': 'Bid Adjustment',\r\n },\r\n CampaignName: {\r\n 'bulk-upload-header': 'Campaign',\r\n },\r\n IsLeaf: {\r\n 'bulk-upload-header': 'Sub Type',\r\n },\r\n },\r\n};\r\n","export const ProductListingGroup = {\r\n parent: 'AssetGroup',\r\n properties: {\r\n 'bulk-upload-type': {\r\n type: 'string',\r\n value: 'Asset Group Listing Group',\r\n },\r\n AssetGroupId: {\r\n 'bulk-upload-header': 'Parent ID',\r\n },\r\n ParentId: {\r\n 'bulk-upload-header': 'Parent Listing Group Id',\r\n },\r\n IsExcluded: {\r\n 'bulk-upload-header': 'Is Excluded',\r\n },\r\n IsLeaf: {\r\n 'bulk-upload-header': 'Sub Type',\r\n 'bulk-upload-mapper': function (value) {\r\n if (value) {\r\n return 'Unit';\r\n }\r\n return 'Subdivision';\r\n },\r\n },\r\n Status: {\r\n 'bulk-upload-header': 'Status',\r\n 'bulk-upload-mapper': function (value) {\r\n if (value === 'Deleted') {\r\n return 'Deleted';\r\n }\r\n return 'Active';\r\n },\r\n },\r\n },\r\n};\r\n","export const ProductCondition = {\r\n properties: {\r\n Operand: {\r\n 'bulk-upload-header': 'Product Condition 1',\r\n },\r\n Attribute: {\r\n 'bulk-upload-header': 'Product Value 1',\r\n },\r\n },\r\n};\r\n","export const ProductPartition = {\r\n properties: {\r\n 'bulk-upload-type': {\r\n type: 'string',\r\n value: 'Ad Group Product Partition',\r\n },\r\n BidAmount: {\r\n 'bulk-upload-header': 'Bid',\r\n },\r\n BidBoost: {\r\n 'bulk-upload-header': 'Bid Adjustment',\r\n },\r\n ProductCondition: {\r\n 'bulk-upload-header': 'Product Condition 1',\r\n },\r\n ProductValue: {\r\n 'bulk-upload-header': 'Product Value 1',\r\n },\r\n CampaignName: {\r\n 'bulk-upload-header': 'Campaign',\r\n },\r\n AdGroupName: {\r\n 'bulk-upload-header': 'Ad Group',\r\n },\r\n IsLeaf: {\r\n 'bulk-upload-header': 'Sub Type',\r\n },\r\n IsExcluded: {\r\n 'bulk-upload-header': 'Is Excluded',\r\n 'bulk-upload-mapper': function (value) {\r\n return value ? 'yes' : 'no';\r\n },\r\n },\r\n },\r\n};\r\n","import _ from 'underscore';\r\n\r\nexport const ResponsiveAd = {\r\n properties: {\r\n 'bulk-upload-type': {\r\n type: 'string',\r\n value: 'Responsive Ad',\r\n },\r\n LandscapeImageMediaId: {\r\n 'bulk-upload-header': 'Landscape Image Media Id',\r\n },\r\n SquareImageMediaId: {\r\n 'bulk-upload-header': 'Square Image Media Id',\r\n },\r\n LandscapeLogoMediaId: {\r\n 'bulk-upload-header': 'Landscape Logo Media Id',\r\n },\r\n SquareLogoMediaId: {\r\n 'bulk-upload-header': 'Square Logo Media Id',\r\n },\r\n Headlines: {\r\n 'bulk-upload-header': 'Headlines',\r\n 'bulk-upload-mapper': function (value) {\r\n return value;\r\n },\r\n },\r\n LongHeadlines: {\r\n 'bulk-upload-header': 'Long Headlines',\r\n 'bulk-upload-mapper': function (value) {\r\n return value;\r\n },\r\n },\r\n Descriptions: {\r\n 'bulk-upload-header': 'Descriptions',\r\n 'bulk-upload-mapper': function (value) {\r\n return value;\r\n },\r\n },\r\n LongHeadline: {\r\n 'bulk-upload-header': 'Long Headline',\r\n },\r\n BusinessName: {\r\n 'bulk-upload-header': 'Business Name',\r\n },\r\n CallToAction: {\r\n 'bulk-upload-header': 'Call To Action',\r\n },\r\n CallToActionLanguage: {\r\n 'bulk-upload-header': 'Call To Action Language',\r\n },\r\n CallToActionText: {\r\n 'bulk-upload-header': 'Call To Action Text',\r\n maxLength: 15,\r\n distinguishCJK: false,\r\n distinguishWideChar: false,\r\n },\r\n CallToActionAriaText: {\r\n 'bulk-upload-header': 'Call To Action Aria Text',\r\n maxLength: 30,\r\n type: 'string',\r\n },\r\n AdSubType: {\r\n 'bulk-upload-header': 'Ad Sub Type',\r\n },\r\n FinalUrls: {\r\n 'bulk-upload-header': 'Final Url',\r\n 'bulk-upload-mapper': function (value) {\r\n return value.join('; ');\r\n },\r\n },\r\n MobileFinalUrls: {\r\n 'bulk-upload-header': 'Mobile Final Url',\r\n 'bulk-upload-mapper': function (value) {\r\n // For ResponsiveAd, mt expects deleted_value string when updating this with empty\r\n if (_.isArray(value)) {\r\n return value.join('; ');\r\n }\r\n\r\n return value;\r\n },\r\n },\r\n ImpressionTrackingUrls: {\r\n 'bulk-upload-header': 'Impression Tracking Urls',\r\n 'bulk-upload-mapper': function (value) {\r\n if (_.isArray(value)) {\r\n if (value.length === 0) {\r\n return 'delete_value';\r\n }\r\n\r\n return value.join('; ');\r\n }\r\n\r\n return value;\r\n },\r\n },\r\n TrackingUrlTemplate: {\r\n 'bulk-upload-header': 'Tracking Template',\r\n },\r\n FinalUrlSuffix: {\r\n 'bulk-upload-header': 'Final Url Suffix',\r\n },\r\n UrlCustomParameters: {\r\n 'bulk-upload-header': 'Custom Parameter',\r\n 'bulk-upload-mapper': function (value) {\r\n // Whenever the ad is updated with empty value, we need to\r\n // set it to 'delete_value' in order to overwrite the existing value of the parameter\r\n if (value === 'delete_value') {\r\n return value;\r\n }\r\n return _.map(value, p => `{_${p.Key}}=${p.Value}`).join('; ');\r\n },\r\n },\r\n DevicePreference: {\r\n 'bulk-upload-header': 'Device Preference',\r\n },\r\n Images: {\r\n type: 'string',\r\n },\r\n HotSpots: {\r\n type: 'string',\r\n },\r\n BoostAnchors: {\r\n type: 'string',\r\n 'bulk-upload-header': 'Boost Anchors',\r\n },\r\n Videos: {\r\n type: 'string',\r\n },\r\n CampaignName: {\r\n 'bulk-upload-header': 'Campaign',\r\n },\r\n AdGroupName: {\r\n 'bulk-upload-header': 'Ad Group',\r\n },\r\n VerifiedTrackingData: {\r\n 'bulk-upload-header': 'Verified Tracking Settings',\r\n 'bulk-upload-mapper': function (value) {\r\n if (_.isEmpty(value) || (_.isString(value) && value.length === 0)) {\r\n // '': two inouts are empty\r\n // 'error': Only one of id is '', invalid\r\n return 'delete_value';\r\n }\r\n return value;\r\n },\r\n },\r\n AdType: {\r\n type: 'string',\r\n 'bulk-upload-header': 'Ad Type',\r\n },\r\n },\r\n};\r\n","import _ from 'underscore';\r\n\r\nexport const ResponsiveSearchAd = {\r\n properties: {\r\n 'bulk-upload-type': {\r\n type: 'string',\r\n value: 'Responsive Search Ad',\r\n },\r\n Headlines: {\r\n 'bulk-upload-header': 'Headline',\r\n 'bulk-upload-mapper': function (value) {\r\n return JSON.stringify(_.map(value, i => ({\r\n text: i.Asset.Text,\r\n pinnedField: i.PinnedField,\r\n })));\r\n },\r\n },\r\n Descriptions: {\r\n 'bulk-upload-header': 'Description',\r\n 'bulk-upload-mapper': function (value) {\r\n return JSON.stringify(_.map(value, i => ({\r\n text: i.Asset.Text,\r\n pinnedField: i.PinnedField,\r\n })));\r\n },\r\n },\r\n Path1: {\r\n 'bulk-upload-header': 'Path 1',\r\n },\r\n Path2: {\r\n 'bulk-upload-header': 'Path 2',\r\n },\r\n DisplayUrl: {\r\n 'bulk-upload-header': 'Domain',\r\n },\r\n FinalUrls: {\r\n 'bulk-upload-header': 'Final Url',\r\n 'bulk-upload-mapper': function (value) {\r\n return value.join('; ');\r\n },\r\n },\r\n MobileFinalUrls: {\r\n 'bulk-upload-header': 'Mobile Final Url',\r\n 'bulk-upload-mapper': function (value) {\r\n return value.join('; ');\r\n },\r\n },\r\n TrackingUrlTemplate: {\r\n 'bulk-upload-header': 'Tracking Template',\r\n },\r\n FinalUrlSuffix: {\r\n 'bulk-upload-header': 'Final Url Suffix',\r\n },\r\n UrlCustomParameters: {\r\n 'bulk-upload-header': 'Custom Parameter',\r\n 'bulk-upload-mapper': function (value) {\r\n return _.map(value, p => `{_${p.Key}}=${p.Value}`).join('; ');\r\n },\r\n },\r\n CampaignName: {\r\n 'bulk-upload-header': 'Campaign',\r\n },\r\n AdGroupName: {\r\n 'bulk-upload-header': 'Ad Group',\r\n },\r\n NativePreference: {\r\n 'bulk-upload-header': 'Ad Format Preference',\r\n 'bulk-upload-mapper': function (value) {\r\n const mapping = {\r\n None: 'All',\r\n NativePreference: 'Native',\r\n };\r\n\r\n return mapping[value];\r\n },\r\n },\r\n },\r\n};\r\n","export const ReviewAdExtension = {\r\n properties: {\r\n 'bulk-upload-type': {\r\n type: 'string',\r\n value: 'ReviewAdExtension',\r\n },\r\n },\r\n};\r\n","export const SharedEntityAssociation = {\r\n properties: {\r\n SharedEntityId: {\r\n 'bulk-upload-header': 'Id',\r\n },\r\n EntityId: {\r\n 'bulk-upload-header': 'Parent Id',\r\n },\r\n 'bulk-upload-type': {\r\n type: 'string',\r\n value: 'Campaign Negative Keyword List Association',\r\n },\r\n },\r\n};\r\n","import _ from 'underscore';\r\n\r\nexport const ShoppingCampaign = {\r\n properties: {\r\n 'bulk-upload-type': {\r\n type: 'string',\r\n value: 'Campaign',\r\n },\r\n Name: {\r\n 'bulk-upload-header': 'Campaign',\r\n },\r\n CampaignSubType: {\r\n 'bulk-upload-header': 'Sub Type',\r\n },\r\n TrackingUrlTemplate: {\r\n 'bulk-upload-header': 'Tracking Template',\r\n bulkDeleteValueIfEmpty: true,\r\n },\r\n UrlCustomParameters: {\r\n 'bulk-upload-header': 'Custom Parameter',\r\n 'bulk-upload-mapper': function (value) {\r\n return _.map(value, p => `{_${p.Key}}=${p.Value}`).join('; ');\r\n },\r\n bulkDeleteValueIfEmpty: true,\r\n },\r\n FinalUrlSuffix: {\r\n 'bulk-upload-header': 'Final Url Suffix',\r\n bulkDeleteValueIfEmpty: true,\r\n },\r\n BudgetId: {\r\n 'bulk-upload-header': 'Budget Id',\r\n },\r\n BudgetName: {\r\n 'bulk-upload-header': 'Budget Name',\r\n },\r\n TimeZone: {\r\n 'bulk-upload-header': 'Time Zone',\r\n },\r\n AdScheduleUseSearcherTimeZone: {\r\n 'bulk-upload-header': 'Ad Schedule Use Searcher Time Zone',\r\n },\r\n Languages: {\r\n filterable: true,\r\n 'bulk-upload-header': 'Language',\r\n 'bulk-upload-mapper': function (value) {\r\n return value.join(';');\r\n },\r\n },\r\n NativeBidAdjustment: {\r\n 'bulk-upload-header': 'Bid Adjustment',\r\n },\r\n CampaignType: {\r\n 'bulk-upload-header': 'Campaign Type',\r\n 'bulk-upload-mapper': function (value) {\r\n if (value === 'DynamicSearchAds') {\r\n return 'Dynamic Search';\r\n }\r\n return value;\r\n },\r\n },\r\n DomainName: {\r\n 'bulk-upload-header': 'Website',\r\n },\r\n LanguageCode: {\r\n 'bulk-upload-header': 'Domain Language',\r\n },\r\n Source: {\r\n 'bulk-upload-header': 'Source',\r\n },\r\n CashbackMonthlyBudget: {\r\n 'bulk-upload-header': 'Cashback Monthly Budget',\r\n },\r\n CashbackPercent: {\r\n 'bulk-upload-header': 'Cashback Percent',\r\n },\r\n CashbackScope: {\r\n 'bulk-upload-header': 'Cashback Scope',\r\n },\r\n PersonalizedOffersEnabled: {\r\n 'bulk-upload-header': 'Personalized Offers Enabled',\r\n },\r\n CouponsEnabled: {\r\n 'bulk-upload-header': 'Personalized Coupons Enabled',\r\n },\r\n TargetSetting: {\r\n 'bulk-upload-header': 'Target Setting',\r\n },\r\n DisclaimerAdsEnabled: {\r\n 'bulk-upload-header': 'Disclaimer Ads Enabled',\r\n },\r\n FeedLabel: {\r\n 'bulk-upload-header': 'FeedLabel',\r\n },\r\n SalesCountry: {\r\n 'bulk-upload-header': 'Country Code',\r\n },\r\n ShoppableAdsEnabled: {\r\n 'bulk-upload-header': 'Shoppable Ads Enabled',\r\n 'bulk-upload-mapper': function (value) {\r\n return value ? 'true' : 'false';\r\n },\r\n },\r\n BrandOnly: {\r\n 'bulk-upload-header': 'Brand Only',\r\n 'bulk-upload-mapper': function (value) {\r\n return value ? 'true' : 'false';\r\n },\r\n },\r\n LocalInventoryAdsEnabled: {\r\n 'bulk-upload-header': 'Local Inventory Ads Enabled',\r\n 'bulk-upload-mapper': function (value) {\r\n return value ? 'true' : 'false';\r\n },\r\n },\r\n Priority: {\r\n 'bulk-upload-mapper': function (value) {\r\n const mapping = {\r\n Low: 0,\r\n Medium: 1,\r\n High: 2,\r\n Highest: 3,\r\n };\r\n\r\n return mapping[value];\r\n },\r\n },\r\n ProviderId: {\r\n 'bulk-upload-header': 'Store Id',\r\n },\r\n FeedId: {\r\n 'bulk-upload-header': 'Feed Id',\r\n },\r\n VerifiedTrackingData: {\r\n 'bulk-upload-header': 'Verified Tracking Setting',\r\n },\r\n IsPromotionsForBrands: {\r\n 'bulk-upload-header': 'Is Promotions For Brands',\r\n },\r\n AutoGeneratedImageOptOut: {\r\n 'bulk-upload-header': 'Auto Generated Image Assets Opt Out',\r\n type: 'boolean',\r\n },\r\n AutoGeneratedTextOptOut: {\r\n 'bulk-upload-header': 'Auto Generated Text Assets Opt Out',\r\n type: 'boolean',\r\n },\r\n FinalUrlExpansionOptOut: {\r\n 'bulk-upload-header': 'Url Expansion Opt Out',\r\n type: 'boolean',\r\n },\r\n CostPerSaleOptOut: {\r\n 'bulk-upload-header': 'Cost Per Sale Opt Out',\r\n type: 'boolean',\r\n },\r\n AppStore: {\r\n 'bulk-upload-header': 'App Store',\r\n type: 'string',\r\n },\r\n AppId: {\r\n 'bulk-upload-header': 'App Id',\r\n type: 'string',\r\n },\r\n PageFeedIds: {\r\n type: 'string',\r\n 'bulk-upload-header': 'Page Feed Ids',\r\n 'bulk-upload-mapper': function (value) {\r\n if (_.isArray(value)) {\r\n return _.isEmpty(value) ? 'delete_value' : value.join(';');\r\n }\r\n return '';\r\n },\r\n },\r\n NewCustomerAcquisitionGoalId: {\r\n 'bulk-upload-header': 'New Customer Acquisition Goal Id',\r\n },\r\n NewCustomerAcquisitionBidOnlyMode: {\r\n 'bulk-upload-header': 'New Customer Acquisition Bid Only Mode',\r\n type: 'boolean',\r\n },\r\n AdditionalConversionValue: {\r\n 'bulk-upload-header': 'Additional Conversion Value',\r\n },\r\n },\r\n};\r\n","export const SiteLink = {\r\n properties: {\r\n 'bulk-upload-type': {\r\n type: 'string',\r\n value: 'SitelinkAdExtension',\r\n },\r\n },\r\n};\r\n","import _ from 'underscore';\r\n\r\nexport const TextAd = {\r\n properties: {\r\n 'bulk-upload-type': {\r\n type: 'string',\r\n value: 'Text Ad',\r\n },\r\n DisplayUrl: {\r\n 'bulk-upload-header': 'Display Url',\r\n },\r\n DestinationUrl: {\r\n 'bulk-upload-header': 'Destination Url',\r\n },\r\n FinalUrls: {\r\n 'bulk-upload-header': 'Final Url',\r\n 'bulk-upload-mapper': function (value) {\r\n return value.join('; ');\r\n },\r\n },\r\n MobileFinalUrls: {\r\n 'bulk-upload-header': 'Mobile Final Url',\r\n 'bulk-upload-mapper': function (value) {\r\n return value.join('; ');\r\n },\r\n },\r\n TrackingUrlTemplate: {\r\n 'bulk-upload-header': 'Tracking Template',\r\n },\r\n UrlCustomParameters: {\r\n 'bulk-upload-header': 'Custom Parameter',\r\n 'bulk-upload-mapper': function (value) {\r\n return _.map(value, p => `{_${p.Key}}=${p.Value}`).join('; ');\r\n },\r\n },\r\n CampaignName: {\r\n 'bulk-upload-header': 'Campaign',\r\n },\r\n AdGroupName: {\r\n 'bulk-upload-header': 'Ad Group',\r\n },\r\n DevicePreference: {\r\n 'bulk-upload-header': 'Device Preference',\r\n },\r\n NativePreference: {\r\n 'bulk-upload-header': 'Ad Format Preference',\r\n 'bulk-upload-mapper': function (value) {\r\n const mapping = {\r\n None: 'All',\r\n NativePreference: 'Native',\r\n };\r\n\r\n return mapping[value];\r\n },\r\n },\r\n },\r\n};\r\n","export const CampaignConversionGoal = {\r\n parent: 'Campaign',\r\n properties: {\r\n 'bulk-upload-type': {\r\n type: 'string',\r\n value: 'Campaign Conversion Goal',\r\n },\r\n Id: { nullable: true },\r\n GoalId: {\r\n 'bulk-upload-header': 'Goal Id',\r\n },\r\n Name: {\r\n 'bulk-upload-header': 'Name',\r\n },\r\n SubType: {\r\n 'bulk-upload-header': 'Sub Type',\r\n },\r\n Action: {\r\n 'bulk-upload-header': 'Action Type',\r\n },\r\n CampaignId: {\r\n 'bulk-upload-header': 'Parent ID',\r\n },\r\n },\r\n};\r\n","export const BrandListAssociation = {\r\n properties: {\r\n Id: {\r\n // Id property is injected into the schema to trick bulkify.js into thinking it is a root entity.\r\n 'bulk-upload-header': 'Id',\r\n },\r\n SharedEntityId: {\r\n 'bulk-upload-header': 'Id',\r\n },\r\n EntityId: {\r\n 'bulk-upload-header': 'Parent ID',\r\n },\r\n Status: {\r\n 'bulk-upload-header': 'Status',\r\n },\r\n CampaignName: {\r\n 'bulk-upload-header': 'Campaign',\r\n },\r\n IsExclusion: {\r\n 'bulk-upload-header': 'IsExclusion',\r\n },\r\n 'bulk-upload-type': {\r\n type: 'string',\r\n value: 'Campaign Brand List Association',\r\n },\r\n },\r\n};\r\n","import _ from 'underscore';\r\nimport {\r\n EDM,\r\n resIdsPlugin,\r\n defineConstProperty,\r\n} from '@bingads-webui-react/overreact-odata';\r\n\r\n// import { odataPlugin } from '@bingads-webui/edm-odata';\r\nimport { schemas } from '@bingads-webui/mca-odata-schemas';\r\n\r\nexport const edm = new EDM({\r\n schemas: {\r\n $ROOT: {\r\n $$ref: '$ROOT',\r\n type: 'object',\r\n properties: {\r\n Customers: {\r\n type: 'array',\r\n items: schemas['Model/McaCustomer'],\r\n },\r\n },\r\n $$ODataExtension: {\r\n Name: '$ROOT',\r\n NavigationProperty: [\r\n 'Customers',\r\n ],\r\n },\r\n },\r\n ..._.mapObject(\r\n schemas,\r\n (schema, name) => _.extend(schema, { $$ref: name })\r\n ),\r\n },\r\n});\r\n\r\nresIdsPlugin(edm);\r\n\r\n// odataPlugin(edm, '', {});\r\nconst root = edm.types.resolve('$ROOT');\r\n\r\nconst rootResourceIdentifier = new root.ResourceIdentifier();\r\ndefineConstProperty(edm, 'root', rootResourceIdentifier);\r\ndefineConstProperty(edm, 'Customers', rootResourceIdentifier.Customers);\r\n","import { Schema } from '@bingads-webui-react/overreact';\r\n\r\nimport { edm } from './edm';\r\n\r\nconst schemaToModelMapping = {\r\n customer: 'Model/McaCustomer',\r\n social_profile: 'Model/SocialProfile',\r\n post: 'Model/Post',\r\n activity: 'Model/Activity',\r\n channel_user: 'Model/ChannelUser',\r\n campaign: 'Model/McaCampaign',\r\n ad: 'Model/McaAd',\r\n target: 'Model/Target',\r\n mca_location: 'Model/McaLocation',\r\n channel_profile: 'Model/ChannelProfile',\r\n tag: 'Model/McaTag',\r\n goal: 'Model/McaGoal',\r\n keyword: 'Model/McaKeyword',\r\n target_action: 'Model/TargetAction',\r\n subscription_plan: 'Model/SubscriptionPlan',\r\n account: 'Model/McaAccount',\r\n listings_mapping: 'Model/ListingsMapping',\r\n bing_user: 'Model/BingUser',\r\n facebook_page: 'Model/FacebookPage',\r\n facebook_user: 'Model/FacebookUser',\r\n google_user: 'Model/GoogleUser',\r\n instagram_user: 'Model/InstagramUser',\r\n linked_in_user: 'Model/LinkedInUser',\r\n twitter_user: 'Model/TwitterUser',\r\n bing_places_review: 'Model/BingPlacesReview',\r\n facebook_comment: 'Model/FacebookComment',\r\n facebook_conversation_thread: 'Model/FacebookConversationThread',\r\n facebook_post: 'Model/FacebookPost',\r\n facebook_review: 'Model/FacebookReview',\r\n facebook_wall_post: 'Model/FacebookWallPost',\r\n google_my_business_question: 'Model/GoogleMyBusinessQuestion',\r\n question_answer: 'Model/QuestionAnswer',\r\n google_my_business_review: 'Model/GoogleMyBusinessReview',\r\n instagram_comment: 'Model/InstagramComment',\r\n instagram_post: 'Model/InstagramPost',\r\n linked_in_comment: 'Model/LinkedInComment',\r\n linked_in_share: 'Model/LinkedInShare',\r\n tweet_activity: 'Model/TweetActivity',\r\n tweet: 'Model/Tweet',\r\n twitter_mention: 'Model/TwitterMention',\r\n twitter_post: 'Model/TwitterPost',\r\n twitter_retweet: 'Model/TwitterRetweet',\r\n mca_destination_goal: 'Model/McaDestinationGoal',\r\n location_target: 'Model/LocationTarget',\r\n radius_target: 'Model/RadiusTarget',\r\n carousel_ad: 'Model/CarouselAd',\r\n image_ad: 'Model/ImageAd',\r\n search_ad: 'Model/SearchAd',\r\n video_ad: 'Model/VideoAd',\r\n metric: 'Model/Metric',\r\n comment_for_reply: 'Model/CommentForReply',\r\n message_for_reply: 'Model/MessageForReply',\r\n url_preview_result: 'Model/UrlPreviewResult',\r\n o_auth_tokens: 'Model/OAuthTokens',\r\n ad_auto_complete: 'Model/AdAutoComplete',\r\n offline_ad_identity: 'Model/OfflineAdIdentity',\r\n mca_conversion_metric: 'Model/McaConversionMetric',\r\n mca_search_term_metric: 'Model/McaSearchTermMetric',\r\n mca_ad_metric: 'Model/McaAdMetric',\r\n fb_ad_account: 'Model/FbAdAccount',\r\n set_mca_goal_result: 'Model/SetMcaGoalResult',\r\n suggest_budget_response: 'Model/SuggestBudgetResponse',\r\n address: 'Model/Address',\r\n ad_source: 'Model/AdSource',\r\n mca_category: 'Model/McaCategory',\r\n mca_keyword_recommendations_response: 'Model/McaKeywordRecommendationsResponse',\r\n mca_target_recommendation: 'Model/McaTargetRecommendation',\r\n audience_reach_estimations_response: 'Model/AudienceReachEstimationsResponse',\r\n blob: 'Model/Blob',\r\n mca_ad_metric_set: 'Model/McaAdMetricSet',\r\n mca_alert_information: 'Model/McaAlertInformation',\r\n mca_conversion_metric_set: 'Model/McaConversionMetricSet',\r\n review_reply: 'Model/ReviewReply',\r\n media: 'Model/Media',\r\n attachment: 'Model/Attachment',\r\n media_attachment: 'Model/MediaAttachment',\r\n file_attachment: 'Model/FileAttachment',\r\n channel_data: 'Model/ChannelData',\r\n posting_status: 'Model/PostingStatus',\r\n mca_api_error: 'Model/McaApiError',\r\n mca_editorial_error: 'Model/McaEditorialError',\r\n editorial_info: 'Model/EditorialInfo',\r\n mca_editorial_reason: 'Model/McaEditorialReason',\r\n geo_point: 'Model/GeoPoint',\r\n mca_business_listing: 'Model/McaBusinessListing',\r\n channel_appeal_info: 'Model/ChannelAppealInfo',\r\n budget: 'Model/Budget',\r\n internal_info: 'Model/InternalInfo',\r\n ad_suggestion: 'Model/AdSuggestion',\r\n site_word: 'Model/SiteWord',\r\n uri: 'Model/Uri',\r\n mca_keyword_recommendation: 'Model/McaKeywordRecommendation',\r\n mca_location_target_recommendation: 'Model/McaLocationTargetRecommendation',\r\n mca_radius_target_recommendation: 'Model/McaRadiusTargetRecommendation',\r\n clarity_event_info: 'Model/ClarityEventInfo',\r\n disapproved_campaign: 'Model/McaCampaign',\r\n load_calendar: 'LoadCalendar',\r\n load_social_metrics: 'LoadSocialMetrics',\r\n get_u_p_budget_suggestions: 'GetUPBudgetSuggestions',\r\n get_subscription_ads_budget_suggestions: 'GetSubscriptionAdsBudgetSuggestions',\r\n get_suggested_ads: 'GetSuggestedAds',\r\n get_activities_count: 'GetActivitiesCount',\r\n get_target_suggestions: 'GetTargetSuggestions',\r\n validate_url: 'ValidateUrl',\r\n get_mca_blob_upload_url: 'GetMcaBlobUploadUrl',\r\n submit_change_history_report_task: 'ChangeHistoryTask',\r\n poll_change_history_report: 'ChangeHistoryTaskStatus',\r\n dismiss_ad_suggestions: 'DismissAdSuggestions',\r\n get_image_suggestions: 'GetImageSuggestions',\r\n apply_target_actions: 'ApplyTargetActions',\r\n set_keywords: 'SetKeywords',\r\n delete_mca_channel_ads: 'DeleteMcaChannelAds',\r\n get_top_ads: 'GetTopAds',\r\n load_thread: 'LoadThread',\r\n load_conversation: 'LoadConversation',\r\n verify_fb_ad_account_status: 'VerifyFbAdAccountStatus',\r\n send_fb_ad_account_invitation: 'SendFbAdAccountInvitation',\r\n reply_as_comment: 'ReplyAsComment',\r\n reply_as_message: 'ReplyAsMessage',\r\n set_clarity_event_info: 'SetClarityEventInfo',\r\n\r\n // external environment schema, we need this map to handle side effect\r\n campaign_ids_with_esc_budget_landscape: 'campaign_ids_with_esc_budget_landscape',\r\n};\r\n\r\nexport const schema = new Schema(\r\n schemaToModelMapping,\r\n name => edm.schema.schemas[name]\r\n);\r\n","import { isString } from 'underscore';\r\n\r\nexport function getRequestor(serviceRoot, additionalHeader) {\r\n return function networkRequestor(uri, requestVerb, headers, body) {\r\n const url = `${serviceRoot}${uri}`;\r\n const requestHeader = {\r\n ...additionalHeader,\r\n ...headers,\r\n };\r\n\r\n return fetch(url, {\r\n method: requestVerb,\r\n headers: requestHeader,\r\n body: isString(body) ? body : JSON.stringify(body),\r\n }).then((response) => {\r\n if (isString(body)) {\r\n const reader = response.body.getReader();\r\n return reader.read().then(({ value }) => {\r\n const responseString = new TextDecoder().decode(value);\r\n return responseString;\r\n });\r\n }\r\n\r\n if (response.status === 401) {\r\n const error = {\r\n status: response.status,\r\n };\r\n throw error;\r\n } else if (response.status === 204) {\r\n return {};\r\n }\r\n\r\n // read the JSON response in the body\r\n return response.json().catch((responseJSONParseError) => {\r\n // handle JSON parsing error here\r\n const error = {\r\n status: response.status,\r\n responseJSONParseError,\r\n };\r\n throw error;\r\n }).then((responseJSON) => {\r\n if (!response.ok) {\r\n // 400/500 error with JSON body\r\n const error = {\r\n status: response.status,\r\n responseJSON,\r\n };\r\n throw error;\r\n }\r\n\r\n // normal response with JSON body\r\n return responseJSON;\r\n });\r\n });\r\n };\r\n}\r\n","import {\r\n Environment,\r\n middlewareTypes,\r\n createFetchPolicyMiddleware,\r\n createErrorMiddleware,\r\n Store,\r\n} from '@bingads-webui-react/overreact';\r\nimport { schema } from './schema';\r\n\r\nexport { getRequestor } from './requestor';\r\n\r\nexport const middlewares = {\r\n [middlewareTypes.FETCH_POLICY]: createFetchPolicyMiddleware(),\r\n [middlewareTypes.ERROR]: createErrorMiddleware(),\r\n};\r\n\r\nconst store = new Store();\r\nlet env = null;\r\n\r\nexport const ENVIRONMENT_TAG = 'Mca_Endpoint';\r\n\r\nexport function getEnvironmentInstance(requestor, customStore, customMiddleWares) {\r\n if (!env) {\r\n env = new Environment(\r\n requestor,\r\n schema,\r\n customStore || store,\r\n customMiddleWares || middlewares,\r\n ENVIRONMENT_TAG\r\n );\r\n }\r\n // allow caller to update requestor\r\n env.networkRequestor = requestor;\r\n env.middlewares = customMiddleWares || middlewares;\r\n\r\n return env;\r\n}\r\n\r\nexport function environmentLookupFn(environmentTag) {\r\n return environmentTag === ENVIRONMENT_TAG;\r\n}\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.StoreOrNetwork;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n payloadDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './action-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor }, ...rest } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)['Default.GetLinkPreview']\r\n .$call(rest);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n return params.headers;\r\n}\r\n\r\nfunction odataPayloadFactory(params) {\r\n return params.data;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:url_preview_result',\r\n verb: requestVerbs.POST,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n payloadFactoryFn: payloadDecorator(odataPayloadFactory),\r\n keySelector: variables => variables.locator.descriptor.account_id,\r\n parentKeySelector: variables => variables.locator.descriptor.customer_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.ENTITY,\r\n keySelector: keySelectorDecorator(r => r),\r\n processorFn: processorDecorator(r => r),\r\n});\r\n\r\nexport const fetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.FETCH,\r\n sideEffects.fetch,\r\n environmentLookupFn\r\n);\r\n\r\nexport const actionSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.MUTATION,\r\n sideEffects.mutation,\r\n environmentLookupFn\r\n);\r\n","/* eslint-disable camelcase */\r\nimport { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\n\r\nexport const networkPolicy = FetchPolicy.NetworkOnly;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor }, ...rest } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)['Default.LoadCalendar']\r\n .$call(rest);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, true);\r\n return `${edmEntity.path}${searchString}`;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response) {\r\n return response && response.value;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n payloadDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './action-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor }, ...rest } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)['Default.LoadCalendar']\r\n .$call(rest);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n return params.headers;\r\n}\r\n\r\nfunction odataPayloadFactory(params) {\r\n return params.data;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:load_calendar',\r\n verb: requestVerbs.POST,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n payloadFactoryFn: payloadDecorator(odataPayloadFactory),\r\n keySelector: variables => variables.locator.descriptor.account_id,\r\n parentKeySelector: variables => variables.locator.descriptor.customer_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.COLL,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r.values),\r\n});\r\n\r\nexport const fetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.FETCH,\r\n sideEffects.fetch,\r\n environmentLookupFn\r\n);\r\n\r\nexport const actionSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.MUTATION,\r\n sideEffects.mutation,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.StoreOrNetwork;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n payloadDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './action-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor }, ...rest } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)['Default.GenerateOAuthTokens']\r\n .$call(rest);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n return params.headers;\r\n}\r\n\r\nfunction odataPayloadFactory(params) {\r\n return params.data;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:o_auth_tokens',\r\n verb: requestVerbs.POST,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n payloadFactoryFn: payloadDecorator(odataPayloadFactory),\r\n keySelector: variables => variables.locator.descriptor.account_id,\r\n parentKeySelector: variables => variables.locator.descriptor.customer_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.ENTITY,\r\n keySelector: keySelectorDecorator(r => r),\r\n processorFn: processorDecorator(r => r),\r\n});\r\n\r\nexport const fetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.FETCH,\r\n sideEffects.fetch,\r\n environmentLookupFn\r\n);\r\n\r\nexport const actionSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.MUTATION,\r\n sideEffects.mutation,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.StoreOrNetwork;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n payloadDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './action-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor }, ...rest } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)['Default.LoadSocialMetrics']\r\n .$call(rest);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n return params.headers;\r\n}\r\n\r\nfunction odataPayloadFactory(params) {\r\n return params.data;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:load_social_metrics',\r\n verb: requestVerbs.POST,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n payloadFactoryFn: payloadDecorator(odataPayloadFactory),\r\n keySelector: variables => variables.locator.descriptor.account_id,\r\n parentKeySelector: variables => variables.locator.descriptor.customer_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.COLL,\r\n keySelector: keySelectorDecorator(r => r),\r\n processorFn: processorDecorator(r => r.values),\r\n});\r\n\r\nexport const fetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.FETCH,\r\n sideEffects.fetch,\r\n environmentLookupFn\r\n);\r\n\r\nexport const actionSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.MUTATION,\r\n sideEffects.mutation,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.NetworkOnly;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator() {\r\n return params => params.data;\r\n}\r\n\r\nexport function keySelectorDecorator() {\r\n return obj => obj.createTimestamp;\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n return {\r\n ...originValue,\r\n createTimestamp: Date.now(),\r\n };\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n payloadDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './action-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor }, ...rest } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)['Default.GetUPBudgetSuggestions']\r\n .$call(rest);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n return params.headers;\r\n}\r\n\r\nfunction odataPayloadFactory(params) {\r\n return params.data;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:get_u_p_budget_suggestions',\r\n verb: requestVerbs.POST,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n payloadFactoryFn: payloadDecorator(odataPayloadFactory),\r\n keySelector: variables => variables.locator.descriptor.account_id,\r\n parentKeySelector: variables => variables.locator.descriptor.customer_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.ENTITY,\r\n keySelector: keySelectorDecorator(r => r),\r\n processorFn: processorDecorator(r => r),\r\n});\r\n\r\nexport const fetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.FETCH,\r\n sideEffects.fetch,\r\n environmentLookupFn\r\n);\r\n\r\nexport const actionSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.MUTATION,\r\n sideEffects.mutation,\r\n environmentLookupFn\r\n);\r\n","import { useCallback, useMemo } from 'react';\r\n\r\nimport {\r\n useFetch,\r\n useMutation,\r\n useDataRefId,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { fetchSpec, actionSpec } from '../../__specs/calls/action-spec';\r\n\r\nimport { dataRefIdDecorator } from './hook-decorators';\r\n\r\nconst DEFAULT_CONFIG = {};\r\n\r\nexport function useGetUPBudgetSuggestions(variables, config = DEFAULT_CONFIG) {\r\n const { locator } = variables;\r\n const dataRefId = useDataRefId(dataRefIdDecorator(), environmentLookupFn);\r\n\r\n const defaultConfig = useMemo(() => ({\r\n mutation: config.mutation || {},\r\n fetch: config.fetch || {},\r\n }), [config]);\r\n\r\n const { fetch: fetchConfig, mutation: mutationConfig } = defaultConfig;\r\n\r\n const fetch = useFetch(dataRefId, fetchSpec, locator, fetchConfig);\r\n const action = useMutation(dataRefId, actionSpec, mutationConfig);\r\n\r\n const callFn = useCallback((param = {}, requestConfig, ...rest) => {\r\n action(\r\n {\r\n ...variables,\r\n ...param.variables,\r\n },\r\n param.payload,\r\n requestConfig,\r\n ...rest\r\n );\r\n }, [variables, action]);\r\n\r\n const [data, error] = fetch;\r\n\r\n return [{ data, error }, { callFn }];\r\n}\r\n","export function dataRefIdDecorator() {\r\n return null;\r\n}\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.StoreOrNetwork;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n payloadDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './action-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor }, ...rest } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)['Default.GetSubscriptionAdsBudgetSuggestions']\r\n .$call(rest);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n return params.headers;\r\n}\r\n\r\nfunction odataPayloadFactory(params) {\r\n return params.data;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:get_subscription_ads_budget_suggestions',\r\n verb: requestVerbs.POST,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n payloadFactoryFn: payloadDecorator(odataPayloadFactory),\r\n keySelector: variables => variables.locator.descriptor.account_id,\r\n parentKeySelector: variables => variables.locator.descriptor.customer_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.ENTITY,\r\n keySelector: keySelectorDecorator(r => r),\r\n processorFn: processorDecorator(r => r),\r\n});\r\n\r\nexport const fetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.FETCH,\r\n sideEffects.fetch,\r\n environmentLookupFn\r\n);\r\n\r\nexport const actionSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.MUTATION,\r\n sideEffects.mutation,\r\n environmentLookupFn\r\n);\r\n","import { useCallback, useMemo } from 'react';\r\n\r\nimport {\r\n useFetch,\r\n useMutation,\r\n useDataRefId,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { fetchSpec, actionSpec } from '../../__specs/calls/action-spec';\r\n\r\nimport { dataRefIdDecorator } from './hook-decorators';\r\n\r\nexport function useGetSubscriptionAdsBudgetSuggestions(variables, config = {}) {\r\n const { locator } = variables;\r\n const dataRefId = useDataRefId(dataRefIdDecorator(), environmentLookupFn);\r\n\r\n const defaultConfig = useMemo(() => ({\r\n mutation: config.mutation || {},\r\n fetch: config.fetch || {},\r\n }), [config]);\r\n\r\n const { fetch: fetchConfig, mutation: mutationConfig } = defaultConfig;\r\n\r\n const fetch = useFetch(dataRefId, fetchSpec, locator, fetchConfig);\r\n const action = useMutation(dataRefId, actionSpec, mutationConfig);\r\n\r\n const callFn = useCallback((param = {}, requestConfig, ...rest) => {\r\n action(\r\n {\r\n ...variables,\r\n ...param.variables,\r\n },\r\n param.payload,\r\n requestConfig,\r\n ...rest\r\n );\r\n }, [variables, action]);\r\n\r\n const [data, error] = fetch;\r\n\r\n return [{ data, error }, { callFn }];\r\n}\r\n","export function dataRefIdDecorator() {\r\n return null;\r\n}\r\n","/* eslint-disable camelcase */\r\nimport { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\n\r\nexport const networkPolicy = FetchPolicy.StoreOrNetwork;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor }, ...rest } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)['Default.GetSuggestedAds']\r\n .$call(rest);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, true);\r\n return `${edmEntity.path}${searchString}`;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response) {\r\n return response && response.value;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n payloadDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './action-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor }, ...rest } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)['Default.GetSuggestedAds']\r\n .$call(rest);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n return params.headers;\r\n}\r\n\r\nfunction odataPayloadFactory(params) {\r\n return params.data;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:get_suggested_ads',\r\n verb: requestVerbs.POST,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n payloadFactoryFn: payloadDecorator(odataPayloadFactory),\r\n keySelector: variables => variables.locator.descriptor.account_id,\r\n parentKeySelector: variables => variables.locator.descriptor.customer_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.COLL,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r.values),\r\n});\r\n\r\nexport const fetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.FETCH,\r\n sideEffects.fetch,\r\n environmentLookupFn\r\n);\r\n\r\nexport const actionSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.MUTATION,\r\n sideEffects.mutation,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.NetworkOnly;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n payloadDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './action-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor }, ...rest } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)['Default.GetCategorySuggestions']\r\n .$call(rest);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, true);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n return params.headers;\r\n}\r\n\r\nfunction odataPayloadFactory(params) {\r\n return params.data;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:mca_category',\r\n verb: requestVerbs.POST,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n payloadFactoryFn: payloadDecorator(odataPayloadFactory),\r\n keySelector: variables => variables.locator.descriptor.account_id,\r\n parentKeySelector: variables => variables.locator.descriptor.customer_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.COLL,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r.value),\r\n});\r\n\r\nexport const fetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.FETCH,\r\n sideEffects.fetch,\r\n environmentLookupFn\r\n);\r\n\r\nexport const actionSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.MUTATION,\r\n sideEffects.mutation,\r\n environmentLookupFn\r\n);\r\n","import { useCallback, useMemo } from 'react';\r\n\r\nimport {\r\n useFetch,\r\n useMutation,\r\n useDataRefId,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { fetchSpec, actionSpec } from '../../__specs/calls/action-spec';\r\n\r\nimport { dataRefIdDecorator } from './hook-decorators';\r\n\r\nconst DEFAULT_CONFIG = {};\r\n\r\nexport function useGetCategorySuggestions(variables, config = DEFAULT_CONFIG) {\r\n const { locator } = variables;\r\n const dataRefId = useDataRefId(dataRefIdDecorator(), environmentLookupFn);\r\n\r\n const defaultConfig = useMemo(() => ({\r\n mutation: config.mutation || {},\r\n fetch: config.fetch || {},\r\n }), [config]);\r\n\r\n const { fetch: fetchConfig, mutation: mutationConfig } = defaultConfig;\r\n\r\n const fetch = useFetch(dataRefId, fetchSpec, locator, fetchConfig);\r\n const action = useMutation(dataRefId, actionSpec, mutationConfig);\r\n\r\n const callFn = useCallback((param = {}, requestConfig, ...rest) => {\r\n action(\r\n {\r\n ...variables,\r\n ...param.variables,\r\n },\r\n param.payload,\r\n requestConfig,\r\n ...rest\r\n );\r\n }, [variables, action]);\r\n\r\n const [data, error] = fetch;\r\n\r\n return [{ data, error }, { callFn }];\r\n}\r\n","export function dataRefIdDecorator() {\r\n return null;\r\n}\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.StoreOrNetwork;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n payloadDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './action-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor }, ...rest } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)['Default.GetActivitiesCount']\r\n .$call(rest);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n return params.headers;\r\n}\r\n\r\nfunction odataPayloadFactory(params) {\r\n return params.data;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:get_activities_count',\r\n verb: requestVerbs.POST,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n payloadFactoryFn: payloadDecorator(odataPayloadFactory),\r\n keySelector: variables => variables.locator.descriptor.account_id,\r\n parentKeySelector: variables => variables.locator.descriptor.customer_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.COLL,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r.values),\r\n});\r\n\r\nexport const fetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.FETCH,\r\n sideEffects.fetch,\r\n environmentLookupFn\r\n);\r\n\r\nexport const actionSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.MUTATION,\r\n sideEffects.mutation,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport stringify from 'json-stable-stringify';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.NetworkOnly;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params) {\r\n return params.data;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n return originValue.ClientId;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator() {\r\n return (response, request) => ({\r\n ...response,\r\n ClientId: stringify(request.variables),\r\n });\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n payloadDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './action-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor }, ...rest } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)['Default.GetMcaProductServiceRecommendations']\r\n .$call(rest);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n return params.headers;\r\n}\r\n\r\nfunction odataPayloadFactory(params) {\r\n return params.data;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:mca_keyword_recommendations_response',\r\n verb: requestVerbs.POST,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n payloadFactoryFn: payloadDecorator(odataPayloadFactory),\r\n keySelector: variables => variables.locator.descriptor.account_id,\r\n parentKeySelector: variables => variables.locator.descriptor.customer_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.ENTITY,\r\n keySelector: keySelectorDecorator(r => r),\r\n processorFn: processorDecorator(r => r),\r\n});\r\n\r\nexport const fetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.FETCH,\r\n sideEffects.fetch,\r\n environmentLookupFn\r\n);\r\n\r\nexport const actionSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.MUTATION,\r\n sideEffects.mutation,\r\n environmentLookupFn\r\n);\r\n","import { useCallback, useMemo } from 'react';\r\n\r\nimport {\r\n useFetch,\r\n useMutation,\r\n useDataRefId,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { fetchSpec, actionSpec } from '../../__specs/calls/action-spec';\r\n\r\nimport { dataRefIdDecorator } from './hook-decorators';\r\n\r\nexport function useGetMcaProductServiceRecommendations(variables, config = {}) {\r\n const { locator } = variables;\r\n const dataRefId = useDataRefId(dataRefIdDecorator(), environmentLookupFn);\r\n\r\n const defaultConfig = useMemo(() => ({\r\n mutation: config.mutation || {},\r\n fetch: config.fetch || {},\r\n }), [config]);\r\n\r\n const { fetch: fetchConfig, mutation: mutationConfig } = defaultConfig;\r\n\r\n const fetch = useFetch(dataRefId, fetchSpec, locator, fetchConfig);\r\n const action = useMutation(dataRefId, actionSpec, mutationConfig);\r\n\r\n const callFn = useCallback((param = {}, requestConfig, ...rest) => {\r\n action(\r\n {\r\n ...variables,\r\n ...param.variables,\r\n },\r\n param.payload,\r\n requestConfig,\r\n ...rest\r\n );\r\n }, [variables, action]);\r\n\r\n const [data, error] = fetch;\r\n\r\n return [{ data, error }, { callFn }];\r\n}\r\n","export function dataRefIdDecorator() {\r\n return null;\r\n}\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.StoreOrNetwork;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n payloadDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './action-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor }, ...rest } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)['Default.GetTargetSuggestions']\r\n .$call(rest);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n return params.headers;\r\n}\r\n\r\nfunction odataPayloadFactory(params) {\r\n return params.data;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:get_target_suggestions',\r\n verb: requestVerbs.POST,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n payloadFactoryFn: payloadDecorator(odataPayloadFactory),\r\n keySelector: variables => variables.locator.descriptor.account_id,\r\n parentKeySelector: variables => variables.locator.descriptor.customer_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.COLL,\r\n keySelector: keySelectorDecorator(r => r),\r\n processorFn: processorDecorator(r => r.values),\r\n});\r\n\r\nexport const fetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.FETCH,\r\n sideEffects.fetch,\r\n environmentLookupFn\r\n);\r\n\r\nexport const actionSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.MUTATION,\r\n sideEffects.mutation,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.NetworkOnly;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response) {\r\n return response.value;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n payloadDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './action-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor }, ...rest } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)['Default.ValidateUrl']\r\n .$call(rest);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n return params.headers;\r\n}\r\n\r\nfunction odataPayloadFactory(params) {\r\n return params.data;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:validate_url',\r\n verb: requestVerbs.POST,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n payloadFactoryFn: payloadDecorator(odataPayloadFactory),\r\n keySelector: variables => variables.locator.descriptor.account_id,\r\n parentKeySelector: variables => variables.locator.descriptor.customer_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.ENTITY,\r\n keySelector: keySelectorDecorator(r => r),\r\n processorFn: processorDecorator(r => r),\r\n});\r\n\r\nexport const fetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.FETCH,\r\n sideEffects.fetch,\r\n environmentLookupFn\r\n);\r\n\r\nexport const actionSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.MUTATION,\r\n sideEffects.mutation,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.StoreOrNetwork;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n payloadDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './action-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor }, ...rest } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)['Default.GetAudienceReachEstimations']\r\n .$call(rest);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n return params.headers;\r\n}\r\n\r\nfunction odataPayloadFactory(params) {\r\n return params.data;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:audience_reach_estimations_response',\r\n verb: requestVerbs.POST,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n payloadFactoryFn: payloadDecorator(odataPayloadFactory),\r\n keySelector: variables => variables.locator.descriptor.account_id,\r\n parentKeySelector: variables => variables.locator.descriptor.customer_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.ENTITY,\r\n keySelector: keySelectorDecorator(r => r),\r\n processorFn: processorDecorator(r => r),\r\n});\r\n\r\nexport const fetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.FETCH,\r\n sideEffects.fetch,\r\n environmentLookupFn\r\n);\r\n\r\nexport const actionSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.MUTATION,\r\n sideEffects.mutation,\r\n environmentLookupFn\r\n);\r\n","import { useCallback, useMemo } from 'react';\r\n\r\nimport {\r\n useFetch,\r\n useMutation,\r\n useDataRefId,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { fetchSpec, actionSpec } from '../../__specs/calls/action-spec';\r\n\r\nimport { dataRefIdDecorator } from './hook-decorators';\r\n\r\nexport function useGetAudienceReachEstimations(variables, config = {}) {\r\n const { locator } = variables;\r\n const dataRefId = useDataRefId(dataRefIdDecorator(), environmentLookupFn);\r\n\r\n const defaultConfig = useMemo(() => ({\r\n mutation: config.mutation || {},\r\n fetch: config.fetch || {},\r\n }), [config]);\r\n\r\n const { fetch: fetchConfig, mutation: mutationConfig } = defaultConfig;\r\n\r\n const fetch = useFetch(dataRefId, fetchSpec, locator, fetchConfig);\r\n const action = useMutation(dataRefId, actionSpec, mutationConfig);\r\n\r\n const callFn = useCallback((param = {}, requestConfig, ...rest) => {\r\n action(\r\n {\r\n ...variables,\r\n ...param.variables,\r\n },\r\n param.payload,\r\n requestConfig,\r\n ...rest\r\n );\r\n }, [variables, action]);\r\n\r\n const [data, error] = fetch;\r\n\r\n return [{ data, error }, { callFn }];\r\n}\r\n","export function dataRefIdDecorator() {\r\n return null;\r\n}\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.StoreOrNetwork;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n payloadDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './action-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor }, ...rest } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)['Default.GetMcaBlobUploadUrl']\r\n .$call(rest);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n return params.headers;\r\n}\r\n\r\nfunction odataPayloadFactory(params) {\r\n return params.data;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:get_mca_blob_upload_url',\r\n verb: requestVerbs.POST,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n payloadFactoryFn: payloadDecorator(odataPayloadFactory),\r\n keySelector: variables => variables.locator.descriptor.account_id,\r\n parentKeySelector: variables => variables.locator.descriptor.customer_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.ENTITY,\r\n keySelector: keySelectorDecorator(r => r),\r\n processorFn: processorDecorator(r => r),\r\n});\r\n\r\nexport const fetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.FETCH,\r\n sideEffects.fetch,\r\n environmentLookupFn\r\n);\r\n\r\nexport const actionSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.MUTATION,\r\n sideEffects.mutation,\r\n environmentLookupFn\r\n);\r\n","import { useCallback, useMemo } from 'react';\r\n\r\nimport {\r\n useFetch,\r\n useMutation,\r\n useDataRefId,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { fetchSpec, actionSpec } from '../../__specs/calls/action-spec';\r\n\r\nimport { dataRefIdDecorator } from './hook-decorators';\r\n\r\nexport function useGetMcaBlobUploadUrl(variables, config = {}) {\r\n const { locator } = variables;\r\n const dataRefId = useDataRefId(dataRefIdDecorator(), environmentLookupFn);\r\n\r\n const defaultConfig = useMemo(() => ({\r\n mutation: config.mutation || {},\r\n fetch: config.fetch || {},\r\n }), [config]);\r\n\r\n const { fetch: fetchConfig, mutation: mutationConfig } = defaultConfig;\r\n\r\n const fetch = useFetch(dataRefId, fetchSpec, locator, fetchConfig);\r\n const action = useMutation(dataRefId, actionSpec, mutationConfig);\r\n\r\n const callFn = useCallback((param = {}, requestConfig, ...rest) => {\r\n action(\r\n {\r\n ...variables,\r\n ...param.variables,\r\n },\r\n param.payload,\r\n requestConfig,\r\n ...rest\r\n );\r\n }, [variables, action]);\r\n\r\n const [data, error] = fetch;\r\n\r\n return [{ data, error }, { callFn }];\r\n}\r\n","export function dataRefIdDecorator() {\r\n return null;\r\n}\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.NetworkOnly;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n payloadDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './action-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor }, ...rest } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)['Default.SubmitChangeHistoryReportTask']\r\n .$call(rest);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n return params.headers;\r\n}\r\n\r\nfunction odataPayloadFactory(params) {\r\n return params.data;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:submit_change_history_report_task',\r\n verb: requestVerbs.POST,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n payloadFactoryFn: payloadDecorator(odataPayloadFactory),\r\n keySelector: variables => variables.locator.descriptor.account_id,\r\n parentKeySelector: variables => variables.locator.descriptor.customer_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.ENTITY,\r\n keySelector: keySelectorDecorator(r => r.value),\r\n processorFn: processorDecorator(r => r),\r\n});\r\n\r\nexport const fetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.FETCH,\r\n sideEffects.fetch,\r\n environmentLookupFn\r\n);\r\n\r\nexport const actionSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.REFETCH,\r\n sideEffects.refetch,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.NetworkOnly;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n payloadDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './action-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor }, ...rest } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)['Default.PollChangeHistoryReport']\r\n .$call(rest);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n return params.headers;\r\n}\r\n\r\nfunction odataPayloadFactory(params) {\r\n return params.data;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:poll_change_history_report',\r\n verb: requestVerbs.GET,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n payloadFactoryFn: payloadDecorator(odataPayloadFactory),\r\n keySelector: variables => variables.locator.descriptor.account_id,\r\n parentKeySelector: variables => variables.locator.descriptor.customer_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.ENTITY,\r\n keySelector: keySelectorDecorator(r => r),\r\n processorFn: processorDecorator(r => r),\r\n});\r\n\r\nexport const fetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.FETCH,\r\n sideEffects.fetch,\r\n environmentLookupFn\r\n);\r\n\r\nexport const actionSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.REFETCH,\r\n sideEffects.refetch,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.NetworkOnly;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n payloadDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './action-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor }, ...rest } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)['Default.McaAdsPerformanceMetrics']\r\n .$call(rest);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n return params.headers;\r\n}\r\n\r\nfunction odataPayloadFactory(params) {\r\n return params.data;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:mca_ad_metric_set',\r\n verb: requestVerbs.POST,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n payloadFactoryFn: payloadDecorator(odataPayloadFactory),\r\n keySelector: variables => variables.locator.descriptor.account_id,\r\n parentKeySelector: variables => variables.locator.descriptor.customer_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.COLL,\r\n keySelector: keySelectorDecorator(r => r),\r\n processorFn: processorDecorator(r => r.value),\r\n});\r\n\r\nexport const fetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.FETCH,\r\n sideEffects.fetch,\r\n environmentLookupFn\r\n);\r\n\r\nexport const actionSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.MUTATION,\r\n sideEffects.mutation,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.StoreOrNetwork;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n payloadDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './action-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor }, ...rest } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)['Default.McaAlertInformations']\r\n .$call(rest);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n return params.headers;\r\n}\r\n\r\nfunction odataPayloadFactory(params) {\r\n return params.data;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:mca_alert_information',\r\n verb: requestVerbs.POST,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n payloadFactoryFn: payloadDecorator(odataPayloadFactory),\r\n keySelector: variables => variables.locator.descriptor.account_id,\r\n parentKeySelector: variables => variables.locator.descriptor.customer_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.COLL,\r\n keySelector: keySelectorDecorator(r => r),\r\n processorFn: processorDecorator(r => r.values),\r\n});\r\n\r\nexport const fetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.FETCH,\r\n sideEffects.fetch,\r\n environmentLookupFn\r\n);\r\n\r\nexport const actionSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.MUTATION,\r\n sideEffects.mutation,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.NetworkOnly;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n payloadDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './action-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor }, ...rest } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)['Default.McaConversionMetrics']\r\n .$call(rest);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n return params.headers;\r\n}\r\n\r\nfunction odataPayloadFactory(params) {\r\n return params.data;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:mca_conversion_metric_set',\r\n verb: requestVerbs.POST,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n payloadFactoryFn: payloadDecorator(odataPayloadFactory),\r\n keySelector: variables => variables.locator.descriptor.account_id,\r\n parentKeySelector: variables => variables.locator.descriptor.customer_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.COLL,\r\n keySelector: keySelectorDecorator(r => r),\r\n processorFn: processorDecorator(r => r.value),\r\n});\r\n\r\nexport const fetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.FETCH,\r\n sideEffects.fetch,\r\n environmentLookupFn\r\n);\r\n\r\nexport const actionSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.MUTATION,\r\n sideEffects.mutation,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.NetworkOnly;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n payloadDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './action-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor }, ...rest } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)['Default.GetAdAutoComplete']\r\n .$call(rest);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n return params.headers;\r\n}\r\n\r\nfunction odataPayloadFactory(params) {\r\n return params.data;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:ad_auto_complete',\r\n verb: requestVerbs.POST,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n payloadFactoryFn: payloadDecorator(odataPayloadFactory),\r\n keySelector: variables => variables.locator.descriptor.account_id,\r\n parentKeySelector: variables => variables.locator.descriptor.customer_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.ENTITY,\r\n keySelector: keySelectorDecorator(r => r),\r\n processorFn: processorDecorator(r => r),\r\n});\r\n\r\nexport const fetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.FETCH,\r\n sideEffects.fetch,\r\n environmentLookupFn\r\n);\r\n\r\nexport const actionSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.MUTATION,\r\n sideEffects.mutation,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.StoreOrNetwork;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './func-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor }, ...rest } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)['Default.GetFbAdAccount']\r\n .$call(rest);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n const { headers } = params;\r\n return headers;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:fb_ad_account',\r\n verb: requestVerbs.GET,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n keySelector: variables => variables.locator.descriptor.account_id,\r\n parentKeySelector: variables => variables.locator.descriptor.customer_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.ENTITY,\r\n keySelector: keySelectorDecorator(r => r),\r\n processorFn: processorDecorator(r => r),\r\n});\r\n\r\nexport const fetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.FETCH,\r\n sideEffects.fetch,\r\n environmentLookupFn\r\n);\r\n\r\nexport const refetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.REFETCH,\r\n sideEffects.refetch,\r\n environmentLookupFn\r\n);\r\n","/* eslint-disable camelcase */\r\nimport _ from 'underscore';\r\nimport { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\n\r\nexport const networkPolicy = FetchPolicy.NetworkOnly;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor }, ...rest } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n } = descriptor;\r\n const funcParams = _.pick(rest, ['startDate', 'endDate']);\r\n const searchParams = _.omit(rest, ['startDate', 'endDate']);\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)['Default.GetMcaSearchTermMetrics']\r\n .$call(funcParams);\r\n\r\n const searchString = composeSearchString(searchParams, edmEntity, true);\r\n return `${edmEntity.path}${searchString}`;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(response) {\r\n return response.SearchTerm;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './func-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor }, ...rest } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)['Default.GetMcaSearchTermMetrics']\r\n .$call(rest);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n const { headers } = params;\r\n return headers;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:mca_search_term_metric',\r\n verb: requestVerbs.GET,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n keySelector: variables => variables.locator.descriptor.account_id,\r\n parentKeySelector: variables => variables.locator.descriptor.customer_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.COLL,\r\n keySelector: keySelectorDecorator(r => r),\r\n processorFn: processorDecorator(r => r.value),\r\n});\r\n\r\nexport const fetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.FETCH,\r\n sideEffects.fetch,\r\n environmentLookupFn\r\n);\r\n\r\nexport const refetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.REFETCH,\r\n sideEffects.refetch,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.NetworkOnly;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './destroy-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n campaign_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .Campaigns.$withKey(campaign_id);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n const { headers } = params;\r\n return headers;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:campaign',\r\n verb: requestVerbs.DELETE,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n keySelector: variables => variables.locator.descriptor.campaign_id,\r\n parentKeySelector: variables => variables.locator.descriptor.account_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.ENTITY,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r),\r\n});\r\n\r\nexport const destroySpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.DELETE,\r\n sideEffects.destroy,\r\n environmentLookupFn\r\n);\r\n","import _ from 'underscore';\r\n\r\nfunction parentIdSelector(variables) {\r\n return variables.locator.descriptor.campaign_id;\r\n}\r\n\r\nexport function sideEffectFn(response, request, spec, {\r\n tryMergeItemsToCacheStore,\r\n}) {\r\n const { Ads, Targets, Keywords } = response;\r\n\r\n if (!_.isEmpty(Ads)) {\r\n tryMergeItemsToCacheStore({\r\n items: Ads,\r\n schemaName: 'ad',\r\n itemKeySelector: ad => ad.Id,\r\n parentSchemaName: 'campaign',\r\n parentId: parentIdSelector(request.variables),\r\n });\r\n }\r\n if (!_.isEmpty(Targets)) {\r\n tryMergeItemsToCacheStore({\r\n items: Targets,\r\n schemaName: 'target',\r\n itemKeySelector: target => target.Id,\r\n parentSchemaName: 'campaign',\r\n parentId: parentIdSelector(request.variables),\r\n });\r\n }\r\n if (!_.isEmpty(Keywords)) {\r\n tryMergeItemsToCacheStore({\r\n items: Keywords,\r\n schemaName: 'keyword',\r\n itemKeySelector: keyword => keyword.Id,\r\n parentSchemaName: 'campaign',\r\n parentId: parentIdSelector(request.variables),\r\n });\r\n }\r\n}\r\n\r\nconst CampaignIdsWithEscBudgetLandscapeDataKey = 'CampaignIdsWithEscBudgetLandscapeDataKey';\r\n\r\nexport function mutateSideEffectFn(response, request, spec, {\r\n tryDeleteItemsInCacheStore,\r\n}) {\r\n tryDeleteItemsInCacheStore({\r\n keysToDelete: [CampaignIdsWithEscBudgetLandscapeDataKey],\r\n schemaName: 'campaign_ids_with_esc_budget_landscape',\r\n itemKeySelector: () => CampaignIdsWithEscBudgetLandscapeDataKey,\r\n });\r\n}\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nimport { sideEffectFn } from './side-effect';\r\n\r\nexport const networkPolicy = FetchPolicy.StoreOrNetwork;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: sideEffectFn,\r\n refetch: sideEffectFn,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './fetch-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n campaign_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .Campaigns.$withKey(campaign_id);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n const { headers } = params;\r\n return headers;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:campaign',\r\n verb: requestVerbs.GET,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n keySelector: variables => variables.locator.descriptor.campaign_id,\r\n parentKeySelector: variables => variables.locator.descriptor.account_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.ENTITY,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r),\r\n});\r\n\r\nexport const fetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.FETCH,\r\n sideEffects.fetch,\r\n environmentLookupFn\r\n);\r\n\r\nexport const refetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.REFETCH,\r\n sideEffects.refetch,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nimport { mutateSideEffectFn } from './side-effect';\r\n\r\nexport const networkPolicy = FetchPolicy.NetworkOnly;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params) {\r\n const { data } = params;\r\n return data;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request) {\r\n const { data } = request;\r\n return {\r\n ...data,\r\n Id: response.value,\r\n };\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: mutateSideEffectFn,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n payloadDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './mutation-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n campaign_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .Campaigns.$withKey(campaign_id);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n return params.headers;\r\n}\r\n\r\nfunction odataPayloadFactory(params) {\r\n return params.data;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:campaign',\r\n verb: requestVerbs.PATCH,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n payloadFactoryFn: payloadDecorator(odataPayloadFactory),\r\n keySelector: variables => variables.locator.descriptor.campaign_id,\r\n parentKeySelector: variables => variables.locator.descriptor.account_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.ENTITY,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r),\r\n});\r\n\r\nexport const mutationSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.MUTATION,\r\n sideEffects.mutation,\r\n environmentLookupFn\r\n);\r\n","import { useCallback, useMemo } from 'react';\r\n\r\nimport {\r\n useDataRefId,\r\n useFetch,\r\n useMutation,\r\n useRefetch,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\n\r\nimport { destroySpec } from '../../__specs/entity/destroy-spec';\r\nimport { fetchSpec, refetchSpec } from '../../__specs/entity/fetch-spec';\r\nimport { mutationSpec } from '../../__specs/entity/mutation-spec';\r\n\r\nimport { dataRefIdDecorator } from './hook-decorators';\r\n\r\nexport function useCampaign(variables, config = {}) {\r\n const dataRefId = useDataRefId(dataRefIdDecorator(), environmentLookupFn);\r\n\r\n const defaultConfig = useMemo(() => ({\r\n fetch: config.fetch || {},\r\n refetch: config.refetch || {},\r\n mutation: config.mutation || {},\r\n destroy: config.destroy || {},\r\n }), [config]);\r\n\r\n const {\r\n fetch: fetchConfig,\r\n refetch: refetchConfig,\r\n mutation: mutationConfig,\r\n destroy: destroyConfig,\r\n } = defaultConfig;\r\n\r\n const [data, error] = useFetch(dataRefId, fetchSpec, variables, fetchConfig);\r\n const mutateFn = useMutation(dataRefId, mutationSpec, mutationConfig);\r\n const destroyFn = useMutation(dataRefId, destroySpec, destroyConfig);\r\n const refetchFn = useRefetch(dataRefId, refetchSpec, refetchConfig);\r\n\r\n const update = useCallback((newData, ...rest) => {\r\n mutateFn(variables, newData, ...rest);\r\n }, [mutateFn, variables]);\r\n\r\n // FIXME: likezh: Why would destroy need data?\r\n const destroy = useCallback((newData, ...rest) => {\r\n destroyFn(variables, newData, ...rest);\r\n }, [destroyFn, variables]);\r\n\r\n const refetch = useCallback((parameter = {}, ...rest) => {\r\n refetchFn(\r\n {\r\n variables: {\r\n ...variables,\r\n ...parameter.variables,\r\n },\r\n payload: parameter.payload,\r\n },\r\n refetchConfig,\r\n ...rest\r\n );\r\n }, [refetchFn, refetchConfig, variables]);\r\n\r\n return [{ data, error }, { update, destroy, refetch }];\r\n}\r\n","export function dataRefIdDecorator() {\r\n return null;\r\n}\r\n","import _ from 'underscore';\r\nimport { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.NetworkOnly;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params) {\r\n const { data } = params;\r\n return _.omit(data, 'id');\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request) {\r\n const { data } = request;\r\n return {\r\n ...data,\r\n Id: response.value,\r\n };\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n payloadDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './add-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .Campaigns;\r\n\r\n const searchString = composeSearchString(variables, edmEntity);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n return params.headers;\r\n}\r\n\r\nfunction odataPayloadFactory(params) {\r\n return params.data;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:campaign',\r\n verb: requestVerbs.POST,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n payloadFactoryFn: payloadDecorator(odataPayloadFactory),\r\n keySelector: variables => variables.locator.descriptor.campaign_id,\r\n parentKeySelector: variables => variables.locator.descriptor.account_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.COLL,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r.value),\r\n});\r\n\r\nexport const addSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.ADD,\r\n sideEffects.add,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.NetworkOnly;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './destroy-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n campaign_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .Campaigns.$withKey(campaign_id);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n const { headers } = params;\r\n return headers;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:campaign',\r\n verb: requestVerbs.DELETE,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n keySelector: variables => variables.locator.descriptor.campaign_id,\r\n parentKeySelector: variables => variables.locator.descriptor.account_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.ENTITY,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r),\r\n});\r\n\r\nexport const destroySpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.DELETE,\r\n sideEffects.destroy,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.StoreOrNetwork;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './fetch-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .Campaigns;\r\n\r\n const searchString = composeSearchString(variables, edmEntity);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n const { headers } = params;\r\n return headers;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:campaign',\r\n verb: requestVerbs.GET,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n keySelector: variables => variables.locator.descriptor.campaign_id,\r\n parentKeySelector: variables => variables.locator.descriptor.account_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.COLL,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r.value),\r\n});\r\n\r\nexport const fetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.PAGINATION,\r\n sideEffects.pagination,\r\n environmentLookupFn\r\n);\r\n\r\nexport const refetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.REFETCH,\r\n sideEffects.refetch,\r\n environmentLookupFn\r\n);\r\n","import _ from 'underscore';\r\nimport { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.NetworkOnly;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params) {\r\n const { data } = params;\r\n return _.omit(data, 'id');\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request) {\r\n const { data } = request;\r\n return data;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n payloadDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './mutation-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .Campaigns;\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n return params.headers;\r\n}\r\n\r\nfunction odataPayloadFactory(params) {\r\n return params.data;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:campaign',\r\n verb: requestVerbs.PATCH,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n payloadFactoryFn: payloadDecorator(odataPayloadFactory),\r\n keySelector: variables => variables.locator.descriptor.campaign_id,\r\n parentKeySelector: variables => variables.locator.descriptor.account_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.COLL,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r.value),\r\n});\r\n\r\nexport const mutationSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.MUTATION,\r\n sideEffects.mutation,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.NetworkOnly;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator() {\r\n return params => params.data;\r\n}\r\n\r\nexport function keySelectorDecorator() {\r\n return obj => obj.createTimestamp;\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n return {\r\n ...originValue,\r\n createTimestamp: Date.now(),\r\n };\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n payloadDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './action-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor }, ...rest } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n campaign_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .Campaigns.$withKey(campaign_id)['Default.GetUPBudgetSuggestions']\r\n .$call(rest);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n return params.headers;\r\n}\r\n\r\nfunction odataPayloadFactory(params) {\r\n return params.data;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:campaign:get_u_p_budget_suggestions',\r\n verb: requestVerbs.POST,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n payloadFactoryFn: payloadDecorator(odataPayloadFactory),\r\n keySelector: variables => variables.locator.descriptor.campaign_id,\r\n parentKeySelector: variables => variables.locator.descriptor.account_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.ENTITY,\r\n keySelector: keySelectorDecorator(r => r),\r\n processorFn: processorDecorator(r => r),\r\n});\r\n\r\nexport const fetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.FETCH,\r\n sideEffects.fetch,\r\n environmentLookupFn\r\n);\r\n\r\nexport const actionSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.MUTATION,\r\n sideEffects.mutation,\r\n environmentLookupFn\r\n);\r\n","/* eslint-disable camelcase */\r\nimport { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nimport { edm } from '../../../../../../../env/edm';\r\n\r\nexport const networkPolicy = FetchPolicy.StoreOrNetwork;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor }, ...rest } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n campaign_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .Campaigns.$withKey(campaign_id)['Default.GetSuggestedAds']\r\n .$call(rest);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, true);\r\n return `${edmEntity.path}${searchString}`;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response) {\r\n return response && response.value;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n payloadDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './action-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor }, ...rest } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n campaign_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .Campaigns.$withKey(campaign_id)['Default.GetSuggestedAds']\r\n .$call(rest);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n return params.headers;\r\n}\r\n\r\nfunction odataPayloadFactory(params) {\r\n return params.data;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:campaign:get_suggested_ads',\r\n verb: requestVerbs.POST,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n payloadFactoryFn: payloadDecorator(odataPayloadFactory),\r\n keySelector: variables => variables.locator.descriptor.campaign_id,\r\n parentKeySelector: variables => variables.locator.descriptor.account_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.COLL,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r.values),\r\n});\r\n\r\nexport const fetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.FETCH,\r\n sideEffects.fetch,\r\n environmentLookupFn\r\n);\r\n\r\nexport const actionSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.MUTATION,\r\n sideEffects.mutation,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.StoreOrNetwork;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n return { profileId: originValue.Id };\r\n }\r\n\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue.Id;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n return {\r\n SocialProfiles: [],\r\n Id: originValue.value,\r\n };\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n payloadDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './action-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor }, ...rest } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n campaign_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .Campaigns.$withKey(campaign_id)['Default.DisassociateProfile']\r\n .$call(rest);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n return params.headers;\r\n}\r\n\r\nfunction odataPayloadFactory(params) {\r\n return params.data;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:campaign',\r\n verb: requestVerbs.POST,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n payloadFactoryFn: payloadDecorator(odataPayloadFactory),\r\n keySelector: variables => variables.locator.descriptor.campaign_id,\r\n parentKeySelector: variables => variables.locator.descriptor.account_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.ENTITY,\r\n keySelector: keySelectorDecorator(r => r),\r\n processorFn: processorDecorator(r => r),\r\n});\r\n\r\nexport const fetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.FETCH,\r\n sideEffects.fetch,\r\n environmentLookupFn\r\n);\r\n\r\nexport const actionSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.MUTATION,\r\n sideEffects.mutation,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.NetworkOnly;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n return { profileId: originValue.Id };\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue.Id;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request) {\r\n const { data: profile } = request;\r\n return {\r\n SocialProfiles: [profile],\r\n Id: response.value,\r\n };\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n payloadDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './action-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor }, ...rest } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n campaign_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .Campaigns.$withKey(campaign_id)['Default.AssociateProfile']\r\n .$call(rest);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n return params.headers;\r\n}\r\n\r\nfunction odataPayloadFactory(params) {\r\n return params.data;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:campaign',\r\n verb: requestVerbs.POST,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n payloadFactoryFn: payloadDecorator(odataPayloadFactory),\r\n keySelector: variables => variables.locator.descriptor.campaign_id,\r\n parentKeySelector: variables => variables.locator.descriptor.account_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.ENTITY,\r\n keySelector: keySelectorDecorator(r => r),\r\n processorFn: processorDecorator(r => r),\r\n});\r\n\r\nexport const fetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.FETCH,\r\n sideEffects.fetch,\r\n environmentLookupFn\r\n);\r\n\r\nexport const actionSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.MUTATION,\r\n sideEffects.mutation,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.StoreOrNetwork;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n payloadDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './action-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor }, ...rest } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n campaign_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .Campaigns.$withKey(campaign_id)['Default.DismissAdSuggestions']\r\n .$call(rest);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n return params.headers;\r\n}\r\n\r\nfunction odataPayloadFactory(params) {\r\n return params.data;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:campaign:dismiss_ad_suggestions',\r\n verb: requestVerbs.POST,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n payloadFactoryFn: payloadDecorator(odataPayloadFactory),\r\n keySelector: variables => variables.locator.descriptor.campaign_id,\r\n parentKeySelector: variables => variables.locator.descriptor.account_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.ENTITY,\r\n keySelector: keySelectorDecorator(r => r),\r\n processorFn: processorDecorator(r => r),\r\n});\r\n\r\nexport const fetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.FETCH,\r\n sideEffects.fetch,\r\n environmentLookupFn\r\n);\r\n\r\nexport const actionSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.MUTATION,\r\n sideEffects.mutation,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.StoreOrNetwork;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n payloadDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './action-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor }, ...rest } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n campaign_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .Campaigns.$withKey(campaign_id)['Default.GetImageSuggestions']\r\n .$call(rest);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n return params.headers;\r\n}\r\n\r\nfunction odataPayloadFactory(params) {\r\n return params.data;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:campaign:get_image_suggestions',\r\n verb: requestVerbs.POST,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n payloadFactoryFn: payloadDecorator(odataPayloadFactory),\r\n keySelector: variables => variables.locator.descriptor.campaign_id,\r\n parentKeySelector: variables => variables.locator.descriptor.account_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.ENTITY,\r\n keySelector: keySelectorDecorator(r => r),\r\n processorFn: processorDecorator(r => r),\r\n});\r\n\r\nexport const fetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.FETCH,\r\n sideEffects.fetch,\r\n environmentLookupFn\r\n);\r\n\r\nexport const actionSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.MUTATION,\r\n sideEffects.mutation,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.StoreOrNetwork;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n payloadDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './action-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor }, ...rest } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n campaign_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .Campaigns.$withKey(campaign_id)['Default.ApplyTargetActions']\r\n .$call(rest);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n return params.headers;\r\n}\r\n\r\nfunction odataPayloadFactory(params) {\r\n return params.data;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:campaign:apply_target_actions',\r\n verb: requestVerbs.POST,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n payloadFactoryFn: payloadDecorator(odataPayloadFactory),\r\n keySelector: variables => variables.locator.descriptor.campaign_id,\r\n parentKeySelector: variables => variables.locator.descriptor.account_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.COLL,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r.values),\r\n});\r\n\r\nexport const fetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.FETCH,\r\n sideEffects.fetch,\r\n environmentLookupFn\r\n);\r\n\r\nexport const actionSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.MUTATION,\r\n sideEffects.mutation,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.NetworkOnly;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n payloadDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './action-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor }, ...rest } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n campaign_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .Campaigns.$withKey(campaign_id)['Default.SetKeywords']\r\n .$call(rest);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n return params.headers;\r\n}\r\n\r\nfunction odataPayloadFactory(params) {\r\n return params.data;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:campaign:set_keywords',\r\n verb: requestVerbs.POST,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n payloadFactoryFn: payloadDecorator(odataPayloadFactory),\r\n keySelector: variables => variables.locator.descriptor.campaign_id,\r\n parentKeySelector: variables => variables.locator.descriptor.account_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.COLL,\r\n keySelector: keySelectorDecorator(r => r),\r\n processorFn: processorDecorator(r => r),\r\n});\r\n\r\nexport const fetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.FETCH,\r\n sideEffects.fetch,\r\n environmentLookupFn\r\n);\r\n\r\nexport const actionSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.MUTATION,\r\n sideEffects.mutation,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.NetworkOnly;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue.Id;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request) {\r\n const { data: { Website } } = request;\r\n return {\r\n Website,\r\n Id: response.value,\r\n };\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n payloadDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './action-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor }, ...rest } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n campaign_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .Campaigns.$withKey(campaign_id)['Default.UpdateUrl']\r\n .$call(rest);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n return params.headers;\r\n}\r\n\r\nfunction odataPayloadFactory(params) {\r\n return params.data;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:campaign',\r\n verb: requestVerbs.POST,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n payloadFactoryFn: payloadDecorator(odataPayloadFactory),\r\n keySelector: variables => variables.locator.descriptor.campaign_id,\r\n parentKeySelector: variables => variables.locator.descriptor.account_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.ENTITY,\r\n keySelector: keySelectorDecorator(r => r),\r\n processorFn: processorDecorator(r => r),\r\n});\r\n\r\nexport const fetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.FETCH,\r\n sideEffects.fetch,\r\n environmentLookupFn\r\n);\r\n\r\nexport const actionSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.MUTATION,\r\n sideEffects.mutation,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.NetworkOnly;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n payloadDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './action-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor }, ...rest } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n campaign_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .Campaigns.$withKey(campaign_id)['Default.McaAdsPerformanceMetrics']\r\n .$call(rest);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n return params.headers;\r\n}\r\n\r\nfunction odataPayloadFactory(params) {\r\n return params.data;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:campaign:mca_ad_metric_set',\r\n verb: requestVerbs.POST,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n payloadFactoryFn: payloadDecorator(odataPayloadFactory),\r\n keySelector: variables => variables.locator.descriptor.campaign_id,\r\n parentKeySelector: variables => variables.locator.descriptor.account_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.COLL,\r\n keySelector: keySelectorDecorator(r => r),\r\n processorFn: processorDecorator(r => r.value),\r\n});\r\n\r\nexport const fetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.FETCH,\r\n sideEffects.fetch,\r\n environmentLookupFn\r\n);\r\n\r\nexport const actionSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.MUTATION,\r\n sideEffects.mutation,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.NetworkOnly;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n payloadDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './action-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor }, ...rest } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n campaign_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .Campaigns.$withKey(campaign_id)['Default.McaConversionMetrics']\r\n .$call(rest);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n return params.headers;\r\n}\r\n\r\nfunction odataPayloadFactory(params) {\r\n return params.data;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:campaign:mca_conversion_metric_set',\r\n verb: requestVerbs.POST,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n payloadFactoryFn: payloadDecorator(odataPayloadFactory),\r\n keySelector: variables => variables.locator.descriptor.campaign_id,\r\n parentKeySelector: variables => variables.locator.descriptor.account_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.COLL,\r\n keySelector: keySelectorDecorator(r => r),\r\n processorFn: processorDecorator(r => r.value),\r\n});\r\n\r\nexport const fetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.FETCH,\r\n sideEffects.fetch,\r\n environmentLookupFn\r\n);\r\n\r\nexport const actionSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.MUTATION,\r\n sideEffects.mutation,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.NetworkOnly;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator() {\r\n function decorator(params) {\r\n return params.data;\r\n }\r\n\r\n return params => decorator(params);\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n payloadDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './action-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor }, ...rest } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n campaign_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .Campaigns.$withKey(campaign_id)['Default.DeleteMcaChannelAds']\r\n .$call(rest);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n return params.headers;\r\n}\r\n\r\nfunction odataPayloadFactory(params) {\r\n return params.data;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:campaign:delete_mca_channel_ads',\r\n verb: requestVerbs.POST,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n payloadFactoryFn: payloadDecorator(odataPayloadFactory),\r\n keySelector: variables => variables.locator.descriptor.campaign_id,\r\n parentKeySelector: variables => variables.locator.descriptor.account_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.COLL,\r\n keySelector: keySelectorDecorator(r => r),\r\n processorFn: processorDecorator(r => r.values),\r\n});\r\n\r\nexport const fetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.FETCH,\r\n sideEffects.fetch,\r\n environmentLookupFn\r\n);\r\n\r\nexport const actionSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.MUTATION,\r\n sideEffects.mutation,\r\n environmentLookupFn\r\n);\r\n","/* eslint-disable camelcase */\r\nimport _ from 'underscore';\r\nimport { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nimport { edm } from '../../../../../../../env/edm';\r\n\r\nexport const networkPolicy = FetchPolicy.StoreOrNetwork;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor }, ...rest } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n campaign_id,\r\n } = descriptor;\r\n const funcParams = _.omit(rest, ['options', 'top']);\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .Campaigns.$withKey(campaign_id)['Default.GetTopAds']\r\n .$call(funcParams);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, true);\r\n return `${edmEntity.path}${searchString}`;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response) {\r\n return response && response.value;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './func-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor }, ...rest } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n campaign_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .Campaigns.$withKey(campaign_id)['Default.GetTopAds']\r\n .$call(rest);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n const { headers } = params;\r\n return headers;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:campaign:get_top_ads',\r\n verb: requestVerbs.GET,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n keySelector: variables => variables.locator.descriptor.campaign_id,\r\n parentKeySelector: variables => variables.locator.descriptor.account_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.COLL,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r.values),\r\n});\r\n\r\nexport const fetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.FETCH,\r\n sideEffects.fetch,\r\n environmentLookupFn\r\n);\r\n\r\nexport const refetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.REFETCH,\r\n sideEffects.refetch,\r\n environmentLookupFn\r\n);\r\n","/* eslint-disable camelcase */\r\nimport _ from 'underscore';\r\nimport { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nimport { edm } from '../../../../../../../env/edm';\r\n\r\nexport const networkPolicy = FetchPolicy.NetworkOnly;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor }, ...rest } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n campaign_id,\r\n } = descriptor;\r\n const funcParams = _.pick(rest, ['startDate', 'endDate']);\r\n const searchParams = _.omit(rest, ['startDate', 'endDate']);\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .Campaigns.$withKey(campaign_id)['Default.GetMcaSearchTermMetrics']\r\n .$call(funcParams);\r\n\r\n const searchString = composeSearchString(searchParams, edmEntity, true);\r\n return `${edmEntity.path}${searchString}`;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(response) {\r\n return response.SearchTerm;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './func-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor }, ...rest } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n campaign_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .Campaigns.$withKey(campaign_id)['Default.GetMcaSearchTermMetrics']\r\n .$call(rest);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n const { headers } = params;\r\n return headers;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:campaign:mca_search_term_metric',\r\n verb: requestVerbs.GET,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n keySelector: variables => variables.locator.descriptor.campaign_id,\r\n parentKeySelector: variables => variables.locator.descriptor.account_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.COLL,\r\n keySelector: keySelectorDecorator(r => r),\r\n processorFn: processorDecorator(r => r.value),\r\n});\r\n\r\nexport const fetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.FETCH,\r\n sideEffects.fetch,\r\n environmentLookupFn\r\n);\r\n\r\nexport const refetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.REFETCH,\r\n sideEffects.refetch,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.StoreOrNetwork;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './destroy-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n campaign_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .DisapprovedCampaigns.$withKey(campaign_id);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n const { headers } = params;\r\n return headers;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:disapproved_campaign',\r\n verb: requestVerbs.DELETE,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n keySelector: variables => variables.locator.descriptor.campaign_id,\r\n parentKeySelector: variables => variables.locator.descriptor.account_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.ENTITY,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r),\r\n});\r\n\r\nexport const destroySpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.DELETE,\r\n sideEffects.destroy,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.StoreOrNetwork;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './fetch-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n campaign_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .DisapprovedCampaigns.$withKey(campaign_id);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n const { headers } = params;\r\n return headers;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:disapproved_campaign',\r\n verb: requestVerbs.GET,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n keySelector: variables => variables.locator.descriptor.campaign_id,\r\n parentKeySelector: variables => variables.locator.descriptor.account_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.ENTITY,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r),\r\n});\r\n\r\nexport const fetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.FETCH,\r\n sideEffects.fetch,\r\n environmentLookupFn\r\n);\r\n\r\nexport const refetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.REFETCH,\r\n sideEffects.refetch,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.StoreOrNetwork;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n payloadDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './mutation-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n campaign_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .DisapprovedCampaigns.$withKey(campaign_id);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n return params.headers;\r\n}\r\n\r\nfunction odataPayloadFactory(params) {\r\n return params.data;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:disapproved_campaign',\r\n verb: requestVerbs.PATCH,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n payloadFactoryFn: payloadDecorator(odataPayloadFactory),\r\n keySelector: variables => variables.locator.descriptor.campaign_id,\r\n parentKeySelector: variables => variables.locator.descriptor.account_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.ENTITY,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r),\r\n});\r\n\r\nexport const mutationSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.MUTATION,\r\n sideEffects.mutation,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.StoreOrNetwork;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n payloadDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './add-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .DisapprovedCampaigns;\r\n\r\n const searchString = composeSearchString(variables, edmEntity);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n return params.headers;\r\n}\r\n\r\nfunction odataPayloadFactory(params) {\r\n return params.data;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:disapproved_campaign',\r\n verb: requestVerbs.POST,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n payloadFactoryFn: payloadDecorator(odataPayloadFactory),\r\n keySelector: variables => variables.locator.descriptor.campaign_id,\r\n parentKeySelector: variables => variables.locator.descriptor.account_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.COLL,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r.value),\r\n});\r\n\r\nexport const addSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.ADD,\r\n sideEffects.add,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.StoreOrNetwork;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './destroy-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n campaign_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .DisapprovedCampaigns.$withKey(campaign_id);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n const { headers } = params;\r\n return headers;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:disapproved_campaign',\r\n verb: requestVerbs.DELETE,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n keySelector: variables => variables.locator.descriptor.campaign_id,\r\n parentKeySelector: variables => variables.locator.descriptor.account_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.ENTITY,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r),\r\n});\r\n\r\nexport const destroySpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.DELETE,\r\n sideEffects.destroy,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.StoreOrNetwork;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './fetch-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .DisapprovedCampaigns;\r\n\r\n const searchString = composeSearchString(variables, edmEntity);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n const { headers } = params;\r\n return headers;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:disapproved_campaign',\r\n verb: requestVerbs.GET,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n keySelector: variables => variables.locator.descriptor.campaign_id,\r\n parentKeySelector: variables => variables.locator.descriptor.account_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.COLL,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r.value),\r\n});\r\n\r\nexport const fetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.PAGINATION,\r\n sideEffects.pagination,\r\n environmentLookupFn\r\n);\r\n\r\nexport const refetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.REFETCH,\r\n sideEffects.refetch,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.StoreOrNetwork;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n payloadDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './mutation-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .DisapprovedCampaigns;\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n return params.headers;\r\n}\r\n\r\nfunction odataPayloadFactory(params) {\r\n return params.data;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:disapproved_campaign',\r\n verb: requestVerbs.PATCH,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n payloadFactoryFn: payloadDecorator(odataPayloadFactory),\r\n keySelector: variables => variables.locator.descriptor.campaign_id,\r\n parentKeySelector: variables => variables.locator.descriptor.account_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.COLL,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r.value),\r\n});\r\n\r\nexport const mutationSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.MUTATION,\r\n sideEffects.mutation,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.StoreOrNetwork;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './destroy-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n social_profile_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .SocialProfiles.$withKey(social_profile_id);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n const { headers } = params;\r\n return headers;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:social_profile',\r\n verb: requestVerbs.DELETE,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n keySelector: variables => variables.locator.descriptor.social_profile_id,\r\n parentKeySelector: variables => variables.locator.descriptor.account_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.ENTITY,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r),\r\n});\r\n\r\nexport const destroySpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.DELETE,\r\n sideEffects.destroy,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.StoreOrNetwork;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './fetch-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n social_profile_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .SocialProfiles.$withKey(social_profile_id);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n const { headers } = params;\r\n return headers;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:social_profile',\r\n verb: requestVerbs.GET,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n keySelector: variables => variables.locator.descriptor.social_profile_id,\r\n parentKeySelector: variables => variables.locator.descriptor.account_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.ENTITY,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r),\r\n});\r\n\r\nexport const fetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.FETCH,\r\n sideEffects.fetch,\r\n environmentLookupFn\r\n);\r\n\r\nexport const refetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.REFETCH,\r\n sideEffects.refetch,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.StoreOrNetwork;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n payloadDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './mutation-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n social_profile_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .SocialProfiles.$withKey(social_profile_id);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n return params.headers;\r\n}\r\n\r\nfunction odataPayloadFactory(params) {\r\n return params.data;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:social_profile',\r\n verb: requestVerbs.PATCH,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n payloadFactoryFn: payloadDecorator(odataPayloadFactory),\r\n keySelector: variables => variables.locator.descriptor.social_profile_id,\r\n parentKeySelector: variables => variables.locator.descriptor.account_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.ENTITY,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r),\r\n});\r\n\r\nexport const mutationSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.MUTATION,\r\n sideEffects.mutation,\r\n environmentLookupFn\r\n);\r\n","import _ from 'underscore';\r\nimport { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.NetworkOnly;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request) {\r\n return _.extend(request.data, { Id: response.value });\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n payloadDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './add-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .SocialProfiles;\r\n\r\n const searchString = composeSearchString(variables, edmEntity);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n return params.headers;\r\n}\r\n\r\nfunction odataPayloadFactory(params) {\r\n return params.data;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:social_profile',\r\n verb: requestVerbs.POST,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n payloadFactoryFn: payloadDecorator(odataPayloadFactory),\r\n keySelector: variables => variables.locator.descriptor.social_profile_id,\r\n parentKeySelector: variables => variables.locator.descriptor.account_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.COLL,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r.value),\r\n});\r\n\r\nexport const addSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.ADD,\r\n sideEffects.add,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.NetworkOnly;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request) {\r\n return {\r\n ...request.data,\r\n Id: response.value,\r\n };\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './destroy-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n social_profile_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .SocialProfiles.$withKey(social_profile_id);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n const { headers } = params;\r\n return headers;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:social_profile',\r\n verb: requestVerbs.DELETE,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n keySelector: variables => variables.locator.descriptor.social_profile_id,\r\n parentKeySelector: variables => variables.locator.descriptor.account_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.ENTITY,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r),\r\n});\r\n\r\nexport const destroySpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.DELETE,\r\n sideEffects.destroy,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.StoreOrNetwork;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './fetch-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .SocialProfiles;\r\n\r\n const searchString = composeSearchString(variables, edmEntity);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n const { headers } = params;\r\n return headers;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:social_profile',\r\n verb: requestVerbs.GET,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n keySelector: variables => variables.locator.descriptor.social_profile_id,\r\n parentKeySelector: variables => variables.locator.descriptor.account_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.COLL,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r.value),\r\n});\r\n\r\nexport const fetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.PAGINATION,\r\n sideEffects.pagination,\r\n environmentLookupFn\r\n);\r\n\r\nexport const refetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.REFETCH,\r\n sideEffects.refetch,\r\n environmentLookupFn\r\n);\r\n","/* eslint-disable camelcase */\r\nimport { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\n\r\nexport const networkPolicy = FetchPolicy.NetworkOnly;\r\n\r\nexport function urlDecorator() {\r\n function decorator(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n social_profile_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .SocialProfiles.$withKey(social_profile_id);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n }\r\n\r\n return params => decorator(params);\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request) {\r\n return {\r\n ...request.data,\r\n Id: response.value,\r\n };\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n payloadDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './mutation-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .SocialProfiles;\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n return params.headers;\r\n}\r\n\r\nfunction odataPayloadFactory(params) {\r\n return params.data;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:social_profile',\r\n verb: requestVerbs.PATCH,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n payloadFactoryFn: payloadDecorator(odataPayloadFactory),\r\n keySelector: variables => variables.locator.descriptor.social_profile_id,\r\n parentKeySelector: variables => variables.locator.descriptor.account_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.COLL,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r.value),\r\n});\r\n\r\nexport const mutationSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.MUTATION,\r\n sideEffects.mutation,\r\n environmentLookupFn\r\n);\r\n","import { useCallback, useMemo } from 'react';\r\n\r\nimport {\r\n useDataRefId,\r\n usePagination,\r\n useMutation,\r\n useRefetch,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\n\r\nimport { addSpec } from '../../__specs/coll/add-spec';\r\nimport { destroySpec } from '../../__specs/coll/destroy-spec';\r\nimport { fetchSpec, refetchSpec } from '../../__specs/coll/fetch-spec';\r\nimport { mutationSpec } from '../../__specs/coll/mutation-spec';\r\n\r\nimport { dataRefIdDecorator } from './hook-decorators';\r\n\r\nconst DEFAULT_CONFIG = {};\r\n\r\nexport function useSocialProfiles(variables, config = DEFAULT_CONFIG) {\r\n const dataRefId = useDataRefId(dataRefIdDecorator('coll', variables), environmentLookupFn);\r\n\r\n const defaultConfig = useMemo(() => ({\r\n refetch: config.refetch || {},\r\n mutation: config.mutation || {},\r\n destroy: config.destroy || {},\r\n pagination: config.pagination || {},\r\n create: config.add || {},\r\n }), [config]);\r\n\r\n const {\r\n refetch: refetchConfig,\r\n mutation: mutationConfig,\r\n destroy: destroyConfig,\r\n pagination: paginationConfig,\r\n create: createConfig,\r\n } = defaultConfig;\r\n\r\n const expandedPaginationConfig = useMemo(() => ({\r\n fetchVariables: {\r\n ...variables,\r\n },\r\n ...paginationConfig,\r\n }), [variables, paginationConfig]);\r\n\r\n const [data, paginationMethods] = usePagination(dataRefId, fetchSpec, expandedPaginationConfig);\r\n const mutateFn = useMutation(dataRefId, mutationSpec, mutationConfig);\r\n const destroyFn = useMutation(dataRefId, destroySpec, destroyConfig);\r\n const createFn = useMutation(dataRefId, addSpec, createConfig);\r\n const refetchFn = useRefetch(dataRefId, refetchSpec, refetchConfig);\r\n\r\n const update = useCallback((newData, ...rest) => {\r\n mutateFn({\r\n locator: {\r\n descriptor: {\r\n ...variables.locator.descriptor,\r\n social_profile_id: newData.social_profile_id || newData.Id,\r\n },\r\n },\r\n }, newData, ...rest);\r\n }, [mutateFn, variables]);\r\n\r\n const destroy = useCallback((additionalDescriptor, ...rest) => {\r\n destroyFn({\r\n locator: {\r\n descriptor: {\r\n ...variables.locator.descriptor,\r\n social_profile_id: additionalDescriptor.social_profile_id || additionalDescriptor.Id,\r\n ...additionalDescriptor,\r\n },\r\n },\r\n }, {\r\n Id: additionalDescriptor && (additionalDescriptor.social_profile_id || additionalDescriptor.Id),\r\n }, ...rest);\r\n }, [destroyFn, variables]);\r\n\r\n const create = useCallback((newData, ...rest) => {\r\n createFn(variables, newData, ...rest);\r\n }, [createFn, variables]);\r\n\r\n const refetch = useCallback((parameter = {}, ...rest) => {\r\n refetchFn(\r\n {\r\n variables: {\r\n ...variables,\r\n ...parameter.variables,\r\n },\r\n payload: parameter.payload,\r\n },\r\n refetchConfig,\r\n ...rest\r\n );\r\n }, [refetchFn, refetchConfig, variables]);\r\n\r\n const { loadMore, hasMore, isLoading } = paginationMethods;\r\n\r\n return [data, {\r\n loadMore,\r\n hasMore,\r\n isLoading,\r\n create,\r\n update,\r\n destroy,\r\n refetch,\r\n }];\r\n}\r\n","import stringify from 'json-stable-stringify';\r\n\r\nexport function dataRefIdDecorator(prefix, locator) {\r\n return `${prefix}_${stringify(locator)}`;\r\n}\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.StoreOrNetwork;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n payloadDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './action-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor }, ...rest } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n social_profile_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .SocialProfiles.$withKey(social_profile_id)['Default.LoadThread']\r\n .$call(rest);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n return params.headers;\r\n}\r\n\r\nfunction odataPayloadFactory(params) {\r\n return params.data;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:social_profile:load_thread',\r\n verb: requestVerbs.POST,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n payloadFactoryFn: payloadDecorator(odataPayloadFactory),\r\n keySelector: variables => variables.locator.descriptor.social_profile_id,\r\n parentKeySelector: variables => variables.locator.descriptor.account_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.COLL,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r.values),\r\n});\r\n\r\nexport const fetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.FETCH,\r\n sideEffects.fetch,\r\n environmentLookupFn\r\n);\r\n\r\nexport const actionSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.MUTATION,\r\n sideEffects.mutation,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.StoreOrNetwork;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './func-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor }, ...rest } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n social_profile_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .SocialProfiles.$withKey(social_profile_id)['Default.LoadConversation']\r\n .$call(rest);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n const { headers } = params;\r\n return headers;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:social_profile:load_conversation',\r\n verb: requestVerbs.GET,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n keySelector: variables => variables.locator.descriptor.social_profile_id,\r\n parentKeySelector: variables => variables.locator.descriptor.account_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.COLL,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r.values),\r\n});\r\n\r\nexport const fetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.FETCH,\r\n sideEffects.fetch,\r\n environmentLookupFn\r\n);\r\n\r\nexport const refetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.REFETCH,\r\n sideEffects.refetch,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.StoreOrNetwork;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './destroy-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n channel_profile_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .ChannelProfiles.$withKey(channel_profile_id);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n const { headers } = params;\r\n return headers;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:channel_profile',\r\n verb: requestVerbs.DELETE,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n keySelector: variables => variables.locator.descriptor.channel_profile_id,\r\n parentKeySelector: variables => variables.locator.descriptor.account_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.ENTITY,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r),\r\n});\r\n\r\nexport const destroySpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.DELETE,\r\n sideEffects.destroy,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.StoreOrNetwork;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './fetch-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n channel_profile_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .ChannelProfiles.$withKey(channel_profile_id);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n const { headers } = params;\r\n return headers;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:channel_profile',\r\n verb: requestVerbs.GET,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n keySelector: variables => variables.locator.descriptor.channel_profile_id,\r\n parentKeySelector: variables => variables.locator.descriptor.account_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.ENTITY,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r),\r\n});\r\n\r\nexport const fetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.FETCH,\r\n sideEffects.fetch,\r\n environmentLookupFn\r\n);\r\n\r\nexport const refetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.REFETCH,\r\n sideEffects.refetch,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.StoreOrNetwork;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n payloadDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './mutation-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n channel_profile_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .ChannelProfiles.$withKey(channel_profile_id);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n return params.headers;\r\n}\r\n\r\nfunction odataPayloadFactory(params) {\r\n return params.data;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:channel_profile',\r\n verb: requestVerbs.PATCH,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n payloadFactoryFn: payloadDecorator(odataPayloadFactory),\r\n keySelector: variables => variables.locator.descriptor.channel_profile_id,\r\n parentKeySelector: variables => variables.locator.descriptor.account_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.ENTITY,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r),\r\n});\r\n\r\nexport const mutationSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.MUTATION,\r\n sideEffects.mutation,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.NetworkOnly;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator() {\r\n function decorator(response, request) {\r\n const { data } = request;\r\n return {\r\n ...data,\r\n Id: parseInt(response.value, 10),\r\n };\r\n }\r\n\r\n return (response, request) => decorator(response, request);\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n payloadDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './add-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .ChannelProfiles;\r\n\r\n const searchString = composeSearchString(variables, edmEntity);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n return params.headers;\r\n}\r\n\r\nfunction odataPayloadFactory(params) {\r\n return params.data;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:channel_profile',\r\n verb: requestVerbs.POST,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n payloadFactoryFn: payloadDecorator(odataPayloadFactory),\r\n keySelector: variables => variables.locator.descriptor.channel_profile_id,\r\n parentKeySelector: variables => variables.locator.descriptor.account_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.COLL,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r.value),\r\n});\r\n\r\nexport const addSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.ADD,\r\n sideEffects.add,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.NetworkOnly;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './destroy-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n channel_profile_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .ChannelProfiles.$withKey(channel_profile_id);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n const { headers } = params;\r\n return headers;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:channel_profile',\r\n verb: requestVerbs.DELETE,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n keySelector: variables => variables.locator.descriptor.channel_profile_id,\r\n parentKeySelector: variables => variables.locator.descriptor.account_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.ENTITY,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r),\r\n});\r\n\r\nexport const destroySpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.DELETE,\r\n sideEffects.destroy,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.StoreOrNetwork;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './fetch-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .ChannelProfiles;\r\n\r\n const searchString = composeSearchString(variables, edmEntity);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n const { headers } = params;\r\n return headers;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:channel_profile',\r\n verb: requestVerbs.GET,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n keySelector: variables => variables.locator.descriptor.channel_profile_id,\r\n parentKeySelector: variables => variables.locator.descriptor.account_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.COLL,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r.value),\r\n});\r\n\r\nexport const fetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.PAGINATION,\r\n sideEffects.pagination,\r\n environmentLookupFn\r\n);\r\n\r\nexport const refetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.REFETCH,\r\n sideEffects.refetch,\r\n environmentLookupFn\r\n);\r\n","/* eslint-disable camelcase */\r\nimport { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\n\r\nexport const networkPolicy = FetchPolicy.NetworkOnly;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n channel_profile_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .ChannelProfiles.$withKey(channel_profile_id);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator() {\r\n function decorator(response, request) {\r\n const { data } = request;\r\n return data;\r\n }\r\n\r\n return (response, request) => decorator(response, request);\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n payloadDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './mutation-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .ChannelProfiles;\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n return params.headers;\r\n}\r\n\r\nfunction odataPayloadFactory(params) {\r\n return params.data;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:channel_profile',\r\n verb: requestVerbs.PATCH,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n payloadFactoryFn: payloadDecorator(odataPayloadFactory),\r\n keySelector: variables => variables.locator.descriptor.channel_profile_id,\r\n parentKeySelector: variables => variables.locator.descriptor.account_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.COLL,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r.value),\r\n});\r\n\r\nexport const mutationSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.MUTATION,\r\n sideEffects.mutation,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.NetworkOnly;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './func-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor }, ...rest } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n channel_profile_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .ChannelProfiles.$withKey(channel_profile_id)['Default.VerifyFbAdAccountStatus']\r\n .$call(rest);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n const { headers } = params;\r\n return headers;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:channel_profile:verify_fb_ad_account_status',\r\n verb: requestVerbs.GET,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n keySelector: variables => variables.locator.descriptor.channel_profile_id,\r\n parentKeySelector: variables => variables.locator.descriptor.account_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.ENTITY,\r\n keySelector: keySelectorDecorator(r => r),\r\n processorFn: processorDecorator(r => r),\r\n});\r\n\r\nexport const fetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.FETCH,\r\n sideEffects.fetch,\r\n environmentLookupFn\r\n);\r\n\r\nexport const refetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.REFETCH,\r\n sideEffects.refetch,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.NetworkOnly;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './func-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor }, ...rest } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n channel_profile_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .ChannelProfiles.$withKey(channel_profile_id)['Default.SendFbAdAccountInvitation']\r\n .$call(rest);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n const { headers } = params;\r\n return headers;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:channel_profile:send_fb_ad_account_invitation',\r\n verb: requestVerbs.GET,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n keySelector: variables => variables.locator.descriptor.channel_profile_id,\r\n parentKeySelector: variables => variables.locator.descriptor.account_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.ENTITY,\r\n keySelector: keySelectorDecorator(r => r),\r\n processorFn: processorDecorator(r => r),\r\n});\r\n\r\nexport const fetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.FETCH,\r\n sideEffects.fetch,\r\n environmentLookupFn\r\n);\r\n\r\nexport const refetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.REFETCH,\r\n sideEffects.refetch,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.StoreOrNetwork;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './destroy-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n post_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .Posts.$withKey(post_id);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n const { headers } = params;\r\n return headers;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:post',\r\n verb: requestVerbs.DELETE,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n keySelector: variables => variables.locator.descriptor.post_id,\r\n parentKeySelector: variables => variables.locator.descriptor.account_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.ENTITY,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r),\r\n});\r\n\r\nexport const destroySpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.DELETE,\r\n sideEffects.destroy,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.StoreOrNetwork;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './fetch-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n post_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .Posts.$withKey(post_id);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n const { headers } = params;\r\n return headers;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:post',\r\n verb: requestVerbs.GET,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n keySelector: variables => variables.locator.descriptor.post_id,\r\n parentKeySelector: variables => variables.locator.descriptor.account_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.ENTITY,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r),\r\n});\r\n\r\nexport const fetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.FETCH,\r\n sideEffects.fetch,\r\n environmentLookupFn\r\n);\r\n\r\nexport const refetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.REFETCH,\r\n sideEffects.refetch,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.StoreOrNetwork;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n payloadDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './mutation-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n post_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .Posts.$withKey(post_id);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n return params.headers;\r\n}\r\n\r\nfunction odataPayloadFactory(params) {\r\n return params.data;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:post',\r\n verb: requestVerbs.PATCH,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n payloadFactoryFn: payloadDecorator(odataPayloadFactory),\r\n keySelector: variables => variables.locator.descriptor.post_id,\r\n parentKeySelector: variables => variables.locator.descriptor.account_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.ENTITY,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r),\r\n});\r\n\r\nexport const mutationSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.MUTATION,\r\n sideEffects.mutation,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.StoreOrNetwork;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n payloadDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './add-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .Posts;\r\n\r\n const searchString = composeSearchString(variables, edmEntity);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n return params.headers;\r\n}\r\n\r\nfunction odataPayloadFactory(params) {\r\n return params.data;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:post',\r\n verb: requestVerbs.POST,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n payloadFactoryFn: payloadDecorator(odataPayloadFactory),\r\n keySelector: variables => variables.locator.descriptor.post_id,\r\n parentKeySelector: variables => variables.locator.descriptor.account_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.COLL,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r.value),\r\n});\r\n\r\nexport const addSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.ADD,\r\n sideEffects.add,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.StoreOrNetwork;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './destroy-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n post_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .Posts.$withKey(post_id);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n const { headers } = params;\r\n return headers;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:post',\r\n verb: requestVerbs.DELETE,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n keySelector: variables => variables.locator.descriptor.post_id,\r\n parentKeySelector: variables => variables.locator.descriptor.account_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.ENTITY,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r),\r\n});\r\n\r\nexport const destroySpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.DELETE,\r\n sideEffects.destroy,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.StoreOrNetwork;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './fetch-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .Posts;\r\n\r\n const searchString = composeSearchString(variables, edmEntity);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n const { headers } = params;\r\n return headers;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:post',\r\n verb: requestVerbs.GET,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n keySelector: variables => variables.locator.descriptor.post_id,\r\n parentKeySelector: variables => variables.locator.descriptor.account_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.COLL,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r.value),\r\n});\r\n\r\nexport const fetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.PAGINATION,\r\n sideEffects.pagination,\r\n environmentLookupFn\r\n);\r\n\r\nexport const refetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.REFETCH,\r\n sideEffects.refetch,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.StoreOrNetwork;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n payloadDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './mutation-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .Posts;\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n return params.headers;\r\n}\r\n\r\nfunction odataPayloadFactory(params) {\r\n return params.data;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:post',\r\n verb: requestVerbs.PATCH,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n payloadFactoryFn: payloadDecorator(odataPayloadFactory),\r\n keySelector: variables => variables.locator.descriptor.post_id,\r\n parentKeySelector: variables => variables.locator.descriptor.account_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.COLL,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r.value),\r\n});\r\n\r\nexport const mutationSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.MUTATION,\r\n sideEffects.mutation,\r\n environmentLookupFn\r\n);\r\n","import _ from 'underscore';\r\nimport { useCallback, useMemo } from 'react';\r\n\r\nimport {\r\n useDataRefId,\r\n usePagination,\r\n useMutation,\r\n useRefetch,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\n\r\nimport { addSpec } from '../../__specs/coll/add-spec';\r\nimport { destroySpec } from '../../__specs/coll/destroy-spec';\r\nimport { fetchSpec, refetchSpec } from '../../__specs/coll/fetch-spec';\r\nimport { mutationSpec } from '../../__specs/coll/mutation-spec';\r\n\r\nimport { dataRefIdDecorator } from './hook-decorators';\r\n\r\nconst DEFAULT_CONFIG = {};\r\n\r\nexport function usePosts(variables, config = DEFAULT_CONFIG) {\r\n const dataRefId = useDataRefId(dataRefIdDecorator(), environmentLookupFn);\r\n\r\n const defaultConfig = useMemo(() => ({\r\n refetch: config.refetch || {},\r\n mutation: config.mutation || {},\r\n destroy: config.destroy || {},\r\n pagination: config.pagination || {},\r\n create: config.add || {},\r\n }), [config]);\r\n\r\n const {\r\n refetch: refetchConfig,\r\n mutation: mutationConfig,\r\n destroy: destroyConfig,\r\n pagination: paginationConfig,\r\n create: createConfig,\r\n } = defaultConfig;\r\n\r\n const mergeNewRecords = useCallback((records, newRecords) => _.uniq([...records, ...newRecords], 'Id'), []);\r\n const expandedPaginationConfig = useMemo(() => ({\r\n fetchVariables: {\r\n ...variables,\r\n },\r\n mergeNewRecords,\r\n ...paginationConfig,\r\n }), [variables, mergeNewRecords, paginationConfig]);\r\n\r\n const [data, paginationMethods] = usePagination(dataRefId, fetchSpec, expandedPaginationConfig);\r\n const mutateFn = useMutation(dataRefId, mutationSpec, mutationConfig);\r\n const destroyFn = useMutation(dataRefId, destroySpec, destroyConfig);\r\n const createFn = useMutation(dataRefId, addSpec, createConfig);\r\n const refetchFn = useRefetch(dataRefId, refetchSpec, refetchConfig);\r\n\r\n const update = useCallback((newData, ...rest) => {\r\n mutateFn(variables, newData, ...rest);\r\n }, [mutateFn, variables]);\r\n\r\n const destroy = useCallback((additionalDescriptor, ...rest) => {\r\n destroyFn({\r\n locator: {\r\n descriptor: {\r\n ...variables.locator.descriptor,\r\n post_id: additionalDescriptor.post_id || additionalDescriptor.Id,\r\n ...additionalDescriptor,\r\n },\r\n },\r\n }, {\r\n Id: additionalDescriptor && (additionalDescriptor.post_id || additionalDescriptor.Id),\r\n }, ...rest);\r\n }, [destroyFn, variables]);\r\n\r\n const create = useCallback((newData, ...rest) => {\r\n createFn(variables, newData, ...rest);\r\n }, [createFn, variables]);\r\n\r\n const refetch = useCallback((parameter = {}, ...rest) => {\r\n refetchFn(\r\n {\r\n variables: {\r\n ...variables,\r\n ...parameter.variables,\r\n },\r\n payload: parameter.payload,\r\n },\r\n refetchConfig,\r\n ...rest\r\n );\r\n }, [refetchFn, refetchConfig, variables]);\r\n\r\n const { loadMore, hasMore, isLoading } = paginationMethods;\r\n\r\n return [data, {\r\n loadMore,\r\n hasMore,\r\n isLoading,\r\n create,\r\n update,\r\n destroy,\r\n refetch,\r\n }];\r\n}\r\n","export function dataRefIdDecorator() {\r\n return null;\r\n}\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.StoreOrNetwork;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './destroy-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n activity_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .Activities.$withKey(activity_id);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n const { headers } = params;\r\n return headers;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:activity',\r\n verb: requestVerbs.DELETE,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n keySelector: variables => variables.locator.descriptor.activity_id,\r\n parentKeySelector: variables => variables.locator.descriptor.account_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.ENTITY,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r),\r\n});\r\n\r\nexport const destroySpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.DELETE,\r\n sideEffects.destroy,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.StoreOrNetwork;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './fetch-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n activity_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .Activities.$withKey(activity_id);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n const { headers } = params;\r\n return headers;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:activity',\r\n verb: requestVerbs.GET,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n keySelector: variables => variables.locator.descriptor.activity_id,\r\n parentKeySelector: variables => variables.locator.descriptor.account_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.ENTITY,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r),\r\n});\r\n\r\nexport const fetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.FETCH,\r\n sideEffects.fetch,\r\n environmentLookupFn\r\n);\r\n\r\nexport const refetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.REFETCH,\r\n sideEffects.refetch,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.StoreOrNetwork;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n payloadDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './mutation-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n activity_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .Activities.$withKey(activity_id);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n return params.headers;\r\n}\r\n\r\nfunction odataPayloadFactory(params) {\r\n return params.data;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:activity',\r\n verb: requestVerbs.PATCH,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n payloadFactoryFn: payloadDecorator(odataPayloadFactory),\r\n keySelector: variables => variables.locator.descriptor.activity_id,\r\n parentKeySelector: variables => variables.locator.descriptor.account_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.ENTITY,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r),\r\n});\r\n\r\nexport const mutationSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.MUTATION,\r\n sideEffects.mutation,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.StoreOrNetwork;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n payloadDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './add-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .Activities;\r\n\r\n const searchString = composeSearchString(variables, edmEntity);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n return params.headers;\r\n}\r\n\r\nfunction odataPayloadFactory(params) {\r\n return params.data;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:activity',\r\n verb: requestVerbs.POST,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n payloadFactoryFn: payloadDecorator(odataPayloadFactory),\r\n keySelector: variables => variables.locator.descriptor.activity_id,\r\n parentKeySelector: variables => variables.locator.descriptor.account_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.COLL,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r.value),\r\n});\r\n\r\nexport const addSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.ADD,\r\n sideEffects.add,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.StoreOrNetwork;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './destroy-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n activity_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .Activities.$withKey(activity_id);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n const { headers } = params;\r\n return headers;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:activity',\r\n verb: requestVerbs.DELETE,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n keySelector: variables => variables.locator.descriptor.activity_id,\r\n parentKeySelector: variables => variables.locator.descriptor.account_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.ENTITY,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r),\r\n});\r\n\r\nexport const destroySpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.DELETE,\r\n sideEffects.destroy,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.StoreOrNetwork;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './fetch-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .Activities;\r\n\r\n const searchString = composeSearchString(variables, edmEntity);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n const { headers } = params;\r\n return headers;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:activity',\r\n verb: requestVerbs.GET,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n keySelector: variables => variables.locator.descriptor.activity_id,\r\n parentKeySelector: variables => variables.locator.descriptor.account_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.COLL,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r.value),\r\n});\r\n\r\nexport const fetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.PAGINATION,\r\n sideEffects.pagination,\r\n environmentLookupFn\r\n);\r\n\r\nexport const refetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.REFETCH,\r\n sideEffects.refetch,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.StoreOrNetwork;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n payloadDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './mutation-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .Activities;\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n return params.headers;\r\n}\r\n\r\nfunction odataPayloadFactory(params) {\r\n return params.data;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:activity',\r\n verb: requestVerbs.PATCH,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n payloadFactoryFn: payloadDecorator(odataPayloadFactory),\r\n keySelector: variables => variables.locator.descriptor.activity_id,\r\n parentKeySelector: variables => variables.locator.descriptor.account_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.COLL,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r.value),\r\n});\r\n\r\nexport const mutationSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.MUTATION,\r\n sideEffects.mutation,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.StoreOrNetwork;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './destroy-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n tag_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .Tags.$withKey(tag_id);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n const { headers } = params;\r\n return headers;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:tag',\r\n verb: requestVerbs.DELETE,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n keySelector: variables => variables.locator.descriptor.tag_id,\r\n parentKeySelector: variables => variables.locator.descriptor.account_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.ENTITY,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r),\r\n});\r\n\r\nexport const destroySpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.DELETE,\r\n sideEffects.destroy,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.StoreOrNetwork;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './fetch-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n tag_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .Tags.$withKey(tag_id);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n const { headers } = params;\r\n return headers;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:tag',\r\n verb: requestVerbs.GET,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n keySelector: variables => variables.locator.descriptor.tag_id,\r\n parentKeySelector: variables => variables.locator.descriptor.account_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.ENTITY,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r),\r\n});\r\n\r\nexport const fetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.FETCH,\r\n sideEffects.fetch,\r\n environmentLookupFn\r\n);\r\n\r\nexport const refetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.REFETCH,\r\n sideEffects.refetch,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.StoreOrNetwork;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n payloadDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './mutation-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n tag_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .Tags.$withKey(tag_id);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n return params.headers;\r\n}\r\n\r\nfunction odataPayloadFactory(params) {\r\n return params.data;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:tag',\r\n verb: requestVerbs.PATCH,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n payloadFactoryFn: payloadDecorator(odataPayloadFactory),\r\n keySelector: variables => variables.locator.descriptor.tag_id,\r\n parentKeySelector: variables => variables.locator.descriptor.account_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.ENTITY,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r),\r\n});\r\n\r\nexport const mutationSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.MUTATION,\r\n sideEffects.mutation,\r\n environmentLookupFn\r\n);\r\n","import _ from 'underscore';\r\nimport { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.NetworkOnly;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response) {\r\n // TODO: Add decoration\r\n return _.first(response.value);\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n payloadDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './add-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .Tags;\r\n\r\n const searchString = composeSearchString(variables, edmEntity);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n return params.headers;\r\n}\r\n\r\nfunction odataPayloadFactory(params) {\r\n return params.data;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:tag',\r\n verb: requestVerbs.POST,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n payloadFactoryFn: payloadDecorator(odataPayloadFactory),\r\n keySelector: variables => variables.locator.descriptor.tag_id,\r\n parentKeySelector: variables => variables.locator.descriptor.account_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.COLL,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r.value),\r\n});\r\n\r\nexport const addSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.ADD,\r\n sideEffects.add,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.NetworkOnly;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request) {\r\n return {\r\n ...request.data,\r\n Id: response.value,\r\n };\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './destroy-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n tag_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .Tags.$withKey(tag_id);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n const { headers } = params;\r\n return headers;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:tag',\r\n verb: requestVerbs.DELETE,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n keySelector: variables => variables.locator.descriptor.tag_id,\r\n parentKeySelector: variables => variables.locator.descriptor.account_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.ENTITY,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r),\r\n});\r\n\r\nexport const destroySpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.DELETE,\r\n sideEffects.destroy,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.StoreOrNetwork;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './fetch-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .Tags;\r\n\r\n const searchString = composeSearchString(variables, edmEntity);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n const { headers } = params;\r\n return headers;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:tag',\r\n verb: requestVerbs.GET,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n keySelector: variables => variables.locator.descriptor.tag_id,\r\n parentKeySelector: variables => variables.locator.descriptor.account_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.COLL,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r.value),\r\n});\r\n\r\nexport const fetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.PAGINATION,\r\n sideEffects.pagination,\r\n environmentLookupFn\r\n);\r\n\r\nexport const refetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.REFETCH,\r\n sideEffects.refetch,\r\n environmentLookupFn\r\n);\r\n","/* eslint-disable camelcase */\r\nimport { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\n\r\nexport const networkPolicy = FetchPolicy.NetworkOnly;\r\n\r\nexport function urlDecorator() {\r\n function decorator(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n tag_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .Tags.$withKey(tag_id);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n }\r\n\r\n return params => decorator(params);\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request) {\r\n return {\r\n ...request.data,\r\n };\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n payloadDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './mutation-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .Tags;\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n return params.headers;\r\n}\r\n\r\nfunction odataPayloadFactory(params) {\r\n return params.data;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:tag',\r\n verb: requestVerbs.PATCH,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n payloadFactoryFn: payloadDecorator(odataPayloadFactory),\r\n keySelector: variables => variables.locator.descriptor.tag_id,\r\n parentKeySelector: variables => variables.locator.descriptor.account_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.COLL,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r.value),\r\n});\r\n\r\nexport const mutationSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.MUTATION,\r\n sideEffects.mutation,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.StoreOrNetwork;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './destroy-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n goal_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .Goals.$withKey(goal_id);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n const { headers } = params;\r\n return headers;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:goal',\r\n verb: requestVerbs.DELETE,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n keySelector: variables => variables.locator.descriptor.goal_id,\r\n parentKeySelector: variables => variables.locator.descriptor.account_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.ENTITY,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r),\r\n});\r\n\r\nexport const destroySpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.DELETE,\r\n sideEffects.destroy,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.StoreOrNetwork;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './fetch-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n goal_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .Goals.$withKey(goal_id);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n const { headers } = params;\r\n return headers;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:goal',\r\n verb: requestVerbs.GET,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n keySelector: variables => variables.locator.descriptor.goal_id,\r\n parentKeySelector: variables => variables.locator.descriptor.account_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.ENTITY,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r),\r\n});\r\n\r\nexport const fetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.FETCH,\r\n sideEffects.fetch,\r\n environmentLookupFn\r\n);\r\n\r\nexport const refetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.REFETCH,\r\n sideEffects.refetch,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.StoreOrNetwork;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n payloadDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './mutation-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n goal_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .Goals.$withKey(goal_id);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n return params.headers;\r\n}\r\n\r\nfunction odataPayloadFactory(params) {\r\n return params.data;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:goal',\r\n verb: requestVerbs.PATCH,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n payloadFactoryFn: payloadDecorator(odataPayloadFactory),\r\n keySelector: variables => variables.locator.descriptor.goal_id,\r\n parentKeySelector: variables => variables.locator.descriptor.account_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.ENTITY,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r),\r\n});\r\n\r\nexport const mutationSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.MUTATION,\r\n sideEffects.mutation,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.StoreOrNetwork;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n payloadDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './add-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .Goals;\r\n\r\n const searchString = composeSearchString(variables, edmEntity);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n return params.headers;\r\n}\r\n\r\nfunction odataPayloadFactory(params) {\r\n return params.data;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:goal',\r\n verb: requestVerbs.POST,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n payloadFactoryFn: payloadDecorator(odataPayloadFactory),\r\n keySelector: variables => variables.locator.descriptor.goal_id,\r\n parentKeySelector: variables => variables.locator.descriptor.account_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.COLL,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r.value),\r\n});\r\n\r\nexport const addSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.ADD,\r\n sideEffects.add,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.StoreOrNetwork;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './destroy-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n goal_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .Goals.$withKey(goal_id);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n const { headers } = params;\r\n return headers;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:goal',\r\n verb: requestVerbs.DELETE,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n keySelector: variables => variables.locator.descriptor.goal_id,\r\n parentKeySelector: variables => variables.locator.descriptor.account_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.ENTITY,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r),\r\n});\r\n\r\nexport const destroySpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.DELETE,\r\n sideEffects.destroy,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.StoreOrNetwork;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './fetch-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .Goals;\r\n\r\n const searchString = composeSearchString(variables, edmEntity);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n const { headers } = params;\r\n return headers;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:goal',\r\n verb: requestVerbs.GET,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n keySelector: variables => variables.locator.descriptor.goal_id,\r\n parentKeySelector: variables => variables.locator.descriptor.account_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.COLL,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r.value),\r\n});\r\n\r\nexport const fetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.PAGINATION,\r\n sideEffects.pagination,\r\n environmentLookupFn\r\n);\r\n\r\nexport const refetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.REFETCH,\r\n sideEffects.refetch,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.StoreOrNetwork;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n payloadDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './mutation-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .Goals;\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n return params.headers;\r\n}\r\n\r\nfunction odataPayloadFactory(params) {\r\n return params.data;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:goal',\r\n verb: requestVerbs.PATCH,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n payloadFactoryFn: payloadDecorator(odataPayloadFactory),\r\n keySelector: variables => variables.locator.descriptor.goal_id,\r\n parentKeySelector: variables => variables.locator.descriptor.account_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.COLL,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r.value),\r\n});\r\n\r\nexport const mutationSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.MUTATION,\r\n sideEffects.mutation,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.StoreOrNetwork;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './destroy-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n mca_location_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .McaLocations.$withKey(mca_location_id);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n const { headers } = params;\r\n return headers;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:mca_location',\r\n verb: requestVerbs.DELETE,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n keySelector: variables => variables.locator.descriptor.mca_location_id,\r\n parentKeySelector: variables => variables.locator.descriptor.account_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.ENTITY,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r),\r\n});\r\n\r\nexport const destroySpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.DELETE,\r\n sideEffects.destroy,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.StoreOrNetwork;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './fetch-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n mca_location_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .McaLocations.$withKey(mca_location_id);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n const { headers } = params;\r\n return headers;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:mca_location',\r\n verb: requestVerbs.GET,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n keySelector: variables => variables.locator.descriptor.mca_location_id,\r\n parentKeySelector: variables => variables.locator.descriptor.account_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.ENTITY,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r),\r\n});\r\n\r\nexport const fetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.FETCH,\r\n sideEffects.fetch,\r\n environmentLookupFn\r\n);\r\n\r\nexport const refetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.REFETCH,\r\n sideEffects.refetch,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.StoreOrNetwork;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n payloadDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './mutation-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n mca_location_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .McaLocations.$withKey(mca_location_id);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n return params.headers;\r\n}\r\n\r\nfunction odataPayloadFactory(params) {\r\n return params.data;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:mca_location',\r\n verb: requestVerbs.PATCH,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n payloadFactoryFn: payloadDecorator(odataPayloadFactory),\r\n keySelector: variables => variables.locator.descriptor.mca_location_id,\r\n parentKeySelector: variables => variables.locator.descriptor.account_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.ENTITY,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r),\r\n});\r\n\r\nexport const mutationSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.MUTATION,\r\n sideEffects.mutation,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.StoreOrNetwork;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n payloadDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './add-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .McaLocations;\r\n\r\n const searchString = composeSearchString(variables, edmEntity);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n return params.headers;\r\n}\r\n\r\nfunction odataPayloadFactory(params) {\r\n return params.data;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:mca_location',\r\n verb: requestVerbs.POST,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n payloadFactoryFn: payloadDecorator(odataPayloadFactory),\r\n keySelector: variables => variables.locator.descriptor.mca_location_id,\r\n parentKeySelector: variables => variables.locator.descriptor.account_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.COLL,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r.value),\r\n});\r\n\r\nexport const addSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.ADD,\r\n sideEffects.add,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.StoreOrNetwork;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './destroy-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n mca_location_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .McaLocations.$withKey(mca_location_id);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n const { headers } = params;\r\n return headers;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:mca_location',\r\n verb: requestVerbs.DELETE,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n keySelector: variables => variables.locator.descriptor.mca_location_id,\r\n parentKeySelector: variables => variables.locator.descriptor.account_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.ENTITY,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r),\r\n});\r\n\r\nexport const destroySpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.DELETE,\r\n sideEffects.destroy,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.StoreOrNetwork;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './fetch-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .McaLocations;\r\n\r\n const searchString = composeSearchString(variables, edmEntity);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n const { headers } = params;\r\n return headers;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:mca_location',\r\n verb: requestVerbs.GET,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n keySelector: variables => variables.locator.descriptor.mca_location_id,\r\n parentKeySelector: variables => variables.locator.descriptor.account_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.COLL,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r.value),\r\n});\r\n\r\nexport const fetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.PAGINATION,\r\n sideEffects.pagination,\r\n environmentLookupFn\r\n);\r\n\r\nexport const refetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.REFETCH,\r\n sideEffects.refetch,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.StoreOrNetwork;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n payloadDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './mutation-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .McaLocations;\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n return params.headers;\r\n}\r\n\r\nfunction odataPayloadFactory(params) {\r\n return params.data;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:mca_location',\r\n verb: requestVerbs.PATCH,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n payloadFactoryFn: payloadDecorator(odataPayloadFactory),\r\n keySelector: variables => variables.locator.descriptor.mca_location_id,\r\n parentKeySelector: variables => variables.locator.descriptor.account_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.COLL,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r.value),\r\n});\r\n\r\nexport const mutationSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.MUTATION,\r\n sideEffects.mutation,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.StoreOrNetwork;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './destroy-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n subscription_plan_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .SubscriptionPlans.$withKey(subscription_plan_id);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n const { headers } = params;\r\n return headers;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:subscription_plan',\r\n verb: requestVerbs.DELETE,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n keySelector: variables => variables.locator.descriptor.subscription_plan_id,\r\n parentKeySelector: variables => variables.locator.descriptor.account_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.ENTITY,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r),\r\n});\r\n\r\nexport const destroySpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.DELETE,\r\n sideEffects.destroy,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.StoreOrNetwork;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './fetch-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n subscription_plan_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .SubscriptionPlans.$withKey(subscription_plan_id);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n const { headers } = params;\r\n return headers;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:subscription_plan',\r\n verb: requestVerbs.GET,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n keySelector: variables => variables.locator.descriptor.subscription_plan_id,\r\n parentKeySelector: variables => variables.locator.descriptor.account_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.ENTITY,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r),\r\n});\r\n\r\nexport const fetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.FETCH,\r\n sideEffects.fetch,\r\n environmentLookupFn\r\n);\r\n\r\nexport const refetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.REFETCH,\r\n sideEffects.refetch,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.StoreOrNetwork;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n payloadDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './mutation-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n subscription_plan_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .SubscriptionPlans.$withKey(subscription_plan_id);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n return params.headers;\r\n}\r\n\r\nfunction odataPayloadFactory(params) {\r\n return params.data;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:subscription_plan',\r\n verb: requestVerbs.PATCH,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n payloadFactoryFn: payloadDecorator(odataPayloadFactory),\r\n keySelector: variables => variables.locator.descriptor.subscription_plan_id,\r\n parentKeySelector: variables => variables.locator.descriptor.account_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.ENTITY,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r),\r\n});\r\n\r\nexport const mutationSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.MUTATION,\r\n sideEffects.mutation,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.StoreOrNetwork;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n payloadDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './add-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .SubscriptionPlans;\r\n\r\n const searchString = composeSearchString(variables, edmEntity);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n return params.headers;\r\n}\r\n\r\nfunction odataPayloadFactory(params) {\r\n return params.data;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:subscription_plan',\r\n verb: requestVerbs.POST,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n payloadFactoryFn: payloadDecorator(odataPayloadFactory),\r\n keySelector: variables => variables.locator.descriptor.subscription_plan_id,\r\n parentKeySelector: variables => variables.locator.descriptor.account_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.COLL,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r.value),\r\n});\r\n\r\nexport const addSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.ADD,\r\n sideEffects.add,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.StoreOrNetwork;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './destroy-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n subscription_plan_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .SubscriptionPlans.$withKey(subscription_plan_id);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n const { headers } = params;\r\n return headers;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:subscription_plan',\r\n verb: requestVerbs.DELETE,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n keySelector: variables => variables.locator.descriptor.subscription_plan_id,\r\n parentKeySelector: variables => variables.locator.descriptor.account_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.ENTITY,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r),\r\n});\r\n\r\nexport const destroySpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.DELETE,\r\n sideEffects.destroy,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.StoreOrNetwork;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './fetch-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .SubscriptionPlans;\r\n\r\n const searchString = composeSearchString(variables, edmEntity);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n const { headers } = params;\r\n return headers;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:subscription_plan',\r\n verb: requestVerbs.GET,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n keySelector: variables => variables.locator.descriptor.subscription_plan_id,\r\n parentKeySelector: variables => variables.locator.descriptor.account_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.COLL,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r.value),\r\n});\r\n\r\nexport const fetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.PAGINATION,\r\n sideEffects.pagination,\r\n environmentLookupFn\r\n);\r\n\r\nexport const refetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.REFETCH,\r\n sideEffects.refetch,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.StoreOrNetwork;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n payloadDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './mutation-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .SubscriptionPlans;\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n return params.headers;\r\n}\r\n\r\nfunction odataPayloadFactory(params) {\r\n return params.data;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:subscription_plan',\r\n verb: requestVerbs.PATCH,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n payloadFactoryFn: payloadDecorator(odataPayloadFactory),\r\n keySelector: variables => variables.locator.descriptor.subscription_plan_id,\r\n parentKeySelector: variables => variables.locator.descriptor.account_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.COLL,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r.value),\r\n});\r\n\r\nexport const mutationSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.MUTATION,\r\n sideEffects.mutation,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.StoreOrNetwork;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './destroy-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n campaign_id,\r\n target_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .Campaigns.$withKey(campaign_id)\r\n .Targets.$withKey(target_id);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n const { headers } = params;\r\n return headers;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:campaign:target',\r\n verb: requestVerbs.DELETE,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n keySelector: variables => variables.locator.descriptor.target_id,\r\n parentKeySelector: variables => variables.locator.descriptor.campaign_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.ENTITY,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r),\r\n});\r\n\r\nexport const destroySpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.DELETE,\r\n sideEffects.destroy,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.StoreOrNetwork;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './fetch-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n campaign_id,\r\n target_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .Campaigns.$withKey(campaign_id)\r\n .Targets.$withKey(target_id);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n const { headers } = params;\r\n return headers;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:campaign:target',\r\n verb: requestVerbs.GET,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n keySelector: variables => variables.locator.descriptor.target_id,\r\n parentKeySelector: variables => variables.locator.descriptor.campaign_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.ENTITY,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r),\r\n});\r\n\r\nexport const fetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.FETCH,\r\n sideEffects.fetch,\r\n environmentLookupFn\r\n);\r\n\r\nexport const refetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.REFETCH,\r\n sideEffects.refetch,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.StoreOrNetwork;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n payloadDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './mutation-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n campaign_id,\r\n target_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .Campaigns.$withKey(campaign_id)\r\n .Targets.$withKey(target_id);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n return params.headers;\r\n}\r\n\r\nfunction odataPayloadFactory(params) {\r\n return params.data;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:campaign:target',\r\n verb: requestVerbs.PATCH,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n payloadFactoryFn: payloadDecorator(odataPayloadFactory),\r\n keySelector: variables => variables.locator.descriptor.target_id,\r\n parentKeySelector: variables => variables.locator.descriptor.campaign_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.ENTITY,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r),\r\n});\r\n\r\nexport const mutationSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.MUTATION,\r\n sideEffects.mutation,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.NetworkOnly;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request) {\r\n const { data: { TargetActions: { Target } } } = request;\r\n return {\r\n ...Target,\r\n Id: `${response.value[0].Id}`,\r\n };\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n payloadDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './add-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n campaign_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .Campaigns.$withKey(campaign_id);\r\n\r\n const searchString = composeSearchString(variables, edmEntity);\r\n return `${edmEntity.path}/Default.ApplyTargetActions${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n return params.headers;\r\n}\r\n\r\nfunction odataPayloadFactory(params) {\r\n return params.data;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:campaign:target',\r\n verb: requestVerbs.POST,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n payloadFactoryFn: payloadDecorator(odataPayloadFactory),\r\n keySelector: variables => variables.locator.descriptor.target_id,\r\n parentKeySelector: variables => variables.locator.descriptor.campaign_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.COLL,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r.value),\r\n});\r\n\r\nexport const addSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.ADD,\r\n sideEffects.add,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.StoreOrNetwork;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './fetch-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n campaign_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .Campaigns.$withKey(campaign_id)\r\n .Targets;\r\n\r\n const searchString = composeSearchString(variables, edmEntity);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n const { headers } = params;\r\n return headers;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:campaign:target',\r\n verb: requestVerbs.GET,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n keySelector: variables => variables.locator.descriptor.target_id,\r\n parentKeySelector: variables => variables.locator.descriptor.campaign_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.COLL,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r.value),\r\n});\r\n\r\nexport const fetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.PAGINATION,\r\n sideEffects.pagination,\r\n environmentLookupFn\r\n);\r\n\r\nexport const refetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.REFETCH,\r\n sideEffects.refetch,\r\n environmentLookupFn\r\n);\r\n","import { useCallback, useMemo } from 'react';\r\n\r\nimport {\r\n useDataRefId,\r\n usePagination,\r\n useMutation,\r\n useRefetch,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { environmentLookupFn } from '../../../../../../../env/env-instance';\r\nimport { addSpec } from '../../__specs/coll/add-spec';\r\nimport { fetchSpec, refetchSpec } from '../../__specs/coll/fetch-spec';\r\nimport { dataRefIdDecorator } from './hook-decorators';\r\n\r\nconst DEFAULT_CONFIG = {};\r\n\r\nexport function useTargets(variables, config = DEFAULT_CONFIG) {\r\n const dataRefId = useDataRefId(dataRefIdDecorator('coll', variables), environmentLookupFn);\r\n\r\n const defaultConfig = useMemo(() => ({\r\n refetch: config.refetch || {},\r\n pagination: config.pagination || {},\r\n create: config.add || {},\r\n }), [config]);\r\n\r\n const {\r\n refetch: refetchConfig,\r\n pagination: paginationConfig,\r\n create: createConfig,\r\n } = defaultConfig;\r\n\r\n const expandedPaginationConfig = useMemo(() => ({\r\n fetchVariables: {\r\n ...variables,\r\n },\r\n ...paginationConfig,\r\n }), [variables, paginationConfig]);\r\n\r\n const [data, paginationMethods] = usePagination(dataRefId, fetchSpec, expandedPaginationConfig);\r\n const createFn = useMutation(dataRefId, addSpec, createConfig);\r\n const refetchFn = useRefetch(dataRefId, refetchSpec, refetchConfig);\r\n\r\n const create = useCallback((newData, ...rest) => {\r\n createFn(variables, newData, ...rest);\r\n }, [createFn, variables]);\r\n\r\n const refetch = useCallback((parameter = {}, ...rest) => {\r\n refetchFn(\r\n {\r\n variables: {\r\n ...variables,\r\n ...parameter.variables,\r\n },\r\n payload: parameter.payload,\r\n },\r\n refetchConfig,\r\n ...rest\r\n );\r\n }, [refetchFn, refetchConfig, variables]);\r\n\r\n const { loadMore, hasMore, isLoading } = paginationMethods;\r\n\r\n return [data, {\r\n loadMore,\r\n hasMore,\r\n isLoading,\r\n create,\r\n refetch,\r\n }];\r\n}\r\n","export function dataRefIdDecorator() {\r\n return null;\r\n}\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.StoreOrNetwork;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './destroy-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n campaign_id,\r\n ad_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .Campaigns.$withKey(campaign_id)\r\n .Ads.$withKey(ad_id);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n const { headers } = params;\r\n return headers;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:campaign:ad',\r\n verb: requestVerbs.DELETE,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n keySelector: variables => variables.locator.descriptor.ad_id,\r\n parentKeySelector: variables => variables.locator.descriptor.campaign_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.ENTITY,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r),\r\n});\r\n\r\nexport const destroySpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.DELETE,\r\n sideEffects.destroy,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.StoreOrNetwork;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './fetch-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n campaign_id,\r\n ad_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .Campaigns.$withKey(campaign_id)\r\n .Ads.$withKey(ad_id);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n const { headers } = params;\r\n return headers;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:campaign:ad',\r\n verb: requestVerbs.GET,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n keySelector: variables => variables.locator.descriptor.ad_id,\r\n parentKeySelector: variables => variables.locator.descriptor.campaign_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.ENTITY,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r),\r\n});\r\n\r\nexport const fetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.FETCH,\r\n sideEffects.fetch,\r\n environmentLookupFn\r\n);\r\n\r\nexport const refetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.REFETCH,\r\n sideEffects.refetch,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.StoreOrNetwork;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n payloadDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './mutation-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n campaign_id,\r\n ad_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .Campaigns.$withKey(campaign_id)\r\n .Ads.$withKey(ad_id);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n return params.headers;\r\n}\r\n\r\nfunction odataPayloadFactory(params) {\r\n return params.data;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:campaign:ad',\r\n verb: requestVerbs.PATCH,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n payloadFactoryFn: payloadDecorator(odataPayloadFactory),\r\n keySelector: variables => variables.locator.descriptor.ad_id,\r\n parentKeySelector: variables => variables.locator.descriptor.campaign_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.ENTITY,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r),\r\n});\r\n\r\nexport const mutationSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.MUTATION,\r\n sideEffects.mutation,\r\n environmentLookupFn\r\n);\r\n","import _ from 'underscore';\r\nimport { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.NetworkOnly;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request) {\r\n const entity = _.omit(request.data, 'OfflineAdIdentities');\r\n return _.extend(entity, { Id: response.value });\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nfunction createSideEffectFn(response, request, spec, {\r\n tryDeleteItemsInCacheStore,\r\n}) {\r\n const { data } = request;\r\n // this means we are creating a text ads using a suggestion in UP\r\n // so we delete this suggestion ad in cache\r\n if (data['@odata.type'] === '#Model.SearchAd' && data.AdSource && data.AdSource.AdRecommendationGuid) {\r\n tryDeleteItemsInCacheStore({\r\n keysToDelete: [data.AdSource.AdRecommendationGuid],\r\n schemaName: 'get_suggested_ads',\r\n itemKeySelector: item => item.Id,\r\n });\r\n }\r\n\r\n if (data['@odata.type'] === '#Model.ImageAd' && data.AdSource && data.AdSource.TemplateAdId) {\r\n tryDeleteItemsInCacheStore({\r\n keysToDelete: [data.AdSource.TemplateAdId],\r\n schemaName: 'get_suggested_ads',\r\n itemKeySelector: item => item.Id,\r\n });\r\n }\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: createSideEffectFn,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n payloadDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './add-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n campaign_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .Campaigns.$withKey(campaign_id)\r\n .Ads;\r\n\r\n const searchString = composeSearchString(variables, edmEntity);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n return params.headers;\r\n}\r\n\r\nfunction odataPayloadFactory(params) {\r\n return params.data;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:campaign:ad',\r\n verb: requestVerbs.POST,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n payloadFactoryFn: payloadDecorator(odataPayloadFactory),\r\n keySelector: variables => variables.locator.descriptor.ad_id,\r\n parentKeySelector: variables => variables.locator.descriptor.campaign_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.COLL,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r.value),\r\n});\r\n\r\nexport const addSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.ADD,\r\n sideEffects.add,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.NetworkOnly;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './destroy-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n campaign_id,\r\n ad_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .Campaigns.$withKey(campaign_id)\r\n .Ads.$withKey(ad_id);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n const { headers } = params;\r\n return headers;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:campaign:ad',\r\n verb: requestVerbs.DELETE,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n keySelector: variables => variables.locator.descriptor.ad_id,\r\n parentKeySelector: variables => variables.locator.descriptor.campaign_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.ENTITY,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r),\r\n});\r\n\r\nexport const destroySpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.DELETE,\r\n sideEffects.destroy,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.StoreOrNetwork;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './fetch-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n campaign_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .Campaigns.$withKey(campaign_id)\r\n .Ads;\r\n\r\n const searchString = composeSearchString(variables, edmEntity);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n const { headers } = params;\r\n return headers;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:campaign:ad',\r\n verb: requestVerbs.GET,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n keySelector: variables => variables.locator.descriptor.ad_id,\r\n parentKeySelector: variables => variables.locator.descriptor.campaign_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.COLL,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r.value),\r\n});\r\n\r\nexport const fetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.PAGINATION,\r\n sideEffects.pagination,\r\n environmentLookupFn\r\n);\r\n\r\nexport const refetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.REFETCH,\r\n sideEffects.refetch,\r\n environmentLookupFn\r\n);\r\n","/* eslint-disable camelcase */\r\nimport { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nimport { edm } from '../../../../../../../env/edm';\r\n\r\nexport const networkPolicy = FetchPolicy.NetworkOnly;\r\n\r\nexport function urlDecorator() {\r\n function decorator(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n campaign_id,\r\n ad_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .Campaigns.$withKey(campaign_id)\r\n .Ads.$withKey(ad_id);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n }\r\n\r\n return params => decorator(params);\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request) {\r\n return {\r\n ...request.data,\r\n Id: response.value,\r\n };\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n payloadDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './mutation-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n campaign_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .Campaigns.$withKey(campaign_id)\r\n .Ads;\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n return params.headers;\r\n}\r\n\r\nfunction odataPayloadFactory(params) {\r\n return params.data;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:campaign:ad',\r\n verb: requestVerbs.PATCH,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n payloadFactoryFn: payloadDecorator(odataPayloadFactory),\r\n keySelector: variables => variables.locator.descriptor.ad_id,\r\n parentKeySelector: variables => variables.locator.descriptor.campaign_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.COLL,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r.value),\r\n});\r\n\r\nexport const mutationSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.MUTATION,\r\n sideEffects.mutation,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.StoreOrNetwork;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './destroy-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n campaign_id,\r\n keyword_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .Campaigns.$withKey(campaign_id)\r\n .Keywords.$withKey(keyword_id);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n const { headers } = params;\r\n return headers;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:campaign:keyword',\r\n verb: requestVerbs.DELETE,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n keySelector: variables => variables.locator.descriptor.keyword_id,\r\n parentKeySelector: variables => variables.locator.descriptor.campaign_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.ENTITY,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r),\r\n});\r\n\r\nexport const destroySpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.DELETE,\r\n sideEffects.destroy,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.StoreOrNetwork;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './fetch-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n campaign_id,\r\n keyword_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .Campaigns.$withKey(campaign_id)\r\n .Keywords.$withKey(keyword_id);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n const { headers } = params;\r\n return headers;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:campaign:keyword',\r\n verb: requestVerbs.GET,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n keySelector: variables => variables.locator.descriptor.keyword_id,\r\n parentKeySelector: variables => variables.locator.descriptor.campaign_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.ENTITY,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r),\r\n});\r\n\r\nexport const fetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.FETCH,\r\n sideEffects.fetch,\r\n environmentLookupFn\r\n);\r\n\r\nexport const refetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.REFETCH,\r\n sideEffects.refetch,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.StoreOrNetwork;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n payloadDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './mutation-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n campaign_id,\r\n keyword_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .Campaigns.$withKey(campaign_id)\r\n .Keywords.$withKey(keyword_id);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n return params.headers;\r\n}\r\n\r\nfunction odataPayloadFactory(params) {\r\n return params.data;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:campaign:keyword',\r\n verb: requestVerbs.PATCH,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n payloadFactoryFn: payloadDecorator(odataPayloadFactory),\r\n keySelector: variables => variables.locator.descriptor.keyword_id,\r\n parentKeySelector: variables => variables.locator.descriptor.campaign_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.ENTITY,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r),\r\n});\r\n\r\nexport const mutationSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.MUTATION,\r\n sideEffects.mutation,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.NetworkOnly;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request) {\r\n return {\r\n ...request.data,\r\n Id: response.value,\r\n Status: 'Active',\r\n };\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n payloadDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './add-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n campaign_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .Campaigns.$withKey(campaign_id)\r\n .Keywords;\r\n\r\n const searchString = composeSearchString(variables, edmEntity);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n return params.headers;\r\n}\r\n\r\nfunction odataPayloadFactory(params) {\r\n return params.data;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:campaign:keyword',\r\n verb: requestVerbs.POST,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n payloadFactoryFn: payloadDecorator(odataPayloadFactory),\r\n keySelector: variables => variables.locator.descriptor.keyword_id,\r\n parentKeySelector: variables => variables.locator.descriptor.campaign_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.COLL,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r.value),\r\n});\r\n\r\nexport const addSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.ADD,\r\n sideEffects.add,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.NetworkOnly;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request) {\r\n return {\r\n ...request.data,\r\n Id: response.value,\r\n };\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './destroy-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n campaign_id,\r\n keyword_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .Campaigns.$withKey(campaign_id)\r\n .Keywords.$withKey(keyword_id);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n const { headers } = params;\r\n return headers;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:campaign:keyword',\r\n verb: requestVerbs.DELETE,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n keySelector: variables => variables.locator.descriptor.keyword_id,\r\n parentKeySelector: variables => variables.locator.descriptor.campaign_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.ENTITY,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r),\r\n});\r\n\r\nexport const destroySpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.DELETE,\r\n sideEffects.destroy,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.StoreOrNetwork;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './fetch-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n campaign_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .Campaigns.$withKey(campaign_id)\r\n .Keywords;\r\n\r\n const searchString = composeSearchString(variables, edmEntity);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n const { headers } = params;\r\n return headers;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:campaign:keyword',\r\n verb: requestVerbs.GET,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n keySelector: variables => variables.locator.descriptor.keyword_id,\r\n parentKeySelector: variables => variables.locator.descriptor.campaign_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.COLL,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r.value),\r\n});\r\n\r\nexport const fetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.PAGINATION,\r\n sideEffects.pagination,\r\n environmentLookupFn\r\n);\r\n\r\nexport const refetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.REFETCH,\r\n sideEffects.refetch,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.StoreOrNetwork;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n payloadDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './mutation-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n campaign_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .Campaigns.$withKey(campaign_id)\r\n .Keywords;\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n return params.headers;\r\n}\r\n\r\nfunction odataPayloadFactory(params) {\r\n return params.data;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:campaign:keyword',\r\n verb: requestVerbs.PATCH,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n payloadFactoryFn: payloadDecorator(odataPayloadFactory),\r\n keySelector: variables => variables.locator.descriptor.keyword_id,\r\n parentKeySelector: variables => variables.locator.descriptor.campaign_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.COLL,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r.value),\r\n});\r\n\r\nexport const mutationSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.MUTATION,\r\n sideEffects.mutation,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.StoreOrNetwork;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './destroy-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n social_profile_id,\r\n activity_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .SocialProfiles.$withKey(social_profile_id)\r\n .Activities.$withKey(activity_id);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n const { headers } = params;\r\n return headers;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:social_profile:activity',\r\n verb: requestVerbs.DELETE,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n keySelector: variables => variables.locator.descriptor.activity_id,\r\n parentKeySelector: variables => variables.locator.descriptor.social_profile_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.ENTITY,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r),\r\n});\r\n\r\nexport const destroySpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.DELETE,\r\n sideEffects.destroy,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.StoreOrNetwork;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './fetch-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n social_profile_id,\r\n activity_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .SocialProfiles.$withKey(social_profile_id)\r\n .Activities.$withKey(activity_id);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n const { headers } = params;\r\n return headers;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:social_profile:activity',\r\n verb: requestVerbs.GET,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n keySelector: variables => variables.locator.descriptor.activity_id,\r\n parentKeySelector: variables => variables.locator.descriptor.social_profile_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.ENTITY,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r),\r\n});\r\n\r\nexport const fetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.FETCH,\r\n sideEffects.fetch,\r\n environmentLookupFn\r\n);\r\n\r\nexport const refetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.REFETCH,\r\n sideEffects.refetch,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.StoreOrNetwork;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n payloadDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './mutation-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n social_profile_id,\r\n activity_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .SocialProfiles.$withKey(social_profile_id)\r\n .Activities.$withKey(activity_id);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n return params.headers;\r\n}\r\n\r\nfunction odataPayloadFactory(params) {\r\n return params.data;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:social_profile:activity',\r\n verb: requestVerbs.PATCH,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n payloadFactoryFn: payloadDecorator(odataPayloadFactory),\r\n keySelector: variables => variables.locator.descriptor.activity_id,\r\n parentKeySelector: variables => variables.locator.descriptor.social_profile_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.ENTITY,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r),\r\n});\r\n\r\nexport const mutationSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.MUTATION,\r\n sideEffects.mutation,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.StoreOrNetwork;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n payloadDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './add-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n social_profile_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .SocialProfiles.$withKey(social_profile_id)\r\n .Activities;\r\n\r\n const searchString = composeSearchString(variables, edmEntity);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n return params.headers;\r\n}\r\n\r\nfunction odataPayloadFactory(params) {\r\n return params.data;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:social_profile:activity',\r\n verb: requestVerbs.POST,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n payloadFactoryFn: payloadDecorator(odataPayloadFactory),\r\n keySelector: variables => variables.locator.descriptor.activity_id,\r\n parentKeySelector: variables => variables.locator.descriptor.social_profile_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.COLL,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r.value),\r\n});\r\n\r\nexport const addSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.ADD,\r\n sideEffects.add,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.StoreOrNetwork;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './destroy-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n social_profile_id,\r\n activity_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .SocialProfiles.$withKey(social_profile_id)\r\n .Activities.$withKey(activity_id);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n const { headers } = params;\r\n return headers;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:social_profile:activity',\r\n verb: requestVerbs.DELETE,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n keySelector: variables => variables.locator.descriptor.activity_id,\r\n parentKeySelector: variables => variables.locator.descriptor.social_profile_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.ENTITY,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r),\r\n});\r\n\r\nexport const destroySpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.DELETE,\r\n sideEffects.destroy,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.StoreOrNetwork;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './fetch-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n social_profile_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .SocialProfiles.$withKey(social_profile_id)\r\n .Activities;\r\n\r\n const searchString = composeSearchString(variables, edmEntity);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n const { headers } = params;\r\n return headers;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:social_profile:activity',\r\n verb: requestVerbs.GET,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n keySelector: variables => variables.locator.descriptor.activity_id,\r\n parentKeySelector: variables => variables.locator.descriptor.social_profile_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.COLL,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r.value),\r\n});\r\n\r\nexport const fetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.PAGINATION,\r\n sideEffects.pagination,\r\n environmentLookupFn\r\n);\r\n\r\nexport const refetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.REFETCH,\r\n sideEffects.refetch,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.StoreOrNetwork;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n payloadDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './mutation-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor } } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n social_profile_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .SocialProfiles.$withKey(social_profile_id)\r\n .Activities;\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n return params.headers;\r\n}\r\n\r\nfunction odataPayloadFactory(params) {\r\n return params.data;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:social_profile:activity',\r\n verb: requestVerbs.PATCH,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n payloadFactoryFn: payloadDecorator(odataPayloadFactory),\r\n keySelector: variables => variables.locator.descriptor.activity_id,\r\n parentKeySelector: variables => variables.locator.descriptor.social_profile_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.COLL,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r.value),\r\n});\r\n\r\nexport const mutationSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.MUTATION,\r\n sideEffects.mutation,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.StoreOrNetwork;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n payloadDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './action-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor }, ...rest } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n social_profile_id,\r\n activity_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .SocialProfiles.$withKey(social_profile_id)\r\n .Activities.$withKey(activity_id)['Default.ReplyAsComment']\r\n .$call(rest);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n return params.headers;\r\n}\r\n\r\nfunction odataPayloadFactory(params) {\r\n return params.data;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:social_profile:activity:reply_as_comment',\r\n verb: requestVerbs.POST,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n payloadFactoryFn: payloadDecorator(odataPayloadFactory),\r\n keySelector: variables => variables.locator.descriptor.activity_id,\r\n parentKeySelector: variables => variables.locator.descriptor.social_profile_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.ENTITY,\r\n keySelector: keySelectorDecorator(r => r),\r\n processorFn: processorDecorator(r => r),\r\n});\r\n\r\nexport const fetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.FETCH,\r\n sideEffects.fetch,\r\n environmentLookupFn\r\n);\r\n\r\nexport const actionSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.MUTATION,\r\n sideEffects.mutation,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.StoreOrNetwork;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n payloadDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './action-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor }, ...rest } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n social_profile_id,\r\n activity_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .SocialProfiles.$withKey(social_profile_id)\r\n .Activities.$withKey(activity_id)['Default.ReplyAsMessage']\r\n .$call(rest);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n return params.headers;\r\n}\r\n\r\nfunction odataPayloadFactory(params) {\r\n return params.data;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:social_profile:activity:reply_as_message',\r\n verb: requestVerbs.POST,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n payloadFactoryFn: payloadDecorator(odataPayloadFactory),\r\n keySelector: variables => variables.locator.descriptor.activity_id,\r\n parentKeySelector: variables => variables.locator.descriptor.social_profile_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.ENTITY,\r\n keySelector: keySelectorDecorator(r => r),\r\n processorFn: processorDecorator(r => r),\r\n});\r\n\r\nexport const fetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.FETCH,\r\n sideEffects.fetch,\r\n environmentLookupFn\r\n);\r\n\r\nexport const actionSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.MUTATION,\r\n sideEffects.mutation,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.NetworkOnly;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n payloadDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './action-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor }, ...rest } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n goal_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .Goals.$withKey(goal_id)['Default.SetClarityEventInfo']\r\n .$call(rest);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n return params.headers;\r\n}\r\n\r\nfunction odataPayloadFactory(params) {\r\n return params.data;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:goal:set_clarity_event_info',\r\n verb: requestVerbs.POST,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n payloadFactoryFn: payloadDecorator(odataPayloadFactory),\r\n keySelector: variables => variables.locator.descriptor.goal_id,\r\n parentKeySelector: variables => variables.locator.descriptor.account_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.ENTITY,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r.value),\r\n});\r\n\r\nexport const fetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.FETCH,\r\n sideEffects.fetch,\r\n environmentLookupFn\r\n);\r\n\r\nexport const actionSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.MUTATION,\r\n sideEffects.mutation,\r\n environmentLookupFn\r\n);\r\n","import { FetchPolicy } from '@bingads-webui-react/overreact';\r\nimport { getDefaultHeaderObj } from '@bingads-webui/overreact-bingads';\r\n\r\nexport const networkPolicy = FetchPolicy.NetworkOnly;\r\n\r\nexport function urlDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function headerDecorator(fn) {\r\n function decorator() {\r\n return getDefaultHeaderObj();\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function payloadDecorator(fn) {\r\n function decorator(params, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return params => decorator(params, fn(params));\r\n}\r\n\r\nexport function keySelectorDecorator(fn) {\r\n function decorator(obj, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return obj => decorator(obj, fn(obj));\r\n}\r\n\r\nexport function processorDecorator(fn) {\r\n function decorator(response, request, originValue) {\r\n // TODO: Add decoration\r\n return originValue;\r\n }\r\n\r\n return (response, request) => decorator(response, request, fn(response, request));\r\n}\r\n\r\nexport const sideEffects = {\r\n fetch: null,\r\n refetch: null,\r\n mutation: null,\r\n pagination: null,\r\n add: null,\r\n destroy: null,\r\n};\r\n","/* eslint-disable camelcase */\r\nimport {\r\n createRequestContract,\r\n createResponseContract,\r\n createSpec,\r\n\r\n requestVerbs,\r\n responseTypes,\r\n specTypes,\r\n} from '@bingads-webui-react/overreact';\r\n\r\nimport { composeSearchString } from '@bingads-webui-react/overreact-odata';\r\n\r\nimport { edm } from '../../../../../../../env/edm';\r\nimport { environmentLookupFn } from '../../../../../../../env/env-instance';\r\nimport { schema } from '../../../../../../../env/schema';\r\n\r\nimport {\r\n urlDecorator,\r\n headerDecorator,\r\n processorDecorator,\r\n keySelectorDecorator,\r\n sideEffects,\r\n\r\n networkPolicy,\r\n} from './func-decorators';\r\n\r\nfunction odataUrlFactory(params) {\r\n const { variables } = params;\r\n const { locator: { descriptor }, ...rest } = variables;\r\n const {\r\n customer_id,\r\n account_id,\r\n goal_id,\r\n } = descriptor;\r\n\r\n const edmEntity = edm\r\n .Customers.$withKey(customer_id)\r\n .Accounts.$withKey(account_id)\r\n .Goals.$withKey(goal_id)['Default.GetClarityEventInfo']\r\n .$call(rest);\r\n\r\n const searchString = composeSearchString(variables, edmEntity, false);\r\n return `${edmEntity.path}${searchString}`;\r\n}\r\n\r\nfunction odataHeaderFactory(params) {\r\n const { headers } = params;\r\n return headers;\r\n}\r\n\r\nconst requestContract = createRequestContract({\r\n schema,\r\n dataPath: 'customer:account:goal:clarity_event_info',\r\n verb: requestVerbs.GET,\r\n fetchPolicy: networkPolicy,\r\n uriFactoryFn: urlDecorator(odataUrlFactory),\r\n headerFactoryFn: headerDecorator(odataHeaderFactory),\r\n keySelector: variables => variables.locator.descriptor.goal_id,\r\n parentKeySelector: variables => variables.locator.descriptor.account_id,\r\n});\r\n\r\nconst responseContract = createResponseContract({\r\n requestContract,\r\n responseType: responseTypes.ENTITY,\r\n keySelector: keySelectorDecorator(r => r.Id),\r\n processorFn: processorDecorator(r => r),\r\n});\r\n\r\nexport const fetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.FETCH,\r\n sideEffects.fetch,\r\n environmentLookupFn\r\n);\r\n\r\nexport const refetchSpec = createSpec(\r\n requestContract,\r\n responseContract,\r\n specTypes.REFETCH,\r\n sideEffects.refetch,\r\n environmentLookupFn\r\n);\r\n"],"sourceRoot":""}