commerce-kit 0.65.0 → 0.67.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +98 -1
- package/dist/api-types.d.ts +614 -1
- package/dist/index.d.ts +63 -8
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/uploads.d.ts +54 -0
- package/dist/uploads.js +23 -0
- package/dist/uploads.js.map +1 -0
- package/package.json +7 -1
package/dist/api-types.d.ts
CHANGED
|
@@ -2902,6 +2902,9 @@ type APIProductsBrowseQueryParams = {
|
|
|
2902
2902
|
orderDirection?: "asc" | "desc" | undefined;
|
|
2903
2903
|
currency?: string | undefined;
|
|
2904
2904
|
lang?: string | undefined;
|
|
2905
|
+
filter?: string | undefined;
|
|
2906
|
+
include?: "metafields" | undefined;
|
|
2907
|
+
metafields?: "all" | "public" | undefined;
|
|
2905
2908
|
};
|
|
2906
2909
|
type APIProductFiltersResult = {
|
|
2907
2910
|
priceBounds: {
|
|
@@ -2924,6 +2927,26 @@ type APIProductFiltersResult = {
|
|
|
2924
2927
|
name: string;
|
|
2925
2928
|
slug: string;
|
|
2926
2929
|
}[];
|
|
2930
|
+
metafields?: {
|
|
2931
|
+
field: string;
|
|
2932
|
+
ownerType: "variant" | "product";
|
|
2933
|
+
namespace: string;
|
|
2934
|
+
key: string;
|
|
2935
|
+
name: string;
|
|
2936
|
+
type: "boolean" | "date" | "integer" | "decimal" | "url" | "color" | "single_line_text" | "multi_line_text" | "rich_text" | "date_time" | "measurement" | "choice" | "list_single_line_text" | "list_choice";
|
|
2937
|
+
unit?: "in" | "mm" | "cm" | "m" | "ft" | "mg" | "g" | "kg" | "oz" | "lb" | "ml" | "cl" | "l" | "fl_oz" | undefined;
|
|
2938
|
+
options?: {
|
|
2939
|
+
key: string;
|
|
2940
|
+
label: string;
|
|
2941
|
+
}[] | undefined;
|
|
2942
|
+
range?: {
|
|
2943
|
+
min: string;
|
|
2944
|
+
max: string;
|
|
2945
|
+
} | undefined;
|
|
2946
|
+
}[] | undefined;
|
|
2947
|
+
};
|
|
2948
|
+
type APIProductFiltersQueryParams = {
|
|
2949
|
+
lang?: string | undefined;
|
|
2927
2950
|
};
|
|
2928
2951
|
type APIProductGetByIdResult = {
|
|
2929
2952
|
id: string;
|
|
@@ -4154,6 +4177,7 @@ type APIProductGetByIdParams = {
|
|
|
4154
4177
|
type APIProductGetByIdQueryParams = {
|
|
4155
4178
|
lang?: string;
|
|
4156
4179
|
currency?: string;
|
|
4180
|
+
metafields?: "public" | "all";
|
|
4157
4181
|
};
|
|
4158
4182
|
type APICartGetResult = {
|
|
4159
4183
|
id: string;
|
|
@@ -4611,6 +4635,12 @@ type APICartGetResult = {
|
|
|
4611
4635
|
name: string;
|
|
4612
4636
|
email: string | null;
|
|
4613
4637
|
}[] | null;
|
|
4638
|
+
properties: {
|
|
4639
|
+
key: string;
|
|
4640
|
+
type: "text" | "file";
|
|
4641
|
+
value: string;
|
|
4642
|
+
label?: string | undefined;
|
|
4643
|
+
}[] | null;
|
|
4614
4644
|
subscriptionPlan: {
|
|
4615
4645
|
interval: number;
|
|
4616
4646
|
id: string;
|
|
@@ -5395,6 +5425,12 @@ type APICartCreateBody = {
|
|
|
5395
5425
|
groupId: string;
|
|
5396
5426
|
quantity: number;
|
|
5397
5427
|
}[] | undefined;
|
|
5428
|
+
properties?: {
|
|
5429
|
+
key: string;
|
|
5430
|
+
type: "text" | "file";
|
|
5431
|
+
value: string;
|
|
5432
|
+
label?: string | undefined;
|
|
5433
|
+
}[] | undefined;
|
|
5398
5434
|
};
|
|
5399
5435
|
type APICartCreateResult = {
|
|
5400
5436
|
id: string;
|
|
@@ -5852,6 +5888,12 @@ type APICartCreateResult = {
|
|
|
5852
5888
|
name: string;
|
|
5853
5889
|
email: string | null;
|
|
5854
5890
|
}[] | null;
|
|
5891
|
+
properties: {
|
|
5892
|
+
key: string;
|
|
5893
|
+
type: "text" | "file";
|
|
5894
|
+
value: string;
|
|
5895
|
+
label?: string | undefined;
|
|
5896
|
+
}[] | null;
|
|
5855
5897
|
subscriptionPlan: {
|
|
5856
5898
|
interval: number;
|
|
5857
5899
|
id: string;
|
|
@@ -7077,6 +7119,12 @@ type APICartRemoveItemResult = {
|
|
|
7077
7119
|
name: string;
|
|
7078
7120
|
email: string | null;
|
|
7079
7121
|
}[] | null;
|
|
7122
|
+
properties: {
|
|
7123
|
+
key: string;
|
|
7124
|
+
type: "text" | "file";
|
|
7125
|
+
value: string;
|
|
7126
|
+
label?: string | undefined;
|
|
7127
|
+
}[] | null;
|
|
7080
7128
|
subscriptionPlan: {
|
|
7081
7129
|
interval: number;
|
|
7082
7130
|
id: string;
|
|
@@ -7848,6 +7896,7 @@ type APICartRemoveItemResult = {
|
|
|
7848
7896
|
} | null | undefined;
|
|
7849
7897
|
type APICartRemoveItemQueryParams = {
|
|
7850
7898
|
subscriptionPlanId?: string | undefined;
|
|
7899
|
+
lineItemId?: string | undefined;
|
|
7851
7900
|
};
|
|
7852
7901
|
type APICartCouponApplyBody = {
|
|
7853
7902
|
code: string;
|
|
@@ -8308,6 +8357,12 @@ type APICartCouponApplyResult = {
|
|
|
8308
8357
|
name: string;
|
|
8309
8358
|
email: string | null;
|
|
8310
8359
|
}[] | null;
|
|
8360
|
+
properties: {
|
|
8361
|
+
key: string;
|
|
8362
|
+
type: "text" | "file";
|
|
8363
|
+
value: string;
|
|
8364
|
+
label?: string | undefined;
|
|
8365
|
+
}[] | null;
|
|
8311
8366
|
subscriptionPlan: {
|
|
8312
8367
|
interval: number;
|
|
8313
8368
|
id: string;
|
|
@@ -9341,6 +9396,7 @@ type APIOrdersBrowseResult = Omit<{
|
|
|
9341
9396
|
carrier: "gls";
|
|
9342
9397
|
name: string;
|
|
9343
9398
|
service: "gls";
|
|
9399
|
+
defaultServices?: ("s10" | "s12" | "sat")[] | undefined;
|
|
9344
9400
|
} | null;
|
|
9345
9401
|
deliverySlots: unknown;
|
|
9346
9402
|
shippingTaxRate: {
|
|
@@ -9630,6 +9686,12 @@ type APIOrdersBrowseResult = Omit<{
|
|
|
9630
9686
|
dietary: string | null;
|
|
9631
9687
|
notes: string | null;
|
|
9632
9688
|
}[] | null;
|
|
9689
|
+
properties: {
|
|
9690
|
+
key: string;
|
|
9691
|
+
type: "text" | "file";
|
|
9692
|
+
value: string;
|
|
9693
|
+
label?: string | undefined;
|
|
9694
|
+
}[] | null;
|
|
9633
9695
|
setSelections: {
|
|
9634
9696
|
id: string;
|
|
9635
9697
|
lineItemId: string;
|
|
@@ -9886,6 +9948,7 @@ type APIOrdersBrowseResult = Omit<{
|
|
|
9886
9948
|
type: "fixed";
|
|
9887
9949
|
dueAt: string;
|
|
9888
9950
|
} | null | undefined;
|
|
9951
|
+
paymentCollectedAt?: string | null | undefined;
|
|
9889
9952
|
note?: string | null | undefined;
|
|
9890
9953
|
poNumber?: string | null | undefined;
|
|
9891
9954
|
};
|
|
@@ -9899,6 +9962,7 @@ type APIOrdersBrowseResult = Omit<{
|
|
|
9899
9962
|
campaign: string | null;
|
|
9900
9963
|
referrerHost: string | null;
|
|
9901
9964
|
ts: number;
|
|
9965
|
+
clickIdType?: "gclid" | "gbraid" | "wbraid" | "msclkid" | "ttclid" | "fbclid" | undefined;
|
|
9902
9966
|
};
|
|
9903
9967
|
lastTouch: {
|
|
9904
9968
|
source: string | null;
|
|
@@ -9906,6 +9970,7 @@ type APIOrdersBrowseResult = Omit<{
|
|
|
9906
9970
|
campaign: string | null;
|
|
9907
9971
|
referrerHost: string | null;
|
|
9908
9972
|
ts: number;
|
|
9973
|
+
clickIdType?: "gclid" | "gbraid" | "wbraid" | "msclkid" | "ttclid" | "fbclid" | undefined;
|
|
9909
9974
|
};
|
|
9910
9975
|
} | null;
|
|
9911
9976
|
externalId: string | null;
|
|
@@ -9995,6 +10060,7 @@ type APIOrdersBrowseResult = Omit<{
|
|
|
9995
10060
|
carrier: "gls";
|
|
9996
10061
|
name: string;
|
|
9997
10062
|
service: "gls";
|
|
10063
|
+
defaultServices?: ("s10" | "s12" | "sat")[] | undefined;
|
|
9998
10064
|
} | null;
|
|
9999
10065
|
deliverySlots: unknown;
|
|
10000
10066
|
shippingTaxRate: {
|
|
@@ -10284,6 +10350,12 @@ type APIOrdersBrowseResult = Omit<{
|
|
|
10284
10350
|
dietary: string | null;
|
|
10285
10351
|
notes: string | null;
|
|
10286
10352
|
}[] | null;
|
|
10353
|
+
properties: {
|
|
10354
|
+
key: string;
|
|
10355
|
+
type: "text" | "file";
|
|
10356
|
+
value: string;
|
|
10357
|
+
label?: string | undefined;
|
|
10358
|
+
}[] | null;
|
|
10287
10359
|
setSelections: {
|
|
10288
10360
|
id: string;
|
|
10289
10361
|
lineItemId: string;
|
|
@@ -10540,6 +10612,7 @@ type APIOrdersBrowseResult = Omit<{
|
|
|
10540
10612
|
type: "fixed";
|
|
10541
10613
|
dueAt: string;
|
|
10542
10614
|
} | null | undefined;
|
|
10615
|
+
paymentCollectedAt?: string | null | undefined;
|
|
10543
10616
|
note?: string | null | undefined;
|
|
10544
10617
|
poNumber?: string | null | undefined;
|
|
10545
10618
|
};
|
|
@@ -10591,6 +10664,7 @@ type APIOrdersBrowseResult = Omit<{
|
|
|
10591
10664
|
carrier: "gls";
|
|
10592
10665
|
name: string;
|
|
10593
10666
|
service: "gls";
|
|
10667
|
+
defaultServices?: ("s10" | "s12" | "sat")[] | undefined;
|
|
10594
10668
|
} | null;
|
|
10595
10669
|
deliverySlots: unknown;
|
|
10596
10670
|
shippingTaxRate: {
|
|
@@ -10880,6 +10954,12 @@ type APIOrdersBrowseResult = Omit<{
|
|
|
10880
10954
|
dietary: string | null;
|
|
10881
10955
|
notes: string | null;
|
|
10882
10956
|
}[] | null;
|
|
10957
|
+
properties: {
|
|
10958
|
+
key: string;
|
|
10959
|
+
type: "text" | "file";
|
|
10960
|
+
value: string;
|
|
10961
|
+
label?: string | undefined;
|
|
10962
|
+
}[] | null;
|
|
10883
10963
|
setSelections: {
|
|
10884
10964
|
id: string;
|
|
10885
10965
|
lineItemId: string;
|
|
@@ -11136,6 +11216,7 @@ type APIOrdersBrowseResult = Omit<{
|
|
|
11136
11216
|
type: "fixed";
|
|
11137
11217
|
dueAt: string;
|
|
11138
11218
|
} | null | undefined;
|
|
11219
|
+
paymentCollectedAt?: string | null | undefined;
|
|
11139
11220
|
note?: string | null | undefined;
|
|
11140
11221
|
poNumber?: string | null | undefined;
|
|
11141
11222
|
};
|
|
@@ -11149,6 +11230,7 @@ type APIOrdersBrowseResult = Omit<{
|
|
|
11149
11230
|
campaign: string | null;
|
|
11150
11231
|
referrerHost: string | null;
|
|
11151
11232
|
ts: number;
|
|
11233
|
+
clickIdType?: "gclid" | "gbraid" | "wbraid" | "msclkid" | "ttclid" | "fbclid" | undefined;
|
|
11152
11234
|
};
|
|
11153
11235
|
lastTouch: {
|
|
11154
11236
|
source: string | null;
|
|
@@ -11156,6 +11238,7 @@ type APIOrdersBrowseResult = Omit<{
|
|
|
11156
11238
|
campaign: string | null;
|
|
11157
11239
|
referrerHost: string | null;
|
|
11158
11240
|
ts: number;
|
|
11241
|
+
clickIdType?: "gclid" | "gbraid" | "wbraid" | "msclkid" | "ttclid" | "fbclid" | undefined;
|
|
11159
11242
|
};
|
|
11160
11243
|
} | null;
|
|
11161
11244
|
externalId: string | null;
|
|
@@ -11245,6 +11328,7 @@ type APIOrdersBrowseResult = Omit<{
|
|
|
11245
11328
|
carrier: "gls";
|
|
11246
11329
|
name: string;
|
|
11247
11330
|
service: "gls";
|
|
11331
|
+
defaultServices?: ("s10" | "s12" | "sat")[] | undefined;
|
|
11248
11332
|
} | null;
|
|
11249
11333
|
deliverySlots: unknown;
|
|
11250
11334
|
shippingTaxRate: {
|
|
@@ -11534,6 +11618,12 @@ type APIOrdersBrowseResult = Omit<{
|
|
|
11534
11618
|
dietary: string | null;
|
|
11535
11619
|
notes: string | null;
|
|
11536
11620
|
}[] | null;
|
|
11621
|
+
properties: {
|
|
11622
|
+
key: string;
|
|
11623
|
+
type: "text" | "file";
|
|
11624
|
+
value: string;
|
|
11625
|
+
label?: string | undefined;
|
|
11626
|
+
}[] | null;
|
|
11537
11627
|
setSelections: {
|
|
11538
11628
|
id: string;
|
|
11539
11629
|
lineItemId: string;
|
|
@@ -11790,6 +11880,7 @@ type APIOrdersBrowseResult = Omit<{
|
|
|
11790
11880
|
type: "fixed";
|
|
11791
11881
|
dueAt: string;
|
|
11792
11882
|
} | null | undefined;
|
|
11883
|
+
paymentCollectedAt?: string | null | undefined;
|
|
11793
11884
|
note?: string | null | undefined;
|
|
11794
11885
|
poNumber?: string | null | undefined;
|
|
11795
11886
|
};
|
|
@@ -11833,6 +11924,7 @@ type APIOrdersBrowseResult = Omit<{
|
|
|
11833
11924
|
carrier: "gls";
|
|
11834
11925
|
name: string;
|
|
11835
11926
|
service: "gls";
|
|
11927
|
+
defaultServices?: ("s10" | "s12" | "sat")[] | undefined;
|
|
11836
11928
|
} | null;
|
|
11837
11929
|
deliverySlots: unknown;
|
|
11838
11930
|
shippingTaxRate: {
|
|
@@ -12787,6 +12879,12 @@ type APIOrdersBrowseResult = Omit<{
|
|
|
12787
12879
|
dietary: string | null;
|
|
12788
12880
|
notes: string | null;
|
|
12789
12881
|
}[] | null;
|
|
12882
|
+
properties: {
|
|
12883
|
+
key: string;
|
|
12884
|
+
type: "text" | "file";
|
|
12885
|
+
value: string;
|
|
12886
|
+
label?: string | undefined;
|
|
12887
|
+
}[] | null;
|
|
12790
12888
|
setSelections: {
|
|
12791
12889
|
id: string;
|
|
12792
12890
|
lineItemId: string;
|
|
@@ -13043,6 +13141,7 @@ type APIOrdersBrowseResult = Omit<{
|
|
|
13043
13141
|
type: "fixed";
|
|
13044
13142
|
dueAt: string;
|
|
13045
13143
|
} | null | undefined;
|
|
13144
|
+
paymentCollectedAt?: string | null | undefined;
|
|
13046
13145
|
note?: string | null | undefined;
|
|
13047
13146
|
poNumber?: string | null | undefined;
|
|
13048
13147
|
};
|
|
@@ -13052,6 +13151,7 @@ type APIOrdersBrowseResult = Omit<{
|
|
|
13052
13151
|
type APIOrdersBrowseQueryParams = {
|
|
13053
13152
|
offset?: number | undefined;
|
|
13054
13153
|
limit?: number | undefined;
|
|
13154
|
+
source?: "counter" | "admin" | "storefront" | "baselinker" | "allegro" | "inpost-buy" | "wholesale" | undefined;
|
|
13055
13155
|
};
|
|
13056
13156
|
type APIOrderGetByIdResult = Omit<{
|
|
13057
13157
|
id: string;
|
|
@@ -13070,6 +13170,7 @@ type APIOrderGetByIdResult = Omit<{
|
|
|
13070
13170
|
campaign: string | null;
|
|
13071
13171
|
referrerHost: string | null;
|
|
13072
13172
|
ts: number;
|
|
13173
|
+
clickIdType?: "gclid" | "gbraid" | "wbraid" | "msclkid" | "ttclid" | "fbclid" | undefined;
|
|
13073
13174
|
};
|
|
13074
13175
|
lastTouch: {
|
|
13075
13176
|
source: string | null;
|
|
@@ -13077,6 +13178,7 @@ type APIOrderGetByIdResult = Omit<{
|
|
|
13077
13178
|
campaign: string | null;
|
|
13078
13179
|
referrerHost: string | null;
|
|
13079
13180
|
ts: number;
|
|
13181
|
+
clickIdType?: "gclid" | "gbraid" | "wbraid" | "msclkid" | "ttclid" | "fbclid" | undefined;
|
|
13080
13182
|
};
|
|
13081
13183
|
} | null;
|
|
13082
13184
|
lookup: number;
|
|
@@ -13116,6 +13218,7 @@ type APIOrderGetByIdResult = Omit<{
|
|
|
13116
13218
|
carrier: "gls";
|
|
13117
13219
|
name: string;
|
|
13118
13220
|
service: "gls";
|
|
13221
|
+
defaultServices?: ("s10" | "s12" | "sat")[] | undefined;
|
|
13119
13222
|
} | null;
|
|
13120
13223
|
deliverySlots: unknown;
|
|
13121
13224
|
shippingTaxRate: {
|
|
@@ -13405,6 +13508,12 @@ type APIOrderGetByIdResult = Omit<{
|
|
|
13405
13508
|
dietary: string | null;
|
|
13406
13509
|
notes: string | null;
|
|
13407
13510
|
}[] | null;
|
|
13511
|
+
properties: {
|
|
13512
|
+
key: string;
|
|
13513
|
+
type: "text" | "file";
|
|
13514
|
+
value: string;
|
|
13515
|
+
label?: string | undefined;
|
|
13516
|
+
}[] | null;
|
|
13408
13517
|
setSelections: {
|
|
13409
13518
|
id: string;
|
|
13410
13519
|
lineItemId: string;
|
|
@@ -13661,6 +13770,7 @@ type APIOrderGetByIdResult = Omit<{
|
|
|
13661
13770
|
type: "fixed";
|
|
13662
13771
|
dueAt: string;
|
|
13663
13772
|
} | null | undefined;
|
|
13773
|
+
paymentCollectedAt?: string | null | undefined;
|
|
13664
13774
|
note?: string | null | undefined;
|
|
13665
13775
|
poNumber?: string | null | undefined;
|
|
13666
13776
|
};
|
|
@@ -13782,6 +13892,7 @@ type APIOrderGetByIdResult = Omit<{
|
|
|
13782
13892
|
carrier: "gls";
|
|
13783
13893
|
name: string;
|
|
13784
13894
|
service: "gls";
|
|
13895
|
+
defaultServices?: ("s10" | "s12" | "sat")[] | undefined;
|
|
13785
13896
|
} | null;
|
|
13786
13897
|
deliverySlots: unknown;
|
|
13787
13898
|
shippingTaxRate: {
|
|
@@ -14071,6 +14182,12 @@ type APIOrderGetByIdResult = Omit<{
|
|
|
14071
14182
|
dietary: string | null;
|
|
14072
14183
|
notes: string | null;
|
|
14073
14184
|
}[] | null;
|
|
14185
|
+
properties: {
|
|
14186
|
+
key: string;
|
|
14187
|
+
type: "text" | "file";
|
|
14188
|
+
value: string;
|
|
14189
|
+
label?: string | undefined;
|
|
14190
|
+
}[] | null;
|
|
14074
14191
|
setSelections: {
|
|
14075
14192
|
id: string;
|
|
14076
14193
|
lineItemId: string;
|
|
@@ -14327,6 +14444,7 @@ type APIOrderGetByIdResult = Omit<{
|
|
|
14327
14444
|
type: "fixed";
|
|
14328
14445
|
dueAt: string;
|
|
14329
14446
|
} | null | undefined;
|
|
14447
|
+
paymentCollectedAt?: string | null | undefined;
|
|
14330
14448
|
note?: string | null | undefined;
|
|
14331
14449
|
poNumber?: string | null | undefined;
|
|
14332
14450
|
};
|
|
@@ -14366,6 +14484,7 @@ type APIOrderGetByIdResult = Omit<{
|
|
|
14366
14484
|
carrier: "gls";
|
|
14367
14485
|
name: string;
|
|
14368
14486
|
service: "gls";
|
|
14487
|
+
defaultServices?: ("s10" | "s12" | "sat")[] | undefined;
|
|
14369
14488
|
} | null;
|
|
14370
14489
|
deliverySlots: unknown;
|
|
14371
14490
|
shippingTaxRate: {
|
|
@@ -15320,6 +15439,12 @@ type APIOrderGetByIdResult = Omit<{
|
|
|
15320
15439
|
dietary: string | null;
|
|
15321
15440
|
notes: string | null;
|
|
15322
15441
|
}[] | null;
|
|
15442
|
+
properties: {
|
|
15443
|
+
key: string;
|
|
15444
|
+
type: "text" | "file";
|
|
15445
|
+
value: string;
|
|
15446
|
+
label?: string | undefined;
|
|
15447
|
+
}[] | null;
|
|
15323
15448
|
setSelections: {
|
|
15324
15449
|
id: string;
|
|
15325
15450
|
lineItemId: string;
|
|
@@ -15576,6 +15701,7 @@ type APIOrderGetByIdResult = Omit<{
|
|
|
15576
15701
|
type: "fixed";
|
|
15577
15702
|
dueAt: string;
|
|
15578
15703
|
} | null | undefined;
|
|
15704
|
+
paymentCollectedAt?: string | null | undefined;
|
|
15579
15705
|
note?: string | null | undefined;
|
|
15580
15706
|
poNumber?: string | null | undefined;
|
|
15581
15707
|
};
|
|
@@ -15799,6 +15925,20 @@ type APICollectionsBrowseResult = Omit<{
|
|
|
15799
15925
|
slug: string;
|
|
15800
15926
|
active: boolean;
|
|
15801
15927
|
description: JSONContent | null;
|
|
15928
|
+
metafieldRules: ({
|
|
15929
|
+
field: string;
|
|
15930
|
+
op: "range";
|
|
15931
|
+
min?: string | undefined;
|
|
15932
|
+
max?: string | undefined;
|
|
15933
|
+
} | {
|
|
15934
|
+
field: string;
|
|
15935
|
+
op: "in";
|
|
15936
|
+
values: string[];
|
|
15937
|
+
} | {
|
|
15938
|
+
field: string;
|
|
15939
|
+
op: "is";
|
|
15940
|
+
value: boolean;
|
|
15941
|
+
})[] | null;
|
|
15802
15942
|
group: string | null;
|
|
15803
15943
|
productCollections: {
|
|
15804
15944
|
productId: string;
|
|
@@ -15820,6 +15960,20 @@ type APICollectionsBrowseResult = Omit<{
|
|
|
15820
15960
|
slug: string;
|
|
15821
15961
|
active: boolean;
|
|
15822
15962
|
description: JSONContent | null;
|
|
15963
|
+
metafieldRules: ({
|
|
15964
|
+
field: string;
|
|
15965
|
+
op: "range";
|
|
15966
|
+
min?: string | undefined;
|
|
15967
|
+
max?: string | undefined;
|
|
15968
|
+
} | {
|
|
15969
|
+
field: string;
|
|
15970
|
+
op: "in";
|
|
15971
|
+
values: string[];
|
|
15972
|
+
} | {
|
|
15973
|
+
field: string;
|
|
15974
|
+
op: "is";
|
|
15975
|
+
value: boolean;
|
|
15976
|
+
})[] | null;
|
|
15823
15977
|
group: string | null;
|
|
15824
15978
|
productCollections: {
|
|
15825
15979
|
productId: string;
|
|
@@ -15873,6 +16027,20 @@ type APICollectionGetByIdResult = ({
|
|
|
15873
16027
|
type: "newest";
|
|
15874
16028
|
days?: number | null | undefined;
|
|
15875
16029
|
};
|
|
16030
|
+
metafieldRules: ({
|
|
16031
|
+
field: string;
|
|
16032
|
+
op: "range";
|
|
16033
|
+
min?: string | undefined;
|
|
16034
|
+
max?: string | undefined;
|
|
16035
|
+
} | {
|
|
16036
|
+
field: string;
|
|
16037
|
+
op: "in";
|
|
16038
|
+
values: string[];
|
|
16039
|
+
} | {
|
|
16040
|
+
field: string;
|
|
16041
|
+
op: "is";
|
|
16042
|
+
value: boolean;
|
|
16043
|
+
})[] | null;
|
|
15876
16044
|
group: string | null;
|
|
15877
16045
|
productCollections: {
|
|
15878
16046
|
position: string | null;
|
|
@@ -15937,6 +16105,20 @@ type APICollectionGetByIdResult = ({
|
|
|
15937
16105
|
type: "newest";
|
|
15938
16106
|
days?: number | null | undefined;
|
|
15939
16107
|
};
|
|
16108
|
+
metafieldRules: ({
|
|
16109
|
+
field: string;
|
|
16110
|
+
op: "range";
|
|
16111
|
+
min?: string | undefined;
|
|
16112
|
+
max?: string | undefined;
|
|
16113
|
+
} | {
|
|
16114
|
+
field: string;
|
|
16115
|
+
op: "in";
|
|
16116
|
+
values: string[];
|
|
16117
|
+
} | {
|
|
16118
|
+
field: string;
|
|
16119
|
+
op: "is";
|
|
16120
|
+
value: boolean;
|
|
16121
|
+
})[] | null;
|
|
15940
16122
|
group: string | null;
|
|
15941
16123
|
productCollections: {
|
|
15942
16124
|
position: string | null;
|
|
@@ -16065,6 +16247,8 @@ type APIMeStore = {
|
|
|
16065
16247
|
showPolicyLinks?: boolean | null | undefined;
|
|
16066
16248
|
hideExpressWallets?: boolean | null | undefined;
|
|
16067
16249
|
couponNote?: string | null | undefined;
|
|
16250
|
+
showCustomsNotice?: boolean | null | undefined;
|
|
16251
|
+
customsNotice?: string | null | undefined;
|
|
16068
16252
|
fontFamily?: "default" | "roboto" | "poppins" | "inter" | "merriweather" | "montserrat" | "nunito" | "inconsolata" | "ibmPlexSans" | "cardo" | "spaceMono" | "buenard" | "titanOne" | "bartok" | "robotoSlab" | "playwritePl" | "jetBrainsMono" | null | undefined;
|
|
16069
16253
|
colors?: {
|
|
16070
16254
|
buttonBackground?: string | null | undefined;
|
|
@@ -16113,6 +16297,7 @@ type APIMeStore = {
|
|
|
16113
16297
|
serialNumbers: boolean;
|
|
16114
16298
|
wholesale: boolean;
|
|
16115
16299
|
stockPricing: boolean;
|
|
16300
|
+
lineItemUploads: boolean;
|
|
16116
16301
|
} | null;
|
|
16117
16302
|
defaultLanguage: "en-US" | "fr-FR" | "it-IT" | "vi-VN" | "pl-PL" | "es-ES" | "de-DE" | null | undefined;
|
|
16118
16303
|
enabledLanguages: {
|
|
@@ -16570,6 +16755,7 @@ type APIVariantUpdateBody = {
|
|
|
16570
16755
|
value: string;
|
|
16571
16756
|
checked?: boolean | null;
|
|
16572
16757
|
}>;
|
|
16758
|
+
metafields?: APIMetafieldValueInput[];
|
|
16573
16759
|
};
|
|
16574
16760
|
type APIVariantUpdateResult = {
|
|
16575
16761
|
id: string;
|
|
@@ -16596,6 +16782,7 @@ type APIVariantCreateBody = {
|
|
|
16596
16782
|
value: string;
|
|
16597
16783
|
checked?: boolean | null;
|
|
16598
16784
|
}>;
|
|
16785
|
+
metafields?: APIMetafieldValueInput[];
|
|
16599
16786
|
};
|
|
16600
16787
|
type APIVariantCreateResult = {
|
|
16601
16788
|
id: string;
|
|
@@ -16651,6 +16838,7 @@ type APIProductCreateBody = {
|
|
|
16651
16838
|
images?: string[];
|
|
16652
16839
|
category?: string;
|
|
16653
16840
|
quantity?: number;
|
|
16841
|
+
metafields?: APIMetafieldValueInput[];
|
|
16654
16842
|
variants?: Array<{
|
|
16655
16843
|
options: Record<string, string>;
|
|
16656
16844
|
sku?: string;
|
|
@@ -16670,6 +16858,7 @@ type APIProductCreateBody = {
|
|
|
16670
16858
|
value: string;
|
|
16671
16859
|
checked?: boolean | null;
|
|
16672
16860
|
}>;
|
|
16861
|
+
metafields?: APIMetafieldValueInput[];
|
|
16673
16862
|
}>;
|
|
16674
16863
|
};
|
|
16675
16864
|
type APIProductCreateResult = {
|
|
@@ -16695,6 +16884,7 @@ type APIProductUpdateBody = {
|
|
|
16695
16884
|
content?: Record<string, unknown>;
|
|
16696
16885
|
images?: string[];
|
|
16697
16886
|
status?: "active" | "draft";
|
|
16887
|
+
metafields?: APIMetafieldValueInput[];
|
|
16698
16888
|
};
|
|
16699
16889
|
type APIProductUpdateQueryParams = {
|
|
16700
16890
|
lang?: string;
|
|
@@ -16881,6 +17071,20 @@ type APICollectionCreateBody = {
|
|
|
16881
17071
|
slug?: string | undefined;
|
|
16882
17072
|
description?: string | undefined;
|
|
16883
17073
|
image?: string | undefined;
|
|
17074
|
+
metafieldRules?: ({
|
|
17075
|
+
field: string;
|
|
17076
|
+
op: "range";
|
|
17077
|
+
min?: string | undefined;
|
|
17078
|
+
max?: string | undefined;
|
|
17079
|
+
} | {
|
|
17080
|
+
field: string;
|
|
17081
|
+
op: "in";
|
|
17082
|
+
values: string[];
|
|
17083
|
+
} | {
|
|
17084
|
+
field: string;
|
|
17085
|
+
op: "is";
|
|
17086
|
+
value: boolean;
|
|
17087
|
+
})[] | null | undefined;
|
|
16884
17088
|
group?: string | undefined;
|
|
16885
17089
|
};
|
|
16886
17090
|
type APICollectionCreateResult = {
|
|
@@ -16892,6 +17096,20 @@ type APICollectionCreateResult = {
|
|
|
16892
17096
|
slug: string;
|
|
16893
17097
|
active: boolean;
|
|
16894
17098
|
description: JSONContent | null;
|
|
17099
|
+
metafieldRules: ({
|
|
17100
|
+
field: string;
|
|
17101
|
+
op: "range";
|
|
17102
|
+
min?: string | undefined;
|
|
17103
|
+
max?: string | undefined;
|
|
17104
|
+
} | {
|
|
17105
|
+
field: string;
|
|
17106
|
+
op: "in";
|
|
17107
|
+
values: string[];
|
|
17108
|
+
} | {
|
|
17109
|
+
field: string;
|
|
17110
|
+
op: "is";
|
|
17111
|
+
value: boolean;
|
|
17112
|
+
})[] | null;
|
|
16895
17113
|
group: string | null;
|
|
16896
17114
|
productCollections: {
|
|
16897
17115
|
productId: string;
|
|
@@ -16922,6 +17140,20 @@ type APICollectionUpdateBody = {
|
|
|
16922
17140
|
type: "newest";
|
|
16923
17141
|
days?: number | null | undefined;
|
|
16924
17142
|
} | undefined;
|
|
17143
|
+
metafieldRules?: ({
|
|
17144
|
+
field: string;
|
|
17145
|
+
op: "range";
|
|
17146
|
+
min?: string | undefined;
|
|
17147
|
+
max?: string | undefined;
|
|
17148
|
+
} | {
|
|
17149
|
+
field: string;
|
|
17150
|
+
op: "in";
|
|
17151
|
+
values: string[];
|
|
17152
|
+
} | {
|
|
17153
|
+
field: string;
|
|
17154
|
+
op: "is";
|
|
17155
|
+
value: boolean;
|
|
17156
|
+
})[] | null | undefined;
|
|
16925
17157
|
active?: boolean | undefined;
|
|
16926
17158
|
group?: string | null | undefined;
|
|
16927
17159
|
};
|
|
@@ -16955,6 +17187,20 @@ type APICollectionUpdateResult = {
|
|
|
16955
17187
|
type: "newest";
|
|
16956
17188
|
days?: number | null | undefined;
|
|
16957
17189
|
};
|
|
17190
|
+
metafieldRules: ({
|
|
17191
|
+
field: string;
|
|
17192
|
+
op: "range";
|
|
17193
|
+
min?: string | undefined;
|
|
17194
|
+
max?: string | undefined;
|
|
17195
|
+
} | {
|
|
17196
|
+
field: string;
|
|
17197
|
+
op: "in";
|
|
17198
|
+
values: string[];
|
|
17199
|
+
} | {
|
|
17200
|
+
field: string;
|
|
17201
|
+
op: "is";
|
|
17202
|
+
value: boolean;
|
|
17203
|
+
})[] | null;
|
|
16958
17204
|
group: string | null;
|
|
16959
17205
|
productCollections: {
|
|
16960
17206
|
position: string | null;
|
|
@@ -17642,5 +17888,372 @@ type APIProductBatchResult = {
|
|
|
17642
17888
|
type APICartDeleteResult = {
|
|
17643
17889
|
success: boolean;
|
|
17644
17890
|
};
|
|
17891
|
+
type APIMetafieldValueInput = {
|
|
17892
|
+
key: string;
|
|
17893
|
+
namespace?: string | undefined;
|
|
17894
|
+
value?: unknown;
|
|
17895
|
+
hidden?: boolean | undefined;
|
|
17896
|
+
position?: number | undefined;
|
|
17897
|
+
};
|
|
17898
|
+
type APIMetafieldDefinition = {
|
|
17899
|
+
id: string;
|
|
17900
|
+
ownerType: "variant" | "product";
|
|
17901
|
+
namespace: string;
|
|
17902
|
+
key: string;
|
|
17903
|
+
name: string;
|
|
17904
|
+
description: string | null;
|
|
17905
|
+
type: "boolean" | "date" | "integer" | "decimal" | "url" | "color" | "single_line_text" | "multi_line_text" | "rich_text" | "date_time" | "measurement" | "choice" | "list_single_line_text" | "list_choice";
|
|
17906
|
+
translatable: boolean;
|
|
17907
|
+
storefrontVisible: boolean;
|
|
17908
|
+
filterable: boolean;
|
|
17909
|
+
position: number;
|
|
17910
|
+
options?: {
|
|
17911
|
+
key: string;
|
|
17912
|
+
label: string;
|
|
17913
|
+
archived?: true;
|
|
17914
|
+
}[] | undefined;
|
|
17915
|
+
measurementKind?: "length" | "weight" | "volume" | undefined;
|
|
17916
|
+
unit?: "in" | "mm" | "cm" | "m" | "ft" | "mg" | "g" | "kg" | "oz" | "lb" | "ml" | "cl" | "l" | "fl_oz" | undefined;
|
|
17917
|
+
validations?: {
|
|
17918
|
+
min?: string | undefined;
|
|
17919
|
+
max?: string | undefined;
|
|
17920
|
+
maxLength?: number | undefined;
|
|
17921
|
+
maxItems?: number | undefined;
|
|
17922
|
+
} | undefined;
|
|
17923
|
+
archivedAt: string | null;
|
|
17924
|
+
usage?: {
|
|
17925
|
+
values: number;
|
|
17926
|
+
translations?: number;
|
|
17927
|
+
} | undefined;
|
|
17928
|
+
};
|
|
17929
|
+
type APIMetafieldDefinitionParams = {
|
|
17930
|
+
idOrKey: string;
|
|
17931
|
+
};
|
|
17932
|
+
type APIMetafieldDefinitionsBrowseQueryParams = {
|
|
17933
|
+
ownerType?: "variant" | "product" | undefined;
|
|
17934
|
+
includeArchived?: "true" | "false" | undefined;
|
|
17935
|
+
lang?: string | undefined;
|
|
17936
|
+
metafields?: "all" | "public" | undefined;
|
|
17937
|
+
};
|
|
17938
|
+
type APIMetafieldDefinitionsBrowseResult = {
|
|
17939
|
+
data: APIMetafieldDefinition[];
|
|
17940
|
+
meta: {
|
|
17941
|
+
count: number;
|
|
17942
|
+
};
|
|
17943
|
+
};
|
|
17944
|
+
type APIMetafieldDefinitionGetQueryParams = {
|
|
17945
|
+
lang?: string | undefined;
|
|
17946
|
+
metafields?: "all" | "public" | undefined;
|
|
17947
|
+
};
|
|
17948
|
+
type APIMetafieldDefinitionGetResult = {
|
|
17949
|
+
id: string;
|
|
17950
|
+
ownerType: "variant" | "product";
|
|
17951
|
+
namespace: string;
|
|
17952
|
+
key: string;
|
|
17953
|
+
name: string;
|
|
17954
|
+
description: string | null;
|
|
17955
|
+
type: "boolean" | "date" | "integer" | "decimal" | "url" | "color" | "single_line_text" | "multi_line_text" | "rich_text" | "date_time" | "measurement" | "choice" | "list_single_line_text" | "list_choice";
|
|
17956
|
+
translatable: boolean;
|
|
17957
|
+
storefrontVisible: boolean;
|
|
17958
|
+
filterable: boolean;
|
|
17959
|
+
position: number;
|
|
17960
|
+
options?: {
|
|
17961
|
+
key: string;
|
|
17962
|
+
label: string;
|
|
17963
|
+
archived?: true;
|
|
17964
|
+
}[] | undefined;
|
|
17965
|
+
measurementKind?: "length" | "weight" | "volume" | undefined;
|
|
17966
|
+
unit?: "in" | "mm" | "cm" | "m" | "ft" | "mg" | "g" | "kg" | "oz" | "lb" | "ml" | "cl" | "l" | "fl_oz" | undefined;
|
|
17967
|
+
validations?: {
|
|
17968
|
+
min?: string | undefined;
|
|
17969
|
+
max?: string | undefined;
|
|
17970
|
+
maxLength?: number | undefined;
|
|
17971
|
+
maxItems?: number | undefined;
|
|
17972
|
+
} | undefined;
|
|
17973
|
+
archivedAt: string | null;
|
|
17974
|
+
usage?: {
|
|
17975
|
+
values: number;
|
|
17976
|
+
translations?: number;
|
|
17977
|
+
} | undefined;
|
|
17978
|
+
};
|
|
17979
|
+
type APIMetafieldDefinitionCreateBody = {
|
|
17980
|
+
ownerType: "variant" | "product";
|
|
17981
|
+
name: string;
|
|
17982
|
+
type: "boolean" | "date" | "integer" | "decimal" | "url" | "color" | "single_line_text" | "multi_line_text" | "rich_text" | "date_time" | "measurement" | "choice" | "list_single_line_text" | "list_choice";
|
|
17983
|
+
namespace?: string | undefined;
|
|
17984
|
+
key?: string | undefined;
|
|
17985
|
+
description?: string | null | undefined;
|
|
17986
|
+
translatable?: boolean | undefined;
|
|
17987
|
+
storefrontVisible?: boolean | undefined;
|
|
17988
|
+
filterable?: boolean | undefined;
|
|
17989
|
+
position?: number | undefined;
|
|
17990
|
+
options?: {
|
|
17991
|
+
label: string;
|
|
17992
|
+
key?: string | undefined;
|
|
17993
|
+
archived?: boolean | undefined;
|
|
17994
|
+
}[] | undefined;
|
|
17995
|
+
measurementKind?: "length" | "weight" | "volume" | undefined;
|
|
17996
|
+
unit?: "in" | "mm" | "cm" | "m" | "ft" | "mg" | "g" | "kg" | "oz" | "lb" | "ml" | "cl" | "l" | "fl_oz" | undefined;
|
|
17997
|
+
validations?: {
|
|
17998
|
+
min?: string | undefined;
|
|
17999
|
+
max?: string | undefined;
|
|
18000
|
+
maxLength?: number | undefined;
|
|
18001
|
+
maxItems?: number | undefined;
|
|
18002
|
+
} | undefined;
|
|
18003
|
+
};
|
|
18004
|
+
type APIMetafieldDefinitionCreateResult = {
|
|
18005
|
+
id: string;
|
|
18006
|
+
ownerType: "variant" | "product";
|
|
18007
|
+
namespace: string;
|
|
18008
|
+
key: string;
|
|
18009
|
+
name: string;
|
|
18010
|
+
description: string | null;
|
|
18011
|
+
type: "boolean" | "date" | "integer" | "decimal" | "url" | "color" | "single_line_text" | "multi_line_text" | "rich_text" | "date_time" | "measurement" | "choice" | "list_single_line_text" | "list_choice";
|
|
18012
|
+
translatable: boolean;
|
|
18013
|
+
storefrontVisible: boolean;
|
|
18014
|
+
filterable: boolean;
|
|
18015
|
+
position: number;
|
|
18016
|
+
options?: {
|
|
18017
|
+
key: string;
|
|
18018
|
+
label: string;
|
|
18019
|
+
archived?: true;
|
|
18020
|
+
}[] | undefined;
|
|
18021
|
+
measurementKind?: "length" | "weight" | "volume" | undefined;
|
|
18022
|
+
unit?: "in" | "mm" | "cm" | "m" | "ft" | "mg" | "g" | "kg" | "oz" | "lb" | "ml" | "cl" | "l" | "fl_oz" | undefined;
|
|
18023
|
+
validations?: {
|
|
18024
|
+
min?: string | undefined;
|
|
18025
|
+
max?: string | undefined;
|
|
18026
|
+
maxLength?: number | undefined;
|
|
18027
|
+
maxItems?: number | undefined;
|
|
18028
|
+
} | undefined;
|
|
18029
|
+
archivedAt: string | null;
|
|
18030
|
+
usage?: {
|
|
18031
|
+
values: number;
|
|
18032
|
+
translations?: number;
|
|
18033
|
+
} | undefined;
|
|
18034
|
+
};
|
|
18035
|
+
type APIMetafieldDefinitionUpdateBody = {
|
|
18036
|
+
name?: string | undefined;
|
|
18037
|
+
description?: string | null | undefined;
|
|
18038
|
+
translatable?: boolean | undefined;
|
|
18039
|
+
storefrontVisible?: boolean | undefined;
|
|
18040
|
+
filterable?: boolean | undefined;
|
|
18041
|
+
position?: number | undefined;
|
|
18042
|
+
options?: {
|
|
18043
|
+
label: string;
|
|
18044
|
+
key?: string | undefined;
|
|
18045
|
+
archived?: boolean | undefined;
|
|
18046
|
+
}[] | undefined;
|
|
18047
|
+
unit?: "in" | "mm" | "cm" | "m" | "ft" | "mg" | "g" | "kg" | "oz" | "lb" | "ml" | "cl" | "l" | "fl_oz" | undefined;
|
|
18048
|
+
validations?: {
|
|
18049
|
+
min?: string | undefined;
|
|
18050
|
+
max?: string | undefined;
|
|
18051
|
+
maxLength?: number | undefined;
|
|
18052
|
+
maxItems?: number | undefined;
|
|
18053
|
+
} | undefined;
|
|
18054
|
+
};
|
|
18055
|
+
type APIMetafieldDefinitionUpdateResult = {
|
|
18056
|
+
id: string;
|
|
18057
|
+
ownerType: "variant" | "product";
|
|
18058
|
+
namespace: string;
|
|
18059
|
+
key: string;
|
|
18060
|
+
name: string;
|
|
18061
|
+
description: string | null;
|
|
18062
|
+
type: "boolean" | "date" | "integer" | "decimal" | "url" | "color" | "single_line_text" | "multi_line_text" | "rich_text" | "date_time" | "measurement" | "choice" | "list_single_line_text" | "list_choice";
|
|
18063
|
+
translatable: boolean;
|
|
18064
|
+
storefrontVisible: boolean;
|
|
18065
|
+
filterable: boolean;
|
|
18066
|
+
position: number;
|
|
18067
|
+
options?: {
|
|
18068
|
+
key: string;
|
|
18069
|
+
label: string;
|
|
18070
|
+
archived?: true;
|
|
18071
|
+
}[] | undefined;
|
|
18072
|
+
measurementKind?: "length" | "weight" | "volume" | undefined;
|
|
18073
|
+
unit?: "in" | "mm" | "cm" | "m" | "ft" | "mg" | "g" | "kg" | "oz" | "lb" | "ml" | "cl" | "l" | "fl_oz" | undefined;
|
|
18074
|
+
validations?: {
|
|
18075
|
+
min?: string | undefined;
|
|
18076
|
+
max?: string | undefined;
|
|
18077
|
+
maxLength?: number | undefined;
|
|
18078
|
+
maxItems?: number | undefined;
|
|
18079
|
+
} | undefined;
|
|
18080
|
+
archivedAt: string | null;
|
|
18081
|
+
usage?: {
|
|
18082
|
+
values: number;
|
|
18083
|
+
translations?: number;
|
|
18084
|
+
} | undefined;
|
|
18085
|
+
};
|
|
18086
|
+
type APIMetafieldDefinitionArchiveResult = {
|
|
18087
|
+
id: string;
|
|
18088
|
+
ownerType: "variant" | "product";
|
|
18089
|
+
namespace: string;
|
|
18090
|
+
key: string;
|
|
18091
|
+
name: string;
|
|
18092
|
+
description: string | null;
|
|
18093
|
+
type: "boolean" | "date" | "integer" | "decimal" | "url" | "color" | "single_line_text" | "multi_line_text" | "rich_text" | "date_time" | "measurement" | "choice" | "list_single_line_text" | "list_choice";
|
|
18094
|
+
translatable: boolean;
|
|
18095
|
+
storefrontVisible: boolean;
|
|
18096
|
+
filterable: boolean;
|
|
18097
|
+
position: number;
|
|
18098
|
+
options?: {
|
|
18099
|
+
key: string;
|
|
18100
|
+
label: string;
|
|
18101
|
+
archived?: true;
|
|
18102
|
+
}[] | undefined;
|
|
18103
|
+
measurementKind?: "length" | "weight" | "volume" | undefined;
|
|
18104
|
+
unit?: "in" | "mm" | "cm" | "m" | "ft" | "mg" | "g" | "kg" | "oz" | "lb" | "ml" | "cl" | "l" | "fl_oz" | undefined;
|
|
18105
|
+
validations?: {
|
|
18106
|
+
min?: string | undefined;
|
|
18107
|
+
max?: string | undefined;
|
|
18108
|
+
maxLength?: number | undefined;
|
|
18109
|
+
maxItems?: number | undefined;
|
|
18110
|
+
} | undefined;
|
|
18111
|
+
archivedAt: string | null;
|
|
18112
|
+
usage?: {
|
|
18113
|
+
values: number;
|
|
18114
|
+
translations?: number;
|
|
18115
|
+
} | undefined;
|
|
18116
|
+
};
|
|
18117
|
+
type APIMetafieldDefinitionRestoreResult = {
|
|
18118
|
+
id: string;
|
|
18119
|
+
ownerType: "variant" | "product";
|
|
18120
|
+
namespace: string;
|
|
18121
|
+
key: string;
|
|
18122
|
+
name: string;
|
|
18123
|
+
description: string | null;
|
|
18124
|
+
type: "boolean" | "date" | "integer" | "decimal" | "url" | "color" | "single_line_text" | "multi_line_text" | "rich_text" | "date_time" | "measurement" | "choice" | "list_single_line_text" | "list_choice";
|
|
18125
|
+
translatable: boolean;
|
|
18126
|
+
storefrontVisible: boolean;
|
|
18127
|
+
filterable: boolean;
|
|
18128
|
+
position: number;
|
|
18129
|
+
options?: {
|
|
18130
|
+
key: string;
|
|
18131
|
+
label: string;
|
|
18132
|
+
archived?: true;
|
|
18133
|
+
}[] | undefined;
|
|
18134
|
+
measurementKind?: "length" | "weight" | "volume" | undefined;
|
|
18135
|
+
unit?: "in" | "mm" | "cm" | "m" | "ft" | "mg" | "g" | "kg" | "oz" | "lb" | "ml" | "cl" | "l" | "fl_oz" | undefined;
|
|
18136
|
+
validations?: {
|
|
18137
|
+
min?: string | undefined;
|
|
18138
|
+
max?: string | undefined;
|
|
18139
|
+
maxLength?: number | undefined;
|
|
18140
|
+
maxItems?: number | undefined;
|
|
18141
|
+
} | undefined;
|
|
18142
|
+
archivedAt: string | null;
|
|
18143
|
+
usage?: {
|
|
18144
|
+
values: number;
|
|
18145
|
+
translations?: number;
|
|
18146
|
+
} | undefined;
|
|
18147
|
+
} & {
|
|
18148
|
+
filterSwitchedOff: boolean;
|
|
18149
|
+
};
|
|
18150
|
+
type APIMetafieldDefinitionDeleteBody = {
|
|
18151
|
+
confirm: string;
|
|
18152
|
+
expectedValueCount: number;
|
|
18153
|
+
};
|
|
18154
|
+
type APIMetafieldDefinitionDeleteResult = {
|
|
18155
|
+
ok: true;
|
|
18156
|
+
id: string;
|
|
18157
|
+
field: string;
|
|
18158
|
+
deleted: {
|
|
18159
|
+
values: number;
|
|
18160
|
+
translations: number;
|
|
18161
|
+
};
|
|
18162
|
+
};
|
|
18163
|
+
type APIMetafieldDefinitionConversionPreviewResult = {
|
|
18164
|
+
definition: APIMetafieldDefinition;
|
|
18165
|
+
targetType: "choice" | "list_choice";
|
|
18166
|
+
distinct: Array<{
|
|
18167
|
+
value: string;
|
|
18168
|
+
count: number;
|
|
18169
|
+
}>;
|
|
18170
|
+
suggestedGroups: Array<{
|
|
18171
|
+
label: string;
|
|
18172
|
+
members: string[];
|
|
18173
|
+
}>;
|
|
18174
|
+
overLimit: boolean;
|
|
18175
|
+
planHash: string;
|
|
18176
|
+
};
|
|
18177
|
+
type APIMetafieldDefinitionConvertBody = {
|
|
18178
|
+
groups: {
|
|
18179
|
+
label: string;
|
|
18180
|
+
members: string[];
|
|
18181
|
+
}[];
|
|
18182
|
+
planHash: string;
|
|
18183
|
+
};
|
|
18184
|
+
type APIMetafieldDefinitionConvertResult = {
|
|
18185
|
+
definition: APIMetafieldDefinition;
|
|
18186
|
+
converted: number;
|
|
18187
|
+
};
|
|
18188
|
+
type APIMetafieldDefinitionTranslationParams = {
|
|
18189
|
+
idOrKey: string;
|
|
18190
|
+
locale: string;
|
|
18191
|
+
};
|
|
18192
|
+
type APIMetafieldDefinitionTranslationPutBody = {
|
|
18193
|
+
name?: string | null | undefined;
|
|
18194
|
+
description?: string | null | undefined;
|
|
18195
|
+
optionLabels?: Record<string, string> | null | undefined;
|
|
18196
|
+
};
|
|
18197
|
+
type APIMetafieldDefinitionTranslationPutResult = {
|
|
18198
|
+
ok: true;
|
|
18199
|
+
definitionId: string;
|
|
18200
|
+
locale: string;
|
|
18201
|
+
deleted: boolean;
|
|
18202
|
+
};
|
|
18203
|
+
type APIMetafieldTranslationsPutBody = {
|
|
18204
|
+
values: {
|
|
18205
|
+
key: string;
|
|
18206
|
+
value: unknown;
|
|
18207
|
+
namespace?: string | undefined;
|
|
18208
|
+
}[];
|
|
18209
|
+
origin?: "human" | "machine" | undefined;
|
|
18210
|
+
};
|
|
18211
|
+
type APIProductMetafieldTranslationsPutParams = {
|
|
18212
|
+
idOrSlug: string;
|
|
18213
|
+
locale: string;
|
|
18214
|
+
};
|
|
18215
|
+
type APIProductMetafieldTranslationsPutResult = {
|
|
18216
|
+
ok: true;
|
|
18217
|
+
productId: string;
|
|
18218
|
+
locale: string;
|
|
18219
|
+
written: number;
|
|
18220
|
+
deleted: number;
|
|
18221
|
+
skipped: number;
|
|
18222
|
+
};
|
|
18223
|
+
type APIVariantMetafieldTranslationsPutParams = {
|
|
18224
|
+
idOrSku: string;
|
|
18225
|
+
locale: string;
|
|
18226
|
+
};
|
|
18227
|
+
type APIVariantMetafieldTranslationsPutResult = {
|
|
18228
|
+
ok: true;
|
|
18229
|
+
variantId: string;
|
|
18230
|
+
productId: string;
|
|
18231
|
+
locale: string;
|
|
18232
|
+
written: number;
|
|
18233
|
+
deleted: number;
|
|
18234
|
+
skipped: number;
|
|
18235
|
+
};
|
|
18236
|
+
type APIMetafieldsTranslateMissingBody = {
|
|
18237
|
+
locales?: ("en-US" | "fr-FR" | "it-IT" | "vi-VN" | "pl-PL" | "es-ES" | "de-DE")[] | undefined;
|
|
18238
|
+
productIds?: string[] | undefined;
|
|
18239
|
+
};
|
|
18240
|
+
type APIMetafieldsTranslateMissingResult = {
|
|
18241
|
+
locales: string[];
|
|
18242
|
+
written: {
|
|
18243
|
+
ownerType: "variant" | "product";
|
|
18244
|
+
ownerId: string;
|
|
18245
|
+
namespace: string;
|
|
18246
|
+
key: string;
|
|
18247
|
+
locale: "en-US" | "fr-FR" | "it-IT" | "vi-VN" | "pl-PL" | "es-ES" | "de-DE";
|
|
18248
|
+
value: unknown;
|
|
18249
|
+
}[];
|
|
18250
|
+
skipped: number;
|
|
18251
|
+
failed: number;
|
|
18252
|
+
} | {
|
|
18253
|
+
runId: string | null;
|
|
18254
|
+
locales: string[];
|
|
18255
|
+
counts: Partial<Record<string, number>>;
|
|
18256
|
+
total: number;
|
|
18257
|
+
};
|
|
17645
18258
|
|
|
17646
|
-
export type { APIBlogCategoriesBrowseQueryParams, APIBlogCategoriesBrowseResult, APIBlogCategoryCreateBody, APIBlogCategoryCreateResult, APIBlogCategoryDeleteResult, APIBlogCategoryGetByIdParams, APIBlogCategoryGetByIdResult, APIBlogCategoryUpdateBody, APIBlogCategoryUpdateResult, APIBrandAssignProductsBody, APIBrandAssignProductsResult, APIBrandCreateBody, APIBrandCreateResult, APIBrandDeleteResult, APIBrandGetByIdParams, APIBrandGetByIdResult, APIBrandUpdateBody, APIBrandUpdateResult, APIBrandsBrowseQueryParams, APIBrandsBrowseResult, APICartAddBody, APICartAddResult, APICartCouponApplyBody, APICartCouponApplyResult, APICartCouponRemoveResult, APICartCreateBody, APICartCreateResult, APICartDeleteResult, APICartGetResult, APICartRemoveItemQueryParams, APICartRemoveItemResult, APICategoriesBrowseQueryParams, APICategoriesBrowseResult, APICategoryCreateBody, APICategoryCreateResult, APICategoryDeleteResult, APICategoryGetByIdParams, APICategoryGetByIdQueryParams, APICategoryGetByIdResult, APICategoryUpdateBody, APICategoryUpdateQueryParams, APICategoryUpdateResult, APICollectionCreateBody, APICollectionCreateResult, APICollectionDeleteResult, APICollectionGetByIdParams, APICollectionGetByIdQueryParams, APICollectionGetByIdResult, APICollectionUpdateBody, APICollectionUpdateResult, APICollectionsBrowseQueryParams, APICollectionsBrowseResult, APIContactMessageCreateBody, APIContactMessageCreateResult, APICouponCreateBody, APICouponCreateResult, APICouponDeleteResult, APICouponGetByIdParams, APICouponGetByIdResult, APICouponUpdateBody, APICouponUpdateResult, APICouponsBrowseQueryParams, APICouponsBrowseResult, APICustomerAddressCreateBody, APICustomerAddressCreateResult, APICustomerGetByIdParams, APICustomerGetByIdResult, APICustomerOrdersBrowseQueryParams, APICustomerOrdersBrowseResult, APICustomerUpdateBody, APICustomerUpdateResult, APICustomersBrowseQueryParams, APICustomersBrowseResult, APIEventAttendeesBrowseResult, APIEventCreateBody, APIEventCreateResult, APIEventGetByIdParams, APIEventGetByIdResult, APIEventUpdateBody, APIEventUpdateResult, APIEventsBrowseQueryParams, APIEventsBrowseResult, APIInstaviewImagesBrowseParams, APIInstaviewImagesBrowseQueryParams, APIInstaviewImagesBrowseResult, APIInventoryAdjustBody, APIInventoryAdjustResult, APIInventoryBrowseQueryParams, APIInventoryBrowseResult, APILegalPageCreateBody, APILegalPageCreateQueryParams, APILegalPageCreateResult, APILegalPageGetByPathParams, APILegalPageGetByPathQueryParams, APILegalPageGetByPathResult, APILegalPageUpdateBody, APILegalPageUpdateQueryParams, APILegalPageUpdateResult, APILegalPagesBrowseQueryParams, APILegalPagesBrowseResult, APIMeGetResult, APIMeStore, APIOrderGetByIdParams, APIOrderGetByIdResult, APIOrderRefundGetParams, APIOrderRefundGetResult, APIOrderRefundsBrowseQueryParams, APIOrderRefundsBrowseResult, APIOrderRefundsParams, APIOrderUpdateBody, APIOrderUpdateResult, APIOrdersBrowseQueryParams, APIOrdersBrowseResult, APIPostCommentCreateBody, APIPostCommentCreateResult, APIPostCommentsBrowseQueryParams, APIPostCommentsBrowseResult, APIPostCreateBody, APIPostCreateResult, APIPostDeleteResult, APIPostGetByIdParams, APIPostGetByIdResult, APIPostUpdateBody, APIPostUpdateResult, APIPostsBrowseQueryParams, APIPostsBrowseResult, APIProductBatchBody, APIProductBatchResult, APIProductCreateBody, APIProductCreateResult, APIProductDeleteQueryParams, APIProductDeleteResult, APIProductFiltersResult, APIProductGetByIdParams, APIProductGetByIdQueryParams, APIProductGetByIdResult, APIProductReviewCreateBody, APIProductReviewCreateResult, APIProductReviewsBrowseQueryParams, APIProductReviewsBrowseResult, APIProductUpdateBody, APIProductUpdateQueryParams, APIProductUpdateResult, APIProductsBrowseQueryParams, APIProductsBrowseResult, APISearchQueryParams, APISearchResult, APIShipment, APISocialsGetResult, APISubscriberCreateBody, APISubscriberCreateResult, APISubscriberDeleteResult, APISupportCase, APISupportCaseCreateBody, APISupportCaseCreateResult, APISupportCaseGetParams, APISupportCaseGetResult, APISupportCaseMessage, APISupportCaseMessageCreateBody, APISupportCaseMessageCreateResult, APISupportCaseUpdateBody, APISupportCaseUpdateResult, APISupportCasesBrowseQueryParams, APISupportCasesBrowseResult, APITicketAttendeeGetParams, APITicketAttendeeGetResult, APITicketsGetParams, APITicketsGetQueryParams, APITicketsGetResult, APITicketsUpdateBody, APITicketsUpdateResult, APIVariantCreateBody, APIVariantCreateResult, APIVariantGetByIdParams, APIVariantGetByIdQueryParams, APIVariantGetByIdResult, APIVariantUpdateBody, APIVariantUpdateResult, JSONContent };
|
|
18259
|
+
export type { APIBlogCategoriesBrowseQueryParams, APIBlogCategoriesBrowseResult, APIBlogCategoryCreateBody, APIBlogCategoryCreateResult, APIBlogCategoryDeleteResult, APIBlogCategoryGetByIdParams, APIBlogCategoryGetByIdResult, APIBlogCategoryUpdateBody, APIBlogCategoryUpdateResult, APIBrandAssignProductsBody, APIBrandAssignProductsResult, APIBrandCreateBody, APIBrandCreateResult, APIBrandDeleteResult, APIBrandGetByIdParams, APIBrandGetByIdResult, APIBrandUpdateBody, APIBrandUpdateResult, APIBrandsBrowseQueryParams, APIBrandsBrowseResult, APICartAddBody, APICartAddResult, APICartCouponApplyBody, APICartCouponApplyResult, APICartCouponRemoveResult, APICartCreateBody, APICartCreateResult, APICartDeleteResult, APICartGetResult, APICartRemoveItemQueryParams, APICartRemoveItemResult, APICategoriesBrowseQueryParams, APICategoriesBrowseResult, APICategoryCreateBody, APICategoryCreateResult, APICategoryDeleteResult, APICategoryGetByIdParams, APICategoryGetByIdQueryParams, APICategoryGetByIdResult, APICategoryUpdateBody, APICategoryUpdateQueryParams, APICategoryUpdateResult, APICollectionCreateBody, APICollectionCreateResult, APICollectionDeleteResult, APICollectionGetByIdParams, APICollectionGetByIdQueryParams, APICollectionGetByIdResult, APICollectionUpdateBody, APICollectionUpdateResult, APICollectionsBrowseQueryParams, APICollectionsBrowseResult, APIContactMessageCreateBody, APIContactMessageCreateResult, APICouponCreateBody, APICouponCreateResult, APICouponDeleteResult, APICouponGetByIdParams, APICouponGetByIdResult, APICouponUpdateBody, APICouponUpdateResult, APICouponsBrowseQueryParams, APICouponsBrowseResult, APICustomerAddressCreateBody, APICustomerAddressCreateResult, APICustomerGetByIdParams, APICustomerGetByIdResult, APICustomerOrdersBrowseQueryParams, APICustomerOrdersBrowseResult, APICustomerUpdateBody, APICustomerUpdateResult, APICustomersBrowseQueryParams, APICustomersBrowseResult, APIEventAttendeesBrowseResult, APIEventCreateBody, APIEventCreateResult, APIEventGetByIdParams, APIEventGetByIdResult, APIEventUpdateBody, APIEventUpdateResult, APIEventsBrowseQueryParams, APIEventsBrowseResult, APIInstaviewImagesBrowseParams, APIInstaviewImagesBrowseQueryParams, APIInstaviewImagesBrowseResult, APIInventoryAdjustBody, APIInventoryAdjustResult, APIInventoryBrowseQueryParams, APIInventoryBrowseResult, APILegalPageCreateBody, APILegalPageCreateQueryParams, APILegalPageCreateResult, APILegalPageGetByPathParams, APILegalPageGetByPathQueryParams, APILegalPageGetByPathResult, APILegalPageUpdateBody, APILegalPageUpdateQueryParams, APILegalPageUpdateResult, APILegalPagesBrowseQueryParams, APILegalPagesBrowseResult, APIMeGetResult, APIMeStore, APIMetafieldDefinition, APIMetafieldDefinitionArchiveResult, APIMetafieldDefinitionConversionPreviewResult, APIMetafieldDefinitionConvertBody, APIMetafieldDefinitionConvertResult, APIMetafieldDefinitionCreateBody, APIMetafieldDefinitionCreateResult, APIMetafieldDefinitionDeleteBody, APIMetafieldDefinitionDeleteResult, APIMetafieldDefinitionGetQueryParams, APIMetafieldDefinitionGetResult, APIMetafieldDefinitionParams, APIMetafieldDefinitionRestoreResult, APIMetafieldDefinitionTranslationParams, APIMetafieldDefinitionTranslationPutBody, APIMetafieldDefinitionTranslationPutResult, APIMetafieldDefinitionUpdateBody, APIMetafieldDefinitionUpdateResult, APIMetafieldDefinitionsBrowseQueryParams, APIMetafieldDefinitionsBrowseResult, APIMetafieldTranslationsPutBody, APIMetafieldValueInput, APIMetafieldsTranslateMissingBody, APIMetafieldsTranslateMissingResult, APIOrderGetByIdParams, APIOrderGetByIdResult, APIOrderRefundGetParams, APIOrderRefundGetResult, APIOrderRefundsBrowseQueryParams, APIOrderRefundsBrowseResult, APIOrderRefundsParams, APIOrderUpdateBody, APIOrderUpdateResult, APIOrdersBrowseQueryParams, APIOrdersBrowseResult, APIPostCommentCreateBody, APIPostCommentCreateResult, APIPostCommentsBrowseQueryParams, APIPostCommentsBrowseResult, APIPostCreateBody, APIPostCreateResult, APIPostDeleteResult, APIPostGetByIdParams, APIPostGetByIdResult, APIPostUpdateBody, APIPostUpdateResult, APIPostsBrowseQueryParams, APIPostsBrowseResult, APIProductBatchBody, APIProductBatchResult, APIProductCreateBody, APIProductCreateResult, APIProductDeleteQueryParams, APIProductDeleteResult, APIProductFiltersQueryParams, APIProductFiltersResult, APIProductGetByIdParams, APIProductGetByIdQueryParams, APIProductGetByIdResult, APIProductMetafieldTranslationsPutParams, APIProductMetafieldTranslationsPutResult, APIProductReviewCreateBody, APIProductReviewCreateResult, APIProductReviewsBrowseQueryParams, APIProductReviewsBrowseResult, APIProductUpdateBody, APIProductUpdateQueryParams, APIProductUpdateResult, APIProductsBrowseQueryParams, APIProductsBrowseResult, APISearchQueryParams, APISearchResult, APIShipment, APISocialsGetResult, APISubscriberCreateBody, APISubscriberCreateResult, APISubscriberDeleteResult, APISupportCase, APISupportCaseCreateBody, APISupportCaseCreateResult, APISupportCaseGetParams, APISupportCaseGetResult, APISupportCaseMessage, APISupportCaseMessageCreateBody, APISupportCaseMessageCreateResult, APISupportCaseUpdateBody, APISupportCaseUpdateResult, APISupportCasesBrowseQueryParams, APISupportCasesBrowseResult, APITicketAttendeeGetParams, APITicketAttendeeGetResult, APITicketsGetParams, APITicketsGetQueryParams, APITicketsGetResult, APITicketsUpdateBody, APITicketsUpdateResult, APIVariantCreateBody, APIVariantCreateResult, APIVariantGetByIdParams, APIVariantGetByIdQueryParams, APIVariantGetByIdResult, APIVariantMetafieldTranslationsPutParams, APIVariantMetafieldTranslationsPutResult, APIVariantUpdateBody, APIVariantUpdateResult, JSONContent };
|