@shopify/cli-hydrogen 6.0.2 → 7.0.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 (108) hide show
  1. package/dist/commands/hydrogen/build.js +40 -78
  2. package/dist/commands/hydrogen/codegen.js +8 -3
  3. package/dist/commands/hydrogen/deploy.js +173 -37
  4. package/dist/commands/hydrogen/deploy.test.js +192 -20
  5. package/dist/commands/hydrogen/dev.js +56 -31
  6. package/dist/commands/hydrogen/init.js +1 -1
  7. package/dist/commands/hydrogen/init.test.js +155 -53
  8. package/dist/commands/hydrogen/link.js +5 -21
  9. package/dist/commands/hydrogen/link.test.js +10 -10
  10. package/dist/commands/hydrogen/preview.js +22 -11
  11. package/dist/commands/hydrogen/setup.js +0 -4
  12. package/dist/commands/hydrogen/setup.test.js +0 -1
  13. package/dist/commands/hydrogen/shortcut.js +1 -0
  14. package/dist/commands/hydrogen/upgrade.js +720 -0
  15. package/dist/commands/hydrogen/upgrade.test.js +786 -0
  16. package/dist/generator-templates/starter/.graphqlrc.yml +12 -1
  17. package/dist/generator-templates/starter/CHANGELOG.md +126 -0
  18. package/dist/generator-templates/starter/README.md +23 -0
  19. package/dist/generator-templates/starter/app/components/Cart.tsx +1 -1
  20. package/dist/generator-templates/starter/app/components/Footer.tsx +3 -1
  21. package/dist/generator-templates/starter/app/components/Header.tsx +5 -1
  22. package/dist/generator-templates/starter/app/components/Layout.tsx +14 -11
  23. package/dist/generator-templates/starter/app/components/Search.tsx +1 -1
  24. package/dist/generator-templates/starter/app/graphql/customer-account/CustomerAddressMutations.ts +61 -0
  25. package/dist/generator-templates/starter/app/graphql/customer-account/CustomerDetailsQuery.ts +39 -0
  26. package/dist/generator-templates/starter/app/graphql/customer-account/CustomerOrderQuery.ts +87 -0
  27. package/dist/generator-templates/starter/app/graphql/customer-account/CustomerOrdersQuery.ts +58 -0
  28. package/dist/generator-templates/starter/app/graphql/customer-account/CustomerUpdateMutation.ts +24 -0
  29. package/dist/generator-templates/starter/app/lib/fragments.ts +102 -0
  30. package/dist/generator-templates/starter/app/lib/session.ts +67 -0
  31. package/dist/generator-templates/starter/app/root.tsx +11 -45
  32. package/dist/generator-templates/starter/app/routes/[robots.txt].tsx +0 -27
  33. package/dist/generator-templates/starter/app/routes/account.$.tsx +8 -4
  34. package/dist/generator-templates/starter/app/routes/account._index.tsx +5 -0
  35. package/dist/generator-templates/starter/app/routes/account.addresses.tsx +215 -206
  36. package/dist/generator-templates/starter/app/routes/account.orders.$id.tsx +56 -163
  37. package/dist/generator-templates/starter/app/routes/account.orders._index.tsx +32 -109
  38. package/dist/generator-templates/starter/app/routes/account.profile.tsx +40 -180
  39. package/dist/generator-templates/starter/app/routes/account.tsx +20 -135
  40. package/dist/generator-templates/starter/app/routes/account_.authorize.tsx +5 -0
  41. package/dist/generator-templates/starter/app/routes/account_.login.tsx +3 -140
  42. package/dist/generator-templates/starter/app/routes/account_.logout.tsx +5 -24
  43. package/dist/generator-templates/starter/app/routes/cart.tsx +7 -5
  44. package/dist/generator-templates/starter/app/routes/collections.$handle.tsx +1 -1
  45. package/dist/generator-templates/starter/app/routes/products.$handle.tsx +2 -2
  46. package/dist/generator-templates/starter/app/routes/search.tsx +1 -1
  47. package/dist/generator-templates/starter/customer-accountapi.generated.d.ts +506 -0
  48. package/dist/generator-templates/starter/package.json +11 -10
  49. package/dist/generator-templates/starter/remix.config.js +4 -0
  50. package/dist/generator-templates/starter/remix.env.d.ts +6 -11
  51. package/dist/generator-templates/starter/server.ts +24 -167
  52. package/dist/generator-templates/starter/storefrontapi.generated.d.ts +104 -881
  53. package/dist/hooks/init.js +4 -4
  54. package/dist/lib/auth.js +5 -10
  55. package/dist/lib/build.js +6 -1
  56. package/dist/lib/bundle/analyzer.js +36 -26
  57. package/dist/lib/check-lockfile.js +1 -0
  58. package/dist/lib/codegen.js +59 -18
  59. package/dist/lib/defer.js +12 -0
  60. package/dist/lib/file.js +52 -3
  61. package/dist/lib/flags.js +27 -9
  62. package/dist/lib/get-oxygen-deployment-data.test.js +4 -2
  63. package/dist/lib/graphql/admin/client.test.js +2 -2
  64. package/dist/lib/graphql/admin/get-oxygen-data.js +1 -0
  65. package/dist/lib/log.js +32 -14
  66. package/dist/lib/mini-oxygen/assets.js +118 -0
  67. package/dist/lib/mini-oxygen/common.js +2 -1
  68. package/dist/lib/mini-oxygen/index.js +7 -5
  69. package/dist/lib/mini-oxygen/mini-oxygen.test.js +214 -0
  70. package/dist/lib/mini-oxygen/node.js +19 -5
  71. package/dist/lib/mini-oxygen/workerd-inspector-logs.js +227 -0
  72. package/dist/lib/mini-oxygen/workerd-inspector-proxy.js +200 -0
  73. package/dist/lib/mini-oxygen/workerd-inspector.js +62 -235
  74. package/dist/lib/mini-oxygen/workerd.js +74 -50
  75. package/dist/lib/missing-routes.js +6 -3
  76. package/dist/lib/onboarding/common.js +40 -9
  77. package/dist/lib/onboarding/local.js +19 -11
  78. package/dist/lib/onboarding/remote.js +48 -28
  79. package/dist/lib/render-errors.js +2 -0
  80. package/dist/lib/request-events.js +65 -31
  81. package/dist/lib/setups/css/assets.js +1 -46
  82. package/dist/lib/setups/css/css-modules.js +3 -2
  83. package/dist/lib/setups/css/postcss.js +4 -2
  84. package/dist/lib/setups/css/tailwind.js +4 -2
  85. package/dist/lib/setups/css/vanilla-extract.js +3 -2
  86. package/dist/lib/setups/i18n/replacers.test.js +56 -38
  87. package/dist/lib/shell.js +1 -1
  88. package/dist/lib/template-diff.js +89 -0
  89. package/dist/lib/template-downloader.js +3 -2
  90. package/dist/lib/transpile/project.js +1 -1
  91. package/dist/virtual-routes/assets/debug-network.css +592 -0
  92. package/dist/virtual-routes/assets/favicon-dark.svg +20 -0
  93. package/dist/virtual-routes/components/FlameChartWrapper.jsx +8 -10
  94. package/dist/virtual-routes/components/IconClose.jsx +38 -0
  95. package/dist/virtual-routes/components/IconDiscard.jsx +44 -0
  96. package/dist/virtual-routes/components/RequestDetails.jsx +179 -0
  97. package/dist/virtual-routes/components/RequestTable.jsx +92 -0
  98. package/dist/virtual-routes/components/RequestWaterfall.jsx +151 -0
  99. package/dist/virtual-routes/lib/useDebugNetworkServer.jsx +176 -0
  100. package/dist/virtual-routes/routes/subrequest-profiler.jsx +243 -0
  101. package/oclif.manifest.json +134 -59
  102. package/package.json +18 -26
  103. package/dist/generator-templates/starter/app/routes/account_.activate.$id.$activationToken.tsx +0 -161
  104. package/dist/generator-templates/starter/app/routes/account_.recover.tsx +0 -129
  105. package/dist/generator-templates/starter/app/routes/account_.register.tsx +0 -207
  106. package/dist/generator-templates/starter/app/routes/account_.reset.$id.$resetToken.tsx +0 -136
  107. package/dist/virtual-routes/routes/debug-network.jsx +0 -289
  108. /package/dist/generator-templates/starter/app/{utils.ts → lib/variants.ts} +0 -0
