@artisan-commerce/types 0.14.0-canary.47 → 0.14.0-canary.49
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/bundle.d.ts +101 -99
- package/package.json +2 -2
package/dist/bundle.d.ts
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
interface Country<T extends AdditionalInfo = AdditionalInfo> {
|
|
8
8
|
/** Country's identifier */
|
|
9
|
-
id:
|
|
9
|
+
id: string;
|
|
10
10
|
/** Country's name */
|
|
11
11
|
name: string;
|
|
12
12
|
/** Country ISO code, see {@link CountryCode} */
|
|
@@ -27,7 +27,7 @@ interface Country<T extends AdditionalInfo = AdditionalInfo> {
|
|
|
27
27
|
*/
|
|
28
28
|
interface CountryCurrency {
|
|
29
29
|
/** Currency's identifier */
|
|
30
|
-
id:
|
|
30
|
+
id: string;
|
|
31
31
|
/** Currency's name */
|
|
32
32
|
name: string;
|
|
33
33
|
/** Currency's symbol */
|
|
@@ -153,7 +153,7 @@ type DocumentType = ARDocumentType | BODocumentType | BRDocumentType | CLDocumen
|
|
|
153
153
|
*/
|
|
154
154
|
interface CountrySummary {
|
|
155
155
|
/** Country's id */
|
|
156
|
-
id:
|
|
156
|
+
id: string;
|
|
157
157
|
/** Country's name */
|
|
158
158
|
name: string;
|
|
159
159
|
}
|
|
@@ -268,7 +268,7 @@ interface RandomImageConfig {
|
|
|
268
268
|
*/
|
|
269
269
|
interface Account<T extends AdditionalInfo = AdditionalInfo> {
|
|
270
270
|
/** Artisn's account unique identifier */
|
|
271
|
-
accountId:
|
|
271
|
+
accountId: string;
|
|
272
272
|
/** Account's name */
|
|
273
273
|
name: string;
|
|
274
274
|
/** Account's description */
|
|
@@ -287,7 +287,7 @@ interface Account<T extends AdditionalInfo = AdditionalInfo> {
|
|
|
287
287
|
*/
|
|
288
288
|
interface Category<T extends AdditionalInfo = AdditionalInfo> {
|
|
289
289
|
/** Category's id */
|
|
290
|
-
categoryId:
|
|
290
|
+
categoryId: string;
|
|
291
291
|
/** Category's name */
|
|
292
292
|
name: string;
|
|
293
293
|
/** Category image's array, see {@link CDNImage} */
|
|
@@ -370,7 +370,7 @@ interface Catalogue<T extends AdditionalInfo = AdditionalInfo> {
|
|
|
370
370
|
*/
|
|
371
371
|
interface Store<T extends AdditionalInfo = AdditionalInfo, U extends AdditionalInfo = AdditionalInfo, V extends AdditionalInfo = AdditionalInfo> {
|
|
372
372
|
/** Store unique identifier */
|
|
373
|
-
storeId:
|
|
373
|
+
storeId: string;
|
|
374
374
|
/** Store name */
|
|
375
375
|
storeName: string;
|
|
376
376
|
/** Store address */
|
|
@@ -560,7 +560,7 @@ interface StorePolygons {
|
|
|
560
560
|
*/
|
|
561
561
|
interface ShippingCost<T extends AdditionalInfo = AdditionalInfo> {
|
|
562
562
|
/** Shipping cost product's id */
|
|
563
|
-
productId:
|
|
563
|
+
productId: string;
|
|
564
564
|
/** Shipping cost's name */
|
|
565
565
|
name: string;
|
|
566
566
|
/** Shipping cost's amount */
|
|
@@ -640,7 +640,7 @@ interface ShoppingCart<T extends AdditionalInfo = AdditionalInfo, U extends Addi
|
|
|
640
640
|
/** Shopping cart update date */
|
|
641
641
|
updatedAt: string;
|
|
642
642
|
/** Shopping cart channel unique identifier */
|
|
643
|
-
channelId:
|
|
643
|
+
channelId: string;
|
|
644
644
|
/** Shopping cart stores, see Objectify<{@link CartStore}> */
|
|
645
645
|
stores: Objectify<CartStore<W, U, V, X, Y>>;
|
|
646
646
|
/** Shopping cart shipping cost */
|
|
@@ -728,9 +728,9 @@ interface BillTotalCategory {
|
|
|
728
728
|
* @since 0.1.0
|
|
729
729
|
*/
|
|
730
730
|
interface Discount {
|
|
731
|
-
benefitId:
|
|
731
|
+
benefitId: string;
|
|
732
732
|
/** Benefit wallet id */
|
|
733
|
-
benefitWalletId:
|
|
733
|
+
benefitWalletId: string;
|
|
734
734
|
/** Discount base value */
|
|
735
735
|
discountBase: number;
|
|
736
736
|
/** Whether or not the coupon has taxes */
|
|
@@ -989,7 +989,7 @@ interface ProductDetails<T extends AdditionalInfo = AdditionalInfo, U extends Ad
|
|
|
989
989
|
/** Array of product questions, see {@link ProductQuestion} */
|
|
990
990
|
questions: ProductQuestion<T>[];
|
|
991
991
|
/** The benefit id of the product */
|
|
992
|
-
benefitId:
|
|
992
|
+
benefitId: string | null;
|
|
993
993
|
/** An array of categories which the product belongs to, see {@link Category} */
|
|
994
994
|
categories: Category<U>[] | null;
|
|
995
995
|
}
|
|
@@ -1082,6 +1082,8 @@ interface CartProduct<T extends AdditionalInfo = AdditionalInfo, U extends Addit
|
|
|
1082
1082
|
updatedAt: string;
|
|
1083
1083
|
/** Array of alerts associated with the cart product */
|
|
1084
1084
|
alerts: Alert[];
|
|
1085
|
+
/** Indicates where the product was added from */
|
|
1086
|
+
addedFrom?: string;
|
|
1085
1087
|
}
|
|
1086
1088
|
|
|
1087
1089
|
/**
|
|
@@ -1102,7 +1104,7 @@ interface Wallet {
|
|
|
1102
1104
|
*/
|
|
1103
1105
|
interface Benefit {
|
|
1104
1106
|
/** The account id of the benefit */
|
|
1105
|
-
accountId:
|
|
1107
|
+
accountId: string;
|
|
1106
1108
|
/**
|
|
1107
1109
|
* An array of benefit awards if the benefit is of `PRODUCT` type, and an
|
|
1108
1110
|
* object if the benefit is of `ALTER_DELIVERY` or `DISCOUNT` type,
|
|
@@ -1110,11 +1112,11 @@ interface Benefit {
|
|
|
1110
1112
|
* */
|
|
1111
1113
|
award: Award | Award[];
|
|
1112
1114
|
/** Benefit id */
|
|
1113
|
-
benefitId:
|
|
1115
|
+
benefitId: string;
|
|
1114
1116
|
/** Benefit wallet id */
|
|
1115
|
-
benefitWalletId:
|
|
1117
|
+
benefitWalletId: string;
|
|
1116
1118
|
/** The channel id of the benefit */
|
|
1117
|
-
channelId:
|
|
1119
|
+
channelId: string;
|
|
1118
1120
|
/** Benefit code in back-end */
|
|
1119
1121
|
code: null;
|
|
1120
1122
|
/** Combined */
|
|
@@ -1162,9 +1164,9 @@ interface Benefit {
|
|
|
1162
1164
|
*/
|
|
1163
1165
|
interface Award {
|
|
1164
1166
|
/** The id of the award */
|
|
1165
|
-
id:
|
|
1167
|
+
id: string;
|
|
1166
1168
|
/** The id of the benefit */
|
|
1167
|
-
benefitId:
|
|
1169
|
+
benefitId: string;
|
|
1168
1170
|
/** Benefit discount percentage */
|
|
1169
1171
|
discountPercentage: number;
|
|
1170
1172
|
/** Benefit discount value */
|
|
@@ -1174,7 +1176,7 @@ interface Award {
|
|
|
1174
1176
|
/** Product description associated with the benefit award */
|
|
1175
1177
|
productDescription: string;
|
|
1176
1178
|
/** Product unique identifier associated with the benefit award */
|
|
1177
|
-
productId:
|
|
1179
|
+
productId: string;
|
|
1178
1180
|
/** The vendor id of the award */
|
|
1179
1181
|
vendorId: Vendor["id"];
|
|
1180
1182
|
}
|
|
@@ -1200,7 +1202,7 @@ type BenefitTypes = "ALTER_DELIVERY" | "PRODUCT" | "DISCOUNT_FIXED" | "DISCOUNT_
|
|
|
1200
1202
|
*/
|
|
1201
1203
|
interface BenefitData {
|
|
1202
1204
|
/** Benefit account unique identifier */
|
|
1203
|
-
account_id:
|
|
1205
|
+
account_id: string;
|
|
1204
1206
|
/** Benefit data amount */
|
|
1205
1207
|
amount: number | null;
|
|
1206
1208
|
/** Indicates if the benefit is redeemed automatically */
|
|
@@ -1224,7 +1226,7 @@ interface BenefitData {
|
|
|
1224
1226
|
/** Benefit external id */
|
|
1225
1227
|
external_id: string | null;
|
|
1226
1228
|
/** Benefit data unique identifier */
|
|
1227
|
-
id:
|
|
1229
|
+
id: string;
|
|
1228
1230
|
/** Benefit image */
|
|
1229
1231
|
image: null;
|
|
1230
1232
|
/** Benefit instruction */
|
|
@@ -1274,17 +1276,17 @@ interface ProductCoupon {
|
|
|
1274
1276
|
/** Product coupon amount */
|
|
1275
1277
|
amount: number;
|
|
1276
1278
|
/** Product coupon benefit unique identifier */
|
|
1277
|
-
benefitId:
|
|
1279
|
+
benefitId: string;
|
|
1278
1280
|
/** Product coupon discount percentage */
|
|
1279
1281
|
discountPercentage: number;
|
|
1280
1282
|
/** Product coupon discount */
|
|
1281
1283
|
discountValue: number | null;
|
|
1282
1284
|
/** Product coupon id */
|
|
1283
|
-
id:
|
|
1285
|
+
id: string;
|
|
1284
1286
|
/** Product description */
|
|
1285
1287
|
productDescription: string | null;
|
|
1286
1288
|
/** Product unique identifier */
|
|
1287
|
-
productId:
|
|
1289
|
+
productId: string | null;
|
|
1288
1290
|
/** Coupon swap product unique identifier */
|
|
1289
1291
|
swapProductId: null;
|
|
1290
1292
|
/** Coupon vendor unique identifier */
|
|
@@ -1302,7 +1304,7 @@ interface StoreCoupon {
|
|
|
1302
1304
|
/** Whether or not the store coupon is featured */
|
|
1303
1305
|
featured: boolean;
|
|
1304
1306
|
/** Store coupon unique identifier */
|
|
1305
|
-
id:
|
|
1307
|
+
id: string;
|
|
1306
1308
|
/** Store coupon name */
|
|
1307
1309
|
name: string;
|
|
1308
1310
|
/** Store coupon vendor unique identifier */
|
|
@@ -1327,7 +1329,7 @@ interface Coupon {
|
|
|
1327
1329
|
/** Coupon end date */
|
|
1328
1330
|
end_date: string;
|
|
1329
1331
|
/** Coupon unique identifier */
|
|
1330
|
-
id:
|
|
1332
|
+
id: string;
|
|
1331
1333
|
/** Coupon image */
|
|
1332
1334
|
image: URLImage | null;
|
|
1333
1335
|
/** Coupon name */
|
|
@@ -1368,7 +1370,7 @@ interface CouponCategory {
|
|
|
1368
1370
|
/** Whether or not the store coupon category is featured */
|
|
1369
1371
|
featured: boolean;
|
|
1370
1372
|
/** Coupon category unique identifier */
|
|
1371
|
-
id:
|
|
1373
|
+
id: string;
|
|
1372
1374
|
/** Coupon category name */
|
|
1373
1375
|
name: string;
|
|
1374
1376
|
}
|
|
@@ -1382,9 +1384,9 @@ interface Code {
|
|
|
1382
1384
|
/** The code associated with the coupon */
|
|
1383
1385
|
code: string;
|
|
1384
1386
|
/** Coupon code unique identifier */
|
|
1385
|
-
coupon_id:
|
|
1387
|
+
coupon_id: string;
|
|
1386
1388
|
/** Code unique identifier */
|
|
1387
|
-
id:
|
|
1389
|
+
id: string;
|
|
1388
1390
|
/** The token corresponding to a QR code */
|
|
1389
1391
|
jwt: Token | null;
|
|
1390
1392
|
/** The status of the code, see {@link ProductStatus} */
|
|
@@ -1426,7 +1428,7 @@ interface StoreCouponDetail extends Omit<Coupon, "category"> {
|
|
|
1426
1428
|
*/
|
|
1427
1429
|
interface Banner<T extends AdditionalInfo = AdditionalInfo> {
|
|
1428
1430
|
/** Banner category id */
|
|
1429
|
-
banner_category_id:
|
|
1431
|
+
banner_category_id: string;
|
|
1430
1432
|
/** Banner description */
|
|
1431
1433
|
banner_description: string;
|
|
1432
1434
|
/** Banner qr code */
|
|
@@ -1440,15 +1442,15 @@ interface Banner<T extends AdditionalInfo = AdditionalInfo> {
|
|
|
1440
1442
|
/** Banner's benefits */
|
|
1441
1443
|
benefits: BannerBenefits[] | null;
|
|
1442
1444
|
/** Banner category id */
|
|
1443
|
-
category_id:
|
|
1445
|
+
category_id: string | null;
|
|
1444
1446
|
/** Banner category name */
|
|
1445
1447
|
category_name: string | null;
|
|
1446
1448
|
/** Banner channel's id */
|
|
1447
|
-
channel_id:
|
|
1449
|
+
channel_id: string | null;
|
|
1448
1450
|
/** Banner coupon's code */
|
|
1449
1451
|
coupon: BannerCoupon | null;
|
|
1450
1452
|
/** Banner coupon's id */
|
|
1451
|
-
coupon_id:
|
|
1453
|
+
coupon_id: string | null;
|
|
1452
1454
|
/** The bucket where the image is saved */
|
|
1453
1455
|
image_bucket: string | null;
|
|
1454
1456
|
/** he cloud where the banner is saved, see {@link CDNImage} */
|
|
@@ -1462,7 +1464,7 @@ interface Banner<T extends AdditionalInfo = AdditionalInfo> {
|
|
|
1462
1464
|
/** An array of banner images, see {@link BannerImage} */
|
|
1463
1465
|
images: BannerImage[];
|
|
1464
1466
|
/** Banner product's id */
|
|
1465
|
-
product_id:
|
|
1467
|
+
product_id: string | null;
|
|
1466
1468
|
/** Banner product's name */
|
|
1467
1469
|
product_name: string | null;
|
|
1468
1470
|
/** Banner's section */
|
|
@@ -1472,7 +1474,7 @@ interface Banner<T extends AdditionalInfo = AdditionalInfo> {
|
|
|
1472
1474
|
/** Banner stores array */
|
|
1473
1475
|
stores: unknown[];
|
|
1474
1476
|
/** Banner vendor's id */
|
|
1475
|
-
vendor_id:
|
|
1477
|
+
vendor_id: string;
|
|
1476
1478
|
/** Banner vendor's name */
|
|
1477
1479
|
vendor_name: string;
|
|
1478
1480
|
/** Banner additional info */
|
|
@@ -1500,7 +1502,7 @@ type BannerScope = "WEB" | "GLOBAL" | "APP";
|
|
|
1500
1502
|
*/
|
|
1501
1503
|
interface BannerImage {
|
|
1502
1504
|
/** Banner's id */
|
|
1503
|
-
id:
|
|
1505
|
+
id: string;
|
|
1504
1506
|
/** Banner image's filename */
|
|
1505
1507
|
file_name: string;
|
|
1506
1508
|
/** Banner image's filename */
|
|
@@ -1521,7 +1523,7 @@ interface BannerImage {
|
|
|
1521
1523
|
* @since 0.1.0
|
|
1522
1524
|
*/
|
|
1523
1525
|
interface BannerBenefits {
|
|
1524
|
-
id:
|
|
1526
|
+
id: string;
|
|
1525
1527
|
name: string;
|
|
1526
1528
|
}
|
|
1527
1529
|
/**
|
|
@@ -1573,7 +1575,7 @@ interface BaseBillingData<T extends AdditionalInfo = AdditionalInfo> {
|
|
|
1573
1575
|
*/
|
|
1574
1576
|
interface BillingData<T extends AdditionalInfo = AdditionalInfo> extends BaseBillingData<T> {
|
|
1575
1577
|
/** Billing's auto generated id */
|
|
1576
|
-
id:
|
|
1578
|
+
id: string;
|
|
1577
1579
|
}
|
|
1578
1580
|
|
|
1579
1581
|
/**
|
|
@@ -1594,7 +1596,7 @@ interface Workflow<T extends AdditionalInfo = AdditionalInfo> {
|
|
|
1594
1596
|
/** Workflow description */
|
|
1595
1597
|
description: string;
|
|
1596
1598
|
/** Workflow unique identifier */
|
|
1597
|
-
id:
|
|
1599
|
+
id: string;
|
|
1598
1600
|
/** Workflow name */
|
|
1599
1601
|
name: string;
|
|
1600
1602
|
/** An array of workflow steps, see {@link StepWorkflow} */
|
|
@@ -1650,7 +1652,7 @@ interface StepWorkflow {
|
|
|
1650
1652
|
/** Step workflow description to use on front end */
|
|
1651
1653
|
description_frontend: string | null;
|
|
1652
1654
|
/** Step workflow id */
|
|
1653
|
-
id:
|
|
1655
|
+
id: string;
|
|
1654
1656
|
/** Step workflow name */
|
|
1655
1657
|
name: string;
|
|
1656
1658
|
/** Step workflow subtitle to use on front end */
|
|
@@ -1700,21 +1702,21 @@ interface StepWorkflowGroup {
|
|
|
1700
1702
|
*/
|
|
1701
1703
|
interface TransitionWorkflow {
|
|
1702
1704
|
/** Channel unique identifier */
|
|
1703
|
-
channel_id:
|
|
1705
|
+
channel_id: string;
|
|
1704
1706
|
/** Transition workflow conditions */
|
|
1705
1707
|
conditions: any[];
|
|
1706
1708
|
/** Transition workflow description */
|
|
1707
1709
|
description: string;
|
|
1708
1710
|
/** The step id where the transition comes from */
|
|
1709
|
-
from_step_id:
|
|
1711
|
+
from_step_id: string;
|
|
1710
1712
|
/** Transition workflow unique identifier */
|
|
1711
|
-
id:
|
|
1713
|
+
id: string;
|
|
1712
1714
|
/** Transition workflow name */
|
|
1713
1715
|
name: string;
|
|
1714
1716
|
/** The step id where the transition can go */
|
|
1715
|
-
to_step_id:
|
|
1717
|
+
to_step_id: string;
|
|
1716
1718
|
/** Vendor unique identifier */
|
|
1717
|
-
vendor_id:
|
|
1719
|
+
vendor_id: string;
|
|
1718
1720
|
}
|
|
1719
1721
|
/**
|
|
1720
1722
|
* Workflow webhook.
|
|
@@ -1724,7 +1726,7 @@ interface TransitionWorkflow {
|
|
|
1724
1726
|
*/
|
|
1725
1727
|
interface WebhookWorkflow {
|
|
1726
1728
|
/** Webhook workflow unique identifier */
|
|
1727
|
-
id:
|
|
1729
|
+
id: string;
|
|
1728
1730
|
/** Webhook workflow method type */
|
|
1729
1731
|
method: string;
|
|
1730
1732
|
/** Webhook workflow url */
|
|
@@ -1750,11 +1752,11 @@ interface IssueAdditionalInfo {
|
|
|
1750
1752
|
*/
|
|
1751
1753
|
interface IssueHistory {
|
|
1752
1754
|
/** History unique identifier */
|
|
1753
|
-
id:
|
|
1755
|
+
id: string;
|
|
1754
1756
|
/** Transition unique identifier */
|
|
1755
|
-
transition_id:
|
|
1757
|
+
transition_id: string;
|
|
1756
1758
|
/** Step unique identifier */
|
|
1757
|
-
step_id:
|
|
1759
|
+
step_id: string;
|
|
1758
1760
|
/** Step name */
|
|
1759
1761
|
step_name: string;
|
|
1760
1762
|
/** History additional info, see {@link IssueAdditionalInfo} */
|
|
@@ -1774,23 +1776,23 @@ interface IssueHistory {
|
|
|
1774
1776
|
*/
|
|
1775
1777
|
interface Issue {
|
|
1776
1778
|
/** Issue unique identifier */
|
|
1777
|
-
id:
|
|
1779
|
+
id: string;
|
|
1778
1780
|
/** Client issue unique identifier */
|
|
1779
1781
|
client_issue_id: string;
|
|
1780
1782
|
/** Workflow unique identifier */
|
|
1781
|
-
workflow_id:
|
|
1783
|
+
workflow_id: string;
|
|
1782
1784
|
/** Parent issue unique identifier */
|
|
1783
1785
|
parent_issue_id: null;
|
|
1784
1786
|
/** Related issue unique identifier */
|
|
1785
1787
|
related_issue_id: null;
|
|
1786
1788
|
/** Step unique identifier */
|
|
1787
|
-
step_id:
|
|
1789
|
+
step_id: string;
|
|
1788
1790
|
/** The step where the issue is located */
|
|
1789
1791
|
step: StepWorkflow;
|
|
1790
1792
|
/** Account unique identifier */
|
|
1791
|
-
account_id:
|
|
1793
|
+
account_id: string;
|
|
1792
1794
|
/** Vendor unique identifier */
|
|
1793
|
-
vendor_id:
|
|
1795
|
+
vendor_id: string;
|
|
1794
1796
|
/** Children issues */
|
|
1795
1797
|
children: any[];
|
|
1796
1798
|
/** Related issues */
|
|
@@ -1802,7 +1804,7 @@ interface Issue {
|
|
|
1802
1804
|
/** Issue history, see {@link IssueHistory} */
|
|
1803
1805
|
history: IssueHistory[];
|
|
1804
1806
|
/** Transaction unique identifier */
|
|
1805
|
-
transaction_id:
|
|
1807
|
+
transaction_id: string | null;
|
|
1806
1808
|
}
|
|
1807
1809
|
|
|
1808
1810
|
/**
|
|
@@ -1878,7 +1880,7 @@ interface ArtisnParams {
|
|
|
1878
1880
|
*/
|
|
1879
1881
|
interface BaseLivingPlace {
|
|
1880
1882
|
/** Living place's id */
|
|
1881
|
-
id:
|
|
1883
|
+
id: string;
|
|
1882
1884
|
}
|
|
1883
1885
|
/**
|
|
1884
1886
|
* Representation of a living place.
|
|
@@ -1893,7 +1895,7 @@ interface LivingPlace extends BaseLivingPlace {
|
|
|
1893
1895
|
/** Whether or not the living place is active */
|
|
1894
1896
|
active: number;
|
|
1895
1897
|
/** Country unique identifier */
|
|
1896
|
-
countryId:
|
|
1898
|
+
countryId: string;
|
|
1897
1899
|
/** Array of fields required to save a living place, see {@link Field} */
|
|
1898
1900
|
fields: Field[];
|
|
1899
1901
|
}
|
|
@@ -2007,7 +2009,7 @@ interface BaseShippingAddress<T extends AdditionalInfo = AdditionalInfo> {
|
|
|
2007
2009
|
*/
|
|
2008
2010
|
interface ShippingAddress<T extends AdditionalInfo = AdditionalInfo> extends BaseShippingAddress<T> {
|
|
2009
2011
|
/** Shipping address unique identifier */
|
|
2010
|
-
id:
|
|
2012
|
+
id: string;
|
|
2011
2013
|
/** Object which contains the living place, see {@link LivingPlace} */
|
|
2012
2014
|
livingPlace: LivingPlace;
|
|
2013
2015
|
}
|
|
@@ -2038,7 +2040,7 @@ interface NewShippingAddress<T extends AdditionalInfo = AdditionalInfo> extends
|
|
|
2038
2040
|
*/
|
|
2039
2041
|
interface UpdatedShippingAddress<T extends AdditionalInfo = AdditionalInfo> extends BaseShippingAddress<T> {
|
|
2040
2042
|
/** Shipping address unique identifier */
|
|
2041
|
-
id:
|
|
2043
|
+
id: string;
|
|
2042
2044
|
/**
|
|
2043
2045
|
* Object which contains the living place to update,
|
|
2044
2046
|
* see {@link LivingPlaceToSave}
|
|
@@ -2122,7 +2124,7 @@ type UserType = "NORMAL" | "DEPENDENT";
|
|
|
2122
2124
|
*/
|
|
2123
2125
|
interface UserCountry {
|
|
2124
2126
|
/** User's country id */
|
|
2125
|
-
id:
|
|
2127
|
+
id: string;
|
|
2126
2128
|
}
|
|
2127
2129
|
/**
|
|
2128
2130
|
* Representation of a phone.
|
|
@@ -2189,9 +2191,9 @@ interface Settings {
|
|
|
2189
2191
|
*/
|
|
2190
2192
|
interface BaseOrder<T extends AdditionalInfo = AdditionalInfo, U extends AdditionalInfo = AdditionalInfo, V extends AdditionalInfo = AdditionalInfo> {
|
|
2191
2193
|
/** Order unique identifier */
|
|
2192
|
-
id:
|
|
2194
|
+
id: string;
|
|
2193
2195
|
/** Account unique identifier */
|
|
2194
|
-
accountId:
|
|
2196
|
+
accountId: string;
|
|
2195
2197
|
/** Order additional info*/
|
|
2196
2198
|
additionalInfo?: T;
|
|
2197
2199
|
/** User's order billing data' unique identifier */
|
|
@@ -2201,7 +2203,7 @@ interface BaseOrder<T extends AdditionalInfo = AdditionalInfo, U extends Additio
|
|
|
2201
2203
|
/** Order allocation, see {@link Allocation} */
|
|
2202
2204
|
allocation: Allocation;
|
|
2203
2205
|
/** Channel unique identifier */
|
|
2204
|
-
channelId:
|
|
2206
|
+
channelId: string;
|
|
2205
2207
|
/** Order channel name */
|
|
2206
2208
|
channelName: string;
|
|
2207
2209
|
/** Order comment */
|
|
@@ -2233,7 +2235,7 @@ interface BaseOrder<T extends AdditionalInfo = AdditionalInfo, U extends Additio
|
|
|
2233
2235
|
/** Step code, see {@link StepCode} */
|
|
2234
2236
|
stepCode: StepCode;
|
|
2235
2237
|
/** Step unique identifier */
|
|
2236
|
-
stepId:
|
|
2238
|
+
stepId: string;
|
|
2237
2239
|
/** Step name */
|
|
2238
2240
|
stepName: string;
|
|
2239
2241
|
/** User unique identifier */
|
|
@@ -2241,9 +2243,9 @@ interface BaseOrder<T extends AdditionalInfo = AdditionalInfo, U extends Additio
|
|
|
2241
2243
|
/** Order user, see {@link OrderUser} */
|
|
2242
2244
|
user: OrderUser<V>;
|
|
2243
2245
|
/** Order transaction unique identifier */
|
|
2244
|
-
transactionId:
|
|
2246
|
+
transactionId: string | null;
|
|
2245
2247
|
/** Vendor unique identifier */
|
|
2246
|
-
vendorId:
|
|
2248
|
+
vendorId: string;
|
|
2247
2249
|
/** Vendor name */
|
|
2248
2250
|
vendorName: string;
|
|
2249
2251
|
/** Order operator information, see {@link OperatorInformation} */
|
|
@@ -2270,7 +2272,7 @@ interface OrderShoppingCart<T extends AdditionalInfo = AdditionalInfo> extends O
|
|
|
2270
2272
|
/** Order instructions */
|
|
2271
2273
|
instructions: string | null;
|
|
2272
2274
|
/** Order status unique identifier */
|
|
2273
|
-
statusId:
|
|
2275
|
+
statusId: string;
|
|
2274
2276
|
/** Order issue unique identifier */
|
|
2275
2277
|
issueId: string | null;
|
|
2276
2278
|
/** Order invoice number */
|
|
@@ -2322,13 +2324,13 @@ interface OrderCommonFields {
|
|
|
2322
2324
|
*/
|
|
2323
2325
|
interface OrderStore {
|
|
2324
2326
|
/** Suborder unique identifier */
|
|
2325
|
-
id:
|
|
2327
|
+
id: string;
|
|
2326
2328
|
/** Order unique identifier */
|
|
2327
|
-
orderId:
|
|
2329
|
+
orderId: string;
|
|
2328
2330
|
/** Order digital command sent */
|
|
2329
2331
|
digitalCommandSent: string;
|
|
2330
2332
|
/** Order store status unique identifier */
|
|
2331
|
-
statusId:
|
|
2333
|
+
statusId: string;
|
|
2332
2334
|
/** Order store status name */
|
|
2333
2335
|
statusName: string;
|
|
2334
2336
|
/** Order store status code, see {@link StepCode} */
|
|
@@ -2410,11 +2412,11 @@ interface OrderStoreDelivery {
|
|
|
2410
2412
|
*/
|
|
2411
2413
|
interface OrderProduct {
|
|
2412
2414
|
/** Order product id */
|
|
2413
|
-
id:
|
|
2415
|
+
id: string;
|
|
2414
2416
|
/** Order product additional info, see {@link OrderProductAdditionalInfo } */
|
|
2415
2417
|
additionalInfo: OrderProductAdditionalInfo;
|
|
2416
2418
|
/** Order product unique identifier */
|
|
2417
|
-
productId:
|
|
2419
|
+
productId: string;
|
|
2418
2420
|
/** Order product name */
|
|
2419
2421
|
productName: string;
|
|
2420
2422
|
/** Order product comment */
|
|
@@ -2452,7 +2454,7 @@ interface OrderProductAdditionalInfo {
|
|
|
2452
2454
|
/** The measure of the product */
|
|
2453
2455
|
measure: string;
|
|
2454
2456
|
/** The store associated with the product */
|
|
2455
|
-
new_store:
|
|
2457
|
+
new_store: string;
|
|
2456
2458
|
/** Indicates if a product is out of service */
|
|
2457
2459
|
out_of_service: boolean;
|
|
2458
2460
|
/** Indicates if a product is out of stock */
|
|
@@ -2612,7 +2614,7 @@ interface OrderProductPriceCategory {
|
|
|
2612
2614
|
/** Order product price category type, see {@link PriceCategoryType} */
|
|
2613
2615
|
category: PriceCategoryType;
|
|
2614
2616
|
/** Order product price product id */
|
|
2615
|
-
product_id?:
|
|
2617
|
+
product_id?: string;
|
|
2616
2618
|
/** Order product price product name */
|
|
2617
2619
|
name?: string;
|
|
2618
2620
|
/** Order product price subtotal without taxes */
|
|
@@ -2641,9 +2643,9 @@ interface OrderProductPriceCategory {
|
|
|
2641
2643
|
*/
|
|
2642
2644
|
interface OrderRetry extends Status, OrderCommonFields {
|
|
2643
2645
|
/** Order retry unique identifier */
|
|
2644
|
-
id:
|
|
2646
|
+
id: string;
|
|
2645
2647
|
/** Order payment method id **/
|
|
2646
|
-
payment_method_by_order_id:
|
|
2648
|
+
payment_method_by_order_id: string;
|
|
2647
2649
|
/** Order retry reference **/
|
|
2648
2650
|
reference: string;
|
|
2649
2651
|
/** Order retry platform **/
|
|
@@ -2672,13 +2674,13 @@ interface OrderRetry extends Status, OrderCommonFields {
|
|
|
2672
2674
|
*/
|
|
2673
2675
|
interface PaymentMethodByOrder extends Status, OrderCommonFields {
|
|
2674
2676
|
/** Payment method by order unique identifier **/
|
|
2675
|
-
id:
|
|
2677
|
+
id: string;
|
|
2676
2678
|
/** Order unique identifier **/
|
|
2677
|
-
order_id:
|
|
2679
|
+
order_id: string;
|
|
2678
2680
|
/** Payment method id **/
|
|
2679
|
-
payment_method_id:
|
|
2681
|
+
payment_method_id: string;
|
|
2680
2682
|
/** Internal revenue service payment method id **/
|
|
2681
|
-
sri_payment_method_id:
|
|
2683
|
+
sri_payment_method_id: string;
|
|
2682
2684
|
/** Order payment method, see {@link OrderRetryPaymentMethod} */
|
|
2683
2685
|
order: OrderRetryPaymentMethod;
|
|
2684
2686
|
}
|
|
@@ -2690,7 +2692,7 @@ interface PaymentMethodByOrder extends Status, OrderCommonFields {
|
|
|
2690
2692
|
*/
|
|
2691
2693
|
interface OrderRetryPaymentMethod extends Status {
|
|
2692
2694
|
/** Order retry payment method unique identifier **/
|
|
2693
|
-
id:
|
|
2695
|
+
id: string;
|
|
2694
2696
|
/** User unique identifier associated with the order retry **/
|
|
2695
2697
|
uid: string;
|
|
2696
2698
|
/** Order retry billing data by user id **/
|
|
@@ -2710,13 +2712,13 @@ interface OrderRetryPaymentMethod extends Status {
|
|
|
2710
2712
|
/** Order retry sent fulfillment **/
|
|
2711
2713
|
sent_fulfillment: string;
|
|
2712
2714
|
/** Order retry account id **/
|
|
2713
|
-
account_id:
|
|
2715
|
+
account_id: string;
|
|
2714
2716
|
/** Order retry sequence value **/
|
|
2715
2717
|
seq_val: string;
|
|
2716
2718
|
/** Order retry vendor id **/
|
|
2717
|
-
vendor_id:
|
|
2719
|
+
vendor_id: string;
|
|
2718
2720
|
/** Order retry channel id **/
|
|
2719
|
-
channel_id:
|
|
2721
|
+
channel_id: string;
|
|
2720
2722
|
/** Order retry created date **/
|
|
2721
2723
|
created_at: string;
|
|
2722
2724
|
/** Order retry update date **/
|
|
@@ -2734,7 +2736,7 @@ interface OrderRetryPaymentMethod extends Status {
|
|
|
2734
2736
|
*/
|
|
2735
2737
|
interface Status {
|
|
2736
2738
|
/** Status unique identifier **/
|
|
2737
|
-
status_id:
|
|
2739
|
+
status_id: string;
|
|
2738
2740
|
/** Status name **/
|
|
2739
2741
|
status_name: string;
|
|
2740
2742
|
/** Status code **/
|
|
@@ -2751,13 +2753,13 @@ interface Status {
|
|
|
2751
2753
|
*/
|
|
2752
2754
|
interface Suborder extends Status {
|
|
2753
2755
|
/** Suborder unique identifier **/
|
|
2754
|
-
id:
|
|
2756
|
+
id: string;
|
|
2755
2757
|
/** Suborder store unique identifier **/
|
|
2756
|
-
store_id:
|
|
2758
|
+
store_id: string;
|
|
2757
2759
|
/** Suborder store unique identifier **/
|
|
2758
2760
|
store_name: string;
|
|
2759
2761
|
/** Suborder order id **/
|
|
2760
|
-
order_id:
|
|
2762
|
+
order_id: string;
|
|
2761
2763
|
/** Suborder digital command sent **/
|
|
2762
2764
|
digital_command_sent: string;
|
|
2763
2765
|
/** Suborder vendor **/
|
|
@@ -2781,7 +2783,7 @@ interface OrderStep {
|
|
|
2781
2783
|
/** Order step description to use on front end */
|
|
2782
2784
|
description_frontend: string;
|
|
2783
2785
|
/** Order step unique identifier */
|
|
2784
|
-
id:
|
|
2786
|
+
id: string;
|
|
2785
2787
|
/** Order step name */
|
|
2786
2788
|
name: string;
|
|
2787
2789
|
/** Order step code */
|
|
@@ -2875,7 +2877,7 @@ type Order<T extends AdditionalInfo = AdditionalInfo, U extends AdditionalInfo =
|
|
|
2875
2877
|
*/
|
|
2876
2878
|
interface BaseField {
|
|
2877
2879
|
/** Base field unique identifier */
|
|
2878
|
-
id:
|
|
2880
|
+
id: string;
|
|
2879
2881
|
/** Base field name */
|
|
2880
2882
|
name: string;
|
|
2881
2883
|
}
|
|
@@ -2997,9 +2999,9 @@ interface OperatorInformation {
|
|
|
2997
2999
|
*/
|
|
2998
3000
|
interface OrderPaymentMethod {
|
|
2999
3001
|
/** Order payment method id */
|
|
3000
|
-
id:
|
|
3002
|
+
id: string;
|
|
3001
3003
|
/** Order payment method id */
|
|
3002
|
-
payment_method_id:
|
|
3004
|
+
payment_method_id: string;
|
|
3003
3005
|
/** Order payment method name */
|
|
3004
3006
|
payment_method_name: string;
|
|
3005
3007
|
/** Order total by payment method */
|
|
@@ -3027,7 +3029,7 @@ type OrderStatus = "APPROVED" | "REJECTED" | "PENDING";
|
|
|
3027
3029
|
*/
|
|
3028
3030
|
interface Notification {
|
|
3029
3031
|
/** Notification unique identifier */
|
|
3030
|
-
id:
|
|
3032
|
+
id: string;
|
|
3031
3033
|
/** Notification title */
|
|
3032
3034
|
title: string;
|
|
3033
3035
|
/** Notification description */
|
|
@@ -3070,7 +3072,7 @@ type ReadValue = "YES" | "NO";
|
|
|
3070
3072
|
*/
|
|
3071
3073
|
interface NotificationExtraData {
|
|
3072
3074
|
/** The id of the notification extra data */
|
|
3073
|
-
id:
|
|
3075
|
+
id: string;
|
|
3074
3076
|
/** Sequential value */
|
|
3075
3077
|
seqVal: string;
|
|
3076
3078
|
/** Unique identifier */
|
|
@@ -3086,9 +3088,9 @@ interface NotificationExtraData {
|
|
|
3086
3088
|
/** Store related to the notification, see {@link NotificationStore} */
|
|
3087
3089
|
store: NotificationStore;
|
|
3088
3090
|
/** Channel unique identifier */
|
|
3089
|
-
channel_id:
|
|
3091
|
+
channel_id: string;
|
|
3090
3092
|
/** Provided country id */
|
|
3091
|
-
countryId:
|
|
3093
|
+
countryId: string;
|
|
3092
3094
|
/** Notification step, see {@link NotificationStep} */
|
|
3093
3095
|
step: NotificationStep;
|
|
3094
3096
|
/** Allocation options, see {@link Allocation} */
|
|
@@ -3159,7 +3161,7 @@ interface NotificationAdditionalInfo {
|
|
|
3159
3161
|
/** Project unique identifier */
|
|
3160
3162
|
aud: string;
|
|
3161
3163
|
/** Unique identifier of workflowId */
|
|
3162
|
-
workflowId:
|
|
3164
|
+
workflowId: string;
|
|
3163
3165
|
}
|
|
3164
3166
|
/**
|
|
3165
3167
|
* Notification list item.
|
|
@@ -3182,7 +3184,7 @@ interface NotificationListItem {
|
|
|
3182
3184
|
*/
|
|
3183
3185
|
interface BasePaymentMethod {
|
|
3184
3186
|
/** Payment method's id */
|
|
3185
|
-
id:
|
|
3187
|
+
id: string;
|
|
3186
3188
|
/** Payment method's created date */
|
|
3187
3189
|
created_at: string | null;
|
|
3188
3190
|
/** Payment method's updated date */
|
|
@@ -3251,7 +3253,7 @@ interface PaymentProvider extends Omit<PaymentMethod, "name"> {
|
|
|
3251
3253
|
*/
|
|
3252
3254
|
interface CreditCardMapping extends BasePaymentMethod {
|
|
3253
3255
|
/** Credit card mapping unique identifier */
|
|
3254
|
-
id:
|
|
3256
|
+
id: string;
|
|
3255
3257
|
/** Credit card mapping name, see {@link CardName} */
|
|
3256
3258
|
name: CardName;
|
|
3257
3259
|
/** Payment method image's url, commonly used to save image cards */
|
|
@@ -3280,7 +3282,7 @@ type CardName = "Diners" | "Discover" | "American Express" | "Visa" | "MasterCar
|
|
|
3280
3282
|
* @since 0.5.15
|
|
3281
3283
|
*/
|
|
3282
3284
|
interface CardInscription {
|
|
3283
|
-
id:
|
|
3285
|
+
id: string;
|
|
3284
3286
|
uid: string;
|
|
3285
3287
|
number: string;
|
|
3286
3288
|
type: string;
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@artisan-commerce/types",
|
|
3
3
|
"description": "Artisn's types and interfaces library",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"version": "0.14.0-canary.
|
|
5
|
+
"version": "0.14.0-canary.49",
|
|
6
6
|
"types": "./dist/bundle.d.ts",
|
|
7
7
|
"files": [
|
|
8
8
|
"dist"
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
},
|
|
25
25
|
"author": "Luis Eduardo Andrade",
|
|
26
26
|
"license": "MIT",
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "98e0239c60db3d4644252e78de08e6a902f5904b",
|
|
28
28
|
"nx": {
|
|
29
29
|
"targets": {
|
|
30
30
|
"build": {
|