@artisan-commerce/builders 0.7.0-canary.63 → 0.7.0-canary.65

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 CHANGED
@@ -461,7 +461,7 @@ declare const genMobilPhone: (countryCode: string) => string;
461
461
  * @param {string} name Country specific name
462
462
  * @returns {CountrySummary} A {@link CountrySummary} object
463
463
  */
464
- declare const genCountry: (id?: number, name?: string) => CountrySummary;
464
+ declare const genCountry: (id?: string, name?: string) => CountrySummary;
465
465
  /**
466
466
  * Fills a number of type string with characters.
467
467
  *
package/dist/bundle.mjs CHANGED
@@ -128,7 +128,7 @@ const genMobilPhone = (countryCode) => {
128
128
  };
129
129
  const genCountry = (id, name) => {
130
130
  const country = {
131
- id: id != null ? id : genNumericId(),
131
+ id: id != null ? id : genId(),
132
132
  name: name != null ? name : genCountryName()
133
133
  };
134
134
  return country;
@@ -250,7 +250,7 @@ var __spreadValues$h = (a, b) => {
250
250
  };
251
251
  const buildAccount = (overrides = {}) => {
252
252
  return __spreadValues$h({
253
- accountId: genNumber(),
253
+ accountId: genId(),
254
254
  name: genName(),
255
255
  description: genBiasBoolean(0.5) ? genParagraph() : void 0,
256
256
  images: genCDNImages(void 0, { query: "brand" })
@@ -299,14 +299,14 @@ const buildBanner = (overrides = {}) => {
299
299
  image_url: buildURLImage(),
300
300
  banner_qr_code: "",
301
301
  coupon: buildBannerCoupon(),
302
- coupon_id: genNumber(20),
302
+ coupon_id: genId(),
303
303
  banner_type: chooseRandom(bannerTypes),
304
304
  image_file_name: `${genWord}.jpg`,
305
305
  benefits: genBannerBenefits(),
306
- vendor_id: genNumber(20),
306
+ vendor_id: genId(),
307
307
  vendor_name: faker.company.name(),
308
308
  scope: chooseRandom(bannerScopes),
309
- banner_category_id: genNumber(10),
309
+ banner_category_id: genId(),
310
310
  product_id: null,
311
311
  product_name: null,
312
312
  stores: [],
@@ -314,9 +314,9 @@ const buildBanner = (overrides = {}) => {
314
314
  image_bucket: null,
315
315
  image_cloud_front_url: genURL(),
316
316
  image_key: `banners/${genWord}.jpg`,
317
- category_id: genNumber(20),
317
+ category_id: genId(),
318
318
  category_name: faker.company.name(),
319
- channel_id: genNumber(10),
319
+ channel_id: genId(),
320
320
  images: genBannerImages(),
321
321
  section: null
322
322
  }, overrides);
@@ -330,7 +330,7 @@ const buildBannerCoupon = (overrides = {}) => {
330
330
  };
331
331
  const buildBannerBenefits = (overrides = {}) => {
332
332
  return __spreadValues$g({
333
- id: genNumber(10),
333
+ id: genId(),
334
334
  name: genWord()
335
335
  }, overrides);
336
336
  };
@@ -343,7 +343,7 @@ const genBanners = (quantity) => {
343
343
  const buildBannerImage = (overrides = {}) => {
344
344
  return __spreadValues$g({
345
345
  file_name: `${genWord}.jpg`,
346
- id: genNumber(500),
346
+ id: genId(),
347
347
  image_file_name: `${genWord}.jpg`,
348
348
  image_key: `banners/${genWord}.jpg`,
349
349
  image_url: buildURLImage(),
@@ -384,7 +384,7 @@ var __spreadValues$f = (a, b) => {
384
384
  };
385
385
  const buildBillingData = (overrides = {}) => {
386
386
  return __spreadValues$f({
387
- id: genNumericId(),
387
+ id: genId(),
388
388
  name: `${genName()} ${genName()}`,
389
389
  nickname: genName(),
390
390
  documentType: genDocumentType(),
@@ -719,7 +719,7 @@ var __spreadValues$c = (a, b) => {
719
719
  var __spreadProps$4 = (a, b) => __defProps$4(a, __getOwnPropDescs$4(b));
720
720
  const buildCategory = (overrides = {}) => {
721
721
  return __spreadValues$c({
722
- categoryId: genNumericId(),
722
+ categoryId: genId(),
723
723
  displayInMenu: genBiasBoolean(0.9),
724
724
  images: genCDNImages(void 0, { width: 1200, height: 400 }),
725
725
  name: genName(),
@@ -780,7 +780,7 @@ const countriesCodes = [
780
780
  ];
781
781
  const buildCountryCurrency = (overrides = {}) => {
782
782
  return __spreadValues$b({
783
- id: genNumber({ min: 0, max: 999 }),
783
+ id: genId(),
784
784
  name: chooseRandom(["USD", "EUR", "CHL"]),
785
785
  sign: genSymbol(),
786
786
  external_id: genId()
@@ -791,7 +791,7 @@ const genCountryCurrencies = (quantity) => {
791
791
  };
792
792
  const buildCountry = (overrides = {}) => {
793
793
  return __spreadValues$b({
794
- id: genNumber({ min: 0, max: 999 }),
794
+ id: genId(),
795
795
  code: chooseRandom(countriesCodes),
796
796
  currency: buildCountryCurrency(),
797
797
  name: genName()
@@ -835,11 +835,11 @@ const buildBenefit = (overrides = {}) => {
835
835
  ];
836
836
  const type = chooseRandom(benefitTypes);
837
837
  return __spreadValues$a({
838
- accountId: genNumber(20),
838
+ accountId: genId(),
839
839
  hash: genId(),
840
840
  award: type === "PRODUCT" ? genAwards(1) : buildAward(),
841
- benefitId: genNumber(100),
842
- benefitWalletId: genNumber(100),
841
+ benefitId: genId(),
842
+ benefitWalletId: genId(),
843
843
  code: null,
844
844
  combined: genWord(),
845
845
  createdAt: genDate(),
@@ -857,7 +857,7 @@ const buildBenefit = (overrides = {}) => {
857
857
  title: genWords(3),
858
858
  type,
859
859
  updatedAt: genDate(),
860
- channelId: genNumber(50),
860
+ channelId: genId(),
861
861
  vendorId: genNumber(30).toString()
862
862
  }, overrides);
863
863
  };
@@ -866,13 +866,13 @@ const genBenefits = (quantity) => {
866
866
  };
867
867
  const buildAward = (overrides = {}) => {
868
868
  return __spreadValues$a({
869
- benefitId: genNumber(100),
869
+ benefitId: genId(),
870
870
  discountPercentage: genNumber(100),
871
871
  discountValue: null,
872
- id: genNumericId(),
872
+ id: genId(),
873
873
  amount: genNumber(5),
874
874
  productDescription: genWords(5),
875
- productId: genNumber(99),
875
+ productId: genId(),
876
876
  vendorId: genNumber(99).toString()
877
877
  }, overrides);
878
878
  };
@@ -890,7 +890,7 @@ const genWallets = (quantity) => {
890
890
  const buildStoreCoupon = (overrides = {}) => {
891
891
  return __spreadValues$a({
892
892
  featured: genBiasBoolean(0.5),
893
- id: genNumber(99999),
893
+ id: genId(),
894
894
  name: genCompanyName(),
895
895
  vendor_id: genNumber(9999).toString(),
896
896
  coupons: genCoupons()
@@ -902,12 +902,12 @@ const genStoreCoupons = (quantity) => {
902
902
  const buildProductCoupon = (overrides = {}) => {
903
903
  return __spreadValues$a({
904
904
  amount: genNumber(1),
905
- id: genNumber(999),
906
- benefitId: genNumber(999),
905
+ id: genId(),
906
+ benefitId: genId(),
907
907
  discountPercentage: genNumber(100),
908
908
  discountValue: genNumber(10),
909
909
  productDescription: genWords(3),
910
- productId: genNumber(99999),
910
+ productId: genId(),
911
911
  swapProductId: null,
912
912
  vendorId: genNumber(999).toString()
913
913
  }, overrides);
@@ -917,7 +917,7 @@ const genProductCoupons = (quantity) => {
917
917
  };
918
918
  const buildBenefitData = (overrides = {}) => {
919
919
  return __spreadValues$a({
920
- account_id: genNumber(100),
920
+ account_id: genId(),
921
921
  amount: genNumber(1),
922
922
  automatic_redeemed: genBiasBoolean(0.1).toString(),
923
923
  code: genWord().toUpperCase(),
@@ -929,7 +929,7 @@ const buildBenefitData = (overrides = {}) => {
929
929
  error_validation: genWords(3),
930
930
  expiration_date: genDate(),
931
931
  external_id: genNumber(1e4).toString(),
932
- id: genNumber(9999),
932
+ id: genId(),
933
933
  image: null,
934
934
  instruction: null,
935
935
  limit_award: null,
@@ -961,7 +961,7 @@ const buildCoupon = (overrides = {}) => {
961
961
  codes: genCodes(),
962
962
  end_date: genDate(),
963
963
  image: buildURLImage({ query: "coupon" }),
964
- id: genNumber(9999),
964
+ id: genId(),
965
965
  name: genWord(),
966
966
  only_store: genBiasBoolean(0.6),
967
967
  spend: genNumber(100),
@@ -980,7 +980,7 @@ const genCoupons = (quantity) => {
980
980
  const buildCouponCategory = (overrides = {}) => {
981
981
  return __spreadValues$a({
982
982
  featured: genBiasBoolean(0.5),
983
- id: genNumber(9999),
983
+ id: genId(),
984
984
  name: genWord()
985
985
  }, overrides);
986
986
  };
@@ -990,8 +990,8 @@ const genCouponCategories = (quantity) => {
990
990
  const buildCode = (overrides = {}) => {
991
991
  return __spreadValues$a({
992
992
  code: genWord().toUpperCase(),
993
- coupon_id: genNumber(99999),
994
- id: genNumber(99999),
993
+ coupon_id: genId(),
994
+ id: genId(),
995
995
  status: chooseRandom(["ACTIVE", "INACTIVE"]),
996
996
  jwt: buildToken(),
997
997
  used: genBiasBoolean(0.5)
@@ -1017,7 +1017,7 @@ const buildStoreCouponDetail = (overrides = {}) => {
1017
1017
  codes: genCodes(),
1018
1018
  end_date: genDate(),
1019
1019
  image: buildURLImage({ query: "coupon", height: 200, width: 544 }),
1020
- id: genNumber(9999),
1020
+ id: genId(),
1021
1021
  name: genWord(),
1022
1022
  only_store: genBiasBoolean(0.6),
1023
1023
  spend: genNumber(100),
@@ -1100,17 +1100,17 @@ const buildIssue = (overrides = {}) => {
1100
1100
  children: [],
1101
1101
  related: [],
1102
1102
  step: buildStepWorkflow(),
1103
- account_id: genNumber(20),
1103
+ account_id: genId(),
1104
1104
  additional_info: buildIssueAdditionalInfo(),
1105
- client_issue_id: genNumber(200).toString(),
1106
- transaction_id: genNumber(9999),
1105
+ client_issue_id: genId(),
1106
+ transaction_id: genId(),
1107
1107
  history: genIssueHistory(),
1108
- id: genNumber(9999),
1108
+ id: genId(),
1109
1109
  parent_issue_id: null,
1110
1110
  related_issue_id: null,
1111
- step_id: genNumber(30),
1112
- vendor_id: genNumber(30),
1113
- workflow_id: genNumber(10)
1111
+ step_id: genId(),
1112
+ vendor_id: genId(),
1113
+ workflow_id: genId()
1114
1114
  }, overrides);
1115
1115
  };
1116
1116
  const genIssues = (quantity) => {
@@ -1137,10 +1137,10 @@ const buildIssueHistory = (overrides = {}) => {
1137
1137
  created_at: genDate(),
1138
1138
  finished_at: genDate(),
1139
1139
  additional_info: buildIssueAdditionalInfo(),
1140
- id: genNumber(1e4),
1141
- step_id: genNumber(15),
1140
+ id: genId(),
1141
+ step_id: genId(),
1142
1142
  step_name: genWords(2),
1143
- transition_id: genNumber(15)
1143
+ transition_id: genId()
1144
1144
  }, overrides);
1145
1145
  };
1146
1146
  const genIssueHistory = (quantity) => {
@@ -1149,7 +1149,7 @@ const genIssueHistory = (quantity) => {
1149
1149
  const buildWorkflow = (overrides = {}) => {
1150
1150
  return __spreadValues$9({
1151
1151
  description: genWords(7),
1152
- id: genNumericId(),
1152
+ id: genId(),
1153
1153
  name: genCompanyName(),
1154
1154
  steps: genStepWorkflows(),
1155
1155
  webhooks: genWebhookWorkflows()
@@ -1173,7 +1173,7 @@ const buildStepWorkflow = (overrides = {}) => {
1173
1173
  category: chooseRandom(stepCategory),
1174
1174
  code: chooseRandom(stepCode),
1175
1175
  color: chooseRandom(["#FFFFFF", "#000000"]),
1176
- id: genNumericId(),
1176
+ id: genId(),
1177
1177
  description: genWords(10),
1178
1178
  description_frontend: genWords(5),
1179
1179
  name: genCompanyName(),
@@ -1195,7 +1195,7 @@ const buildWebhookWorkflow = (overrides = {}) => {
1195
1195
  "PUT"
1196
1196
  ];
1197
1197
  return __spreadValues$9({
1198
- id: genNumber(999),
1198
+ id: genId(),
1199
1199
  method: chooseRandom(methods),
1200
1200
  url: genURL()
1201
1201
  }, overrides);
@@ -1238,14 +1238,14 @@ const genStepWorkflowGroups = (quantity) => {
1238
1238
  };
1239
1239
  const buildTransitionWorkflow = (overrides = {}) => {
1240
1240
  return __spreadValues$9({
1241
- channel_id: genNumber(20),
1241
+ channel_id: genId(),
1242
1242
  conditions: [],
1243
1243
  description: genWords(10),
1244
- from_step_id: genNumber(7),
1245
- to_step_id: genNumber(7),
1246
- id: genNumericId(),
1244
+ from_step_id: genId(),
1245
+ to_step_id: genId(),
1246
+ id: genId(),
1247
1247
  name: genName(),
1248
- vendor_id: genNumber(30)
1248
+ vendor_id: genId()
1249
1249
  }, overrides);
1250
1250
  };
1251
1251
  const genTransitionWorkflows = (quantity) => {
@@ -1394,7 +1394,7 @@ var __spreadValues$6 = (a, b) => {
1394
1394
  };
1395
1395
  const buildStore = (overrides = {}) => {
1396
1396
  return __spreadValues$6({
1397
- storeId: genNumericId(),
1397
+ storeId: genId(),
1398
1398
  storeName: faker.name.jobTitle(),
1399
1399
  address: faker.address.street(),
1400
1400
  vendor: buildVendor(),
@@ -1564,7 +1564,7 @@ const buildShoppingCart = (overrides = {}) => {
1564
1564
  return __spreadValues$5({
1565
1565
  name: "default",
1566
1566
  billTotal: buildBillTotal(),
1567
- channelId: genNumber(99),
1567
+ channelId: genId(),
1568
1568
  createdAt: new Date().toISOString(),
1569
1569
  latitude: genNumber({ min: -20, max: 20, precision: 8 }),
1570
1570
  longitude: genNumber({ min: -20, max: 20, precision: 8 }),
@@ -1582,7 +1582,7 @@ const buildShippingCost = (overrides = {}) => {
1582
1582
  grossPrice: genNumber(100),
1583
1583
  name: genWord(),
1584
1584
  netPrice: genNumber(100),
1585
- productId: genNumber(100),
1585
+ productId: genId(),
1586
1586
  subtotalBeforeTaxes: genNumber(100),
1587
1587
  symbol: genSymbol(),
1588
1588
  taxTotal: genNumber(100),
@@ -1614,8 +1614,8 @@ const buildDiscount = (overrides = {}) => {
1614
1614
  ];
1615
1615
  const type = chooseRandom(benefitTypes);
1616
1616
  return __spreadValues$5({
1617
- benefitId: Number(genId()),
1618
- benefitWalletId: Number(genId()),
1617
+ benefitId: genId(),
1618
+ benefitWalletId: genId(),
1619
1619
  discountBase: genNumber(100),
1620
1620
  hasTaxes: genBiasBoolean(0.5),
1621
1621
  isInitialized: genBiasBoolean(0.5),
@@ -1696,11 +1696,11 @@ const genMessages = (quantity) => {
1696
1696
  };
1697
1697
  const buildLivingPlace = (overrides = {}) => {
1698
1698
  return __spreadValues$4({
1699
- id: genNumericId(),
1699
+ id: genId(),
1700
1700
  fields: genFields(2),
1701
1701
  name: genWord(),
1702
1702
  active: 1,
1703
- countryId: 1
1703
+ countryId: "1"
1704
1704
  }, overrides);
1705
1705
  };
1706
1706
  const genLivingPlaces = (quantity) => {
@@ -1708,7 +1708,7 @@ const genLivingPlaces = (quantity) => {
1708
1708
  };
1709
1709
  const buildShippingAddress = (overrides = {}) => {
1710
1710
  return __spreadValues$4({
1711
- id: genNumericId(),
1711
+ id: genId(),
1712
1712
  default: getBoolean(),
1713
1713
  mainStreet: genStreetName(),
1714
1714
  number: genStreetNumber(),
@@ -1839,13 +1839,13 @@ const buildBaseOrder = (overrides = {}) => {
1839
1839
  const date = allocation !== "DELIVERY" ? genDate() : null;
1840
1840
  const category = chooseRandom(stepCategory);
1841
1841
  const code = chooseRandom(stepCode);
1842
- const id = genNumber(10);
1842
+ const id = genId();
1843
1843
  const name = genWord();
1844
1844
  return __spreadValues$2({
1845
1845
  additionalMessage: genWords(3),
1846
1846
  allocation,
1847
- channelId: genNumber(200),
1848
- id: genNumericId(),
1847
+ channelId: genId(),
1848
+ id: genId(),
1849
1849
  orderDate: genDate(),
1850
1850
  orderTime: genDate(),
1851
1851
  pickupDate: date,
@@ -1857,9 +1857,9 @@ const buildBaseOrder = (overrides = {}) => {
1857
1857
  stepCode: code,
1858
1858
  stepId: id,
1859
1859
  stepName: name,
1860
- transactionId: genNumericId(),
1861
- vendorId: genNumber(200),
1862
- accountId: genNumber(200),
1860
+ transactionId: genId(),
1861
+ vendorId: genId(),
1862
+ accountId: genId(),
1863
1863
  uid: genId(),
1864
1864
  hash: genId(),
1865
1865
  pickupCooktime: null,
@@ -1894,7 +1894,7 @@ const buildOrderStep = (overrides = {}) => {
1894
1894
  code: genWord(),
1895
1895
  color: chooseRandom(["#FFFFFF", "#000000"]),
1896
1896
  description: genWords(6),
1897
- id: genNumericId(),
1897
+ id: genId(),
1898
1898
  name: genWord(),
1899
1899
  additional_info: buildOrderStepAdditionalInfo(),
1900
1900
  title_frontend: genWords(3)
@@ -1932,7 +1932,7 @@ const genOrderDetailShippingCosts = (quantity) => {
1932
1932
  };
1933
1933
  const buildOrderRetry = (overrides = {}) => {
1934
1934
  return __spreadValues$2(__spreadProps$2(__spreadValues$2({
1935
- id: genNumericId(),
1935
+ id: genId(),
1936
1936
  amount: genNumber(100).toString(),
1937
1937
  created_at: genDate(),
1938
1938
  updated_at: genDate(),
@@ -1945,7 +1945,7 @@ const buildOrderRetry = (overrides = {}) => {
1945
1945
  step: buildOrderStep()
1946
1946
  }, buildStatus()), {
1947
1947
  status: genWord(),
1948
- payment_method_by_order_id: genNumber(9999999),
1948
+ payment_method_by_order_id: genId(),
1949
1949
  user_agent: genWord(),
1950
1950
  payment_method: null
1951
1951
  }), overrides);
@@ -1954,7 +1954,7 @@ const buildStatus = (overrides = {}) => {
1954
1954
  return __spreadValues$2({
1955
1955
  status_category: genWord(),
1956
1956
  status_code: genWord(),
1957
- status_id: genNumber(999),
1957
+ status_id: genId(),
1958
1958
  status_name: genWord()
1959
1959
  }, overrides);
1960
1960
  };
@@ -1966,9 +1966,9 @@ const genOrderRetries = (quantity) => {
1966
1966
  };
1967
1967
  const buildOrderPaymentMethod = (overrides = {}) => {
1968
1968
  return __spreadValues$2({
1969
- id: genNumericId(),
1969
+ id: genId(),
1970
1970
  lastRetry: buildOrderRetry(),
1971
- payment_method_id: genNumber(20),
1971
+ payment_method_id: genId(),
1972
1972
  status: chooseRandom(orderStatusOptions),
1973
1973
  step: buildOrderStep(),
1974
1974
  total: genNumber(200).toString(),
@@ -1988,7 +1988,7 @@ const buildOrderShoppingCart = (overrides = {}) => {
1988
1988
  instructions: genWords(6),
1989
1989
  statusName: genWord(),
1990
1990
  paymentStatus: chooseRandom(paymentStatus),
1991
- statusId: genNumericId(),
1991
+ statusId: genId(),
1992
1992
  statusCode: chooseRandom(stepCode),
1993
1993
  issueId: genId(),
1994
1994
  invoiceNumber: genId(),
@@ -2033,15 +2033,15 @@ const genOrderStoreDeliveries = (quantity) => {
2033
2033
  };
2034
2034
  const buildOrderStore = (overrides = {}) => {
2035
2035
  return __spreadValues$2({
2036
- id: genNumericId(),
2037
- orderId: genNumericId(),
2036
+ id: genId(),
2037
+ orderId: genId(),
2038
2038
  digitalCommandSent: genWord(),
2039
- statusId: genNumericId(),
2039
+ statusId: genId(),
2040
2040
  statusName: genWord(),
2041
2041
  statusCode: chooseRandom(stepCode),
2042
2042
  billStoreTotal: buildOrderProductBillTotal(),
2043
2043
  products: genOrderProducts(),
2044
- storeId: genNumericId(),
2044
+ storeId: genId(),
2045
2045
  storeName: faker.name.jobTitle(),
2046
2046
  additionalInfo: buildOrderStoreAdditionalInfo()
2047
2047
  }, overrides);
@@ -2066,7 +2066,7 @@ const buildOrderProductAdditionalInfo = (overrides = {}) => {
2066
2066
  description: faker.lorem.lines(2),
2067
2067
  is_price_vip: genBiasBoolean(0.5),
2068
2068
  max_amount_for_sale: genNumber(100),
2069
- new_store: genNumber(9999),
2069
+ new_store: genId(),
2070
2070
  out_of_service: genBiasBoolean(0.5),
2071
2071
  out_of_stock: genBiasBoolean(0.5),
2072
2072
  sponsored: genBiasBoolean(0.1),
@@ -2141,7 +2141,7 @@ const buildOrderProductPriceCategory = (overrides = {}) => {
2141
2141
  subtotal_before_taxes_before_discounts: genNumber(30),
2142
2142
  subtotal_without_taxes: genNumber(30),
2143
2143
  subtotal_zero: 0,
2144
- product_id: genNumber(99999),
2144
+ product_id: genId(),
2145
2145
  symbol: genSymbol(),
2146
2146
  tax_calcs: buildTaxCalculations(),
2147
2147
  tax_total: genNumber(12),
@@ -2153,9 +2153,9 @@ const genOrderProductPriceCategories = (quantity) => {
2153
2153
  };
2154
2154
  const buildOrderProduct = (overrides = {}) => {
2155
2155
  return __spreadValues$2({
2156
- id: genNumericId(),
2156
+ id: genId(),
2157
2157
  additionalInfo: buildOrderProductAdditionalInfo(),
2158
- productId: genNumericId(),
2158
+ productId: genId(),
2159
2159
  productName: genWords(5),
2160
2160
  comment: genWords(5),
2161
2161
  billProduct: buildOrderBillProduct(),
@@ -2201,7 +2201,7 @@ const genMetadataShippings = (quantity) => {
2201
2201
  };
2202
2202
  const buildBaseField = (overrides = {}) => {
2203
2203
  return __spreadValues$2({
2204
- id: genNumericId(),
2204
+ id: genId(),
2205
2205
  name: genName()
2206
2206
  }, overrides);
2207
2207
  };
@@ -2262,9 +2262,9 @@ const buildSuborder = (overrides = {}) => {
2262
2262
  additional_info: genWord(),
2263
2263
  created_at: genDate(),
2264
2264
  updated_at: genDate(),
2265
- order_id: genNumericId(),
2266
- id: genNumericId(),
2267
- store_id: genNumber(100),
2265
+ order_id: genId(),
2266
+ id: genId(),
2267
+ store_id: genId(),
2268
2268
  store_name: genCompanyName(),
2269
2269
  vendor: genCompanyName(),
2270
2270
  digital_command_sent: genBiasBoolean(0.5).toString()
@@ -2278,12 +2278,12 @@ const buildPaymentMethodByOrder = (overrides = {}) => {
2278
2278
  amount: genNumber(200).toString(),
2279
2279
  created_at: genDate(),
2280
2280
  updated_at: genDate(),
2281
- id: genNumericId(),
2282
- payment_method_id: genNumber(10),
2281
+ id: genId(),
2282
+ payment_method_id: genId(),
2283
2283
  status: genWord(),
2284
- sri_payment_method_id: genNumber(5),
2284
+ sri_payment_method_id: genId(),
2285
2285
  order: buildOrderRetryPaymentMethod(),
2286
- order_id: genNumericId()
2286
+ order_id: genId()
2287
2287
  }), overrides);
2288
2288
  };
2289
2289
  const genPaymentMethodByOrders = (quantity) => {
@@ -2291,17 +2291,17 @@ const genPaymentMethodByOrders = (quantity) => {
2291
2291
  };
2292
2292
  const buildOrderRetryPaymentMethod = (overrides = {}) => {
2293
2293
  return __spreadValues$2(__spreadProps$2(__spreadValues$2({
2294
- account_id: genNumber(30),
2295
- vendor_id: genNumber(30),
2294
+ account_id: genId(),
2295
+ vendor_id: genId(),
2296
2296
  allocation: chooseRandom(allocationOptions),
2297
2297
  billing_data_by_user_id: genId(),
2298
- channel_id: genNumber(30),
2298
+ channel_id: genId(),
2299
2299
  created_at: genDate(),
2300
2300
  latitude: genLatitude(),
2301
2301
  longitude: genLongitude(),
2302
2302
  uid: genId(),
2303
2303
  insoft_order_process: genWord(),
2304
- id: genNumber(999999),
2304
+ id: genId(),
2305
2305
  sent_fulfillment: genWord(),
2306
2306
  shopping_cart_id: genId()
2307
2307
  }, buildStatus()), {
@@ -2408,7 +2408,7 @@ var __spreadValues$1 = (a, b) => {
2408
2408
  var __spreadProps$1 = (a, b) => __defProps$1(a, __getOwnPropDescs$1(b));
2409
2409
  const buildNotification = (overrides = {}) => {
2410
2410
  return __spreadValues$1({
2411
- id: genNumber(99999),
2411
+ id: genId(),
2412
2412
  title: genWords(2),
2413
2413
  description: genWords(6),
2414
2414
  listTitle: genWords(2),
@@ -2442,7 +2442,7 @@ const genNotificationStores = (quantity) => {
2442
2442
  };
2443
2443
  const buildNotificationStep = (overrides = {}) => {
2444
2444
  return __spreadValues$1({
2445
- id: genNumber(99),
2445
+ id: genId(),
2446
2446
  name: genWord(),
2447
2447
  code: chooseRandom(stepCode),
2448
2448
  category: chooseRandom(stepCategory)
@@ -2456,7 +2456,7 @@ const buildNotificationAdditionalInfo = (overrides = {}) => {
2456
2456
  parent_shopping_cart: getBoolean(),
2457
2457
  metadata_shipping: buildMetadataShipping(),
2458
2458
  aud: genCompanyName(),
2459
- workflowId: genNumber(10)
2459
+ workflowId: genId()
2460
2460
  }, overrides);
2461
2461
  };
2462
2462
  const genNotificationAdditionalInfos = (quantity) => {
@@ -2465,16 +2465,16 @@ const genNotificationAdditionalInfos = (quantity) => {
2465
2465
  const buildNotificationExtraData = (overrides = {}) => {
2466
2466
  const vendorIncompat = buildBaseField();
2467
2467
  return __spreadValues$1({
2468
- id: genNumber(9999999),
2468
+ id: genId(),
2469
2469
  seqVal: genReference(),
2470
2470
  uid: genId(),
2471
2471
  user: buildNotificationUser(),
2472
- accountId: genNumber(99),
2472
+ accountId: genId(),
2473
2473
  vendor: __spreadProps$1(__spreadValues$1({}, vendorIncompat), { id: vendorIncompat.id.toString() }),
2474
2474
  city: buildBaseField(),
2475
2475
  store: buildNotificationStore(),
2476
- channel_id: genNumber(2),
2477
- countryId: genNumber(9),
2476
+ channel_id: genId(),
2477
+ countryId: genId(),
2478
2478
  step: buildNotificationStep(),
2479
2479
  allocation: chooseRandom(allocationOptions),
2480
2480
  paymentMethod: "Points",
@@ -2538,7 +2538,7 @@ const buildBasePaymentMethod = (overrides = {}) => {
2538
2538
  created_at: genDate(),
2539
2539
  deleted_at: genDate(),
2540
2540
  updated_at: genDate(),
2541
- id: genNumber(20)
2541
+ id: genId()
2542
2542
  }, overrides);
2543
2543
  };
2544
2544
  const genBasePaymentMethods = (quantity) => {
@@ -2588,7 +2588,7 @@ const buildCreditCardMapping = (overrides = {}) => {
2588
2588
  "MasterCard"
2589
2589
  ];
2590
2590
  return __spreadValues(__spreadProps(__spreadValues({}, buildBasePaymentMethod()), {
2591
- id: genNumber(10),
2591
+ id: genId(),
2592
2592
  name: chooseRandom(cardsName),
2593
2593
  image_url: buildURLImage(),
2594
2594
  cc_brands_mapping: []
@@ -2602,7 +2602,7 @@ const buildCardInscription = (overrides = {}) => {
2602
2602
  authCode: genNumericId().toString(),
2603
2603
  bin: genWord(),
2604
2604
  createdAt: new Date().toDateString(),
2605
- id: genNumber(),
2605
+ id: genId(),
2606
2606
  uid: genId(),
2607
2607
  number: genNumericId().toString(),
2608
2608
  paymentToken: genNumericId().toString(),