commerce-kit 0.6.1-experimental.8 → 0.7.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.
@@ -1,4955 +0,0 @@
1
- type JSONContent = Record<string, unknown>;
2
- type APIProductsBrowseResult = {
3
- data: (({
4
- id: string;
5
- name: string;
6
- createdAt: string;
7
- updatedAt: string;
8
- type: "product" | "bundle";
9
- slug: string;
10
- flags: unknown;
11
- active: boolean | null;
12
- storeId: string;
13
- summary: string | null;
14
- images: string[];
15
- badge: unknown;
16
- bundleDiscountPercentage: string | null;
17
- categoryId: string | null;
18
- category: {
19
- id: string;
20
- name: string;
21
- image: string | null;
22
- createdAt: string;
23
- updatedAt: string;
24
- description: JSONContent | null;
25
- slug: string;
26
- active: boolean;
27
- storeId: string | null;
28
- position: string;
29
- parentId: string | null;
30
- } | null;
31
- productTaxRate: {
32
- createdAt: string;
33
- updatedAt: string;
34
- taxRateId: string;
35
- productId: string;
36
- taxRate: {
37
- id: string;
38
- name: string;
39
- createdAt: string;
40
- updatedAt: string;
41
- storeId: string;
42
- rate: string;
43
- };
44
- } | null;
45
- productCollections: {
46
- position: string | null;
47
- productId: string;
48
- collectionId: string;
49
- collection: {
50
- id: string;
51
- name: string;
52
- image: string | null;
53
- createdAt: string;
54
- updatedAt: string;
55
- description: JSONContent | null;
56
- slug: string;
57
- filter: unknown;
58
- active: boolean;
59
- storeId: string;
60
- };
61
- }[];
62
- bundleProducts: {
63
- createdAt: string;
64
- updatedAt: string;
65
- position: number;
66
- bundleId: string;
67
- quantity: number;
68
- variantId: string;
69
- variant: {
70
- id: string;
71
- createdAt: string;
72
- updatedAt: string;
73
- storeId: string;
74
- price: string;
75
- images: string[];
76
- sku: string | null;
77
- calculatedPrice: string | null;
78
- stock: number | null;
79
- depth: number | null;
80
- width: number | null;
81
- height: number | null;
82
- weight: number | null;
83
- digital: string[] | null;
84
- shippable: boolean;
85
- externalId: string | null;
86
- productId: string;
87
- attributes: unknown;
88
- originalPrice: string;
89
- product: {
90
- id: string;
91
- name: string;
92
- slug: string;
93
- images: string[];
94
- productTaxRate: {
95
- createdAt: string;
96
- updatedAt: string;
97
- taxRateId: string;
98
- productId: string;
99
- taxRate: {
100
- id: string;
101
- name: string;
102
- createdAt: string;
103
- updatedAt: string;
104
- storeId: string;
105
- rate: string;
106
- };
107
- } | null;
108
- variants: {
109
- id: string;
110
- createdAt: string;
111
- updatedAt: string;
112
- storeId: string;
113
- price: string;
114
- images: string[];
115
- sku: string | null;
116
- calculatedPrice: string | null;
117
- stock: number | null;
118
- depth: number | null;
119
- width: number | null;
120
- height: number | null;
121
- weight: number | null;
122
- digital: string[] | null;
123
- shippable: boolean;
124
- externalId: string | null;
125
- productId: string;
126
- attributes: unknown;
127
- originalPrice: string;
128
- }[];
129
- };
130
- combinations: {
131
- createdAt: string;
132
- updatedAt: string;
133
- productVariantId: string;
134
- variantValueId: string;
135
- variantValue: {
136
- id: string;
137
- value: string;
138
- colorValue: string | null;
139
- variantType: {
140
- id: string;
141
- type: "string" | "color";
142
- label: string;
143
- };
144
- };
145
- }[];
146
- };
147
- }[];
148
- subscription: {
149
- id: string;
150
- createdAt: string;
151
- updatedAt: string;
152
- storeId: string;
153
- productId: string;
154
- interval: number;
155
- cadence: "month" | "week";
156
- } | null;
157
- variants: {
158
- id: string;
159
- createdAt: string;
160
- updatedAt: string;
161
- storeId: string;
162
- price: string;
163
- images: string[];
164
- sku: string | null;
165
- calculatedPrice: string | null;
166
- stock: number | null;
167
- depth: number | null;
168
- width: number | null;
169
- height: number | null;
170
- weight: number | null;
171
- digital: string[] | null;
172
- shippable: boolean;
173
- externalId: string | null;
174
- productId: string;
175
- attributes: unknown;
176
- originalPrice: string;
177
- combinations: {
178
- createdAt: string;
179
- updatedAt: string;
180
- productVariantId: string;
181
- variantValueId: string;
182
- variantValue: {
183
- id: string;
184
- value: string;
185
- colorValue: string | null;
186
- variantType: {
187
- id: string;
188
- type: "string" | "color";
189
- label: string;
190
- };
191
- };
192
- }[];
193
- }[];
194
- } & {
195
- variants: ({
196
- price: string;
197
- } & {
198
- prePromotionPrice: undefined;
199
- })[];
200
- }) | ({
201
- id: string;
202
- name: string;
203
- createdAt: string;
204
- updatedAt: string;
205
- type: "product" | "bundle";
206
- slug: string;
207
- flags: unknown;
208
- active: boolean | null;
209
- storeId: string;
210
- summary: string | null;
211
- images: string[];
212
- badge: unknown;
213
- bundleDiscountPercentage: string | null;
214
- categoryId: string | null;
215
- category: {
216
- id: string;
217
- name: string;
218
- image: string | null;
219
- createdAt: string;
220
- updatedAt: string;
221
- description: JSONContent | null;
222
- slug: string;
223
- active: boolean;
224
- storeId: string | null;
225
- position: string;
226
- parentId: string | null;
227
- } | null;
228
- productTaxRate: {
229
- createdAt: string;
230
- updatedAt: string;
231
- taxRateId: string;
232
- productId: string;
233
- taxRate: {
234
- id: string;
235
- name: string;
236
- createdAt: string;
237
- updatedAt: string;
238
- storeId: string;
239
- rate: string;
240
- };
241
- } | null;
242
- productCollections: {
243
- position: string | null;
244
- productId: string;
245
- collectionId: string;
246
- collection: {
247
- id: string;
248
- name: string;
249
- image: string | null;
250
- createdAt: string;
251
- updatedAt: string;
252
- description: JSONContent | null;
253
- slug: string;
254
- filter: unknown;
255
- active: boolean;
256
- storeId: string;
257
- };
258
- }[];
259
- bundleProducts: {
260
- createdAt: string;
261
- updatedAt: string;
262
- position: number;
263
- bundleId: string;
264
- quantity: number;
265
- variantId: string;
266
- variant: {
267
- id: string;
268
- createdAt: string;
269
- updatedAt: string;
270
- storeId: string;
271
- price: string;
272
- images: string[];
273
- sku: string | null;
274
- calculatedPrice: string | null;
275
- stock: number | null;
276
- depth: number | null;
277
- width: number | null;
278
- height: number | null;
279
- weight: number | null;
280
- digital: string[] | null;
281
- shippable: boolean;
282
- externalId: string | null;
283
- productId: string;
284
- attributes: unknown;
285
- originalPrice: string;
286
- product: {
287
- id: string;
288
- name: string;
289
- slug: string;
290
- images: string[];
291
- productTaxRate: {
292
- createdAt: string;
293
- updatedAt: string;
294
- taxRateId: string;
295
- productId: string;
296
- taxRate: {
297
- id: string;
298
- name: string;
299
- createdAt: string;
300
- updatedAt: string;
301
- storeId: string;
302
- rate: string;
303
- };
304
- } | null;
305
- variants: {
306
- id: string;
307
- createdAt: string;
308
- updatedAt: string;
309
- storeId: string;
310
- price: string;
311
- images: string[];
312
- sku: string | null;
313
- calculatedPrice: string | null;
314
- stock: number | null;
315
- depth: number | null;
316
- width: number | null;
317
- height: number | null;
318
- weight: number | null;
319
- digital: string[] | null;
320
- shippable: boolean;
321
- externalId: string | null;
322
- productId: string;
323
- attributes: unknown;
324
- originalPrice: string;
325
- }[];
326
- };
327
- combinations: {
328
- createdAt: string;
329
- updatedAt: string;
330
- productVariantId: string;
331
- variantValueId: string;
332
- variantValue: {
333
- id: string;
334
- value: string;
335
- colorValue: string | null;
336
- variantType: {
337
- id: string;
338
- type: "string" | "color";
339
- label: string;
340
- };
341
- };
342
- }[];
343
- };
344
- }[];
345
- subscription: {
346
- id: string;
347
- createdAt: string;
348
- updatedAt: string;
349
- storeId: string;
350
- productId: string;
351
- interval: number;
352
- cadence: "month" | "week";
353
- } | null;
354
- variants: {
355
- id: string;
356
- createdAt: string;
357
- updatedAt: string;
358
- storeId: string;
359
- price: string;
360
- images: string[];
361
- sku: string | null;
362
- calculatedPrice: string | null;
363
- stock: number | null;
364
- depth: number | null;
365
- width: number | null;
366
- height: number | null;
367
- weight: number | null;
368
- digital: string[] | null;
369
- shippable: boolean;
370
- externalId: string | null;
371
- productId: string;
372
- attributes: unknown;
373
- originalPrice: string;
374
- combinations: {
375
- createdAt: string;
376
- updatedAt: string;
377
- productVariantId: string;
378
- variantValueId: string;
379
- variantValue: {
380
- id: string;
381
- value: string;
382
- colorValue: string | null;
383
- variantType: {
384
- id: string;
385
- type: "string" | "color";
386
- label: string;
387
- };
388
- };
389
- }[];
390
- }[];
391
- } & {
392
- variants: ({
393
- price: string;
394
- } & {
395
- prePromotionPrice: undefined;
396
- })[];
397
- }) | ({
398
- id: string;
399
- name: string;
400
- createdAt: string;
401
- updatedAt: string;
402
- type: "product" | "bundle";
403
- slug: string;
404
- flags: unknown;
405
- active: boolean | null;
406
- storeId: string;
407
- summary: string | null;
408
- images: string[];
409
- badge: unknown;
410
- bundleDiscountPercentage: string | null;
411
- categoryId: string | null;
412
- category: {
413
- id: string;
414
- name: string;
415
- image: string | null;
416
- createdAt: string;
417
- updatedAt: string;
418
- description: JSONContent | null;
419
- slug: string;
420
- active: boolean;
421
- storeId: string | null;
422
- position: string;
423
- parentId: string | null;
424
- } | null;
425
- productTaxRate: {
426
- createdAt: string;
427
- updatedAt: string;
428
- taxRateId: string;
429
- productId: string;
430
- taxRate: {
431
- id: string;
432
- name: string;
433
- createdAt: string;
434
- updatedAt: string;
435
- storeId: string;
436
- rate: string;
437
- };
438
- } | null;
439
- productCollections: {
440
- position: string | null;
441
- productId: string;
442
- collectionId: string;
443
- collection: {
444
- id: string;
445
- name: string;
446
- image: string | null;
447
- createdAt: string;
448
- updatedAt: string;
449
- description: JSONContent | null;
450
- slug: string;
451
- filter: unknown;
452
- active: boolean;
453
- storeId: string;
454
- };
455
- }[];
456
- bundleProducts: {
457
- createdAt: string;
458
- updatedAt: string;
459
- position: number;
460
- bundleId: string;
461
- quantity: number;
462
- variantId: string;
463
- variant: {
464
- id: string;
465
- createdAt: string;
466
- updatedAt: string;
467
- storeId: string;
468
- price: string;
469
- images: string[];
470
- sku: string | null;
471
- calculatedPrice: string | null;
472
- stock: number | null;
473
- depth: number | null;
474
- width: number | null;
475
- height: number | null;
476
- weight: number | null;
477
- digital: string[] | null;
478
- shippable: boolean;
479
- externalId: string | null;
480
- productId: string;
481
- attributes: unknown;
482
- originalPrice: string;
483
- product: {
484
- id: string;
485
- name: string;
486
- slug: string;
487
- images: string[];
488
- productTaxRate: {
489
- createdAt: string;
490
- updatedAt: string;
491
- taxRateId: string;
492
- productId: string;
493
- taxRate: {
494
- id: string;
495
- name: string;
496
- createdAt: string;
497
- updatedAt: string;
498
- storeId: string;
499
- rate: string;
500
- };
501
- } | null;
502
- variants: {
503
- id: string;
504
- createdAt: string;
505
- updatedAt: string;
506
- storeId: string;
507
- price: string;
508
- images: string[];
509
- sku: string | null;
510
- calculatedPrice: string | null;
511
- stock: number | null;
512
- depth: number | null;
513
- width: number | null;
514
- height: number | null;
515
- weight: number | null;
516
- digital: string[] | null;
517
- shippable: boolean;
518
- externalId: string | null;
519
- productId: string;
520
- attributes: unknown;
521
- originalPrice: string;
522
- }[];
523
- };
524
- combinations: {
525
- createdAt: string;
526
- updatedAt: string;
527
- productVariantId: string;
528
- variantValueId: string;
529
- variantValue: {
530
- id: string;
531
- value: string;
532
- colorValue: string | null;
533
- variantType: {
534
- id: string;
535
- type: "string" | "color";
536
- label: string;
537
- };
538
- };
539
- }[];
540
- };
541
- }[];
542
- subscription: {
543
- id: string;
544
- createdAt: string;
545
- updatedAt: string;
546
- storeId: string;
547
- productId: string;
548
- interval: number;
549
- cadence: "month" | "week";
550
- } | null;
551
- variants: {
552
- id: string;
553
- createdAt: string;
554
- updatedAt: string;
555
- storeId: string;
556
- price: string;
557
- images: string[];
558
- sku: string | null;
559
- calculatedPrice: string | null;
560
- stock: number | null;
561
- depth: number | null;
562
- width: number | null;
563
- height: number | null;
564
- weight: number | null;
565
- digital: string[] | null;
566
- shippable: boolean;
567
- externalId: string | null;
568
- productId: string;
569
- attributes: unknown;
570
- originalPrice: string;
571
- combinations: {
572
- createdAt: string;
573
- updatedAt: string;
574
- productVariantId: string;
575
- variantValueId: string;
576
- variantValue: {
577
- id: string;
578
- value: string;
579
- colorValue: string | null;
580
- variantType: {
581
- id: string;
582
- type: "string" | "color";
583
- label: string;
584
- };
585
- };
586
- }[];
587
- }[];
588
- } & {
589
- variants: ({
590
- price: string;
591
- } & {
592
- prePromotionPrice: undefined;
593
- })[];
594
- }) | ({
595
- id: string;
596
- name: string;
597
- createdAt: string;
598
- updatedAt: string;
599
- type: "product" | "bundle";
600
- slug: string;
601
- flags: unknown;
602
- active: boolean | null;
603
- storeId: string;
604
- summary: string | null;
605
- images: string[];
606
- badge: unknown;
607
- bundleDiscountPercentage: string | null;
608
- categoryId: string | null;
609
- category: {
610
- id: string;
611
- name: string;
612
- image: string | null;
613
- createdAt: string;
614
- updatedAt: string;
615
- description: JSONContent | null;
616
- slug: string;
617
- active: boolean;
618
- storeId: string | null;
619
- position: string;
620
- parentId: string | null;
621
- } | null;
622
- productTaxRate: {
623
- createdAt: string;
624
- updatedAt: string;
625
- taxRateId: string;
626
- productId: string;
627
- taxRate: {
628
- id: string;
629
- name: string;
630
- createdAt: string;
631
- updatedAt: string;
632
- storeId: string;
633
- rate: string;
634
- };
635
- } | null;
636
- productCollections: {
637
- position: string | null;
638
- productId: string;
639
- collectionId: string;
640
- collection: {
641
- id: string;
642
- name: string;
643
- image: string | null;
644
- createdAt: string;
645
- updatedAt: string;
646
- description: JSONContent | null;
647
- slug: string;
648
- filter: unknown;
649
- active: boolean;
650
- storeId: string;
651
- };
652
- }[];
653
- bundleProducts: {
654
- createdAt: string;
655
- updatedAt: string;
656
- position: number;
657
- bundleId: string;
658
- quantity: number;
659
- variantId: string;
660
- variant: {
661
- id: string;
662
- createdAt: string;
663
- updatedAt: string;
664
- storeId: string;
665
- price: string;
666
- images: string[];
667
- sku: string | null;
668
- calculatedPrice: string | null;
669
- stock: number | null;
670
- depth: number | null;
671
- width: number | null;
672
- height: number | null;
673
- weight: number | null;
674
- digital: string[] | null;
675
- shippable: boolean;
676
- externalId: string | null;
677
- productId: string;
678
- attributes: unknown;
679
- originalPrice: string;
680
- product: {
681
- id: string;
682
- name: string;
683
- slug: string;
684
- images: string[];
685
- productTaxRate: {
686
- createdAt: string;
687
- updatedAt: string;
688
- taxRateId: string;
689
- productId: string;
690
- taxRate: {
691
- id: string;
692
- name: string;
693
- createdAt: string;
694
- updatedAt: string;
695
- storeId: string;
696
- rate: string;
697
- };
698
- } | null;
699
- variants: {
700
- id: string;
701
- createdAt: string;
702
- updatedAt: string;
703
- storeId: string;
704
- price: string;
705
- images: string[];
706
- sku: string | null;
707
- calculatedPrice: string | null;
708
- stock: number | null;
709
- depth: number | null;
710
- width: number | null;
711
- height: number | null;
712
- weight: number | null;
713
- digital: string[] | null;
714
- shippable: boolean;
715
- externalId: string | null;
716
- productId: string;
717
- attributes: unknown;
718
- originalPrice: string;
719
- }[];
720
- };
721
- combinations: {
722
- createdAt: string;
723
- updatedAt: string;
724
- productVariantId: string;
725
- variantValueId: string;
726
- variantValue: {
727
- id: string;
728
- value: string;
729
- colorValue: string | null;
730
- variantType: {
731
- id: string;
732
- type: "string" | "color";
733
- label: string;
734
- };
735
- };
736
- }[];
737
- };
738
- }[];
739
- subscription: {
740
- id: string;
741
- createdAt: string;
742
- updatedAt: string;
743
- storeId: string;
744
- productId: string;
745
- interval: number;
746
- cadence: "month" | "week";
747
- } | null;
748
- variants: {
749
- id: string;
750
- createdAt: string;
751
- updatedAt: string;
752
- storeId: string;
753
- price: string;
754
- images: string[];
755
- sku: string | null;
756
- calculatedPrice: string | null;
757
- stock: number | null;
758
- depth: number | null;
759
- width: number | null;
760
- height: number | null;
761
- weight: number | null;
762
- digital: string[] | null;
763
- shippable: boolean;
764
- externalId: string | null;
765
- productId: string;
766
- attributes: unknown;
767
- originalPrice: string;
768
- combinations: {
769
- createdAt: string;
770
- updatedAt: string;
771
- productVariantId: string;
772
- variantValueId: string;
773
- variantValue: {
774
- id: string;
775
- value: string;
776
- colorValue: string | null;
777
- variantType: {
778
- id: string;
779
- type: "string" | "color";
780
- label: string;
781
- };
782
- };
783
- }[];
784
- }[];
785
- } & {
786
- variants: ({
787
- price: string;
788
- } & {
789
- prePromotionPrice: undefined;
790
- price: string;
791
- })[];
792
- }) | ({
793
- id: string;
794
- name: string;
795
- createdAt: string;
796
- updatedAt: string;
797
- type: "product" | "bundle";
798
- slug: string;
799
- flags: unknown;
800
- active: boolean | null;
801
- storeId: string;
802
- summary: string | null;
803
- images: string[];
804
- badge: unknown;
805
- bundleDiscountPercentage: string | null;
806
- categoryId: string | null;
807
- category: {
808
- id: string;
809
- name: string;
810
- image: string | null;
811
- createdAt: string;
812
- updatedAt: string;
813
- description: JSONContent | null;
814
- slug: string;
815
- active: boolean;
816
- storeId: string | null;
817
- position: string;
818
- parentId: string | null;
819
- } | null;
820
- productTaxRate: {
821
- createdAt: string;
822
- updatedAt: string;
823
- taxRateId: string;
824
- productId: string;
825
- taxRate: {
826
- id: string;
827
- name: string;
828
- createdAt: string;
829
- updatedAt: string;
830
- storeId: string;
831
- rate: string;
832
- };
833
- } | null;
834
- productCollections: {
835
- position: string | null;
836
- productId: string;
837
- collectionId: string;
838
- collection: {
839
- id: string;
840
- name: string;
841
- image: string | null;
842
- createdAt: string;
843
- updatedAt: string;
844
- description: JSONContent | null;
845
- slug: string;
846
- filter: unknown;
847
- active: boolean;
848
- storeId: string;
849
- };
850
- }[];
851
- bundleProducts: {
852
- createdAt: string;
853
- updatedAt: string;
854
- position: number;
855
- bundleId: string;
856
- quantity: number;
857
- variantId: string;
858
- variant: {
859
- id: string;
860
- createdAt: string;
861
- updatedAt: string;
862
- storeId: string;
863
- price: string;
864
- images: string[];
865
- sku: string | null;
866
- calculatedPrice: string | null;
867
- stock: number | null;
868
- depth: number | null;
869
- width: number | null;
870
- height: number | null;
871
- weight: number | null;
872
- digital: string[] | null;
873
- shippable: boolean;
874
- externalId: string | null;
875
- productId: string;
876
- attributes: unknown;
877
- originalPrice: string;
878
- product: {
879
- id: string;
880
- name: string;
881
- slug: string;
882
- images: string[];
883
- productTaxRate: {
884
- createdAt: string;
885
- updatedAt: string;
886
- taxRateId: string;
887
- productId: string;
888
- taxRate: {
889
- id: string;
890
- name: string;
891
- createdAt: string;
892
- updatedAt: string;
893
- storeId: string;
894
- rate: string;
895
- };
896
- } | null;
897
- variants: {
898
- id: string;
899
- createdAt: string;
900
- updatedAt: string;
901
- storeId: string;
902
- price: string;
903
- images: string[];
904
- sku: string | null;
905
- calculatedPrice: string | null;
906
- stock: number | null;
907
- depth: number | null;
908
- width: number | null;
909
- height: number | null;
910
- weight: number | null;
911
- digital: string[] | null;
912
- shippable: boolean;
913
- externalId: string | null;
914
- productId: string;
915
- attributes: unknown;
916
- originalPrice: string;
917
- }[];
918
- };
919
- combinations: {
920
- createdAt: string;
921
- updatedAt: string;
922
- productVariantId: string;
923
- variantValueId: string;
924
- variantValue: {
925
- id: string;
926
- value: string;
927
- colorValue: string | null;
928
- variantType: {
929
- id: string;
930
- type: "string" | "color";
931
- label: string;
932
- };
933
- };
934
- }[];
935
- };
936
- }[];
937
- subscription: {
938
- id: string;
939
- createdAt: string;
940
- updatedAt: string;
941
- storeId: string;
942
- productId: string;
943
- interval: number;
944
- cadence: "month" | "week";
945
- } | null;
946
- variants: {
947
- id: string;
948
- createdAt: string;
949
- updatedAt: string;
950
- storeId: string;
951
- price: string;
952
- images: string[];
953
- sku: string | null;
954
- calculatedPrice: string | null;
955
- stock: number | null;
956
- depth: number | null;
957
- width: number | null;
958
- height: number | null;
959
- weight: number | null;
960
- digital: string[] | null;
961
- shippable: boolean;
962
- externalId: string | null;
963
- productId: string;
964
- attributes: unknown;
965
- originalPrice: string;
966
- combinations: {
967
- createdAt: string;
968
- updatedAt: string;
969
- productVariantId: string;
970
- variantValueId: string;
971
- variantValue: {
972
- id: string;
973
- value: string;
974
- colorValue: string | null;
975
- variantType: {
976
- id: string;
977
- type: "string" | "color";
978
- label: string;
979
- };
980
- };
981
- }[];
982
- }[];
983
- } & {
984
- variants: ({
985
- price: string;
986
- } & {
987
- prePromotionPrice: string | null;
988
- })[];
989
- }))[];
990
- meta: {
991
- count: number;
992
- countActive: number;
993
- countDraft: number;
994
- };
995
- };
996
- type APIProductsBrowseQueryParams = {
997
- offset?: number | undefined;
998
- limit?: number | undefined;
999
- category?: string | undefined;
1000
- query?: string | undefined;
1001
- active?: boolean | undefined;
1002
- excludeBundles?: boolean | undefined;
1003
- orderBy?: "name" | "createdAt" | "price" | undefined;
1004
- orderDirection?: "asc" | "desc" | undefined;
1005
- };
1006
- type APIProductGetByIdResult = ({
1007
- id: string;
1008
- name: string;
1009
- createdAt: string;
1010
- updatedAt: string;
1011
- type: "product" | "bundle";
1012
- slug: string;
1013
- flags: unknown;
1014
- active: boolean | null;
1015
- storeId: string;
1016
- summary: string | null;
1017
- images: string[];
1018
- badge: unknown;
1019
- bundleDiscountPercentage: string | null;
1020
- categoryId: string | null;
1021
- category: {
1022
- id: string;
1023
- name: string;
1024
- image: string | null;
1025
- createdAt: string;
1026
- updatedAt: string;
1027
- description: JSONContent | null;
1028
- slug: string;
1029
- active: boolean;
1030
- storeId: string | null;
1031
- position: string;
1032
- parentId: string | null;
1033
- } | null;
1034
- productTaxRate: {
1035
- createdAt: string;
1036
- updatedAt: string;
1037
- taxRateId: string;
1038
- productId: string;
1039
- taxRate: {
1040
- id: string;
1041
- name: string;
1042
- createdAt: string;
1043
- updatedAt: string;
1044
- storeId: string;
1045
- rate: string;
1046
- };
1047
- } | null;
1048
- productCollections: {
1049
- position: string | null;
1050
- productId: string;
1051
- collectionId: string;
1052
- collection: {
1053
- id: string;
1054
- name: string;
1055
- image: string | null;
1056
- createdAt: string;
1057
- updatedAt: string;
1058
- description: JSONContent | null;
1059
- slug: string;
1060
- filter: unknown;
1061
- active: boolean;
1062
- storeId: string;
1063
- };
1064
- }[];
1065
- bundleProducts: {
1066
- createdAt: string;
1067
- updatedAt: string;
1068
- position: number;
1069
- bundleId: string;
1070
- quantity: number;
1071
- variantId: string;
1072
- variant: {
1073
- id: string;
1074
- createdAt: string;
1075
- updatedAt: string;
1076
- storeId: string;
1077
- price: string;
1078
- images: string[];
1079
- sku: string | null;
1080
- calculatedPrice: string | null;
1081
- stock: number | null;
1082
- depth: number | null;
1083
- width: number | null;
1084
- height: number | null;
1085
- weight: number | null;
1086
- digital: string[] | null;
1087
- shippable: boolean;
1088
- externalId: string | null;
1089
- productId: string;
1090
- attributes: unknown;
1091
- originalPrice: string;
1092
- product: {
1093
- id: string;
1094
- name: string;
1095
- slug: string;
1096
- images: string[];
1097
- productTaxRate: {
1098
- createdAt: string;
1099
- updatedAt: string;
1100
- taxRateId: string;
1101
- productId: string;
1102
- taxRate: {
1103
- id: string;
1104
- name: string;
1105
- createdAt: string;
1106
- updatedAt: string;
1107
- storeId: string;
1108
- rate: string;
1109
- };
1110
- } | null;
1111
- variants: {
1112
- id: string;
1113
- createdAt: string;
1114
- updatedAt: string;
1115
- storeId: string;
1116
- price: string;
1117
- images: string[];
1118
- sku: string | null;
1119
- calculatedPrice: string | null;
1120
- stock: number | null;
1121
- depth: number | null;
1122
- width: number | null;
1123
- height: number | null;
1124
- weight: number | null;
1125
- digital: string[] | null;
1126
- shippable: boolean;
1127
- externalId: string | null;
1128
- productId: string;
1129
- attributes: unknown;
1130
- originalPrice: string;
1131
- }[];
1132
- };
1133
- combinations: {
1134
- createdAt: string;
1135
- updatedAt: string;
1136
- productVariantId: string;
1137
- variantValueId: string;
1138
- variantValue: {
1139
- id: string;
1140
- value: string;
1141
- colorValue: string | null;
1142
- variantType: {
1143
- id: string;
1144
- type: "string" | "color";
1145
- label: string;
1146
- };
1147
- };
1148
- }[];
1149
- };
1150
- }[];
1151
- subscription: {
1152
- id: string;
1153
- createdAt: string;
1154
- updatedAt: string;
1155
- storeId: string;
1156
- productId: string;
1157
- interval: number;
1158
- cadence: "month" | "week";
1159
- } | null;
1160
- variantsTypes: {
1161
- id: string;
1162
- type: "string" | "color";
1163
- label: string;
1164
- variantValues: {
1165
- id: string;
1166
- value: string;
1167
- position: number | null;
1168
- colorValue: string | null;
1169
- }[];
1170
- }[];
1171
- variants: {
1172
- id: string;
1173
- createdAt: string;
1174
- updatedAt: string;
1175
- storeId: string;
1176
- price: string;
1177
- images: string[];
1178
- sku: string | null;
1179
- calculatedPrice: string | null;
1180
- stock: number | null;
1181
- depth: number | null;
1182
- width: number | null;
1183
- height: number | null;
1184
- weight: number | null;
1185
- digital: string[] | null;
1186
- shippable: boolean;
1187
- externalId: string | null;
1188
- productId: string;
1189
- attributes: unknown;
1190
- originalPrice: string;
1191
- combinations: {
1192
- createdAt: string;
1193
- updatedAt: string;
1194
- productVariantId: string;
1195
- variantValueId: string;
1196
- variantValue: {
1197
- id: string;
1198
- value: string;
1199
- position: number | null;
1200
- colorValue: string | null;
1201
- variantType: {
1202
- id: string;
1203
- type: "string" | "color";
1204
- label: string;
1205
- };
1206
- };
1207
- }[];
1208
- }[];
1209
- } & {
1210
- variants: ({
1211
- price: string;
1212
- } & {
1213
- prePromotionPrice: undefined;
1214
- })[];
1215
- }) | ({
1216
- id: string;
1217
- name: string;
1218
- createdAt: string;
1219
- updatedAt: string;
1220
- type: "product" | "bundle";
1221
- slug: string;
1222
- flags: unknown;
1223
- active: boolean | null;
1224
- storeId: string;
1225
- summary: string | null;
1226
- images: string[];
1227
- badge: unknown;
1228
- bundleDiscountPercentage: string | null;
1229
- categoryId: string | null;
1230
- category: {
1231
- id: string;
1232
- name: string;
1233
- image: string | null;
1234
- createdAt: string;
1235
- updatedAt: string;
1236
- description: JSONContent | null;
1237
- slug: string;
1238
- active: boolean;
1239
- storeId: string | null;
1240
- position: string;
1241
- parentId: string | null;
1242
- } | null;
1243
- productTaxRate: {
1244
- createdAt: string;
1245
- updatedAt: string;
1246
- taxRateId: string;
1247
- productId: string;
1248
- taxRate: {
1249
- id: string;
1250
- name: string;
1251
- createdAt: string;
1252
- updatedAt: string;
1253
- storeId: string;
1254
- rate: string;
1255
- };
1256
- } | null;
1257
- productCollections: {
1258
- position: string | null;
1259
- productId: string;
1260
- collectionId: string;
1261
- collection: {
1262
- id: string;
1263
- name: string;
1264
- image: string | null;
1265
- createdAt: string;
1266
- updatedAt: string;
1267
- description: JSONContent | null;
1268
- slug: string;
1269
- filter: unknown;
1270
- active: boolean;
1271
- storeId: string;
1272
- };
1273
- }[];
1274
- bundleProducts: {
1275
- createdAt: string;
1276
- updatedAt: string;
1277
- position: number;
1278
- bundleId: string;
1279
- quantity: number;
1280
- variantId: string;
1281
- variant: {
1282
- id: string;
1283
- createdAt: string;
1284
- updatedAt: string;
1285
- storeId: string;
1286
- price: string;
1287
- images: string[];
1288
- sku: string | null;
1289
- calculatedPrice: string | null;
1290
- stock: number | null;
1291
- depth: number | null;
1292
- width: number | null;
1293
- height: number | null;
1294
- weight: number | null;
1295
- digital: string[] | null;
1296
- shippable: boolean;
1297
- externalId: string | null;
1298
- productId: string;
1299
- attributes: unknown;
1300
- originalPrice: string;
1301
- product: {
1302
- id: string;
1303
- name: string;
1304
- slug: string;
1305
- images: string[];
1306
- productTaxRate: {
1307
- createdAt: string;
1308
- updatedAt: string;
1309
- taxRateId: string;
1310
- productId: string;
1311
- taxRate: {
1312
- id: string;
1313
- name: string;
1314
- createdAt: string;
1315
- updatedAt: string;
1316
- storeId: string;
1317
- rate: string;
1318
- };
1319
- } | null;
1320
- variants: {
1321
- id: string;
1322
- createdAt: string;
1323
- updatedAt: string;
1324
- storeId: string;
1325
- price: string;
1326
- images: string[];
1327
- sku: string | null;
1328
- calculatedPrice: string | null;
1329
- stock: number | null;
1330
- depth: number | null;
1331
- width: number | null;
1332
- height: number | null;
1333
- weight: number | null;
1334
- digital: string[] | null;
1335
- shippable: boolean;
1336
- externalId: string | null;
1337
- productId: string;
1338
- attributes: unknown;
1339
- originalPrice: string;
1340
- }[];
1341
- };
1342
- combinations: {
1343
- createdAt: string;
1344
- updatedAt: string;
1345
- productVariantId: string;
1346
- variantValueId: string;
1347
- variantValue: {
1348
- id: string;
1349
- value: string;
1350
- colorValue: string | null;
1351
- variantType: {
1352
- id: string;
1353
- type: "string" | "color";
1354
- label: string;
1355
- };
1356
- };
1357
- }[];
1358
- };
1359
- }[];
1360
- subscription: {
1361
- id: string;
1362
- createdAt: string;
1363
- updatedAt: string;
1364
- storeId: string;
1365
- productId: string;
1366
- interval: number;
1367
- cadence: "month" | "week";
1368
- } | null;
1369
- variantsTypes: {
1370
- id: string;
1371
- type: "string" | "color";
1372
- label: string;
1373
- variantValues: {
1374
- id: string;
1375
- value: string;
1376
- position: number | null;
1377
- colorValue: string | null;
1378
- }[];
1379
- }[];
1380
- variants: {
1381
- id: string;
1382
- createdAt: string;
1383
- updatedAt: string;
1384
- storeId: string;
1385
- price: string;
1386
- images: string[];
1387
- sku: string | null;
1388
- calculatedPrice: string | null;
1389
- stock: number | null;
1390
- depth: number | null;
1391
- width: number | null;
1392
- height: number | null;
1393
- weight: number | null;
1394
- digital: string[] | null;
1395
- shippable: boolean;
1396
- externalId: string | null;
1397
- productId: string;
1398
- attributes: unknown;
1399
- originalPrice: string;
1400
- combinations: {
1401
- createdAt: string;
1402
- updatedAt: string;
1403
- productVariantId: string;
1404
- variantValueId: string;
1405
- variantValue: {
1406
- id: string;
1407
- value: string;
1408
- position: number | null;
1409
- colorValue: string | null;
1410
- variantType: {
1411
- id: string;
1412
- type: "string" | "color";
1413
- label: string;
1414
- };
1415
- };
1416
- }[];
1417
- }[];
1418
- } & {
1419
- variants: ({
1420
- price: string;
1421
- } & {
1422
- prePromotionPrice: string | null;
1423
- })[];
1424
- });
1425
- type APIProductGetByIdParams = {
1426
- idOrSlug: string;
1427
- };
1428
- type APICartGetResult = {
1429
- lineItems: {
1430
- productVariant: ({
1431
- storeId: string | null;
1432
- product: {
1433
- bundleProducts: {
1434
- variant: {
1435
- storeId: string | null;
1436
- product: {
1437
- productTaxRate: {
1438
- taxRate: {
1439
- rate: string;
1440
- };
1441
- } | null;
1442
- id: string;
1443
- name: string;
1444
- slug: string;
1445
- images: string[];
1446
- };
1447
- id: string;
1448
- createdAt: string;
1449
- updatedAt: string;
1450
- price: string;
1451
- images: string[];
1452
- sku: string | null;
1453
- calculatedPrice: string | null;
1454
- stock: number | null;
1455
- depth: number | null;
1456
- width: number | null;
1457
- height: number | null;
1458
- weight: number | null;
1459
- digital: string[] | null;
1460
- shippable: boolean;
1461
- externalId: string | null;
1462
- productId: string;
1463
- attributes: unknown;
1464
- originalPrice: string;
1465
- };
1466
- createdAt: string;
1467
- updatedAt: string;
1468
- position: number;
1469
- bundleId: string;
1470
- quantity: number;
1471
- variantId: string;
1472
- }[];
1473
- id: string;
1474
- name: string;
1475
- createdAt: string;
1476
- updatedAt: string;
1477
- type: "product" | "bundle";
1478
- slug: string;
1479
- flags: unknown;
1480
- active: boolean | null;
1481
- storeId: string;
1482
- summary: string | null;
1483
- images: string[];
1484
- badge: unknown;
1485
- bundleDiscountPercentage: string | null;
1486
- categoryId: string | null;
1487
- productTaxRate: {
1488
- createdAt: string;
1489
- updatedAt: string;
1490
- taxRateId: string;
1491
- productId: string;
1492
- taxRate: {
1493
- id: string;
1494
- name: string;
1495
- createdAt: string;
1496
- updatedAt: string;
1497
- storeId: string;
1498
- rate: string;
1499
- };
1500
- } | null;
1501
- productCollections: {
1502
- position: string | null;
1503
- productId: string;
1504
- collectionId: string;
1505
- collection: {
1506
- id: string;
1507
- name: string;
1508
- image: string | null;
1509
- createdAt: string;
1510
- updatedAt: string;
1511
- description: JSONContent | null;
1512
- slug: string;
1513
- filter: unknown;
1514
- active: boolean;
1515
- storeId: string;
1516
- };
1517
- }[];
1518
- };
1519
- id: string;
1520
- createdAt: string;
1521
- updatedAt: string;
1522
- price: string;
1523
- images: string[];
1524
- sku: string | null;
1525
- calculatedPrice: string | null;
1526
- stock: number | null;
1527
- depth: number | null;
1528
- width: number | null;
1529
- height: number | null;
1530
- weight: number | null;
1531
- digital: string[] | null;
1532
- shippable: boolean;
1533
- externalId: string | null;
1534
- productId: string;
1535
- attributes: unknown;
1536
- originalPrice: string;
1537
- combinations: {
1538
- createdAt: string;
1539
- updatedAt: string;
1540
- productVariantId: string;
1541
- variantValueId: string;
1542
- variantValue: {
1543
- id: string;
1544
- value: string;
1545
- variantType: {
1546
- id: string;
1547
- label: string;
1548
- };
1549
- };
1550
- }[];
1551
- } & {
1552
- price: string;
1553
- } & {
1554
- prePromotionPrice: undefined;
1555
- }) | ({
1556
- storeId: string | null;
1557
- product: {
1558
- bundleProducts: {
1559
- variant: {
1560
- storeId: string | null;
1561
- product: {
1562
- productTaxRate: {
1563
- taxRate: {
1564
- rate: string;
1565
- };
1566
- } | null;
1567
- id: string;
1568
- name: string;
1569
- slug: string;
1570
- images: string[];
1571
- };
1572
- id: string;
1573
- createdAt: string;
1574
- updatedAt: string;
1575
- price: string;
1576
- images: string[];
1577
- sku: string | null;
1578
- calculatedPrice: string | null;
1579
- stock: number | null;
1580
- depth: number | null;
1581
- width: number | null;
1582
- height: number | null;
1583
- weight: number | null;
1584
- digital: string[] | null;
1585
- shippable: boolean;
1586
- externalId: string | null;
1587
- productId: string;
1588
- attributes: unknown;
1589
- originalPrice: string;
1590
- };
1591
- createdAt: string;
1592
- updatedAt: string;
1593
- position: number;
1594
- bundleId: string;
1595
- quantity: number;
1596
- variantId: string;
1597
- }[];
1598
- id: string;
1599
- name: string;
1600
- createdAt: string;
1601
- updatedAt: string;
1602
- type: "product" | "bundle";
1603
- slug: string;
1604
- flags: unknown;
1605
- active: boolean | null;
1606
- storeId: string;
1607
- summary: string | null;
1608
- images: string[];
1609
- badge: unknown;
1610
- bundleDiscountPercentage: string | null;
1611
- categoryId: string | null;
1612
- productTaxRate: {
1613
- createdAt: string;
1614
- updatedAt: string;
1615
- taxRateId: string;
1616
- productId: string;
1617
- taxRate: {
1618
- id: string;
1619
- name: string;
1620
- createdAt: string;
1621
- updatedAt: string;
1622
- storeId: string;
1623
- rate: string;
1624
- };
1625
- } | null;
1626
- productCollections: {
1627
- position: string | null;
1628
- productId: string;
1629
- collectionId: string;
1630
- collection: {
1631
- id: string;
1632
- name: string;
1633
- image: string | null;
1634
- createdAt: string;
1635
- updatedAt: string;
1636
- description: JSONContent | null;
1637
- slug: string;
1638
- filter: unknown;
1639
- active: boolean;
1640
- storeId: string;
1641
- };
1642
- }[];
1643
- };
1644
- id: string;
1645
- createdAt: string;
1646
- updatedAt: string;
1647
- price: string;
1648
- images: string[];
1649
- sku: string | null;
1650
- calculatedPrice: string | null;
1651
- stock: number | null;
1652
- depth: number | null;
1653
- width: number | null;
1654
- height: number | null;
1655
- weight: number | null;
1656
- digital: string[] | null;
1657
- shippable: boolean;
1658
- externalId: string | null;
1659
- productId: string;
1660
- attributes: unknown;
1661
- originalPrice: string;
1662
- combinations: {
1663
- createdAt: string;
1664
- updatedAt: string;
1665
- productVariantId: string;
1666
- variantValueId: string;
1667
- variantValue: {
1668
- id: string;
1669
- value: string;
1670
- variantType: {
1671
- id: string;
1672
- label: string;
1673
- };
1674
- };
1675
- }[];
1676
- } & {
1677
- price: string;
1678
- } & {
1679
- prePromotionPrice: undefined;
1680
- }) | ({
1681
- storeId: string | null;
1682
- product: {
1683
- bundleProducts: {
1684
- variant: {
1685
- storeId: string | null;
1686
- product: {
1687
- productTaxRate: {
1688
- taxRate: {
1689
- rate: string;
1690
- };
1691
- } | null;
1692
- id: string;
1693
- name: string;
1694
- slug: string;
1695
- images: string[];
1696
- };
1697
- id: string;
1698
- createdAt: string;
1699
- updatedAt: string;
1700
- price: string;
1701
- images: string[];
1702
- sku: string | null;
1703
- calculatedPrice: string | null;
1704
- stock: number | null;
1705
- depth: number | null;
1706
- width: number | null;
1707
- height: number | null;
1708
- weight: number | null;
1709
- digital: string[] | null;
1710
- shippable: boolean;
1711
- externalId: string | null;
1712
- productId: string;
1713
- attributes: unknown;
1714
- originalPrice: string;
1715
- };
1716
- createdAt: string;
1717
- updatedAt: string;
1718
- position: number;
1719
- bundleId: string;
1720
- quantity: number;
1721
- variantId: string;
1722
- }[];
1723
- id: string;
1724
- name: string;
1725
- createdAt: string;
1726
- updatedAt: string;
1727
- type: "product" | "bundle";
1728
- slug: string;
1729
- flags: unknown;
1730
- active: boolean | null;
1731
- storeId: string;
1732
- summary: string | null;
1733
- images: string[];
1734
- badge: unknown;
1735
- bundleDiscountPercentage: string | null;
1736
- categoryId: string | null;
1737
- productTaxRate: {
1738
- createdAt: string;
1739
- updatedAt: string;
1740
- taxRateId: string;
1741
- productId: string;
1742
- taxRate: {
1743
- id: string;
1744
- name: string;
1745
- createdAt: string;
1746
- updatedAt: string;
1747
- storeId: string;
1748
- rate: string;
1749
- };
1750
- } | null;
1751
- productCollections: {
1752
- position: string | null;
1753
- productId: string;
1754
- collectionId: string;
1755
- collection: {
1756
- id: string;
1757
- name: string;
1758
- image: string | null;
1759
- createdAt: string;
1760
- updatedAt: string;
1761
- description: JSONContent | null;
1762
- slug: string;
1763
- filter: unknown;
1764
- active: boolean;
1765
- storeId: string;
1766
- };
1767
- }[];
1768
- };
1769
- id: string;
1770
- createdAt: string;
1771
- updatedAt: string;
1772
- price: string;
1773
- images: string[];
1774
- sku: string | null;
1775
- calculatedPrice: string | null;
1776
- stock: number | null;
1777
- depth: number | null;
1778
- width: number | null;
1779
- height: number | null;
1780
- weight: number | null;
1781
- digital: string[] | null;
1782
- shippable: boolean;
1783
- externalId: string | null;
1784
- productId: string;
1785
- attributes: unknown;
1786
- originalPrice: string;
1787
- combinations: {
1788
- createdAt: string;
1789
- updatedAt: string;
1790
- productVariantId: string;
1791
- variantValueId: string;
1792
- variantValue: {
1793
- id: string;
1794
- value: string;
1795
- variantType: {
1796
- id: string;
1797
- label: string;
1798
- };
1799
- };
1800
- }[];
1801
- } & {
1802
- price: string;
1803
- } & {
1804
- prePromotionPrice: undefined;
1805
- }) | ({
1806
- storeId: string | null;
1807
- product: {
1808
- bundleProducts: {
1809
- variant: {
1810
- storeId: string | null;
1811
- product: {
1812
- productTaxRate: {
1813
- taxRate: {
1814
- rate: string;
1815
- };
1816
- } | null;
1817
- id: string;
1818
- name: string;
1819
- slug: string;
1820
- images: string[];
1821
- };
1822
- id: string;
1823
- createdAt: string;
1824
- updatedAt: string;
1825
- price: string;
1826
- images: string[];
1827
- sku: string | null;
1828
- calculatedPrice: string | null;
1829
- stock: number | null;
1830
- depth: number | null;
1831
- width: number | null;
1832
- height: number | null;
1833
- weight: number | null;
1834
- digital: string[] | null;
1835
- shippable: boolean;
1836
- externalId: string | null;
1837
- productId: string;
1838
- attributes: unknown;
1839
- originalPrice: string;
1840
- };
1841
- createdAt: string;
1842
- updatedAt: string;
1843
- position: number;
1844
- bundleId: string;
1845
- quantity: number;
1846
- variantId: string;
1847
- }[];
1848
- id: string;
1849
- name: string;
1850
- createdAt: string;
1851
- updatedAt: string;
1852
- type: "product" | "bundle";
1853
- slug: string;
1854
- flags: unknown;
1855
- active: boolean | null;
1856
- storeId: string;
1857
- summary: string | null;
1858
- images: string[];
1859
- badge: unknown;
1860
- bundleDiscountPercentage: string | null;
1861
- categoryId: string | null;
1862
- productTaxRate: {
1863
- createdAt: string;
1864
- updatedAt: string;
1865
- taxRateId: string;
1866
- productId: string;
1867
- taxRate: {
1868
- id: string;
1869
- name: string;
1870
- createdAt: string;
1871
- updatedAt: string;
1872
- storeId: string;
1873
- rate: string;
1874
- };
1875
- } | null;
1876
- productCollections: {
1877
- position: string | null;
1878
- productId: string;
1879
- collectionId: string;
1880
- collection: {
1881
- id: string;
1882
- name: string;
1883
- image: string | null;
1884
- createdAt: string;
1885
- updatedAt: string;
1886
- description: JSONContent | null;
1887
- slug: string;
1888
- filter: unknown;
1889
- active: boolean;
1890
- storeId: string;
1891
- };
1892
- }[];
1893
- };
1894
- id: string;
1895
- createdAt: string;
1896
- updatedAt: string;
1897
- price: string;
1898
- images: string[];
1899
- sku: string | null;
1900
- calculatedPrice: string | null;
1901
- stock: number | null;
1902
- depth: number | null;
1903
- width: number | null;
1904
- height: number | null;
1905
- weight: number | null;
1906
- digital: string[] | null;
1907
- shippable: boolean;
1908
- externalId: string | null;
1909
- productId: string;
1910
- attributes: unknown;
1911
- originalPrice: string;
1912
- combinations: {
1913
- createdAt: string;
1914
- updatedAt: string;
1915
- productVariantId: string;
1916
- variantValueId: string;
1917
- variantValue: {
1918
- id: string;
1919
- value: string;
1920
- variantType: {
1921
- id: string;
1922
- label: string;
1923
- };
1924
- };
1925
- }[];
1926
- } & {
1927
- price: string;
1928
- } & {
1929
- prePromotionPrice: undefined;
1930
- price: string;
1931
- }) | ({
1932
- storeId: string | null;
1933
- product: {
1934
- bundleProducts: {
1935
- variant: {
1936
- storeId: string | null;
1937
- product: {
1938
- productTaxRate: {
1939
- taxRate: {
1940
- rate: string;
1941
- };
1942
- } | null;
1943
- id: string;
1944
- name: string;
1945
- slug: string;
1946
- images: string[];
1947
- };
1948
- id: string;
1949
- createdAt: string;
1950
- updatedAt: string;
1951
- price: string;
1952
- images: string[];
1953
- sku: string | null;
1954
- calculatedPrice: string | null;
1955
- stock: number | null;
1956
- depth: number | null;
1957
- width: number | null;
1958
- height: number | null;
1959
- weight: number | null;
1960
- digital: string[] | null;
1961
- shippable: boolean;
1962
- externalId: string | null;
1963
- productId: string;
1964
- attributes: unknown;
1965
- originalPrice: string;
1966
- };
1967
- createdAt: string;
1968
- updatedAt: string;
1969
- position: number;
1970
- bundleId: string;
1971
- quantity: number;
1972
- variantId: string;
1973
- }[];
1974
- id: string;
1975
- name: string;
1976
- createdAt: string;
1977
- updatedAt: string;
1978
- type: "product" | "bundle";
1979
- slug: string;
1980
- flags: unknown;
1981
- active: boolean | null;
1982
- storeId: string;
1983
- summary: string | null;
1984
- images: string[];
1985
- badge: unknown;
1986
- bundleDiscountPercentage: string | null;
1987
- categoryId: string | null;
1988
- productTaxRate: {
1989
- createdAt: string;
1990
- updatedAt: string;
1991
- taxRateId: string;
1992
- productId: string;
1993
- taxRate: {
1994
- id: string;
1995
- name: string;
1996
- createdAt: string;
1997
- updatedAt: string;
1998
- storeId: string;
1999
- rate: string;
2000
- };
2001
- } | null;
2002
- productCollections: {
2003
- position: string | null;
2004
- productId: string;
2005
- collectionId: string;
2006
- collection: {
2007
- id: string;
2008
- name: string;
2009
- image: string | null;
2010
- createdAt: string;
2011
- updatedAt: string;
2012
- description: JSONContent | null;
2013
- slug: string;
2014
- filter: unknown;
2015
- active: boolean;
2016
- storeId: string;
2017
- };
2018
- }[];
2019
- };
2020
- id: string;
2021
- createdAt: string;
2022
- updatedAt: string;
2023
- price: string;
2024
- images: string[];
2025
- sku: string | null;
2026
- calculatedPrice: string | null;
2027
- stock: number | null;
2028
- depth: number | null;
2029
- width: number | null;
2030
- height: number | null;
2031
- weight: number | null;
2032
- digital: string[] | null;
2033
- shippable: boolean;
2034
- externalId: string | null;
2035
- productId: string;
2036
- attributes: unknown;
2037
- originalPrice: string;
2038
- combinations: {
2039
- createdAt: string;
2040
- updatedAt: string;
2041
- productVariantId: string;
2042
- variantValueId: string;
2043
- variantValue: {
2044
- id: string;
2045
- value: string;
2046
- variantType: {
2047
- id: string;
2048
- label: string;
2049
- };
2050
- };
2051
- }[];
2052
- } & {
2053
- price: string;
2054
- } & {
2055
- prePromotionPrice: string | null;
2056
- });
2057
- id: string;
2058
- createdAt: string;
2059
- updatedAt: string;
2060
- cartId: string;
2061
- quantity: number;
2062
- productVariantId: string;
2063
- subscriptionId: string | null;
2064
- subscription: {
2065
- id: string;
2066
- createdAt: string;
2067
- updatedAt: string;
2068
- storeId: string;
2069
- productId: string;
2070
- interval: number;
2071
- cadence: "month" | "week";
2072
- } | null;
2073
- }[];
2074
- id: string;
2075
- createdAt: string;
2076
- updatedAt: string;
2077
- storeId: string;
2078
- addonData: Record<string, unknown> | null | undefined;
2079
- couponId: string | null;
2080
- customerId: string | null;
2081
- stripePaymentIntentId: string | null;
2082
- checkoutSessionId: string | null;
2083
- shippingId: string | null;
2084
- shippingAddressId: string | null;
2085
- billingAddressId: string | null;
2086
- shipping: {
2087
- id: string;
2088
- name: string;
2089
- createdAt: string;
2090
- updatedAt: string;
2091
- type: "courier" | "parcel" | "pickup_point" | "in_store";
2092
- description: string | null;
2093
- storeId: string;
2094
- price: string;
2095
- minShippingTime: number | null;
2096
- maxShippingTime: number | null;
2097
- position: number | null;
2098
- addonId: string | null;
2099
- addonData: unknown;
2100
- countries: string[] | null;
2101
- shippingAddon: {
2102
- id: string;
2103
- name: string;
2104
- createdAt: string;
2105
- updatedAt: string;
2106
- type: "shipping" | "analytics" | "products" | "invoicing" | "orders";
2107
- storeId: string;
2108
- } | null;
2109
- shippingTaxRate: {
2110
- createdAt: string;
2111
- updatedAt: string;
2112
- shippingId: string;
2113
- taxRateId: string;
2114
- taxRate: {
2115
- id: string;
2116
- name: string;
2117
- createdAt: string;
2118
- updatedAt: string;
2119
- storeId: string;
2120
- rate: string;
2121
- };
2122
- } | null;
2123
- } | null;
2124
- coupon: {
2125
- type: "fixed" | "percentage";
2126
- value: string;
2127
- code: string;
2128
- startDate: string | null;
2129
- endDate: string | null;
2130
- } | null;
2131
- billingAddress: {
2132
- id: string;
2133
- name: string | null;
2134
- createdAt: string;
2135
- updatedAt: string;
2136
- type: "shipping" | "billing" | "merchant";
2137
- company: string | null;
2138
- city: string | null;
2139
- country: string | null;
2140
- line1: string | null;
2141
- line2: string | null;
2142
- postalCode: string | null;
2143
- state: string | null;
2144
- phone: string | null;
2145
- taxId: string | null;
2146
- } | null;
2147
- shippingAddress: {
2148
- id: string;
2149
- name: string | null;
2150
- createdAt: string;
2151
- updatedAt: string;
2152
- type: "shipping" | "billing" | "merchant";
2153
- company: string | null;
2154
- city: string | null;
2155
- country: string | null;
2156
- line1: string | null;
2157
- line2: string | null;
2158
- postalCode: string | null;
2159
- state: string | null;
2160
- phone: string | null;
2161
- taxId: string | null;
2162
- } | null;
2163
- customer: {
2164
- id: string;
2165
- email: string | null;
2166
- createdAt: string;
2167
- updatedAt: string;
2168
- userId: string | null;
2169
- storeId: string;
2170
- couponId: string | null;
2171
- user: {
2172
- id: string;
2173
- name: string;
2174
- email: string;
2175
- } | null;
2176
- coupon: {
2177
- type: "fixed" | "percentage";
2178
- value: string;
2179
- code: string;
2180
- startDate: string | null;
2181
- endDate: string | null;
2182
- } | null;
2183
- } | null;
2184
- } | null | undefined;
2185
- type APICartAddBody = unknown;
2186
- type APICartAddResult = unknown;
2187
- type APICartCreateBody = {
2188
- variantId: string;
2189
- quantity: number;
2190
- cartId?: string | undefined;
2191
- subscriptionId?: string | null | undefined;
2192
- };
2193
- type APICartCreateResult = {
2194
- lineItems: {
2195
- productVariant: ({
2196
- storeId: string | null;
2197
- product: {
2198
- bundleProducts: {
2199
- variant: {
2200
- storeId: string | null;
2201
- product: {
2202
- productTaxRate: {
2203
- taxRate: {
2204
- rate: string;
2205
- };
2206
- } | null;
2207
- id: string;
2208
- name: string;
2209
- slug: string;
2210
- images: string[];
2211
- };
2212
- id: string;
2213
- createdAt: string;
2214
- updatedAt: string;
2215
- price: string;
2216
- images: string[];
2217
- sku: string | null;
2218
- calculatedPrice: string | null;
2219
- stock: number | null;
2220
- depth: number | null;
2221
- width: number | null;
2222
- height: number | null;
2223
- weight: number | null;
2224
- digital: string[] | null;
2225
- shippable: boolean;
2226
- externalId: string | null;
2227
- productId: string;
2228
- attributes: unknown;
2229
- originalPrice: string;
2230
- };
2231
- createdAt: string;
2232
- updatedAt: string;
2233
- position: number;
2234
- bundleId: string;
2235
- quantity: number;
2236
- variantId: string;
2237
- }[];
2238
- id: string;
2239
- name: string;
2240
- createdAt: string;
2241
- updatedAt: string;
2242
- type: "product" | "bundle";
2243
- slug: string;
2244
- flags: unknown;
2245
- active: boolean | null;
2246
- storeId: string;
2247
- summary: string | null;
2248
- images: string[];
2249
- badge: unknown;
2250
- bundleDiscountPercentage: string | null;
2251
- categoryId: string | null;
2252
- productTaxRate: {
2253
- createdAt: string;
2254
- updatedAt: string;
2255
- taxRateId: string;
2256
- productId: string;
2257
- taxRate: {
2258
- id: string;
2259
- name: string;
2260
- createdAt: string;
2261
- updatedAt: string;
2262
- storeId: string;
2263
- rate: string;
2264
- };
2265
- } | null;
2266
- productCollections: {
2267
- position: string | null;
2268
- productId: string;
2269
- collectionId: string;
2270
- collection: {
2271
- id: string;
2272
- name: string;
2273
- image: string | null;
2274
- createdAt: string;
2275
- updatedAt: string;
2276
- description: JSONContent | null;
2277
- slug: string;
2278
- filter: unknown;
2279
- active: boolean;
2280
- storeId: string;
2281
- };
2282
- }[];
2283
- };
2284
- id: string;
2285
- createdAt: string;
2286
- updatedAt: string;
2287
- price: string;
2288
- images: string[];
2289
- sku: string | null;
2290
- calculatedPrice: string | null;
2291
- stock: number | null;
2292
- depth: number | null;
2293
- width: number | null;
2294
- height: number | null;
2295
- weight: number | null;
2296
- digital: string[] | null;
2297
- shippable: boolean;
2298
- externalId: string | null;
2299
- productId: string;
2300
- attributes: unknown;
2301
- originalPrice: string;
2302
- combinations: {
2303
- createdAt: string;
2304
- updatedAt: string;
2305
- productVariantId: string;
2306
- variantValueId: string;
2307
- variantValue: {
2308
- id: string;
2309
- value: string;
2310
- variantType: {
2311
- id: string;
2312
- label: string;
2313
- };
2314
- };
2315
- }[];
2316
- } & {
2317
- price: string;
2318
- } & {
2319
- prePromotionPrice: undefined;
2320
- }) | ({
2321
- storeId: string | null;
2322
- product: {
2323
- bundleProducts: {
2324
- variant: {
2325
- storeId: string | null;
2326
- product: {
2327
- productTaxRate: {
2328
- taxRate: {
2329
- rate: string;
2330
- };
2331
- } | null;
2332
- id: string;
2333
- name: string;
2334
- slug: string;
2335
- images: string[];
2336
- };
2337
- id: string;
2338
- createdAt: string;
2339
- updatedAt: string;
2340
- price: string;
2341
- images: string[];
2342
- sku: string | null;
2343
- calculatedPrice: string | null;
2344
- stock: number | null;
2345
- depth: number | null;
2346
- width: number | null;
2347
- height: number | null;
2348
- weight: number | null;
2349
- digital: string[] | null;
2350
- shippable: boolean;
2351
- externalId: string | null;
2352
- productId: string;
2353
- attributes: unknown;
2354
- originalPrice: string;
2355
- };
2356
- createdAt: string;
2357
- updatedAt: string;
2358
- position: number;
2359
- bundleId: string;
2360
- quantity: number;
2361
- variantId: string;
2362
- }[];
2363
- id: string;
2364
- name: string;
2365
- createdAt: string;
2366
- updatedAt: string;
2367
- type: "product" | "bundle";
2368
- slug: string;
2369
- flags: unknown;
2370
- active: boolean | null;
2371
- storeId: string;
2372
- summary: string | null;
2373
- images: string[];
2374
- badge: unknown;
2375
- bundleDiscountPercentage: string | null;
2376
- categoryId: string | null;
2377
- productTaxRate: {
2378
- createdAt: string;
2379
- updatedAt: string;
2380
- taxRateId: string;
2381
- productId: string;
2382
- taxRate: {
2383
- id: string;
2384
- name: string;
2385
- createdAt: string;
2386
- updatedAt: string;
2387
- storeId: string;
2388
- rate: string;
2389
- };
2390
- } | null;
2391
- productCollections: {
2392
- position: string | null;
2393
- productId: string;
2394
- collectionId: string;
2395
- collection: {
2396
- id: string;
2397
- name: string;
2398
- image: string | null;
2399
- createdAt: string;
2400
- updatedAt: string;
2401
- description: JSONContent | null;
2402
- slug: string;
2403
- filter: unknown;
2404
- active: boolean;
2405
- storeId: string;
2406
- };
2407
- }[];
2408
- };
2409
- id: string;
2410
- createdAt: string;
2411
- updatedAt: string;
2412
- price: string;
2413
- images: string[];
2414
- sku: string | null;
2415
- calculatedPrice: string | null;
2416
- stock: number | null;
2417
- depth: number | null;
2418
- width: number | null;
2419
- height: number | null;
2420
- weight: number | null;
2421
- digital: string[] | null;
2422
- shippable: boolean;
2423
- externalId: string | null;
2424
- productId: string;
2425
- attributes: unknown;
2426
- originalPrice: string;
2427
- combinations: {
2428
- createdAt: string;
2429
- updatedAt: string;
2430
- productVariantId: string;
2431
- variantValueId: string;
2432
- variantValue: {
2433
- id: string;
2434
- value: string;
2435
- variantType: {
2436
- id: string;
2437
- label: string;
2438
- };
2439
- };
2440
- }[];
2441
- } & {
2442
- price: string;
2443
- } & {
2444
- prePromotionPrice: undefined;
2445
- }) | ({
2446
- storeId: string | null;
2447
- product: {
2448
- bundleProducts: {
2449
- variant: {
2450
- storeId: string | null;
2451
- product: {
2452
- productTaxRate: {
2453
- taxRate: {
2454
- rate: string;
2455
- };
2456
- } | null;
2457
- id: string;
2458
- name: string;
2459
- slug: string;
2460
- images: string[];
2461
- };
2462
- id: string;
2463
- createdAt: string;
2464
- updatedAt: string;
2465
- price: string;
2466
- images: string[];
2467
- sku: string | null;
2468
- calculatedPrice: string | null;
2469
- stock: number | null;
2470
- depth: number | null;
2471
- width: number | null;
2472
- height: number | null;
2473
- weight: number | null;
2474
- digital: string[] | null;
2475
- shippable: boolean;
2476
- externalId: string | null;
2477
- productId: string;
2478
- attributes: unknown;
2479
- originalPrice: string;
2480
- };
2481
- createdAt: string;
2482
- updatedAt: string;
2483
- position: number;
2484
- bundleId: string;
2485
- quantity: number;
2486
- variantId: string;
2487
- }[];
2488
- id: string;
2489
- name: string;
2490
- createdAt: string;
2491
- updatedAt: string;
2492
- type: "product" | "bundle";
2493
- slug: string;
2494
- flags: unknown;
2495
- active: boolean | null;
2496
- storeId: string;
2497
- summary: string | null;
2498
- images: string[];
2499
- badge: unknown;
2500
- bundleDiscountPercentage: string | null;
2501
- categoryId: string | null;
2502
- productTaxRate: {
2503
- createdAt: string;
2504
- updatedAt: string;
2505
- taxRateId: string;
2506
- productId: string;
2507
- taxRate: {
2508
- id: string;
2509
- name: string;
2510
- createdAt: string;
2511
- updatedAt: string;
2512
- storeId: string;
2513
- rate: string;
2514
- };
2515
- } | null;
2516
- productCollections: {
2517
- position: string | null;
2518
- productId: string;
2519
- collectionId: string;
2520
- collection: {
2521
- id: string;
2522
- name: string;
2523
- image: string | null;
2524
- createdAt: string;
2525
- updatedAt: string;
2526
- description: JSONContent | null;
2527
- slug: string;
2528
- filter: unknown;
2529
- active: boolean;
2530
- storeId: string;
2531
- };
2532
- }[];
2533
- };
2534
- id: string;
2535
- createdAt: string;
2536
- updatedAt: string;
2537
- price: string;
2538
- images: string[];
2539
- sku: string | null;
2540
- calculatedPrice: string | null;
2541
- stock: number | null;
2542
- depth: number | null;
2543
- width: number | null;
2544
- height: number | null;
2545
- weight: number | null;
2546
- digital: string[] | null;
2547
- shippable: boolean;
2548
- externalId: string | null;
2549
- productId: string;
2550
- attributes: unknown;
2551
- originalPrice: string;
2552
- combinations: {
2553
- createdAt: string;
2554
- updatedAt: string;
2555
- productVariantId: string;
2556
- variantValueId: string;
2557
- variantValue: {
2558
- id: string;
2559
- value: string;
2560
- variantType: {
2561
- id: string;
2562
- label: string;
2563
- };
2564
- };
2565
- }[];
2566
- } & {
2567
- price: string;
2568
- } & {
2569
- prePromotionPrice: undefined;
2570
- }) | ({
2571
- storeId: string | null;
2572
- product: {
2573
- bundleProducts: {
2574
- variant: {
2575
- storeId: string | null;
2576
- product: {
2577
- productTaxRate: {
2578
- taxRate: {
2579
- rate: string;
2580
- };
2581
- } | null;
2582
- id: string;
2583
- name: string;
2584
- slug: string;
2585
- images: string[];
2586
- };
2587
- id: string;
2588
- createdAt: string;
2589
- updatedAt: string;
2590
- price: string;
2591
- images: string[];
2592
- sku: string | null;
2593
- calculatedPrice: string | null;
2594
- stock: number | null;
2595
- depth: number | null;
2596
- width: number | null;
2597
- height: number | null;
2598
- weight: number | null;
2599
- digital: string[] | null;
2600
- shippable: boolean;
2601
- externalId: string | null;
2602
- productId: string;
2603
- attributes: unknown;
2604
- originalPrice: string;
2605
- };
2606
- createdAt: string;
2607
- updatedAt: string;
2608
- position: number;
2609
- bundleId: string;
2610
- quantity: number;
2611
- variantId: string;
2612
- }[];
2613
- id: string;
2614
- name: string;
2615
- createdAt: string;
2616
- updatedAt: string;
2617
- type: "product" | "bundle";
2618
- slug: string;
2619
- flags: unknown;
2620
- active: boolean | null;
2621
- storeId: string;
2622
- summary: string | null;
2623
- images: string[];
2624
- badge: unknown;
2625
- bundleDiscountPercentage: string | null;
2626
- categoryId: string | null;
2627
- productTaxRate: {
2628
- createdAt: string;
2629
- updatedAt: string;
2630
- taxRateId: string;
2631
- productId: string;
2632
- taxRate: {
2633
- id: string;
2634
- name: string;
2635
- createdAt: string;
2636
- updatedAt: string;
2637
- storeId: string;
2638
- rate: string;
2639
- };
2640
- } | null;
2641
- productCollections: {
2642
- position: string | null;
2643
- productId: string;
2644
- collectionId: string;
2645
- collection: {
2646
- id: string;
2647
- name: string;
2648
- image: string | null;
2649
- createdAt: string;
2650
- updatedAt: string;
2651
- description: JSONContent | null;
2652
- slug: string;
2653
- filter: unknown;
2654
- active: boolean;
2655
- storeId: string;
2656
- };
2657
- }[];
2658
- };
2659
- id: string;
2660
- createdAt: string;
2661
- updatedAt: string;
2662
- price: string;
2663
- images: string[];
2664
- sku: string | null;
2665
- calculatedPrice: string | null;
2666
- stock: number | null;
2667
- depth: number | null;
2668
- width: number | null;
2669
- height: number | null;
2670
- weight: number | null;
2671
- digital: string[] | null;
2672
- shippable: boolean;
2673
- externalId: string | null;
2674
- productId: string;
2675
- attributes: unknown;
2676
- originalPrice: string;
2677
- combinations: {
2678
- createdAt: string;
2679
- updatedAt: string;
2680
- productVariantId: string;
2681
- variantValueId: string;
2682
- variantValue: {
2683
- id: string;
2684
- value: string;
2685
- variantType: {
2686
- id: string;
2687
- label: string;
2688
- };
2689
- };
2690
- }[];
2691
- } & {
2692
- price: string;
2693
- } & {
2694
- prePromotionPrice: undefined;
2695
- price: string;
2696
- }) | ({
2697
- storeId: string | null;
2698
- product: {
2699
- bundleProducts: {
2700
- variant: {
2701
- storeId: string | null;
2702
- product: {
2703
- productTaxRate: {
2704
- taxRate: {
2705
- rate: string;
2706
- };
2707
- } | null;
2708
- id: string;
2709
- name: string;
2710
- slug: string;
2711
- images: string[];
2712
- };
2713
- id: string;
2714
- createdAt: string;
2715
- updatedAt: string;
2716
- price: string;
2717
- images: string[];
2718
- sku: string | null;
2719
- calculatedPrice: string | null;
2720
- stock: number | null;
2721
- depth: number | null;
2722
- width: number | null;
2723
- height: number | null;
2724
- weight: number | null;
2725
- digital: string[] | null;
2726
- shippable: boolean;
2727
- externalId: string | null;
2728
- productId: string;
2729
- attributes: unknown;
2730
- originalPrice: string;
2731
- };
2732
- createdAt: string;
2733
- updatedAt: string;
2734
- position: number;
2735
- bundleId: string;
2736
- quantity: number;
2737
- variantId: string;
2738
- }[];
2739
- id: string;
2740
- name: string;
2741
- createdAt: string;
2742
- updatedAt: string;
2743
- type: "product" | "bundle";
2744
- slug: string;
2745
- flags: unknown;
2746
- active: boolean | null;
2747
- storeId: string;
2748
- summary: string | null;
2749
- images: string[];
2750
- badge: unknown;
2751
- bundleDiscountPercentage: string | null;
2752
- categoryId: string | null;
2753
- productTaxRate: {
2754
- createdAt: string;
2755
- updatedAt: string;
2756
- taxRateId: string;
2757
- productId: string;
2758
- taxRate: {
2759
- id: string;
2760
- name: string;
2761
- createdAt: string;
2762
- updatedAt: string;
2763
- storeId: string;
2764
- rate: string;
2765
- };
2766
- } | null;
2767
- productCollections: {
2768
- position: string | null;
2769
- productId: string;
2770
- collectionId: string;
2771
- collection: {
2772
- id: string;
2773
- name: string;
2774
- image: string | null;
2775
- createdAt: string;
2776
- updatedAt: string;
2777
- description: JSONContent | null;
2778
- slug: string;
2779
- filter: unknown;
2780
- active: boolean;
2781
- storeId: string;
2782
- };
2783
- }[];
2784
- };
2785
- id: string;
2786
- createdAt: string;
2787
- updatedAt: string;
2788
- price: string;
2789
- images: string[];
2790
- sku: string | null;
2791
- calculatedPrice: string | null;
2792
- stock: number | null;
2793
- depth: number | null;
2794
- width: number | null;
2795
- height: number | null;
2796
- weight: number | null;
2797
- digital: string[] | null;
2798
- shippable: boolean;
2799
- externalId: string | null;
2800
- productId: string;
2801
- attributes: unknown;
2802
- originalPrice: string;
2803
- combinations: {
2804
- createdAt: string;
2805
- updatedAt: string;
2806
- productVariantId: string;
2807
- variantValueId: string;
2808
- variantValue: {
2809
- id: string;
2810
- value: string;
2811
- variantType: {
2812
- id: string;
2813
- label: string;
2814
- };
2815
- };
2816
- }[];
2817
- } & {
2818
- price: string;
2819
- } & {
2820
- prePromotionPrice: string | null;
2821
- });
2822
- id: string;
2823
- createdAt: string;
2824
- updatedAt: string;
2825
- cartId: string;
2826
- quantity: number;
2827
- productVariantId: string;
2828
- subscriptionId: string | null;
2829
- subscription: {
2830
- id: string;
2831
- createdAt: string;
2832
- updatedAt: string;
2833
- storeId: string;
2834
- productId: string;
2835
- interval: number;
2836
- cadence: "month" | "week";
2837
- } | null;
2838
- }[];
2839
- id: string;
2840
- createdAt: string;
2841
- updatedAt: string;
2842
- storeId: string;
2843
- addonData: Record<string, unknown> | null | undefined;
2844
- couponId: string | null;
2845
- customerId: string | null;
2846
- stripePaymentIntentId: string | null;
2847
- checkoutSessionId: string | null;
2848
- shippingId: string | null;
2849
- shippingAddressId: string | null;
2850
- billingAddressId: string | null;
2851
- shipping: {
2852
- id: string;
2853
- name: string;
2854
- createdAt: string;
2855
- updatedAt: string;
2856
- type: "courier" | "parcel" | "pickup_point" | "in_store";
2857
- description: string | null;
2858
- storeId: string;
2859
- price: string;
2860
- minShippingTime: number | null;
2861
- maxShippingTime: number | null;
2862
- position: number | null;
2863
- addonId: string | null;
2864
- addonData: unknown;
2865
- countries: string[] | null;
2866
- shippingAddon: {
2867
- id: string;
2868
- name: string;
2869
- createdAt: string;
2870
- updatedAt: string;
2871
- type: "shipping" | "analytics" | "products" | "invoicing" | "orders";
2872
- storeId: string;
2873
- } | null;
2874
- shippingTaxRate: {
2875
- createdAt: string;
2876
- updatedAt: string;
2877
- shippingId: string;
2878
- taxRateId: string;
2879
- taxRate: {
2880
- id: string;
2881
- name: string;
2882
- createdAt: string;
2883
- updatedAt: string;
2884
- storeId: string;
2885
- rate: string;
2886
- };
2887
- } | null;
2888
- } | null;
2889
- coupon: {
2890
- type: "fixed" | "percentage";
2891
- value: string;
2892
- code: string;
2893
- startDate: string | null;
2894
- endDate: string | null;
2895
- } | null;
2896
- billingAddress: {
2897
- id: string;
2898
- name: string | null;
2899
- createdAt: string;
2900
- updatedAt: string;
2901
- type: "shipping" | "billing" | "merchant";
2902
- company: string | null;
2903
- city: string | null;
2904
- country: string | null;
2905
- line1: string | null;
2906
- line2: string | null;
2907
- postalCode: string | null;
2908
- state: string | null;
2909
- phone: string | null;
2910
- taxId: string | null;
2911
- } | null;
2912
- shippingAddress: {
2913
- id: string;
2914
- name: string | null;
2915
- createdAt: string;
2916
- updatedAt: string;
2917
- type: "shipping" | "billing" | "merchant";
2918
- company: string | null;
2919
- city: string | null;
2920
- country: string | null;
2921
- line1: string | null;
2922
- line2: string | null;
2923
- postalCode: string | null;
2924
- state: string | null;
2925
- phone: string | null;
2926
- taxId: string | null;
2927
- } | null;
2928
- customer: {
2929
- id: string;
2930
- email: string | null;
2931
- createdAt: string;
2932
- updatedAt: string;
2933
- userId: string | null;
2934
- storeId: string;
2935
- couponId: string | null;
2936
- user: {
2937
- id: string;
2938
- name: string;
2939
- email: string;
2940
- } | null;
2941
- coupon: {
2942
- type: "fixed" | "percentage";
2943
- value: string;
2944
- code: string;
2945
- startDate: string | null;
2946
- endDate: string | null;
2947
- } | null;
2948
- } | null;
2949
- } | null | undefined;
2950
- type APICartRemoveItemResult = {
2951
- lineItems: {
2952
- productVariant: ({
2953
- storeId: string | null;
2954
- product: {
2955
- bundleProducts: {
2956
- variant: {
2957
- storeId: string | null;
2958
- product: {
2959
- productTaxRate: {
2960
- taxRate: {
2961
- rate: string;
2962
- };
2963
- } | null;
2964
- id: string;
2965
- name: string;
2966
- slug: string;
2967
- images: string[];
2968
- };
2969
- id: string;
2970
- createdAt: string;
2971
- updatedAt: string;
2972
- price: string;
2973
- images: string[];
2974
- sku: string | null;
2975
- calculatedPrice: string | null;
2976
- stock: number | null;
2977
- depth: number | null;
2978
- width: number | null;
2979
- height: number | null;
2980
- weight: number | null;
2981
- digital: string[] | null;
2982
- shippable: boolean;
2983
- externalId: string | null;
2984
- productId: string;
2985
- attributes: unknown;
2986
- originalPrice: string;
2987
- };
2988
- createdAt: string;
2989
- updatedAt: string;
2990
- position: number;
2991
- bundleId: string;
2992
- quantity: number;
2993
- variantId: string;
2994
- }[];
2995
- id: string;
2996
- name: string;
2997
- createdAt: string;
2998
- updatedAt: string;
2999
- type: "product" | "bundle";
3000
- slug: string;
3001
- flags: unknown;
3002
- active: boolean | null;
3003
- storeId: string;
3004
- summary: string | null;
3005
- images: string[];
3006
- badge: unknown;
3007
- bundleDiscountPercentage: string | null;
3008
- categoryId: string | null;
3009
- productTaxRate: {
3010
- createdAt: string;
3011
- updatedAt: string;
3012
- taxRateId: string;
3013
- productId: string;
3014
- taxRate: {
3015
- id: string;
3016
- name: string;
3017
- createdAt: string;
3018
- updatedAt: string;
3019
- storeId: string;
3020
- rate: string;
3021
- };
3022
- } | null;
3023
- productCollections: {
3024
- position: string | null;
3025
- productId: string;
3026
- collectionId: string;
3027
- collection: {
3028
- id: string;
3029
- name: string;
3030
- image: string | null;
3031
- createdAt: string;
3032
- updatedAt: string;
3033
- description: JSONContent | null;
3034
- slug: string;
3035
- filter: unknown;
3036
- active: boolean;
3037
- storeId: string;
3038
- };
3039
- }[];
3040
- };
3041
- id: string;
3042
- createdAt: string;
3043
- updatedAt: string;
3044
- price: string;
3045
- images: string[];
3046
- sku: string | null;
3047
- calculatedPrice: string | null;
3048
- stock: number | null;
3049
- depth: number | null;
3050
- width: number | null;
3051
- height: number | null;
3052
- weight: number | null;
3053
- digital: string[] | null;
3054
- shippable: boolean;
3055
- externalId: string | null;
3056
- productId: string;
3057
- attributes: unknown;
3058
- originalPrice: string;
3059
- combinations: {
3060
- createdAt: string;
3061
- updatedAt: string;
3062
- productVariantId: string;
3063
- variantValueId: string;
3064
- variantValue: {
3065
- id: string;
3066
- value: string;
3067
- variantType: {
3068
- id: string;
3069
- label: string;
3070
- };
3071
- };
3072
- }[];
3073
- } & {
3074
- price: string;
3075
- } & {
3076
- prePromotionPrice: undefined;
3077
- }) | ({
3078
- storeId: string | null;
3079
- product: {
3080
- bundleProducts: {
3081
- variant: {
3082
- storeId: string | null;
3083
- product: {
3084
- productTaxRate: {
3085
- taxRate: {
3086
- rate: string;
3087
- };
3088
- } | null;
3089
- id: string;
3090
- name: string;
3091
- slug: string;
3092
- images: string[];
3093
- };
3094
- id: string;
3095
- createdAt: string;
3096
- updatedAt: string;
3097
- price: string;
3098
- images: string[];
3099
- sku: string | null;
3100
- calculatedPrice: string | null;
3101
- stock: number | null;
3102
- depth: number | null;
3103
- width: number | null;
3104
- height: number | null;
3105
- weight: number | null;
3106
- digital: string[] | null;
3107
- shippable: boolean;
3108
- externalId: string | null;
3109
- productId: string;
3110
- attributes: unknown;
3111
- originalPrice: string;
3112
- };
3113
- createdAt: string;
3114
- updatedAt: string;
3115
- position: number;
3116
- bundleId: string;
3117
- quantity: number;
3118
- variantId: string;
3119
- }[];
3120
- id: string;
3121
- name: string;
3122
- createdAt: string;
3123
- updatedAt: string;
3124
- type: "product" | "bundle";
3125
- slug: string;
3126
- flags: unknown;
3127
- active: boolean | null;
3128
- storeId: string;
3129
- summary: string | null;
3130
- images: string[];
3131
- badge: unknown;
3132
- bundleDiscountPercentage: string | null;
3133
- categoryId: string | null;
3134
- productTaxRate: {
3135
- createdAt: string;
3136
- updatedAt: string;
3137
- taxRateId: string;
3138
- productId: string;
3139
- taxRate: {
3140
- id: string;
3141
- name: string;
3142
- createdAt: string;
3143
- updatedAt: string;
3144
- storeId: string;
3145
- rate: string;
3146
- };
3147
- } | null;
3148
- productCollections: {
3149
- position: string | null;
3150
- productId: string;
3151
- collectionId: string;
3152
- collection: {
3153
- id: string;
3154
- name: string;
3155
- image: string | null;
3156
- createdAt: string;
3157
- updatedAt: string;
3158
- description: JSONContent | null;
3159
- slug: string;
3160
- filter: unknown;
3161
- active: boolean;
3162
- storeId: string;
3163
- };
3164
- }[];
3165
- };
3166
- id: string;
3167
- createdAt: string;
3168
- updatedAt: string;
3169
- price: string;
3170
- images: string[];
3171
- sku: string | null;
3172
- calculatedPrice: string | null;
3173
- stock: number | null;
3174
- depth: number | null;
3175
- width: number | null;
3176
- height: number | null;
3177
- weight: number | null;
3178
- digital: string[] | null;
3179
- shippable: boolean;
3180
- externalId: string | null;
3181
- productId: string;
3182
- attributes: unknown;
3183
- originalPrice: string;
3184
- combinations: {
3185
- createdAt: string;
3186
- updatedAt: string;
3187
- productVariantId: string;
3188
- variantValueId: string;
3189
- variantValue: {
3190
- id: string;
3191
- value: string;
3192
- variantType: {
3193
- id: string;
3194
- label: string;
3195
- };
3196
- };
3197
- }[];
3198
- } & {
3199
- price: string;
3200
- } & {
3201
- prePromotionPrice: undefined;
3202
- }) | ({
3203
- storeId: string | null;
3204
- product: {
3205
- bundleProducts: {
3206
- variant: {
3207
- storeId: string | null;
3208
- product: {
3209
- productTaxRate: {
3210
- taxRate: {
3211
- rate: string;
3212
- };
3213
- } | null;
3214
- id: string;
3215
- name: string;
3216
- slug: string;
3217
- images: string[];
3218
- };
3219
- id: string;
3220
- createdAt: string;
3221
- updatedAt: string;
3222
- price: string;
3223
- images: string[];
3224
- sku: string | null;
3225
- calculatedPrice: string | null;
3226
- stock: number | null;
3227
- depth: number | null;
3228
- width: number | null;
3229
- height: number | null;
3230
- weight: number | null;
3231
- digital: string[] | null;
3232
- shippable: boolean;
3233
- externalId: string | null;
3234
- productId: string;
3235
- attributes: unknown;
3236
- originalPrice: string;
3237
- };
3238
- createdAt: string;
3239
- updatedAt: string;
3240
- position: number;
3241
- bundleId: string;
3242
- quantity: number;
3243
- variantId: string;
3244
- }[];
3245
- id: string;
3246
- name: string;
3247
- createdAt: string;
3248
- updatedAt: string;
3249
- type: "product" | "bundle";
3250
- slug: string;
3251
- flags: unknown;
3252
- active: boolean | null;
3253
- storeId: string;
3254
- summary: string | null;
3255
- images: string[];
3256
- badge: unknown;
3257
- bundleDiscountPercentage: string | null;
3258
- categoryId: string | null;
3259
- productTaxRate: {
3260
- createdAt: string;
3261
- updatedAt: string;
3262
- taxRateId: string;
3263
- productId: string;
3264
- taxRate: {
3265
- id: string;
3266
- name: string;
3267
- createdAt: string;
3268
- updatedAt: string;
3269
- storeId: string;
3270
- rate: string;
3271
- };
3272
- } | null;
3273
- productCollections: {
3274
- position: string | null;
3275
- productId: string;
3276
- collectionId: string;
3277
- collection: {
3278
- id: string;
3279
- name: string;
3280
- image: string | null;
3281
- createdAt: string;
3282
- updatedAt: string;
3283
- description: JSONContent | null;
3284
- slug: string;
3285
- filter: unknown;
3286
- active: boolean;
3287
- storeId: string;
3288
- };
3289
- }[];
3290
- };
3291
- id: string;
3292
- createdAt: string;
3293
- updatedAt: string;
3294
- price: string;
3295
- images: string[];
3296
- sku: string | null;
3297
- calculatedPrice: string | null;
3298
- stock: number | null;
3299
- depth: number | null;
3300
- width: number | null;
3301
- height: number | null;
3302
- weight: number | null;
3303
- digital: string[] | null;
3304
- shippable: boolean;
3305
- externalId: string | null;
3306
- productId: string;
3307
- attributes: unknown;
3308
- originalPrice: string;
3309
- combinations: {
3310
- createdAt: string;
3311
- updatedAt: string;
3312
- productVariantId: string;
3313
- variantValueId: string;
3314
- variantValue: {
3315
- id: string;
3316
- value: string;
3317
- variantType: {
3318
- id: string;
3319
- label: string;
3320
- };
3321
- };
3322
- }[];
3323
- } & {
3324
- price: string;
3325
- } & {
3326
- prePromotionPrice: undefined;
3327
- }) | ({
3328
- storeId: string | null;
3329
- product: {
3330
- bundleProducts: {
3331
- variant: {
3332
- storeId: string | null;
3333
- product: {
3334
- productTaxRate: {
3335
- taxRate: {
3336
- rate: string;
3337
- };
3338
- } | null;
3339
- id: string;
3340
- name: string;
3341
- slug: string;
3342
- images: string[];
3343
- };
3344
- id: string;
3345
- createdAt: string;
3346
- updatedAt: string;
3347
- price: string;
3348
- images: string[];
3349
- sku: string | null;
3350
- calculatedPrice: string | null;
3351
- stock: number | null;
3352
- depth: number | null;
3353
- width: number | null;
3354
- height: number | null;
3355
- weight: number | null;
3356
- digital: string[] | null;
3357
- shippable: boolean;
3358
- externalId: string | null;
3359
- productId: string;
3360
- attributes: unknown;
3361
- originalPrice: string;
3362
- };
3363
- createdAt: string;
3364
- updatedAt: string;
3365
- position: number;
3366
- bundleId: string;
3367
- quantity: number;
3368
- variantId: string;
3369
- }[];
3370
- id: string;
3371
- name: string;
3372
- createdAt: string;
3373
- updatedAt: string;
3374
- type: "product" | "bundle";
3375
- slug: string;
3376
- flags: unknown;
3377
- active: boolean | null;
3378
- storeId: string;
3379
- summary: string | null;
3380
- images: string[];
3381
- badge: unknown;
3382
- bundleDiscountPercentage: string | null;
3383
- categoryId: string | null;
3384
- productTaxRate: {
3385
- createdAt: string;
3386
- updatedAt: string;
3387
- taxRateId: string;
3388
- productId: string;
3389
- taxRate: {
3390
- id: string;
3391
- name: string;
3392
- createdAt: string;
3393
- updatedAt: string;
3394
- storeId: string;
3395
- rate: string;
3396
- };
3397
- } | null;
3398
- productCollections: {
3399
- position: string | null;
3400
- productId: string;
3401
- collectionId: string;
3402
- collection: {
3403
- id: string;
3404
- name: string;
3405
- image: string | null;
3406
- createdAt: string;
3407
- updatedAt: string;
3408
- description: JSONContent | null;
3409
- slug: string;
3410
- filter: unknown;
3411
- active: boolean;
3412
- storeId: string;
3413
- };
3414
- }[];
3415
- };
3416
- id: string;
3417
- createdAt: string;
3418
- updatedAt: string;
3419
- price: string;
3420
- images: string[];
3421
- sku: string | null;
3422
- calculatedPrice: string | null;
3423
- stock: number | null;
3424
- depth: number | null;
3425
- width: number | null;
3426
- height: number | null;
3427
- weight: number | null;
3428
- digital: string[] | null;
3429
- shippable: boolean;
3430
- externalId: string | null;
3431
- productId: string;
3432
- attributes: unknown;
3433
- originalPrice: string;
3434
- combinations: {
3435
- createdAt: string;
3436
- updatedAt: string;
3437
- productVariantId: string;
3438
- variantValueId: string;
3439
- variantValue: {
3440
- id: string;
3441
- value: string;
3442
- variantType: {
3443
- id: string;
3444
- label: string;
3445
- };
3446
- };
3447
- }[];
3448
- } & {
3449
- price: string;
3450
- } & {
3451
- prePromotionPrice: undefined;
3452
- price: string;
3453
- }) | ({
3454
- storeId: string | null;
3455
- product: {
3456
- bundleProducts: {
3457
- variant: {
3458
- storeId: string | null;
3459
- product: {
3460
- productTaxRate: {
3461
- taxRate: {
3462
- rate: string;
3463
- };
3464
- } | null;
3465
- id: string;
3466
- name: string;
3467
- slug: string;
3468
- images: string[];
3469
- };
3470
- id: string;
3471
- createdAt: string;
3472
- updatedAt: string;
3473
- price: string;
3474
- images: string[];
3475
- sku: string | null;
3476
- calculatedPrice: string | null;
3477
- stock: number | null;
3478
- depth: number | null;
3479
- width: number | null;
3480
- height: number | null;
3481
- weight: number | null;
3482
- digital: string[] | null;
3483
- shippable: boolean;
3484
- externalId: string | null;
3485
- productId: string;
3486
- attributes: unknown;
3487
- originalPrice: string;
3488
- };
3489
- createdAt: string;
3490
- updatedAt: string;
3491
- position: number;
3492
- bundleId: string;
3493
- quantity: number;
3494
- variantId: string;
3495
- }[];
3496
- id: string;
3497
- name: string;
3498
- createdAt: string;
3499
- updatedAt: string;
3500
- type: "product" | "bundle";
3501
- slug: string;
3502
- flags: unknown;
3503
- active: boolean | null;
3504
- storeId: string;
3505
- summary: string | null;
3506
- images: string[];
3507
- badge: unknown;
3508
- bundleDiscountPercentage: string | null;
3509
- categoryId: string | null;
3510
- productTaxRate: {
3511
- createdAt: string;
3512
- updatedAt: string;
3513
- taxRateId: string;
3514
- productId: string;
3515
- taxRate: {
3516
- id: string;
3517
- name: string;
3518
- createdAt: string;
3519
- updatedAt: string;
3520
- storeId: string;
3521
- rate: string;
3522
- };
3523
- } | null;
3524
- productCollections: {
3525
- position: string | null;
3526
- productId: string;
3527
- collectionId: string;
3528
- collection: {
3529
- id: string;
3530
- name: string;
3531
- image: string | null;
3532
- createdAt: string;
3533
- updatedAt: string;
3534
- description: JSONContent | null;
3535
- slug: string;
3536
- filter: unknown;
3537
- active: boolean;
3538
- storeId: string;
3539
- };
3540
- }[];
3541
- };
3542
- id: string;
3543
- createdAt: string;
3544
- updatedAt: string;
3545
- price: string;
3546
- images: string[];
3547
- sku: string | null;
3548
- calculatedPrice: string | null;
3549
- stock: number | null;
3550
- depth: number | null;
3551
- width: number | null;
3552
- height: number | null;
3553
- weight: number | null;
3554
- digital: string[] | null;
3555
- shippable: boolean;
3556
- externalId: string | null;
3557
- productId: string;
3558
- attributes: unknown;
3559
- originalPrice: string;
3560
- combinations: {
3561
- createdAt: string;
3562
- updatedAt: string;
3563
- productVariantId: string;
3564
- variantValueId: string;
3565
- variantValue: {
3566
- id: string;
3567
- value: string;
3568
- variantType: {
3569
- id: string;
3570
- label: string;
3571
- };
3572
- };
3573
- }[];
3574
- } & {
3575
- price: string;
3576
- } & {
3577
- prePromotionPrice: string | null;
3578
- });
3579
- id: string;
3580
- createdAt: string;
3581
- updatedAt: string;
3582
- cartId: string;
3583
- quantity: number;
3584
- productVariantId: string;
3585
- subscriptionId: string | null;
3586
- subscription: {
3587
- id: string;
3588
- createdAt: string;
3589
- updatedAt: string;
3590
- storeId: string;
3591
- productId: string;
3592
- interval: number;
3593
- cadence: "month" | "week";
3594
- } | null;
3595
- }[];
3596
- id: string;
3597
- createdAt: string;
3598
- updatedAt: string;
3599
- storeId: string;
3600
- addonData: Record<string, unknown> | null | undefined;
3601
- couponId: string | null;
3602
- customerId: string | null;
3603
- stripePaymentIntentId: string | null;
3604
- checkoutSessionId: string | null;
3605
- shippingId: string | null;
3606
- shippingAddressId: string | null;
3607
- billingAddressId: string | null;
3608
- shipping: {
3609
- id: string;
3610
- name: string;
3611
- createdAt: string;
3612
- updatedAt: string;
3613
- type: "courier" | "parcel" | "pickup_point" | "in_store";
3614
- description: string | null;
3615
- storeId: string;
3616
- price: string;
3617
- minShippingTime: number | null;
3618
- maxShippingTime: number | null;
3619
- position: number | null;
3620
- addonId: string | null;
3621
- addonData: unknown;
3622
- countries: string[] | null;
3623
- shippingAddon: {
3624
- id: string;
3625
- name: string;
3626
- createdAt: string;
3627
- updatedAt: string;
3628
- type: "shipping" | "analytics" | "products" | "invoicing" | "orders";
3629
- storeId: string;
3630
- } | null;
3631
- shippingTaxRate: {
3632
- createdAt: string;
3633
- updatedAt: string;
3634
- shippingId: string;
3635
- taxRateId: string;
3636
- taxRate: {
3637
- id: string;
3638
- name: string;
3639
- createdAt: string;
3640
- updatedAt: string;
3641
- storeId: string;
3642
- rate: string;
3643
- };
3644
- } | null;
3645
- } | null;
3646
- coupon: {
3647
- type: "fixed" | "percentage";
3648
- value: string;
3649
- code: string;
3650
- startDate: string | null;
3651
- endDate: string | null;
3652
- } | null;
3653
- billingAddress: {
3654
- id: string;
3655
- name: string | null;
3656
- createdAt: string;
3657
- updatedAt: string;
3658
- type: "shipping" | "billing" | "merchant";
3659
- company: string | null;
3660
- city: string | null;
3661
- country: string | null;
3662
- line1: string | null;
3663
- line2: string | null;
3664
- postalCode: string | null;
3665
- state: string | null;
3666
- phone: string | null;
3667
- taxId: string | null;
3668
- } | null;
3669
- shippingAddress: {
3670
- id: string;
3671
- name: string | null;
3672
- createdAt: string;
3673
- updatedAt: string;
3674
- type: "shipping" | "billing" | "merchant";
3675
- company: string | null;
3676
- city: string | null;
3677
- country: string | null;
3678
- line1: string | null;
3679
- line2: string | null;
3680
- postalCode: string | null;
3681
- state: string | null;
3682
- phone: string | null;
3683
- taxId: string | null;
3684
- } | null;
3685
- customer: {
3686
- id: string;
3687
- email: string | null;
3688
- createdAt: string;
3689
- updatedAt: string;
3690
- userId: string | null;
3691
- storeId: string;
3692
- couponId: string | null;
3693
- user: {
3694
- id: string;
3695
- name: string;
3696
- email: string;
3697
- } | null;
3698
- coupon: {
3699
- type: "fixed" | "percentage";
3700
- value: string;
3701
- code: string;
3702
- startDate: string | null;
3703
- endDate: string | null;
3704
- } | null;
3705
- } | null;
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
- };
4954
-
4955
- export type { APICartAddBody, APICartAddResult, APICartCreateBody, APICartCreateResult, APICartGetResult, APICartRemoveItemQueryParams, APICartRemoveItemResult, APIOrderGetByIdParams, APIOrderGetByIdResult, APIOrdersBrowseQueryParams, APIOrdersBrowseResult, APIProductGetByIdParams, APIProductGetByIdResult, APIProductsBrowseQueryParams, APIProductsBrowseResult, JSONContent };