@gfed-medusa/sf-lib-common 3.7.3 → 3.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (127) hide show
  1. package/dist/components/breadcrumbs/index.d.ts +2 -2
  2. package/dist/components/breadcrumbs/index.d.ts.map +1 -1
  3. package/dist/components/cart-mismatch-banner/index.d.ts +2 -2
  4. package/dist/components/cart-mismatch-banner/index.d.ts.map +1 -1
  5. package/dist/components/delete-button/index.d.ts +2 -2
  6. package/dist/components/delete-button/index.d.ts.map +1 -1
  7. package/dist/components/device-id-setter/index.d.ts +5 -0
  8. package/dist/components/device-id-setter/index.d.ts.map +1 -0
  9. package/dist/components/device-id-setter/index.js +16 -0
  10. package/dist/components/device-id-setter/index.js.map +1 -0
  11. package/dist/components/error-message/index.d.ts +2 -2
  12. package/dist/components/error-message/index.d.ts.map +1 -1
  13. package/dist/components/free-shipping-price-nudge/index.d.ts +2 -2
  14. package/dist/components/interactive-link/index.d.ts +2 -2
  15. package/dist/components/line-item-options/index.d.ts +2 -2
  16. package/dist/components/localized-client-link/index.d.ts +2 -2
  17. package/dist/components/modal/index.d.ts +2 -2
  18. package/dist/components/modal/index.d.ts.map +1 -1
  19. package/dist/components/personalized-content/components/hero-banner.d.ts +31 -0
  20. package/dist/components/personalized-content/components/hero-banner.d.ts.map +1 -0
  21. package/dist/components/personalized-content/components/hero-banner.js +85 -0
  22. package/dist/components/personalized-content/components/hero-banner.js.map +1 -0
  23. package/dist/components/personalized-content/components/index.d.ts +2 -0
  24. package/dist/components/personalized-content/components/index.js +3 -0
  25. package/dist/components/preview-price/index.d.ts +2 -2
  26. package/dist/components/product-card/index.d.ts +2 -2
  27. package/dist/components/product-preview/index.d.ts +2 -4
  28. package/dist/components/product-preview/index.d.ts.map +1 -1
  29. package/dist/components/product-preview/index.js +1 -2
  30. package/dist/components/product-preview/index.js.map +1 -1
  31. package/dist/components/submit-button/index.d.ts +2 -2
  32. package/dist/components/submit-button/index.d.ts.map +1 -1
  33. package/dist/components/thumbnail/index.d.ts +0 -1
  34. package/dist/components/thumbnail/index.d.ts.map +1 -1
  35. package/dist/components/thumbnail/index.js +9 -11
  36. package/dist/components/thumbnail/index.js.map +1 -1
  37. package/dist/lib/context/apollo-context.d.ts +2 -2
  38. package/dist/lib/context/apollo-context.d.ts.map +1 -1
  39. package/dist/lib/context/modal-context.d.ts +2 -2
  40. package/dist/lib/data/context.d.ts +2 -2
  41. package/dist/lib/data/context.d.ts.map +1 -1
  42. package/dist/lib/data/personalization.d.ts +51 -0
  43. package/dist/lib/data/personalization.d.ts.map +1 -0
  44. package/dist/lib/data/personalization.js +77 -0
  45. package/dist/lib/data/personalization.js.map +1 -0
  46. package/dist/lib/gql/apollo-client.d.ts.map +1 -1
  47. package/dist/lib/gql/apollo-client.js +6 -2
  48. package/dist/lib/gql/apollo-client.js.map +1 -1
  49. package/dist/lib/gql/fragments/cart.d.ts +9 -9
  50. package/dist/lib/gql/fragments/cart.d.ts.map +1 -1
  51. package/dist/lib/gql/fragments/customer.d.ts +3 -3
  52. package/dist/lib/gql/fragments/product.d.ts +8 -8
  53. package/dist/lib/gql/fragments/product.d.ts.map +1 -1
  54. package/dist/lib/gql/mutations/cart.d.ts +6 -6
  55. package/dist/lib/gql/queries/cart-summary.d.ts +2 -2
  56. package/dist/lib/gql/queries/cart-summary.js +1 -1
  57. package/dist/lib/gql/queries/cart-summary.js.map +1 -1
  58. package/dist/lib/gql/queries/cart-total.d.ts +7 -0
  59. package/dist/lib/gql/queries/cart-total.d.ts.map +1 -0
  60. package/dist/lib/gql/queries/cart-total.js +14 -0
  61. package/dist/lib/gql/queries/cart-total.js.map +1 -0
  62. package/dist/lib/gql/queries/cart.d.ts +2 -2
  63. package/dist/lib/gql/queries/cart.d.ts.map +1 -1
  64. package/dist/lib/gql/queries/cart.js +1 -1
  65. package/dist/lib/gql/queries/cart.js.map +1 -1
  66. package/dist/lib/gql/queries/collections.d.ts +3 -3
  67. package/dist/lib/gql/queries/collections.d.ts.map +1 -1
  68. package/dist/lib/gql/queries/customer.d.ts +2 -2
  69. package/dist/lib/gql/queries/customer.d.ts.map +1 -1
  70. package/dist/lib/gql/queries/footer.d.ts +3 -3
  71. package/dist/lib/gql/queries/footer.d.ts.map +1 -1
  72. package/dist/lib/gql/queries/home-banner.d.ts +2 -2
  73. package/dist/lib/gql/queries/order.d.ts +4 -4
  74. package/dist/lib/gql/queries/order.d.ts.map +1 -1
  75. package/dist/lib/gql/queries/order.js +5 -0
  76. package/dist/lib/gql/queries/order.js.map +1 -1
  77. package/dist/lib/gql/queries/product-personalization.d.ts +7 -0
  78. package/dist/lib/gql/queries/product-personalization.d.ts.map +1 -0
  79. package/dist/lib/gql/queries/product-personalization.js +22 -0
  80. package/dist/lib/gql/queries/product-personalization.js.map +1 -0
  81. package/dist/lib/gql/queries/product.d.ts +2 -2
  82. package/dist/lib/gql/queries/regions.d.ts +3 -3
  83. package/dist/lib/hooks/use-apollo.d.ts +2 -2
  84. package/dist/lib/hooks/use-time-on-page.d.ts +13 -0
  85. package/dist/lib/hooks/use-time-on-page.d.ts.map +1 -0
  86. package/dist/lib/hooks/use-time-on-page.js +46 -0
  87. package/dist/lib/hooks/use-time-on-page.js.map +1 -0
  88. package/dist/lib/personalization/behavior-tracker.d.ts +1 -5
  89. package/dist/lib/personalization/behavior-tracker.d.ts.map +1 -1
  90. package/dist/lib/personalization/behavior-tracker.js +6 -20
  91. package/dist/lib/personalization/behavior-tracker.js.map +1 -1
  92. package/dist/lib/personalization/client-signal.d.ts +26 -0
  93. package/dist/lib/personalization/client-signal.d.ts.map +1 -0
  94. package/dist/lib/personalization/client-signal.js +105 -0
  95. package/dist/lib/personalization/client-signal.js.map +1 -0
  96. package/dist/lib/personalization/config.d.ts +2 -6
  97. package/dist/lib/personalization/config.d.ts.map +1 -1
  98. package/dist/lib/personalization/config.js +2 -16
  99. package/dist/lib/personalization/config.js.map +1 -1
  100. package/dist/lib/personalization/device-id.d.ts +5 -0
  101. package/dist/lib/personalization/device-id.d.ts.map +1 -0
  102. package/dist/lib/personalization/device-id.js +24 -0
  103. package/dist/lib/personalization/device-id.js.map +1 -0
  104. package/dist/lib/personalization/personalization-gql.d.ts +9 -0
  105. package/dist/lib/personalization/personalization-gql.d.ts.map +1 -0
  106. package/dist/lib/personalization/personalization-gql.js +42 -0
  107. package/dist/lib/personalization/personalization-gql.js.map +1 -0
  108. package/dist/lib/utils/imagekit.d.ts +2 -2
  109. package/dist/lib/utils/imagekit.js +1 -1
  110. package/dist/lib/utils/imagekit.js.map +1 -1
  111. package/dist/types/graphql.d.ts +247 -5
  112. package/dist/types/graphql.d.ts.map +1 -1
  113. package/dist/types/graphql.js +410 -3
  114. package/dist/types/graphql.js.map +1 -1
  115. package/package.json +1 -1
  116. package/dist/lib/data/contextual-banner.d.ts +0 -15
  117. package/dist/lib/data/contextual-banner.d.ts.map +0 -1
  118. package/dist/lib/data/contextual-banner.js +0 -19
  119. package/dist/lib/data/contextual-banner.js.map +0 -1
  120. package/dist/lib/gql/queries/contextual-banner.d.ts +0 -7
  121. package/dist/lib/gql/queries/contextual-banner.d.ts.map +0 -1
  122. package/dist/lib/gql/queries/contextual-banner.js +0 -21
  123. package/dist/lib/gql/queries/contextual-banner.js.map +0 -1
  124. package/dist/lib/personalization/user-profile.d.ts +0 -15
  125. package/dist/lib/personalization/user-profile.d.ts.map +0 -1
  126. package/dist/lib/personalization/user-profile.js +0 -47
  127. package/dist/lib/personalization/user-profile.js.map +0 -1
