commerce-kit 0.6.1-experimental.7 → 0.6.1-experimental.8

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.
@@ -8,10 +8,10 @@ type APIProductsBrowseResult = {
8
8
  type: "product" | "bundle";
9
9
  slug: string;
10
10
  flags: unknown;
11
+ active: boolean | null;
11
12
  storeId: string;
12
13
  summary: string | null;
13
14
  images: string[];
14
- active: boolean | null;
15
15
  badge: unknown;
16
16
  bundleDiscountPercentage: string | null;
17
17
  categoryId: string | null;
@@ -23,9 +23,9 @@ type APIProductsBrowseResult = {
23
23
  updatedAt: string;
24
24
  description: JSONContent | null;
25
25
  slug: string;
26
+ active: boolean;
26
27
  storeId: string | null;
27
28
  position: string;
28
- active: boolean;
29
29
  parentId: string | null;
30
30
  } | null;
31
31
  productTaxRate: {
@@ -55,8 +55,8 @@ type APIProductsBrowseResult = {
55
55
  description: JSONContent | null;
56
56
  slug: string;
57
57
  filter: unknown;
58
- storeId: string;
59
58
  active: boolean;
59
+ storeId: string;
60
60
  };
61
61
  }[];
62
62
  bundleProducts: {
@@ -205,10 +205,10 @@ type APIProductsBrowseResult = {
205
205
  type: "product" | "bundle";
206
206
  slug: string;
207
207
  flags: unknown;
208
+ active: boolean | null;
208
209
  storeId: string;
209
210
  summary: string | null;
210
211
  images: string[];
211
- active: boolean | null;
212
212
  badge: unknown;
213
213
  bundleDiscountPercentage: string | null;
214
214
  categoryId: string | null;
@@ -220,9 +220,9 @@ type APIProductsBrowseResult = {
220
220
  updatedAt: string;
221
221
  description: JSONContent | null;
222
222
  slug: string;
223
+ active: boolean;
223
224
  storeId: string | null;
224
225
  position: string;
225
- active: boolean;
226
226
  parentId: string | null;
227
227
  } | null;
228
228
  productTaxRate: {
@@ -252,8 +252,8 @@ type APIProductsBrowseResult = {
252
252
  description: JSONContent | null;
253
253
  slug: string;
254
254
  filter: unknown;
255
- storeId: string;
256
255
  active: boolean;
256
+ storeId: string;
257
257
  };
258
258
  }[];
259
259
  bundleProducts: {
@@ -402,10 +402,10 @@ type APIProductsBrowseResult = {
402
402
  type: "product" | "bundle";
403
403
  slug: string;
404
404
  flags: unknown;
405
+ active: boolean | null;
405
406
  storeId: string;
406
407
  summary: string | null;
407
408
  images: string[];
408
- active: boolean | null;
409
409
  badge: unknown;
410
410
  bundleDiscountPercentage: string | null;
411
411
  categoryId: string | null;
@@ -417,9 +417,9 @@ type APIProductsBrowseResult = {
417
417
  updatedAt: string;
418
418
  description: JSONContent | null;
419
419
  slug: string;
420
+ active: boolean;
420
421
  storeId: string | null;
421
422
  position: string;
422
- active: boolean;
423
423
  parentId: string | null;
424
424
  } | null;
425
425
  productTaxRate: {
@@ -449,8 +449,8 @@ type APIProductsBrowseResult = {
449
449
  description: JSONContent | null;
450
450
  slug: string;
451
451
  filter: unknown;
452
- storeId: string;
453
452
  active: boolean;
453
+ storeId: string;
454
454
  };
455
455
  }[];
456
456
  bundleProducts: {
@@ -599,10 +599,10 @@ type APIProductsBrowseResult = {
599
599
  type: "product" | "bundle";
600
600
  slug: string;
601
601
  flags: unknown;
602
+ active: boolean | null;
602
603
  storeId: string;
603
604
  summary: string | null;
604
605
  images: string[];
605
- active: boolean | null;
606
606
  badge: unknown;
607
607
  bundleDiscountPercentage: string | null;
608
608
  categoryId: string | null;
@@ -614,9 +614,9 @@ type APIProductsBrowseResult = {
614
614
  updatedAt: string;
615
615
  description: JSONContent | null;
616
616
  slug: string;
617
+ active: boolean;
617
618
  storeId: string | null;
618
619
  position: string;
619
- active: boolean;
620
620
  parentId: string | null;
621
621
  } | null;
622
622
  productTaxRate: {
@@ -646,8 +646,8 @@ type APIProductsBrowseResult = {
646
646
  description: JSONContent | null;
647
647
  slug: string;
648
648
  filter: unknown;
649
- storeId: string;
650
649
  active: boolean;
650
+ storeId: string;
651
651
  };
652
652
  }[];
653
653
  bundleProducts: {
@@ -797,10 +797,10 @@ type APIProductsBrowseResult = {
797
797
  type: "product" | "bundle";
798
798
  slug: string;
799
799
  flags: unknown;
800
+ active: boolean | null;
800
801
  storeId: string;
801
802
  summary: string | null;
802
803
  images: string[];
803
- active: boolean | null;
804
804
  badge: unknown;
805
805
  bundleDiscountPercentage: string | null;
806
806
  categoryId: string | null;
@@ -812,9 +812,9 @@ type APIProductsBrowseResult = {
812
812
  updatedAt: string;
813
813
  description: JSONContent | null;
814
814
  slug: string;
815
+ active: boolean;
815
816
  storeId: string | null;
816
817
  position: string;
817
- active: boolean;
818
818
  parentId: string | null;
819
819
  } | null;
820
820
  productTaxRate: {
@@ -844,8 +844,8 @@ type APIProductsBrowseResult = {
844
844
  description: JSONContent | null;
845
845
  slug: string;
846
846
  filter: unknown;
847
- storeId: string;
848
847
  active: boolean;
848
+ storeId: string;
849
849
  };
850
850
  }[];
851
851
  bundleProducts: {
@@ -989,11 +989,13 @@ type APIProductsBrowseResult = {
989
989
  }))[];
990
990
  meta: {
991
991
  count: number;
992
+ countActive: number;
993
+ countDraft: number;
992
994
  };
993
995
  };
994
- type APIProductsBrowseParams = {
995
- limit: number;
996
+ type APIProductsBrowseQueryParams = {
996
997
  offset?: number | undefined;
998
+ limit?: number | undefined;
997
999
  category?: string | undefined;
998
1000
  query?: string | undefined;
999
1001
  active?: boolean | undefined;
@@ -1009,10 +1011,10 @@ type APIProductGetByIdResult = ({
1009
1011
  type: "product" | "bundle";
1010
1012
  slug: string;
1011
1013
  flags: unknown;
1014
+ active: boolean | null;
1012
1015
  storeId: string;
1013
1016
  summary: string | null;
1014
1017
  images: string[];
1015
- active: boolean | null;
1016
1018
  badge: unknown;
1017
1019
  bundleDiscountPercentage: string | null;
1018
1020
  categoryId: string | null;
@@ -1024,9 +1026,9 @@ type APIProductGetByIdResult = ({
1024
1026
  updatedAt: string;
1025
1027
  description: JSONContent | null;
1026
1028
  slug: string;
1029
+ active: boolean;
1027
1030
  storeId: string | null;
1028
1031
  position: string;
1029
- active: boolean;
1030
1032
  parentId: string | null;
1031
1033
  } | null;
1032
1034
  productTaxRate: {
@@ -1056,8 +1058,8 @@ type APIProductGetByIdResult = ({
1056
1058
  description: JSONContent | null;
1057
1059
  slug: string;
1058
1060
  filter: unknown;
1059
- storeId: string;
1060
1061
  active: boolean;
1062
+ storeId: string;
1061
1063
  };
1062
1064
  }[];
1063
1065
  bundleProducts: {
@@ -1218,10 +1220,10 @@ type APIProductGetByIdResult = ({
1218
1220
  type: "product" | "bundle";
1219
1221
  slug: string;
1220
1222
  flags: unknown;
1223
+ active: boolean | null;
1221
1224
  storeId: string;
1222
1225
  summary: string | null;
1223
1226
  images: string[];
1224
- active: boolean | null;
1225
1227
  badge: unknown;
1226
1228
  bundleDiscountPercentage: string | null;
1227
1229
  categoryId: string | null;
@@ -1233,9 +1235,9 @@ type APIProductGetByIdResult = ({
1233
1235
  updatedAt: string;
1234
1236
  description: JSONContent | null;
1235
1237
  slug: string;
1238
+ active: boolean;
1236
1239
  storeId: string | null;
1237
1240
  position: string;
1238
- active: boolean;
1239
1241
  parentId: string | null;
1240
1242
  } | null;
1241
1243
  productTaxRate: {
@@ -1265,8 +1267,8 @@ type APIProductGetByIdResult = ({
1265
1267
  description: JSONContent | null;
1266
1268
  slug: string;
1267
1269
  filter: unknown;
1268
- storeId: string;
1269
1270
  active: boolean;
1271
+ storeId: string;
1270
1272
  };
1271
1273
  }[];
1272
1274
  bundleProducts: {
@@ -1475,10 +1477,10 @@ type APICartGetResult = {
1475
1477
  type: "product" | "bundle";
1476
1478
  slug: string;
1477
1479
  flags: unknown;
1480
+ active: boolean | null;
1478
1481
  storeId: string;
1479
1482
  summary: string | null;
1480
1483
  images: string[];
1481
- active: boolean | null;
1482
1484
  badge: unknown;
1483
1485
  bundleDiscountPercentage: string | null;
1484
1486
  categoryId: string | null;
@@ -1509,8 +1511,8 @@ type APICartGetResult = {
1509
1511
  description: JSONContent | null;
1510
1512
  slug: string;
1511
1513
  filter: unknown;
1512
- storeId: string;
1513
1514
  active: boolean;
1515
+ storeId: string;
1514
1516
  };
1515
1517
  }[];
1516
1518
  };
@@ -1600,10 +1602,10 @@ type APICartGetResult = {
1600
1602
  type: "product" | "bundle";
1601
1603
  slug: string;
1602
1604
  flags: unknown;
1605
+ active: boolean | null;
1603
1606
  storeId: string;
1604
1607
  summary: string | null;
1605
1608
  images: string[];
1606
- active: boolean | null;
1607
1609
  badge: unknown;
1608
1610
  bundleDiscountPercentage: string | null;
1609
1611
  categoryId: string | null;
@@ -1634,8 +1636,8 @@ type APICartGetResult = {
1634
1636
  description: JSONContent | null;
1635
1637
  slug: string;
1636
1638
  filter: unknown;
1637
- storeId: string;
1638
1639
  active: boolean;
1640
+ storeId: string;
1639
1641
  };
1640
1642
  }[];
1641
1643
  };
@@ -1725,10 +1727,10 @@ type APICartGetResult = {
1725
1727
  type: "product" | "bundle";
1726
1728
  slug: string;
1727
1729
  flags: unknown;
1730
+ active: boolean | null;
1728
1731
  storeId: string;
1729
1732
  summary: string | null;
1730
1733
  images: string[];
1731
- active: boolean | null;
1732
1734
  badge: unknown;
1733
1735
  bundleDiscountPercentage: string | null;
1734
1736
  categoryId: string | null;
@@ -1759,8 +1761,8 @@ type APICartGetResult = {
1759
1761
  description: JSONContent | null;
1760
1762
  slug: string;
1761
1763
  filter: unknown;
1762
- storeId: string;
1763
1764
  active: boolean;
1765
+ storeId: string;
1764
1766
  };
1765
1767
  }[];
1766
1768
  };
@@ -1850,10 +1852,10 @@ type APICartGetResult = {
1850
1852
  type: "product" | "bundle";
1851
1853
  slug: string;
1852
1854
  flags: unknown;
1855
+ active: boolean | null;
1853
1856
  storeId: string;
1854
1857
  summary: string | null;
1855
1858
  images: string[];
1856
- active: boolean | null;
1857
1859
  badge: unknown;
1858
1860
  bundleDiscountPercentage: string | null;
1859
1861
  categoryId: string | null;
@@ -1884,8 +1886,8 @@ type APICartGetResult = {
1884
1886
  description: JSONContent | null;
1885
1887
  slug: string;
1886
1888
  filter: unknown;
1887
- storeId: string;
1888
1889
  active: boolean;
1890
+ storeId: string;
1889
1891
  };
1890
1892
  }[];
1891
1893
  };
@@ -1976,10 +1978,10 @@ type APICartGetResult = {
1976
1978
  type: "product" | "bundle";
1977
1979
  slug: string;
1978
1980
  flags: unknown;
1981
+ active: boolean | null;
1979
1982
  storeId: string;
1980
1983
  summary: string | null;
1981
1984
  images: string[];
1982
- active: boolean | null;
1983
1985
  badge: unknown;
1984
1986
  bundleDiscountPercentage: string | null;
1985
1987
  categoryId: string | null;
@@ -2010,8 +2012,8 @@ type APICartGetResult = {
2010
2012
  description: JSONContent | null;
2011
2013
  slug: string;
2012
2014
  filter: unknown;
2013
- storeId: string;
2014
2015
  active: boolean;
2016
+ storeId: string;
2015
2017
  };
2016
2018
  }[];
2017
2019
  };
@@ -2101,7 +2103,7 @@ type APICartGetResult = {
2101
2103
  name: string;
2102
2104
  createdAt: string;
2103
2105
  updatedAt: string;
2104
- type: "shipping" | "analytics" | "products" | "invoicing";
2106
+ type: "shipping" | "analytics" | "products" | "invoicing" | "orders";
2105
2107
  storeId: string;
2106
2108
  } | null;
2107
2109
  shippingTaxRate: {
@@ -2240,10 +2242,10 @@ type APICartCreateResult = {
2240
2242
  type: "product" | "bundle";
2241
2243
  slug: string;
2242
2244
  flags: unknown;
2245
+ active: boolean | null;
2243
2246
  storeId: string;
2244
2247
  summary: string | null;
2245
2248
  images: string[];
2246
- active: boolean | null;
2247
2249
  badge: unknown;
2248
2250
  bundleDiscountPercentage: string | null;
2249
2251
  categoryId: string | null;
@@ -2274,8 +2276,8 @@ type APICartCreateResult = {
2274
2276
  description: JSONContent | null;
2275
2277
  slug: string;
2276
2278
  filter: unknown;
2277
- storeId: string;
2278
2279
  active: boolean;
2280
+ storeId: string;
2279
2281
  };
2280
2282
  }[];
2281
2283
  };
@@ -2365,10 +2367,10 @@ type APICartCreateResult = {
2365
2367
  type: "product" | "bundle";
2366
2368
  slug: string;
2367
2369
  flags: unknown;
2370
+ active: boolean | null;
2368
2371
  storeId: string;
2369
2372
  summary: string | null;
2370
2373
  images: string[];
2371
- active: boolean | null;
2372
2374
  badge: unknown;
2373
2375
  bundleDiscountPercentage: string | null;
2374
2376
  categoryId: string | null;
@@ -2399,8 +2401,8 @@ type APICartCreateResult = {
2399
2401
  description: JSONContent | null;
2400
2402
  slug: string;
2401
2403
  filter: unknown;
2402
- storeId: string;
2403
2404
  active: boolean;
2405
+ storeId: string;
2404
2406
  };
2405
2407
  }[];
2406
2408
  };
@@ -2490,10 +2492,10 @@ type APICartCreateResult = {
2490
2492
  type: "product" | "bundle";
2491
2493
  slug: string;
2492
2494
  flags: unknown;
2495
+ active: boolean | null;
2493
2496
  storeId: string;
2494
2497
  summary: string | null;
2495
2498
  images: string[];
2496
- active: boolean | null;
2497
2499
  badge: unknown;
2498
2500
  bundleDiscountPercentage: string | null;
2499
2501
  categoryId: string | null;
@@ -2524,8 +2526,8 @@ type APICartCreateResult = {
2524
2526
  description: JSONContent | null;
2525
2527
  slug: string;
2526
2528
  filter: unknown;
2527
- storeId: string;
2528
2529
  active: boolean;
2530
+ storeId: string;
2529
2531
  };
2530
2532
  }[];
2531
2533
  };
@@ -2615,10 +2617,10 @@ type APICartCreateResult = {
2615
2617
  type: "product" | "bundle";
2616
2618
  slug: string;
2617
2619
  flags: unknown;
2620
+ active: boolean | null;
2618
2621
  storeId: string;
2619
2622
  summary: string | null;
2620
2623
  images: string[];
2621
- active: boolean | null;
2622
2624
  badge: unknown;
2623
2625
  bundleDiscountPercentage: string | null;
2624
2626
  categoryId: string | null;
@@ -2649,8 +2651,8 @@ type APICartCreateResult = {
2649
2651
  description: JSONContent | null;
2650
2652
  slug: string;
2651
2653
  filter: unknown;
2652
- storeId: string;
2653
2654
  active: boolean;
2655
+ storeId: string;
2654
2656
  };
2655
2657
  }[];
2656
2658
  };
@@ -2741,10 +2743,10 @@ type APICartCreateResult = {
2741
2743
  type: "product" | "bundle";
2742
2744
  slug: string;
2743
2745
  flags: unknown;
2746
+ active: boolean | null;
2744
2747
  storeId: string;
2745
2748
  summary: string | null;
2746
2749
  images: string[];
2747
- active: boolean | null;
2748
2750
  badge: unknown;
2749
2751
  bundleDiscountPercentage: string | null;
2750
2752
  categoryId: string | null;
@@ -2775,8 +2777,8 @@ type APICartCreateResult = {
2775
2777
  description: JSONContent | null;
2776
2778
  slug: string;
2777
2779
  filter: unknown;
2778
- storeId: string;
2779
2780
  active: boolean;
2781
+ storeId: string;
2780
2782
  };
2781
2783
  }[];
2782
2784
  };
@@ -2866,7 +2868,7 @@ type APICartCreateResult = {
2866
2868
  name: string;
2867
2869
  createdAt: string;
2868
2870
  updatedAt: string;
2869
- type: "shipping" | "analytics" | "products" | "invoicing";
2871
+ type: "shipping" | "analytics" | "products" | "invoicing" | "orders";
2870
2872
  storeId: string;
2871
2873
  } | null;
2872
2874
  shippingTaxRate: {
@@ -2945,9 +2947,6 @@ type APICartCreateResult = {
2945
2947
  } | null;
2946
2948
  } | null;
2947
2949
  } | null | undefined;
2948
- type APICartRemoveItemParams = {
2949
- subscriptionId?: string | undefined;
2950
- };
2951
2950
  type APICartRemoveItemResult = {
2952
2951
  lineItems: {
2953
2952
  productVariant: ({
@@ -3000,10 +2999,10 @@ type APICartRemoveItemResult = {
3000
2999
  type: "product" | "bundle";
3001
3000
  slug: string;
3002
3001
  flags: unknown;
3002
+ active: boolean | null;
3003
3003
  storeId: string;
3004
3004
  summary: string | null;
3005
3005
  images: string[];
3006
- active: boolean | null;
3007
3006
  badge: unknown;
3008
3007
  bundleDiscountPercentage: string | null;
3009
3008
  categoryId: string | null;
@@ -3034,8 +3033,8 @@ type APICartRemoveItemResult = {
3034
3033
  description: JSONContent | null;
3035
3034
  slug: string;
3036
3035
  filter: unknown;
3037
- storeId: string;
3038
3036
  active: boolean;
3037
+ storeId: string;
3039
3038
  };
3040
3039
  }[];
3041
3040
  };
@@ -3125,10 +3124,10 @@ type APICartRemoveItemResult = {
3125
3124
  type: "product" | "bundle";
3126
3125
  slug: string;
3127
3126
  flags: unknown;
3127
+ active: boolean | null;
3128
3128
  storeId: string;
3129
3129
  summary: string | null;
3130
3130
  images: string[];
3131
- active: boolean | null;
3132
3131
  badge: unknown;
3133
3132
  bundleDiscountPercentage: string | null;
3134
3133
  categoryId: string | null;
@@ -3159,8 +3158,8 @@ type APICartRemoveItemResult = {
3159
3158
  description: JSONContent | null;
3160
3159
  slug: string;
3161
3160
  filter: unknown;
3162
- storeId: string;
3163
3161
  active: boolean;
3162
+ storeId: string;
3164
3163
  };
3165
3164
  }[];
3166
3165
  };
@@ -3250,10 +3249,10 @@ type APICartRemoveItemResult = {
3250
3249
  type: "product" | "bundle";
3251
3250
  slug: string;
3252
3251
  flags: unknown;
3252
+ active: boolean | null;
3253
3253
  storeId: string;
3254
3254
  summary: string | null;
3255
3255
  images: string[];
3256
- active: boolean | null;
3257
3256
  badge: unknown;
3258
3257
  bundleDiscountPercentage: string | null;
3259
3258
  categoryId: string | null;
@@ -3284,8 +3283,8 @@ type APICartRemoveItemResult = {
3284
3283
  description: JSONContent | null;
3285
3284
  slug: string;
3286
3285
  filter: unknown;
3287
- storeId: string;
3288
3286
  active: boolean;
3287
+ storeId: string;
3289
3288
  };
3290
3289
  }[];
3291
3290
  };
@@ -3375,10 +3374,10 @@ type APICartRemoveItemResult = {
3375
3374
  type: "product" | "bundle";
3376
3375
  slug: string;
3377
3376
  flags: unknown;
3377
+ active: boolean | null;
3378
3378
  storeId: string;
3379
3379
  summary: string | null;
3380
3380
  images: string[];
3381
- active: boolean | null;
3382
3381
  badge: unknown;
3383
3382
  bundleDiscountPercentage: string | null;
3384
3383
  categoryId: string | null;
@@ -3409,8 +3408,8 @@ type APICartRemoveItemResult = {
3409
3408
  description: JSONContent | null;
3410
3409
  slug: string;
3411
3410
  filter: unknown;
3412
- storeId: string;
3413
3411
  active: boolean;
3412
+ storeId: string;
3414
3413
  };
3415
3414
  }[];
3416
3415
  };
@@ -3501,10 +3500,10 @@ type APICartRemoveItemResult = {
3501
3500
  type: "product" | "bundle";
3502
3501
  slug: string;
3503
3502
  flags: unknown;
3503
+ active: boolean | null;
3504
3504
  storeId: string;
3505
3505
  summary: string | null;
3506
3506
  images: string[];
3507
- active: boolean | null;
3508
3507
  badge: unknown;
3509
3508
  bundleDiscountPercentage: string | null;
3510
3509
  categoryId: string | null;
@@ -3535,8 +3534,8 @@ type APICartRemoveItemResult = {
3535
3534
  description: JSONContent | null;
3536
3535
  slug: string;
3537
3536
  filter: unknown;
3538
- storeId: string;
3539
3537
  active: boolean;
3538
+ storeId: string;
3540
3539
  };
3541
3540
  }[];
3542
3541
  };
@@ -3626,7 +3625,7 @@ type APICartRemoveItemResult = {
3626
3625
  name: string;
3627
3626
  createdAt: string;
3628
3627
  updatedAt: string;
3629
- type: "shipping" | "analytics" | "products" | "invoicing";
3628
+ type: "shipping" | "analytics" | "products" | "invoicing" | "orders";
3630
3629
  storeId: string;
3631
3630
  } | null;
3632
3631
  shippingTaxRate: {
@@ -3705,5 +3704,1252 @@ type APICartRemoveItemResult = {
3705
3704
  } | null;
3706
3705
  } | null;
3707
3706
  } | null | undefined;
3707
+ type APICartRemoveItemQueryParams = {
3708
+ subscriptionId?: string | undefined;
3709
+ };
3710
+ type APIOrdersBrowseResult = {
3711
+ data: ({
3712
+ id: string;
3713
+ createdAt: string;
3714
+ updatedAt: string;
3715
+ status: "created" | "paid" | "processing" | "shipped" | "completed" | "cancelled";
3716
+ environment: "live" | "test";
3717
+ storeId: string;
3718
+ customerId: string | null;
3719
+ lookup: number;
3720
+ cartId: string | null;
3721
+ orderData: {
3722
+ id: string;
3723
+ storeId: string;
3724
+ shippingId: string | null;
3725
+ shipping: {
3726
+ id: string;
3727
+ storeId: string;
3728
+ name: string;
3729
+ price: string;
3730
+ minShippingTime: number | null;
3731
+ maxShippingTime: number | null;
3732
+ description: string | null;
3733
+ addonId: string | null;
3734
+ shippingAddon: {
3735
+ type: "shipping" | "analytics" | "products" | "invoicing" | "orders";
3736
+ storeId: string;
3737
+ id: string;
3738
+ name: string;
3739
+ createdAt: string;
3740
+ updatedAt: string;
3741
+ } | null;
3742
+ type: "courier" | "parcel" | "pickup_point" | "in_store";
3743
+ addonData: {
3744
+ id: number;
3745
+ name: string;
3746
+ service: "dpd" | "fedex" | "ups" | "gls" | "poczta" | "inpost" | "orlen" | "dhl";
3747
+ } | null;
3748
+ shippingTaxRate: {
3749
+ shippingId: string;
3750
+ taxRateId: string;
3751
+ taxRate: {
3752
+ id: string;
3753
+ storeId: string;
3754
+ name: string;
3755
+ rate: string;
3756
+ createdAt: string;
3757
+ updatedAt: string;
3758
+ };
3759
+ createdAt: string;
3760
+ updatedAt: string;
3761
+ } | null;
3762
+ position: number | null;
3763
+ createdAt: string;
3764
+ updatedAt: string;
3765
+ countries: string[] | null;
3766
+ } | null;
3767
+ createdAt: string;
3768
+ lineItems: {
3769
+ id: string;
3770
+ cartId: string;
3771
+ quantity: number;
3772
+ createdAt: string;
3773
+ updatedAt: string;
3774
+ productVariant: {
3775
+ id: string;
3776
+ sku: string | null;
3777
+ price: string;
3778
+ originalPrice: string;
3779
+ calculatedPrice: string | null;
3780
+ stock: number | null;
3781
+ depth: number | null;
3782
+ width: number | null;
3783
+ height: number | null;
3784
+ weight: number | null;
3785
+ images: string[];
3786
+ digital: string[] | null;
3787
+ shippable: boolean;
3788
+ externalId: string | null;
3789
+ product: {
3790
+ id: string;
3791
+ name: string;
3792
+ slug: string;
3793
+ active: boolean | null;
3794
+ images: string[];
3795
+ badge: {
3796
+ content?: string | undefined;
3797
+ backgroundColor?: string | undefined;
3798
+ textColor?: string | undefined;
3799
+ } | null;
3800
+ storeId: string;
3801
+ categoryId: string | null;
3802
+ summary: string | null;
3803
+ createdAt: string;
3804
+ updatedAt: string;
3805
+ productTaxRate: {
3806
+ productId: string;
3807
+ taxRateId: string;
3808
+ taxRate: {
3809
+ id: string;
3810
+ storeId: string;
3811
+ name: string;
3812
+ rate: string;
3813
+ createdAt: string;
3814
+ updatedAt: string;
3815
+ };
3816
+ createdAt: string;
3817
+ updatedAt: string;
3818
+ } | null;
3819
+ flags: {
3820
+ gold?: boolean | null | undefined;
3821
+ } | null;
3822
+ type: "product" | "bundle";
3823
+ bundleDiscountPercentage: string | null;
3824
+ productCollections: {
3825
+ collection: {
3826
+ createdAt: string;
3827
+ description: any;
3828
+ id: string;
3829
+ image: string | null;
3830
+ name: string;
3831
+ slug: string;
3832
+ storeId: string;
3833
+ updatedAt: string;
3834
+ filter: unknown;
3835
+ active: boolean;
3836
+ };
3837
+ collectionId: string;
3838
+ position: string | null;
3839
+ productId: string;
3840
+ }[];
3841
+ bundleProducts: {
3842
+ bundleId: string;
3843
+ variantId: string;
3844
+ quantity: number;
3845
+ position: number;
3846
+ createdAt: string;
3847
+ updatedAt: string;
3848
+ variant: {
3849
+ id: string;
3850
+ sku: string | null;
3851
+ price: string;
3852
+ shippable: boolean;
3853
+ originalPrice: string;
3854
+ calculatedPrice: string | null;
3855
+ stock: number | null;
3856
+ depth: number | null;
3857
+ width: number | null;
3858
+ height: number | null;
3859
+ weight: number | null;
3860
+ images: string[];
3861
+ digital: string[] | null;
3862
+ externalId: string | null;
3863
+ product: {
3864
+ id: string;
3865
+ name: string;
3866
+ slug: string;
3867
+ images: string[];
3868
+ productTaxRate: {
3869
+ taxRate: {
3870
+ rate: string;
3871
+ };
3872
+ } | null;
3873
+ };
3874
+ createdAt: string;
3875
+ productId: string;
3876
+ updatedAt: string;
3877
+ attributes: {
3878
+ checked: boolean | null;
3879
+ key: string;
3880
+ value: string;
3881
+ }[] | null;
3882
+ storeId: string;
3883
+ };
3884
+ }[];
3885
+ };
3886
+ createdAt: string;
3887
+ productId: string;
3888
+ updatedAt: string;
3889
+ combinations: {
3890
+ createdAt: string;
3891
+ updatedAt: string;
3892
+ productVariantId: string;
3893
+ variantValueId: string;
3894
+ variantValue: {
3895
+ id: string;
3896
+ value: string;
3897
+ variantType: {
3898
+ id: string;
3899
+ label: string;
3900
+ productId?: string | null | undefined;
3901
+ createdAt?: string | null | undefined;
3902
+ updatedAt?: string | null | undefined;
3903
+ };
3904
+ variantTypeId?: string | null | undefined;
3905
+ };
3906
+ }[];
3907
+ attributes: {
3908
+ checked: boolean | null;
3909
+ key: string;
3910
+ value: string;
3911
+ }[] | null;
3912
+ storeId: string;
3913
+ prePromotionPrice?: string | null | undefined;
3914
+ };
3915
+ productVariantId: string;
3916
+ subscriptionId: string | null;
3917
+ subscription: {
3918
+ id: string;
3919
+ createdAt: string;
3920
+ updatedAt: string;
3921
+ storeId: string;
3922
+ productId: string;
3923
+ interval: number;
3924
+ cadence: "month" | "week";
3925
+ } | null;
3926
+ }[];
3927
+ updatedAt: string;
3928
+ couponId: string | null;
3929
+ coupon: {
3930
+ type: "fixed" | "percentage";
3931
+ value: string;
3932
+ code: string;
3933
+ startDate: string | null;
3934
+ endDate: string | null;
3935
+ } | null;
3936
+ billingAddress: {
3937
+ id: string;
3938
+ type: "shipping" | "billing" | "merchant";
3939
+ company: string | null;
3940
+ name: string | null;
3941
+ city: string | null;
3942
+ line1: string | null;
3943
+ line2: string | null;
3944
+ postalCode: string | null;
3945
+ state: string | null;
3946
+ country: string | null;
3947
+ phone: string | null;
3948
+ taxId: string | null;
3949
+ createdAt: string;
3950
+ updatedAt: string;
3951
+ } | null;
3952
+ shippingAddress: {
3953
+ id: string;
3954
+ type: "shipping" | "billing" | "merchant";
3955
+ company: string | null;
3956
+ name: string | null;
3957
+ city: string | null;
3958
+ line1: string | null;
3959
+ line2: string | null;
3960
+ postalCode: string | null;
3961
+ state: string | null;
3962
+ country: string | null;
3963
+ phone: string | null;
3964
+ taxId: string | null;
3965
+ createdAt: string;
3966
+ updatedAt: string;
3967
+ } | null;
3968
+ billingAddressId: string | null;
3969
+ shippingAddressId: string | null;
3970
+ stripePaymentIntentId: string | null;
3971
+ checkoutSessionId: string | null;
3972
+ customerId: string | null;
3973
+ customer: {
3974
+ id: string;
3975
+ email: string | null;
3976
+ storeId: string;
3977
+ createdAt: string;
3978
+ updatedAt: string;
3979
+ userId: string | null;
3980
+ user: {
3981
+ id: string;
3982
+ name: string;
3983
+ email: string;
3984
+ } | null;
3985
+ couponId: string | null;
3986
+ coupon: {
3987
+ type: "fixed" | "percentage";
3988
+ value: string;
3989
+ code: string;
3990
+ startDate: string | null;
3991
+ endDate: string | null;
3992
+ } | null;
3993
+ } | null;
3994
+ addonData: {
3995
+ [x: string]: unknown;
3996
+ } | null;
3997
+ freeShippingThreshold: number | null;
3998
+ totalNet: number | null;
3999
+ subtotalNet: number | null;
4000
+ totalGross: number | null;
4001
+ subtotalGross: number | null;
4002
+ total: number | null;
4003
+ subtotal: number | null;
4004
+ totalTax: number | null;
4005
+ taxBreakdown: Record<string, {
4006
+ taxRate: {
4007
+ id: string;
4008
+ storeId: string;
4009
+ name: string;
4010
+ rate: string;
4011
+ createdAt: string;
4012
+ updatedAt: string;
4013
+ };
4014
+ tax: number | null;
4015
+ }> | null;
4016
+ currency: string | null;
4017
+ };
4018
+ externalShipmentId: string | null;
4019
+ stripeDeduplicationId: string | null;
4020
+ } & {
4021
+ orderData: {
4022
+ id: string;
4023
+ storeId: string;
4024
+ shippingId: string | null;
4025
+ shipping: {
4026
+ id: string;
4027
+ storeId: string;
4028
+ name: string;
4029
+ price: string;
4030
+ minShippingTime: number | null;
4031
+ maxShippingTime: number | null;
4032
+ description: string | null;
4033
+ addonId: string | null;
4034
+ shippingAddon: {
4035
+ type: "shipping" | "analytics" | "products" | "invoicing" | "orders";
4036
+ storeId: string;
4037
+ id: string;
4038
+ name: string;
4039
+ createdAt: string;
4040
+ updatedAt: string;
4041
+ } | null;
4042
+ type: "courier" | "parcel" | "pickup_point" | "in_store";
4043
+ addonData: {
4044
+ id: number;
4045
+ name: string;
4046
+ service: "dpd" | "fedex" | "ups" | "gls" | "poczta" | "inpost" | "orlen" | "dhl";
4047
+ } | null;
4048
+ shippingTaxRate: {
4049
+ shippingId: string;
4050
+ taxRateId: string;
4051
+ taxRate: {
4052
+ id: string;
4053
+ storeId: string;
4054
+ name: string;
4055
+ rate: string;
4056
+ createdAt: string;
4057
+ updatedAt: string;
4058
+ };
4059
+ createdAt: string;
4060
+ updatedAt: string;
4061
+ } | null;
4062
+ position: number | null;
4063
+ createdAt: string;
4064
+ updatedAt: string;
4065
+ countries: string[] | null;
4066
+ } | null;
4067
+ createdAt: string;
4068
+ lineItems: {
4069
+ id: string;
4070
+ cartId: string;
4071
+ quantity: number;
4072
+ createdAt: string;
4073
+ updatedAt: string;
4074
+ productVariant: {
4075
+ id: string;
4076
+ sku: string | null;
4077
+ price: string;
4078
+ originalPrice: string;
4079
+ calculatedPrice: string | null;
4080
+ stock: number | null;
4081
+ depth: number | null;
4082
+ width: number | null;
4083
+ height: number | null;
4084
+ weight: number | null;
4085
+ images: string[];
4086
+ digital: string[] | null;
4087
+ shippable: boolean;
4088
+ externalId: string | null;
4089
+ product: {
4090
+ id: string;
4091
+ name: string;
4092
+ slug: string;
4093
+ active: boolean | null;
4094
+ images: string[];
4095
+ badge: {
4096
+ content?: string | undefined;
4097
+ backgroundColor?: string | undefined;
4098
+ textColor?: string | undefined;
4099
+ } | null;
4100
+ storeId: string;
4101
+ categoryId: string | null;
4102
+ summary: string | null;
4103
+ createdAt: string;
4104
+ updatedAt: string;
4105
+ productTaxRate: {
4106
+ productId: string;
4107
+ taxRateId: string;
4108
+ taxRate: {
4109
+ id: string;
4110
+ storeId: string;
4111
+ name: string;
4112
+ rate: string;
4113
+ createdAt: string;
4114
+ updatedAt: string;
4115
+ };
4116
+ createdAt: string;
4117
+ updatedAt: string;
4118
+ } | null;
4119
+ flags: {
4120
+ gold?: boolean | null | undefined;
4121
+ } | null;
4122
+ type: "product" | "bundle";
4123
+ bundleDiscountPercentage: string | null;
4124
+ productCollections: {
4125
+ collection: {
4126
+ createdAt: string;
4127
+ description: any;
4128
+ id: string;
4129
+ image: string | null;
4130
+ name: string;
4131
+ slug: string;
4132
+ storeId: string;
4133
+ updatedAt: string;
4134
+ filter: unknown;
4135
+ active: boolean;
4136
+ };
4137
+ collectionId: string;
4138
+ position: string | null;
4139
+ productId: string;
4140
+ }[];
4141
+ bundleProducts: {
4142
+ bundleId: string;
4143
+ variantId: string;
4144
+ quantity: number;
4145
+ position: number;
4146
+ createdAt: string;
4147
+ updatedAt: string;
4148
+ variant: {
4149
+ id: string;
4150
+ sku: string | null;
4151
+ price: string;
4152
+ shippable: boolean;
4153
+ originalPrice: string;
4154
+ calculatedPrice: string | null;
4155
+ stock: number | null;
4156
+ depth: number | null;
4157
+ width: number | null;
4158
+ height: number | null;
4159
+ weight: number | null;
4160
+ images: string[];
4161
+ digital: string[] | null;
4162
+ externalId: string | null;
4163
+ product: {
4164
+ id: string;
4165
+ name: string;
4166
+ slug: string;
4167
+ images: string[];
4168
+ productTaxRate: {
4169
+ taxRate: {
4170
+ rate: string;
4171
+ };
4172
+ } | null;
4173
+ };
4174
+ createdAt: string;
4175
+ productId: string;
4176
+ updatedAt: string;
4177
+ attributes: {
4178
+ checked: boolean | null;
4179
+ key: string;
4180
+ value: string;
4181
+ }[] | null;
4182
+ storeId: string;
4183
+ };
4184
+ }[];
4185
+ };
4186
+ createdAt: string;
4187
+ productId: string;
4188
+ updatedAt: string;
4189
+ combinations: {
4190
+ createdAt: string;
4191
+ updatedAt: string;
4192
+ productVariantId: string;
4193
+ variantValueId: string;
4194
+ variantValue: {
4195
+ id: string;
4196
+ value: string;
4197
+ variantType: {
4198
+ id: string;
4199
+ label: string;
4200
+ productId?: string | null | undefined;
4201
+ createdAt?: string | null | undefined;
4202
+ updatedAt?: string | null | undefined;
4203
+ };
4204
+ variantTypeId?: string | null | undefined;
4205
+ };
4206
+ }[];
4207
+ attributes: {
4208
+ checked: boolean | null;
4209
+ key: string;
4210
+ value: string;
4211
+ }[] | null;
4212
+ storeId: string;
4213
+ prePromotionPrice?: string | null | undefined;
4214
+ };
4215
+ productVariantId: string;
4216
+ subscriptionId: string | null;
4217
+ subscription: {
4218
+ id: string;
4219
+ createdAt: string;
4220
+ updatedAt: string;
4221
+ storeId: string;
4222
+ productId: string;
4223
+ interval: number;
4224
+ cadence: "month" | "week";
4225
+ } | null;
4226
+ }[];
4227
+ updatedAt: string;
4228
+ couponId: string | null;
4229
+ coupon: {
4230
+ type: "fixed" | "percentage";
4231
+ value: string;
4232
+ code: string;
4233
+ startDate: string | null;
4234
+ endDate: string | null;
4235
+ } | null;
4236
+ billingAddress: {
4237
+ id: string;
4238
+ type: "shipping" | "billing" | "merchant";
4239
+ company: string | null;
4240
+ name: string | null;
4241
+ city: string | null;
4242
+ line1: string | null;
4243
+ line2: string | null;
4244
+ postalCode: string | null;
4245
+ state: string | null;
4246
+ country: string | null;
4247
+ phone: string | null;
4248
+ taxId: string | null;
4249
+ createdAt: string;
4250
+ updatedAt: string;
4251
+ } | null;
4252
+ shippingAddress: {
4253
+ id: string;
4254
+ type: "shipping" | "billing" | "merchant";
4255
+ company: string | null;
4256
+ name: string | null;
4257
+ city: string | null;
4258
+ line1: string | null;
4259
+ line2: string | null;
4260
+ postalCode: string | null;
4261
+ state: string | null;
4262
+ country: string | null;
4263
+ phone: string | null;
4264
+ taxId: string | null;
4265
+ createdAt: string;
4266
+ updatedAt: string;
4267
+ } | null;
4268
+ billingAddressId: string | null;
4269
+ shippingAddressId: string | null;
4270
+ stripePaymentIntentId: string | null;
4271
+ checkoutSessionId: string | null;
4272
+ customerId: string | null;
4273
+ customer: {
4274
+ id: string;
4275
+ email: string | null;
4276
+ storeId: string;
4277
+ createdAt: string;
4278
+ updatedAt: string;
4279
+ userId: string | null;
4280
+ user: {
4281
+ id: string;
4282
+ name: string;
4283
+ email: string;
4284
+ } | null;
4285
+ couponId: string | null;
4286
+ coupon: {
4287
+ type: "fixed" | "percentage";
4288
+ value: string;
4289
+ code: string;
4290
+ startDate: string | null;
4291
+ endDate: string | null;
4292
+ } | null;
4293
+ } | null;
4294
+ addonData: {
4295
+ [x: string]: unknown;
4296
+ } | null;
4297
+ freeShippingThreshold: number | null;
4298
+ totalNet: number | null;
4299
+ subtotalNet: number | null;
4300
+ totalGross: number | null;
4301
+ subtotalGross: number | null;
4302
+ total: number | null;
4303
+ subtotal: number | null;
4304
+ totalTax: number | null;
4305
+ taxBreakdown: Record<string, {
4306
+ taxRate: {
4307
+ id: string;
4308
+ storeId: string;
4309
+ name: string;
4310
+ rate: string;
4311
+ createdAt: string;
4312
+ updatedAt: string;
4313
+ };
4314
+ tax: number | null;
4315
+ }> | null;
4316
+ currency: string | null;
4317
+ };
4318
+ })[];
4319
+ meta: {
4320
+ count: number;
4321
+ };
4322
+ };
4323
+ type APIOrdersBrowseQueryParams = {
4324
+ offset?: number | undefined;
4325
+ limit?: number | undefined;
4326
+ };
4327
+ type APIOrderGetByIdResult = {
4328
+ id: string;
4329
+ createdAt: string;
4330
+ updatedAt: string;
4331
+ status: "created" | "paid" | "processing" | "shipped" | "completed" | "cancelled";
4332
+ environment: "live" | "test";
4333
+ storeId: string;
4334
+ customerId: string | null;
4335
+ lookup: number;
4336
+ cartId: string | null;
4337
+ orderData: {
4338
+ id: string;
4339
+ storeId: string;
4340
+ shippingId: string | null;
4341
+ shipping: {
4342
+ id: string;
4343
+ storeId: string;
4344
+ name: string;
4345
+ price: string;
4346
+ minShippingTime: number | null;
4347
+ maxShippingTime: number | null;
4348
+ description: string | null;
4349
+ addonId: string | null;
4350
+ shippingAddon: {
4351
+ type: "shipping" | "analytics" | "products" | "invoicing" | "orders";
4352
+ storeId: string;
4353
+ id: string;
4354
+ name: string;
4355
+ createdAt: string;
4356
+ updatedAt: string;
4357
+ } | null;
4358
+ type: "courier" | "parcel" | "pickup_point" | "in_store";
4359
+ addonData: {
4360
+ id: number;
4361
+ name: string;
4362
+ service: "dpd" | "fedex" | "ups" | "gls" | "poczta" | "inpost" | "orlen" | "dhl";
4363
+ } | null;
4364
+ shippingTaxRate: {
4365
+ shippingId: string;
4366
+ taxRateId: string;
4367
+ taxRate: {
4368
+ id: string;
4369
+ storeId: string;
4370
+ name: string;
4371
+ rate: string;
4372
+ createdAt: string;
4373
+ updatedAt: string;
4374
+ };
4375
+ createdAt: string;
4376
+ updatedAt: string;
4377
+ } | null;
4378
+ position: number | null;
4379
+ createdAt: string;
4380
+ updatedAt: string;
4381
+ countries: string[] | null;
4382
+ } | null;
4383
+ createdAt: string;
4384
+ lineItems: {
4385
+ id: string;
4386
+ cartId: string;
4387
+ quantity: number;
4388
+ createdAt: string;
4389
+ updatedAt: string;
4390
+ productVariant: {
4391
+ id: string;
4392
+ sku: string | null;
4393
+ price: string;
4394
+ originalPrice: string;
4395
+ calculatedPrice: string | null;
4396
+ stock: number | null;
4397
+ depth: number | null;
4398
+ width: number | null;
4399
+ height: number | null;
4400
+ weight: number | null;
4401
+ images: string[];
4402
+ digital: string[] | null;
4403
+ shippable: boolean;
4404
+ externalId: string | null;
4405
+ product: {
4406
+ id: string;
4407
+ name: string;
4408
+ slug: string;
4409
+ active: boolean | null;
4410
+ images: string[];
4411
+ badge: {
4412
+ content?: string | undefined;
4413
+ backgroundColor?: string | undefined;
4414
+ textColor?: string | undefined;
4415
+ } | null;
4416
+ storeId: string;
4417
+ categoryId: string | null;
4418
+ summary: string | null;
4419
+ createdAt: string;
4420
+ updatedAt: string;
4421
+ productTaxRate: {
4422
+ productId: string;
4423
+ taxRateId: string;
4424
+ taxRate: {
4425
+ id: string;
4426
+ storeId: string;
4427
+ name: string;
4428
+ rate: string;
4429
+ createdAt: string;
4430
+ updatedAt: string;
4431
+ };
4432
+ createdAt: string;
4433
+ updatedAt: string;
4434
+ } | null;
4435
+ flags: {
4436
+ gold?: boolean | null | undefined;
4437
+ } | null;
4438
+ type: "product" | "bundle";
4439
+ bundleDiscountPercentage: string | null;
4440
+ productCollections: {
4441
+ collection: {
4442
+ createdAt: string;
4443
+ description: any;
4444
+ id: string;
4445
+ image: string | null;
4446
+ name: string;
4447
+ slug: string;
4448
+ storeId: string;
4449
+ updatedAt: string;
4450
+ filter: unknown;
4451
+ active: boolean;
4452
+ };
4453
+ collectionId: string;
4454
+ position: string | null;
4455
+ productId: string;
4456
+ }[];
4457
+ bundleProducts: {
4458
+ bundleId: string;
4459
+ variantId: string;
4460
+ quantity: number;
4461
+ position: number;
4462
+ createdAt: string;
4463
+ updatedAt: string;
4464
+ variant: {
4465
+ id: string;
4466
+ sku: string | null;
4467
+ price: string;
4468
+ shippable: boolean;
4469
+ originalPrice: string;
4470
+ calculatedPrice: string | null;
4471
+ stock: number | null;
4472
+ depth: number | null;
4473
+ width: number | null;
4474
+ height: number | null;
4475
+ weight: number | null;
4476
+ images: string[];
4477
+ digital: string[] | null;
4478
+ externalId: string | null;
4479
+ product: {
4480
+ id: string;
4481
+ name: string;
4482
+ slug: string;
4483
+ images: string[];
4484
+ productTaxRate: {
4485
+ taxRate: {
4486
+ rate: string;
4487
+ };
4488
+ } | null;
4489
+ };
4490
+ createdAt: string;
4491
+ productId: string;
4492
+ updatedAt: string;
4493
+ attributes: {
4494
+ checked: boolean | null;
4495
+ key: string;
4496
+ value: string;
4497
+ }[] | null;
4498
+ storeId: string;
4499
+ };
4500
+ }[];
4501
+ };
4502
+ createdAt: string;
4503
+ productId: string;
4504
+ updatedAt: string;
4505
+ combinations: {
4506
+ createdAt: string;
4507
+ updatedAt: string;
4508
+ productVariantId: string;
4509
+ variantValueId: string;
4510
+ variantValue: {
4511
+ id: string;
4512
+ value: string;
4513
+ variantType: {
4514
+ id: string;
4515
+ label: string;
4516
+ productId?: string | null | undefined;
4517
+ createdAt?: string | null | undefined;
4518
+ updatedAt?: string | null | undefined;
4519
+ };
4520
+ variantTypeId?: string | null | undefined;
4521
+ };
4522
+ }[];
4523
+ attributes: {
4524
+ checked: boolean | null;
4525
+ key: string;
4526
+ value: string;
4527
+ }[] | null;
4528
+ storeId: string;
4529
+ prePromotionPrice?: string | null | undefined;
4530
+ };
4531
+ productVariantId: string;
4532
+ subscriptionId: string | null;
4533
+ subscription: {
4534
+ id: string;
4535
+ createdAt: string;
4536
+ updatedAt: string;
4537
+ storeId: string;
4538
+ productId: string;
4539
+ interval: number;
4540
+ cadence: "month" | "week";
4541
+ } | null;
4542
+ }[];
4543
+ updatedAt: string;
4544
+ couponId: string | null;
4545
+ coupon: {
4546
+ type: "fixed" | "percentage";
4547
+ value: string;
4548
+ code: string;
4549
+ startDate: string | null;
4550
+ endDate: string | null;
4551
+ } | null;
4552
+ billingAddress: {
4553
+ id: string;
4554
+ type: "shipping" | "billing" | "merchant";
4555
+ company: string | null;
4556
+ name: string | null;
4557
+ city: string | null;
4558
+ line1: string | null;
4559
+ line2: string | null;
4560
+ postalCode: string | null;
4561
+ state: string | null;
4562
+ country: string | null;
4563
+ phone: string | null;
4564
+ taxId: string | null;
4565
+ createdAt: string;
4566
+ updatedAt: string;
4567
+ } | null;
4568
+ shippingAddress: {
4569
+ id: string;
4570
+ type: "shipping" | "billing" | "merchant";
4571
+ company: string | null;
4572
+ name: string | null;
4573
+ city: string | null;
4574
+ line1: string | null;
4575
+ line2: string | null;
4576
+ postalCode: string | null;
4577
+ state: string | null;
4578
+ country: string | null;
4579
+ phone: string | null;
4580
+ taxId: string | null;
4581
+ createdAt: string;
4582
+ updatedAt: string;
4583
+ } | null;
4584
+ billingAddressId: string | null;
4585
+ shippingAddressId: string | null;
4586
+ stripePaymentIntentId: string | null;
4587
+ checkoutSessionId: string | null;
4588
+ customerId: string | null;
4589
+ customer: {
4590
+ id: string;
4591
+ email: string | null;
4592
+ storeId: string;
4593
+ createdAt: string;
4594
+ updatedAt: string;
4595
+ userId: string | null;
4596
+ user: {
4597
+ id: string;
4598
+ name: string;
4599
+ email: string;
4600
+ } | null;
4601
+ couponId: string | null;
4602
+ coupon: {
4603
+ type: "fixed" | "percentage";
4604
+ value: string;
4605
+ code: string;
4606
+ startDate: string | null;
4607
+ endDate: string | null;
4608
+ } | null;
4609
+ } | null;
4610
+ addonData: {
4611
+ [x: string]: unknown;
4612
+ } | null;
4613
+ freeShippingThreshold: number | null;
4614
+ totalNet: number | null;
4615
+ subtotalNet: number | null;
4616
+ totalGross: number | null;
4617
+ subtotalGross: number | null;
4618
+ total: number | null;
4619
+ subtotal: number | null;
4620
+ totalTax: number | null;
4621
+ taxBreakdown: Record<string, {
4622
+ taxRate: {
4623
+ id: string;
4624
+ storeId: string;
4625
+ name: string;
4626
+ rate: string;
4627
+ createdAt: string;
4628
+ updatedAt: string;
4629
+ };
4630
+ tax: number | null;
4631
+ }> | null;
4632
+ currency: string | null;
4633
+ };
4634
+ externalShipmentId: string | null;
4635
+ stripeDeduplicationId: string | null;
4636
+ activeSubscriptions: {
4637
+ id: string;
4638
+ createdAt: string;
4639
+ updatedAt: string;
4640
+ stripeSubscriptionId: string;
4641
+ storeId: string;
4642
+ productId: string;
4643
+ productVariantId: string;
4644
+ interval: number;
4645
+ cadence: "month" | "week";
4646
+ stripeDeduplicationId: string | null;
4647
+ originalOrderId: string;
4648
+ productSnapshot: unknown;
4649
+ productVariantSnapshot: unknown;
4650
+ shippingSnapshot: unknown;
4651
+ }[];
4652
+ } & {
4653
+ orderData: {
4654
+ id: string;
4655
+ storeId: string;
4656
+ shippingId: string | null;
4657
+ shipping: {
4658
+ id: string;
4659
+ storeId: string;
4660
+ name: string;
4661
+ price: string;
4662
+ minShippingTime: number | null;
4663
+ maxShippingTime: number | null;
4664
+ description: string | null;
4665
+ addonId: string | null;
4666
+ shippingAddon: {
4667
+ type: "shipping" | "analytics" | "products" | "invoicing" | "orders";
4668
+ storeId: string;
4669
+ id: string;
4670
+ name: string;
4671
+ createdAt: string;
4672
+ updatedAt: string;
4673
+ } | null;
4674
+ type: "courier" | "parcel" | "pickup_point" | "in_store";
4675
+ addonData: {
4676
+ id: number;
4677
+ name: string;
4678
+ service: "dpd" | "fedex" | "ups" | "gls" | "poczta" | "inpost" | "orlen" | "dhl";
4679
+ } | null;
4680
+ shippingTaxRate: {
4681
+ shippingId: string;
4682
+ taxRateId: string;
4683
+ taxRate: {
4684
+ id: string;
4685
+ storeId: string;
4686
+ name: string;
4687
+ rate: string;
4688
+ createdAt: string;
4689
+ updatedAt: string;
4690
+ };
4691
+ createdAt: string;
4692
+ updatedAt: string;
4693
+ } | null;
4694
+ position: number | null;
4695
+ createdAt: string;
4696
+ updatedAt: string;
4697
+ countries: string[] | null;
4698
+ } | null;
4699
+ createdAt: string;
4700
+ lineItems: {
4701
+ id: string;
4702
+ cartId: string;
4703
+ quantity: number;
4704
+ createdAt: string;
4705
+ updatedAt: string;
4706
+ productVariant: {
4707
+ id: string;
4708
+ sku: string | null;
4709
+ price: string;
4710
+ originalPrice: string;
4711
+ calculatedPrice: string | null;
4712
+ stock: number | null;
4713
+ depth: number | null;
4714
+ width: number | null;
4715
+ height: number | null;
4716
+ weight: number | null;
4717
+ images: string[];
4718
+ digital: string[] | null;
4719
+ shippable: boolean;
4720
+ externalId: string | null;
4721
+ product: {
4722
+ id: string;
4723
+ name: string;
4724
+ slug: string;
4725
+ active: boolean | null;
4726
+ images: string[];
4727
+ badge: {
4728
+ content?: string | undefined;
4729
+ backgroundColor?: string | undefined;
4730
+ textColor?: string | undefined;
4731
+ } | null;
4732
+ storeId: string;
4733
+ categoryId: string | null;
4734
+ summary: string | null;
4735
+ createdAt: string;
4736
+ updatedAt: string;
4737
+ productTaxRate: {
4738
+ productId: string;
4739
+ taxRateId: string;
4740
+ taxRate: {
4741
+ id: string;
4742
+ storeId: string;
4743
+ name: string;
4744
+ rate: string;
4745
+ createdAt: string;
4746
+ updatedAt: string;
4747
+ };
4748
+ createdAt: string;
4749
+ updatedAt: string;
4750
+ } | null;
4751
+ flags: {
4752
+ gold?: boolean | null | undefined;
4753
+ } | null;
4754
+ type: "product" | "bundle";
4755
+ bundleDiscountPercentage: string | null;
4756
+ productCollections: {
4757
+ collection: {
4758
+ createdAt: string;
4759
+ description: any;
4760
+ id: string;
4761
+ image: string | null;
4762
+ name: string;
4763
+ slug: string;
4764
+ storeId: string;
4765
+ updatedAt: string;
4766
+ filter: unknown;
4767
+ active: boolean;
4768
+ };
4769
+ collectionId: string;
4770
+ position: string | null;
4771
+ productId: string;
4772
+ }[];
4773
+ bundleProducts: {
4774
+ bundleId: string;
4775
+ variantId: string;
4776
+ quantity: number;
4777
+ position: number;
4778
+ createdAt: string;
4779
+ updatedAt: string;
4780
+ variant: {
4781
+ id: string;
4782
+ sku: string | null;
4783
+ price: string;
4784
+ shippable: boolean;
4785
+ originalPrice: string;
4786
+ calculatedPrice: string | null;
4787
+ stock: number | null;
4788
+ depth: number | null;
4789
+ width: number | null;
4790
+ height: number | null;
4791
+ weight: number | null;
4792
+ images: string[];
4793
+ digital: string[] | null;
4794
+ externalId: string | null;
4795
+ product: {
4796
+ id: string;
4797
+ name: string;
4798
+ slug: string;
4799
+ images: string[];
4800
+ productTaxRate: {
4801
+ taxRate: {
4802
+ rate: string;
4803
+ };
4804
+ } | null;
4805
+ };
4806
+ createdAt: string;
4807
+ productId: string;
4808
+ updatedAt: string;
4809
+ attributes: {
4810
+ checked: boolean | null;
4811
+ key: string;
4812
+ value: string;
4813
+ }[] | null;
4814
+ storeId: string;
4815
+ };
4816
+ }[];
4817
+ };
4818
+ createdAt: string;
4819
+ productId: string;
4820
+ updatedAt: string;
4821
+ combinations: {
4822
+ createdAt: string;
4823
+ updatedAt: string;
4824
+ productVariantId: string;
4825
+ variantValueId: string;
4826
+ variantValue: {
4827
+ id: string;
4828
+ value: string;
4829
+ variantType: {
4830
+ id: string;
4831
+ label: string;
4832
+ productId?: string | null | undefined;
4833
+ createdAt?: string | null | undefined;
4834
+ updatedAt?: string | null | undefined;
4835
+ };
4836
+ variantTypeId?: string | null | undefined;
4837
+ };
4838
+ }[];
4839
+ attributes: {
4840
+ checked: boolean | null;
4841
+ key: string;
4842
+ value: string;
4843
+ }[] | null;
4844
+ storeId: string;
4845
+ prePromotionPrice?: string | null | undefined;
4846
+ };
4847
+ productVariantId: string;
4848
+ subscriptionId: string | null;
4849
+ subscription: {
4850
+ id: string;
4851
+ createdAt: string;
4852
+ updatedAt: string;
4853
+ storeId: string;
4854
+ productId: string;
4855
+ interval: number;
4856
+ cadence: "month" | "week";
4857
+ } | null;
4858
+ }[];
4859
+ updatedAt: string;
4860
+ couponId: string | null;
4861
+ coupon: {
4862
+ type: "fixed" | "percentage";
4863
+ value: string;
4864
+ code: string;
4865
+ startDate: string | null;
4866
+ endDate: string | null;
4867
+ } | null;
4868
+ billingAddress: {
4869
+ id: string;
4870
+ type: "shipping" | "billing" | "merchant";
4871
+ company: string | null;
4872
+ name: string | null;
4873
+ city: string | null;
4874
+ line1: string | null;
4875
+ line2: string | null;
4876
+ postalCode: string | null;
4877
+ state: string | null;
4878
+ country: string | null;
4879
+ phone: string | null;
4880
+ taxId: string | null;
4881
+ createdAt: string;
4882
+ updatedAt: string;
4883
+ } | null;
4884
+ shippingAddress: {
4885
+ id: string;
4886
+ type: "shipping" | "billing" | "merchant";
4887
+ company: string | null;
4888
+ name: string | null;
4889
+ city: string | null;
4890
+ line1: string | null;
4891
+ line2: string | null;
4892
+ postalCode: string | null;
4893
+ state: string | null;
4894
+ country: string | null;
4895
+ phone: string | null;
4896
+ taxId: string | null;
4897
+ createdAt: string;
4898
+ updatedAt: string;
4899
+ } | null;
4900
+ billingAddressId: string | null;
4901
+ shippingAddressId: string | null;
4902
+ stripePaymentIntentId: string | null;
4903
+ checkoutSessionId: string | null;
4904
+ customerId: string | null;
4905
+ customer: {
4906
+ id: string;
4907
+ email: string | null;
4908
+ storeId: string;
4909
+ createdAt: string;
4910
+ updatedAt: string;
4911
+ userId: string | null;
4912
+ user: {
4913
+ id: string;
4914
+ name: string;
4915
+ email: string;
4916
+ } | null;
4917
+ couponId: string | null;
4918
+ coupon: {
4919
+ type: "fixed" | "percentage";
4920
+ value: string;
4921
+ code: string;
4922
+ startDate: string | null;
4923
+ endDate: string | null;
4924
+ } | null;
4925
+ } | null;
4926
+ addonData: {
4927
+ [x: string]: unknown;
4928
+ } | null;
4929
+ freeShippingThreshold: number | null;
4930
+ totalNet: number | null;
4931
+ subtotalNet: number | null;
4932
+ totalGross: number | null;
4933
+ subtotalGross: number | null;
4934
+ total: number | null;
4935
+ subtotal: number | null;
4936
+ totalTax: number | null;
4937
+ taxBreakdown: Record<string, {
4938
+ taxRate: {
4939
+ id: string;
4940
+ storeId: string;
4941
+ name: string;
4942
+ rate: string;
4943
+ createdAt: string;
4944
+ updatedAt: string;
4945
+ };
4946
+ tax: number | null;
4947
+ }> | null;
4948
+ currency: string | null;
4949
+ };
4950
+ };
4951
+ type APIOrderGetByIdParams = {
4952
+ id: string;
4953
+ };
3708
4954
 
3709
- export type { APICartAddBody, APICartAddResult, APICartCreateBody, APICartCreateResult, APICartGetResult, APICartRemoveItemParams, APICartRemoveItemResult, APIProductGetByIdParams, APIProductGetByIdResult, APIProductsBrowseParams, APIProductsBrowseResult, JSONContent };
4955
+ export type { APICartAddBody, APICartAddResult, APICartCreateBody, APICartCreateResult, APICartGetResult, APICartRemoveItemQueryParams, APICartRemoveItemResult, APIOrderGetByIdParams, APIOrderGetByIdResult, APIOrdersBrowseQueryParams, APIOrdersBrowseResult, APIProductGetByIdParams, APIProductGetByIdResult, APIProductsBrowseQueryParams, APIProductsBrowseResult, JSONContent };