commerce-kit 0.62.0 → 0.64.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.
package/README.md CHANGED
@@ -129,6 +129,21 @@ const updated = await commerce.ticketsUpdate(
129
129
  const ticket = await commerce.ticketAttendeeGet({ token: 'a1b2c3...' });
130
130
  ```
131
131
 
132
+ ## Newsletter
133
+
134
+ ```typescript
135
+ const subscriber = await commerce.subscriberCreate({ email: 'jane@example.com', marketingConsent: true });
136
+
137
+ // Double opt-in stores return pending: true — the address joins the list only after the
138
+ // shopper clicks the link in the confirmation email. Tell them to check their inbox.
139
+ if (subscriber.pending) { /* "Check your inbox to confirm" */ }
140
+
141
+ await commerce.subscriberDelete('jane@example.com');
142
+ ```
143
+
144
+ Confirmation and unsubscribe links in emails point at pages hosted by Your Next Store, so a
145
+ storefront needs no `/confirm-subscription` or `/unsubscribe` route of its own.
146
+
132
147
  ## Collections & Categories
133
148
 
134
149
  Full CRUD for product collections, product categories, and blog categories. Mutations are
@@ -270,8 +270,13 @@ type APIProductsBrowseResult = Omit<{
270
270
  }[] & ({
271
271
  id: string;
272
272
  price: string;
273
+ stock: number | null;
274
+ calculatedPrice?: string | null;
273
275
  } & {
274
276
  prePromotionPrice: string | null;
277
+ } & {
278
+ nextStockPrice?: string | null;
279
+ unitsLeftAtCurrentPrice?: number | null;
275
280
  })[];
276
281
  translations: {
277
282
  locale: string;
@@ -546,8 +551,13 @@ type APIProductsBrowseResult = Omit<{
546
551
  }[] & ({
547
552
  id: string;
548
553
  price: string;
554
+ stock: number | null;
555
+ calculatedPrice?: string | null;
549
556
  } & {
550
557
  prePromotionPrice: string | null;
558
+ } & {
559
+ nextStockPrice?: string | null;
560
+ unitsLeftAtCurrentPrice?: number | null;
551
561
  })[];
552
562
  translations: {
553
563
  locale: string;
@@ -822,8 +832,13 @@ type APIProductsBrowseResult = Omit<{
822
832
  }[] & ({
823
833
  id: string;
824
834
  price: string;
835
+ stock: number | null;
836
+ calculatedPrice?: string | null;
825
837
  } & {
826
838
  prePromotionPrice: string | null;
839
+ } & {
840
+ nextStockPrice?: string | null;
841
+ unitsLeftAtCurrentPrice?: number | null;
827
842
  })[];
828
843
  translations: {
829
844
  locale: string;
@@ -1098,10 +1113,15 @@ type APIProductsBrowseResult = Omit<{
1098
1113
  }[] & ({
1099
1114
  id: string;
1100
1115
  price: string;
1116
+ stock: number | null;
1117
+ calculatedPrice?: string | null;
1101
1118
  } & {
1102
1119
  price: string;
1103
1120
  } & {
1104
1121
  prePromotionPrice: string | null;
1122
+ } & {
1123
+ nextStockPrice?: string | null;
1124
+ unitsLeftAtCurrentPrice?: number | null;
1105
1125
  })[];
1106
1126
  translations: {
1107
1127
  locale: string;
@@ -1376,8 +1396,15 @@ type APIProductsBrowseResult = Omit<{
1376
1396
  }[] & ({
1377
1397
  id: string;
1378
1398
  price: string;
1399
+ stock: number | null;
1400
+ calculatedPrice?: string | null;
1401
+ } & {
1402
+ price: string;
1379
1403
  } & {
1380
1404
  prePromotionPrice: string | null;
1405
+ } & {
1406
+ nextStockPrice?: string | null;
1407
+ unitsLeftAtCurrentPrice?: number | null;
1381
1408
  })[];
1382
1409
  translations: {
1383
1410
  locale: string;
@@ -1961,7 +1988,7 @@ type APIProductsBrowseResult = Omit<{
1961
1988
  };
1962
1989
  }[];
1963
1990
  };
1964
- }["variant"], "calculatedPrice" | "originalPrice" | "prePromotionPrice" | "omnibusPrice"> as `${K}Gross`]: string | null;
1991
+ }["variant"], "calculatedPrice" | "originalPrice" | "prePromotionPrice" | "nextStockPrice" | "omnibusPrice"> as `${K}Gross`]: string | null;
1965
1992
  } : {
1966
1993
  createdAt: string;
1967
1994
  updatedAt: string;
@@ -2181,8 +2208,13 @@ type APIProductsBrowseResult = Omit<{
2181
2208
  } & {
2182
2209
  id: string;
2183
2210
  price: string;
2211
+ stock: number | null;
2212
+ calculatedPrice?: string | null;
2184
2213
  } & {
2185
2214
  prePromotionPrice: string | null;
2215
+ } & {
2216
+ nextStockPrice?: string | null;
2217
+ unitsLeftAtCurrentPrice?: number | null;
2186
2218
  }) | ({
2187
2219
  id: string;
2188
2220
  createdAt: string;
@@ -2233,10 +2265,15 @@ type APIProductsBrowseResult = Omit<{
2233
2265
  } & {
2234
2266
  id: string;
2235
2267
  price: string;
2268
+ stock: number | null;
2269
+ calculatedPrice?: string | null;
2236
2270
  } & {
2237
2271
  price: string;
2238
2272
  } & {
2239
2273
  prePromotionPrice: string | null;
2274
+ } & {
2275
+ nextStockPrice?: string | null;
2276
+ unitsLeftAtCurrentPrice?: number | null;
2240
2277
  }) | ({
2241
2278
  id: string;
2242
2279
  createdAt: string;
@@ -2287,8 +2324,15 @@ type APIProductsBrowseResult = Omit<{
2287
2324
  } & {
2288
2325
  id: string;
2289
2326
  price: string;
2327
+ stock: number | null;
2328
+ calculatedPrice?: string | null;
2329
+ } & {
2330
+ price: string;
2290
2331
  } & {
2291
2332
  prePromotionPrice: string | null;
2333
+ } & {
2334
+ nextStockPrice?: string | null;
2335
+ unitsLeftAtCurrentPrice?: number | null;
2292
2336
  }), "cost">]: K extends "prices" ? Array<(Omit<({
2293
2337
  id: string;
2294
2338
  createdAt: string;
@@ -2339,8 +2383,13 @@ type APIProductsBrowseResult = Omit<{
2339
2383
  } & {
2340
2384
  id: string;
2341
2385
  price: string;
2386
+ stock: number | null;
2387
+ calculatedPrice?: string | null;
2342
2388
  } & {
2343
2389
  prePromotionPrice: string | null;
2390
+ } & {
2391
+ nextStockPrice?: string | null;
2392
+ unitsLeftAtCurrentPrice?: number | null;
2344
2393
  }) | ({
2345
2394
  id: string;
2346
2395
  createdAt: string;
@@ -2391,10 +2440,15 @@ type APIProductsBrowseResult = Omit<{
2391
2440
  } & {
2392
2441
  id: string;
2393
2442
  price: string;
2443
+ stock: number | null;
2444
+ calculatedPrice?: string | null;
2394
2445
  } & {
2395
2446
  price: string;
2396
2447
  } & {
2397
2448
  prePromotionPrice: string | null;
2449
+ } & {
2450
+ nextStockPrice?: string | null;
2451
+ unitsLeftAtCurrentPrice?: number | null;
2398
2452
  }) | ({
2399
2453
  id: string;
2400
2454
  createdAt: string;
@@ -2445,8 +2499,15 @@ type APIProductsBrowseResult = Omit<{
2445
2499
  } & {
2446
2500
  id: string;
2447
2501
  price: string;
2502
+ stock: number | null;
2503
+ calculatedPrice?: string | null;
2504
+ } & {
2505
+ price: string;
2448
2506
  } & {
2449
2507
  prePromotionPrice: string | null;
2508
+ } & {
2509
+ nextStockPrice?: string | null;
2510
+ unitsLeftAtCurrentPrice?: number | null;
2450
2511
  }), "cost">[K] extends readonly (infer TElement)[] ? TElement : never) & {
2451
2512
  /** `price` converted to gross with the owning product's tax rate. */
2452
2513
  priceGross: string;
@@ -2502,8 +2563,13 @@ type APIProductsBrowseResult = Omit<{
2502
2563
  } & {
2503
2564
  id: string;
2504
2565
  price: string;
2566
+ stock: number | null;
2567
+ calculatedPrice?: string | null;
2505
2568
  } & {
2506
2569
  prePromotionPrice: string | null;
2570
+ } & {
2571
+ nextStockPrice?: string | null;
2572
+ unitsLeftAtCurrentPrice?: number | null;
2507
2573
  }) | ({
2508
2574
  id: string;
2509
2575
  createdAt: string;
@@ -2554,10 +2620,15 @@ type APIProductsBrowseResult = Omit<{
2554
2620
  } & {
2555
2621
  id: string;
2556
2622
  price: string;
2623
+ stock: number | null;
2624
+ calculatedPrice?: string | null;
2557
2625
  } & {
2558
2626
  price: string;
2559
2627
  } & {
2560
2628
  prePromotionPrice: string | null;
2629
+ } & {
2630
+ nextStockPrice?: string | null;
2631
+ unitsLeftAtCurrentPrice?: number | null;
2561
2632
  }) | ({
2562
2633
  id: string;
2563
2634
  createdAt: string;
@@ -2608,8 +2679,15 @@ type APIProductsBrowseResult = Omit<{
2608
2679
  } & {
2609
2680
  id: string;
2610
2681
  price: string;
2682
+ stock: number | null;
2683
+ calculatedPrice?: string | null;
2684
+ } & {
2685
+ price: string;
2611
2686
  } & {
2612
2687
  prePromotionPrice: string | null;
2688
+ } & {
2689
+ nextStockPrice?: string | null;
2690
+ unitsLeftAtCurrentPrice?: number | null;
2613
2691
  }), "cost">[K];
2614
2692
  } & {
2615
2693
  /** `price` (the effective net price) converted to gross with the product's tax rate. */
@@ -2665,8 +2743,13 @@ type APIProductsBrowseResult = Omit<{
2665
2743
  } & {
2666
2744
  id: string;
2667
2745
  price: string;
2746
+ stock: number | null;
2747
+ calculatedPrice?: string | null;
2668
2748
  } & {
2669
2749
  prePromotionPrice: string | null;
2750
+ } & {
2751
+ nextStockPrice?: string | null;
2752
+ unitsLeftAtCurrentPrice?: number | null;
2670
2753
  }) | ({
2671
2754
  id: string;
2672
2755
  createdAt: string;
@@ -2717,10 +2800,15 @@ type APIProductsBrowseResult = Omit<{
2717
2800
  } & {
2718
2801
  id: string;
2719
2802
  price: string;
2803
+ stock: number | null;
2804
+ calculatedPrice?: string | null;
2720
2805
  } & {
2721
2806
  price: string;
2722
2807
  } & {
2723
2808
  prePromotionPrice: string | null;
2809
+ } & {
2810
+ nextStockPrice?: string | null;
2811
+ unitsLeftAtCurrentPrice?: number | null;
2724
2812
  }) | ({
2725
2813
  id: string;
2726
2814
  createdAt: string;
@@ -2771,9 +2859,16 @@ type APIProductsBrowseResult = Omit<{
2771
2859
  } & {
2772
2860
  id: string;
2773
2861
  price: string;
2862
+ stock: number | null;
2863
+ calculatedPrice?: string | null;
2864
+ } & {
2865
+ price: string;
2774
2866
  } & {
2775
2867
  prePromotionPrice: string | null;
2776
- }), "cost">, "calculatedPrice" | "originalPrice" | "prePromotionPrice" | "omnibusPrice"> as `${K}Gross`]: string | null;
2868
+ } & {
2869
+ nextStockPrice?: string | null;
2870
+ unitsLeftAtCurrentPrice?: number | null;
2871
+ }), "cost">, "calculatedPrice" | "originalPrice" | "prePromotionPrice" | "nextStockPrice" | "omnibusPrice"> as `${K}Gross`]: string | null;
2777
2872
  })[];
2778
2873
  translations: {
2779
2874
  locale: string;
@@ -3393,7 +3488,7 @@ type APIProductGetByIdResult = {
3393
3488
  };
3394
3489
  }[];
3395
3490
  };
3396
- }["variant"], "calculatedPrice" | "originalPrice" | "prePromotionPrice" | "omnibusPrice"> as `${K}Gross`]: string | null;
3491
+ }["variant"], "calculatedPrice" | "originalPrice" | "prePromotionPrice" | "nextStockPrice" | "omnibusPrice"> as `${K}Gross`]: string | null;
3397
3492
  } : {
3398
3493
  createdAt: string;
3399
3494
  updatedAt: string;
@@ -3642,8 +3737,13 @@ type APIProductGetByIdResult = {
3642
3737
  } & {
3643
3738
  id: string;
3644
3739
  price: string;
3740
+ stock: number | null;
3741
+ calculatedPrice?: string | null;
3645
3742
  } & {
3646
3743
  prePromotionPrice: string | null;
3744
+ } & {
3745
+ nextStockPrice?: string | null;
3746
+ unitsLeftAtCurrentPrice?: number | null;
3647
3747
  }, "cost"> & {
3648
3748
  omnibusPrice: string | null;
3649
3749
  })]: K extends "prices" ? Array<((Omit<{
@@ -3704,8 +3804,13 @@ type APIProductGetByIdResult = {
3704
3804
  } & {
3705
3805
  id: string;
3706
3806
  price: string;
3807
+ stock: number | null;
3808
+ calculatedPrice?: string | null;
3707
3809
  } & {
3708
3810
  prePromotionPrice: string | null;
3811
+ } & {
3812
+ nextStockPrice?: string | null;
3813
+ unitsLeftAtCurrentPrice?: number | null;
3709
3814
  }, "cost"> & {
3710
3815
  omnibusPrice: string | null;
3711
3816
  })[K] extends readonly (infer TElement)[] ? TElement : never) & {
@@ -3771,8 +3876,13 @@ type APIProductGetByIdResult = {
3771
3876
  } & {
3772
3877
  id: string;
3773
3878
  price: string;
3879
+ stock: number | null;
3880
+ calculatedPrice?: string | null;
3774
3881
  } & {
3775
3882
  prePromotionPrice: string | null;
3883
+ } & {
3884
+ nextStockPrice?: string | null;
3885
+ unitsLeftAtCurrentPrice?: number | null;
3776
3886
  }, "cost"> & {
3777
3887
  omnibusPrice: string | null;
3778
3888
  })[K];
@@ -3838,11 +3948,16 @@ type APIProductGetByIdResult = {
3838
3948
  } & {
3839
3949
  id: string;
3840
3950
  price: string;
3951
+ stock: number | null;
3952
+ calculatedPrice?: string | null;
3841
3953
  } & {
3842
3954
  prePromotionPrice: string | null;
3955
+ } & {
3956
+ nextStockPrice?: string | null;
3957
+ unitsLeftAtCurrentPrice?: number | null;
3843
3958
  }, "cost"> & {
3844
3959
  omnibusPrice: string | null;
3845
- }), "calculatedPrice" | "originalPrice" | "prePromotionPrice" | "omnibusPrice"> as `${K}Gross`]: string | null;
3960
+ }), "calculatedPrice" | "originalPrice" | "prePromotionPrice" | "nextStockPrice" | "omnibusPrice"> as `${K}Gross`]: string | null;
3846
3961
  })[];
3847
3962
  variantsTypes: {
3848
3963
  id: string;
@@ -3981,7 +4096,7 @@ type APIProductGetByIdResult = {
3981
4096
  value: string;
3982
4097
  colorValue: string | null;
3983
4098
  }[];
3984
- }, "calculatedPrice" | "originalPrice" | "prePromotionPrice" | "omnibusPrice"> as `${K}Gross`]: string | null;
4099
+ }, "calculatedPrice" | "originalPrice" | "prePromotionPrice" | "nextStockPrice" | "omnibusPrice"> as `${K}Gross`]: string | null;
3985
4100
  };
3986
4101
  }[];
3987
4102
  }[];
@@ -4124,7 +4239,7 @@ type APICartGetResult = {
4124
4239
  idempotencyKey?: string;
4125
4240
  } | null;
4126
4241
  coupon: Omit<{
4127
- type: "fixed" | "percentage";
4242
+ type: "fixed" | "percentage" | "free_shipping";
4128
4243
  value: string;
4129
4244
  code: string;
4130
4245
  startDate: string | null;
@@ -4194,7 +4309,7 @@ type APICartGetResult = {
4194
4309
  stripeCustomerId: string | null;
4195
4310
  couponId: string | null;
4196
4311
  coupon: {
4197
- type: "fixed" | "percentage";
4312
+ type: "fixed" | "percentage" | "free_shipping";
4198
4313
  value: string;
4199
4314
  code: string;
4200
4315
  startDate: string | null;
@@ -4229,7 +4344,7 @@ type APICartGetResult = {
4229
4344
  } | null;
4230
4345
  } | {
4231
4346
  coupon: Omit<{
4232
- type: "fixed" | "percentage";
4347
+ type: "fixed" | "percentage" | "free_shipping";
4233
4348
  value: string;
4234
4349
  code: string;
4235
4350
  startDate: string | null;
@@ -4449,6 +4564,8 @@ type APICartGetResult = {
4449
4564
  };
4450
4565
  };
4451
4566
  }[];
4567
+ nextStockPrice?: string | null | undefined;
4568
+ unitsLeftAtCurrentPrice?: number | null | undefined;
4452
4569
  };
4453
4570
  preVolumePricingPrice: string | null;
4454
4571
  setSelections: {
@@ -4489,6 +4606,7 @@ type APICartGetResult = {
4489
4606
  subscriptionPlanId: string | null;
4490
4607
  productVariantId: string;
4491
4608
  cartId: string;
4609
+ lockedUnitPrice: string | null;
4492
4610
  attendees: {
4493
4611
  name: string;
4494
4612
  email: string | null;
@@ -4686,6 +4804,8 @@ type APICartGetResult = {
4686
4804
  };
4687
4805
  };
4688
4806
  }[];
4807
+ nextStockPrice?: string | null | undefined;
4808
+ unitsLeftAtCurrentPrice?: number | null | undefined;
4689
4809
  }]: K extends "prices" ? Array<({
4690
4810
  product: {
4691
4811
  bundleProducts: {
@@ -4863,6 +4983,8 @@ type APICartGetResult = {
4863
4983
  };
4864
4984
  };
4865
4985
  }[];
4986
+ nextStockPrice?: string | null | undefined;
4987
+ unitsLeftAtCurrentPrice?: number | null | undefined;
4866
4988
  }[K] extends readonly (infer TElement)[] ? TElement : never) & {
4867
4989
  /** `price` converted to gross with the owning product's tax rate. */
4868
4990
  priceGross: string;
@@ -5045,6 +5167,8 @@ type APICartGetResult = {
5045
5167
  };
5046
5168
  };
5047
5169
  }[];
5170
+ nextStockPrice?: string | null | undefined;
5171
+ unitsLeftAtCurrentPrice?: number | null | undefined;
5048
5172
  }[K];
5049
5173
  } & {
5050
5174
  /** `price` (the effective net price) converted to gross with the product's tax rate. */
@@ -5227,7 +5351,9 @@ type APICartGetResult = {
5227
5351
  };
5228
5352
  };
5229
5353
  }[];
5230
- }, "calculatedPrice" | "originalPrice" | "prePromotionPrice" | "omnibusPrice"> as `${K}Gross`]: string | null;
5354
+ nextStockPrice?: string | null | undefined;
5355
+ unitsLeftAtCurrentPrice?: number | null | undefined;
5356
+ }, "calculatedPrice" | "originalPrice" | "prePromotionPrice" | "nextStockPrice" | "omnibusPrice"> as `${K}Gross`]: string | null;
5231
5357
  };
5232
5358
  })[];
5233
5359
  subtotalNet: number | null;
@@ -5354,7 +5480,7 @@ type APICartCreateResult = {
5354
5480
  idempotencyKey?: string;
5355
5481
  } | null;
5356
5482
  coupon: Omit<{
5357
- type: "fixed" | "percentage";
5483
+ type: "fixed" | "percentage" | "free_shipping";
5358
5484
  value: string;
5359
5485
  code: string;
5360
5486
  startDate: string | null;
@@ -5424,7 +5550,7 @@ type APICartCreateResult = {
5424
5550
  stripeCustomerId: string | null;
5425
5551
  couponId: string | null;
5426
5552
  coupon: {
5427
- type: "fixed" | "percentage";
5553
+ type: "fixed" | "percentage" | "free_shipping";
5428
5554
  value: string;
5429
5555
  code: string;
5430
5556
  startDate: string | null;
@@ -5459,7 +5585,7 @@ type APICartCreateResult = {
5459
5585
  } | null;
5460
5586
  } | {
5461
5587
  coupon: Omit<{
5462
- type: "fixed" | "percentage";
5588
+ type: "fixed" | "percentage" | "free_shipping";
5463
5589
  value: string;
5464
5590
  code: string;
5465
5591
  startDate: string | null;
@@ -5679,6 +5805,8 @@ type APICartCreateResult = {
5679
5805
  };
5680
5806
  };
5681
5807
  }[];
5808
+ nextStockPrice?: string | null | undefined;
5809
+ unitsLeftAtCurrentPrice?: number | null | undefined;
5682
5810
  };
5683
5811
  preVolumePricingPrice: string | null;
5684
5812
  setSelections: {
@@ -5719,6 +5847,7 @@ type APICartCreateResult = {
5719
5847
  subscriptionPlanId: string | null;
5720
5848
  productVariantId: string;
5721
5849
  cartId: string;
5850
+ lockedUnitPrice: string | null;
5722
5851
  attendees: {
5723
5852
  name: string;
5724
5853
  email: string | null;
@@ -5916,6 +6045,8 @@ type APICartCreateResult = {
5916
6045
  };
5917
6046
  };
5918
6047
  }[];
6048
+ nextStockPrice?: string | null | undefined;
6049
+ unitsLeftAtCurrentPrice?: number | null | undefined;
5919
6050
  }]: K extends "prices" ? Array<({
5920
6051
  product: {
5921
6052
  bundleProducts: {
@@ -6093,6 +6224,8 @@ type APICartCreateResult = {
6093
6224
  };
6094
6225
  };
6095
6226
  }[];
6227
+ nextStockPrice?: string | null | undefined;
6228
+ unitsLeftAtCurrentPrice?: number | null | undefined;
6096
6229
  }[K] extends readonly (infer TElement)[] ? TElement : never) & {
6097
6230
  /** `price` converted to gross with the owning product's tax rate. */
6098
6231
  priceGross: string;
@@ -6275,6 +6408,8 @@ type APICartCreateResult = {
6275
6408
  };
6276
6409
  };
6277
6410
  }[];
6411
+ nextStockPrice?: string | null | undefined;
6412
+ unitsLeftAtCurrentPrice?: number | null | undefined;
6278
6413
  }[K];
6279
6414
  } & {
6280
6415
  /** `price` (the effective net price) converted to gross with the product's tax rate. */
@@ -6457,7 +6592,9 @@ type APICartCreateResult = {
6457
6592
  };
6458
6593
  };
6459
6594
  }[];
6460
- }, "calculatedPrice" | "originalPrice" | "prePromotionPrice" | "omnibusPrice"> as `${K}Gross`]: string | null;
6595
+ nextStockPrice?: string | null | undefined;
6596
+ unitsLeftAtCurrentPrice?: number | null | undefined;
6597
+ }, "calculatedPrice" | "originalPrice" | "prePromotionPrice" | "nextStockPrice" | "omnibusPrice"> as `${K}Gross`]: string | null;
6461
6598
  };
6462
6599
  })[];
6463
6600
  subtotalNet: number | null;
@@ -6568,7 +6705,7 @@ type APICartRemoveItemResult = {
6568
6705
  idempotencyKey?: string;
6569
6706
  } | null;
6570
6707
  coupon: Omit<{
6571
- type: "fixed" | "percentage";
6708
+ type: "fixed" | "percentage" | "free_shipping";
6572
6709
  value: string;
6573
6710
  code: string;
6574
6711
  startDate: string | null;
@@ -6638,7 +6775,7 @@ type APICartRemoveItemResult = {
6638
6775
  stripeCustomerId: string | null;
6639
6776
  couponId: string | null;
6640
6777
  coupon: {
6641
- type: "fixed" | "percentage";
6778
+ type: "fixed" | "percentage" | "free_shipping";
6642
6779
  value: string;
6643
6780
  code: string;
6644
6781
  startDate: string | null;
@@ -6673,7 +6810,7 @@ type APICartRemoveItemResult = {
6673
6810
  } | null;
6674
6811
  } | {
6675
6812
  coupon: Omit<{
6676
- type: "fixed" | "percentage";
6813
+ type: "fixed" | "percentage" | "free_shipping";
6677
6814
  value: string;
6678
6815
  code: string;
6679
6816
  startDate: string | null;
@@ -6893,6 +7030,8 @@ type APICartRemoveItemResult = {
6893
7030
  };
6894
7031
  };
6895
7032
  }[];
7033
+ nextStockPrice?: string | null | undefined;
7034
+ unitsLeftAtCurrentPrice?: number | null | undefined;
6896
7035
  };
6897
7036
  preVolumePricingPrice: string | null;
6898
7037
  setSelections: {
@@ -6933,6 +7072,7 @@ type APICartRemoveItemResult = {
6933
7072
  subscriptionPlanId: string | null;
6934
7073
  productVariantId: string;
6935
7074
  cartId: string;
7075
+ lockedUnitPrice: string | null;
6936
7076
  attendees: {
6937
7077
  name: string;
6938
7078
  email: string | null;
@@ -7130,6 +7270,8 @@ type APICartRemoveItemResult = {
7130
7270
  };
7131
7271
  };
7132
7272
  }[];
7273
+ nextStockPrice?: string | null | undefined;
7274
+ unitsLeftAtCurrentPrice?: number | null | undefined;
7133
7275
  }]: K extends "prices" ? Array<({
7134
7276
  product: {
7135
7277
  bundleProducts: {
@@ -7307,6 +7449,8 @@ type APICartRemoveItemResult = {
7307
7449
  };
7308
7450
  };
7309
7451
  }[];
7452
+ nextStockPrice?: string | null | undefined;
7453
+ unitsLeftAtCurrentPrice?: number | null | undefined;
7310
7454
  }[K] extends readonly (infer TElement)[] ? TElement : never) & {
7311
7455
  /** `price` converted to gross with the owning product's tax rate. */
7312
7456
  priceGross: string;
@@ -7489,6 +7633,8 @@ type APICartRemoveItemResult = {
7489
7633
  };
7490
7634
  };
7491
7635
  }[];
7636
+ nextStockPrice?: string | null | undefined;
7637
+ unitsLeftAtCurrentPrice?: number | null | undefined;
7492
7638
  }[K];
7493
7639
  } & {
7494
7640
  /** `price` (the effective net price) converted to gross with the product's tax rate. */
@@ -7671,7 +7817,9 @@ type APICartRemoveItemResult = {
7671
7817
  };
7672
7818
  };
7673
7819
  }[];
7674
- }, "calculatedPrice" | "originalPrice" | "prePromotionPrice" | "omnibusPrice"> as `${K}Gross`]: string | null;
7820
+ nextStockPrice?: string | null | undefined;
7821
+ unitsLeftAtCurrentPrice?: number | null | undefined;
7822
+ }, "calculatedPrice" | "originalPrice" | "prePromotionPrice" | "nextStockPrice" | "omnibusPrice"> as `${K}Gross`]: string | null;
7675
7823
  };
7676
7824
  })[];
7677
7825
  subtotalNet: number | null;
@@ -7788,7 +7936,7 @@ type APICartCouponApplyResult = {
7788
7936
  idempotencyKey?: string;
7789
7937
  } | null;
7790
7938
  coupon: Omit<{
7791
- type: "fixed" | "percentage";
7939
+ type: "fixed" | "percentage" | "free_shipping";
7792
7940
  value: string;
7793
7941
  code: string;
7794
7942
  startDate: string | null;
@@ -7858,7 +8006,7 @@ type APICartCouponApplyResult = {
7858
8006
  stripeCustomerId: string | null;
7859
8007
  couponId: string | null;
7860
8008
  coupon: {
7861
- type: "fixed" | "percentage";
8009
+ type: "fixed" | "percentage" | "free_shipping";
7862
8010
  value: string;
7863
8011
  code: string;
7864
8012
  startDate: string | null;
@@ -7893,7 +8041,7 @@ type APICartCouponApplyResult = {
7893
8041
  } | null;
7894
8042
  } | {
7895
8043
  coupon: Omit<{
7896
- type: "fixed" | "percentage";
8044
+ type: "fixed" | "percentage" | "free_shipping";
7897
8045
  value: string;
7898
8046
  code: string;
7899
8047
  startDate: string | null;
@@ -8113,6 +8261,8 @@ type APICartCouponApplyResult = {
8113
8261
  };
8114
8262
  };
8115
8263
  }[];
8264
+ nextStockPrice?: string | null | undefined;
8265
+ unitsLeftAtCurrentPrice?: number | null | undefined;
8116
8266
  };
8117
8267
  preVolumePricingPrice: string | null;
8118
8268
  setSelections: {
@@ -8153,6 +8303,7 @@ type APICartCouponApplyResult = {
8153
8303
  subscriptionPlanId: string | null;
8154
8304
  productVariantId: string;
8155
8305
  cartId: string;
8306
+ lockedUnitPrice: string | null;
8156
8307
  attendees: {
8157
8308
  name: string;
8158
8309
  email: string | null;
@@ -8350,6 +8501,8 @@ type APICartCouponApplyResult = {
8350
8501
  };
8351
8502
  };
8352
8503
  }[];
8504
+ nextStockPrice?: string | null | undefined;
8505
+ unitsLeftAtCurrentPrice?: number | null | undefined;
8353
8506
  }]: K extends "prices" ? Array<({
8354
8507
  product: {
8355
8508
  bundleProducts: {
@@ -8527,6 +8680,8 @@ type APICartCouponApplyResult = {
8527
8680
  };
8528
8681
  };
8529
8682
  }[];
8683
+ nextStockPrice?: string | null | undefined;
8684
+ unitsLeftAtCurrentPrice?: number | null | undefined;
8530
8685
  }[K] extends readonly (infer TElement)[] ? TElement : never) & {
8531
8686
  /** `price` converted to gross with the owning product's tax rate. */
8532
8687
  priceGross: string;
@@ -8709,6 +8864,8 @@ type APICartCouponApplyResult = {
8709
8864
  };
8710
8865
  };
8711
8866
  }[];
8867
+ nextStockPrice?: string | null | undefined;
8868
+ unitsLeftAtCurrentPrice?: number | null | undefined;
8712
8869
  }[K];
8713
8870
  } & {
8714
8871
  /** `price` (the effective net price) converted to gross with the product's tax rate. */
@@ -8891,7 +9048,9 @@ type APICartCouponApplyResult = {
8891
9048
  };
8892
9049
  };
8893
9050
  }[];
8894
- }, "calculatedPrice" | "originalPrice" | "prePromotionPrice" | "omnibusPrice"> as `${K}Gross`]: string | null;
9051
+ nextStockPrice?: string | null | undefined;
9052
+ unitsLeftAtCurrentPrice?: number | null | undefined;
9053
+ }, "calculatedPrice" | "originalPrice" | "prePromotionPrice" | "nextStockPrice" | "omnibusPrice"> as `${K}Gross`]: string | null;
8895
9054
  };
8896
9055
  })[];
8897
9056
  subtotalNet: number | null;
@@ -8924,7 +9083,7 @@ type APICartCouponRemoveResult = {
8924
9083
  type APICouponGetByIdResult = {
8925
9084
  id: string;
8926
9085
  code: string;
8927
- type: "fixed" | "percentage";
9086
+ type: "fixed" | "percentage" | "free_shipping";
8928
9087
  value: number;
8929
9088
  timesRedeemed: number;
8930
9089
  maxUses: number | null;
@@ -8957,7 +9116,7 @@ type APICouponsBrowseQueryParams = {
8957
9116
  };
8958
9117
  type APICouponCreateBody = {
8959
9118
  code: string;
8960
- type: "fixed" | "percentage";
9119
+ type: "fixed" | "percentage" | "free_shipping";
8961
9120
  value: number;
8962
9121
  products: string[];
8963
9122
  collections: string[];
@@ -8973,7 +9132,7 @@ type APICouponCreateBody = {
8973
9132
  type APICouponCreateResult = {
8974
9133
  id: string;
8975
9134
  code: string;
8976
- type: "fixed" | "percentage";
9135
+ type: "fixed" | "percentage" | "free_shipping";
8977
9136
  value: number;
8978
9137
  timesRedeemed: number;
8979
9138
  maxUses: number | null;
@@ -8993,7 +9152,7 @@ type APICouponCreateResult = {
8993
9152
  };
8994
9153
  type APICouponUpdateBody = {
8995
9154
  code: string;
8996
- type: "fixed" | "percentage";
9155
+ type: "fixed" | "percentage" | "free_shipping";
8997
9156
  value: number;
8998
9157
  products: string[];
8999
9158
  collections: string[];
@@ -9009,7 +9168,7 @@ type APICouponUpdateBody = {
9009
9168
  type APICouponUpdateResult = {
9010
9169
  id: string;
9011
9170
  code: string;
9012
- type: "fixed" | "percentage";
9171
+ type: "fixed" | "percentage" | "free_shipping";
9013
9172
  value: number;
9014
9173
  timesRedeemed: number;
9015
9174
  maxUses: number | null;
@@ -9285,6 +9444,7 @@ type APIOrdersBrowseResult = Omit<{
9285
9444
  type: "TEXT";
9286
9445
  description: string;
9287
9446
  } | null | undefined;
9447
+ introducedBefore20241213?: boolean | null | undefined;
9288
9448
  } | null | undefined;
9289
9449
  } | null;
9290
9450
  type: "set" | "product" | "bundle";
@@ -9432,6 +9592,7 @@ type APIOrdersBrowseResult = Omit<{
9432
9592
  };
9433
9593
  productVariantId: string;
9434
9594
  preVolumePricingPrice: string | null;
9595
+ lockedUnitPrice: string | null;
9435
9596
  subscriptionPlanId: string | null;
9436
9597
  subscriptionPlan: {
9437
9598
  id: string;
@@ -9518,7 +9679,7 @@ type APIOrdersBrowseResult = Omit<{
9518
9679
  updatedAt: string;
9519
9680
  couponId: string | null;
9520
9681
  coupon: {
9521
- type: "fixed" | "percentage";
9682
+ type: "fixed" | "percentage" | "free_shipping";
9522
9683
  value: string;
9523
9684
  code: string;
9524
9685
  startDate: string | null;
@@ -9595,7 +9756,7 @@ type APIOrdersBrowseResult = Omit<{
9595
9756
  } | null;
9596
9757
  couponId: string | null;
9597
9758
  coupon: {
9598
- type: "fixed" | "percentage";
9759
+ type: "fixed" | "percentage" | "free_shipping";
9599
9760
  value: string;
9600
9761
  code: string;
9601
9762
  startDate: string | null;
@@ -9700,6 +9861,7 @@ type APIOrdersBrowseResult = Omit<{
9700
9861
  }[] | null | undefined;
9701
9862
  } | null;
9702
9863
  currency: string | null;
9864
+ taxBehavior: "inclusive" | "exclusive" | null;
9703
9865
  checkoutConsents: {
9704
9866
  id: string;
9705
9867
  content: unknown;
@@ -9936,6 +10098,7 @@ type APIOrdersBrowseResult = Omit<{
9936
10098
  type: "TEXT";
9937
10099
  description: string;
9938
10100
  } | null | undefined;
10101
+ introducedBefore20241213?: boolean | null | undefined;
9939
10102
  } | null | undefined;
9940
10103
  } | null;
9941
10104
  type: "set" | "product" | "bundle";
@@ -10083,6 +10246,7 @@ type APIOrdersBrowseResult = Omit<{
10083
10246
  };
10084
10247
  productVariantId: string;
10085
10248
  preVolumePricingPrice: string | null;
10249
+ lockedUnitPrice: string | null;
10086
10250
  subscriptionPlanId: string | null;
10087
10251
  subscriptionPlan: {
10088
10252
  id: string;
@@ -10169,7 +10333,7 @@ type APIOrdersBrowseResult = Omit<{
10169
10333
  updatedAt: string;
10170
10334
  couponId: string | null;
10171
10335
  coupon: {
10172
- type: "fixed" | "percentage";
10336
+ type: "fixed" | "percentage" | "free_shipping";
10173
10337
  value: string;
10174
10338
  code: string;
10175
10339
  startDate: string | null;
@@ -10246,7 +10410,7 @@ type APIOrdersBrowseResult = Omit<{
10246
10410
  } | null;
10247
10411
  couponId: string | null;
10248
10412
  coupon: {
10249
- type: "fixed" | "percentage";
10413
+ type: "fixed" | "percentage" | "free_shipping";
10250
10414
  value: string;
10251
10415
  code: string;
10252
10416
  startDate: string | null;
@@ -10351,6 +10515,7 @@ type APIOrdersBrowseResult = Omit<{
10351
10515
  }[] | null | undefined;
10352
10516
  } | null;
10353
10517
  currency: string | null;
10518
+ taxBehavior: "inclusive" | "exclusive" | null;
10354
10519
  checkoutConsents: {
10355
10520
  id: string;
10356
10521
  content: unknown;
@@ -10529,6 +10694,7 @@ type APIOrdersBrowseResult = Omit<{
10529
10694
  type: "TEXT";
10530
10695
  description: string;
10531
10696
  } | null | undefined;
10697
+ introducedBefore20241213?: boolean | null | undefined;
10532
10698
  } | null | undefined;
10533
10699
  } | null;
10534
10700
  type: "set" | "product" | "bundle";
@@ -10676,6 +10842,7 @@ type APIOrdersBrowseResult = Omit<{
10676
10842
  };
10677
10843
  productVariantId: string;
10678
10844
  preVolumePricingPrice: string | null;
10845
+ lockedUnitPrice: string | null;
10679
10846
  subscriptionPlanId: string | null;
10680
10847
  subscriptionPlan: {
10681
10848
  id: string;
@@ -10762,7 +10929,7 @@ type APIOrdersBrowseResult = Omit<{
10762
10929
  updatedAt: string;
10763
10930
  couponId: string | null;
10764
10931
  coupon: {
10765
- type: "fixed" | "percentage";
10932
+ type: "fixed" | "percentage" | "free_shipping";
10766
10933
  value: string;
10767
10934
  code: string;
10768
10935
  startDate: string | null;
@@ -10839,7 +11006,7 @@ type APIOrdersBrowseResult = Omit<{
10839
11006
  } | null;
10840
11007
  couponId: string | null;
10841
11008
  coupon: {
10842
- type: "fixed" | "percentage";
11009
+ type: "fixed" | "percentage" | "free_shipping";
10843
11010
  value: string;
10844
11011
  code: string;
10845
11012
  startDate: string | null;
@@ -10944,6 +11111,7 @@ type APIOrdersBrowseResult = Omit<{
10944
11111
  }[] | null | undefined;
10945
11112
  } | null;
10946
11113
  currency: string | null;
11114
+ taxBehavior: "inclusive" | "exclusive" | null;
10947
11115
  checkoutConsents: {
10948
11116
  id: string;
10949
11117
  content: unknown;
@@ -11180,6 +11348,7 @@ type APIOrdersBrowseResult = Omit<{
11180
11348
  type: "TEXT";
11181
11349
  description: string;
11182
11350
  } | null | undefined;
11351
+ introducedBefore20241213?: boolean | null | undefined;
11183
11352
  } | null | undefined;
11184
11353
  } | null;
11185
11354
  type: "set" | "product" | "bundle";
@@ -11327,6 +11496,7 @@ type APIOrdersBrowseResult = Omit<{
11327
11496
  };
11328
11497
  productVariantId: string;
11329
11498
  preVolumePricingPrice: string | null;
11499
+ lockedUnitPrice: string | null;
11330
11500
  subscriptionPlanId: string | null;
11331
11501
  subscriptionPlan: {
11332
11502
  id: string;
@@ -11413,7 +11583,7 @@ type APIOrdersBrowseResult = Omit<{
11413
11583
  updatedAt: string;
11414
11584
  couponId: string | null;
11415
11585
  coupon: {
11416
- type: "fixed" | "percentage";
11586
+ type: "fixed" | "percentage" | "free_shipping";
11417
11587
  value: string;
11418
11588
  code: string;
11419
11589
  startDate: string | null;
@@ -11490,7 +11660,7 @@ type APIOrdersBrowseResult = Omit<{
11490
11660
  } | null;
11491
11661
  couponId: string | null;
11492
11662
  coupon: {
11493
- type: "fixed" | "percentage";
11663
+ type: "fixed" | "percentage" | "free_shipping";
11494
11664
  value: string;
11495
11665
  code: string;
11496
11666
  startDate: string | null;
@@ -11595,6 +11765,7 @@ type APIOrdersBrowseResult = Omit<{
11595
11765
  }[] | null | undefined;
11596
11766
  } | null;
11597
11767
  currency: string | null;
11768
+ taxBehavior: "inclusive" | "exclusive" | null;
11598
11769
  checkoutConsents: {
11599
11770
  id: string;
11600
11771
  content: unknown;
@@ -11768,6 +11939,7 @@ type APIOrdersBrowseResult = Omit<{
11768
11939
  type: "TEXT";
11769
11940
  description: string;
11770
11941
  } | null | undefined;
11942
+ introducedBefore20241213?: boolean | null | undefined;
11771
11943
  } | null | undefined;
11772
11944
  } | null;
11773
11945
  type: "set" | "product" | "bundle";
@@ -11984,6 +12156,7 @@ type APIOrdersBrowseResult = Omit<{
11984
12156
  type: "TEXT";
11985
12157
  description: string;
11986
12158
  } | null | undefined;
12159
+ introducedBefore20241213?: boolean | null | undefined;
11987
12160
  } | null | undefined;
11988
12161
  } | null;
11989
12162
  type: "set" | "product" | "bundle";
@@ -12205,6 +12378,7 @@ type APIOrdersBrowseResult = Omit<{
12205
12378
  type: "TEXT";
12206
12379
  description: string;
12207
12380
  } | null | undefined;
12381
+ introducedBefore20241213?: boolean | null | undefined;
12208
12382
  } | null | undefined;
12209
12383
  } | null;
12210
12384
  type: "set" | "product" | "bundle";
@@ -12426,6 +12600,7 @@ type APIOrdersBrowseResult = Omit<{
12426
12600
  type: "TEXT";
12427
12601
  description: string;
12428
12602
  } | null | undefined;
12603
+ introducedBefore20241213?: boolean | null | undefined;
12429
12604
  } | null | undefined;
12430
12605
  } | null;
12431
12606
  type: "set" | "product" | "bundle";
@@ -12570,10 +12745,11 @@ type APIOrdersBrowseResult = Omit<{
12570
12745
  originalPrice?: string | null | undefined;
12571
12746
  } & {
12572
12747
  originalPrice: string;
12573
- }), "calculatedPrice" | "originalPrice" | "prePromotionPrice" | "omnibusPrice"> as `${K}Gross`]: string | null;
12748
+ }), "calculatedPrice" | "originalPrice" | "prePromotionPrice" | "nextStockPrice" | "omnibusPrice"> as `${K}Gross`]: string | null;
12574
12749
  };
12575
12750
  productVariantId: string;
12576
12751
  preVolumePricingPrice: string | null;
12752
+ lockedUnitPrice: string | null;
12577
12753
  subscriptionPlanId: string | null;
12578
12754
  subscriptionPlan: {
12579
12755
  id: string;
@@ -12660,7 +12836,7 @@ type APIOrdersBrowseResult = Omit<{
12660
12836
  updatedAt: string;
12661
12837
  couponId: string | null;
12662
12838
  coupon: {
12663
- type: "fixed" | "percentage";
12839
+ type: "fixed" | "percentage" | "free_shipping";
12664
12840
  value: string;
12665
12841
  code: string;
12666
12842
  startDate: string | null;
@@ -12737,7 +12913,7 @@ type APIOrdersBrowseResult = Omit<{
12737
12913
  } | null;
12738
12914
  couponId: string | null;
12739
12915
  coupon: {
12740
- type: "fixed" | "percentage";
12916
+ type: "fixed" | "percentage" | "free_shipping";
12741
12917
  value: string;
12742
12918
  code: string;
12743
12919
  startDate: string | null;
@@ -12842,6 +13018,7 @@ type APIOrdersBrowseResult = Omit<{
12842
13018
  }[] | null | undefined;
12843
13019
  } | null;
12844
13020
  currency: string | null;
13021
+ taxBehavior: "inclusive" | "exclusive" | null;
12845
13022
  checkoutConsents: {
12846
13023
  id: string;
12847
13024
  content: unknown;
@@ -13042,6 +13219,7 @@ type APIOrderGetByIdResult = Omit<{
13042
13219
  type: "TEXT";
13043
13220
  description: string;
13044
13221
  } | null | undefined;
13222
+ introducedBefore20241213?: boolean | null | undefined;
13045
13223
  } | null | undefined;
13046
13224
  } | null;
13047
13225
  type: "set" | "product" | "bundle";
@@ -13189,6 +13367,7 @@ type APIOrderGetByIdResult = Omit<{
13189
13367
  };
13190
13368
  productVariantId: string;
13191
13369
  preVolumePricingPrice: string | null;
13370
+ lockedUnitPrice: string | null;
13192
13371
  subscriptionPlanId: string | null;
13193
13372
  subscriptionPlan: {
13194
13373
  id: string;
@@ -13275,7 +13454,7 @@ type APIOrderGetByIdResult = Omit<{
13275
13454
  updatedAt: string;
13276
13455
  couponId: string | null;
13277
13456
  coupon: {
13278
- type: "fixed" | "percentage";
13457
+ type: "fixed" | "percentage" | "free_shipping";
13279
13458
  value: string;
13280
13459
  code: string;
13281
13460
  startDate: string | null;
@@ -13352,7 +13531,7 @@ type APIOrderGetByIdResult = Omit<{
13352
13531
  } | null;
13353
13532
  couponId: string | null;
13354
13533
  coupon: {
13355
- type: "fixed" | "percentage";
13534
+ type: "fixed" | "percentage" | "free_shipping";
13356
13535
  value: string;
13357
13536
  code: string;
13358
13537
  startDate: string | null;
@@ -13457,6 +13636,7 @@ type APIOrderGetByIdResult = Omit<{
13457
13636
  }[] | null | undefined;
13458
13637
  } | null;
13459
13638
  currency: string | null;
13639
+ taxBehavior: "inclusive" | "exclusive" | null;
13460
13640
  checkoutConsents: {
13461
13641
  id: string;
13462
13642
  content: unknown;
@@ -13705,6 +13885,7 @@ type APIOrderGetByIdResult = Omit<{
13705
13885
  type: "TEXT";
13706
13886
  description: string;
13707
13887
  } | null | undefined;
13888
+ introducedBefore20241213?: boolean | null | undefined;
13708
13889
  } | null | undefined;
13709
13890
  } | null;
13710
13891
  type: "set" | "product" | "bundle";
@@ -13852,6 +14033,7 @@ type APIOrderGetByIdResult = Omit<{
13852
14033
  };
13853
14034
  productVariantId: string;
13854
14035
  preVolumePricingPrice: string | null;
14036
+ lockedUnitPrice: string | null;
13855
14037
  subscriptionPlanId: string | null;
13856
14038
  subscriptionPlan: {
13857
14039
  id: string;
@@ -13938,7 +14120,7 @@ type APIOrderGetByIdResult = Omit<{
13938
14120
  updatedAt: string;
13939
14121
  couponId: string | null;
13940
14122
  coupon: {
13941
- type: "fixed" | "percentage";
14123
+ type: "fixed" | "percentage" | "free_shipping";
13942
14124
  value: string;
13943
14125
  code: string;
13944
14126
  startDate: string | null;
@@ -14015,7 +14197,7 @@ type APIOrderGetByIdResult = Omit<{
14015
14197
  } | null;
14016
14198
  couponId: string | null;
14017
14199
  coupon: {
14018
- type: "fixed" | "percentage";
14200
+ type: "fixed" | "percentage" | "free_shipping";
14019
14201
  value: string;
14020
14202
  code: string;
14021
14203
  startDate: string | null;
@@ -14120,6 +14302,7 @@ type APIOrderGetByIdResult = Omit<{
14120
14302
  }[] | null | undefined;
14121
14303
  } | null;
14122
14304
  currency: string | null;
14305
+ taxBehavior: "inclusive" | "exclusive" | null;
14123
14306
  checkoutConsents: {
14124
14307
  id: string;
14125
14308
  content: unknown;
@@ -14289,6 +14472,7 @@ type APIOrderGetByIdResult = Omit<{
14289
14472
  type: "TEXT";
14290
14473
  description: string;
14291
14474
  } | null | undefined;
14475
+ introducedBefore20241213?: boolean | null | undefined;
14292
14476
  } | null | undefined;
14293
14477
  } | null;
14294
14478
  type: "set" | "product" | "bundle";
@@ -14505,6 +14689,7 @@ type APIOrderGetByIdResult = Omit<{
14505
14689
  type: "TEXT";
14506
14690
  description: string;
14507
14691
  } | null | undefined;
14692
+ introducedBefore20241213?: boolean | null | undefined;
14508
14693
  } | null | undefined;
14509
14694
  } | null;
14510
14695
  type: "set" | "product" | "bundle";
@@ -14726,6 +14911,7 @@ type APIOrderGetByIdResult = Omit<{
14726
14911
  type: "TEXT";
14727
14912
  description: string;
14728
14913
  } | null | undefined;
14914
+ introducedBefore20241213?: boolean | null | undefined;
14729
14915
  } | null | undefined;
14730
14916
  } | null;
14731
14917
  type: "set" | "product" | "bundle";
@@ -14947,6 +15133,7 @@ type APIOrderGetByIdResult = Omit<{
14947
15133
  type: "TEXT";
14948
15134
  description: string;
14949
15135
  } | null | undefined;
15136
+ introducedBefore20241213?: boolean | null | undefined;
14950
15137
  } | null | undefined;
14951
15138
  } | null;
14952
15139
  type: "set" | "product" | "bundle";
@@ -15091,10 +15278,11 @@ type APIOrderGetByIdResult = Omit<{
15091
15278
  originalPrice?: string | null | undefined;
15092
15279
  } & {
15093
15280
  originalPrice: string;
15094
- }), "calculatedPrice" | "originalPrice" | "prePromotionPrice" | "omnibusPrice"> as `${K}Gross`]: string | null;
15281
+ }), "calculatedPrice" | "originalPrice" | "prePromotionPrice" | "nextStockPrice" | "omnibusPrice"> as `${K}Gross`]: string | null;
15095
15282
  };
15096
15283
  productVariantId: string;
15097
15284
  preVolumePricingPrice: string | null;
15285
+ lockedUnitPrice: string | null;
15098
15286
  subscriptionPlanId: string | null;
15099
15287
  subscriptionPlan: {
15100
15288
  id: string;
@@ -15181,7 +15369,7 @@ type APIOrderGetByIdResult = Omit<{
15181
15369
  updatedAt: string;
15182
15370
  couponId: string | null;
15183
15371
  coupon: {
15184
- type: "fixed" | "percentage";
15372
+ type: "fixed" | "percentage" | "free_shipping";
15185
15373
  value: string;
15186
15374
  code: string;
15187
15375
  startDate: string | null;
@@ -15258,7 +15446,7 @@ type APIOrderGetByIdResult = Omit<{
15258
15446
  } | null;
15259
15447
  couponId: string | null;
15260
15448
  coupon: {
15261
- type: "fixed" | "percentage";
15449
+ type: "fixed" | "percentage" | "free_shipping";
15262
15450
  value: string;
15263
15451
  code: string;
15264
15452
  startDate: string | null;
@@ -15363,6 +15551,7 @@ type APIOrderGetByIdResult = Omit<{
15363
15551
  }[] | null | undefined;
15364
15552
  } | null;
15365
15553
  currency: string | null;
15554
+ taxBehavior: "inclusive" | "exclusive" | null;
15366
15555
  checkoutConsents: {
15367
15556
  id: string;
15368
15557
  content: unknown;
@@ -15923,6 +16112,7 @@ type APIMeStore = {
15923
16112
  warehouse: boolean;
15924
16113
  serialNumbers: boolean;
15925
16114
  wholesale: boolean;
16115
+ stockPricing: boolean;
15926
16116
  } | null;
15927
16117
  defaultLanguage: "en-US" | "fr-FR" | "it-IT" | "vi-VN" | "pl-PL" | "es-ES" | "de-DE" | null | undefined;
15928
16118
  enabledLanguages: {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package",
3
3
  "name": "commerce-kit",
4
- "version": "0.62.0",
4
+ "version": "0.64.0",
5
5
  "type": "module",
6
6
  "license": "AGPL-3.0-only",
7
7
  "keywords": [