@@ -3,6 +3,108 @@
3
3
  /* eslint-disable */
4
4
  import * as StorefrontAPI from '@shopify/hydrogen/storefront-api-types';
5
5
 
6
+ export type MoneyFragment = Pick<
7
+ StorefrontAPI.MoneyV2,
8
+ 'currencyCode' | 'amount'
9
+ >;
10
+
11
+ export type CartLineFragment = Pick<
12
+ StorefrontAPI.CartLine,
13
+ 'id' | 'quantity'
14
+ > & {
15
+ attributes: Array<Pick<StorefrontAPI.Attribute, 'key' | 'value'>>;
16
+ cost: {
17
+ totalAmount: Pick<StorefrontAPI.MoneyV2, 'currencyCode' | 'amount'>;
18
+ amountPerQuantity: Pick<StorefrontAPI.MoneyV2, 'currencyCode' | 'amount'>;
19
+ compareAtAmountPerQuantity?: StorefrontAPI.Maybe<
20
+ Pick<StorefrontAPI.MoneyV2, 'currencyCode' | 'amount'>
21
+ >;
22
+ };
23
+ merchandise: Pick<
24
+ StorefrontAPI.ProductVariant,
25
+ 'id' | 'availableForSale' | 'requiresShipping' | 'title'
26
+ > & {
27
+ compareAtPrice?: StorefrontAPI.Maybe<
28
+ Pick<StorefrontAPI.MoneyV2, 'currencyCode' | 'amount'>
29
+ >;
30
+ price: Pick<StorefrontAPI.MoneyV2, 'currencyCode' | 'amount'>;
31
+ image?: StorefrontAPI.Maybe<
32
+ Pick<StorefrontAPI.Image, 'id' | 'url' | 'altText' | 'width' | 'height'>
33
+ >;
34
+ product: Pick<StorefrontAPI.Product, 'handle' | 'title' | 'id'>;
35
+ selectedOptions: Array<
36
+ Pick<StorefrontAPI.SelectedOption, 'name' | 'value'>
37
+ >;
38
+ };
39
+ };
40
+
41
+ export type CartApiQueryFragment = Pick<
42
+ StorefrontAPI.Cart,
43
+ 'id' | 'checkoutUrl' | 'totalQuantity' | 'note'
44
+ > & {
45
+ buyerIdentity: Pick<
46
+ StorefrontAPI.CartBuyerIdentity,
47
+ 'countryCode' | 'email' | 'phone'
48
+ > & {
49
+ customer?: StorefrontAPI.Maybe<
50
+ Pick<
51
+ StorefrontAPI.Customer,
52
+ 'id' | 'email' | 'firstName' | 'lastName' | 'displayName'
53
+ >
54
+ >;
55
+ };
56
+ lines: {
57
+ nodes: Array<
58
+ Pick<StorefrontAPI.CartLine, 'id' | 'quantity'> & {
59
+ attributes: Array<Pick<StorefrontAPI.Attribute, 'key' | 'value'>>;
60
+ cost: {
61
+ totalAmount: Pick<StorefrontAPI.MoneyV2, 'currencyCode' | 'amount'>;
62
+ amountPerQuantity: Pick<
63
+ StorefrontAPI.MoneyV2,
64
+ 'currencyCode' | 'amount'
65
+ >;
66
+ compareAtAmountPerQuantity?: StorefrontAPI.Maybe<
67
+ Pick<StorefrontAPI.MoneyV2, 'currencyCode' | 'amount'>
68
+ >;
69
+ };
70
+ merchandise: Pick<
71
+ StorefrontAPI.ProductVariant,
72
+ 'id' | 'availableForSale' | 'requiresShipping' | 'title'
73
+ > & {
74
+ compareAtPrice?: StorefrontAPI.Maybe<
75
+ Pick<StorefrontAPI.MoneyV2, 'currencyCode' | 'amount'>
76
+ >;
77
+ price: Pick<StorefrontAPI.MoneyV2, 'currencyCode' | 'amount'>;
78
+ image?: StorefrontAPI.Maybe<
79
+ Pick<
80
+ StorefrontAPI.Image,
81
+ 'id' | 'url' | 'altText' | 'width' | 'height'
82
+ >
83
+ >;
84
+ product: Pick<StorefrontAPI.Product, 'handle' | 'title' | 'id'>;
85
+ selectedOptions: Array<
86
+ Pick<StorefrontAPI.SelectedOption, 'name' | 'value'>
87
+ >;
88
+ };
89
+ }
90
+ >;
91
+ };
92
+ cost: {
93
+ subtotalAmount: Pick<StorefrontAPI.MoneyV2, 'currencyCode' | 'amount'>;
94
+ totalAmount: Pick<StorefrontAPI.MoneyV2, 'currencyCode' | 'amount'>;
95
+ totalDutyAmount?: StorefrontAPI.Maybe<
96
+ Pick<StorefrontAPI.MoneyV2, 'currencyCode' | 'amount'>
97
+ >;
98
+ totalTaxAmount?: StorefrontAPI.Maybe<
99
+ Pick<StorefrontAPI.MoneyV2, 'currencyCode' | 'amount'>
100
+ >;
101
+ };
102
+ attributes: Array<Pick<StorefrontAPI.Attribute, 'key' | 'value'>>;
103
+ discountCodes: Array<
104
+ Pick<StorefrontAPI.CartDiscountCode, 'code' | 'applicable'>
105
+ >;
106
+ };
107
+
6
108
  export type MenuItemFragment = Pick<
7
109
  StorefrontAPI.MenuItem,
8
110
  'id' | 'resourceId' | 'tags' | 'title' | 'type' | 'url'
@@ -221,726 +323,6 @@ export type RecommendedProductsQuery = {
221
323
  };
222
324
  };
223
325
 