@@ -107,6 +107,38 @@ type BannerButton = {
107
107
  label?: Maybe<Scalars['String']['output']>;
108
108
  openInNewTab?: Maybe<Scalars['Boolean']['output']>;
109
109
  };
110
+ type BrowseProductHit = {
111
+ __typename?: 'BrowseProductHit';
112
+ categoryHandles: Array<Scalars['String']['output']>;
113
+ categoryIds: Array<Scalars['String']['output']>;
114
+ collectionHandle?: Maybe<Scalars['String']['output']>;
115
+ collectionId?: Maybe<Scalars['String']['output']>;
116
+ currencyCode?: Maybe<Scalars['String']['output']>;
117
+ description?: Maybe<Scalars['String']['output']>;
118
+ displayOriginalPrice?: Maybe<Scalars['String']['output']>;
119
+ displayPrice?: Maybe<Scalars['String']['output']>;
120
+ handle: Scalars['String']['output'];
121
+ id: Scalars['ID']['output'];
122
+ isSellable: Scalars['Boolean']['output'];
123
+ originalPriceAmount?: Maybe<Scalars['Float']['output']>;
124
+ priceAmount?: Maybe<Scalars['Float']['output']>;
125
+ thumbnail?: Maybe<Scalars['String']['output']>;
126
+ title?: Maybe<Scalars['String']['output']>;
127
+ };
128
+ type BrowseProducts = {
129
+ __typename?: 'BrowseProducts';
130
+ hitsPerPage: Scalars['Int']['output'];
131
+ items: Array<BrowseProductHit>;
132
+ page: Scalars['Int']['output'];
133
+ params: Scalars['String']['output'];
134
+ total: Scalars['Int']['output'];
135
+ totalPages: Scalars['Int']['output'];
136
+ };
137
+ declare enum BrowseProductsSort {
138
+ Latest = "LATEST",
139
+ PriceAsc = "PRICE_ASC",
140
+ PriceDesc = "PRICE_DESC",
141
+ }
110
142
  declare enum CacheControlScope {
111
143
  Private = "PRIVATE",
112
144
  Public = "PUBLIC",
@@ -165,6 +197,22 @@ type CompleteCartOrderResult = {
165
197
  type: Scalars['String']['output'];
166
198
  };
167
199
  type CompleteCartResponse = CompleteCartErrorResult | CompleteCartOrderResult;
200
+ type ConversionInput = {
201
+ amount: Scalars['Float']['input'];
202
+ checkoutSignalId?: InputMaybe<Scalars['String']['input']>;
203
+ currency: Scalars['String']['input'];
204
+ deviceId: Scalars['String']['input'];
205
+ items?: InputMaybe<Array<ConversionLineItemInput>>;
206
+ orderId: Scalars['String']['input'];
207
+ userId?: InputMaybe<Scalars['String']['input']>;
208
+ };
209
+ type ConversionLineItemInput = {
210
+ category?: InputMaybe<Scalars['String']['input']>;
211
+ price: Scalars['Float']['input'];
212
+ productId: Scalars['String']['input'];
213
+ quantity: Scalars['Int']['input'];
214
+ variantId?: InputMaybe<Scalars['String']['input']>;
215
+ };
168
216
  type Country = {
169
217
  __typename?: 'Country';
170
218
  displayName?: Maybe<Scalars['String']['output']>;
@@ -215,11 +263,23 @@ type CustomerAddress = {
215
263
  postalCode?: Maybe<Scalars['String']['output']>;
216
264
  province?: Maybe<Scalars['String']['output']>;
217
265
  };
266
+ type DecisionReasoning = {
267
+ __typename?: 'DecisionReasoning';
268
+ confidence: Scalars['Float']['output'];
269
+ factors: Array<Scalars['String']['output']>;
270
+ intent: Scalars['String']['output'];
271
+ modelVersion: Scalars['String']['output'];
272
+ };
218
273
  type DeleteCustomerAddressResult = {
219
274
  __typename?: 'DeleteCustomerAddressResult';
220
275
  deleted: Scalars['Boolean']['output'];
221
276
  id: Scalars['ID']['output'];
222
277
  };
278
+ declare enum EngagementLevel {
279
+ High = "HIGH",
280
+ Low = "LOW",
281
+ Medium = "MEDIUM",
282
+ }
223
283
  type Footer = {
224
284
  __typename?: 'Footer';
225
285
  _id: Scalars['ID']['output'];
@@ -241,6 +301,18 @@ type HomeBanner = {
241
301
  showPoweredBy?: Maybe<Scalars['Boolean']['output']>;
242
302
  title?: Maybe<Scalars['String']['output']>;
243
303
  };
304
+ type IntentSignals = {
305
+ __typename?: 'IntentSignals';
306
+ cartToPurchaseRate: Scalars['Float']['output'];
307
+ researchDepth: Scalars['Float']['output'];
308
+ returnRate: Scalars['Float']['output'];
309
+ };
310
+ declare enum LifecycleStage {
311
+ Frequent = "FREQUENT",
312
+ Loyal = "LOYAL",
313
+ New = "NEW",
314
+ Returning = "RETURNING",
315
+ }
244
316
  type LineItem = {
245
317
  __typename?: 'LineItem';
246
318
  cart?: Maybe<Cart>;
@@ -280,6 +352,8 @@ type Mutation = {
280
352
  logout: Scalars['Boolean']['output'];
281
353
  register: AuthPayload;
282
354
  requestOrderTransfer?: Maybe<OrderTransferResult>;
355
+ sendSignal: SendSignalResponse;
356
+ submitConversion: Scalars['Boolean']['output'];
283
357
  transferCart?: Maybe<Cart>;
284
358
  updateCart?: Maybe<Cart>;
285
359
  updateCustomer: Customer;
@@ -340,6 +414,12 @@ type Mutation_RegisterArgs = {
340
414
  type Mutation_RequestOrderTransferArgs = {
341
415
  orderId: Scalars['ID']['input'];
342
416
  };
417
+ type Mutation_SendSignalArgs = {
418
+ input: SignalInput;
419
+ };
420
+ type Mutation_SubmitConversionArgs = {
421
+ input: ConversionInput;
422
+ };
343
423
  type Mutation_TransferCartArgs = {
344
424
  cartId: Scalars['ID']['input'];
345
425
  };
@@ -460,6 +540,22 @@ declare enum PaymentStatus {
460
540
  RequiresAction = "requires_action",
461
541
  Voided = "voided",
462
542
  }
543
+ type PersonalizationResult = {
544
+ __typename?: 'PersonalizationResult';
545
+ cacheKey: Scalars['String']['output'];
546
+ components: Array<PersonalizedComponent>;
547
+ reasoning: DecisionReasoning;
548
+ servedAt: Scalars['String']['output'];
549
+ };
550
+ type PersonalizedComponent = {
551
+ __typename?: 'PersonalizedComponent';
552
+ component: Scalars['String']['output'];
553
+ contentId?: Maybe<Scalars['String']['output']>;
554
+ priority: Scalars['Int']['output'];
555
+ propsOverrides?: Maybe<Scalars['JSON']['output']>;
556
+ reasoning: Scalars['String']['output'];
557
+ score: Scalars['Float']['output'];
558
+ };
463
559
  type Price = {
464
560
  __typename?: 'Price';
465
561
  amount?: Maybe<Scalars['Float']['output']>;
@@ -472,8 +568,15 @@ type PriceRule = {
472
568
  operator: Scalars['String']['output'];
473
569
  value: Scalars['String']['output'];
474
570
  };
571
+ type PriceSensitivity = {
572
+ __typename?: 'PriceSensitivity';
573
+ avgViewedPrice: Scalars['Float']['output'];
574
+ dealClickRate: Scalars['Float']['output'];
575
+ score: Scalars['Float']['output'];
576
+ };
475
577
  type Product = {
476
578
  __typename?: 'Product';
579
+ categories?: Maybe<Array<ProductCategory>>;
477
580
  collection?: Maybe<Collection>;
478
581
  collectionId?: Maybe<Scalars['String']['output']>;
479
582
  createdAt: Scalars['DateTime']['output'];
@@ -503,6 +606,7 @@ type ProductCategory = {
503
606
  name: Scalars['String']['output'];
504
607
  parentCategory?: Maybe<ProductCategory>;
505
608
  products?: Maybe<ProductList>;
609
+ thumbnail?: Maybe<Scalars['String']['output']>;
506
610
  };
507
611
  type ProductHit = {
508
612
  __typename?: 'ProductHit';
@@ -545,6 +649,7 @@ type ProductTag = {
545
649
  type ProductVariant = {
546
650
  __typename?: 'ProductVariant';
547
651
  allowBackorder?: Maybe<Scalars['Boolean']['output']>;
652
+ calculatedPrice?: Maybe<Price>;
548
653
  id: Scalars['ID']['output'];
549
654
  inventoryQuantity?: Maybe<Scalars['Int']['output']>;
550
655
  manageInventory?: Maybe<Scalars['Boolean']['output']>;
@@ -571,15 +676,19 @@ type Promotion = {
571
676
  type Query = {
572
677
  __typename?: 'Query';
573
678
  _empty?: Maybe<Scalars['String']['output']>;
679
+ browseProducts: BrowseProducts;
574
680
  cart?: Maybe<Cart>;
575
681
  collection?: Maybe<Collection>;
576
682
  collections: Array<Collection>;
683
+ /** Debug: current rule-based intent classification. */
684
+ debugIntent: DecisionReasoning;
577
685
  footer?: Maybe<Footer>;
578
686
  homeBanner?: Maybe<HomeBanner>;
579
687
  me?: Maybe<Customer>;
580
688
  order?: Maybe<Order>;
581
689
  orders?: Maybe<OrderListResponse>;
582
690
  paymentProviders: Array<PaymentProviders>;
691
+ personalize: PersonalizationResult;
583
692
  product?: Maybe<Product>;
584
693
  productCategories: Array<ProductCategory>;
585
694
  productCategory?: Maybe<ProductCategory>;
@@ -588,9 +697,19 @@ type Query = {
588
697
  regions: Array<Region>;
589
698
  searchProducts: SearchProducts;
590
699
  shippingOptions?: Maybe<Array<Maybe<ShippingOption>>>;
700
+ userProfile: UserProfile;
701
+ };
702
+ type Query_BrowseProductsArgs = {
703
+ countryCode?: InputMaybe<Scalars['String']['input']>;
704
+ facets?: InputMaybe<Array<Scalars['String']['input']>>;
705
+ filters?: InputMaybe<Scalars['String']['input']>;
706
+ hitsPerPage?: InputMaybe<Scalars['Int']['input']>;
707
+ page?: InputMaybe<Scalars['Int']['input']>;
708
+ regionId?: InputMaybe<Scalars['String']['input']>;
709
+ sort?: InputMaybe<BrowseProductsSort>;
591
710
  };
592
711
  type Query_CartArgs = {
593
- id: Scalars['ID']['input'];
712
+ id: Scalars['String']['input'];
594
713
  };
595
714
  type Query_CollectionArgs = {
596
715
  id: Scalars['ID']['input'];
@@ -600,6 +719,14 @@ type Query_CollectionsArgs = {
600
719
  limit?: InputMaybe<Scalars['Int']['input']>;
601
720
  offset?: InputMaybe<Scalars['Int']['input']>;
602
721
  };
722
+ type Query_DebugIntentArgs = {
723
+ deviceId: Scalars['String']['input'];
724
+ userId?: InputMaybe<Scalars['String']['input']>;
725
+ };
726
+ type Query_HomeBannerArgs = {
727
+ audience?: InputMaybe<Scalars['String']['input']>;
728
+ segment?: InputMaybe<Scalars['String']['input']>;
729
+ };
603
730
  type Query_OrderArgs = {
604
731
  id: Scalars['ID']['input'];
605
732
  };
@@ -610,6 +737,11 @@ type Query_OrdersArgs = {
610
737
  type Query_PaymentProvidersArgs = {
611
738
  regionId: Scalars['ID']['input'];
612
739
  };
740
+ type Query_PersonalizeArgs = {
741
+ deviceId: Scalars['String']['input'];
742
+ input: SurfaceContext;
743
+ userId?: InputMaybe<Scalars['String']['input']>;
744
+ };
613
745
  type Query_ProductArgs = {
614
746
  id: Scalars['ID']['input'];
615
747
  region_id?: InputMaybe<Scalars['String']['input']>;
@@ -654,6 +786,10 @@ type Query_SearchProductsArgs = {
654
786
  type Query_ShippingOptionsArgs = {
655
787
  cartId: Scalars['ID']['input'];
656
788
  };
789
+ type Query_UserProfileArgs = {
790
+ deviceId: Scalars['String']['input'];
791
+ userId?: InputMaybe<Scalars['String']['input']>;
792
+ };
657
793
  type Region = {
658
794
  __typename?: 'Region';
659
795
  countries?: Maybe<Array<Maybe<Country>>>;
@@ -696,6 +832,11 @@ type SecondaryBanner = {
696
832
  showPoweredBy?: Maybe<Scalars['Boolean']['output']>;
697
833
  title?: Maybe<Scalars['String']['output']>;
698
834
  };
835
+ type SendSignalResponse = {
836
+ __typename?: 'SendSignalResponse';
837
+ profileUpdated: Scalars['Boolean']['output'];
838
+ success: Scalars['Boolean']['output'];
839
+ };
699
840
  type ServiceZone = {
700
841
  __typename?: 'ServiceZone';
701
842
  fulfillmentSetType?: Maybe<Scalars['String']['output']>;
@@ -740,6 +881,41 @@ type ShippingOptionPrice = {
740
881
  currencyCode?: Maybe<Scalars['String']['output']>;
741
882
  priceRules?: Maybe<Array<Maybe<PriceRule>>>;
742
883
  };
884
+ type SignalInput = {
885
+ deviceId?: InputMaybe<Scalars['String']['input']>;
886
+ payload?: InputMaybe<Scalars['JSON']['input']>;
887
+ /** Unix epoch milliseconds */
888
+ timestamp?: InputMaybe<Scalars['Float']['input']>;
889
+ type: SignalType;
890
+ url?: InputMaybe<Scalars['String']['input']>;
891
+ userId?: InputMaybe<Scalars['String']['input']>;
892
+ };
893
+ declare enum SignalType {
894
+ CartAdd = "CART_ADD",
895
+ CartRemove = "CART_REMOVE",
896
+ CartUpdateQuantity = "CART_UPDATE_QUANTITY",
897
+ CheckoutAbandon = "CHECKOUT_ABANDON",
898
+ CheckoutStart = "CHECKOUT_START",
899
+ ExitIntent = "EXIT_INTENT",
900
+ FilterApplied = "FILTER_APPLIED",
901
+ ImageZoom = "IMAGE_ZOOM",
902
+ PageView = "PAGE_VIEW",
903
+ ProductHover = "PRODUCT_HOVER",
904
+ ProductView = "PRODUCT_VIEW",
905
+ QuickViewOpen = "QUICK_VIEW_OPEN",
906
+ ReturnPolicyView = "RETURN_POLICY_VIEW",
907
+ ReviewsView = "REVIEWS_VIEW",
908
+ ScrollDepth = "SCROLL_DEPTH",
909
+ SearchQuery = "SEARCH_QUERY",
910
+ SearchRefine = "SEARCH_REFINE",
911
+ SearchResultClick = "SEARCH_RESULT_CLICK",
912
+ SecurityInfoView = "SECURITY_INFO_VIEW",
913
+ SizeGuideView = "SIZE_GUIDE_VIEW",
914
+ SortChanged = "SORT_CHANGED",
915
+ TabSwitch = "TAB_SWITCH",
916
+ TimeOnPage = "TIME_ON_PAGE",
917
+ TrustBadgeClick = "TRUST_BADGE_CLICK",
918
+ }
743
919
  type SocialLink = {
744
920
  __typename?: 'SocialLink';
745
921
  text: Scalars['String']['output'];
@@ -751,6 +927,15 @@ type StoreLineItemDeleteResponse = {
751
927
  id: Scalars['ID']['output'];
752
928
  object?: Maybe<Scalars['String']['output']>;
753
929
  };
930
+ type SurfaceContext = {
931
+ cartValue?: InputMaybe<Scalars['Float']['input']>;
932
+ category?: InputMaybe<Scalars['String']['input']>;
933
+ page: Scalars['String']['input'];
934
+ price?: InputMaybe<Scalars['Float']['input']>;
935
+ productId?: InputMaybe<Scalars['String']['input']>;
936
+ searchQuery?: InputMaybe<Scalars['String']['input']>;
937
+ surface: Scalars['String']['input'];
938
+ };
754
939
  type UpdateCartInput = {
755
940
  billingAddress?: InputMaybe<AddressInput>;
756
941
  email?: InputMaybe<Scalars['String']['input']>;
@@ -778,6 +963,19 @@ type UpdateCustomerInput = {
778
963
  type UpdateLineItemInput = {
779
964
  quantity: Scalars['Int']['input'];
780
965
  };
966
+ type UserProfile = {
967
+ __typename?: 'UserProfile';
968
+ categoryAffinity: Scalars['JSON']['output'];
969
+ deviceId: Scalars['String']['output'];
970
+ engagementLevel: EngagementLevel;
971
+ firstSeen: Scalars['Float']['output'];
972
+ intentSignals: IntentSignals;
973
+ lastSeen: Scalars['Float']['output'];
974
+ lifecycleStage: LifecycleStage;
975
+ priceSensitivity: PriceSensitivity;
976
+ sessionCount: Scalars['Int']['output'];
977
+ userId?: Maybe<Scalars['String']['output']>;
978
+ };
781
979
  type CartItemFieldsFragment = {
782
980
  __typename?: 'LineItem';
783
981
  id: string;
@@ -1075,7 +1273,7 @@ type TransferCartMutation = {
1075
1273
  } & CartFieldsFragment) | null;
1076
1274
  };
1077
1275
  type GetCartItemCountQueryVariables = Exact<{
1078
- id: Scalars['ID']['input'];
1276
+ id: Scalars['String']['input'];
1079
1277
  }>;
1080
1278
  type GetCartItemCountQuery = {
1081
1279
  __typename?: 'Query';
@@ -1087,8 +1285,18 @@ type GetCartItemCountQuery = {
1087
1285
  }> | null;
1088
1286
  } | null;
1089
1287
  };
1288
+ type GetCartTotalQueryVariables = Exact<{
1289
+ id: Scalars['String']['input'];
1290
+ }>;
1291
+ type GetCartTotalQuery = {
1292
+ __typename?: 'Query';
1293
+ cart?: {
1294
+ __typename?: 'Cart';
1295
+ total: number;
1296
+ } | null;
1297
+ };
1090
1298
  type GetCartQueryVariables = Exact<{
1091
- id: Scalars['ID']['input'];
1299
+ id: Scalars['String']['input'];
1092
1300
  }>;
1093
1301
  type GetCartQuery = {
1094
1302
  __typename?: 'Query';
@@ -1185,7 +1393,8 @@ type GetFooterDataQuery = {
1185
1393
  } | null;
1186
1394
  };
1187
1395
  type GetHomeBannerQueryVariables = Exact<{
1188
- [key: string]: never;
1396
+ audience?: InputMaybe<Scalars['String']['input']>;
1397
+ segment?: InputMaybe<Scalars['String']['input']>;
1189
1398
  }>;
1190
1399
  type GetHomeBannerQuery = {
1191
1400
  __typename?: 'Query';
@@ -1274,6 +1483,12 @@ type OrderFieldsFragment = {
1274
1483
  handle: string;
1275
1484
  thumbnail?: string | null;
1276
1485
  createdAt: any;
1486
+ categories?: Array<{
1487
+ __typename?: 'ProductCategory';
1488
+ id: string;
1489
+ name: string;
1490
+ handle: string;
1491
+ }> | null;
1277
1492
  } | null;
1278
1493
  } | null;
1279
1494
  }>;
@@ -1341,6 +1556,31 @@ type GetOrdersQuery = {
1341
1556
  } & OrderFieldsFragment>;
1342
1557
  } | null;
1343
1558
  };
1559
+ type GetProductByHandleForPersonalizationQueryVariables = Exact<{
1560
+ handle: Scalars['String']['input'];
1561
+ }>;
1562
+ type GetProductByHandleForPersonalizationQuery = {
1563
+ __typename?: 'Query';
1564
+ products: {
1565
+ __typename?: 'ProductListResponse';
1566
+ products?: Array<{
1567
+ __typename?: 'Product';
1568
+ id: string;
1569
+ categories?: Array<{
1570
+ __typename?: 'ProductCategory';
1571
+ handle: string;
1572
+ }> | null;
1573
+ variants?: Array<{
1574
+ __typename?: 'ProductVariant';
1575
+ id: string;
1576
+ calculatedPrice?: {
1577
+ __typename?: 'Price';
1578
+ amount?: number | null;
1579
+ } | null;
1580
+ }> | null;
1581
+ } | null> | null;
1582
+ };
1583
+ };
1344
1584
  type GetProductCategoriesQueryVariables = Exact<{
1345
1585
  limit?: InputMaybe<Scalars['Int']['input']>;
1346
1586
  offset?: InputMaybe<Scalars['Int']['input']>;
@@ -1469,6 +1709,7 @@ declare const UpdateCartDocument: TypedDocumentNode<UpdateCartMutation, UpdateCa
1469
1709
  declare const DeleteLineItemDocument: TypedDocumentNode<DeleteLineItemMutation, DeleteLineItemMutationVariables>;
1470
1710
  declare const TransferCartDocument: TypedDocumentNode<TransferCartMutation, TransferCartMutationVariables>;
1471
1711
  declare const GetCartItemCountDocument: TypedDocumentNode<GetCartItemCountQuery, GetCartItemCountQueryVariables>;
1712
+ declare const GetCartTotalDocument: TypedDocumentNode<GetCartTotalQuery, GetCartTotalQueryVariables>;
1472
1713
  declare const GetCartDocument: TypedDocumentNode<GetCartQuery, GetCartQueryVariables>;
1473
1714
  declare const GetCollectionsDocument: TypedDocumentNode<GetCollectionsQuery, GetCollectionsQueryVariables>;
1474
1715
  declare const GetCollectionsHomeDocument: TypedDocumentNode<GetCollectionsHomeQuery, GetCollectionsHomeQueryVariables>;
@@ -1478,10 +1719,11 @@ declare const GetFooterDataDocument: TypedDocumentNode<GetFooterDataQuery, GetFo
1478
1719
  declare const GetHomeBannerDocument: TypedDocumentNode<GetHomeBannerQuery, GetHomeBannerQueryVariables>;
1479
1720
  declare const GetOrderDocument: TypedDocumentNode<GetOrderQuery, GetOrderQueryVariables>;
1480
1721
  declare const GetOrdersDocument: TypedDocumentNode<GetOrdersQuery, GetOrdersQueryVariables>;
1722
+ declare const GetProductByHandleForPersonalizationDocument: TypedDocumentNode<GetProductByHandleForPersonalizationQuery, GetProductByHandleForPersonalizationQueryVariables>;
1481
1723
  declare const GetProductCategoriesDocument: TypedDocumentNode<GetProductCategoriesQuery, GetProductCategoriesQueryVariables>;
1482
1724
  declare const ListRegionsDocument: TypedDocumentNode<ListRegionsQuery, ListRegionsQueryVariables>;
1483
1725
  declare const GetRegionDocument: TypedDocumentNode<GetRegionQuery, GetRegionQueryVariables>;
1484
1726
  declare const GetShippingOptionsDocument: TypedDocumentNode<GetShippingOptionsQuery, GetShippingOptionsQueryVariables>;
1485
1727
  //#endregion
1486
- export { AddCustomerAddressInput, Address, AddressFieldsFragment, AddressFieldsFragmentDoc, AddressInput, ApplicationMethod, ApplicationType, AuthPayload, BannerButton, CacheControlScope, CalculatedShippingOptionPrice, Cart, CartFieldsFragment, CartFieldsFragmentDoc, CartItemFieldsFragment, CartItemFieldsFragmentDoc, Collection, CollectionProductsFragment, CollectionProductsFragmentDoc, CollectionProductsHomeFragment, CollectionProductsHomeFragmentDoc, CompleteCartError, CompleteCartErrorResult, CompleteCartOrderResult, CompleteCartResponse, Country, CountryFieldsFragment, CountryFieldsFragmentDoc, CreateCartDocument, CreateCartInput, CreateCartMutation, CreateCartMutationVariables, CreateLineItemDocument, CreateLineItemInput, CreateLineItemMutation, CreateLineItemMutationVariables, Customer, CustomerAddress, CustomerAddressFragment, CustomerAddressFragmentDoc, CustomerFragment, CustomerFragmentDoc, DeleteCustomerAddressResult, DeleteLineItemDocument, DeleteLineItemMutation, DeleteLineItemMutationVariables, Exact, Footer, GetCartDocument, GetCartItemCountDocument, GetCartItemCountQuery, GetCartItemCountQueryVariables, GetCartQuery, GetCartQueryVariables, GetCollectionsDocument, GetCollectionsHomeDocument, GetCollectionsHomeQuery, GetCollectionsHomeQueryVariables, GetCollectionsQuery, GetCollectionsQueryVariables, GetCustomerDocument, GetCustomerQuery, GetCustomerQueryVariables, GetFooterDataDocument, GetFooterDataQuery, GetFooterDataQueryVariables, GetFooterDocument, GetFooterQuery, GetFooterQueryVariables, GetHomeBannerDocument, GetHomeBannerQuery, GetHomeBannerQueryVariables, GetOrderDocument, GetOrderQuery, GetOrderQueryVariables, GetOrdersDocument, GetOrdersQuery, GetOrdersQueryVariables, GetProductCategoriesDocument, GetProductCategoriesQuery, GetProductCategoriesQueryVariables, GetRegionDocument, GetRegionQuery, GetRegionQueryVariables, GetShippingOptionsDocument, GetShippingOptionsQuery, GetShippingOptionsQueryVariables, HomeBanner, Incremental, InputMaybe, LineItem, ListRegionsDocument, ListRegionsQuery, ListRegionsQueryVariables, LoginInput, MakeEmpty, MakeMaybe, MakeOptional, Maybe, Mutation, Mutation_AcceptOrderTransferArgs, Mutation_AddCustomerAddressArgs, Mutation_AddShippingMethodArgs, Mutation_ApplyPromotionsArgs, Mutation_CalculateShippingOptionPriceArgs, Mutation_CompleteCartArgs, Mutation_CreateCartArgs, Mutation_CreateLineItemArgs, Mutation_DeclineOrderTransferArgs, Mutation_DeleteCustomerAddressArgs, Mutation_DeleteLineItemArgs, Mutation_InitiatePaymentSessionArgs, Mutation_LoginArgs, Mutation_RegisterArgs, Mutation_RequestOrderTransferArgs, Mutation_TransferCartArgs, Mutation_UpdateCartArgs, Mutation_UpdateCustomerAddressArgs, Mutation_UpdateCustomerArgs, Mutation_UpdateLineItemArgs, Order, OrderFieldsFragment, OrderFieldsFragmentDoc, OrderListResponse, OrderTransferData, OrderTransferResult, PartialRichText, Payment, PaymentCollection, PaymentCollectionFieldsFragment, PaymentCollectionFieldsFragmentDoc, PaymentProviders, PaymentSessionStatus, PaymentSessions, PaymentStatus, Price, PriceFragment, PriceFragmentDoc, PriceRule, Product, ProductCategory, ProductCategoryFragment, ProductCategoryFragmentDoc, ProductCollectionFragment, ProductCollectionFragmentDoc, ProductHit, ProductImage, ProductImageFragment, ProductImageFragmentDoc, ProductList, ProductListResponse, ProductOption, ProductOptionValue, ProductTag, ProductVariant, ProductVariantFragment, ProductVariantFragmentDoc, ProductVariantOption, Promotion, PromotionFieldsFragment, PromotionFieldsFragmentDoc, Query, Query_CartArgs, Query_CollectionArgs, Query_CollectionsArgs, Query_OrderArgs, Query_OrdersArgs, Query_PaymentProvidersArgs, Query_ProductArgs, Query_ProductCategoriesArgs, Query_ProductCategoryArgs, Query_ProductsArgs, Query_RegionArgs, Query_SearchProductsArgs, Query_ShippingOptionsArgs, Region, RegionFieldsFragment, RegionFieldsFragmentDoc, RegisterCustomerInput, SanityImage, SanityImageAsset, Scalars, SearchProducts, SecondaryBanner, ServiceZone, ServiceZoneLocation, ServiceZoneLocationAddress, ShippingMethod, ShippingMethodFieldsFragment, ShippingMethodFieldsFragmentDoc, ShippingOption, ShippingOptionFieldsFragment, ShippingOptionFieldsFragmentDoc, ShippingOptionPrice, SocialLink, StoreLineItemDeleteResponse, TransferCartDocument, TransferCartMutation, TransferCartMutationVariables, UpdateCartDocument, UpdateCartInput, UpdateCartMutation, UpdateCartMutationVariables, UpdateCustomerAddressInput, UpdateCustomerInput, UpdateLineItemInput };
1728
+ export { AddCustomerAddressInput, Address, AddressFieldsFragment, AddressFieldsFragmentDoc, AddressInput, ApplicationMethod, ApplicationType, AuthPayload, BannerButton, BrowseProductHit, BrowseProducts, BrowseProductsSort, CacheControlScope, CalculatedShippingOptionPrice, Cart, CartFieldsFragment, CartFieldsFragmentDoc, CartItemFieldsFragment, CartItemFieldsFragmentDoc, Collection, CollectionProductsFragment, CollectionProductsFragmentDoc, CollectionProductsHomeFragment, CollectionProductsHomeFragmentDoc, CompleteCartError, CompleteCartErrorResult, CompleteCartOrderResult, CompleteCartResponse, ConversionInput, ConversionLineItemInput, Country, CountryFieldsFragment, CountryFieldsFragmentDoc, CreateCartDocument, CreateCartInput, CreateCartMutation, CreateCartMutationVariables, CreateLineItemDocument, CreateLineItemInput, CreateLineItemMutation, CreateLineItemMutationVariables, Customer, CustomerAddress, CustomerAddressFragment, CustomerAddressFragmentDoc, CustomerFragment, CustomerFragmentDoc, DecisionReasoning, DeleteCustomerAddressResult, DeleteLineItemDocument, DeleteLineItemMutation, DeleteLineItemMutationVariables, EngagementLevel, Exact, Footer, GetCartDocument, GetCartItemCountDocument, GetCartItemCountQuery, GetCartItemCountQueryVariables, GetCartQuery, GetCartQueryVariables, GetCartTotalDocument, GetCartTotalQuery, GetCartTotalQueryVariables, GetCollectionsDocument, GetCollectionsHomeDocument, GetCollectionsHomeQuery, GetCollectionsHomeQueryVariables, GetCollectionsQuery, GetCollectionsQueryVariables, GetCustomerDocument, GetCustomerQuery, GetCustomerQueryVariables, GetFooterDataDocument, GetFooterDataQuery, GetFooterDataQueryVariables, GetFooterDocument, GetFooterQuery, GetFooterQueryVariables, GetHomeBannerDocument, GetHomeBannerQuery, GetHomeBannerQueryVariables, GetOrderDocument, GetOrderQuery, GetOrderQueryVariables, GetOrdersDocument, GetOrdersQuery, GetOrdersQueryVariables, GetProductByHandleForPersonalizationDocument, GetProductByHandleForPersonalizationQuery, GetProductByHandleForPersonalizationQueryVariables, GetProductCategoriesDocument, GetProductCategoriesQuery, GetProductCategoriesQueryVariables, GetRegionDocument, GetRegionQuery, GetRegionQueryVariables, GetShippingOptionsDocument, GetShippingOptionsQuery, GetShippingOptionsQueryVariables, HomeBanner, Incremental, InputMaybe, IntentSignals, LifecycleStage, LineItem, ListRegionsDocument, ListRegionsQuery, ListRegionsQueryVariables, LoginInput, MakeEmpty, MakeMaybe, MakeOptional, Maybe, Mutation, Mutation_AcceptOrderTransferArgs, Mutation_AddCustomerAddressArgs, Mutation_AddShippingMethodArgs, Mutation_ApplyPromotionsArgs, Mutation_CalculateShippingOptionPriceArgs, Mutation_CompleteCartArgs, Mutation_CreateCartArgs, Mutation_CreateLineItemArgs, Mutation_DeclineOrderTransferArgs, Mutation_DeleteCustomerAddressArgs, Mutation_DeleteLineItemArgs, Mutation_InitiatePaymentSessionArgs, Mutation_LoginArgs, Mutation_RegisterArgs, Mutation_RequestOrderTransferArgs, Mutation_SendSignalArgs, Mutation_SubmitConversionArgs, Mutation_TransferCartArgs, Mutation_UpdateCartArgs, Mutation_UpdateCustomerAddressArgs, Mutation_UpdateCustomerArgs, Mutation_UpdateLineItemArgs, Order, OrderFieldsFragment, OrderFieldsFragmentDoc, OrderListResponse, OrderTransferData, OrderTransferResult, PartialRichText, Payment, PaymentCollection, PaymentCollectionFieldsFragment, PaymentCollectionFieldsFragmentDoc, PaymentProviders, PaymentSessionStatus, PaymentSessions, PaymentStatus, PersonalizationResult, PersonalizedComponent, Price, PriceFragment, PriceFragmentDoc, PriceRule, PriceSensitivity, Product, ProductCategory, ProductCategoryFragment, ProductCategoryFragmentDoc, ProductCollectionFragment, ProductCollectionFragmentDoc, ProductHit, ProductImage, ProductImageFragment, ProductImageFragmentDoc, ProductList, ProductListResponse, ProductOption, ProductOptionValue, ProductTag, ProductVariant, ProductVariantFragment, ProductVariantFragmentDoc, ProductVariantOption, Promotion, PromotionFieldsFragment, PromotionFieldsFragmentDoc, Query, Query_BrowseProductsArgs, Query_CartArgs, Query_CollectionArgs, Query_CollectionsArgs, Query_DebugIntentArgs, Query_HomeBannerArgs, Query_OrderArgs, Query_OrdersArgs, Query_PaymentProvidersArgs, Query_PersonalizeArgs, Query_ProductArgs, Query_ProductCategoriesArgs, Query_ProductCategoryArgs, Query_ProductsArgs, Query_RegionArgs, Query_SearchProductsArgs, Query_ShippingOptionsArgs, Query_UserProfileArgs, Region, RegionFieldsFragment, RegionFieldsFragmentDoc, RegisterCustomerInput, SanityImage, SanityImageAsset, Scalars, SearchProducts, SecondaryBanner, SendSignalResponse, ServiceZone, ServiceZoneLocation, ServiceZoneLocationAddress, ShippingMethod, ShippingMethodFieldsFragment, ShippingMethodFieldsFragmentDoc, ShippingOption, ShippingOptionFieldsFragment, ShippingOptionFieldsFragmentDoc, ShippingOptionPrice, SignalInput, SignalType, SocialLink, StoreLineItemDeleteResponse, SurfaceContext, TransferCartDocument, TransferCartMutation, TransferCartMutationVariables, UpdateCartDocument, UpdateCartInput, UpdateCartMutation, UpdateCartMutationVariables, UpdateCustomerAddressInput, UpdateCustomerInput, UpdateLineItemInput, UserProfile };
1487
1729
  //# sourceMappingURL=graphql.d.ts.map