commerce-kit 0.59.0 → 0.61.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api-types.d.ts +3271 -651
- package/package.json +1 -1
package/dist/api-types.d.ts
CHANGED
|
@@ -21,6 +21,7 @@ type APIProductsBrowseResult = Omit<{
|
|
|
21
21
|
summary: string | null;
|
|
22
22
|
images: string[];
|
|
23
23
|
badge: unknown;
|
|
24
|
+
subscriptionMode: "optional" | "only" | "rolling";
|
|
24
25
|
bundleDiscountPercentage: string | null;
|
|
25
26
|
bundlePriceMode: "fixed" | "amount" | "percent";
|
|
26
27
|
bundleFixedPriceAmount: string | null;
|
|
@@ -290,6 +291,7 @@ type APIProductsBrowseResult = Omit<{
|
|
|
290
291
|
summary: string | null;
|
|
291
292
|
images: string[];
|
|
292
293
|
badge: unknown;
|
|
294
|
+
subscriptionMode: "optional" | "only" | "rolling";
|
|
293
295
|
bundleDiscountPercentage: string | null;
|
|
294
296
|
bundlePriceMode: "fixed" | "amount" | "percent";
|
|
295
297
|
bundleFixedPriceAmount: string | null;
|
|
@@ -559,6 +561,7 @@ type APIProductsBrowseResult = Omit<{
|
|
|
559
561
|
summary: string | null;
|
|
560
562
|
images: string[];
|
|
561
563
|
badge: unknown;
|
|
564
|
+
subscriptionMode: "optional" | "only" | "rolling";
|
|
562
565
|
bundleDiscountPercentage: string | null;
|
|
563
566
|
bundlePriceMode: "fixed" | "amount" | "percent";
|
|
564
567
|
bundleFixedPriceAmount: string | null;
|
|
@@ -828,6 +831,7 @@ type APIProductsBrowseResult = Omit<{
|
|
|
828
831
|
summary: string | null;
|
|
829
832
|
images: string[];
|
|
830
833
|
badge: unknown;
|
|
834
|
+
subscriptionMode: "optional" | "only" | "rolling";
|
|
831
835
|
bundleDiscountPercentage: string | null;
|
|
832
836
|
bundlePriceMode: "fixed" | "amount" | "percent";
|
|
833
837
|
bundleFixedPriceAmount: string | null;
|
|
@@ -1099,6 +1103,7 @@ type APIProductsBrowseResult = Omit<{
|
|
|
1099
1103
|
summary: string | null;
|
|
1100
1104
|
images: string[];
|
|
1101
1105
|
badge: unknown;
|
|
1106
|
+
subscriptionMode: "optional" | "only" | "rolling";
|
|
1102
1107
|
bundleDiscountPercentage: string | null;
|
|
1103
1108
|
bundlePriceMode: "fixed" | "amount" | "percent";
|
|
1104
1109
|
bundleFixedPriceAmount: string | null;
|
|
@@ -1377,6 +1382,7 @@ type APIProductsBrowseResult = Omit<{
|
|
|
1377
1382
|
summary: string | null;
|
|
1378
1383
|
images: string[];
|
|
1379
1384
|
badge: unknown;
|
|
1385
|
+
subscriptionMode: "optional" | "only" | "rolling";
|
|
1380
1386
|
bundleDiscountPercentage: string | null;
|
|
1381
1387
|
bundlePriceMode: "fixed" | "amount" | "percent";
|
|
1382
1388
|
bundleFixedPriceAmount: string | null;
|
|
@@ -2772,6 +2778,7 @@ type APIProductGetByIdResult = {
|
|
|
2772
2778
|
summary: string | null;
|
|
2773
2779
|
images: string[];
|
|
2774
2780
|
badge: unknown;
|
|
2781
|
+
subscriptionMode: "optional" | "only" | "rolling";
|
|
2775
2782
|
bundleDiscountPercentage: string | null;
|
|
2776
2783
|
bundlePriceMode: "fixed" | "amount" | "percent";
|
|
2777
2784
|
bundleFixedPriceAmount: string | null;
|
|
@@ -3750,25 +3757,155 @@ type APIProductGetByIdResult = {
|
|
|
3750
3757
|
fixedQuantity: number;
|
|
3751
3758
|
maxQuantity: number | null;
|
|
3752
3759
|
variant: {
|
|
3753
|
-
|
|
3754
|
-
|
|
3755
|
-
|
|
3756
|
-
|
|
3757
|
-
|
|
3758
|
-
|
|
3759
|
-
|
|
3760
|
-
|
|
3761
|
-
|
|
3762
|
-
|
|
3763
|
-
|
|
3764
|
-
|
|
3765
|
-
|
|
3766
|
-
|
|
3767
|
-
|
|
3760
|
+
[K in keyof {
|
|
3761
|
+
id: string;
|
|
3762
|
+
price: string;
|
|
3763
|
+
sku: string | null;
|
|
3764
|
+
stock: number | null;
|
|
3765
|
+
images: string[];
|
|
3766
|
+
productName: string;
|
|
3767
|
+
productSlug: string;
|
|
3768
|
+
productImages: string[];
|
|
3769
|
+
taxRate: {
|
|
3770
|
+
id: string;
|
|
3771
|
+
name: string;
|
|
3772
|
+
rate: number;
|
|
3773
|
+
label: string | null;
|
|
3774
|
+
} | null;
|
|
3775
|
+
productStatus: "published" | "draft" | "hidden";
|
|
3776
|
+
sellable: boolean;
|
|
3777
|
+
options: {
|
|
3778
|
+
type: string;
|
|
3779
|
+
value: string;
|
|
3780
|
+
colorValue: string | null;
|
|
3781
|
+
}[];
|
|
3782
|
+
}]: K extends "prices" ? Array<({
|
|
3783
|
+
id: string;
|
|
3784
|
+
price: string;
|
|
3785
|
+
sku: string | null;
|
|
3786
|
+
stock: number | null;
|
|
3787
|
+
images: string[];
|
|
3788
|
+
productName: string;
|
|
3789
|
+
productSlug: string;
|
|
3790
|
+
productImages: string[];
|
|
3791
|
+
taxRate: {
|
|
3792
|
+
id: string;
|
|
3793
|
+
name: string;
|
|
3794
|
+
rate: number;
|
|
3795
|
+
label: string | null;
|
|
3796
|
+
} | null;
|
|
3797
|
+
productStatus: "published" | "draft" | "hidden";
|
|
3798
|
+
sellable: boolean;
|
|
3799
|
+
options: {
|
|
3800
|
+
type: string;
|
|
3801
|
+
value: string;
|
|
3802
|
+
colorValue: string | null;
|
|
3803
|
+
}[];
|
|
3804
|
+
}[K] extends readonly (infer TElement)[] ? TElement : never) & {
|
|
3805
|
+
/** `price` converted to gross with the owning product's tax rate. */
|
|
3806
|
+
priceGross: string;
|
|
3807
|
+
/** `calculatedPrice` converted to gross; null when there is no calculated price. */
|
|
3808
|
+
calculatedPriceGross: string | null;
|
|
3809
|
+
}> : {
|
|
3810
|
+
id: string;
|
|
3811
|
+
price: string;
|
|
3812
|
+
sku: string | null;
|
|
3813
|
+
stock: number | null;
|
|
3814
|
+
images: string[];
|
|
3815
|
+
productName: string;
|
|
3816
|
+
productSlug: string;
|
|
3817
|
+
productImages: string[];
|
|
3818
|
+
taxRate: {
|
|
3819
|
+
id: string;
|
|
3820
|
+
name: string;
|
|
3821
|
+
rate: number;
|
|
3822
|
+
label: string | null;
|
|
3823
|
+
} | null;
|
|
3824
|
+
productStatus: "published" | "draft" | "hidden";
|
|
3825
|
+
sellable: boolean;
|
|
3826
|
+
options: {
|
|
3827
|
+
type: string;
|
|
3828
|
+
value: string;
|
|
3829
|
+
colorValue: string | null;
|
|
3830
|
+
}[];
|
|
3831
|
+
}[K];
|
|
3832
|
+
} & {
|
|
3833
|
+
/** `price` (the effective net price) converted to gross with the product's tax rate. */
|
|
3834
|
+
priceGross: string;
|
|
3835
|
+
} & {
|
|
3836
|
+
[K in Extract<keyof {
|
|
3837
|
+
id: string;
|
|
3838
|
+
price: string;
|
|
3839
|
+
sku: string | null;
|
|
3840
|
+
stock: number | null;
|
|
3841
|
+
images: string[];
|
|
3842
|
+
productName: string;
|
|
3843
|
+
productSlug: string;
|
|
3844
|
+
productImages: string[];
|
|
3845
|
+
taxRate: {
|
|
3846
|
+
id: string;
|
|
3847
|
+
name: string;
|
|
3848
|
+
rate: number;
|
|
3849
|
+
label: string | null;
|
|
3850
|
+
} | null;
|
|
3851
|
+
productStatus: "published" | "draft" | "hidden";
|
|
3852
|
+
sellable: boolean;
|
|
3853
|
+
options: {
|
|
3854
|
+
type: string;
|
|
3855
|
+
value: string;
|
|
3856
|
+
colorValue: string | null;
|
|
3857
|
+
}[];
|
|
3858
|
+
}, "calculatedPrice" | "originalPrice" | "prePromotionPrice" | "omnibusPrice"> as `${K}Gross`]: string | null;
|
|
3768
3859
|
};
|
|
3769
3860
|
}[];
|
|
3770
3861
|
}[];
|
|
3771
3862
|
};
|
|
3863
|
+
bundleFixedPriceAmountGross: string | null;
|
|
3864
|
+
bundleAmountOffAmountGross: string | null;
|
|
3865
|
+
subscriptionCycles?: {
|
|
3866
|
+
current: {
|
|
3867
|
+
id: string;
|
|
3868
|
+
productId: string;
|
|
3869
|
+
title: string;
|
|
3870
|
+
description: string | null;
|
|
3871
|
+
image: string | null;
|
|
3872
|
+
startsAt: string;
|
|
3873
|
+
endsAt: string;
|
|
3874
|
+
status: "published" | "draft";
|
|
3875
|
+
items: {
|
|
3876
|
+
productVariantId: string;
|
|
3877
|
+
productId: string;
|
|
3878
|
+
name: string;
|
|
3879
|
+
variantLabel: string | null;
|
|
3880
|
+
sku: string | null;
|
|
3881
|
+
image: string | null;
|
|
3882
|
+
quantity: number;
|
|
3883
|
+
}[];
|
|
3884
|
+
createdAt: string;
|
|
3885
|
+
updatedAt: string;
|
|
3886
|
+
} | null;
|
|
3887
|
+
upcoming: {
|
|
3888
|
+
id: string;
|
|
3889
|
+
productId: string;
|
|
3890
|
+
title: string;
|
|
3891
|
+
description: string | null;
|
|
3892
|
+
image: string | null;
|
|
3893
|
+
startsAt: string;
|
|
3894
|
+
endsAt: string;
|
|
3895
|
+
status: "published" | "draft";
|
|
3896
|
+
items: {
|
|
3897
|
+
productVariantId: string;
|
|
3898
|
+
productId: string;
|
|
3899
|
+
name: string;
|
|
3900
|
+
variantLabel: string | null;
|
|
3901
|
+
sku: string | null;
|
|
3902
|
+
image: string | null;
|
|
3903
|
+
quantity: number;
|
|
3904
|
+
}[];
|
|
3905
|
+
createdAt: string;
|
|
3906
|
+
updatedAt: string;
|
|
3907
|
+
} | null;
|
|
3908
|
+
};
|
|
3772
3909
|
};
|
|
3773
3910
|
type APIProductGetByIdParams = {
|
|
3774
3911
|
idOrSlug: string;
|
|
@@ -4080,6 +4217,7 @@ type APICartGetResult = {
|
|
|
4080
4217
|
summary: string | null;
|
|
4081
4218
|
images: string[];
|
|
4082
4219
|
badge: unknown;
|
|
4220
|
+
subscriptionMode: "optional" | "only" | "rolling";
|
|
4083
4221
|
bundleDiscountPercentage: string | null;
|
|
4084
4222
|
bundlePriceMode: "fixed" | "amount" | "percent";
|
|
4085
4223
|
bundleFixedPriceAmount: string | null;
|
|
@@ -4316,6 +4454,7 @@ type APICartGetResult = {
|
|
|
4316
4454
|
summary: string | null;
|
|
4317
4455
|
images: string[];
|
|
4318
4456
|
badge: unknown;
|
|
4457
|
+
subscriptionMode: "optional" | "only" | "rolling";
|
|
4319
4458
|
bundleDiscountPercentage: string | null;
|
|
4320
4459
|
bundlePriceMode: "fixed" | "amount" | "percent";
|
|
4321
4460
|
bundleFixedPriceAmount: string | null;
|
|
@@ -4492,6 +4631,7 @@ type APICartGetResult = {
|
|
|
4492
4631
|
summary: string | null;
|
|
4493
4632
|
images: string[];
|
|
4494
4633
|
badge: unknown;
|
|
4634
|
+
subscriptionMode: "optional" | "only" | "rolling";
|
|
4495
4635
|
bundleDiscountPercentage: string | null;
|
|
4496
4636
|
bundlePriceMode: "fixed" | "amount" | "percent";
|
|
4497
4637
|
bundleFixedPriceAmount: string | null;
|
|
@@ -4673,6 +4813,7 @@ type APICartGetResult = {
|
|
|
4673
4813
|
summary: string | null;
|
|
4674
4814
|
images: string[];
|
|
4675
4815
|
badge: unknown;
|
|
4816
|
+
subscriptionMode: "optional" | "only" | "rolling";
|
|
4676
4817
|
bundleDiscountPercentage: string | null;
|
|
4677
4818
|
bundlePriceMode: "fixed" | "amount" | "percent";
|
|
4678
4819
|
bundleFixedPriceAmount: string | null;
|
|
@@ -4854,6 +4995,7 @@ type APICartGetResult = {
|
|
|
4854
4995
|
summary: string | null;
|
|
4855
4996
|
images: string[];
|
|
4856
4997
|
badge: unknown;
|
|
4998
|
+
subscriptionMode: "optional" | "only" | "rolling";
|
|
4857
4999
|
bundleDiscountPercentage: string | null;
|
|
4858
5000
|
bundlePriceMode: "fixed" | "amount" | "percent";
|
|
4859
5001
|
bundleFixedPriceAmount: string | null;
|
|
@@ -4983,6 +5125,8 @@ type APICartGetResult = {
|
|
|
4983
5125
|
tax: number;
|
|
4984
5126
|
ratePercent: number;
|
|
4985
5127
|
}> | null;
|
|
5128
|
+
freeShippingThreshold: number | null;
|
|
5129
|
+
freeShippingUnlocked: boolean | null;
|
|
4986
5130
|
};
|
|
4987
5131
|
type APICartAddBody = unknown;
|
|
4988
5132
|
type APICartAddResult = unknown;
|
|
@@ -5303,6 +5447,7 @@ type APICartCreateResult = {
|
|
|
5303
5447
|
summary: string | null;
|
|
5304
5448
|
images: string[];
|
|
5305
5449
|
badge: unknown;
|
|
5450
|
+
subscriptionMode: "optional" | "only" | "rolling";
|
|
5306
5451
|
bundleDiscountPercentage: string | null;
|
|
5307
5452
|
bundlePriceMode: "fixed" | "amount" | "percent";
|
|
5308
5453
|
bundleFixedPriceAmount: string | null;
|
|
@@ -5539,6 +5684,7 @@ type APICartCreateResult = {
|
|
|
5539
5684
|
summary: string | null;
|
|
5540
5685
|
images: string[];
|
|
5541
5686
|
badge: unknown;
|
|
5687
|
+
subscriptionMode: "optional" | "only" | "rolling";
|
|
5542
5688
|
bundleDiscountPercentage: string | null;
|
|
5543
5689
|
bundlePriceMode: "fixed" | "amount" | "percent";
|
|
5544
5690
|
bundleFixedPriceAmount: string | null;
|
|
@@ -5715,6 +5861,7 @@ type APICartCreateResult = {
|
|
|
5715
5861
|
summary: string | null;
|
|
5716
5862
|
images: string[];
|
|
5717
5863
|
badge: unknown;
|
|
5864
|
+
subscriptionMode: "optional" | "only" | "rolling";
|
|
5718
5865
|
bundleDiscountPercentage: string | null;
|
|
5719
5866
|
bundlePriceMode: "fixed" | "amount" | "percent";
|
|
5720
5867
|
bundleFixedPriceAmount: string | null;
|
|
@@ -5896,6 +6043,7 @@ type APICartCreateResult = {
|
|
|
5896
6043
|
summary: string | null;
|
|
5897
6044
|
images: string[];
|
|
5898
6045
|
badge: unknown;
|
|
6046
|
+
subscriptionMode: "optional" | "only" | "rolling";
|
|
5899
6047
|
bundleDiscountPercentage: string | null;
|
|
5900
6048
|
bundlePriceMode: "fixed" | "amount" | "percent";
|
|
5901
6049
|
bundleFixedPriceAmount: string | null;
|
|
@@ -6077,6 +6225,7 @@ type APICartCreateResult = {
|
|
|
6077
6225
|
summary: string | null;
|
|
6078
6226
|
images: string[];
|
|
6079
6227
|
badge: unknown;
|
|
6228
|
+
subscriptionMode: "optional" | "only" | "rolling";
|
|
6080
6229
|
bundleDiscountPercentage: string | null;
|
|
6081
6230
|
bundlePriceMode: "fixed" | "amount" | "percent";
|
|
6082
6231
|
bundleFixedPriceAmount: string | null;
|
|
@@ -6206,6 +6355,8 @@ type APICartCreateResult = {
|
|
|
6206
6355
|
tax: number;
|
|
6207
6356
|
ratePercent: number;
|
|
6208
6357
|
}> | null;
|
|
6358
|
+
freeShippingThreshold: number | null;
|
|
6359
|
+
freeShippingUnlocked: boolean | null;
|
|
6209
6360
|
} | null | undefined;
|
|
6210
6361
|
type APICartRemoveItemResult = {
|
|
6211
6362
|
id: string;
|
|
@@ -6510,6 +6661,7 @@ type APICartRemoveItemResult = {
|
|
|
6510
6661
|
summary: string | null;
|
|
6511
6662
|
images: string[];
|
|
6512
6663
|
badge: unknown;
|
|
6664
|
+
subscriptionMode: "optional" | "only" | "rolling";
|
|
6513
6665
|
bundleDiscountPercentage: string | null;
|
|
6514
6666
|
bundlePriceMode: "fixed" | "amount" | "percent";
|
|
6515
6667
|
bundleFixedPriceAmount: string | null;
|
|
@@ -6746,6 +6898,7 @@ type APICartRemoveItemResult = {
|
|
|
6746
6898
|
summary: string | null;
|
|
6747
6899
|
images: string[];
|
|
6748
6900
|
badge: unknown;
|
|
6901
|
+
subscriptionMode: "optional" | "only" | "rolling";
|
|
6749
6902
|
bundleDiscountPercentage: string | null;
|
|
6750
6903
|
bundlePriceMode: "fixed" | "amount" | "percent";
|
|
6751
6904
|
bundleFixedPriceAmount: string | null;
|
|
@@ -6922,6 +7075,7 @@ type APICartRemoveItemResult = {
|
|
|
6922
7075
|
summary: string | null;
|
|
6923
7076
|
images: string[];
|
|
6924
7077
|
badge: unknown;
|
|
7078
|
+
subscriptionMode: "optional" | "only" | "rolling";
|
|
6925
7079
|
bundleDiscountPercentage: string | null;
|
|
6926
7080
|
bundlePriceMode: "fixed" | "amount" | "percent";
|
|
6927
7081
|
bundleFixedPriceAmount: string | null;
|
|
@@ -7103,6 +7257,7 @@ type APICartRemoveItemResult = {
|
|
|
7103
7257
|
summary: string | null;
|
|
7104
7258
|
images: string[];
|
|
7105
7259
|
badge: unknown;
|
|
7260
|
+
subscriptionMode: "optional" | "only" | "rolling";
|
|
7106
7261
|
bundleDiscountPercentage: string | null;
|
|
7107
7262
|
bundlePriceMode: "fixed" | "amount" | "percent";
|
|
7108
7263
|
bundleFixedPriceAmount: string | null;
|
|
@@ -7284,6 +7439,7 @@ type APICartRemoveItemResult = {
|
|
|
7284
7439
|
summary: string | null;
|
|
7285
7440
|
images: string[];
|
|
7286
7441
|
badge: unknown;
|
|
7442
|
+
subscriptionMode: "optional" | "only" | "rolling";
|
|
7287
7443
|
bundleDiscountPercentage: string | null;
|
|
7288
7444
|
bundlePriceMode: "fixed" | "amount" | "percent";
|
|
7289
7445
|
bundleFixedPriceAmount: string | null;
|
|
@@ -7413,6 +7569,8 @@ type APICartRemoveItemResult = {
|
|
|
7413
7569
|
tax: number;
|
|
7414
7570
|
ratePercent: number;
|
|
7415
7571
|
}> | null;
|
|
7572
|
+
freeShippingThreshold: number | null;
|
|
7573
|
+
freeShippingUnlocked: boolean | null;
|
|
7416
7574
|
} | null | undefined;
|
|
7417
7575
|
type APICartRemoveItemQueryParams = {
|
|
7418
7576
|
subscriptionPlanId?: string | undefined;
|
|
@@ -7723,6 +7881,7 @@ type APICartCouponApplyResult = {
|
|
|
7723
7881
|
summary: string | null;
|
|
7724
7882
|
images: string[];
|
|
7725
7883
|
badge: unknown;
|
|
7884
|
+
subscriptionMode: "optional" | "only" | "rolling";
|
|
7726
7885
|
bundleDiscountPercentage: string | null;
|
|
7727
7886
|
bundlePriceMode: "fixed" | "amount" | "percent";
|
|
7728
7887
|
bundleFixedPriceAmount: string | null;
|
|
@@ -7959,6 +8118,7 @@ type APICartCouponApplyResult = {
|
|
|
7959
8118
|
summary: string | null;
|
|
7960
8119
|
images: string[];
|
|
7961
8120
|
badge: unknown;
|
|
8121
|
+
subscriptionMode: "optional" | "only" | "rolling";
|
|
7962
8122
|
bundleDiscountPercentage: string | null;
|
|
7963
8123
|
bundlePriceMode: "fixed" | "amount" | "percent";
|
|
7964
8124
|
bundleFixedPriceAmount: string | null;
|
|
@@ -8135,6 +8295,7 @@ type APICartCouponApplyResult = {
|
|
|
8135
8295
|
summary: string | null;
|
|
8136
8296
|
images: string[];
|
|
8137
8297
|
badge: unknown;
|
|
8298
|
+
subscriptionMode: "optional" | "only" | "rolling";
|
|
8138
8299
|
bundleDiscountPercentage: string | null;
|
|
8139
8300
|
bundlePriceMode: "fixed" | "amount" | "percent";
|
|
8140
8301
|
bundleFixedPriceAmount: string | null;
|
|
@@ -8316,6 +8477,7 @@ type APICartCouponApplyResult = {
|
|
|
8316
8477
|
summary: string | null;
|
|
8317
8478
|
images: string[];
|
|
8318
8479
|
badge: unknown;
|
|
8480
|
+
subscriptionMode: "optional" | "only" | "rolling";
|
|
8319
8481
|
bundleDiscountPercentage: string | null;
|
|
8320
8482
|
bundlePriceMode: "fixed" | "amount" | "percent";
|
|
8321
8483
|
bundleFixedPriceAmount: string | null;
|
|
@@ -8497,6 +8659,7 @@ type APICartCouponApplyResult = {
|
|
|
8497
8659
|
summary: string | null;
|
|
8498
8660
|
images: string[];
|
|
8499
8661
|
badge: unknown;
|
|
8662
|
+
subscriptionMode: "optional" | "only" | "rolling";
|
|
8500
8663
|
bundleDiscountPercentage: string | null;
|
|
8501
8664
|
bundlePriceMode: "fixed" | "amount" | "percent";
|
|
8502
8665
|
bundleFixedPriceAmount: string | null;
|
|
@@ -8626,6 +8789,8 @@ type APICartCouponApplyResult = {
|
|
|
8626
8789
|
tax: number;
|
|
8627
8790
|
ratePercent: number;
|
|
8628
8791
|
}> | null;
|
|
8792
|
+
freeShippingThreshold: number | null;
|
|
8793
|
+
freeShippingUnlocked: boolean | null;
|
|
8629
8794
|
} | null | undefined;
|
|
8630
8795
|
type APICartCouponRemoveResult = {
|
|
8631
8796
|
ok: boolean;
|
|
@@ -8995,6 +9160,7 @@ type APIOrdersBrowseResult = Omit<{
|
|
|
8995
9160
|
} | null | undefined;
|
|
8996
9161
|
} | null;
|
|
8997
9162
|
type: "set" | "product" | "bundle";
|
|
9163
|
+
subscriptionMode: "optional" | "only" | "rolling";
|
|
8998
9164
|
bundleDiscountPercentage: string | null;
|
|
8999
9165
|
bundlePriceMode: "fixed" | "amount" | "percent";
|
|
9000
9166
|
bundleFixedPriceAmount: string | null;
|
|
@@ -9153,6 +9319,20 @@ type APIOrdersBrowseResult = Omit<{
|
|
|
9153
9319
|
storeId: string;
|
|
9154
9320
|
updatedAt: string;
|
|
9155
9321
|
} | null;
|
|
9322
|
+
rollingCycle: {
|
|
9323
|
+
id: string;
|
|
9324
|
+
title: string;
|
|
9325
|
+
startsAt: string;
|
|
9326
|
+
items: {
|
|
9327
|
+
productVariantId: string;
|
|
9328
|
+
productId: string;
|
|
9329
|
+
name: string;
|
|
9330
|
+
variantLabel: string | null;
|
|
9331
|
+
sku: string | null;
|
|
9332
|
+
image: string | null;
|
|
9333
|
+
quantity: number;
|
|
9334
|
+
}[];
|
|
9335
|
+
} | null;
|
|
9156
9336
|
slotId: string | null;
|
|
9157
9337
|
attendees: {
|
|
9158
9338
|
name: string;
|
|
@@ -9244,6 +9424,11 @@ type APIOrdersBrowseResult = Omit<{
|
|
|
9244
9424
|
shippingAddressId: string | null;
|
|
9245
9425
|
stripePaymentIntentId: string | null;
|
|
9246
9426
|
checkoutSessionId: string | null;
|
|
9427
|
+
stripeInvoice: {
|
|
9428
|
+
id: string;
|
|
9429
|
+
amountPaid: number;
|
|
9430
|
+
currency: string;
|
|
9431
|
+
} | null;
|
|
9247
9432
|
customerId: string | null;
|
|
9248
9433
|
customer: {
|
|
9249
9434
|
id: string;
|
|
@@ -9514,6 +9699,7 @@ type APIOrdersBrowseResult = Omit<{
|
|
|
9514
9699
|
} | null | undefined;
|
|
9515
9700
|
} | null;
|
|
9516
9701
|
type: "set" | "product" | "bundle";
|
|
9702
|
+
subscriptionMode: "optional" | "only" | "rolling";
|
|
9517
9703
|
bundleDiscountPercentage: string | null;
|
|
9518
9704
|
bundlePriceMode: "fixed" | "amount" | "percent";
|
|
9519
9705
|
bundleFixedPriceAmount: string | null;
|
|
@@ -9672,6 +9858,20 @@ type APIOrdersBrowseResult = Omit<{
|
|
|
9672
9858
|
storeId: string;
|
|
9673
9859
|
updatedAt: string;
|
|
9674
9860
|
} | null;
|
|
9861
|
+
rollingCycle: {
|
|
9862
|
+
id: string;
|
|
9863
|
+
title: string;
|
|
9864
|
+
startsAt: string;
|
|
9865
|
+
items: {
|
|
9866
|
+
productVariantId: string;
|
|
9867
|
+
productId: string;
|
|
9868
|
+
name: string;
|
|
9869
|
+
variantLabel: string | null;
|
|
9870
|
+
sku: string | null;
|
|
9871
|
+
image: string | null;
|
|
9872
|
+
quantity: number;
|
|
9873
|
+
}[];
|
|
9874
|
+
} | null;
|
|
9675
9875
|
slotId: string | null;
|
|
9676
9876
|
attendees: {
|
|
9677
9877
|
name: string;
|
|
@@ -9763,6 +9963,11 @@ type APIOrdersBrowseResult = Omit<{
|
|
|
9763
9963
|
shippingAddressId: string | null;
|
|
9764
9964
|
stripePaymentIntentId: string | null;
|
|
9765
9965
|
checkoutSessionId: string | null;
|
|
9966
|
+
stripeInvoice: {
|
|
9967
|
+
id: string;
|
|
9968
|
+
amountPaid: number;
|
|
9969
|
+
currency: string;
|
|
9970
|
+
} | null;
|
|
9766
9971
|
customerId: string | null;
|
|
9767
9972
|
customer: {
|
|
9768
9973
|
id: string;
|
|
@@ -9867,7 +10072,7 @@ type APIOrdersBrowseResult = Omit<{
|
|
|
9867
10072
|
count: number;
|
|
9868
10073
|
};
|
|
9869
10074
|
}, "data"> & {
|
|
9870
|
-
data: Array<{
|
|
10075
|
+
data: Array<Omit<{
|
|
9871
10076
|
data: ({
|
|
9872
10077
|
createdAt: string;
|
|
9873
10078
|
updatedAt: string;
|
|
@@ -10014,6 +10219,7 @@ type APIOrdersBrowseResult = Omit<{
|
|
|
10014
10219
|
} | null | undefined;
|
|
10015
10220
|
} | null;
|
|
10016
10221
|
type: "set" | "product" | "bundle";
|
|
10222
|
+
subscriptionMode: "optional" | "only" | "rolling";
|
|
10017
10223
|
bundleDiscountPercentage: string | null;
|
|
10018
10224
|
bundlePriceMode: "fixed" | "amount" | "percent";
|
|
10019
10225
|
bundleFixedPriceAmount: string | null;
|
|
@@ -10172,6 +10378,20 @@ type APIOrdersBrowseResult = Omit<{
|
|
|
10172
10378
|
storeId: string;
|
|
10173
10379
|
updatedAt: string;
|
|
10174
10380
|
} | null;
|
|
10381
|
+
rollingCycle: {
|
|
10382
|
+
id: string;
|
|
10383
|
+
title: string;
|
|
10384
|
+
startsAt: string;
|
|
10385
|
+
items: {
|
|
10386
|
+
productVariantId: string;
|
|
10387
|
+
productId: string;
|
|
10388
|
+
name: string;
|
|
10389
|
+
variantLabel: string | null;
|
|
10390
|
+
sku: string | null;
|
|
10391
|
+
image: string | null;
|
|
10392
|
+
quantity: number;
|
|
10393
|
+
}[];
|
|
10394
|
+
} | null;
|
|
10175
10395
|
slotId: string | null;
|
|
10176
10396
|
attendees: {
|
|
10177
10397
|
name: string;
|
|
@@ -10263,6 +10483,11 @@ type APIOrdersBrowseResult = Omit<{
|
|
|
10263
10483
|
shippingAddressId: string | null;
|
|
10264
10484
|
stripePaymentIntentId: string | null;
|
|
10265
10485
|
checkoutSessionId: string | null;
|
|
10486
|
+
stripeInvoice: {
|
|
10487
|
+
id: string;
|
|
10488
|
+
amountPaid: number;
|
|
10489
|
+
currency: string;
|
|
10490
|
+
} | null;
|
|
10266
10491
|
customerId: string | null;
|
|
10267
10492
|
customer: {
|
|
10268
10493
|
id: string;
|
|
@@ -10533,6 +10758,7 @@ type APIOrdersBrowseResult = Omit<{
|
|
|
10533
10758
|
} | null | undefined;
|
|
10534
10759
|
} | null;
|
|
10535
10760
|
type: "set" | "product" | "bundle";
|
|
10761
|
+
subscriptionMode: "optional" | "only" | "rolling";
|
|
10536
10762
|
bundleDiscountPercentage: string | null;
|
|
10537
10763
|
bundlePriceMode: "fixed" | "amount" | "percent";
|
|
10538
10764
|
bundleFixedPriceAmount: string | null;
|
|
@@ -10691,6 +10917,20 @@ type APIOrdersBrowseResult = Omit<{
|
|
|
10691
10917
|
storeId: string;
|
|
10692
10918
|
updatedAt: string;
|
|
10693
10919
|
} | null;
|
|
10920
|
+
rollingCycle: {
|
|
10921
|
+
id: string;
|
|
10922
|
+
title: string;
|
|
10923
|
+
startsAt: string;
|
|
10924
|
+
items: {
|
|
10925
|
+
productVariantId: string;
|
|
10926
|
+
productId: string;
|
|
10927
|
+
name: string;
|
|
10928
|
+
variantLabel: string | null;
|
|
10929
|
+
sku: string | null;
|
|
10930
|
+
image: string | null;
|
|
10931
|
+
quantity: number;
|
|
10932
|
+
}[];
|
|
10933
|
+
} | null;
|
|
10694
10934
|
slotId: string | null;
|
|
10695
10935
|
attendees: {
|
|
10696
10936
|
name: string;
|
|
@@ -10782,6 +11022,11 @@ type APIOrdersBrowseResult = Omit<{
|
|
|
10782
11022
|
shippingAddressId: string | null;
|
|
10783
11023
|
stripePaymentIntentId: string | null;
|
|
10784
11024
|
checkoutSessionId: string | null;
|
|
11025
|
+
stripeInvoice: {
|
|
11026
|
+
id: string;
|
|
11027
|
+
amountPaid: number;
|
|
11028
|
+
currency: string;
|
|
11029
|
+
} | null;
|
|
10785
11030
|
customerId: string | null;
|
|
10786
11031
|
customer: {
|
|
10787
11032
|
id: string;
|
|
@@ -10885,408 +11130,2140 @@ type APIOrdersBrowseResult = Omit<{
|
|
|
10885
11130
|
meta: {
|
|
10886
11131
|
count: number;
|
|
10887
11132
|
};
|
|
10888
|
-
}["data"][number] & {
|
|
10889
|
-
|
|
10890
|
-
}>;
|
|
10891
|
-
};
|
|
10892
|
-
type APIOrdersBrowseQueryParams = {
|
|
10893
|
-
offset?: number | undefined;
|
|
10894
|
-
limit?: number | undefined;
|
|
10895
|
-
};
|
|
10896
|
-
type APIOrderGetByIdResult = Omit<{
|
|
10897
|
-
id: string;
|
|
10898
|
-
createdAt: string;
|
|
10899
|
-
updatedAt: string;
|
|
10900
|
-
storeId: string;
|
|
10901
|
-
status: "completed" | "cancelled" | "paid" | "created" | "processing" | "shipped" | "refunded" | "partially_refunded" | "reserved";
|
|
10902
|
-
environment: "live" | "test";
|
|
10903
|
-
source: string | null;
|
|
10904
|
-
externalId: string | null;
|
|
10905
|
-
customerId: string | null;
|
|
10906
|
-
attribution: {
|
|
10907
|
-
firstTouch: {
|
|
10908
|
-
source: string | null;
|
|
10909
|
-
medium: string | null;
|
|
10910
|
-
campaign: string | null;
|
|
10911
|
-
referrerHost: string | null;
|
|
10912
|
-
ts: number;
|
|
10913
|
-
};
|
|
10914
|
-
lastTouch: {
|
|
10915
|
-
source: string | null;
|
|
10916
|
-
medium: string | null;
|
|
10917
|
-
campaign: string | null;
|
|
10918
|
-
referrerHost: string | null;
|
|
10919
|
-
ts: number;
|
|
10920
|
-
};
|
|
10921
|
-
} | null;
|
|
10922
|
-
lookup: number;
|
|
10923
|
-
cartId: string | null;
|
|
10924
|
-
orderData: {
|
|
10925
|
-
id: string;
|
|
10926
|
-
storeId: string;
|
|
10927
|
-
shippingId: string | null;
|
|
10928
|
-
shipping: {
|
|
11133
|
+
}["data"][number], "orderData"> & {
|
|
11134
|
+
orderData: {
|
|
10929
11135
|
id: string;
|
|
10930
11136
|
storeId: string;
|
|
10931
|
-
|
|
10932
|
-
|
|
10933
|
-
freeShippingThreshold: string | null;
|
|
10934
|
-
minShippingTime: number | null;
|
|
10935
|
-
maxShippingTime: number | null;
|
|
10936
|
-
description: string | null;
|
|
10937
|
-
addonId: string | null;
|
|
10938
|
-
shippingAddon: {
|
|
10939
|
-
type: "shipping" | "products" | "analytics" | "invoicing" | "orders";
|
|
10940
|
-
storeId: string;
|
|
11137
|
+
shippingId: string | null;
|
|
11138
|
+
shipping: ({
|
|
10941
11139
|
id: string;
|
|
11140
|
+
storeId: string;
|
|
10942
11141
|
name: string;
|
|
10943
|
-
|
|
10944
|
-
|
|
10945
|
-
|
|
10946
|
-
|
|
10947
|
-
|
|
10948
|
-
|
|
10949
|
-
|
|
10950
|
-
|
|
10951
|
-
} | {
|
|
10952
|
-
carrier: "inpost";
|
|
10953
|
-
name: string;
|
|
10954
|
-
service: "inpost";
|
|
10955
|
-
} | {
|
|
10956
|
-
carrier: "gls";
|
|
10957
|
-
name: string;
|
|
10958
|
-
service: "gls";
|
|
10959
|
-
} | null;
|
|
10960
|
-
deliverySlots: unknown;
|
|
10961
|
-
shippingTaxRate: {
|
|
10962
|
-
shippingId: string;
|
|
10963
|
-
taxRateId: string;
|
|
10964
|
-
taxRate: {
|
|
10965
|
-
id: string;
|
|
11142
|
+
price: string;
|
|
11143
|
+
freeShippingThreshold: string | null;
|
|
11144
|
+
minShippingTime: number | null;
|
|
11145
|
+
maxShippingTime: number | null;
|
|
11146
|
+
description: string | null;
|
|
11147
|
+
addonId: string | null;
|
|
11148
|
+
shippingAddon: {
|
|
11149
|
+
type: "shipping" | "products" | "analytics" | "invoicing" | "orders";
|
|
10966
11150
|
storeId: string;
|
|
11151
|
+
id: string;
|
|
10967
11152
|
name: string;
|
|
10968
|
-
rate: string;
|
|
10969
|
-
label: string | null;
|
|
10970
11153
|
createdAt: string;
|
|
10971
11154
|
updatedAt: string;
|
|
10972
|
-
};
|
|
10973
|
-
|
|
10974
|
-
|
|
10975
|
-
|
|
10976
|
-
position: number | null;
|
|
10977
|
-
createdAt: string;
|
|
10978
|
-
updatedAt: string;
|
|
10979
|
-
countries: string[] | null;
|
|
10980
|
-
} | null;
|
|
10981
|
-
createdAt: string;
|
|
10982
|
-
lineItems: {
|
|
10983
|
-
id: string;
|
|
10984
|
-
cartId: string;
|
|
10985
|
-
quantity: number;
|
|
10986
|
-
unitCost: string | null;
|
|
10987
|
-
createdAt: string;
|
|
10988
|
-
updatedAt: string;
|
|
10989
|
-
productVariant: {
|
|
10990
|
-
id: string;
|
|
10991
|
-
sku: string | null;
|
|
10992
|
-
barcode: string | null;
|
|
10993
|
-
description: string | null;
|
|
10994
|
-
price: string;
|
|
10995
|
-
calculatedPrice: string | null;
|
|
10996
|
-
prePromotionPrice: string | null;
|
|
10997
|
-
preVolumePricingPrice: string | null;
|
|
10998
|
-
stock: number | null;
|
|
10999
|
-
depth: number | null;
|
|
11000
|
-
width: number | null;
|
|
11001
|
-
height: number | null;
|
|
11002
|
-
weight: number | null;
|
|
11003
|
-
images: string[];
|
|
11004
|
-
digital: string[] | null;
|
|
11005
|
-
shippable: boolean;
|
|
11006
|
-
externalId: string | null;
|
|
11007
|
-
product: {
|
|
11008
|
-
id: string;
|
|
11155
|
+
} | null;
|
|
11156
|
+
type: "courier" | "parcel" | "pickup_point" | "in_store";
|
|
11157
|
+
addonData: {
|
|
11158
|
+
id: number;
|
|
11009
11159
|
name: string;
|
|
11010
|
-
|
|
11011
|
-
|
|
11012
|
-
|
|
11013
|
-
|
|
11014
|
-
|
|
11015
|
-
|
|
11016
|
-
|
|
11017
|
-
|
|
11018
|
-
|
|
11019
|
-
|
|
11020
|
-
|
|
11021
|
-
|
|
11022
|
-
|
|
11023
|
-
|
|
11024
|
-
|
|
11025
|
-
productTaxRate: {
|
|
11026
|
-
productId: string;
|
|
11027
|
-
taxRateId: string;
|
|
11028
|
-
taxRate: {
|
|
11029
|
-
id: string;
|
|
11030
|
-
storeId: string;
|
|
11031
|
-
name: string;
|
|
11032
|
-
rate: string;
|
|
11033
|
-
label: string | null;
|
|
11034
|
-
createdAt: string;
|
|
11035
|
-
updatedAt: string;
|
|
11036
|
-
};
|
|
11037
|
-
createdAt: string;
|
|
11038
|
-
updatedAt: string;
|
|
11039
|
-
} | null;
|
|
11040
|
-
flags: {
|
|
11041
|
-
gold?: boolean | null | undefined;
|
|
11042
|
-
event?: {
|
|
11043
|
-
enabled: boolean;
|
|
11044
|
-
startsAt?: string | null | undefined;
|
|
11045
|
-
location?: string | null | undefined;
|
|
11046
|
-
capacity?: number | null | undefined;
|
|
11047
|
-
guestLabel?: string | null | undefined;
|
|
11048
|
-
guest?: string | null | undefined;
|
|
11049
|
-
attendeeInfo?: "optional" | "none" | "required" | null | undefined;
|
|
11050
|
-
salesPaused?: boolean | null | undefined;
|
|
11051
|
-
} | null | undefined;
|
|
11052
|
-
scheduledPublishAt?: string | null | undefined;
|
|
11053
|
-
gpsr?: {
|
|
11054
|
-
safetyInformation?: {
|
|
11055
|
-
type: "NO_SAFETY_INFORMATION";
|
|
11056
|
-
} | {
|
|
11057
|
-
type: "TEXT";
|
|
11058
|
-
description: string;
|
|
11059
|
-
} | null | undefined;
|
|
11060
|
-
} | null | undefined;
|
|
11061
|
-
} | null;
|
|
11062
|
-
type: "set" | "product" | "bundle";
|
|
11063
|
-
bundleDiscountPercentage: string | null;
|
|
11064
|
-
bundlePriceMode: "fixed" | "amount" | "percent";
|
|
11065
|
-
bundleFixedPriceAmount: string | null;
|
|
11066
|
-
bundleAmountOffAmount: string | null;
|
|
11067
|
-
productCollections: {
|
|
11068
|
-
collection: {
|
|
11069
|
-
createdAt: string;
|
|
11070
|
-
description: any;
|
|
11071
|
-
id: string;
|
|
11072
|
-
image: string | null;
|
|
11073
|
-
name: string;
|
|
11074
|
-
slug: string;
|
|
11075
|
-
storeId: string;
|
|
11076
|
-
updatedAt: string;
|
|
11077
|
-
filter: {
|
|
11078
|
-
type: "manual";
|
|
11079
|
-
} | {
|
|
11080
|
-
type: "dynamicPrice";
|
|
11081
|
-
min?: number | null | undefined;
|
|
11082
|
-
max?: number | null | undefined;
|
|
11083
|
-
} | {
|
|
11084
|
-
type: "variantValues";
|
|
11085
|
-
values: Record<string, string[]>;
|
|
11086
|
-
} | {
|
|
11087
|
-
type: "newest";
|
|
11088
|
-
days?: number | null | undefined;
|
|
11089
|
-
};
|
|
11090
|
-
active: boolean;
|
|
11091
|
-
seo?: {
|
|
11092
|
-
title?: string | null | undefined;
|
|
11093
|
-
description?: string | null | undefined;
|
|
11094
|
-
canonical?: string | null | undefined;
|
|
11095
|
-
} | null | undefined;
|
|
11096
|
-
};
|
|
11097
|
-
collectionId: string;
|
|
11098
|
-
position: string | null;
|
|
11099
|
-
productId: string;
|
|
11100
|
-
}[];
|
|
11101
|
-
bundleGroups: {
|
|
11160
|
+
service: "dpd" | "fedex" | "ups" | "gls" | "poczta" | "inpost" | "orlen" | "dhl";
|
|
11161
|
+
} | {
|
|
11162
|
+
carrier: "inpost";
|
|
11163
|
+
name: string;
|
|
11164
|
+
service: "inpost";
|
|
11165
|
+
} | {
|
|
11166
|
+
carrier: "gls";
|
|
11167
|
+
name: string;
|
|
11168
|
+
service: "gls";
|
|
11169
|
+
} | null;
|
|
11170
|
+
deliverySlots: unknown;
|
|
11171
|
+
shippingTaxRate: {
|
|
11172
|
+
shippingId: string;
|
|
11173
|
+
taxRateId: string;
|
|
11174
|
+
taxRate: {
|
|
11102
11175
|
id: string;
|
|
11103
|
-
|
|
11104
|
-
|
|
11105
|
-
|
|
11106
|
-
|
|
11107
|
-
bundleProducts: {
|
|
11108
|
-
bundleId: string;
|
|
11109
|
-
variantId: string;
|
|
11110
|
-
groupId: string | null;
|
|
11111
|
-
quantity: number;
|
|
11112
|
-
position: number;
|
|
11113
|
-
forced: boolean;
|
|
11114
|
-
defaultSelected: boolean;
|
|
11115
|
-
maxQuantity: number | null;
|
|
11176
|
+
storeId: string;
|
|
11177
|
+
name: string;
|
|
11178
|
+
rate: string;
|
|
11179
|
+
label: string | null;
|
|
11116
11180
|
createdAt: string;
|
|
11117
11181
|
updatedAt: string;
|
|
11118
|
-
|
|
11119
|
-
id: string;
|
|
11120
|
-
sku: string | null;
|
|
11121
|
-
barcode: string | null;
|
|
11122
|
-
description: string | null;
|
|
11123
|
-
price: string;
|
|
11124
|
-
shippable: boolean;
|
|
11125
|
-
calculatedPrice: string | null;
|
|
11126
|
-
stock: number | null;
|
|
11127
|
-
depth: number | null;
|
|
11128
|
-
width: number | null;
|
|
11129
|
-
height: number | null;
|
|
11130
|
-
weight: number | null;
|
|
11131
|
-
images: string[];
|
|
11132
|
-
digital: string[] | null;
|
|
11133
|
-
externalId: string | null;
|
|
11134
|
-
product: {
|
|
11135
|
-
id: string;
|
|
11136
|
-
name: string;
|
|
11137
|
-
slug: string;
|
|
11138
|
-
images: string[];
|
|
11139
|
-
productTaxRate: {
|
|
11140
|
-
taxRate: {
|
|
11141
|
-
rate: string;
|
|
11142
|
-
label: string | null;
|
|
11143
|
-
};
|
|
11144
|
-
} | null;
|
|
11145
|
-
};
|
|
11146
|
-
createdAt: string;
|
|
11147
|
-
productId: string;
|
|
11148
|
-
updatedAt: string;
|
|
11149
|
-
attributes: {
|
|
11150
|
-
checked: boolean | null;
|
|
11151
|
-
key: string;
|
|
11152
|
-
value: string;
|
|
11153
|
-
}[] | null;
|
|
11154
|
-
storeId: string;
|
|
11155
|
-
originalPrice?: string | null | undefined;
|
|
11156
|
-
} & {
|
|
11157
|
-
originalPrice: string;
|
|
11158
|
-
};
|
|
11159
|
-
}[];
|
|
11160
|
-
setProduct: {
|
|
11161
|
-
selectionCount: number;
|
|
11162
|
-
allowDuplicates: boolean;
|
|
11163
|
-
discountPercentage: string;
|
|
11164
|
-
} | null;
|
|
11165
|
-
seo: {
|
|
11166
|
-
title?: string | null | undefined;
|
|
11167
|
-
description?: string | null | undefined;
|
|
11168
|
-
canonical?: string | null | undefined;
|
|
11169
|
-
} | null;
|
|
11170
|
-
stripeTaxCode: string | null;
|
|
11171
|
-
active?: boolean | null | undefined;
|
|
11172
|
-
};
|
|
11173
|
-
createdAt: string;
|
|
11174
|
-
productId: string;
|
|
11175
|
-
updatedAt: string;
|
|
11176
|
-
combinations: {
|
|
11182
|
+
};
|
|
11177
11183
|
createdAt: string;
|
|
11178
11184
|
updatedAt: string;
|
|
11179
|
-
|
|
11180
|
-
|
|
11181
|
-
|
|
11182
|
-
|
|
11183
|
-
|
|
11184
|
-
variantType: {
|
|
11185
|
-
id: string;
|
|
11186
|
-
label: string;
|
|
11187
|
-
productId?: string | null | undefined;
|
|
11188
|
-
createdAt?: string | null | undefined;
|
|
11189
|
-
updatedAt?: string | null | undefined;
|
|
11190
|
-
};
|
|
11191
|
-
variantTypeId?: string | null | undefined;
|
|
11192
|
-
};
|
|
11193
|
-
}[];
|
|
11194
|
-
attributes: {
|
|
11195
|
-
checked: boolean | null;
|
|
11196
|
-
key: string;
|
|
11197
|
-
value: string;
|
|
11198
|
-
}[] | null;
|
|
11199
|
-
storeId: string;
|
|
11200
|
-
originalPrice?: string | null | undefined;
|
|
11185
|
+
} | null;
|
|
11186
|
+
position: number | null;
|
|
11187
|
+
createdAt: string;
|
|
11188
|
+
updatedAt: string;
|
|
11189
|
+
countries: string[] | null;
|
|
11201
11190
|
} & {
|
|
11202
|
-
|
|
11203
|
-
};
|
|
11204
|
-
|
|
11205
|
-
|
|
11206
|
-
subscriptionPlanId: string | null;
|
|
11207
|
-
subscriptionPlan: {
|
|
11191
|
+
priceGross: string;
|
|
11192
|
+
}) | null;
|
|
11193
|
+
createdAt: string;
|
|
11194
|
+
lineItems: {
|
|
11208
11195
|
id: string;
|
|
11209
|
-
|
|
11210
|
-
|
|
11211
|
-
|
|
11212
|
-
discountPercent: number;
|
|
11213
|
-
description: string | null;
|
|
11214
|
-
benefits: string | null;
|
|
11215
|
-
active: boolean;
|
|
11196
|
+
cartId: string;
|
|
11197
|
+
quantity: number;
|
|
11198
|
+
unitCost: string | null;
|
|
11216
11199
|
createdAt: string;
|
|
11217
|
-
position: number;
|
|
11218
|
-
storeId: string;
|
|
11219
11200
|
updatedAt: string;
|
|
11220
|
-
|
|
11221
|
-
|
|
11222
|
-
attendees: {
|
|
11223
|
-
name: string;
|
|
11224
|
-
email: string | null;
|
|
11225
|
-
phone: string | null;
|
|
11226
|
-
dietary: string | null;
|
|
11227
|
-
notes: string | null;
|
|
11228
|
-
}[] | null;
|
|
11229
|
-
setSelections: {
|
|
11230
|
-
id: string;
|
|
11231
|
-
lineItemId: string;
|
|
11232
|
-
selectedVariantId: string;
|
|
11233
|
-
quantity: number;
|
|
11234
|
-
position: number;
|
|
11235
|
-
createdAt: string;
|
|
11236
|
-
updatedAt: string;
|
|
11237
|
-
selectedVariant: {
|
|
11238
|
-
id: string;
|
|
11239
|
-
price: string;
|
|
11240
|
-
product: {
|
|
11201
|
+
productVariant: {
|
|
11202
|
+
[K in keyof ({
|
|
11241
11203
|
id: string;
|
|
11242
|
-
|
|
11243
|
-
|
|
11244
|
-
|
|
11204
|
+
sku: string | null;
|
|
11205
|
+
barcode: string | null;
|
|
11206
|
+
description: string | null;
|
|
11207
|
+
price: string;
|
|
11208
|
+
calculatedPrice: string | null;
|
|
11209
|
+
prePromotionPrice: string | null;
|
|
11210
|
+
preVolumePricingPrice: string | null;
|
|
11211
|
+
stock: number | null;
|
|
11212
|
+
depth: number | null;
|
|
11213
|
+
width: number | null;
|
|
11214
|
+
height: number | null;
|
|
11215
|
+
weight: number | null;
|
|
11216
|
+
images: string[];
|
|
11217
|
+
digital: string[] | null;
|
|
11218
|
+
shippable: boolean;
|
|
11219
|
+
externalId: string | null;
|
|
11220
|
+
product: {
|
|
11221
|
+
id: string;
|
|
11222
|
+
name: string;
|
|
11223
|
+
slug: string;
|
|
11224
|
+
status: "published" | "draft" | "hidden" | null;
|
|
11225
|
+
images: string[];
|
|
11226
|
+
badge: {
|
|
11227
|
+
content?: string | undefined;
|
|
11228
|
+
backgroundColor?: string | undefined;
|
|
11229
|
+
textColor?: string | undefined;
|
|
11230
|
+
} | null;
|
|
11231
|
+
storeId: string;
|
|
11232
|
+
categoryId: string | null;
|
|
11233
|
+
brandId: string | null;
|
|
11234
|
+
summary: string | null;
|
|
11235
|
+
content: any;
|
|
11236
|
+
createdAt: string;
|
|
11237
|
+
updatedAt: string;
|
|
11238
|
+
productTaxRate: {
|
|
11239
|
+
productId: string;
|
|
11240
|
+
taxRateId: string;
|
|
11241
|
+
taxRate: {
|
|
11242
|
+
id: string;
|
|
11243
|
+
storeId: string;
|
|
11244
|
+
name: string;
|
|
11245
|
+
rate: string;
|
|
11246
|
+
label: string | null;
|
|
11247
|
+
createdAt: string;
|
|
11248
|
+
updatedAt: string;
|
|
11249
|
+
};
|
|
11250
|
+
createdAt: string;
|
|
11251
|
+
updatedAt: string;
|
|
11252
|
+
} | null;
|
|
11253
|
+
flags: {
|
|
11254
|
+
gold?: boolean | null | undefined;
|
|
11255
|
+
event?: {
|
|
11256
|
+
enabled: boolean;
|
|
11257
|
+
startsAt?: string | null | undefined;
|
|
11258
|
+
location?: string | null | undefined;
|
|
11259
|
+
capacity?: number | null | undefined;
|
|
11260
|
+
guestLabel?: string | null | undefined;
|
|
11261
|
+
guest?: string | null | undefined;
|
|
11262
|
+
attendeeInfo?: "optional" | "none" | "required" | null | undefined;
|
|
11263
|
+
salesPaused?: boolean | null | undefined;
|
|
11264
|
+
} | null | undefined;
|
|
11265
|
+
scheduledPublishAt?: string | null | undefined;
|
|
11266
|
+
gpsr?: {
|
|
11267
|
+
safetyInformation?: {
|
|
11268
|
+
type: "NO_SAFETY_INFORMATION";
|
|
11269
|
+
} | {
|
|
11270
|
+
type: "TEXT";
|
|
11271
|
+
description: string;
|
|
11272
|
+
} | null | undefined;
|
|
11273
|
+
} | null | undefined;
|
|
11274
|
+
} | null;
|
|
11275
|
+
type: "set" | "product" | "bundle";
|
|
11276
|
+
subscriptionMode: "optional" | "only" | "rolling";
|
|
11277
|
+
bundleDiscountPercentage: string | null;
|
|
11278
|
+
bundlePriceMode: "fixed" | "amount" | "percent";
|
|
11279
|
+
bundleFixedPriceAmount: string | null;
|
|
11280
|
+
bundleAmountOffAmount: string | null;
|
|
11281
|
+
productCollections: {
|
|
11282
|
+
collection: {
|
|
11283
|
+
createdAt: string;
|
|
11284
|
+
description: any;
|
|
11285
|
+
id: string;
|
|
11286
|
+
image: string | null;
|
|
11287
|
+
name: string;
|
|
11288
|
+
slug: string;
|
|
11289
|
+
storeId: string;
|
|
11290
|
+
updatedAt: string;
|
|
11291
|
+
filter: {
|
|
11292
|
+
type: "manual";
|
|
11293
|
+
} | {
|
|
11294
|
+
type: "dynamicPrice";
|
|
11295
|
+
min?: number | null | undefined;
|
|
11296
|
+
max?: number | null | undefined;
|
|
11297
|
+
} | {
|
|
11298
|
+
type: "variantValues";
|
|
11299
|
+
values: Record<string, string[]>;
|
|
11300
|
+
} | {
|
|
11301
|
+
type: "newest";
|
|
11302
|
+
days?: number | null | undefined;
|
|
11303
|
+
};
|
|
11304
|
+
active: boolean;
|
|
11305
|
+
seo?: {
|
|
11306
|
+
title?: string | null | undefined;
|
|
11307
|
+
description?: string | null | undefined;
|
|
11308
|
+
canonical?: string | null | undefined;
|
|
11309
|
+
} | null | undefined;
|
|
11310
|
+
};
|
|
11311
|
+
collectionId: string;
|
|
11312
|
+
position: string | null;
|
|
11313
|
+
productId: string;
|
|
11314
|
+
}[];
|
|
11315
|
+
bundleGroups: {
|
|
11316
|
+
id: string;
|
|
11317
|
+
minQuantity: number;
|
|
11318
|
+
maxQuantity: number | null;
|
|
11319
|
+
allowDuplicates: boolean;
|
|
11320
|
+
}[];
|
|
11321
|
+
bundleProducts: {
|
|
11322
|
+
bundleId: string;
|
|
11323
|
+
variantId: string;
|
|
11324
|
+
groupId: string | null;
|
|
11325
|
+
quantity: number;
|
|
11326
|
+
position: number;
|
|
11327
|
+
forced: boolean;
|
|
11328
|
+
defaultSelected: boolean;
|
|
11329
|
+
maxQuantity: number | null;
|
|
11330
|
+
createdAt: string;
|
|
11331
|
+
updatedAt: string;
|
|
11332
|
+
variant: {
|
|
11333
|
+
id: string;
|
|
11334
|
+
sku: string | null;
|
|
11335
|
+
barcode: string | null;
|
|
11336
|
+
description: string | null;
|
|
11337
|
+
price: string;
|
|
11338
|
+
shippable: boolean;
|
|
11339
|
+
calculatedPrice: string | null;
|
|
11340
|
+
stock: number | null;
|
|
11341
|
+
depth: number | null;
|
|
11342
|
+
width: number | null;
|
|
11343
|
+
height: number | null;
|
|
11344
|
+
weight: number | null;
|
|
11345
|
+
images: string[];
|
|
11346
|
+
digital: string[] | null;
|
|
11347
|
+
externalId: string | null;
|
|
11348
|
+
product: {
|
|
11349
|
+
id: string;
|
|
11350
|
+
name: string;
|
|
11351
|
+
slug: string;
|
|
11352
|
+
images: string[];
|
|
11353
|
+
productTaxRate: {
|
|
11354
|
+
taxRate: {
|
|
11355
|
+
rate: string;
|
|
11356
|
+
label: string | null;
|
|
11357
|
+
};
|
|
11358
|
+
} | null;
|
|
11359
|
+
};
|
|
11360
|
+
createdAt: string;
|
|
11361
|
+
productId: string;
|
|
11362
|
+
updatedAt: string;
|
|
11363
|
+
attributes: {
|
|
11364
|
+
checked: boolean | null;
|
|
11365
|
+
key: string;
|
|
11366
|
+
value: string;
|
|
11367
|
+
}[] | null;
|
|
11368
|
+
storeId: string;
|
|
11369
|
+
originalPrice?: string | null | undefined;
|
|
11370
|
+
} & {
|
|
11371
|
+
originalPrice: string;
|
|
11372
|
+
};
|
|
11373
|
+
}[];
|
|
11374
|
+
setProduct: {
|
|
11375
|
+
selectionCount: number;
|
|
11376
|
+
allowDuplicates: boolean;
|
|
11377
|
+
discountPercentage: string;
|
|
11378
|
+
} | null;
|
|
11379
|
+
seo: {
|
|
11380
|
+
title?: string | null | undefined;
|
|
11381
|
+
description?: string | null | undefined;
|
|
11382
|
+
canonical?: string | null | undefined;
|
|
11383
|
+
} | null;
|
|
11384
|
+
stripeTaxCode: string | null;
|
|
11385
|
+
active?: boolean | null | undefined;
|
|
11386
|
+
};
|
|
11245
11387
|
createdAt: string;
|
|
11388
|
+
productId: string;
|
|
11246
11389
|
updatedAt: string;
|
|
11247
|
-
|
|
11248
|
-
|
|
11249
|
-
|
|
11250
|
-
|
|
11251
|
-
|
|
11252
|
-
|
|
11390
|
+
combinations: {
|
|
11391
|
+
createdAt: string;
|
|
11392
|
+
updatedAt: string;
|
|
11393
|
+
productVariantId: string;
|
|
11394
|
+
variantValueId: string;
|
|
11395
|
+
variantValue: {
|
|
11253
11396
|
id: string;
|
|
11254
|
-
|
|
11255
|
-
|
|
11256
|
-
|
|
11257
|
-
|
|
11397
|
+
value: string;
|
|
11398
|
+
variantType: {
|
|
11399
|
+
id: string;
|
|
11400
|
+
label: string;
|
|
11401
|
+
productId?: string | null | undefined;
|
|
11402
|
+
createdAt?: string | null | undefined;
|
|
11403
|
+
updatedAt?: string | null | undefined;
|
|
11404
|
+
};
|
|
11405
|
+
variantTypeId?: string | null | undefined;
|
|
11258
11406
|
};
|
|
11259
|
-
|
|
11260
|
-
|
|
11261
|
-
|
|
11262
|
-
|
|
11263
|
-
|
|
11264
|
-
|
|
11265
|
-
|
|
11266
|
-
|
|
11267
|
-
|
|
11268
|
-
|
|
11269
|
-
|
|
11270
|
-
|
|
11271
|
-
|
|
11272
|
-
|
|
11273
|
-
|
|
11274
|
-
|
|
11275
|
-
|
|
11276
|
-
|
|
11277
|
-
|
|
11278
|
-
|
|
11279
|
-
|
|
11280
|
-
|
|
11281
|
-
|
|
11282
|
-
|
|
11283
|
-
|
|
11284
|
-
|
|
11285
|
-
|
|
11286
|
-
|
|
11287
|
-
|
|
11288
|
-
|
|
11289
|
-
|
|
11407
|
+
}[];
|
|
11408
|
+
attributes: {
|
|
11409
|
+
checked: boolean | null;
|
|
11410
|
+
key: string;
|
|
11411
|
+
value: string;
|
|
11412
|
+
}[] | null;
|
|
11413
|
+
storeId: string;
|
|
11414
|
+
originalPrice?: string | null | undefined;
|
|
11415
|
+
} & {
|
|
11416
|
+
originalPrice: string;
|
|
11417
|
+
})]: K extends "prices" ? Array<(({
|
|
11418
|
+
id: string;
|
|
11419
|
+
sku: string | null;
|
|
11420
|
+
barcode: string | null;
|
|
11421
|
+
description: string | null;
|
|
11422
|
+
price: string;
|
|
11423
|
+
calculatedPrice: string | null;
|
|
11424
|
+
prePromotionPrice: string | null;
|
|
11425
|
+
preVolumePricingPrice: string | null;
|
|
11426
|
+
stock: number | null;
|
|
11427
|
+
depth: number | null;
|
|
11428
|
+
width: number | null;
|
|
11429
|
+
height: number | null;
|
|
11430
|
+
weight: number | null;
|
|
11431
|
+
images: string[];
|
|
11432
|
+
digital: string[] | null;
|
|
11433
|
+
shippable: boolean;
|
|
11434
|
+
externalId: string | null;
|
|
11435
|
+
product: {
|
|
11436
|
+
id: string;
|
|
11437
|
+
name: string;
|
|
11438
|
+
slug: string;
|
|
11439
|
+
status: "published" | "draft" | "hidden" | null;
|
|
11440
|
+
images: string[];
|
|
11441
|
+
badge: {
|
|
11442
|
+
content?: string | undefined;
|
|
11443
|
+
backgroundColor?: string | undefined;
|
|
11444
|
+
textColor?: string | undefined;
|
|
11445
|
+
} | null;
|
|
11446
|
+
storeId: string;
|
|
11447
|
+
categoryId: string | null;
|
|
11448
|
+
brandId: string | null;
|
|
11449
|
+
summary: string | null;
|
|
11450
|
+
content: any;
|
|
11451
|
+
createdAt: string;
|
|
11452
|
+
updatedAt: string;
|
|
11453
|
+
productTaxRate: {
|
|
11454
|
+
productId: string;
|
|
11455
|
+
taxRateId: string;
|
|
11456
|
+
taxRate: {
|
|
11457
|
+
id: string;
|
|
11458
|
+
storeId: string;
|
|
11459
|
+
name: string;
|
|
11460
|
+
rate: string;
|
|
11461
|
+
label: string | null;
|
|
11462
|
+
createdAt: string;
|
|
11463
|
+
updatedAt: string;
|
|
11464
|
+
};
|
|
11465
|
+
createdAt: string;
|
|
11466
|
+
updatedAt: string;
|
|
11467
|
+
} | null;
|
|
11468
|
+
flags: {
|
|
11469
|
+
gold?: boolean | null | undefined;
|
|
11470
|
+
event?: {
|
|
11471
|
+
enabled: boolean;
|
|
11472
|
+
startsAt?: string | null | undefined;
|
|
11473
|
+
location?: string | null | undefined;
|
|
11474
|
+
capacity?: number | null | undefined;
|
|
11475
|
+
guestLabel?: string | null | undefined;
|
|
11476
|
+
guest?: string | null | undefined;
|
|
11477
|
+
attendeeInfo?: "optional" | "none" | "required" | null | undefined;
|
|
11478
|
+
salesPaused?: boolean | null | undefined;
|
|
11479
|
+
} | null | undefined;
|
|
11480
|
+
scheduledPublishAt?: string | null | undefined;
|
|
11481
|
+
gpsr?: {
|
|
11482
|
+
safetyInformation?: {
|
|
11483
|
+
type: "NO_SAFETY_INFORMATION";
|
|
11484
|
+
} | {
|
|
11485
|
+
type: "TEXT";
|
|
11486
|
+
description: string;
|
|
11487
|
+
} | null | undefined;
|
|
11488
|
+
} | null | undefined;
|
|
11489
|
+
} | null;
|
|
11490
|
+
type: "set" | "product" | "bundle";
|
|
11491
|
+
subscriptionMode: "optional" | "only" | "rolling";
|
|
11492
|
+
bundleDiscountPercentage: string | null;
|
|
11493
|
+
bundlePriceMode: "fixed" | "amount" | "percent";
|
|
11494
|
+
bundleFixedPriceAmount: string | null;
|
|
11495
|
+
bundleAmountOffAmount: string | null;
|
|
11496
|
+
productCollections: {
|
|
11497
|
+
collection: {
|
|
11498
|
+
createdAt: string;
|
|
11499
|
+
description: any;
|
|
11500
|
+
id: string;
|
|
11501
|
+
image: string | null;
|
|
11502
|
+
name: string;
|
|
11503
|
+
slug: string;
|
|
11504
|
+
storeId: string;
|
|
11505
|
+
updatedAt: string;
|
|
11506
|
+
filter: {
|
|
11507
|
+
type: "manual";
|
|
11508
|
+
} | {
|
|
11509
|
+
type: "dynamicPrice";
|
|
11510
|
+
min?: number | null | undefined;
|
|
11511
|
+
max?: number | null | undefined;
|
|
11512
|
+
} | {
|
|
11513
|
+
type: "variantValues";
|
|
11514
|
+
values: Record<string, string[]>;
|
|
11515
|
+
} | {
|
|
11516
|
+
type: "newest";
|
|
11517
|
+
days?: number | null | undefined;
|
|
11518
|
+
};
|
|
11519
|
+
active: boolean;
|
|
11520
|
+
seo?: {
|
|
11521
|
+
title?: string | null | undefined;
|
|
11522
|
+
description?: string | null | undefined;
|
|
11523
|
+
canonical?: string | null | undefined;
|
|
11524
|
+
} | null | undefined;
|
|
11525
|
+
};
|
|
11526
|
+
collectionId: string;
|
|
11527
|
+
position: string | null;
|
|
11528
|
+
productId: string;
|
|
11529
|
+
}[];
|
|
11530
|
+
bundleGroups: {
|
|
11531
|
+
id: string;
|
|
11532
|
+
minQuantity: number;
|
|
11533
|
+
maxQuantity: number | null;
|
|
11534
|
+
allowDuplicates: boolean;
|
|
11535
|
+
}[];
|
|
11536
|
+
bundleProducts: {
|
|
11537
|
+
bundleId: string;
|
|
11538
|
+
variantId: string;
|
|
11539
|
+
groupId: string | null;
|
|
11540
|
+
quantity: number;
|
|
11541
|
+
position: number;
|
|
11542
|
+
forced: boolean;
|
|
11543
|
+
defaultSelected: boolean;
|
|
11544
|
+
maxQuantity: number | null;
|
|
11545
|
+
createdAt: string;
|
|
11546
|
+
updatedAt: string;
|
|
11547
|
+
variant: {
|
|
11548
|
+
id: string;
|
|
11549
|
+
sku: string | null;
|
|
11550
|
+
barcode: string | null;
|
|
11551
|
+
description: string | null;
|
|
11552
|
+
price: string;
|
|
11553
|
+
shippable: boolean;
|
|
11554
|
+
calculatedPrice: string | null;
|
|
11555
|
+
stock: number | null;
|
|
11556
|
+
depth: number | null;
|
|
11557
|
+
width: number | null;
|
|
11558
|
+
height: number | null;
|
|
11559
|
+
weight: number | null;
|
|
11560
|
+
images: string[];
|
|
11561
|
+
digital: string[] | null;
|
|
11562
|
+
externalId: string | null;
|
|
11563
|
+
product: {
|
|
11564
|
+
id: string;
|
|
11565
|
+
name: string;
|
|
11566
|
+
slug: string;
|
|
11567
|
+
images: string[];
|
|
11568
|
+
productTaxRate: {
|
|
11569
|
+
taxRate: {
|
|
11570
|
+
rate: string;
|
|
11571
|
+
label: string | null;
|
|
11572
|
+
};
|
|
11573
|
+
} | null;
|
|
11574
|
+
};
|
|
11575
|
+
createdAt: string;
|
|
11576
|
+
productId: string;
|
|
11577
|
+
updatedAt: string;
|
|
11578
|
+
attributes: {
|
|
11579
|
+
checked: boolean | null;
|
|
11580
|
+
key: string;
|
|
11581
|
+
value: string;
|
|
11582
|
+
}[] | null;
|
|
11583
|
+
storeId: string;
|
|
11584
|
+
originalPrice?: string | null | undefined;
|
|
11585
|
+
} & {
|
|
11586
|
+
originalPrice: string;
|
|
11587
|
+
};
|
|
11588
|
+
}[];
|
|
11589
|
+
setProduct: {
|
|
11590
|
+
selectionCount: number;
|
|
11591
|
+
allowDuplicates: boolean;
|
|
11592
|
+
discountPercentage: string;
|
|
11593
|
+
} | null;
|
|
11594
|
+
seo: {
|
|
11595
|
+
title?: string | null | undefined;
|
|
11596
|
+
description?: string | null | undefined;
|
|
11597
|
+
canonical?: string | null | undefined;
|
|
11598
|
+
} | null;
|
|
11599
|
+
stripeTaxCode: string | null;
|
|
11600
|
+
active?: boolean | null | undefined;
|
|
11601
|
+
};
|
|
11602
|
+
createdAt: string;
|
|
11603
|
+
productId: string;
|
|
11604
|
+
updatedAt: string;
|
|
11605
|
+
combinations: {
|
|
11606
|
+
createdAt: string;
|
|
11607
|
+
updatedAt: string;
|
|
11608
|
+
productVariantId: string;
|
|
11609
|
+
variantValueId: string;
|
|
11610
|
+
variantValue: {
|
|
11611
|
+
id: string;
|
|
11612
|
+
value: string;
|
|
11613
|
+
variantType: {
|
|
11614
|
+
id: string;
|
|
11615
|
+
label: string;
|
|
11616
|
+
productId?: string | null | undefined;
|
|
11617
|
+
createdAt?: string | null | undefined;
|
|
11618
|
+
updatedAt?: string | null | undefined;
|
|
11619
|
+
};
|
|
11620
|
+
variantTypeId?: string | null | undefined;
|
|
11621
|
+
};
|
|
11622
|
+
}[];
|
|
11623
|
+
attributes: {
|
|
11624
|
+
checked: boolean | null;
|
|
11625
|
+
key: string;
|
|
11626
|
+
value: string;
|
|
11627
|
+
}[] | null;
|
|
11628
|
+
storeId: string;
|
|
11629
|
+
originalPrice?: string | null | undefined;
|
|
11630
|
+
} & {
|
|
11631
|
+
originalPrice: string;
|
|
11632
|
+
})[K] extends readonly (infer TElement)[] ? TElement : never) & {
|
|
11633
|
+
/** `price` converted to gross with the owning product's tax rate. */
|
|
11634
|
+
priceGross: string;
|
|
11635
|
+
/** `calculatedPrice` converted to gross; null when there is no calculated price. */
|
|
11636
|
+
calculatedPriceGross: string | null;
|
|
11637
|
+
}> : ({
|
|
11638
|
+
id: string;
|
|
11639
|
+
sku: string | null;
|
|
11640
|
+
barcode: string | null;
|
|
11641
|
+
description: string | null;
|
|
11642
|
+
price: string;
|
|
11643
|
+
calculatedPrice: string | null;
|
|
11644
|
+
prePromotionPrice: string | null;
|
|
11645
|
+
preVolumePricingPrice: string | null;
|
|
11646
|
+
stock: number | null;
|
|
11647
|
+
depth: number | null;
|
|
11648
|
+
width: number | null;
|
|
11649
|
+
height: number | null;
|
|
11650
|
+
weight: number | null;
|
|
11651
|
+
images: string[];
|
|
11652
|
+
digital: string[] | null;
|
|
11653
|
+
shippable: boolean;
|
|
11654
|
+
externalId: string | null;
|
|
11655
|
+
product: {
|
|
11656
|
+
id: string;
|
|
11657
|
+
name: string;
|
|
11658
|
+
slug: string;
|
|
11659
|
+
status: "published" | "draft" | "hidden" | null;
|
|
11660
|
+
images: string[];
|
|
11661
|
+
badge: {
|
|
11662
|
+
content?: string | undefined;
|
|
11663
|
+
backgroundColor?: string | undefined;
|
|
11664
|
+
textColor?: string | undefined;
|
|
11665
|
+
} | null;
|
|
11666
|
+
storeId: string;
|
|
11667
|
+
categoryId: string | null;
|
|
11668
|
+
brandId: string | null;
|
|
11669
|
+
summary: string | null;
|
|
11670
|
+
content: any;
|
|
11671
|
+
createdAt: string;
|
|
11672
|
+
updatedAt: string;
|
|
11673
|
+
productTaxRate: {
|
|
11674
|
+
productId: string;
|
|
11675
|
+
taxRateId: string;
|
|
11676
|
+
taxRate: {
|
|
11677
|
+
id: string;
|
|
11678
|
+
storeId: string;
|
|
11679
|
+
name: string;
|
|
11680
|
+
rate: string;
|
|
11681
|
+
label: string | null;
|
|
11682
|
+
createdAt: string;
|
|
11683
|
+
updatedAt: string;
|
|
11684
|
+
};
|
|
11685
|
+
createdAt: string;
|
|
11686
|
+
updatedAt: string;
|
|
11687
|
+
} | null;
|
|
11688
|
+
flags: {
|
|
11689
|
+
gold?: boolean | null | undefined;
|
|
11690
|
+
event?: {
|
|
11691
|
+
enabled: boolean;
|
|
11692
|
+
startsAt?: string | null | undefined;
|
|
11693
|
+
location?: string | null | undefined;
|
|
11694
|
+
capacity?: number | null | undefined;
|
|
11695
|
+
guestLabel?: string | null | undefined;
|
|
11696
|
+
guest?: string | null | undefined;
|
|
11697
|
+
attendeeInfo?: "optional" | "none" | "required" | null | undefined;
|
|
11698
|
+
salesPaused?: boolean | null | undefined;
|
|
11699
|
+
} | null | undefined;
|
|
11700
|
+
scheduledPublishAt?: string | null | undefined;
|
|
11701
|
+
gpsr?: {
|
|
11702
|
+
safetyInformation?: {
|
|
11703
|
+
type: "NO_SAFETY_INFORMATION";
|
|
11704
|
+
} | {
|
|
11705
|
+
type: "TEXT";
|
|
11706
|
+
description: string;
|
|
11707
|
+
} | null | undefined;
|
|
11708
|
+
} | null | undefined;
|
|
11709
|
+
} | null;
|
|
11710
|
+
type: "set" | "product" | "bundle";
|
|
11711
|
+
subscriptionMode: "optional" | "only" | "rolling";
|
|
11712
|
+
bundleDiscountPercentage: string | null;
|
|
11713
|
+
bundlePriceMode: "fixed" | "amount" | "percent";
|
|
11714
|
+
bundleFixedPriceAmount: string | null;
|
|
11715
|
+
bundleAmountOffAmount: string | null;
|
|
11716
|
+
productCollections: {
|
|
11717
|
+
collection: {
|
|
11718
|
+
createdAt: string;
|
|
11719
|
+
description: any;
|
|
11720
|
+
id: string;
|
|
11721
|
+
image: string | null;
|
|
11722
|
+
name: string;
|
|
11723
|
+
slug: string;
|
|
11724
|
+
storeId: string;
|
|
11725
|
+
updatedAt: string;
|
|
11726
|
+
filter: {
|
|
11727
|
+
type: "manual";
|
|
11728
|
+
} | {
|
|
11729
|
+
type: "dynamicPrice";
|
|
11730
|
+
min?: number | null | undefined;
|
|
11731
|
+
max?: number | null | undefined;
|
|
11732
|
+
} | {
|
|
11733
|
+
type: "variantValues";
|
|
11734
|
+
values: Record<string, string[]>;
|
|
11735
|
+
} | {
|
|
11736
|
+
type: "newest";
|
|
11737
|
+
days?: number | null | undefined;
|
|
11738
|
+
};
|
|
11739
|
+
active: boolean;
|
|
11740
|
+
seo?: {
|
|
11741
|
+
title?: string | null | undefined;
|
|
11742
|
+
description?: string | null | undefined;
|
|
11743
|
+
canonical?: string | null | undefined;
|
|
11744
|
+
} | null | undefined;
|
|
11745
|
+
};
|
|
11746
|
+
collectionId: string;
|
|
11747
|
+
position: string | null;
|
|
11748
|
+
productId: string;
|
|
11749
|
+
}[];
|
|
11750
|
+
bundleGroups: {
|
|
11751
|
+
id: string;
|
|
11752
|
+
minQuantity: number;
|
|
11753
|
+
maxQuantity: number | null;
|
|
11754
|
+
allowDuplicates: boolean;
|
|
11755
|
+
}[];
|
|
11756
|
+
bundleProducts: {
|
|
11757
|
+
bundleId: string;
|
|
11758
|
+
variantId: string;
|
|
11759
|
+
groupId: string | null;
|
|
11760
|
+
quantity: number;
|
|
11761
|
+
position: number;
|
|
11762
|
+
forced: boolean;
|
|
11763
|
+
defaultSelected: boolean;
|
|
11764
|
+
maxQuantity: number | null;
|
|
11765
|
+
createdAt: string;
|
|
11766
|
+
updatedAt: string;
|
|
11767
|
+
variant: {
|
|
11768
|
+
id: string;
|
|
11769
|
+
sku: string | null;
|
|
11770
|
+
barcode: string | null;
|
|
11771
|
+
description: string | null;
|
|
11772
|
+
price: string;
|
|
11773
|
+
shippable: boolean;
|
|
11774
|
+
calculatedPrice: string | null;
|
|
11775
|
+
stock: number | null;
|
|
11776
|
+
depth: number | null;
|
|
11777
|
+
width: number | null;
|
|
11778
|
+
height: number | null;
|
|
11779
|
+
weight: number | null;
|
|
11780
|
+
images: string[];
|
|
11781
|
+
digital: string[] | null;
|
|
11782
|
+
externalId: string | null;
|
|
11783
|
+
product: {
|
|
11784
|
+
id: string;
|
|
11785
|
+
name: string;
|
|
11786
|
+
slug: string;
|
|
11787
|
+
images: string[];
|
|
11788
|
+
productTaxRate: {
|
|
11789
|
+
taxRate: {
|
|
11790
|
+
rate: string;
|
|
11791
|
+
label: string | null;
|
|
11792
|
+
};
|
|
11793
|
+
} | null;
|
|
11794
|
+
};
|
|
11795
|
+
createdAt: string;
|
|
11796
|
+
productId: string;
|
|
11797
|
+
updatedAt: string;
|
|
11798
|
+
attributes: {
|
|
11799
|
+
checked: boolean | null;
|
|
11800
|
+
key: string;
|
|
11801
|
+
value: string;
|
|
11802
|
+
}[] | null;
|
|
11803
|
+
storeId: string;
|
|
11804
|
+
originalPrice?: string | null | undefined;
|
|
11805
|
+
} & {
|
|
11806
|
+
originalPrice: string;
|
|
11807
|
+
};
|
|
11808
|
+
}[];
|
|
11809
|
+
setProduct: {
|
|
11810
|
+
selectionCount: number;
|
|
11811
|
+
allowDuplicates: boolean;
|
|
11812
|
+
discountPercentage: string;
|
|
11813
|
+
} | null;
|
|
11814
|
+
seo: {
|
|
11815
|
+
title?: string | null | undefined;
|
|
11816
|
+
description?: string | null | undefined;
|
|
11817
|
+
canonical?: string | null | undefined;
|
|
11818
|
+
} | null;
|
|
11819
|
+
stripeTaxCode: string | null;
|
|
11820
|
+
active?: boolean | null | undefined;
|
|
11821
|
+
};
|
|
11822
|
+
createdAt: string;
|
|
11823
|
+
productId: string;
|
|
11824
|
+
updatedAt: string;
|
|
11825
|
+
combinations: {
|
|
11826
|
+
createdAt: string;
|
|
11827
|
+
updatedAt: string;
|
|
11828
|
+
productVariantId: string;
|
|
11829
|
+
variantValueId: string;
|
|
11830
|
+
variantValue: {
|
|
11831
|
+
id: string;
|
|
11832
|
+
value: string;
|
|
11833
|
+
variantType: {
|
|
11834
|
+
id: string;
|
|
11835
|
+
label: string;
|
|
11836
|
+
productId?: string | null | undefined;
|
|
11837
|
+
createdAt?: string | null | undefined;
|
|
11838
|
+
updatedAt?: string | null | undefined;
|
|
11839
|
+
};
|
|
11840
|
+
variantTypeId?: string | null | undefined;
|
|
11841
|
+
};
|
|
11842
|
+
}[];
|
|
11843
|
+
attributes: {
|
|
11844
|
+
checked: boolean | null;
|
|
11845
|
+
key: string;
|
|
11846
|
+
value: string;
|
|
11847
|
+
}[] | null;
|
|
11848
|
+
storeId: string;
|
|
11849
|
+
originalPrice?: string | null | undefined;
|
|
11850
|
+
} & {
|
|
11851
|
+
originalPrice: string;
|
|
11852
|
+
})[K];
|
|
11853
|
+
} & {
|
|
11854
|
+
/** `price` (the effective net price) converted to gross with the product's tax rate. */
|
|
11855
|
+
priceGross: string;
|
|
11856
|
+
} & {
|
|
11857
|
+
[K in Extract<keyof ({
|
|
11858
|
+
id: string;
|
|
11859
|
+
sku: string | null;
|
|
11860
|
+
barcode: string | null;
|
|
11861
|
+
description: string | null;
|
|
11862
|
+
price: string;
|
|
11863
|
+
calculatedPrice: string | null;
|
|
11864
|
+
prePromotionPrice: string | null;
|
|
11865
|
+
preVolumePricingPrice: string | null;
|
|
11866
|
+
stock: number | null;
|
|
11867
|
+
depth: number | null;
|
|
11868
|
+
width: number | null;
|
|
11869
|
+
height: number | null;
|
|
11870
|
+
weight: number | null;
|
|
11871
|
+
images: string[];
|
|
11872
|
+
digital: string[] | null;
|
|
11873
|
+
shippable: boolean;
|
|
11874
|
+
externalId: string | null;
|
|
11875
|
+
product: {
|
|
11876
|
+
id: string;
|
|
11877
|
+
name: string;
|
|
11878
|
+
slug: string;
|
|
11879
|
+
status: "published" | "draft" | "hidden" | null;
|
|
11880
|
+
images: string[];
|
|
11881
|
+
badge: {
|
|
11882
|
+
content?: string | undefined;
|
|
11883
|
+
backgroundColor?: string | undefined;
|
|
11884
|
+
textColor?: string | undefined;
|
|
11885
|
+
} | null;
|
|
11886
|
+
storeId: string;
|
|
11887
|
+
categoryId: string | null;
|
|
11888
|
+
brandId: string | null;
|
|
11889
|
+
summary: string | null;
|
|
11890
|
+
content: any;
|
|
11891
|
+
createdAt: string;
|
|
11892
|
+
updatedAt: string;
|
|
11893
|
+
productTaxRate: {
|
|
11894
|
+
productId: string;
|
|
11895
|
+
taxRateId: string;
|
|
11896
|
+
taxRate: {
|
|
11897
|
+
id: string;
|
|
11898
|
+
storeId: string;
|
|
11899
|
+
name: string;
|
|
11900
|
+
rate: string;
|
|
11901
|
+
label: string | null;
|
|
11902
|
+
createdAt: string;
|
|
11903
|
+
updatedAt: string;
|
|
11904
|
+
};
|
|
11905
|
+
createdAt: string;
|
|
11906
|
+
updatedAt: string;
|
|
11907
|
+
} | null;
|
|
11908
|
+
flags: {
|
|
11909
|
+
gold?: boolean | null | undefined;
|
|
11910
|
+
event?: {
|
|
11911
|
+
enabled: boolean;
|
|
11912
|
+
startsAt?: string | null | undefined;
|
|
11913
|
+
location?: string | null | undefined;
|
|
11914
|
+
capacity?: number | null | undefined;
|
|
11915
|
+
guestLabel?: string | null | undefined;
|
|
11916
|
+
guest?: string | null | undefined;
|
|
11917
|
+
attendeeInfo?: "optional" | "none" | "required" | null | undefined;
|
|
11918
|
+
salesPaused?: boolean | null | undefined;
|
|
11919
|
+
} | null | undefined;
|
|
11920
|
+
scheduledPublishAt?: string | null | undefined;
|
|
11921
|
+
gpsr?: {
|
|
11922
|
+
safetyInformation?: {
|
|
11923
|
+
type: "NO_SAFETY_INFORMATION";
|
|
11924
|
+
} | {
|
|
11925
|
+
type: "TEXT";
|
|
11926
|
+
description: string;
|
|
11927
|
+
} | null | undefined;
|
|
11928
|
+
} | null | undefined;
|
|
11929
|
+
} | null;
|
|
11930
|
+
type: "set" | "product" | "bundle";
|
|
11931
|
+
subscriptionMode: "optional" | "only" | "rolling";
|
|
11932
|
+
bundleDiscountPercentage: string | null;
|
|
11933
|
+
bundlePriceMode: "fixed" | "amount" | "percent";
|
|
11934
|
+
bundleFixedPriceAmount: string | null;
|
|
11935
|
+
bundleAmountOffAmount: string | null;
|
|
11936
|
+
productCollections: {
|
|
11937
|
+
collection: {
|
|
11938
|
+
createdAt: string;
|
|
11939
|
+
description: any;
|
|
11940
|
+
id: string;
|
|
11941
|
+
image: string | null;
|
|
11942
|
+
name: string;
|
|
11943
|
+
slug: string;
|
|
11944
|
+
storeId: string;
|
|
11945
|
+
updatedAt: string;
|
|
11946
|
+
filter: {
|
|
11947
|
+
type: "manual";
|
|
11948
|
+
} | {
|
|
11949
|
+
type: "dynamicPrice";
|
|
11950
|
+
min?: number | null | undefined;
|
|
11951
|
+
max?: number | null | undefined;
|
|
11952
|
+
} | {
|
|
11953
|
+
type: "variantValues";
|
|
11954
|
+
values: Record<string, string[]>;
|
|
11955
|
+
} | {
|
|
11956
|
+
type: "newest";
|
|
11957
|
+
days?: number | null | undefined;
|
|
11958
|
+
};
|
|
11959
|
+
active: boolean;
|
|
11960
|
+
seo?: {
|
|
11961
|
+
title?: string | null | undefined;
|
|
11962
|
+
description?: string | null | undefined;
|
|
11963
|
+
canonical?: string | null | undefined;
|
|
11964
|
+
} | null | undefined;
|
|
11965
|
+
};
|
|
11966
|
+
collectionId: string;
|
|
11967
|
+
position: string | null;
|
|
11968
|
+
productId: string;
|
|
11969
|
+
}[];
|
|
11970
|
+
bundleGroups: {
|
|
11971
|
+
id: string;
|
|
11972
|
+
minQuantity: number;
|
|
11973
|
+
maxQuantity: number | null;
|
|
11974
|
+
allowDuplicates: boolean;
|
|
11975
|
+
}[];
|
|
11976
|
+
bundleProducts: {
|
|
11977
|
+
bundleId: string;
|
|
11978
|
+
variantId: string;
|
|
11979
|
+
groupId: string | null;
|
|
11980
|
+
quantity: number;
|
|
11981
|
+
position: number;
|
|
11982
|
+
forced: boolean;
|
|
11983
|
+
defaultSelected: boolean;
|
|
11984
|
+
maxQuantity: number | null;
|
|
11985
|
+
createdAt: string;
|
|
11986
|
+
updatedAt: string;
|
|
11987
|
+
variant: {
|
|
11988
|
+
id: string;
|
|
11989
|
+
sku: string | null;
|
|
11990
|
+
barcode: string | null;
|
|
11991
|
+
description: string | null;
|
|
11992
|
+
price: string;
|
|
11993
|
+
shippable: boolean;
|
|
11994
|
+
calculatedPrice: string | null;
|
|
11995
|
+
stock: number | null;
|
|
11996
|
+
depth: number | null;
|
|
11997
|
+
width: number | null;
|
|
11998
|
+
height: number | null;
|
|
11999
|
+
weight: number | null;
|
|
12000
|
+
images: string[];
|
|
12001
|
+
digital: string[] | null;
|
|
12002
|
+
externalId: string | null;
|
|
12003
|
+
product: {
|
|
12004
|
+
id: string;
|
|
12005
|
+
name: string;
|
|
12006
|
+
slug: string;
|
|
12007
|
+
images: string[];
|
|
12008
|
+
productTaxRate: {
|
|
12009
|
+
taxRate: {
|
|
12010
|
+
rate: string;
|
|
12011
|
+
label: string | null;
|
|
12012
|
+
};
|
|
12013
|
+
} | null;
|
|
12014
|
+
};
|
|
12015
|
+
createdAt: string;
|
|
12016
|
+
productId: string;
|
|
12017
|
+
updatedAt: string;
|
|
12018
|
+
attributes: {
|
|
12019
|
+
checked: boolean | null;
|
|
12020
|
+
key: string;
|
|
12021
|
+
value: string;
|
|
12022
|
+
}[] | null;
|
|
12023
|
+
storeId: string;
|
|
12024
|
+
originalPrice?: string | null | undefined;
|
|
12025
|
+
} & {
|
|
12026
|
+
originalPrice: string;
|
|
12027
|
+
};
|
|
12028
|
+
}[];
|
|
12029
|
+
setProduct: {
|
|
12030
|
+
selectionCount: number;
|
|
12031
|
+
allowDuplicates: boolean;
|
|
12032
|
+
discountPercentage: string;
|
|
12033
|
+
} | null;
|
|
12034
|
+
seo: {
|
|
12035
|
+
title?: string | null | undefined;
|
|
12036
|
+
description?: string | null | undefined;
|
|
12037
|
+
canonical?: string | null | undefined;
|
|
12038
|
+
} | null;
|
|
12039
|
+
stripeTaxCode: string | null;
|
|
12040
|
+
active?: boolean | null | undefined;
|
|
12041
|
+
};
|
|
12042
|
+
createdAt: string;
|
|
12043
|
+
productId: string;
|
|
12044
|
+
updatedAt: string;
|
|
12045
|
+
combinations: {
|
|
12046
|
+
createdAt: string;
|
|
12047
|
+
updatedAt: string;
|
|
12048
|
+
productVariantId: string;
|
|
12049
|
+
variantValueId: string;
|
|
12050
|
+
variantValue: {
|
|
12051
|
+
id: string;
|
|
12052
|
+
value: string;
|
|
12053
|
+
variantType: {
|
|
12054
|
+
id: string;
|
|
12055
|
+
label: string;
|
|
12056
|
+
productId?: string | null | undefined;
|
|
12057
|
+
createdAt?: string | null | undefined;
|
|
12058
|
+
updatedAt?: string | null | undefined;
|
|
12059
|
+
};
|
|
12060
|
+
variantTypeId?: string | null | undefined;
|
|
12061
|
+
};
|
|
12062
|
+
}[];
|
|
12063
|
+
attributes: {
|
|
12064
|
+
checked: boolean | null;
|
|
12065
|
+
key: string;
|
|
12066
|
+
value: string;
|
|
12067
|
+
}[] | null;
|
|
12068
|
+
storeId: string;
|
|
12069
|
+
originalPrice?: string | null | undefined;
|
|
12070
|
+
} & {
|
|
12071
|
+
originalPrice: string;
|
|
12072
|
+
}), "calculatedPrice" | "originalPrice" | "prePromotionPrice" | "omnibusPrice"> as `${K}Gross`]: string | null;
|
|
12073
|
+
};
|
|
12074
|
+
productVariantId: string;
|
|
12075
|
+
preVolumePricingPrice: string | null;
|
|
12076
|
+
subscriptionPlanId: string | null;
|
|
12077
|
+
subscriptionPlan: {
|
|
12078
|
+
id: string;
|
|
12079
|
+
name: string;
|
|
12080
|
+
cadence: "month" | "week";
|
|
12081
|
+
interval: number;
|
|
12082
|
+
discountPercent: number;
|
|
12083
|
+
description: string | null;
|
|
12084
|
+
benefits: string | null;
|
|
12085
|
+
active: boolean;
|
|
12086
|
+
createdAt: string;
|
|
12087
|
+
position: number;
|
|
12088
|
+
storeId: string;
|
|
12089
|
+
updatedAt: string;
|
|
12090
|
+
} | null;
|
|
12091
|
+
rollingCycle: {
|
|
12092
|
+
id: string;
|
|
12093
|
+
title: string;
|
|
12094
|
+
startsAt: string;
|
|
12095
|
+
items: {
|
|
12096
|
+
productVariantId: string;
|
|
12097
|
+
productId: string;
|
|
12098
|
+
name: string;
|
|
12099
|
+
variantLabel: string | null;
|
|
12100
|
+
sku: string | null;
|
|
12101
|
+
image: string | null;
|
|
12102
|
+
quantity: number;
|
|
12103
|
+
}[];
|
|
12104
|
+
} | null;
|
|
12105
|
+
slotId: string | null;
|
|
12106
|
+
attendees: {
|
|
12107
|
+
name: string;
|
|
12108
|
+
email: string | null;
|
|
12109
|
+
phone: string | null;
|
|
12110
|
+
dietary: string | null;
|
|
12111
|
+
notes: string | null;
|
|
12112
|
+
}[] | null;
|
|
12113
|
+
setSelections: {
|
|
12114
|
+
id: string;
|
|
12115
|
+
lineItemId: string;
|
|
12116
|
+
selectedVariantId: string;
|
|
12117
|
+
quantity: number;
|
|
12118
|
+
position: number;
|
|
12119
|
+
createdAt: string;
|
|
12120
|
+
updatedAt: string;
|
|
12121
|
+
selectedVariant: {
|
|
12122
|
+
id: string;
|
|
12123
|
+
price: string;
|
|
12124
|
+
product: {
|
|
12125
|
+
id: string;
|
|
12126
|
+
name: string;
|
|
12127
|
+
};
|
|
12128
|
+
combinations: {
|
|
12129
|
+
createdAt: string;
|
|
12130
|
+
updatedAt: string;
|
|
12131
|
+
productVariantId: string;
|
|
12132
|
+
variantValueId: string;
|
|
12133
|
+
variantValue: {
|
|
12134
|
+
id: string;
|
|
12135
|
+
value: string;
|
|
12136
|
+
variantType: {
|
|
12137
|
+
id: string;
|
|
12138
|
+
label: string;
|
|
12139
|
+
productId?: string | null | undefined;
|
|
12140
|
+
createdAt?: string | null | undefined;
|
|
12141
|
+
updatedAt?: string | null | undefined;
|
|
12142
|
+
};
|
|
12143
|
+
variantTypeId?: string | null | undefined;
|
|
12144
|
+
};
|
|
12145
|
+
}[];
|
|
12146
|
+
};
|
|
12147
|
+
}[];
|
|
12148
|
+
}[];
|
|
12149
|
+
updatedAt: string;
|
|
12150
|
+
couponId: string | null;
|
|
12151
|
+
coupon: {
|
|
12152
|
+
type: "fixed" | "percentage";
|
|
12153
|
+
value: string;
|
|
12154
|
+
code: string;
|
|
12155
|
+
startDate: string | null;
|
|
12156
|
+
endDate: string | null;
|
|
12157
|
+
minProductCount: number | null;
|
|
12158
|
+
maxProductCount: number | null;
|
|
12159
|
+
} | null;
|
|
12160
|
+
billingAddress: {
|
|
12161
|
+
id: string;
|
|
12162
|
+
type: "shipping" | "billing" | "merchant";
|
|
12163
|
+
company: string | null;
|
|
12164
|
+
name: string | null;
|
|
12165
|
+
city: string | null;
|
|
12166
|
+
line1: string | null;
|
|
12167
|
+
line2: string | null;
|
|
12168
|
+
postalCode: string | null;
|
|
12169
|
+
state: string | null;
|
|
12170
|
+
country: string | null;
|
|
12171
|
+
phone: string | null;
|
|
12172
|
+
taxId: string | null;
|
|
12173
|
+
createdAt: string;
|
|
12174
|
+
updatedAt: string;
|
|
12175
|
+
} | null;
|
|
12176
|
+
shippingAddress: {
|
|
12177
|
+
id: string;
|
|
12178
|
+
type: "shipping" | "billing" | "merchant";
|
|
12179
|
+
company: string | null;
|
|
12180
|
+
name: string | null;
|
|
12181
|
+
city: string | null;
|
|
12182
|
+
line1: string | null;
|
|
12183
|
+
line2: string | null;
|
|
12184
|
+
postalCode: string | null;
|
|
12185
|
+
state: string | null;
|
|
12186
|
+
country: string | null;
|
|
12187
|
+
phone: string | null;
|
|
12188
|
+
taxId: string | null;
|
|
12189
|
+
createdAt: string;
|
|
12190
|
+
updatedAt: string;
|
|
12191
|
+
} | null;
|
|
12192
|
+
billingAddressId: string | null;
|
|
12193
|
+
shippingAddressId: string | null;
|
|
12194
|
+
stripePaymentIntentId: string | null;
|
|
12195
|
+
checkoutSessionId: string | null;
|
|
12196
|
+
stripeInvoice: {
|
|
12197
|
+
id: string;
|
|
12198
|
+
amountPaid: number;
|
|
12199
|
+
currency: string;
|
|
12200
|
+
} | null;
|
|
12201
|
+
customerId: string | null;
|
|
12202
|
+
customer: {
|
|
12203
|
+
id: string;
|
|
12204
|
+
email: string | null;
|
|
12205
|
+
storeId: string;
|
|
12206
|
+
createdAt: string;
|
|
12207
|
+
updatedAt: string;
|
|
12208
|
+
userId: string | null;
|
|
12209
|
+
stripeCustomerId: string | null;
|
|
12210
|
+
user: {
|
|
12211
|
+
id: string;
|
|
12212
|
+
name: string;
|
|
12213
|
+
email: string;
|
|
12214
|
+
} | null;
|
|
12215
|
+
couponId: string | null;
|
|
12216
|
+
coupon: {
|
|
12217
|
+
type: "fixed" | "percentage";
|
|
12218
|
+
value: string;
|
|
12219
|
+
code: string;
|
|
12220
|
+
startDate: string | null;
|
|
12221
|
+
endDate: string | null;
|
|
12222
|
+
minProductCount: number | null;
|
|
12223
|
+
maxProductCount: number | null;
|
|
12224
|
+
} | null;
|
|
12225
|
+
} | null;
|
|
12226
|
+
addonData: {
|
|
12227
|
+
[x: string]: unknown;
|
|
12228
|
+
} | null;
|
|
12229
|
+
deliverySlot: unknown;
|
|
12230
|
+
ucpSessionStatus: "incomplete" | "ready_for_complete" | "requires_escalation" | "complete_in_progress" | "completed" | "canceled" | null;
|
|
12231
|
+
ucpMetadata: {
|
|
12232
|
+
buyerEmail?: string | undefined;
|
|
12233
|
+
buyerName?: string | undefined;
|
|
12234
|
+
buyerPhone?: string | undefined;
|
|
12235
|
+
agentId?: string | undefined;
|
|
12236
|
+
externalReference?: string | undefined;
|
|
12237
|
+
escalationReason?: string | undefined;
|
|
12238
|
+
} | null;
|
|
12239
|
+
acpSessionStatus: "completed" | "canceled" | "not_ready_for_payment" | "ready_for_payment" | null;
|
|
12240
|
+
acpMetadata: {
|
|
12241
|
+
buyerEmail?: string | undefined;
|
|
12242
|
+
buyerName?: string | undefined;
|
|
12243
|
+
buyerPhone?: string | undefined;
|
|
12244
|
+
agentId?: string | undefined;
|
|
12245
|
+
externalReference?: string | undefined;
|
|
12246
|
+
idempotencyKey?: string | undefined;
|
|
12247
|
+
} | null;
|
|
12248
|
+
inventory: {
|
|
12249
|
+
committedAt: string;
|
|
12250
|
+
lines: {
|
|
12251
|
+
variantId: string;
|
|
12252
|
+
quantity: number;
|
|
12253
|
+
}[];
|
|
12254
|
+
} | null;
|
|
12255
|
+
reservation: {
|
|
12256
|
+
expiredAt: string | null;
|
|
12257
|
+
transferDeclaredAt: string | null;
|
|
12258
|
+
} | null;
|
|
12259
|
+
freeShippingThreshold: number | null;
|
|
12260
|
+
totalNet: number | null;
|
|
12261
|
+
subtotalNet: number | null;
|
|
12262
|
+
totalGross: number | null;
|
|
12263
|
+
subtotalGross: number | null;
|
|
12264
|
+
shippingGross: number | null;
|
|
12265
|
+
total: number | null;
|
|
12266
|
+
subtotal: number | null;
|
|
12267
|
+
totalTax: number | null;
|
|
12268
|
+
taxBreakdown: Record<string, {
|
|
12269
|
+
taxRate: {
|
|
12270
|
+
id: string;
|
|
12271
|
+
storeId: string;
|
|
12272
|
+
name: string;
|
|
12273
|
+
rate: string;
|
|
12274
|
+
label: string | null;
|
|
12275
|
+
createdAt: string;
|
|
12276
|
+
updatedAt: string;
|
|
12277
|
+
};
|
|
12278
|
+
tax: number | null;
|
|
12279
|
+
}> | null;
|
|
12280
|
+
stripeTaxData: {
|
|
12281
|
+
amountTax: number;
|
|
12282
|
+
breakdown?: {
|
|
12283
|
+
amount: number;
|
|
12284
|
+
rate: {
|
|
12285
|
+
displayName: string;
|
|
12286
|
+
percentage: number;
|
|
12287
|
+
jurisdiction?: string | null | undefined;
|
|
12288
|
+
};
|
|
12289
|
+
}[] | null | undefined;
|
|
12290
|
+
} | null;
|
|
12291
|
+
currency: string | null;
|
|
12292
|
+
checkoutConsents: {
|
|
12293
|
+
id: string;
|
|
12294
|
+
content: unknown;
|
|
12295
|
+
required: boolean;
|
|
12296
|
+
accepted: boolean;
|
|
12297
|
+
type: "general" | "newsletter";
|
|
12298
|
+
}[] | null;
|
|
12299
|
+
};
|
|
12300
|
+
shipment: APIShipment | null;
|
|
12301
|
+
}>;
|
|
12302
|
+
};
|
|
12303
|
+
type APIOrdersBrowseQueryParams = {
|
|
12304
|
+
offset?: number | undefined;
|
|
12305
|
+
limit?: number | undefined;
|
|
12306
|
+
};
|
|
12307
|
+
type APIOrderGetByIdResult = Omit<{
|
|
12308
|
+
id: string;
|
|
12309
|
+
createdAt: string;
|
|
12310
|
+
updatedAt: string;
|
|
12311
|
+
storeId: string;
|
|
12312
|
+
status: "completed" | "cancelled" | "paid" | "created" | "processing" | "shipped" | "refunded" | "partially_refunded" | "reserved";
|
|
12313
|
+
environment: "live" | "test";
|
|
12314
|
+
source: string | null;
|
|
12315
|
+
externalId: string | null;
|
|
12316
|
+
customerId: string | null;
|
|
12317
|
+
attribution: {
|
|
12318
|
+
firstTouch: {
|
|
12319
|
+
source: string | null;
|
|
12320
|
+
medium: string | null;
|
|
12321
|
+
campaign: string | null;
|
|
12322
|
+
referrerHost: string | null;
|
|
12323
|
+
ts: number;
|
|
12324
|
+
};
|
|
12325
|
+
lastTouch: {
|
|
12326
|
+
source: string | null;
|
|
12327
|
+
medium: string | null;
|
|
12328
|
+
campaign: string | null;
|
|
12329
|
+
referrerHost: string | null;
|
|
12330
|
+
ts: number;
|
|
12331
|
+
};
|
|
12332
|
+
} | null;
|
|
12333
|
+
lookup: number;
|
|
12334
|
+
cartId: string | null;
|
|
12335
|
+
orderData: {
|
|
12336
|
+
id: string;
|
|
12337
|
+
storeId: string;
|
|
12338
|
+
shippingId: string | null;
|
|
12339
|
+
shipping: {
|
|
12340
|
+
id: string;
|
|
12341
|
+
storeId: string;
|
|
12342
|
+
name: string;
|
|
12343
|
+
price: string;
|
|
12344
|
+
freeShippingThreshold: string | null;
|
|
12345
|
+
minShippingTime: number | null;
|
|
12346
|
+
maxShippingTime: number | null;
|
|
12347
|
+
description: string | null;
|
|
12348
|
+
addonId: string | null;
|
|
12349
|
+
shippingAddon: {
|
|
12350
|
+
type: "shipping" | "products" | "analytics" | "invoicing" | "orders";
|
|
12351
|
+
storeId: string;
|
|
12352
|
+
id: string;
|
|
12353
|
+
name: string;
|
|
12354
|
+
createdAt: string;
|
|
12355
|
+
updatedAt: string;
|
|
12356
|
+
} | null;
|
|
12357
|
+
type: "courier" | "parcel" | "pickup_point" | "in_store";
|
|
12358
|
+
addonData: {
|
|
12359
|
+
id: number;
|
|
12360
|
+
name: string;
|
|
12361
|
+
service: "dpd" | "fedex" | "ups" | "gls" | "poczta" | "inpost" | "orlen" | "dhl";
|
|
12362
|
+
} | {
|
|
12363
|
+
carrier: "inpost";
|
|
12364
|
+
name: string;
|
|
12365
|
+
service: "inpost";
|
|
12366
|
+
} | {
|
|
12367
|
+
carrier: "gls";
|
|
12368
|
+
name: string;
|
|
12369
|
+
service: "gls";
|
|
12370
|
+
} | null;
|
|
12371
|
+
deliverySlots: unknown;
|
|
12372
|
+
shippingTaxRate: {
|
|
12373
|
+
shippingId: string;
|
|
12374
|
+
taxRateId: string;
|
|
12375
|
+
taxRate: {
|
|
12376
|
+
id: string;
|
|
12377
|
+
storeId: string;
|
|
12378
|
+
name: string;
|
|
12379
|
+
rate: string;
|
|
12380
|
+
label: string | null;
|
|
12381
|
+
createdAt: string;
|
|
12382
|
+
updatedAt: string;
|
|
12383
|
+
};
|
|
12384
|
+
createdAt: string;
|
|
12385
|
+
updatedAt: string;
|
|
12386
|
+
} | null;
|
|
12387
|
+
position: number | null;
|
|
12388
|
+
createdAt: string;
|
|
12389
|
+
updatedAt: string;
|
|
12390
|
+
countries: string[] | null;
|
|
12391
|
+
} | null;
|
|
12392
|
+
createdAt: string;
|
|
12393
|
+
lineItems: {
|
|
12394
|
+
id: string;
|
|
12395
|
+
cartId: string;
|
|
12396
|
+
quantity: number;
|
|
12397
|
+
unitCost: string | null;
|
|
12398
|
+
createdAt: string;
|
|
12399
|
+
updatedAt: string;
|
|
12400
|
+
productVariant: {
|
|
12401
|
+
id: string;
|
|
12402
|
+
sku: string | null;
|
|
12403
|
+
barcode: string | null;
|
|
12404
|
+
description: string | null;
|
|
12405
|
+
price: string;
|
|
12406
|
+
calculatedPrice: string | null;
|
|
12407
|
+
prePromotionPrice: string | null;
|
|
12408
|
+
preVolumePricingPrice: string | null;
|
|
12409
|
+
stock: number | null;
|
|
12410
|
+
depth: number | null;
|
|
12411
|
+
width: number | null;
|
|
12412
|
+
height: number | null;
|
|
12413
|
+
weight: number | null;
|
|
12414
|
+
images: string[];
|
|
12415
|
+
digital: string[] | null;
|
|
12416
|
+
shippable: boolean;
|
|
12417
|
+
externalId: string | null;
|
|
12418
|
+
product: {
|
|
12419
|
+
id: string;
|
|
12420
|
+
name: string;
|
|
12421
|
+
slug: string;
|
|
12422
|
+
status: "published" | "draft" | "hidden" | null;
|
|
12423
|
+
images: string[];
|
|
12424
|
+
badge: {
|
|
12425
|
+
content?: string | undefined;
|
|
12426
|
+
backgroundColor?: string | undefined;
|
|
12427
|
+
textColor?: string | undefined;
|
|
12428
|
+
} | null;
|
|
12429
|
+
storeId: string;
|
|
12430
|
+
categoryId: string | null;
|
|
12431
|
+
brandId: string | null;
|
|
12432
|
+
summary: string | null;
|
|
12433
|
+
content: any;
|
|
12434
|
+
createdAt: string;
|
|
12435
|
+
updatedAt: string;
|
|
12436
|
+
productTaxRate: {
|
|
12437
|
+
productId: string;
|
|
12438
|
+
taxRateId: string;
|
|
12439
|
+
taxRate: {
|
|
12440
|
+
id: string;
|
|
12441
|
+
storeId: string;
|
|
12442
|
+
name: string;
|
|
12443
|
+
rate: string;
|
|
12444
|
+
label: string | null;
|
|
12445
|
+
createdAt: string;
|
|
12446
|
+
updatedAt: string;
|
|
12447
|
+
};
|
|
12448
|
+
createdAt: string;
|
|
12449
|
+
updatedAt: string;
|
|
12450
|
+
} | null;
|
|
12451
|
+
flags: {
|
|
12452
|
+
gold?: boolean | null | undefined;
|
|
12453
|
+
event?: {
|
|
12454
|
+
enabled: boolean;
|
|
12455
|
+
startsAt?: string | null | undefined;
|
|
12456
|
+
location?: string | null | undefined;
|
|
12457
|
+
capacity?: number | null | undefined;
|
|
12458
|
+
guestLabel?: string | null | undefined;
|
|
12459
|
+
guest?: string | null | undefined;
|
|
12460
|
+
attendeeInfo?: "optional" | "none" | "required" | null | undefined;
|
|
12461
|
+
salesPaused?: boolean | null | undefined;
|
|
12462
|
+
} | null | undefined;
|
|
12463
|
+
scheduledPublishAt?: string | null | undefined;
|
|
12464
|
+
gpsr?: {
|
|
12465
|
+
safetyInformation?: {
|
|
12466
|
+
type: "NO_SAFETY_INFORMATION";
|
|
12467
|
+
} | {
|
|
12468
|
+
type: "TEXT";
|
|
12469
|
+
description: string;
|
|
12470
|
+
} | null | undefined;
|
|
12471
|
+
} | null | undefined;
|
|
12472
|
+
} | null;
|
|
12473
|
+
type: "set" | "product" | "bundle";
|
|
12474
|
+
subscriptionMode: "optional" | "only" | "rolling";
|
|
12475
|
+
bundleDiscountPercentage: string | null;
|
|
12476
|
+
bundlePriceMode: "fixed" | "amount" | "percent";
|
|
12477
|
+
bundleFixedPriceAmount: string | null;
|
|
12478
|
+
bundleAmountOffAmount: string | null;
|
|
12479
|
+
productCollections: {
|
|
12480
|
+
collection: {
|
|
12481
|
+
createdAt: string;
|
|
12482
|
+
description: any;
|
|
12483
|
+
id: string;
|
|
12484
|
+
image: string | null;
|
|
12485
|
+
name: string;
|
|
12486
|
+
slug: string;
|
|
12487
|
+
storeId: string;
|
|
12488
|
+
updatedAt: string;
|
|
12489
|
+
filter: {
|
|
12490
|
+
type: "manual";
|
|
12491
|
+
} | {
|
|
12492
|
+
type: "dynamicPrice";
|
|
12493
|
+
min?: number | null | undefined;
|
|
12494
|
+
max?: number | null | undefined;
|
|
12495
|
+
} | {
|
|
12496
|
+
type: "variantValues";
|
|
12497
|
+
values: Record<string, string[]>;
|
|
12498
|
+
} | {
|
|
12499
|
+
type: "newest";
|
|
12500
|
+
days?: number | null | undefined;
|
|
12501
|
+
};
|
|
12502
|
+
active: boolean;
|
|
12503
|
+
seo?: {
|
|
12504
|
+
title?: string | null | undefined;
|
|
12505
|
+
description?: string | null | undefined;
|
|
12506
|
+
canonical?: string | null | undefined;
|
|
12507
|
+
} | null | undefined;
|
|
12508
|
+
};
|
|
12509
|
+
collectionId: string;
|
|
12510
|
+
position: string | null;
|
|
12511
|
+
productId: string;
|
|
12512
|
+
}[];
|
|
12513
|
+
bundleGroups: {
|
|
12514
|
+
id: string;
|
|
12515
|
+
minQuantity: number;
|
|
12516
|
+
maxQuantity: number | null;
|
|
12517
|
+
allowDuplicates: boolean;
|
|
12518
|
+
}[];
|
|
12519
|
+
bundleProducts: {
|
|
12520
|
+
bundleId: string;
|
|
12521
|
+
variantId: string;
|
|
12522
|
+
groupId: string | null;
|
|
12523
|
+
quantity: number;
|
|
12524
|
+
position: number;
|
|
12525
|
+
forced: boolean;
|
|
12526
|
+
defaultSelected: boolean;
|
|
12527
|
+
maxQuantity: number | null;
|
|
12528
|
+
createdAt: string;
|
|
12529
|
+
updatedAt: string;
|
|
12530
|
+
variant: {
|
|
12531
|
+
id: string;
|
|
12532
|
+
sku: string | null;
|
|
12533
|
+
barcode: string | null;
|
|
12534
|
+
description: string | null;
|
|
12535
|
+
price: string;
|
|
12536
|
+
shippable: boolean;
|
|
12537
|
+
calculatedPrice: string | null;
|
|
12538
|
+
stock: number | null;
|
|
12539
|
+
depth: number | null;
|
|
12540
|
+
width: number | null;
|
|
12541
|
+
height: number | null;
|
|
12542
|
+
weight: number | null;
|
|
12543
|
+
images: string[];
|
|
12544
|
+
digital: string[] | null;
|
|
12545
|
+
externalId: string | null;
|
|
12546
|
+
product: {
|
|
12547
|
+
id: string;
|
|
12548
|
+
name: string;
|
|
12549
|
+
slug: string;
|
|
12550
|
+
images: string[];
|
|
12551
|
+
productTaxRate: {
|
|
12552
|
+
taxRate: {
|
|
12553
|
+
rate: string;
|
|
12554
|
+
label: string | null;
|
|
12555
|
+
};
|
|
12556
|
+
} | null;
|
|
12557
|
+
};
|
|
12558
|
+
createdAt: string;
|
|
12559
|
+
productId: string;
|
|
12560
|
+
updatedAt: string;
|
|
12561
|
+
attributes: {
|
|
12562
|
+
checked: boolean | null;
|
|
12563
|
+
key: string;
|
|
12564
|
+
value: string;
|
|
12565
|
+
}[] | null;
|
|
12566
|
+
storeId: string;
|
|
12567
|
+
originalPrice?: string | null | undefined;
|
|
12568
|
+
} & {
|
|
12569
|
+
originalPrice: string;
|
|
12570
|
+
};
|
|
12571
|
+
}[];
|
|
12572
|
+
setProduct: {
|
|
12573
|
+
selectionCount: number;
|
|
12574
|
+
allowDuplicates: boolean;
|
|
12575
|
+
discountPercentage: string;
|
|
12576
|
+
} | null;
|
|
12577
|
+
seo: {
|
|
12578
|
+
title?: string | null | undefined;
|
|
12579
|
+
description?: string | null | undefined;
|
|
12580
|
+
canonical?: string | null | undefined;
|
|
12581
|
+
} | null;
|
|
12582
|
+
stripeTaxCode: string | null;
|
|
12583
|
+
active?: boolean | null | undefined;
|
|
12584
|
+
};
|
|
12585
|
+
createdAt: string;
|
|
12586
|
+
productId: string;
|
|
12587
|
+
updatedAt: string;
|
|
12588
|
+
combinations: {
|
|
12589
|
+
createdAt: string;
|
|
12590
|
+
updatedAt: string;
|
|
12591
|
+
productVariantId: string;
|
|
12592
|
+
variantValueId: string;
|
|
12593
|
+
variantValue: {
|
|
12594
|
+
id: string;
|
|
12595
|
+
value: string;
|
|
12596
|
+
variantType: {
|
|
12597
|
+
id: string;
|
|
12598
|
+
label: string;
|
|
12599
|
+
productId?: string | null | undefined;
|
|
12600
|
+
createdAt?: string | null | undefined;
|
|
12601
|
+
updatedAt?: string | null | undefined;
|
|
12602
|
+
};
|
|
12603
|
+
variantTypeId?: string | null | undefined;
|
|
12604
|
+
};
|
|
12605
|
+
}[];
|
|
12606
|
+
attributes: {
|
|
12607
|
+
checked: boolean | null;
|
|
12608
|
+
key: string;
|
|
12609
|
+
value: string;
|
|
12610
|
+
}[] | null;
|
|
12611
|
+
storeId: string;
|
|
12612
|
+
originalPrice?: string | null | undefined;
|
|
12613
|
+
} & {
|
|
12614
|
+
originalPrice: string;
|
|
12615
|
+
};
|
|
12616
|
+
productVariantId: string;
|
|
12617
|
+
preVolumePricingPrice: string | null;
|
|
12618
|
+
subscriptionPlanId: string | null;
|
|
12619
|
+
subscriptionPlan: {
|
|
12620
|
+
id: string;
|
|
12621
|
+
name: string;
|
|
12622
|
+
cadence: "month" | "week";
|
|
12623
|
+
interval: number;
|
|
12624
|
+
discountPercent: number;
|
|
12625
|
+
description: string | null;
|
|
12626
|
+
benefits: string | null;
|
|
12627
|
+
active: boolean;
|
|
12628
|
+
createdAt: string;
|
|
12629
|
+
position: number;
|
|
12630
|
+
storeId: string;
|
|
12631
|
+
updatedAt: string;
|
|
12632
|
+
} | null;
|
|
12633
|
+
rollingCycle: {
|
|
12634
|
+
id: string;
|
|
12635
|
+
title: string;
|
|
12636
|
+
startsAt: string;
|
|
12637
|
+
items: {
|
|
12638
|
+
productVariantId: string;
|
|
12639
|
+
productId: string;
|
|
12640
|
+
name: string;
|
|
12641
|
+
variantLabel: string | null;
|
|
12642
|
+
sku: string | null;
|
|
12643
|
+
image: string | null;
|
|
12644
|
+
quantity: number;
|
|
12645
|
+
}[];
|
|
12646
|
+
} | null;
|
|
12647
|
+
slotId: string | null;
|
|
12648
|
+
attendees: {
|
|
12649
|
+
name: string;
|
|
12650
|
+
email: string | null;
|
|
12651
|
+
phone: string | null;
|
|
12652
|
+
dietary: string | null;
|
|
12653
|
+
notes: string | null;
|
|
12654
|
+
}[] | null;
|
|
12655
|
+
setSelections: {
|
|
12656
|
+
id: string;
|
|
12657
|
+
lineItemId: string;
|
|
12658
|
+
selectedVariantId: string;
|
|
12659
|
+
quantity: number;
|
|
12660
|
+
position: number;
|
|
12661
|
+
createdAt: string;
|
|
12662
|
+
updatedAt: string;
|
|
12663
|
+
selectedVariant: {
|
|
12664
|
+
id: string;
|
|
12665
|
+
price: string;
|
|
12666
|
+
product: {
|
|
12667
|
+
id: string;
|
|
12668
|
+
name: string;
|
|
12669
|
+
};
|
|
12670
|
+
combinations: {
|
|
12671
|
+
createdAt: string;
|
|
12672
|
+
updatedAt: string;
|
|
12673
|
+
productVariantId: string;
|
|
12674
|
+
variantValueId: string;
|
|
12675
|
+
variantValue: {
|
|
12676
|
+
id: string;
|
|
12677
|
+
value: string;
|
|
12678
|
+
variantType: {
|
|
12679
|
+
id: string;
|
|
12680
|
+
label: string;
|
|
12681
|
+
productId?: string | null | undefined;
|
|
12682
|
+
createdAt?: string | null | undefined;
|
|
12683
|
+
updatedAt?: string | null | undefined;
|
|
12684
|
+
};
|
|
12685
|
+
variantTypeId?: string | null | undefined;
|
|
12686
|
+
};
|
|
12687
|
+
}[];
|
|
12688
|
+
};
|
|
12689
|
+
}[];
|
|
12690
|
+
}[];
|
|
12691
|
+
updatedAt: string;
|
|
12692
|
+
couponId: string | null;
|
|
12693
|
+
coupon: {
|
|
12694
|
+
type: "fixed" | "percentage";
|
|
12695
|
+
value: string;
|
|
12696
|
+
code: string;
|
|
12697
|
+
startDate: string | null;
|
|
12698
|
+
endDate: string | null;
|
|
12699
|
+
minProductCount: number | null;
|
|
12700
|
+
maxProductCount: number | null;
|
|
12701
|
+
} | null;
|
|
12702
|
+
billingAddress: {
|
|
12703
|
+
id: string;
|
|
12704
|
+
type: "shipping" | "billing" | "merchant";
|
|
12705
|
+
company: string | null;
|
|
12706
|
+
name: string | null;
|
|
12707
|
+
city: string | null;
|
|
12708
|
+
line1: string | null;
|
|
12709
|
+
line2: string | null;
|
|
12710
|
+
postalCode: string | null;
|
|
12711
|
+
state: string | null;
|
|
12712
|
+
country: string | null;
|
|
12713
|
+
phone: string | null;
|
|
12714
|
+
taxId: string | null;
|
|
12715
|
+
createdAt: string;
|
|
12716
|
+
updatedAt: string;
|
|
12717
|
+
} | null;
|
|
12718
|
+
shippingAddress: {
|
|
12719
|
+
id: string;
|
|
12720
|
+
type: "shipping" | "billing" | "merchant";
|
|
12721
|
+
company: string | null;
|
|
12722
|
+
name: string | null;
|
|
12723
|
+
city: string | null;
|
|
12724
|
+
line1: string | null;
|
|
12725
|
+
line2: string | null;
|
|
12726
|
+
postalCode: string | null;
|
|
12727
|
+
state: string | null;
|
|
12728
|
+
country: string | null;
|
|
12729
|
+
phone: string | null;
|
|
12730
|
+
taxId: string | null;
|
|
12731
|
+
createdAt: string;
|
|
12732
|
+
updatedAt: string;
|
|
12733
|
+
} | null;
|
|
12734
|
+
billingAddressId: string | null;
|
|
12735
|
+
shippingAddressId: string | null;
|
|
12736
|
+
stripePaymentIntentId: string | null;
|
|
12737
|
+
checkoutSessionId: string | null;
|
|
12738
|
+
stripeInvoice: {
|
|
12739
|
+
id: string;
|
|
12740
|
+
amountPaid: number;
|
|
12741
|
+
currency: string;
|
|
12742
|
+
} | null;
|
|
12743
|
+
customerId: string | null;
|
|
12744
|
+
customer: {
|
|
12745
|
+
id: string;
|
|
12746
|
+
email: string | null;
|
|
12747
|
+
storeId: string;
|
|
12748
|
+
createdAt: string;
|
|
12749
|
+
updatedAt: string;
|
|
12750
|
+
userId: string | null;
|
|
12751
|
+
stripeCustomerId: string | null;
|
|
12752
|
+
user: {
|
|
12753
|
+
id: string;
|
|
12754
|
+
name: string;
|
|
12755
|
+
email: string;
|
|
12756
|
+
} | null;
|
|
12757
|
+
couponId: string | null;
|
|
12758
|
+
coupon: {
|
|
12759
|
+
type: "fixed" | "percentage";
|
|
12760
|
+
value: string;
|
|
12761
|
+
code: string;
|
|
12762
|
+
startDate: string | null;
|
|
12763
|
+
endDate: string | null;
|
|
12764
|
+
minProductCount: number | null;
|
|
12765
|
+
maxProductCount: number | null;
|
|
12766
|
+
} | null;
|
|
12767
|
+
} | null;
|
|
12768
|
+
addonData: {
|
|
12769
|
+
[x: string]: unknown;
|
|
12770
|
+
} | null;
|
|
12771
|
+
deliverySlot: unknown;
|
|
12772
|
+
ucpSessionStatus: "incomplete" | "ready_for_complete" | "requires_escalation" | "complete_in_progress" | "completed" | "canceled" | null;
|
|
12773
|
+
ucpMetadata: {
|
|
12774
|
+
buyerEmail?: string | undefined;
|
|
12775
|
+
buyerName?: string | undefined;
|
|
12776
|
+
buyerPhone?: string | undefined;
|
|
12777
|
+
agentId?: string | undefined;
|
|
12778
|
+
externalReference?: string | undefined;
|
|
12779
|
+
escalationReason?: string | undefined;
|
|
12780
|
+
} | null;
|
|
12781
|
+
acpSessionStatus: "completed" | "canceled" | "not_ready_for_payment" | "ready_for_payment" | null;
|
|
12782
|
+
acpMetadata: {
|
|
12783
|
+
buyerEmail?: string | undefined;
|
|
12784
|
+
buyerName?: string | undefined;
|
|
12785
|
+
buyerPhone?: string | undefined;
|
|
12786
|
+
agentId?: string | undefined;
|
|
12787
|
+
externalReference?: string | undefined;
|
|
12788
|
+
idempotencyKey?: string | undefined;
|
|
12789
|
+
} | null;
|
|
12790
|
+
inventory: {
|
|
12791
|
+
committedAt: string;
|
|
12792
|
+
lines: {
|
|
12793
|
+
variantId: string;
|
|
12794
|
+
quantity: number;
|
|
12795
|
+
}[];
|
|
12796
|
+
} | null;
|
|
12797
|
+
reservation: {
|
|
12798
|
+
expiredAt: string | null;
|
|
12799
|
+
transferDeclaredAt: string | null;
|
|
12800
|
+
} | null;
|
|
12801
|
+
freeShippingThreshold: number | null;
|
|
12802
|
+
totalNet: number | null;
|
|
12803
|
+
subtotalNet: number | null;
|
|
12804
|
+
totalGross: number | null;
|
|
12805
|
+
subtotalGross: number | null;
|
|
12806
|
+
shippingGross: number | null;
|
|
12807
|
+
total: number | null;
|
|
12808
|
+
subtotal: number | null;
|
|
12809
|
+
totalTax: number | null;
|
|
12810
|
+
taxBreakdown: Record<string, {
|
|
12811
|
+
taxRate: {
|
|
12812
|
+
id: string;
|
|
12813
|
+
storeId: string;
|
|
12814
|
+
name: string;
|
|
12815
|
+
rate: string;
|
|
12816
|
+
label: string | null;
|
|
12817
|
+
createdAt: string;
|
|
12818
|
+
updatedAt: string;
|
|
12819
|
+
};
|
|
12820
|
+
tax: number | null;
|
|
12821
|
+
}> | null;
|
|
12822
|
+
stripeTaxData: {
|
|
12823
|
+
amountTax: number;
|
|
12824
|
+
breakdown?: {
|
|
12825
|
+
amount: number;
|
|
12826
|
+
rate: {
|
|
12827
|
+
displayName: string;
|
|
12828
|
+
percentage: number;
|
|
12829
|
+
jurisdiction?: string | null | undefined;
|
|
12830
|
+
};
|
|
12831
|
+
}[] | null | undefined;
|
|
12832
|
+
} | null;
|
|
12833
|
+
currency: string | null;
|
|
12834
|
+
checkoutConsents: {
|
|
12835
|
+
id: string;
|
|
12836
|
+
content: unknown;
|
|
12837
|
+
required: boolean;
|
|
12838
|
+
accepted: boolean;
|
|
12839
|
+
type: "general" | "newsletter";
|
|
12840
|
+
}[] | null;
|
|
12841
|
+
};
|
|
12842
|
+
externalShipmentId: string | null;
|
|
12843
|
+
paymentDeduplicationId: string | null;
|
|
12844
|
+
paymentProvider: string | null;
|
|
12845
|
+
ticketCode: string | null;
|
|
12846
|
+
shareToken: string | null;
|
|
12847
|
+
reservationExpiresAt: string | null;
|
|
12848
|
+
activeSubscriptionId: string | null;
|
|
12849
|
+
packedAt: string | null;
|
|
12850
|
+
packedBy: string | null;
|
|
12851
|
+
tags: string[];
|
|
12852
|
+
activeSubscription: {
|
|
12853
|
+
interval: number;
|
|
12854
|
+
id: string;
|
|
12855
|
+
createdAt: string;
|
|
12856
|
+
updatedAt: string;
|
|
12857
|
+
storeId: string;
|
|
12858
|
+
status: "active" | "incomplete" | "canceled" | "trialing" | "past_due" | "paused" | "unpaid" | "incomplete_expired";
|
|
12859
|
+
stripeCustomerId: string | null;
|
|
12860
|
+
environment: "live" | "test";
|
|
12861
|
+
stripeSubscriptionId: string;
|
|
12862
|
+
cancelAtPeriodEnd: boolean | null;
|
|
12863
|
+
productId: string;
|
|
12864
|
+
quantity: number;
|
|
12865
|
+
cadence: "month" | "week";
|
|
12866
|
+
productVariantId: string;
|
|
12867
|
+
originalOrderId: string;
|
|
12868
|
+
canceledAt: Date | null;
|
|
12869
|
+
cancelAt: Date | null;
|
|
12870
|
+
cancellationDetails: {
|
|
12871
|
+
comment?: string | null;
|
|
12872
|
+
feedback?: string | null;
|
|
12873
|
+
reason?: string | null;
|
|
12874
|
+
} | null;
|
|
12875
|
+
productSnapshot: unknown;
|
|
12876
|
+
productVariantSnapshot: unknown;
|
|
12877
|
+
shippingSnapshot: unknown;
|
|
12878
|
+
pausedAt: Date | null;
|
|
12879
|
+
resumeAt: Date | null;
|
|
12880
|
+
skippedUntil: Date | null;
|
|
12881
|
+
skipCount: number;
|
|
12882
|
+
nextBillingDate: Date | null;
|
|
12883
|
+
stripeDeduplicationId: string | null;
|
|
12884
|
+
} | null;
|
|
12885
|
+
} & {
|
|
12886
|
+
orderData: {
|
|
12887
|
+
id: string;
|
|
12888
|
+
storeId: string;
|
|
12889
|
+
shippingId: string | null;
|
|
12890
|
+
shipping: {
|
|
12891
|
+
id: string;
|
|
12892
|
+
storeId: string;
|
|
12893
|
+
name: string;
|
|
12894
|
+
price: string;
|
|
12895
|
+
freeShippingThreshold: string | null;
|
|
12896
|
+
minShippingTime: number | null;
|
|
12897
|
+
maxShippingTime: number | null;
|
|
12898
|
+
description: string | null;
|
|
12899
|
+
addonId: string | null;
|
|
12900
|
+
shippingAddon: {
|
|
12901
|
+
type: "shipping" | "products" | "analytics" | "invoicing" | "orders";
|
|
12902
|
+
storeId: string;
|
|
12903
|
+
id: string;
|
|
12904
|
+
name: string;
|
|
12905
|
+
createdAt: string;
|
|
12906
|
+
updatedAt: string;
|
|
12907
|
+
} | null;
|
|
12908
|
+
type: "courier" | "parcel" | "pickup_point" | "in_store";
|
|
12909
|
+
addonData: {
|
|
12910
|
+
id: number;
|
|
12911
|
+
name: string;
|
|
12912
|
+
service: "dpd" | "fedex" | "ups" | "gls" | "poczta" | "inpost" | "orlen" | "dhl";
|
|
12913
|
+
} | {
|
|
12914
|
+
carrier: "inpost";
|
|
12915
|
+
name: string;
|
|
12916
|
+
service: "inpost";
|
|
12917
|
+
} | {
|
|
12918
|
+
carrier: "gls";
|
|
12919
|
+
name: string;
|
|
12920
|
+
service: "gls";
|
|
12921
|
+
} | null;
|
|
12922
|
+
deliverySlots: unknown;
|
|
12923
|
+
shippingTaxRate: {
|
|
12924
|
+
shippingId: string;
|
|
12925
|
+
taxRateId: string;
|
|
12926
|
+
taxRate: {
|
|
12927
|
+
id: string;
|
|
12928
|
+
storeId: string;
|
|
12929
|
+
name: string;
|
|
12930
|
+
rate: string;
|
|
12931
|
+
label: string | null;
|
|
12932
|
+
createdAt: string;
|
|
12933
|
+
updatedAt: string;
|
|
12934
|
+
};
|
|
12935
|
+
createdAt: string;
|
|
12936
|
+
updatedAt: string;
|
|
12937
|
+
} | null;
|
|
12938
|
+
position: number | null;
|
|
12939
|
+
createdAt: string;
|
|
12940
|
+
updatedAt: string;
|
|
12941
|
+
countries: string[] | null;
|
|
12942
|
+
} | null;
|
|
12943
|
+
createdAt: string;
|
|
12944
|
+
lineItems: {
|
|
12945
|
+
id: string;
|
|
12946
|
+
cartId: string;
|
|
12947
|
+
quantity: number;
|
|
12948
|
+
unitCost: string | null;
|
|
12949
|
+
createdAt: string;
|
|
12950
|
+
updatedAt: string;
|
|
12951
|
+
productVariant: {
|
|
12952
|
+
id: string;
|
|
12953
|
+
sku: string | null;
|
|
12954
|
+
barcode: string | null;
|
|
12955
|
+
description: string | null;
|
|
12956
|
+
price: string;
|
|
12957
|
+
calculatedPrice: string | null;
|
|
12958
|
+
prePromotionPrice: string | null;
|
|
12959
|
+
preVolumePricingPrice: string | null;
|
|
12960
|
+
stock: number | null;
|
|
12961
|
+
depth: number | null;
|
|
12962
|
+
width: number | null;
|
|
12963
|
+
height: number | null;
|
|
12964
|
+
weight: number | null;
|
|
12965
|
+
images: string[];
|
|
12966
|
+
digital: string[] | null;
|
|
12967
|
+
shippable: boolean;
|
|
12968
|
+
externalId: string | null;
|
|
12969
|
+
product: {
|
|
12970
|
+
id: string;
|
|
12971
|
+
name: string;
|
|
12972
|
+
slug: string;
|
|
12973
|
+
status: "published" | "draft" | "hidden" | null;
|
|
12974
|
+
images: string[];
|
|
12975
|
+
badge: {
|
|
12976
|
+
content?: string | undefined;
|
|
12977
|
+
backgroundColor?: string | undefined;
|
|
12978
|
+
textColor?: string | undefined;
|
|
12979
|
+
} | null;
|
|
12980
|
+
storeId: string;
|
|
12981
|
+
categoryId: string | null;
|
|
12982
|
+
brandId: string | null;
|
|
12983
|
+
summary: string | null;
|
|
12984
|
+
content: any;
|
|
12985
|
+
createdAt: string;
|
|
12986
|
+
updatedAt: string;
|
|
12987
|
+
productTaxRate: {
|
|
12988
|
+
productId: string;
|
|
12989
|
+
taxRateId: string;
|
|
12990
|
+
taxRate: {
|
|
12991
|
+
id: string;
|
|
12992
|
+
storeId: string;
|
|
12993
|
+
name: string;
|
|
12994
|
+
rate: string;
|
|
12995
|
+
label: string | null;
|
|
12996
|
+
createdAt: string;
|
|
12997
|
+
updatedAt: string;
|
|
12998
|
+
};
|
|
12999
|
+
createdAt: string;
|
|
13000
|
+
updatedAt: string;
|
|
13001
|
+
} | null;
|
|
13002
|
+
flags: {
|
|
13003
|
+
gold?: boolean | null | undefined;
|
|
13004
|
+
event?: {
|
|
13005
|
+
enabled: boolean;
|
|
13006
|
+
startsAt?: string | null | undefined;
|
|
13007
|
+
location?: string | null | undefined;
|
|
13008
|
+
capacity?: number | null | undefined;
|
|
13009
|
+
guestLabel?: string | null | undefined;
|
|
13010
|
+
guest?: string | null | undefined;
|
|
13011
|
+
attendeeInfo?: "optional" | "none" | "required" | null | undefined;
|
|
13012
|
+
salesPaused?: boolean | null | undefined;
|
|
13013
|
+
} | null | undefined;
|
|
13014
|
+
scheduledPublishAt?: string | null | undefined;
|
|
13015
|
+
gpsr?: {
|
|
13016
|
+
safetyInformation?: {
|
|
13017
|
+
type: "NO_SAFETY_INFORMATION";
|
|
13018
|
+
} | {
|
|
13019
|
+
type: "TEXT";
|
|
13020
|
+
description: string;
|
|
13021
|
+
} | null | undefined;
|
|
13022
|
+
} | null | undefined;
|
|
13023
|
+
} | null;
|
|
13024
|
+
type: "set" | "product" | "bundle";
|
|
13025
|
+
subscriptionMode: "optional" | "only" | "rolling";
|
|
13026
|
+
bundleDiscountPercentage: string | null;
|
|
13027
|
+
bundlePriceMode: "fixed" | "amount" | "percent";
|
|
13028
|
+
bundleFixedPriceAmount: string | null;
|
|
13029
|
+
bundleAmountOffAmount: string | null;
|
|
13030
|
+
productCollections: {
|
|
13031
|
+
collection: {
|
|
13032
|
+
createdAt: string;
|
|
13033
|
+
description: any;
|
|
13034
|
+
id: string;
|
|
13035
|
+
image: string | null;
|
|
13036
|
+
name: string;
|
|
13037
|
+
slug: string;
|
|
13038
|
+
storeId: string;
|
|
13039
|
+
updatedAt: string;
|
|
13040
|
+
filter: {
|
|
13041
|
+
type: "manual";
|
|
13042
|
+
} | {
|
|
13043
|
+
type: "dynamicPrice";
|
|
13044
|
+
min?: number | null | undefined;
|
|
13045
|
+
max?: number | null | undefined;
|
|
13046
|
+
} | {
|
|
13047
|
+
type: "variantValues";
|
|
13048
|
+
values: Record<string, string[]>;
|
|
13049
|
+
} | {
|
|
13050
|
+
type: "newest";
|
|
13051
|
+
days?: number | null | undefined;
|
|
13052
|
+
};
|
|
13053
|
+
active: boolean;
|
|
13054
|
+
seo?: {
|
|
13055
|
+
title?: string | null | undefined;
|
|
13056
|
+
description?: string | null | undefined;
|
|
13057
|
+
canonical?: string | null | undefined;
|
|
13058
|
+
} | null | undefined;
|
|
13059
|
+
};
|
|
13060
|
+
collectionId: string;
|
|
13061
|
+
position: string | null;
|
|
13062
|
+
productId: string;
|
|
13063
|
+
}[];
|
|
13064
|
+
bundleGroups: {
|
|
13065
|
+
id: string;
|
|
13066
|
+
minQuantity: number;
|
|
13067
|
+
maxQuantity: number | null;
|
|
13068
|
+
allowDuplicates: boolean;
|
|
13069
|
+
}[];
|
|
13070
|
+
bundleProducts: {
|
|
13071
|
+
bundleId: string;
|
|
13072
|
+
variantId: string;
|
|
13073
|
+
groupId: string | null;
|
|
13074
|
+
quantity: number;
|
|
13075
|
+
position: number;
|
|
13076
|
+
forced: boolean;
|
|
13077
|
+
defaultSelected: boolean;
|
|
13078
|
+
maxQuantity: number | null;
|
|
13079
|
+
createdAt: string;
|
|
13080
|
+
updatedAt: string;
|
|
13081
|
+
variant: {
|
|
13082
|
+
id: string;
|
|
13083
|
+
sku: string | null;
|
|
13084
|
+
barcode: string | null;
|
|
13085
|
+
description: string | null;
|
|
13086
|
+
price: string;
|
|
13087
|
+
shippable: boolean;
|
|
13088
|
+
calculatedPrice: string | null;
|
|
13089
|
+
stock: number | null;
|
|
13090
|
+
depth: number | null;
|
|
13091
|
+
width: number | null;
|
|
13092
|
+
height: number | null;
|
|
13093
|
+
weight: number | null;
|
|
13094
|
+
images: string[];
|
|
13095
|
+
digital: string[] | null;
|
|
13096
|
+
externalId: string | null;
|
|
13097
|
+
product: {
|
|
13098
|
+
id: string;
|
|
13099
|
+
name: string;
|
|
13100
|
+
slug: string;
|
|
13101
|
+
images: string[];
|
|
13102
|
+
productTaxRate: {
|
|
13103
|
+
taxRate: {
|
|
13104
|
+
rate: string;
|
|
13105
|
+
label: string | null;
|
|
13106
|
+
};
|
|
13107
|
+
} | null;
|
|
13108
|
+
};
|
|
13109
|
+
createdAt: string;
|
|
13110
|
+
productId: string;
|
|
13111
|
+
updatedAt: string;
|
|
13112
|
+
attributes: {
|
|
13113
|
+
checked: boolean | null;
|
|
13114
|
+
key: string;
|
|
13115
|
+
value: string;
|
|
13116
|
+
}[] | null;
|
|
13117
|
+
storeId: string;
|
|
13118
|
+
originalPrice?: string | null | undefined;
|
|
13119
|
+
} & {
|
|
13120
|
+
originalPrice: string;
|
|
13121
|
+
};
|
|
13122
|
+
}[];
|
|
13123
|
+
setProduct: {
|
|
13124
|
+
selectionCount: number;
|
|
13125
|
+
allowDuplicates: boolean;
|
|
13126
|
+
discountPercentage: string;
|
|
13127
|
+
} | null;
|
|
13128
|
+
seo: {
|
|
13129
|
+
title?: string | null | undefined;
|
|
13130
|
+
description?: string | null | undefined;
|
|
13131
|
+
canonical?: string | null | undefined;
|
|
13132
|
+
} | null;
|
|
13133
|
+
stripeTaxCode: string | null;
|
|
13134
|
+
active?: boolean | null | undefined;
|
|
13135
|
+
};
|
|
13136
|
+
createdAt: string;
|
|
13137
|
+
productId: string;
|
|
13138
|
+
updatedAt: string;
|
|
13139
|
+
combinations: {
|
|
13140
|
+
createdAt: string;
|
|
13141
|
+
updatedAt: string;
|
|
13142
|
+
productVariantId: string;
|
|
13143
|
+
variantValueId: string;
|
|
13144
|
+
variantValue: {
|
|
13145
|
+
id: string;
|
|
13146
|
+
value: string;
|
|
13147
|
+
variantType: {
|
|
13148
|
+
id: string;
|
|
13149
|
+
label: string;
|
|
13150
|
+
productId?: string | null | undefined;
|
|
13151
|
+
createdAt?: string | null | undefined;
|
|
13152
|
+
updatedAt?: string | null | undefined;
|
|
13153
|
+
};
|
|
13154
|
+
variantTypeId?: string | null | undefined;
|
|
13155
|
+
};
|
|
13156
|
+
}[];
|
|
13157
|
+
attributes: {
|
|
13158
|
+
checked: boolean | null;
|
|
13159
|
+
key: string;
|
|
13160
|
+
value: string;
|
|
13161
|
+
}[] | null;
|
|
13162
|
+
storeId: string;
|
|
13163
|
+
originalPrice?: string | null | undefined;
|
|
13164
|
+
} & {
|
|
13165
|
+
originalPrice: string;
|
|
13166
|
+
};
|
|
13167
|
+
productVariantId: string;
|
|
13168
|
+
preVolumePricingPrice: string | null;
|
|
13169
|
+
subscriptionPlanId: string | null;
|
|
13170
|
+
subscriptionPlan: {
|
|
13171
|
+
id: string;
|
|
13172
|
+
name: string;
|
|
13173
|
+
cadence: "month" | "week";
|
|
13174
|
+
interval: number;
|
|
13175
|
+
discountPercent: number;
|
|
13176
|
+
description: string | null;
|
|
13177
|
+
benefits: string | null;
|
|
13178
|
+
active: boolean;
|
|
13179
|
+
createdAt: string;
|
|
13180
|
+
position: number;
|
|
13181
|
+
storeId: string;
|
|
13182
|
+
updatedAt: string;
|
|
13183
|
+
} | null;
|
|
13184
|
+
rollingCycle: {
|
|
13185
|
+
id: string;
|
|
13186
|
+
title: string;
|
|
13187
|
+
startsAt: string;
|
|
13188
|
+
items: {
|
|
13189
|
+
productVariantId: string;
|
|
13190
|
+
productId: string;
|
|
13191
|
+
name: string;
|
|
13192
|
+
variantLabel: string | null;
|
|
13193
|
+
sku: string | null;
|
|
13194
|
+
image: string | null;
|
|
13195
|
+
quantity: number;
|
|
13196
|
+
}[];
|
|
13197
|
+
} | null;
|
|
13198
|
+
slotId: string | null;
|
|
13199
|
+
attendees: {
|
|
13200
|
+
name: string;
|
|
13201
|
+
email: string | null;
|
|
13202
|
+
phone: string | null;
|
|
13203
|
+
dietary: string | null;
|
|
13204
|
+
notes: string | null;
|
|
13205
|
+
}[] | null;
|
|
13206
|
+
setSelections: {
|
|
13207
|
+
id: string;
|
|
13208
|
+
lineItemId: string;
|
|
13209
|
+
selectedVariantId: string;
|
|
13210
|
+
quantity: number;
|
|
13211
|
+
position: number;
|
|
13212
|
+
createdAt: string;
|
|
13213
|
+
updatedAt: string;
|
|
13214
|
+
selectedVariant: {
|
|
13215
|
+
id: string;
|
|
13216
|
+
price: string;
|
|
13217
|
+
product: {
|
|
13218
|
+
id: string;
|
|
13219
|
+
name: string;
|
|
13220
|
+
};
|
|
13221
|
+
combinations: {
|
|
13222
|
+
createdAt: string;
|
|
13223
|
+
updatedAt: string;
|
|
13224
|
+
productVariantId: string;
|
|
13225
|
+
variantValueId: string;
|
|
13226
|
+
variantValue: {
|
|
13227
|
+
id: string;
|
|
13228
|
+
value: string;
|
|
13229
|
+
variantType: {
|
|
13230
|
+
id: string;
|
|
13231
|
+
label: string;
|
|
13232
|
+
productId?: string | null | undefined;
|
|
13233
|
+
createdAt?: string | null | undefined;
|
|
13234
|
+
updatedAt?: string | null | undefined;
|
|
13235
|
+
};
|
|
13236
|
+
variantTypeId?: string | null | undefined;
|
|
13237
|
+
};
|
|
13238
|
+
}[];
|
|
13239
|
+
};
|
|
13240
|
+
}[];
|
|
13241
|
+
}[];
|
|
13242
|
+
updatedAt: string;
|
|
13243
|
+
couponId: string | null;
|
|
13244
|
+
coupon: {
|
|
13245
|
+
type: "fixed" | "percentage";
|
|
13246
|
+
value: string;
|
|
13247
|
+
code: string;
|
|
13248
|
+
startDate: string | null;
|
|
13249
|
+
endDate: string | null;
|
|
13250
|
+
minProductCount: number | null;
|
|
13251
|
+
maxProductCount: number | null;
|
|
13252
|
+
} | null;
|
|
13253
|
+
billingAddress: {
|
|
13254
|
+
id: string;
|
|
13255
|
+
type: "shipping" | "billing" | "merchant";
|
|
13256
|
+
company: string | null;
|
|
13257
|
+
name: string | null;
|
|
13258
|
+
city: string | null;
|
|
13259
|
+
line1: string | null;
|
|
13260
|
+
line2: string | null;
|
|
13261
|
+
postalCode: string | null;
|
|
13262
|
+
state: string | null;
|
|
13263
|
+
country: string | null;
|
|
13264
|
+
phone: string | null;
|
|
13265
|
+
taxId: string | null;
|
|
13266
|
+
createdAt: string;
|
|
11290
13267
|
updatedAt: string;
|
|
11291
13268
|
} | null;
|
|
11292
13269
|
shippingAddress: {
|
|
@@ -11309,6 +13286,11 @@ type APIOrderGetByIdResult = Omit<{
|
|
|
11309
13286
|
shippingAddressId: string | null;
|
|
11310
13287
|
stripePaymentIntentId: string | null;
|
|
11311
13288
|
checkoutSessionId: string | null;
|
|
13289
|
+
stripeInvoice: {
|
|
13290
|
+
id: string;
|
|
13291
|
+
amountPaid: number;
|
|
13292
|
+
currency: string;
|
|
13293
|
+
} | null;
|
|
11312
13294
|
customerId: string | null;
|
|
11313
13295
|
customer: {
|
|
11314
13296
|
id: string;
|
|
@@ -11408,55 +13390,12 @@ type APIOrderGetByIdResult = Omit<{
|
|
|
11408
13390
|
type: "general" | "newsletter";
|
|
11409
13391
|
}[] | null;
|
|
11410
13392
|
};
|
|
11411
|
-
|
|
11412
|
-
paymentDeduplicationId: string | null;
|
|
11413
|
-
paymentProvider: string | null;
|
|
11414
|
-
ticketCode: string | null;
|
|
11415
|
-
shareToken: string | null;
|
|
11416
|
-
reservationExpiresAt: string | null;
|
|
11417
|
-
activeSubscriptionId: string | null;
|
|
11418
|
-
packedAt: string | null;
|
|
11419
|
-
packedBy: string | null;
|
|
11420
|
-
tags: string[];
|
|
11421
|
-
activeSubscription: {
|
|
11422
|
-
interval: number;
|
|
11423
|
-
id: string;
|
|
11424
|
-
createdAt: string;
|
|
11425
|
-
updatedAt: string;
|
|
11426
|
-
storeId: string;
|
|
11427
|
-
status: "active" | "incomplete" | "canceled" | "trialing" | "past_due" | "paused" | "unpaid" | "incomplete_expired";
|
|
11428
|
-
stripeCustomerId: string | null;
|
|
11429
|
-
environment: "live" | "test";
|
|
11430
|
-
stripeSubscriptionId: string;
|
|
11431
|
-
cancelAtPeriodEnd: boolean | null;
|
|
11432
|
-
productId: string;
|
|
11433
|
-
quantity: number;
|
|
11434
|
-
cadence: "month" | "week";
|
|
11435
|
-
productVariantId: string;
|
|
11436
|
-
originalOrderId: string;
|
|
11437
|
-
canceledAt: Date | null;
|
|
11438
|
-
cancelAt: Date | null;
|
|
11439
|
-
cancellationDetails: {
|
|
11440
|
-
comment?: string | null;
|
|
11441
|
-
feedback?: string | null;
|
|
11442
|
-
reason?: string | null;
|
|
11443
|
-
} | null;
|
|
11444
|
-
productSnapshot: unknown;
|
|
11445
|
-
productVariantSnapshot: unknown;
|
|
11446
|
-
shippingSnapshot: unknown;
|
|
11447
|
-
pausedAt: Date | null;
|
|
11448
|
-
resumeAt: Date | null;
|
|
11449
|
-
skippedUntil: Date | null;
|
|
11450
|
-
skipCount: number;
|
|
11451
|
-
nextBillingDate: Date | null;
|
|
11452
|
-
stripeDeduplicationId: string | null;
|
|
11453
|
-
} | null;
|
|
11454
|
-
} & {
|
|
13393
|
+
}, "attribution" | "orderData"> & {
|
|
11455
13394
|
orderData: {
|
|
11456
13395
|
id: string;
|
|
11457
13396
|
storeId: string;
|
|
11458
13397
|
shippingId: string | null;
|
|
11459
|
-
shipping: {
|
|
13398
|
+
shipping: ({
|
|
11460
13399
|
id: string;
|
|
11461
13400
|
storeId: string;
|
|
11462
13401
|
name: string;
|
|
@@ -11495,242 +13434,902 @@ type APIOrderGetByIdResult = Omit<{
|
|
|
11495
13434
|
taxRate: {
|
|
11496
13435
|
id: string;
|
|
11497
13436
|
storeId: string;
|
|
11498
|
-
name: string;
|
|
11499
|
-
rate: string;
|
|
11500
|
-
label: string | null;
|
|
13437
|
+
name: string;
|
|
13438
|
+
rate: string;
|
|
13439
|
+
label: string | null;
|
|
13440
|
+
createdAt: string;
|
|
13441
|
+
updatedAt: string;
|
|
13442
|
+
};
|
|
13443
|
+
createdAt: string;
|
|
13444
|
+
updatedAt: string;
|
|
13445
|
+
} | null;
|
|
13446
|
+
position: number | null;
|
|
13447
|
+
createdAt: string;
|
|
13448
|
+
updatedAt: string;
|
|
13449
|
+
countries: string[] | null;
|
|
13450
|
+
} & {
|
|
13451
|
+
priceGross: string;
|
|
13452
|
+
}) | null;
|
|
13453
|
+
createdAt: string;
|
|
13454
|
+
lineItems: {
|
|
13455
|
+
id: string;
|
|
13456
|
+
cartId: string;
|
|
13457
|
+
quantity: number;
|
|
13458
|
+
unitCost: string | null;
|
|
13459
|
+
createdAt: string;
|
|
13460
|
+
updatedAt: string;
|
|
13461
|
+
productVariant: {
|
|
13462
|
+
[K in keyof ({
|
|
13463
|
+
id: string;
|
|
13464
|
+
sku: string | null;
|
|
13465
|
+
barcode: string | null;
|
|
13466
|
+
description: string | null;
|
|
13467
|
+
price: string;
|
|
13468
|
+
calculatedPrice: string | null;
|
|
13469
|
+
prePromotionPrice: string | null;
|
|
13470
|
+
preVolumePricingPrice: string | null;
|
|
13471
|
+
stock: number | null;
|
|
13472
|
+
depth: number | null;
|
|
13473
|
+
width: number | null;
|
|
13474
|
+
height: number | null;
|
|
13475
|
+
weight: number | null;
|
|
13476
|
+
images: string[];
|
|
13477
|
+
digital: string[] | null;
|
|
13478
|
+
shippable: boolean;
|
|
13479
|
+
externalId: string | null;
|
|
13480
|
+
product: {
|
|
13481
|
+
id: string;
|
|
13482
|
+
name: string;
|
|
13483
|
+
slug: string;
|
|
13484
|
+
status: "published" | "draft" | "hidden" | null;
|
|
13485
|
+
images: string[];
|
|
13486
|
+
badge: {
|
|
13487
|
+
content?: string | undefined;
|
|
13488
|
+
backgroundColor?: string | undefined;
|
|
13489
|
+
textColor?: string | undefined;
|
|
13490
|
+
} | null;
|
|
13491
|
+
storeId: string;
|
|
13492
|
+
categoryId: string | null;
|
|
13493
|
+
brandId: string | null;
|
|
13494
|
+
summary: string | null;
|
|
13495
|
+
content: any;
|
|
13496
|
+
createdAt: string;
|
|
13497
|
+
updatedAt: string;
|
|
13498
|
+
productTaxRate: {
|
|
13499
|
+
productId: string;
|
|
13500
|
+
taxRateId: string;
|
|
13501
|
+
taxRate: {
|
|
13502
|
+
id: string;
|
|
13503
|
+
storeId: string;
|
|
13504
|
+
name: string;
|
|
13505
|
+
rate: string;
|
|
13506
|
+
label: string | null;
|
|
13507
|
+
createdAt: string;
|
|
13508
|
+
updatedAt: string;
|
|
13509
|
+
};
|
|
13510
|
+
createdAt: string;
|
|
13511
|
+
updatedAt: string;
|
|
13512
|
+
} | null;
|
|
13513
|
+
flags: {
|
|
13514
|
+
gold?: boolean | null | undefined;
|
|
13515
|
+
event?: {
|
|
13516
|
+
enabled: boolean;
|
|
13517
|
+
startsAt?: string | null | undefined;
|
|
13518
|
+
location?: string | null | undefined;
|
|
13519
|
+
capacity?: number | null | undefined;
|
|
13520
|
+
guestLabel?: string | null | undefined;
|
|
13521
|
+
guest?: string | null | undefined;
|
|
13522
|
+
attendeeInfo?: "optional" | "none" | "required" | null | undefined;
|
|
13523
|
+
salesPaused?: boolean | null | undefined;
|
|
13524
|
+
} | null | undefined;
|
|
13525
|
+
scheduledPublishAt?: string | null | undefined;
|
|
13526
|
+
gpsr?: {
|
|
13527
|
+
safetyInformation?: {
|
|
13528
|
+
type: "NO_SAFETY_INFORMATION";
|
|
13529
|
+
} | {
|
|
13530
|
+
type: "TEXT";
|
|
13531
|
+
description: string;
|
|
13532
|
+
} | null | undefined;
|
|
13533
|
+
} | null | undefined;
|
|
13534
|
+
} | null;
|
|
13535
|
+
type: "set" | "product" | "bundle";
|
|
13536
|
+
subscriptionMode: "optional" | "only" | "rolling";
|
|
13537
|
+
bundleDiscountPercentage: string | null;
|
|
13538
|
+
bundlePriceMode: "fixed" | "amount" | "percent";
|
|
13539
|
+
bundleFixedPriceAmount: string | null;
|
|
13540
|
+
bundleAmountOffAmount: string | null;
|
|
13541
|
+
productCollections: {
|
|
13542
|
+
collection: {
|
|
13543
|
+
createdAt: string;
|
|
13544
|
+
description: any;
|
|
13545
|
+
id: string;
|
|
13546
|
+
image: string | null;
|
|
13547
|
+
name: string;
|
|
13548
|
+
slug: string;
|
|
13549
|
+
storeId: string;
|
|
13550
|
+
updatedAt: string;
|
|
13551
|
+
filter: {
|
|
13552
|
+
type: "manual";
|
|
13553
|
+
} | {
|
|
13554
|
+
type: "dynamicPrice";
|
|
13555
|
+
min?: number | null | undefined;
|
|
13556
|
+
max?: number | null | undefined;
|
|
13557
|
+
} | {
|
|
13558
|
+
type: "variantValues";
|
|
13559
|
+
values: Record<string, string[]>;
|
|
13560
|
+
} | {
|
|
13561
|
+
type: "newest";
|
|
13562
|
+
days?: number | null | undefined;
|
|
13563
|
+
};
|
|
13564
|
+
active: boolean;
|
|
13565
|
+
seo?: {
|
|
13566
|
+
title?: string | null | undefined;
|
|
13567
|
+
description?: string | null | undefined;
|
|
13568
|
+
canonical?: string | null | undefined;
|
|
13569
|
+
} | null | undefined;
|
|
13570
|
+
};
|
|
13571
|
+
collectionId: string;
|
|
13572
|
+
position: string | null;
|
|
13573
|
+
productId: string;
|
|
13574
|
+
}[];
|
|
13575
|
+
bundleGroups: {
|
|
13576
|
+
id: string;
|
|
13577
|
+
minQuantity: number;
|
|
13578
|
+
maxQuantity: number | null;
|
|
13579
|
+
allowDuplicates: boolean;
|
|
13580
|
+
}[];
|
|
13581
|
+
bundleProducts: {
|
|
13582
|
+
bundleId: string;
|
|
13583
|
+
variantId: string;
|
|
13584
|
+
groupId: string | null;
|
|
13585
|
+
quantity: number;
|
|
13586
|
+
position: number;
|
|
13587
|
+
forced: boolean;
|
|
13588
|
+
defaultSelected: boolean;
|
|
13589
|
+
maxQuantity: number | null;
|
|
13590
|
+
createdAt: string;
|
|
13591
|
+
updatedAt: string;
|
|
13592
|
+
variant: {
|
|
13593
|
+
id: string;
|
|
13594
|
+
sku: string | null;
|
|
13595
|
+
barcode: string | null;
|
|
13596
|
+
description: string | null;
|
|
13597
|
+
price: string;
|
|
13598
|
+
shippable: boolean;
|
|
13599
|
+
calculatedPrice: string | null;
|
|
13600
|
+
stock: number | null;
|
|
13601
|
+
depth: number | null;
|
|
13602
|
+
width: number | null;
|
|
13603
|
+
height: number | null;
|
|
13604
|
+
weight: number | null;
|
|
13605
|
+
images: string[];
|
|
13606
|
+
digital: string[] | null;
|
|
13607
|
+
externalId: string | null;
|
|
13608
|
+
product: {
|
|
13609
|
+
id: string;
|
|
13610
|
+
name: string;
|
|
13611
|
+
slug: string;
|
|
13612
|
+
images: string[];
|
|
13613
|
+
productTaxRate: {
|
|
13614
|
+
taxRate: {
|
|
13615
|
+
rate: string;
|
|
13616
|
+
label: string | null;
|
|
13617
|
+
};
|
|
13618
|
+
} | null;
|
|
13619
|
+
};
|
|
13620
|
+
createdAt: string;
|
|
13621
|
+
productId: string;
|
|
13622
|
+
updatedAt: string;
|
|
13623
|
+
attributes: {
|
|
13624
|
+
checked: boolean | null;
|
|
13625
|
+
key: string;
|
|
13626
|
+
value: string;
|
|
13627
|
+
}[] | null;
|
|
13628
|
+
storeId: string;
|
|
13629
|
+
originalPrice?: string | null | undefined;
|
|
13630
|
+
} & {
|
|
13631
|
+
originalPrice: string;
|
|
13632
|
+
};
|
|
13633
|
+
}[];
|
|
13634
|
+
setProduct: {
|
|
13635
|
+
selectionCount: number;
|
|
13636
|
+
allowDuplicates: boolean;
|
|
13637
|
+
discountPercentage: string;
|
|
13638
|
+
} | null;
|
|
13639
|
+
seo: {
|
|
13640
|
+
title?: string | null | undefined;
|
|
13641
|
+
description?: string | null | undefined;
|
|
13642
|
+
canonical?: string | null | undefined;
|
|
13643
|
+
} | null;
|
|
13644
|
+
stripeTaxCode: string | null;
|
|
13645
|
+
active?: boolean | null | undefined;
|
|
13646
|
+
};
|
|
13647
|
+
createdAt: string;
|
|
13648
|
+
productId: string;
|
|
13649
|
+
updatedAt: string;
|
|
13650
|
+
combinations: {
|
|
13651
|
+
createdAt: string;
|
|
13652
|
+
updatedAt: string;
|
|
13653
|
+
productVariantId: string;
|
|
13654
|
+
variantValueId: string;
|
|
13655
|
+
variantValue: {
|
|
13656
|
+
id: string;
|
|
13657
|
+
value: string;
|
|
13658
|
+
variantType: {
|
|
13659
|
+
id: string;
|
|
13660
|
+
label: string;
|
|
13661
|
+
productId?: string | null | undefined;
|
|
13662
|
+
createdAt?: string | null | undefined;
|
|
13663
|
+
updatedAt?: string | null | undefined;
|
|
13664
|
+
};
|
|
13665
|
+
variantTypeId?: string | null | undefined;
|
|
13666
|
+
};
|
|
13667
|
+
}[];
|
|
13668
|
+
attributes: {
|
|
13669
|
+
checked: boolean | null;
|
|
13670
|
+
key: string;
|
|
13671
|
+
value: string;
|
|
13672
|
+
}[] | null;
|
|
13673
|
+
storeId: string;
|
|
13674
|
+
originalPrice?: string | null | undefined;
|
|
13675
|
+
} & {
|
|
13676
|
+
originalPrice: string;
|
|
13677
|
+
})]: K extends "prices" ? Array<(({
|
|
13678
|
+
id: string;
|
|
13679
|
+
sku: string | null;
|
|
13680
|
+
barcode: string | null;
|
|
13681
|
+
description: string | null;
|
|
13682
|
+
price: string;
|
|
13683
|
+
calculatedPrice: string | null;
|
|
13684
|
+
prePromotionPrice: string | null;
|
|
13685
|
+
preVolumePricingPrice: string | null;
|
|
13686
|
+
stock: number | null;
|
|
13687
|
+
depth: number | null;
|
|
13688
|
+
width: number | null;
|
|
13689
|
+
height: number | null;
|
|
13690
|
+
weight: number | null;
|
|
13691
|
+
images: string[];
|
|
13692
|
+
digital: string[] | null;
|
|
13693
|
+
shippable: boolean;
|
|
13694
|
+
externalId: string | null;
|
|
13695
|
+
product: {
|
|
13696
|
+
id: string;
|
|
13697
|
+
name: string;
|
|
13698
|
+
slug: string;
|
|
13699
|
+
status: "published" | "draft" | "hidden" | null;
|
|
13700
|
+
images: string[];
|
|
13701
|
+
badge: {
|
|
13702
|
+
content?: string | undefined;
|
|
13703
|
+
backgroundColor?: string | undefined;
|
|
13704
|
+
textColor?: string | undefined;
|
|
13705
|
+
} | null;
|
|
13706
|
+
storeId: string;
|
|
13707
|
+
categoryId: string | null;
|
|
13708
|
+
brandId: string | null;
|
|
13709
|
+
summary: string | null;
|
|
13710
|
+
content: any;
|
|
13711
|
+
createdAt: string;
|
|
13712
|
+
updatedAt: string;
|
|
13713
|
+
productTaxRate: {
|
|
13714
|
+
productId: string;
|
|
13715
|
+
taxRateId: string;
|
|
13716
|
+
taxRate: {
|
|
13717
|
+
id: string;
|
|
13718
|
+
storeId: string;
|
|
13719
|
+
name: string;
|
|
13720
|
+
rate: string;
|
|
13721
|
+
label: string | null;
|
|
13722
|
+
createdAt: string;
|
|
13723
|
+
updatedAt: string;
|
|
13724
|
+
};
|
|
13725
|
+
createdAt: string;
|
|
13726
|
+
updatedAt: string;
|
|
13727
|
+
} | null;
|
|
13728
|
+
flags: {
|
|
13729
|
+
gold?: boolean | null | undefined;
|
|
13730
|
+
event?: {
|
|
13731
|
+
enabled: boolean;
|
|
13732
|
+
startsAt?: string | null | undefined;
|
|
13733
|
+
location?: string | null | undefined;
|
|
13734
|
+
capacity?: number | null | undefined;
|
|
13735
|
+
guestLabel?: string | null | undefined;
|
|
13736
|
+
guest?: string | null | undefined;
|
|
13737
|
+
attendeeInfo?: "optional" | "none" | "required" | null | undefined;
|
|
13738
|
+
salesPaused?: boolean | null | undefined;
|
|
13739
|
+
} | null | undefined;
|
|
13740
|
+
scheduledPublishAt?: string | null | undefined;
|
|
13741
|
+
gpsr?: {
|
|
13742
|
+
safetyInformation?: {
|
|
13743
|
+
type: "NO_SAFETY_INFORMATION";
|
|
13744
|
+
} | {
|
|
13745
|
+
type: "TEXT";
|
|
13746
|
+
description: string;
|
|
13747
|
+
} | null | undefined;
|
|
13748
|
+
} | null | undefined;
|
|
13749
|
+
} | null;
|
|
13750
|
+
type: "set" | "product" | "bundle";
|
|
13751
|
+
subscriptionMode: "optional" | "only" | "rolling";
|
|
13752
|
+
bundleDiscountPercentage: string | null;
|
|
13753
|
+
bundlePriceMode: "fixed" | "amount" | "percent";
|
|
13754
|
+
bundleFixedPriceAmount: string | null;
|
|
13755
|
+
bundleAmountOffAmount: string | null;
|
|
13756
|
+
productCollections: {
|
|
13757
|
+
collection: {
|
|
13758
|
+
createdAt: string;
|
|
13759
|
+
description: any;
|
|
13760
|
+
id: string;
|
|
13761
|
+
image: string | null;
|
|
13762
|
+
name: string;
|
|
13763
|
+
slug: string;
|
|
13764
|
+
storeId: string;
|
|
13765
|
+
updatedAt: string;
|
|
13766
|
+
filter: {
|
|
13767
|
+
type: "manual";
|
|
13768
|
+
} | {
|
|
13769
|
+
type: "dynamicPrice";
|
|
13770
|
+
min?: number | null | undefined;
|
|
13771
|
+
max?: number | null | undefined;
|
|
13772
|
+
} | {
|
|
13773
|
+
type: "variantValues";
|
|
13774
|
+
values: Record<string, string[]>;
|
|
13775
|
+
} | {
|
|
13776
|
+
type: "newest";
|
|
13777
|
+
days?: number | null | undefined;
|
|
13778
|
+
};
|
|
13779
|
+
active: boolean;
|
|
13780
|
+
seo?: {
|
|
13781
|
+
title?: string | null | undefined;
|
|
13782
|
+
description?: string | null | undefined;
|
|
13783
|
+
canonical?: string | null | undefined;
|
|
13784
|
+
} | null | undefined;
|
|
13785
|
+
};
|
|
13786
|
+
collectionId: string;
|
|
13787
|
+
position: string | null;
|
|
13788
|
+
productId: string;
|
|
13789
|
+
}[];
|
|
13790
|
+
bundleGroups: {
|
|
13791
|
+
id: string;
|
|
13792
|
+
minQuantity: number;
|
|
13793
|
+
maxQuantity: number | null;
|
|
13794
|
+
allowDuplicates: boolean;
|
|
13795
|
+
}[];
|
|
13796
|
+
bundleProducts: {
|
|
13797
|
+
bundleId: string;
|
|
13798
|
+
variantId: string;
|
|
13799
|
+
groupId: string | null;
|
|
13800
|
+
quantity: number;
|
|
13801
|
+
position: number;
|
|
13802
|
+
forced: boolean;
|
|
13803
|
+
defaultSelected: boolean;
|
|
13804
|
+
maxQuantity: number | null;
|
|
13805
|
+
createdAt: string;
|
|
13806
|
+
updatedAt: string;
|
|
13807
|
+
variant: {
|
|
13808
|
+
id: string;
|
|
13809
|
+
sku: string | null;
|
|
13810
|
+
barcode: string | null;
|
|
13811
|
+
description: string | null;
|
|
13812
|
+
price: string;
|
|
13813
|
+
shippable: boolean;
|
|
13814
|
+
calculatedPrice: string | null;
|
|
13815
|
+
stock: number | null;
|
|
13816
|
+
depth: number | null;
|
|
13817
|
+
width: number | null;
|
|
13818
|
+
height: number | null;
|
|
13819
|
+
weight: number | null;
|
|
13820
|
+
images: string[];
|
|
13821
|
+
digital: string[] | null;
|
|
13822
|
+
externalId: string | null;
|
|
13823
|
+
product: {
|
|
13824
|
+
id: string;
|
|
13825
|
+
name: string;
|
|
13826
|
+
slug: string;
|
|
13827
|
+
images: string[];
|
|
13828
|
+
productTaxRate: {
|
|
13829
|
+
taxRate: {
|
|
13830
|
+
rate: string;
|
|
13831
|
+
label: string | null;
|
|
13832
|
+
};
|
|
13833
|
+
} | null;
|
|
13834
|
+
};
|
|
13835
|
+
createdAt: string;
|
|
13836
|
+
productId: string;
|
|
13837
|
+
updatedAt: string;
|
|
13838
|
+
attributes: {
|
|
13839
|
+
checked: boolean | null;
|
|
13840
|
+
key: string;
|
|
13841
|
+
value: string;
|
|
13842
|
+
}[] | null;
|
|
13843
|
+
storeId: string;
|
|
13844
|
+
originalPrice?: string | null | undefined;
|
|
13845
|
+
} & {
|
|
13846
|
+
originalPrice: string;
|
|
13847
|
+
};
|
|
13848
|
+
}[];
|
|
13849
|
+
setProduct: {
|
|
13850
|
+
selectionCount: number;
|
|
13851
|
+
allowDuplicates: boolean;
|
|
13852
|
+
discountPercentage: string;
|
|
13853
|
+
} | null;
|
|
13854
|
+
seo: {
|
|
13855
|
+
title?: string | null | undefined;
|
|
13856
|
+
description?: string | null | undefined;
|
|
13857
|
+
canonical?: string | null | undefined;
|
|
13858
|
+
} | null;
|
|
13859
|
+
stripeTaxCode: string | null;
|
|
13860
|
+
active?: boolean | null | undefined;
|
|
13861
|
+
};
|
|
11501
13862
|
createdAt: string;
|
|
13863
|
+
productId: string;
|
|
11502
13864
|
updatedAt: string;
|
|
11503
|
-
|
|
11504
|
-
|
|
11505
|
-
|
|
11506
|
-
|
|
11507
|
-
|
|
11508
|
-
|
|
11509
|
-
|
|
11510
|
-
|
|
11511
|
-
|
|
11512
|
-
|
|
11513
|
-
|
|
11514
|
-
|
|
11515
|
-
|
|
11516
|
-
|
|
11517
|
-
|
|
11518
|
-
|
|
11519
|
-
|
|
11520
|
-
|
|
11521
|
-
|
|
11522
|
-
|
|
11523
|
-
|
|
11524
|
-
|
|
11525
|
-
|
|
11526
|
-
|
|
11527
|
-
|
|
11528
|
-
|
|
11529
|
-
|
|
11530
|
-
|
|
11531
|
-
|
|
11532
|
-
|
|
11533
|
-
|
|
11534
|
-
|
|
11535
|
-
|
|
11536
|
-
shippable: boolean;
|
|
11537
|
-
externalId: string | null;
|
|
11538
|
-
product: {
|
|
13865
|
+
combinations: {
|
|
13866
|
+
createdAt: string;
|
|
13867
|
+
updatedAt: string;
|
|
13868
|
+
productVariantId: string;
|
|
13869
|
+
variantValueId: string;
|
|
13870
|
+
variantValue: {
|
|
13871
|
+
id: string;
|
|
13872
|
+
value: string;
|
|
13873
|
+
variantType: {
|
|
13874
|
+
id: string;
|
|
13875
|
+
label: string;
|
|
13876
|
+
productId?: string | null | undefined;
|
|
13877
|
+
createdAt?: string | null | undefined;
|
|
13878
|
+
updatedAt?: string | null | undefined;
|
|
13879
|
+
};
|
|
13880
|
+
variantTypeId?: string | null | undefined;
|
|
13881
|
+
};
|
|
13882
|
+
}[];
|
|
13883
|
+
attributes: {
|
|
13884
|
+
checked: boolean | null;
|
|
13885
|
+
key: string;
|
|
13886
|
+
value: string;
|
|
13887
|
+
}[] | null;
|
|
13888
|
+
storeId: string;
|
|
13889
|
+
originalPrice?: string | null | undefined;
|
|
13890
|
+
} & {
|
|
13891
|
+
originalPrice: string;
|
|
13892
|
+
})[K] extends readonly (infer TElement)[] ? TElement : never) & {
|
|
13893
|
+
/** `price` converted to gross with the owning product's tax rate. */
|
|
13894
|
+
priceGross: string;
|
|
13895
|
+
/** `calculatedPrice` converted to gross; null when there is no calculated price. */
|
|
13896
|
+
calculatedPriceGross: string | null;
|
|
13897
|
+
}> : ({
|
|
11539
13898
|
id: string;
|
|
11540
|
-
|
|
11541
|
-
|
|
11542
|
-
|
|
13899
|
+
sku: string | null;
|
|
13900
|
+
barcode: string | null;
|
|
13901
|
+
description: string | null;
|
|
13902
|
+
price: string;
|
|
13903
|
+
calculatedPrice: string | null;
|
|
13904
|
+
prePromotionPrice: string | null;
|
|
13905
|
+
preVolumePricingPrice: string | null;
|
|
13906
|
+
stock: number | null;
|
|
13907
|
+
depth: number | null;
|
|
13908
|
+
width: number | null;
|
|
13909
|
+
height: number | null;
|
|
13910
|
+
weight: number | null;
|
|
11543
13911
|
images: string[];
|
|
11544
|
-
|
|
11545
|
-
|
|
11546
|
-
|
|
11547
|
-
|
|
11548
|
-
|
|
11549
|
-
|
|
11550
|
-
|
|
11551
|
-
|
|
11552
|
-
|
|
11553
|
-
|
|
11554
|
-
|
|
11555
|
-
|
|
11556
|
-
|
|
11557
|
-
|
|
11558
|
-
|
|
11559
|
-
|
|
13912
|
+
digital: string[] | null;
|
|
13913
|
+
shippable: boolean;
|
|
13914
|
+
externalId: string | null;
|
|
13915
|
+
product: {
|
|
13916
|
+
id: string;
|
|
13917
|
+
name: string;
|
|
13918
|
+
slug: string;
|
|
13919
|
+
status: "published" | "draft" | "hidden" | null;
|
|
13920
|
+
images: string[];
|
|
13921
|
+
badge: {
|
|
13922
|
+
content?: string | undefined;
|
|
13923
|
+
backgroundColor?: string | undefined;
|
|
13924
|
+
textColor?: string | undefined;
|
|
13925
|
+
} | null;
|
|
13926
|
+
storeId: string;
|
|
13927
|
+
categoryId: string | null;
|
|
13928
|
+
brandId: string | null;
|
|
13929
|
+
summary: string | null;
|
|
13930
|
+
content: any;
|
|
13931
|
+
createdAt: string;
|
|
13932
|
+
updatedAt: string;
|
|
13933
|
+
productTaxRate: {
|
|
13934
|
+
productId: string;
|
|
13935
|
+
taxRateId: string;
|
|
13936
|
+
taxRate: {
|
|
13937
|
+
id: string;
|
|
13938
|
+
storeId: string;
|
|
13939
|
+
name: string;
|
|
13940
|
+
rate: string;
|
|
13941
|
+
label: string | null;
|
|
13942
|
+
createdAt: string;
|
|
13943
|
+
updatedAt: string;
|
|
13944
|
+
};
|
|
13945
|
+
createdAt: string;
|
|
13946
|
+
updatedAt: string;
|
|
13947
|
+
} | null;
|
|
13948
|
+
flags: {
|
|
13949
|
+
gold?: boolean | null | undefined;
|
|
13950
|
+
event?: {
|
|
13951
|
+
enabled: boolean;
|
|
13952
|
+
startsAt?: string | null | undefined;
|
|
13953
|
+
location?: string | null | undefined;
|
|
13954
|
+
capacity?: number | null | undefined;
|
|
13955
|
+
guestLabel?: string | null | undefined;
|
|
13956
|
+
guest?: string | null | undefined;
|
|
13957
|
+
attendeeInfo?: "optional" | "none" | "required" | null | undefined;
|
|
13958
|
+
salesPaused?: boolean | null | undefined;
|
|
13959
|
+
} | null | undefined;
|
|
13960
|
+
scheduledPublishAt?: string | null | undefined;
|
|
13961
|
+
gpsr?: {
|
|
13962
|
+
safetyInformation?: {
|
|
13963
|
+
type: "NO_SAFETY_INFORMATION";
|
|
13964
|
+
} | {
|
|
13965
|
+
type: "TEXT";
|
|
13966
|
+
description: string;
|
|
13967
|
+
} | null | undefined;
|
|
13968
|
+
} | null | undefined;
|
|
13969
|
+
} | null;
|
|
13970
|
+
type: "set" | "product" | "bundle";
|
|
13971
|
+
subscriptionMode: "optional" | "only" | "rolling";
|
|
13972
|
+
bundleDiscountPercentage: string | null;
|
|
13973
|
+
bundlePriceMode: "fixed" | "amount" | "percent";
|
|
13974
|
+
bundleFixedPriceAmount: string | null;
|
|
13975
|
+
bundleAmountOffAmount: string | null;
|
|
13976
|
+
productCollections: {
|
|
13977
|
+
collection: {
|
|
13978
|
+
createdAt: string;
|
|
13979
|
+
description: any;
|
|
13980
|
+
id: string;
|
|
13981
|
+
image: string | null;
|
|
13982
|
+
name: string;
|
|
13983
|
+
slug: string;
|
|
13984
|
+
storeId: string;
|
|
13985
|
+
updatedAt: string;
|
|
13986
|
+
filter: {
|
|
13987
|
+
type: "manual";
|
|
13988
|
+
} | {
|
|
13989
|
+
type: "dynamicPrice";
|
|
13990
|
+
min?: number | null | undefined;
|
|
13991
|
+
max?: number | null | undefined;
|
|
13992
|
+
} | {
|
|
13993
|
+
type: "variantValues";
|
|
13994
|
+
values: Record<string, string[]>;
|
|
13995
|
+
} | {
|
|
13996
|
+
type: "newest";
|
|
13997
|
+
days?: number | null | undefined;
|
|
13998
|
+
};
|
|
13999
|
+
active: boolean;
|
|
14000
|
+
seo?: {
|
|
14001
|
+
title?: string | null | undefined;
|
|
14002
|
+
description?: string | null | undefined;
|
|
14003
|
+
canonical?: string | null | undefined;
|
|
14004
|
+
} | null | undefined;
|
|
14005
|
+
};
|
|
14006
|
+
collectionId: string;
|
|
14007
|
+
position: string | null;
|
|
14008
|
+
productId: string;
|
|
14009
|
+
}[];
|
|
14010
|
+
bundleGroups: {
|
|
11560
14011
|
id: string;
|
|
11561
|
-
|
|
11562
|
-
|
|
11563
|
-
|
|
11564
|
-
|
|
14012
|
+
minQuantity: number;
|
|
14013
|
+
maxQuantity: number | null;
|
|
14014
|
+
allowDuplicates: boolean;
|
|
14015
|
+
}[];
|
|
14016
|
+
bundleProducts: {
|
|
14017
|
+
bundleId: string;
|
|
14018
|
+
variantId: string;
|
|
14019
|
+
groupId: string | null;
|
|
14020
|
+
quantity: number;
|
|
14021
|
+
position: number;
|
|
14022
|
+
forced: boolean;
|
|
14023
|
+
defaultSelected: boolean;
|
|
14024
|
+
maxQuantity: number | null;
|
|
11565
14025
|
createdAt: string;
|
|
11566
14026
|
updatedAt: string;
|
|
11567
|
-
|
|
14027
|
+
variant: {
|
|
14028
|
+
id: string;
|
|
14029
|
+
sku: string | null;
|
|
14030
|
+
barcode: string | null;
|
|
14031
|
+
description: string | null;
|
|
14032
|
+
price: string;
|
|
14033
|
+
shippable: boolean;
|
|
14034
|
+
calculatedPrice: string | null;
|
|
14035
|
+
stock: number | null;
|
|
14036
|
+
depth: number | null;
|
|
14037
|
+
width: number | null;
|
|
14038
|
+
height: number | null;
|
|
14039
|
+
weight: number | null;
|
|
14040
|
+
images: string[];
|
|
14041
|
+
digital: string[] | null;
|
|
14042
|
+
externalId: string | null;
|
|
14043
|
+
product: {
|
|
14044
|
+
id: string;
|
|
14045
|
+
name: string;
|
|
14046
|
+
slug: string;
|
|
14047
|
+
images: string[];
|
|
14048
|
+
productTaxRate: {
|
|
14049
|
+
taxRate: {
|
|
14050
|
+
rate: string;
|
|
14051
|
+
label: string | null;
|
|
14052
|
+
};
|
|
14053
|
+
} | null;
|
|
14054
|
+
};
|
|
14055
|
+
createdAt: string;
|
|
14056
|
+
productId: string;
|
|
14057
|
+
updatedAt: string;
|
|
14058
|
+
attributes: {
|
|
14059
|
+
checked: boolean | null;
|
|
14060
|
+
key: string;
|
|
14061
|
+
value: string;
|
|
14062
|
+
}[] | null;
|
|
14063
|
+
storeId: string;
|
|
14064
|
+
originalPrice?: string | null | undefined;
|
|
14065
|
+
} & {
|
|
14066
|
+
originalPrice: string;
|
|
14067
|
+
};
|
|
14068
|
+
}[];
|
|
14069
|
+
setProduct: {
|
|
14070
|
+
selectionCount: number;
|
|
14071
|
+
allowDuplicates: boolean;
|
|
14072
|
+
discountPercentage: string;
|
|
14073
|
+
} | null;
|
|
14074
|
+
seo: {
|
|
14075
|
+
title?: string | null | undefined;
|
|
14076
|
+
description?: string | null | undefined;
|
|
14077
|
+
canonical?: string | null | undefined;
|
|
14078
|
+
} | null;
|
|
14079
|
+
stripeTaxCode: string | null;
|
|
14080
|
+
active?: boolean | null | undefined;
|
|
14081
|
+
};
|
|
14082
|
+
createdAt: string;
|
|
14083
|
+
productId: string;
|
|
14084
|
+
updatedAt: string;
|
|
14085
|
+
combinations: {
|
|
11568
14086
|
createdAt: string;
|
|
11569
14087
|
updatedAt: string;
|
|
11570
|
-
|
|
11571
|
-
|
|
11572
|
-
|
|
11573
|
-
event?: {
|
|
11574
|
-
enabled: boolean;
|
|
11575
|
-
startsAt?: string | null | undefined;
|
|
11576
|
-
location?: string | null | undefined;
|
|
11577
|
-
capacity?: number | null | undefined;
|
|
11578
|
-
guestLabel?: string | null | undefined;
|
|
11579
|
-
guest?: string | null | undefined;
|
|
11580
|
-
attendeeInfo?: "optional" | "none" | "required" | null | undefined;
|
|
11581
|
-
salesPaused?: boolean | null | undefined;
|
|
11582
|
-
} | null | undefined;
|
|
11583
|
-
scheduledPublishAt?: string | null | undefined;
|
|
11584
|
-
gpsr?: {
|
|
11585
|
-
safetyInformation?: {
|
|
11586
|
-
type: "NO_SAFETY_INFORMATION";
|
|
11587
|
-
} | {
|
|
11588
|
-
type: "TEXT";
|
|
11589
|
-
description: string;
|
|
11590
|
-
} | null | undefined;
|
|
11591
|
-
} | null | undefined;
|
|
11592
|
-
} | null;
|
|
11593
|
-
type: "set" | "product" | "bundle";
|
|
11594
|
-
bundleDiscountPercentage: string | null;
|
|
11595
|
-
bundlePriceMode: "fixed" | "amount" | "percent";
|
|
11596
|
-
bundleFixedPriceAmount: string | null;
|
|
11597
|
-
bundleAmountOffAmount: string | null;
|
|
11598
|
-
productCollections: {
|
|
11599
|
-
collection: {
|
|
11600
|
-
createdAt: string;
|
|
11601
|
-
description: any;
|
|
14088
|
+
productVariantId: string;
|
|
14089
|
+
variantValueId: string;
|
|
14090
|
+
variantValue: {
|
|
11602
14091
|
id: string;
|
|
11603
|
-
|
|
11604
|
-
|
|
11605
|
-
|
|
11606
|
-
|
|
11607
|
-
|
|
11608
|
-
|
|
11609
|
-
|
|
11610
|
-
} | {
|
|
11611
|
-
type: "dynamicPrice";
|
|
11612
|
-
min?: number | null | undefined;
|
|
11613
|
-
max?: number | null | undefined;
|
|
11614
|
-
} | {
|
|
11615
|
-
type: "variantValues";
|
|
11616
|
-
values: Record<string, string[]>;
|
|
11617
|
-
} | {
|
|
11618
|
-
type: "newest";
|
|
11619
|
-
days?: number | null | undefined;
|
|
14092
|
+
value: string;
|
|
14093
|
+
variantType: {
|
|
14094
|
+
id: string;
|
|
14095
|
+
label: string;
|
|
14096
|
+
productId?: string | null | undefined;
|
|
14097
|
+
createdAt?: string | null | undefined;
|
|
14098
|
+
updatedAt?: string | null | undefined;
|
|
11620
14099
|
};
|
|
11621
|
-
|
|
11622
|
-
seo?: {
|
|
11623
|
-
title?: string | null | undefined;
|
|
11624
|
-
description?: string | null | undefined;
|
|
11625
|
-
canonical?: string | null | undefined;
|
|
11626
|
-
} | null | undefined;
|
|
14100
|
+
variantTypeId?: string | null | undefined;
|
|
11627
14101
|
};
|
|
11628
|
-
collectionId: string;
|
|
11629
|
-
position: string | null;
|
|
11630
|
-
productId: string;
|
|
11631
14102
|
}[];
|
|
11632
|
-
|
|
14103
|
+
attributes: {
|
|
14104
|
+
checked: boolean | null;
|
|
14105
|
+
key: string;
|
|
14106
|
+
value: string;
|
|
14107
|
+
}[] | null;
|
|
14108
|
+
storeId: string;
|
|
14109
|
+
originalPrice?: string | null | undefined;
|
|
14110
|
+
} & {
|
|
14111
|
+
originalPrice: string;
|
|
14112
|
+
})[K];
|
|
14113
|
+
} & {
|
|
14114
|
+
/** `price` (the effective net price) converted to gross with the product's tax rate. */
|
|
14115
|
+
priceGross: string;
|
|
14116
|
+
} & {
|
|
14117
|
+
[K in Extract<keyof ({
|
|
14118
|
+
id: string;
|
|
14119
|
+
sku: string | null;
|
|
14120
|
+
barcode: string | null;
|
|
14121
|
+
description: string | null;
|
|
14122
|
+
price: string;
|
|
14123
|
+
calculatedPrice: string | null;
|
|
14124
|
+
prePromotionPrice: string | null;
|
|
14125
|
+
preVolumePricingPrice: string | null;
|
|
14126
|
+
stock: number | null;
|
|
14127
|
+
depth: number | null;
|
|
14128
|
+
width: number | null;
|
|
14129
|
+
height: number | null;
|
|
14130
|
+
weight: number | null;
|
|
14131
|
+
images: string[];
|
|
14132
|
+
digital: string[] | null;
|
|
14133
|
+
shippable: boolean;
|
|
14134
|
+
externalId: string | null;
|
|
14135
|
+
product: {
|
|
11633
14136
|
id: string;
|
|
11634
|
-
|
|
11635
|
-
|
|
11636
|
-
|
|
11637
|
-
|
|
11638
|
-
|
|
11639
|
-
|
|
11640
|
-
|
|
11641
|
-
|
|
11642
|
-
|
|
11643
|
-
|
|
11644
|
-
|
|
11645
|
-
|
|
11646
|
-
|
|
14137
|
+
name: string;
|
|
14138
|
+
slug: string;
|
|
14139
|
+
status: "published" | "draft" | "hidden" | null;
|
|
14140
|
+
images: string[];
|
|
14141
|
+
badge: {
|
|
14142
|
+
content?: string | undefined;
|
|
14143
|
+
backgroundColor?: string | undefined;
|
|
14144
|
+
textColor?: string | undefined;
|
|
14145
|
+
} | null;
|
|
14146
|
+
storeId: string;
|
|
14147
|
+
categoryId: string | null;
|
|
14148
|
+
brandId: string | null;
|
|
14149
|
+
summary: string | null;
|
|
14150
|
+
content: any;
|
|
11647
14151
|
createdAt: string;
|
|
11648
14152
|
updatedAt: string;
|
|
11649
|
-
|
|
11650
|
-
|
|
11651
|
-
|
|
11652
|
-
|
|
11653
|
-
description: string | null;
|
|
11654
|
-
price: string;
|
|
11655
|
-
shippable: boolean;
|
|
11656
|
-
calculatedPrice: string | null;
|
|
11657
|
-
stock: number | null;
|
|
11658
|
-
depth: number | null;
|
|
11659
|
-
width: number | null;
|
|
11660
|
-
height: number | null;
|
|
11661
|
-
weight: number | null;
|
|
11662
|
-
images: string[];
|
|
11663
|
-
digital: string[] | null;
|
|
11664
|
-
externalId: string | null;
|
|
11665
|
-
product: {
|
|
14153
|
+
productTaxRate: {
|
|
14154
|
+
productId: string;
|
|
14155
|
+
taxRateId: string;
|
|
14156
|
+
taxRate: {
|
|
11666
14157
|
id: string;
|
|
14158
|
+
storeId: string;
|
|
11667
14159
|
name: string;
|
|
11668
|
-
|
|
11669
|
-
|
|
11670
|
-
|
|
11671
|
-
|
|
11672
|
-
rate: string;
|
|
11673
|
-
label: string | null;
|
|
11674
|
-
};
|
|
11675
|
-
} | null;
|
|
14160
|
+
rate: string;
|
|
14161
|
+
label: string | null;
|
|
14162
|
+
createdAt: string;
|
|
14163
|
+
updatedAt: string;
|
|
11676
14164
|
};
|
|
11677
14165
|
createdAt: string;
|
|
14166
|
+
updatedAt: string;
|
|
14167
|
+
} | null;
|
|
14168
|
+
flags: {
|
|
14169
|
+
gold?: boolean | null | undefined;
|
|
14170
|
+
event?: {
|
|
14171
|
+
enabled: boolean;
|
|
14172
|
+
startsAt?: string | null | undefined;
|
|
14173
|
+
location?: string | null | undefined;
|
|
14174
|
+
capacity?: number | null | undefined;
|
|
14175
|
+
guestLabel?: string | null | undefined;
|
|
14176
|
+
guest?: string | null | undefined;
|
|
14177
|
+
attendeeInfo?: "optional" | "none" | "required" | null | undefined;
|
|
14178
|
+
salesPaused?: boolean | null | undefined;
|
|
14179
|
+
} | null | undefined;
|
|
14180
|
+
scheduledPublishAt?: string | null | undefined;
|
|
14181
|
+
gpsr?: {
|
|
14182
|
+
safetyInformation?: {
|
|
14183
|
+
type: "NO_SAFETY_INFORMATION";
|
|
14184
|
+
} | {
|
|
14185
|
+
type: "TEXT";
|
|
14186
|
+
description: string;
|
|
14187
|
+
} | null | undefined;
|
|
14188
|
+
} | null | undefined;
|
|
14189
|
+
} | null;
|
|
14190
|
+
type: "set" | "product" | "bundle";
|
|
14191
|
+
subscriptionMode: "optional" | "only" | "rolling";
|
|
14192
|
+
bundleDiscountPercentage: string | null;
|
|
14193
|
+
bundlePriceMode: "fixed" | "amount" | "percent";
|
|
14194
|
+
bundleFixedPriceAmount: string | null;
|
|
14195
|
+
bundleAmountOffAmount: string | null;
|
|
14196
|
+
productCollections: {
|
|
14197
|
+
collection: {
|
|
14198
|
+
createdAt: string;
|
|
14199
|
+
description: any;
|
|
14200
|
+
id: string;
|
|
14201
|
+
image: string | null;
|
|
14202
|
+
name: string;
|
|
14203
|
+
slug: string;
|
|
14204
|
+
storeId: string;
|
|
14205
|
+
updatedAt: string;
|
|
14206
|
+
filter: {
|
|
14207
|
+
type: "manual";
|
|
14208
|
+
} | {
|
|
14209
|
+
type: "dynamicPrice";
|
|
14210
|
+
min?: number | null | undefined;
|
|
14211
|
+
max?: number | null | undefined;
|
|
14212
|
+
} | {
|
|
14213
|
+
type: "variantValues";
|
|
14214
|
+
values: Record<string, string[]>;
|
|
14215
|
+
} | {
|
|
14216
|
+
type: "newest";
|
|
14217
|
+
days?: number | null | undefined;
|
|
14218
|
+
};
|
|
14219
|
+
active: boolean;
|
|
14220
|
+
seo?: {
|
|
14221
|
+
title?: string | null | undefined;
|
|
14222
|
+
description?: string | null | undefined;
|
|
14223
|
+
canonical?: string | null | undefined;
|
|
14224
|
+
} | null | undefined;
|
|
14225
|
+
};
|
|
14226
|
+
collectionId: string;
|
|
14227
|
+
position: string | null;
|
|
11678
14228
|
productId: string;
|
|
14229
|
+
}[];
|
|
14230
|
+
bundleGroups: {
|
|
14231
|
+
id: string;
|
|
14232
|
+
minQuantity: number;
|
|
14233
|
+
maxQuantity: number | null;
|
|
14234
|
+
allowDuplicates: boolean;
|
|
14235
|
+
}[];
|
|
14236
|
+
bundleProducts: {
|
|
14237
|
+
bundleId: string;
|
|
14238
|
+
variantId: string;
|
|
14239
|
+
groupId: string | null;
|
|
14240
|
+
quantity: number;
|
|
14241
|
+
position: number;
|
|
14242
|
+
forced: boolean;
|
|
14243
|
+
defaultSelected: boolean;
|
|
14244
|
+
maxQuantity: number | null;
|
|
14245
|
+
createdAt: string;
|
|
11679
14246
|
updatedAt: string;
|
|
11680
|
-
|
|
11681
|
-
|
|
11682
|
-
|
|
11683
|
-
|
|
11684
|
-
|
|
11685
|
-
|
|
11686
|
-
|
|
11687
|
-
|
|
11688
|
-
|
|
11689
|
-
|
|
11690
|
-
|
|
11691
|
-
|
|
11692
|
-
|
|
11693
|
-
|
|
11694
|
-
|
|
11695
|
-
|
|
11696
|
-
|
|
11697
|
-
|
|
11698
|
-
|
|
11699
|
-
|
|
11700
|
-
|
|
11701
|
-
|
|
11702
|
-
|
|
11703
|
-
|
|
11704
|
-
|
|
11705
|
-
|
|
11706
|
-
|
|
11707
|
-
|
|
14247
|
+
variant: {
|
|
14248
|
+
id: string;
|
|
14249
|
+
sku: string | null;
|
|
14250
|
+
barcode: string | null;
|
|
14251
|
+
description: string | null;
|
|
14252
|
+
price: string;
|
|
14253
|
+
shippable: boolean;
|
|
14254
|
+
calculatedPrice: string | null;
|
|
14255
|
+
stock: number | null;
|
|
14256
|
+
depth: number | null;
|
|
14257
|
+
width: number | null;
|
|
14258
|
+
height: number | null;
|
|
14259
|
+
weight: number | null;
|
|
14260
|
+
images: string[];
|
|
14261
|
+
digital: string[] | null;
|
|
14262
|
+
externalId: string | null;
|
|
14263
|
+
product: {
|
|
14264
|
+
id: string;
|
|
14265
|
+
name: string;
|
|
14266
|
+
slug: string;
|
|
14267
|
+
images: string[];
|
|
14268
|
+
productTaxRate: {
|
|
14269
|
+
taxRate: {
|
|
14270
|
+
rate: string;
|
|
14271
|
+
label: string | null;
|
|
14272
|
+
};
|
|
14273
|
+
} | null;
|
|
14274
|
+
};
|
|
14275
|
+
createdAt: string;
|
|
14276
|
+
productId: string;
|
|
14277
|
+
updatedAt: string;
|
|
14278
|
+
attributes: {
|
|
14279
|
+
checked: boolean | null;
|
|
14280
|
+
key: string;
|
|
14281
|
+
value: string;
|
|
14282
|
+
}[] | null;
|
|
14283
|
+
storeId: string;
|
|
14284
|
+
originalPrice?: string | null | undefined;
|
|
14285
|
+
} & {
|
|
14286
|
+
originalPrice: string;
|
|
14287
|
+
};
|
|
14288
|
+
}[];
|
|
14289
|
+
setProduct: {
|
|
14290
|
+
selectionCount: number;
|
|
14291
|
+
allowDuplicates: boolean;
|
|
14292
|
+
discountPercentage: string;
|
|
14293
|
+
} | null;
|
|
14294
|
+
seo: {
|
|
14295
|
+
title?: string | null | undefined;
|
|
14296
|
+
description?: string | null | undefined;
|
|
14297
|
+
canonical?: string | null | undefined;
|
|
14298
|
+
} | null;
|
|
14299
|
+
stripeTaxCode: string | null;
|
|
14300
|
+
active?: boolean | null | undefined;
|
|
14301
|
+
};
|
|
11708
14302
|
createdAt: string;
|
|
14303
|
+
productId: string;
|
|
11709
14304
|
updatedAt: string;
|
|
11710
|
-
|
|
11711
|
-
|
|
11712
|
-
|
|
11713
|
-
|
|
11714
|
-
|
|
11715
|
-
|
|
14305
|
+
combinations: {
|
|
14306
|
+
createdAt: string;
|
|
14307
|
+
updatedAt: string;
|
|
14308
|
+
productVariantId: string;
|
|
14309
|
+
variantValueId: string;
|
|
14310
|
+
variantValue: {
|
|
11716
14311
|
id: string;
|
|
11717
|
-
|
|
11718
|
-
|
|
11719
|
-
|
|
11720
|
-
|
|
14312
|
+
value: string;
|
|
14313
|
+
variantType: {
|
|
14314
|
+
id: string;
|
|
14315
|
+
label: string;
|
|
14316
|
+
productId?: string | null | undefined;
|
|
14317
|
+
createdAt?: string | null | undefined;
|
|
14318
|
+
updatedAt?: string | null | undefined;
|
|
14319
|
+
};
|
|
14320
|
+
variantTypeId?: string | null | undefined;
|
|
11721
14321
|
};
|
|
11722
|
-
|
|
11723
|
-
|
|
11724
|
-
|
|
11725
|
-
|
|
11726
|
-
|
|
11727
|
-
|
|
11728
|
-
|
|
11729
|
-
|
|
11730
|
-
|
|
11731
|
-
|
|
11732
|
-
|
|
11733
|
-
originalPrice: string;
|
|
14322
|
+
}[];
|
|
14323
|
+
attributes: {
|
|
14324
|
+
checked: boolean | null;
|
|
14325
|
+
key: string;
|
|
14326
|
+
value: string;
|
|
14327
|
+
}[] | null;
|
|
14328
|
+
storeId: string;
|
|
14329
|
+
originalPrice?: string | null | undefined;
|
|
14330
|
+
} & {
|
|
14331
|
+
originalPrice: string;
|
|
14332
|
+
}), "calculatedPrice" | "originalPrice" | "prePromotionPrice" | "omnibusPrice"> as `${K}Gross`]: string | null;
|
|
11734
14333
|
};
|
|
11735
14334
|
productVariantId: string;
|
|
11736
14335
|
preVolumePricingPrice: string | null;
|
|
@@ -11749,6 +14348,20 @@ type APIOrderGetByIdResult = Omit<{
|
|
|
11749
14348
|
storeId: string;
|
|
11750
14349
|
updatedAt: string;
|
|
11751
14350
|
} | null;
|
|
14351
|
+
rollingCycle: {
|
|
14352
|
+
id: string;
|
|
14353
|
+
title: string;
|
|
14354
|
+
startsAt: string;
|
|
14355
|
+
items: {
|
|
14356
|
+
productVariantId: string;
|
|
14357
|
+
productId: string;
|
|
14358
|
+
name: string;
|
|
14359
|
+
variantLabel: string | null;
|
|
14360
|
+
sku: string | null;
|
|
14361
|
+
image: string | null;
|
|
14362
|
+
quantity: number;
|
|
14363
|
+
}[];
|
|
14364
|
+
} | null;
|
|
11752
14365
|
slotId: string | null;
|
|
11753
14366
|
attendees: {
|
|
11754
14367
|
name: string;
|
|
@@ -11840,6 +14453,11 @@ type APIOrderGetByIdResult = Omit<{
|
|
|
11840
14453
|
shippingAddressId: string | null;
|
|
11841
14454
|
stripePaymentIntentId: string | null;
|
|
11842
14455
|
checkoutSessionId: string | null;
|
|
14456
|
+
stripeInvoice: {
|
|
14457
|
+
id: string;
|
|
14458
|
+
amountPaid: number;
|
|
14459
|
+
currency: string;
|
|
14460
|
+
} | null;
|
|
11843
14461
|
customerId: string | null;
|
|
11844
14462
|
customer: {
|
|
11845
14463
|
id: string;
|
|
@@ -11939,7 +14557,6 @@ type APIOrderGetByIdResult = Omit<{
|
|
|
11939
14557
|
type: "general" | "newsletter";
|
|
11940
14558
|
}[] | null;
|
|
11941
14559
|
};
|
|
11942
|
-
}, "attribution"> & {
|
|
11943
14560
|
trackingNumber: string | null;
|
|
11944
14561
|
shipments: APIShipment[];
|
|
11945
14562
|
};
|
|
@@ -12253,6 +14870,7 @@ type APICollectionGetByIdResult = ({
|
|
|
12253
14870
|
summary: string | null;
|
|
12254
14871
|
images: string[];
|
|
12255
14872
|
badge: unknown;
|
|
14873
|
+
subscriptionMode: "optional" | "only" | "rolling";
|
|
12256
14874
|
bundleDiscountPercentage: string | null;
|
|
12257
14875
|
bundlePriceMode: "fixed" | "amount" | "percent";
|
|
12258
14876
|
bundleFixedPriceAmount: string | null;
|
|
@@ -12316,6 +14934,7 @@ type APICollectionGetByIdResult = ({
|
|
|
12316
14934
|
summary: string | null;
|
|
12317
14935
|
images: string[];
|
|
12318
14936
|
badge: unknown;
|
|
14937
|
+
subscriptionMode: "optional" | "only" | "rolling";
|
|
12319
14938
|
bundleDiscountPercentage: string | null;
|
|
12320
14939
|
bundlePriceMode: "fixed" | "amount" | "percent";
|
|
12321
14940
|
bundleFixedPriceAmount: string | null;
|
|
@@ -13329,6 +15948,7 @@ type APICollectionUpdateResult = {
|
|
|
13329
15948
|
summary: string | null;
|
|
13330
15949
|
images: string[];
|
|
13331
15950
|
badge: unknown;
|
|
15951
|
+
subscriptionMode: "optional" | "only" | "rolling";
|
|
13332
15952
|
bundleDiscountPercentage: string | null;
|
|
13333
15953
|
bundlePriceMode: "fixed" | "amount" | "percent";
|
|
13334
15954
|
bundleFixedPriceAmount: string | null;
|