@gfed-medusa/sf-lib-common 2.4.0 → 3.0.1

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 (73) 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/error-message/index.d.ts +2 -2
  7. package/dist/components/free-shipping-price-nudge/index.d.ts +4 -5
  8. package/dist/components/free-shipping-price-nudge/index.d.ts.map +1 -1
  9. package/dist/components/free-shipping-price-nudge/index.js +3 -3
  10. package/dist/components/free-shipping-price-nudge/index.js.map +1 -1
  11. package/dist/components/interactive-link/index.d.ts +2 -2
  12. package/dist/components/interactive-link/index.d.ts.map +1 -1
  13. package/dist/components/line-item-options/index.d.ts +2 -2
  14. package/dist/components/localized-client-link/index.d.ts +6 -7
  15. package/dist/components/localized-client-link/index.d.ts.map +1 -1
  16. package/dist/components/localized-client-link/index.js +26 -6
  17. package/dist/components/localized-client-link/index.js.map +1 -1
  18. package/dist/components/modal/index.d.ts +2 -2
  19. package/dist/components/modal/index.d.ts.map +1 -1
  20. package/dist/lib/data/cart.d.ts +2 -5
  21. package/dist/lib/data/cart.d.ts.map +1 -1
  22. package/dist/lib/data/cart.js +12 -8
  23. package/dist/lib/data/cart.js.map +1 -1
  24. package/dist/lib/data/context.d.ts +2 -2
  25. package/dist/lib/data/footer.d.ts +2 -59
  26. package/dist/lib/data/footer.d.ts.map +1 -1
  27. package/dist/lib/data/orders.d.ts +1 -1
  28. package/dist/lib/data/orders.d.ts.map +1 -1
  29. package/dist/lib/data/orders.js +12 -11
  30. package/dist/lib/data/orders.js.map +1 -1
  31. package/dist/lib/data/regions.d.ts +2 -1
  32. package/dist/lib/data/regions.d.ts.map +1 -1
  33. package/dist/lib/data/regions.js +17 -11
  34. package/dist/lib/data/regions.js.map +1 -1
  35. package/dist/lib/globals/expose-globals.js +1 -1
  36. package/dist/lib/gql/fragments/cart.d.ts +9 -9
  37. package/dist/lib/gql/fragments/cart.d.ts.map +1 -1
  38. package/dist/lib/gql/fragments/customer.d.ts +3 -3
  39. package/dist/lib/gql/fragments/customer.d.ts.map +1 -1
  40. package/dist/lib/gql/fragments/product.d.ts +8 -8
  41. package/dist/lib/gql/fragments/product.d.ts.map +1 -1
  42. package/dist/lib/gql/mutations/cart.d.ts +7 -5
  43. package/dist/lib/gql/mutations/cart.d.ts.map +1 -1
  44. package/dist/lib/gql/mutations/cart.js +22 -2
  45. package/dist/lib/gql/mutations/cart.js.map +1 -1
  46. package/dist/lib/gql/queries/cart.d.ts +2 -2
  47. package/dist/lib/gql/queries/collections.d.ts +2 -2
  48. package/dist/lib/gql/queries/collections.d.ts.map +1 -1
  49. package/dist/lib/gql/queries/customer.d.ts +2 -2
  50. package/dist/lib/gql/queries/footer.d.ts +2 -2
  51. package/dist/lib/gql/queries/order.d.ts +9 -0
  52. package/dist/lib/gql/queries/order.d.ts.map +1 -0
  53. package/dist/lib/gql/queries/order.js +103 -0
  54. package/dist/lib/gql/queries/order.js.map +1 -0
  55. package/dist/lib/gql/queries/product.d.ts +3 -3
  56. package/dist/lib/gql/queries/regions.d.ts +8 -0
  57. package/dist/lib/gql/queries/regions.d.ts.map +1 -0
  58. package/dist/lib/gql/queries/regions.js +39 -0
  59. package/dist/lib/gql/queries/regions.js.map +1 -0
  60. package/dist/lib/gql/queries/shipping.d.ts +8 -0
  61. package/dist/lib/gql/queries/shipping.d.ts.map +1 -0
  62. package/dist/lib/gql/queries/shipping.js +48 -0
  63. package/dist/lib/gql/queries/shipping.js.map +1 -0
  64. package/dist/lib/hooks/use-apollo.d.ts +2 -2
  65. package/dist/types/cms.d.ts +85 -0
  66. package/dist/types/cms.d.ts.map +1 -0
  67. package/dist/types/cms.js +0 -0
  68. package/dist/types/graphql.d.ts +466 -481
  69. package/dist/types/graphql.d.ts.map +1 -1
  70. package/dist/types/graphql.js +3736 -7495
  71. package/dist/types/graphql.js.map +1 -1
  72. package/dist/types/prices.d.ts +5 -2
  73. package/package.json +4 -4
@@ -43,6 +43,20 @@ type Scalars = {
43
43
  output: any;
44
44
  };
45
45
  };
