commerce-kit 0.56.0 → 0.57.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 +484 -1300
- package/package.json +6 -11
package/dist/api-types.d.ts
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
type JSONContent = Record<string, unknown>;
|
|
2
2
|
type APIProductsBrowseResult = Omit<{
|
|
3
|
-
data: (
|
|
3
|
+
data: ({
|
|
4
|
+
matchedVariantIds?: string[] | undefined;
|
|
5
|
+
bundleGroups: {
|
|
6
|
+
id: string;
|
|
7
|
+
minQuantity: number;
|
|
8
|
+
maxQuantity: number | null;
|
|
9
|
+
allowDuplicates: boolean;
|
|
10
|
+
}[];
|
|
4
11
|
id: string;
|
|
5
12
|
name: string;
|
|
6
13
|
createdAt: string;
|
|
@@ -121,6 +128,7 @@ type APIProductsBrowseResult = Omit<{
|
|
|
121
128
|
externalId: string | null;
|
|
122
129
|
productId: string;
|
|
123
130
|
attributes: unknown;
|
|
131
|
+
cost: string | null;
|
|
124
132
|
originalPrice: string;
|
|
125
133
|
product: {
|
|
126
134
|
id: string;
|
|
@@ -234,7 +242,12 @@ type APIProductsBrowseResult = Omit<{
|
|
|
234
242
|
calculatedPrice: string | null;
|
|
235
243
|
variantId: string;
|
|
236
244
|
}[];
|
|
237
|
-
}[]
|
|
245
|
+
}[] & ({
|
|
246
|
+
id: string;
|
|
247
|
+
price: string;
|
|
248
|
+
} & {
|
|
249
|
+
prePromotionPrice: string | null;
|
|
250
|
+
})[];
|
|
238
251
|
subscriptionPlanProducts: {
|
|
239
252
|
createdAt: string;
|
|
240
253
|
updatedAt: string;
|
|
@@ -256,14 +269,14 @@ type APIProductsBrowseResult = Omit<{
|
|
|
256
269
|
benefits: string | null;
|
|
257
270
|
};
|
|
258
271
|
}[];
|
|
259
|
-
}
|
|
260
|
-
|
|
272
|
+
} | {
|
|
273
|
+
matchedVariantIds?: string[] | undefined;
|
|
274
|
+
bundleGroups: {
|
|
261
275
|
id: string;
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
}
|
|
266
|
-
}) | ({
|
|
276
|
+
minQuantity: number;
|
|
277
|
+
maxQuantity: number | null;
|
|
278
|
+
allowDuplicates: boolean;
|
|
279
|
+
}[];
|
|
267
280
|
id: string;
|
|
268
281
|
name: string;
|
|
269
282
|
createdAt: string;
|
|
@@ -384,6 +397,7 @@ type APIProductsBrowseResult = Omit<{
|
|
|
384
397
|
externalId: string | null;
|
|
385
398
|
productId: string;
|
|
386
399
|
attributes: unknown;
|
|
400
|
+
cost: string | null;
|
|
387
401
|
originalPrice: string;
|
|
388
402
|
product: {
|
|
389
403
|
id: string;
|
|
@@ -497,7 +511,12 @@ type APIProductsBrowseResult = Omit<{
|
|
|
497
511
|
calculatedPrice: string | null;
|
|
498
512
|
variantId: string;
|
|
499
513
|
}[];
|
|
500
|
-
}[]
|
|
514
|
+
}[] & ({
|
|
515
|
+
id: string;
|
|
516
|
+
price: string;
|
|
517
|
+
} & {
|
|
518
|
+
prePromotionPrice: string | null;
|
|
519
|
+
})[];
|
|
501
520
|
subscriptionPlanProducts: {
|
|
502
521
|
createdAt: string;
|
|
503
522
|
updatedAt: string;
|
|
@@ -519,14 +538,14 @@ type APIProductsBrowseResult = Omit<{
|
|
|
519
538
|
benefits: string | null;
|
|
520
539
|
};
|
|
521
540
|
}[];
|
|
522
|
-
}
|
|
523
|
-
|
|
541
|
+
} | {
|
|
542
|
+
matchedVariantIds?: string[] | undefined;
|
|
543
|
+
bundleGroups: {
|
|
524
544
|
id: string;
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
}
|
|
529
|
-
}) | ({
|
|
545
|
+
minQuantity: number;
|
|
546
|
+
maxQuantity: number | null;
|
|
547
|
+
allowDuplicates: boolean;
|
|
548
|
+
}[];
|
|
530
549
|
id: string;
|
|
531
550
|
name: string;
|
|
532
551
|
createdAt: string;
|
|
@@ -647,6 +666,7 @@ type APIProductsBrowseResult = Omit<{
|
|
|
647
666
|
externalId: string | null;
|
|
648
667
|
productId: string;
|
|
649
668
|
attributes: unknown;
|
|
669
|
+
cost: string | null;
|
|
650
670
|
originalPrice: string;
|
|
651
671
|
product: {
|
|
652
672
|
id: string;
|
|
@@ -760,7 +780,12 @@ type APIProductsBrowseResult = Omit<{
|
|
|
760
780
|
calculatedPrice: string | null;
|
|
761
781
|
variantId: string;
|
|
762
782
|
}[];
|
|
763
|
-
}[]
|
|
783
|
+
}[] & ({
|
|
784
|
+
id: string;
|
|
785
|
+
price: string;
|
|
786
|
+
} & {
|
|
787
|
+
prePromotionPrice: string | null;
|
|
788
|
+
})[];
|
|
764
789
|
subscriptionPlanProducts: {
|
|
765
790
|
createdAt: string;
|
|
766
791
|
updatedAt: string;
|
|
@@ -782,14 +807,14 @@ type APIProductsBrowseResult = Omit<{
|
|
|
782
807
|
benefits: string | null;
|
|
783
808
|
};
|
|
784
809
|
}[];
|
|
785
|
-
}
|
|
786
|
-
|
|
810
|
+
} | {
|
|
811
|
+
matchedVariantIds?: string[] | undefined;
|
|
812
|
+
bundleGroups: {
|
|
787
813
|
id: string;
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
}
|
|
792
|
-
}) | ({
|
|
814
|
+
minQuantity: number;
|
|
815
|
+
maxQuantity: number | null;
|
|
816
|
+
allowDuplicates: boolean;
|
|
817
|
+
}[];
|
|
793
818
|
id: string;
|
|
794
819
|
name: string;
|
|
795
820
|
createdAt: string;
|
|
@@ -910,6 +935,7 @@ type APIProductsBrowseResult = Omit<{
|
|
|
910
935
|
externalId: string | null;
|
|
911
936
|
productId: string;
|
|
912
937
|
attributes: unknown;
|
|
938
|
+
cost: string | null;
|
|
913
939
|
originalPrice: string;
|
|
914
940
|
product: {
|
|
915
941
|
id: string;
|
|
@@ -1023,7 +1049,14 @@ type APIProductsBrowseResult = Omit<{
|
|
|
1023
1049
|
calculatedPrice: string | null;
|
|
1024
1050
|
variantId: string;
|
|
1025
1051
|
}[];
|
|
1026
|
-
}[]
|
|
1052
|
+
}[] & ({
|
|
1053
|
+
id: string;
|
|
1054
|
+
price: string;
|
|
1055
|
+
} & {
|
|
1056
|
+
price: string;
|
|
1057
|
+
} & {
|
|
1058
|
+
prePromotionPrice: string | null;
|
|
1059
|
+
})[];
|
|
1027
1060
|
subscriptionPlanProducts: {
|
|
1028
1061
|
createdAt: string;
|
|
1029
1062
|
updatedAt: string;
|
|
@@ -1045,16 +1078,14 @@ type APIProductsBrowseResult = Omit<{
|
|
|
1045
1078
|
benefits: string | null;
|
|
1046
1079
|
};
|
|
1047
1080
|
}[];
|
|
1048
|
-
}
|
|
1049
|
-
|
|
1081
|
+
} | {
|
|
1082
|
+
matchedVariantIds?: string[] | undefined;
|
|
1083
|
+
bundleGroups: {
|
|
1050
1084
|
id: string;
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
}
|
|
1055
|
-
prePromotionPrice: string | null;
|
|
1056
|
-
})[];
|
|
1057
|
-
}) | ({
|
|
1085
|
+
minQuantity: number;
|
|
1086
|
+
maxQuantity: number | null;
|
|
1087
|
+
allowDuplicates: boolean;
|
|
1088
|
+
}[];
|
|
1058
1089
|
id: string;
|
|
1059
1090
|
name: string;
|
|
1060
1091
|
createdAt: string;
|
|
@@ -1175,6 +1206,7 @@ type APIProductsBrowseResult = Omit<{
|
|
|
1175
1206
|
externalId: string | null;
|
|
1176
1207
|
productId: string;
|
|
1177
1208
|
attributes: unknown;
|
|
1209
|
+
cost: string | null;
|
|
1178
1210
|
originalPrice: string;
|
|
1179
1211
|
product: {
|
|
1180
1212
|
id: string;
|
|
@@ -1288,7 +1320,12 @@ type APIProductsBrowseResult = Omit<{
|
|
|
1288
1320
|
calculatedPrice: string | null;
|
|
1289
1321
|
variantId: string;
|
|
1290
1322
|
}[];
|
|
1291
|
-
}[]
|
|
1323
|
+
}[] & ({
|
|
1324
|
+
id: string;
|
|
1325
|
+
price: string;
|
|
1326
|
+
} & {
|
|
1327
|
+
prePromotionPrice: string | null;
|
|
1328
|
+
})[];
|
|
1292
1329
|
subscriptionPlanProducts: {
|
|
1293
1330
|
createdAt: string;
|
|
1294
1331
|
updatedAt: string;
|
|
@@ -1310,14 +1347,7 @@ type APIProductsBrowseResult = Omit<{
|
|
|
1310
1347
|
benefits: string | null;
|
|
1311
1348
|
};
|
|
1312
1349
|
}[];
|
|
1313
|
-
}
|
|
1314
|
-
variants: ({
|
|
1315
|
-
id: string;
|
|
1316
|
-
price: string;
|
|
1317
|
-
} & {
|
|
1318
|
-
prePromotionPrice: string | null;
|
|
1319
|
-
})[];
|
|
1320
|
-
}))[];
|
|
1350
|
+
})[];
|
|
1321
1351
|
meta: {
|
|
1322
1352
|
count: number;
|
|
1323
1353
|
countPublished: number;
|
|
@@ -1327,33 +1357,77 @@ type APIProductsBrowseResult = Omit<{
|
|
|
1327
1357
|
};
|
|
1328
1358
|
}, "data"> & {
|
|
1329
1359
|
data: Array<{
|
|
1330
|
-
|
|
1360
|
+
matchedVariantIds?: string[] | undefined;
|
|
1361
|
+
bundleGroups: {
|
|
1362
|
+
id: string;
|
|
1363
|
+
minQuantity: number;
|
|
1364
|
+
maxQuantity: number | null;
|
|
1365
|
+
allowDuplicates: boolean;
|
|
1366
|
+
}[];
|
|
1367
|
+
id: string;
|
|
1368
|
+
name: string;
|
|
1369
|
+
createdAt: string;
|
|
1370
|
+
updatedAt: string;
|
|
1371
|
+
type: "set" | "product" | "bundle";
|
|
1372
|
+
slug: string;
|
|
1373
|
+
status: "published" | "draft" | "hidden" | null;
|
|
1374
|
+
flags: unknown;
|
|
1375
|
+
storeId: string;
|
|
1376
|
+
summary: string | null;
|
|
1377
|
+
content: JSONContent | null;
|
|
1378
|
+
images: string[];
|
|
1379
|
+
badge: unknown;
|
|
1380
|
+
bundleDiscountPercentage: string | null;
|
|
1381
|
+
bundlePriceMode: "fixed" | "percent" | "amount";
|
|
1382
|
+
bundleFixedPriceAmount: string | null;
|
|
1383
|
+
bundleAmountOffAmount: string | null;
|
|
1384
|
+
seo: {
|
|
1385
|
+
title?: string | null | undefined;
|
|
1386
|
+
description?: string | null | undefined;
|
|
1387
|
+
canonical?: string | null | undefined;
|
|
1388
|
+
} | null;
|
|
1389
|
+
stripeTaxCode: string | null;
|
|
1390
|
+
categoryId: string | null;
|
|
1391
|
+
brandId: string | null;
|
|
1392
|
+
category: {
|
|
1331
1393
|
id: string;
|
|
1332
1394
|
name: string;
|
|
1395
|
+
image: string | null;
|
|
1333
1396
|
createdAt: string;
|
|
1334
1397
|
updatedAt: string;
|
|
1335
|
-
type: "set" | "product" | "bundle";
|
|
1336
1398
|
slug: string;
|
|
1337
|
-
|
|
1338
|
-
flags: unknown;
|
|
1399
|
+
active: boolean;
|
|
1339
1400
|
storeId: string;
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
images: string[];
|
|
1343
|
-
badge: unknown;
|
|
1344
|
-
bundleDiscountPercentage: string | null;
|
|
1345
|
-
bundlePriceMode: "fixed" | "percent" | "amount";
|
|
1346
|
-
bundleFixedPriceAmount: string | null;
|
|
1347
|
-
bundleAmountOffAmount: string | null;
|
|
1401
|
+
description: JSONContent | null;
|
|
1402
|
+
position: string;
|
|
1348
1403
|
seo: {
|
|
1349
1404
|
title?: string | null | undefined;
|
|
1350
1405
|
description?: string | null | undefined;
|
|
1351
1406
|
canonical?: string | null | undefined;
|
|
1352
1407
|
} | null;
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1408
|
+
longDescription: JSONContent | null;
|
|
1409
|
+
parentId: string | null;
|
|
1410
|
+
} | null;
|
|
1411
|
+
productTaxRate: {
|
|
1412
|
+
createdAt: string;
|
|
1413
|
+
updatedAt: string;
|
|
1414
|
+
taxRateId: string;
|
|
1415
|
+
productId: string;
|
|
1416
|
+
taxRate: {
|
|
1417
|
+
id: string;
|
|
1418
|
+
name: string;
|
|
1419
|
+
createdAt: string;
|
|
1420
|
+
updatedAt: string;
|
|
1421
|
+
storeId: string;
|
|
1422
|
+
rate: string;
|
|
1423
|
+
label: string | null;
|
|
1424
|
+
};
|
|
1425
|
+
} | null;
|
|
1426
|
+
productCollections: {
|
|
1427
|
+
position: string | null;
|
|
1428
|
+
productId: string;
|
|
1429
|
+
collectionId: string;
|
|
1430
|
+
collection: {
|
|
1357
1431
|
id: string;
|
|
1358
1432
|
name: string;
|
|
1359
1433
|
image: string | null;
|
|
@@ -1361,181 +1435,101 @@ type APIProductsBrowseResult = Omit<{
|
|
|
1361
1435
|
updatedAt: string;
|
|
1362
1436
|
slug: string;
|
|
1363
1437
|
active: boolean;
|
|
1438
|
+
filter: {
|
|
1439
|
+
type: "manual";
|
|
1440
|
+
} | {
|
|
1441
|
+
type: "dynamicPrice";
|
|
1442
|
+
min?: number | null | undefined;
|
|
1443
|
+
max?: number | null | undefined;
|
|
1444
|
+
} | {
|
|
1445
|
+
type: "variantValues";
|
|
1446
|
+
values: Record<string, string[]>;
|
|
1447
|
+
} | {
|
|
1448
|
+
type: "newest";
|
|
1449
|
+
days?: number | null | undefined;
|
|
1450
|
+
};
|
|
1364
1451
|
storeId: string;
|
|
1365
1452
|
description: JSONContent | null;
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1453
|
+
};
|
|
1454
|
+
}[];
|
|
1455
|
+
bundleProducts: {
|
|
1456
|
+
createdAt: string;
|
|
1457
|
+
updatedAt: string;
|
|
1458
|
+
position: number;
|
|
1459
|
+
bundleId: string;
|
|
1460
|
+
maxQuantity: number | null;
|
|
1461
|
+
quantity: number;
|
|
1462
|
+
variantId: string;
|
|
1463
|
+
groupId: string | null;
|
|
1464
|
+
forced: boolean;
|
|
1465
|
+
defaultSelected: boolean;
|
|
1466
|
+
variant: {
|
|
1467
|
+
id: string;
|
|
1376
1468
|
createdAt: string;
|
|
1377
1469
|
updatedAt: string;
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1470
|
+
storeId: string;
|
|
1471
|
+
description: string | null;
|
|
1472
|
+
price: string;
|
|
1473
|
+
images: string[];
|
|
1474
|
+
sku: string | null;
|
|
1475
|
+
barcode: string | null;
|
|
1476
|
+
calculatedPrice: string | null;
|
|
1477
|
+
stock: number | null;
|
|
1478
|
+
depth: number | null;
|
|
1479
|
+
width: number | null;
|
|
1480
|
+
height: number | null;
|
|
1481
|
+
weight: number | null;
|
|
1482
|
+
digital: string[] | null;
|
|
1483
|
+
shippable: boolean;
|
|
1484
|
+
externalId: string | null;
|
|
1392
1485
|
productId: string;
|
|
1393
|
-
|
|
1394
|
-
|
|
1486
|
+
attributes: unknown;
|
|
1487
|
+
cost: string | null;
|
|
1488
|
+
originalPrice: string;
|
|
1489
|
+
product: {
|
|
1395
1490
|
id: string;
|
|
1396
1491
|
name: string;
|
|
1397
|
-
image: string | null;
|
|
1398
|
-
createdAt: string;
|
|
1399
|
-
updatedAt: string;
|
|
1400
1492
|
slug: string;
|
|
1401
|
-
active: boolean;
|
|
1402
|
-
filter: {
|
|
1403
|
-
type: "manual";
|
|
1404
|
-
} | {
|
|
1405
|
-
type: "dynamicPrice";
|
|
1406
|
-
min?: number | null | undefined;
|
|
1407
|
-
max?: number | null | undefined;
|
|
1408
|
-
} | {
|
|
1409
|
-
type: "variantValues";
|
|
1410
|
-
values: Record<string, string[]>;
|
|
1411
|
-
} | {
|
|
1412
|
-
type: "newest";
|
|
1413
|
-
days?: number | null | undefined;
|
|
1414
|
-
};
|
|
1415
|
-
storeId: string;
|
|
1416
|
-
description: JSONContent | null;
|
|
1417
|
-
};
|
|
1418
|
-
}[];
|
|
1419
|
-
bundleProducts: {
|
|
1420
|
-
createdAt: string;
|
|
1421
|
-
updatedAt: string;
|
|
1422
|
-
position: number;
|
|
1423
|
-
bundleId: string;
|
|
1424
|
-
maxQuantity: number | null;
|
|
1425
|
-
quantity: number;
|
|
1426
|
-
variantId: string;
|
|
1427
|
-
groupId: string | null;
|
|
1428
|
-
forced: boolean;
|
|
1429
|
-
defaultSelected: boolean;
|
|
1430
|
-
variant: {
|
|
1431
|
-
id: string;
|
|
1432
|
-
createdAt: string;
|
|
1433
|
-
updatedAt: string;
|
|
1434
|
-
storeId: string;
|
|
1435
|
-
description: string | null;
|
|
1436
|
-
price: string;
|
|
1437
1493
|
images: string[];
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
height: number | null;
|
|
1445
|
-
weight: number | null;
|
|
1446
|
-
digital: string[] | null;
|
|
1447
|
-
shippable: boolean;
|
|
1448
|
-
externalId: string | null;
|
|
1449
|
-
productId: string;
|
|
1450
|
-
attributes: unknown;
|
|
1451
|
-
originalPrice: string;
|
|
1452
|
-
product: {
|
|
1453
|
-
id: string;
|
|
1454
|
-
name: string;
|
|
1455
|
-
slug: string;
|
|
1456
|
-
images: string[];
|
|
1457
|
-
productTaxRate: {
|
|
1458
|
-
createdAt: string;
|
|
1459
|
-
updatedAt: string;
|
|
1460
|
-
taxRateId: string;
|
|
1461
|
-
productId: string;
|
|
1462
|
-
taxRate: {
|
|
1463
|
-
id: string;
|
|
1464
|
-
name: string;
|
|
1465
|
-
createdAt: string;
|
|
1466
|
-
updatedAt: string;
|
|
1467
|
-
storeId: string;
|
|
1468
|
-
rate: string;
|
|
1469
|
-
label: string | null;
|
|
1470
|
-
};
|
|
1471
|
-
} | null;
|
|
1472
|
-
variants: {
|
|
1494
|
+
productTaxRate: {
|
|
1495
|
+
createdAt: string;
|
|
1496
|
+
updatedAt: string;
|
|
1497
|
+
taxRateId: string;
|
|
1498
|
+
productId: string;
|
|
1499
|
+
taxRate: {
|
|
1473
1500
|
id: string;
|
|
1501
|
+
name: string;
|
|
1474
1502
|
createdAt: string;
|
|
1475
1503
|
updatedAt: string;
|
|
1476
1504
|
storeId: string;
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
stock: number | null;
|
|
1484
|
-
depth: number | null;
|
|
1485
|
-
width: number | null;
|
|
1486
|
-
height: number | null;
|
|
1487
|
-
weight: number | null;
|
|
1488
|
-
digital: string[] | null;
|
|
1489
|
-
shippable: boolean;
|
|
1490
|
-
externalId: string | null;
|
|
1491
|
-
productId: string;
|
|
1492
|
-
attributes: unknown;
|
|
1493
|
-
originalPrice: string;
|
|
1494
|
-
}[];
|
|
1495
|
-
};
|
|
1496
|
-
combinations: {
|
|
1505
|
+
rate: string;
|
|
1506
|
+
label: string | null;
|
|
1507
|
+
};
|
|
1508
|
+
} | null;
|
|
1509
|
+
variants: {
|
|
1510
|
+
id: string;
|
|
1497
1511
|
createdAt: string;
|
|
1498
1512
|
updatedAt: string;
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1513
|
+
storeId: string;
|
|
1514
|
+
description: string | null;
|
|
1515
|
+
price: string;
|
|
1516
|
+
images: string[];
|
|
1517
|
+
sku: string | null;
|
|
1518
|
+
barcode: string | null;
|
|
1519
|
+
calculatedPrice: string | null;
|
|
1520
|
+
stock: number | null;
|
|
1521
|
+
depth: number | null;
|
|
1522
|
+
width: number | null;
|
|
1523
|
+
height: number | null;
|
|
1524
|
+
weight: number | null;
|
|
1525
|
+
digital: string[] | null;
|
|
1526
|
+
shippable: boolean;
|
|
1527
|
+
externalId: string | null;
|
|
1528
|
+
productId: string;
|
|
1529
|
+
attributes: unknown;
|
|
1530
|
+
originalPrice: string;
|
|
1511
1531
|
}[];
|
|
1512
1532
|
};
|
|
1513
|
-
}[];
|
|
1514
|
-
tr: {
|
|
1515
|
-
locale: string;
|
|
1516
|
-
}[];
|
|
1517
|
-
variants: {
|
|
1518
|
-
id: string;
|
|
1519
|
-
createdAt: string;
|
|
1520
|
-
updatedAt: string;
|
|
1521
|
-
storeId: string;
|
|
1522
|
-
description: string | null;
|
|
1523
|
-
price: string;
|
|
1524
|
-
images: string[];
|
|
1525
|
-
sku: string | null;
|
|
1526
|
-
barcode: string | null;
|
|
1527
|
-
calculatedPrice: string | null;
|
|
1528
|
-
stock: number | null;
|
|
1529
|
-
depth: number | null;
|
|
1530
|
-
width: number | null;
|
|
1531
|
-
height: number | null;
|
|
1532
|
-
weight: number | null;
|
|
1533
|
-
digital: string[] | null;
|
|
1534
|
-
shippable: boolean;
|
|
1535
|
-
externalId: string | null;
|
|
1536
|
-
productId: string;
|
|
1537
|
-
attributes: unknown;
|
|
1538
|
-
originalPrice: string;
|
|
1539
1533
|
combinations: {
|
|
1540
1534
|
createdAt: string;
|
|
1541
1535
|
updatedAt: string;
|
|
@@ -1552,1107 +1546,192 @@ type APIProductsBrowseResult = Omit<{
|
|
|
1552
1546
|
};
|
|
1553
1547
|
};
|
|
1554
1548
|
}[];
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
calculatedPrice: string | null;
|
|
1562
|
-
variantId: string;
|
|
1563
|
-
}[];
|
|
1564
|
-
}[];
|
|
1565
|
-
subscriptionPlanProducts: {
|
|
1566
|
-
createdAt: string;
|
|
1567
|
-
updatedAt: string;
|
|
1568
|
-
position: number;
|
|
1569
|
-
productId: string;
|
|
1570
|
-
subscriptionPlanId: string;
|
|
1571
|
-
subscriptionPlan: {
|
|
1572
|
-
id: string;
|
|
1573
|
-
name: string;
|
|
1574
|
-
createdAt: string;
|
|
1575
|
-
updatedAt: string;
|
|
1576
|
-
interval: number;
|
|
1577
|
-
active: boolean;
|
|
1578
|
-
storeId: string;
|
|
1579
|
-
description: string | null;
|
|
1580
|
-
position: number;
|
|
1581
|
-
cadence: "month" | "week";
|
|
1582
|
-
discountPercent: number;
|
|
1583
|
-
benefits: string | null;
|
|
1584
|
-
};
|
|
1585
|
-
}[];
|
|
1586
|
-
} & {
|
|
1587
|
-
variants: ({
|
|
1588
|
-
id: string;
|
|
1589
|
-
price: string;
|
|
1590
|
-
} & {
|
|
1591
|
-
prePromotionPrice: string | null;
|
|
1592
|
-
})[];
|
|
1593
|
-
}) | ({
|
|
1549
|
+
};
|
|
1550
|
+
}[];
|
|
1551
|
+
tr: {
|
|
1552
|
+
locale: string;
|
|
1553
|
+
}[];
|
|
1554
|
+
variants: Omit<({
|
|
1594
1555
|
id: string;
|
|
1595
|
-
name: string;
|
|
1596
1556
|
createdAt: string;
|
|
1597
1557
|
updatedAt: string;
|
|
1598
|
-
type: "set" | "product" | "bundle";
|
|
1599
|
-
slug: string;
|
|
1600
|
-
status: "published" | "draft" | "hidden" | null;
|
|
1601
|
-
flags: unknown;
|
|
1602
1558
|
storeId: string;
|
|
1603
|
-
|
|
1604
|
-
|
|
1559
|
+
description: string | null;
|
|
1560
|
+
price: string;
|
|
1605
1561
|
images: string[];
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
name: string;
|
|
1622
|
-
image: string | null;
|
|
1623
|
-
createdAt: string;
|
|
1624
|
-
updatedAt: string;
|
|
1625
|
-
slug: string;
|
|
1626
|
-
active: boolean;
|
|
1627
|
-
storeId: string;
|
|
1628
|
-
description: JSONContent | null;
|
|
1629
|
-
position: string;
|
|
1630
|
-
seo: {
|
|
1631
|
-
title?: string | null | undefined;
|
|
1632
|
-
description?: string | null | undefined;
|
|
1633
|
-
canonical?: string | null | undefined;
|
|
1634
|
-
} | null;
|
|
1635
|
-
longDescription: JSONContent | null;
|
|
1636
|
-
parentId: string | null;
|
|
1637
|
-
} | null;
|
|
1638
|
-
productTaxRate: {
|
|
1639
|
-
createdAt: string;
|
|
1640
|
-
updatedAt: string;
|
|
1641
|
-
taxRateId: string;
|
|
1642
|
-
productId: string;
|
|
1643
|
-
taxRate: {
|
|
1644
|
-
id: string;
|
|
1645
|
-
name: string;
|
|
1646
|
-
createdAt: string;
|
|
1647
|
-
updatedAt: string;
|
|
1648
|
-
storeId: string;
|
|
1649
|
-
rate: string;
|
|
1650
|
-
label: string | null;
|
|
1651
|
-
};
|
|
1652
|
-
} | null;
|
|
1653
|
-
productCollections: {
|
|
1654
|
-
position: string | null;
|
|
1655
|
-
productId: string;
|
|
1656
|
-
collectionId: string;
|
|
1657
|
-
collection: {
|
|
1658
|
-
id: string;
|
|
1659
|
-
name: string;
|
|
1660
|
-
image: string | null;
|
|
1661
|
-
createdAt: string;
|
|
1662
|
-
updatedAt: string;
|
|
1663
|
-
slug: string;
|
|
1664
|
-
active: boolean;
|
|
1665
|
-
filter: {
|
|
1666
|
-
type: "manual";
|
|
1667
|
-
} | {
|
|
1668
|
-
type: "dynamicPrice";
|
|
1669
|
-
min?: number | null | undefined;
|
|
1670
|
-
max?: number | null | undefined;
|
|
1671
|
-
} | {
|
|
1672
|
-
type: "variantValues";
|
|
1673
|
-
values: Record<string, string[]>;
|
|
1674
|
-
} | {
|
|
1675
|
-
type: "newest";
|
|
1676
|
-
days?: number | null | undefined;
|
|
1677
|
-
};
|
|
1678
|
-
storeId: string;
|
|
1679
|
-
description: JSONContent | null;
|
|
1680
|
-
};
|
|
1681
|
-
}[];
|
|
1682
|
-
bundleProducts: {
|
|
1562
|
+
sku: string | null;
|
|
1563
|
+
barcode: string | null;
|
|
1564
|
+
calculatedPrice: string | null;
|
|
1565
|
+
stock: number | null;
|
|
1566
|
+
depth: number | null;
|
|
1567
|
+
width: number | null;
|
|
1568
|
+
height: number | null;
|
|
1569
|
+
weight: number | null;
|
|
1570
|
+
digital: string[] | null;
|
|
1571
|
+
shippable: boolean;
|
|
1572
|
+
externalId: string | null;
|
|
1573
|
+
productId: string;
|
|
1574
|
+
attributes: unknown;
|
|
1575
|
+
originalPrice: string;
|
|
1576
|
+
combinations: {
|
|
1683
1577
|
createdAt: string;
|
|
1684
1578
|
updatedAt: string;
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
quantity: number;
|
|
1689
|
-
variantId: string;
|
|
1690
|
-
groupId: string | null;
|
|
1691
|
-
forced: boolean;
|
|
1692
|
-
defaultSelected: boolean;
|
|
1693
|
-
variant: {
|
|
1579
|
+
productVariantId: string;
|
|
1580
|
+
variantValueId: string;
|
|
1581
|
+
variantValue: {
|
|
1694
1582
|
id: string;
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
description: string | null;
|
|
1699
|
-
price: string;
|
|
1700
|
-
images: string[];
|
|
1701
|
-
sku: string | null;
|
|
1702
|
-
barcode: string | null;
|
|
1703
|
-
calculatedPrice: string | null;
|
|
1704
|
-
stock: number | null;
|
|
1705
|
-
depth: number | null;
|
|
1706
|
-
width: number | null;
|
|
1707
|
-
height: number | null;
|
|
1708
|
-
weight: number | null;
|
|
1709
|
-
digital: string[] | null;
|
|
1710
|
-
shippable: boolean;
|
|
1711
|
-
externalId: string | null;
|
|
1712
|
-
productId: string;
|
|
1713
|
-
attributes: unknown;
|
|
1714
|
-
originalPrice: string;
|
|
1715
|
-
product: {
|
|
1716
|
-
id: string;
|
|
1717
|
-
name: string;
|
|
1718
|
-
slug: string;
|
|
1719
|
-
images: string[];
|
|
1720
|
-
productTaxRate: {
|
|
1721
|
-
createdAt: string;
|
|
1722
|
-
updatedAt: string;
|
|
1723
|
-
taxRateId: string;
|
|
1724
|
-
productId: string;
|
|
1725
|
-
taxRate: {
|
|
1726
|
-
id: string;
|
|
1727
|
-
name: string;
|
|
1728
|
-
createdAt: string;
|
|
1729
|
-
updatedAt: string;
|
|
1730
|
-
storeId: string;
|
|
1731
|
-
rate: string;
|
|
1732
|
-
label: string | null;
|
|
1733
|
-
};
|
|
1734
|
-
} | null;
|
|
1735
|
-
variants: {
|
|
1736
|
-
id: string;
|
|
1737
|
-
createdAt: string;
|
|
1738
|
-
updatedAt: string;
|
|
1739
|
-
storeId: string;
|
|
1740
|
-
description: string | null;
|
|
1741
|
-
price: string;
|
|
1742
|
-
images: string[];
|
|
1743
|
-
sku: string | null;
|
|
1744
|
-
barcode: string | null;
|
|
1745
|
-
calculatedPrice: string | null;
|
|
1746
|
-
stock: number | null;
|
|
1747
|
-
depth: number | null;
|
|
1748
|
-
width: number | null;
|
|
1749
|
-
height: number | null;
|
|
1750
|
-
weight: number | null;
|
|
1751
|
-
digital: string[] | null;
|
|
1752
|
-
shippable: boolean;
|
|
1753
|
-
externalId: string | null;
|
|
1754
|
-
productId: string;
|
|
1755
|
-
attributes: unknown;
|
|
1756
|
-
originalPrice: string;
|
|
1757
|
-
}[];
|
|
1758
|
-
};
|
|
1759
|
-
combinations: {
|
|
1760
|
-
createdAt: string;
|
|
1761
|
-
updatedAt: string;
|
|
1762
|
-
productVariantId: string;
|
|
1763
|
-
variantValueId: string;
|
|
1764
|
-
variantValue: {
|
|
1765
|
-
id: string;
|
|
1766
|
-
value: string;
|
|
1767
|
-
colorValue: string | null;
|
|
1768
|
-
variantType: {
|
|
1769
|
-
id: string;
|
|
1770
|
-
type: "string" | "color";
|
|
1771
|
-
label: string;
|
|
1772
|
-
};
|
|
1773
|
-
};
|
|
1774
|
-
}[];
|
|
1775
|
-
};
|
|
1776
|
-
}[];
|
|
1777
|
-
tr: {
|
|
1778
|
-
locale: string;
|
|
1779
|
-
}[];
|
|
1780
|
-
variants: {
|
|
1781
|
-
id: string;
|
|
1782
|
-
createdAt: string;
|
|
1783
|
-
updatedAt: string;
|
|
1784
|
-
storeId: string;
|
|
1785
|
-
description: string | null;
|
|
1786
|
-
price: string;
|
|
1787
|
-
images: string[];
|
|
1788
|
-
sku: string | null;
|
|
1789
|
-
barcode: string | null;
|
|
1790
|
-
calculatedPrice: string | null;
|
|
1791
|
-
stock: number | null;
|
|
1792
|
-
depth: number | null;
|
|
1793
|
-
width: number | null;
|
|
1794
|
-
height: number | null;
|
|
1795
|
-
weight: number | null;
|
|
1796
|
-
digital: string[] | null;
|
|
1797
|
-
shippable: boolean;
|
|
1798
|
-
externalId: string | null;
|
|
1799
|
-
productId: string;
|
|
1800
|
-
attributes: unknown;
|
|
1801
|
-
originalPrice: string;
|
|
1802
|
-
combinations: {
|
|
1803
|
-
createdAt: string;
|
|
1804
|
-
updatedAt: string;
|
|
1805
|
-
productVariantId: string;
|
|
1806
|
-
variantValueId: string;
|
|
1807
|
-
variantValue: {
|
|
1808
|
-
id: string;
|
|
1809
|
-
value: string;
|
|
1810
|
-
colorValue: string | null;
|
|
1811
|
-
variantType: {
|
|
1812
|
-
id: string;
|
|
1813
|
-
type: "string" | "color";
|
|
1814
|
-
label: string;
|
|
1815
|
-
};
|
|
1816
|
-
};
|
|
1817
|
-
}[];
|
|
1818
|
-
prices: {
|
|
1819
|
-
createdAt: string;
|
|
1820
|
-
updatedAt: string;
|
|
1821
|
-
currency: string;
|
|
1822
|
-
storeId: string;
|
|
1823
|
-
price: string;
|
|
1824
|
-
calculatedPrice: string | null;
|
|
1825
|
-
variantId: string;
|
|
1826
|
-
}[];
|
|
1827
|
-
}[];
|
|
1828
|
-
subscriptionPlanProducts: {
|
|
1829
|
-
createdAt: string;
|
|
1830
|
-
updatedAt: string;
|
|
1831
|
-
position: number;
|
|
1832
|
-
productId: string;
|
|
1833
|
-
subscriptionPlanId: string;
|
|
1834
|
-
subscriptionPlan: {
|
|
1835
|
-
id: string;
|
|
1836
|
-
name: string;
|
|
1837
|
-
createdAt: string;
|
|
1838
|
-
updatedAt: string;
|
|
1839
|
-
interval: number;
|
|
1840
|
-
active: boolean;
|
|
1841
|
-
storeId: string;
|
|
1842
|
-
description: string | null;
|
|
1843
|
-
position: number;
|
|
1844
|
-
cadence: "month" | "week";
|
|
1845
|
-
discountPercent: number;
|
|
1846
|
-
benefits: string | null;
|
|
1847
|
-
};
|
|
1848
|
-
}[];
|
|
1849
|
-
} & {
|
|
1850
|
-
variants: ({
|
|
1851
|
-
id: string;
|
|
1852
|
-
price: string;
|
|
1853
|
-
} & {
|
|
1854
|
-
prePromotionPrice: string | null;
|
|
1855
|
-
})[];
|
|
1856
|
-
}) | ({
|
|
1857
|
-
id: string;
|
|
1858
|
-
name: string;
|
|
1859
|
-
createdAt: string;
|
|
1860
|
-
updatedAt: string;
|
|
1861
|
-
type: "set" | "product" | "bundle";
|
|
1862
|
-
slug: string;
|
|
1863
|
-
status: "published" | "draft" | "hidden" | null;
|
|
1864
|
-
flags: unknown;
|
|
1865
|
-
storeId: string;
|
|
1866
|
-
summary: string | null;
|
|
1867
|
-
content: JSONContent | null;
|
|
1868
|
-
images: string[];
|
|
1869
|
-
badge: unknown;
|
|
1870
|
-
bundleDiscountPercentage: string | null;
|
|
1871
|
-
bundlePriceMode: "fixed" | "percent" | "amount";
|
|
1872
|
-
bundleFixedPriceAmount: string | null;
|
|
1873
|
-
bundleAmountOffAmount: string | null;
|
|
1874
|
-
seo: {
|
|
1875
|
-
title?: string | null | undefined;
|
|
1876
|
-
description?: string | null | undefined;
|
|
1877
|
-
canonical?: string | null | undefined;
|
|
1878
|
-
} | null;
|
|
1879
|
-
stripeTaxCode: string | null;
|
|
1880
|
-
categoryId: string | null;
|
|
1881
|
-
brandId: string | null;
|
|
1882
|
-
category: {
|
|
1883
|
-
id: string;
|
|
1884
|
-
name: string;
|
|
1885
|
-
image: string | null;
|
|
1886
|
-
createdAt: string;
|
|
1887
|
-
updatedAt: string;
|
|
1888
|
-
slug: string;
|
|
1889
|
-
active: boolean;
|
|
1890
|
-
storeId: string;
|
|
1891
|
-
description: JSONContent | null;
|
|
1892
|
-
position: string;
|
|
1893
|
-
seo: {
|
|
1894
|
-
title?: string | null | undefined;
|
|
1895
|
-
description?: string | null | undefined;
|
|
1896
|
-
canonical?: string | null | undefined;
|
|
1897
|
-
} | null;
|
|
1898
|
-
longDescription: JSONContent | null;
|
|
1899
|
-
parentId: string | null;
|
|
1900
|
-
} | null;
|
|
1901
|
-
productTaxRate: {
|
|
1902
|
-
createdAt: string;
|
|
1903
|
-
updatedAt: string;
|
|
1904
|
-
taxRateId: string;
|
|
1905
|
-
productId: string;
|
|
1906
|
-
taxRate: {
|
|
1907
|
-
id: string;
|
|
1908
|
-
name: string;
|
|
1909
|
-
createdAt: string;
|
|
1910
|
-
updatedAt: string;
|
|
1911
|
-
storeId: string;
|
|
1912
|
-
rate: string;
|
|
1913
|
-
label: string | null;
|
|
1914
|
-
};
|
|
1915
|
-
} | null;
|
|
1916
|
-
productCollections: {
|
|
1917
|
-
position: string | null;
|
|
1918
|
-
productId: string;
|
|
1919
|
-
collectionId: string;
|
|
1920
|
-
collection: {
|
|
1921
|
-
id: string;
|
|
1922
|
-
name: string;
|
|
1923
|
-
image: string | null;
|
|
1924
|
-
createdAt: string;
|
|
1925
|
-
updatedAt: string;
|
|
1926
|
-
slug: string;
|
|
1927
|
-
active: boolean;
|
|
1928
|
-
filter: {
|
|
1929
|
-
type: "manual";
|
|
1930
|
-
} | {
|
|
1931
|
-
type: "dynamicPrice";
|
|
1932
|
-
min?: number | null | undefined;
|
|
1933
|
-
max?: number | null | undefined;
|
|
1934
|
-
} | {
|
|
1935
|
-
type: "variantValues";
|
|
1936
|
-
values: Record<string, string[]>;
|
|
1937
|
-
} | {
|
|
1938
|
-
type: "newest";
|
|
1939
|
-
days?: number | null | undefined;
|
|
1940
|
-
};
|
|
1941
|
-
storeId: string;
|
|
1942
|
-
description: JSONContent | null;
|
|
1943
|
-
};
|
|
1944
|
-
}[];
|
|
1945
|
-
bundleProducts: {
|
|
1946
|
-
createdAt: string;
|
|
1947
|
-
updatedAt: string;
|
|
1948
|
-
position: number;
|
|
1949
|
-
bundleId: string;
|
|
1950
|
-
maxQuantity: number | null;
|
|
1951
|
-
quantity: number;
|
|
1952
|
-
variantId: string;
|
|
1953
|
-
groupId: string | null;
|
|
1954
|
-
forced: boolean;
|
|
1955
|
-
defaultSelected: boolean;
|
|
1956
|
-
variant: {
|
|
1957
|
-
id: string;
|
|
1958
|
-
createdAt: string;
|
|
1959
|
-
updatedAt: string;
|
|
1960
|
-
storeId: string;
|
|
1961
|
-
description: string | null;
|
|
1962
|
-
price: string;
|
|
1963
|
-
images: string[];
|
|
1964
|
-
sku: string | null;
|
|
1965
|
-
barcode: string | null;
|
|
1966
|
-
calculatedPrice: string | null;
|
|
1967
|
-
stock: number | null;
|
|
1968
|
-
depth: number | null;
|
|
1969
|
-
width: number | null;
|
|
1970
|
-
height: number | null;
|
|
1971
|
-
weight: number | null;
|
|
1972
|
-
digital: string[] | null;
|
|
1973
|
-
shippable: boolean;
|
|
1974
|
-
externalId: string | null;
|
|
1975
|
-
productId: string;
|
|
1976
|
-
attributes: unknown;
|
|
1977
|
-
originalPrice: string;
|
|
1978
|
-
product: {
|
|
1979
|
-
id: string;
|
|
1980
|
-
name: string;
|
|
1981
|
-
slug: string;
|
|
1982
|
-
images: string[];
|
|
1983
|
-
productTaxRate: {
|
|
1984
|
-
createdAt: string;
|
|
1985
|
-
updatedAt: string;
|
|
1986
|
-
taxRateId: string;
|
|
1987
|
-
productId: string;
|
|
1988
|
-
taxRate: {
|
|
1989
|
-
id: string;
|
|
1990
|
-
name: string;
|
|
1991
|
-
createdAt: string;
|
|
1992
|
-
updatedAt: string;
|
|
1993
|
-
storeId: string;
|
|
1994
|
-
rate: string;
|
|
1995
|
-
label: string | null;
|
|
1996
|
-
};
|
|
1997
|
-
} | null;
|
|
1998
|
-
variants: {
|
|
1999
|
-
id: string;
|
|
2000
|
-
createdAt: string;
|
|
2001
|
-
updatedAt: string;
|
|
2002
|
-
storeId: string;
|
|
2003
|
-
description: string | null;
|
|
2004
|
-
price: string;
|
|
2005
|
-
images: string[];
|
|
2006
|
-
sku: string | null;
|
|
2007
|
-
barcode: string | null;
|
|
2008
|
-
calculatedPrice: string | null;
|
|
2009
|
-
stock: number | null;
|
|
2010
|
-
depth: number | null;
|
|
2011
|
-
width: number | null;
|
|
2012
|
-
height: number | null;
|
|
2013
|
-
weight: number | null;
|
|
2014
|
-
digital: string[] | null;
|
|
2015
|
-
shippable: boolean;
|
|
2016
|
-
externalId: string | null;
|
|
2017
|
-
productId: string;
|
|
2018
|
-
attributes: unknown;
|
|
2019
|
-
originalPrice: string;
|
|
2020
|
-
}[];
|
|
2021
|
-
};
|
|
2022
|
-
combinations: {
|
|
2023
|
-
createdAt: string;
|
|
2024
|
-
updatedAt: string;
|
|
2025
|
-
productVariantId: string;
|
|
2026
|
-
variantValueId: string;
|
|
2027
|
-
variantValue: {
|
|
2028
|
-
id: string;
|
|
2029
|
-
value: string;
|
|
2030
|
-
colorValue: string | null;
|
|
2031
|
-
variantType: {
|
|
2032
|
-
id: string;
|
|
2033
|
-
type: "string" | "color";
|
|
2034
|
-
label: string;
|
|
2035
|
-
};
|
|
2036
|
-
};
|
|
2037
|
-
}[];
|
|
2038
|
-
};
|
|
2039
|
-
}[];
|
|
2040
|
-
tr: {
|
|
2041
|
-
locale: string;
|
|
2042
|
-
}[];
|
|
2043
|
-
variants: {
|
|
2044
|
-
id: string;
|
|
2045
|
-
createdAt: string;
|
|
2046
|
-
updatedAt: string;
|
|
2047
|
-
storeId: string;
|
|
2048
|
-
description: string | null;
|
|
2049
|
-
price: string;
|
|
2050
|
-
images: string[];
|
|
2051
|
-
sku: string | null;
|
|
2052
|
-
barcode: string | null;
|
|
2053
|
-
calculatedPrice: string | null;
|
|
2054
|
-
stock: number | null;
|
|
2055
|
-
depth: number | null;
|
|
2056
|
-
width: number | null;
|
|
2057
|
-
height: number | null;
|
|
2058
|
-
weight: number | null;
|
|
2059
|
-
digital: string[] | null;
|
|
2060
|
-
shippable: boolean;
|
|
2061
|
-
externalId: string | null;
|
|
2062
|
-
productId: string;
|
|
2063
|
-
attributes: unknown;
|
|
2064
|
-
originalPrice: string;
|
|
2065
|
-
combinations: {
|
|
2066
|
-
createdAt: string;
|
|
2067
|
-
updatedAt: string;
|
|
2068
|
-
productVariantId: string;
|
|
2069
|
-
variantValueId: string;
|
|
2070
|
-
variantValue: {
|
|
2071
|
-
id: string;
|
|
2072
|
-
value: string;
|
|
2073
|
-
colorValue: string | null;
|
|
2074
|
-
variantType: {
|
|
2075
|
-
id: string;
|
|
2076
|
-
type: "string" | "color";
|
|
2077
|
-
label: string;
|
|
2078
|
-
};
|
|
2079
|
-
};
|
|
2080
|
-
}[];
|
|
2081
|
-
prices: {
|
|
2082
|
-
createdAt: string;
|
|
2083
|
-
updatedAt: string;
|
|
2084
|
-
currency: string;
|
|
2085
|
-
storeId: string;
|
|
2086
|
-
price: string;
|
|
2087
|
-
calculatedPrice: string | null;
|
|
2088
|
-
variantId: string;
|
|
2089
|
-
}[];
|
|
2090
|
-
}[];
|
|
2091
|
-
subscriptionPlanProducts: {
|
|
2092
|
-
createdAt: string;
|
|
2093
|
-
updatedAt: string;
|
|
2094
|
-
position: number;
|
|
2095
|
-
productId: string;
|
|
2096
|
-
subscriptionPlanId: string;
|
|
2097
|
-
subscriptionPlan: {
|
|
2098
|
-
id: string;
|
|
2099
|
-
name: string;
|
|
2100
|
-
createdAt: string;
|
|
2101
|
-
updatedAt: string;
|
|
2102
|
-
interval: number;
|
|
2103
|
-
active: boolean;
|
|
2104
|
-
storeId: string;
|
|
2105
|
-
description: string | null;
|
|
2106
|
-
position: number;
|
|
2107
|
-
cadence: "month" | "week";
|
|
2108
|
-
discountPercent: number;
|
|
2109
|
-
benefits: string | null;
|
|
2110
|
-
};
|
|
2111
|
-
}[];
|
|
2112
|
-
} & {
|
|
2113
|
-
variants: ({
|
|
2114
|
-
id: string;
|
|
2115
|
-
price: string;
|
|
2116
|
-
} & {
|
|
2117
|
-
prePromotionPrice: string | null;
|
|
2118
|
-
})[];
|
|
2119
|
-
}) | ({
|
|
2120
|
-
id: string;
|
|
2121
|
-
name: string;
|
|
2122
|
-
createdAt: string;
|
|
2123
|
-
updatedAt: string;
|
|
2124
|
-
type: "set" | "product" | "bundle";
|
|
2125
|
-
slug: string;
|
|
2126
|
-
status: "published" | "draft" | "hidden" | null;
|
|
2127
|
-
flags: unknown;
|
|
2128
|
-
storeId: string;
|
|
2129
|
-
summary: string | null;
|
|
2130
|
-
content: JSONContent | null;
|
|
2131
|
-
images: string[];
|
|
2132
|
-
badge: unknown;
|
|
2133
|
-
bundleDiscountPercentage: string | null;
|
|
2134
|
-
bundlePriceMode: "fixed" | "percent" | "amount";
|
|
2135
|
-
bundleFixedPriceAmount: string | null;
|
|
2136
|
-
bundleAmountOffAmount: string | null;
|
|
2137
|
-
seo: {
|
|
2138
|
-
title?: string | null | undefined;
|
|
2139
|
-
description?: string | null | undefined;
|
|
2140
|
-
canonical?: string | null | undefined;
|
|
2141
|
-
} | null;
|
|
2142
|
-
stripeTaxCode: string | null;
|
|
2143
|
-
categoryId: string | null;
|
|
2144
|
-
brandId: string | null;
|
|
2145
|
-
category: {
|
|
2146
|
-
id: string;
|
|
2147
|
-
name: string;
|
|
2148
|
-
image: string | null;
|
|
2149
|
-
createdAt: string;
|
|
2150
|
-
updatedAt: string;
|
|
2151
|
-
slug: string;
|
|
2152
|
-
active: boolean;
|
|
2153
|
-
storeId: string;
|
|
2154
|
-
description: JSONContent | null;
|
|
2155
|
-
position: string;
|
|
2156
|
-
seo: {
|
|
2157
|
-
title?: string | null | undefined;
|
|
2158
|
-
description?: string | null | undefined;
|
|
2159
|
-
canonical?: string | null | undefined;
|
|
2160
|
-
} | null;
|
|
2161
|
-
longDescription: JSONContent | null;
|
|
2162
|
-
parentId: string | null;
|
|
2163
|
-
} | null;
|
|
2164
|
-
productTaxRate: {
|
|
2165
|
-
createdAt: string;
|
|
2166
|
-
updatedAt: string;
|
|
2167
|
-
taxRateId: string;
|
|
2168
|
-
productId: string;
|
|
2169
|
-
taxRate: {
|
|
2170
|
-
id: string;
|
|
2171
|
-
name: string;
|
|
2172
|
-
createdAt: string;
|
|
2173
|
-
updatedAt: string;
|
|
2174
|
-
storeId: string;
|
|
2175
|
-
rate: string;
|
|
2176
|
-
label: string | null;
|
|
2177
|
-
};
|
|
2178
|
-
} | null;
|
|
2179
|
-
productCollections: {
|
|
2180
|
-
position: string | null;
|
|
2181
|
-
productId: string;
|
|
2182
|
-
collectionId: string;
|
|
2183
|
-
collection: {
|
|
2184
|
-
id: string;
|
|
2185
|
-
name: string;
|
|
2186
|
-
image: string | null;
|
|
2187
|
-
createdAt: string;
|
|
2188
|
-
updatedAt: string;
|
|
2189
|
-
slug: string;
|
|
2190
|
-
active: boolean;
|
|
2191
|
-
filter: {
|
|
2192
|
-
type: "manual";
|
|
2193
|
-
} | {
|
|
2194
|
-
type: "dynamicPrice";
|
|
2195
|
-
min?: number | null | undefined;
|
|
2196
|
-
max?: number | null | undefined;
|
|
2197
|
-
} | {
|
|
2198
|
-
type: "variantValues";
|
|
2199
|
-
values: Record<string, string[]>;
|
|
2200
|
-
} | {
|
|
2201
|
-
type: "newest";
|
|
2202
|
-
days?: number | null | undefined;
|
|
2203
|
-
};
|
|
2204
|
-
storeId: string;
|
|
2205
|
-
description: JSONContent | null;
|
|
2206
|
-
};
|
|
2207
|
-
}[];
|
|
2208
|
-
bundleProducts: {
|
|
2209
|
-
createdAt: string;
|
|
2210
|
-
updatedAt: string;
|
|
2211
|
-
position: number;
|
|
2212
|
-
bundleId: string;
|
|
2213
|
-
maxQuantity: number | null;
|
|
2214
|
-
quantity: number;
|
|
2215
|
-
variantId: string;
|
|
2216
|
-
groupId: string | null;
|
|
2217
|
-
forced: boolean;
|
|
2218
|
-
defaultSelected: boolean;
|
|
2219
|
-
variant: {
|
|
2220
|
-
id: string;
|
|
2221
|
-
createdAt: string;
|
|
2222
|
-
updatedAt: string;
|
|
2223
|
-
storeId: string;
|
|
2224
|
-
description: string | null;
|
|
2225
|
-
price: string;
|
|
2226
|
-
images: string[];
|
|
2227
|
-
sku: string | null;
|
|
2228
|
-
barcode: string | null;
|
|
2229
|
-
calculatedPrice: string | null;
|
|
2230
|
-
stock: number | null;
|
|
2231
|
-
depth: number | null;
|
|
2232
|
-
width: number | null;
|
|
2233
|
-
height: number | null;
|
|
2234
|
-
weight: number | null;
|
|
2235
|
-
digital: string[] | null;
|
|
2236
|
-
shippable: boolean;
|
|
2237
|
-
externalId: string | null;
|
|
2238
|
-
productId: string;
|
|
2239
|
-
attributes: unknown;
|
|
2240
|
-
originalPrice: string;
|
|
2241
|
-
product: {
|
|
2242
|
-
id: string;
|
|
2243
|
-
name: string;
|
|
2244
|
-
slug: string;
|
|
2245
|
-
images: string[];
|
|
2246
|
-
productTaxRate: {
|
|
2247
|
-
createdAt: string;
|
|
2248
|
-
updatedAt: string;
|
|
2249
|
-
taxRateId: string;
|
|
2250
|
-
productId: string;
|
|
2251
|
-
taxRate: {
|
|
2252
|
-
id: string;
|
|
2253
|
-
name: string;
|
|
2254
|
-
createdAt: string;
|
|
2255
|
-
updatedAt: string;
|
|
2256
|
-
storeId: string;
|
|
2257
|
-
rate: string;
|
|
2258
|
-
label: string | null;
|
|
2259
|
-
};
|
|
2260
|
-
} | null;
|
|
2261
|
-
variants: {
|
|
2262
|
-
id: string;
|
|
2263
|
-
createdAt: string;
|
|
2264
|
-
updatedAt: string;
|
|
2265
|
-
storeId: string;
|
|
2266
|
-
description: string | null;
|
|
2267
|
-
price: string;
|
|
2268
|
-
images: string[];
|
|
2269
|
-
sku: string | null;
|
|
2270
|
-
barcode: string | null;
|
|
2271
|
-
calculatedPrice: string | null;
|
|
2272
|
-
stock: number | null;
|
|
2273
|
-
depth: number | null;
|
|
2274
|
-
width: number | null;
|
|
2275
|
-
height: number | null;
|
|
2276
|
-
weight: number | null;
|
|
2277
|
-
digital: string[] | null;
|
|
2278
|
-
shippable: boolean;
|
|
2279
|
-
externalId: string | null;
|
|
2280
|
-
productId: string;
|
|
2281
|
-
attributes: unknown;
|
|
2282
|
-
originalPrice: string;
|
|
2283
|
-
}[];
|
|
2284
|
-
};
|
|
2285
|
-
combinations: {
|
|
2286
|
-
createdAt: string;
|
|
2287
|
-
updatedAt: string;
|
|
2288
|
-
productVariantId: string;
|
|
2289
|
-
variantValueId: string;
|
|
2290
|
-
variantValue: {
|
|
2291
|
-
id: string;
|
|
2292
|
-
value: string;
|
|
2293
|
-
colorValue: string | null;
|
|
2294
|
-
variantType: {
|
|
2295
|
-
id: string;
|
|
2296
|
-
type: "string" | "color";
|
|
2297
|
-
label: string;
|
|
2298
|
-
};
|
|
2299
|
-
};
|
|
2300
|
-
}[];
|
|
2301
|
-
};
|
|
2302
|
-
}[];
|
|
2303
|
-
tr: {
|
|
2304
|
-
locale: string;
|
|
2305
|
-
}[];
|
|
2306
|
-
variants: {
|
|
2307
|
-
id: string;
|
|
2308
|
-
createdAt: string;
|
|
2309
|
-
updatedAt: string;
|
|
2310
|
-
storeId: string;
|
|
2311
|
-
description: string | null;
|
|
2312
|
-
price: string;
|
|
2313
|
-
images: string[];
|
|
2314
|
-
sku: string | null;
|
|
2315
|
-
barcode: string | null;
|
|
2316
|
-
calculatedPrice: string | null;
|
|
2317
|
-
stock: number | null;
|
|
2318
|
-
depth: number | null;
|
|
2319
|
-
width: number | null;
|
|
2320
|
-
height: number | null;
|
|
2321
|
-
weight: number | null;
|
|
2322
|
-
digital: string[] | null;
|
|
2323
|
-
shippable: boolean;
|
|
2324
|
-
externalId: string | null;
|
|
2325
|
-
productId: string;
|
|
2326
|
-
attributes: unknown;
|
|
2327
|
-
originalPrice: string;
|
|
2328
|
-
combinations: {
|
|
2329
|
-
createdAt: string;
|
|
2330
|
-
updatedAt: string;
|
|
2331
|
-
productVariantId: string;
|
|
2332
|
-
variantValueId: string;
|
|
2333
|
-
variantValue: {
|
|
2334
|
-
id: string;
|
|
2335
|
-
value: string;
|
|
2336
|
-
colorValue: string | null;
|
|
2337
|
-
variantType: {
|
|
2338
|
-
id: string;
|
|
2339
|
-
type: "string" | "color";
|
|
2340
|
-
label: string;
|
|
2341
|
-
};
|
|
2342
|
-
};
|
|
2343
|
-
}[];
|
|
2344
|
-
prices: {
|
|
2345
|
-
createdAt: string;
|
|
2346
|
-
updatedAt: string;
|
|
2347
|
-
currency: string;
|
|
2348
|
-
storeId: string;
|
|
2349
|
-
price: string;
|
|
2350
|
-
calculatedPrice: string | null;
|
|
2351
|
-
variantId: string;
|
|
2352
|
-
}[];
|
|
2353
|
-
}[];
|
|
2354
|
-
subscriptionPlanProducts: {
|
|
2355
|
-
createdAt: string;
|
|
2356
|
-
updatedAt: string;
|
|
2357
|
-
position: number;
|
|
2358
|
-
productId: string;
|
|
2359
|
-
subscriptionPlanId: string;
|
|
2360
|
-
subscriptionPlan: {
|
|
2361
|
-
id: string;
|
|
2362
|
-
name: string;
|
|
2363
|
-
createdAt: string;
|
|
2364
|
-
updatedAt: string;
|
|
2365
|
-
interval: number;
|
|
2366
|
-
active: boolean;
|
|
2367
|
-
storeId: string;
|
|
2368
|
-
description: string | null;
|
|
2369
|
-
position: number;
|
|
2370
|
-
cadence: "month" | "week";
|
|
2371
|
-
discountPercent: number;
|
|
2372
|
-
benefits: string | null;
|
|
2373
|
-
};
|
|
2374
|
-
}[];
|
|
2375
|
-
} & {
|
|
2376
|
-
variants: ({
|
|
2377
|
-
id: string;
|
|
2378
|
-
price: string;
|
|
2379
|
-
} & {
|
|
2380
|
-
price: string;
|
|
2381
|
-
} & {
|
|
2382
|
-
prePromotionPrice: string | null;
|
|
2383
|
-
})[];
|
|
2384
|
-
}) | ({
|
|
2385
|
-
id: string;
|
|
2386
|
-
name: string;
|
|
2387
|
-
createdAt: string;
|
|
2388
|
-
updatedAt: string;
|
|
2389
|
-
type: "set" | "product" | "bundle";
|
|
2390
|
-
slug: string;
|
|
2391
|
-
status: "published" | "draft" | "hidden" | null;
|
|
2392
|
-
flags: unknown;
|
|
2393
|
-
storeId: string;
|
|
2394
|
-
summary: string | null;
|
|
2395
|
-
content: JSONContent | null;
|
|
2396
|
-
images: string[];
|
|
2397
|
-
badge: unknown;
|
|
2398
|
-
bundleDiscountPercentage: string | null;
|
|
2399
|
-
bundlePriceMode: "fixed" | "percent" | "amount";
|
|
2400
|
-
bundleFixedPriceAmount: string | null;
|
|
2401
|
-
bundleAmountOffAmount: string | null;
|
|
2402
|
-
seo: {
|
|
2403
|
-
title?: string | null | undefined;
|
|
2404
|
-
description?: string | null | undefined;
|
|
2405
|
-
canonical?: string | null | undefined;
|
|
2406
|
-
} | null;
|
|
2407
|
-
stripeTaxCode: string | null;
|
|
2408
|
-
categoryId: string | null;
|
|
2409
|
-
brandId: string | null;
|
|
2410
|
-
category: {
|
|
2411
|
-
id: string;
|
|
2412
|
-
name: string;
|
|
2413
|
-
image: string | null;
|
|
2414
|
-
createdAt: string;
|
|
2415
|
-
updatedAt: string;
|
|
2416
|
-
slug: string;
|
|
2417
|
-
active: boolean;
|
|
2418
|
-
storeId: string;
|
|
2419
|
-
description: JSONContent | null;
|
|
2420
|
-
position: string;
|
|
2421
|
-
seo: {
|
|
2422
|
-
title?: string | null | undefined;
|
|
2423
|
-
description?: string | null | undefined;
|
|
2424
|
-
canonical?: string | null | undefined;
|
|
2425
|
-
} | null;
|
|
2426
|
-
longDescription: JSONContent | null;
|
|
2427
|
-
parentId: string | null;
|
|
2428
|
-
} | null;
|
|
2429
|
-
productTaxRate: {
|
|
2430
|
-
createdAt: string;
|
|
2431
|
-
updatedAt: string;
|
|
2432
|
-
taxRateId: string;
|
|
2433
|
-
productId: string;
|
|
2434
|
-
taxRate: {
|
|
2435
|
-
id: string;
|
|
2436
|
-
name: string;
|
|
2437
|
-
createdAt: string;
|
|
2438
|
-
updatedAt: string;
|
|
2439
|
-
storeId: string;
|
|
2440
|
-
rate: string;
|
|
2441
|
-
label: string | null;
|
|
2442
|
-
};
|
|
2443
|
-
} | null;
|
|
2444
|
-
productCollections: {
|
|
2445
|
-
position: string | null;
|
|
2446
|
-
productId: string;
|
|
2447
|
-
collectionId: string;
|
|
2448
|
-
collection: {
|
|
2449
|
-
id: string;
|
|
2450
|
-
name: string;
|
|
2451
|
-
image: string | null;
|
|
2452
|
-
createdAt: string;
|
|
2453
|
-
updatedAt: string;
|
|
2454
|
-
slug: string;
|
|
2455
|
-
active: boolean;
|
|
2456
|
-
filter: {
|
|
2457
|
-
type: "manual";
|
|
2458
|
-
} | {
|
|
2459
|
-
type: "dynamicPrice";
|
|
2460
|
-
min?: number | null | undefined;
|
|
2461
|
-
max?: number | null | undefined;
|
|
2462
|
-
} | {
|
|
2463
|
-
type: "variantValues";
|
|
2464
|
-
values: Record<string, string[]>;
|
|
2465
|
-
} | {
|
|
2466
|
-
type: "newest";
|
|
2467
|
-
days?: number | null | undefined;
|
|
2468
|
-
};
|
|
2469
|
-
storeId: string;
|
|
2470
|
-
description: JSONContent | null;
|
|
2471
|
-
};
|
|
2472
|
-
}[];
|
|
2473
|
-
bundleProducts: {
|
|
2474
|
-
createdAt: string;
|
|
2475
|
-
updatedAt: string;
|
|
2476
|
-
position: number;
|
|
2477
|
-
bundleId: string;
|
|
2478
|
-
maxQuantity: number | null;
|
|
2479
|
-
quantity: number;
|
|
2480
|
-
variantId: string;
|
|
2481
|
-
groupId: string | null;
|
|
2482
|
-
forced: boolean;
|
|
2483
|
-
defaultSelected: boolean;
|
|
2484
|
-
variant: {
|
|
2485
|
-
id: string;
|
|
2486
|
-
createdAt: string;
|
|
2487
|
-
updatedAt: string;
|
|
2488
|
-
storeId: string;
|
|
2489
|
-
description: string | null;
|
|
2490
|
-
price: string;
|
|
2491
|
-
images: string[];
|
|
2492
|
-
sku: string | null;
|
|
2493
|
-
barcode: string | null;
|
|
2494
|
-
calculatedPrice: string | null;
|
|
2495
|
-
stock: number | null;
|
|
2496
|
-
depth: number | null;
|
|
2497
|
-
width: number | null;
|
|
2498
|
-
height: number | null;
|
|
2499
|
-
weight: number | null;
|
|
2500
|
-
digital: string[] | null;
|
|
2501
|
-
shippable: boolean;
|
|
2502
|
-
externalId: string | null;
|
|
2503
|
-
productId: string;
|
|
2504
|
-
attributes: unknown;
|
|
2505
|
-
originalPrice: string;
|
|
2506
|
-
product: {
|
|
1583
|
+
value: string;
|
|
1584
|
+
colorValue: string | null;
|
|
1585
|
+
variantType: {
|
|
2507
1586
|
id: string;
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
images: string[];
|
|
2511
|
-
productTaxRate: {
|
|
2512
|
-
createdAt: string;
|
|
2513
|
-
updatedAt: string;
|
|
2514
|
-
taxRateId: string;
|
|
2515
|
-
productId: string;
|
|
2516
|
-
taxRate: {
|
|
2517
|
-
id: string;
|
|
2518
|
-
name: string;
|
|
2519
|
-
createdAt: string;
|
|
2520
|
-
updatedAt: string;
|
|
2521
|
-
storeId: string;
|
|
2522
|
-
rate: string;
|
|
2523
|
-
label: string | null;
|
|
2524
|
-
};
|
|
2525
|
-
} | null;
|
|
2526
|
-
variants: {
|
|
2527
|
-
id: string;
|
|
2528
|
-
createdAt: string;
|
|
2529
|
-
updatedAt: string;
|
|
2530
|
-
storeId: string;
|
|
2531
|
-
description: string | null;
|
|
2532
|
-
price: string;
|
|
2533
|
-
images: string[];
|
|
2534
|
-
sku: string | null;
|
|
2535
|
-
barcode: string | null;
|
|
2536
|
-
calculatedPrice: string | null;
|
|
2537
|
-
stock: number | null;
|
|
2538
|
-
depth: number | null;
|
|
2539
|
-
width: number | null;
|
|
2540
|
-
height: number | null;
|
|
2541
|
-
weight: number | null;
|
|
2542
|
-
digital: string[] | null;
|
|
2543
|
-
shippable: boolean;
|
|
2544
|
-
externalId: string | null;
|
|
2545
|
-
productId: string;
|
|
2546
|
-
attributes: unknown;
|
|
2547
|
-
originalPrice: string;
|
|
2548
|
-
}[];
|
|
1587
|
+
type: "string" | "color";
|
|
1588
|
+
label: string;
|
|
2549
1589
|
};
|
|
2550
|
-
combinations: {
|
|
2551
|
-
createdAt: string;
|
|
2552
|
-
updatedAt: string;
|
|
2553
|
-
productVariantId: string;
|
|
2554
|
-
variantValueId: string;
|
|
2555
|
-
variantValue: {
|
|
2556
|
-
id: string;
|
|
2557
|
-
value: string;
|
|
2558
|
-
colorValue: string | null;
|
|
2559
|
-
variantType: {
|
|
2560
|
-
id: string;
|
|
2561
|
-
type: "string" | "color";
|
|
2562
|
-
label: string;
|
|
2563
|
-
};
|
|
2564
|
-
};
|
|
2565
|
-
}[];
|
|
2566
1590
|
};
|
|
2567
1591
|
}[];
|
|
2568
|
-
|
|
2569
|
-
locale: string;
|
|
2570
|
-
}[];
|
|
2571
|
-
variants: {
|
|
2572
|
-
id: string;
|
|
1592
|
+
prices: {
|
|
2573
1593
|
createdAt: string;
|
|
2574
1594
|
updatedAt: string;
|
|
1595
|
+
currency: string;
|
|
2575
1596
|
storeId: string;
|
|
2576
|
-
description: string | null;
|
|
2577
1597
|
price: string;
|
|
2578
|
-
images: string[];
|
|
2579
|
-
sku: string | null;
|
|
2580
|
-
barcode: string | null;
|
|
2581
1598
|
calculatedPrice: string | null;
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
|
|
2591
|
-
|
|
2592
|
-
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
|
|
1599
|
+
variantId: string;
|
|
1600
|
+
}[];
|
|
1601
|
+
} & {
|
|
1602
|
+
id: string;
|
|
1603
|
+
price: string;
|
|
1604
|
+
} & {
|
|
1605
|
+
prePromotionPrice: string | null;
|
|
1606
|
+
}) | ({
|
|
1607
|
+
id: string;
|
|
1608
|
+
createdAt: string;
|
|
1609
|
+
updatedAt: string;
|
|
1610
|
+
storeId: string;
|
|
1611
|
+
description: string | null;
|
|
1612
|
+
price: string;
|
|
1613
|
+
images: string[];
|
|
1614
|
+
sku: string | null;
|
|
1615
|
+
barcode: string | null;
|
|
1616
|
+
calculatedPrice: string | null;
|
|
1617
|
+
stock: number | null;
|
|
1618
|
+
depth: number | null;
|
|
1619
|
+
width: number | null;
|
|
1620
|
+
height: number | null;
|
|
1621
|
+
weight: number | null;
|
|
1622
|
+
digital: string[] | null;
|
|
1623
|
+
shippable: boolean;
|
|
1624
|
+
externalId: string | null;
|
|
1625
|
+
productId: string;
|
|
1626
|
+
attributes: unknown;
|
|
1627
|
+
originalPrice: string;
|
|
1628
|
+
combinations: {
|
|
1629
|
+
createdAt: string;
|
|
1630
|
+
updatedAt: string;
|
|
1631
|
+
productVariantId: string;
|
|
1632
|
+
variantValueId: string;
|
|
1633
|
+
variantValue: {
|
|
1634
|
+
id: string;
|
|
1635
|
+
value: string;
|
|
1636
|
+
colorValue: string | null;
|
|
1637
|
+
variantType: {
|
|
2599
1638
|
id: string;
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
variantType: {
|
|
2603
|
-
id: string;
|
|
2604
|
-
type: "string" | "color";
|
|
2605
|
-
label: string;
|
|
2606
|
-
};
|
|
1639
|
+
type: "string" | "color";
|
|
1640
|
+
label: string;
|
|
2607
1641
|
};
|
|
2608
|
-
}
|
|
2609
|
-
prices: {
|
|
2610
|
-
createdAt: string;
|
|
2611
|
-
updatedAt: string;
|
|
2612
|
-
currency: string;
|
|
2613
|
-
storeId: string;
|
|
2614
|
-
price: string;
|
|
2615
|
-
calculatedPrice: string | null;
|
|
2616
|
-
variantId: string;
|
|
2617
|
-
}[];
|
|
1642
|
+
};
|
|
2618
1643
|
}[];
|
|
2619
|
-
|
|
1644
|
+
prices: {
|
|
2620
1645
|
createdAt: string;
|
|
2621
1646
|
updatedAt: string;
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
1647
|
+
currency: string;
|
|
1648
|
+
storeId: string;
|
|
1649
|
+
price: string;
|
|
1650
|
+
calculatedPrice: string | null;
|
|
1651
|
+
variantId: string;
|
|
1652
|
+
}[];
|
|
1653
|
+
} & {
|
|
1654
|
+
id: string;
|
|
1655
|
+
price: string;
|
|
1656
|
+
} & {
|
|
1657
|
+
price: string;
|
|
1658
|
+
} & {
|
|
1659
|
+
prePromotionPrice: string | null;
|
|
1660
|
+
}) | ({
|
|
1661
|
+
id: string;
|
|
1662
|
+
createdAt: string;
|
|
1663
|
+
updatedAt: string;
|
|
1664
|
+
storeId: string;
|
|
1665
|
+
description: string | null;
|
|
1666
|
+
price: string;
|
|
1667
|
+
images: string[];
|
|
1668
|
+
sku: string | null;
|
|
1669
|
+
barcode: string | null;
|
|
1670
|
+
calculatedPrice: string | null;
|
|
1671
|
+
stock: number | null;
|
|
1672
|
+
depth: number | null;
|
|
1673
|
+
width: number | null;
|
|
1674
|
+
height: number | null;
|
|
1675
|
+
weight: number | null;
|
|
1676
|
+
digital: string[] | null;
|
|
1677
|
+
shippable: boolean;
|
|
1678
|
+
externalId: string | null;
|
|
1679
|
+
productId: string;
|
|
1680
|
+
attributes: unknown;
|
|
1681
|
+
originalPrice: string;
|
|
1682
|
+
combinations: {
|
|
1683
|
+
createdAt: string;
|
|
1684
|
+
updatedAt: string;
|
|
1685
|
+
productVariantId: string;
|
|
1686
|
+
variantValueId: string;
|
|
1687
|
+
variantValue: {
|
|
2626
1688
|
id: string;
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
position: number;
|
|
2635
|
-
cadence: "month" | "week";
|
|
2636
|
-
discountPercent: number;
|
|
2637
|
-
benefits: string | null;
|
|
1689
|
+
value: string;
|
|
1690
|
+
colorValue: string | null;
|
|
1691
|
+
variantType: {
|
|
1692
|
+
id: string;
|
|
1693
|
+
type: "string" | "color";
|
|
1694
|
+
label: string;
|
|
1695
|
+
};
|
|
2638
1696
|
};
|
|
2639
1697
|
}[];
|
|
1698
|
+
prices: {
|
|
1699
|
+
createdAt: string;
|
|
1700
|
+
updatedAt: string;
|
|
1701
|
+
currency: string;
|
|
1702
|
+
storeId: string;
|
|
1703
|
+
price: string;
|
|
1704
|
+
calculatedPrice: string | null;
|
|
1705
|
+
variantId: string;
|
|
1706
|
+
}[];
|
|
1707
|
+
} & {
|
|
1708
|
+
id: string;
|
|
1709
|
+
price: string;
|
|
2640
1710
|
} & {
|
|
2641
|
-
|
|
1711
|
+
prePromotionPrice: string | null;
|
|
1712
|
+
}), "cost">[];
|
|
1713
|
+
subscriptionPlanProducts: {
|
|
1714
|
+
createdAt: string;
|
|
1715
|
+
updatedAt: string;
|
|
1716
|
+
position: number;
|
|
1717
|
+
productId: string;
|
|
1718
|
+
subscriptionPlanId: string;
|
|
1719
|
+
subscriptionPlan: {
|
|
2642
1720
|
id: string;
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
|
|
2649
|
-
|
|
2650
|
-
|
|
2651
|
-
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
|
|
1721
|
+
name: string;
|
|
1722
|
+
createdAt: string;
|
|
1723
|
+
updatedAt: string;
|
|
1724
|
+
interval: number;
|
|
1725
|
+
active: boolean;
|
|
1726
|
+
storeId: string;
|
|
1727
|
+
description: string | null;
|
|
1728
|
+
position: number;
|
|
1729
|
+
cadence: "month" | "week";
|
|
1730
|
+
discountPercent: number;
|
|
1731
|
+
benefits: string | null;
|
|
1732
|
+
};
|
|
1733
|
+
}[];
|
|
1734
|
+
} & {
|
|
2656
1735
|
lang?: string;
|
|
2657
1736
|
}>;
|
|
2658
1737
|
};
|
|
@@ -2786,6 +1865,13 @@ type APIProductGetByIdResult = {
|
|
|
2786
1865
|
description: JSONContent | null;
|
|
2787
1866
|
};
|
|
2788
1867
|
}[];
|
|
1868
|
+
bundleGroups: {
|
|
1869
|
+
id: string;
|
|
1870
|
+
position: number;
|
|
1871
|
+
minQuantity: number;
|
|
1872
|
+
maxQuantity: number | null;
|
|
1873
|
+
allowDuplicates: boolean;
|
|
1874
|
+
}[];
|
|
2789
1875
|
bundleProducts: {
|
|
2790
1876
|
createdAt: string;
|
|
2791
1877
|
updatedAt: string;
|
|
@@ -2818,6 +1904,7 @@ type APIProductGetByIdResult = {
|
|
|
2818
1904
|
externalId: string | null;
|
|
2819
1905
|
productId: string;
|
|
2820
1906
|
attributes: unknown;
|
|
1907
|
+
cost: string | null;
|
|
2821
1908
|
originalPrice: string;
|
|
2822
1909
|
product: {
|
|
2823
1910
|
id: string;
|
|
@@ -2895,7 +1982,7 @@ type APIProductGetByIdResult = {
|
|
|
2895
1982
|
tr: {
|
|
2896
1983
|
locale: string;
|
|
2897
1984
|
}[];
|
|
2898
|
-
variants: ({
|
|
1985
|
+
variants: (Omit<{
|
|
2899
1986
|
id: string;
|
|
2900
1987
|
createdAt: string;
|
|
2901
1988
|
updatedAt: string;
|
|
@@ -2916,6 +2003,7 @@ type APIProductGetByIdResult = {
|
|
|
2916
2003
|
externalId: string | null;
|
|
2917
2004
|
productId: string;
|
|
2918
2005
|
attributes: unknown;
|
|
2006
|
+
cost: string | null;
|
|
2919
2007
|
originalPrice: string;
|
|
2920
2008
|
combinations: {
|
|
2921
2009
|
createdAt: string;
|
|
@@ -2948,7 +2036,7 @@ type APIProductGetByIdResult = {
|
|
|
2948
2036
|
price: string;
|
|
2949
2037
|
} & {
|
|
2950
2038
|
prePromotionPrice: string | null;
|
|
2951
|
-
} & {
|
|
2039
|
+
}, "cost"> & {
|
|
2952
2040
|
omnibusPrice: string | null;
|
|
2953
2041
|
})[];
|
|
2954
2042
|
subscriptionPlanProducts: {
|
|
@@ -3156,9 +2244,15 @@ type APICartGetResult = {
|
|
|
3156
2244
|
description: JSONContent | null;
|
|
3157
2245
|
};
|
|
3158
2246
|
}[];
|
|
2247
|
+
bundleGroups: {
|
|
2248
|
+
id: string;
|
|
2249
|
+
minQuantity: number;
|
|
2250
|
+
maxQuantity: number | null;
|
|
2251
|
+
allowDuplicates: boolean;
|
|
2252
|
+
}[];
|
|
3159
2253
|
setProduct: {
|
|
3160
|
-
selectionCount: number;
|
|
3161
2254
|
allowDuplicates: boolean;
|
|
2255
|
+
selectionCount: number;
|
|
3162
2256
|
discountPercentage: string;
|
|
3163
2257
|
} | null;
|
|
3164
2258
|
};
|
|
@@ -3632,9 +2726,15 @@ type APICartCreateResult = {
|
|
|
3632
2726
|
description: JSONContent | null;
|
|
3633
2727
|
};
|
|
3634
2728
|
}[];
|
|
2729
|
+
bundleGroups: {
|
|
2730
|
+
id: string;
|
|
2731
|
+
minQuantity: number;
|
|
2732
|
+
maxQuantity: number | null;
|
|
2733
|
+
allowDuplicates: boolean;
|
|
2734
|
+
}[];
|
|
3635
2735
|
setProduct: {
|
|
3636
|
-
selectionCount: number;
|
|
3637
2736
|
allowDuplicates: boolean;
|
|
2737
|
+
selectionCount: number;
|
|
3638
2738
|
discountPercentage: string;
|
|
3639
2739
|
} | null;
|
|
3640
2740
|
};
|
|
@@ -4092,9 +3192,15 @@ type APICartRemoveItemResult = {
|
|
|
4092
3192
|
description: JSONContent | null;
|
|
4093
3193
|
};
|
|
4094
3194
|
}[];
|
|
3195
|
+
bundleGroups: {
|
|
3196
|
+
id: string;
|
|
3197
|
+
minQuantity: number;
|
|
3198
|
+
maxQuantity: number | null;
|
|
3199
|
+
allowDuplicates: boolean;
|
|
3200
|
+
}[];
|
|
4095
3201
|
setProduct: {
|
|
4096
|
-
selectionCount: number;
|
|
4097
3202
|
allowDuplicates: boolean;
|
|
3203
|
+
selectionCount: number;
|
|
4098
3204
|
discountPercentage: string;
|
|
4099
3205
|
} | null;
|
|
4100
3206
|
};
|
|
@@ -4558,9 +3664,15 @@ type APICartCouponApplyResult = {
|
|
|
4558
3664
|
description: JSONContent | null;
|
|
4559
3665
|
};
|
|
4560
3666
|
}[];
|
|
3667
|
+
bundleGroups: {
|
|
3668
|
+
id: string;
|
|
3669
|
+
minQuantity: number;
|
|
3670
|
+
maxQuantity: number | null;
|
|
3671
|
+
allowDuplicates: boolean;
|
|
3672
|
+
}[];
|
|
4561
3673
|
setProduct: {
|
|
4562
|
-
selectionCount: number;
|
|
4563
3674
|
allowDuplicates: boolean;
|
|
3675
|
+
selectionCount: number;
|
|
4564
3676
|
discountPercentage: string;
|
|
4565
3677
|
} | null;
|
|
4566
3678
|
};
|
|
@@ -5018,7 +4130,7 @@ type APISupportCase = {
|
|
|
5018
4130
|
};
|
|
5019
4131
|
type APISupportCaseMessage = {
|
|
5020
4132
|
id: string;
|
|
5021
|
-
authorKind: "merchant" | "support";
|
|
4133
|
+
authorKind: "merchant" | "support" | "system" | "elliot";
|
|
5022
4134
|
authorLabel: string;
|
|
5023
4135
|
body: string;
|
|
5024
4136
|
attachments: {
|
|
@@ -5109,6 +4221,22 @@ type APIOrdersBrowseResult = {
|
|
|
5109
4221
|
storeId: string;
|
|
5110
4222
|
source: string | null;
|
|
5111
4223
|
customerId: string | null;
|
|
4224
|
+
attribution: {
|
|
4225
|
+
firstTouch: {
|
|
4226
|
+
source: string | null;
|
|
4227
|
+
medium: string | null;
|
|
4228
|
+
campaign: string | null;
|
|
4229
|
+
referrerHost: string | null;
|
|
4230
|
+
ts: number;
|
|
4231
|
+
};
|
|
4232
|
+
lastTouch: {
|
|
4233
|
+
source: string | null;
|
|
4234
|
+
medium: string | null;
|
|
4235
|
+
campaign: string | null;
|
|
4236
|
+
referrerHost: string | null;
|
|
4237
|
+
ts: number;
|
|
4238
|
+
};
|
|
4239
|
+
} | null;
|
|
5112
4240
|
lookup: number;
|
|
5113
4241
|
cartId: string | null;
|
|
5114
4242
|
externalId: string | null;
|
|
@@ -5174,6 +4302,7 @@ type APIOrdersBrowseResult = {
|
|
|
5174
4302
|
id: string;
|
|
5175
4303
|
cartId: string;
|
|
5176
4304
|
quantity: number;
|
|
4305
|
+
unitCost: string | null;
|
|
5177
4306
|
createdAt: string;
|
|
5178
4307
|
updatedAt: string;
|
|
5179
4308
|
productVariant: {
|
|
@@ -5285,6 +4414,12 @@ type APIOrdersBrowseResult = {
|
|
|
5285
4414
|
position: string | null;
|
|
5286
4415
|
productId: string;
|
|
5287
4416
|
}[];
|
|
4417
|
+
bundleGroups: {
|
|
4418
|
+
id: string;
|
|
4419
|
+
minQuantity: number;
|
|
4420
|
+
maxQuantity: number | null;
|
|
4421
|
+
allowDuplicates: boolean;
|
|
4422
|
+
}[];
|
|
5288
4423
|
bundleProducts: {
|
|
5289
4424
|
bundleId: string;
|
|
5290
4425
|
variantId: string;
|
|
@@ -5548,6 +4683,7 @@ type APIOrdersBrowseResult = {
|
|
|
5548
4683
|
subtotalNet: number | null;
|
|
5549
4684
|
totalGross: number | null;
|
|
5550
4685
|
subtotalGross: number | null;
|
|
4686
|
+
shippingGross: number | null;
|
|
5551
4687
|
total: number | null;
|
|
5552
4688
|
subtotal: number | null;
|
|
5553
4689
|
totalTax: number | null;
|
|
@@ -5653,6 +4789,7 @@ type APIOrdersBrowseResult = {
|
|
|
5653
4789
|
id: string;
|
|
5654
4790
|
cartId: string;
|
|
5655
4791
|
quantity: number;
|
|
4792
|
+
unitCost: string | null;
|
|
5656
4793
|
createdAt: string;
|
|
5657
4794
|
updatedAt: string;
|
|
5658
4795
|
productVariant: {
|
|
@@ -5764,6 +4901,12 @@ type APIOrdersBrowseResult = {
|
|
|
5764
4901
|
position: string | null;
|
|
5765
4902
|
productId: string;
|
|
5766
4903
|
}[];
|
|
4904
|
+
bundleGroups: {
|
|
4905
|
+
id: string;
|
|
4906
|
+
minQuantity: number;
|
|
4907
|
+
maxQuantity: number | null;
|
|
4908
|
+
allowDuplicates: boolean;
|
|
4909
|
+
}[];
|
|
5767
4910
|
bundleProducts: {
|
|
5768
4911
|
bundleId: string;
|
|
5769
4912
|
variantId: string;
|
|
@@ -6027,6 +5170,7 @@ type APIOrdersBrowseResult = {
|
|
|
6027
5170
|
subtotalNet: number | null;
|
|
6028
5171
|
totalGross: number | null;
|
|
6029
5172
|
subtotalGross: number | null;
|
|
5173
|
+
shippingGross: number | null;
|
|
6030
5174
|
total: number | null;
|
|
6031
5175
|
subtotal: number | null;
|
|
6032
5176
|
totalTax: number | null;
|
|
@@ -6080,6 +5224,22 @@ type APIOrderGetByIdResult = {
|
|
|
6080
5224
|
storeId: string;
|
|
6081
5225
|
source: string | null;
|
|
6082
5226
|
customerId: string | null;
|
|
5227
|
+
attribution: {
|
|
5228
|
+
firstTouch: {
|
|
5229
|
+
source: string | null;
|
|
5230
|
+
medium: string | null;
|
|
5231
|
+
campaign: string | null;
|
|
5232
|
+
referrerHost: string | null;
|
|
5233
|
+
ts: number;
|
|
5234
|
+
};
|
|
5235
|
+
lastTouch: {
|
|
5236
|
+
source: string | null;
|
|
5237
|
+
medium: string | null;
|
|
5238
|
+
campaign: string | null;
|
|
5239
|
+
referrerHost: string | null;
|
|
5240
|
+
ts: number;
|
|
5241
|
+
};
|
|
5242
|
+
} | null;
|
|
6083
5243
|
lookup: number;
|
|
6084
5244
|
cartId: string | null;
|
|
6085
5245
|
externalId: string | null;
|
|
@@ -6145,6 +5305,7 @@ type APIOrderGetByIdResult = {
|
|
|
6145
5305
|
id: string;
|
|
6146
5306
|
cartId: string;
|
|
6147
5307
|
quantity: number;
|
|
5308
|
+
unitCost: string | null;
|
|
6148
5309
|
createdAt: string;
|
|
6149
5310
|
updatedAt: string;
|
|
6150
5311
|
productVariant: {
|
|
@@ -6256,6 +5417,12 @@ type APIOrderGetByIdResult = {
|
|
|
6256
5417
|
position: string | null;
|
|
6257
5418
|
productId: string;
|
|
6258
5419
|
}[];
|
|
5420
|
+
bundleGroups: {
|
|
5421
|
+
id: string;
|
|
5422
|
+
minQuantity: number;
|
|
5423
|
+
maxQuantity: number | null;
|
|
5424
|
+
allowDuplicates: boolean;
|
|
5425
|
+
}[];
|
|
6259
5426
|
bundleProducts: {
|
|
6260
5427
|
bundleId: string;
|
|
6261
5428
|
variantId: string;
|
|
@@ -6519,6 +5686,7 @@ type APIOrderGetByIdResult = {
|
|
|
6519
5686
|
subtotalNet: number | null;
|
|
6520
5687
|
totalGross: number | null;
|
|
6521
5688
|
subtotalGross: number | null;
|
|
5689
|
+
shippingGross: number | null;
|
|
6522
5690
|
total: number | null;
|
|
6523
5691
|
subtotal: number | null;
|
|
6524
5692
|
totalTax: number | null;
|
|
@@ -6657,6 +5825,7 @@ type APIOrderGetByIdResult = {
|
|
|
6657
5825
|
id: string;
|
|
6658
5826
|
cartId: string;
|
|
6659
5827
|
quantity: number;
|
|
5828
|
+
unitCost: string | null;
|
|
6660
5829
|
createdAt: string;
|
|
6661
5830
|
updatedAt: string;
|
|
6662
5831
|
productVariant: {
|
|
@@ -6768,6 +5937,12 @@ type APIOrderGetByIdResult = {
|
|
|
6768
5937
|
position: string | null;
|
|
6769
5938
|
productId: string;
|
|
6770
5939
|
}[];
|
|
5940
|
+
bundleGroups: {
|
|
5941
|
+
id: string;
|
|
5942
|
+
minQuantity: number;
|
|
5943
|
+
maxQuantity: number | null;
|
|
5944
|
+
allowDuplicates: boolean;
|
|
5945
|
+
}[];
|
|
6771
5946
|
bundleProducts: {
|
|
6772
5947
|
bundleId: string;
|
|
6773
5948
|
variantId: string;
|
|
@@ -7031,6 +6206,7 @@ type APIOrderGetByIdResult = {
|
|
|
7031
6206
|
subtotalNet: number | null;
|
|
7032
6207
|
totalGross: number | null;
|
|
7033
6208
|
subtotalGross: number | null;
|
|
6209
|
+
shippingGross: number | null;
|
|
7034
6210
|
total: number | null;
|
|
7035
6211
|
subtotal: number | null;
|
|
7036
6212
|
totalTax: number | null;
|
|
@@ -7589,6 +6765,7 @@ type APIMeStore = {
|
|
|
7589
6765
|
cartRecommendations: boolean;
|
|
7590
6766
|
withdrawalButton: boolean;
|
|
7591
6767
|
events: boolean;
|
|
6768
|
+
storeChat: boolean;
|
|
7592
6769
|
} | null;
|
|
7593
6770
|
defaultLanguage: "en-US" | "pl-PL" | "es-ES" | "de-DE" | null | undefined;
|
|
7594
6771
|
enabledLanguages: {
|
|
@@ -7616,10 +6793,16 @@ type APIMeStore = {
|
|
|
7616
6793
|
sharedCouponCode?: string | null | undefined;
|
|
7617
6794
|
uniquePrefix?: string | null | undefined;
|
|
7618
6795
|
discountValue?: number | null | undefined;
|
|
6796
|
+
reminderDaysBefore?: number | null | undefined;
|
|
7619
6797
|
} | null | undefined;
|
|
7620
6798
|
cartRecommendations: {
|
|
7621
6799
|
layout: "inline" | "sidebar";
|
|
7622
6800
|
} | null | undefined;
|
|
6801
|
+
storeChat: {
|
|
6802
|
+
assistantName: string | null;
|
|
6803
|
+
greeting: string | null;
|
|
6804
|
+
suggestedQuestions: string[] | null;
|
|
6805
|
+
} | null;
|
|
7623
6806
|
} | null;
|
|
7624
6807
|
};
|
|
7625
6808
|
type APIMeGetResult = {
|
|
@@ -7923,7 +7106,6 @@ type APICustomerGetByIdParams = {
|
|
|
7923
7106
|
};
|
|
7924
7107
|
type APICustomerUpdateBody = {
|
|
7925
7108
|
name?: string;
|
|
7926
|
-
phone?: string;
|
|
7927
7109
|
};
|
|
7928
7110
|
type APICustomerUpdateResult = {
|
|
7929
7111
|
id: string;
|
|
@@ -7975,6 +7157,7 @@ type APICustomerOrdersBrowseQueryParams = {
|
|
|
7975
7157
|
type APIInventoryBrowseResult = {
|
|
7976
7158
|
items: Array<{
|
|
7977
7159
|
sku: string | null;
|
|
7160
|
+
tracked: boolean;
|
|
7978
7161
|
onHand: number;
|
|
7979
7162
|
reserved: number;
|
|
7980
7163
|
available: number;
|
|
@@ -9060,6 +8243,7 @@ type APIProductBatchBody = {
|
|
|
9060
8243
|
shippable: boolean;
|
|
9061
8244
|
slug?: string | undefined;
|
|
9062
8245
|
summary?: string | undefined;
|
|
8246
|
+
cost?: number | null | undefined;
|
|
9063
8247
|
category_name?: string | undefined;
|
|
9064
8248
|
sku?: string | undefined;
|
|
9065
8249
|
barcode?: string | null | undefined;
|