@artisan-commerce/types 0.14.0-canary.46 → 0.14.0-canary.48

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.
Files changed (2) hide show
  1. package/dist/bundle.d.ts +106 -100
  2. 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: number;
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: number;
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: number;
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: number;
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: number;
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: number;
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: number;
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: number;
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: number;
731
+ benefitId: string;
732
732
  /** Benefit wallet id */
733
- benefitWalletId: number;
733
+ benefitWalletId: string;
734
734
  /** Discount base value */
735
735
  discountBase: number;
736
736
  /** Whether or not the coupon has taxes */
@@ -829,6 +829,8 @@ interface ProductPrices {
829
829
  NORMAL: PriceCategory;
830
830
  /** Points price category, see {@link PriceCategory} */
831
831
  POINTS: PriceCategory;
832
+ /** Suggested price category, see {@link PriceCategory} */
833
+ SUGGESTED: PriceCategory;
832
834
  }
833
835
  /**
834
836
  * Price category attributes.
@@ -855,6 +857,10 @@ interface PriceCategory {
855
857
  discountNetPrice: number;
856
858
  /** Total discounts applied to the price category */
857
859
  discount: number;
860
+ /** Sale percentage value */
861
+ salePercentage: number;
862
+ /** Sale price before value */
863
+ priceBeforeSale: number;
858
864
  }
859
865
  /**
860
866
  * Price category tax attributes.
@@ -908,7 +914,7 @@ type ProductType = "PRODUCT" | "MODIFIER";
908
914
  * @typedef PriceCategoryType
909
915
  * @since 0.1.0
910
916
  **/
911
- type PriceCategoryType = "NORMAL" | "POINTS";
917
+ type PriceCategoryType = "NORMAL" | "POINTS" | "SUGGESTED";
912
918
  /**
913
919
  * Tax's possible values.
914
920
  *
@@ -983,7 +989,7 @@ interface ProductDetails<T extends AdditionalInfo = AdditionalInfo, U extends Ad
983
989
  /** Array of product questions, see {@link ProductQuestion} */
984
990
  questions: ProductQuestion<T>[];
985
991
  /** The benefit id of the product */
986
- benefitId: number | null;
992
+ benefitId: string | null;
987
993
  /** An array of categories which the product belongs to, see {@link Category} */
988
994
  categories: Category<U>[] | null;
989
995
  }