224
- export type CustomerAddressUpdateMutationVariables = StorefrontAPI.Exact<{
225
- address: StorefrontAPI.MailingAddressInput;
226
- customerAccessToken: StorefrontAPI.Scalars['String']['input'];
227
- id: StorefrontAPI.Scalars['ID']['input'];
228
- country?: StorefrontAPI.InputMaybe<StorefrontAPI.CountryCode>;
229
- language?: StorefrontAPI.InputMaybe<StorefrontAPI.LanguageCode>;
230
- }>;
231
-
232
- export type CustomerAddressUpdateMutation = {
233
- customerAddressUpdate?: StorefrontAPI.Maybe<{
234
- customerAddress?: StorefrontAPI.Maybe<
235
- Pick<StorefrontAPI.MailingAddress, 'id'>
236
- >;
237
- customerUserErrors: Array<
238
- Pick<StorefrontAPI.CustomerUserError, 'code' | 'field' | 'message'>
239
- >;
240
- }>;
241
- };
242
-
243
- export type CustomerAddressDeleteMutationVariables = StorefrontAPI.Exact<{
244
- customerAccessToken: StorefrontAPI.Scalars['String']['input'];
245
- id: StorefrontAPI.Scalars['ID']['input'];
246
- country?: StorefrontAPI.InputMaybe<StorefrontAPI.CountryCode>;
247
- language?: StorefrontAPI.InputMaybe<StorefrontAPI.LanguageCode>;
248
- }>;
249
-
250
- export type CustomerAddressDeleteMutation = {
251
- customerAddressDelete?: StorefrontAPI.Maybe<
252
- Pick<
253
- StorefrontAPI.CustomerAddressDeletePayload,
254
- 'deletedCustomerAddressId'
255
- > & {
256
- customerUserErrors: Array<
257
- Pick<StorefrontAPI.CustomerUserError, 'code' | 'field' | 'message'>
258
- >;
259
- }
260
- >;
261
- };
262
-
263
- export type CustomerDefaultAddressUpdateMutationVariables =
264
- StorefrontAPI.Exact<{
265
- addressId: StorefrontAPI.Scalars['ID']['input'];
266
- customerAccessToken: StorefrontAPI.Scalars['String']['input'];
267
- country?: StorefrontAPI.InputMaybe<StorefrontAPI.CountryCode>;
268
- language?: StorefrontAPI.InputMaybe<StorefrontAPI.LanguageCode>;
269
- }>;
270
-
271
- export type CustomerDefaultAddressUpdateMutation = {
272
- customerDefaultAddressUpdate?: StorefrontAPI.Maybe<{
273
- customer?: StorefrontAPI.Maybe<{
274
- defaultAddress?: StorefrontAPI.Maybe<
275
- Pick<StorefrontAPI.MailingAddress, 'id'>
276
- >;
277
- }>;
278
- customerUserErrors: Array<
279
- Pick<StorefrontAPI.CustomerUserError, 'code' | 'field' | 'message'>
280
- >;
281
- }>;
282
- };
283
-
284
- export type CustomerAddressCreateMutationVariables = StorefrontAPI.Exact<{
285
- address: StorefrontAPI.MailingAddressInput;
286
- customerAccessToken: StorefrontAPI.Scalars['String']['input'];
287
- country?: StorefrontAPI.InputMaybe<StorefrontAPI.CountryCode>;
288
- language?: StorefrontAPI.InputMaybe<StorefrontAPI.LanguageCode>;
289
- }>;
290
-
291
- export type CustomerAddressCreateMutation = {
292
- customerAddressCreate?: StorefrontAPI.Maybe<{
293
- customerAddress?: StorefrontAPI.Maybe<
294
- Pick<StorefrontAPI.MailingAddress, 'id'>
295
- >;
296
- customerUserErrors: Array<
297
- Pick<StorefrontAPI.CustomerUserError, 'code' | 'field' | 'message'>
298
- >;
299
- }>;
300
- };
301
-
302
- export type OrderMoneyFragment = Pick<
303
- StorefrontAPI.MoneyV2,
304
- 'amount' | 'currencyCode'
305
- >;
306
-
307
- export type AddressFullFragment = Pick<
308
- StorefrontAPI.MailingAddress,
309
- | 'address1'
310
- | 'address2'
311
- | 'city'
312
- | 'company'
313
- | 'country'
314
- | 'countryCodeV2'
315
- | 'firstName'
316
- | 'formatted'
317
- | 'id'
318
- | 'lastName'
319
- | 'name'
320
- | 'phone'
321
- | 'province'
322
- | 'provinceCode'
323
- | 'zip'
324
- >;
325
-
326
- export type DiscountApplicationFragment = {
327
- value:
328
- | ({__typename: 'MoneyV2'} & Pick<
329
- StorefrontAPI.MoneyV2,
330
- 'amount' | 'currencyCode'
331
- >)
332
- | ({__typename: 'PricingPercentageValue'} & Pick<
333
- StorefrontAPI.PricingPercentageValue,
334
- 'percentage'
335
- >);
336
- };
337
-
338
- export type OrderLineProductVariantFragment = Pick<
339
- StorefrontAPI.ProductVariant,
340
- 'id' | 'sku' | 'title'
341
- > & {
342
- image?: StorefrontAPI.Maybe<
343
- Pick<StorefrontAPI.Image, 'altText' | 'height' | 'url' | 'id' | 'width'>
344
- >;
345
- price: Pick<StorefrontAPI.MoneyV2, 'amount' | 'currencyCode'>;
346
- product: Pick<StorefrontAPI.Product, 'handle'>;
347
- };
348
-
349
- export type OrderLineItemFullFragment = Pick<
350
- StorefrontAPI.OrderLineItem,
351
- 'title' | 'quantity'
352
- > & {
353
- discountAllocations: Array<{
354
- allocatedAmount: Pick<StorefrontAPI.MoneyV2, 'amount' | 'currencyCode'>;
355
- discountApplication: {
356
- value:
357
- | ({__typename: 'MoneyV2'} & Pick<
358
- StorefrontAPI.MoneyV2,
359
- 'amount' | 'currencyCode'
360
- >)
361
- | ({__typename: 'PricingPercentageValue'} & Pick<
362
- StorefrontAPI.PricingPercentageValue,
363
- 'percentage'
364
- >);
365
- };
366
- }>;
367
- originalTotalPrice: Pick<StorefrontAPI.MoneyV2, 'amount' | 'currencyCode'>;
368
- discountedTotalPrice: Pick<StorefrontAPI.MoneyV2, 'amount' | 'currencyCode'>;
369
- variant?: StorefrontAPI.Maybe<
370
- Pick<StorefrontAPI.ProductVariant, 'id' | 'sku' | 'title'> & {
371
- image?: StorefrontAPI.Maybe<
372
- Pick<StorefrontAPI.Image, 'altText' | 'height' | 'url' | 'id' | 'width'>
373
- >;
374
- price: Pick<StorefrontAPI.MoneyV2, 'amount' | 'currencyCode'>;
375
- product: Pick<StorefrontAPI.Product, 'handle'>;
376
- }
377
- >;
378
- };
379
-
380
- export type OrderFragment = Pick<
381
- StorefrontAPI.Order,
382
- | 'id'
383
- | 'name'
384
- | 'orderNumber'
385
- | 'statusUrl'
386
- | 'processedAt'
387
- | 'fulfillmentStatus'
388
- > & {
389
- totalTaxV2?: StorefrontAPI.Maybe<
390
- Pick<StorefrontAPI.MoneyV2, 'amount' | 'currencyCode'>
391
- >;
392
- totalPriceV2: Pick<StorefrontAPI.MoneyV2, 'amount' | 'currencyCode'>;
393
- subtotalPriceV2?: StorefrontAPI.Maybe<
394
- Pick<StorefrontAPI.MoneyV2, 'amount' | 'currencyCode'>
395
- >;
396
- shippingAddress?: StorefrontAPI.Maybe<
397
- Pick<
398
- StorefrontAPI.MailingAddress,
399
- | 'address1'
400
- | 'address2'
401
- | 'city'
402
- | 'company'
403
- | 'country'
404
- | 'countryCodeV2'
405
- | 'firstName'
406
- | 'formatted'
407
- | 'id'
408
- | 'lastName'
409
- | 'name'
410
- | 'phone'
411
- | 'province'
412
- | 'provinceCode'
413
- | 'zip'
414
- >
415
- >;
416
- discountApplications: {
417
- nodes: Array<{
418
- value:
419
- | ({__typename: 'MoneyV2'} & Pick<
420
- StorefrontAPI.MoneyV2,
421
- 'amount' | 'currencyCode'
422
- >)
423
- | ({__typename: 'PricingPercentageValue'} & Pick<
424
- StorefrontAPI.PricingPercentageValue,
425
- 'percentage'
426
- >);
427
- }>;
428
- };
429
- lineItems: {
430
- nodes: Array<
431
- Pick<StorefrontAPI.OrderLineItem, 'title' | 'quantity'> & {
432
- discountAllocations: Array<{
433
- allocatedAmount: Pick<
434
- StorefrontAPI.MoneyV2,
435
- 'amount' | 'currencyCode'
436
- >;
437
- discountApplication: {
438
- value:
439
- | ({__typename: 'MoneyV2'} & Pick<
440
- StorefrontAPI.MoneyV2,
441
- 'amount' | 'currencyCode'
442
- >)
443
- | ({__typename: 'PricingPercentageValue'} & Pick<
444
- StorefrontAPI.PricingPercentageValue,
445
- 'percentage'
446
- >);
447
- };
448
- }>;
449
- originalTotalPrice: Pick<
450
- StorefrontAPI.MoneyV2,
451
- 'amount' | 'currencyCode'
452
- >;
453
- discountedTotalPrice: Pick<
454
- StorefrontAPI.MoneyV2,
455
- 'amount' | 'currencyCode'
456
- >;
457
- variant?: StorefrontAPI.Maybe<
458
- Pick<StorefrontAPI.ProductVariant, 'id' | 'sku' | 'title'> & {
459
- image?: StorefrontAPI.Maybe<
460
- Pick<
461
- StorefrontAPI.Image,
462
- 'altText' | 'height' | 'url' | 'id' | 'width'
463
- >
464
- >;
465
- price: Pick<StorefrontAPI.MoneyV2, 'amount' | 'currencyCode'>;
466
- product: Pick<StorefrontAPI.Product, 'handle'>;
467
- }
468
- >;
469
- }
470
- >;
471
- };
472
- };
473
-
474
- export type OrderQueryVariables = StorefrontAPI.Exact<{
475
- country?: StorefrontAPI.InputMaybe<StorefrontAPI.CountryCode>;
476
- language?: StorefrontAPI.InputMaybe<StorefrontAPI.LanguageCode>;
477
- orderId: StorefrontAPI.Scalars['ID']['input'];
478
- }>;
479
-
480
- export type OrderQuery = {
481
- order?: StorefrontAPI.Maybe<
482
- Pick<
483
- StorefrontAPI.Order,
484
- | 'id'
485
- | 'name'
486
- | 'orderNumber'
487
- | 'statusUrl'
488
- | 'processedAt'
489
- | 'fulfillmentStatus'
490
- > & {
491
- totalTaxV2?: StorefrontAPI.Maybe<
492
- Pick<StorefrontAPI.MoneyV2, 'amount' | 'currencyCode'>
493
- >;
494
- totalPriceV2: Pick<StorefrontAPI.MoneyV2, 'amount' | 'currencyCode'>;
495
- subtotalPriceV2?: StorefrontAPI.Maybe<
496
- Pick<StorefrontAPI.MoneyV2, 'amount' | 'currencyCode'>
497
- >;
498
- shippingAddress?: StorefrontAPI.Maybe<
499
- Pick<
500
- StorefrontAPI.MailingAddress,
501
- | 'address1'
502
- | 'address2'
503
- | 'city'
504
- | 'company'
505
- | 'country'
506
- | 'countryCodeV2'
507
- | 'firstName'
508
- | 'formatted'
509
- | 'id'
510
- | 'lastName'
511
- | 'name'
512
- | 'phone'
513
- | 'province'
514
- | 'provinceCode'
515
- | 'zip'
516
- >
517
- >;
518
- discountApplications: {
519
- nodes: Array<{
520
- value:
521
- | ({__typename: 'MoneyV2'} & Pick<
522
- StorefrontAPI.MoneyV2,
523
- 'amount' | 'currencyCode'
524
- >)
525
- | ({__typename: 'PricingPercentageValue'} & Pick<
526
- StorefrontAPI.PricingPercentageValue,
527
- 'percentage'
528
- >);
529
- }>;
530
- };
531
- lineItems: {
532
- nodes: Array<
533
- Pick<StorefrontAPI.OrderLineItem, 'title' | 'quantity'> & {
534
- discountAllocations: Array<{
535
- allocatedAmount: Pick<
536
- StorefrontAPI.MoneyV2,
537
- 'amount' | 'currencyCode'
538
- >;
539
- discountApplication: {
540
- value:
541
- | ({__typename: 'MoneyV2'} & Pick<
542
- StorefrontAPI.MoneyV2,
543
- 'amount' | 'currencyCode'
544
- >)
545
- | ({__typename: 'PricingPercentageValue'} & Pick<
546
- StorefrontAPI.PricingPercentageValue,
547
- 'percentage'
548
- >);
549
- };
550
- }>;
551
- originalTotalPrice: Pick<
552
- StorefrontAPI.MoneyV2,
553
- 'amount' | 'currencyCode'
554
- >;
555
- discountedTotalPrice: Pick<
556
- StorefrontAPI.MoneyV2,
557
- 'amount' | 'currencyCode'
558
- >;
559
- variant?: StorefrontAPI.Maybe<
560
- Pick<StorefrontAPI.ProductVariant, 'id' | 'sku' | 'title'> & {
561
- image?: StorefrontAPI.Maybe<
562
- Pick<
563
- StorefrontAPI.Image,
564
- 'altText' | 'height' | 'url' | 'id' | 'width'
565
- >
566
- >;
567
- price: Pick<StorefrontAPI.MoneyV2, 'amount' | 'currencyCode'>;
568
- product: Pick<StorefrontAPI.Product, 'handle'>;
569
- }
570
- >;
571
- }
572
- >;
573
- };
574
- }
575
- >;
576
- };
577
-
578
- export type OrderItemFragment = Pick<
579
- StorefrontAPI.Order,
580
- | 'financialStatus'
581
- | 'fulfillmentStatus'
582
- | 'id'
583
- | 'orderNumber'
584
- | 'customerUrl'
585
- | 'statusUrl'
586
- | 'processedAt'
587
- > & {
588
- currentTotalPrice: Pick<StorefrontAPI.MoneyV2, 'amount' | 'currencyCode'>;
589
- lineItems: {
590
- nodes: Array<
591
- Pick<StorefrontAPI.OrderLineItem, 'title'> & {
592
- variant?: StorefrontAPI.Maybe<{
593
- image?: StorefrontAPI.Maybe<
594
- Pick<StorefrontAPI.Image, 'url' | 'altText' | 'height' | 'width'>
595
- >;
596
- }>;
597
- }
598
- >;
599
- };
600
- };
601
-
602
- export type CustomerOrdersFragment = Pick<
603
- StorefrontAPI.Customer,
604
- 'numberOfOrders'
605
- > & {
606
- orders: {
607
- nodes: Array<
608
- Pick<
609
- StorefrontAPI.Order,
610
- | 'financialStatus'
611
- | 'fulfillmentStatus'
612
- | 'id'
613
- | 'orderNumber'
614
- | 'customerUrl'
615
- | 'statusUrl'
616
- | 'processedAt'
617
- > & {
618
- currentTotalPrice: Pick<
619
- StorefrontAPI.MoneyV2,
620
- 'amount' | 'currencyCode'
621
- >;
622
- lineItems: {
623
- nodes: Array<
624
- Pick<StorefrontAPI.OrderLineItem, 'title'> & {
625
- variant?: StorefrontAPI.Maybe<{
626
- image?: StorefrontAPI.Maybe<
627
- Pick<
628
- StorefrontAPI.Image,
629
- 'url' | 'altText' | 'height' | 'width'
630
- >
631
- >;
632
- }>;
633
- }
634
- >;
635
- };
636
- }
637
- >;
638
- pageInfo: Pick<
639
- StorefrontAPI.PageInfo,
640
- 'hasPreviousPage' | 'hasNextPage' | 'endCursor' | 'startCursor'
641
- >;
642
- };
643
- };
644
-
645
- export type CustomerOrdersQueryVariables = StorefrontAPI.Exact<{
646
- country?: StorefrontAPI.InputMaybe<StorefrontAPI.CountryCode>;
647
- customerAccessToken: StorefrontAPI.Scalars['String']['input'];
648
- endCursor?: StorefrontAPI.InputMaybe<
649
- StorefrontAPI.Scalars['String']['input']
650
- >;
651
- first?: StorefrontAPI.InputMaybe<StorefrontAPI.Scalars['Int']['input']>;
652
- language?: StorefrontAPI.InputMaybe<StorefrontAPI.LanguageCode>;
653
- last?: StorefrontAPI.InputMaybe<StorefrontAPI.Scalars['Int']['input']>;
654
- startCursor?: StorefrontAPI.InputMaybe<
655
- StorefrontAPI.Scalars['String']['input']
656
- >;
657
- }>;
658
-
659
- export type CustomerOrdersQuery = {
660
- customer?: StorefrontAPI.Maybe<
661
- Pick<StorefrontAPI.Customer, 'numberOfOrders'> & {
662
- orders: {
663
- nodes: Array<
664
- Pick<
665
- StorefrontAPI.Order,
666
- | 'financialStatus'
667
- | 'fulfillmentStatus'
668
- | 'id'
669
- | 'orderNumber'
670
- | 'customerUrl'
671
- | 'statusUrl'
672
- | 'processedAt'
673
- > & {
674
- currentTotalPrice: Pick<
675
- StorefrontAPI.MoneyV2,
676
- 'amount' | 'currencyCode'
677
- >;
678
- lineItems: {
679
- nodes: Array<
680
- Pick<StorefrontAPI.OrderLineItem, 'title'> & {
681
- variant?: StorefrontAPI.Maybe<{
682
- image?: StorefrontAPI.Maybe<
683
- Pick<
684
- StorefrontAPI.Image,
685
- 'url' | 'altText' | 'height' | 'width'
686
- >
687
- >;
688
- }>;
689
- }
690
- >;
691
- };
692
- }
693
- >;
694
- pageInfo: Pick<
695
- StorefrontAPI.PageInfo,
696
- 'hasPreviousPage' | 'hasNextPage' | 'endCursor' | 'startCursor'
697
- >;
698
- };
699
- }
700
- >;
701
- };
702
-
703
- export type CustomerUpdateMutationVariables = StorefrontAPI.Exact<{
704
- customerAccessToken: StorefrontAPI.Scalars['String']['input'];
705
- customer: StorefrontAPI.CustomerUpdateInput;
706
- country?: StorefrontAPI.InputMaybe<StorefrontAPI.CountryCode>;
707
- language?: StorefrontAPI.InputMaybe<StorefrontAPI.LanguageCode>;
708
- }>;
709
-
710
- export type CustomerUpdateMutation = {
711
- customerUpdate?: StorefrontAPI.Maybe<{
712
- customer?: StorefrontAPI.Maybe<
713
- Pick<
714
- StorefrontAPI.Customer,
715
- 'acceptsMarketing' | 'email' | 'firstName' | 'id' | 'lastName' | 'phone'
716
- >
717
- >;
718
- customerAccessToken?: StorefrontAPI.Maybe<
719
- Pick<StorefrontAPI.CustomerAccessToken, 'accessToken' | 'expiresAt'>
720
- >;
721
- customerUserErrors: Array<
722
- Pick<StorefrontAPI.CustomerUserError, 'code' | 'field' | 'message'>
723
- >;
724
- }>;
725
- };
726
-
727
- export type CustomerFragment = Pick<
728
- StorefrontAPI.Customer,
729
- | 'acceptsMarketing'
730
- | 'email'
731
- | 'firstName'
732
- | 'lastName'
733
- | 'numberOfOrders'
734
- | 'phone'
735
- > & {
736
- addresses: {
737
- nodes: Array<
738
- Pick<
739
- StorefrontAPI.MailingAddress,
740
- | 'id'
741
- | 'formatted'
742
- | 'firstName'
743
- | 'lastName'
744
- | 'company'
745
- | 'address1'
746
- | 'address2'
747
- | 'country'
748
- | 'province'
749
- | 'city'
750
- | 'zip'
751
- | 'phone'
752
- >
753
- >;
754
- };
755
- defaultAddress?: StorefrontAPI.Maybe<
756
- Pick<
757
- StorefrontAPI.MailingAddress,
758
- | 'id'
759
- | 'formatted'
760
- | 'firstName'
761
- | 'lastName'
762
- | 'company'
763
- | 'address1'
764
- | 'address2'
765
- | 'country'
766
- | 'province'
767
- | 'city'
768
- | 'zip'
769
- | 'phone'
770
- >
771
- >;
772
- };
773
-
774
- export type AddressFragment = Pick<
775
- StorefrontAPI.MailingAddress,
776
- | 'id'
777
- | 'formatted'
778
- | 'firstName'
779
- | 'lastName'
780
- | 'company'
781
- | 'address1'
782
- | 'address2'
783
- | 'country'
784
- | 'province'
785
- | 'city'
786
- | 'zip'
787
- | 'phone'
788
- >;
789
-
790
- export type CustomerQueryVariables = StorefrontAPI.Exact<{
791
- customerAccessToken: StorefrontAPI.Scalars['String']['input'];
792
- country?: StorefrontAPI.InputMaybe<StorefrontAPI.CountryCode>;
793
- language?: StorefrontAPI.InputMaybe<StorefrontAPI.LanguageCode>;
794
- }>;
795
-
796
- export type CustomerQuery = {
797
- customer?: StorefrontAPI.Maybe<
798
- Pick<
799
- StorefrontAPI.Customer,
800
- | 'acceptsMarketing'
801
- | 'email'
802
- | 'firstName'
803
- | 'lastName'
804
- | 'numberOfOrders'
805
- | 'phone'
806
- > & {
807
- addresses: {
808
- nodes: Array<
809
- Pick<
810
- StorefrontAPI.MailingAddress,
811
- | 'id'
812
- | 'formatted'
813
- | 'firstName'
814
- | 'lastName'
815
- | 'company'
816
- | 'address1'
817
- | 'address2'
818
- | 'country'
819
- | 'province'
820
- | 'city'
821
- | 'zip'
822
- | 'phone'
823
- >
824
- >;
825
- };
826
- defaultAddress?: StorefrontAPI.Maybe<
827
- Pick<
828
- StorefrontAPI.MailingAddress,
829
- | 'id'
830
- | 'formatted'
831
- | 'firstName'
832
- | 'lastName'
833
- | 'company'
834
- | 'address1'
835
- | 'address2'
836
- | 'country'
837
- | 'province'
838
- | 'city'
839
- | 'zip'
840
- | 'phone'
841
- >
842
- >;
843
- }
844
- >;
845
- };
846
-
847
- export type CustomerActivateMutationVariables = StorefrontAPI.Exact<{
848
- id: StorefrontAPI.Scalars['ID']['input'];
849
- input: StorefrontAPI.CustomerActivateInput;
850
- country?: StorefrontAPI.InputMaybe<StorefrontAPI.CountryCode>;
851
- language?: StorefrontAPI.InputMaybe<StorefrontAPI.LanguageCode>;
852
- }>;
853
-
854
- export type CustomerActivateMutation = {
855
- customerActivate?: StorefrontAPI.Maybe<{
856
- customerAccessToken?: StorefrontAPI.Maybe<
857
- Pick<StorefrontAPI.CustomerAccessToken, 'accessToken' | 'expiresAt'>
858
- >;
859
- customerUserErrors: Array<
860
- Pick<StorefrontAPI.CustomerUserError, 'code' | 'field' | 'message'>
861
- >;
862
- }>;
863
- };
864
-
865
- export type LoginMutationVariables = StorefrontAPI.Exact<{
866
- input: StorefrontAPI.CustomerAccessTokenCreateInput;
867
- }>;
868
-
869
- export type LoginMutation = {
870
- customerAccessTokenCreate?: StorefrontAPI.Maybe<{
871
- customerUserErrors: Array<
872
- Pick<StorefrontAPI.CustomerUserError, 'code' | 'field' | 'message'>
873
- >;
874
- customerAccessToken?: StorefrontAPI.Maybe<
875
- Pick<StorefrontAPI.CustomerAccessToken, 'accessToken' | 'expiresAt'>
876
- >;
877
- }>;
878
- };
879
-
880
- export type CustomerRecoverMutationVariables = StorefrontAPI.Exact<{
881
- email: StorefrontAPI.Scalars['String']['input'];
882
- country?: StorefrontAPI.InputMaybe<StorefrontAPI.CountryCode>;
883
- language?: StorefrontAPI.InputMaybe<StorefrontAPI.LanguageCode>;
884
- }>;
885
-
886
- export type CustomerRecoverMutation = {
887
- customerRecover?: StorefrontAPI.Maybe<{
888
- customerUserErrors: Array<
889
- Pick<StorefrontAPI.CustomerUserError, 'code' | 'field' | 'message'>
890
- >;
891
- }>;
892
- };
893
-
894
- export type CustomerCreateMutationVariables = StorefrontAPI.Exact<{
895
- input: StorefrontAPI.CustomerCreateInput;
896
- country?: StorefrontAPI.InputMaybe<StorefrontAPI.CountryCode>;
897
- language?: StorefrontAPI.InputMaybe<StorefrontAPI.LanguageCode>;
898
- }>;
899
-
900
- export type CustomerCreateMutation = {
901
- customerCreate?: StorefrontAPI.Maybe<{
902
- customer?: StorefrontAPI.Maybe<Pick<StorefrontAPI.Customer, 'id'>>;
903
- customerUserErrors: Array<
904
- Pick<StorefrontAPI.CustomerUserError, 'code' | 'field' | 'message'>
905
- >;
906
- }>;
907
- };
908
-
909
- export type RegisterLoginMutationVariables = StorefrontAPI.Exact<{
910
- input: StorefrontAPI.CustomerAccessTokenCreateInput;
911
- country?: StorefrontAPI.InputMaybe<StorefrontAPI.CountryCode>;
912
- language?: StorefrontAPI.InputMaybe<StorefrontAPI.LanguageCode>;
913
- }>;
914
-
915
- export type RegisterLoginMutation = {
916
- customerAccessTokenCreate?: StorefrontAPI.Maybe<{
917
- customerUserErrors: Array<
918
- Pick<StorefrontAPI.CustomerUserError, 'code' | 'field' | 'message'>
919
- >;
920
- customerAccessToken?: StorefrontAPI.Maybe<
921
- Pick<StorefrontAPI.CustomerAccessToken, 'accessToken' | 'expiresAt'>
922
- >;
923
- }>;
924
- };
925
-
926
- export type CustomerResetMutationVariables = StorefrontAPI.Exact<{
927
- id: StorefrontAPI.Scalars['ID']['input'];
928
- input: StorefrontAPI.CustomerResetInput;
929
- country?: StorefrontAPI.InputMaybe<StorefrontAPI.CountryCode>;
930
- language?: StorefrontAPI.InputMaybe<StorefrontAPI.LanguageCode>;
931
- }>;
932
-
933
- export type CustomerResetMutation = {
934
- customerReset?: StorefrontAPI.Maybe<{
935
- customerAccessToken?: StorefrontAPI.Maybe<
936
- Pick<StorefrontAPI.CustomerAccessToken, 'accessToken' | 'expiresAt'>
937
- >;
938
- customerUserErrors: Array<
939
- Pick<StorefrontAPI.CustomerUserError, 'code' | 'field' | 'message'>
940
- >;
941
- }>;
942
- };
943
-
944
326
  export type PredictiveArticleFragment = {__typename: 'Article'} & Pick<