46
+ type AddCustomerAddressInput = {
47
+ address1?: InputMaybe<Scalars['String']['input']>;
48
+ address2?: InputMaybe<Scalars['String']['input']>;
49
+ city?: InputMaybe<Scalars['String']['input']>;
50
+ company?: InputMaybe<Scalars['String']['input']>;
51
+ countryCode?: InputMaybe<Scalars['String']['input']>;
52
+ firstName?: InputMaybe<Scalars['String']['input']>;
53
+ isDefaultBilling?: InputMaybe<Scalars['Boolean']['input']>;
54
+ isDefaultShipping?: InputMaybe<Scalars['Boolean']['input']>;
55
+ lastName?: InputMaybe<Scalars['String']['input']>;
56
+ phone?: InputMaybe<Scalars['String']['input']>;
57
+ postalCode?: InputMaybe<Scalars['String']['input']>;
58
+ province?: InputMaybe<Scalars['String']['input']>;
59
+ };
46
60
  type Address = {
47
61
  __typename?: 'Address';
48
62
  address1?: Maybe<Scalars['String']['output']>;
@@ -82,6 +96,19 @@ declare enum ApplicationType {
82
96
  Fixed = "fixed",
83
97
  Percentage = "percentage",
84
98
  }
99
+ type AuthPayload = {
100
+ __typename?: 'AuthPayload';
101
+ customer?: Maybe<Customer>;
102
+ token: Scalars['String']['output'];
103
+ };
104
+ declare enum CacheControlScope {
105
+ Private = "PRIVATE",
106
+ Public = "PUBLIC",
107
+ }
108
+ type CalculatedShippingOptionPrice = {
109
+ __typename?: 'CalculatedShippingOptionPrice';
110
+ amount?: Maybe<Scalars['Int']['output']>;
111
+ };
85
112
  type Cart = {
86
113
  __typename?: 'Cart';
87
114
  billingAddress?: Maybe<Address>;
@@ -182,52 +209,20 @@ type CustomerAddress = {
182
209
  postalCode?: Maybe<Scalars['String']['output']>;
183
210
  province?: Maybe<Scalars['String']['output']>;
184
211
  };
185
- type FileBlock = {
186
- __typename?: 'FileBlock';
187
- _key: Scalars['String']['output'];
188
- _type: Scalars['String']['output'];
189
- asset?: Maybe<SanityFileAsset>;
212
+ type DeleteCustomerAddressResult = {
213
+ __typename?: 'DeleteCustomerAddressResult';
214
+ deleted: Scalars['Boolean']['output'];
215
+ id: Scalars['ID']['output'];
190
216
  };
191
217
  type Footer = {
192
218
  __typename?: 'Footer';
219
+ _id: Scalars['ID']['output'];
220
+ _type: Scalars['String']['output'];
193
221
  copyright?: Maybe<Scalars['String']['output']>;
194
- poweredByCta?: Maybe<RichText>;
222
+ poweredByCta?: Maybe<PartialRichText>;
195
223
  social?: Maybe<Array<SocialLink>>;
196
224
  storeName?: Maybe<Scalars['String']['output']>;
197
225
  };
198
- type IconLinkMark = {
199
- __typename?: 'IconLinkMark';
200
- _key: Scalars['String']['output'];
201
- _type: Scalars['String']['output'];
202
- href: Scalars['String']['output'];
203
- iconClass?: Maybe<Scalars['String']['output']>;
204
- iconComponent?: Maybe<Scalars['String']['output']>;
205
- iconFill?: Maybe<Scalars['String']['output']>;
206
- iconImage?: Maybe<SanityImage>;
207
- iconType: Scalars['String']['output'];
208
- iconUrl?: Maybe<Scalars['String']['output']>;
209
- target?: Maybe<Scalars['String']['output']>;
210
- };
211
- type ImageBlock = {
212
- __typename?: 'ImageBlock';
213
- _key: Scalars['String']['output'];
214
- _type: Scalars['String']['output'];
215
- alt?: Maybe<Scalars['String']['output']>;
216
- asset?: Maybe<SanityImageAsset>;
217
- caption?: Maybe<Scalars['String']['output']>;
218
- };
219
- type ImageDimensions = {
220
- __typename?: 'ImageDimensions';
221
- aspectRatio: Scalars['Float']['output'];
222
- height: Scalars['Int']['output'];
223
- width: Scalars['Int']['output'];
224
- };
225
- type ImageMetadata = {
226
- __typename?: 'ImageMetadata';
227
- dimensions?: Maybe<ImageDimensions>;
228
- hasAlpha?: Maybe<Scalars['Boolean']['output']>;
229
- isOpaque?: Maybe<Scalars['Boolean']['output']>;
230
- };
231
226
  type LineItem = {
232
227
  __typename?: 'LineItem';
233
228
  cart?: Maybe<Cart>;
@@ -245,32 +240,41 @@ type LineItem = {
245
240
  unitPrice?: Maybe<Scalars['Int']['output']>;
246
241
  variant?: Maybe<ProductVariant>;
247
242
  };
248
- type LinkMark = {
249
- __typename?: 'LinkMark';
250
- _key: Scalars['String']['output'];
251
- _type: Scalars['String']['output'];
252
- href: Scalars['String']['output'];
253
- target?: Maybe<Scalars['String']['output']>;
254
- };
255
- type LogoutResponse = {
256
- __typename?: 'LogoutResponse';
257
- success?: Maybe<Scalars['Boolean']['output']>;
243
+ type LoginInput = {
244
+ email: Scalars['String']['input'];
245
+ password: Scalars['String']['input'];
258
246
  };
259
- type MarkDef = IconLinkMark | LinkMark;
260
247
  type Mutation = {
261
248
  __typename?: 'Mutation';
249
+ acceptOrderTransfer?: Maybe<OrderTransferResult>;
250
+ addCustomerAddress: Customer;
262
251
  addShippingMethod?: Maybe<Cart>;
263
252
  applyPromotions?: Maybe<Cart>;
253
+ calculateShippingOptionPrice?: Maybe<ShippingOption>;
264
254
  completeCart?: Maybe<CompleteCartResponse>;
265
255
  createCart?: Maybe<Cart>;
266
256
  createLineItem?: Maybe<Cart>;
257
+ declineOrderTransfer?: Maybe<OrderTransferResult>;
258
+ deleteCustomerAddress: DeleteCustomerAddressResult;
267
259
  deleteLineItem: StoreLineItemDeleteResponse;
268
- login?: Maybe<Token>;
269
- logout?: Maybe<LogoutResponse>;
260
+ initiatePaymentSession?: Maybe<Cart>;
261
+ login: AuthPayload;
262
+ logout: Scalars['Boolean']['output'];
263
+ register: AuthPayload;
264
+ requestOrderTransfer?: Maybe<OrderTransferResult>;
270
265
  transferCart?: Maybe<Cart>;
271
266
  updateCart?: Maybe<Cart>;
267
+ updateCustomer: Customer;
268
+ updateCustomerAddress: Customer;
272
269
  updateLineItem?: Maybe<Cart>;
273
270
  };
271
+ type Mutation_AcceptOrderTransferArgs = {
272
+ orderId: Scalars['ID']['input'];
273
+ token: Scalars['String']['input'];
274
+ };
275
+ type Mutation_AddCustomerAddressArgs = {
276
+ input: AddCustomerAddressInput;
277
+ };
274
278
  type Mutation_AddShippingMethodArgs = {
275
279
  cartId: Scalars['ID']['input'];
276
280
  optionId: Scalars['ID']['input'];
@@ -279,6 +283,11 @@ type Mutation_ApplyPromotionsArgs = {
279
283
  cartId: Scalars['ID']['input'];
280
284
  codes: Array<Scalars['String']['input']>;
281
285
  };
286
+ type Mutation_CalculateShippingOptionPriceArgs = {
287
+ cartId: Scalars['ID']['input'];
288
+ data?: InputMaybe<Scalars['JSON']['input']>;
289
+ optionId: Scalars['ID']['input'];
290
+ };
282
291
  type Mutation_CompleteCartArgs = {
283
292
  cartId: Scalars['ID']['input'];
284
293
  };
@@ -289,13 +298,29 @@ type Mutation_CreateLineItemArgs = {
289
298
  cartId: Scalars['ID']['input'];
290
299
  data: CreateLineItemInput;
291
300
  };
301
+ type Mutation_DeclineOrderTransferArgs = {
302
+ orderId: Scalars['ID']['input'];
303
+ token: Scalars['String']['input'];
304
+ };
305
+ type Mutation_DeleteCustomerAddressArgs = {
306
+ id: Scalars['ID']['input'];
307
+ };
292
308
  type Mutation_DeleteLineItemArgs = {
293
309
  cartId: Scalars['ID']['input'];
294
310
  lineItemId: Scalars['ID']['input'];
295
311
  };
312
+ type Mutation_InitiatePaymentSessionArgs = {
313
+ cartId: Scalars['ID']['input'];
314
+ providerId: Scalars['String']['input'];
315
+ };
296
316
  type Mutation_LoginArgs = {
297
- email: Scalars['String']['input'];
298
- password: Scalars['String']['input'];
317
+ input: LoginInput;
318
+ };
319
+ type Mutation_RegisterArgs = {
320
+ input: RegisterCustomerInput;
321
+ };
322
+ type Mutation_RequestOrderTransferArgs = {
323
+ orderId: Scalars['ID']['input'];
299
324
  };
300
325
  type Mutation_TransferCartArgs = {
301
326
  cartId: Scalars['ID']['input'];
@@ -304,6 +329,13 @@ type Mutation_UpdateCartArgs = {
304
329
  data: UpdateCartInput;
305
330
  id: Scalars['ID']['input'];
306
331
  };
332
+ type Mutation_UpdateCustomerArgs = {
333
+ input: UpdateCustomerInput;
334
+ };
335
+ type Mutation_UpdateCustomerAddressArgs = {
336
+ id: Scalars['ID']['input'];
337
+ input: UpdateCustomerAddressInput;
338
+ };
307
339
  type Mutation_UpdateLineItemArgs = {
308
340
  cartId: Scalars['ID']['input'];
309
341
  data: UpdateLineItemInput;
@@ -332,6 +364,28 @@ type Order = {
332
364
  taxTotal?: Maybe<Scalars['Int']['output']>;
333
365
  total: Scalars['Int']['output'];
334
366
  };
367
+ type OrderListResponse = {
368
+ __typename?: 'OrderListResponse';
369
+ count: Scalars['Int']['output'];
370
+ limit: Scalars['Int']['output'];
371
+ offset: Scalars['Int']['output'];
372
+ orders: Array<Order>;
373
+ };
374
+ type OrderTransferData = {
375
+ __typename?: 'OrderTransferData';
376
+ email: Scalars['String']['output'];
377
+ id: Scalars['ID']['output'];
378
+ };
379
+ type OrderTransferResult = {
380
+ __typename?: 'OrderTransferResult';
381
+ error?: Maybe<Scalars['String']['output']>;
382
+ order?: Maybe<OrderTransferData>;
383
+ success: Scalars['Boolean']['output'];
384
+ };
385
+ type PartialRichText = {
386
+ __typename?: 'PartialRichText';
387
+ text?: Maybe<Scalars['JSON']['output']>;
388
+ };
335
389
  type Payment = {
336
390
  __typename?: 'Payment';
337
391
  amount: Scalars['Int']['output'];
@@ -376,8 +430,16 @@ declare enum PaymentStatus {
376
430
  Authorized = "authorized",
377
431
  Awaiting = "awaiting",
378
432
  Canceled = "canceled",
433
+ Captured = "captured",
434
+ Completed = "completed",
379
435
  NotPaid = "not_paid",
436
+ NotStarted = "not_started",
380
437
  PartiallyAuthorized = "partially_authorized",
438
+ PartiallyCaptured = "partially_captured",
439
+ PartiallyRefunded = "partially_refunded",
440
+ Refunded = "refunded",
441
+ RequiresAction = "requires_action",
442
+ Voided = "voided",
381
443
  }
382
444
  type Price = {
383
445
  __typename?: 'Price';
@@ -385,6 +447,12 @@ type Price = {
385
447
  currencyCode?: Maybe<Scalars['String']['output']>;
386
448
  priceType?: Maybe<Scalars['String']['output']>;
387
449
  };
450
+ type PriceRule = {
451
+ __typename?: 'PriceRule';
452
+ attribute: Scalars['String']['output'];
453
+ operator: Scalars['String']['output'];
454
+ value: Scalars['String']['output'];
455
+ };
388
456
  type Product = {
389
457
  __typename?: 'Product';
390
458
  collection?: Maybe<Collection>;
@@ -483,16 +551,23 @@ type Promotion = {
483
551
  };
484
552
  type Query = {
485
553
  __typename?: 'Query';
554
+ _empty?: Maybe<Scalars['String']['output']>;
486
555
  cart?: Maybe<Cart>;
487
556
  collection?: Maybe<Collection>;
488
557
  collections: Array<Collection>;
489
558
  footer?: Maybe<Footer>;
490
559
  me?: Maybe<Customer>;
560
+ order?: Maybe<Order>;
561
+ orders?: Maybe<OrderListResponse>;
562
+ paymentProviders: Array<PaymentProviders>;
491
563
  product?: Maybe<Product>;
492
564
  productCategories: Array<ProductCategory>;
493
565
  productCategory?: Maybe<ProductCategory>;
494
566
  products: ProductListResponse;
567
+ region?: Maybe<Region>;
568
+ regions: Array<Region>;
495
569
  searchProducts: SearchProducts;
570
+ shippingOptions?: Maybe<Array<Maybe<ShippingOption>>>;
496
571
  };
497
572
  type Query_CartArgs = {
498
573
  id: Scalars['ID']['input'];
@@ -505,6 +580,16 @@ type Query_CollectionsArgs = {
505
580
  limit?: InputMaybe<Scalars['Int']['input']>;
506
581
  offset?: InputMaybe<Scalars['Int']['input']>;
507
582
  };
583
+ type Query_OrderArgs = {
584
+ id: Scalars['ID']['input'];
585
+ };
586
+ type Query_OrdersArgs = {
587
+ limit?: InputMaybe<Scalars['Int']['input']>;
588
+ offset?: InputMaybe<Scalars['Int']['input']>;
589
+ };
590
+ type Query_PaymentProvidersArgs = {
591
+ regionId: Scalars['ID']['input'];
592
+ };
508
593
  type Query_ProductArgs = {
509
594
  id: Scalars['ID']['input'];
510
595
  region_id?: InputMaybe<Scalars['String']['input']>;
@@ -534,6 +619,9 @@ type Query_ProductsArgs = {
534
619
  region_id?: InputMaybe<Scalars['String']['input']>;
535
620
  tag_id?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
536
621
  };
622
+ type Query_RegionArgs = {
623
+ id: Scalars['ID']['input'];
624
+ };
537
625
  type Query_SearchProductsArgs = {
538
626
  facets?: InputMaybe<Array<Scalars['String']['input']>>;
539
627
  filters?: InputMaybe<Scalars['String']['input']>;
@@ -542,6 +630,9 @@ type Query_SearchProductsArgs = {
542
630
  page?: InputMaybe<Scalars['Int']['input']>;
543
631
  query?: InputMaybe<Scalars['String']['input']>;
544
632
  };
633
+ type Query_ShippingOptionsArgs = {
634
+ cartId: Scalars['ID']['input'];
635
+ };
545
636
  type Region = {
546
637
  __typename?: 'Region';
547
638
  countries?: Maybe<Array<Maybe<Country>>>;
@@ -550,30 +641,12 @@ type Region = {
550
641
  id: Scalars['ID']['output'];
551
642
  name: Scalars['String']['output'];
552
643
  };
553
- type RichText = {
554
- __typename?: 'RichText';
555
- text: Array<RichTextBlock>;
556
- };
557
- type RichTextBlock = FileBlock | ImageBlock | TextBlock;
558
- type SanityFileAsset = {
559
- __typename?: 'SanityFileAsset';
560
- _id: Scalars['ID']['output'];
561
- mimeType?: Maybe<Scalars['String']['output']>;
562
- originalFilename?: Maybe<Scalars['String']['output']>;
563
- size?: Maybe<Scalars['Int']['output']>;
564
- url: Scalars['String']['output'];
565
- };
566
- type SanityImage = {
567
- __typename?: 'SanityImage';
568
- alt?: Maybe<Scalars['String']['output']>;
569
- asset?: Maybe<SanityImageAsset>;
570
- caption?: Maybe<Scalars['String']['output']>;
571
- };
572
- type SanityImageAsset = {
573
- __typename?: 'SanityImageAsset';
574
- _id: Scalars['ID']['output'];
575
- metadata?: Maybe<ImageMetadata>;
576
- url: Scalars['String']['output'];
644
+ type RegisterCustomerInput = {
645
+ email: Scalars['String']['input'];
646
+ firstName?: InputMaybe<Scalars['String']['input']>;
647
+ lastName?: InputMaybe<Scalars['String']['input']>;
648
+ password: Scalars['String']['input'];
649
+ phone?: InputMaybe<Scalars['String']['input']>;
577
650
  };
578
651
  type SearchProducts = {
579
652
  __typename?: 'SearchProducts';
@@ -585,6 +658,22 @@ type SearchProducts = {
585
658
  total: Scalars['Int']['output'];
586
659
  totalPages: Scalars['Int']['output'];
587
660
  };
661
+ type ServiceZone = {
662
+ __typename?: 'ServiceZone';
663
+ fulfillmentSetType?: Maybe<Scalars['String']['output']>;
664
+ location?: Maybe<ServiceZoneLocation>;
665
+ };
666
+ type ServiceZoneLocation = {
667
+ __typename?: 'ServiceZoneLocation';
668
+ address?: Maybe<ServiceZoneLocationAddress>;
669
+ };
670
+ type ServiceZoneLocationAddress = {
671
+ __typename?: 'ServiceZoneLocationAddress';
672
+ address1?: Maybe<Scalars['String']['output']>;
673
+ city?: Maybe<Scalars['String']['output']>;
674
+ countryCode?: Maybe<Scalars['String']['output']>;
675
+ postalCode?: Maybe<Scalars['String']['output']>;
676
+ };
588
677
  type ShippingMethod = {
589
678
  __typename?: 'ShippingMethod';
590
679
  amount: Scalars['Int']['output'];
@@ -595,38 +684,35 @@ type ShippingMethod = {
595
684
  shippingOptionId?: Maybe<Scalars['String']['output']>;
596
685
  total?: Maybe<Scalars['Int']['output']>;
597
686
  };
687
+ type ShippingOption = {
688
+ __typename?: 'ShippingOption';
689
+ amount?: Maybe<Scalars['Int']['output']>;
690
+ calculatedPrice?: Maybe<CalculatedShippingOptionPrice>;
691
+ id: Scalars['ID']['output'];
692
+ insufficientInventory?: Maybe<Scalars['Boolean']['output']>;
693
+ name: Scalars['String']['output'];
694
+ priceType: Scalars['String']['output'];
695
+ prices?: Maybe<Array<Maybe<ShippingOptionPrice>>>;
696
+ serviceZone?: Maybe<ServiceZone>;
697
+ serviceZoneId?: Maybe<Scalars['String']['output']>;
698
+ };
699
+ type ShippingOptionPrice = {
700
+ __typename?: 'ShippingOptionPrice';
701
+ amount?: Maybe<Scalars['Int']['output']>;
702
+ currencyCode?: Maybe<Scalars['String']['output']>;
703
+ priceRules?: Maybe<Array<Maybe<PriceRule>>>;
704
+ };
598
705
  type SocialLink = {
599
706
  __typename?: 'SocialLink';
600
707
  text: Scalars['String']['output'];
601
708
  url: Scalars['String']['output'];
602
709
  };
603
- type Span = {
604
- __typename?: 'Span';
605
- _key: Scalars['String']['output'];
606
- _type: Scalars['String']['output'];
607
- marks?: Maybe<Array<Scalars['String']['output']>>;
608
- text: Scalars['String']['output'];
609
- };
610
710
  type StoreLineItemDeleteResponse = {
611
711
  __typename?: 'StoreLineItemDeleteResponse';
612
712
  deleted: Scalars['Boolean']['output'];
613
713
  id: Scalars['ID']['output'];
614
714
  object?: Maybe<Scalars['String']['output']>;
615
715
  };
616
- type TextBlock = {
617
- __typename?: 'TextBlock';
618
- _key: Scalars['String']['output'];
619
- _type: Scalars['String']['output'];
620
- children: Array<Span>;
621
- level?: Maybe<Scalars['Int']['output']>;
622
- listItem?: Maybe<Scalars['String']['output']>;
623
- markDefs?: Maybe<Array<MarkDef>>;
624
- style?: Maybe<Scalars['String']['output']>;
625
- };
626
- type Token = {
627
- __typename?: 'Token';
628
- token?: Maybe<Scalars['String']['output']>;
629
- };
630
716
  type UpdateCartInput = {
631
717
  billingAddress?: InputMaybe<AddressInput>;
632
718
  email?: InputMaybe<Scalars['String']['input']>;
@@ -634,6 +720,23 @@ type UpdateCartInput = {
634
720
  regionId?: InputMaybe<Scalars['String']['input']>;
635
721
  shippingAddress?: InputMaybe<AddressInput>;
636
722
  };
723
+ type UpdateCustomerAddressInput = {
724
+ address1?: InputMaybe<Scalars['String']['input']>;
725
+ address2?: InputMaybe<Scalars['String']['input']>;
726
+ city?: InputMaybe<Scalars['String']['input']>;
727
+ company?: InputMaybe<Scalars['String']['input']>;
728
+ countryCode?: InputMaybe<Scalars['String']['input']>;
729
+ firstName?: InputMaybe<Scalars['String']['input']>;
730
+ lastName?: InputMaybe<Scalars['String']['input']>;
731
+ phone?: InputMaybe<Scalars['String']['input']>;
732
+ postalCode?: InputMaybe<Scalars['String']['input']>;
733
+ province?: InputMaybe<Scalars['String']['input']>;
734
+ };
735
+ type UpdateCustomerInput = {
736
+ firstName?: InputMaybe<Scalars['String']['input']>;
737
+ lastName?: InputMaybe<Scalars['String']['input']>;
738
+ phone?: InputMaybe<Scalars['String']['input']>;
739
+ };
637
740
  type UpdateLineItemInput = {
638
741
  quantity: Scalars['Int']['input'];
639
742
  };
@@ -653,15 +756,22 @@ type CartItemFieldsFragment = {
653
756
  __typename?: 'ProductVariant';
654
757
  } & ProductVariantFragment) | null;
655
758
  };
656
- type AddressFieldsFragment = {
657
- __typename?: 'Address';
658
- firstName?: string | null;
659
- lastName?: string | null;
660
- phone?: string | null;
661
- address1?: string | null;
662
- city?: string | null;
663
- countryCode?: string | null;
664
- postalCode?: string | null;
759
+ type CountryFieldsFragment = {
760
+ __typename?: 'Country';
761
+ id?: string | null;
762
+ iso2?: string | null;
763
+ name?: string | null;
764
+ displayName?: string | null;
765
+ };
766
+ type RegionFieldsFragment = {
767
+ __typename?: 'Region';
768
+ id: string;
769
+ name: string;
770
+ currencyCode: string;
771
+ createdAt?: any | null;
772
+ countries?: Array<({
773
+ __typename?: 'Country';
774
+ } & CountryFieldsFragment) | null> | null;
665
775
  };
666
776
  type ShippingMethodFieldsFragment = {
667
777
  __typename?: 'ShippingMethod';
@@ -693,22 +803,15 @@ type PaymentCollectionFieldsFragment = {
693
803
  status: PaymentSessionStatus;
694
804
  } | null> | null;
695
805
  };
696
- type CountryFieldsFragment = {
697
- __typename?: 'Country';
698
- id?: string | null;
699
- iso2?: string | null;
700
- name?: string | null;
701
- displayName?: string | null;
702
- };
703
- type RegionFieldsFragment = {
704
- __typename?: 'Region';
705
- id: string;
706
- name: string;
707
- currencyCode: string;
708
- createdAt?: any | null;
709
- countries?: Array<({
710
- __typename?: 'Country';
711
- } & CountryFieldsFragment) | null> | null;
806
+ type AddressFieldsFragment = {
807
+ __typename?: 'Address';
808
+ firstName?: string | null;
809
+ lastName?: string | null;
810
+ phone?: string | null;
811
+ address1?: string | null;
812
+ city?: string | null;
813
+ countryCode?: string | null;
814
+ postalCode?: string | null;
712
815
  };
713
816
  type PromotionFieldsFragment = {
714
817
  __typename?: 'Promotion';
@@ -790,25 +893,6 @@ type CustomerFragment = {
790
893
  __typename?: 'CustomerAddress';
791
894
  } & CustomerAddressFragment) | null> | null;
792
895
  };
793
- type ProductImageFragment = {
794
- __typename?: 'ProductImage';
795
- id: string;
796
- url: string;
797
- };
798
- type ProductTagFragment = {
799
- __typename?: 'ProductTag';
800
- id: string;
801
- };
802
- type ProductOptionFragment = {
803
- __typename?: 'ProductOption';
804
- id: string;
805
- title: string;
806
- values: Array<{
807
- __typename?: 'ProductOptionValue';
808
- id: string;
809
- value: string;
810
- }>;
811
- };
812
896
  type PriceFragment = {
813
897
  __typename?: 'Price';
814
898
  amount?: number | null;
@@ -836,6 +920,14 @@ type ProductVariantFragment = {
836
920
  __typename?: 'Price';
837
921
  } & PriceFragment) | null;
838
922
  };
923
+ type ProductHitFragment = {
924
+ __typename?: 'ProductHit';
925
+ id: string;
926
+ title?: string | null;
927
+ description?: string | null;
928
+ handle: string;
929
+ thumbnail?: string | null;
930
+ };
839
931
  type ProductCategoryFragment = {
840
932
  __typename?: 'ProductCategory';
841
933
  id: string;
@@ -849,37 +941,10 @@ type ProductCollectionFragment = {
849
941
  title: string;
850
942
  handle: string;
851
943
  };
852
- type ProductFragment = {
853
- __typename?: 'Product';
944
+ type ProductImageFragment = {
945
+ __typename?: 'ProductImage';
854
946
  id: string;
855
- title: string;
856
- handle: string;
857
- description?: string | null;
858
- thumbnail?: string | null;
859
- width?: number | null;
860
- weight?: number | null;
861
- length?: number | null;
862
- height?: number | null;
863
- originCountry?: string | null;
864
- material?: string | null;
865
- type?: string | null;
866
- collectionId?: string | null;
867
- createdAt: any;
868
- images?: Array<{
869
- __typename?: 'ProductImage';
870
- } & ProductImageFragment> | null;
871
- tags?: Array<{
872
- __typename?: 'ProductTag';
873
- } & ProductTagFragment> | null;
874
- options?: Array<{
875
- __typename?: 'ProductOption';
876
- } & ProductOptionFragment> | null;
877
- variants?: Array<{
878
- __typename?: 'ProductVariant';
879
- } & ProductVariantFragment> | null;
880
- collection?: ({
881
- __typename?: 'Collection';
882
- } & ProductCollectionFragment) | null;
947
+ url: string;
883
948
  };
884
949
  type CollectionProductsFragment = {
885
950
  __typename?: 'ProductList';
@@ -904,14 +969,6 @@ type CollectionProductsFragment = {
904
969
  }> | null;
905
970
  }> | null;
906
971
  };
907
- type ProductHitFragment = {
908
- __typename?: 'ProductHit';
909
- id: string;
910
- title?: string | null;
911
- description?: string | null;
912
- handle: string;
913
- thumbnail?: string | null;
914
- };
915
972
  type CreateCartMutationVariables = Exact<{
916
973
  data: CreateCartInput;
917
974
  }>;
@@ -921,24 +978,6 @@ type CreateCartMutation = {
921
978
  __typename?: 'Cart';
922
979
  } & CartFieldsFragment) | null;
923
980
  };
924
- type UpdateCartMutationVariables = Exact<{
925
- id: Scalars['ID']['input'];
926
- data: UpdateCartInput;
927
- }>;
928
- type UpdateCartMutation = {
929
- __typename?: 'Mutation';
930
- updateCart?: ({
931
- __typename?: 'Cart';
932
- regionId?: string | null;
933
- currencyCode: string;
934
- shippingAddress?: ({
935
- __typename?: 'Address';
936
- } & AddressFieldsFragment) | null;
937
- billingAddress?: ({
938
- __typename?: 'Address';
939
- } & AddressFieldsFragment) | null;
940
- } & CartFieldsFragment) | null;
941
- };
942
981
  type CreateLineItemMutationVariables = Exact<{
943
982
  cartId: Scalars['ID']['input'];
944
983
  data: CreateLineItemInput;
@@ -954,21 +993,23 @@ type CreateLineItemMutation = {
954
993
  } & CartItemFieldsFragment> | null;
955
994
  } | null;
956
995
  };
957
- type UpdateLineItemMutationVariables = Exact<{
958
- cartId: Scalars['ID']['input'];
959
- lineItemId: Scalars['ID']['input'];
960
- data: UpdateLineItemInput;
996
+ type UpdateCartMutationVariables = Exact<{
997
+ id: Scalars['ID']['input'];
998
+ data: UpdateCartInput;
961
999
  }>;
962
- type UpdateLineItemMutation = {
1000
+ type UpdateCartMutation = {
963
1001
  __typename?: 'Mutation';
964
- updateLineItem?: {
1002
+ updateCart?: ({
965
1003
  __typename?: 'Cart';
966
- id: string;
967
- total: number;
968
- items?: Array<{
969
- __typename?: 'LineItem';
970
- } & CartItemFieldsFragment> | null;
971
- } | null;
1004
+ regionId?: string | null;
1005
+ currencyCode: string;
1006
+ shippingAddress?: ({
1007
+ __typename?: 'Address';
1008
+ } & AddressFieldsFragment) | null;
1009
+ billingAddress?: ({
1010
+ __typename?: 'Address';
1011
+ } & AddressFieldsFragment) | null;
1012
+ } & CartFieldsFragment) | null;
972
1013
  };
973
1014
  type DeleteLineItemMutationVariables = Exact<{
974
1015
  cartId: Scalars['ID']['input'];
@@ -983,80 +1024,6 @@ type DeleteLineItemMutation = {
983
1024
  deleted: boolean;
984
1025
  };
985
1026
  };
986
- type AddShippingMethodMutationVariables = Exact<{
987
- cartId: Scalars['ID']['input'];
988
- optionId: Scalars['ID']['input'];
989
- }>;
990
- type AddShippingMethodMutation = {
991
- __typename?: 'Mutation';
992
- addShippingMethod?: {
993
- __typename?: 'Cart';
994
- id: string;
995
- total: number;
996
- items?: Array<{
997
- __typename?: 'LineItem';
998
- } & CartItemFieldsFragment> | null;
999
- shippingMethods?: Array<({
1000
- __typename?: 'ShippingMethod';
1001
- } & ShippingMethodFieldsFragment) | null> | null;
1002
- } | null;
1003
- };
1004
- type CompleteCartMutationVariables = Exact<{
1005
- cartId: Scalars['ID']['input'];
1006
- }>;
1007
- type CompleteCartMutation = {
1008
- __typename?: 'Mutation';
1009
- completeCart?: {
1010
- __typename: 'CompleteCartErrorResult';
1011
- type: string;
1012
- error?: {
1013
- __typename?: 'CompleteCartError';
1014
- message: string;
1015
- name: string;
1016
- type: string;
1017
- } | null;
1018
- cart?: {
1019
- __typename?: 'Cart';
1020
- id: string;
1021
- total: number;
1022
- items?: Array<{
1023
- __typename?: 'LineItem';
1024
- } & CartItemFieldsFragment> | null;
1025
- } | null;
1026
- } | {
1027
- __typename: 'CompleteCartOrderResult';
1028
- type: string;
1029
- order?: {
1030
- __typename?: 'Order';
1031
- id: string;
1032
- email: string;
1033
- status: string;
1034
- total: number;
1035
- createdAt: any;
1036
- currencyCode: string;
1037
- customerId: string;
1038
- fulfillmentStatus: string;
1039
- displayId?: number | null;
1040
- subtotal?: number | null;
1041
- discountTotal?: number | null;
1042
- giftCardTotal?: number | null;
1043
- shippingTotal?: number | null;
1044
- taxTotal?: number | null;
1045
- paymentCollections?: Array<({
1046
- __typename?: 'PaymentCollection';
1047
- } & PaymentCollectionFieldsFragment) | null> | null;
1048
- items: Array<{
1049
- __typename?: 'LineItem';
1050
- } & CartItemFieldsFragment>;
1051
- shippingMethods: Array<{
1052
- __typename?: 'ShippingMethod';
1053
- } & ShippingMethodFieldsFragment>;
1054
- shippingAddress?: ({
1055
- __typename?: 'Address';
1056
- } & AddressFieldsFragment) | null;
1057
- } | null;
1058
- } | null;
1059
- };
1060
1027
  type TransferCartMutationVariables = Exact<{
1061
1028
  cartId: Scalars['ID']['input'];
1062
1029
  }>;
@@ -1066,37 +1033,6 @@ type TransferCartMutation = {
1066
1033
  __typename?: 'Cart';
1067
1034
  } & CartFieldsFragment) | null;
1068
1035
  };
1069
- type ApplyPromotionsMutationVariables = Exact<{
1070
- cartId: Scalars['ID']['input'];
1071
- codes: Array<Scalars['String']['input']> | Scalars['String']['input'];
1072
- }>;
1073
- type ApplyPromotionsMutation = {
1074
- __typename?: 'Mutation';
1075
- applyPromotions?: ({
1076
- __typename?: 'Cart';
1077
- } & CartFieldsFragment) | null;
1078
- };
1079
- type LoginMutationVariables = Exact<{
1080
- email: Scalars['String']['input'];
1081
- password: Scalars['String']['input'];
1082
- }>;
1083
- type LoginMutation = {
1084
- __typename?: 'Mutation';
1085
- login?: {
1086
- __typename?: 'Token';
1087
- token?: string | null;
1088
- } | null;
1089
- };
1090
- type LogoutMutationVariables = Exact<{
1091
- [key: string]: never;
1092
- }>;
1093
- type LogoutMutation = {
1094
- __typename?: 'Mutation';
1095
- logout?: {
1096
- __typename?: 'LogoutResponse';
1097
- success?: boolean | null;
1098
- } | null;
1099
- };
1100
1036
  type GetCartQueryVariables = Exact<{
1101
1037
  id: Scalars['ID']['input'];
1102
1038
  }>;
@@ -1106,6 +1042,19 @@ type GetCartQuery = {
1106
1042
  __typename?: 'Cart';
1107
1043
  } & CartFieldsFragment) | null;
1108
1044
  };
1045
+ type GetCollectionsQueryVariables = Exact<{
1046
+ limit?: InputMaybe<Scalars['Int']['input']>;
1047
+ offset?: InputMaybe<Scalars['Int']['input']>;
1048
+ }>;
1049
+ type GetCollectionsQuery = {
1050
+ __typename?: 'Query';
1051
+ collections: Array<{
1052
+ __typename?: 'Collection';
1053
+ products?: ({
1054
+ __typename?: 'ProductList';
1055
+ } & CollectionProductsFragment) | null;
1056
+ } & ProductCollectionFragment>;
1057
+ };
1109
1058
  type GetCustomerQueryVariables = Exact<{
1110
1059
  [key: string]: never;
1111
1060
  }>;
@@ -1130,99 +1079,129 @@ type GetFooterQuery = {
1130
1079
  url: string;
1131
1080
  }> | null;
1132
1081
  poweredByCta?: {
1133
- __typename?: 'RichText';
1134
- text: Array<{
1135
- __typename?: 'FileBlock';
1136
- _key: string;
1137
- _type: string;
1138
- asset?: {
1139
- __typename?: 'SanityFileAsset';
1140
- url: string;
1141
- originalFilename?: string | null;
1142
- size?: number | null;
1143
- mimeType?: string | null;
1144
- } | null;
1145
- } | {
1146
- __typename?: 'ImageBlock';
1147
- _key: string;
1148
- _type: string;
1149
- alt?: string | null;
1150
- asset?: {
1151
- __typename?: 'SanityImageAsset';
1152
- url: string;
1153
- } | null;
1154
- } | {
1155
- __typename?: 'TextBlock';
1156
- _key: string;
1157
- _type: string;
1158
- style?: string | null;
1159
- children: Array<{
1160
- __typename?: 'Span';
1161
- _key: string;
1162
- text: string;
1163
- marks?: Array<string> | null;
1164
- }>;
1165
- markDefs?: Array<{
1166
- __typename?: 'IconLinkMark';
1167
- _key: string;
1168
- _type: string;
1169
- href: string;
1170
- iconType: string;
1171
- iconClass?: string | null;
1172
- iconFill?: string | null;
1173
- iconComponent?: string | null;
1174
- iconUrl?: string | null;
1175
- target?: string | null;
1176
- iconImage?: {
1177
- __typename?: 'SanityImage';
1178
- alt?: string | null;
1179
- asset?: {
1180
- __typename?: 'SanityImageAsset';
1181
- url: string;
1182
- } | null;
1183
- } | null;
1184
- } | {
1185
- __typename?: 'LinkMark';
1186
- _key: string;
1187
- _type: string;
1188
- href: string;
1189
- target?: string | null;
1190
- }> | null;
1191
- }>;
1082
+ __typename?: 'PartialRichText';
1083
+ text?: any | null;
1192
1084
  } | null;
1193
1085
  } | null;
1194
1086
  };
1195
- type GetProductsQueryVariables = Exact<{
1087
+ type OrderFieldsFragment = {
1088
+ __typename?: 'Order';
1089
+ id: string;
1090
+ displayId?: number | null;
1091
+ email: string;
1092
+ customerId: string;
1093
+ regionId: string;
1094
+ status: string;
1095
+ paymentStatus: string;
1096
+ fulfillmentStatus: string;
1097
+ currencyCode: string;
1098
+ total: number;
1099
+ subtotal?: number | null;
1100
+ discountTotal?: number | null;
1101
+ giftCardTotal?: number | null;
1102
+ shippingTotal?: number | null;
1103
+ taxTotal?: number | null;
1104
+ createdAt: any;
1105
+ items: Array<{
1106
+ __typename?: 'LineItem';
1107
+ id: string;
1108
+ title?: string | null;
1109
+ quantity: number;
1110
+ unitPrice?: number | null;
1111
+ total?: number | null;
1112
+ originalTotal?: number | null;
1113
+ thumbnail?: string | null;
1114
+ productHandle?: string | null;
1115
+ productTitle?: string | null;
1116
+ variant?: {
1117
+ __typename?: 'ProductVariant';
1118
+ id: string;
1119
+ title?: string | null;
1120
+ sku?: string | null;
1121
+ product?: {
1122
+ __typename?: 'Product';
1123
+ id: string;
1124
+ title: string;
1125
+ handle: string;
1126
+ thumbnail?: string | null;
1127
+ createdAt: any;
1128
+ } | null;
1129
+ } | null;
1130
+ }>;
1131
+ shippingMethods: Array<{
1132
+ __typename?: 'ShippingMethod';
1133
+ id: string;
1134
+ name: string;
1135
+ amount: number;
1136
+ shippingOptionId?: string | null;
1137
+ }>;
1138
+ shippingAddress?: {
1139
+ __typename?: 'Address';
1140
+ firstName?: string | null;
1141
+ lastName?: string | null;
1142
+ address1?: string | null;
1143
+ address2?: string | null;
1144
+ city?: string | null;
1145
+ postalCode?: string | null;
1146
+ countryCode?: string | null;
1147
+ phone?: string | null;
1148
+ } | null;
1149
+ paymentCollections?: Array<{
1150
+ __typename?: 'PaymentCollection';
1151
+ id: string;
1152
+ currencyCode: string;
1153
+ amount: number;
1154
+ status: PaymentStatus;
1155
+ paymentProviders: Array<{
1156
+ __typename?: 'PaymentProviders';
1157
+ id: string;
1158
+ } | null>;
1159
+ payments?: Array<{
1160
+ __typename?: 'Payment';
1161
+ id: string;
1162
+ amount: number;
1163
+ currencyCode: string;
1164
+ providerId: string;
1165
+ createdAt?: any | null;
1166
+ } | null> | null;
1167
+ } | null> | null;
1168
+ };
1169
+ type GetOrderQueryVariables = Exact<{
1170
+ id: Scalars['ID']['input'];
1171
+ }>;
1172
+ type GetOrderQuery = {
1173
+ __typename?: 'Query';
1174
+ order?: ({
1175
+ __typename?: 'Order';
1176
+ } & OrderFieldsFragment) | null;
1177
+ };
1178
+ type GetOrdersQueryVariables = Exact<{
1196
1179
  limit?: InputMaybe<Scalars['Int']['input']>;
1197
1180
  offset?: InputMaybe<Scalars['Int']['input']>;
1198
- handle?: InputMaybe<Scalars['String']['input']>;
1199
- region_id?: InputMaybe<Scalars['String']['input']>;
1200
- category_id?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>> | InputMaybe<Scalars['String']['input']>>;
1201
- collection_id?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>> | InputMaybe<Scalars['String']['input']>>;
1202
- q?: InputMaybe<Scalars['String']['input']>;
1203
- is_giftcard?: InputMaybe<Scalars['Boolean']['input']>;
1204
- id?: InputMaybe<Array<Scalars['ID']['input']> | Scalars['ID']['input']>;
1205
- tag_id?: InputMaybe<Array<Scalars['String']['input']> | Scalars['String']['input']>;
1206
1181
  }>;
1207
- type GetProductsQuery = {
1182
+ type GetOrdersQuery = {
1208
1183
  __typename?: 'Query';
1209
- products: {
1210
- __typename?: 'ProductListResponse';
1184
+ orders?: {
1185
+ __typename?: 'OrderListResponse';
1211
1186
  count: number;
1212
- products?: Array<({
1213
- __typename?: 'Product';
1214
- } & ProductFragment) | null> | null;
1215
- };
1187
+ limit: number;
1188
+ offset: number;
1189
+ orders: Array<{
1190
+ __typename?: 'Order';
1191
+ } & OrderFieldsFragment>;
1192
+ } | null;
1216
1193
  };
1217
- type GetProductQueryVariables = Exact<{
1218
- id: Scalars['ID']['input'];
1219
- region_id?: InputMaybe<Scalars['String']['input']>;
1194
+ type SearchSuggestionsQueryVariables = Exact<{
1195
+ query: Scalars['String']['input'];
1220
1196
  }>;
1221
- type GetProductQuery = {
1197
+ type SearchSuggestionsQuery = {
1222
1198
  __typename?: 'Query';
1223
- product?: ({
1224
- __typename?: 'Product';
1225
- } & ProductFragment) | null;
1199
+ searchProducts: {
1200
+ __typename?: 'SearchProducts';
1201
+ items: Array<{
1202
+ __typename?: 'ProductHit';
1203
+ } & ProductHitFragment>;
1204
+ };
1226
1205
  };
1227
1206
  type GetProductCategoriesQueryVariables = Exact<{
1228
1207
  limit?: InputMaybe<Scalars['Int']['input']>;
@@ -1247,79 +1226,92 @@ type GetProductCategoriesQuery = {
1247
1226
  } | null;
1248
1227
  } & ProductCategoryFragment>;
1249
1228
  };
1250
- type GetProductCategoryQueryVariables = Exact<{
1251
- id: Scalars['ID']['input'];
1229
+ type ListRegionsQueryVariables = Exact<{
1230
+ [key: string]: never;
1252
1231
  }>;
1253
- type GetProductCategoryQuery = {
1232
+ type ListRegionsQuery = {
1254
1233
  __typename?: 'Query';
1255
- productCategory?: ({
1256
- __typename?: 'ProductCategory';
1257
- parentCategory?: ({
1258
- __typename?: 'ProductCategory';
1259
- parentCategory?: ({
1260
- __typename?: 'ProductCategory';
1261
- } & ProductCategoryFragment) | null;
1262
- } & ProductCategoryFragment) | null;
1263
- categoryChildren?: Array<{
1264
- __typename?: 'ProductCategory';
1265
- } & ProductCategoryFragment> | null;
1266
- products?: {
1267
- __typename?: 'ProductList';
1268
- count: number;
1269
- } | null;
1270
- } & ProductCategoryFragment) | null;
1234
+ regions: Array<{
1235
+ __typename?: 'Region';
1236
+ id: string;
1237
+ name: string;
1238
+ currencyCode: string;
1239
+ createdAt?: any | null;
1240
+ countries?: Array<{
1241
+ __typename?: 'Country';
1242
+ id?: string | null;
1243
+ iso2?: string | null;
1244
+ name?: string | null;
1245
+ displayName?: string | null;
1246
+ } | null> | null;
1247
+ }>;
1271
1248
  };
1272
- type GetCollectionsQueryVariables = Exact<{
1273
- limit?: InputMaybe<Scalars['Int']['input']>;
1274
- offset?: InputMaybe<Scalars['Int']['input']>;
1249
+ type GetRegionQueryVariables = Exact<{
1250
+ id: Scalars['ID']['input'];
1275
1251
  }>;
1276
- type GetCollectionsQuery = {
1252
+ type GetRegionQuery = {
1277
1253
  __typename?: 'Query';
1278
- collections: Array<{
1279
- __typename?: 'Collection';
1280
- products?: ({
1281
- __typename?: 'ProductList';
1282
- } & CollectionProductsFragment) | null;
1283
- } & ProductCollectionFragment>;
1254
+ region?: {
1255
+ __typename?: 'Region';
1256
+ id: string;
1257
+ name: string;
1258
+ currencyCode: string;
1259
+ createdAt?: any | null;
1260
+ countries?: Array<{
1261
+ __typename?: 'Country';
1262
+ id?: string | null;
1263
+ iso2?: string | null;
1264
+ name?: string | null;
1265
+ displayName?: string | null;
1266
+ } | null> | null;
1267
+ } | null;
1284
1268
  };
1285
- type GetCollectionsSummaryQueryVariables = Exact<{
1286
- limit?: InputMaybe<Scalars['Int']['input']>;
1287
- offset?: InputMaybe<Scalars['Int']['input']>;
1288
- handle?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>> | InputMaybe<Scalars['String']['input']>>;
1289
- }>;
1290
- type GetCollectionsSummaryQuery = {
1291
- __typename?: 'Query';
1292
- collections: Array<{
1293
- __typename?: 'Collection';
1294
- products?: {
1295
- __typename?: 'ProductList';
1296
- count: number;
1269
+ type ShippingOptionFieldsFragment = {
1270
+ __typename?: 'ShippingOption';
1271
+ id: string;
1272
+ name: string;
1273
+ priceType: string;
1274
+ amount?: number | null;
1275
+ serviceZoneId?: string | null;
1276
+ insufficientInventory?: boolean | null;
1277
+ calculatedPrice?: {
1278
+ __typename?: 'CalculatedShippingOptionPrice';
1279
+ amount?: number | null;
1280
+ } | null;
1281
+ prices?: Array<{
1282
+ __typename?: 'ShippingOptionPrice';
1283
+ amount?: number | null;
1284
+ currencyCode?: string | null;
1285
+ priceRules?: Array<{
1286
+ __typename?: 'PriceRule';
1287
+ attribute: string;
1288
+ operator: string;
1289
+ value: string;
1290
+ } | null> | null;
1291
+ } | null> | null;
1292
+ serviceZone?: {
1293
+ __typename?: 'ServiceZone';
1294
+ fulfillmentSetType?: string | null;
1295
+ location?: {
1296
+ __typename?: 'ServiceZoneLocation';
1297
+ address?: {
1298
+ __typename?: 'ServiceZoneLocationAddress';
1299
+ city?: string | null;
1300
+ countryCode?: string | null;
1301
+ address1?: string | null;
1302
+ postalCode?: string | null;
1303
+ } | null;
1297
1304
  } | null;
1298
- } & ProductCollectionFragment>;
1299
- };
1300
- type GetCollectionQueryVariables = Exact<{
1301
- id: Scalars['ID']['input'];
1302
- }>;
1303
- type GetCollectionQuery = {
1304
- __typename?: 'Query';
1305
- collection?: ({
1306
- __typename?: 'Collection';
1307
- products?: ({
1308
- __typename?: 'ProductList';
1309
- } & CollectionProductsFragment) | null;
1310
- } & ProductCollectionFragment) | null;
1305
+ } | null;
1311
1306
  };
1312
- type SearchSuggestionsQueryVariables = Exact<{
1313
- query: Scalars['String']['input'];
1307
+ type GetShippingOptionsQueryVariables = Exact<{
1308
+ cartId: Scalars['ID']['input'];
1314
1309
  }>;
1315
- type SearchSuggestionsQuery = {
1310
+ type GetShippingOptionsQuery = {
1316
1311
  __typename?: 'Query';
1317
- searchProducts: {
1318
- __typename?: 'SearchProducts';
1319
- items: Array<{
1320
- __typename?: 'ProductHit';
1321
- } & ProductHitFragment>;
1322
- };
1312
+ shippingOptions?: Array<({
1313
+ __typename?: 'ShippingOption';
1314
+ } & ShippingOptionFieldsFragment) | null> | null;
1323
1315
  };
1324
1316
  declare const PromotionFieldsFragmentDoc: TypedDocumentNode<PromotionFieldsFragment, unknown>;
1325
1317
  declare const PriceFragmentDoc: TypedDocumentNode<PriceFragment, unknown>;
@@ -1333,36 +1325,29 @@ declare const PaymentCollectionFieldsFragmentDoc: TypedDocumentNode<PaymentColle
1333
1325
  declare const CartFieldsFragmentDoc: TypedDocumentNode<CartFieldsFragment, unknown>;
1334
1326
  declare const CustomerAddressFragmentDoc: TypedDocumentNode<CustomerAddressFragment, unknown>;
1335
1327
  declare const CustomerFragmentDoc: TypedDocumentNode<CustomerFragment, unknown>;
1328
+ declare const ProductHitFragmentDoc: TypedDocumentNode<ProductHitFragment, unknown>;
1336
1329
  declare const ProductCategoryFragmentDoc: TypedDocumentNode<ProductCategoryFragment, unknown>;
1337
- declare const ProductImageFragmentDoc: TypedDocumentNode<ProductImageFragment, unknown>;
1338
- declare const ProductTagFragmentDoc: TypedDocumentNode<ProductTagFragment, unknown>;
1339
- declare const ProductOptionFragmentDoc: TypedDocumentNode<ProductOptionFragment, unknown>;
1340
1330
  declare const ProductCollectionFragmentDoc: TypedDocumentNode<ProductCollectionFragment, unknown>;
1341
- declare const ProductFragmentDoc: TypedDocumentNode<ProductFragment, unknown>;
1331
+ declare const ProductImageFragmentDoc: TypedDocumentNode<ProductImageFragment, unknown>;
1342
1332
  declare const CollectionProductsFragmentDoc: TypedDocumentNode<CollectionProductsFragment, unknown>;
1343
- declare const ProductHitFragmentDoc: TypedDocumentNode<ProductHitFragment, unknown>;
1333
+ declare const OrderFieldsFragmentDoc: TypedDocumentNode<OrderFieldsFragment, unknown>;
1334
+ declare const ShippingOptionFieldsFragmentDoc: TypedDocumentNode<ShippingOptionFieldsFragment, unknown>;
1344
1335
  declare const CreateCartDocument: TypedDocumentNode<CreateCartMutation, CreateCartMutationVariables>;
1345
- declare const UpdateCartDocument: TypedDocumentNode<UpdateCartMutation, UpdateCartMutationVariables>;
1346
1336
  declare const CreateLineItemDocument: TypedDocumentNode<CreateLineItemMutation, CreateLineItemMutationVariables>;
1347
- declare const UpdateLineItemDocument: TypedDocumentNode<UpdateLineItemMutation, UpdateLineItemMutationVariables>;
1337
+ declare const UpdateCartDocument: TypedDocumentNode<UpdateCartMutation, UpdateCartMutationVariables>;
1348
1338
  declare const DeleteLineItemDocument: TypedDocumentNode<DeleteLineItemMutation, DeleteLineItemMutationVariables>;
1349
- declare const AddShippingMethodDocument: TypedDocumentNode<AddShippingMethodMutation, AddShippingMethodMutationVariables>;
1350
- declare const CompleteCartDocument: TypedDocumentNode<CompleteCartMutation, CompleteCartMutationVariables>;
1351
1339
  declare const TransferCartDocument: TypedDocumentNode<TransferCartMutation, TransferCartMutationVariables>;
1352
- declare const ApplyPromotionsDocument: TypedDocumentNode<ApplyPromotionsMutation, ApplyPromotionsMutationVariables>;
1353
- declare const LoginDocument: TypedDocumentNode<LoginMutation, LoginMutationVariables>;
1354
- declare const LogoutDocument: TypedDocumentNode<LogoutMutation, LogoutMutationVariables>;
1355
1340
  declare const GetCartDocument: TypedDocumentNode<GetCartQuery, GetCartQueryVariables>;
1341
+ declare const GetCollectionsDocument: TypedDocumentNode<GetCollectionsQuery, GetCollectionsQueryVariables>;
1356
1342
  declare const GetCustomerDocument: TypedDocumentNode<GetCustomerQuery, GetCustomerQueryVariables>;
1357
1343
  declare const GetFooterDocument: TypedDocumentNode<GetFooterQuery, GetFooterQueryVariables>;
1358
- declare const GetProductsDocument: TypedDocumentNode<GetProductsQuery, GetProductsQueryVariables>;
1359
- declare const GetProductDocument: TypedDocumentNode<GetProductQuery, GetProductQueryVariables>;
1360
- declare const GetProductCategoriesDocument: TypedDocumentNode<GetProductCategoriesQuery, GetProductCategoriesQueryVariables>;
1361
- declare const GetProductCategoryDocument: TypedDocumentNode<GetProductCategoryQuery, GetProductCategoryQueryVariables>;
1362
- declare const GetCollectionsDocument: TypedDocumentNode<GetCollectionsQuery, GetCollectionsQueryVariables>;
1363
- declare const GetCollectionsSummaryDocument: TypedDocumentNode<GetCollectionsSummaryQuery, GetCollectionsSummaryQueryVariables>;
1364
- declare const GetCollectionDocument: TypedDocumentNode<GetCollectionQuery, GetCollectionQueryVariables>;
1344
+ declare const GetOrderDocument: TypedDocumentNode<GetOrderQuery, GetOrderQueryVariables>;
1345
+ declare const GetOrdersDocument: TypedDocumentNode<GetOrdersQuery, GetOrdersQueryVariables>;
1365
1346
  declare const SearchSuggestionsDocument: TypedDocumentNode<SearchSuggestionsQuery, SearchSuggestionsQueryVariables>;
1347
+ declare const GetProductCategoriesDocument: TypedDocumentNode<GetProductCategoriesQuery, GetProductCategoriesQueryVariables>;
1348
+ declare const ListRegionsDocument: TypedDocumentNode<ListRegionsQuery, ListRegionsQueryVariables>;
1349
+ declare const GetRegionDocument: TypedDocumentNode<GetRegionQuery, GetRegionQueryVariables>;
1350
+ declare const GetShippingOptionsDocument: TypedDocumentNode<GetShippingOptionsQuery, GetShippingOptionsQueryVariables>;
1366
1351
  //#endregion
1367
- export { AddShippingMethodDocument, AddShippingMethodMutation, AddShippingMethodMutationVariables, Address, AddressFieldsFragment, AddressFieldsFragmentDoc, AddressInput, ApplicationMethod, ApplicationType, ApplyPromotionsDocument, ApplyPromotionsMutation, ApplyPromotionsMutationVariables, Cart, CartFieldsFragment, CartFieldsFragmentDoc, CartItemFieldsFragment, CartItemFieldsFragmentDoc, Collection, CollectionProductsFragment, CollectionProductsFragmentDoc, CompleteCartDocument, CompleteCartError, CompleteCartErrorResult, CompleteCartMutation, CompleteCartMutationVariables, CompleteCartOrderResult, CompleteCartResponse, Country, CountryFieldsFragment, CountryFieldsFragmentDoc, CreateCartDocument, CreateCartInput, CreateCartMutation, CreateCartMutationVariables, CreateLineItemDocument, CreateLineItemInput, CreateLineItemMutation, CreateLineItemMutationVariables, Customer, CustomerAddress, CustomerAddressFragment, CustomerAddressFragmentDoc, CustomerFragment, CustomerFragmentDoc, DeleteLineItemDocument, DeleteLineItemMutation, DeleteLineItemMutationVariables, Exact, FileBlock, Footer, GetCartDocument, GetCartQuery, GetCartQueryVariables, GetCollectionDocument, GetCollectionQuery, GetCollectionQueryVariables, GetCollectionsDocument, GetCollectionsQuery, GetCollectionsQueryVariables, GetCollectionsSummaryDocument, GetCollectionsSummaryQuery, GetCollectionsSummaryQueryVariables, GetCustomerDocument, GetCustomerQuery, GetCustomerQueryVariables, GetFooterDocument, GetFooterQuery, GetFooterQueryVariables, GetProductCategoriesDocument, GetProductCategoriesQuery, GetProductCategoriesQueryVariables, GetProductCategoryDocument, GetProductCategoryQuery, GetProductCategoryQueryVariables, GetProductDocument, GetProductQuery, GetProductQueryVariables, GetProductsDocument, GetProductsQuery, GetProductsQueryVariables, IconLinkMark, ImageBlock, ImageDimensions, ImageMetadata, Incremental, InputMaybe, LineItem, LinkMark, LoginDocument, LoginMutation, LoginMutationVariables, LogoutDocument, LogoutMutation, LogoutMutationVariables, LogoutResponse, MakeEmpty, MakeMaybe, MakeOptional, MarkDef, Maybe, Mutation, Mutation_AddShippingMethodArgs, Mutation_ApplyPromotionsArgs, Mutation_CompleteCartArgs, Mutation_CreateCartArgs, Mutation_CreateLineItemArgs, Mutation_DeleteLineItemArgs, Mutation_LoginArgs, Mutation_TransferCartArgs, Mutation_UpdateCartArgs, Mutation_UpdateLineItemArgs, Order, Payment, PaymentCollection, PaymentCollectionFieldsFragment, PaymentCollectionFieldsFragmentDoc, PaymentProviders, PaymentSessionStatus, PaymentSessions, PaymentStatus, Price, PriceFragment, PriceFragmentDoc, Product, ProductCategory, ProductCategoryFragment, ProductCategoryFragmentDoc, ProductCollectionFragment, ProductCollectionFragmentDoc, ProductFragment, ProductFragmentDoc, ProductHit, ProductHitFragment, ProductHitFragmentDoc, ProductImage, ProductImageFragment, ProductImageFragmentDoc, ProductList, ProductListResponse, ProductOption, ProductOptionFragment, ProductOptionFragmentDoc, ProductOptionValue, ProductTag, ProductTagFragment, ProductTagFragmentDoc, ProductVariant, ProductVariantFragment, ProductVariantFragmentDoc, ProductVariantOption, Promotion, PromotionFieldsFragment, PromotionFieldsFragmentDoc, Query, Query_CartArgs, Query_CollectionArgs, Query_CollectionsArgs, Query_ProductArgs, Query_ProductCategoriesArgs, Query_ProductCategoryArgs, Query_ProductsArgs, Query_SearchProductsArgs, Region, RegionFieldsFragment, RegionFieldsFragmentDoc, RichText, RichTextBlock, SanityFileAsset, SanityImage, SanityImageAsset, Scalars, SearchProducts, SearchSuggestionsDocument, SearchSuggestionsQuery, SearchSuggestionsQueryVariables, ShippingMethod, ShippingMethodFieldsFragment, ShippingMethodFieldsFragmentDoc, SocialLink, Span, StoreLineItemDeleteResponse, TextBlock, Token, TransferCartDocument, TransferCartMutation, TransferCartMutationVariables, UpdateCartDocument, UpdateCartInput, UpdateCartMutation, UpdateCartMutationVariables, UpdateLineItemDocument, UpdateLineItemInput, UpdateLineItemMutation, UpdateLineItemMutationVariables };
1352
+ export { AddCustomerAddressInput, Address, AddressFieldsFragment, AddressFieldsFragmentDoc, AddressInput, ApplicationMethod, ApplicationType, AuthPayload, CacheControlScope, CalculatedShippingOptionPrice, Cart, CartFieldsFragment, CartFieldsFragmentDoc, CartItemFieldsFragment, CartItemFieldsFragmentDoc, Collection, CollectionProductsFragment, CollectionProductsFragmentDoc, 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, GetCartQuery, GetCartQueryVariables, GetCollectionsDocument, GetCollectionsQuery, GetCollectionsQueryVariables, GetCustomerDocument, GetCustomerQuery, GetCustomerQueryVariables, GetFooterDocument, GetFooterQuery, GetFooterQueryVariables, GetOrderDocument, GetOrderQuery, GetOrderQueryVariables, GetOrdersDocument, GetOrdersQuery, GetOrdersQueryVariables, GetProductCategoriesDocument, GetProductCategoriesQuery, GetProductCategoriesQueryVariables, GetRegionDocument, GetRegionQuery, GetRegionQueryVariables, GetShippingOptionsDocument, GetShippingOptionsQuery, GetShippingOptionsQueryVariables, 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, ProductHitFragment, ProductHitFragmentDoc, 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, Scalars, SearchProducts, SearchSuggestionsDocument, SearchSuggestionsQuery, SearchSuggestionsQueryVariables, ServiceZone, ServiceZoneLocation, ServiceZoneLocationAddress, ShippingMethod, ShippingMethodFieldsFragment, ShippingMethodFieldsFragmentDoc, ShippingOption, ShippingOptionFieldsFragment, ShippingOptionFieldsFragmentDoc, ShippingOptionPrice, SocialLink, StoreLineItemDeleteResponse, TransferCartDocument, TransferCartMutation, TransferCartMutationVariables, UpdateCartDocument, UpdateCartInput, UpdateCartMutation, UpdateCartMutationVariables, UpdateCustomerAddressInput, UpdateCustomerInput, UpdateLineItemInput };
1368
1353
  //# sourceMappingURL=graphql.d.ts.map