@@ -1096,7 +1102,7 @@ interface Wallet {
1096
1102
  */
1097
1103
  interface Benefit {
1098
1104
  /** The account id of the benefit */
1099
- accountId: number;
1105
+ accountId: string;
1100
1106
  /**
1101
1107
  * An array of benefit awards if the benefit is of `PRODUCT` type, and an
1102
1108
  * object if the benefit is of `ALTER_DELIVERY` or `DISCOUNT` type,
@@ -1104,11 +1110,11 @@ interface Benefit {
1104
1110
  * */
1105
1111
  award: Award | Award[];
1106
1112
  /** Benefit id */
1107
- benefitId: number;
1113
+ benefitId: string;
1108
1114
  /** Benefit wallet id */
1109
- benefitWalletId: number;
1115
+ benefitWalletId: string;
1110
1116
  /** The channel id of the benefit */
1111
- channelId: number;
1117
+ channelId: string;
1112
1118
  /** Benefit code in back-end */
1113
1119
  code: null;
1114
1120
  /** Combined */
@@ -1156,9 +1162,9 @@ interface Benefit {
1156
1162
  */
1157
1163
  interface Award {
1158
1164
  /** The id of the award */
1159
- id: number;
1165
+ id: string;
1160
1166
  /** The id of the benefit */
1161
- benefitId: number;
1167
+ benefitId: string;
1162
1168
  /** Benefit discount percentage */
1163
1169
  discountPercentage: number;
1164
1170
  /** Benefit discount value */
@@ -1168,7 +1174,7 @@ interface Award {
1168
1174
  /** Product description associated with the benefit award */
1169
1175
  productDescription: string;
1170
1176
  /** Product unique identifier associated with the benefit award */
1171
- productId: number;
1177
+ productId: string;
1172
1178
  /** The vendor id of the award */
1173
1179
  vendorId: Vendor["id"];
1174
1180
  }
@@ -1194,7 +1200,7 @@ type BenefitTypes = "ALTER_DELIVERY" | "PRODUCT" | "DISCOUNT_FIXED" | "DISCOUNT_
1194
1200
  */
1195
1201
  interface BenefitData {
1196
1202
  /** Benefit account unique identifier */
1197
- account_id: number;
1203
+ account_id: string;
1198
1204
  /** Benefit data amount */
1199
1205
  amount: number | null;
1200
1206
  /** Indicates if the benefit is redeemed automatically */
@@ -1218,7 +1224,7 @@ interface BenefitData {
1218
1224
  /** Benefit external id */
1219
1225
  external_id: string | null;
1220
1226
  /** Benefit data unique identifier */
1221
- id: number;
1227
+ id: string;
1222
1228
  /** Benefit image */
1223
1229
  image: null;
1224
1230
  /** Benefit instruction */
@@ -1268,17 +1274,17 @@ interface ProductCoupon {
1268
1274
  /** Product coupon amount */
1269
1275
  amount: number;
1270
1276
  /** Product coupon benefit unique identifier */
1271
- benefitId: number;
1277
+ benefitId: string;
1272
1278
  /** Product coupon discount percentage */
1273
1279
  discountPercentage: number;
1274
1280
  /** Product coupon discount */
1275
1281
  discountValue: number | null;
1276
1282
  /** Product coupon id */
1277
- id: number;
1283
+ id: string;
1278
1284
  /** Product description */
1279
1285
  productDescription: string | null;
1280
1286
  /** Product unique identifier */
1281
- productId: number | null;
1287
+ productId: string | null;
1282
1288
  /** Coupon swap product unique identifier */
1283
1289
  swapProductId: null;
1284
1290
  /** Coupon vendor unique identifier */
@@ -1296,7 +1302,7 @@ interface StoreCoupon {
1296
1302
  /** Whether or not the store coupon is featured */
1297
1303
  featured: boolean;
1298
1304
  /** Store coupon unique identifier */
1299
- id: number;
1305
+ id: string;
1300
1306
  /** Store coupon name */
1301
1307
  name: string;
1302
1308
  /** Store coupon vendor unique identifier */
@@ -1321,7 +1327,7 @@ interface Coupon {
1321
1327
  /** Coupon end date */
1322
1328
  end_date: string;
1323
1329
  /** Coupon unique identifier */
1324
- id: number;
1330
+ id: string;
1325
1331
  /** Coupon image */
1326
1332
  image: URLImage | null;
1327
1333
  /** Coupon name */
@@ -1362,7 +1368,7 @@ interface CouponCategory {
1362
1368
  /** Whether or not the store coupon category is featured */
1363
1369
  featured: boolean;
1364
1370
  /** Coupon category unique identifier */
1365
- id: number;
1371
+ id: string;
1366
1372
  /** Coupon category name */
1367
1373
  name: string;
1368
1374
  }
@@ -1376,9 +1382,9 @@ interface Code {
1376
1382
  /** The code associated with the coupon */
1377
1383
  code: string;
1378
1384
  /** Coupon code unique identifier */
1379
- coupon_id: number;
1385
+ coupon_id: string;
1380
1386
  /** Code unique identifier */
1381
- id: number;
1387
+ id: string;
1382
1388
  /** The token corresponding to a QR code */
1383
1389
  jwt: Token | null;
1384
1390
  /** The status of the code, see {@link ProductStatus} */
@@ -1420,7 +1426,7 @@ interface StoreCouponDetail extends Omit<Coupon, "category"> {
1420
1426
  */
1421
1427
  interface Banner<T extends AdditionalInfo = AdditionalInfo> {
1422
1428
  /** Banner category id */
1423
- banner_category_id: number;
1429
+ banner_category_id: string;
1424
1430
  /** Banner description */
1425
1431
  banner_description: string;
1426
1432
  /** Banner qr code */
@@ -1434,15 +1440,15 @@ interface Banner<T extends AdditionalInfo = AdditionalInfo> {
1434
1440
  /** Banner's benefits */
1435
1441
  benefits: BannerBenefits[] | null;
1436
1442
  /** Banner category id */
1437
- category_id: number | null;
1443
+ category_id: string | null;
1438
1444
  /** Banner category name */
1439
1445
  category_name: string | null;
1440
1446
  /** Banner channel's id */
1441
- channel_id: number | null;
1447
+ channel_id: string | null;
1442
1448
  /** Banner coupon's code */
1443
1449
  coupon: BannerCoupon | null;
1444
1450
  /** Banner coupon's id */
1445
- coupon_id: number | null;
1451
+ coupon_id: string | null;
1446
1452
  /** The bucket where the image is saved */
1447
1453
  image_bucket: string | null;
1448
1454
  /** he cloud where the banner is saved, see {@link CDNImage} */
@@ -1456,7 +1462,7 @@ interface Banner<T extends AdditionalInfo = AdditionalInfo> {
1456
1462
  /** An array of banner images, see {@link BannerImage} */
1457
1463
  images: BannerImage[];
1458
1464
  /** Banner product's id */
1459
- product_id: number | null;
1465
+ product_id: string | null;
1460
1466
  /** Banner product's name */
1461
1467
  product_name: string | null;
1462
1468
  /** Banner's section */
@@ -1466,7 +1472,7 @@ interface Banner<T extends AdditionalInfo = AdditionalInfo> {
1466
1472
  /** Banner stores array */
1467
1473
  stores: unknown[];
1468
1474
  /** Banner vendor's id */
1469
- vendor_id: number;
1475
+ vendor_id: string;
1470
1476
  /** Banner vendor's name */
1471
1477
  vendor_name: string;
1472
1478
  /** Banner additional info */
@@ -1494,7 +1500,7 @@ type BannerScope = "WEB" | "GLOBAL" | "APP";
1494
1500
  */
1495
1501
  interface BannerImage {
1496
1502
  /** Banner's id */
1497
- id: number;
1503
+ id: string;
1498
1504
  /** Banner image's filename */
1499
1505
  file_name: string;
1500
1506
  /** Banner image's filename */
@@ -1515,7 +1521,7 @@ interface BannerImage {
1515
1521
  * @since 0.1.0
1516
1522
  */
1517
1523
  interface BannerBenefits {
1518
- id: number;
1524
+ id: string;
1519
1525
  name: string;
1520
1526
  }
1521
1527
  /**
@@ -1567,7 +1573,7 @@ interface BaseBillingData<T extends AdditionalInfo = AdditionalInfo> {
1567
1573
  */
1568
1574
  interface BillingData<T extends AdditionalInfo = AdditionalInfo> extends BaseBillingData<T> {
1569
1575
  /** Billing's auto generated id */
1570
- id: number;
1576
+ id: string;
1571
1577
  }
1572
1578
 
1573
1579
  /**
@@ -1588,7 +1594,7 @@ interface Workflow<T extends AdditionalInfo = AdditionalInfo> {
1588
1594
  /** Workflow description */
1589
1595
  description: string;
1590
1596
  /** Workflow unique identifier */
1591
- id: number;
1597
+ id: string;
1592
1598
  /** Workflow name */
1593
1599
  name: string;
1594
1600
  /** An array of workflow steps, see {@link StepWorkflow} */
@@ -1644,7 +1650,7 @@ interface StepWorkflow {
1644
1650
  /** Step workflow description to use on front end */
1645
1651
  description_frontend: string | null;
1646
1652
  /** Step workflow id */
1647
- id: number;
1653
+ id: string;
1648
1654
  /** Step workflow name */
1649
1655
  name: string;
1650
1656
  /** Step workflow subtitle to use on front end */
@@ -1694,21 +1700,21 @@ interface StepWorkflowGroup {
1694
1700
  */
1695
1701
  interface TransitionWorkflow {
1696
1702
  /** Channel unique identifier */
1697
- channel_id: number;
1703
+ channel_id: string;
1698
1704
  /** Transition workflow conditions */
1699
1705
  conditions: any[];
1700
1706
  /** Transition workflow description */
1701
1707
  description: string;
1702
1708
  /** The step id where the transition comes from */
1703
- from_step_id: number;
1709
+ from_step_id: string;
1704
1710
  /** Transition workflow unique identifier */
1705
- id: number;
1711
+ id: string;
1706
1712
  /** Transition workflow name */
1707
1713
  name: string;
1708
1714
  /** The step id where the transition can go */
1709
- to_step_id: number;
1715
+ to_step_id: string;
1710
1716
  /** Vendor unique identifier */
1711
- vendor_id: number;
1717
+ vendor_id: string;
1712
1718
  }
1713
1719
  /**
1714
1720
  * Workflow webhook.
@@ -1718,7 +1724,7 @@ interface TransitionWorkflow {
1718
1724
  */
1719
1725
  interface WebhookWorkflow {
1720
1726
  /** Webhook workflow unique identifier */
1721
- id: number;
1727
+ id: string;
1722
1728
  /** Webhook workflow method type */
1723
1729
  method: string;
1724
1730
  /** Webhook workflow url */
@@ -1744,11 +1750,11 @@ interface IssueAdditionalInfo {
1744
1750
  */
1745
1751
  interface IssueHistory {
1746
1752
  /** History unique identifier */
1747
- id: number;
1753
+ id: string;
1748
1754
  /** Transition unique identifier */
1749
- transition_id: number;
1755
+ transition_id: string;
1750
1756
  /** Step unique identifier */
1751
- step_id: number;
1757
+ step_id: string;
1752
1758
  /** Step name */
1753
1759
  step_name: string;
1754
1760
  /** History additional info, see {@link IssueAdditionalInfo} */
@@ -1768,23 +1774,23 @@ interface IssueHistory {
1768
1774
  */
1769
1775
  interface Issue {
1770
1776
  /** Issue unique identifier */
1771
- id: number;
1777
+ id: string;
1772
1778
  /** Client issue unique identifier */
1773
1779
  client_issue_id: string;
1774
1780
  /** Workflow unique identifier */
1775
- workflow_id: number;
1781
+ workflow_id: string;
1776
1782
  /** Parent issue unique identifier */
1777
1783
  parent_issue_id: null;
1778
1784
  /** Related issue unique identifier */
1779
1785
  related_issue_id: null;
1780
1786
  /** Step unique identifier */
1781
- step_id: number;
1787
+ step_id: string;
1782
1788
  /** The step where the issue is located */
1783
1789
  step: StepWorkflow;
1784
1790
  /** Account unique identifier */
1785
- account_id: number;
1791
+ account_id: string;
1786
1792
  /** Vendor unique identifier */
1787
- vendor_id: number;
1793
+ vendor_id: string;
1788
1794
  /** Children issues */
1789
1795
  children: any[];
1790
1796
  /** Related issues */
@@ -1796,7 +1802,7 @@ interface Issue {
1796
1802
  /** Issue history, see {@link IssueHistory} */
1797
1803
  history: IssueHistory[];
1798
1804
  /** Transaction unique identifier */
1799
- transaction_id: number | null;
1805
+ transaction_id: string | null;
1800
1806
  }
1801
1807
 
1802
1808
  /**
@@ -1872,7 +1878,7 @@ interface ArtisnParams {
1872
1878
  */
1873
1879
  interface BaseLivingPlace {
1874
1880
  /** Living place's id */
1875
- id: number;
1881
+ id: string;
1876
1882
  }
1877
1883
  /**
1878
1884
  * Representation of a living place.
@@ -1887,7 +1893,7 @@ interface LivingPlace extends BaseLivingPlace {
1887
1893
  /** Whether or not the living place is active */
1888
1894
  active: number;
1889
1895
  /** Country unique identifier */
1890
- countryId: number;
1896
+ countryId: string;
1891
1897
  /** Array of fields required to save a living place, see {@link Field} */
1892
1898
  fields: Field[];
1893
1899
  }
@@ -2001,7 +2007,7 @@ interface BaseShippingAddress<T extends AdditionalInfo = AdditionalInfo> {
2001
2007
  */
2002
2008
  interface ShippingAddress<T extends AdditionalInfo = AdditionalInfo> extends BaseShippingAddress<T> {
2003
2009
  /** Shipping address unique identifier */
2004
- id: number;
2010
+ id: string;
2005
2011
  /** Object which contains the living place, see {@link LivingPlace} */
2006
2012
  livingPlace: LivingPlace;
2007
2013
  }
@@ -2032,7 +2038,7 @@ interface NewShippingAddress<T extends AdditionalInfo = AdditionalInfo> extends
2032
2038
  */
2033
2039
  interface UpdatedShippingAddress<T extends AdditionalInfo = AdditionalInfo> extends BaseShippingAddress<T> {
2034
2040
  /** Shipping address unique identifier */
2035
- id: number;
2041
+ id: string;
2036
2042
  /**
2037
2043
  * Object which contains the living place to update,
2038
2044
  * see {@link LivingPlaceToSave}
@@ -2116,7 +2122,7 @@ type UserType = "NORMAL" | "DEPENDENT";
2116
2122
  */
2117
2123
  interface UserCountry {
2118
2124
  /** User's country id */
2119
- id: number;
2125
+ id: string;
2120
2126
  }
2121
2127
  /**
2122
2128
  * Representation of a phone.
@@ -2183,9 +2189,9 @@ interface Settings {
2183
2189
  */
2184
2190
  interface BaseOrder<T extends AdditionalInfo = AdditionalInfo, U extends AdditionalInfo = AdditionalInfo, V extends AdditionalInfo = AdditionalInfo> {
2185
2191
  /** Order unique identifier */
2186
- id: number;
2192
+ id: string;
2187
2193
  /** Account unique identifier */
2188
- accountId: number;
2194
+ accountId: string;
2189
2195
  /** Order additional info*/
2190
2196
  additionalInfo?: T;
2191
2197
  /** User's order billing data' unique identifier */
@@ -2195,7 +2201,7 @@ interface BaseOrder<T extends AdditionalInfo = AdditionalInfo, U extends Additio
2195
2201
  /** Order allocation, see {@link Allocation} */
2196
2202
  allocation: Allocation;
2197
2203
  /** Channel unique identifier */
2198
- channelId: number;
2204
+ channelId: string;
2199
2205
  /** Order channel name */
2200
2206
  channelName: string;
2201
2207
  /** Order comment */
@@ -2227,7 +2233,7 @@ interface BaseOrder<T extends AdditionalInfo = AdditionalInfo, U extends Additio
2227
2233
  /** Step code, see {@link StepCode} */
2228
2234
  stepCode: StepCode;
2229
2235
  /** Step unique identifier */
2230
- stepId: number;
2236
+ stepId: string;
2231
2237
  /** Step name */
2232
2238
  stepName: string;
2233
2239
  /** User unique identifier */
@@ -2235,9 +2241,9 @@ interface BaseOrder<T extends AdditionalInfo = AdditionalInfo, U extends Additio
2235
2241
  /** Order user, see {@link OrderUser} */
2236
2242
  user: OrderUser<V>;
2237
2243
  /** Order transaction unique identifier */
2238
- transactionId: number | null;
2244
+ transactionId: string | null;
2239
2245
  /** Vendor unique identifier */
2240
- vendorId: number;
2246
+ vendorId: string;
2241
2247
  /** Vendor name */
2242
2248
  vendorName: string;
2243
2249
  /** Order operator information, see {@link OperatorInformation} */
@@ -2264,7 +2270,7 @@ interface OrderShoppingCart<T extends AdditionalInfo = AdditionalInfo> extends O
2264
2270
  /** Order instructions */
2265
2271
  instructions: string | null;
2266
2272
  /** Order status unique identifier */
2267
- statusId: number;
2273
+ statusId: string;
2268
2274
  /** Order issue unique identifier */
2269
2275
  issueId: string | null;
2270
2276
  /** Order invoice number */
@@ -2316,13 +2322,13 @@ interface OrderCommonFields {
2316
2322
  */
2317
2323
  interface OrderStore {
2318
2324
  /** Suborder unique identifier */
2319
- id: number;
2325
+ id: string;
2320
2326
  /** Order unique identifier */
2321
- orderId: number;
2327
+ orderId: string;
2322
2328
  /** Order digital command sent */
2323
2329
  digitalCommandSent: string;
2324
2330
  /** Order store status unique identifier */
2325
- statusId: number;
2331
+ statusId: string;
2326
2332
  /** Order store status name */
2327
2333
  statusName: string;
2328
2334
  /** Order store status code, see {@link StepCode} */
@@ -2404,11 +2410,11 @@ interface OrderStoreDelivery {
2404
2410
  */
2405
2411
  interface OrderProduct {
2406
2412
  /** Order product id */
2407
- id: number;
2413
+ id: string;
2408
2414
  /** Order product additional info, see {@link OrderProductAdditionalInfo } */
2409
2415
  additionalInfo: OrderProductAdditionalInfo;
2410
2416
  /** Order product unique identifier */
2411
- productId: number;
2417
+ productId: string;
2412
2418
  /** Order product name */
2413
2419
  productName: string;
2414
2420
  /** Order product comment */
@@ -2446,7 +2452,7 @@ interface OrderProductAdditionalInfo {
2446
2452
  /** The measure of the product */
2447
2453
  measure: string;
2448
2454
  /** The store associated with the product */
2449
- new_store: number;
2455
+ new_store: string;
2450
2456
  /** Indicates if a product is out of service */
2451
2457
  out_of_service: boolean;
2452
2458
  /** Indicates if a product is out of stock */
@@ -2606,7 +2612,7 @@ interface OrderProductPriceCategory {
2606
2612
  /** Order product price category type, see {@link PriceCategoryType} */
2607
2613
  category: PriceCategoryType;
2608
2614
  /** Order product price product id */
2609
- product_id?: number;
2615
+ product_id?: string;
2610
2616
  /** Order product price product name */
2611
2617
  name?: string;
2612
2618
  /** Order product price subtotal without taxes */
@@ -2635,9 +2641,9 @@ interface OrderProductPriceCategory {
2635
2641
  */
2636
2642
  interface OrderRetry extends Status, OrderCommonFields {
2637
2643
  /** Order retry unique identifier */
2638
- id: number;
2644
+ id: string;
2639
2645
  /** Order payment method id **/
2640
- payment_method_by_order_id: number;
2646
+ payment_method_by_order_id: string;
2641
2647
  /** Order retry reference **/
2642
2648
  reference: string;
2643
2649
  /** Order retry platform **/
@@ -2666,13 +2672,13 @@ interface OrderRetry extends Status, OrderCommonFields {
2666
2672
  */
2667
2673
  interface PaymentMethodByOrder extends Status, OrderCommonFields {
2668
2674
  /** Payment method by order unique identifier **/
2669
- id: number;
2675
+ id: string;
2670
2676
  /** Order unique identifier **/
2671
- order_id: number;
2677
+ order_id: string;
2672
2678
  /** Payment method id **/
2673
- payment_method_id: number;
2679
+ payment_method_id: string;
2674
2680
  /** Internal revenue service payment method id **/
2675
- sri_payment_method_id: number;
2681
+ sri_payment_method_id: string;
2676
2682
  /** Order payment method, see {@link OrderRetryPaymentMethod} */
2677
2683
  order: OrderRetryPaymentMethod;
2678
2684
  }
@@ -2684,7 +2690,7 @@ interface PaymentMethodByOrder extends Status, OrderCommonFields {
2684
2690
  */
2685
2691
  interface OrderRetryPaymentMethod extends Status {
2686
2692
  /** Order retry payment method unique identifier **/
2687
- id: number;
2693
+ id: string;
2688
2694
  /** User unique identifier associated with the order retry **/
2689
2695
  uid: string;
2690
2696
  /** Order retry billing data by user id **/
@@ -2704,13 +2710,13 @@ interface OrderRetryPaymentMethod extends Status {
2704
2710
  /** Order retry sent fulfillment **/
2705
2711
  sent_fulfillment: string;
2706
2712
  /** Order retry account id **/
2707
- account_id: number;
2713
+ account_id: string;
2708
2714
  /** Order retry sequence value **/
2709
2715
  seq_val: string;
2710
2716
  /** Order retry vendor id **/
2711
- vendor_id: number;
2717
+ vendor_id: string;
2712
2718
  /** Order retry channel id **/
2713
- channel_id: number;
2719
+ channel_id: string;
2714
2720
  /** Order retry created date **/
2715
2721
  created_at: string;
2716
2722
  /** Order retry update date **/
@@ -2728,7 +2734,7 @@ interface OrderRetryPaymentMethod extends Status {
2728
2734
  */
2729
2735
  interface Status {
2730
2736
  /** Status unique identifier **/
2731
- status_id: number;
2737
+ status_id: string;
2732
2738
  /** Status name **/
2733
2739
  status_name: string;
2734
2740
  /** Status code **/
@@ -2745,13 +2751,13 @@ interface Status {
2745
2751
  */
2746
2752
  interface Suborder extends Status {
2747
2753
  /** Suborder unique identifier **/
2748
- id: number;
2754
+ id: string;
2749
2755
  /** Suborder store unique identifier **/
2750
- store_id: number;
2756
+ store_id: string;
2751
2757
  /** Suborder store unique identifier **/
2752
2758
  store_name: string;
2753
2759
  /** Suborder order id **/
2754
- order_id: number;
2760
+ order_id: string;
2755
2761
  /** Suborder digital command sent **/
2756
2762
  digital_command_sent: string;
2757
2763
  /** Suborder vendor **/
@@ -2775,7 +2781,7 @@ interface OrderStep {
2775
2781
  /** Order step description to use on front end */
2776
2782
  description_frontend: string;
2777
2783
  /** Order step unique identifier */
2778
- id: number;
2784
+ id: string;
2779
2785
  /** Order step name */
2780
2786
  name: string;
2781
2787
  /** Order step code */
@@ -2869,7 +2875,7 @@ type Order<T extends AdditionalInfo = AdditionalInfo, U extends AdditionalInfo =
2869
2875
  */
2870
2876
  interface BaseField {
2871
2877
  /** Base field unique identifier */
2872
- id: number;
2878
+ id: string;
2873
2879
  /** Base field name */
2874
2880
  name: string;
2875
2881
  }
@@ -2991,9 +2997,9 @@ interface OperatorInformation {
2991
2997
  */
2992
2998
  interface OrderPaymentMethod {
2993
2999
  /** Order payment method id */
2994
- id: number;
3000
+ id: string;
2995
3001
  /** Order payment method id */
2996
- payment_method_id: number;
3002
+ payment_method_id: string;
2997
3003
  /** Order payment method name */
2998
3004
  payment_method_name: string;
2999
3005
  /** Order total by payment method */
@@ -3021,7 +3027,7 @@ type OrderStatus = "APPROVED" | "REJECTED" | "PENDING";
3021
3027
  */
3022
3028
  interface Notification {
3023
3029
  /** Notification unique identifier */
3024
- id: number;
3030
+ id: string;
3025
3031
  /** Notification title */
3026
3032
  title: string;
3027
3033
  /** Notification description */
@@ -3064,7 +3070,7 @@ type ReadValue = "YES" | "NO";
3064
3070
  */
3065
3071
  interface NotificationExtraData {
3066
3072
  /** The id of the notification extra data */
3067
- id: number;
3073
+ id: string;
3068
3074
  /** Sequential value */
3069
3075
  seqVal: string;
3070
3076
  /** Unique identifier */
@@ -3080,9 +3086,9 @@ interface NotificationExtraData {
3080
3086
  /** Store related to the notification, see {@link NotificationStore} */
3081
3087
  store: NotificationStore;
3082
3088
  /** Channel unique identifier */
3083
- channel_id: number;
3089
+ channel_id: string;
3084
3090
  /** Provided country id */
3085
- countryId: number;
3091
+ countryId: string;
3086
3092
  /** Notification step, see {@link NotificationStep} */
3087
3093
  step: NotificationStep;
3088
3094
  /** Allocation options, see {@link Allocation} */
@@ -3153,7 +3159,7 @@ interface NotificationAdditionalInfo {
3153
3159
  /** Project unique identifier */
3154
3160
  aud: string;
3155
3161
  /** Unique identifier of workflowId */
3156
- workflowId: number;
3162
+ workflowId: string;
3157
3163
  }
3158
3164
  /**
3159
3165
  * Notification list item.
@@ -3176,7 +3182,7 @@ interface NotificationListItem {
3176
3182
  */
3177
3183
  interface BasePaymentMethod {
3178
3184
  /** Payment method's id */
3179
- id: number;
3185
+ id: string;
3180
3186
  /** Payment method's created date */
3181
3187
  created_at: string | null;
3182
3188
  /** Payment method's updated date */
@@ -3245,7 +3251,7 @@ interface PaymentProvider extends Omit<PaymentMethod, "name"> {
3245
3251
  */
3246
3252
  interface CreditCardMapping extends BasePaymentMethod {
3247
3253
  /** Credit card mapping unique identifier */
3248
- id: number;
3254
+ id: string;
3249
3255
  /** Credit card mapping name, see {@link CardName} */
3250
3256
  name: CardName;
3251
3257
  /** Payment method image's url, commonly used to save image cards */
@@ -3274,7 +3280,7 @@ type CardName = "Diners" | "Discover" | "American Express" | "Visa" | "MasterCar
3274
3280
  * @since 0.5.15
3275
3281
  */
3276
3282
  interface CardInscription {
3277
- id: number;
3283
+ id: string;
3278
3284
  uid: string;
3279
3285
  number: string;
3280
3286
  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.46",
5
+ "version": "0.14.0-canary.48",
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": "64b4dc8288caebd32a40cf59d1a31e190f0cdc5b",
27
+ "gitHead": "2b6418d5e5d73fe1b6e939dd0942e6dcce7b95fa",
28
28
  "nx": {
29
29
  "targets": {
30
30
  "build": {