945
327
  StorefrontAPI.Article,
946
328
  'id' | 'title' | 'handle' | 'trackingParameters'
@@ -1688,108 +1070,6 @@ export type SearchQuery = {
1688
1070
  };
1689
1071
  };
1690
1072
 
1691
- export type MoneyFragment = Pick<
1692
- StorefrontAPI.MoneyV2,
1693
- 'currencyCode' | 'amount'
1694
- >;
1695
-
1696
- export type CartLineFragment = Pick<
1697
- StorefrontAPI.CartLine,
1698
- 'id' | 'quantity'
1699
- > & {
1700
- attributes: Array<Pick<StorefrontAPI.Attribute, 'key' | 'value'>>;
1701
- cost: {
1702
- totalAmount: Pick<StorefrontAPI.MoneyV2, 'currencyCode' | 'amount'>;
1703
- amountPerQuantity: Pick<StorefrontAPI.MoneyV2, 'currencyCode' | 'amount'>;
1704
- compareAtAmountPerQuantity?: StorefrontAPI.Maybe<
1705
- Pick<StorefrontAPI.MoneyV2, 'currencyCode' | 'amount'>
1706
- >;
1707
- };
1708
- merchandise: Pick<
1709
- StorefrontAPI.ProductVariant,
1710
- 'id' | 'availableForSale' | 'requiresShipping' | 'title'
1711
- > & {
1712
- compareAtPrice?: StorefrontAPI.Maybe<
1713
- Pick<StorefrontAPI.MoneyV2, 'currencyCode' | 'amount'>
1714
- >;
1715
- price: Pick<StorefrontAPI.MoneyV2, 'currencyCode' | 'amount'>;
1716
- image?: StorefrontAPI.Maybe<
1717
- Pick<StorefrontAPI.Image, 'id' | 'url' | 'altText' | 'width' | 'height'>
1718
- >;
1719
- product: Pick<StorefrontAPI.Product, 'handle' | 'title' | 'id'>;
1720
- selectedOptions: Array<
1721
- Pick<StorefrontAPI.SelectedOption, 'name' | 'value'>
1722
- >;
1723
- };
1724
- };
1725
-
1726
- export type CartApiQueryFragment = Pick<
1727
- StorefrontAPI.Cart,
1728
- 'id' | 'checkoutUrl' | 'totalQuantity' | 'note'
1729
- > & {
1730
- buyerIdentity: Pick<
1731
- StorefrontAPI.CartBuyerIdentity,
1732
- 'countryCode' | 'email' | 'phone'
1733
- > & {
1734
- customer?: StorefrontAPI.Maybe<
1735
- Pick<
1736
- StorefrontAPI.Customer,
1737
- 'id' | 'email' | 'firstName' | 'lastName' | 'displayName'
1738
- >
1739
- >;
1740
- };
1741
- lines: {
1742
- nodes: Array<
1743
- Pick<StorefrontAPI.CartLine, 'id' | 'quantity'> & {
1744
- attributes: Array<Pick<StorefrontAPI.Attribute, 'key' | 'value'>>;
1745
- cost: {
1746
- totalAmount: Pick<StorefrontAPI.MoneyV2, 'currencyCode' | 'amount'>;
1747
- amountPerQuantity: Pick<
1748
- StorefrontAPI.MoneyV2,
1749
- 'currencyCode' | 'amount'
1750
- >;
1751
- compareAtAmountPerQuantity?: StorefrontAPI.Maybe<
1752
- Pick<StorefrontAPI.MoneyV2, 'currencyCode' | 'amount'>
1753
- >;
1754
- };
1755
- merchandise: Pick<
1756
- StorefrontAPI.ProductVariant,
1757
- 'id' | 'availableForSale' | 'requiresShipping' | 'title'
1758
- > & {
1759
- compareAtPrice?: StorefrontAPI.Maybe<
1760
- Pick<StorefrontAPI.MoneyV2, 'currencyCode' | 'amount'>
1761
- >;
1762
- price: Pick<StorefrontAPI.MoneyV2, 'currencyCode' | 'amount'>;
1763
- image?: StorefrontAPI.Maybe<
1764
- Pick<
1765
- StorefrontAPI.Image,
1766
- 'id' | 'url' | 'altText' | 'width' | 'height'
1767
- >
1768
- >;
1769
- product: Pick<StorefrontAPI.Product, 'handle' | 'title' | 'id'>;
1770
- selectedOptions: Array<
1771
- Pick<StorefrontAPI.SelectedOption, 'name' | 'value'>
1772
- >;
1773
- };
1774
- }
1775
- >;
1776
- };
1777
- cost: {
1778
- subtotalAmount: Pick<StorefrontAPI.MoneyV2, 'currencyCode' | 'amount'>;
1779
- totalAmount: Pick<StorefrontAPI.MoneyV2, 'currencyCode' | 'amount'>;
1780
- totalDutyAmount?: StorefrontAPI.Maybe<
1781
- Pick<StorefrontAPI.MoneyV2, 'currencyCode' | 'amount'>
1782
- >;
1783
- totalTaxAmount?: StorefrontAPI.Maybe<
1784
- Pick<StorefrontAPI.MoneyV2, 'currencyCode' | 'amount'>
1785
- >;
1786
- };
1787
- attributes: Array<Pick<StorefrontAPI.Attribute, 'key' | 'value'>>;
1788
- discountCodes: Array<
1789
- Pick<StorefrontAPI.CartDiscountCode, 'code' | 'applicable'>
1790
- >;
1791
- };
1792
-
1793
1073
  interface GeneratedQueryTypes {
1794
1074
  '#graphql\n fragment Shop on Shop {\n id\n name\n description\n primaryDomain {\n url\n }\n brand {\n logo {\n image {\n url\n }\n }\n }\n }\n query Header(\n $country: CountryCode\n $headerMenuHandle: String!\n $language: LanguageCode\n ) @inContext(language: $language, country: $country) {\n shop {\n ...Shop\n }\n menu(handle: $headerMenuHandle) {\n ...Menu\n }\n }\n #graphql\n fragment MenuItem on MenuItem {\n id\n resourceId\n tags\n title\n type\n url\n }\n fragment ChildMenuItem on MenuItem {\n ...MenuItem\n }\n fragment ParentMenuItem on MenuItem {\n ...MenuItem\n items {\n ...ChildMenuItem\n }\n }\n fragment Menu on Menu {\n id\n items {\n ...ParentMenuItem\n }\n }\n\n': {
1795
1075
  return: HeaderQuery;
@@ -1815,18 +1095,6 @@ interface GeneratedQueryTypes {
1815
1095
  return: RecommendedProductsQuery;
1816
1096
  variables: RecommendedProductsQueryVariables;
1817
1097
  };
1818
- '#graphql\n fragment OrderMoney on MoneyV2 {\n amount\n currencyCode\n }\n fragment AddressFull on MailingAddress {\n address1\n address2\n city\n company\n country\n countryCodeV2\n firstName\n formatted\n id\n lastName\n name\n phone\n province\n provinceCode\n zip\n }\n fragment DiscountApplication on DiscountApplication {\n value {\n __typename\n ... on MoneyV2 {\n ...OrderMoney\n }\n ... on PricingPercentageValue {\n percentage\n }\n }\n }\n fragment OrderLineProductVariant on ProductVariant {\n id\n image {\n altText\n height\n url\n id\n width\n }\n price {\n ...OrderMoney\n }\n product {\n handle\n }\n sku\n title\n }\n fragment OrderLineItemFull on OrderLineItem {\n title\n quantity\n discountAllocations {\n allocatedAmount {\n ...OrderMoney\n }\n discountApplication {\n ...DiscountApplication\n }\n }\n originalTotalPrice {\n ...OrderMoney\n }\n discountedTotalPrice {\n ...OrderMoney\n }\n variant {\n ...OrderLineProductVariant\n }\n }\n fragment Order on Order {\n id\n name\n orderNumber\n statusUrl\n processedAt\n fulfillmentStatus\n totalTaxV2 {\n ...OrderMoney\n }\n totalPriceV2 {\n ...OrderMoney\n }\n subtotalPriceV2 {\n ...OrderMoney\n }\n shippingAddress {\n ...AddressFull\n }\n discountApplications(first: 100) {\n nodes {\n ...DiscountApplication\n }\n }\n lineItems(first: 100) {\n nodes {\n ...OrderLineItemFull\n }\n }\n }\n query Order(\n $country: CountryCode\n $language: LanguageCode\n $orderId: ID!\n ) @inContext(country: $country, language: $language) {\n order: node(id: $orderId) {\n ... on Order {\n ...Order\n }\n }\n }\n': {
1819
- return: OrderQuery;
1820
- variables: OrderQueryVariables;
1821
- };
1822
- '#graphql\n #graphql\n fragment Customer on Customer {\n acceptsMarketing\n addresses(first: 6) {\n nodes {\n ...Address\n }\n }\n defaultAddress {\n ...Address\n }\n email\n firstName\n lastName\n numberOfOrders\n phone\n }\n fragment Address on MailingAddress {\n id\n formatted\n firstName\n lastName\n company\n address1\n address2\n country\n province\n city\n zip\n phone\n }\n\n query CustomerOrders(\n $country: CountryCode\n $customerAccessToken: String!\n $endCursor: String\n $first: Int\n $language: LanguageCode\n $last: Int\n $startCursor: String\n ) @inContext(country: $country, language: $language) {\n customer(customerAccessToken: $customerAccessToken) {\n ...CustomerOrders\n }\n }\n': {
1823
- return: CustomerOrdersQuery;
1824
- variables: CustomerOrdersQueryVariables;
1825
- };
1826
- '#graphql\n query Customer(\n $customerAccessToken: String!\n $country: CountryCode\n $language: LanguageCode\n ) @inContext(country: $country, language: $language) {\n customer(customerAccessToken: $customerAccessToken) {\n ...Customer\n }\n }\n #graphql\n fragment Customer on Customer {\n acceptsMarketing\n addresses(first: 6) {\n nodes {\n ...Address\n }\n }\n defaultAddress {\n ...Address\n }\n email\n firstName\n lastName\n numberOfOrders\n phone\n }\n fragment Address on MailingAddress {\n id\n formatted\n firstName\n lastName\n company\n address1\n address2\n country\n province\n city\n zip\n phone\n }\n\n': {
1827
- return: CustomerQuery;
1828
- variables: CustomerQueryVariables;
1829
- };
1830
1098
  '#graphql\n fragment PredictiveArticle on Article {\n __typename\n id\n title\n handle\n image {\n url\n altText\n width\n height\n }\n trackingParameters\n }\n fragment PredictiveCollection on Collection {\n __typename\n id\n title\n handle\n image {\n url\n altText\n width\n height\n }\n trackingParameters\n }\n fragment PredictivePage on Page {\n __typename\n id\n title\n handle\n trackingParameters\n }\n fragment PredictiveProduct on Product {\n __typename\n id\n title\n handle\n trackingParameters\n variants(first: 1) {\n nodes {\n id\n image {\n url\n altText\n width\n height\n }\n price {\n amount\n currencyCode\n }\n }\n }\n }\n fragment PredictiveQuery on SearchQuerySuggestion {\n __typename\n text\n styledText\n trackingParameters\n }\n query predictiveSearch(\n $country: CountryCode\n $language: LanguageCode\n $limit: Int!\n $limitScope: PredictiveSearchLimitScope!\n $searchTerm: String!\n $types: [PredictiveSearchType!]\n ) @inContext(country: $country, language: $language) {\n predictiveSearch(\n limit: $limit,\n limitScope: $limitScope,\n query: $searchTerm,\n types: $types,\n ) {\n articles {\n ...PredictiveArticle\n }\n collections {\n ...PredictiveCollection\n }\n pages {\n ...PredictivePage\n }\n products {\n ...PredictiveProduct\n }\n queries {\n ...PredictiveQuery\n }\n }\n }\n': {
1831
1099
  return: PredictiveSearchQuery;
1832
1100
  variables: PredictiveSearchQueryVariables;
@@ -1863,7 +1131,7 @@ interface GeneratedQueryTypes {
1863
1131
  return: PoliciesQuery;
1864
1132
  variables: PoliciesQueryVariables;
1865
1133
  };
1866
- '#graphql\n query Product(\n $country: CountryCode\n $handle: String!\n $language: LanguageCode\n $selectedOptions: [SelectedOptionInput!]!\n ) @inContext(country: $country, language: $language) {\n product(handle: $handle) {\n ...Product\n }\n }\n #graphql\n fragment Product on Product {\n id\n title\n vendor\n handle\n descriptionHtml\n description\n options {\n name\n values\n }\n selectedVariant: variantBySelectedOptions(selectedOptions: $selectedOptions) {\n ...ProductVariant\n }\n variants(first: 1) {\n nodes {\n ...ProductVariant\n }\n }\n seo {\n description\n title\n }\n }\n #graphql\n fragment ProductVariant on ProductVariant {\n availableForSale\n compareAtPrice {\n amount\n currencyCode\n }\n id\n image {\n __typename\n id\n url\n altText\n width\n height\n }\n price {\n amount\n currencyCode\n }\n product {\n title\n handle\n }\n selectedOptions {\n name\n value\n }\n sku\n title\n unitPrice {\n amount\n currencyCode\n }\n }\n\n\n': {
1134
+ '#graphql\n query Product(\n $country: CountryCode\n $handle: String!\n $language: LanguageCode\n $selectedOptions: [SelectedOptionInput!]!\n ) @inContext(country: $country, language: $language) {\n product(handle: $handle) {\n ...Product\n }\n }\n #graphql\n fragment Product on Product {\n id\n title\n vendor\n handle\n descriptionHtml\n description\n options {\n name\n values\n }\n selectedVariant: variantBySelectedOptions(selectedOptions: $selectedOptions, ignoreUnknownOptions: true, caseInsensitiveMatch: true) {\n ...ProductVariant\n }\n variants(first: 1) {\n nodes {\n ...ProductVariant\n }\n }\n seo {\n description\n title\n }\n }\n #graphql\n fragment ProductVariant on ProductVariant {\n availableForSale\n compareAtPrice {\n amount\n currencyCode\n }\n id\n image {\n __typename\n id\n url\n altText\n width\n height\n }\n price {\n amount\n currencyCode\n }\n product {\n title\n handle\n }\n selectedOptions {\n name\n value\n }\n sku\n title\n unitPrice {\n amount\n currencyCode\n }\n }\n\n\n': {
1867
1135
  return: ProductQuery;
1868
1136
  variables: ProductQueryVariables;
1869
1137
  };
@@ -1877,52 +1145,7 @@ interface GeneratedQueryTypes {
1877
1145
  };
1878
1146
  }
1879
1147
 
1880
- interface GeneratedMutationTypes {
1881
- '#graphql\n mutation customerAddressUpdate(\n $address: MailingAddressInput!\n $customerAccessToken: String!\n $id: ID!\n $country: CountryCode\n $language: LanguageCode\n ) @inContext(country: $country, language: $language) {\n customerAddressUpdate(\n address: $address\n customerAccessToken: $customerAccessToken\n id: $id\n ) {\n customerAddress {\n id\n }\n customerUserErrors {\n code\n field\n message\n }\n }\n }\n': {
1882
- return: CustomerAddressUpdateMutation;
1883
- variables: CustomerAddressUpdateMutationVariables;
1884
- };
1885
- '#graphql\n mutation customerAddressDelete(\n $customerAccessToken: String!,\n $id: ID!,\n $country: CountryCode,\n $language: LanguageCode\n ) @inContext(country: $country, language: $language) {\n customerAddressDelete(customerAccessToken: $customerAccessToken, id: $id) {\n customerUserErrors {\n code\n field\n message\n }\n deletedCustomerAddressId\n }\n }\n': {
1886
- return: CustomerAddressDeleteMutation;
1887
- variables: CustomerAddressDeleteMutationVariables;
1888
- };
1889
- '#graphql\n mutation customerDefaultAddressUpdate(\n $addressId: ID!\n $customerAccessToken: String!\n $country: CountryCode\n $language: LanguageCode\n ) @inContext(country: $country, language: $language) {\n customerDefaultAddressUpdate(\n addressId: $addressId\n customerAccessToken: $customerAccessToken\n ) {\n customer {\n defaultAddress {\n id\n }\n }\n customerUserErrors {\n code\n field\n message\n }\n }\n }\n': {
1890
- return: CustomerDefaultAddressUpdateMutation;
1891
- variables: CustomerDefaultAddressUpdateMutationVariables;
1892
- };
1893
- '#graphql\n mutation customerAddressCreate(\n $address: MailingAddressInput!\n $customerAccessToken: String!\n $country: CountryCode\n $language: LanguageCode\n ) @inContext(country: $country, language: $language) {\n customerAddressCreate(\n address: $address\n customerAccessToken: $customerAccessToken\n ) {\n customerAddress {\n id\n }\n customerUserErrors {\n code\n field\n message\n }\n }\n }\n': {
1894
- return: CustomerAddressCreateMutation;
1895
- variables: CustomerAddressCreateMutationVariables;
1896
- };
1897
- '#graphql\n # https://shopify.dev/docs/api/storefront/latest/mutations/customerUpdate\n mutation customerUpdate(\n $customerAccessToken: String!,\n $customer: CustomerUpdateInput!\n $country: CountryCode\n $language: LanguageCode\n ) @inContext(language: $language, country: $country) {\n customerUpdate(customerAccessToken: $customerAccessToken, customer: $customer) {\n customer {\n acceptsMarketing\n email\n firstName\n id\n lastName\n phone\n }\n customerAccessToken {\n accessToken\n expiresAt\n }\n customerUserErrors {\n code\n field\n message\n }\n }\n }\n': {
1898
- return: CustomerUpdateMutation;
1899
- variables: CustomerUpdateMutationVariables;
1900
- };
1901
- '#graphql\n mutation customerActivate(\n $id: ID!,\n $input: CustomerActivateInput!,\n $country: CountryCode,\n $language: LanguageCode\n ) @inContext(country: $country, language: $language) {\n customerActivate(id: $id, input: $input) {\n customerAccessToken {\n accessToken\n expiresAt\n }\n customerUserErrors {\n code\n field\n message\n }\n }\n }\n': {
1902
- return: CustomerActivateMutation;
1903
- variables: CustomerActivateMutationVariables;
1904
- };
1905
- '#graphql\n mutation login($input: CustomerAccessTokenCreateInput!) {\n customerAccessTokenCreate(input: $input) {\n customerUserErrors {\n code\n field\n message\n }\n customerAccessToken {\n accessToken\n expiresAt\n }\n }\n }\n': {
1906
- return: LoginMutation;
1907
- variables: LoginMutationVariables;
1908
- };
1909
- '#graphql\n mutation customerRecover(\n $email: String!,\n $country: CountryCode,\n $language: LanguageCode\n ) @inContext(country: $country, language: $language) {\n customerRecover(email: $email) {\n customerUserErrors {\n code\n field\n message\n }\n }\n }\n': {
1910
- return: CustomerRecoverMutation;
1911
- variables: CustomerRecoverMutationVariables;
1912
- };
1913
- '#graphql\n mutation customerCreate(\n $input: CustomerCreateInput!,\n $country: CountryCode,\n $language: LanguageCode\n ) @inContext(country: $country, language: $language) {\n customerCreate(input: $input) {\n customer {\n id\n }\n customerUserErrors {\n code\n field\n message\n }\n }\n }\n': {
1914
- return: CustomerCreateMutation;
1915
- variables: CustomerCreateMutationVariables;
1916
- };
1917
- '#graphql\n mutation registerLogin(\n $input: CustomerAccessTokenCreateInput!,\n $country: CountryCode,\n $language: LanguageCode\n ) @inContext(country: $country, language: $language) {\n customerAccessTokenCreate(input: $input) {\n customerUserErrors {\n code\n field\n message\n }\n customerAccessToken {\n accessToken\n expiresAt\n }\n }\n }\n': {
1918
- return: RegisterLoginMutation;
1919
- variables: RegisterLoginMutationVariables;
1920
- };
1921
- '#graphql\n mutation customerReset(\n $id: ID!,\n $input: CustomerResetInput!\n $country: CountryCode\n $language: LanguageCode\n ) @inContext(country: $country, language: $language) {\n customerReset(id: $id, input: $input) {\n customerAccessToken {\n accessToken\n expiresAt\n }\n customerUserErrors {\n code\n field\n message\n }\n }\n }\n': {
1922
- return: CustomerResetMutation;
1923
- variables: CustomerResetMutationVariables;
1924
- };
1925
- }
1148
+ interface GeneratedMutationTypes {}
1926
1149
 
1927
1150
  declare module '@shopify/hydrogen' {
1928
1151
  interface StorefrontQueries extends GeneratedQueryTypes {}