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ack://_N_E/./src/API.ts","webpack://_N_E/./src/enums/marketingPlatforms.ts","webpack://_N_E/./src/graphql/mutations.ts","webpack://_N_E/./src/graphql/queries.ts","webpack://_N_E/./src/modules/cacheCall.ts","webpack://_N_E/./src/modules/handleGraphqlResponse.ts","webpack://_N_E/./src/store/slices/linkTrackingSlice.ts","webpack://_N_E/./src/store/index.ts","webpack://_N_E/./src/store/slices/adminSelectedBusinessSlice.ts","webpack://_N_E/./src/store/slices/businessProfileSlice.ts","webpack://_N_E/./src/store/slices/businessConnectionsSlice.ts","webpack://_N_E/./src/store/slices/backdropLoaderSlice.ts","webpack://_N_E/./src/store/slices/performanceSlice.ts","webpack://_N_E/./src/store/slices/quickSetupSlice.ts","webpack://_N_E/./src/graphql/subscriptions.ts","webpack://_N_E/./src/store/slices/asyncDatafetchSlice.ts","webpack://_N_E/./src/store/slices/layoutSlice.ts","webpack://_N_E/./src/enums/dialogTypes.ts","webpack://_N_E/./src/store/slices/dialogSlice.ts","webpack://_N_E/./src/store/slices/trialSlice.ts","webpack://_N_E/./src/store/slices/promoCodeSlice.ts","webpack://_N_E/./src/store/slices/snackBarSlice.ts","webpack://_N_E/./src/store/slices/userSlice.ts","webpack://_N_E/./src/store/slices/unauthorizedCallSlice.ts","webpack://_N_E/./src/_utils/dynamic-query-builder-types.ts","webpack://_N_E/./src/store/slices/segmentSlice.ts","webpack://_N_E/./src/store/slices/audienceSlice.ts","webpack://_N_E/./src/store/slices/getSegmentBuilderBasicDetails.ts","webpack://_N_E/./src/store/slices/inspirationsSlice.ts","webpack://_N_E/./src/store/slices/index.ts","webpack://_N_E/./src/utils/enums.ts","webpack://_N_E/./src/utils/tryParse.ts"],"sourcesContent":["/* tslint:disable */\n/* eslint-disable */\n// This file was automatically generated and should not be edited.\n\nexport type ActivateBusinessInput = {\n business_id: string,\n};\n\nexport type ActivateBusinessResponse = {\n __typename: \"ActivateBusinessResponse\",\n error?: ErrorResponse | null,\n message?: string | null,\n nextToken?: string | null,\n};\n\nexport type ErrorResponse = {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n};\n\nexport type SetBusinessGoalInput = {\n business_id: string,\n goal: string,\n};\n\nexport type ApplyPromoCodeResponse = {\n __typename: \"ApplyPromoCodeResponse\",\n error?: ErrorResponse | null,\n message?: string | null,\n nextToken?: string | null,\n};\n\nexport type GetMiniShopDetailsInput = {\n business_id: string,\n dateStart: string,\n dateEnd: string,\n};\n\nexport type UpdateMiniShopResponse = {\n __typename: \"UpdateMiniShopResponse\",\n data?: MiniShopDetails | null,\n error?: ErrorResponse | null,\n message?: string | null,\n nextToken?: string | null,\n};\n\nexport type MiniShopDetails = {\n __typename: \"MiniShopDetails\",\n topProducts?: Array | null,\n miniShop?: MiniShop | null,\n trackableLink?: TrackableCopy | null,\n};\n\nexport type PerformingProductsData = {\n __typename: \"PerformingProductsData\",\n product_id?: string | null,\n name?: string | null,\n total_revenue?: number | null,\n product_image?: string | null,\n handle?: string | null,\n};\n\nexport type MiniShop = {\n __typename: \"MiniShop\",\n id?: string | null,\n shop_name?: string | null,\n shop_image?: string | null,\n business_id?: string | null,\n top_products?: string | null,\n deleted_at?: string | null,\n updated_at?: string | null,\n created_at?: string | null,\n};\n\nexport type TrackableCopy = {\n __typename: \"TrackableCopy\",\n id: string,\n name: string,\n description?: string | null,\n type?: string | null,\n short_code: string,\n destination_url: string,\n url_position?: string | null,\n business_id?: string | null,\n created?: string | null,\n stats?: TrackableCopyStats | null,\n is_onboarding_default?: boolean | null,\n is_mini_shop?: boolean | null,\n};\n\nexport type TrackableCopyStats = {\n __typename: \"TrackableCopyStats\",\n clicks?: number | null,\n purchases?: number | null,\n revenue?: number | null,\n prev_clicks?: number | null,\n};\n\nexport type ChangePasswordInput = {\n password: string,\n two_factor_id: string,\n};\n\nexport type ChangePasswordResponse = {\n __typename: \"ChangePasswordResponse\",\n error?: ErrorResponse | null,\n message?: string | null,\n};\n\nexport type CreateTaskInput = {\n title: string,\n description: string,\n priority: number,\n objectives?: Array< string | null > | null,\n is_task_master: boolean,\n business_id?: string | null,\n deeplink_target_url?: string | null,\n target_button_title?: string | null,\n task_image_url?: string | null,\n};\n\nexport type TaskResponse = {\n __typename: \"TaskResponse\",\n error?: ErrorResponse | null,\n message?: string | null,\n nextToken?: string | null,\n};\n\nexport type UpdateTaskInput = {\n task_id: string,\n title: string,\n description: string,\n priority: number,\n objectives?: Array< string | null > | null,\n deeplink_target_url?: string | null,\n target_button_title?: string | null,\n task_image_url?: string | null,\n};\n\nexport type UpdateBusinessOnboardingDataInput = {\n business_id: string,\n};\n\nexport type UpdateBusinessOnboardingResponse = {\n __typename: \"UpdateBusinessOnboardingResponse\",\n success?: boolean | null,\n error?: ErrorResponse | null,\n message?: string | null,\n};\n\nexport type UpsertStoreInput = {\n myshopify_url: string,\n access_token: string,\n};\n\nexport type UpsertStoreResponse = {\n __typename: \"UpsertStoreResponse\",\n data?: boolean | null,\n error?: ErrorResponse | null,\n message?: string | null,\n nextToken?: string | null,\n};\n\nexport type UpdateTaskStatusInput = {\n task_x_business_id: string,\n status: string,\n business_id: string,\n};\n\nexport type DeleteTaskInput = {\n task_id: string,\n};\n\nexport type CreateStaffAccountInput = {\n email: string,\n first_name: string,\n last_name: string,\n password: string,\n business_id: string,\n staff_user_id?: string | null,\n};\n\nexport type CreateStaffAccountResponse = {\n __typename: \"CreateStaffAccountResponse\",\n error?: ErrorResponse | null,\n message?: string | null,\n nextToken?: string | null,\n};\n\nexport type UpdatePinnedInspirationsInput = {\n business_id: string,\n add: string,\n};\n\nexport type UpdatePinnedInspirationsResponse = {\n __typename: \"UpdatePinnedInspirationsResponse\",\n error?: ErrorResponse | null,\n message?: string | null,\n nextToken?: string | null,\n};\n\nexport type DeleteStaffAccountInput = {\n staff_id: string,\n business_id: string,\n};\n\nexport type DeleteStaffAccountResponse = {\n __typename: \"DeleteStaffAccountResponse\",\n error?: ErrorResponse | null,\n message?: string | null,\n nextToken?: string | null,\n};\n\nexport type PasswordResetInput = {\n email: string,\n};\n\nexport type PasswordResetResponse = {\n __typename: \"PasswordResetResponse\",\n error?: ErrorResponse | null,\n message?: string | null,\n};\n\nexport type BusinessIdInput = {\n business_id: string,\n};\n\nexport type GeneralApiResponse = {\n __typename: \"GeneralApiResponse\",\n data?: boolean | null,\n error?: ErrorResponse | null,\n message?: string | null,\n nextToken?: string | null,\n};\n\nexport type BusinessIdWithPlatform = {\n business_id: string,\n platform?: string | null,\n};\n\nexport type RemoveSocialAdAccountResponse = {\n __typename: \"RemoveSocialAdAccountResponse\",\n error?: ErrorResponse | null,\n message?: string | null,\n};\n\nexport type RemoveSocialAccessResponse = {\n __typename: \"RemoveSocialAccessResponse\",\n error?: ErrorResponse | null,\n message?: string | null,\n nextToken?: string | null,\n};\n\nexport type SetSocialAccessInput = {\n platform: string,\n user_id?: string | null,\n business_id: string,\n access_token?: string | null,\n refresh_token?: string | null,\n};\n\nexport type SetSocialAccessResponse = {\n __typename: \"SetSocialAccessResponse\",\n data?: AdAccountSettingsPrisma | null,\n error?: ErrorResponse | null,\n message?: string | null,\n nextToken?: string | null,\n};\n\nexport type AdAccountSettingsPrisma = {\n __typename: \"AdAccountSettingsPrisma\",\n id: string,\n business_id: string,\n ad_platform_id: string,\n premium_page_views: number,\n external_platform?: string | null,\n active_campaign_count: number,\n paused_campaign_count: number,\n social_account_id?: string | null,\n social_account_name?: string | null,\n social_account_currency?: string | null,\n social_account_timezone?: string | null,\n access_token?: string | null,\n utm_count: number,\n social_integration?: string | null,\n conversion_api_enabled?: string | null,\n pixel_id?: string | null,\n social_refresh_token?: string | null,\n updateKey?: string | null,\n last_data_refreshed?: string | null,\n created_at: string,\n updated_at: string,\n deleted_at?: string | null,\n ad_platform: AdPlatformPrisma,\n};\n\nexport type AdPlatformPrisma = {\n __typename: \"AdPlatformPrisma\",\n id: string,\n name: string,\n internal_source_name: string,\n dark_theme_image_url?: string | null,\n light_theme_image_url: string,\n status: string,\n};\n\nexport type SetSocialAdAccountInput = {\n platform: string,\n ad_account_id: string,\n business_id: string,\n timezone?: string | null,\n currency?: string | null,\n is_onboarding?: boolean | null,\n};\n\nexport type SetSocialAdAccountResponse = {\n __typename: \"SetSocialAdAccountResponse\",\n error?: ErrorResponse | null,\n message?: string | null,\n};\n\nexport type TriggerBusinessDataLongFetchResponse = {\n __typename: \"TriggerBusinessDataLongFetchResponse\",\n error?: ErrorResponse | null,\n message?: string | null,\n};\n\nexport type TriggerBusinessDayZeroDataCheckInput = {\n business_id: string,\n};\n\nexport type TriggerBusinessDayZeroDataCheckResponse = {\n __typename: \"TriggerBusinessDayZeroDataCheckResponse\",\n error?: ErrorResponse | null,\n message?: string | null,\n};\n\nexport type SetBusinessesInput = {\n business_id: string,\n business_name?: string | null,\n tour_skipped_at?: string | null,\n tour_completed_at?: string | null,\n};\n\nexport type SetBusinessesPrismaInputResponse = {\n __typename: \"SetBusinessesPrismaInputResponse\",\n data?: BusinessPrisma | null,\n error?: ErrorResponse | null,\n message?: string | null,\n nextToken?: string | null,\n};\n\nexport type BusinessPrisma = {\n __typename: \"BusinessPrisma\",\n id: string,\n store_id: string,\n name: string,\n status: string,\n logo?: string | null,\n vanity_name: string,\n reminder_status?: boolean | null,\n show_budget_confirmation?: boolean | null,\n monthly_budget: number,\n business_goal?: string | null,\n campaign_roas_goal?: string | null,\n adset_roas_goal?: string | null,\n ad_roas_goal?: string | null,\n created_at: string,\n updated_at: string,\n deleted_at?: string | null,\n ad_account_settings: Array,\n subscriptions: Array,\n store?: StorePrisma | null,\n completed_onboarding_call?: boolean | null,\n has_visitor_session?: boolean | null,\n business_roas_goals?: Array | null,\n tour_completed_at?: string | null,\n tour_skipped_at?: string | null,\n feature_flags?: Array< string | null > | null,\n onboarding_call_completed_at?: string | null,\n pinned_inspirations?: Array< string | null > | null,\n};\n\nexport type SubscriptionPrisma = {\n __typename: \"SubscriptionPrisma\",\n id: string,\n business_id: string,\n subscription_plan_code?: string | null,\n status: string,\n processor?: string | null,\n store_subscription_body?: string | null,\n store_subscription_id?: string | null,\n promo_code_id?: string | null,\n trial_start?: string | null,\n trial_end?: string | null,\n trial_left?: number | null,\n current_billing_period_start?: string | null,\n current_billing_period_end?: string | null,\n subscription_end_date?: string | null,\n business_limit?: number | null,\n staff_limit?: number | null,\n subscription_charges?: Array | null,\n promo_codes?: PromoCodePrisma | null,\n current_revenue?: number | null,\n created_at: string,\n updated_at: string,\n deleted_at?: string | null,\n};\n\nexport type SubscriptionChargesPrisma = {\n __typename: \"SubscriptionChargesPrisma\",\n id: string,\n business_id: string,\n subscription_id?: string | null,\n store_revenue: number,\n amount_billed: number,\n created_at: string,\n updated_at: string,\n deleted_at?: string | null,\n};\n\nexport type PromoCodePrisma = {\n __typename: \"PromoCodePrisma\",\n id?: string | null,\n code?: string | null,\n type?: string | null,\n status?: string | null,\n duration?: number | null,\n amount?: number | null,\n created_at?: string | null,\n updated_at?: string | null,\n deleted_at?: string | null,\n};\n\nexport type StorePrisma = {\n __typename: \"StorePrisma\",\n id?: string | null,\n shop_name?: string | null,\n address1?: string | null,\n address2?: string | null,\n city?: string | null,\n state?: string | null,\n zip?: string | null,\n country?: string | null,\n store_url?: string | null,\n timezone?: string | null,\n currency?: string | null,\n created_at?: string | null,\n updated_at?: string | null,\n deleted_at?: string | null,\n};\n\nexport type BusinessRoasGoalPrisma = {\n __typename: \"BusinessRoasGoalPrisma\",\n id: string,\n roas_goal: number,\n ad_platform_id: string,\n ad_platforms: AdPlatformPrisma,\n};\n\nexport type UpdateBusinessLogoInput = {\n business_id: string,\n file_url: string,\n};\n\nexport type UpdateBusinessLogoNewResponse = {\n __typename: \"UpdateBusinessLogoNewResponse\",\n data?: BusinessPrisma | null,\n error?: ErrorResponse | null,\n message?: string | null,\n nextToken?: string | null,\n};\n\nexport type UpdateBusinessMetaDataInput = {\n business_id: string,\n metadata?: string | null,\n};\n\nexport type UpdateBusinessMetaDataResponse = {\n __typename: \"UpdateBusinessMetaDataResponse\",\n error?: ErrorResponse | null,\n message?: string | null,\n nextToken?: string | null,\n};\n\nexport type UpdateFacebookConnectionSettingsInput = {\n business_id: string,\n fb_pixel_id: number,\n};\n\nexport type UpdateFacebookConnectionSettingsResponse = {\n __typename: \"UpdateFacebookConnectionSettingsResponse\",\n error?: ErrorResponse | null,\n message?: string | null,\n};\n\nexport type UpdateStaffAccountAccessNewInput = {\n staff_id: string,\n business_id: string,\n};\n\nexport type UpdateStaffAccountAccessResponse = {\n __typename: \"UpdateStaffAccountAccessResponse\",\n error?: ErrorResponse | null,\n message?: string | null,\n nextToken?: string | null,\n};\n\nexport type UpdateTimezoneCurrencyInput = {\n currency: string,\n timezone: string,\n business_id: string,\n};\n\nexport type UpdateTimezoneCurrencyResponse = {\n __typename: \"UpdateTimezoneCurrencyResponse\",\n error?: ErrorResponse | null,\n message?: string | null,\n};\n\nexport type UpdateUserNewInput = {\n first_name?: string | null,\n address1?: string | null,\n address2?: string | null,\n last_name?: string | null,\n zip?: string | null,\n street_name?: string | null,\n street_number?: string | null,\n country?: string | null,\n country_code?: string | null,\n business_id: string,\n profile_photo?: string | null,\n link_tracking_visit_count?: number | null,\n link_tracking_view_status?: string | null,\n growth_hub_clicked?: boolean | null,\n inspirations_tutorial_finished?: boolean | null,\n mini_shop_tutorial_finished?: boolean | null,\n};\n\nexport type UpdateUserNewResponse = {\n __typename: \"UpdateUserNewResponse\",\n data?: UserPrisma | null,\n error?: ErrorResponse | null,\n message?: string | null,\n nextToken?: string | null,\n};\n\nexport type UserPrisma = {\n __typename: \"UserPrisma\",\n id: string,\n first_name: string,\n last_name: string,\n email: string,\n address1?: string | null,\n password?: string | null,\n timezone?: string | null,\n currency?: string | null,\n created_at: string,\n updated_at: string,\n deleted_at?: string | null,\n businesses?: Array | null,\n profile_photo?: string | null,\n is_admin_user?: boolean | null,\n link_tracking_visit_count?: number | null,\n link_tracking_view_status?: string | null,\n growth_hub_clicked_at?: string | null,\n inspirations_tutorial_finished_at?: string | null,\n mini_shop_tutorial_finished_at?: string | null,\n};\n\nexport type UserXBusinessPrisma = {\n __typename: \"UserXBusinessPrisma\",\n user_id: string,\n business_id: string,\n business: BusinessPrisma,\n user_type: string,\n is_default_business: boolean,\n created_at: string,\n updated_at: string,\n deleted_at?: string | null,\n};\n\nexport type UpdateUserProfilePictureInput = {\n file_url: string,\n business_id: string,\n};\n\nexport type UpdateUserProfilePictureResponse = {\n __typename: \"UpdateUserProfilePictureResponse\",\n data?: User | null,\n error?: ErrorResponse | null,\n message?: string | null,\n nextToken?: string | null,\n};\n\nexport type User = {\n __typename: \"User\",\n default_business_id?: string | null,\n account_state?: string | null,\n affiliate_auth_token?: string | null,\n auto_scaling_setting?: number | null,\n balance?: number | null,\n cancellation_reason?: string | null,\n card_expiry_date?: string | null,\n card_last_four_digits?: string | null,\n card_type?: string | null,\n city?: string | null,\n client_billing_account_id?: string | null,\n country_code?: string | null,\n country_name?: string | null,\n country_phone_prefix?: string | null,\n created_at?: string | null,\n currency?: string | null,\n current_billing_period_end?: number | null,\n current_billing_period_start?: number | null,\n data_deleting_on?: number | null,\n data_retention_period?: number | null,\n email?: string | null,\n end_trial_source?: string | null,\n facebook_accessToken?: string | null,\n facebook_userID?: string | null,\n first_name?: string | null,\n firstpromoter_auth_token?: string | null,\n full_address?: string | null,\n id?: string | null,\n invoices?: Array | null,\n last_name?: string | null,\n line1?: string | null,\n manager_id?: string | null,\n marketing_status?: number | null,\n phone_number?: string | null,\n postal_code?: string | null,\n products?: Product | null,\n profile_photo?: string | null,\n state?: string | null,\n status?: string | null,\n stripe_connect_account_id?: string | null,\n subscription?: Subscription | null,\n subscription_status?: string | null,\n tik_tok_access_token?: string | null,\n tik_tok_integration?: boolean | null,\n timezone?: string | null,\n two_factor_deactivate_business?: number | null,\n two_factor_remove_staff_account?: number | null,\n updated_at?: string | null,\n user_id?: string | null,\n user_plan?: Plan | null,\n verification_method?: string | null,\n shopify_store_url?: string | null,\n business_access?: Array | null,\n sessions?: Array | null,\n post_hog_user_id?: string | null,\n};\n\nexport type Invoice = {\n __typename: \"Invoice\",\n created_at?: string | null,\n customer_id?: string | null,\n id?: string | null,\n invoice_body?: string | null,\n status?: string | null,\n updated_at?: string | null,\n};\n\nexport type Product = {\n __typename: \"Product\",\n plan_product_id?: string | null,\n price_id?: string | null,\n product_code?: string | null,\n product_id?: string | null,\n product_name?: string | null,\n};\n\nexport type Subscription = {\n __typename: \"Subscription\",\n created_at?: string | null,\n customer_id?: string | null,\n id?: string | null,\n status?: string | null,\n subscription_body?: string | null,\n updated_at?: string | null,\n trial_end?: string | null,\n trial_start?: string | null,\n trial_left?: number | null,\n promo_code?: DiscountCode | null,\n plan?: Plan | null,\n plan_changed?: boolean | null,\n plan_code?: string | null,\n current_revenue?: number | null,\n current_billing_period_start?: string | null,\n current_billing_period_end?: string | null,\n};\n\nexport type DiscountCode = {\n __typename: \"DiscountCode\",\n code?: string | null,\n status?: string | null,\n duration?: number | null,\n amount?: number | null,\n type?: string | null,\n};\n\nexport type Plan = {\n __typename: \"Plan\",\n business_limit?: number | null,\n page_view_limit?: number | null,\n plan_code?: string | null,\n plan_name?: string | null,\n plan_price_id?: string | null,\n plan_product_id?: string | null,\n staff_limit?: number | null,\n};\n\nexport type BusinessAccess = {\n __typename: \"BusinessAccess\",\n vanity_name?: string | null,\n};\n\nexport type UserSession = {\n __typename: \"UserSession\",\n browser_name?: string | null,\n browser_version?: string | null,\n created_at?: string | null,\n ip?: string | null,\n location?: string | null,\n os_name?: string | null,\n os_version?: string | null,\n user_id?: string | null,\n};\n\nexport type VerifyTwoFactorInput = {\n two_factor_id?: string | null,\n email_confirm?: boolean | null,\n};\n\nexport type VerifyTwoFactorResponse = {\n __typename: \"VerifyTwoFactorResponse\",\n data?: boolean | null,\n error?: ErrorResponse | null,\n message?: string | null,\n nextToken?: string | null,\n};\n\nexport type RefreshDataForBusiness = {\n business_id?: string | null,\n};\n\nexport type RefreshDataForResponse = {\n __typename: \"RefreshDataForResponse\",\n data?: string | null,\n error?: ErrorResponse | null,\n message?: string | null,\n nextToken?: string | null,\n};\n\nexport type UpdateShopifyStoreUrlInput = {\n business_id: string,\n shopify_url: string,\n};\n\nexport type UpdateShopifyStoreUrlResponse = {\n __typename: \"UpdateShopifyStoreUrlResponse\",\n error?: ErrorResponse | null,\n message?: string | null,\n nextToken?: string | null,\n};\n\nexport type SetUserSessionResponsePrisma = {\n __typename: \"SetUserSessionResponsePrisma\",\n data?: UserSessionPrisma | null,\n error?: ErrorResponse | null,\n message?: string | null,\n nextToken?: string | null,\n};\n\nexport type UserSessionPrisma = {\n __typename: \"UserSessionPrisma\",\n browser_name?: string | null,\n browser_version?: string | null,\n created_at?: string | null,\n ip?: string | null,\n location?: string | null,\n os_name?: string | null,\n os_version?: string | null,\n user?: UserConnectionPrisma | null,\n};\n\nexport type UserConnectionPrisma = {\n __typename: \"UserConnectionPrisma\",\n connect: UserIDPrisma,\n};\n\nexport type UserIDPrisma = {\n __typename: \"UserIDPrisma\",\n id: string,\n};\n\nexport type CreateShopifySubscriptionInput = {\n plan_name: string,\n business_id: string,\n irclick_id?: string | null,\n};\n\nexport type CreateShopifySubscriptionResponse = {\n __typename: \"CreateShopifySubscriptionResponse\",\n data?: ShopifySubscription | null,\n error?: ErrorResponse | null,\n message?: string | null,\n nextToken?: string | null,\n};\n\nexport type ShopifySubscription = {\n __typename: \"ShopifySubscription\",\n confirmationUrl?: string | null,\n id?: string | null,\n};\n\nexport type RegisterShopifyUserInput = {\n email: string,\n first_name: string,\n last_name: string,\n password: string,\n shopify_store_url: string,\n post_hog_user_id?: string | null,\n business_id?: string | null,\n business_vanity_name?: string | null,\n};\n\nexport type RegisterShopifyUserResponse = {\n __typename: \"RegisterShopifyUserResponse\",\n error?: ErrorResponse | null,\n message?: string | null,\n nextToken?: string | null,\n user?: User | null,\n};\n\nexport type CheckShopifyLoginInput = {\n shopify_store_url?: string | null,\n};\n\nexport type CheckShopifyLoginResponse = {\n __typename: \"CheckShopifyLoginResponse\",\n data?: boolean | null,\n error?: ErrorResponse | null,\n message?: string | null,\n nextToken?: string | null,\n};\n\nexport type SendRegisterUserEmailInput = {\n email: string,\n first_name: string,\n last_name: string,\n password: string,\n};\n\nexport type SendRegisterUserEmailPrismaResponse = {\n __typename: \"SendRegisterUserEmailPrismaResponse\",\n error?: ErrorResponse | null,\n message?: string | null,\n nextToken?: string | null,\n user?: UserPrisma | null,\n};\n\nexport type CancelShopifySubscriptionInput = {\n businessId: string,\n};\n\nexport type CancelShopifySubscriptionResponse = {\n __typename: \"CancelShopifySubscriptionResponse\",\n data?: boolean | null,\n error?: ErrorResponse | null,\n message?: string | null,\n nextToken?: string | null,\n};\n\nexport type CancelShopifySubscriptionEarlyInput = {\n businessId: string,\n};\n\nexport type CreateShopifyScriptTagResponse = {\n __typename: \"CreateShopifyScriptTagResponse\",\n data?: boolean | null,\n error?: ErrorResponse | null,\n message?: string | null,\n nextToken?: string | null,\n};\n\nexport type GenerateBusinessAIReportInput = {\n business_id: string,\n};\n\nexport type GenerateBusinessAIReportResponse = {\n __typename: \"GenerateBusinessAIReportResponse\",\n data?: boolean | null,\n error?: ErrorResponse | null,\n message?: string | null,\n nextToken?: string | null,\n};\n\nexport type SetUtmValuesSocialCampaignInput = {\n businessId: string,\n campaignId?: string | null,\n adsetId?: string | null,\n adId?: string | null,\n itemType: string,\n source: string,\n};\n\nexport type SetUtmValuesSocialCampaignResponse = {\n __typename: \"SetUtmValuesSocialCampaignResponse\",\n error?: ErrorResponse | null,\n data?: SetUtmValuesFbCampaignResponseData | null,\n message?: string | null,\n nextToken?: string | null,\n};\n\nexport type SetUtmValuesFbCampaignResponseData = {\n __typename: \"SetUtmValuesFbCampaignResponseData\",\n totalAdsToConnect?: number | null,\n adsConnected?: Array< string | null > | null,\n adsFailed?: Array | null,\n};\n\nexport type SetUtmValuesFbCampaignErrorAd = {\n __typename: \"SetUtmValuesFbCampaignErrorAd\",\n ad?: string | null,\n error?: string | null,\n};\n\nexport type AddDiscountCodeInput = {\n discount_code: string,\n business_id?: string | null,\n};\n\nexport type AddDiscountCodeResponsePrisma = {\n __typename: \"AddDiscountCodeResponsePrisma\",\n data?: PromoCode | null,\n error?: ErrorResponse | null,\n message?: string | null,\n nextToken?: string | null,\n};\n\nexport type PromoCode = {\n __typename: \"PromoCode\",\n id?: string | null,\n code?: string | null,\n type?: string | null,\n status?: string | null,\n duration?: number | null,\n amount?: number | null,\n created_at?: string | null,\n updated_at?: string | null,\n deleted_at?: string | null,\n};\n\nexport type RemoveDiscountCodeNewResponse = {\n __typename: \"RemoveDiscountCodeNewResponse\",\n data?: SubscriptionPrisma | null,\n error?: ErrorResponse | null,\n message?: string | null,\n nextToken?: string | null,\n};\n\nexport type UpdateAdLevelStatusInput = {\n id: string,\n businessId: string,\n source: string,\n typeOfAd: string,\n status: string,\n reminderStatus: boolean,\n};\n\nexport type UpdateAdLevelStatusResponse = {\n __typename: \"UpdateAdLevelStatusResponse\",\n data?: boolean | null,\n error?: ErrorResponse | null,\n message?: string | null,\n nextToken?: string | null,\n};\n\nexport type updateAdDailyBudgetInput = {\n id: string,\n businessId: string,\n source: string,\n typeOfAd: string,\n amount: number,\n budget_type: string,\n reminderStatus: boolean,\n};\n\nexport type UpdateAdDailyBudgetResponse = {\n __typename: \"UpdateAdDailyBudgetResponse\",\n data?: boolean | null,\n error?: ErrorResponse | null,\n message?: string | null,\n nextToken?: string | null,\n};\n\nexport type CreateTrackableCopyInput = {\n name?: string | null,\n description?: string | null,\n type?: string | null,\n short_code?: string | null,\n destination_url?: string | null,\n url_position?: string | null,\n business_id?: string | null,\n shouldIgnoreValidation?: boolean | null,\n newTrackableCopyId?: string | null,\n};\n\nexport type CreateTrackableCopyResponse = {\n __typename: \"CreateTrackableCopyResponse\",\n error?: ErrorResponse | null,\n message?: string | null,\n nextToken?: string | null,\n};\n\nexport type DeleteTrackableCopyInput = {\n id?: string | null,\n short_code?: string | null,\n business_id?: string | null,\n};\n\nexport type DeleteTrackableCopyResponse = {\n __typename: \"DeleteTrackableCopyResponse\",\n data?: boolean | null,\n error?: ErrorResponse | null,\n message?: string | null,\n nextToken?: string | null,\n};\n\nexport type UpdateTrackableCopyInput = {\n id?: string | null,\n business_id?: string | null,\n short_code?: string | null,\n name?: string | null,\n description?: string | null,\n destination_url?: string | null,\n url_position?: string | null,\n};\n\nexport type UpdateTrackableCopyResponse = {\n __typename: \"UpdateTrackableCopyResponse\",\n data?: boolean | null,\n error?: ErrorResponse | null,\n message?: string | null,\n nextToken?: string | null,\n};\n\nexport type UpdateMonthlyBudgetInput = {\n business_id: string,\n amount: number,\n};\n\nexport type UpdateMonthlyBudgetResponse = {\n __typename: \"UpdateMonthlyBudgetResponse\",\n error?: ErrorResponse | null,\n message?: string | null,\n nextToken?: string | null,\n};\n\nexport type UpdateKeyMetricsRoasGoalsInput = {\n business_id: string,\n roas_goal?: RoasGoalInput | null,\n};\n\nexport type RoasGoalInput = {\n facebook?: number | null,\n tiktok?: number | null,\n google?: number | null,\n};\n\nexport type UpdateKeyMetricsRoasGoalsResponse = {\n __typename: \"UpdateKeyMetricsRoasGoalsResponse\",\n data?: Array | null,\n error?: ErrorResponse | null,\n message?: string | null,\n nextToken?: string | null,\n};\n\nexport type UpdateAudienceSegmentQueryInput = {\n id: string,\n business_id: string,\n fields?: UpdateAudienceFields | null,\n};\n\nexport type UpdateAudienceFields = {\n group_name?: string | null,\n dynamic_query_params?: string | null,\n audience?: string | null,\n query_type?: SegmentTypes | null,\n status?: string | null,\n};\n\nexport enum SegmentTypes {\n static = \"static\",\n dynamic = \"dynamic\",\n}\n\n\nexport type UpdateAudienceSegmentResponse = {\n __typename: \"UpdateAudienceSegmentResponse\",\n data?: AudienceSuccessResponse | null,\n error?: ErrorResponse | null,\n message?: string | null,\n nextToken?: string | null,\n};\n\nexport type AudienceSuccessResponse = {\n __typename: \"AudienceSuccessResponse\",\n success?: boolean | null,\n social_audience?: AudienceSocial | null,\n audience_errors?: Array< string | null > | null,\n};\n\nexport type AudienceSocial = {\n __typename: \"AudienceSocial\",\n facebook?: AudienceData | null,\n google?: AudienceData | null,\n};\n\nexport type AudienceData = {\n __typename: \"AudienceData\",\n error?: AudienceErrorMessage | null,\n user_list_id?: string | null,\n audience_id?: string | null,\n};\n\nexport type AudienceErrorMessage = {\n __typename: \"AudienceErrorMessage\",\n message?: string | null,\n};\n\nexport type DeleteAudienceSegmentInput = {\n id: string,\n business_id: string,\n};\n\nexport type DeleteAudienceSegmentResponse = {\n __typename: \"DeleteAudienceSegmentResponse\",\n data?: AudienceSuccessResponse | null,\n error?: ErrorResponse | null,\n message?: string | null,\n nextToken?: string | null,\n};\n\nexport type CreateSuggestedSegmentsInput = {\n business_id: string,\n query_type: SuggestedSegmentTypes,\n};\n\nexport enum SuggestedSegmentTypes {\n repeat_shoppers = \"repeat_shoppers\",\n best_customers = \"best_customers\",\n best_source = \"best_source\",\n dormant = \"dormant\",\n purchase_last_30_days_ago = \"purchase_last_30_days_ago\",\n purchase_last_90_days_ago = \"purchase_last_90_days_ago\",\n abandoned_cart_last_30_days = \"abandoned_cart_last_30_days\",\n abandoned_cart_last_90_days = \"abandoned_cart_last_90_days\",\n}\n\n\nexport type CreateSuggestedSegmentsResponse = {\n __typename: \"CreateSuggestedSegmentsResponse\",\n data?: Segments | null,\n error?: ErrorResponse | null,\n message?: string | null,\n nextToken?: string | null,\n};\n\nexport type Segments = {\n __typename: \"Segments\",\n id: string,\n business_id: string,\n no_of_customers?: number | null,\n added_revenue?: number | null,\n audience?: string | null,\n type: string,\n status: string,\n query_details?: string | null,\n created_at?: string | null,\n updated_at?: string | null,\n group_name: string,\n deleted_at?: string | null,\n dynamic_query_params: string,\n};\n\nexport type CreateUserIntercomEmailTwoInput = {\n business_id?: string | null,\n email_two?: string | null,\n};\n\nexport type CreateUserIntercomEmailTwoResponse = {\n __typename: \"CreateUserIntercomEmailTwoResponse\",\n message?: string | null,\n error?: ErrorResponse | null,\n nextToken?: string | null,\n};\n\nexport type CreateUserStoreSessionsInput = {\n id: string,\n shop: string,\n state?: string | null,\n isOnline?: boolean | null,\n scope?: string | null,\n expires?: string | null,\n accessToken?: string | null,\n};\n\nexport type CreateUserStoreSessionsResponse = {\n __typename: \"CreateUserStoreSessionsResponse\",\n data?: CreateUserStoreSessionsResponseData | null,\n error?: ErrorResponse | null,\n message?: string | null,\n nextToken?: string | null,\n};\n\nexport type CreateUserStoreSessionsResponseData = {\n __typename: \"CreateUserStoreSessionsResponseData\",\n shop?: string | null,\n state?: string | null,\n isOnline?: boolean | null,\n scope?: string | null,\n expires?: string | null,\n accessToken?: string | null,\n};\n\nexport type SetStoreBuildConfigInput = {\n business_id?: string | null,\n shop: string,\n email_address?: string | null,\n buildConfig: string,\n};\n\nexport type SetStoreBuildConfigResponse = {\n __typename: \"SetStoreBuildConfigResponse\",\n error?: ErrorResponse | null,\n message?: string | null,\n nextToken?: string | null,\n};\n\nexport type CreateStoreInput = {\n platform_id?: string | null,\n shop_name?: string | null,\n admin_email?: string | null,\n address1?: string | null,\n address2?: string | null,\n city?: string | null,\n state?: string | null,\n zip?: string | null,\n country?: string | null,\n store_url?: string | null,\n access_token?: string | null,\n timezone?: string | null,\n info?: string | null,\n};\n\nexport type CreateStoreResponse = {\n __typename: \"CreateStoreResponse\",\n error?: ErrorResponse | null,\n message?: string | null,\n nextToken?: string | null,\n};\n\nexport type DeleteStoreByShopNameInput = {\n shop: string,\n};\n\nexport type DeleteStoreByShopNameResponse = {\n __typename: \"DeleteStoreByShopNameResponse\",\n error?: ErrorResponse | null,\n message?: string | null,\n nextToken?: string | null,\n};\n\nexport type ExtendTrialInput = {\n business_id: string,\n};\n\nexport type ExtendTrialResponse = {\n __typename: \"ExtendTrialResponse\",\n data?: boolean | null,\n error?: ErrorResponse | null,\n message?: string | null,\n nextToken?: string | null,\n};\n\nexport type AutoScalingSettingResponse = {\n __typename: \"AutoScalingSettingResponse\",\n error?: ErrorResponse | null,\n message?: string | null,\n};\n\nexport type GetBusinessTechStackInput = {\n businessVanityName: string,\n business_id: string,\n};\n\nexport type GetBusinessTechStackResponse = {\n __typename: \"GetBusinessTechStackResponse\",\n data?: TechStackResponseData | null,\n error?: ErrorResponse | null,\n message?: string | null,\n nextToken?: string | null,\n};\n\nexport type TechStackResponseData = {\n __typename: \"TechStackResponseData\",\n business_id?: string | null,\n build_config?: string | null,\n created_at?: string | null,\n updated_at?: string | null,\n deleted_at?: string | null,\n};\n\nexport type GetBusinessBillingInfoInput = {\n business_id: string,\n};\n\nexport type GetBusinessBillingInfoResponse = {\n __typename: \"GetBusinessBillingInfoResponse\",\n data?: BusinessBillingInfo | null,\n error?: ErrorResponse | null,\n message?: string | null,\n nextToken?: string | null,\n};\n\nexport type BusinessBillingInfo = {\n __typename: \"BusinessBillingInfo\",\n business_revenue?: number | null,\n business_orders_count?: number | null,\n plan_code?: string | null,\n plan_name?: string | null,\n plan_price?: string | null,\n next_billing_plan_code?: string | null,\n next_billing_plan_name?: string | null,\n next_billing_plan_price?: string | null,\n next_billing_date?: string | null,\n promo_code?: string | null,\n pricing_model?: string | null,\n};\n\nexport type GetMiniShopDetailsResponse = {\n __typename: \"GetMiniShopDetailsResponse\",\n data?: MiniShopDetails | null,\n error?: ErrorResponse | null,\n message?: string | null,\n nextToken?: string | null,\n};\n\nexport type GetDefaultTrackableCopyResponse = {\n __typename: \"GetDefaultTrackableCopyResponse\",\n data?: DefaultTrackableCopyResponseData | null,\n error?: ErrorResponse | null,\n message?: string | null,\n nextToken?: string | null,\n};\n\nexport type DefaultTrackableCopyResponseData = {\n __typename: \"DefaultTrackableCopyResponseData\",\n default_trackable_copy?: TrackableCopy | null,\n has_manually_created_trackable_copy?: boolean | null,\n};\n\nexport type GetAllAdminTasksInput = {\n query?: string | null,\n numberOfPage?: number | null,\n businessId?: string | null,\n type?: string | null,\n};\n\nexport type GetAllAdminTasksResponse = {\n __typename: \"GetAllAdminTasksResponse\",\n data?: Array | null,\n error?: ErrorResponse | null,\n message?: string | null,\n nextToken?: string | null,\n numberPages?: number | null,\n};\n\nexport type AdminTask = {\n __typename: \"AdminTask\",\n id: string,\n title: string,\n description: string,\n priority: number,\n objectives?: Array< string | null > | null,\n created_at: string,\n updated_at: string,\n deleted_at?: string | null,\n views: number,\n completed: number,\n is_task_master: boolean,\n deeplink_target_url?: string | null,\n target_button_title?: string | null,\n task_image_url?: string | null,\n task_group_by_week?: Array | null,\n};\n\nexport type TaskGroupByWeek = {\n __typename: \"TaskGroupByWeek\",\n week_start: string,\n task_count: number,\n user_count: number,\n};\n\nexport type GetUserTasksInput = {\n businessId: string,\n numberOfPage?: number | null,\n limit?: number | null,\n objective?: string | null,\n};\n\nexport type GetUserTasksResponse = {\n __typename: \"GetUserTasksResponse\",\n data?: Array | null,\n error?: ErrorResponse | null,\n message?: string | null,\n numberPages?: number | null,\n};\n\nexport type UserTask = {\n __typename: \"UserTask\",\n id: string,\n task_x_business_id: string,\n title: string,\n description: string,\n priority: number,\n objectives?: Array< string | null > | null,\n created_at: string,\n updated_at: string,\n deleted_at?: string | null,\n deeplink_target_url?: string | null,\n target_button_title?: string | null,\n task_image_url?: string | null,\n parameters?: string | null,\n type?: string | null,\n};\n\nexport type GetHomepageMetricsInput = {\n business_id: string,\n dateStart: string,\n dateEnd: string,\n platform?: string | null,\n};\n\nexport type GetHomepageMetricsResponse = {\n __typename: \"GetHomepageMetricsResponse\",\n data?: HomepageMetrics | null,\n error?: ErrorResponse | null,\n message?: string | null,\n};\n\nexport type HomepageMetrics = {\n __typename: \"HomepageMetrics\",\n total_orders?: number | null,\n average_order_value?: number | null,\n total_refunds?: number | null,\n sirge_total_conversion_value?: number | null,\n total_sales?: number | null,\n blended_roas?: number | null,\n total_amount_spent?: number | null,\n total_amount_spent_to_date?: number | null,\n total_conversion_value?: number | null,\n monthly_budget?: number | null,\n ads_generating_revenue_percentage?: number | null,\n total_facebook_orders?: number | null,\n total_google_orders?: number | null,\n total_tiktok_orders?: number | null,\n break_even_roas?: number | null,\n total_sales_percentage?: number | null,\n has_utm_not_connected_ad?: boolean | null,\n};\n\nexport type GetSalesBreakdownInput = {\n business_id: string,\n dateStart: string,\n dateEnd: string,\n};\n\nexport type GetSalesBreakdownResponse = {\n __typename: \"GetSalesBreakdownResponse\",\n data?: SalesBreakdown | null,\n error?: ErrorResponse | null,\n message?: string | null,\n};\n\nexport type SalesBreakdown = {\n __typename: \"SalesBreakdown\",\n total_sales?: SalesBreakdownDetail | null,\n total_revenue?: SalesBreakdownDetail | null,\n ads?: SalesBreakdownDetail | null,\n email?: SalesBreakdownDetail | null,\n social_media?: SalesBreakdownDetail | null,\n others?: SalesBreakdownDetail | null,\n};\n\nexport type SalesBreakdownDetail = {\n __typename: \"SalesBreakdownDetail\",\n value?: number | null,\n order_count?: number | null,\n percentage?: number | null,\n};\n\nexport type GenerateUploadUrlInput = {\n business_id: string,\n content_type: string,\n extension_type: string,\n};\n\nexport type GenerateUploadUrlResponse = {\n __typename: \"GenerateUploadUrlResponse\",\n data?: UploadUrlResponse | null,\n error?: ErrorResponse | null,\n message?: string | null,\n nextToken?: string | null,\n};\n\nexport type UploadUrlResponse = {\n __typename: \"UploadUrlResponse\",\n upload_url?: string | null,\n url?: string | null,\n};\n\nexport type GetMemberCountByAdGroupIDsInputNew = {\n selected_campaign_ids?: Array< string | null > | null,\n selected_ad_set_ids?: Array< string | null > | null,\n business_id?: string | null,\n};\n\nexport type GetMemberCountByAdGroupIDsResponse = {\n __typename: \"GetMemberCountByAdGroupIDsResponse\",\n data?: MemberCount | null,\n error?: ErrorResponse | null,\n message?: string | null,\n};\n\nexport type MemberCount = {\n __typename: \"MemberCount\",\n adSetCount?: number | null,\n adsCount?: number | null,\n};\n\nexport type GetAllStaffAccountsInput = {\n business_id?: string | null,\n};\n\nexport type GetAllStaffAccountsResponsePrisma = {\n __typename: \"GetAllStaffAccountsResponsePrisma\",\n data?: Array | null,\n error?: ErrorResponse | null,\n message?: string | null,\n nextToken?: string | null,\n};\n\nexport type StaffPrisma = {\n __typename: \"StaffPrisma\",\n id: string,\n first_name: string,\n last_name: string,\n email: string,\n address1?: string | null,\n password?: string | null,\n timezone?: string | null,\n currency?: string | null,\n created_at: string,\n updated_at: string,\n deleted_at?: string | null,\n businesses?: Array | null,\n profile_photo?: string | null,\n is_admin_user?: boolean | null,\n};\n\nexport type StaffBusinessPrisma = {\n __typename: \"StaffBusinessPrisma\",\n user_id: string,\n business_id: string,\n user_type: string,\n is_default_business: boolean,\n created_at: string,\n updated_at: string,\n deleted_at?: string | null,\n};\n\nexport type GetAdGroupBudgetDetailsInput = {\n business_id?: string | null,\n itemType?: string | null,\n id?: string | null,\n dateStart?: string | null,\n dateEnd?: string | null,\n};\n\nexport type GetAdGroupBudgetDetailsResponse = {\n __typename: \"GetAdGroupBudgetDetailsResponse\",\n data?: AdGroupBudgetDetailsObject | null,\n error?: ErrorResponse | null,\n message?: string | null,\n};\n\nexport type AdGroupBudgetDetailsObject = {\n __typename: \"AdGroupBudgetDetailsObject\",\n adGroup?: AdGroupBudgetDetails | null,\n relatedItems?: Array | null,\n};\n\nexport type AdGroupBudgetDetails = {\n __typename: \"AdGroupBudgetDetails\",\n daily_budget?: number | null,\n lifetime_budget?: number | null,\n name?: string | null,\n source_delivery_status?: string | null,\n source_secondary_status?: string | null,\n shared_budget_name?: string | null,\n};\n\nexport type Performance = {\n __typename: \"Performance\",\n id?: string | null,\n source?: string | null,\n business_id?: string | null,\n purchases_count?: number | null,\n clicks_count?: number | null,\n daily_budget?: number | null,\n lifetime_budget?: number | null,\n budget?: number | null,\n shared_budget_name?: string | null,\n campaign_name?: string | null,\n campaign_budget?: AdGroupBudgetDetails | null,\n ad_set_budget?: AdGroupBudgetDetails | null,\n ad_images?: Array< string | null > | null,\n itemType?: string | null,\n ad_image?: string | null,\n ad_set?: string | null,\n ad_set_name?: string | null,\n ad?: string | null,\n ad_name?: string | null,\n sirge_ad_id?: string | null,\n sirge_adset_id?: string | null,\n sirge_campaign_id?: string | null,\n total_title?: string | null,\n source_delivery_status?: string | null,\n source_secondary_status?: string | null,\n clicks?: number | null,\n purchases?: number | null,\n purchases_source?: number | null,\n roas?: string | null,\n cost_per_purchase?: number | null,\n amount_spent?: number | null,\n // Deprecated. Moved to PerformanceDrawerStats\n average_cpm?: number | null,\n conversion_value?: number | null,\n total_conversion_value?: number | null,\n roas_ltv?: number | null,\n sirge_clicks?: number | null,\n sirge_purchases?: number | null,\n sirge_roas?: string | null,\n sirge_cost_per_purchase?: number | null,\n sirge_total_conversion_value?: number | null,\n created?: string | null,\n updated_at?: string | null,\n ad_type?: string | null,\n utm_status?: boolean | null,\n are_all_ads_connected?: boolean | null,\n transform?: boolean | null,\n};\n\nexport type GetBusinessSourcesByIdInput = {\n business_id: string,\n date_from?: string | null,\n date_to?: string | null,\n sort?: SourcesSortObjectType | null,\n numberOfPage?: number | null,\n};\n\nexport type SourcesSortObjectType = {\n sort?: string | null,\n field?: string | null,\n};\n\nexport type GetBusinessSourcesByIdResponse = {\n __typename: \"GetBusinessSourcesByIdResponse\",\n data?: GetBusinessSourcesObject | null,\n error?: ErrorResponse | null,\n message?: string | null,\n numberPages?: number | null,\n};\n\nexport type GetBusinessSourcesObject = {\n __typename: \"GetBusinessSourcesObject\",\n sources?: Array | null,\n totalInfo?: TotalInfo | null,\n};\n\nexport type SourcesBusiness = {\n __typename: \"SourcesBusiness\",\n source?: string | null,\n unique_visitor?: number | null,\n clicks_count?: number | null,\n purchases_count?: number | null,\n url?: string | null,\n created?: string | null,\n referer?: string | null,\n business_id?: string | null,\n};\n\nexport type TotalInfo = {\n __typename: \"TotalInfo\",\n total_clicks?: number | null,\n total_purchases?: number | null,\n totalrecords?: number | null,\n total_visitors?: number | null,\n total_pageviews?: number | null,\n};\n\nexport type GetBusinessSourcesDetailsByIdInput = {\n business_id: string,\n date_from: string,\n date_to: string,\n source_name: string,\n sort?: SourcesSortObjectType | null,\n numberOfPage?: number | null,\n};\n\nexport type GetBusinessSourcesDetailsByIdResponse = {\n __typename: \"GetBusinessSourcesDetailsByIdResponse\",\n data?: Array | null,\n error?: ErrorResponse | null,\n message?: string | null,\n numberPages?: number | null,\n};\n\nexport type GetBusinessGoogleTokenNewInput = {\n business_id: string,\n social_refresh_token: string,\n};\n\nexport type GetBusinessGoogleTokenResponse = {\n __typename: \"GetBusinessGoogleTokenResponse\",\n data?: string | null,\n error?: ErrorResponse | null,\n message?: string | null,\n};\n\nexport type GetCurrentUserSessionsInput = {\n business_id: string,\n limit?: number | null,\n};\n\nexport type GetCurrentUserSessionsResponse = {\n __typename: \"GetCurrentUserSessionsResponse\",\n data?: Array | null,\n error?: ErrorResponse | null,\n message?: string | null,\n nextToken?: string | null,\n};\n\nexport type GetAllPlatformBusinessesInput = {\n query?: string | null,\n numberOfPage?: number | null,\n recentBusiness?: boolean | null,\n};\n\nexport type GetAllPlatformBusinessesResponse = {\n __typename: \"GetAllPlatformBusinessesResponse\",\n data?: GetAllPlatformBusinessesData | null,\n error?: ErrorResponse | null,\n message?: string | null,\n numberPages?: number | null,\n};\n\nexport type GetAllPlatformBusinessesData = {\n __typename: \"GetAllPlatformBusinessesData\",\n businessList?: Array | null,\n};\n\nexport type AllPlatformBusiness = {\n __typename: \"AllPlatformBusiness\",\n id?: string | null,\n name?: string | null,\n logo?: string | null,\n manager_email?: string | null,\n manager_name?: string | null,\n vanity_name?: string | null,\n techStackTracked?: boolean | null,\n onboarding_call_booked?: boolean | null,\n onboarding_call_completed_at?: string | null,\n};\n\nexport type FetchBusinessMetaDataResponse = {\n __typename: \"FetchBusinessMetaDataResponse\",\n data?: BusinessMetaData | null,\n error?: ErrorResponse | null,\n message?: string | null,\n};\n\nexport type BusinessMetaData = {\n __typename: \"BusinessMetaData\",\n metadata?: string | null,\n categories?: string | null,\n};\n\nexport type SocialAdAccountsResponse = {\n __typename: \"SocialAdAccountsResponse\",\n data?: Array | null,\n error?: ErrorResponse | null,\n message?: string | null,\n};\n\nexport type SocialAdAccount = {\n __typename: \"SocialAdAccount\",\n id?: string | null,\n currency?: string | null,\n name?: string | null,\n timezone?: string | null,\n};\n\nexport type GetStoreByShopNameInput = {\n shop: string,\n};\n\nexport type GetStoreByShopNameResponse = {\n __typename: \"GetStoreByShopNameResponse\",\n data?: GetStoreByShopNameResponseData | null,\n error?: ErrorResponse | null,\n message?: string | null,\n nextToken?: string | null,\n};\n\nexport type GetStoreByShopNameResponseData = {\n __typename: \"GetStoreByShopNameResponseData\",\n id?: string | null,\n platform_id?: string | null,\n shop_name?: string | null,\n admin_email?: string | null,\n address1?: string | null,\n address2?: string | null,\n city?: string | null,\n state?: string | null,\n zip?: string | null,\n country?: string | null,\n store_url?: string | null,\n access_token?: string | null,\n script_tag_id?: string | null,\n timezone?: string | null,\n currency?: string | null,\n script_installed?: boolean | null,\n script_uninstalled_date?: string | null,\n info?: string | null,\n created_at?: string | null,\n updated_at?: string | null,\n deleted_at?: string | null,\n business?: Array | null,\n};\n\nexport type StoresBusiness = {\n __typename: \"StoresBusiness\",\n id?: string | null,\n};\n\nexport type GetBusinessByShopInput = {\n shop: string,\n};\n\nexport type GetBusinessByShopResponse = {\n __typename: \"GetBusinessByShopResponse\",\n data?: BusinessByShopData | null,\n error?: ErrorResponse | null,\n message?: string | null,\n nextToken?: string | null,\n};\n\nexport type BusinessByShopData = {\n __typename: \"BusinessByShopData\",\n id?: string | null,\n store_id?: string | null,\n store_url?: string | null,\n shop_name?: string | null,\n};\n\nexport type GetUserByEmailInput = {\n email: string,\n};\n\nexport type GetUserByEmailResponse = {\n __typename: \"GetUserByEmailResponse\",\n data?: GetUserByEmailResponseData | null,\n error?: ErrorResponse | null,\n message?: string | null,\n nextToken?: string | null,\n};\n\nexport type GetUserByEmailResponseData = {\n __typename: \"GetUserByEmailResponseData\",\n id?: string | null,\n first_name?: string | null,\n last_name?: string | null,\n email?: string | null,\n address1?: string | null,\n address2?: string | null,\n city?: string | null,\n state?: string | null,\n zip?: string | null,\n country?: string | null,\n timezone?: string | null,\n currency?: string | null,\n profile_photo?: string | null,\n created_at?: string | null,\n updated_at?: string | null,\n deleted_at?: string | null,\n auto_scaling_setting?: number | null,\n};\n\nexport type GetMiniShopByIdInput = {\n id: string,\n};\n\nexport type GetMiniShopByIdResponse = {\n __typename: \"GetMiniShopByIdResponse\",\n data?: MiniShopPublic | null,\n error?: ErrorResponse | null,\n message?: string | null,\n nextToken?: string | null,\n};\n\nexport type MiniShopPublic = {\n __typename: \"MiniShopPublic\",\n id?: string | null,\n shop_name?: string | null,\n shop_image?: string | null,\n shop_url?: string | null,\n business_id?: string | null,\n top_products?: string | null,\n deleted_at?: string | null,\n updated_at?: string | null,\n created_at?: string | null,\n};\n\nexport type CheckUserExistsByShopUrlInput = {\n myshopify_store_url: string,\n};\n\nexport type CheckUserExistsByShopUrlResponse = {\n __typename: \"CheckUserExistsByShopUrlResponse\",\n data?: boolean | null,\n error?: ErrorResponse | null,\n message?: string | null,\n nextToken?: string | null,\n};\n\nexport type GetUserStoreSessionsInput = {\n session_id?: string | null,\n};\n\nexport type GetUserStoreSessionsResponse = {\n __typename: \"GetUserStoreSessionsResponse\",\n data?: GetUserStoreSessionsResponseData | null,\n error?: ErrorResponse | null,\n message?: string | null,\n nextToken?: string | null,\n};\n\nexport type GetUserStoreSessionsResponseData = {\n __typename: \"GetUserStoreSessionsResponseData\",\n shop?: string | null,\n state?: string | null,\n isOnline?: boolean | null,\n scope?: string | null,\n expires?: string | null,\n accessToken?: string | null,\n};\n\nexport type GetStoreDataForCallbackAuthInput = {\n myshopify_store_url: string,\n};\n\nexport type GetStoreDataForCallbackAuthResponse = {\n __typename: \"GetStoreDataForCallbackAuthResponse\",\n data?: StoreDataForCallbackAuth | null,\n error?: ErrorResponse | null,\n message?: string | null,\n nextToken?: string | null,\n};\n\nexport type StoreDataForCallbackAuth = {\n __typename: \"StoreDataForCallbackAuth\",\n first_name?: string | null,\n last_name?: string | null,\n email?: string | null,\n is_installed?: boolean | null,\n business_id?: string | null,\n user_exists?: boolean | null,\n};\n\nexport type GetStaffByIdInput = {\n staff_id: string,\n business_id: string,\n};\n\nexport type GetUserResponsePrisma = {\n __typename: \"GetUserResponsePrisma\",\n data?: UserPrisma | null,\n error?: ErrorResponse | null,\n message?: string | null,\n nextToken?: string | null,\n};\n\nexport type GetUserInput = {\n post_hog_user_id?: string | null,\n};\n\nexport type GetPerformanceDetailsInput = {\n business_id: string,\n itemType?: string | null,\n source?: string | null,\n selected_campaigns?: Array< string | null > | null,\n selected_ad_sets?: Array< string | null > | null,\n selected_ads?: Array< string | null > | null,\n sort?: PerformanceSortObjectType | null,\n filterCondition?: FilterConditionType | null,\n numberOfPage?: number | null,\n limitPerPage?: number | null,\n dateStart?: string | null,\n dateEnd?: string | null,\n};\n\nexport type PerformanceSortObjectType = {\n sort?: boolean | null,\n field?: string | null,\n};\n\nexport type FilterConditionType = {\n Condition?: Array< filterConditionArg | null > | null,\n filterStatus?: boolean | null,\n activeChecked?: boolean | null,\n roas?: string | null,\n};\n\nexport type filterConditionArg = {\n column?: string | null,\n operator?: string | null,\n columnValue?: string | null,\n logicalOperator?: string | null,\n};\n\nexport type GetPerformanceDetailsResponseNew = {\n __typename: \"GetPerformanceDetailsResponseNew\",\n data?: GetBusinessPerformanceDetailsNew | null,\n error?: ErrorResponse | null,\n message?: string | null,\n nextToken?: string | null,\n numberPages?: number | null,\n};\n\nexport type GetBusinessPerformanceDetailsNew = {\n __typename: \"GetBusinessPerformanceDetailsNew\",\n performance?: Array | null,\n summary?: PerformanceSummary | null,\n isRoasGoalsSet?: boolean | null,\n};\n\nexport type PerformanceNew = {\n __typename: \"PerformanceNew\",\n id: string,\n source?: string | null,\n business_id: string,\n purchases_count?: number | null,\n clicks_count?: number | null,\n daily_budget?: number | null,\n lifetime_budget?: number | null,\n budget?: number | null,\n shared_budget_name?: string | null,\n campaign_name?: string | null,\n campaign_budget?: number | null,\n ad_set_budget?: number | null,\n ad_images?: Array< string | null > | null,\n itemType?: string | null,\n ad_image?: string | null,\n ad_set?: string | null,\n ad_set_name?: string | null,\n ad?: string | null,\n ad_name?: string | null,\n sirge_ad_id?: string | null,\n sirge_adset_id?: string | null,\n sirge_campaign_id?: string | null,\n total_title?: string | null,\n source_delivery_status?: string | null,\n source_secondary_status?: string | null,\n clicks?: number | null,\n purchases?: number | null,\n purchases_source?: number | null,\n roas?: string | null,\n cost_per_purchase?: number | null,\n amount_spent?: number | null,\n // Deprecated. Moved to PerformanceDrawerStats\n average_cpm?: number | null,\n conversion_value?: number | null,\n total_conversion_value?: number | null,\n prev_total_conversion_value?: number | null,\n roas_ltv?: number | null,\n sirge_clicks?: number | null,\n sirge_purchases?: number | null,\n sirge_roas?: string | null,\n sirge_cost_per_purchase?: number | null,\n sirge_total_conversion_value?: number | null,\n prev_sirge_total_conversion_value?: number | null,\n created?: string | null,\n updated_at?: string | null,\n ad_type?: string | null,\n utm_status?: boolean | null,\n are_all_ads_connected?: boolean | null,\n transform?: boolean | null,\n};\n\nexport type PerformanceSummary = {\n __typename: \"PerformanceSummary\",\n amount_spent?: number | null,\n clicks?: number | null,\n purchases?: number | null,\n purchases_source?: number | null,\n cost_per_purchase?: number | null,\n total_conversion_value?: number | null,\n prev_total_conversion_value?: number | null,\n roas?: string | null,\n ft_clicks?: number | null,\n ft_purchases?: number | null,\n ft_cost_per_purchase?: number | null,\n ft_total_conversion_value?: number | null,\n prev_ft_total_conversion_value: number,\n ft_roas_ltv?: number | null,\n ft_roas?: string | null,\n ft_average_cpm?: number | null,\n number_of_records?: number | null,\n};\n\nexport type GetBusinessConnectionsInput = {\n business_id?: string | null,\n};\n\nexport type GetBusinessConnectionsResponse = {\n __typename: \"GetBusinessConnectionsResponse\",\n data?: BusinessConnection | null,\n error?: ErrorResponse | null,\n message?: string | null,\n nextToken?: string | null,\n};\n\nexport type BusinessConnection = {\n __typename: \"BusinessConnection\",\n facebook_ad_account_id?: string | null,\n facebook_ad_account_name?: string | null,\n script_installed?: boolean | null,\n shopify_store?: string | null,\n tik_tok_ad_account_id?: string | null,\n tik_tok_ad_account_name?: string | null,\n};\n\nexport type GetPurchaseByBusinessInput = {\n business_id: string,\n date_from: string,\n date_to: string,\n typePurchases: string,\n source?: string | null,\n selected_ids: Array< string | null >,\n page_no?: number | null,\n per_page?: number | null,\n};\n\nexport type GetPurchasesByBusinessResponseNew = {\n __typename: \"GetPurchasesByBusinessResponseNew\",\n data?: Array | null,\n error?: ErrorResponse | null,\n message?: string | null,\n nextToken?: string | null,\n numberPages?: number | null,\n};\n\nexport type PurchaseByBusiness = {\n __typename: \"PurchaseByBusiness\",\n customer_name?: string | null,\n customer_id?: string | null,\n created?: string | null,\n purchases_count?: number | null,\n conversion_value?: number | null,\n};\n\nexport type GetUserDetailsInput = {\n vanity_name?: string | null,\n business_id?: string | null,\n};\n\nexport type GetUserDetailsResponse = {\n __typename: \"GetUserDetailsResponse\",\n data?: UserDetails | null,\n error?: ErrorResponse | null,\n message?: string | null,\n nextToken?: string | null,\n};\n\nexport type UserDetails = {\n __typename: \"UserDetails\",\n business?: BusinessPrisma | null,\n businesses?: BusinessesPrisma | null,\n status?: BusinessActiveStatus | null,\n user?: UserPrisma | null,\n};\n\nexport type BusinessesPrisma = {\n __typename: \"BusinessesPrisma\",\n business_active_count?: number | null,\n business_count?: number | null,\n business_list?: Array | null,\n};\n\nexport type BusinessActiveStatus = {\n __typename: \"BusinessActiveStatus\",\n active?: boolean | null,\n};\n\nexport type GetUserFacebookAccountInput = {\n facebook_accessToken: string,\n business_id: string,\n};\n\nexport type GetUserFacebookAccountResponse = {\n __typename: \"GetUserFacebookAccountResponse\",\n data?: FacebookAccount | null,\n error?: ErrorResponse | null,\n message?: string | null,\n nextToken?: string | null,\n};\n\nexport type FacebookAccount = {\n __typename: \"FacebookAccount\",\n id?: string | null,\n name?: string | null,\n};\n\nexport type GetDiscountCodeStatusInput = {\n discount_code: string,\n};\n\nexport type GetDiscountCodeStatusNewResponse = {\n __typename: \"GetDiscountCodeStatusNewResponse\",\n data?: PromoCode | null,\n error?: ErrorResponse | null,\n message?: string | null,\n nextToken?: string | null,\n};\n\nexport type GetKeyMetricsAnalyticsStatisticsInput = {\n business_id?: string | null,\n dateStart?: string | null,\n dateEnd?: string | null,\n};\n\nexport type GetKeyMetricsStatisticsGraphResponse = {\n __typename: \"GetKeyMetricsStatisticsGraphResponse\",\n data?: StatisticsGraphData | null,\n error?: ErrorResponse | null,\n message?: string | null,\n nextToken?: string | null,\n};\n\nexport type StatisticsGraphData = {\n __typename: \"StatisticsGraphData\",\n orders?: Array | null,\n amount_spent?: Array | null,\n store_visits?: Array | null,\n total_sales?: Array | null,\n ad_clicks?: Array | null,\n};\n\nexport type StatisticGraphDetail = {\n __typename: \"StatisticGraphDetail\",\n date?: string | null,\n value?: number | null,\n};\n\nexport type GetShopifyScopesStatusResponse = {\n __typename: \"GetShopifyScopesStatusResponse\",\n data?: boolean | null,\n error?: ErrorResponse | null,\n message?: string | null,\n nextToken?: string | null,\n};\n\nexport type GetAccountsCampaignsInput = {\n business_id: string,\n itemType: string,\n getfromRRSSApis?: boolean | null,\n};\n\nexport type GetAccountsCampaignsResponse = {\n __typename: \"GetAccountsCampaignsResponse\",\n data?: GetBusinessAccountsCampaigns | null,\n error?: ErrorResponse | null,\n message?: string | null,\n nextToken?: string | null,\n};\n\nexport type GetBusinessAccountsCampaigns = {\n __typename: \"GetBusinessAccountsCampaigns\",\n facebook?: Array | null,\n tiktok?: Array | null,\n google?: Array | null,\n};\n\nexport type ItemSocialMediaIntegration = {\n __typename: \"ItemSocialMediaIntegration\",\n id?: string | null,\n name?: string | null,\n status?: string | null,\n utm_status?: boolean | null,\n utm_injection_supported?: boolean | null,\n};\n\nexport type GetPerformanceDrawerBasicDetailsInput = {\n id: string,\n ad_type: string,\n business_id: string,\n};\n\nexport type PerformanceDrawerBasicDetailsResponse = {\n __typename: \"PerformanceDrawerBasicDetailsResponse\",\n data?: PerformanceDrawerBasicDetails | null,\n error?: ErrorResponse | null,\n message?: string | null,\n nextToken?: string | null,\n numberPages?: number | null,\n};\n\nexport type PerformanceDrawerBasicDetails = {\n __typename: \"PerformanceDrawerBasicDetails\",\n id: string,\n name?: string | null,\n campaign_name?: string | null,\n source?: string | null,\n source_delivery_status?: string | null,\n source_secondary_status?: string | null,\n no_of_ads?: number | null,\n no_of_adsets?: number | null,\n utm_status?: boolean | null,\n are_all_ads_connected?: boolean | null,\n daily_budget?: number | null,\n shared_budget_name?: string | null,\n lifetime_budget?: number | null,\n campaign_budget?: number | null,\n ad_set_budget?: number | null,\n ad_images?: Array< string | null > | null,\n ad_type?: string | null,\n created?: string | null,\n};\n\nexport type GetPerformanceDrawerStatsInput = {\n id: string,\n ad_type: string,\n dateStart: string,\n dateEnd: string,\n dateStartGraph?: string | null,\n dateEndGraph?: string | null,\n business_id: string,\n};\n\nexport type PerformanceDrawerStatsResponse = {\n __typename: \"PerformanceDrawerStatsResponse\",\n data?: PerformanceDrawerStats | null,\n error?: ErrorResponse | null,\n message?: string | null,\n nextToken?: string | null,\n numberPages?: number | null,\n};\n\nexport type PerformanceDrawerStats = {\n __typename: \"PerformanceDrawerStats\",\n total_amount_spent?: number | null,\n total_roas?: number | null,\n total_conversion?: number | null,\n total_purchases?: number | null,\n average_cpm?: number | null,\n total_clicks?: number | null,\n cost_per_click?: number | null,\n total_impressions?: number | null,\n prev_total_amount_spent?: number | null,\n prev_total_roas?: number | null,\n prev_total_cost_per_click?: number | null,\n prev_total_conversion?: number | null,\n graph?: Array | null,\n};\n\nexport type PerformanceDrawerStatsGraph = {\n __typename: \"PerformanceDrawerStatsGraph\",\n total_amount_spent?: number | null,\n total_conversion_value?: number | null,\n created?: string | null,\n};\n\nexport type GenerateTrackableCopyPathResponse = {\n __typename: \"GenerateTrackableCopyPathResponse\",\n data?: GeneratedPath | null,\n error?: ErrorResponse | null,\n message?: string | null,\n nextToken?: string | null,\n};\n\nexport type GeneratedPath = {\n __typename: \"GeneratedPath\",\n path?: string | null,\n};\n\nexport type GetTrackableCopiesInput = {\n business_id?: string | null,\n page?: number | null,\n date_from?: string | null,\n date_to?: string | null,\n sortField?: string | null,\n sortOrder?: string | null,\n};\n\nexport type GetTrackableCopiesResponse = {\n __typename: \"GetTrackableCopiesResponse\",\n data?: GetTrackableCopyWithSummary | null,\n error?: ErrorResponse | null,\n message?: string | null,\n nextToken?: string | null,\n numberPages?: number | null,\n};\n\nexport type GetTrackableCopyWithSummary = {\n __typename: \"GetTrackableCopyWithSummary\",\n rows?: Array | null,\n summary?: TrackableCopySummary | null,\n};\n\nexport type TrackableCopySummary = {\n __typename: \"TrackableCopySummary\",\n clicks?: number | null,\n purchases?: number | null,\n revenue?: number | null,\n total_row?: number | null,\n};\n\nexport type GetTrackableCopyTypesResponse = {\n __typename: \"GetTrackableCopyTypesResponse\",\n data?: Array< string | null > | null,\n error?: ErrorResponse | null,\n message?: string | null,\n nextToken?: string | null,\n numberPages?: number | null,\n};\n\nexport type GetTrackableCopyOrdersInput = {\n business_id?: string | null,\n source?: string | null,\n page?: number | null,\n date_from?: string | null,\n date_to?: string | null,\n};\n\nexport type GetTrackableCopyOrdersResponse = {\n __typename: \"GetTrackableCopyOrdersResponse\",\n data?: Array | null,\n error?: ErrorResponse | null,\n message?: string | null,\n nextToken?: string | null,\n numberPages?: number | null,\n};\n\nexport type TrackableCopyOrder = {\n __typename: \"TrackableCopyOrder\",\n business_id?: string | null,\n conversion_value?: number | null,\n created?: string | null,\n order_id?: string | null,\n source?: string | null,\n customer_id?: string | null,\n customer_name?: string | null,\n};\n\nexport type GetKeyMetricsMonthlyBudgetInput = {\n business_id: string,\n};\n\nexport type GetKeyMetricsMonthlyBudgetResponse = {\n __typename: \"GetKeyMetricsMonthlyBudgetResponse\",\n data?: Array | null,\n error?: ErrorResponse | null,\n message?: string | null,\n nextToken?: string | null,\n};\n\nexport type MonthlyBudgetResponse = {\n __typename: \"MonthlyBudgetResponse\",\n amount_spent?: number | null,\n source?: string | null,\n};\n\nexport type GetKeyMetricsRoasTrackerInput = {\n business_id: string,\n dateStart: string,\n dateEnd: string,\n};\n\nexport type GetKeyMetricsRoasTrackerResponse = {\n __typename: \"GetKeyMetricsRoasTrackerResponse\",\n data?: RoasTrackerResponse | null,\n error?: ErrorResponse | null,\n message?: string | null,\n nextToken?: string | null,\n};\n\nexport type RoasTrackerResponse = {\n __typename: \"RoasTrackerResponse\",\n facebook?: RoasTrackerResponseDetails | null,\n tiktok?: RoasTrackerResponseDetails | null,\n google?: RoasTrackerResponseDetails | null,\n};\n\nexport type RoasTrackerResponseDetails = {\n __typename: \"RoasTrackerResponseDetails\",\n over?: number | null,\n under?: number | null,\n total?: number | null,\n};\n\nexport type GetBusinessAnalyticsInput = {\n business_id: string,\n dateStart?: string | null,\n dateEnd?: string | null,\n isAdComparison?: boolean | null,\n fetchOnlyActive?: boolean | null,\n limit?: number | null,\n numberPages?: number | null,\n level?: string | null,\n source?: string | null,\n searchText?: string | null,\n sort?: Array< AnalyticsSortObjectType | null > | null,\n};\n\nexport type AnalyticsSortObjectType = {\n direction?: string | null,\n field?: string | null,\n};\n\nexport type GetAdcomparisonDataResponse = {\n __typename: \"GetAdcomparisonDataResponse\",\n data?: Array | null,\n error?: ErrorResponse | null,\n message?: string | null,\n nextToken?: string | null,\n numberPages?: number | null,\n};\n\nexport type AnalyticsPerformanceData = {\n __typename: \"AnalyticsPerformanceData\",\n id?: string | null,\n ad_id?: string | null,\n ad_name?: string | null,\n ad_primary_status?: string | null,\n ad_secondary_status?: string | null,\n total_amount_spent?: number | null,\n roas?: number | null,\n total_orders?: number | null,\n total_conversion_value?: number | null,\n ad_images?: string | null,\n source?: string | null,\n};\n\nexport type GetAllCustomersInput = {\n business_id: string,\n date_from: string,\n date_to: string,\n sort?: SourcesSortObjectType | null,\n filters?: Array< FilterObjectType | null > | null,\n numberOfPage?: number | null,\n};\n\nexport type FilterObjectType = {\n field: string,\n operator: string,\n value?: string | null,\n logicalOperator?: string | null,\n};\n\nexport type GetAllCustomersResponse = {\n __typename: \"GetAllCustomersResponse\",\n data?: GetAllCustomersObject | null,\n error?: ErrorResponse | null,\n message?: string | null,\n numberPages?: number | null,\n};\n\nexport type GetAllCustomersObject = {\n __typename: \"GetAllCustomersObject\",\n customers?: Array | null,\n totalInfo?: TotalInfoCustomers | null,\n};\n\nexport type AllBusinessCustomers = {\n __typename: \"AllBusinessCustomers\",\n last_visit?: string | null,\n first_visit?: string | null,\n total_purchases?: string | null,\n total_pageviews?: string | null,\n customer_id?: string | null,\n customer_name?: string | null,\n};\n\nexport type TotalInfoCustomers = {\n __typename: \"TotalInfoCustomers\",\n total_purchases?: number | null,\n totalrecords?: number | null,\n total_visitors?: number | null,\n total_pageviews?: number | null,\n total_clicks?: number | null,\n total_customers?: number | null,\n};\n\nexport type GetCustomerJourneyVisitorGraphInput = {\n business_id: string,\n category?: string | null,\n date_from?: string | null,\n date_to?: string | null,\n};\n\nexport type GetCustomerJourneyVisitorGraphResponse = {\n __typename: \"GetCustomerJourneyVisitorGraphResponse\",\n data?: Array | null,\n error?: ErrorResponse | null,\n message?: string | null,\n nextToken?: string | null,\n};\n\nexport type CustomerJourneyVisitorGraph = {\n __typename: \"CustomerJourneyVisitorGraph\",\n date?: string | null,\n new_visitors?: string | null,\n returning_visitors?: string | null,\n};\n\nexport type GetSegmentBuilderBasicDetailsInput = {\n business_id: string,\n};\n\nexport type GetSegmentBuilderBasicDetailsResponse = {\n __typename: \"GetSegmentBuilderBasicDetailsResponse\",\n data?: GetSegmentBuilderBasicDetails | null,\n error?: ErrorResponse | null,\n message?: string | null,\n nextToken?: string | null,\n};\n\nexport type GetSegmentBuilderBasicDetails = {\n __typename: \"GetSegmentBuilderBasicDetails\",\n cities: Array< string >,\n states: Array< string >,\n countries: Array< string >,\n dynamicQueryRules?: string | null,\n predefinedQueries?: string | null,\n};\n\nexport type GetAudienceSegmentInput = {\n id: string,\n business_id: string,\n};\n\nexport type GetAudienceSegmentResponse = {\n __typename: \"GetAudienceSegmentResponse\",\n data?: Segments | null,\n error?: ErrorResponse | null,\n message?: string | null,\n nextToken?: string | null,\n};\n\nexport type GetCustomerJourneySourcesInput = {\n business_id: string,\n date_from?: string | null,\n date_to?: string | null,\n};\n\nexport type GetCustomerJourneySourcesResponse = {\n __typename: \"GetCustomerJourneySourcesResponse\",\n data?: GetCustomerJourneySourcesObject | null,\n error?: ErrorResponse | null,\n message?: string | null,\n numberPages?: number | null,\n};\n\nexport type GetCustomerJourneySourcesObject = {\n __typename: \"GetCustomerJourneySourcesObject\",\n sources?: Array | null,\n totalInfo?: TotalInfoCustomers | null,\n};\n\nexport type CustomerJourneySource = {\n __typename: \"CustomerJourneySource\",\n source?: string | null,\n unique_visitor?: number | null,\n unique_sessions?: number | null,\n purchases_count?: number | null,\n};\n\nexport type GetCustomerDetailsSourcesInput = {\n business_id: string,\n customer_id: string,\n page: number,\n};\n\nexport type GetCustomerDetailsSourcesResponse = {\n __typename: \"GetCustomerDetailsSourcesResponse\",\n data?: Array | null,\n total_records?: number | null,\n numberPages?: number | null,\n error?: ErrorResponse | null,\n message?: string | null,\n nextToken?: string | null,\n};\n\nexport type CustomerDetailsSource = {\n __typename: \"CustomerDetailsSource\",\n channel_name?: string | null,\n referer?: string | null,\n created_at?: string | null,\n};\n\nexport type GetCustomerDetailsInput = {\n business_id: string,\n customer_id: string,\n};\n\nexport type GetCustomerDetailsResponse = {\n __typename: \"GetCustomerDetailsResponse\",\n data?: CustomerDetails | null,\n error?: ErrorResponse | null,\n message?: string | null,\n nextToken?: string | null,\n};\n\nexport type CustomerDetails = {\n __typename: \"CustomerDetails\",\n customer_email?: string | null,\n country?: string | null,\n state?: string | null,\n city?: string | null,\n total_pageviews?: number | null,\n first_visit?: string | null,\n total_purchases?: number | null,\n total_purchase_conversion_value?: number | null,\n customer_name?: string | null,\n};\n\nexport type getCustomerDetailsPageViewsInput = {\n business_id: string,\n customer_id: string,\n page: number,\n};\n\nexport type GetCustomerDetailsPageviewsResponse = {\n __typename: \"GetCustomerDetailsPageviewsResponse\",\n data?: Array | null,\n total_records?: number | null,\n numberPages?: number | null,\n error?: ErrorResponse | null,\n message?: string | null,\n nextToken?: string | null,\n};\n\nexport type CustomerDetailsPageView = {\n __typename: \"CustomerDetailsPageView\",\n ad?: string | null,\n ad_set?: string | null,\n campaign?: string | null,\n conversion_value?: number | null,\n created?: string | null,\n referer?: string | null,\n sirge_source_name?: string | null,\n url?: string | null,\n};\n\nexport type GetKeyMetricsAnalyticsStatisticsResponse = {\n __typename: \"GetKeyMetricsAnalyticsStatisticsResponse\",\n data?: KeyMetricsAnalyticsStatistics | null,\n error?: ErrorResponse | null,\n message?: string | null,\n nextToken?: string | null,\n};\n\nexport type KeyMetricsAnalyticsStatistics = {\n __typename: \"KeyMetricsAnalyticsStatistics\",\n total_order?: KeyMetricsStatistics | null,\n total_sales?: KeyMetricsStatistics | null,\n average_order_value?: KeyMetricsStatistics | null,\n blended_roas?: BlendedRoasStatistics | null,\n visits?: KeyMetricsStatistics | null,\n conversion_rate?: KeyMetricsStatistics | null,\n total_conversion_value?: KeyMetricsStatistics | null,\n total_refunds?: KeyMetricsStatistics | null,\n};\n\nexport type KeyMetricsStatistics = {\n __typename: \"KeyMetricsStatistics\",\n amount?: number | null,\n percentage?: number | null,\n trend?: Array | null,\n};\n\nexport type KeyMetricsStatisticsTrend = {\n __typename: \"KeyMetricsStatisticsTrend\",\n date?: string | null,\n value?: number | null,\n};\n\nexport type BlendedRoasStatistics = {\n __typename: \"BlendedRoasStatistics\",\n amount?: number | null,\n percentage?: number | null,\n trend?: Array | null,\n sources?: RoasBySources | null,\n};\n\nexport type RoasBySources = {\n __typename: \"RoasBySources\",\n facebook?: number | null,\n tiktok?: number | null,\n google?: number | null,\n};\n\nexport type GetCustomerChannelsInput = {\n business_id: string,\n date_from?: string | null,\n date_to?: string | null,\n sort?: SourcesSortObjectType | null,\n numberOfPage?: number | null,\n};\n\nexport type GetCustomerChannelsResponse = {\n __typename: \"GetCustomerChannelsResponse\",\n data?: GetCustomerChannelObject | null,\n error?: ErrorResponse | null,\n message?: string | null,\n numberPages?: number | null,\n};\n\nexport type GetCustomerChannelObject = {\n __typename: \"GetCustomerChannelObject\",\n channels?: Array | null,\n totalInfo?: TotalInfo | null,\n};\n\nexport type CustomerChannel = {\n __typename: \"CustomerChannel\",\n source?: string | null,\n source_id?: string | null,\n referer?: string | null,\n unique_visitor?: number | null,\n unique_sessions?: number | null,\n purchases_count?: number | null,\n};\n\nexport type GetCustomerChannelsDetailsInput = {\n business_id: string,\n date_from: string,\n date_to: string,\n channel_id: string,\n sort?: SourcesSortObjectType | null,\n};\n\nexport type GetCustomerChannelsDetailsResponse = {\n __typename: \"GetCustomerChannelsDetailsResponse\",\n data?: GetCustomerChannelsDetailsResponseData | null,\n error?: ErrorResponse | null,\n message?: string | null,\n};\n\nexport type GetCustomerChannelsDetailsResponseData = {\n __typename: \"GetCustomerChannelsDetailsResponseData\",\n channels?: Array | null,\n};\n\nexport type GetSourcesOrdersInput = {\n business_id?: string | null,\n source?: string | null,\n page?: number | null,\n date_from?: string | null,\n date_to?: string | null,\n};\n\nexport type GetSourcesOrdersResponse = {\n __typename: \"GetSourcesOrdersResponse\",\n data?: Array | null,\n error?: ErrorResponse | null,\n message?: string | null,\n nextToken?: string | null,\n numberPages?: number | null,\n};\n\nexport type SourceOrder = {\n __typename: \"SourceOrder\",\n business_id?: string | null,\n conversion_value?: number | null,\n created?: string | null,\n order_id?: string | null,\n source?: string | null,\n customer_id?: string | null,\n customer_name?: string | null,\n};\n\nexport type GetSuggestedSegmentsStatsInput = {\n business_id?: string | null,\n};\n\nexport type GetSuggestedSegmentsStatsResponse = {\n __typename: \"GetSuggestedSegmentsStatsResponse\",\n data?: Array | null,\n total_records?: number | null,\n message?: string | null,\n error?: ErrorResponse | null,\n nextToken?: string | null,\n};\n\nexport type GetSuggestedSegmentsStatsResult = {\n __typename: \"GetSuggestedSegmentsStatsResult\",\n no_of_customers?: number | null,\n query_type?: SuggestedSegmentTypes | null,\n};\n\nexport type GetCustomerOrdersInput = {\n business_id: string,\n customer_id: string,\n page?: number | null,\n limit?: number | null,\n};\n\nexport type GetCustomerOrdersResponse = {\n __typename: \"GetCustomerOrdersResponse\",\n data?: Array | null,\n total_records?: number | null,\n message?: string | null,\n error?: ErrorResponse | null,\n nextToken?: string | null,\n};\n\nexport type CustomerOrders = {\n __typename: \"CustomerOrders\",\n id: string,\n customer_id?: string | null,\n customer_name?: string | null,\n platform_order_id: string,\n city?: string | null,\n state?: string | null,\n zip?: string | null,\n country?: string | null,\n currency?: string | null,\n conversion_value?: number | null,\n insight_date?: string | null,\n visitor_id?: string | null,\n deleted_at?: string | null,\n updated_at?: string | null,\n created_at?: string | null,\n};\n\nexport type GetAllStaticAudienceSegmentQueryInput = {\n business_id: string,\n};\n\nexport type GetAllStaticAudienceSegmentResponse = {\n __typename: \"GetAllStaticAudienceSegmentResponse\",\n data?: Array | null,\n total_records?: number | null,\n message?: string | null,\n error?: ErrorResponse | null,\n nextToken?: string | null,\n};\n\nexport type StaticSegments = {\n __typename: \"StaticSegments\",\n id: string,\n business_id: string,\n group_name: string,\n};\n\nexport type GetAllAudienceSegmentQueryInput = {\n sort?: AudienceSortObjectType | null,\n filter?: AudienceFilterObjectType | null,\n page?: number | null,\n limit?: number | null,\n business_id: string,\n};\n\nexport type AudienceSortObjectType = {\n column?: string | null,\n order?: string | null,\n};\n\nexport type AudienceFilterObjectType = {\n startDate?: string | null,\n endDate?: string | null,\n};\n\nexport type GetAllAudienceSegmentSourcesResponse = {\n __typename: \"GetAllAudienceSegmentSourcesResponse\",\n data?: Array | null,\n total_records?: number | null,\n message?: string | null,\n error?: ErrorResponse | null,\n nextToken?: string | null,\n};\n\nexport type GetBusinessAIReportInput = {\n business_id: string,\n};\n\nexport type GetBusinessAIReportResponse = {\n __typename: \"GetBusinessAIReportResponse\",\n data?: string | null,\n error?: ErrorResponse | null,\n message?: string | null,\n};\n\nexport type UserTaskProgressInput = {\n business_id: string,\n objective?: string | null,\n};\n\nexport type UserTaskProgressResponse = {\n __typename: \"UserTaskProgressResponse\",\n data?: Array | null,\n};\n\nexport type UserTaskProgress = {\n __typename: \"UserTaskProgress\",\n task_count?: number | null,\n status?: string | null,\n objective?: string | null,\n};\n\nexport type GetSubscriptionNewInput = {\n business_id?: string | null,\n};\n\nexport type GetSubscriptionNewResponse = {\n __typename: \"GetSubscriptionNewResponse\",\n data?: SubscriptionsTableSchema | null,\n error?: ErrorResponse | null,\n message?: string | null,\n nextToken?: string | null,\n};\n\nexport type SubscriptionsTableSchema = {\n __typename: \"SubscriptionsTableSchema\",\n id?: string | null,\n business_id?: string | null,\n subscription_plan_code?: string | null,\n status?: string | null,\n processor?: string | null,\n store_subscription_body?: string | null,\n store_subscription_id?: string | null,\n promo_code_id?: string | null,\n promo_code_applied_at?: string | null,\n trial_start?: string | null,\n trial_end?: string | null,\n trial_left?: number | null,\n trial_extended?: boolean | null,\n current_billing_period_start?: string | null,\n current_billing_period_end?: string | null,\n subscription_end_date?: string | null,\n business_limit?: number | null,\n staff_limit?: number | null,\n created_at?: string | null,\n updated_at?: string | null,\n deleted_at?: string | null,\n};\n\nexport type GetUserTaskCounterInput = {\n business_id: string,\n};\n\nexport type GetUserTaskCounterResponse = {\n __typename: \"GetUserTaskCounterResponse\",\n data?: UserTaskCounter | null,\n error?: ErrorResponse | null,\n message?: string | null,\n nextToken?: string | null,\n};\n\nexport type UserTaskCounter = {\n __typename: \"UserTaskCounter\",\n completed_tasks?: number | null,\n total_tasks?: number | null,\n};\n\nexport type ActivateBusinessNewMutationVariables = {\n activateBusinessInput: ActivateBusinessInput,\n};\n\nexport type ActivateBusinessNewMutation = {\n activateBusinessNew?: {\n __typename: \"ActivateBusinessResponse\",\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n nextToken?: string | null,\n } | null,\n};\n\nexport type SetBusinessGoalMutationVariables = {\n setBusinessGoalInput: SetBusinessGoalInput,\n};\n\nexport type SetBusinessGoalMutation = {\n setBusinessGoal?: {\n __typename: \"ApplyPromoCodeResponse\",\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n nextToken?: string | null,\n } | null,\n};\n\nexport type UpdateMiniShopMutationVariables = {\n updateMiniShopInput: GetMiniShopDetailsInput,\n};\n\nexport type UpdateMiniShopMutation = {\n updateMiniShop?: {\n __typename: \"UpdateMiniShopResponse\",\n data?: {\n __typename: \"MiniShopDetails\",\n topProducts?: Array< {\n __typename: \"PerformingProductsData\",\n product_id?: string | null,\n name?: string | null,\n total_revenue?: number | null,\n product_image?: string | null,\n handle?: string | null,\n } | null > | null,\n miniShop?: {\n __typename: \"MiniShop\",\n id?: string | null,\n shop_name?: string | null,\n shop_image?: string | null,\n business_id?: string | null,\n top_products?: string | null,\n deleted_at?: string | null,\n updated_at?: string | null,\n created_at?: string | null,\n } | null,\n trackableLink?: {\n __typename: \"TrackableCopy\",\n id: string,\n name: string,\n description?: string | null,\n type?: string | null,\n short_code: string,\n destination_url: string,\n url_position?: string | null,\n business_id?: string | null,\n created?: string | null,\n stats?: {\n __typename: \"TrackableCopyStats\",\n clicks?: number | null,\n purchases?: number | null,\n revenue?: number | null,\n prev_clicks?: number | null,\n } | null,\n is_onboarding_default?: boolean | null,\n is_mini_shop?: boolean | null,\n } | null,\n } | null,\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n nextToken?: string | null,\n } | null,\n};\n\nexport type ChangePasswordNewMutationVariables = {\n changePasswordInput: ChangePasswordInput,\n};\n\nexport type ChangePasswordNewMutation = {\n changePasswordNew?: {\n __typename: \"ChangePasswordResponse\",\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n } | null,\n};\n\nexport type CreateTaskMutationVariables = {\n createTaskInput: CreateTaskInput,\n};\n\nexport type CreateTaskMutation = {\n createTask?: {\n __typename: \"TaskResponse\",\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n nextToken?: string | null,\n } | null,\n};\n\nexport type UpdateTaskMutationVariables = {\n updateTaskInput: UpdateTaskInput,\n};\n\nexport type UpdateTaskMutation = {\n updateTask?: {\n __typename: \"TaskResponse\",\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n nextToken?: string | null,\n } | null,\n};\n\nexport type UpdateBusinessOnboardingDataMutationVariables = {\n updateBusinessOnboardingDataInput: UpdateBusinessOnboardingDataInput,\n};\n\nexport type UpdateBusinessOnboardingDataMutation = {\n updateBusinessOnboardingData?: {\n __typename: \"UpdateBusinessOnboardingResponse\",\n success?: boolean | null,\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n } | null,\n};\n\nexport type UpsertStoreNewMutationVariables = {\n upsertStoreInput: UpsertStoreInput,\n};\n\nexport type UpsertStoreNewMutation = {\n upsertStoreNew?: {\n __typename: \"UpsertStoreResponse\",\n data?: boolean | null,\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n nextToken?: string | null,\n } | null,\n};\n\nexport type UpdateTaskStatusMutationVariables = {\n updateTaskStatusInput: UpdateTaskStatusInput,\n};\n\nexport type UpdateTaskStatusMutation = {\n updateTaskStatus?: {\n __typename: \"TaskResponse\",\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n nextToken?: string | null,\n } | null,\n};\n\nexport type DeleteTaskMutationVariables = {\n deleteTaskInput: DeleteTaskInput,\n};\n\nexport type DeleteTaskMutation = {\n deleteTask?: {\n __typename: \"TaskResponse\",\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n nextToken?: string | null,\n } | null,\n};\n\nexport type CreateStaffAccountNewMutationVariables = {\n createStaffAccountInput: CreateStaffAccountInput,\n};\n\nexport type CreateStaffAccountNewMutation = {\n createStaffAccountNew?: {\n __typename: \"CreateStaffAccountResponse\",\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n nextToken?: string | null,\n } | null,\n};\n\nexport type UpdatePinnedInspirationsMutationVariables = {\n updatePinnedInspirationsInput: UpdatePinnedInspirationsInput,\n};\n\nexport type UpdatePinnedInspirationsMutation = {\n updatePinnedInspirations?: {\n __typename: \"UpdatePinnedInspirationsResponse\",\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n nextToken?: string | null,\n } | null,\n};\n\nexport type DeleteStaffAccountNewMutationVariables = {\n deleteStaffAccountInput: DeleteStaffAccountInput,\n};\n\nexport type DeleteStaffAccountNewMutation = {\n deleteStaffAccountNew?: {\n __typename: \"DeleteStaffAccountResponse\",\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n nextToken?: string | null,\n } | null,\n};\n\nexport type PasswordResetLinkNewMutationVariables = {\n passwordResetInput: PasswordResetInput,\n};\n\nexport type PasswordResetLinkNewMutation = {\n passwordResetLinkNew?: {\n __typename: \"PasswordResetResponse\",\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n } | null,\n};\n\nexport type UpdateUserDefaultBusinessNewMutationVariables = {\n updateUserDefaultBusinessNewInput: BusinessIdInput,\n};\n\nexport type UpdateUserDefaultBusinessNewMutation = {\n updateUserDefaultBusinessNew?: {\n __typename: \"GeneralApiResponse\",\n data?: boolean | null,\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n nextToken?: string | null,\n } | null,\n};\n\nexport type SendUnlockFullPotentialEmailMutationVariables = {\n businessIdInput: BusinessIdInput,\n};\n\nexport type SendUnlockFullPotentialEmailMutation = {\n sendUnlockFullPotentialEmail?: {\n __typename: \"GeneralApiResponse\",\n data?: boolean | null,\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n nextToken?: string | null,\n } | null,\n};\n\nexport type RemoveSocialAdAccountMutationVariables = {\n removeSocialAdAccountInput: BusinessIdWithPlatform,\n};\n\nexport type RemoveSocialAdAccountMutation = {\n removeSocialAdAccount?: {\n __typename: \"RemoveSocialAdAccountResponse\",\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n } | null,\n};\n\nexport type RemoveSocialUserAccessMutationVariables = {\n businessIdInput: BusinessIdWithPlatform,\n};\n\nexport type RemoveSocialUserAccessMutation = {\n removeSocialUserAccess?: {\n __typename: \"RemoveSocialAccessResponse\",\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n nextToken?: string | null,\n } | null,\n};\n\nexport type SetSocialUserAccessMutationVariables = {\n socialAccessStoreInput: SetSocialAccessInput,\n};\n\nexport type SetSocialUserAccessMutation = {\n setSocialUserAccess?: {\n __typename: \"SetSocialAccessResponse\",\n data?: {\n __typename: \"AdAccountSettingsPrisma\",\n id: string,\n business_id: string,\n ad_platform_id: string,\n premium_page_views: number,\n external_platform?: string | null,\n active_campaign_count: number,\n paused_campaign_count: number,\n social_account_id?: string | null,\n social_account_name?: string | null,\n social_account_currency?: string | null,\n social_account_timezone?: string | null,\n access_token?: string | null,\n utm_count: number,\n social_integration?: string | null,\n conversion_api_enabled?: string | null,\n pixel_id?: string | null,\n social_refresh_token?: string | null,\n updateKey?: string | null,\n last_data_refreshed?: string | null,\n created_at: string,\n updated_at: string,\n deleted_at?: string | null,\n ad_platform: {\n __typename: \"AdPlatformPrisma\",\n id: string,\n name: string,\n internal_source_name: string,\n dark_theme_image_url?: string | null,\n light_theme_image_url: string,\n status: string,\n },\n } | null,\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n nextToken?: string | null,\n } | null,\n};\n\nexport type SetSocialAdAccountMutationVariables = {\n setSocialAdAccountInput: SetSocialAdAccountInput,\n};\n\nexport type SetSocialAdAccountMutation = {\n setSocialAdAccount?: {\n __typename: \"SetSocialAdAccountResponse\",\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n } | null,\n};\n\nexport type TriggerBusinessDataLongFetchNewMutationVariables = {\n triggerBusinessDataLongFetchInput?: BusinessIdInput | null,\n};\n\nexport type TriggerBusinessDataLongFetchNewMutation = {\n triggerBusinessDataLongFetchNew?: {\n __typename: \"TriggerBusinessDataLongFetchResponse\",\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n } | null,\n};\n\nexport type TriggerBusinessDayZeroDataCheckMutationVariables = {\n triggerBusinessDayZeroDataCheckInput?: TriggerBusinessDayZeroDataCheckInput | null,\n};\n\nexport type TriggerBusinessDayZeroDataCheckMutation = {\n triggerBusinessDayZeroDataCheck?: {\n __typename: \"TriggerBusinessDayZeroDataCheckResponse\",\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n } | null,\n};\n\nexport type UpdateBusinessByBusinessIdNewMutationVariables = {\n setBusinessesInput: SetBusinessesInput,\n};\n\nexport type UpdateBusinessByBusinessIdNewMutation = {\n updateBusinessByBusinessIdNew?: {\n __typename: \"SetBusinessesPrismaInputResponse\",\n data?: {\n __typename: \"BusinessPrisma\",\n id: string,\n store_id: string,\n name: string,\n status: string,\n logo?: string | null,\n vanity_name: string,\n reminder_status?: boolean | null,\n show_budget_confirmation?: boolean | null,\n monthly_budget: number,\n business_goal?: string | null,\n campaign_roas_goal?: string | null,\n adset_roas_goal?: string | null,\n ad_roas_goal?: string | null,\n created_at: string,\n updated_at: string,\n deleted_at?: string | null,\n ad_account_settings: Array< {\n __typename: \"AdAccountSettingsPrisma\",\n id: string,\n business_id: string,\n ad_platform_id: string,\n premium_page_views: number,\n external_platform?: string | null,\n active_campaign_count: number,\n paused_campaign_count: number,\n social_account_id?: string | null,\n social_account_name?: string | null,\n social_account_currency?: string | null,\n social_account_timezone?: string | null,\n access_token?: string | null,\n utm_count: number,\n social_integration?: string | null,\n conversion_api_enabled?: string | null,\n pixel_id?: string | null,\n social_refresh_token?: string | null,\n updateKey?: string | null,\n last_data_refreshed?: string | null,\n created_at: string,\n updated_at: string,\n deleted_at?: string | null,\n ad_platform: {\n __typename: \"AdPlatformPrisma\",\n id: string,\n name: string,\n internal_source_name: string,\n dark_theme_image_url?: string | null,\n light_theme_image_url: string,\n status: string,\n },\n } >,\n subscriptions: Array< {\n __typename: \"SubscriptionPrisma\",\n id: string,\n business_id: string,\n subscription_plan_code?: string | null,\n status: string,\n processor?: string | null,\n store_subscription_body?: string | null,\n store_subscription_id?: string | null,\n promo_code_id?: string | null,\n trial_start?: string | null,\n trial_end?: string | null,\n trial_left?: number | null,\n current_billing_period_start?: string | null,\n current_billing_period_end?: string | null,\n subscription_end_date?: string | null,\n business_limit?: number | null,\n staff_limit?: number | null,\n subscription_charges?: Array< {\n __typename: \"SubscriptionChargesPrisma\",\n id: string,\n business_id: string,\n subscription_id?: string | null,\n store_revenue: number,\n amount_billed: number,\n created_at: string,\n updated_at: string,\n deleted_at?: string | null,\n } | null > | null,\n promo_codes?: {\n __typename: \"PromoCodePrisma\",\n id?: string | null,\n code?: string | null,\n type?: string | null,\n status?: string | null,\n duration?: number | null,\n amount?: number | null,\n created_at?: string | null,\n updated_at?: string | null,\n deleted_at?: string | null,\n } | null,\n current_revenue?: number | null,\n created_at: string,\n updated_at: string,\n deleted_at?: string | null,\n } >,\n store?: {\n __typename: \"StorePrisma\",\n id?: string | null,\n shop_name?: string | null,\n address1?: string | null,\n address2?: string | null,\n city?: string | null,\n state?: string | null,\n zip?: string | null,\n country?: string | null,\n store_url?: string | null,\n timezone?: string | null,\n currency?: string | null,\n created_at?: string | null,\n updated_at?: string | null,\n deleted_at?: string | null,\n } | null,\n completed_onboarding_call?: boolean | null,\n has_visitor_session?: boolean | null,\n business_roas_goals?: Array< {\n __typename: \"BusinessRoasGoalPrisma\",\n id: string,\n roas_goal: number,\n ad_platform_id: string,\n ad_platforms: {\n __typename: \"AdPlatformPrisma\",\n id: string,\n name: string,\n internal_source_name: string,\n dark_theme_image_url?: string | null,\n light_theme_image_url: string,\n status: string,\n },\n } | null > | null,\n tour_completed_at?: string | null,\n tour_skipped_at?: string | null,\n feature_flags?: Array< string | null > | null,\n onboarding_call_completed_at?: string | null,\n pinned_inspirations?: Array< string | null > | null,\n } | null,\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n nextToken?: string | null,\n } | null,\n};\n\nexport type UpdateBusinessLogoNewMutationVariables = {\n updateBusinessLogoInput: UpdateBusinessLogoInput,\n};\n\nexport type UpdateBusinessLogoNewMutation = {\n updateBusinessLogoNew?: {\n __typename: \"UpdateBusinessLogoNewResponse\",\n data?: {\n __typename: \"BusinessPrisma\",\n id: string,\n store_id: string,\n name: string,\n status: string,\n logo?: string | null,\n vanity_name: string,\n reminder_status?: boolean | null,\n show_budget_confirmation?: boolean | null,\n monthly_budget: number,\n business_goal?: string | null,\n campaign_roas_goal?: string | null,\n adset_roas_goal?: string | null,\n ad_roas_goal?: string | null,\n created_at: string,\n updated_at: string,\n deleted_at?: string | null,\n ad_account_settings: Array< {\n __typename: \"AdAccountSettingsPrisma\",\n id: string,\n business_id: string,\n ad_platform_id: string,\n premium_page_views: number,\n external_platform?: string | null,\n active_campaign_count: number,\n paused_campaign_count: number,\n social_account_id?: string | null,\n social_account_name?: string | null,\n social_account_currency?: string | null,\n social_account_timezone?: string | null,\n access_token?: string | null,\n utm_count: number,\n social_integration?: string | null,\n conversion_api_enabled?: string | null,\n pixel_id?: string | null,\n social_refresh_token?: string | null,\n updateKey?: string | null,\n last_data_refreshed?: string | null,\n created_at: string,\n updated_at: string,\n deleted_at?: string | null,\n ad_platform: {\n __typename: \"AdPlatformPrisma\",\n id: string,\n name: string,\n internal_source_name: string,\n dark_theme_image_url?: string | null,\n light_theme_image_url: string,\n status: string,\n },\n } >,\n subscriptions: Array< {\n __typename: \"SubscriptionPrisma\",\n id: string,\n business_id: string,\n subscription_plan_code?: string | null,\n status: string,\n processor?: string | null,\n store_subscription_body?: string | null,\n store_subscription_id?: string | null,\n promo_code_id?: string | null,\n trial_start?: string | null,\n trial_end?: string | null,\n trial_left?: number | null,\n current_billing_period_start?: string | null,\n current_billing_period_end?: string | null,\n subscription_end_date?: string | null,\n business_limit?: number | null,\n staff_limit?: number | null,\n subscription_charges?: Array< {\n __typename: \"SubscriptionChargesPrisma\",\n id: string,\n business_id: string,\n subscription_id?: string | null,\n store_revenue: number,\n amount_billed: number,\n created_at: string,\n updated_at: string,\n deleted_at?: string | null,\n } | null > | null,\n promo_codes?: {\n __typename: \"PromoCodePrisma\",\n id?: string | null,\n code?: string | null,\n type?: string | null,\n status?: string | null,\n duration?: number | null,\n amount?: number | null,\n created_at?: string | null,\n updated_at?: string | null,\n deleted_at?: string | null,\n } | null,\n current_revenue?: number | null,\n created_at: string,\n updated_at: string,\n deleted_at?: string | null,\n } >,\n store?: {\n __typename: \"StorePrisma\",\n id?: string | null,\n shop_name?: string | null,\n address1?: string | null,\n address2?: string | null,\n city?: string | null,\n state?: string | null,\n zip?: string | null,\n country?: string | null,\n store_url?: string | null,\n timezone?: string | null,\n currency?: string | null,\n created_at?: string | null,\n updated_at?: string | null,\n deleted_at?: string | null,\n } | null,\n completed_onboarding_call?: boolean | null,\n has_visitor_session?: boolean | null,\n business_roas_goals?: Array< {\n __typename: \"BusinessRoasGoalPrisma\",\n id: string,\n roas_goal: number,\n ad_platform_id: string,\n ad_platforms: {\n __typename: \"AdPlatformPrisma\",\n id: string,\n name: string,\n internal_source_name: string,\n dark_theme_image_url?: string | null,\n light_theme_image_url: string,\n status: string,\n },\n } | null > | null,\n tour_completed_at?: string | null,\n tour_skipped_at?: string | null,\n feature_flags?: Array< string | null > | null,\n onboarding_call_completed_at?: string | null,\n pinned_inspirations?: Array< string | null > | null,\n } | null,\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n nextToken?: string | null,\n } | null,\n};\n\nexport type UpdateBusinessMetaDataMutationVariables = {\n updateBusinessMetaDataInput: UpdateBusinessMetaDataInput,\n};\n\nexport type UpdateBusinessMetaDataMutation = {\n updateBusinessMetaData?: {\n __typename: \"UpdateBusinessMetaDataResponse\",\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n nextToken?: string | null,\n } | null,\n};\n\nexport type UpdateFacebookConnectionSettingsMutationVariables = {\n updateFacebookConnectionSettingsInput: UpdateFacebookConnectionSettingsInput,\n};\n\nexport type UpdateFacebookConnectionSettingsMutation = {\n updateFacebookConnectionSettings?: {\n __typename: \"UpdateFacebookConnectionSettingsResponse\",\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n } | null,\n};\n\nexport type UpdateStaffAccountAccessNewMutationVariables = {\n updateStaffAccountAccessInput: UpdateStaffAccountAccessNewInput,\n};\n\nexport type UpdateStaffAccountAccessNewMutation = {\n updateStaffAccountAccessNew?: {\n __typename: \"UpdateStaffAccountAccessResponse\",\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n nextToken?: string | null,\n } | null,\n};\n\nexport type UpdateTimezoneCurrencyNewMutationVariables = {\n updateTimezoneCurrencyInput: UpdateTimezoneCurrencyInput,\n};\n\nexport type UpdateTimezoneCurrencyNewMutation = {\n updateTimezoneCurrencyNew?: {\n __typename: \"UpdateTimezoneCurrencyResponse\",\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n } | null,\n};\n\nexport type UpdateUserNewMutationVariables = {\n updateUserNewInput: UpdateUserNewInput,\n};\n\nexport type UpdateUserNewMutation = {\n updateUserNew?: {\n __typename: \"UpdateUserNewResponse\",\n data?: {\n __typename: \"UserPrisma\",\n id: string,\n first_name: string,\n last_name: string,\n email: string,\n address1?: string | null,\n password?: string | null,\n timezone?: string | null,\n currency?: string | null,\n created_at: string,\n updated_at: string,\n deleted_at?: string | null,\n businesses?: Array< {\n __typename: \"UserXBusinessPrisma\",\n user_id: string,\n business_id: string,\n business: {\n __typename: \"BusinessPrisma\",\n id: string,\n store_id: string,\n name: string,\n status: string,\n logo?: string | null,\n vanity_name: string,\n reminder_status?: boolean | null,\n show_budget_confirmation?: boolean | null,\n monthly_budget: number,\n business_goal?: string | null,\n campaign_roas_goal?: string | null,\n adset_roas_goal?: string | null,\n ad_roas_goal?: string | null,\n created_at: string,\n updated_at: string,\n deleted_at?: string | null,\n ad_account_settings: Array< {\n __typename: \"AdAccountSettingsPrisma\",\n id: string,\n business_id: string,\n ad_platform_id: string,\n premium_page_views: number,\n external_platform?: string | null,\n active_campaign_count: number,\n paused_campaign_count: number,\n social_account_id?: string | null,\n social_account_name?: string | null,\n social_account_currency?: string | null,\n social_account_timezone?: string | null,\n access_token?: string | null,\n utm_count: number,\n social_integration?: string | null,\n conversion_api_enabled?: string | null,\n pixel_id?: string | null,\n social_refresh_token?: string | null,\n updateKey?: string | null,\n last_data_refreshed?: string | null,\n created_at: string,\n updated_at: string,\n deleted_at?: string | null,\n ad_platform: {\n __typename: \"AdPlatformPrisma\",\n id: string,\n name: string,\n internal_source_name: string,\n dark_theme_image_url?: string | null,\n light_theme_image_url: string,\n status: string,\n },\n } >,\n subscriptions: Array< {\n __typename: \"SubscriptionPrisma\",\n id: string,\n business_id: string,\n subscription_plan_code?: string | null,\n status: string,\n processor?: string | null,\n store_subscription_body?: string | null,\n store_subscription_id?: string | null,\n promo_code_id?: string | null,\n trial_start?: string | null,\n trial_end?: string | null,\n trial_left?: number | null,\n current_billing_period_start?: string | null,\n current_billing_period_end?: string | null,\n subscription_end_date?: string | null,\n business_limit?: number | null,\n staff_limit?: number | null,\n subscription_charges?: Array< {\n __typename: \"SubscriptionChargesPrisma\",\n id: string,\n business_id: string,\n subscription_id?: string | null,\n store_revenue: number,\n amount_billed: number,\n created_at: string,\n updated_at: string,\n deleted_at?: string | null,\n } | null > | null,\n promo_codes?: {\n __typename: \"PromoCodePrisma\",\n id?: string | null,\n code?: string | null,\n type?: string | null,\n status?: string | null,\n duration?: number | null,\n amount?: number | null,\n created_at?: string | null,\n updated_at?: string | null,\n deleted_at?: string | null,\n } | null,\n current_revenue?: number | null,\n created_at: string,\n updated_at: string,\n deleted_at?: string | null,\n } >,\n store?: {\n __typename: \"StorePrisma\",\n id?: string | null,\n shop_name?: string | null,\n address1?: string | null,\n address2?: string | null,\n city?: string | null,\n state?: string | null,\n zip?: string | null,\n country?: string | null,\n store_url?: string | null,\n timezone?: string | null,\n currency?: string | null,\n created_at?: string | null,\n updated_at?: string | null,\n deleted_at?: string | null,\n } | null,\n completed_onboarding_call?: boolean | null,\n has_visitor_session?: boolean | null,\n business_roas_goals?: Array< {\n __typename: \"BusinessRoasGoalPrisma\",\n id: string,\n roas_goal: number,\n ad_platform_id: string,\n ad_platforms: {\n __typename: \"AdPlatformPrisma\",\n id: string,\n name: string,\n internal_source_name: string,\n dark_theme_image_url?: string | null,\n light_theme_image_url: string,\n status: string,\n },\n } | null > | null,\n tour_completed_at?: string | null,\n tour_skipped_at?: string | null,\n feature_flags?: Array< string | null > | null,\n onboarding_call_completed_at?: string | null,\n pinned_inspirations?: Array< string | null > | null,\n },\n user_type: string,\n is_default_business: boolean,\n created_at: string,\n updated_at: string,\n deleted_at?: string | null,\n } > | null,\n profile_photo?: string | null,\n is_admin_user?: boolean | null,\n link_tracking_visit_count?: number | null,\n link_tracking_view_status?: string | null,\n growth_hub_clicked_at?: string | null,\n inspirations_tutorial_finished_at?: string | null,\n mini_shop_tutorial_finished_at?: string | null,\n } | null,\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n nextToken?: string | null,\n } | null,\n};\n\nexport type UpdateUserProfilePictureNewMutationVariables = {\n updateUserProfilePictureInput: UpdateUserProfilePictureInput,\n};\n\nexport type UpdateUserProfilePictureNewMutation = {\n updateUserProfilePictureNew?: {\n __typename: \"UpdateUserProfilePictureResponse\",\n data?: {\n __typename: \"User\",\n default_business_id?: string | null,\n account_state?: string | null,\n affiliate_auth_token?: string | null,\n auto_scaling_setting?: number | null,\n balance?: number | null,\n cancellation_reason?: string | null,\n card_expiry_date?: string | null,\n card_last_four_digits?: string | null,\n card_type?: string | null,\n city?: string | null,\n client_billing_account_id?: string | null,\n country_code?: string | null,\n country_name?: string | null,\n country_phone_prefix?: string | null,\n created_at?: string | null,\n currency?: string | null,\n current_billing_period_end?: number | null,\n current_billing_period_start?: number | null,\n data_deleting_on?: number | null,\n data_retention_period?: number | null,\n email?: string | null,\n end_trial_source?: string | null,\n facebook_accessToken?: string | null,\n facebook_userID?: string | null,\n first_name?: string | null,\n firstpromoter_auth_token?: string | null,\n full_address?: string | null,\n id?: string | null,\n invoices?: Array< {\n __typename: \"Invoice\",\n created_at?: string | null,\n customer_id?: string | null,\n id?: string | null,\n invoice_body?: string | null,\n status?: string | null,\n updated_at?: string | null,\n } | null > | null,\n last_name?: string | null,\n line1?: string | null,\n manager_id?: string | null,\n marketing_status?: number | null,\n phone_number?: string | null,\n postal_code?: string | null,\n products?: {\n __typename: \"Product\",\n plan_product_id?: string | null,\n price_id?: string | null,\n product_code?: string | null,\n product_id?: string | null,\n product_name?: string | null,\n } | null,\n profile_photo?: string | null,\n state?: string | null,\n status?: string | null,\n stripe_connect_account_id?: string | null,\n subscription?: {\n __typename: \"Subscription\",\n created_at?: string | null,\n customer_id?: string | null,\n id?: string | null,\n status?: string | null,\n subscription_body?: string | null,\n updated_at?: string | null,\n trial_end?: string | null,\n trial_start?: string | null,\n trial_left?: number | null,\n promo_code?: {\n __typename: \"DiscountCode\",\n code?: string | null,\n status?: string | null,\n duration?: number | null,\n amount?: number | null,\n type?: string | null,\n } | null,\n plan?: {\n __typename: \"Plan\",\n business_limit?: number | null,\n page_view_limit?: number | null,\n plan_code?: string | null,\n plan_name?: string | null,\n plan_price_id?: string | null,\n plan_product_id?: string | null,\n staff_limit?: number | null,\n } | null,\n plan_changed?: boolean | null,\n plan_code?: string | null,\n current_revenue?: number | null,\n current_billing_period_start?: string | null,\n current_billing_period_end?: string | null,\n } | null,\n subscription_status?: string | null,\n tik_tok_access_token?: string | null,\n tik_tok_integration?: boolean | null,\n timezone?: string | null,\n two_factor_deactivate_business?: number | null,\n two_factor_remove_staff_account?: number | null,\n updated_at?: string | null,\n user_id?: string | null,\n user_plan?: {\n __typename: \"Plan\",\n business_limit?: number | null,\n page_view_limit?: number | null,\n plan_code?: string | null,\n plan_name?: string | null,\n plan_price_id?: string | null,\n plan_product_id?: string | null,\n staff_limit?: number | null,\n } | null,\n verification_method?: string | null,\n shopify_store_url?: string | null,\n business_access?: Array< {\n __typename: \"BusinessAccess\",\n vanity_name?: string | null,\n } | null > | null,\n sessions?: Array< {\n __typename: \"UserSession\",\n browser_name?: string | null,\n browser_version?: string | null,\n created_at?: string | null,\n ip?: string | null,\n location?: string | null,\n os_name?: string | null,\n os_version?: string | null,\n user_id?: string | null,\n } | null > | null,\n post_hog_user_id?: string | null,\n } | null,\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n nextToken?: string | null,\n } | null,\n};\n\nexport type VerifyTwoFactorNewMutationVariables = {\n verifyTwoFactorInput: VerifyTwoFactorInput,\n};\n\nexport type VerifyTwoFactorNewMutation = {\n verifyTwoFactorNew?: {\n __typename: \"VerifyTwoFactorResponse\",\n data?: boolean | null,\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n nextToken?: string | null,\n } | null,\n};\n\nexport type RefreshDataForBusinessMutationVariables = {\n refreshDataForBusinessInput: RefreshDataForBusiness,\n};\n\nexport type RefreshDataForBusinessMutation = {\n refreshDataForBusiness?: {\n __typename: \"RefreshDataForResponse\",\n data?: string | null,\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n nextToken?: string | null,\n } | null,\n};\n\nexport type UpdateShopifyStoreUrlNewMutationVariables = {\n updateShopifyStoreUrlInput: UpdateShopifyStoreUrlInput,\n};\n\nexport type UpdateShopifyStoreUrlNewMutation = {\n updateShopifyStoreUrlNew?: {\n __typename: \"UpdateShopifyStoreUrlResponse\",\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n nextToken?: string | null,\n } | null,\n};\n\nexport type SetUserSessionNewMutationVariables = {\n};\n\nexport type SetUserSessionNewMutation = {\n setUserSessionNew?: {\n __typename: \"SetUserSessionResponsePrisma\",\n data?: {\n __typename: \"UserSessionPrisma\",\n browser_name?: string | null,\n browser_version?: string | null,\n created_at?: string | null,\n ip?: string | null,\n location?: string | null,\n os_name?: string | null,\n os_version?: string | null,\n user?: {\n __typename: \"UserConnectionPrisma\",\n connect: {\n __typename: \"UserIDPrisma\",\n id: string,\n },\n } | null,\n } | null,\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n nextToken?: string | null,\n } | null,\n};\n\nexport type CreateShopifySubscriptionNewMutationVariables = {\n createShopifySubscriptionInput: CreateShopifySubscriptionInput,\n};\n\nexport type CreateShopifySubscriptionNewMutation = {\n createShopifySubscriptionNew?: {\n __typename: \"CreateShopifySubscriptionResponse\",\n data?: {\n __typename: \"ShopifySubscription\",\n confirmationUrl?: string | null,\n id?: string | null,\n } | null,\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n nextToken?: string | null,\n } | null,\n};\n\nexport type CreateShopifySubscriptionNewPricingMutationVariables = {\n createShopifySubscriptionInput: CreateShopifySubscriptionInput,\n};\n\nexport type CreateShopifySubscriptionNewPricingMutation = {\n createShopifySubscriptionNewPricing?: {\n __typename: \"CreateShopifySubscriptionResponse\",\n data?: {\n __typename: \"ShopifySubscription\",\n confirmationUrl?: string | null,\n id?: string | null,\n } | null,\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n nextToken?: string | null,\n } | null,\n};\n\nexport type RegisterShopifyUserNewMutationVariables = {\n registerShopifyUserInput: RegisterShopifyUserInput,\n};\n\nexport type RegisterShopifyUserNewMutation = {\n registerShopifyUserNew?: {\n __typename: \"RegisterShopifyUserResponse\",\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n nextToken?: string | null,\n user?: {\n __typename: \"User\",\n default_business_id?: string | null,\n account_state?: string | null,\n affiliate_auth_token?: string | null,\n auto_scaling_setting?: number | null,\n balance?: number | null,\n cancellation_reason?: string | null,\n card_expiry_date?: string | null,\n card_last_four_digits?: string | null,\n card_type?: string | null,\n city?: string | null,\n client_billing_account_id?: string | null,\n country_code?: string | null,\n country_name?: string | null,\n country_phone_prefix?: string | null,\n created_at?: string | null,\n currency?: string | null,\n current_billing_period_end?: number | null,\n current_billing_period_start?: number | null,\n data_deleting_on?: number | null,\n data_retention_period?: number | null,\n email?: string | null,\n end_trial_source?: string | null,\n facebook_accessToken?: string | null,\n facebook_userID?: string | null,\n first_name?: string | null,\n firstpromoter_auth_token?: string | null,\n full_address?: string | null,\n id?: string | null,\n invoices?: Array< {\n __typename: \"Invoice\",\n created_at?: string | null,\n customer_id?: string | null,\n id?: string | null,\n invoice_body?: string | null,\n status?: string | null,\n updated_at?: string | null,\n } | null > | null,\n last_name?: string | null,\n line1?: string | null,\n manager_id?: string | null,\n marketing_status?: number | null,\n phone_number?: string | null,\n postal_code?: string | null,\n products?: {\n __typename: \"Product\",\n plan_product_id?: string | null,\n price_id?: string | null,\n product_code?: string | null,\n product_id?: string | null,\n product_name?: string | null,\n } | null,\n profile_photo?: string | null,\n state?: string | null,\n status?: string | null,\n stripe_connect_account_id?: string | null,\n subscription?: {\n __typename: \"Subscription\",\n created_at?: string | null,\n customer_id?: string | null,\n id?: string | null,\n status?: string | null,\n subscription_body?: string | null,\n updated_at?: string | null,\n trial_end?: string | null,\n trial_start?: string | null,\n trial_left?: number | null,\n promo_code?: {\n __typename: \"DiscountCode\",\n code?: string | null,\n status?: string | null,\n duration?: number | null,\n amount?: number | null,\n type?: string | null,\n } | null,\n plan?: {\n __typename: \"Plan\",\n business_limit?: number | null,\n page_view_limit?: number | null,\n plan_code?: string | null,\n plan_name?: string | null,\n plan_price_id?: string | null,\n plan_product_id?: string | null,\n staff_limit?: number | null,\n } | null,\n plan_changed?: boolean | null,\n plan_code?: string | null,\n current_revenue?: number | null,\n current_billing_period_start?: string | null,\n current_billing_period_end?: string | null,\n } | null,\n subscription_status?: string | null,\n tik_tok_access_token?: string | null,\n tik_tok_integration?: boolean | null,\n timezone?: string | null,\n two_factor_deactivate_business?: number | null,\n two_factor_remove_staff_account?: number | null,\n updated_at?: string | null,\n user_id?: string | null,\n user_plan?: {\n __typename: \"Plan\",\n business_limit?: number | null,\n page_view_limit?: number | null,\n plan_code?: string | null,\n plan_name?: string | null,\n plan_price_id?: string | null,\n plan_product_id?: string | null,\n staff_limit?: number | null,\n } | null,\n verification_method?: string | null,\n shopify_store_url?: string | null,\n business_access?: Array< {\n __typename: \"BusinessAccess\",\n vanity_name?: string | null,\n } | null > | null,\n sessions?: Array< {\n __typename: \"UserSession\",\n browser_name?: string | null,\n browser_version?: string | null,\n created_at?: string | null,\n ip?: string | null,\n location?: string | null,\n os_name?: string | null,\n os_version?: string | null,\n user_id?: string | null,\n } | null > | null,\n post_hog_user_id?: string | null,\n } | null,\n } | null,\n};\n\nexport type CheckShopifyLoginNewMutationVariables = {\n checkShopifyLoginInput: CheckShopifyLoginInput,\n};\n\nexport type CheckShopifyLoginNewMutation = {\n checkShopifyLoginNew?: {\n __typename: \"CheckShopifyLoginResponse\",\n data?: boolean | null,\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n nextToken?: string | null,\n } | null,\n};\n\nexport type SendRegisterUserEmailNewMutationVariables = {\n sendRegisterUserEmailInput: SendRegisterUserEmailInput,\n};\n\nexport type SendRegisterUserEmailNewMutation = {\n sendRegisterUserEmailNew?: {\n __typename: \"SendRegisterUserEmailPrismaResponse\",\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n nextToken?: string | null,\n user?: {\n __typename: \"UserPrisma\",\n id: string,\n first_name: string,\n last_name: string,\n email: string,\n address1?: string | null,\n password?: string | null,\n timezone?: string | null,\n currency?: string | null,\n created_at: string,\n updated_at: string,\n deleted_at?: string | null,\n businesses?: Array< {\n __typename: \"UserXBusinessPrisma\",\n user_id: string,\n business_id: string,\n business: {\n __typename: \"BusinessPrisma\",\n id: string,\n store_id: string,\n name: string,\n status: string,\n logo?: string | null,\n vanity_name: string,\n reminder_status?: boolean | null,\n show_budget_confirmation?: boolean | null,\n monthly_budget: number,\n business_goal?: string | null,\n campaign_roas_goal?: string | null,\n adset_roas_goal?: string | null,\n ad_roas_goal?: string | null,\n created_at: string,\n updated_at: string,\n deleted_at?: string | null,\n ad_account_settings: Array< {\n __typename: \"AdAccountSettingsPrisma\",\n id: string,\n business_id: string,\n ad_platform_id: string,\n premium_page_views: number,\n external_platform?: string | null,\n active_campaign_count: number,\n paused_campaign_count: number,\n social_account_id?: string | null,\n social_account_name?: string | null,\n social_account_currency?: string | null,\n social_account_timezone?: string | null,\n access_token?: string | null,\n utm_count: number,\n social_integration?: string | null,\n conversion_api_enabled?: string | null,\n pixel_id?: string | null,\n social_refresh_token?: string | null,\n updateKey?: string | null,\n last_data_refreshed?: string | null,\n created_at: string,\n updated_at: string,\n deleted_at?: string | null,\n ad_platform: {\n __typename: \"AdPlatformPrisma\",\n id: string,\n name: string,\n internal_source_name: string,\n dark_theme_image_url?: string | null,\n light_theme_image_url: string,\n status: string,\n },\n } >,\n subscriptions: Array< {\n __typename: \"SubscriptionPrisma\",\n id: string,\n business_id: string,\n subscription_plan_code?: string | null,\n status: string,\n processor?: string | null,\n store_subscription_body?: string | null,\n store_subscription_id?: string | null,\n promo_code_id?: string | null,\n trial_start?: string | null,\n trial_end?: string | null,\n trial_left?: number | null,\n current_billing_period_start?: string | null,\n current_billing_period_end?: string | null,\n subscription_end_date?: string | null,\n business_limit?: number | null,\n staff_limit?: number | null,\n subscription_charges?: Array< {\n __typename: \"SubscriptionChargesPrisma\",\n id: string,\n business_id: string,\n subscription_id?: string | null,\n store_revenue: number,\n amount_billed: number,\n created_at: string,\n updated_at: string,\n deleted_at?: string | null,\n } | null > | null,\n promo_codes?: {\n __typename: \"PromoCodePrisma\",\n id?: string | null,\n code?: string | null,\n type?: string | null,\n status?: string | null,\n duration?: number | null,\n amount?: number | null,\n created_at?: string | null,\n updated_at?: string | null,\n deleted_at?: string | null,\n } | null,\n current_revenue?: number | null,\n created_at: string,\n updated_at: string,\n deleted_at?: string | null,\n } >,\n store?: {\n __typename: \"StorePrisma\",\n id?: string | null,\n shop_name?: string | null,\n address1?: string | null,\n address2?: string | null,\n city?: string | null,\n state?: string | null,\n zip?: string | null,\n country?: string | null,\n store_url?: string | null,\n timezone?: string | null,\n currency?: string | null,\n created_at?: string | null,\n updated_at?: string | null,\n deleted_at?: string | null,\n } | null,\n completed_onboarding_call?: boolean | null,\n has_visitor_session?: boolean | null,\n business_roas_goals?: Array< {\n __typename: \"BusinessRoasGoalPrisma\",\n id: string,\n roas_goal: number,\n ad_platform_id: string,\n ad_platforms: {\n __typename: \"AdPlatformPrisma\",\n id: string,\n name: string,\n internal_source_name: string,\n dark_theme_image_url?: string | null,\n light_theme_image_url: string,\n status: string,\n },\n } | null > | null,\n tour_completed_at?: string | null,\n tour_skipped_at?: string | null,\n feature_flags?: Array< string | null > | null,\n onboarding_call_completed_at?: string | null,\n pinned_inspirations?: Array< string | null > | null,\n },\n user_type: string,\n is_default_business: boolean,\n created_at: string,\n updated_at: string,\n deleted_at?: string | null,\n } > | null,\n profile_photo?: string | null,\n is_admin_user?: boolean | null,\n link_tracking_visit_count?: number | null,\n link_tracking_view_status?: string | null,\n growth_hub_clicked_at?: string | null,\n inspirations_tutorial_finished_at?: string | null,\n mini_shop_tutorial_finished_at?: string | null,\n } | null,\n } | null,\n};\n\nexport type CancelShopifySubscriptionNewMutationVariables = {\n cancelShopifySubscriptionInput?: CancelShopifySubscriptionInput | null,\n};\n\nexport type CancelShopifySubscriptionNewMutation = {\n cancelShopifySubscriptionNew?: {\n __typename: \"CancelShopifySubscriptionResponse\",\n data?: boolean | null,\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n nextToken?: string | null,\n } | null,\n};\n\nexport type CancelShopifySubscriptionEarlyNewMutationVariables = {\n cancelShopifySubscriptionEarlyInput: CancelShopifySubscriptionEarlyInput,\n};\n\nexport type CancelShopifySubscriptionEarlyNewMutation = {\n cancelShopifySubscriptionEarlyNew?: {\n __typename: \"CancelShopifySubscriptionResponse\",\n data?: boolean | null,\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n nextToken?: string | null,\n } | null,\n};\n\nexport type CreateShopifyScriptTagNewMutationVariables = {\n};\n\nexport type CreateShopifyScriptTagNewMutation = {\n createShopifyScriptTagNew?: {\n __typename: \"CreateShopifyScriptTagResponse\",\n data?: boolean | null,\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n nextToken?: string | null,\n } | null,\n};\n\nexport type GenerateBusinessAIReportMutationVariables = {\n generateBusinessAIReportInput: GenerateBusinessAIReportInput,\n};\n\nexport type GenerateBusinessAIReportMutation = {\n generateBusinessAIReport?: {\n __typename: \"GenerateBusinessAIReportResponse\",\n data?: boolean | null,\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n nextToken?: string | null,\n } | null,\n};\n\nexport type SetUtmValuesSocialCampaignMutationVariables = {\n setUtmValuesSocialCampaignInput: SetUtmValuesSocialCampaignInput,\n};\n\nexport type SetUtmValuesSocialCampaignMutation = {\n setUtmValuesSocialCampaign?: {\n __typename: \"SetUtmValuesSocialCampaignResponse\",\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n data?: {\n __typename: \"SetUtmValuesFbCampaignResponseData\",\n totalAdsToConnect?: number | null,\n adsConnected?: Array< string | null > | null,\n adsFailed?: Array< {\n __typename: \"SetUtmValuesFbCampaignErrorAd\",\n ad?: string | null,\n error?: string | null,\n } | null > | null,\n } | null,\n message?: string | null,\n nextToken?: string | null,\n } | null,\n};\n\nexport type AddDiscountCodeNewMutationVariables = {\n addDiscountCodeInput: AddDiscountCodeInput,\n};\n\nexport type AddDiscountCodeNewMutation = {\n addDiscountCodeNew?: {\n __typename: \"AddDiscountCodeResponsePrisma\",\n data?: {\n __typename: \"PromoCode\",\n id?: string | null,\n code?: string | null,\n type?: string | null,\n status?: string | null,\n duration?: number | null,\n amount?: number | null,\n created_at?: string | null,\n updated_at?: string | null,\n deleted_at?: string | null,\n } | null,\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n nextToken?: string | null,\n } | null,\n};\n\nexport type AddDiscountCodeInactiveSubscriptionNewMutationVariables = {\n addDiscountCodeInput: AddDiscountCodeInput,\n};\n\nexport type AddDiscountCodeInactiveSubscriptionNewMutation = {\n addDiscountCodeInactiveSubscriptionNew?: {\n __typename: \"AddDiscountCodeResponsePrisma\",\n data?: {\n __typename: \"PromoCode\",\n id?: string | null,\n code?: string | null,\n type?: string | null,\n status?: string | null,\n duration?: number | null,\n amount?: number | null,\n created_at?: string | null,\n updated_at?: string | null,\n deleted_at?: string | null,\n } | null,\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n nextToken?: string | null,\n } | null,\n};\n\nexport type RemoveDiscountCodeNewMutationVariables = {\n addDiscountCodeInput: AddDiscountCodeInput,\n};\n\nexport type RemoveDiscountCodeNewMutation = {\n removeDiscountCodeNew?: {\n __typename: \"RemoveDiscountCodeNewResponse\",\n data?: {\n __typename: \"SubscriptionPrisma\",\n id: string,\n business_id: string,\n subscription_plan_code?: string | null,\n status: string,\n processor?: string | null,\n store_subscription_body?: string | null,\n store_subscription_id?: string | null,\n promo_code_id?: string | null,\n trial_start?: string | null,\n trial_end?: string | null,\n trial_left?: number | null,\n current_billing_period_start?: string | null,\n current_billing_period_end?: string | null,\n subscription_end_date?: string | null,\n business_limit?: number | null,\n staff_limit?: number | null,\n subscription_charges?: Array< {\n __typename: \"SubscriptionChargesPrisma\",\n id: string,\n business_id: string,\n subscription_id?: string | null,\n store_revenue: number,\n amount_billed: number,\n created_at: string,\n updated_at: string,\n deleted_at?: string | null,\n } | null > | null,\n promo_codes?: {\n __typename: \"PromoCodePrisma\",\n id?: string | null,\n code?: string | null,\n type?: string | null,\n status?: string | null,\n duration?: number | null,\n amount?: number | null,\n created_at?: string | null,\n updated_at?: string | null,\n deleted_at?: string | null,\n } | null,\n current_revenue?: number | null,\n created_at: string,\n updated_at: string,\n deleted_at?: string | null,\n } | null,\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n nextToken?: string | null,\n } | null,\n};\n\nexport type UpdateAdLevelStatusNewMutationVariables = {\n updateAdLevelStatusInput: UpdateAdLevelStatusInput,\n};\n\nexport type UpdateAdLevelStatusNewMutation = {\n updateAdLevelStatusNew?: {\n __typename: \"UpdateAdLevelStatusResponse\",\n data?: boolean | null,\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n nextToken?: string | null,\n } | null,\n};\n\nexport type UpdateAdDailyBudgetNewMutationVariables = {\n updateAdDailyBudgetInput: updateAdDailyBudgetInput,\n};\n\nexport type UpdateAdDailyBudgetNewMutation = {\n updateAdDailyBudgetNew?: {\n __typename: \"UpdateAdDailyBudgetResponse\",\n data?: boolean | null,\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n nextToken?: string | null,\n } | null,\n};\n\nexport type CreateTrackableCopyNewMutationVariables = {\n createTrackableCopyInput: CreateTrackableCopyInput,\n};\n\nexport type CreateTrackableCopyNewMutation = {\n createTrackableCopyNew?: {\n __typename: \"CreateTrackableCopyResponse\",\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n nextToken?: string | null,\n } | null,\n};\n\nexport type DeleteTrackableCopyNewMutationVariables = {\n deleteTrackableCopyInput: DeleteTrackableCopyInput,\n};\n\nexport type DeleteTrackableCopyNewMutation = {\n deleteTrackableCopyNew?: {\n __typename: \"DeleteTrackableCopyResponse\",\n data?: boolean | null,\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n nextToken?: string | null,\n } | null,\n};\n\nexport type UpdateTrackableCopyNewMutationVariables = {\n updateTrackableCopyInput: UpdateTrackableCopyInput,\n};\n\nexport type UpdateTrackableCopyNewMutation = {\n updateTrackableCopyNew?: {\n __typename: \"UpdateTrackableCopyResponse\",\n data?: boolean | null,\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n nextToken?: string | null,\n } | null,\n};\n\nexport type UpdateKeyMetricsMonthlyBudgetMutationVariables = {\n updateMonthlyBudgetInput: UpdateMonthlyBudgetInput,\n};\n\nexport type UpdateKeyMetricsMonthlyBudgetMutation = {\n updateKeyMetricsMonthlyBudget?: {\n __typename: \"UpdateMonthlyBudgetResponse\",\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n nextToken?: string | null,\n } | null,\n};\n\nexport type UpdateKeyMetricsRoasTrackerMutationVariables = {\n updateKeyMetricsRoasGoalsInput: UpdateKeyMetricsRoasGoalsInput,\n};\n\nexport type UpdateKeyMetricsRoasTrackerMutation = {\n updateKeyMetricsRoasTracker?: {\n __typename: \"UpdateKeyMetricsRoasGoalsResponse\",\n data?: Array< {\n __typename: \"BusinessRoasGoalPrisma\",\n id: string,\n roas_goal: number,\n ad_platform_id: string,\n ad_platforms: {\n __typename: \"AdPlatformPrisma\",\n id: string,\n name: string,\n internal_source_name: string,\n dark_theme_image_url?: string | null,\n light_theme_image_url: string,\n status: string,\n },\n } | null > | null,\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n nextToken?: string | null,\n } | null,\n};\n\nexport type UpdateAudienceSegmentQueryByIdMutationVariables = {\n updateAudienceSegmentInput: UpdateAudienceSegmentQueryInput,\n};\n\nexport type UpdateAudienceSegmentQueryByIdMutation = {\n updateAudienceSegmentQueryById?: {\n __typename: \"UpdateAudienceSegmentResponse\",\n data?: {\n __typename: \"AudienceSuccessResponse\",\n success?: boolean | null,\n social_audience?: {\n __typename: \"AudienceSocial\",\n facebook?: {\n __typename: \"AudienceData\",\n error?: {\n __typename: \"AudienceErrorMessage\",\n message?: string | null,\n } | null,\n user_list_id?: string | null,\n audience_id?: string | null,\n } | null,\n google?: {\n __typename: \"AudienceData\",\n error?: {\n __typename: \"AudienceErrorMessage\",\n message?: string | null,\n } | null,\n user_list_id?: string | null,\n audience_id?: string | null,\n } | null,\n } | null,\n audience_errors?: Array< string | null > | null,\n } | null,\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n nextToken?: string | null,\n } | null,\n};\n\nexport type DeleteAudienceSegmentQueryByIdMutationVariables = {\n deleteAudienceSegmentInput: DeleteAudienceSegmentInput,\n};\n\nexport type DeleteAudienceSegmentQueryByIdMutation = {\n deleteAudienceSegmentQueryById?: {\n __typename: \"DeleteAudienceSegmentResponse\",\n data?: {\n __typename: \"AudienceSuccessResponse\",\n success?: boolean | null,\n social_audience?: {\n __typename: \"AudienceSocial\",\n facebook?: {\n __typename: \"AudienceData\",\n error?: {\n __typename: \"AudienceErrorMessage\",\n message?: string | null,\n } | null,\n user_list_id?: string | null,\n audience_id?: string | null,\n } | null,\n google?: {\n __typename: \"AudienceData\",\n error?: {\n __typename: \"AudienceErrorMessage\",\n message?: string | null,\n } | null,\n user_list_id?: string | null,\n audience_id?: string | null,\n } | null,\n } | null,\n audience_errors?: Array< string | null > | null,\n } | null,\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n nextToken?: string | null,\n } | null,\n};\n\nexport type CreateSuggestedSegmentsMutationVariables = {\n createSuggestedSegmentsInput: CreateSuggestedSegmentsInput,\n};\n\nexport type CreateSuggestedSegmentsMutation = {\n createSuggestedSegments?: {\n __typename: \"CreateSuggestedSegmentsResponse\",\n data?: {\n __typename: \"Segments\",\n id: string,\n business_id: string,\n no_of_customers?: number | null,\n added_revenue?: number | null,\n audience?: string | null,\n type: string,\n status: string,\n query_details?: string | null,\n created_at?: string | null,\n updated_at?: string | null,\n group_name: string,\n deleted_at?: string | null,\n dynamic_query_params: string,\n } | null,\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n nextToken?: string | null,\n } | null,\n};\n\nexport type CreateUserIntercomEmailTwoMutationVariables = {\n createUserIntercomEmailTwoInput: CreateUserIntercomEmailTwoInput,\n};\n\nexport type CreateUserIntercomEmailTwoMutation = {\n createUserIntercomEmailTwo?: {\n __typename: \"CreateUserIntercomEmailTwoResponse\",\n message?: string | null,\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n nextToken?: string | null,\n } | null,\n};\n\nexport type CreateUserStoreSessionsMutationVariables = {\n createUserStoreSessionsInput: CreateUserStoreSessionsInput,\n};\n\nexport type CreateUserStoreSessionsMutation = {\n createUserStoreSessions?: {\n __typename: \"CreateUserStoreSessionsResponse\",\n data?: {\n __typename: \"CreateUserStoreSessionsResponseData\",\n shop?: string | null,\n state?: string | null,\n isOnline?: boolean | null,\n scope?: string | null,\n expires?: string | null,\n accessToken?: string | null,\n } | null,\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n nextToken?: string | null,\n } | null,\n};\n\nexport type SetStoreBuildConfigMutationVariables = {\n setStoreBuildConfigInput: SetStoreBuildConfigInput,\n};\n\nexport type SetStoreBuildConfigMutation = {\n setStoreBuildConfig?: {\n __typename: \"SetStoreBuildConfigResponse\",\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n nextToken?: string | null,\n } | null,\n};\n\nexport type CreateStoreMutationVariables = {\n createStoreInput: CreateStoreInput,\n};\n\nexport type CreateStoreMutation = {\n createStore?: {\n __typename: \"CreateStoreResponse\",\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n nextToken?: string | null,\n } | null,\n};\n\nexport type DeleteStoreByShopNameMutationVariables = {\n deleteStoreByShopNameInput: DeleteStoreByShopNameInput,\n};\n\nexport type DeleteStoreByShopNameMutation = {\n deleteStoreByShopName?: {\n __typename: \"DeleteStoreByShopNameResponse\",\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n nextToken?: string | null,\n } | null,\n};\n\nexport type ExtendTrialMutationVariables = {\n extendTrialInput: ExtendTrialInput,\n};\n\nexport type ExtendTrialMutation = {\n extendTrial?: {\n __typename: \"ExtendTrialResponse\",\n data?: boolean | null,\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n nextToken?: string | null,\n } | null,\n};\n\nexport type AutoScalingSettingNewQueryVariables = {\n};\n\nexport type AutoScalingSettingNewQuery = {\n autoScalingSettingNew?: {\n __typename: \"AutoScalingSettingResponse\",\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n } | null,\n};\n\nexport type GetBusinessTechStackQueryVariables = {\n getBusinessTechStackInput: GetBusinessTechStackInput,\n};\n\nexport type GetBusinessTechStackQuery = {\n getBusinessTechStack?: {\n __typename: \"GetBusinessTechStackResponse\",\n data?: {\n __typename: \"TechStackResponseData\",\n business_id?: string | null,\n build_config?: string | null,\n created_at?: string | null,\n updated_at?: string | null,\n deleted_at?: string | null,\n } | null,\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n nextToken?: string | null,\n } | null,\n};\n\nexport type GetBusinessBillingInfoQueryVariables = {\n getBusinessBillingInfoInput: GetBusinessBillingInfoInput,\n};\n\nexport type GetBusinessBillingInfoQuery = {\n getBusinessBillingInfo?: {\n __typename: \"GetBusinessBillingInfoResponse\",\n data?: {\n __typename: \"BusinessBillingInfo\",\n business_revenue?: number | null,\n business_orders_count?: number | null,\n plan_code?: string | null,\n plan_name?: string | null,\n plan_price?: string | null,\n next_billing_plan_code?: string | null,\n next_billing_plan_name?: string | null,\n next_billing_plan_price?: string | null,\n next_billing_date?: string | null,\n promo_code?: string | null,\n pricing_model?: string | null,\n } | null,\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n nextToken?: string | null,\n } | null,\n};\n\nexport type GetMiniShopDetailsQueryVariables = {\n getMiniShopDetailsInput: GetMiniShopDetailsInput,\n};\n\nexport type GetMiniShopDetailsQuery = {\n getMiniShopDetails?: {\n __typename: \"GetMiniShopDetailsResponse\",\n data?: {\n __typename: \"MiniShopDetails\",\n topProducts?: Array< {\n __typename: \"PerformingProductsData\",\n product_id?: string | null,\n name?: string | null,\n total_revenue?: number | null,\n product_image?: string | null,\n handle?: string | null,\n } | null > | null,\n miniShop?: {\n __typename: \"MiniShop\",\n id?: string | null,\n shop_name?: string | null,\n shop_image?: string | null,\n business_id?: string | null,\n top_products?: string | null,\n deleted_at?: string | null,\n updated_at?: string | null,\n created_at?: string | null,\n } | null,\n trackableLink?: {\n __typename: \"TrackableCopy\",\n id: string,\n name: string,\n description?: string | null,\n type?: string | null,\n short_code: string,\n destination_url: string,\n url_position?: string | null,\n business_id?: string | null,\n created?: string | null,\n stats?: {\n __typename: \"TrackableCopyStats\",\n clicks?: number | null,\n purchases?: number | null,\n revenue?: number | null,\n prev_clicks?: number | null,\n } | null,\n is_onboarding_default?: boolean | null,\n is_mini_shop?: boolean | null,\n } | null,\n } | null,\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n nextToken?: string | null,\n } | null,\n};\n\nexport type GetDefaultTrackableCopyQueryVariables = {\n getDefaultTrackableCopyInput: BusinessIdInput,\n};\n\nexport type GetDefaultTrackableCopyQuery = {\n getDefaultTrackableCopy?: {\n __typename: \"GetDefaultTrackableCopyResponse\",\n data?: {\n __typename: \"DefaultTrackableCopyResponseData\",\n default_trackable_copy?: {\n __typename: \"TrackableCopy\",\n id: string,\n name: string,\n description?: string | null,\n type?: string | null,\n short_code: string,\n destination_url: string,\n url_position?: string | null,\n business_id?: string | null,\n created?: string | null,\n stats?: {\n __typename: \"TrackableCopyStats\",\n clicks?: number | null,\n purchases?: number | null,\n revenue?: number | null,\n prev_clicks?: number | null,\n } | null,\n is_onboarding_default?: boolean | null,\n is_mini_shop?: boolean | null,\n } | null,\n has_manually_created_trackable_copy?: boolean | null,\n } | null,\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n nextToken?: string | null,\n } | null,\n};\n\nexport type GetAllAdminTasksQueryVariables = {\n getAllAdminTasksInput: GetAllAdminTasksInput,\n};\n\nexport type GetAllAdminTasksQuery = {\n getAllAdminTasks?: {\n __typename: \"GetAllAdminTasksResponse\",\n data?: Array< {\n __typename: \"AdminTask\",\n id: string,\n title: string,\n description: string,\n priority: number,\n objectives?: Array< string | null > | null,\n created_at: string,\n updated_at: string,\n deleted_at?: string | null,\n views: number,\n completed: number,\n is_task_master: boolean,\n deeplink_target_url?: string | null,\n target_button_title?: string | null,\n task_image_url?: string | null,\n task_group_by_week?: Array< {\n __typename: \"TaskGroupByWeek\",\n week_start: string,\n task_count: number,\n user_count: number,\n } > | null,\n } | null > | null,\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n nextToken?: string | null,\n numberPages?: number | null,\n } | null,\n};\n\nexport type GetUserTasksQueryVariables = {\n getUserTasksInput?: GetUserTasksInput | null,\n};\n\nexport type GetUserTasksQuery = {\n getUserTasks?: {\n __typename: \"GetUserTasksResponse\",\n data?: Array< {\n __typename: \"UserTask\",\n id: string,\n task_x_business_id: string,\n title: string,\n description: string,\n priority: number,\n objectives?: Array< string | null > | null,\n created_at: string,\n updated_at: string,\n deleted_at?: string | null,\n deeplink_target_url?: string | null,\n target_button_title?: string | null,\n task_image_url?: string | null,\n parameters?: string | null,\n type?: string | null,\n } | null > | null,\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n numberPages?: number | null,\n } | null,\n};\n\nexport type GetHomepageMetricsQueryVariables = {\n getHomepageMetricsInput?: GetHomepageMetricsInput | null,\n};\n\nexport type GetHomepageMetricsQuery = {\n getHomepageMetrics?: {\n __typename: \"GetHomepageMetricsResponse\",\n data?: {\n __typename: \"HomepageMetrics\",\n total_orders?: number | null,\n average_order_value?: number | null,\n total_refunds?: number | null,\n sirge_total_conversion_value?: number | null,\n total_sales?: number | null,\n blended_roas?: number | null,\n total_amount_spent?: number | null,\n total_amount_spent_to_date?: number | null,\n total_conversion_value?: number | null,\n monthly_budget?: number | null,\n ads_generating_revenue_percentage?: number | null,\n total_facebook_orders?: number | null,\n total_google_orders?: number | null,\n total_tiktok_orders?: number | null,\n break_even_roas?: number | null,\n total_sales_percentage?: number | null,\n has_utm_not_connected_ad?: boolean | null,\n } | null,\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n } | null,\n};\n\nexport type GetSalesBreakdownQueryVariables = {\n getSalesBreakdownInput?: GetSalesBreakdownInput | null,\n};\n\nexport type GetSalesBreakdownQuery = {\n getSalesBreakdown?: {\n __typename: \"GetSalesBreakdownResponse\",\n data?: {\n __typename: \"SalesBreakdown\",\n total_sales?: {\n __typename: \"SalesBreakdownDetail\",\n value?: number | null,\n order_count?: number | null,\n percentage?: number | null,\n } | null,\n total_revenue?: {\n __typename: \"SalesBreakdownDetail\",\n value?: number | null,\n order_count?: number | null,\n percentage?: number | null,\n } | null,\n ads?: {\n __typename: \"SalesBreakdownDetail\",\n value?: number | null,\n order_count?: number | null,\n percentage?: number | null,\n } | null,\n email?: {\n __typename: \"SalesBreakdownDetail\",\n value?: number | null,\n order_count?: number | null,\n percentage?: number | null,\n } | null,\n social_media?: {\n __typename: \"SalesBreakdownDetail\",\n value?: number | null,\n order_count?: number | null,\n percentage?: number | null,\n } | null,\n others?: {\n __typename: \"SalesBreakdownDetail\",\n value?: number | null,\n order_count?: number | null,\n percentage?: number | null,\n } | null,\n } | null,\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n } | null,\n};\n\nexport type GenerateUploadUrlNewQueryVariables = {\n generateUploadUrlInput: GenerateUploadUrlInput,\n};\n\nexport type GenerateUploadUrlNewQuery = {\n generateUploadUrlNew?: {\n __typename: \"GenerateUploadUrlResponse\",\n data?: {\n __typename: \"UploadUrlResponse\",\n upload_url?: string | null,\n url?: string | null,\n } | null,\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n nextToken?: string | null,\n } | null,\n};\n\nexport type GetMemberCountByAdGroupIDsNewQueryVariables = {\n getMemberCountByAdGroupIDsInput: GetMemberCountByAdGroupIDsInputNew,\n};\n\nexport type GetMemberCountByAdGroupIDsNewQuery = {\n getMemberCountByAdGroupIDsNew?: {\n __typename: \"GetMemberCountByAdGroupIDsResponse\",\n data?: {\n __typename: \"MemberCount\",\n adSetCount?: number | null,\n adsCount?: number | null,\n } | null,\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n } | null,\n};\n\nexport type GetAllStaffAccountsNewQueryVariables = {\n getAllStaffAccountsInput?: GetAllStaffAccountsInput | null,\n};\n\nexport type GetAllStaffAccountsNewQuery = {\n getAllStaffAccountsNew?: {\n __typename: \"GetAllStaffAccountsResponsePrisma\",\n data?: Array< {\n __typename: \"StaffPrisma\",\n id: string,\n first_name: string,\n last_name: string,\n email: string,\n address1?: string | null,\n password?: string | null,\n timezone?: string | null,\n currency?: string | null,\n created_at: string,\n updated_at: string,\n deleted_at?: string | null,\n businesses?: Array< {\n __typename: \"StaffBusinessPrisma\",\n user_id: string,\n business_id: string,\n user_type: string,\n is_default_business: boolean,\n created_at: string,\n updated_at: string,\n deleted_at?: string | null,\n } > | null,\n profile_photo?: string | null,\n is_admin_user?: boolean | null,\n } | null > | null,\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n nextToken?: string | null,\n } | null,\n};\n\nexport type GetAdGroupBudgetDetailsNewQueryVariables = {\n getAdGroupBudgetDetailsInput: GetAdGroupBudgetDetailsInput,\n};\n\nexport type GetAdGroupBudgetDetailsNewQuery = {\n getAdGroupBudgetDetailsNew?: {\n __typename: \"GetAdGroupBudgetDetailsResponse\",\n data?: {\n __typename: \"AdGroupBudgetDetailsObject\",\n adGroup?: {\n __typename: \"AdGroupBudgetDetails\",\n daily_budget?: number | null,\n lifetime_budget?: number | null,\n name?: string | null,\n source_delivery_status?: string | null,\n source_secondary_status?: string | null,\n shared_budget_name?: string | null,\n } | null,\n relatedItems?: Array< {\n __typename: \"Performance\",\n id?: string | null,\n source?: string | null,\n business_id?: string | null,\n purchases_count?: number | null,\n clicks_count?: number | null,\n daily_budget?: number | null,\n lifetime_budget?: number | null,\n budget?: number | null,\n shared_budget_name?: string | null,\n campaign_name?: string | null,\n campaign_budget?: {\n __typename: \"AdGroupBudgetDetails\",\n daily_budget?: number | null,\n lifetime_budget?: number | null,\n name?: string | null,\n source_delivery_status?: string | null,\n source_secondary_status?: string | null,\n shared_budget_name?: string | null,\n } | null,\n ad_set_budget?: {\n __typename: \"AdGroupBudgetDetails\",\n daily_budget?: number | null,\n lifetime_budget?: number | null,\n name?: string | null,\n source_delivery_status?: string | null,\n source_secondary_status?: string | null,\n shared_budget_name?: string | null,\n } | null,\n ad_images?: Array< string | null > | null,\n itemType?: string | null,\n ad_image?: string | null,\n ad_set?: string | null,\n ad_set_name?: string | null,\n ad?: string | null,\n ad_name?: string | null,\n sirge_ad_id?: string | null,\n sirge_adset_id?: string | null,\n sirge_campaign_id?: string | null,\n total_title?: string | null,\n source_delivery_status?: string | null,\n source_secondary_status?: string | null,\n clicks?: number | null,\n purchases?: number | null,\n purchases_source?: number | null,\n roas?: string | null,\n cost_per_purchase?: number | null,\n amount_spent?: number | null,\n // Deprecated. Moved to PerformanceDrawerStats\n average_cpm?: number | null,\n conversion_value?: number | null,\n total_conversion_value?: number | null,\n roas_ltv?: number | null,\n sirge_clicks?: number | null,\n sirge_purchases?: number | null,\n sirge_roas?: string | null,\n sirge_cost_per_purchase?: number | null,\n sirge_total_conversion_value?: number | null,\n created?: string | null,\n updated_at?: string | null,\n ad_type?: string | null,\n utm_status?: boolean | null,\n are_all_ads_connected?: boolean | null,\n transform?: boolean | null,\n } | null > | null,\n } | null,\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n } | null,\n};\n\nexport type GetBusinessSourcesByIdNewQueryVariables = {\n getBusinessSourcesByIdInput: GetBusinessSourcesByIdInput,\n};\n\nexport type GetBusinessSourcesByIdNewQuery = {\n getBusinessSourcesByIdNew?: {\n __typename: \"GetBusinessSourcesByIdResponse\",\n data?: {\n __typename: \"GetBusinessSourcesObject\",\n sources?: Array< {\n __typename: \"SourcesBusiness\",\n source?: string | null,\n unique_visitor?: number | null,\n clicks_count?: number | null,\n purchases_count?: number | null,\n url?: string | null,\n created?: string | null,\n referer?: string | null,\n business_id?: string | null,\n } | null > | null,\n totalInfo?: {\n __typename: \"TotalInfo\",\n total_clicks?: number | null,\n total_purchases?: number | null,\n totalrecords?: number | null,\n total_visitors?: number | null,\n total_pageviews?: number | null,\n } | null,\n } | null,\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n numberPages?: number | null,\n } | null,\n};\n\nexport type GetBusinessSourcesDetailsByIdNewQueryVariables = {\n getBusinessSourcesDetailsByIdInput: GetBusinessSourcesDetailsByIdInput,\n};\n\nexport type GetBusinessSourcesDetailsByIdNewQuery = {\n getBusinessSourcesDetailsByIdNew?: {\n __typename: \"GetBusinessSourcesDetailsByIdResponse\",\n data?: Array< {\n __typename: \"SourcesBusiness\",\n source?: string | null,\n unique_visitor?: number | null,\n clicks_count?: number | null,\n purchases_count?: number | null,\n url?: string | null,\n created?: string | null,\n referer?: string | null,\n business_id?: string | null,\n } | null > | null,\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n numberPages?: number | null,\n } | null,\n};\n\nexport type GetBusinessGoogleTokenNewQueryVariables = {\n getBusinessGoogleTokenNewInput: GetBusinessGoogleTokenNewInput,\n};\n\nexport type GetBusinessGoogleTokenNewQuery = {\n getBusinessGoogleTokenNew?: {\n __typename: \"GetBusinessGoogleTokenResponse\",\n data?: string | null,\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n } | null,\n};\n\nexport type GetCurrentUserSessionsNewQueryVariables = {\n getCurrentUserSessionsInput?: GetCurrentUserSessionsInput | null,\n};\n\nexport type GetCurrentUserSessionsNewQuery = {\n getCurrentUserSessionsNew?: {\n __typename: \"GetCurrentUserSessionsResponse\",\n data?: Array< {\n __typename: \"UserSession\",\n browser_name?: string | null,\n browser_version?: string | null,\n created_at?: string | null,\n ip?: string | null,\n location?: string | null,\n os_name?: string | null,\n os_version?: string | null,\n user_id?: string | null,\n } | null > | null,\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n nextToken?: string | null,\n } | null,\n};\n\nexport type GetAllPlatformBusinessesQueryVariables = {\n getAllPlatformBusinessesInput: GetAllPlatformBusinessesInput,\n};\n\nexport type GetAllPlatformBusinessesQuery = {\n getAllPlatformBusinesses?: {\n __typename: \"GetAllPlatformBusinessesResponse\",\n data?: {\n __typename: \"GetAllPlatformBusinessesData\",\n businessList?: Array< {\n __typename: \"AllPlatformBusiness\",\n id?: string | null,\n name?: string | null,\n logo?: string | null,\n manager_email?: string | null,\n manager_name?: string | null,\n vanity_name?: string | null,\n techStackTracked?: boolean | null,\n onboarding_call_booked?: boolean | null,\n onboarding_call_completed_at?: string | null,\n } | null > | null,\n } | null,\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n numberPages?: number | null,\n } | null,\n};\n\nexport type FetchBusinessMetaDataQueryVariables = {\n fetchBusinessMetaDataInput: BusinessIdInput,\n};\n\nexport type FetchBusinessMetaDataQuery = {\n fetchBusinessMetaData?: {\n __typename: \"FetchBusinessMetaDataResponse\",\n data?: {\n __typename: \"BusinessMetaData\",\n metadata?: string | null,\n categories?: string | null,\n } | null,\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n } | null,\n};\n\nexport type GetSocialAdAccountsQueryVariables = {\n getSocialAdAccountsInput: BusinessIdWithPlatform,\n};\n\nexport type GetSocialAdAccountsQuery = {\n getSocialAdAccounts?: {\n __typename: \"SocialAdAccountsResponse\",\n data?: Array< {\n __typename: \"SocialAdAccount\",\n id?: string | null,\n currency?: string | null,\n name?: string | null,\n timezone?: string | null,\n } | null > | null,\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n } | null,\n};\n\nexport type GetStoreByShopNameQueryVariables = {\n getStoreByShopNameInput: GetStoreByShopNameInput,\n};\n\nexport type GetStoreByShopNameQuery = {\n getStoreByShopName?: {\n __typename: \"GetStoreByShopNameResponse\",\n data?: {\n __typename: \"GetStoreByShopNameResponseData\",\n id?: string | null,\n platform_id?: string | null,\n shop_name?: string | null,\n admin_email?: string | null,\n address1?: string | null,\n address2?: string | null,\n city?: string | null,\n state?: string | null,\n zip?: string | null,\n country?: string | null,\n store_url?: string | null,\n access_token?: string | null,\n script_tag_id?: string | null,\n timezone?: string | null,\n currency?: string | null,\n script_installed?: boolean | null,\n script_uninstalled_date?: string | null,\n info?: string | null,\n created_at?: string | null,\n updated_at?: string | null,\n deleted_at?: string | null,\n business?: Array< {\n __typename: \"StoresBusiness\",\n id?: string | null,\n } | null > | null,\n } | null,\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n nextToken?: string | null,\n } | null,\n};\n\nexport type GetBusinessByShopQueryVariables = {\n getBusinessByShopInput: GetBusinessByShopInput,\n};\n\nexport type GetBusinessByShopQuery = {\n getBusinessByShop?: {\n __typename: \"GetBusinessByShopResponse\",\n data?: {\n __typename: \"BusinessByShopData\",\n id?: string | null,\n store_id?: string | null,\n store_url?: string | null,\n shop_name?: string | null,\n } | null,\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n nextToken?: string | null,\n } | null,\n};\n\nexport type GetBusinessByShopUrlQueryVariables = {\n getBusinessByShopInput: GetBusinessByShopInput,\n};\n\nexport type GetBusinessByShopUrlQuery = {\n getBusinessByShopUrl?: {\n __typename: \"GetBusinessByShopResponse\",\n data?: {\n __typename: \"BusinessByShopData\",\n id?: string | null,\n store_id?: string | null,\n store_url?: string | null,\n shop_name?: string | null,\n } | null,\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n nextToken?: string | null,\n } | null,\n};\n\nexport type GetUserByEmailQueryVariables = {\n getUserByEmailInput: GetUserByEmailInput,\n};\n\nexport type GetUserByEmailQuery = {\n getUserByEmail?: {\n __typename: \"GetUserByEmailResponse\",\n data?: {\n __typename: \"GetUserByEmailResponseData\",\n id?: string | null,\n first_name?: string | null,\n last_name?: string | null,\n email?: string | null,\n address1?: string | null,\n address2?: string | null,\n city?: string | null,\n state?: string | null,\n zip?: string | null,\n country?: string | null,\n timezone?: string | null,\n currency?: string | null,\n profile_photo?: string | null,\n created_at?: string | null,\n updated_at?: string | null,\n deleted_at?: string | null,\n auto_scaling_setting?: number | null,\n } | null,\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n nextToken?: string | null,\n } | null,\n};\n\nexport type GetMiniShopByIdQueryVariables = {\n getMiniShopByIdInput: GetMiniShopByIdInput,\n};\n\nexport type GetMiniShopByIdQuery = {\n getMiniShopById?: {\n __typename: \"GetMiniShopByIdResponse\",\n data?: {\n __typename: \"MiniShopPublic\",\n id?: string | null,\n shop_name?: string | null,\n shop_image?: string | null,\n shop_url?: string | null,\n business_id?: string | null,\n top_products?: string | null,\n deleted_at?: string | null,\n updated_at?: string | null,\n created_at?: string | null,\n } | null,\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n nextToken?: string | null,\n } | null,\n};\n\nexport type CheckUserExistsByShopUrlQueryVariables = {\n checkUserExistsByShopUrlInput: CheckUserExistsByShopUrlInput,\n};\n\nexport type CheckUserExistsByShopUrlQuery = {\n checkUserExistsByShopUrl?: {\n __typename: \"CheckUserExistsByShopUrlResponse\",\n data?: boolean | null,\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n nextToken?: string | null,\n } | null,\n};\n\nexport type GetUserStoreSessionsQueryVariables = {\n getUserStoreSessionsInput: GetUserStoreSessionsInput,\n};\n\nexport type GetUserStoreSessionsQuery = {\n getUserStoreSessions?: {\n __typename: \"GetUserStoreSessionsResponse\",\n data?: {\n __typename: \"GetUserStoreSessionsResponseData\",\n shop?: string | null,\n state?: string | null,\n isOnline?: boolean | null,\n scope?: string | null,\n expires?: string | null,\n accessToken?: string | null,\n } | null,\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n nextToken?: string | null,\n } | null,\n};\n\nexport type GetStoreDataForCallbackAuthQueryVariables = {\n getStoreDataForCallbackAuthInput?: GetStoreDataForCallbackAuthInput | null,\n};\n\nexport type GetStoreDataForCallbackAuthQuery = {\n getStoreDataForCallbackAuth?: {\n __typename: \"GetStoreDataForCallbackAuthResponse\",\n data?: {\n __typename: \"StoreDataForCallbackAuth\",\n first_name?: string | null,\n last_name?: string | null,\n email?: string | null,\n is_installed?: boolean | null,\n business_id?: string | null,\n user_exists?: boolean | null,\n } | null,\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n nextToken?: string | null,\n } | null,\n};\n\nexport type GetStaffByIdNewQueryVariables = {\n getStaffByIdInput: GetStaffByIdInput,\n};\n\nexport type GetStaffByIdNewQuery = {\n getStaffByIdNew?: {\n __typename: \"GetUserResponsePrisma\",\n data?: {\n __typename: \"UserPrisma\",\n id: string,\n first_name: string,\n last_name: string,\n email: string,\n address1?: string | null,\n password?: string | null,\n timezone?: string | null,\n currency?: string | null,\n created_at: string,\n updated_at: string,\n deleted_at?: string | null,\n businesses?: Array< {\n __typename: \"UserXBusinessPrisma\",\n user_id: string,\n business_id: string,\n business: {\n __typename: \"BusinessPrisma\",\n id: string,\n store_id: string,\n name: string,\n status: string,\n logo?: string | null,\n vanity_name: string,\n reminder_status?: boolean | null,\n show_budget_confirmation?: boolean | null,\n monthly_budget: number,\n business_goal?: string | null,\n campaign_roas_goal?: string | null,\n adset_roas_goal?: string | null,\n ad_roas_goal?: string | null,\n created_at: string,\n updated_at: string,\n deleted_at?: string | null,\n ad_account_settings: Array< {\n __typename: \"AdAccountSettingsPrisma\",\n id: string,\n business_id: string,\n ad_platform_id: string,\n premium_page_views: number,\n external_platform?: string | null,\n active_campaign_count: number,\n paused_campaign_count: number,\n social_account_id?: string | null,\n social_account_name?: string | null,\n social_account_currency?: string | null,\n social_account_timezone?: string | null,\n access_token?: string | null,\n utm_count: number,\n social_integration?: string | null,\n conversion_api_enabled?: string | null,\n pixel_id?: string | null,\n social_refresh_token?: string | null,\n updateKey?: string | null,\n last_data_refreshed?: string | null,\n created_at: string,\n updated_at: string,\n deleted_at?: string | null,\n ad_platform: {\n __typename: \"AdPlatformPrisma\",\n id: string,\n name: string,\n internal_source_name: string,\n dark_theme_image_url?: string | null,\n light_theme_image_url: string,\n status: string,\n },\n } >,\n subscriptions: Array< {\n __typename: \"SubscriptionPrisma\",\n id: string,\n business_id: string,\n subscription_plan_code?: string | null,\n status: string,\n processor?: string | null,\n store_subscription_body?: string | null,\n store_subscription_id?: string | null,\n promo_code_id?: string | null,\n trial_start?: string | null,\n trial_end?: string | null,\n trial_left?: number | null,\n current_billing_period_start?: string | null,\n current_billing_period_end?: string | null,\n subscription_end_date?: string | null,\n business_limit?: number | null,\n staff_limit?: number | null,\n subscription_charges?: Array< {\n __typename: \"SubscriptionChargesPrisma\",\n id: string,\n business_id: string,\n subscription_id?: string | null,\n store_revenue: number,\n amount_billed: number,\n created_at: string,\n updated_at: string,\n deleted_at?: string | null,\n } | null > | null,\n promo_codes?: {\n __typename: \"PromoCodePrisma\",\n id?: string | null,\n code?: string | null,\n type?: string | null,\n status?: string | null,\n duration?: number | null,\n amount?: number | null,\n created_at?: string | null,\n updated_at?: string | null,\n deleted_at?: string | null,\n } | null,\n current_revenue?: number | null,\n created_at: string,\n updated_at: string,\n deleted_at?: string | null,\n } >,\n store?: {\n __typename: \"StorePrisma\",\n id?: string | null,\n shop_name?: string | null,\n address1?: string | null,\n address2?: string | null,\n city?: string | null,\n state?: string | null,\n zip?: string | null,\n country?: string | null,\n store_url?: string | null,\n timezone?: string | null,\n currency?: string | null,\n created_at?: string | null,\n updated_at?: string | null,\n deleted_at?: string | null,\n } | null,\n completed_onboarding_call?: boolean | null,\n has_visitor_session?: boolean | null,\n business_roas_goals?: Array< {\n __typename: \"BusinessRoasGoalPrisma\",\n id: string,\n roas_goal: number,\n ad_platform_id: string,\n ad_platforms: {\n __typename: \"AdPlatformPrisma\",\n id: string,\n name: string,\n internal_source_name: string,\n dark_theme_image_url?: string | null,\n light_theme_image_url: string,\n status: string,\n },\n } | null > | null,\n tour_completed_at?: string | null,\n tour_skipped_at?: string | null,\n feature_flags?: Array< string | null > | null,\n onboarding_call_completed_at?: string | null,\n pinned_inspirations?: Array< string | null > | null,\n },\n user_type: string,\n is_default_business: boolean,\n created_at: string,\n updated_at: string,\n deleted_at?: string | null,\n } > | null,\n profile_photo?: string | null,\n is_admin_user?: boolean | null,\n link_tracking_visit_count?: number | null,\n link_tracking_view_status?: string | null,\n growth_hub_clicked_at?: string | null,\n inspirations_tutorial_finished_at?: string | null,\n mini_shop_tutorial_finished_at?: string | null,\n } | null,\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n nextToken?: string | null,\n } | null,\n};\n\nexport type GetUserNewQueryVariables = {\n getUserInput?: GetUserInput | null,\n};\n\nexport type GetUserNewQuery = {\n getUserNew?: {\n __typename: \"GetUserResponsePrisma\",\n data?: {\n __typename: \"UserPrisma\",\n id: string,\n first_name: string,\n last_name: string,\n email: string,\n address1?: string | null,\n password?: string | null,\n timezone?: string | null,\n currency?: string | null,\n created_at: string,\n updated_at: string,\n deleted_at?: string | null,\n businesses?: Array< {\n __typename: \"UserXBusinessPrisma\",\n user_id: string,\n business_id: string,\n business: {\n __typename: \"BusinessPrisma\",\n id: string,\n store_id: string,\n name: string,\n status: string,\n logo?: string | null,\n vanity_name: string,\n reminder_status?: boolean | null,\n show_budget_confirmation?: boolean | null,\n monthly_budget: number,\n business_goal?: string | null,\n campaign_roas_goal?: string | null,\n adset_roas_goal?: string | null,\n ad_roas_goal?: string | null,\n created_at: string,\n updated_at: string,\n deleted_at?: string | null,\n ad_account_settings: Array< {\n __typename: \"AdAccountSettingsPrisma\",\n id: string,\n business_id: string,\n ad_platform_id: string,\n premium_page_views: number,\n external_platform?: string | null,\n active_campaign_count: number,\n paused_campaign_count: number,\n social_account_id?: string | null,\n social_account_name?: string | null,\n social_account_currency?: string | null,\n social_account_timezone?: string | null,\n access_token?: string | null,\n utm_count: number,\n social_integration?: string | null,\n conversion_api_enabled?: string | null,\n pixel_id?: string | null,\n social_refresh_token?: string | null,\n updateKey?: string | null,\n last_data_refreshed?: string | null,\n created_at: string,\n updated_at: string,\n deleted_at?: string | null,\n ad_platform: {\n __typename: \"AdPlatformPrisma\",\n id: string,\n name: string,\n internal_source_name: string,\n dark_theme_image_url?: string | null,\n light_theme_image_url: string,\n status: string,\n },\n } >,\n subscriptions: Array< {\n __typename: \"SubscriptionPrisma\",\n id: string,\n business_id: string,\n subscription_plan_code?: string | null,\n status: string,\n processor?: string | null,\n store_subscription_body?: string | null,\n store_subscription_id?: string | null,\n promo_code_id?: string | null,\n trial_start?: string | null,\n trial_end?: string | null,\n trial_left?: number | null,\n current_billing_period_start?: string | null,\n current_billing_period_end?: string | null,\n subscription_end_date?: string | null,\n business_limit?: number | null,\n staff_limit?: number | null,\n subscription_charges?: Array< {\n __typename: \"SubscriptionChargesPrisma\",\n id: string,\n business_id: string,\n subscription_id?: string | null,\n store_revenue: number,\n amount_billed: number,\n created_at: string,\n updated_at: string,\n deleted_at?: string | null,\n } | null > | null,\n promo_codes?: {\n __typename: \"PromoCodePrisma\",\n id?: string | null,\n code?: string | null,\n type?: string | null,\n status?: string | null,\n duration?: number | null,\n amount?: number | null,\n created_at?: string | null,\n updated_at?: string | null,\n deleted_at?: string | null,\n } | null,\n current_revenue?: number | null,\n created_at: string,\n updated_at: string,\n deleted_at?: string | null,\n } >,\n store?: {\n __typename: \"StorePrisma\",\n id?: string | null,\n shop_name?: string | null,\n address1?: string | null,\n address2?: string | null,\n city?: string | null,\n state?: string | null,\n zip?: string | null,\n country?: string | null,\n store_url?: string | null,\n timezone?: string | null,\n currency?: string | null,\n created_at?: string | null,\n updated_at?: string | null,\n deleted_at?: string | null,\n } | null,\n completed_onboarding_call?: boolean | null,\n has_visitor_session?: boolean | null,\n business_roas_goals?: Array< {\n __typename: \"BusinessRoasGoalPrisma\",\n id: string,\n roas_goal: number,\n ad_platform_id: string,\n ad_platforms: {\n __typename: \"AdPlatformPrisma\",\n id: string,\n name: string,\n internal_source_name: string,\n dark_theme_image_url?: string | null,\n light_theme_image_url: string,\n status: string,\n },\n } | null > | null,\n tour_completed_at?: string | null,\n tour_skipped_at?: string | null,\n feature_flags?: Array< string | null > | null,\n onboarding_call_completed_at?: string | null,\n pinned_inspirations?: Array< string | null > | null,\n },\n user_type: string,\n is_default_business: boolean,\n created_at: string,\n updated_at: string,\n deleted_at?: string | null,\n } > | null,\n profile_photo?: string | null,\n is_admin_user?: boolean | null,\n link_tracking_visit_count?: number | null,\n link_tracking_view_status?: string | null,\n growth_hub_clicked_at?: string | null,\n inspirations_tutorial_finished_at?: string | null,\n mini_shop_tutorial_finished_at?: string | null,\n } | null,\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n nextToken?: string | null,\n } | null,\n};\n\nexport type GetPerformanceDetailsNewQueryVariables = {\n getPerformanceDetailsInput?: GetPerformanceDetailsInput | null,\n};\n\nexport type GetPerformanceDetailsNewQuery = {\n getPerformanceDetailsNew?: {\n __typename: \"GetPerformanceDetailsResponseNew\",\n data?: {\n __typename: \"GetBusinessPerformanceDetailsNew\",\n performance?: Array< {\n __typename: \"PerformanceNew\",\n id: string,\n source?: string | null,\n business_id: string,\n purchases_count?: number | null,\n clicks_count?: number | null,\n daily_budget?: number | null,\n lifetime_budget?: number | null,\n budget?: number | null,\n shared_budget_name?: string | null,\n campaign_name?: string | null,\n campaign_budget?: number | null,\n ad_set_budget?: number | null,\n ad_images?: Array< string | null > | null,\n itemType?: string | null,\n ad_image?: string | null,\n ad_set?: string | null,\n ad_set_name?: string | null,\n ad?: string | null,\n ad_name?: string | null,\n sirge_ad_id?: string | null,\n sirge_adset_id?: string | null,\n sirge_campaign_id?: string | null,\n total_title?: string | null,\n source_delivery_status?: string | null,\n source_secondary_status?: string | null,\n clicks?: number | null,\n purchases?: number | null,\n purchases_source?: number | null,\n roas?: string | null,\n cost_per_purchase?: number | null,\n amount_spent?: number | null,\n // Deprecated. Moved to PerformanceDrawerStats\n average_cpm?: number | null,\n conversion_value?: number | null,\n total_conversion_value?: number | null,\n prev_total_conversion_value?: number | null,\n roas_ltv?: number | null,\n sirge_clicks?: number | null,\n sirge_purchases?: number | null,\n sirge_roas?: string | null,\n sirge_cost_per_purchase?: number | null,\n sirge_total_conversion_value?: number | null,\n prev_sirge_total_conversion_value?: number | null,\n created?: string | null,\n updated_at?: string | null,\n ad_type?: string | null,\n utm_status?: boolean | null,\n are_all_ads_connected?: boolean | null,\n transform?: boolean | null,\n } | null > | null,\n summary?: {\n __typename: \"PerformanceSummary\",\n amount_spent?: number | null,\n clicks?: number | null,\n purchases?: number | null,\n purchases_source?: number | null,\n cost_per_purchase?: number | null,\n total_conversion_value?: number | null,\n prev_total_conversion_value?: number | null,\n roas?: string | null,\n ft_clicks?: number | null,\n ft_purchases?: number | null,\n ft_cost_per_purchase?: number | null,\n ft_total_conversion_value?: number | null,\n prev_ft_total_conversion_value: number,\n ft_roas_ltv?: number | null,\n ft_roas?: string | null,\n ft_average_cpm?: number | null,\n number_of_records?: number | null,\n } | null,\n isRoasGoalsSet?: boolean | null,\n } | null,\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n nextToken?: string | null,\n numberPages?: number | null,\n } | null,\n};\n\nexport type GetBusinessConnectionsNewQueryVariables = {\n getBusinessConnectionsInput: GetBusinessConnectionsInput,\n};\n\nexport type GetBusinessConnectionsNewQuery = {\n getBusinessConnectionsNew?: {\n __typename: \"GetBusinessConnectionsResponse\",\n data?: {\n __typename: \"BusinessConnection\",\n facebook_ad_account_id?: string | null,\n facebook_ad_account_name?: string | null,\n script_installed?: boolean | null,\n shopify_store?: string | null,\n tik_tok_ad_account_id?: string | null,\n tik_tok_ad_account_name?: string | null,\n } | null,\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n nextToken?: string | null,\n } | null,\n};\n\nexport type GetPurchasesByBusinessNewQueryVariables = {\n getPurchaseByBusinessInput: GetPurchaseByBusinessInput,\n};\n\nexport type GetPurchasesByBusinessNewQuery = {\n getPurchasesByBusinessNew?: {\n __typename: \"GetPurchasesByBusinessResponseNew\",\n data?: Array< {\n __typename: \"PurchaseByBusiness\",\n customer_name?: string | null,\n customer_id?: string | null,\n created?: string | null,\n purchases_count?: number | null,\n conversion_value?: number | null,\n } | null > | null,\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n nextToken?: string | null,\n numberPages?: number | null,\n } | null,\n};\n\nexport type GetUserDetailsQueryVariables = {\n getUserDetailsInput: GetUserDetailsInput,\n};\n\nexport type GetUserDetailsQuery = {\n getUserDetails?: {\n __typename: \"GetUserDetailsResponse\",\n data?: {\n __typename: \"UserDetails\",\n business?: {\n __typename: \"BusinessPrisma\",\n id: string,\n store_id: string,\n name: string,\n status: string,\n logo?: string | null,\n vanity_name: string,\n reminder_status?: boolean | null,\n show_budget_confirmation?: boolean | null,\n monthly_budget: number,\n business_goal?: string | null,\n campaign_roas_goal?: string | null,\n adset_roas_goal?: string | null,\n ad_roas_goal?: string | null,\n created_at: string,\n updated_at: string,\n deleted_at?: string | null,\n ad_account_settings: Array< {\n __typename: \"AdAccountSettingsPrisma\",\n id: string,\n business_id: string,\n ad_platform_id: string,\n premium_page_views: number,\n external_platform?: string | null,\n active_campaign_count: number,\n paused_campaign_count: number,\n social_account_id?: string | null,\n social_account_name?: string | null,\n social_account_currency?: string | null,\n social_account_timezone?: string | null,\n access_token?: string | null,\n utm_count: number,\n social_integration?: string | null,\n conversion_api_enabled?: string | null,\n pixel_id?: string | null,\n social_refresh_token?: string | null,\n updateKey?: string | null,\n last_data_refreshed?: string | null,\n created_at: string,\n updated_at: string,\n deleted_at?: string | null,\n ad_platform: {\n __typename: \"AdPlatformPrisma\",\n id: string,\n name: string,\n internal_source_name: string,\n dark_theme_image_url?: string | null,\n light_theme_image_url: string,\n status: string,\n },\n } >,\n subscriptions: Array< {\n __typename: \"SubscriptionPrisma\",\n id: string,\n business_id: string,\n subscription_plan_code?: string | null,\n status: string,\n processor?: string | null,\n store_subscription_body?: string | null,\n store_subscription_id?: string | null,\n promo_code_id?: string | null,\n trial_start?: string | null,\n trial_end?: string | null,\n trial_left?: number | null,\n current_billing_period_start?: string | null,\n current_billing_period_end?: string | null,\n subscription_end_date?: string | null,\n business_limit?: number | null,\n staff_limit?: number | null,\n subscription_charges?: Array< {\n __typename: \"SubscriptionChargesPrisma\",\n id: string,\n business_id: string,\n subscription_id?: string | null,\n store_revenue: number,\n amount_billed: number,\n created_at: string,\n updated_at: string,\n deleted_at?: string | null,\n } | null > | null,\n promo_codes?: {\n __typename: \"PromoCodePrisma\",\n id?: string | null,\n code?: string | null,\n type?: string | null,\n status?: string | null,\n duration?: number | null,\n amount?: number | null,\n created_at?: string | null,\n updated_at?: string | null,\n deleted_at?: string | null,\n } | null,\n current_revenue?: number | null,\n created_at: string,\n updated_at: string,\n deleted_at?: string | null,\n } >,\n store?: {\n __typename: \"StorePrisma\",\n id?: string | null,\n shop_name?: string | null,\n address1?: string | null,\n address2?: string | null,\n city?: string | null,\n state?: string | null,\n zip?: string | null,\n country?: string | null,\n store_url?: string | null,\n timezone?: string | null,\n currency?: string | null,\n created_at?: string | null,\n updated_at?: string | null,\n deleted_at?: string | null,\n } | null,\n completed_onboarding_call?: boolean | null,\n has_visitor_session?: boolean | null,\n business_roas_goals?: Array< {\n __typename: \"BusinessRoasGoalPrisma\",\n id: string,\n roas_goal: number,\n ad_platform_id: string,\n ad_platforms: {\n __typename: \"AdPlatformPrisma\",\n id: string,\n name: string,\n internal_source_name: string,\n dark_theme_image_url?: string | null,\n light_theme_image_url: string,\n status: string,\n },\n } | null > | null,\n tour_completed_at?: string | null,\n tour_skipped_at?: string | null,\n feature_flags?: Array< string | null > | null,\n onboarding_call_completed_at?: string | null,\n pinned_inspirations?: Array< string | null > | null,\n } | null,\n businesses?: {\n __typename: \"BusinessesPrisma\",\n business_active_count?: number | null,\n business_count?: number | null,\n business_list?: Array< {\n __typename: \"UserXBusinessPrisma\",\n user_id: string,\n business_id: string,\n business: {\n __typename: \"BusinessPrisma\",\n id: string,\n store_id: string,\n name: string,\n status: string,\n logo?: string | null,\n vanity_name: string,\n reminder_status?: boolean | null,\n show_budget_confirmation?: boolean | null,\n monthly_budget: number,\n business_goal?: string | null,\n campaign_roas_goal?: string | null,\n adset_roas_goal?: string | null,\n ad_roas_goal?: string | null,\n created_at: string,\n updated_at: string,\n deleted_at?: string | null,\n ad_account_settings: Array< {\n __typename: \"AdAccountSettingsPrisma\",\n id: string,\n business_id: string,\n ad_platform_id: string,\n premium_page_views: number,\n external_platform?: string | null,\n active_campaign_count: number,\n paused_campaign_count: number,\n social_account_id?: string | null,\n social_account_name?: string | null,\n social_account_currency?: string | null,\n social_account_timezone?: string | null,\n access_token?: string | null,\n utm_count: number,\n social_integration?: string | null,\n conversion_api_enabled?: string | null,\n pixel_id?: string | null,\n social_refresh_token?: string | null,\n updateKey?: string | null,\n last_data_refreshed?: string | null,\n created_at: string,\n updated_at: string,\n deleted_at?: string | null,\n ad_platform: {\n __typename: \"AdPlatformPrisma\",\n id: string,\n name: string,\n internal_source_name: string,\n dark_theme_image_url?: string | null,\n light_theme_image_url: string,\n status: string,\n },\n } >,\n subscriptions: Array< {\n __typename: \"SubscriptionPrisma\",\n id: string,\n business_id: string,\n subscription_plan_code?: string | null,\n status: string,\n processor?: string | null,\n store_subscription_body?: string | null,\n store_subscription_id?: string | null,\n promo_code_id?: string | null,\n trial_start?: string | null,\n trial_end?: string | null,\n trial_left?: number | null,\n current_billing_period_start?: string | null,\n current_billing_period_end?: string | null,\n subscription_end_date?: string | null,\n business_limit?: number | null,\n staff_limit?: number | null,\n subscription_charges?: Array< {\n __typename: \"SubscriptionChargesPrisma\",\n id: string,\n business_id: string,\n subscription_id?: string | null,\n store_revenue: number,\n amount_billed: number,\n created_at: string,\n updated_at: string,\n deleted_at?: string | null,\n } | null > | null,\n promo_codes?: {\n __typename: \"PromoCodePrisma\",\n id?: string | null,\n code?: string | null,\n type?: string | null,\n status?: string | null,\n duration?: number | null,\n amount?: number | null,\n created_at?: string | null,\n updated_at?: string | null,\n deleted_at?: string | null,\n } | null,\n current_revenue?: number | null,\n created_at: string,\n updated_at: string,\n deleted_at?: string | null,\n } >,\n store?: {\n __typename: \"StorePrisma\",\n id?: string | null,\n shop_name?: string | null,\n address1?: string | null,\n address2?: string | null,\n city?: string | null,\n state?: string | null,\n zip?: string | null,\n country?: string | null,\n store_url?: string | null,\n timezone?: string | null,\n currency?: string | null,\n created_at?: string | null,\n updated_at?: string | null,\n deleted_at?: string | null,\n } | null,\n completed_onboarding_call?: boolean | null,\n has_visitor_session?: boolean | null,\n business_roas_goals?: Array< {\n __typename: \"BusinessRoasGoalPrisma\",\n id: string,\n roas_goal: number,\n ad_platform_id: string,\n ad_platforms: {\n __typename: \"AdPlatformPrisma\",\n id: string,\n name: string,\n internal_source_name: string,\n dark_theme_image_url?: string | null,\n light_theme_image_url: string,\n status: string,\n },\n } | null > | null,\n tour_completed_at?: string | null,\n tour_skipped_at?: string | null,\n feature_flags?: Array< string | null > | null,\n onboarding_call_completed_at?: string | null,\n pinned_inspirations?: Array< string | null > | null,\n },\n user_type: string,\n is_default_business: boolean,\n created_at: string,\n updated_at: string,\n deleted_at?: string | null,\n } | null > | null,\n } | null,\n status?: {\n __typename: \"BusinessActiveStatus\",\n active?: boolean | null,\n } | null,\n user?: {\n __typename: \"UserPrisma\",\n id: string,\n first_name: string,\n last_name: string,\n email: string,\n address1?: string | null,\n password?: string | null,\n timezone?: string | null,\n currency?: string | null,\n created_at: string,\n updated_at: string,\n deleted_at?: string | null,\n businesses?: Array< {\n __typename: \"UserXBusinessPrisma\",\n user_id: string,\n business_id: string,\n business: {\n __typename: \"BusinessPrisma\",\n id: string,\n store_id: string,\n name: string,\n status: string,\n logo?: string | null,\n vanity_name: string,\n reminder_status?: boolean | null,\n show_budget_confirmation?: boolean | null,\n monthly_budget: number,\n business_goal?: string | null,\n campaign_roas_goal?: string | null,\n adset_roas_goal?: string | null,\n ad_roas_goal?: string | null,\n created_at: string,\n updated_at: string,\n deleted_at?: string | null,\n ad_account_settings: Array< {\n __typename: \"AdAccountSettingsPrisma\",\n id: string,\n business_id: string,\n ad_platform_id: string,\n premium_page_views: number,\n external_platform?: string | null,\n active_campaign_count: number,\n paused_campaign_count: number,\n social_account_id?: string | null,\n social_account_name?: string | null,\n social_account_currency?: string | null,\n social_account_timezone?: string | null,\n access_token?: string | null,\n utm_count: number,\n social_integration?: string | null,\n conversion_api_enabled?: string | null,\n pixel_id?: string | null,\n social_refresh_token?: string | null,\n updateKey?: string | null,\n last_data_refreshed?: string | null,\n created_at: string,\n updated_at: string,\n deleted_at?: string | null,\n ad_platform: {\n __typename: \"AdPlatformPrisma\",\n id: string,\n name: string,\n internal_source_name: string,\n dark_theme_image_url?: string | null,\n light_theme_image_url: string,\n status: string,\n },\n } >,\n subscriptions: Array< {\n __typename: \"SubscriptionPrisma\",\n id: string,\n business_id: string,\n subscription_plan_code?: string | null,\n status: string,\n processor?: string | null,\n store_subscription_body?: string | null,\n store_subscription_id?: string | null,\n promo_code_id?: string | null,\n trial_start?: string | null,\n trial_end?: string | null,\n trial_left?: number | null,\n current_billing_period_start?: string | null,\n current_billing_period_end?: string | null,\n subscription_end_date?: string | null,\n business_limit?: number | null,\n staff_limit?: number | null,\n subscription_charges?: Array< {\n __typename: \"SubscriptionChargesPrisma\",\n id: string,\n business_id: string,\n subscription_id?: string | null,\n store_revenue: number,\n amount_billed: number,\n created_at: string,\n updated_at: string,\n deleted_at?: string | null,\n } | null > | null,\n promo_codes?: {\n __typename: \"PromoCodePrisma\",\n id?: string | null,\n code?: string | null,\n type?: string | null,\n status?: string | null,\n duration?: number | null,\n amount?: number | null,\n created_at?: string | null,\n updated_at?: string | null,\n deleted_at?: string | null,\n } | null,\n current_revenue?: number | null,\n created_at: string,\n updated_at: string,\n deleted_at?: string | null,\n } >,\n store?: {\n __typename: \"StorePrisma\",\n id?: string | null,\n shop_name?: string | null,\n address1?: string | null,\n address2?: string | null,\n city?: string | null,\n state?: string | null,\n zip?: string | null,\n country?: string | null,\n store_url?: string | null,\n timezone?: string | null,\n currency?: string | null,\n created_at?: string | null,\n updated_at?: string | null,\n deleted_at?: string | null,\n } | null,\n completed_onboarding_call?: boolean | null,\n has_visitor_session?: boolean | null,\n business_roas_goals?: Array< {\n __typename: \"BusinessRoasGoalPrisma\",\n id: string,\n roas_goal: number,\n ad_platform_id: string,\n ad_platforms: {\n __typename: \"AdPlatformPrisma\",\n id: string,\n name: string,\n internal_source_name: string,\n dark_theme_image_url?: string | null,\n light_theme_image_url: string,\n status: string,\n },\n } | null > | null,\n tour_completed_at?: string | null,\n tour_skipped_at?: string | null,\n feature_flags?: Array< string | null > | null,\n onboarding_call_completed_at?: string | null,\n pinned_inspirations?: Array< string | null > | null,\n },\n user_type: string,\n is_default_business: boolean,\n created_at: string,\n updated_at: string,\n deleted_at?: string | null,\n } > | null,\n profile_photo?: string | null,\n is_admin_user?: boolean | null,\n link_tracking_visit_count?: number | null,\n link_tracking_view_status?: string | null,\n growth_hub_clicked_at?: string | null,\n inspirations_tutorial_finished_at?: string | null,\n mini_shop_tutorial_finished_at?: string | null,\n } | null,\n } | null,\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n nextToken?: string | null,\n } | null,\n};\n\nexport type GetUserFacebookAccountNewQueryVariables = {\n getUserFacebookAccountInput: GetUserFacebookAccountInput,\n};\n\nexport type GetUserFacebookAccountNewQuery = {\n getUserFacebookAccountNew?: {\n __typename: \"GetUserFacebookAccountResponse\",\n data?: {\n __typename: \"FacebookAccount\",\n id?: string | null,\n name?: string | null,\n } | null,\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n nextToken?: string | null,\n } | null,\n};\n\nexport type GetDiscountCodeStatusNewQueryVariables = {\n getDiscountCodeStatusInput: GetDiscountCodeStatusInput,\n};\n\nexport type GetDiscountCodeStatusNewQuery = {\n getDiscountCodeStatusNew?: {\n __typename: \"GetDiscountCodeStatusNewResponse\",\n data?: {\n __typename: \"PromoCode\",\n id?: string | null,\n code?: string | null,\n type?: string | null,\n status?: string | null,\n duration?: number | null,\n amount?: number | null,\n created_at?: string | null,\n updated_at?: string | null,\n deleted_at?: string | null,\n } | null,\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n nextToken?: string | null,\n } | null,\n};\n\nexport type GetKeyMetricsStatisticsGraphQueryVariables = {\n getKeyMetricsAnalyticsStatisticsInput: GetKeyMetricsAnalyticsStatisticsInput,\n};\n\nexport type GetKeyMetricsStatisticsGraphQuery = {\n getKeyMetricsStatisticsGraph?: {\n __typename: \"GetKeyMetricsStatisticsGraphResponse\",\n data?: {\n __typename: \"StatisticsGraphData\",\n orders?: Array< {\n __typename: \"StatisticGraphDetail\",\n date?: string | null,\n value?: number | null,\n } | null > | null,\n amount_spent?: Array< {\n __typename: \"StatisticGraphDetail\",\n date?: string | null,\n value?: number | null,\n } | null > | null,\n store_visits?: Array< {\n __typename: \"StatisticGraphDetail\",\n date?: string | null,\n value?: number | null,\n } | null > | null,\n total_sales?: Array< {\n __typename: \"StatisticGraphDetail\",\n date?: string | null,\n value?: number | null,\n } | null > | null,\n ad_clicks?: Array< {\n __typename: \"StatisticGraphDetail\",\n date?: string | null,\n value?: number | null,\n } | null > | null,\n } | null,\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n nextToken?: string | null,\n } | null,\n};\n\nexport type GetShopifyScopesStatusNewQueryVariables = {\n};\n\nexport type GetShopifyScopesStatusNewQuery = {\n getShopifyScopesStatusNew?: {\n __typename: \"GetShopifyScopesStatusResponse\",\n data?: boolean | null,\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n nextToken?: string | null,\n } | null,\n};\n\nexport type GetAccountsCampaignsNewQueryVariables = {\n getAccountsCampaignsInput?: GetAccountsCampaignsInput | null,\n};\n\nexport type GetAccountsCampaignsNewQuery = {\n getAccountsCampaignsNew?: {\n __typename: \"GetAccountsCampaignsResponse\",\n data?: {\n __typename: \"GetBusinessAccountsCampaigns\",\n facebook?: Array< {\n __typename: \"ItemSocialMediaIntegration\",\n id?: string | null,\n name?: string | null,\n status?: string | null,\n utm_status?: boolean | null,\n utm_injection_supported?: boolean | null,\n } | null > | null,\n tiktok?: Array< {\n __typename: \"ItemSocialMediaIntegration\",\n id?: string | null,\n name?: string | null,\n status?: string | null,\n utm_status?: boolean | null,\n utm_injection_supported?: boolean | null,\n } | null > | null,\n google?: Array< {\n __typename: \"ItemSocialMediaIntegration\",\n id?: string | null,\n name?: string | null,\n status?: string | null,\n utm_status?: boolean | null,\n utm_injection_supported?: boolean | null,\n } | null > | null,\n } | null,\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n nextToken?: string | null,\n } | null,\n};\n\nexport type GetPerformanceDrawerBasicDetailsNewQueryVariables = {\n getPerformanceDrawerBasicDetailsInput?: GetPerformanceDrawerBasicDetailsInput | null,\n};\n\nexport type GetPerformanceDrawerBasicDetailsNewQuery = {\n getPerformanceDrawerBasicDetailsNew?: {\n __typename: \"PerformanceDrawerBasicDetailsResponse\",\n data?: {\n __typename: \"PerformanceDrawerBasicDetails\",\n id: string,\n name?: string | null,\n campaign_name?: string | null,\n source?: string | null,\n source_delivery_status?: string | null,\n source_secondary_status?: string | null,\n no_of_ads?: number | null,\n no_of_adsets?: number | null,\n utm_status?: boolean | null,\n are_all_ads_connected?: boolean | null,\n daily_budget?: number | null,\n shared_budget_name?: string | null,\n lifetime_budget?: number | null,\n campaign_budget?: number | null,\n ad_set_budget?: number | null,\n ad_images?: Array< string | null > | null,\n ad_type?: string | null,\n created?: string | null,\n } | null,\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n nextToken?: string | null,\n numberPages?: number | null,\n } | null,\n};\n\nexport type GetPerformanceDrawerStatsNewQueryVariables = {\n getPerformanceDrawerStatsInput?: GetPerformanceDrawerStatsInput | null,\n};\n\nexport type GetPerformanceDrawerStatsNewQuery = {\n getPerformanceDrawerStatsNew?: {\n __typename: \"PerformanceDrawerStatsResponse\",\n data?: {\n __typename: \"PerformanceDrawerStats\",\n total_amount_spent?: number | null,\n total_roas?: number | null,\n total_conversion?: number | null,\n total_purchases?: number | null,\n average_cpm?: number | null,\n total_clicks?: number | null,\n cost_per_click?: number | null,\n total_impressions?: number | null,\n prev_total_amount_spent?: number | null,\n prev_total_roas?: number | null,\n prev_total_cost_per_click?: number | null,\n prev_total_conversion?: number | null,\n graph?: Array< {\n __typename: \"PerformanceDrawerStatsGraph\",\n total_amount_spent?: number | null,\n total_conversion_value?: number | null,\n created?: string | null,\n } | null > | null,\n } | null,\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n nextToken?: string | null,\n numberPages?: number | null,\n } | null,\n};\n\nexport type GenerateTrackableCopyPathNewQueryVariables = {\n generateTrackableCopyParams: BusinessIdInput,\n};\n\nexport type GenerateTrackableCopyPathNewQuery = {\n generateTrackableCopyPathNew?: {\n __typename: \"GenerateTrackableCopyPathResponse\",\n data?: {\n __typename: \"GeneratedPath\",\n path?: string | null,\n } | null,\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n nextToken?: string | null,\n } | null,\n};\n\nexport type GetTrackableCopiesNewQueryVariables = {\n getTrackableCopiesInput: GetTrackableCopiesInput,\n};\n\nexport type GetTrackableCopiesNewQuery = {\n getTrackableCopiesNew?: {\n __typename: \"GetTrackableCopiesResponse\",\n data?: {\n __typename: \"GetTrackableCopyWithSummary\",\n rows?: Array< {\n __typename: \"TrackableCopy\",\n id: string,\n name: string,\n description?: string | null,\n type?: string | null,\n short_code: string,\n destination_url: string,\n url_position?: string | null,\n business_id?: string | null,\n created?: string | null,\n stats?: {\n __typename: \"TrackableCopyStats\",\n clicks?: number | null,\n purchases?: number | null,\n revenue?: number | null,\n prev_clicks?: number | null,\n } | null,\n is_onboarding_default?: boolean | null,\n is_mini_shop?: boolean | null,\n } > | null,\n summary?: {\n __typename: \"TrackableCopySummary\",\n clicks?: number | null,\n purchases?: number | null,\n revenue?: number | null,\n total_row?: number | null,\n } | null,\n } | null,\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n nextToken?: string | null,\n numberPages?: number | null,\n } | null,\n};\n\nexport type GetTrackableCopyTypesNewQueryVariables = {\n getTrackableCopyTypesInput: BusinessIdInput,\n};\n\nexport type GetTrackableCopyTypesNewQuery = {\n getTrackableCopyTypesNew?: {\n __typename: \"GetTrackableCopyTypesResponse\",\n data?: Array< string | null > | null,\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n nextToken?: string | null,\n numberPages?: number | null,\n } | null,\n};\n\nexport type GetTrackableCopyOrdersNewQueryVariables = {\n getTrackableCopyOrdersInput: GetTrackableCopyOrdersInput,\n};\n\nexport type GetTrackableCopyOrdersNewQuery = {\n getTrackableCopyOrdersNew?: {\n __typename: \"GetTrackableCopyOrdersResponse\",\n data?: Array< {\n __typename: \"TrackableCopyOrder\",\n business_id?: string | null,\n conversion_value?: number | null,\n created?: string | null,\n order_id?: string | null,\n source?: string | null,\n customer_id?: string | null,\n customer_name?: string | null,\n } | null > | null,\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n nextToken?: string | null,\n numberPages?: number | null,\n } | null,\n};\n\nexport type GetKeyMetricsMonthlyBudgetQueryVariables = {\n getKeyMetricsMonthlyBudgetInput: GetKeyMetricsMonthlyBudgetInput,\n};\n\nexport type GetKeyMetricsMonthlyBudgetQuery = {\n getKeyMetricsMonthlyBudget?: {\n __typename: \"GetKeyMetricsMonthlyBudgetResponse\",\n data?: Array< {\n __typename: \"MonthlyBudgetResponse\",\n amount_spent?: number | null,\n source?: string | null,\n } | null > | null,\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n nextToken?: string | null,\n } | null,\n};\n\nexport type GetKeyMetricsRoasTrackerQueryVariables = {\n getKeyMetricsRoasTrackerInput: GetKeyMetricsRoasTrackerInput,\n};\n\nexport type GetKeyMetricsRoasTrackerQuery = {\n getKeyMetricsRoasTracker?: {\n __typename: \"GetKeyMetricsRoasTrackerResponse\",\n data?: {\n __typename: \"RoasTrackerResponse\",\n facebook?: {\n __typename: \"RoasTrackerResponseDetails\",\n over?: number | null,\n under?: number | null,\n total?: number | null,\n } | null,\n tiktok?: {\n __typename: \"RoasTrackerResponseDetails\",\n over?: number | null,\n under?: number | null,\n total?: number | null,\n } | null,\n google?: {\n __typename: \"RoasTrackerResponseDetails\",\n over?: number | null,\n under?: number | null,\n total?: number | null,\n } | null,\n } | null,\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n nextToken?: string | null,\n } | null,\n};\n\nexport type GetAdcomparisonDataQueryVariables = {\n getBusinessAnalyticsInput: GetBusinessAnalyticsInput,\n};\n\nexport type GetAdcomparisonDataQuery = {\n getAdcomparisonData?: {\n __typename: \"GetAdcomparisonDataResponse\",\n data?: Array< {\n __typename: \"AnalyticsPerformanceData\",\n id?: string | null,\n ad_id?: string | null,\n ad_name?: string | null,\n ad_primary_status?: string | null,\n ad_secondary_status?: string | null,\n total_amount_spent?: number | null,\n roas?: number | null,\n total_orders?: number | null,\n total_conversion_value?: number | null,\n ad_images?: string | null,\n source?: string | null,\n } | null > | null,\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n nextToken?: string | null,\n numberPages?: number | null,\n } | null,\n};\n\nexport type GetAllCustomersNewQueryVariables = {\n getAllCustomersInput: GetAllCustomersInput,\n};\n\nexport type GetAllCustomersNewQuery = {\n getAllCustomersNew?: {\n __typename: \"GetAllCustomersResponse\",\n data?: {\n __typename: \"GetAllCustomersObject\",\n customers?: Array< {\n __typename: \"AllBusinessCustomers\",\n last_visit?: string | null,\n first_visit?: string | null,\n total_purchases?: string | null,\n total_pageviews?: string | null,\n customer_id?: string | null,\n customer_name?: string | null,\n } | null > | null,\n totalInfo?: {\n __typename: \"TotalInfoCustomers\",\n total_purchases?: number | null,\n totalrecords?: number | null,\n total_visitors?: number | null,\n total_pageviews?: number | null,\n total_clicks?: number | null,\n total_customers?: number | null,\n } | null,\n } | null,\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n numberPages?: number | null,\n } | null,\n};\n\nexport type GetCustomerJourneyVisitorGraphNewQueryVariables = {\n getCustomerJourneyVisitorGraphInput: GetCustomerJourneyVisitorGraphInput,\n};\n\nexport type GetCustomerJourneyVisitorGraphNewQuery = {\n getCustomerJourneyVisitorGraphNew?: {\n __typename: \"GetCustomerJourneyVisitorGraphResponse\",\n data?: Array< {\n __typename: \"CustomerJourneyVisitorGraph\",\n date?: string | null,\n new_visitors?: string | null,\n returning_visitors?: string | null,\n } | null > | null,\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n nextToken?: string | null,\n } | null,\n};\n\nexport type GetSegmentBuilderBasicDetailsQueryVariables = {\n getSegmentBuilderBasicDetailsInput: GetSegmentBuilderBasicDetailsInput,\n};\n\nexport type GetSegmentBuilderBasicDetailsQuery = {\n getSegmentBuilderBasicDetails?: {\n __typename: \"GetSegmentBuilderBasicDetailsResponse\",\n data?: {\n __typename: \"GetSegmentBuilderBasicDetails\",\n cities: Array< string >,\n states: Array< string >,\n countries: Array< string >,\n dynamicQueryRules?: string | null,\n predefinedQueries?: string | null,\n } | null,\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n nextToken?: string | null,\n } | null,\n};\n\nexport type GetAudienceSegmentQueryByIdQueryVariables = {\n getAudienceSegmentInput: GetAudienceSegmentInput,\n};\n\nexport type GetAudienceSegmentQueryByIdQuery = {\n getAudienceSegmentQueryById?: {\n __typename: \"GetAudienceSegmentResponse\",\n data?: {\n __typename: \"Segments\",\n id: string,\n business_id: string,\n no_of_customers?: number | null,\n added_revenue?: number | null,\n audience?: string | null,\n type: string,\n status: string,\n query_details?: string | null,\n created_at?: string | null,\n updated_at?: string | null,\n group_name: string,\n deleted_at?: string | null,\n dynamic_query_params: string,\n } | null,\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n nextToken?: string | null,\n } | null,\n};\n\nexport type GetCustomerJourneySourcesNewQueryVariables = {\n getCustomerJourneySourcesInput: GetCustomerJourneySourcesInput,\n};\n\nexport type GetCustomerJourneySourcesNewQuery = {\n getCustomerJourneySourcesNew?: {\n __typename: \"GetCustomerJourneySourcesResponse\",\n data?: {\n __typename: \"GetCustomerJourneySourcesObject\",\n sources?: Array< {\n __typename: \"CustomerJourneySource\",\n source?: string | null,\n unique_visitor?: number | null,\n unique_sessions?: number | null,\n purchases_count?: number | null,\n } | null > | null,\n totalInfo?: {\n __typename: \"TotalInfoCustomers\",\n total_purchases?: number | null,\n totalrecords?: number | null,\n total_visitors?: number | null,\n total_pageviews?: number | null,\n total_clicks?: number | null,\n total_customers?: number | null,\n } | null,\n } | null,\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n numberPages?: number | null,\n } | null,\n};\n\nexport type GetCustomerDetailsSourcesNewQueryVariables = {\n getCustomerDetailsSourcesInput: GetCustomerDetailsSourcesInput,\n};\n\nexport type GetCustomerDetailsSourcesNewQuery = {\n getCustomerDetailsSourcesNew?: {\n __typename: \"GetCustomerDetailsSourcesResponse\",\n data?: Array< {\n __typename: \"CustomerDetailsSource\",\n channel_name?: string | null,\n referer?: string | null,\n created_at?: string | null,\n } | null > | null,\n total_records?: number | null,\n numberPages?: number | null,\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n nextToken?: string | null,\n } | null,\n};\n\nexport type GetCustomerDetailsNewQueryVariables = {\n getCustomerDetailsInput: GetCustomerDetailsInput,\n};\n\nexport type GetCustomerDetailsNewQuery = {\n getCustomerDetailsNew?: {\n __typename: \"GetCustomerDetailsResponse\",\n data?: {\n __typename: \"CustomerDetails\",\n customer_email?: string | null,\n country?: string | null,\n state?: string | null,\n city?: string | null,\n total_pageviews?: number | null,\n first_visit?: string | null,\n total_purchases?: number | null,\n total_purchase_conversion_value?: number | null,\n customer_name?: string | null,\n } | null,\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n nextToken?: string | null,\n } | null,\n};\n\nexport type GetCustomerDetailsPageViewsNewQueryVariables = {\n getCustomerDetailsPageViewsInput: getCustomerDetailsPageViewsInput,\n};\n\nexport type GetCustomerDetailsPageViewsNewQuery = {\n getCustomerDetailsPageViewsNew?: {\n __typename: \"GetCustomerDetailsPageviewsResponse\",\n data?: Array< {\n __typename: \"CustomerDetailsPageView\",\n ad?: string | null,\n ad_set?: string | null,\n campaign?: string | null,\n conversion_value?: number | null,\n created?: string | null,\n referer?: string | null,\n sirge_source_name?: string | null,\n url?: string | null,\n } | null > | null,\n total_records?: number | null,\n numberPages?: number | null,\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n nextToken?: string | null,\n } | null,\n};\n\nexport type GetKeyMetricsAnalyticsStatisticsQueryVariables = {\n getKeyMetricsAnalyticsStatisticsInput: GetKeyMetricsAnalyticsStatisticsInput,\n};\n\nexport type GetKeyMetricsAnalyticsStatisticsQuery = {\n getKeyMetricsAnalyticsStatistics?: {\n __typename: \"GetKeyMetricsAnalyticsStatisticsResponse\",\n data?: {\n __typename: \"KeyMetricsAnalyticsStatistics\",\n total_order?: {\n __typename: \"KeyMetricsStatistics\",\n amount?: number | null,\n percentage?: number | null,\n trend?: Array< {\n __typename: \"KeyMetricsStatisticsTrend\",\n date?: string | null,\n value?: number | null,\n } | null > | null,\n } | null,\n total_sales?: {\n __typename: \"KeyMetricsStatistics\",\n amount?: number | null,\n percentage?: number | null,\n trend?: Array< {\n __typename: \"KeyMetricsStatisticsTrend\",\n date?: string | null,\n value?: number | null,\n } | null > | null,\n } | null,\n average_order_value?: {\n __typename: \"KeyMetricsStatistics\",\n amount?: number | null,\n percentage?: number | null,\n trend?: Array< {\n __typename: \"KeyMetricsStatisticsTrend\",\n date?: string | null,\n value?: number | null,\n } | null > | null,\n } | null,\n blended_roas?: {\n __typename: \"BlendedRoasStatistics\",\n amount?: number | null,\n percentage?: number | null,\n trend?: Array< {\n __typename: \"KeyMetricsStatisticsTrend\",\n date?: string | null,\n value?: number | null,\n } | null > | null,\n sources?: {\n __typename: \"RoasBySources\",\n facebook?: number | null,\n tiktok?: number | null,\n google?: number | null,\n } | null,\n } | null,\n visits?: {\n __typename: \"KeyMetricsStatistics\",\n amount?: number | null,\n percentage?: number | null,\n trend?: Array< {\n __typename: \"KeyMetricsStatisticsTrend\",\n date?: string | null,\n value?: number | null,\n } | null > | null,\n } | null,\n conversion_rate?: {\n __typename: \"KeyMetricsStatistics\",\n amount?: number | null,\n percentage?: number | null,\n trend?: Array< {\n __typename: \"KeyMetricsStatisticsTrend\",\n date?: string | null,\n value?: number | null,\n } | null > | null,\n } | null,\n total_conversion_value?: {\n __typename: \"KeyMetricsStatistics\",\n amount?: number | null,\n percentage?: number | null,\n trend?: Array< {\n __typename: \"KeyMetricsStatisticsTrend\",\n date?: string | null,\n value?: number | null,\n } | null > | null,\n } | null,\n total_refunds?: {\n __typename: \"KeyMetricsStatistics\",\n amount?: number | null,\n percentage?: number | null,\n trend?: Array< {\n __typename: \"KeyMetricsStatisticsTrend\",\n date?: string | null,\n value?: number | null,\n } | null > | null,\n } | null,\n } | null,\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n nextToken?: string | null,\n } | null,\n};\n\nexport type GetCustomerChannelsNewQueryVariables = {\n getCustomerChannelsInput: GetCustomerChannelsInput,\n};\n\nexport type GetCustomerChannelsNewQuery = {\n getCustomerChannelsNew?: {\n __typename: \"GetCustomerChannelsResponse\",\n data?: {\n __typename: \"GetCustomerChannelObject\",\n channels?: Array< {\n __typename: \"CustomerChannel\",\n source?: string | null,\n source_id?: string | null,\n referer?: string | null,\n unique_visitor?: number | null,\n unique_sessions?: number | null,\n purchases_count?: number | null,\n } | null > | null,\n totalInfo?: {\n __typename: \"TotalInfo\",\n total_clicks?: number | null,\n total_purchases?: number | null,\n totalrecords?: number | null,\n total_visitors?: number | null,\n total_pageviews?: number | null,\n } | null,\n } | null,\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n numberPages?: number | null,\n } | null,\n};\n\nexport type GetCustomerChannelsDetailsNewQueryVariables = {\n getCustomerChannelsDetailsInput: GetCustomerChannelsDetailsInput,\n};\n\nexport type GetCustomerChannelsDetailsNewQuery = {\n getCustomerChannelsDetailsNew?: {\n __typename: \"GetCustomerChannelsDetailsResponse\",\n data?: {\n __typename: \"GetCustomerChannelsDetailsResponseData\",\n channels?: Array< {\n __typename: \"CustomerChannel\",\n source?: string | null,\n source_id?: string | null,\n referer?: string | null,\n unique_visitor?: number | null,\n unique_sessions?: number | null,\n purchases_count?: number | null,\n } | null > | null,\n } | null,\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n } | null,\n};\n\nexport type GetSourcesOrdersNewQueryVariables = {\n getSourcesOrdersInput: GetSourcesOrdersInput,\n};\n\nexport type GetSourcesOrdersNewQuery = {\n getSourcesOrdersNew?: {\n __typename: \"GetSourcesOrdersResponse\",\n data?: Array< {\n __typename: \"SourceOrder\",\n business_id?: string | null,\n conversion_value?: number | null,\n created?: string | null,\n order_id?: string | null,\n source?: string | null,\n customer_id?: string | null,\n customer_name?: string | null,\n } | null > | null,\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n nextToken?: string | null,\n numberPages?: number | null,\n } | null,\n};\n\nexport type GetSuggestedSegmentsStatsQueryVariables = {\n getSuggestedSegmentsStatsInput: GetSuggestedSegmentsStatsInput,\n};\n\nexport type GetSuggestedSegmentsStatsQuery = {\n getSuggestedSegmentsStats?: {\n __typename: \"GetSuggestedSegmentsStatsResponse\",\n data?: Array< {\n __typename: \"GetSuggestedSegmentsStatsResult\",\n no_of_customers?: number | null,\n query_type?: SuggestedSegmentTypes | null,\n } | null > | null,\n total_records?: number | null,\n message?: string | null,\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n nextToken?: string | null,\n } | null,\n};\n\nexport type GetCustomerOrdersByCustomerIdQueryVariables = {\n getCustomerOrdersInput: GetCustomerOrdersInput,\n};\n\nexport type GetCustomerOrdersByCustomerIdQuery = {\n getCustomerOrdersByCustomerId?: {\n __typename: \"GetCustomerOrdersResponse\",\n data?: Array< {\n __typename: \"CustomerOrders\",\n id: string,\n customer_id?: string | null,\n customer_name?: string | null,\n platform_order_id: string,\n city?: string | null,\n state?: string | null,\n zip?: string | null,\n country?: string | null,\n currency?: string | null,\n conversion_value?: number | null,\n insight_date?: string | null,\n visitor_id?: string | null,\n deleted_at?: string | null,\n updated_at?: string | null,\n created_at?: string | null,\n } | null > | null,\n total_records?: number | null,\n message?: string | null,\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n nextToken?: string | null,\n } | null,\n};\n\nexport type GetAllStaticAudienceSegmentsQueryVariables = {\n getAllStaticAudienceSegmentQueryInput: GetAllStaticAudienceSegmentQueryInput,\n};\n\nexport type GetAllStaticAudienceSegmentsQuery = {\n getAllStaticAudienceSegments?: {\n __typename: \"GetAllStaticAudienceSegmentResponse\",\n data?: Array< {\n __typename: \"StaticSegments\",\n id: string,\n business_id: string,\n group_name: string,\n } | null > | null,\n total_records?: number | null,\n message?: string | null,\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n nextToken?: string | null,\n } | null,\n};\n\nexport type GetAllAudienceSegmentQueriesQueryVariables = {\n getAllAudienceSegmentQueryInput: GetAllAudienceSegmentQueryInput,\n};\n\nexport type GetAllAudienceSegmentQueriesQuery = {\n getAllAudienceSegmentQueries?: {\n __typename: \"GetAllAudienceSegmentSourcesResponse\",\n data?: Array< {\n __typename: \"Segments\",\n id: string,\n business_id: string,\n no_of_customers?: number | null,\n added_revenue?: number | null,\n audience?: string | null,\n type: string,\n status: string,\n query_details?: string | null,\n created_at?: string | null,\n updated_at?: string | null,\n group_name: string,\n deleted_at?: string | null,\n dynamic_query_params: string,\n } | null > | null,\n total_records?: number | null,\n message?: string | null,\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n nextToken?: string | null,\n } | null,\n};\n\nexport type GetBusinessAIReportQueryVariables = {\n getBusinessAIReportInput: GetBusinessAIReportInput,\n};\n\nexport type GetBusinessAIReportQuery = {\n getBusinessAIReport?: {\n __typename: \"GetBusinessAIReportResponse\",\n data?: string | null,\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n } | null,\n};\n\nexport type GetUserTaskProgressQueryVariables = {\n userTaskProgressInput: UserTaskProgressInput,\n};\n\nexport type GetUserTaskProgressQuery = {\n getUserTaskProgress?: {\n __typename: \"UserTaskProgressResponse\",\n data?: Array< {\n __typename: \"UserTaskProgress\",\n task_count?: number | null,\n status?: string | null,\n objective?: string | null,\n } | null > | null,\n } | null,\n};\n\nexport type GetSubscriptionNewQueryVariables = {\n getSubscriptionNewInput?: GetSubscriptionNewInput | null,\n};\n\nexport type GetSubscriptionNewQuery = {\n getSubscriptionNew?: {\n __typename: \"GetSubscriptionNewResponse\",\n data?: {\n __typename: \"SubscriptionsTableSchema\",\n id?: string | null,\n business_id?: string | null,\n subscription_plan_code?: string | null,\n status?: string | null,\n processor?: string | null,\n store_subscription_body?: string | null,\n store_subscription_id?: string | null,\n promo_code_id?: string | null,\n promo_code_applied_at?: string | null,\n trial_start?: string | null,\n trial_end?: string | null,\n trial_left?: number | null,\n trial_extended?: boolean | null,\n current_billing_period_start?: string | null,\n current_billing_period_end?: string | null,\n subscription_end_date?: string | null,\n business_limit?: number | null,\n staff_limit?: number | null,\n created_at?: string | null,\n updated_at?: string | null,\n deleted_at?: string | null,\n } | null,\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n nextToken?: string | null,\n } | null,\n};\n\nexport type GetUserTaskCounterQueryVariables = {\n getUserTaskCounterInput: GetUserTaskCounterInput,\n};\n\nexport type GetUserTaskCounterQuery = {\n getUserTaskCounter?: {\n __typename: \"GetUserTaskCounterResponse\",\n data?: {\n __typename: \"UserTaskCounter\",\n completed_tasks?: number | null,\n total_tasks?: number | null,\n } | null,\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n nextToken?: string | null,\n } | null,\n};\n\nexport type OnDataRefreshedForBusinessSubscriptionVariables = {\n data: string,\n};\n\nexport type OnDataRefreshedForBusinessSubscription = {\n onDataRefreshedForBusiness?: {\n __typename: \"RefreshDataForResponse\",\n data?: string | null,\n error?: {\n __typename: \"ErrorResponse\",\n code?: string | null,\n message?: string | null,\n } | null,\n message?: string | null,\n nextToken?: string | null,\n } | null,\n};\n","export enum MarketingPlatforms {\n ALLPLATFORMS = 'All Platforms',\n FACEBOOK = 'facebook',\n TIKTOK = 'tik_tok',\n GOOGLE = 'google',\n}\n","/* tslint:disable */\n/* eslint-disable */\n// this is an auto generated file. This will be overwritten\n\nimport * as APITypes from \"../API\";\ntype GeneratedMutation = string & {\n __generatedMutationInput: InputType;\n __generatedMutationOutput: OutputType;\n};\n\nexport const activateBusinessNew = /* GraphQL */ `mutation ActivateBusinessNew($activateBusinessInput: ActivateBusinessInput!) {\n activateBusinessNew(activateBusinessInput: $activateBusinessInput) {\n error {\n code\n message\n __typename\n }\n message\n nextToken\n __typename\n }\n}\n` as GeneratedMutation<\n APITypes.ActivateBusinessNewMutationVariables,\n APITypes.ActivateBusinessNewMutation\n>;\nexport const setBusinessGoal = /* GraphQL */ `mutation SetBusinessGoal($setBusinessGoalInput: SetBusinessGoalInput!) {\n setBusinessGoal(setBusinessGoalInput: $setBusinessGoalInput) {\n error {\n code\n message\n __typename\n }\n message\n nextToken\n __typename\n }\n}\n` as GeneratedMutation<\n APITypes.SetBusinessGoalMutationVariables,\n APITypes.SetBusinessGoalMutation\n>;\nexport const updateMiniShop = /* GraphQL */ `mutation UpdateMiniShop($updateMiniShopInput: GetMiniShopDetailsInput!) {\n updateMiniShop(updateMiniShopInput: $updateMiniShopInput) {\n data {\n topProducts {\n product_id\n name\n total_revenue\n product_image\n handle\n __typename\n }\n miniShop {\n id\n shop_name\n shop_image\n business_id\n top_products\n deleted_at\n updated_at\n created_at\n __typename\n }\n trackableLink {\n id\n name\n description\n type\n short_code\n destination_url\n url_position\n business_id\n created\n stats {\n clicks\n purchases\n revenue\n prev_clicks\n __typename\n }\n is_onboarding_default\n is_mini_shop\n __typename\n }\n __typename\n }\n error {\n code\n message\n __typename\n }\n message\n nextToken\n __typename\n }\n}\n` as GeneratedMutation<\n APITypes.UpdateMiniShopMutationVariables,\n APITypes.UpdateMiniShopMutation\n>;\nexport const changePasswordNew = /* GraphQL */ `mutation ChangePasswordNew($changePasswordInput: ChangePasswordInput!) {\n changePasswordNew(changePasswordInput: $changePasswordInput) {\n error {\n code\n message\n __typename\n }\n message\n __typename\n }\n}\n` as GeneratedMutation<\n APITypes.ChangePasswordNewMutationVariables,\n APITypes.ChangePasswordNewMutation\n>;\nexport const createTask = /* GraphQL */ `mutation CreateTask($createTaskInput: CreateTaskInput!) {\n createTask(createTaskInput: $createTaskInput) {\n error {\n code\n message\n __typename\n }\n message\n nextToken\n __typename\n }\n}\n` as GeneratedMutation<\n APITypes.CreateTaskMutationVariables,\n APITypes.CreateTaskMutation\n>;\nexport const updateTask = /* GraphQL */ `mutation UpdateTask($updateTaskInput: UpdateTaskInput!) {\n updateTask(updateTaskInput: $updateTaskInput) {\n error {\n code\n message\n __typename\n }\n message\n nextToken\n __typename\n }\n}\n` as GeneratedMutation<\n APITypes.UpdateTaskMutationVariables,\n APITypes.UpdateTaskMutation\n>;\nexport const updateBusinessOnboardingData = /* GraphQL */ `mutation UpdateBusinessOnboardingData(\n $updateBusinessOnboardingDataInput: UpdateBusinessOnboardingDataInput!\n) {\n updateBusinessOnboardingData(\n updateBusinessOnboardingDataInput: $updateBusinessOnboardingDataInput\n ) {\n success\n error {\n code\n message\n __typename\n }\n message\n __typename\n }\n}\n` as GeneratedMutation<\n APITypes.UpdateBusinessOnboardingDataMutationVariables,\n APITypes.UpdateBusinessOnboardingDataMutation\n>;\nexport const upsertStoreNew = /* GraphQL */ `mutation UpsertStoreNew($upsertStoreInput: UpsertStoreInput!) {\n upsertStoreNew(upsertStoreInput: $upsertStoreInput) {\n data\n error {\n code\n message\n __typename\n }\n message\n nextToken\n __typename\n }\n}\n` as GeneratedMutation<\n APITypes.UpsertStoreNewMutationVariables,\n APITypes.UpsertStoreNewMutation\n>;\nexport const updateTaskStatus = /* GraphQL */ `mutation UpdateTaskStatus($updateTaskStatusInput: UpdateTaskStatusInput!) {\n updateTaskStatus(updateTaskStatusInput: $updateTaskStatusInput) {\n error {\n code\n message\n __typename\n }\n message\n nextToken\n __typename\n }\n}\n` as GeneratedMutation<\n APITypes.UpdateTaskStatusMutationVariables,\n APITypes.UpdateTaskStatusMutation\n>;\nexport const deleteTask = /* GraphQL */ `mutation DeleteTask($deleteTaskInput: DeleteTaskInput!) {\n deleteTask(deleteTaskInput: $deleteTaskInput) {\n error {\n code\n message\n __typename\n }\n message\n nextToken\n __typename\n }\n}\n` as GeneratedMutation<\n APITypes.DeleteTaskMutationVariables,\n APITypes.DeleteTaskMutation\n>;\nexport const createStaffAccountNew = /* GraphQL */ `mutation CreateStaffAccountNew(\n $createStaffAccountInput: CreateStaffAccountInput!\n) {\n createStaffAccountNew(createStaffAccountInput: $createStaffAccountInput) {\n error {\n code\n message\n __typename\n }\n message\n nextToken\n __typename\n }\n}\n` as GeneratedMutation<\n APITypes.CreateStaffAccountNewMutationVariables,\n APITypes.CreateStaffAccountNewMutation\n>;\nexport const updatePinnedInspirations = /* GraphQL */ `mutation UpdatePinnedInspirations(\n $updatePinnedInspirationsInput: UpdatePinnedInspirationsInput!\n) {\n updatePinnedInspirations(\n updatePinnedInspirationsInput: $updatePinnedInspirationsInput\n ) {\n error {\n code\n message\n __typename\n }\n message\n nextToken\n __typename\n }\n}\n` as GeneratedMutation<\n APITypes.UpdatePinnedInspirationsMutationVariables,\n APITypes.UpdatePinnedInspirationsMutation\n>;\nexport const deleteStaffAccountNew = /* GraphQL */ `mutation DeleteStaffAccountNew(\n $deleteStaffAccountInput: DeleteStaffAccountInput!\n) {\n deleteStaffAccountNew(deleteStaffAccountInput: $deleteStaffAccountInput) {\n error {\n code\n message\n __typename\n }\n message\n nextToken\n __typename\n }\n}\n` as GeneratedMutation<\n APITypes.DeleteStaffAccountNewMutationVariables,\n APITypes.DeleteStaffAccountNewMutation\n>;\nexport const passwordResetLinkNew = /* GraphQL */ `mutation PasswordResetLinkNew($passwordResetInput: PasswordResetInput!) {\n passwordResetLinkNew(passwordResetInput: $passwordResetInput) {\n error {\n code\n message\n __typename\n }\n message\n __typename\n }\n}\n` as GeneratedMutation<\n APITypes.PasswordResetLinkNewMutationVariables,\n APITypes.PasswordResetLinkNewMutation\n>;\nexport const updateUserDefaultBusinessNew = /* GraphQL */ `mutation UpdateUserDefaultBusinessNew(\n $updateUserDefaultBusinessNewInput: BusinessIdInput!\n) {\n updateUserDefaultBusinessNew(\n updateUserDefaultBusinessNewInput: $updateUserDefaultBusinessNewInput\n ) {\n data\n error {\n code\n message\n __typename\n }\n message\n nextToken\n __typename\n }\n}\n` as GeneratedMutation<\n APITypes.UpdateUserDefaultBusinessNewMutationVariables,\n APITypes.UpdateUserDefaultBusinessNewMutation\n>;\nexport const sendUnlockFullPotentialEmail = /* GraphQL */ `mutation SendUnlockFullPotentialEmail($businessIdInput: BusinessIdInput!) {\n sendUnlockFullPotentialEmail(businessIdInput: $businessIdInput) {\n data\n error {\n code\n message\n __typename\n }\n message\n nextToken\n __typename\n }\n}\n` as GeneratedMutation<\n APITypes.SendUnlockFullPotentialEmailMutationVariables,\n APITypes.SendUnlockFullPotentialEmailMutation\n>;\nexport const removeSocialAdAccount = /* GraphQL */ `mutation RemoveSocialAdAccount(\n $removeSocialAdAccountInput: BusinessIdWithPlatform!\n) {\n removeSocialAdAccount(\n removeSocialAdAccountInput: $removeSocialAdAccountInput\n ) {\n error {\n code\n message\n __typename\n }\n message\n __typename\n }\n}\n` as GeneratedMutation<\n APITypes.RemoveSocialAdAccountMutationVariables,\n APITypes.RemoveSocialAdAccountMutation\n>;\nexport const removeSocialUserAccess = /* GraphQL */ `mutation RemoveSocialUserAccess($businessIdInput: BusinessIdWithPlatform!) {\n removeSocialUserAccess(businessIdInput: $businessIdInput) {\n error {\n code\n message\n __typename\n }\n message\n nextToken\n __typename\n }\n}\n` as GeneratedMutation<\n APITypes.RemoveSocialUserAccessMutationVariables,\n APITypes.RemoveSocialUserAccessMutation\n>;\nexport const setSocialUserAccess = /* GraphQL */ `mutation SetSocialUserAccess($socialAccessStoreInput: SetSocialAccessInput!) {\n setSocialUserAccess(socialAccessStoreInput: $socialAccessStoreInput) {\n data {\n id\n business_id\n ad_platform_id\n premium_page_views\n external_platform\n active_campaign_count\n paused_campaign_count\n social_account_id\n social_account_name\n social_account_currency\n social_account_timezone\n access_token\n utm_count\n social_integration\n conversion_api_enabled\n pixel_id\n social_refresh_token\n updateKey\n last_data_refreshed\n created_at\n updated_at\n deleted_at\n ad_platform {\n id\n name\n internal_source_name\n dark_theme_image_url\n light_theme_image_url\n status\n __typename\n }\n __typename\n }\n error {\n code\n message\n __typename\n }\n message\n nextToken\n __typename\n }\n}\n` as GeneratedMutation<\n APITypes.SetSocialUserAccessMutationVariables,\n APITypes.SetSocialUserAccessMutation\n>;\nexport const setSocialAdAccount = /* GraphQL */ `mutation SetSocialAdAccount(\n $setSocialAdAccountInput: SetSocialAdAccountInput!\n) {\n setSocialAdAccount(setSocialAdAccountInput: $setSocialAdAccountInput) {\n error {\n code\n message\n __typename\n }\n message\n __typename\n }\n}\n` as GeneratedMutation<\n APITypes.SetSocialAdAccountMutationVariables,\n APITypes.SetSocialAdAccountMutation\n>;\nexport const triggerBusinessDataLongFetchNew = /* GraphQL */ `mutation TriggerBusinessDataLongFetchNew(\n $triggerBusinessDataLongFetchInput: BusinessIdInput\n) {\n triggerBusinessDataLongFetchNew(\n triggerBusinessDataLongFetchInput: $triggerBusinessDataLongFetchInput\n ) {\n error {\n code\n message\n __typename\n }\n message\n __typename\n }\n}\n` as GeneratedMutation<\n APITypes.TriggerBusinessDataLongFetchNewMutationVariables,\n APITypes.TriggerBusinessDataLongFetchNewMutation\n>;\nexport const triggerBusinessDayZeroDataCheck = /* GraphQL */ `mutation TriggerBusinessDayZeroDataCheck(\n $triggerBusinessDayZeroDataCheckInput: TriggerBusinessDayZeroDataCheckInput\n) {\n triggerBusinessDayZeroDataCheck(\n triggerBusinessDayZeroDataCheckInput: $triggerBusinessDayZeroDataCheckInput\n ) {\n error {\n code\n message\n __typename\n }\n message\n __typename\n }\n}\n` as GeneratedMutation<\n APITypes.TriggerBusinessDayZeroDataCheckMutationVariables,\n APITypes.TriggerBusinessDayZeroDataCheckMutation\n>;\nexport const updateBusinessByBusinessIdNew = /* GraphQL */ `mutation UpdateBusinessByBusinessIdNew(\n $setBusinessesInput: SetBusinessesInput!\n) {\n updateBusinessByBusinessIdNew(setBusinessesInput: $setBusinessesInput) {\n data {\n id\n store_id\n name\n status\n logo\n vanity_name\n reminder_status\n show_budget_confirmation\n monthly_budget\n business_goal\n campaign_roas_goal\n adset_roas_goal\n ad_roas_goal\n created_at\n updated_at\n deleted_at\n ad_account_settings {\n id\n business_id\n ad_platform_id\n premium_page_views\n external_platform\n active_campaign_count\n paused_campaign_count\n social_account_id\n social_account_name\n social_account_currency\n social_account_timezone\n access_token\n utm_count\n social_integration\n conversion_api_enabled\n pixel_id\n social_refresh_token\n updateKey\n last_data_refreshed\n created_at\n updated_at\n deleted_at\n ad_platform {\n id\n name\n internal_source_name\n dark_theme_image_url\n light_theme_image_url\n status\n __typename\n }\n __typename\n }\n subscriptions {\n id\n business_id\n subscription_plan_code\n status\n processor\n store_subscription_body\n store_subscription_id\n promo_code_id\n trial_start\n trial_end\n trial_left\n current_billing_period_start\n current_billing_period_end\n subscription_end_date\n business_limit\n staff_limit\n subscription_charges {\n id\n business_id\n subscription_id\n store_revenue\n amount_billed\n created_at\n updated_at\n deleted_at\n __typename\n }\n promo_codes {\n id\n code\n type\n status\n duration\n amount\n created_at\n updated_at\n deleted_at\n __typename\n }\n current_revenue\n created_at\n updated_at\n deleted_at\n __typename\n }\n store {\n id\n shop_name\n address1\n address2\n city\n state\n zip\n country\n store_url\n timezone\n currency\n created_at\n updated_at\n deleted_at\n __typename\n }\n completed_onboarding_call\n has_visitor_session\n business_roas_goals {\n id\n roas_goal\n ad_platform_id\n ad_platforms {\n id\n name\n internal_source_name\n dark_theme_image_url\n light_theme_image_url\n status\n __typename\n }\n __typename\n }\n tour_completed_at\n tour_skipped_at\n feature_flags\n onboarding_call_completed_at\n pinned_inspirations\n __typename\n }\n error {\n code\n message\n __typename\n }\n message\n nextToken\n __typename\n }\n}\n` as GeneratedMutation<\n APITypes.UpdateBusinessByBusinessIdNewMutationVariables,\n APITypes.UpdateBusinessByBusinessIdNewMutation\n>;\nexport const updateBusinessLogoNew = /* GraphQL */ `mutation UpdateBusinessLogoNew(\n $updateBusinessLogoInput: UpdateBusinessLogoInput!\n) {\n updateBusinessLogoNew(updateBusinessLogoInput: $updateBusinessLogoInput) {\n data {\n id\n store_id\n name\n status\n logo\n vanity_name\n reminder_status\n show_budget_confirmation\n monthly_budget\n business_goal\n campaign_roas_goal\n adset_roas_goal\n ad_roas_goal\n created_at\n updated_at\n deleted_at\n ad_account_settings {\n id\n business_id\n ad_platform_id\n premium_page_views\n external_platform\n active_campaign_count\n paused_campaign_count\n social_account_id\n social_account_name\n social_account_currency\n social_account_timezone\n access_token\n utm_count\n social_integration\n conversion_api_enabled\n pixel_id\n social_refresh_token\n updateKey\n last_data_refreshed\n created_at\n updated_at\n deleted_at\n ad_platform {\n id\n name\n internal_source_name\n dark_theme_image_url\n light_theme_image_url\n status\n __typename\n }\n __typename\n }\n subscriptions {\n id\n business_id\n subscription_plan_code\n status\n processor\n store_subscription_body\n store_subscription_id\n promo_code_id\n trial_start\n trial_end\n trial_left\n current_billing_period_start\n current_billing_period_end\n subscription_end_date\n business_limit\n staff_limit\n subscription_charges {\n id\n business_id\n subscription_id\n store_revenue\n amount_billed\n created_at\n updated_at\n deleted_at\n __typename\n }\n promo_codes {\n id\n code\n type\n status\n duration\n amount\n created_at\n updated_at\n deleted_at\n __typename\n }\n current_revenue\n created_at\n updated_at\n deleted_at\n __typename\n }\n store {\n id\n shop_name\n address1\n address2\n city\n state\n zip\n country\n store_url\n timezone\n currency\n created_at\n updated_at\n deleted_at\n __typename\n }\n completed_onboarding_call\n has_visitor_session\n business_roas_goals {\n id\n roas_goal\n ad_platform_id\n ad_platforms {\n id\n name\n internal_source_name\n dark_theme_image_url\n light_theme_image_url\n status\n __typename\n }\n __typename\n }\n tour_completed_at\n tour_skipped_at\n feature_flags\n onboarding_call_completed_at\n pinned_inspirations\n __typename\n }\n error {\n code\n message\n __typename\n }\n message\n nextToken\n __typename\n }\n}\n` as GeneratedMutation<\n APITypes.UpdateBusinessLogoNewMutationVariables,\n APITypes.UpdateBusinessLogoNewMutation\n>;\nexport const updateBusinessMetaData = /* GraphQL */ `mutation UpdateBusinessMetaData(\n $updateBusinessMetaDataInput: UpdateBusinessMetaDataInput!\n) {\n updateBusinessMetaData(\n updateBusinessMetaDataInput: $updateBusinessMetaDataInput\n ) {\n error {\n code\n message\n __typename\n }\n message\n nextToken\n __typename\n }\n}\n` as GeneratedMutation<\n APITypes.UpdateBusinessMetaDataMutationVariables,\n APITypes.UpdateBusinessMetaDataMutation\n>;\nexport const updateFacebookConnectionSettings = /* GraphQL */ `mutation UpdateFacebookConnectionSettings(\n $updateFacebookConnectionSettingsInput: UpdateFacebookConnectionSettingsInput!\n) {\n updateFacebookConnectionSettings(\n updateFacebookConnectionSettingsInput: $updateFacebookConnectionSettingsInput\n ) {\n error {\n code\n message\n __typename\n }\n message\n __typename\n }\n}\n` as GeneratedMutation<\n APITypes.UpdateFacebookConnectionSettingsMutationVariables,\n APITypes.UpdateFacebookConnectionSettingsMutation\n>;\nexport const updateStaffAccountAccessNew = /* GraphQL */ `mutation UpdateStaffAccountAccessNew(\n $updateStaffAccountAccessInput: UpdateStaffAccountAccessNewInput!\n) {\n updateStaffAccountAccessNew(\n updateStaffAccountAccessInput: $updateStaffAccountAccessInput\n ) {\n error {\n code\n message\n __typename\n }\n message\n nextToken\n __typename\n }\n}\n` as GeneratedMutation<\n APITypes.UpdateStaffAccountAccessNewMutationVariables,\n APITypes.UpdateStaffAccountAccessNewMutation\n>;\nexport const updateTimezoneCurrencyNew = /* GraphQL */ `mutation UpdateTimezoneCurrencyNew(\n $updateTimezoneCurrencyInput: UpdateTimezoneCurrencyInput!\n) {\n updateTimezoneCurrencyNew(\n updateTimezoneCurrencyInput: $updateTimezoneCurrencyInput\n ) {\n error {\n code\n message\n __typename\n }\n message\n __typename\n }\n}\n` as GeneratedMutation<\n APITypes.UpdateTimezoneCurrencyNewMutationVariables,\n APITypes.UpdateTimezoneCurrencyNewMutation\n>;\nexport const updateUserNew = /* GraphQL */ `mutation UpdateUserNew($updateUserNewInput: UpdateUserNewInput!) {\n updateUserNew(updateUserNewInput: $updateUserNewInput) {\n data {\n id\n first_name\n last_name\n email\n address1\n password\n timezone\n currency\n created_at\n updated_at\n deleted_at\n businesses {\n user_id\n business_id\n business {\n id\n store_id\n name\n status\n logo\n vanity_name\n reminder_status\n show_budget_confirmation\n monthly_budget\n business_goal\n campaign_roas_goal\n adset_roas_goal\n ad_roas_goal\n created_at\n updated_at\n deleted_at\n ad_account_settings {\n id\n business_id\n ad_platform_id\n premium_page_views\n external_platform\n active_campaign_count\n paused_campaign_count\n social_account_id\n social_account_name\n social_account_currency\n social_account_timezone\n access_token\n utm_count\n social_integration\n conversion_api_enabled\n pixel_id\n social_refresh_token\n updateKey\n last_data_refreshed\n created_at\n updated_at\n deleted_at\n ad_platform {\n id\n name\n internal_source_name\n dark_theme_image_url\n light_theme_image_url\n status\n __typename\n }\n __typename\n }\n subscriptions {\n id\n business_id\n subscription_plan_code\n status\n processor\n store_subscription_body\n store_subscription_id\n promo_code_id\n trial_start\n trial_end\n trial_left\n current_billing_period_start\n current_billing_period_end\n subscription_end_date\n business_limit\n staff_limit\n subscription_charges {\n id\n business_id\n subscription_id\n store_revenue\n amount_billed\n created_at\n updated_at\n deleted_at\n __typename\n }\n promo_codes {\n id\n code\n type\n status\n duration\n amount\n created_at\n updated_at\n deleted_at\n __typename\n }\n current_revenue\n created_at\n updated_at\n deleted_at\n __typename\n }\n store {\n id\n shop_name\n address1\n address2\n city\n state\n zip\n country\n store_url\n timezone\n currency\n created_at\n updated_at\n deleted_at\n __typename\n }\n completed_onboarding_call\n has_visitor_session\n business_roas_goals {\n id\n roas_goal\n ad_platform_id\n ad_platforms {\n id\n name\n internal_source_name\n dark_theme_image_url\n light_theme_image_url\n status\n __typename\n }\n __typename\n }\n tour_completed_at\n tour_skipped_at\n feature_flags\n onboarding_call_completed_at\n pinned_inspirations\n __typename\n }\n user_type\n is_default_business\n created_at\n updated_at\n deleted_at\n __typename\n }\n profile_photo\n is_admin_user\n link_tracking_visit_count\n link_tracking_view_status\n growth_hub_clicked_at\n inspirations_tutorial_finished_at\n mini_shop_tutorial_finished_at\n __typename\n }\n error {\n code\n message\n __typename\n }\n message\n nextToken\n __typename\n }\n}\n` as GeneratedMutation<\n APITypes.UpdateUserNewMutationVariables,\n APITypes.UpdateUserNewMutation\n>;\nexport const updateUserProfilePictureNew = /* GraphQL */ `mutation UpdateUserProfilePictureNew(\n $updateUserProfilePictureInput: UpdateUserProfilePictureInput!\n) {\n updateUserProfilePictureNew(\n updateUserProfilePictureInput: $updateUserProfilePictureInput\n ) {\n data {\n default_business_id\n account_state\n affiliate_auth_token\n auto_scaling_setting\n balance\n cancellation_reason\n card_expiry_date\n card_last_four_digits\n card_type\n city\n client_billing_account_id\n country_code\n country_name\n country_phone_prefix\n created_at\n currency\n current_billing_period_end\n current_billing_period_start\n data_deleting_on\n data_retention_period\n email\n end_trial_source\n facebook_accessToken\n facebook_userID\n first_name\n firstpromoter_auth_token\n full_address\n id\n invoices {\n created_at\n customer_id\n id\n invoice_body\n status\n updated_at\n __typename\n }\n last_name\n line1\n manager_id\n marketing_status\n phone_number\n postal_code\n products {\n plan_product_id\n price_id\n product_code\n product_id\n product_name\n __typename\n }\n profile_photo\n state\n status\n stripe_connect_account_id\n subscription {\n created_at\n customer_id\n id\n status\n subscription_body\n updated_at\n trial_end\n trial_start\n trial_left\n promo_code {\n code\n status\n duration\n amount\n type\n __typename\n }\n plan {\n business_limit\n page_view_limit\n plan_code\n plan_name\n plan_price_id\n plan_product_id\n staff_limit\n __typename\n }\n plan_changed\n plan_code\n current_revenue\n current_billing_period_start\n current_billing_period_end\n __typename\n }\n subscription_status\n tik_tok_access_token\n tik_tok_integration\n timezone\n two_factor_deactivate_business\n two_factor_remove_staff_account\n updated_at\n user_id\n user_plan {\n business_limit\n page_view_limit\n plan_code\n plan_name\n plan_price_id\n plan_product_id\n staff_limit\n __typename\n }\n verification_method\n shopify_store_url\n business_access {\n vanity_name\n __typename\n }\n sessions {\n browser_name\n browser_version\n created_at\n ip\n location\n os_name\n os_version\n user_id\n __typename\n }\n post_hog_user_id\n __typename\n }\n error {\n code\n message\n __typename\n }\n message\n nextToken\n __typename\n }\n}\n` as GeneratedMutation<\n APITypes.UpdateUserProfilePictureNewMutationVariables,\n APITypes.UpdateUserProfilePictureNewMutation\n>;\nexport const verifyTwoFactorNew = /* GraphQL */ `mutation VerifyTwoFactorNew($verifyTwoFactorInput: VerifyTwoFactorInput!) {\n verifyTwoFactorNew(verifyTwoFactorInput: $verifyTwoFactorInput) {\n data\n error {\n code\n message\n __typename\n }\n message\n nextToken\n __typename\n }\n}\n` as GeneratedMutation<\n APITypes.VerifyTwoFactorNewMutationVariables,\n APITypes.VerifyTwoFactorNewMutation\n>;\nexport const refreshDataForBusiness = /* GraphQL */ `mutation RefreshDataForBusiness(\n $refreshDataForBusinessInput: RefreshDataForBusiness!\n) {\n refreshDataForBusiness(\n refreshDataForBusinessInput: $refreshDataForBusinessInput\n ) {\n data\n error {\n code\n message\n __typename\n }\n message\n nextToken\n __typename\n }\n}\n` as GeneratedMutation<\n APITypes.RefreshDataForBusinessMutationVariables,\n APITypes.RefreshDataForBusinessMutation\n>;\nexport const updateShopifyStoreUrlNew = /* GraphQL */ `mutation UpdateShopifyStoreUrlNew(\n $updateShopifyStoreUrlInput: UpdateShopifyStoreUrlInput!\n) {\n updateShopifyStoreUrlNew(\n updateShopifyStoreUrlInput: $updateShopifyStoreUrlInput\n ) {\n error {\n code\n message\n __typename\n }\n message\n nextToken\n __typename\n }\n}\n` as GeneratedMutation<\n APITypes.UpdateShopifyStoreUrlNewMutationVariables,\n APITypes.UpdateShopifyStoreUrlNewMutation\n>;\nexport const setUserSessionNew = /* GraphQL */ `mutation SetUserSessionNew {\n setUserSessionNew {\n data {\n browser_name\n browser_version\n created_at\n ip\n location\n os_name\n os_version\n user {\n connect {\n id\n __typename\n }\n __typename\n }\n __typename\n }\n error {\n code\n message\n __typename\n }\n message\n nextToken\n __typename\n }\n}\n` as GeneratedMutation<\n APITypes.SetUserSessionNewMutationVariables,\n APITypes.SetUserSessionNewMutation\n>;\nexport const createShopifySubscriptionNew = /* GraphQL */ `mutation CreateShopifySubscriptionNew(\n $createShopifySubscriptionInput: CreateShopifySubscriptionInput!\n) {\n createShopifySubscriptionNew(\n createShopifySubscriptionInput: $createShopifySubscriptionInput\n ) {\n data {\n confirmationUrl\n id\n __typename\n }\n error {\n code\n message\n __typename\n }\n message\n nextToken\n __typename\n }\n}\n` as GeneratedMutation<\n APITypes.CreateShopifySubscriptionNewMutationVariables,\n APITypes.CreateShopifySubscriptionNewMutation\n>;\nexport const createShopifySubscriptionNewPricing = /* GraphQL */ `mutation CreateShopifySubscriptionNewPricing(\n $createShopifySubscriptionInput: CreateShopifySubscriptionInput!\n) {\n createShopifySubscriptionNewPricing(\n createShopifySubscriptionInput: $createShopifySubscriptionInput\n ) {\n data {\n confirmationUrl\n id\n __typename\n }\n error {\n code\n message\n __typename\n }\n message\n nextToken\n __typename\n }\n}\n` as GeneratedMutation<\n APITypes.CreateShopifySubscriptionNewPricingMutationVariables,\n APITypes.CreateShopifySubscriptionNewPricingMutation\n>;\nexport const registerShopifyUserNew = /* GraphQL */ `mutation RegisterShopifyUserNew(\n $registerShopifyUserInput: RegisterShopifyUserInput!\n) {\n registerShopifyUserNew(registerShopifyUserInput: $registerShopifyUserInput) {\n error {\n code\n message\n __typename\n }\n message\n nextToken\n user {\n default_business_id\n account_state\n affiliate_auth_token\n auto_scaling_setting\n balance\n cancellation_reason\n card_expiry_date\n card_last_four_digits\n card_type\n city\n client_billing_account_id\n country_code\n country_name\n country_phone_prefix\n created_at\n currency\n current_billing_period_end\n current_billing_period_start\n data_deleting_on\n data_retention_period\n email\n end_trial_source\n facebook_accessToken\n facebook_userID\n first_name\n firstpromoter_auth_token\n full_address\n id\n invoices {\n created_at\n customer_id\n id\n invoice_body\n status\n updated_at\n __typename\n }\n last_name\n line1\n manager_id\n marketing_status\n phone_number\n postal_code\n products {\n plan_product_id\n price_id\n product_code\n product_id\n product_name\n __typename\n }\n profile_photo\n state\n status\n stripe_connect_account_id\n subscription {\n created_at\n customer_id\n id\n status\n subscription_body\n updated_at\n trial_end\n trial_start\n trial_left\n promo_code {\n code\n status\n duration\n amount\n type\n __typename\n }\n plan {\n business_limit\n page_view_limit\n plan_code\n plan_name\n plan_price_id\n plan_product_id\n staff_limit\n __typename\n }\n plan_changed\n plan_code\n current_revenue\n current_billing_period_start\n current_billing_period_end\n __typename\n }\n subscription_status\n tik_tok_access_token\n tik_tok_integration\n timezone\n two_factor_deactivate_business\n two_factor_remove_staff_account\n updated_at\n user_id\n user_plan {\n business_limit\n page_view_limit\n plan_code\n plan_name\n plan_price_id\n plan_product_id\n staff_limit\n __typename\n }\n verification_method\n shopify_store_url\n business_access {\n vanity_name\n __typename\n }\n sessions {\n browser_name\n browser_version\n created_at\n ip\n location\n os_name\n os_version\n user_id\n __typename\n }\n post_hog_user_id\n __typename\n }\n __typename\n }\n}\n` as GeneratedMutation<\n APITypes.RegisterShopifyUserNewMutationVariables,\n APITypes.RegisterShopifyUserNewMutation\n>;\nexport const checkShopifyLoginNew = /* GraphQL */ `mutation CheckShopifyLoginNew(\n $checkShopifyLoginInput: CheckShopifyLoginInput!\n) {\n checkShopifyLoginNew(checkShopifyLoginInput: $checkShopifyLoginInput) {\n data\n error {\n code\n message\n __typename\n }\n message\n nextToken\n __typename\n }\n}\n` as GeneratedMutation<\n APITypes.CheckShopifyLoginNewMutationVariables,\n APITypes.CheckShopifyLoginNewMutation\n>;\nexport const sendRegisterUserEmailNew = /* GraphQL */ `mutation SendRegisterUserEmailNew(\n $sendRegisterUserEmailInput: SendRegisterUserEmailInput!\n) {\n sendRegisterUserEmailNew(\n sendRegisterUserEmailInput: $sendRegisterUserEmailInput\n ) {\n error {\n code\n message\n __typename\n }\n message\n nextToken\n user {\n id\n first_name\n last_name\n email\n address1\n password\n timezone\n currency\n created_at\n updated_at\n deleted_at\n businesses {\n user_id\n business_id\n business {\n id\n store_id\n name\n status\n logo\n vanity_name\n reminder_status\n show_budget_confirmation\n monthly_budget\n business_goal\n campaign_roas_goal\n adset_roas_goal\n ad_roas_goal\n created_at\n updated_at\n deleted_at\n ad_account_settings {\n id\n business_id\n ad_platform_id\n premium_page_views\n external_platform\n active_campaign_count\n paused_campaign_count\n social_account_id\n social_account_name\n social_account_currency\n social_account_timezone\n access_token\n utm_count\n social_integration\n conversion_api_enabled\n pixel_id\n social_refresh_token\n updateKey\n last_data_refreshed\n created_at\n updated_at\n deleted_at\n ad_platform {\n id\n name\n internal_source_name\n dark_theme_image_url\n light_theme_image_url\n status\n __typename\n }\n __typename\n }\n subscriptions {\n id\n business_id\n subscription_plan_code\n status\n processor\n store_subscription_body\n store_subscription_id\n promo_code_id\n trial_start\n trial_end\n trial_left\n current_billing_period_start\n current_billing_period_end\n subscription_end_date\n business_limit\n staff_limit\n subscription_charges {\n id\n business_id\n subscription_id\n store_revenue\n amount_billed\n created_at\n updated_at\n deleted_at\n __typename\n }\n promo_codes {\n id\n code\n type\n status\n duration\n amount\n created_at\n updated_at\n deleted_at\n __typename\n }\n current_revenue\n created_at\n updated_at\n deleted_at\n __typename\n }\n store {\n id\n shop_name\n address1\n address2\n city\n state\n zip\n country\n store_url\n timezone\n currency\n created_at\n updated_at\n deleted_at\n __typename\n }\n completed_onboarding_call\n has_visitor_session\n business_roas_goals {\n id\n roas_goal\n ad_platform_id\n ad_platforms {\n id\n name\n internal_source_name\n dark_theme_image_url\n light_theme_image_url\n status\n __typename\n }\n __typename\n }\n tour_completed_at\n tour_skipped_at\n feature_flags\n onboarding_call_completed_at\n pinned_inspirations\n __typename\n }\n user_type\n is_default_business\n created_at\n updated_at\n deleted_at\n __typename\n }\n profile_photo\n is_admin_user\n link_tracking_visit_count\n link_tracking_view_status\n growth_hub_clicked_at\n inspirations_tutorial_finished_at\n mini_shop_tutorial_finished_at\n __typename\n }\n __typename\n }\n}\n` as GeneratedMutation<\n APITypes.SendRegisterUserEmailNewMutationVariables,\n APITypes.SendRegisterUserEmailNewMutation\n>;\nexport const cancelShopifySubscriptionNew = /* GraphQL */ `mutation CancelShopifySubscriptionNew(\n $cancelShopifySubscriptionInput: CancelShopifySubscriptionInput\n) {\n cancelShopifySubscriptionNew(\n cancelShopifySubscriptionInput: $cancelShopifySubscriptionInput\n ) {\n data\n error {\n code\n message\n __typename\n }\n message\n nextToken\n __typename\n }\n}\n` as GeneratedMutation<\n APITypes.CancelShopifySubscriptionNewMutationVariables,\n APITypes.CancelShopifySubscriptionNewMutation\n>;\nexport const cancelShopifySubscriptionEarlyNew = /* GraphQL */ `mutation CancelShopifySubscriptionEarlyNew(\n $cancelShopifySubscriptionEarlyInput: CancelShopifySubscriptionEarlyInput!\n) {\n cancelShopifySubscriptionEarlyNew(\n cancelShopifySubscriptionEarlyInput: $cancelShopifySubscriptionEarlyInput\n ) {\n data\n error {\n code\n message\n __typename\n }\n message\n nextToken\n __typename\n }\n}\n` as GeneratedMutation<\n APITypes.CancelShopifySubscriptionEarlyNewMutationVariables,\n APITypes.CancelShopifySubscriptionEarlyNewMutation\n>;\nexport const createShopifyScriptTagNew = /* GraphQL */ `mutation CreateShopifyScriptTagNew {\n createShopifyScriptTagNew {\n data\n error {\n code\n message\n __typename\n }\n message\n nextToken\n __typename\n }\n}\n` as GeneratedMutation<\n APITypes.CreateShopifyScriptTagNewMutationVariables,\n APITypes.CreateShopifyScriptTagNewMutation\n>;\nexport const generateBusinessAIReport = /* GraphQL */ `mutation GenerateBusinessAIReport(\n $generateBusinessAIReportInput: GenerateBusinessAIReportInput!\n) {\n generateBusinessAIReport(\n generateBusinessAIReportInput: $generateBusinessAIReportInput\n ) {\n data\n error {\n code\n message\n __typename\n }\n message\n nextToken\n __typename\n }\n}\n` as GeneratedMutation<\n APITypes.GenerateBusinessAIReportMutationVariables,\n APITypes.GenerateBusinessAIReportMutation\n>;\nexport const setUtmValuesSocialCampaign = /* GraphQL */ `mutation SetUtmValuesSocialCampaign(\n $setUtmValuesSocialCampaignInput: SetUtmValuesSocialCampaignInput!\n) {\n setUtmValuesSocialCampaign(\n setUtmValuesSocialCampaignInput: $setUtmValuesSocialCampaignInput\n ) {\n error {\n code\n message\n __typename\n }\n data {\n totalAdsToConnect\n adsConnected\n adsFailed {\n ad\n error\n __typename\n }\n __typename\n }\n message\n nextToken\n __typename\n }\n}\n` as GeneratedMutation<\n APITypes.SetUtmValuesSocialCampaignMutationVariables,\n APITypes.SetUtmValuesSocialCampaignMutation\n>;\nexport const addDiscountCodeNew = /* GraphQL */ `mutation AddDiscountCodeNew($addDiscountCodeInput: AddDiscountCodeInput!) {\n addDiscountCodeNew(addDiscountCodeInput: $addDiscountCodeInput) {\n data {\n id\n code\n type\n status\n duration\n amount\n created_at\n updated_at\n deleted_at\n __typename\n }\n error {\n code\n message\n __typename\n }\n message\n nextToken\n __typename\n }\n}\n` as GeneratedMutation<\n APITypes.AddDiscountCodeNewMutationVariables,\n APITypes.AddDiscountCodeNewMutation\n>;\nexport const addDiscountCodeInactiveSubscriptionNew = /* GraphQL */ `mutation AddDiscountCodeInactiveSubscriptionNew(\n $addDiscountCodeInput: AddDiscountCodeInput!\n) {\n addDiscountCodeInactiveSubscriptionNew(\n addDiscountCodeInput: $addDiscountCodeInput\n ) {\n data {\n id\n code\n type\n status\n duration\n amount\n created_at\n updated_at\n deleted_at\n __typename\n }\n error {\n code\n message\n __typename\n }\n message\n nextToken\n __typename\n }\n}\n` as GeneratedMutation<\n APITypes.AddDiscountCodeInactiveSubscriptionNewMutationVariables,\n APITypes.AddDiscountCodeInactiveSubscriptionNewMutation\n>;\nexport const removeDiscountCodeNew = /* GraphQL */ `mutation RemoveDiscountCodeNew($addDiscountCodeInput: AddDiscountCodeInput!) {\n removeDiscountCodeNew(addDiscountCodeInput: $addDiscountCodeInput) {\n data {\n id\n business_id\n subscription_plan_code\n status\n processor\n store_subscription_body\n store_subscription_id\n promo_code_id\n trial_start\n trial_end\n trial_left\n current_billing_period_start\n current_billing_period_end\n subscription_end_date\n business_limit\n staff_limit\n subscription_charges {\n id\n business_id\n subscription_id\n store_revenue\n amount_billed\n created_at\n updated_at\n deleted_at\n __typename\n }\n promo_codes {\n id\n code\n type\n status\n duration\n amount\n created_at\n updated_at\n deleted_at\n __typename\n }\n current_revenue\n created_at\n updated_at\n deleted_at\n __typename\n }\n error {\n code\n message\n __typename\n }\n message\n nextToken\n __typename\n }\n}\n` as GeneratedMutation<\n APITypes.RemoveDiscountCodeNewMutationVariables,\n APITypes.RemoveDiscountCodeNewMutation\n>;\nexport const updateAdLevelStatusNew = /* GraphQL */ `mutation UpdateAdLevelStatusNew(\n $updateAdLevelStatusInput: UpdateAdLevelStatusInput!\n) {\n updateAdLevelStatusNew(updateAdLevelStatusInput: $updateAdLevelStatusInput) {\n data\n error {\n code\n message\n __typename\n }\n message\n nextToken\n __typename\n }\n}\n` as GeneratedMutation<\n APITypes.UpdateAdLevelStatusNewMutationVariables,\n APITypes.UpdateAdLevelStatusNewMutation\n>;\nexport const updateAdDailyBudgetNew = /* GraphQL */ `mutation UpdateAdDailyBudgetNew(\n $updateAdDailyBudgetInput: updateAdDailyBudgetInput!\n) {\n updateAdDailyBudgetNew(updateAdDailyBudgetInput: $updateAdDailyBudgetInput) {\n data\n error {\n code\n message\n __typename\n }\n message\n nextToken\n __typename\n }\n}\n` as GeneratedMutation<\n APITypes.UpdateAdDailyBudgetNewMutationVariables,\n APITypes.UpdateAdDailyBudgetNewMutation\n>;\nexport const createTrackableCopyNew = /* GraphQL */ `mutation CreateTrackableCopyNew(\n $createTrackableCopyInput: CreateTrackableCopyInput!\n) {\n createTrackableCopyNew(createTrackableCopyInput: $createTrackableCopyInput) {\n error {\n code\n message\n __typename\n }\n message\n nextToken\n __typename\n }\n}\n` as GeneratedMutation<\n APITypes.CreateTrackableCopyNewMutationVariables,\n APITypes.CreateTrackableCopyNewMutation\n>;\nexport const deleteTrackableCopyNew = /* GraphQL */ `mutation DeleteTrackableCopyNew(\n $deleteTrackableCopyInput: DeleteTrackableCopyInput!\n) {\n deleteTrackableCopyNew(deleteTrackableCopyInput: $deleteTrackableCopyInput) {\n data\n error {\n code\n message\n __typename\n }\n message\n nextToken\n __typename\n }\n}\n` as GeneratedMutation<\n APITypes.DeleteTrackableCopyNewMutationVariables,\n APITypes.DeleteTrackableCopyNewMutation\n>;\nexport const updateTrackableCopyNew = /* GraphQL */ `mutation UpdateTrackableCopyNew(\n $updateTrackableCopyInput: UpdateTrackableCopyInput!\n) {\n updateTrackableCopyNew(updateTrackableCopyInput: $updateTrackableCopyInput) {\n data\n error {\n code\n message\n __typename\n }\n message\n nextToken\n __typename\n }\n}\n` as GeneratedMutation<\n APITypes.UpdateTrackableCopyNewMutationVariables,\n APITypes.UpdateTrackableCopyNewMutation\n>;\nexport const updateKeyMetricsMonthlyBudget = /* GraphQL */ `mutation UpdateKeyMetricsMonthlyBudget(\n $updateMonthlyBudgetInput: UpdateMonthlyBudgetInput!\n) {\n updateKeyMetricsMonthlyBudget(\n updateMonthlyBudgetInput: $updateMonthlyBudgetInput\n ) {\n error {\n code\n message\n __typename\n }\n message\n nextToken\n __typename\n }\n}\n` as GeneratedMutation<\n APITypes.UpdateKeyMetricsMonthlyBudgetMutationVariables,\n APITypes.UpdateKeyMetricsMonthlyBudgetMutation\n>;\nexport const updateKeyMetricsRoasTracker = /* GraphQL */ `mutation UpdateKeyMetricsRoasTracker(\n $updateKeyMetricsRoasGoalsInput: UpdateKeyMetricsRoasGoalsInput!\n) {\n updateKeyMetricsRoasTracker(\n updateKeyMetricsRoasGoalsInput: $updateKeyMetricsRoasGoalsInput\n ) {\n data {\n id\n roas_goal\n ad_platform_id\n ad_platforms {\n id\n name\n internal_source_name\n dark_theme_image_url\n light_theme_image_url\n status\n __typename\n }\n __typename\n }\n error {\n code\n message\n __typename\n }\n message\n nextToken\n __typename\n }\n}\n` as GeneratedMutation<\n APITypes.UpdateKeyMetricsRoasTrackerMutationVariables,\n APITypes.UpdateKeyMetricsRoasTrackerMutation\n>;\nexport const updateAudienceSegmentQueryById = /* GraphQL */ `mutation UpdateAudienceSegmentQueryById(\n $updateAudienceSegmentInput: UpdateAudienceSegmentQueryInput!\n) {\n updateAudienceSegmentQueryById(\n updateAudienceSegmentInput: $updateAudienceSegmentInput\n ) {\n data {\n success\n social_audience {\n facebook {\n error {\n message\n __typename\n }\n user_list_id\n audience_id\n __typename\n }\n google {\n error {\n message\n __typename\n }\n user_list_id\n audience_id\n __typename\n }\n __typename\n }\n audience_errors\n __typename\n }\n error {\n code\n message\n __typename\n }\n message\n nextToken\n __typename\n }\n}\n` as GeneratedMutation<\n APITypes.UpdateAudienceSegmentQueryByIdMutationVariables,\n APITypes.UpdateAudienceSegmentQueryByIdMutation\n>;\nexport const deleteAudienceSegmentQueryById = /* GraphQL */ `mutation DeleteAudienceSegmentQueryById(\n $deleteAudienceSegmentInput: DeleteAudienceSegmentInput!\n) {\n deleteAudienceSegmentQueryById(\n deleteAudienceSegmentInput: $deleteAudienceSegmentInput\n ) {\n data {\n success\n social_audience {\n facebook {\n error {\n message\n __typename\n }\n user_list_id\n audience_id\n __typename\n }\n google {\n error {\n message\n __typename\n }\n user_list_id\n audience_id\n __typename\n }\n __typename\n }\n audience_errors\n __typename\n }\n error {\n code\n message\n __typename\n }\n message\n nextToken\n __typename\n }\n}\n` as GeneratedMutation<\n APITypes.DeleteAudienceSegmentQueryByIdMutationVariables,\n APITypes.DeleteAudienceSegmentQueryByIdMutation\n>;\nexport const createSuggestedSegments = /* GraphQL */ `mutation CreateSuggestedSegments(\n $createSuggestedSegmentsInput: CreateSuggestedSegmentsInput!\n) {\n createSuggestedSegments(\n createSuggestedSegmentsInput: $createSuggestedSegmentsInput\n ) {\n data {\n id\n business_id\n no_of_customers\n added_revenue\n audience\n type\n status\n query_details\n created_at\n updated_at\n group_name\n deleted_at\n dynamic_query_params\n __typename\n }\n error {\n code\n message\n __typename\n }\n message\n nextToken\n __typename\n }\n}\n` as GeneratedMutation<\n APITypes.CreateSuggestedSegmentsMutationVariables,\n APITypes.CreateSuggestedSegmentsMutation\n>;\nexport const createUserIntercomEmailTwo = /* GraphQL */ `mutation CreateUserIntercomEmailTwo(\n $createUserIntercomEmailTwoInput: CreateUserIntercomEmailTwoInput!\n) {\n createUserIntercomEmailTwo(\n createUserIntercomEmailTwoInput: $createUserIntercomEmailTwoInput\n ) {\n message\n error {\n code\n message\n __typename\n }\n nextToken\n __typename\n }\n}\n` as GeneratedMutation<\n APITypes.CreateUserIntercomEmailTwoMutationVariables,\n APITypes.CreateUserIntercomEmailTwoMutation\n>;\nexport const createUserStoreSessions = /* GraphQL */ `mutation CreateUserStoreSessions(\n $createUserStoreSessionsInput: CreateUserStoreSessionsInput!\n) {\n createUserStoreSessions(\n createUserStoreSessionsInput: $createUserStoreSessionsInput\n ) {\n data {\n shop\n state\n isOnline\n scope\n expires\n accessToken\n __typename\n }\n error {\n code\n message\n __typename\n }\n message\n nextToken\n __typename\n }\n}\n` as GeneratedMutation<\n APITypes.CreateUserStoreSessionsMutationVariables,\n APITypes.CreateUserStoreSessionsMutation\n>;\nexport const setStoreBuildConfig = /* GraphQL */ `mutation SetStoreBuildConfig(\n $setStoreBuildConfigInput: SetStoreBuildConfigInput!\n) {\n setStoreBuildConfig(setStoreBuildConfigInput: $setStoreBuildConfigInput) {\n error {\n code\n message\n __typename\n }\n message\n nextToken\n __typename\n }\n}\n` as GeneratedMutation<\n APITypes.SetStoreBuildConfigMutationVariables,\n APITypes.SetStoreBuildConfigMutation\n>;\nexport const createStore = /* GraphQL */ `mutation CreateStore($createStoreInput: CreateStoreInput!) {\n createStore(createStoreInput: $createStoreInput) {\n error {\n code\n message\n __typename\n }\n message\n nextToken\n __typename\n }\n}\n` as GeneratedMutation<\n APITypes.CreateStoreMutationVariables,\n APITypes.CreateStoreMutation\n>;\nexport const deleteStoreByShopName = /* GraphQL */ `mutation DeleteStoreByShopName(\n $deleteStoreByShopNameInput: DeleteStoreByShopNameInput!\n) {\n deleteStoreByShopName(\n deleteStoreByShopNameInput: $deleteStoreByShopNameInput\n ) {\n error {\n code\n message\n __typename\n }\n message\n nextToken\n __typename\n }\n}\n` as GeneratedMutation<\n APITypes.DeleteStoreByShopNameMutationVariables,\n APITypes.DeleteStoreByShopNameMutation\n>;\nexport const extendTrial = /* GraphQL */ `mutation ExtendTrial($extendTrialInput: ExtendTrialInput!) {\n extendTrial(extendTrialInput: $extendTrialInput) {\n data\n error {\n code\n message\n __typename\n }\n message\n nextToken\n __typename\n }\n}\n` as GeneratedMutation<\n APITypes.ExtendTrialMutationVariables,\n APITypes.ExtendTrialMutation\n>;\n","/* tslint:disable */\n/* eslint-disable */\n// this is an auto generated file. This will be overwritten\n\nimport * as APITypes from \"../API\";\ntype GeneratedQuery = string & {\n __generatedQueryInput: InputType;\n __generatedQueryOutput: OutputType;\n};\n\nexport const autoScalingSettingNew = /* GraphQL */ `query AutoScalingSettingNew {\n autoScalingSettingNew {\n error {\n code\n message\n __typename\n }\n message\n __typename\n }\n}\n` as GeneratedQuery<\n APITypes.AutoScalingSettingNewQueryVariables,\n APITypes.AutoScalingSettingNewQuery\n>;\nexport const getBusinessTechStack = /* GraphQL */ `query GetBusinessTechStack(\n $getBusinessTechStackInput: GetBusinessTechStackInput!\n) {\n getBusinessTechStack(getBusinessTechStackInput: $getBusinessTechStackInput) {\n data {\n business_id\n build_config\n created_at\n updated_at\n deleted_at\n __typename\n }\n error {\n code\n message\n __typename\n }\n message\n nextToken\n __typename\n }\n}\n` as GeneratedQuery<\n APITypes.GetBusinessTechStackQueryVariables,\n APITypes.GetBusinessTechStackQuery\n>;\nexport const getBusinessBillingInfo = /* GraphQL */ `query GetBusinessBillingInfo(\n $getBusinessBillingInfoInput: GetBusinessBillingInfoInput!\n) {\n getBusinessBillingInfo(\n getBusinessBillingInfoInput: $getBusinessBillingInfoInput\n ) {\n data {\n business_revenue\n business_orders_count\n plan_code\n plan_name\n plan_price\n next_billing_plan_code\n next_billing_plan_name\n next_billing_plan_price\n next_billing_date\n promo_code\n pricing_model\n __typename\n }\n error {\n code\n message\n __typename\n }\n message\n nextToken\n __typename\n }\n}\n` as GeneratedQuery<\n APITypes.GetBusinessBillingInfoQueryVariables,\n APITypes.GetBusinessBillingInfoQuery\n>;\nexport const getMiniShopDetails = /* GraphQL */ `query GetMiniShopDetails($getMiniShopDetailsInput: GetMiniShopDetailsInput!) {\n getMiniShopDetails(getMiniShopDetailsInput: $getMiniShopDetailsInput) {\n data {\n topProducts {\n product_id\n name\n total_revenue\n product_image\n handle\n __typename\n }\n miniShop {\n id\n shop_name\n shop_image\n business_id\n top_products\n deleted_at\n updated_at\n created_at\n __typename\n }\n trackableLink {\n id\n name\n description\n type\n short_code\n destination_url\n url_position\n business_id\n created\n stats {\n clicks\n purchases\n revenue\n prev_clicks\n __typename\n }\n is_onboarding_default\n is_mini_shop\n __typename\n }\n __typename\n }\n error {\n code\n message\n __typename\n }\n message\n nextToken\n __typename\n }\n}\n` as GeneratedQuery<\n APITypes.GetMiniShopDetailsQueryVariables,\n APITypes.GetMiniShopDetailsQuery\n>;\nexport const getDefaultTrackableCopy = /* GraphQL */ `query GetDefaultTrackableCopy($getDefaultTrackableCopyInput: BusinessIdInput!) {\n getDefaultTrackableCopy(\n getDefaultTrackableCopyInput: $getDefaultTrackableCopyInput\n ) {\n data {\n default_trackable_copy {\n id\n name\n description\n type\n short_code\n destination_url\n url_position\n business_id\n created\n stats {\n clicks\n purchases\n revenue\n prev_clicks\n __typename\n }\n is_onboarding_default\n is_mini_shop\n __typename\n }\n has_manually_created_trackable_copy\n __typename\n }\n error {\n code\n message\n __typename\n }\n message\n nextToken\n __typename\n }\n}\n` as GeneratedQuery<\n APITypes.GetDefaultTrackableCopyQueryVariables,\n APITypes.GetDefaultTrackableCopyQuery\n>;\nexport const getAllAdminTasks = /* GraphQL */ `query GetAllAdminTasks($getAllAdminTasksInput: GetAllAdminTasksInput!) {\n getAllAdminTasks(getAllAdminTasksInput: $getAllAdminTasksInput) {\n data {\n id\n title\n description\n priority\n objectives\n created_at\n updated_at\n deleted_at\n views\n completed\n is_task_master\n deeplink_target_url\n target_button_title\n task_image_url\n task_group_by_week {\n week_start\n task_count\n user_count\n __typename\n }\n __typename\n }\n error {\n code\n message\n __typename\n }\n message\n nextToken\n numberPages\n __typename\n }\n}\n` as GeneratedQuery<\n APITypes.GetAllAdminTasksQueryVariables,\n APITypes.GetAllAdminTasksQuery\n>;\nexport const getUserTasks = /* GraphQL */ `query GetUserTasks($getUserTasksInput: GetUserTasksInput) {\n getUserTasks(getUserTasksInput: $getUserTasksInput) {\n data {\n id\n task_x_business_id\n title\n description\n priority\n objectives\n created_at\n updated_at\n deleted_at\n deeplink_target_url\n target_button_title\n task_image_url\n parameters\n type\n __typename\n }\n error {\n code\n message\n __typename\n }\n message\n numberPages\n __typename\n }\n}\n` as GeneratedQuery<\n APITypes.GetUserTasksQueryVariables,\n APITypes.GetUserTasksQuery\n>;\nexport const getHomepageMetrics = /* GraphQL */ `query GetHomepageMetrics($getHomepageMetricsInput: GetHomepageMetricsInput) {\n getHomepageMetrics(getHomepageMetricsInput: $getHomepageMetricsInput) {\n data {\n total_orders\n average_order_value\n total_refunds\n sirge_total_conversion_value\n total_sales\n blended_roas\n total_amount_spent\n total_amount_spent_to_date\n total_conversion_value\n monthly_budget\n ads_generating_revenue_percentage\n total_facebook_orders\n total_google_orders\n total_tiktok_orders\n break_even_roas\n total_sales_percentage\n has_utm_not_connected_ad\n __typename\n }\n error {\n code\n message\n __typename\n }\n message\n __typename\n }\n}\n` as GeneratedQuery<\n APITypes.GetHomepageMetricsQueryVariables,\n APITypes.GetHomepageMetricsQuery\n>;\nexport const getSalesBreakdown = /* GraphQL */ `query GetSalesBreakdown($getSalesBreakdownInput: GetSalesBreakdownInput) {\n getSalesBreakdown(getSalesBreakdownInput: $getSalesBreakdownInput) {\n data {\n total_sales {\n value\n order_count\n percentage\n __typename\n }\n total_revenue {\n value\n order_count\n percentage\n __typename\n }\n ads {\n value\n order_count\n percentage\n __typename\n }\n email {\n value\n order_count\n percentage\n __typename\n }\n social_media {\n value\n order_count\n percentage\n __typename\n }\n others {\n value\n order_count\n percentage\n __typename\n }\n __typename\n }\n error {\n code\n message\n __typename\n }\n message\n __typename\n }\n}\n` as GeneratedQuery<\n APITypes.GetSalesBreakdownQueryVariables,\n APITypes.GetSalesBreakdownQuery\n>;\nexport const generateUploadUrlNew = /* GraphQL */ `query GenerateUploadUrlNew($generateUploadUrlInput: GenerateUploadUrlInput!) {\n generateUploadUrlNew(generateUploadUrlInput: $generateUploadUrlInput) {\n data {\n upload_url\n url\n __typename\n }\n error {\n code\n message\n __typename\n }\n message\n nextToken\n __typename\n }\n}\n` as GeneratedQuery<\n APITypes.GenerateUploadUrlNewQueryVariables,\n APITypes.GenerateUploadUrlNewQuery\n>;\nexport const getMemberCountByAdGroupIDsNew = /* GraphQL */ `query GetMemberCountByAdGroupIDsNew(\n $getMemberCountByAdGroupIDsInput: GetMemberCountByAdGroupIDsInputNew!\n) {\n getMemberCountByAdGroupIDsNew(\n getMemberCountByAdGroupIDsInput: $getMemberCountByAdGroupIDsInput\n ) {\n data {\n adSetCount\n adsCount\n __typename\n }\n error {\n code\n message\n __typename\n }\n message\n __typename\n }\n}\n` as GeneratedQuery<\n APITypes.GetMemberCountByAdGroupIDsNewQueryVariables,\n APITypes.GetMemberCountByAdGroupIDsNewQuery\n>;\nexport const getAllStaffAccountsNew = /* GraphQL */ `query GetAllStaffAccountsNew(\n $getAllStaffAccountsInput: GetAllStaffAccountsInput\n) {\n getAllStaffAccountsNew(getAllStaffAccountsInput: $getAllStaffAccountsInput) {\n data {\n id\n first_name\n last_name\n email\n address1\n password\n timezone\n currency\n created_at\n updated_at\n deleted_at\n businesses {\n user_id\n business_id\n user_type\n is_default_business\n created_at\n updated_at\n deleted_at\n __typename\n }\n profile_photo\n is_admin_user\n __typename\n }\n error {\n code\n message\n __typename\n }\n message\n nextToken\n __typename\n }\n}\n` as GeneratedQuery<\n APITypes.GetAllStaffAccountsNewQueryVariables,\n APITypes.GetAllStaffAccountsNewQuery\n>;\nexport const getAdGroupBudgetDetailsNew = /* GraphQL */ `query GetAdGroupBudgetDetailsNew(\n $getAdGroupBudgetDetailsInput: GetAdGroupBudgetDetailsInput!\n) {\n getAdGroupBudgetDetailsNew(\n getAdGroupBudgetDetailsInput: $getAdGroupBudgetDetailsInput\n ) {\n data {\n adGroup {\n daily_budget\n lifetime_budget\n name\n source_delivery_status\n source_secondary_status\n shared_budget_name\n __typename\n }\n relatedItems {\n id\n source\n business_id\n purchases_count\n clicks_count\n daily_budget\n lifetime_budget\n budget\n shared_budget_name\n campaign_name\n campaign_budget {\n daily_budget\n lifetime_budget\n name\n source_delivery_status\n source_secondary_status\n shared_budget_name\n __typename\n }\n ad_set_budget {\n daily_budget\n lifetime_budget\n name\n source_delivery_status\n source_secondary_status\n shared_budget_name\n __typename\n }\n ad_images\n itemType\n ad_image\n ad_set\n ad_set_name\n ad\n ad_name\n sirge_ad_id\n sirge_adset_id\n sirge_campaign_id\n total_title\n source_delivery_status\n source_secondary_status\n clicks\n purchases\n purchases_source\n roas\n cost_per_purchase\n amount_spent\n average_cpm\n conversion_value\n total_conversion_value\n roas_ltv\n sirge_clicks\n sirge_purchases\n sirge_roas\n sirge_cost_per_purchase\n sirge_total_conversion_value\n created\n updated_at\n ad_type\n utm_status\n are_all_ads_connected\n transform\n __typename\n }\n __typename\n }\n error {\n code\n message\n __typename\n }\n message\n __typename\n }\n}\n` as GeneratedQuery<\n APITypes.GetAdGroupBudgetDetailsNewQueryVariables,\n APITypes.GetAdGroupBudgetDetailsNewQuery\n>;\nexport const getBusinessSourcesByIdNew = /* GraphQL */ `query GetBusinessSourcesByIdNew(\n $getBusinessSourcesByIdInput: GetBusinessSourcesByIdInput!\n) {\n getBusinessSourcesByIdNew(\n getBusinessSourcesByIdInput: $getBusinessSourcesByIdInput\n ) {\n data {\n sources {\n source\n unique_visitor\n clicks_count\n purchases_count\n url\n created\n referer\n business_id\n __typename\n }\n totalInfo {\n total_clicks\n total_purchases\n totalrecords\n total_visitors\n total_pageviews\n __typename\n }\n __typename\n }\n error {\n code\n message\n __typename\n }\n message\n numberPages\n __typename\n }\n}\n` as GeneratedQuery<\n APITypes.GetBusinessSourcesByIdNewQueryVariables,\n APITypes.GetBusinessSourcesByIdNewQuery\n>;\nexport const getBusinessSourcesDetailsByIdNew = /* GraphQL */ `query GetBusinessSourcesDetailsByIdNew(\n $getBusinessSourcesDetailsByIdInput: GetBusinessSourcesDetailsByIdInput!\n) {\n getBusinessSourcesDetailsByIdNew(\n getBusinessSourcesDetailsByIdInput: $getBusinessSourcesDetailsByIdInput\n ) {\n data {\n source\n unique_visitor\n clicks_count\n purchases_count\n url\n created\n referer\n business_id\n __typename\n }\n error {\n code\n message\n __typename\n }\n message\n numberPages\n __typename\n }\n}\n` as GeneratedQuery<\n APITypes.GetBusinessSourcesDetailsByIdNewQueryVariables,\n APITypes.GetBusinessSourcesDetailsByIdNewQuery\n>;\nexport const getBusinessGoogleTokenNew = /* GraphQL */ `query GetBusinessGoogleTokenNew(\n $getBusinessGoogleTokenNewInput: GetBusinessGoogleTokenNewInput!\n) {\n getBusinessGoogleTokenNew(\n getBusinessGoogleTokenNewInput: $getBusinessGoogleTokenNewInput\n ) {\n data\n error {\n code\n message\n __typename\n }\n message\n __typename\n }\n}\n` as GeneratedQuery<\n APITypes.GetBusinessGoogleTokenNewQueryVariables,\n APITypes.GetBusinessGoogleTokenNewQuery\n>;\nexport const getCurrentUserSessionsNew = /* GraphQL */ `query GetCurrentUserSessionsNew(\n $getCurrentUserSessionsInput: GetCurrentUserSessionsInput\n) {\n getCurrentUserSessionsNew(\n getCurrentUserSessionsInput: $getCurrentUserSessionsInput\n ) {\n data {\n browser_name\n browser_version\n created_at\n ip\n location\n os_name\n os_version\n user_id\n __typename\n }\n error {\n code\n message\n __typename\n }\n message\n nextToken\n __typename\n }\n}\n` as GeneratedQuery<\n APITypes.GetCurrentUserSessionsNewQueryVariables,\n APITypes.GetCurrentUserSessionsNewQuery\n>;\nexport const getAllPlatformBusinesses = /* GraphQL */ `query GetAllPlatformBusinesses(\n $getAllPlatformBusinessesInput: GetAllPlatformBusinessesInput!\n) {\n getAllPlatformBusinesses(\n getAllPlatformBusinessesInput: $getAllPlatformBusinessesInput\n ) {\n data {\n businessList {\n id\n name\n logo\n manager_email\n manager_name\n vanity_name\n techStackTracked\n onboarding_call_booked\n onboarding_call_completed_at\n __typename\n }\n __typename\n }\n error {\n code\n message\n __typename\n }\n message\n numberPages\n __typename\n }\n}\n` as GeneratedQuery<\n APITypes.GetAllPlatformBusinessesQueryVariables,\n APITypes.GetAllPlatformBusinessesQuery\n>;\nexport const fetchBusinessMetaData = /* GraphQL */ `query FetchBusinessMetaData($fetchBusinessMetaDataInput: BusinessIdInput!) {\n fetchBusinessMetaData(\n fetchBusinessMetaDataInput: $fetchBusinessMetaDataInput\n ) {\n data {\n metadata\n categories\n __typename\n }\n error {\n code\n message\n __typename\n }\n message\n __typename\n }\n}\n` as GeneratedQuery<\n APITypes.FetchBusinessMetaDataQueryVariables,\n APITypes.FetchBusinessMetaDataQuery\n>;\nexport const getSocialAdAccounts = /* GraphQL */ `query GetSocialAdAccounts($getSocialAdAccountsInput: BusinessIdWithPlatform!) {\n getSocialAdAccounts(getSocialAdAccountsInput: $getSocialAdAccountsInput) {\n data {\n id\n currency\n name\n timezone\n __typename\n }\n error {\n code\n message\n __typename\n }\n message\n __typename\n }\n}\n` as GeneratedQuery<\n APITypes.GetSocialAdAccountsQueryVariables,\n APITypes.GetSocialAdAccountsQuery\n>;\nexport const getStoreByShopName = /* GraphQL */ `query GetStoreByShopName($getStoreByShopNameInput: GetStoreByShopNameInput!) {\n getStoreByShopName(getStoreByShopNameInput: $getStoreByShopNameInput) {\n data {\n id\n platform_id\n shop_name\n admin_email\n address1\n address2\n city\n state\n zip\n country\n store_url\n access_token\n script_tag_id\n timezone\n currency\n script_installed\n script_uninstalled_date\n info\n created_at\n updated_at\n deleted_at\n business {\n id\n __typename\n }\n __typename\n }\n error {\n code\n message\n __typename\n }\n message\n nextToken\n __typename\n }\n}\n` as GeneratedQuery<\n APITypes.GetStoreByShopNameQueryVariables,\n APITypes.GetStoreByShopNameQuery\n>;\nexport const getBusinessByShop = /* GraphQL */ `query GetBusinessByShop($getBusinessByShopInput: GetBusinessByShopInput!) {\n getBusinessByShop(getBusinessByShopInput: $getBusinessByShopInput) {\n data {\n id\n store_id\n store_url\n shop_name\n __typename\n }\n error {\n code\n message\n __typename\n }\n message\n nextToken\n __typename\n }\n}\n` as GeneratedQuery<\n APITypes.GetBusinessByShopQueryVariables,\n APITypes.GetBusinessByShopQuery\n>;\nexport const getBusinessByShopUrl = /* GraphQL */ `query GetBusinessByShopUrl($getBusinessByShopInput: GetBusinessByShopInput!) {\n getBusinessByShopUrl(getBusinessByShopInput: $getBusinessByShopInput) {\n data {\n id\n store_id\n store_url\n shop_name\n __typename\n }\n error {\n code\n message\n __typename\n }\n message\n nextToken\n __typename\n }\n}\n` as GeneratedQuery<\n APITypes.GetBusinessByShopUrlQueryVariables,\n APITypes.GetBusinessByShopUrlQuery\n>;\nexport const getUserByEmail = /* GraphQL */ `query GetUserByEmail($getUserByEmailInput: GetUserByEmailInput!) {\n getUserByEmail(getUserByEmailInput: $getUserByEmailInput) {\n data {\n id\n first_name\n last_name\n email\n address1\n address2\n city\n state\n zip\n country\n timezone\n currency\n profile_photo\n created_at\n updated_at\n deleted_at\n auto_scaling_setting\n __typename\n }\n error {\n code\n message\n __typename\n }\n message\n nextToken\n __typename\n }\n}\n` as GeneratedQuery<\n APITypes.GetUserByEmailQueryVariables,\n APITypes.GetUserByEmailQuery\n>;\nexport const getMiniShopById = /* GraphQL */ `query GetMiniShopById($getMiniShopByIdInput: GetMiniShopByIdInput!) {\n getMiniShopById(getMiniShopByIdInput: $getMiniShopByIdInput) {\n data {\n id\n shop_name\n shop_image\n shop_url\n business_id\n top_products\n deleted_at\n updated_at\n created_at\n __typename\n }\n error {\n code\n message\n __typename\n }\n message\n nextToken\n __typename\n }\n}\n` as GeneratedQuery<\n APITypes.GetMiniShopByIdQueryVariables,\n APITypes.GetMiniShopByIdQuery\n>;\nexport const checkUserExistsByShopUrl = /* GraphQL */ `query CheckUserExistsByShopUrl(\n $checkUserExistsByShopUrlInput: CheckUserExistsByShopUrlInput!\n) {\n checkUserExistsByShopUrl(\n checkUserExistsByShopUrlInput: $checkUserExistsByShopUrlInput\n ) {\n data\n error {\n code\n message\n __typename\n }\n message\n nextToken\n __typename\n }\n}\n` as GeneratedQuery<\n APITypes.CheckUserExistsByShopUrlQueryVariables,\n APITypes.CheckUserExistsByShopUrlQuery\n>;\nexport const getUserStoreSessions = /* GraphQL */ `query GetUserStoreSessions(\n $getUserStoreSessionsInput: GetUserStoreSessionsInput!\n) {\n getUserStoreSessions(getUserStoreSessionsInput: $getUserStoreSessionsInput) {\n data {\n shop\n state\n isOnline\n scope\n expires\n accessToken\n __typename\n }\n error {\n code\n message\n __typename\n }\n message\n nextToken\n __typename\n }\n}\n` as GeneratedQuery<\n APITypes.GetUserStoreSessionsQueryVariables,\n APITypes.GetUserStoreSessionsQuery\n>;\nexport const getStoreDataForCallbackAuth = /* GraphQL */ `query GetStoreDataForCallbackAuth(\n $getStoreDataForCallbackAuthInput: GetStoreDataForCallbackAuthInput\n) {\n getStoreDataForCallbackAuth(\n getStoreDataForCallbackAuthInput: $getStoreDataForCallbackAuthInput\n ) {\n data {\n first_name\n last_name\n email\n is_installed\n business_id\n user_exists\n __typename\n }\n error {\n code\n message\n __typename\n }\n message\n nextToken\n __typename\n }\n}\n` as GeneratedQuery<\n APITypes.GetStoreDataForCallbackAuthQueryVariables,\n APITypes.GetStoreDataForCallbackAuthQuery\n>;\nexport const getStaffByIdNew = /* GraphQL */ `query GetStaffByIdNew($getStaffByIdInput: GetStaffByIdInput!) {\n getStaffByIdNew(getStaffByIdInput: $getStaffByIdInput) {\n data {\n id\n first_name\n last_name\n email\n address1\n password\n timezone\n currency\n created_at\n updated_at\n deleted_at\n businesses {\n user_id\n business_id\n business {\n id\n store_id\n name\n status\n logo\n vanity_name\n reminder_status\n show_budget_confirmation\n monthly_budget\n business_goal\n campaign_roas_goal\n adset_roas_goal\n ad_roas_goal\n created_at\n updated_at\n deleted_at\n ad_account_settings {\n id\n business_id\n ad_platform_id\n premium_page_views\n external_platform\n active_campaign_count\n paused_campaign_count\n social_account_id\n social_account_name\n social_account_currency\n social_account_timezone\n access_token\n utm_count\n social_integration\n conversion_api_enabled\n pixel_id\n social_refresh_token\n updateKey\n last_data_refreshed\n created_at\n updated_at\n deleted_at\n ad_platform {\n id\n name\n internal_source_name\n dark_theme_image_url\n light_theme_image_url\n status\n __typename\n }\n __typename\n }\n subscriptions {\n id\n business_id\n subscription_plan_code\n status\n processor\n store_subscription_body\n store_subscription_id\n promo_code_id\n trial_start\n trial_end\n trial_left\n current_billing_period_start\n current_billing_period_end\n subscription_end_date\n business_limit\n staff_limit\n subscription_charges {\n id\n business_id\n subscription_id\n store_revenue\n amount_billed\n created_at\n updated_at\n deleted_at\n __typename\n }\n promo_codes {\n id\n code\n type\n status\n duration\n amount\n created_at\n updated_at\n deleted_at\n __typename\n }\n current_revenue\n created_at\n updated_at\n deleted_at\n __typename\n }\n store {\n id\n shop_name\n address1\n address2\n city\n state\n zip\n country\n store_url\n timezone\n currency\n created_at\n updated_at\n deleted_at\n __typename\n }\n completed_onboarding_call\n has_visitor_session\n business_roas_goals {\n id\n roas_goal\n ad_platform_id\n ad_platforms {\n id\n name\n internal_source_name\n dark_theme_image_url\n light_theme_image_url\n status\n __typename\n }\n __typename\n }\n tour_completed_at\n tour_skipped_at\n feature_flags\n onboarding_call_completed_at\n pinned_inspirations\n __typename\n }\n user_type\n is_default_business\n created_at\n updated_at\n deleted_at\n __typename\n }\n profile_photo\n is_admin_user\n link_tracking_visit_count\n link_tracking_view_status\n growth_hub_clicked_at\n inspirations_tutorial_finished_at\n mini_shop_tutorial_finished_at\n __typename\n }\n error {\n code\n message\n __typename\n }\n message\n nextToken\n __typename\n }\n}\n` as GeneratedQuery<\n APITypes.GetStaffByIdNewQueryVariables,\n APITypes.GetStaffByIdNewQuery\n>;\nexport const getUserNew = /* GraphQL */ `query GetUserNew($getUserInput: GetUserInput) {\n getUserNew(getUserInput: $getUserInput) {\n data {\n id\n first_name\n last_name\n email\n address1\n password\n timezone\n currency\n created_at\n updated_at\n deleted_at\n businesses {\n user_id\n business_id\n business {\n id\n store_id\n name\n status\n logo\n vanity_name\n reminder_status\n show_budget_confirmation\n monthly_budget\n business_goal\n campaign_roas_goal\n adset_roas_goal\n ad_roas_goal\n created_at\n updated_at\n deleted_at\n ad_account_settings {\n id\n business_id\n ad_platform_id\n premium_page_views\n external_platform\n active_campaign_count\n paused_campaign_count\n social_account_id\n social_account_name\n social_account_currency\n social_account_timezone\n access_token\n utm_count\n social_integration\n conversion_api_enabled\n pixel_id\n social_refresh_token\n updateKey\n last_data_refreshed\n created_at\n updated_at\n deleted_at\n ad_platform {\n id\n name\n internal_source_name\n dark_theme_image_url\n light_theme_image_url\n status\n __typename\n }\n __typename\n }\n subscriptions {\n id\n business_id\n subscription_plan_code\n status\n processor\n store_subscription_body\n store_subscription_id\n promo_code_id\n trial_start\n trial_end\n trial_left\n current_billing_period_start\n current_billing_period_end\n subscription_end_date\n business_limit\n staff_limit\n subscription_charges {\n id\n business_id\n subscription_id\n store_revenue\n amount_billed\n created_at\n updated_at\n deleted_at\n __typename\n }\n promo_codes {\n id\n code\n type\n status\n duration\n amount\n created_at\n updated_at\n deleted_at\n __typename\n }\n current_revenue\n created_at\n updated_at\n deleted_at\n __typename\n }\n store {\n id\n shop_name\n address1\n address2\n city\n state\n zip\n country\n store_url\n timezone\n currency\n created_at\n updated_at\n deleted_at\n __typename\n }\n completed_onboarding_call\n has_visitor_session\n business_roas_goals {\n id\n roas_goal\n ad_platform_id\n ad_platforms {\n id\n name\n internal_source_name\n dark_theme_image_url\n light_theme_image_url\n status\n __typename\n }\n __typename\n }\n tour_completed_at\n tour_skipped_at\n feature_flags\n onboarding_call_completed_at\n pinned_inspirations\n __typename\n }\n user_type\n is_default_business\n created_at\n updated_at\n deleted_at\n __typename\n }\n profile_photo\n is_admin_user\n link_tracking_visit_count\n link_tracking_view_status\n growth_hub_clicked_at\n inspirations_tutorial_finished_at\n mini_shop_tutorial_finished_at\n __typename\n }\n error {\n code\n message\n __typename\n }\n message\n nextToken\n __typename\n }\n}\n` as GeneratedQuery<\n APITypes.GetUserNewQueryVariables,\n APITypes.GetUserNewQuery\n>;\nexport const getPerformanceDetailsNew = /* GraphQL */ `query GetPerformanceDetailsNew(\n $getPerformanceDetailsInput: GetPerformanceDetailsInput\n) {\n getPerformanceDetailsNew(\n getPerformanceDetailsInput: $getPerformanceDetailsInput\n ) {\n data {\n performance {\n id\n source\n business_id\n purchases_count\n clicks_count\n daily_budget\n lifetime_budget\n budget\n shared_budget_name\n campaign_name\n campaign_budget\n ad_set_budget\n ad_images\n itemType\n ad_image\n ad_set\n ad_set_name\n ad\n ad_name\n sirge_ad_id\n sirge_adset_id\n sirge_campaign_id\n total_title\n source_delivery_status\n source_secondary_status\n clicks\n purchases\n purchases_source\n roas\n cost_per_purchase\n amount_spent\n average_cpm\n conversion_value\n total_conversion_value\n prev_total_conversion_value\n roas_ltv\n sirge_clicks\n sirge_purchases\n sirge_roas\n sirge_cost_per_purchase\n sirge_total_conversion_value\n prev_sirge_total_conversion_value\n created\n updated_at\n ad_type\n utm_status\n are_all_ads_connected\n transform\n __typename\n }\n summary {\n amount_spent\n clicks\n purchases\n purchases_source\n cost_per_purchase\n total_conversion_value\n prev_total_conversion_value\n roas\n ft_clicks\n ft_purchases\n ft_cost_per_purchase\n ft_total_conversion_value\n prev_ft_total_conversion_value\n ft_roas_ltv\n ft_roas\n ft_average_cpm\n number_of_records\n __typename\n }\n isRoasGoalsSet\n __typename\n }\n error {\n code\n message\n __typename\n }\n message\n nextToken\n numberPages\n __typename\n }\n}\n` as GeneratedQuery<\n APITypes.GetPerformanceDetailsNewQueryVariables,\n APITypes.GetPerformanceDetailsNewQuery\n>;\nexport const getBusinessConnectionsNew = /* GraphQL */ `query GetBusinessConnectionsNew(\n $getBusinessConnectionsInput: GetBusinessConnectionsInput!\n) {\n getBusinessConnectionsNew(\n getBusinessConnectionsInput: $getBusinessConnectionsInput\n ) {\n data {\n facebook_ad_account_id\n facebook_ad_account_name\n script_installed\n shopify_store\n tik_tok_ad_account_id\n tik_tok_ad_account_name\n __typename\n }\n error {\n code\n message\n __typename\n }\n message\n nextToken\n __typename\n }\n}\n` as GeneratedQuery<\n APITypes.GetBusinessConnectionsNewQueryVariables,\n APITypes.GetBusinessConnectionsNewQuery\n>;\nexport const getPurchasesByBusinessNew = /* GraphQL */ `query GetPurchasesByBusinessNew(\n $getPurchaseByBusinessInput: GetPurchaseByBusinessInput!\n) {\n getPurchasesByBusinessNew(\n getPurchaseByBusinessInput: $getPurchaseByBusinessInput\n ) {\n data {\n customer_name\n customer_id\n created\n purchases_count\n conversion_value\n __typename\n }\n error {\n code\n message\n __typename\n }\n message\n nextToken\n numberPages\n __typename\n }\n}\n` as GeneratedQuery<\n APITypes.GetPurchasesByBusinessNewQueryVariables,\n APITypes.GetPurchasesByBusinessNewQuery\n>;\nexport const getUserDetails = /* GraphQL */ `query GetUserDetails($getUserDetailsInput: GetUserDetailsInput!) {\n getUserDetails(getUserDetailsInput: $getUserDetailsInput) {\n data {\n business {\n id\n store_id\n name\n status\n logo\n vanity_name\n reminder_status\n show_budget_confirmation\n monthly_budget\n business_goal\n campaign_roas_goal\n adset_roas_goal\n ad_roas_goal\n created_at\n updated_at\n deleted_at\n ad_account_settings {\n id\n business_id\n ad_platform_id\n premium_page_views\n external_platform\n active_campaign_count\n paused_campaign_count\n social_account_id\n social_account_name\n social_account_currency\n social_account_timezone\n access_token\n utm_count\n social_integration\n conversion_api_enabled\n pixel_id\n social_refresh_token\n updateKey\n last_data_refreshed\n created_at\n updated_at\n deleted_at\n ad_platform {\n id\n name\n internal_source_name\n dark_theme_image_url\n light_theme_image_url\n status\n __typename\n }\n __typename\n }\n subscriptions {\n id\n business_id\n subscription_plan_code\n status\n processor\n store_subscription_body\n store_subscription_id\n promo_code_id\n trial_start\n trial_end\n trial_left\n current_billing_period_start\n current_billing_period_end\n subscription_end_date\n business_limit\n staff_limit\n subscription_charges {\n id\n business_id\n subscription_id\n store_revenue\n amount_billed\n created_at\n updated_at\n deleted_at\n __typename\n }\n promo_codes {\n id\n code\n type\n status\n duration\n amount\n created_at\n updated_at\n deleted_at\n __typename\n }\n current_revenue\n created_at\n updated_at\n deleted_at\n __typename\n }\n store {\n id\n shop_name\n address1\n address2\n city\n state\n zip\n country\n store_url\n timezone\n currency\n created_at\n updated_at\n deleted_at\n __typename\n }\n completed_onboarding_call\n has_visitor_session\n business_roas_goals {\n id\n roas_goal\n ad_platform_id\n ad_platforms {\n id\n name\n internal_source_name\n dark_theme_image_url\n light_theme_image_url\n status\n __typename\n }\n __typename\n }\n tour_completed_at\n tour_skipped_at\n feature_flags\n onboarding_call_completed_at\n pinned_inspirations\n __typename\n }\n businesses {\n business_active_count\n business_count\n business_list {\n user_id\n business_id\n business {\n id\n store_id\n name\n status\n logo\n vanity_name\n reminder_status\n show_budget_confirmation\n monthly_budget\n business_goal\n campaign_roas_goal\n adset_roas_goal\n ad_roas_goal\n created_at\n updated_at\n deleted_at\n ad_account_settings {\n id\n business_id\n ad_platform_id\n premium_page_views\n external_platform\n active_campaign_count\n paused_campaign_count\n social_account_id\n social_account_name\n social_account_currency\n social_account_timezone\n access_token\n utm_count\n social_integration\n conversion_api_enabled\n pixel_id\n social_refresh_token\n updateKey\n last_data_refreshed\n created_at\n updated_at\n deleted_at\n ad_platform {\n id\n name\n internal_source_name\n dark_theme_image_url\n light_theme_image_url\n status\n __typename\n }\n __typename\n }\n subscriptions {\n id\n business_id\n subscription_plan_code\n status\n processor\n store_subscription_body\n store_subscription_id\n promo_code_id\n trial_start\n trial_end\n trial_left\n current_billing_period_start\n current_billing_period_end\n subscription_end_date\n business_limit\n staff_limit\n subscription_charges {\n id\n business_id\n subscription_id\n store_revenue\n amount_billed\n created_at\n updated_at\n deleted_at\n __typename\n }\n promo_codes {\n id\n code\n type\n status\n duration\n amount\n created_at\n updated_at\n deleted_at\n __typename\n }\n current_revenue\n created_at\n updated_at\n deleted_at\n __typename\n }\n store {\n id\n shop_name\n address1\n address2\n city\n state\n zip\n country\n store_url\n timezone\n currency\n created_at\n updated_at\n deleted_at\n __typename\n }\n completed_onboarding_call\n has_visitor_session\n business_roas_goals {\n id\n roas_goal\n ad_platform_id\n ad_platforms {\n id\n name\n internal_source_name\n dark_theme_image_url\n light_theme_image_url\n status\n __typename\n }\n __typename\n }\n tour_completed_at\n tour_skipped_at\n feature_flags\n onboarding_call_completed_at\n pinned_inspirations\n __typename\n }\n user_type\n is_default_business\n created_at\n updated_at\n deleted_at\n __typename\n }\n __typename\n }\n status {\n active\n __typename\n }\n user {\n id\n first_name\n last_name\n email\n address1\n password\n timezone\n currency\n created_at\n updated_at\n deleted_at\n businesses {\n user_id\n business_id\n business {\n id\n store_id\n name\n status\n logo\n vanity_name\n reminder_status\n show_budget_confirmation\n monthly_budget\n business_goal\n campaign_roas_goal\n adset_roas_goal\n ad_roas_goal\n created_at\n updated_at\n deleted_at\n ad_account_settings {\n id\n business_id\n ad_platform_id\n premium_page_views\n external_platform\n active_campaign_count\n paused_campaign_count\n social_account_id\n social_account_name\n social_account_currency\n social_account_timezone\n access_token\n utm_count\n social_integration\n conversion_api_enabled\n pixel_id\n social_refresh_token\n updateKey\n last_data_refreshed\n created_at\n updated_at\n deleted_at\n ad_platform {\n id\n name\n internal_source_name\n dark_theme_image_url\n light_theme_image_url\n status\n __typename\n }\n __typename\n }\n subscriptions {\n id\n business_id\n subscription_plan_code\n status\n processor\n store_subscription_body\n store_subscription_id\n promo_code_id\n trial_start\n trial_end\n trial_left\n current_billing_period_start\n current_billing_period_end\n subscription_end_date\n business_limit\n staff_limit\n subscription_charges {\n id\n business_id\n subscription_id\n store_revenue\n amount_billed\n created_at\n updated_at\n deleted_at\n __typename\n }\n promo_codes {\n id\n code\n type\n status\n duration\n amount\n created_at\n updated_at\n deleted_at\n __typename\n }\n current_revenue\n created_at\n updated_at\n deleted_at\n __typename\n }\n store {\n id\n shop_name\n address1\n address2\n city\n state\n zip\n country\n store_url\n timezone\n currency\n created_at\n updated_at\n deleted_at\n __typename\n }\n completed_onboarding_call\n has_visitor_session\n business_roas_goals {\n id\n roas_goal\n ad_platform_id\n ad_platforms {\n id\n name\n internal_source_name\n dark_theme_image_url\n light_theme_image_url\n status\n __typename\n }\n __typename\n }\n tour_completed_at\n tour_skipped_at\n feature_flags\n onboarding_call_completed_at\n pinned_inspirations\n __typename\n }\n user_type\n is_default_business\n created_at\n updated_at\n deleted_at\n __typename\n }\n profile_photo\n is_admin_user\n link_tracking_visit_count\n link_tracking_view_status\n growth_hub_clicked_at\n inspirations_tutorial_finished_at\n mini_shop_tutorial_finished_at\n __typename\n }\n __typename\n }\n error {\n code\n message\n __typename\n }\n message\n nextToken\n __typename\n }\n}\n` as GeneratedQuery<\n APITypes.GetUserDetailsQueryVariables,\n APITypes.GetUserDetailsQuery\n>;\nexport const getUserFacebookAccountNew = /* GraphQL */ `query GetUserFacebookAccountNew(\n $getUserFacebookAccountInput: GetUserFacebookAccountInput!\n) {\n getUserFacebookAccountNew(\n getUserFacebookAccountInput: $getUserFacebookAccountInput\n ) {\n data {\n id\n name\n __typename\n }\n error {\n code\n message\n __typename\n }\n message\n nextToken\n __typename\n }\n}\n` as GeneratedQuery<\n APITypes.GetUserFacebookAccountNewQueryVariables,\n APITypes.GetUserFacebookAccountNewQuery\n>;\nexport const getDiscountCodeStatusNew = /* GraphQL */ `query GetDiscountCodeStatusNew(\n $getDiscountCodeStatusInput: GetDiscountCodeStatusInput!\n) {\n getDiscountCodeStatusNew(\n getDiscountCodeStatusInput: $getDiscountCodeStatusInput\n ) {\n data {\n id\n code\n type\n status\n duration\n amount\n created_at\n updated_at\n deleted_at\n __typename\n }\n error {\n code\n message\n __typename\n }\n message\n nextToken\n __typename\n }\n}\n` as GeneratedQuery<\n APITypes.GetDiscountCodeStatusNewQueryVariables,\n APITypes.GetDiscountCodeStatusNewQuery\n>;\nexport const getKeyMetricsStatisticsGraph = /* GraphQL */ `query GetKeyMetricsStatisticsGraph(\n $getKeyMetricsAnalyticsStatisticsInput: GetKeyMetricsAnalyticsStatisticsInput!\n) {\n getKeyMetricsStatisticsGraph(\n getKeyMetricsAnalyticsStatisticsInput: $getKeyMetricsAnalyticsStatisticsInput\n ) {\n data {\n orders {\n date\n value\n __typename\n }\n amount_spent {\n date\n value\n __typename\n }\n store_visits {\n date\n value\n __typename\n }\n total_sales {\n date\n value\n __typename\n }\n ad_clicks {\n date\n value\n __typename\n }\n __typename\n }\n error {\n code\n message\n __typename\n }\n message\n nextToken\n __typename\n }\n}\n` as GeneratedQuery<\n APITypes.GetKeyMetricsStatisticsGraphQueryVariables,\n APITypes.GetKeyMetricsStatisticsGraphQuery\n>;\nexport const getShopifyScopesStatusNew = /* GraphQL */ `query GetShopifyScopesStatusNew {\n getShopifyScopesStatusNew {\n data\n error {\n code\n message\n __typename\n }\n message\n nextToken\n __typename\n }\n}\n` as GeneratedQuery<\n APITypes.GetShopifyScopesStatusNewQueryVariables,\n APITypes.GetShopifyScopesStatusNewQuery\n>;\nexport const getAccountsCampaignsNew = /* GraphQL */ `query GetAccountsCampaignsNew(\n $getAccountsCampaignsInput: GetAccountsCampaignsInput\n) {\n getAccountsCampaignsNew(\n getAccountsCampaignsInput: $getAccountsCampaignsInput\n ) {\n data {\n facebook {\n id\n name\n status\n utm_status\n utm_injection_supported\n __typename\n }\n tiktok {\n id\n name\n status\n utm_status\n utm_injection_supported\n __typename\n }\n google {\n id\n name\n status\n utm_status\n utm_injection_supported\n __typename\n }\n __typename\n }\n error {\n code\n message\n __typename\n }\n message\n nextToken\n __typename\n }\n}\n` as GeneratedQuery<\n APITypes.GetAccountsCampaignsNewQueryVariables,\n APITypes.GetAccountsCampaignsNewQuery\n>;\nexport const getPerformanceDrawerBasicDetailsNew = /* GraphQL */ `query GetPerformanceDrawerBasicDetailsNew(\n $getPerformanceDrawerBasicDetailsInput: GetPerformanceDrawerBasicDetailsInput\n) {\n getPerformanceDrawerBasicDetailsNew(\n getPerformanceDrawerBasicDetailsInput: $getPerformanceDrawerBasicDetailsInput\n ) {\n data {\n id\n name\n campaign_name\n source\n source_delivery_status\n source_secondary_status\n no_of_ads\n no_of_adsets\n utm_status\n are_all_ads_connected\n daily_budget\n shared_budget_name\n lifetime_budget\n campaign_budget\n ad_set_budget\n ad_images\n ad_type\n created\n __typename\n }\n error {\n code\n message\n __typename\n }\n message\n nextToken\n numberPages\n __typename\n }\n}\n` as GeneratedQuery<\n APITypes.GetPerformanceDrawerBasicDetailsNewQueryVariables,\n APITypes.GetPerformanceDrawerBasicDetailsNewQuery\n>;\nexport const getPerformanceDrawerStatsNew = /* GraphQL */ `query GetPerformanceDrawerStatsNew(\n $getPerformanceDrawerStatsInput: GetPerformanceDrawerStatsInput\n) {\n getPerformanceDrawerStatsNew(\n getPerformanceDrawerStatsInput: $getPerformanceDrawerStatsInput\n ) {\n data {\n total_amount_spent\n total_roas\n total_conversion\n total_purchases\n average_cpm\n total_clicks\n cost_per_click\n total_impressions\n prev_total_amount_spent\n prev_total_roas\n prev_total_cost_per_click\n prev_total_conversion\n graph {\n total_amount_spent\n total_conversion_value\n created\n __typename\n }\n __typename\n }\n error {\n code\n message\n __typename\n }\n message\n nextToken\n numberPages\n __typename\n }\n}\n` as GeneratedQuery<\n APITypes.GetPerformanceDrawerStatsNewQueryVariables,\n APITypes.GetPerformanceDrawerStatsNewQuery\n>;\nexport const generateTrackableCopyPathNew = /* GraphQL */ `query GenerateTrackableCopyPathNew(\n $generateTrackableCopyParams: BusinessIdInput!\n) {\n generateTrackableCopyPathNew(\n generateTrackableCopyParams: $generateTrackableCopyParams\n ) {\n data {\n path\n __typename\n }\n error {\n code\n message\n __typename\n }\n message\n nextToken\n __typename\n }\n}\n` as GeneratedQuery<\n APITypes.GenerateTrackableCopyPathNewQueryVariables,\n APITypes.GenerateTrackableCopyPathNewQuery\n>;\nexport const getTrackableCopiesNew = /* GraphQL */ `query GetTrackableCopiesNew(\n $getTrackableCopiesInput: GetTrackableCopiesInput!\n) {\n getTrackableCopiesNew(getTrackableCopiesInput: $getTrackableCopiesInput) {\n data {\n rows {\n id\n name\n description\n type\n short_code\n destination_url\n url_position\n business_id\n created\n stats {\n clicks\n purchases\n revenue\n prev_clicks\n __typename\n }\n is_onboarding_default\n is_mini_shop\n __typename\n }\n summary {\n clicks\n purchases\n revenue\n total_row\n __typename\n }\n __typename\n }\n error {\n code\n message\n __typename\n }\n message\n nextToken\n numberPages\n __typename\n }\n}\n` as GeneratedQuery<\n APITypes.GetTrackableCopiesNewQueryVariables,\n APITypes.GetTrackableCopiesNewQuery\n>;\nexport const getTrackableCopyTypesNew = /* GraphQL */ `query GetTrackableCopyTypesNew($getTrackableCopyTypesInput: BusinessIdInput!) {\n getTrackableCopyTypesNew(\n getTrackableCopyTypesInput: $getTrackableCopyTypesInput\n ) {\n data\n error {\n code\n message\n __typename\n }\n message\n nextToken\n numberPages\n __typename\n }\n}\n` as GeneratedQuery<\n APITypes.GetTrackableCopyTypesNewQueryVariables,\n APITypes.GetTrackableCopyTypesNewQuery\n>;\nexport const getTrackableCopyOrdersNew = /* GraphQL */ `query GetTrackableCopyOrdersNew(\n $getTrackableCopyOrdersInput: GetTrackableCopyOrdersInput!\n) {\n getTrackableCopyOrdersNew(\n getTrackableCopyOrdersInput: $getTrackableCopyOrdersInput\n ) {\n data {\n business_id\n conversion_value\n created\n order_id\n source\n customer_id\n customer_name\n __typename\n }\n error {\n code\n message\n __typename\n }\n message\n nextToken\n numberPages\n __typename\n }\n}\n` as GeneratedQuery<\n APITypes.GetTrackableCopyOrdersNewQueryVariables,\n APITypes.GetTrackableCopyOrdersNewQuery\n>;\nexport const getKeyMetricsMonthlyBudget = /* GraphQL */ `query GetKeyMetricsMonthlyBudget(\n $getKeyMetricsMonthlyBudgetInput: GetKeyMetricsMonthlyBudgetInput!\n) {\n getKeyMetricsMonthlyBudget(\n getKeyMetricsMonthlyBudgetInput: $getKeyMetricsMonthlyBudgetInput\n ) {\n data {\n amount_spent\n source\n __typename\n }\n error {\n code\n message\n __typename\n }\n message\n nextToken\n __typename\n }\n}\n` as GeneratedQuery<\n APITypes.GetKeyMetricsMonthlyBudgetQueryVariables,\n APITypes.GetKeyMetricsMonthlyBudgetQuery\n>;\nexport const getKeyMetricsRoasTracker = /* GraphQL */ `query GetKeyMetricsRoasTracker(\n $getKeyMetricsRoasTrackerInput: GetKeyMetricsRoasTrackerInput!\n) {\n getKeyMetricsRoasTracker(\n getKeyMetricsRoasTrackerInput: $getKeyMetricsRoasTrackerInput\n ) {\n data {\n facebook {\n over\n under\n total\n __typename\n }\n tiktok {\n over\n under\n total\n __typename\n }\n google {\n over\n under\n total\n __typename\n }\n __typename\n }\n error {\n code\n message\n __typename\n }\n message\n nextToken\n __typename\n }\n}\n` as GeneratedQuery<\n APITypes.GetKeyMetricsRoasTrackerQueryVariables,\n APITypes.GetKeyMetricsRoasTrackerQuery\n>;\nexport const getAdcomparisonData = /* GraphQL */ `query GetAdcomparisonData(\n $getBusinessAnalyticsInput: GetBusinessAnalyticsInput!\n) {\n getAdcomparisonData(getBusinessAnalyticsInput: $getBusinessAnalyticsInput) {\n data {\n id\n ad_id\n ad_name\n ad_primary_status\n ad_secondary_status\n total_amount_spent\n roas\n total_orders\n total_conversion_value\n ad_images\n source\n __typename\n }\n error {\n code\n message\n __typename\n }\n message\n nextToken\n numberPages\n __typename\n }\n}\n` as GeneratedQuery<\n APITypes.GetAdcomparisonDataQueryVariables,\n APITypes.GetAdcomparisonDataQuery\n>;\nexport const getAllCustomersNew = /* GraphQL */ `query GetAllCustomersNew($getAllCustomersInput: GetAllCustomersInput!) {\n getAllCustomersNew(getAllCustomersInput: $getAllCustomersInput) {\n data {\n customers {\n last_visit\n first_visit\n total_purchases\n total_pageviews\n customer_id\n customer_name\n __typename\n }\n totalInfo {\n total_purchases\n totalrecords\n total_visitors\n total_pageviews\n total_clicks\n total_customers\n __typename\n }\n __typename\n }\n error {\n code\n message\n __typename\n }\n message\n numberPages\n __typename\n }\n}\n` as GeneratedQuery<\n APITypes.GetAllCustomersNewQueryVariables,\n APITypes.GetAllCustomersNewQuery\n>;\nexport const getCustomerJourneyVisitorGraphNew = /* GraphQL */ `query GetCustomerJourneyVisitorGraphNew(\n $getCustomerJourneyVisitorGraphInput: GetCustomerJourneyVisitorGraphInput!\n) {\n getCustomerJourneyVisitorGraphNew(\n getCustomerJourneyVisitorGraphInput: $getCustomerJourneyVisitorGraphInput\n ) {\n data {\n date\n new_visitors\n returning_visitors\n __typename\n }\n error {\n code\n message\n __typename\n }\n message\n nextToken\n __typename\n }\n}\n` as GeneratedQuery<\n APITypes.GetCustomerJourneyVisitorGraphNewQueryVariables,\n APITypes.GetCustomerJourneyVisitorGraphNewQuery\n>;\nexport const getSegmentBuilderBasicDetails = /* GraphQL */ `query GetSegmentBuilderBasicDetails(\n $getSegmentBuilderBasicDetailsInput: GetSegmentBuilderBasicDetailsInput!\n) {\n getSegmentBuilderBasicDetails(\n getSegmentBuilderBasicDetailsInput: $getSegmentBuilderBasicDetailsInput\n ) {\n data {\n cities\n states\n countries\n dynamicQueryRules\n predefinedQueries\n __typename\n }\n error {\n code\n message\n __typename\n }\n message\n nextToken\n __typename\n }\n}\n` as GeneratedQuery<\n APITypes.GetSegmentBuilderBasicDetailsQueryVariables,\n APITypes.GetSegmentBuilderBasicDetailsQuery\n>;\nexport const getAudienceSegmentQueryById = /* GraphQL */ `query GetAudienceSegmentQueryById(\n $getAudienceSegmentInput: GetAudienceSegmentInput!\n) {\n getAudienceSegmentQueryById(\n getAudienceSegmentInput: $getAudienceSegmentInput\n ) {\n data {\n id\n business_id\n no_of_customers\n added_revenue\n audience\n type\n status\n query_details\n created_at\n updated_at\n group_name\n deleted_at\n dynamic_query_params\n __typename\n }\n error {\n code\n message\n __typename\n }\n message\n nextToken\n __typename\n }\n}\n` as GeneratedQuery<\n APITypes.GetAudienceSegmentQueryByIdQueryVariables,\n APITypes.GetAudienceSegmentQueryByIdQuery\n>;\nexport const getCustomerJourneySourcesNew = /* GraphQL */ `query GetCustomerJourneySourcesNew(\n $getCustomerJourneySourcesInput: GetCustomerJourneySourcesInput!\n) {\n getCustomerJourneySourcesNew(\n getCustomerJourneySourcesInput: $getCustomerJourneySourcesInput\n ) {\n data {\n sources {\n source\n unique_visitor\n unique_sessions\n purchases_count\n __typename\n }\n totalInfo {\n total_purchases\n totalrecords\n total_visitors\n total_pageviews\n total_clicks\n total_customers\n __typename\n }\n __typename\n }\n error {\n code\n message\n __typename\n }\n message\n numberPages\n __typename\n }\n}\n` as GeneratedQuery<\n APITypes.GetCustomerJourneySourcesNewQueryVariables,\n APITypes.GetCustomerJourneySourcesNewQuery\n>;\nexport const getCustomerDetailsSourcesNew = /* GraphQL */ `query GetCustomerDetailsSourcesNew(\n $getCustomerDetailsSourcesInput: GetCustomerDetailsSourcesInput!\n) {\n getCustomerDetailsSourcesNew(\n getCustomerDetailsSourcesInput: $getCustomerDetailsSourcesInput\n ) {\n data {\n channel_name\n referer\n created_at\n __typename\n }\n total_records\n numberPages\n error {\n code\n message\n __typename\n }\n message\n nextToken\n __typename\n }\n}\n` as GeneratedQuery<\n APITypes.GetCustomerDetailsSourcesNewQueryVariables,\n APITypes.GetCustomerDetailsSourcesNewQuery\n>;\nexport const getCustomerDetailsNew = /* GraphQL */ `query GetCustomerDetailsNew(\n $getCustomerDetailsInput: GetCustomerDetailsInput!\n) {\n getCustomerDetailsNew(getCustomerDetailsInput: $getCustomerDetailsInput) {\n data {\n customer_email\n country\n state\n city\n total_pageviews\n first_visit\n total_purchases\n total_purchase_conversion_value\n customer_name\n __typename\n }\n error {\n code\n message\n __typename\n }\n message\n nextToken\n __typename\n }\n}\n` as GeneratedQuery<\n APITypes.GetCustomerDetailsNewQueryVariables,\n APITypes.GetCustomerDetailsNewQuery\n>;\nexport const getCustomerDetailsPageViewsNew = /* GraphQL */ `query GetCustomerDetailsPageViewsNew(\n $getCustomerDetailsPageViewsInput: getCustomerDetailsPageViewsInput!\n) {\n getCustomerDetailsPageViewsNew(\n getCustomerDetailsPageViewsInput: $getCustomerDetailsPageViewsInput\n ) {\n data {\n ad\n ad_set\n campaign\n conversion_value\n created\n referer\n sirge_source_name\n url\n __typename\n }\n total_records\n numberPages\n error {\n code\n message\n __typename\n }\n message\n nextToken\n __typename\n }\n}\n` as GeneratedQuery<\n APITypes.GetCustomerDetailsPageViewsNewQueryVariables,\n APITypes.GetCustomerDetailsPageViewsNewQuery\n>;\nexport const getKeyMetricsAnalyticsStatistics = /* GraphQL */ `query GetKeyMetricsAnalyticsStatistics(\n $getKeyMetricsAnalyticsStatisticsInput: GetKeyMetricsAnalyticsStatisticsInput!\n) {\n getKeyMetricsAnalyticsStatistics(\n getKeyMetricsAnalyticsStatisticsInput: $getKeyMetricsAnalyticsStatisticsInput\n ) {\n data {\n total_order {\n amount\n percentage\n trend {\n date\n value\n __typename\n }\n __typename\n }\n total_sales {\n amount\n percentage\n trend {\n date\n value\n __typename\n }\n __typename\n }\n average_order_value {\n amount\n percentage\n trend {\n date\n value\n __typename\n }\n __typename\n }\n blended_roas {\n amount\n percentage\n trend {\n date\n value\n __typename\n }\n sources {\n facebook\n tiktok\n google\n __typename\n }\n __typename\n }\n visits {\n amount\n percentage\n trend {\n date\n value\n __typename\n }\n __typename\n }\n conversion_rate {\n amount\n percentage\n trend {\n date\n value\n __typename\n }\n __typename\n }\n total_conversion_value {\n amount\n percentage\n trend {\n date\n value\n __typename\n }\n __typename\n }\n total_refunds {\n amount\n percentage\n trend {\n date\n value\n __typename\n }\n __typename\n }\n __typename\n }\n error {\n code\n message\n __typename\n }\n message\n nextToken\n __typename\n }\n}\n` as GeneratedQuery<\n APITypes.GetKeyMetricsAnalyticsStatisticsQueryVariables,\n APITypes.GetKeyMetricsAnalyticsStatisticsQuery\n>;\nexport const getCustomerChannelsNew = /* GraphQL */ `query GetCustomerChannelsNew(\n $getCustomerChannelsInput: GetCustomerChannelsInput!\n) {\n getCustomerChannelsNew(getCustomerChannelsInput: $getCustomerChannelsInput) {\n data {\n channels {\n source\n source_id\n referer\n unique_visitor\n unique_sessions\n purchases_count\n __typename\n }\n totalInfo {\n total_clicks\n total_purchases\n totalrecords\n total_visitors\n total_pageviews\n __typename\n }\n __typename\n }\n error {\n code\n message\n __typename\n }\n message\n numberPages\n __typename\n }\n}\n` as GeneratedQuery<\n APITypes.GetCustomerChannelsNewQueryVariables,\n APITypes.GetCustomerChannelsNewQuery\n>;\nexport const getCustomerChannelsDetailsNew = /* GraphQL */ `query GetCustomerChannelsDetailsNew(\n $getCustomerChannelsDetailsInput: GetCustomerChannelsDetailsInput!\n) {\n getCustomerChannelsDetailsNew(\n getCustomerChannelsDetailsInput: $getCustomerChannelsDetailsInput\n ) {\n data {\n channels {\n source\n source_id\n referer\n unique_visitor\n unique_sessions\n purchases_count\n __typename\n }\n __typename\n }\n error {\n code\n message\n __typename\n }\n message\n __typename\n }\n}\n` as GeneratedQuery<\n APITypes.GetCustomerChannelsDetailsNewQueryVariables,\n APITypes.GetCustomerChannelsDetailsNewQuery\n>;\nexport const getSourcesOrdersNew = /* GraphQL */ `query GetSourcesOrdersNew($getSourcesOrdersInput: GetSourcesOrdersInput!) {\n getSourcesOrdersNew(getSourcesOrdersInput: $getSourcesOrdersInput) {\n data {\n business_id\n conversion_value\n created\n order_id\n source\n customer_id\n customer_name\n __typename\n }\n error {\n code\n message\n __typename\n }\n message\n nextToken\n numberPages\n __typename\n }\n}\n` as GeneratedQuery<\n APITypes.GetSourcesOrdersNewQueryVariables,\n APITypes.GetSourcesOrdersNewQuery\n>;\nexport const getSuggestedSegmentsStats = /* GraphQL */ `query GetSuggestedSegmentsStats(\n $getSuggestedSegmentsStatsInput: GetSuggestedSegmentsStatsInput!\n) {\n getSuggestedSegmentsStats(\n getSuggestedSegmentsStatsInput: $getSuggestedSegmentsStatsInput\n ) {\n data {\n no_of_customers\n query_type\n __typename\n }\n total_records\n message\n error {\n code\n message\n __typename\n }\n nextToken\n __typename\n }\n}\n` as GeneratedQuery<\n APITypes.GetSuggestedSegmentsStatsQueryVariables,\n APITypes.GetSuggestedSegmentsStatsQuery\n>;\nexport const getCustomerOrdersByCustomerId = /* GraphQL */ `query GetCustomerOrdersByCustomerId(\n $getCustomerOrdersInput: GetCustomerOrdersInput!\n) {\n getCustomerOrdersByCustomerId(\n getCustomerOrdersInput: $getCustomerOrdersInput\n ) {\n data {\n id\n customer_id\n customer_name\n platform_order_id\n city\n state\n zip\n country\n currency\n conversion_value\n insight_date\n visitor_id\n deleted_at\n updated_at\n created_at\n __typename\n }\n total_records\n message\n error {\n code\n message\n __typename\n }\n nextToken\n __typename\n }\n}\n` as GeneratedQuery<\n APITypes.GetCustomerOrdersByCustomerIdQueryVariables,\n APITypes.GetCustomerOrdersByCustomerIdQuery\n>;\nexport const getAllStaticAudienceSegments = /* GraphQL */ `query GetAllStaticAudienceSegments(\n $getAllStaticAudienceSegmentQueryInput: GetAllStaticAudienceSegmentQueryInput!\n) {\n getAllStaticAudienceSegments(\n getAllStaticAudienceSegmentQueryInput: $getAllStaticAudienceSegmentQueryInput\n ) {\n data {\n id\n business_id\n group_name\n __typename\n }\n total_records\n message\n error {\n code\n message\n __typename\n }\n nextToken\n __typename\n }\n}\n` as GeneratedQuery<\n APITypes.GetAllStaticAudienceSegmentsQueryVariables,\n APITypes.GetAllStaticAudienceSegmentsQuery\n>;\nexport const getAllAudienceSegmentQueries = /* GraphQL */ `query GetAllAudienceSegmentQueries(\n $getAllAudienceSegmentQueryInput: GetAllAudienceSegmentQueryInput!\n) {\n getAllAudienceSegmentQueries(\n getAllAudienceSegmentQueryInput: $getAllAudienceSegmentQueryInput\n ) {\n data {\n id\n business_id\n no_of_customers\n added_revenue\n audience\n type\n status\n query_details\n created_at\n updated_at\n group_name\n deleted_at\n dynamic_query_params\n __typename\n }\n total_records\n message\n error {\n code\n message\n __typename\n }\n nextToken\n __typename\n }\n}\n` as GeneratedQuery<\n APITypes.GetAllAudienceSegmentQueriesQueryVariables,\n APITypes.GetAllAudienceSegmentQueriesQuery\n>;\nexport const getBusinessAIReport = /* GraphQL */ `query GetBusinessAIReport(\n $getBusinessAIReportInput: GetBusinessAIReportInput!\n) {\n getBusinessAIReport(getBusinessAIReportInput: $getBusinessAIReportInput) {\n data\n error {\n code\n message\n __typename\n }\n message\n __typename\n }\n}\n` as GeneratedQuery<\n APITypes.GetBusinessAIReportQueryVariables,\n APITypes.GetBusinessAIReportQuery\n>;\nexport const getUserTaskProgress = /* GraphQL */ `query GetUserTaskProgress($userTaskProgressInput: UserTaskProgressInput!) {\n getUserTaskProgress(userTaskProgressInput: $userTaskProgressInput) {\n data {\n task_count\n status\n objective\n __typename\n }\n __typename\n }\n}\n` as GeneratedQuery<\n APITypes.GetUserTaskProgressQueryVariables,\n APITypes.GetUserTaskProgressQuery\n>;\nexport const getSubscriptionNew = /* GraphQL */ `query GetSubscriptionNew($getSubscriptionNewInput: GetSubscriptionNewInput) {\n getSubscriptionNew(getSubscriptionNewInput: $getSubscriptionNewInput) {\n data {\n id\n business_id\n subscription_plan_code\n status\n processor\n store_subscription_body\n store_subscription_id\n promo_code_id\n promo_code_applied_at\n trial_start\n trial_end\n trial_left\n trial_extended\n current_billing_period_start\n current_billing_period_end\n subscription_end_date\n business_limit\n staff_limit\n created_at\n updated_at\n deleted_at\n __typename\n }\n error {\n code\n message\n __typename\n }\n message\n nextToken\n __typename\n }\n}\n` as GeneratedQuery<\n APITypes.GetSubscriptionNewQueryVariables,\n APITypes.GetSubscriptionNewQuery\n>;\nexport const getUserTaskCounter = /* GraphQL */ `query GetUserTaskCounter($getUserTaskCounterInput: GetUserTaskCounterInput!) {\n getUserTaskCounter(getUserTaskCounterInput: $getUserTaskCounterInput) {\n data {\n completed_tasks\n total_tasks\n __typename\n }\n error {\n code\n message\n __typename\n }\n message\n nextToken\n __typename\n }\n}\n` as GeneratedQuery<\n APITypes.GetUserTaskCounterQueryVariables,\n APITypes.GetUserTaskCounterQuery\n>;\n","import { useBoundStore } from '@store/index';\nimport { GraphQLResult } from 'aws-amplify/api';\nimport { UnknownGraphQLResponse } from '@aws-amplify/api-graphql';\nimport { Cache, CacheConfig } from '@aws-amplify/core';\n\nconst config: CacheConfig = {\n keyPrefix: 'Sirge',\n itemMaxSize: 3000,\n capacityInBytes: 1024 * 1000, // 1024000 ~= 1mb\n defaultTTL: 120 * 1000,\n warningThreshold: 1,\n defaultPriority: 1,\n};\n\nCache.createInstance(config);\n\nexport const CacheCall = async (\n operation: () => Promise> | UnknownGraphQLResponse,\n key: string,\n): Promise | UnknownGraphQLResponse> => {\n const cachedData = await Cache.getItem(key);\n\n if (cachedData) {\n await Cache.removeItem(key);\n await Cache.setItem(key, cachedData, { expires: Date.now() + 1000 * 120 });\n return cachedData;\n }\n\n const response = await operation();\n\n await Cache.setItem(key, response, { expires: Date.now() + 1000 * 120 });\n\n return response;\n};\n\nexport const clearCacheKey = async (key: string) => {\n await Cache.removeItem(key);\n};\n\nexport const clearCacheKeyWithPartialKey = async (\n partial_key: string,\n business_id: string,\n) => {\n const cachedKeys = await Cache.getAllKeys();\n\n const proms = cachedKeys\n .filter((a) => a.includes(partial_key) && a.includes(business_id))\n .map(Cache.removeItem);\n await Promise.all(proms);\n};\n\nexport const clearCache = async (business_id: string) => {\n const cachedKeys = await Cache.getAllKeys();\n\n const proms = cachedKeys\n .filter((a) => a.includes(business_id))\n .map(Cache.removeItem);\n await Promise.all(proms);\n};\n","import { GraphQLResult } from 'aws-amplify/api';\nimport { UnknownGraphQLResponse } from '@aws-amplify/api-graphql';\nimport { CacheCall, clearCacheKey } from './cacheCall';\nimport { useBoundStore } from '@store/index';\n\ntype ExtractFirstChildSubtype = T extends {\n [key: string]: infer U | null | undefined;\n}\n ? U\n : never;\n\nexport const handleGraphqlResponse = async (\n operation: () => Promise> | UnknownGraphQLResponse,\n key?: string,\n): Promise> => {\n try {\n let response = null;\n if (key) {\n response = await CacheCall(operation, key);\n } else {\n response = await operation();\n }\n\n if (!isGraphQLResult(response)) {\n if (key) await clearCacheKey(key);\n throw new Error('Invalid GraphQL response type');\n }\n\n if (!response.data) {\n throw new Error('Response data is empty');\n }\n\n\n const [mainDataKey] = Object.keys(response.data);\n const mainData = (response.data as any)[mainDataKey];\n\n if (!mainData) {\n throw new Error('Main data could not be determined');\n }\n\n return mainData;\n } catch (error) {\n if (key) await clearCacheKey(key);\n\n if ((error as any)?.errors?.[0]?.errorType === 'Unauthorized') {\n const { setSnackBar } = useBoundStore.getState();\n\n setSnackBar({\n display: true,\n message: 'You can’t make any changes and updates',\n severity: 'error',\n });\n }\n\n throw error;\n }\n};\n\nconst isGraphQLResult = (\n response: GraphQLResult | UnknownGraphQLResponse,\n): response is GraphQLResult =>\n typeof response === 'object' && 'data' in response;\n","import {StateCreator} from 'zustand';\nimport {TrackableCopy} from \"API\";\ninterface State {\n linkTrackingDialogOpen: boolean;\n trackableCopies: TrackableCopy[]\n editedTrackableCopy: TrackableCopy | null;\n deletionTrackableCopy: TrackableCopy | null;\n showYourLinkIsReady: boolean;\n showDeleteLinkDialog: boolean;\n fetchCount: number;\n}\ninterface Actions {\n setLinkTrackingDialogOpen: (linkDialogOpen: boolean) => void;\n setTrackableCopies: (trackableCopies: TrackableCopy[]) => void;\n setEditedTrackableCopy: (trackableCopy: TrackableCopy | null) => void;\n setDeletionTrackableCopy: (trackableCopy: TrackableCopy | null) => void;\n setShowYourLinkIsReady: (isYourLinkReady: boolean) => void;\n setShowDeleteLinkDialog: (showDeleteLinkDialog: boolean) => void;\n increaseFetchCount: () => void;\n}\nexport interface LinkTrackingSlice extends State, Actions {\n}\n\n\nexport const createLinkTrackingSlice: StateCreator<\n LinkTrackingSlice,\n [],\n []\n> = (set, get) => ({\n linkTrackingDialogOpen: false,\n fetchCount:0,\n increaseFetchCount: ()=> set((state) => ({...state, fetchCount: state.fetchCount + 1})),\n setLinkTrackingDialogOpen: (linkDialogOpen: boolean) =>\n set((state) => ({...state, linkTrackingDialogOpen: linkDialogOpen})),\n trackableCopies: [],\n setTrackableCopies: (trackableCopies: TrackableCopy[]) =>\n set((state) => ({...state, trackableCopies: trackableCopies})),\n editedTrackableCopy: null,\n setEditedTrackableCopy: (trackableCopy: TrackableCopy | null) =>\n set((state) => ({...state, editedTrackableCopy: trackableCopy})),\n setDeletionTrackableCopy: (trackableCopy: TrackableCopy | null) =>\n set((state) => ({...state, deletionTrackableCopy: trackableCopy})),\n deletionTrackableCopy: null,\n showYourLinkIsReady: false,\n setShowYourLinkIsReady: (isYourLinkReady: boolean) =>\n set((state) => ({...state, showYourLinkIsReady: isYourLinkReady})),\n showDeleteLinkDialog: false,\n setShowDeleteLinkDialog: (showDeleteLinkDialog: boolean) =>\n set((state) => ({...state, showDeleteLinkDialog: showDeleteLinkDialog})),\n});\n","import { create } from 'zustand';\nimport {\n createBusinessConectionSlice,\n createBusinessProfileSlice,\n createBackdropLoaderSlice,\n BusinessConnectionsSlice,\n createPerformanceSlice,\n createQuickSetupSlice,\n createAsyncDataFetchSlice,\n createLayoutslice,\n createDialogSlice,\n createTrialSlice,\n createPromoCodeSlice,\n BusinessProfileSlice,\n BackdropLoaderSlice,\n PerformanceSlice,\n QuickSetupSlice,\n AsyncDataFetchSlice,\n LayoutSlice,\n DialogSlice,\n TrialSlice,\n PromoCodeSlice,\n UserSlice,\n createUserSlice,\n DynamicSegmentStore,\n createDynamicSegmentStore,\n createAdminSelectedBusinessSlice,\n AdminSelectedBusinessSlice,\n createUnauthorizedCallSlice,\n UnauthorizedCallSlice,\n SnackBarSlice,\n createSnackBarSlice,\n AudienceStateSlice,\n createAudienceStore,\n BasicDetailSlice,\n createBasicDetailSlice,\n} from './slices';\nimport {createLinkTrackingSlice, LinkTrackingSlice} from \"@store/slices/linkTrackingSlice\";\n\nexport const useBoundStore = create<\n BusinessConnectionsSlice &\n BusinessProfileSlice &\n BackdropLoaderSlice &\n PerformanceSlice &\n QuickSetupSlice &\n AsyncDataFetchSlice &\n DialogSlice &\n TrialSlice &\n PromoCodeSlice &\n UserSlice &\n DynamicSegmentStore &\n LayoutSlice &\n AdminSelectedBusinessSlice &\n UnauthorizedCallSlice &\n SnackBarSlice &\n AudienceStateSlice &\n BasicDetailSlice &\n LinkTrackingSlice\n>()((...a) => ({\n ...createBusinessProfileSlice(...a),\n ...createBusinessConectionSlice(...a),\n ...createBackdropLoaderSlice(...a),\n ...createPerformanceSlice(...a),\n ...createQuickSetupSlice(...a),\n ...createAsyncDataFetchSlice(...a),\n ...createLayoutslice(...a),\n ...createDialogSlice(...a),\n ...createTrialSlice(...a),\n ...createPromoCodeSlice(...a),\n ...createUserSlice(...a),\n ...createDynamicSegmentStore(...a),\n ...createAudienceStore(...a),\n ...createAdminSelectedBusinessSlice(...a),\n ...createUnauthorizedCallSlice(...a),\n ...createSnackBarSlice(...a),\n ...createBasicDetailSlice(...a),\n ...createLinkTrackingSlice(...a),\n}));\n","import { AllPlatformBusiness } from 'API';\nimport { StateCreator } from 'zustand';\n\ninterface State {\n selectedAdminBusiness: AllPlatformBusiness | null;\n}\n\nexport const initialAdminSelectedBusinessSlice: State = {\n selectedAdminBusiness: null,\n};\n\ninterface Actions {\n setAdminSelectedBusiness: (\n selectedAdminBusiness: AllPlatformBusiness | null,\n ) => void;\n}\n\nexport interface AdminSelectedBusinessSlice extends State, Actions {}\n\nexport const createAdminSelectedBusinessSlice: StateCreator<\n AdminSelectedBusinessSlice,\n [],\n []\n> = (set) => ({\n ...initialAdminSelectedBusinessSlice,\n setAdminSelectedBusiness: (selectedAdminBusiness) =>\n set((state) => ({ ...state, selectedAdminBusiness })),\n});\n","import { StateCreator } from 'zustand';\nimport { BusinessProfile } from '@interfaces/business';\nimport { FacebookAdAccount } from '@interfaces/facebook';\nimport { AdAccountSettingsPrisma, BusinessPrisma, UserPrisma } from '../../API';\nimport { MarketingSources } from '@utils/enums';\n\ntype ConfiguredSources = Exclude<\n MarketingSources,\n MarketingSources.UNKNOWN | MarketingSources.ALL\n>;\n\nexport type SocialConfig = {\n [k in ConfiguredSources]: Partial<\n Omit\n >;\n};\n\ninterface State {\n businessProfile: BusinessProfile | null;\n selectedFacebookAdAccount: Partial | null;\n businessList: BusinessPrisma[];\n selectedBusiness: BusinessPrisma | null;\n businessCount: number | null;\n businessActiveCount: number | null;\n userProfile: UserPrisma | null;\n accountStatusData: boolean;\n socialConfig: SocialConfig;\n}\n\ninterface Actions {\n setBusinessProfile: (businessProfile: BusinessProfile) => void;\n setSelectedFacebookAdAccount: (\n selectedFacebookAdAccount: Partial | null,\n ) => void;\n setBusinessList: (businessList: BusinessPrisma[]) => void;\n\n setSelectedBusiness: (selectedBusiness: BusinessPrisma | null) => void;\n setBusinessCount: (businessCount: number) => void;\n setBusinessActiveCount: (businessActiveCount: number) => void;\n setUserProfile: (userProfile: UserPrisma | null) => void;\n setIsloading: (isLoading: boolean) => void;\n // Updates the business details\n updateBusinessAdAccount: (businessId: string, adData: BusinessPrisma) => void;\n setSocialConfig: (\n source: MarketingSources,\n socialAccount: Partial>,\n ) => void;\n}\n\nexport interface BusinessProfileSlice extends State, Actions {}\n\nexport const initialBusinessProfileSlice: State = {\n businessProfile: null,\n selectedFacebookAdAccount: null,\n businessList: [],\n selectedBusiness: null,\n businessCount: null,\n businessActiveCount: null,\n userProfile: null,\n accountStatusData: false,\n socialConfig: {\n [MarketingSources.FACEBOOK]: {},\n [MarketingSources.TIKTOK]: {},\n [MarketingSources.GOOGLE]: {},\n },\n};\n\nexport const createBusinessProfileSlice: StateCreator<\n BusinessProfileSlice,\n [],\n []\n> = (set) => ({\n ...initialBusinessProfileSlice,\n setBusinessProfile: (businessProfile: BusinessProfile) =>\n set((state) => ({ ...state, businessProfile })),\n setSelectedFacebookAdAccount: (\n selectedFacebookAdAccount: Partial | null,\n ) => set((state) => ({ ...state, selectedFacebookAdAccount })),\n setBusinessList: (businessList: BusinessPrisma[]) =>\n set((state) => ({ ...state, businessList })),\n setSelectedBusiness: (selectedBusiness: BusinessPrisma | null) =>\n set((state) => ({ ...state, selectedBusiness })),\n setBusinessCount: (businessCount: number) =>\n set((state) => ({ ...state, businessCount })),\n setBusinessActiveCount: (businessActiveCount: number) =>\n set((state) => ({ ...state, businessActiveCount })),\n setUserProfile: (userProfile: UserPrisma | null) =>\n set((state) => ({ ...state, userProfile })),\n setIsloading: (isLoading: boolean) =>\n set((state) => ({ ...state, isLoading })),\n updateBusinessAdAccount: (\n businessId: string,\n businessData: BusinessPrisma,\n ) => {\n return set((state) => {\n const list = state.businessList.map((business) => {\n if (business.id === businessId) {\n return {\n ...business,\n ...businessData,\n };\n }\n\n return business;\n });\n const prevBusiness = state.selectedBusiness;\n const slBusiness = {\n ...prevBusiness,\n ...businessData,\n };\n return { ...state, businessList: list, selectedBusiness: slBusiness };\n });\n },\n setSocialConfig: (source, socialConfig) =>\n set((state) => ({\n ...state,\n socialConfig: {\n ...state.socialConfig,\n [source]: {\n ...socialConfig,\n },\n },\n })),\n});\n","import { StateCreator } from 'zustand';\n\nexport type PreviousConnectedProp = {\n facebook: boolean | null;\n tiktok: boolean | null;\n google: boolean | null;\n};\n\ninterface State {\n facebookConnected: boolean;\n facebookIntegration: string;\n tiktokConnected: boolean;\n shopifyConnected: boolean;\n isLoadingConnection: boolean;\n googleConnected: boolean;\n allSocialMediaAccountsDisconnected: boolean;\n allAdsAccountsDisconnected: boolean;\n previousConnected: PreviousConnectedProp;\n}\n\ninterface Actions {\n setFacebookConnected: (facebookConnected: boolean) => void;\n setFacebokIntegration: (facebookIntegration: string) => void;\n setTiktokConnected: (tiktokConnected: boolean) => void;\n setShopifyConnected: (shopifyConnected: boolean) => void;\n setIsLoadingConnection: (isLoadingConnection: boolean) => void;\n setGoogleConnected: (googleConnected: boolean) => void;\n setAllSocialMediaAccountsDisconnected: (\n allSocialMediaAccountsDisconnected: boolean,\n ) => void;\n setAllAdsAccountsDisconnected: (allAdsAccountsDisconnected: boolean) => void;\n setPreviousConnected: (previousConnected: PreviousConnectedProp) => void;\n}\n\nexport interface BusinessConnectionsSlice extends State, Actions {}\n\nexport const initialBusinessConnectionSlice: State = {\n facebookConnected: false,\n facebookIntegration: '',\n tiktokConnected: false,\n shopifyConnected: false,\n isLoadingConnection: false,\n googleConnected: false,\n allSocialMediaAccountsDisconnected: false,\n allAdsAccountsDisconnected: false,\n previousConnected: {\n facebook: null,\n tiktok: null,\n google: null,\n },\n};\n\nexport const createBusinessConectionSlice: StateCreator<\n BusinessConnectionsSlice,\n [],\n []\n> = (set) => ({\n ...initialBusinessConnectionSlice,\n setFacebookConnected: (facebookConnected: boolean) =>\n set((state) => ({ ...state, facebookConnected })),\n setFacebokIntegration: (facebookIntegration: string) =>\n set((state) => ({ ...state, facebookIntegration })),\n setTiktokConnected: (tiktokConnected: boolean) =>\n set((state) => ({ ...state, tiktokConnected })),\n setShopifyConnected: (shopifyConnected: boolean) =>\n set((state) => ({ ...state, shopifyConnected })),\n setIsLoadingConnection: (isLoadingConnection: boolean) =>\n set((state) => ({ ...state, isLoadingConnection })),\n setGoogleConnected: (googleConnected: boolean) =>\n set((state) => ({ ...state, googleConnected })),\n setAllSocialMediaAccountsDisconnected: (\n allSocialMediaAccountsDisconnected: boolean,\n ) => set((state) => ({ ...state, allSocialMediaAccountsDisconnected })),\n setAllAdsAccountsDisconnected: (allAdsAccountsDisconnected: boolean) =>\n set((state) => ({ ...state, allAdsAccountsDisconnected })),\n setPreviousConnected: (previousConnected: PreviousConnectedProp) =>\n set((state) => ({ ...state, previousConnected })),\n});\n","import { StateCreator } from 'zustand';\n\nexport interface BackdropLoaderSlice {\n displayBackDropLoader: boolean;\n setDisplayBackDropLoader: (displayBackDropLoader: boolean) => void;\n}\n\nexport const createBackdropLoaderSlice: StateCreator<\n BackdropLoaderSlice,\n [],\n []\n> = (set) => ({\n displayBackDropLoader: false,\n setDisplayBackDropLoader: (displayBackDropLoader: boolean) =>\n set((state) => ({ ...state, displayBackDropLoader })),\n});\n","import { StateCreator } from 'zustand';\nimport { DateRange } from 'react-day-picker';\nimport { MarketingPlatforms } from '@enums/marketingPlatforms';\nimport {\n PerformanceSummary,\n PerformanceNew,\n BusinessPrisma,\n MemberCount,\n PerformanceSortObjectType,\n} from 'API';\nimport { filterConditionType } from '@interfaces/performance';\nimport { BusinessProfile } from '@interfaces/business';\nimport { BusinessProfileSlice } from './businessProfileSlice';\n\nexport const enum PerformancePageState {\n success,\n loading,\n noResults,\n noResultsWithFilters,\n adAccountsNotConnected,\n}\n\nenum Platforms {\n FACEBOOK = 'Facebook',\n TIKTOK = 'Tiktok',\n GOOGLE = 'Google',\n}\n\ninterface CallbackState {\n callback: (() => void) | null;\n}\n\ninterface State {\n currentPurchase: string | null;\n currentPlatform: MarketingPlatforms;\n currentSelectedDateValue: DateRange | undefined;\n campaignsSelected: any[];\n adSetsSelected: any[];\n adsSelected: any[];\n sirgeDataToggle: boolean;\n allPerformanceRows: PerformanceNew[];\n summaryPerformanceRows: PerformanceSummary | null;\n memberCount: MemberCount | null;\n selectedAdGroupsExplore: {\n selected_campaign_ids: string[];\n selected_ad_set_ids: string[];\n };\n currentPage: number;\n simplifiedUiChecked: boolean;\n filterProps: filterConditionType;\n loading: PerformancePageState;\n activeFilterCount: number;\n allChecked: string[];\n resetAllFilters: CallbackState;\n sortChangeColumn: PerformanceSortObjectType | undefined;\n // Used to show tooltip on the table . Can't be kept inside the cell itself because table cuts off\n hoveredRowIndex: number | null;\n showSampleData: boolean;\n}\n\ninterface Actions {\n setCurrentPurchase: (currentPurchase: string) => void;\n setHoveredRowIndex: (rowIndex: number | null) => void;\n setIsSimplifiedUiChecked: (simplifiedUiChecked: boolean) => void;\n setShowSampleData: (showSampleData: boolean) => void;\n setCurrentPlatform: (currentPlatform: MarketingPlatforms) => void;\n setCurrentSelectedDateValue: (\n currentSelectedDateValue: DateRange | undefined,\n ) => void;\n setCampaignsSelected: (campaignsSelected: any[]) => void;\n setAdSetsSelected: (adSetsSelected: any[]) => void;\n setAdsSelected: (adsSelected: any[]) => void;\n setSirgeDataToggle: (sirgeDataToggle: boolean) => void;\n setAllPerformanceRows: (allPerformanceRows: PerformanceNew[]) => void;\n setSummaryPerformanceRows: (\n summaryPerformanceRows: PerformanceSummary,\n ) => void;\n setMemberCount: (memberCount: MemberCount | null) => void;\n setselectedAdGroupsExplore: (selectedAdGroupsExplore: {\n selected_campaign_ids: string[];\n selected_ad_set_ids: string[];\n }) => void;\n setCurrentPage: (currentPage: number) => void;\n setFilterProps: (filterProps: filterConditionType) => void;\n setLoading: (loading: PerformancePageState) => void;\n setActiveFilterCount: (activeFilterCount: number) => void;\n setAllChecked: (checkedItems: string[]) => void;\n setHandlerResetFilters: (resetAllFilters: CallbackState) => void;\n executeResetFilters: () => void;\n setSortChangeColumn: (\n sortChangeColumn: PerformanceSortObjectType | undefined,\n ) => void;\n}\n\nexport interface PerformanceSlice extends State, Actions {}\n\nconst initalPurchase = (): string | null => {\n const savedPurchase: string | null = 'Ads';\n if (typeof window !== 'undefined') {\n const localSavedPurchase = localStorage.getItem('current_purchase');\n if (localSavedPurchase) {\n return localSavedPurchase;\n }\n }\n return savedPurchase;\n};\nconst initialSimplifiedUiChecked = () => {\n if (typeof window === 'undefined') {\n return true;\n }\n if (window.localStorage.getItem('simplifiedUiChecked') === null) {\n return true;\n }\n return localStorage.getItem('simplifiedUiChecked') === 'true';\n};\n\nconst initialPlatform = (\n businessProfile: BusinessProfile | null | undefined,\n selectedBusiness: BusinessPrisma | null | undefined,\n): MarketingPlatforms => {\n let savedPlatform: string | null = null;\n\n if (typeof window !== 'undefined') {\n const localPlatform = localStorage.getItem('current_platform');\n if (localPlatform !== null) {\n savedPlatform = localPlatform;\n }\n }\n let value;\n\n if (savedPlatform) {\n const fbPlatform = selectedBusiness?.ad_account_settings.find(\n (accountSetting) => {\n accountSetting.ad_platform.name === Platforms.FACEBOOK;\n },\n );\n const tiktokPlatform = selectedBusiness?.ad_account_settings.find(\n (accountSetting) => {\n accountSetting.ad_platform.name === Platforms.TIKTOK;\n },\n );\n if (\n savedPlatform === MarketingPlatforms.FACEBOOK &&\n businessProfile?.profile?.facebook_ad_account_id &&\n fbPlatform?.access_token\n )\n value = MarketingPlatforms.FACEBOOK;\n if (\n savedPlatform === MarketingPlatforms.TIKTOK &&\n businessProfile?.profile?.tik_tok_ad_account_id &&\n tiktokPlatform?.social_integration\n )\n value = MarketingPlatforms.TIKTOK;\n }\n\n if (!value) value = MarketingPlatforms.ALLPLATFORMS;\n return value as MarketingPlatforms;\n};\n\nconst initalSummary = (): PerformanceSummary => {\n const summary = {\n amount_spent: 0,\n clicks: 0,\n purchases: 0,\n cost_per_purchase: 0,\n total_conversion_value: 0,\n roas: '',\n ft_clicks: 0,\n ft_purchases: 0,\n ft_cost_per_purchase: 0,\n ft_total_conversion_value: 0,\n ft_roas: '',\n } as PerformanceSummary;\n return summary;\n};\n\nexport const createPerformanceSlice: StateCreator<\n PerformanceSlice & Partial,\n [],\n []\n> = (set, get) => ({\n hoveredRowIndex: null,\n setHoveredRowIndex: (hoveredRowIndex: number | null) =>\n set((state) => ({ ...state, hoveredRowIndex })),\n currentPurchase: initalPurchase(),\n setCurrentPurchase: (currentPurchase: string) =>\n set((state) => ({ ...state, currentPurchase })),\n simplifiedUiChecked: initialSimplifiedUiChecked(),\n setIsSimplifiedUiChecked: (isSimplifiedUiChecked: boolean) =>\n set((state) => ({ ...state, simplifiedUiChecked: isSimplifiedUiChecked })),\n currentPlatform: initialPlatform(\n get()?.businessProfile,\n get()?.selectedBusiness,\n ),\n setCurrentPlatform: (currentPlatform: MarketingPlatforms) =>\n set((state) => ({ ...state, currentPlatform })),\n currentSelectedDateValue: undefined,\n setCurrentSelectedDateValue: (\n currentSelectedDateValue: DateRange | undefined,\n ) => set((state) => ({ ...state, currentSelectedDateValue })),\n campaignsSelected: [],\n setCampaignsSelected: (campaignsSelected: any[]) =>\n set((state) => ({ ...state, campaignsSelected })),\n adSetsSelected: [],\n setAdSetsSelected: (adSetsSelected: any[]) =>\n set((state) => ({ ...state, adSetsSelected })),\n adsSelected: [],\n setAdsSelected: (adsSelected: any[]) =>\n set((state) => ({ ...state, adsSelected })),\n sirgeDataToggle: false,\n setSirgeDataToggle: (sirgeDataToggle: boolean) =>\n set((state) => ({ ...state, sirgeDataToggle })),\n allPerformanceRows: [],\n setAllPerformanceRows: (allPerformanceRows: PerformanceNew[]) =>\n set((state) => ({ ...state, allPerformanceRows })),\n summaryPerformanceRows: initalSummary(),\n setSummaryPerformanceRows: (summaryPerformanceRows: PerformanceSummary) =>\n set((state) => ({ ...state, summaryPerformanceRows })),\n memberCount: {\n __typename: 'MemberCount',\n adSetCount: null,\n adsCount: null,\n },\n setMemberCount: (memberCount: MemberCount | null) =>\n set((state) => ({ ...state, memberCount })),\n selectedAdGroupsExplore: {\n selected_campaign_ids: [] as string[],\n selected_ad_set_ids: [] as string[],\n },\n setselectedAdGroupsExplore: (selectedAdGroupsExplore: {\n selected_campaign_ids: string[];\n selected_ad_set_ids: string[];\n }) => set((state) => ({ ...state, selectedAdGroupsExplore })),\n currentPage: 0,\n setCurrentPage: (currentPage: number) =>\n set((state) => ({ ...state, currentPage })),\n filterProps: {\n activeChecked: true,\n filterStatus: false,\n Condition: [],\n roas: null,\n },\n setFilterProps: (filterProps: filterConditionType) =>\n set((state) => {\n return { ...state, filterProps };\n }),\n loading: PerformancePageState.loading,\n setLoading: (loading: PerformancePageState) =>\n set((state) => ({ ...state, loading: loading })),\n activeFilterCount: 1,\n setActiveFilterCount: (activeFilterCount: number) =>\n set((state) => ({ ...state, activeFilterCount })),\n allChecked: [],\n setAllChecked: (checkedItems: string[]) =>\n set((state) => ({ ...state, allChecked: checkedItems })),\n resetAllFilters: { callback: null },\n setHandlerResetFilters: (resetAllFilters) =>\n set((state) => ({ ...state, resetAllFilters })),\n executeResetFilters: () => get().resetAllFilters.callback?.(),\n sortChangeColumn: { field: 'amount_spent', sort: false },\n setSortChangeColumn: (\n sortChangeColumn: PerformanceSortObjectType | undefined,\n ) => set((state) => ({ ...state, sortChangeColumn: sortChangeColumn })),\n showSampleData: false,\n setShowSampleData: (showSampleData: boolean) =>\n set((state) => ({ ...state, showSampleData })),\n});\n","import { StateCreator } from 'zustand';\n\ninterface CallbackState {\n callback: (() => void) | null;\n}\n\nexport type TextMainButtonType =\n | 'Continue'\n | 'Connect All'\n | 'Connect tracking script';\n\ntype TextSecondaryButtonType = 'Connect Selectively' | 'Decline';\n\nexport interface QuickSetupSlice {\n showButton: boolean;\n setShowButton: (showButton: boolean) => void;\n loadingSetup: boolean;\n setLoadingSetup: (loading: boolean) => void;\n isUpdating: boolean;\n setIsUpdating: (isUpdating: boolean) => void;\n userHaveAds: boolean;\n setUserHaveAds: (userHaveAds: boolean) => void;\n mainButtonAction: CallbackState;\n setMainButtonAction: (mainButtonAction: CallbackState) => void;\n executeMainButtonAction: () => void;\n secondaryButtonAction: CallbackState;\n setSecondaryButtonAction: (secondaryButtonAction: CallbackState) => void;\n executeSecondaryButtonAction: () => void;\n textMainButton: TextMainButtonType;\n setTextMainbutton: (textMainButton: TextMainButtonType) => void;\n textSecondaryButton: TextSecondaryButtonType;\n setTextSecondaryButton: (\n textSecondaryButton: TextSecondaryButtonType,\n ) => void;\n}\n\nexport const createQuickSetupSlice: StateCreator = (\n set,\n get,\n) => ({\n showButton: true,\n setShowButton: (showButton) => set((state) => ({ ...state, showButton })),\n loadingSetup: false,\n setLoadingSetup: (loading) =>\n set((state) => ({ ...state, loadingSetup: loading })),\n isUpdating: false,\n setIsUpdating: (isUpdating) => set((state) => ({ ...state, isUpdating })),\n userHaveAds: false,\n setUserHaveAds: (userHaveAds) => set((state) => ({ ...state, userHaveAds })),\n mainButtonAction: { callback: null },\n setMainButtonAction: (mainButtonAction) =>\n set((state) => ({ ...state, mainButtonAction })),\n executeMainButtonAction: () => get().mainButtonAction.callback?.(),\n secondaryButtonAction: { callback: null },\n setSecondaryButtonAction: (secondaryButtonAction) =>\n set((state) => ({ ...state, secondaryButtonAction })),\n executeSecondaryButtonAction: () => get().secondaryButtonAction.callback?.(),\n textMainButton: 'Continue',\n setTextMainbutton: (textMainButton) =>\n set((state) => ({ ...state, textMainButton })),\n textSecondaryButton: 'Connect Selectively',\n setTextSecondaryButton: (textSecondaryButton) =>\n set((state) => ({ ...state, textSecondaryButton })),\n});\n","/* tslint:disable */\n/* eslint-disable */\n// this is an auto generated file. This will be overwritten\n\nimport * as APITypes from \"../API\";\ntype GeneratedSubscription = string & {\n __generatedSubscriptionInput: InputType;\n __generatedSubscriptionOutput: OutputType;\n};\n\nexport const onDataRefreshedForBusiness = /* GraphQL */ `subscription OnDataRefreshedForBusiness($data: String!) {\n onDataRefreshedForBusiness(data: $data) {\n data\n error {\n code\n message\n __typename\n }\n message\n nextToken\n __typename\n }\n}\n` as GeneratedSubscription<\n APITypes.OnDataRefreshedForBusinessSubscriptionVariables,\n APITypes.OnDataRefreshedForBusinessSubscription\n>;\n","import { StateCreator } from 'zustand';\nimport * as Sentry from '@sentry/nextjs';\nimport dayjs from 'dayjs';\nimport { onDataRefreshedForBusiness } from '@graphql/subscriptions';\nimport { BusinessProfileSlice } from './businessProfileSlice';\nimport { triggerBusinessDataLongFetchNew } from '@graphql/mutations';\nimport { generateClient } from 'aws-amplify/api';\nimport { Subscription } from 'rxjs';\nimport { handleGraphqlResponse } from '@modules/handleGraphqlResponse';\nimport {\n OnDataRefreshedForBusinessSubscription,\n TriggerBusinessDataLongFetchNewMutation,\n} from 'API';\nimport { GraphqlSubscriptionResult } from '@aws-amplify/api-graphql';\nimport { clearCache } from '@modules/cacheCall';\n\nexport interface AsyncDataFetchSlice {\n fetchComplete: boolean;\n setFetchComplete: (fetchComplete: boolean) => void;\n asyncFetchLoading: boolean;\n setAsyncFetchLoading: (asyncFetchLoading: boolean) => void;\n displayLoader: boolean;\n setDisplayLoader: (displayLoader: boolean) => void;\n subscriptionHandler?: Subscription;\n setSubscriptionHandler: (subscriptionHandler: Subscription) => void;\n listenerCount: number;\n triggerFetch: (\n businessId: string,\n refreshAferFetch?: boolean,\n ) => Promise;\n addListener: () => void;\n removeListener: () => void;\n}\n\nconst client = generateClient();\n\nexport const createAsyncDataFetchSlice: StateCreator<\n AsyncDataFetchSlice & Partial,\n [],\n []\n> = (set, get) => ({\n fetchComplete: false,\n setFetchComplete: (fetchComplete) =>\n set((state) => ({ ...state, fetchComplete })),\n asyncFetchLoading: false,\n setAsyncFetchLoading: (asyncFetchLoading) =>\n set((state) => ({ ...state, asyncFetchLoading })),\n displayLoader: false,\n setDisplayLoader: (displayLoader) =>\n set((state) => ({ ...state, displayLoader })),\n subscriptionHandler: undefined,\n setSubscriptionHandler: (subscriptionHandler) =>\n set((state) => ({ ...state, subscriptionHandler })),\n listenerCount: 0,\n triggerFetch: async (businessId: string, refreshAferFetch = true) => {\n try {\n const subscriptionHandler = get().subscriptionHandler;\n if (subscriptionHandler) {\n subscriptionHandler.unsubscribe();\n }\n\n set((state) => ({ ...state, asyncFetchLoading: true }));\n set((state) => ({ ...state, displayLoader: true }));\n set((state) => ({ ...state, fetchComplete: false }));\n\n // Timeout to automatically close the data loader after 10s\n setTimeout(() => {\n set((state) => ({\n ...state,\n asyncFetchLoading: false,\n }));\n setTimeout(() => {\n set((state) => ({\n ...state,\n displayLoader: false,\n }));\n }, 1000);\n }, 10000);\n\n const response =\n await handleGraphqlResponse(\n () =>\n client.graphql({\n query: triggerBusinessDataLongFetchNew,\n variables: {\n triggerBusinessDataLongFetchInput: {\n business_id: businessId,\n },\n },\n }),\n );\n\n if (response.error) {\n Sentry.captureException(response.error);\n set((state) => ({ ...state, asyncFetchLoading: false }));\n return;\n }\n\n const subscription = (await client.graphql({\n query: onDataRefreshedForBusiness,\n variables: {\n data: businessId,\n },\n })) as GraphqlSubscriptionResult;\n\n const selectedBusiness = get().selectedBusiness;\n\n const handler = subscription.subscribe({\n next: async () => {\n console.log('onDataRefreshedForBusiness');\n await clearCache(businessId);\n if (selectedBusiness && refreshAferFetch) {\n const adAccountSettings = selectedBusiness.ad_account_settings.map(\n (m) => {\n m.last_data_refreshed = dayjs().format();\n return m;\n },\n );\n selectedBusiness.ad_account_settings = adAccountSettings;\n set((state) => ({\n ...state,\n selectedBusiness: {\n ...selectedBusiness,\n ad_account_settings: selectedBusiness.ad_account_settings.map(\n (setting) => ({\n ...setting,\n last_data_refreshed: dayjs().format(\n 'YYYY-MM-DD HH:mm:ss.SSS Z',\n ),\n }),\n ),\n },\n }));\n }\n if (refreshAferFetch) {\n set((state) => ({ ...state, fetchComplete: true }));\n }\n\n if (get().listenerCount <= 0) {\n set((state) => ({\n ...state,\n asyncFetchLoading: false,\n }));\n setTimeout(() => {\n set((state) => ({\n ...state,\n displayLoader: false,\n }));\n }, 1000);\n }\n },\n error: (error) => Sentry.captureException(error),\n });\n\n set((state) => ({ ...state, subscriptionHandler: handler }));\n console.log('🚀 ~ triggerFetch: ~ handler:', handler);\n } catch (error) {\n console.log('some error', error);\n set((state) => ({ ...state, displayLoader: false }));\n Sentry.captureException(error);\n }\n },\n addListener: () =>\n set((state) => ({ ...state, listenerCount: state.listenerCount + 1 })),\n removeListener: () => {\n set((state) => ({ ...state, listenerCount: state.listenerCount - 1 }));\n if (get().listenerCount === 1) {\n set((state) => ({\n ...state,\n asyncFetchLoading: false,\n }));\n }\n },\n});\n","import { StateCreator } from 'zustand';\n\nexport interface LayoutSlice {\n isLoading: boolean;\n setIsLoading: (isLoading: boolean) => void;\n isSidebarOpen: boolean;\n setIsSidebarOpen: (isSidebarOpen: boolean) => void;\n openList: boolean;\n setOpenList: (openList: boolean) => void;\n previousPath: string;\n setPreviousPath: (previousPath: string) => void;\n sidebarDisabled: boolean;\n setSidebarDisabled: (sidebarDisabled: boolean) => void;\n}\n\nexport const createLayoutslice: StateCreator = (set) => ({\n isSidebarOpen: false,\n isLoading: true,\n openList: false,\n sidebarDisabled: false,\n previousPath: '',\n setIsSidebarOpen: (isSidebarOpen) =>\n set((state) => ({ ...state, isSidebarOpen })),\n setSidebarDisabled: (sidebarDisabled) =>\n set((state) => ({ ...state, sidebarDisabled })),\n setOpenList: (openList) => set((state) => ({ ...state, openList })),\n setIsLoading: (isLoading: boolean) =>\n set((state) => ({ ...state, isLoading })),\n setPreviousPath: (previousPath) =>\n set((state) => ({ ...state, previousPath })),\n});\n","export enum DialogTypes {\n SUCCESS = 'success',\n ERROR = 'error',\n}\n","import { DialogTypes } from '@enums/dialogTypes';\nimport { DialogOption } from '@interfaces/dialogOption';\nimport { StateCreator } from 'zustand';\n\ninterface State {\n showDialog: boolean;\n dialogOptions: DialogOption;\n}\n\nexport const initialDialogSlice: State = {\n showDialog: false,\n dialogOptions: {\n type: DialogTypes.SUCCESS,\n message: '',\n },\n};\n\ninterface Actions {\n setShowDialog: (showDialog: boolean) => void;\n setDialogOptions: (dialogOptions: DialogOption) => void;\n}\n\nexport interface DialogSlice extends State, Actions {}\n\nexport const createDialogSlice: StateCreator = (set) => ({\n ...initialDialogSlice,\n setShowDialog: (showDialog) => set((state) => ({ ...state, showDialog })),\n setDialogOptions: (dialogOptions) =>\n set((state) => ({ ...state, dialogOptions })),\n});\n","import { StateCreator } from 'zustand';\n\ninterface State {\n isTrial: boolean;\n trialLeft: number;\n trialTotal: number;\n}\n\nexport const initialTrialSlice: State = {\n isTrial: false,\n trialLeft: 0,\n trialTotal: 0,\n};\n\ninterface Actions {\n setIsTrial: (isTrial: boolean) => void;\n setTrialLeft: (trialLeft: number) => void;\n setTrialTotal: (trialTotal: number) => void;\n}\n\nexport interface TrialSlice extends State, Actions {}\n\nexport const createTrialSlice: StateCreator = (set) => ({\n ...initialTrialSlice,\n setIsTrial: (isTrial: boolean) => set((state) => ({ ...state, isTrial })),\n setTrialLeft: (trialLeft: number) =>\n set((state) => ({ ...state, trialLeft })),\n setTrialTotal: (trialTotal: number) =>\n set((state) => ({ ...state, trialTotal })),\n});\n","// import { PromoCode } from '@sirge-io/sirge-types/dist/interfaces/promoCodes';\nimport { PromoCode } from 'API';\nimport { StateCreator } from 'zustand';\n\ninterface State {\n promoCode?: PromoCode;\n}\n\nexport const initialPromoCodeSlice: State = {\n promoCode: undefined,\n};\n\ninterface Actions {\n setPromoCode: (promoCode: PromoCode) => void;\n}\n\nexport interface PromoCodeSlice extends State, Actions {}\n\nexport const createPromoCodeSlice: StateCreator = (\n set,\n) => ({\n ...initialPromoCodeSlice,\n setPromoCode: (promoCode: PromoCode) =>\n set((state) => ({ ...state, promoCode })),\n});\n","import { SnackBarState } from '@interfaces/snackbar';\nimport { StateCreator } from 'zustand';\n\ninterface State {\n snackBar: SnackBarState;\n}\n\nexport const initialSnackBarSlice: State = {\n snackBar: {\n display: false,\n message: 'hello there',\n severity: 'success',\n },\n};\n\ninterface Actions {\n setSnackBar: (snackBar: SnackBarState) => void;\n}\n\nexport interface SnackBarSlice extends State, Actions {}\n\nexport const createSnackBarSlice: StateCreator = (\n set,\n) => ({\n ...initialSnackBarSlice,\n setSnackBar: (snackBar) => set((state) => ({ ...state, snackBar })),\n});\n","import { UserPrisma, UserSession } from 'API';\nimport { StateCreator } from 'zustand';\n\ninterface State {\n sessions: UserSession[];\n staff?: UserPrisma;\n lastActivity: string;\n}\n\nexport const initialUserSlice: State = {\n sessions: [],\n staff: undefined,\n lastActivity: '',\n};\n\ninterface Actions {\n setSessions: (sessions: UserSession[]) => void;\n setStaff: (staff: UserPrisma) => void;\n setLastActivity: (lastActivity: string) => void;\n}\n\nexport interface UserSlice extends State, Actions {}\n\nexport const createUserSlice: StateCreator = (set) => ({\n ...initialUserSlice,\n setSessions: (sessions) => set((state) => ({ ...state, sessions })),\n setStaff: (staff) => set((state) => ({ ...state, staff })),\n setLastActivity: (lastActivity) =>\n set((state) => ({ ...state, lastActivity })),\n});\n","import { StateCreator } from 'zustand';\n\ninterface State {\n showUnAuthorizedCallTooltip: boolean;\n}\n\nexport const initialUnauthorizedCallSlice: State = {\n showUnAuthorizedCallTooltip: false,\n};\n\ninterface Actions {\n setShowUnAuthorizedCallTooltip: (\n showUnAuthorizedCallTooltip: boolean,\n ) => void;\n}\n\nexport interface UnauthorizedCallSlice extends State, Actions {}\n\nexport const createUnauthorizedCallSlice: StateCreator<\n UnauthorizedCallSlice,\n [],\n []\n> = (set) => ({\n ...initialUnauthorizedCallSlice,\n setShowUnAuthorizedCallTooltip: (showUnAuthorizedCallTooltip) =>\n set((state) => ({ ...state, showUnAuthorizedCallTooltip })),\n});\n","export enum PropertyNames {\n CUSTOMER_WHO_HAVE = 'property',\n CUSTOMER_WHO_DID = 'action',\n CUSTOMER_WHO_ARE_IN_NOT_IN = 'in_not_in',\n GROUP = 'group',\n}\n\nexport enum Operators {\n Equal = 'equal',\n}\n\nexport enum LogicalOperator {\n And = 'and',\n Or = 'or',\n}\n\nexport const DEFAULT_PROPERTY_OPERATOR = 'billing_zip';\n\nexport type Rule = {\n id: string;\n logicalOperator?: LogicalOperator;\n isRuleGroup: boolean;\n type: PropertyNames.GROUP;\n rules: Array; // Updated to include RuleGroup\n};\n\nexport type RuleTypes = PropertyRule | ActionRule;\n\nexport type PropertyRule = {\n id: string;\n isRule: boolean;\n type:\n | PropertyNames.CUSTOMER_WHO_HAVE\n | PropertyNames.CUSTOMER_WHO_ARE_IN_NOT_IN;\n field: string;\n operator: string;\n value: any;\n};\n\nexport type ActionRule = {\n id: string;\n isRule: boolean;\n type: PropertyNames.CUSTOMER_WHO_DID;\n action: string;\n frequency?: { operator: string; value: number | string };\n timeFrame: TimeFrameType;\n filters?: Filter[]; // Assuming Filter is a defined type\n};\n\nexport type TimeFrameType = {\n operator: string;\n xDimension?: number;\n dimension?: number;\n xDate?: Date | null;\n yDimension?: number;\n yDate?: Date | null;\n};\n\nexport type Filter = {\n id: number;\n field?: string;\n operator?: string;\n value?: Array;\n};\n\nexport type CustomerDefinitionSelectionRule = {\n id: string;\n type: PropertyNames;\n logicalOperator: LogicalOperator;\n fields?: {\n name: string;\n label: string;\n operators: {\n name: string;\n label: string;\n deprecated: boolean;\n };\n suggestions: boolean;\n constraints?: {\n min: number;\n max: number;\n };\n dataType: string;\n operatorOptions?: {\n isInTheBest?: {\n name: number;\n label: string;\n };\n isInTheWorst?: {\n name: number;\n label: string;\n };\n };\n };\n actions?: {\n name: string;\n label: string;\n dataType: string;\n operators?: Record;\n frequencyOperators?: {\n name: string;\n label: string;\n type: string;\n value: number;\n };\n timeFrameOperators?: {\n name: string;\n label: string;\n value: number;\n };\n timeFrameOperatorOptions?: {\n name: number;\n label: string;\n };\n };\n isRule: boolean;\n isRuleGroup: boolean;\n filters: Array;\n rules?: Array;\n};\n\nexport const action = {\n actions: {\n name: 'Action',\n label: PropertyNames.CUSTOMER_WHO_DID,\n frequencyOperators: {\n name: Operators,\n label: '',\n type: '',\n value: 0,\n },\n timeFrameOperators: {\n name: '',\n label: '',\n value: 0,\n },\n timeFrameOperatorOptions: {\n name: 0,\n label: '',\n },\n },\n};\n\nexport const fields = {\n fields: {\n name: 'Property',\n label: 'property',\n operators: {\n name: '',\n label: '',\n deprecated: false,\n },\n suggestions: false,\n constraints: {\n min: 0,\n max: 0,\n },\n dataType: '',\n },\n};\nexport type PredefinedQueries = {\n bestBuyers: Rule;\n bigSpenders: Rule;\n loyalCustomers: Rule;\n newCustomers: Rule;\n abandonedCarts: Rule;\n discountBuyers: Rule;\n inActiveCustomers: Rule;\n reviewers: Rule;\n highAov: Rule;\n};\n","import { tryParseJSON } from '@utils/tryParse';\nimport {\n DEFAULT_PROPERTY_OPERATOR,\n LogicalOperator,\n Operators,\n PropertyNames,\n PropertyRule,\n Rule,\n} from '_utils/dynamic-query-builder-types';\nimport { SegmentTypes, Segments } from 'API';\nimport create, { StateCreator } from 'zustand';\n\nexport const initialRule: Segments = {\n __typename: 'Segments',\n id: '',\n business_id: '',\n no_of_customers: 0,\n added_revenue: 0,\n audience: '',\n type: SegmentTypes.dynamic,\n status: '',\n query_details: '',\n created_at: '',\n updated_at: '',\n group_name: '',\n deleted_at: '',\n dynamic_query_params: '',\n};\n\nexport const initialRuleSegment: Rule = {\n id: '0',\n logicalOperator: LogicalOperator.And,\n type: PropertyNames.GROUP,\n isRuleGroup: true,\n rules: [\n {\n id: '1',\n logicalOperator: LogicalOperator.And,\n isRuleGroup: true,\n type: PropertyNames.GROUP,\n rules: [\n {\n id: '1.1',\n type: PropertyNames.CUSTOMER_WHO_HAVE,\n field: DEFAULT_PROPERTY_OPERATOR,\n isRule: true,\n operator: Operators.Equal,\n value: '',\n } as PropertyRule,\n ],\n },\n ],\n};\n\nexport interface DynamicSegmentStore {\n segment: Segments;\n dynamicSegment: Rule;\n isEdit: boolean;\n setSegment: (segment: Segments | undefined) => void;\n setDynamicSegment: (dynamicSegment: Rule) => void;\n setIsEdit: (isEdit: boolean) => void;\n}\n\nexport const createDynamicSegmentStore: StateCreator = (\n set,\n) => ({\n segment: tryParseJSON(JSON.stringify(initialRule)),\n isEdit: false,\n dynamicSegment: tryParseJSON(JSON.stringify(initialRuleSegment)),\n setSegment: (segment) => set({ segment }),\n setDynamicSegment: (dynamicSegment) => set({ dynamicSegment }),\n setIsEdit: (isEdit) => set({ isEdit }),\n});\n","import { handleGraphqlResponse } from '@modules/handleGraphqlResponse';\nimport {\n GetAllAudienceSegmentQueriesQuery,\n GetSuggestedSegmentsStatsResult,\n Segments,\n} from 'API';\nimport { StateCreator } from 'zustand';\nimport { generateClient } from 'aws-amplify/api';\nimport { getAllAudienceSegmentQueries } from '@graphql/queries';\nimport * as Sentry from '@sentry/nextjs';\nimport { DateRange } from 'react-day-picker';\n\nexport interface AudienceStateSlice {\n audiences: Segments[];\n setAudiences: (segments: Segments[]) => void;\n isAudienceLoading: boolean;\n fetchAudiences: (props: FetchAudiencesProps) => Promise;\n record: number;\n isAudienceError: string | null;\n currentSelectedDateValue: DateRange | undefined;\n setCurrentSelectedDateValue: (value: DateRange | undefined) => void;\n dataFetched: boolean;\n setDataFetch: (fetchState: boolean) => void;\n segmentStats: GetSuggestedSegmentsStatsResult[];\n setSegmentStats: (state: GetSuggestedSegmentsStatsResult[]) => void;\n fetchPage: number;\n}\n\nexport interface FetchAudiencesProps {\n limit: number;\n page: number;\n business_id: string;\n filter: {\n startDate: string;\n endDate: string;\n };\n}\n\nconst client = generateClient();\n\nexport const createAudienceStore: StateCreator = (set) => ({\n audiences: [],\n setAudiences: (segments) => set({ audiences: segments }),\n isAudienceLoading: true,\n record: 0,\n currentSelectedDateValue: undefined,\n isAudienceError: null,\n dataFetched: false,\n setDataFetch: (fetchState) => set({ dataFetched: fetchState }),\n fetchPage: 0,\n segmentStats: [],\n setSegmentStats: (state) => set({ segmentStats: state }),\n setCurrentSelectedDateValue: (value) =>\n set({ currentSelectedDateValue: value }),\n fetchAudiences: async (props) => {\n try {\n set({ isAudienceLoading: true });\n const response =\n await handleGraphqlResponse(() =>\n client.graphql({\n query: getAllAudienceSegmentQueries,\n variables: {\n getAllAudienceSegmentQueryInput: {\n limit: props.limit,\n page: props.page,\n business_id: props.business_id,\n filter: {\n startDate: props.filter.startDate,\n endDate: props.filter.endDate,\n },\n },\n },\n }),\n );\n\n if (\n response.data &&\n response.message === 'Audience Segments Fetched Successfully' &&\n response.error === null\n ) {\n set({ audiences: response.data as Segments[] });\n set({ record: response.total_records as number });\n set({ isAudienceError: null });\n set({ dataFetched: true });\n set({ fetchPage: props.page });\n set({ isAudienceLoading: false });\n } else {\n Sentry.captureException(response.error?.message);\n set({ isAudienceError: response.error?.message });\n }\n set({ isAudienceLoading: false });\n } catch (error) {\n set({ isAudienceLoading: false });\n Sentry.captureException(error);\n let errorMessage = 'Unexpected error';\n if (error instanceof Error) {\n errorMessage = `Unable to perform action due to ${error.message} `;\n }\n set({ isAudienceError: errorMessage });\n }\n },\n});\n","import { StateCreator } from 'zustand';\n\ninterface State {\n dynamicRules: any;\n cities: string[];\n countries: string[];\n states: string[];\n isLoading: boolean;\n predefinedQueries: any;\n}\n\nexport const initialBasicDetail: State = {\n dynamicRules: [],\n cities: [],\n countries: [],\n states: [],\n isLoading: false,\n predefinedQueries: {},\n};\n\ninterface Actions {\n setDynamicRules: (dynamicRules: any) => void;\n setCities: (cities: string[]) => void;\n setCountries: (countries: string[]) => void;\n setStates: (states: string[]) => void;\n setIsLoading: (isLoading: boolean) => void;\n setPredefinedQueries: (predefinedQueries: any) => void;\n}\n\nexport interface BasicDetailSlice extends State, Actions {}\n\nexport const createBasicDetailSlice: StateCreator = (\n set,\n) => ({\n ...initialBasicDetail,\n setDynamicRules: (dynamicRules) =>\n set((state) => ({ ...state, dynamicRules })),\n setCities: (cities) => set((state) => ({ ...state, cities })),\n setCountries: (countries) => set((state) => ({ ...state, countries })),\n setStates: (states) => set((state) => ({ ...state, states })),\n setIsLoading: (isLoading) => set((state) => ({ ...state, isLoading })),\n setPredefinedQueries: (predefinedQueries) =>\n set((state) => ({ ...state, predefinedQueries })),\n});\n","import { StateCreator } from 'zustand';\n\ninterface State {\n pinnedInspirations: string[];\n}\n\nexport const initialInspirationsSlice: State = {\n pinnedInspirations: [],\n};\n\ninterface Actions {\n setPinnedInspirations: (items: string[]) => void;\n}\n\nexport interface InspirationsSlice extends State, Actions {}\n\nexport const createInspirationsSlice: StateCreator<\n InspirationsSlice,\n [],\n []\n> = (set) => ({\n ...initialInspirationsSlice,\n setPinnedInspirations: (pinnedInspirations) =>\n set((state) => ({ ...state, pinnedInspirations })),\n});\n","export * from './adminSelectedBusinessSlice';\nexport * from './businessProfileSlice';\nexport * from './businessConnectionsSlice';\nexport * from './backdropLoaderSlice';\nexport * from './performanceSlice';\nexport * from './quickSetupSlice';\nexport * from './asyncDatafetchSlice';\nexport * from './layoutSlice';\nexport * from './dialogSlice';\nexport * from './trialSlice';\nexport * from './promoCodeSlice';\nexport * from './snackBarSlice';\nexport * from './userSlice';\nexport * from './unauthorizedCallSlice';\nexport * from './segmentSlice';\nexport * from './audienceSlice';\nexport * from './getSegmentBuilderBasicDetails';\nexport * from './inspirationsSlice';\n","export enum MarketingSources {\n FACEBOOK = 'facebook',\n TIKTOK = 'tiktok',\n GOOGLE = 'google',\n ALL = 'all',\n UNKNOWN = 'unknown',\n}\n\nexport enum PlanPrice {\n tier_1 = 50,\n tier_2 = 75,\n tier_3 = 100,\n tier_4 = 150,\n earlyadopter = 50,\n}\n\nexport enum TaskImage {\n BADGE_PERSON = 'badge',\n REVENUE_UP = 'revenue-up',\n REVENUE_DOWN = 'revenue-down',\n ROCKET = 'rocket',\n SIREN = 'siren',\n HOURGLASS = 'hourglass',\n SHOPPING_CART = 'shopping-cart',\n}\nexport enum TaskCategory {\n BADGE_PERSON = 'badge',\n REVENUE_UP = 'revenue-up',\n REVENUE_DOWN = 'revenue-down',\n ROCKET = 'rocket',\n SIREN = 'siren',\n HOURGLASS = 'hourglass',\n SHOPPING_CART = 'shopping-cart',\n}\n\nexport enum AdLevelTypes {\n CAMPAIGN = 'campaign',\n ADSET = 'adset',\n AD = 'ad',\n}\n\nexport enum AdStatusUpdate {\n ENABLE = 'enable',\n DISABLE = 'disable',\n}\n\nexport enum SubscriptionStatuses {\n ACTIVE = 'active',\n TRIALING = 'trialing',\n CANCELLED = 'cancelled',\n INACTIVE = 'inactive',\n}\n\nexport enum AccountStates {\n FROZEN = 'frozen',\n ACTIVE = 'active',\n CANCELED = 'canceled',\n}\n\nexport type InvoiceStatuses = 'paid' | 'uncollectable' | 'past_due';\n\nexport type Invoice = {\n id: string;\n customer_id: string;\n invoice_body: string;\n created_at: string;\n updated_at: string;\n status: InvoiceStatuses;\n};\n\nexport enum TaskStatus {\n Pending = 'Pending',\n Viewed = 'Viewed',\n Snoozed = 'Snoozed',\n Complete = 'Complete',\n}\n\nexport enum TaskType {\n AUTOMATED_SCLAE_AD_UP = 'automated.scale-ad-up',\n AUTOMATED_PAUSE_UNDERPERFORMING_ADS = 'automated.pause-underperforming-ads',\n AUTOMATED_SCALE_AD_DOWN = 'automated.scale-ad-down',\n AUTOMATED_INCREASE_AWARENESS_FB = 'automated.increase-awareness-fb',\n AUTOMATED_COST_PER_ITEM = 'automated.cost-per-item',\n MANUAL = 'manual',\n AUTOMATED_UTM_FACEBOOK = 'automated.connect-utms-facebook',\n AUTOMATED_UTM_TIKTOK = 'automated.connect-utms-tiktok',\n AUTOMATED_UTM_GOOGLE = 'automated.connect-utms-google',\n AUTOMATED_BEST_SELLER = 'automated.best-seller',\n AUTOMATED_MISSING_ALT_TEXT = 'automated.missing-alt-text',\n}\n","export const tryParseJSON = (input: string) => {\n try {\n return JSON.parse(input);\n } catch (error) {\n return null;\n }\n};\n"],"names":["SegmentTypes","SuggestedSegmentTypes","MarketingPlatforms","updateMiniShop","changePasswordNew","createTask","updateTask","updateBusinessOnboardingData","updateTaskStatus","deleteTask","createStaffAccountNew","updatePinnedInspirations","deleteStaffAccountNew","passwordResetLinkNew","updateUserDefaultBusinessNew","sendUnlockFullPotentialEmail","removeSocialAdAccount","removeSocialUserAccess","setSocialUserAccess","setSocialAdAccount","triggerBusinessDataLongFetchNew","triggerBusinessDayZeroDataCheck","updateBusinessByBusinessIdNew","updateBusinessLogoNew","updateBusinessMetaData","updateStaffAccountAccessNew","updateUserNew","setUserSessionNew","createShopifySubscriptionNewPricing","registerShopifyUserNew","checkShopifyLoginNew","sendRegisterUserEmailNew","cancelShopifySubscriptionNew","generateBusinessAIReport","setUtmValuesSocialCampaign","addDiscountCodeNew","removeDiscountCodeNew","updateAdLevelStatusNew","updateAdDailyBudgetNew","createTrackableCopyNew","deleteTrackableCopyNew","updateTrackableCopyNew","updateKeyMetricsMonthlyBudget","updateKeyMetricsRoasTracker","updateAudienceSegmentQueryById","deleteAudienceSegmentQueryById","createSuggestedSegments","extendTrial","getBusinessTechStack","getBusinessBillingInfo","getMiniShopDetails","getAllAdminTasks","getUserTasks","getHomepageMetrics","getSalesBreakdown","generateUploadUrlNew","getAllStaffAccountsNew","getBusinessGoogleTokenNew","getCurrentUserSessionsNew","getAllPlatformBusinesses","fetchBusinessMetaData","getSocialAdAccounts","getStaffByIdNew","getPerformanceDetailsNew","getUserDetails","getUserFacebookAccountNew","getKeyMetricsStatisticsGraph","getShopifyScopesStatusNew","getAccountsCampaignsNew","getPerformanceDrawerBasicDetailsNew","getPerformanceDrawerStatsNew","generateTrackableCopyPathNew","getTrackableCopiesNew","getKeyMetricsMonthlyBudget","getKeyMetricsRoasTracker","getAdcomparisonData","getAllCustomersNew","getCustomerJourneyVisitorGraphNew","getCustomerJourneySourcesNew","getCustomerDetailsSourcesNew","getCustomerDetailsNew","getCustomerDetailsPageViewsNew","getKeyMetricsAnalyticsStatistics","getCustomerChannelsNew","getCustomerChannelsDetailsNew","getSourcesOrdersNew","getSuggestedSegmentsStats","getAllAudienceSegmentQueries","getBusinessAIReport","getUserTaskProgress","getSubscriptionNew","getUserTaskCounter","Cache","createInstance","keyPrefix","itemMaxSize","capacityInBytes","defaultTTL","warningThreshold","defaultPriority","CacheCall","operation","key","cachedData","getItem","removeItem","setItem","expires","Date","now","response","clearCacheKey","clearCacheKeyWithPartialKey","partial_key","business_id","proms","cachedKeys","getAllKeys","filter","a","includes","map","Promise","all","clearCache","handleGraphqlResponse","isGraphQLResult","data","mainDataKey","Object","keys","mainData","error","_error_errors_","_error_errors","errors","errorType","setSnackBar","useBoundStore","getState","display","message","severity","createLinkTrackingSlice","set","get","linkTrackingDialogOpen","fetchCount","increaseFetchCount","state","setLinkTrackingDialogOpen","linkDialogOpen","trackableCopies","setTrackableCopies","editedTrackableCopy","setEditedTrackableCopy","trackableCopy","setDeletionTrackableCopy","deletionTrackableCopy","showYourLinkIsReady","setShowYourLinkIsReady","isYourLinkReady","showDeleteLinkDialog","setShowDeleteLinkDialog","create","createBusinessProfileSlice","createBusinessConectionSlice","createBackdropLoaderSlice","createPerformanceSlice","createQuickSetupSlice","createAsyncDataFetchSlice","createLayoutslice","createDialogSlice","createTrialSlice","createPromoCodeSlice","createUserSlice","createDynamicSegmentStore","createAudienceStore","createAdminSelectedBusinessSlice","createUnauthorizedCallSlice","createSnackBarSlice","createBasicDetailSlice","initialAdminSelectedBusinessSlice","selectedAdminBusiness","setAdminSelectedBusiness","PerformancePageState","Platforms","DialogTypes","PropertyNames","LogicalOperator","initialBusinessProfileSlice","businessProfile","selectedFacebookAdAccount","businessList","selectedBusiness","businessCount","businessActiveCount","userProfile","accountStatusData","socialConfig","MarketingSources","FACEBOOK","TIKTOK","GOOGLE","setBusinessProfile","setSelectedFacebookAdAccount","setBusinessList","setSelectedBusiness","setBusinessCount","setBusinessActiveCount","setUserProfile","setIsloading","isLoading","updateBusinessAdAccount","businessId","businessData","list","id","business","slBusiness","setSocialConfig","source","initialBusinessConnectionSlice","facebookConnected","facebookIntegration","tiktokConnected","shopifyConnected","isLoadingConnection","googleConnected","allSocialMediaAccountsDisconnected","allAdsAccountsDisconnected","previousConnected","facebook","tiktok","google","setFacebookConnected","setFacebokIntegration","setTiktokConnected","setShopifyConnected","setIsLoadingConnection","setGoogleConnected","setAllSocialMediaAccountsDisconnected","setAllAdsAccountsDisconnected","setPreviousConnected","displayBackDropLoader","setDisplayBackDropLoader","initalPurchase","localSavedPurchase","localStorage","initialSimplifiedUiChecked","window","initialPlatform","value","savedPlatform","localPlatform","fbPlatform","ad_account_settings","find","accountSetting","ad_platform","name","tiktokPlatform","profile","facebook_ad_account_id","access_token","tik_tok_ad_account_id","social_integration","ALLPLATFORMS","initalSummary","amount_spent","clicks","purchases","cost_per_purchase","total_conversion_value","roas","ft_clicks","ft_purchases","ft_cost_per_purchase","ft_total_conversion_value","ft_roas","hoveredRowIndex","setHoveredRowIndex","currentPurchase","setCurrentPurchase","simplifiedUiChecked","setIsSimplifiedUiChecked","isSimplifiedUiChecked","currentPlatform","setCurrentPlatform","currentSelectedDateValue","undefined","setCurrentSelectedDateValue","campaignsSelected","setCampaignsSelected","adSetsSelected","setAdSetsSelected","adsSelected","setAdsSelected","sirgeDataToggle","setSirgeDataToggle","allPerformanceRows","setAllPerformanceRows","summaryPerformanceRows","setSummaryPerformanceRows","memberCount","__typename","adSetCount","adsCount","setMemberCount","selectedAdGroupsExplore","selected_campaign_ids","selected_ad_set_ids","setselectedAdGroupsExplore","currentPage","setCurrentPage","filterProps","activeChecked","filterStatus","Condition","setFilterProps","loading","setLoading","activeFilterCount","setActiveFilterCount","allChecked","setAllChecked","checkedItems","resetAllFilters","callback","setHandlerResetFilters","executeResetFilters","sortChangeColumn","field","sort","setSortChangeColumn","showSampleData","setShowSampleData","showButton","setShowButton","loadingSetup","setLoadingSetup","isUpdating","setIsUpdating","userHaveAds","setUserHaveAds","mainButtonAction","setMainButtonAction","executeMainButtonAction","secondaryButtonAction","setSecondaryButtonAction","executeSecondaryButtonAction","textMainButton","setTextMainbutton","textSecondaryButton","setTextSecondaryButton","client","generateClient","fetchComplete","setFetchComplete","asyncFetchLoading","setAsyncFetchLoading","displayLoader","setDisplayLoader","subscriptionHandler","setSubscriptionHandler","listenerCount","triggerFetch","refreshAferFetch","unsubscribe","setTimeout","graphql","query","variables","triggerBusinessDataLongFetchInput","Sentry","subscription","handler","subscribe","next","console","log","adAccountSettings","m","last_data_refreshed","dayjs","format","setting","addListener","removeListener","isSidebarOpen","openList","sidebarDisabled","previousPath","setIsSidebarOpen","setSidebarDisabled","setOpenList","setIsLoading","setPreviousPath","initialDialogSlice","showDialog","dialogOptions","type","SUCCESS","setShowDialog","setDialogOptions","initialTrialSlice","isTrial","trialLeft","trialTotal","setIsTrial","setTrialLeft","setTrialTotal","initialPromoCodeSlice","promoCode","setPromoCode","initialSnackBarSlice","snackBar","initialUserSlice","sessions","staff","lastActivity","setSessions","setStaff","setLastActivity","initialUnauthorizedCallSlice","showUnAuthorizedCallTooltip","setShowUnAuthorizedCallTooltip","Operators","initialRule","no_of_customers","added_revenue","audience","dynamic","status","query_details","created_at","updated_at","group_name","deleted_at","dynamic_query_params","initialRuleSegment","logicalOperator","And","GROUP","isRuleGroup","rules","CUSTOMER_WHO_HAVE","isRule","operator","Equal","segment","tryParseJSON","JSON","stringify","isEdit","dynamicSegment","setSegment","setDynamicSegment","setIsEdit","audiences","setAudiences","segments","isAudienceLoading","record","isAudienceError","dataFetched","setDataFetch","fetchState","fetchPage","segmentStats","setSegmentStats","fetchAudiences","props","getAllAudienceSegmentQueryInput","limit","page","startDate","endDate","total_records","errorMessage","Error","concat","initialBasicDetail","dynamicRules","cities","countries","states","predefinedQueries","setDynamicRules","setCities","setCountries","setStates","setPredefinedQueries","PlanPrice","TaskImage","TaskCategory","AdLevelTypes","AdStatusUpdate","SubscriptionStatuses","AccountStates","TaskStatus","TaskType","parse","input"],"sourceRoot":""}