@artisan-commerce/builders 0.7.0-canary.62 → 0.7.0-canary.64

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.cjs CHANGED
@@ -130,7 +130,7 @@ const genMobilPhone = (countryCode) => {
130
130
  };
131
131
  const genCountry = (id, name) => {
132
132
  const country = {
133
- id: id != null ? id : genNumericId(),
133
+ id: id != null ? id : genId(),
134
134
  name: name != null ? name : genCountryName()
135
135
  };
136
136
  return country;
@@ -252,7 +252,7 @@ var __spreadValues$h = (a, b) => {
252
252
  };
253
253
  const buildAccount = (overrides = {}) => {
254
254
  return __spreadValues$h({
255
- accountId: genNumber(),
255
+ accountId: genId(),
256
256
  name: genName(),
257
257
  description: genBiasBoolean(0.5) ? genParagraph() : void 0,
258
258
  images: genCDNImages(void 0, { query: "brand" })
@@ -301,14 +301,14 @@ const buildBanner = (overrides = {}) => {
301
301
  image_url: buildURLImage(),
302
302
  banner_qr_code: "",
303
303
  coupon: buildBannerCoupon(),
304
- coupon_id: genNumber(20),
304
+ coupon_id: genId(),
305
305
  banner_type: chooseRandom(bannerTypes),
306
306
  image_file_name: `${genWord}.jpg`,
307
307
  benefits: genBannerBenefits(),
308
- vendor_id: genNumber(20),
308
+ vendor_id: genId(),
309
309
  vendor_name: faker.faker.company.name(),
310
310
  scope: chooseRandom(bannerScopes),
311
- banner_category_id: genNumber(10),
311
+ banner_category_id: genId(),
312
312
  product_id: null,
313
313
  product_name: null,
314
314
  stores: [],
@@ -316,9 +316,9 @@ const buildBanner = (overrides = {}) => {
316
316
  image_bucket: null,
317
317
  image_cloud_front_url: genURL(),
318
318
  image_key: `banners/${genWord}.jpg`,
319
- category_id: genNumber(20),
319
+ category_id: genId(),
320
320
  category_name: faker.faker.company.name(),
321
- channel_id: genNumber(10),
321
+ channel_id: genId(),
322
322
  images: genBannerImages(),
323
323
  section: null
324
324
  }, overrides);
@@ -332,7 +332,7 @@ const buildBannerCoupon = (overrides = {}) => {
332
332
  };
333
333
  const buildBannerBenefits = (overrides = {}) => {
334
334
  return __spreadValues$g({
335
- id: genNumber(10),
335
+ id: genId(),
336
336
  name: genWord()
337
337
  }, overrides);
338
338
  };
@@ -345,7 +345,7 @@ const genBanners = (quantity) => {
345
345
  const buildBannerImage = (overrides = {}) => {
346
346
  return __spreadValues$g({
347
347
  file_name: `${genWord}.jpg`,
348
- id: genNumber(500),
348
+ id: genId(),
349
349
  image_file_name: `${genWord}.jpg`,
350
350
  image_key: `banners/${genWord}.jpg`,
351
351
  image_url: buildURLImage(),
@@ -386,7 +386,7 @@ var __spreadValues$f = (a, b) => {
386
386
  };
387
387
  const buildBillingData = (overrides = {}) => {
388
388
  return __spreadValues$f({
389
- id: genNumericId(),
389
+ id: genId(),
390
390
  name: `${genName()} ${genName()}`,
391
391
  nickname: genName(),
392
392
  documentType: genDocumentType(),
@@ -510,7 +510,9 @@ const buildPriceCategory = (overrides = {}) => {
510
510
  grossPrice,
511
511
  netPrice,
512
512
  symbol: "$",
513
- taxes
513
+ taxes,
514
+ salePercentage: 0,
515
+ priceBeforeSale: 0
514
516
  }, overrides);
515
517
  };
516
518
  const buildBaseProduct = (overrides = {}) => {
@@ -531,7 +533,8 @@ const buildBaseProduct = (overrides = {}) => {
531
533
  outOfStock: false,
532
534
  prices: {
533
535
  NORMAL: buildPriceCategory({ category: "NORMAL" }),
534
- POINTS: buildPriceCategory({ category: "POINTS" })
536
+ POINTS: buildPriceCategory({ category: "POINTS" }),
537
+ SUGGESTED: buildPriceCategory({ category: "SUGGESTED" })
535
538
  },
536
539
  productId: genNumber(999).toString(),
537
540
  sponsored: false,
@@ -561,7 +564,8 @@ const buildProductAnswer = (overrides = {}, loop = 1) => {
561
564
  name: faker.faker.name.jobDescriptor(),
562
565
  prices: {
563
566
  NORMAL: buildPriceCategory({ category: "NORMAL" }),
564
- POINTS: buildPriceCategory({ category: "POINTS" })
567
+ POINTS: buildPriceCategory({ category: "POINTS" }),
568
+ SUGGESTED: buildPriceCategory({ category: "SUGGESTED" })
565
569
  },
566
570
  productId: genNumber(999).toString(),
567
571
  type: chooseRandom(["PRODUCT", "MODIFIER"]),
@@ -717,7 +721,7 @@ var __spreadValues$c = (a, b) => {
717
721
  var __spreadProps$4 = (a, b) => __defProps$4(a, __getOwnPropDescs$4(b));
718
722
  const buildCategory = (overrides = {}) => {
719
723
  return __spreadValues$c({
720
- categoryId: genNumericId(),
724
+ categoryId: genId(),
721
725
  displayInMenu: genBiasBoolean(0.9),
722
726
  images: genCDNImages(void 0, { width: 1200, height: 400 }),
723
727
  name: genName(),
@@ -778,7 +782,7 @@ const countriesCodes = [
778
782
  ];
779
783
  const buildCountryCurrency = (overrides = {}) => {
780
784
  return __spreadValues$b({
781
- id: genNumber({ min: 0, max: 999 }),
785
+ id: genId(),
782
786
  name: chooseRandom(["USD", "EUR", "CHL"]),
783
787
  sign: genSymbol(),
784
788
  external_id: genId()
@@ -789,7 +793,7 @@ const genCountryCurrencies = (quantity) => {
789
793
  };
790
794
  const buildCountry = (overrides = {}) => {
791
795
  return __spreadValues$b({
792
- id: genNumber({ min: 0, max: 999 }),
796
+ id: genId(),
793
797
  code: chooseRandom(countriesCodes),
794
798
  currency: buildCountryCurrency(),
795
799
  name: genName()
@@ -833,11 +837,11 @@ const buildBenefit = (overrides = {}) => {
833
837
  ];
834
838
  const type = chooseRandom(benefitTypes);
835
839
  return __spreadValues$a({
836
- accountId: genNumber(20),
840
+ accountId: genId(),
837
841
  hash: genId(),
838
842
  award: type === "PRODUCT" ? genAwards(1) : buildAward(),
839
- benefitId: genNumber(100),
840
- benefitWalletId: genNumber(100),
843
+ benefitId: genId(),
844
+ benefitWalletId: genId(),
841
845
  code: null,
842
846
  combined: genWord(),
843
847
  createdAt: genDate(),
@@ -855,7 +859,7 @@ const buildBenefit = (overrides = {}) => {
855
859
  title: genWords(3),
856
860
  type,
857
861
  updatedAt: genDate(),
858
- channelId: genNumber(50),
862
+ channelId: genId(),
859
863
  vendorId: genNumber(30).toString()
860
864
  }, overrides);
861
865
  };
@@ -864,13 +868,13 @@ const genBenefits = (quantity) => {
864
868
  };
865
869
  const buildAward = (overrides = {}) => {
866
870
  return __spreadValues$a({
867
- benefitId: genNumber(100),
871
+ benefitId: genId(),
868
872
  discountPercentage: genNumber(100),
869
873
  discountValue: null,
870
- id: genNumericId(),
874
+ id: genId(),
871
875
  amount: genNumber(5),
872
876
  productDescription: genWords(5),
873
- productId: genNumber(99),
877
+ productId: genId(),
874
878
  vendorId: genNumber(99).toString()
875
879
  }, overrides);
876
880
  };
@@ -888,7 +892,7 @@ const genWallets = (quantity) => {
888
892
  const buildStoreCoupon = (overrides = {}) => {
889
893
  return __spreadValues$a({
890
894
  featured: genBiasBoolean(0.5),
891
- id: genNumber(99999),
895
+ id: genId(),
892
896
  name: genCompanyName(),
893
897
  vendor_id: genNumber(9999).toString(),
894
898
  coupons: genCoupons()
@@ -900,12 +904,12 @@ const genStoreCoupons = (quantity) => {
900
904
  const buildProductCoupon = (overrides = {}) => {
901
905
  return __spreadValues$a({
902
906
  amount: genNumber(1),
903
- id: genNumber(999),
904
- benefitId: genNumber(999),
907
+ id: genId(),
908
+ benefitId: genId(),
905
909
  discountPercentage: genNumber(100),
906
910
  discountValue: genNumber(10),
907
911
  productDescription: genWords(3),
908
- productId: genNumber(99999),
912
+ productId: genId(),
909
913
  swapProductId: null,
910
914
  vendorId: genNumber(999).toString()
911
915
  }, overrides);
@@ -915,7 +919,7 @@ const genProductCoupons = (quantity) => {
915
919
  };
916
920
  const buildBenefitData = (overrides = {}) => {
917
921
  return __spreadValues$a({
918
- account_id: genNumber(100),
922
+ account_id: genId(),
919
923
  amount: genNumber(1),
920
924
  automatic_redeemed: genBiasBoolean(0.1).toString(),
921
925
  code: genWord().toUpperCase(),
@@ -927,7 +931,7 @@ const buildBenefitData = (overrides = {}) => {
927
931
  error_validation: genWords(3),
928
932
  expiration_date: genDate(),
929
933
  external_id: genNumber(1e4).toString(),
930
- id: genNumber(9999),
934
+ id: genId(),
931
935
  image: null,
932
936
  instruction: null,
933
937
  limit_award: null,
@@ -959,7 +963,7 @@ const buildCoupon = (overrides = {}) => {
959
963
  codes: genCodes(),
960
964
  end_date: genDate(),
961
965
  image: buildURLImage({ query: "coupon" }),
962
- id: genNumber(9999),
966
+ id: genId(),
963
967
  name: genWord(),
964
968
  only_store: genBiasBoolean(0.6),
965
969
  spend: genNumber(100),
@@ -978,7 +982,7 @@ const genCoupons = (quantity) => {
978
982
  const buildCouponCategory = (overrides = {}) => {
979
983
  return __spreadValues$a({
980
984
  featured: genBiasBoolean(0.5),
981
- id: genNumber(9999),
985
+ id: genId(),
982
986
  name: genWord()
983
987
  }, overrides);
984
988
  };
@@ -988,8 +992,8 @@ const genCouponCategories = (quantity) => {
988
992
  const buildCode = (overrides = {}) => {
989
993
  return __spreadValues$a({
990
994
  code: genWord().toUpperCase(),
991
- coupon_id: genNumber(99999),
992
- id: genNumber(99999),
995
+ coupon_id: genId(),
996
+ id: genId(),
993
997
  status: chooseRandom(["ACTIVE", "INACTIVE"]),
994
998
  jwt: buildToken(),
995
999
  used: genBiasBoolean(0.5)
@@ -1015,7 +1019,7 @@ const buildStoreCouponDetail = (overrides = {}) => {
1015
1019
  codes: genCodes(),
1016
1020
  end_date: genDate(),
1017
1021
  image: buildURLImage({ query: "coupon", height: 200, width: 544 }),
1018
- id: genNumber(9999),
1022
+ id: genId(),
1019
1023
  name: genWord(),
1020
1024
  only_store: genBiasBoolean(0.6),
1021
1025
  spend: genNumber(100),
@@ -1098,17 +1102,17 @@ const buildIssue = (overrides = {}) => {
1098
1102
  children: [],
1099
1103
  related: [],
1100
1104
  step: buildStepWorkflow(),
1101
- account_id: genNumber(20),
1105
+ account_id: genId(),
1102
1106
  additional_info: buildIssueAdditionalInfo(),
1103
- client_issue_id: genNumber(200).toString(),
1104
- transaction_id: genNumber(9999),
1107
+ client_issue_id: genId(),
1108
+ transaction_id: genId(),
1105
1109
  history: genIssueHistory(),
1106
- id: genNumber(9999),
1110
+ id: genId(),
1107
1111
  parent_issue_id: null,
1108
1112
  related_issue_id: null,
1109
- step_id: genNumber(30),
1110
- vendor_id: genNumber(30),
1111
- workflow_id: genNumber(10)
1113
+ step_id: genId(),
1114
+ vendor_id: genId(),
1115
+ workflow_id: genId()
1112
1116
  }, overrides);
1113
1117
  };
1114
1118
  const genIssues = (quantity) => {
@@ -1135,10 +1139,10 @@ const buildIssueHistory = (overrides = {}) => {
1135
1139
  created_at: genDate(),
1136
1140
  finished_at: genDate(),
1137
1141
  additional_info: buildIssueAdditionalInfo(),
1138
- id: genNumber(1e4),
1139
- step_id: genNumber(15),
1142
+ id: genId(),
1143
+ step_id: genId(),
1140
1144
  step_name: genWords(2),
1141
- transition_id: genNumber(15)
1145
+ transition_id: genId()
1142
1146
  }, overrides);
1143
1147
  };
1144
1148
  const genIssueHistory = (quantity) => {
@@ -1147,7 +1151,7 @@ const genIssueHistory = (quantity) => {
1147
1151
  const buildWorkflow = (overrides = {}) => {
1148
1152
  return __spreadValues$9({
1149
1153
  description: genWords(7),
1150
- id: genNumericId(),
1154
+ id: genId(),
1151
1155
  name: genCompanyName(),
1152
1156
  steps: genStepWorkflows(),
1153
1157
  webhooks: genWebhookWorkflows()
@@ -1171,7 +1175,7 @@ const buildStepWorkflow = (overrides = {}) => {
1171
1175
  category: chooseRandom(stepCategory),
1172
1176
  code: chooseRandom(stepCode),
1173
1177
  color: chooseRandom(["#FFFFFF", "#000000"]),
1174
- id: genNumericId(),
1178
+ id: genId(),
1175
1179
  description: genWords(10),
1176
1180
  description_frontend: genWords(5),
1177
1181
  name: genCompanyName(),
@@ -1193,7 +1197,7 @@ const buildWebhookWorkflow = (overrides = {}) => {
1193
1197
  "PUT"
1194
1198
  ];
1195
1199
  return __spreadValues$9({
1196
- id: genNumber(999),
1200
+ id: genId(),
1197
1201
  method: chooseRandom(methods),
1198
1202
  url: genURL()
1199
1203
  }, overrides);
@@ -1236,14 +1240,14 @@ const genStepWorkflowGroups = (quantity) => {
1236
1240
  };
1237
1241
  const buildTransitionWorkflow = (overrides = {}) => {
1238
1242
  return __spreadValues$9({
1239
- channel_id: genNumber(20),
1243
+ channel_id: genId(),
1240
1244
  conditions: [],
1241
1245
  description: genWords(10),
1242
- from_step_id: genNumber(7),
1243
- to_step_id: genNumber(7),
1244
- id: genNumericId(),
1246
+ from_step_id: genId(),
1247
+ to_step_id: genId(),
1248
+ id: genId(),
1245
1249
  name: genName(),
1246
- vendor_id: genNumber(30)
1250
+ vendor_id: genId()
1247
1251
  }, overrides);
1248
1252
  };
1249
1253
  const genTransitionWorkflows = (quantity) => {
@@ -1392,7 +1396,7 @@ var __spreadValues$6 = (a, b) => {
1392
1396
  };
1393
1397
  const buildStore = (overrides = {}) => {
1394
1398
  return __spreadValues$6({
1395
- storeId: genNumericId(),
1399
+ storeId: genId(),
1396
1400
  storeName: faker.faker.name.jobTitle(),
1397
1401
  address: faker.faker.address.street(),
1398
1402
  vendor: buildVendor(),
@@ -1562,7 +1566,7 @@ const buildShoppingCart = (overrides = {}) => {
1562
1566
  return __spreadValues$5({
1563
1567
  name: "default",
1564
1568
  billTotal: buildBillTotal(),
1565
- channelId: genNumber(99),
1569
+ channelId: genId(),
1566
1570
  createdAt: new Date().toISOString(),
1567
1571
  latitude: genNumber({ min: -20, max: 20, precision: 8 }),
1568
1572
  longitude: genNumber({ min: -20, max: 20, precision: 8 }),
@@ -1580,7 +1584,7 @@ const buildShippingCost = (overrides = {}) => {
1580
1584
  grossPrice: genNumber(100),
1581
1585
  name: genWord(),
1582
1586
  netPrice: genNumber(100),
1583
- productId: genNumber(100),
1587
+ productId: genId(),
1584
1588
  subtotalBeforeTaxes: genNumber(100),
1585
1589
  symbol: genSymbol(),
1586
1590
  taxTotal: genNumber(100),
@@ -1612,8 +1616,8 @@ const buildDiscount = (overrides = {}) => {
1612
1616
  ];
1613
1617
  const type = chooseRandom(benefitTypes);
1614
1618
  return __spreadValues$5({
1615
- benefitId: Number(genId()),
1616
- benefitWalletId: Number(genId()),
1619
+ benefitId: genId(),
1620
+ benefitWalletId: genId(),
1617
1621
  discountBase: genNumber(100),
1618
1622
  hasTaxes: genBiasBoolean(0.5),
1619
1623
  isInitialized: genBiasBoolean(0.5),
@@ -1694,11 +1698,11 @@ const genMessages = (quantity) => {
1694
1698
  };
1695
1699
  const buildLivingPlace = (overrides = {}) => {
1696
1700
  return __spreadValues$4({
1697
- id: genNumericId(),
1701
+ id: genId(),
1698
1702
  fields: genFields(2),
1699
1703
  name: genWord(),
1700
1704
  active: 1,
1701
- countryId: 1
1705
+ countryId: "1"
1702
1706
  }, overrides);
1703
1707
  };
1704
1708
  const genLivingPlaces = (quantity) => {
@@ -1706,7 +1710,7 @@ const genLivingPlaces = (quantity) => {
1706
1710
  };
1707
1711
  const buildShippingAddress = (overrides = {}) => {
1708
1712
  return __spreadValues$4({
1709
- id: genNumericId(),
1713
+ id: genId(),
1710
1714
  default: getBoolean(),
1711
1715
  mainStreet: genStreetName(),
1712
1716
  number: genStreetNumber(),
@@ -1837,13 +1841,13 @@ const buildBaseOrder = (overrides = {}) => {
1837
1841
  const date = allocation !== "DELIVERY" ? genDate() : null;
1838
1842
  const category = chooseRandom(stepCategory);
1839
1843
  const code = chooseRandom(stepCode);
1840
- const id = genNumber(10);
1844
+ const id = genId();
1841
1845
  const name = genWord();
1842
1846
  return __spreadValues$2({
1843
1847
  additionalMessage: genWords(3),
1844
1848
  allocation,
1845
- channelId: genNumber(200),
1846
- id: genNumericId(),
1849
+ channelId: genId(),
1850
+ id: genId(),
1847
1851
  orderDate: genDate(),
1848
1852
  orderTime: genDate(),
1849
1853
  pickupDate: date,
@@ -1855,9 +1859,9 @@ const buildBaseOrder = (overrides = {}) => {
1855
1859
  stepCode: code,
1856
1860
  stepId: id,
1857
1861
  stepName: name,
1858
- transactionId: genNumericId(),
1859
- vendorId: genNumber(200),
1860
- accountId: genNumber(200),
1862
+ transactionId: genId(),
1863
+ vendorId: genId(),
1864
+ accountId: genId(),
1861
1865
  uid: genId(),
1862
1866
  hash: genId(),
1863
1867
  pickupCooktime: null,
@@ -1892,7 +1896,7 @@ const buildOrderStep = (overrides = {}) => {
1892
1896
  code: genWord(),
1893
1897
  color: chooseRandom(["#FFFFFF", "#000000"]),
1894
1898
  description: genWords(6),
1895
- id: genNumericId(),
1899
+ id: genId(),
1896
1900
  name: genWord(),
1897
1901
  additional_info: buildOrderStepAdditionalInfo(),
1898
1902
  title_frontend: genWords(3)
@@ -1930,7 +1934,7 @@ const genOrderDetailShippingCosts = (quantity) => {
1930
1934
  };
1931
1935
  const buildOrderRetry = (overrides = {}) => {
1932
1936
  return __spreadValues$2(__spreadProps$2(__spreadValues$2({
1933
- id: genNumericId(),
1937
+ id: genId(),
1934
1938
  amount: genNumber(100).toString(),
1935
1939
  created_at: genDate(),
1936
1940
  updated_at: genDate(),
@@ -1943,7 +1947,7 @@ const buildOrderRetry = (overrides = {}) => {
1943
1947
  step: buildOrderStep()
1944
1948
  }, buildStatus()), {
1945
1949
  status: genWord(),
1946
- payment_method_by_order_id: genNumber(9999999),
1950
+ payment_method_by_order_id: genId(),
1947
1951
  user_agent: genWord(),
1948
1952
  payment_method: null
1949
1953
  }), overrides);
@@ -1952,7 +1956,7 @@ const buildStatus = (overrides = {}) => {
1952
1956
  return __spreadValues$2({
1953
1957
  status_category: genWord(),
1954
1958
  status_code: genWord(),
1955
- status_id: genNumber(999),
1959
+ status_id: genId(),
1956
1960
  status_name: genWord()
1957
1961
  }, overrides);
1958
1962
  };
@@ -1964,9 +1968,9 @@ const genOrderRetries = (quantity) => {
1964
1968
  };
1965
1969
  const buildOrderPaymentMethod = (overrides = {}) => {
1966
1970
  return __spreadValues$2({
1967
- id: genNumericId(),
1971
+ id: genId(),
1968
1972
  lastRetry: buildOrderRetry(),
1969
- payment_method_id: genNumber(20),
1973
+ payment_method_id: genId(),
1970
1974
  status: chooseRandom(orderStatusOptions),
1971
1975
  step: buildOrderStep(),
1972
1976
  total: genNumber(200).toString(),
@@ -1986,7 +1990,7 @@ const buildOrderShoppingCart = (overrides = {}) => {
1986
1990
  instructions: genWords(6),
1987
1991
  statusName: genWord(),
1988
1992
  paymentStatus: chooseRandom(paymentStatus),
1989
- statusId: genNumericId(),
1993
+ statusId: genId(),
1990
1994
  statusCode: chooseRandom(stepCode),
1991
1995
  issueId: genId(),
1992
1996
  invoiceNumber: genId(),
@@ -2031,15 +2035,15 @@ const genOrderStoreDeliveries = (quantity) => {
2031
2035
  };
2032
2036
  const buildOrderStore = (overrides = {}) => {
2033
2037
  return __spreadValues$2({
2034
- id: genNumericId(),
2035
- orderId: genNumericId(),
2038
+ id: genId(),
2039
+ orderId: genId(),
2036
2040
  digitalCommandSent: genWord(),
2037
- statusId: genNumericId(),
2041
+ statusId: genId(),
2038
2042
  statusName: genWord(),
2039
2043
  statusCode: chooseRandom(stepCode),
2040
2044
  billStoreTotal: buildOrderProductBillTotal(),
2041
2045
  products: genOrderProducts(),
2042
- storeId: genNumericId(),
2046
+ storeId: genId(),
2043
2047
  storeName: faker.faker.name.jobTitle(),
2044
2048
  additionalInfo: buildOrderStoreAdditionalInfo()
2045
2049
  }, overrides);
@@ -2064,7 +2068,7 @@ const buildOrderProductAdditionalInfo = (overrides = {}) => {
2064
2068
  description: faker.faker.lorem.lines(2),
2065
2069
  is_price_vip: genBiasBoolean(0.5),
2066
2070
  max_amount_for_sale: genNumber(100),
2067
- new_store: genNumber(9999),
2071
+ new_store: genId(),
2068
2072
  out_of_service: genBiasBoolean(0.5),
2069
2073
  out_of_stock: genBiasBoolean(0.5),
2070
2074
  sponsored: genBiasBoolean(0.1),
@@ -2139,7 +2143,7 @@ const buildOrderProductPriceCategory = (overrides = {}) => {
2139
2143
  subtotal_before_taxes_before_discounts: genNumber(30),
2140
2144
  subtotal_without_taxes: genNumber(30),
2141
2145
  subtotal_zero: 0,
2142
- product_id: genNumber(99999),
2146
+ product_id: genId(),
2143
2147
  symbol: genSymbol(),
2144
2148
  tax_calcs: buildTaxCalculations(),
2145
2149
  tax_total: genNumber(12),
@@ -2151,9 +2155,9 @@ const genOrderProductPriceCategories = (quantity) => {
2151
2155
  };
2152
2156
  const buildOrderProduct = (overrides = {}) => {
2153
2157
  return __spreadValues$2({
2154
- id: genNumericId(),
2158
+ id: genId(),
2155
2159
  additionalInfo: buildOrderProductAdditionalInfo(),
2156
- productId: genNumericId(),
2160
+ productId: genId(),
2157
2161
  productName: genWords(5),
2158
2162
  comment: genWords(5),
2159
2163
  billProduct: buildOrderBillProduct(),
@@ -2199,7 +2203,7 @@ const genMetadataShippings = (quantity) => {
2199
2203
  };
2200
2204
  const buildBaseField = (overrides = {}) => {
2201
2205
  return __spreadValues$2({
2202
- id: genNumericId(),
2206
+ id: genId(),
2203
2207
  name: genName()
2204
2208
  }, overrides);
2205
2209
  };
@@ -2260,9 +2264,9 @@ const buildSuborder = (overrides = {}) => {
2260
2264
  additional_info: genWord(),
2261
2265
  created_at: genDate(),
2262
2266
  updated_at: genDate(),
2263
- order_id: genNumericId(),
2264
- id: genNumericId(),
2265
- store_id: genNumber(100),
2267
+ order_id: genId(),
2268
+ id: genId(),
2269
+ store_id: genId(),
2266
2270
  store_name: genCompanyName(),
2267
2271
  vendor: genCompanyName(),
2268
2272
  digital_command_sent: genBiasBoolean(0.5).toString()
@@ -2276,12 +2280,12 @@ const buildPaymentMethodByOrder = (overrides = {}) => {
2276
2280
  amount: genNumber(200).toString(),
2277
2281
  created_at: genDate(),
2278
2282
  updated_at: genDate(),
2279
- id: genNumericId(),
2280
- payment_method_id: genNumber(10),
2283
+ id: genId(),
2284
+ payment_method_id: genId(),
2281
2285
  status: genWord(),
2282
- sri_payment_method_id: genNumber(5),
2286
+ sri_payment_method_id: genId(),
2283
2287
  order: buildOrderRetryPaymentMethod(),
2284
- order_id: genNumericId()
2288
+ order_id: genId()
2285
2289
  }), overrides);
2286
2290
  };
2287
2291
  const genPaymentMethodByOrders = (quantity) => {
@@ -2289,17 +2293,17 @@ const genPaymentMethodByOrders = (quantity) => {
2289
2293
  };
2290
2294
  const buildOrderRetryPaymentMethod = (overrides = {}) => {
2291
2295
  return __spreadValues$2(__spreadProps$2(__spreadValues$2({
2292
- account_id: genNumber(30),
2293
- vendor_id: genNumber(30),
2296
+ account_id: genId(),
2297
+ vendor_id: genId(),
2294
2298
  allocation: chooseRandom(allocationOptions),
2295
2299
  billing_data_by_user_id: genId(),
2296
- channel_id: genNumber(30),
2300
+ channel_id: genId(),
2297
2301
  created_at: genDate(),
2298
2302
  latitude: genLatitude(),
2299
2303
  longitude: genLongitude(),
2300
2304
  uid: genId(),
2301
2305
  insoft_order_process: genWord(),
2302
- id: genNumber(999999),
2306
+ id: genId(),
2303
2307
  sent_fulfillment: genWord(),
2304
2308
  shopping_cart_id: genId()
2305
2309
  }, buildStatus()), {
@@ -2406,7 +2410,7 @@ var __spreadValues$1 = (a, b) => {
2406
2410
  var __spreadProps$1 = (a, b) => __defProps$1(a, __getOwnPropDescs$1(b));
2407
2411
  const buildNotification = (overrides = {}) => {
2408
2412
  return __spreadValues$1({
2409
- id: genNumber(99999),
2413
+ id: genId(),
2410
2414
  title: genWords(2),
2411
2415
  description: genWords(6),
2412
2416
  listTitle: genWords(2),
@@ -2440,7 +2444,7 @@ const genNotificationStores = (quantity) => {
2440
2444
  };
2441
2445
  const buildNotificationStep = (overrides = {}) => {
2442
2446
  return __spreadValues$1({
2443
- id: genNumber(99),
2447
+ id: genId(),
2444
2448
  name: genWord(),
2445
2449
  code: chooseRandom(stepCode),
2446
2450
  category: chooseRandom(stepCategory)
@@ -2454,7 +2458,7 @@ const buildNotificationAdditionalInfo = (overrides = {}) => {
2454
2458
  parent_shopping_cart: getBoolean(),
2455
2459
  metadata_shipping: buildMetadataShipping(),
2456
2460
  aud: genCompanyName(),
2457
- workflowId: genNumber(10)
2461
+ workflowId: genId()
2458
2462
  }, overrides);
2459
2463
  };
2460
2464
  const genNotificationAdditionalInfos = (quantity) => {
@@ -2463,16 +2467,16 @@ const genNotificationAdditionalInfos = (quantity) => {
2463
2467
  const buildNotificationExtraData = (overrides = {}) => {
2464
2468
  const vendorIncompat = buildBaseField();
2465
2469
  return __spreadValues$1({
2466
- id: genNumber(9999999),
2470
+ id: genId(),
2467
2471
  seqVal: genReference(),
2468
2472
  uid: genId(),
2469
2473
  user: buildNotificationUser(),
2470
- accountId: genNumber(99),
2474
+ accountId: genId(),
2471
2475
  vendor: __spreadProps$1(__spreadValues$1({}, vendorIncompat), { id: vendorIncompat.id.toString() }),
2472
2476
  city: buildBaseField(),
2473
2477
  store: buildNotificationStore(),
2474
- channel_id: genNumber(2),
2475
- countryId: genNumber(9),
2478
+ channel_id: genId(),
2479
+ countryId: genId(),
2476
2480
  step: buildNotificationStep(),
2477
2481
  allocation: chooseRandom(allocationOptions),
2478
2482
  paymentMethod: "Points",
@@ -2536,7 +2540,7 @@ const buildBasePaymentMethod = (overrides = {}) => {
2536
2540
  created_at: genDate(),
2537
2541
  deleted_at: genDate(),
2538
2542
  updated_at: genDate(),
2539
- id: genNumber(20)
2543
+ id: genId()
2540
2544
  }, overrides);
2541
2545
  };
2542
2546
  const genBasePaymentMethods = (quantity) => {
@@ -2586,7 +2590,7 @@ const buildCreditCardMapping = (overrides = {}) => {
2586
2590
  "MasterCard"
2587
2591
  ];
2588
2592
  return __spreadValues(__spreadProps(__spreadValues({}, buildBasePaymentMethod()), {
2589
- id: genNumber(10),
2593
+ id: genId(),
2590
2594
  name: chooseRandom(cardsName),
2591
2595
  image_url: buildURLImage(),
2592
2596
  cc_brands_mapping: []
@@ -2600,7 +2604,7 @@ const buildCardInscription = (overrides = {}) => {
2600
2604
  authCode: genNumericId().toString(),
2601
2605
  bin: genWord(),
2602
2606
  createdAt: new Date().toDateString(),
2603
- id: genNumber(),
2607
+ id: genId(),
2604
2608
  uid: genId(),
2605
2609
  number: genNumericId().toString(),
2606
2610
  paymentToken: genNumericId().toString(),