@simpleapps-com/augur-server 2.0.4 → 2.0.7

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 (35) hide show
  1. package/dist/actions.d.ts +5 -5
  2. package/dist/actions.js +51 -159
  3. package/dist/actions.js.map +1 -1
  4. package/dist/auth.js +1 -1
  5. package/dist/{chunk-OHBOKJCW.js → chunk-6T2IRPPO.js} +2 -8
  6. package/dist/chunk-6T2IRPPO.js.map +1 -0
  7. package/dist/{chunk-I7EWYSPA.js → chunk-DCBWABAP.js} +2 -4
  8. package/dist/{chunk-I7EWYSPA.js.map → chunk-DCBWABAP.js.map} +1 -1
  9. package/dist/{chunk-ZYELY3K3.js → chunk-R3XT54FD.js} +8 -10
  10. package/dist/chunk-R3XT54FD.js.map +1 -0
  11. package/dist/{chunk-PN526XCA.js → chunk-RQIWNNTR.js} +104 -183
  12. package/dist/chunk-RQIWNNTR.js.map +1 -0
  13. package/dist/{chunk-I26RJDRF.js → chunk-TQP67TGL.js} +1 -1
  14. package/dist/chunk-TQP67TGL.js.map +1 -0
  15. package/dist/index.d.ts +53 -6
  16. package/dist/index.js +5 -9
  17. package/dist/index.js.map +1 -1
  18. package/dist/prefetch.d.ts +2 -3
  19. package/dist/prefetch.js +3 -13
  20. package/dist/prefetch.js.map +1 -1
  21. package/dist/query.js +1 -1
  22. package/dist/{server-site-registry-BtBMmWYF.d.ts → server-site-registry-C76mQOn1.d.ts} +1 -1
  23. package/dist/{site-C1raVxkq.d.ts → site-DIkAeW67.d.ts} +1 -1
  24. package/dist/site.d.ts +2 -2
  25. package/dist/site.js +3 -3
  26. package/dist/{smarty-streets-DshoLeug.d.ts → smarty-streets-xhe-ldMO.d.ts} +2 -2
  27. package/dist/testing.d.ts +3 -3
  28. package/dist/testing.js +5 -31
  29. package/dist/testing.js.map +1 -1
  30. package/package.json +7 -7
  31. package/dist/chunk-I26RJDRF.js.map +0 -1
  32. package/dist/chunk-OHBOKJCW.js.map +0 -1
  33. package/dist/chunk-PN526XCA.js.map +0 -1
  34. package/dist/chunk-ZYELY3K3.js.map +0 -1
  35. package/dist/sdk-call-CPDSzeu0.d.ts +0 -80
@@ -3,20 +3,19 @@ import {
3
3
  } from "./chunk-XGRQ53P2.js";
4
4
  import {
5
5
  toListResult
6
- } from "./chunk-OHBOKJCW.js";
6
+ } from "./chunk-6T2IRPPO.js";
7
7
 
8
8
  // src/environment.ts
9
9
  function getEnvironment() {
10
- const deploymentEnv = process.env.DEPLOYMENT_ENV;
10
+ const deploymentEnv = process.env["DEPLOYMENT_ENV"];
11
11
  if (deploymentEnv === "dev") return "staging";
12
12
  if (deploymentEnv === "live") return "production";
13
13
  if (typeof window === "undefined") {
14
- if (process.env.NODE_ENV === "development") return "development";
14
+ if (process.env["NODE_ENV"] === "development") return "development";
15
15
  return "production";
16
16
  }
17
17
  const host = window.location.hostname;
18
- if (host.includes("localhost") || host.includes("127.0.0.1"))
19
- return "development";
18
+ if (host.includes("localhost") || host.includes("127.0.0.1")) return "development";
20
19
  if (host.includes("agr-hosting.dev")) return "staging";
21
20
  return "production";
22
21
  }
@@ -57,20 +56,18 @@ function recordFailure() {
57
56
  state.consecutiveFailures++;
58
57
  if (state.consecutiveFailures >= CIRCUIT_BREAKER_THRESHOLD) {
59
58
  state.circuitOpenUntil = Date.now() + CIRCUIT_BREAKER_RESET_MS;
60
- log(
61
- `Circuit breaker OPEN -- skipping Redis for ${CIRCUIT_BREAKER_RESET_MS / 1e3}s`
62
- );
59
+ log(`Circuit breaker OPEN -- skipping Redis for ${CIRCUIT_BREAKER_RESET_MS / 1e3}s`);
63
60
  }
64
61
  }
65
62
  function recordSuccess() {
66
63
  state.consecutiveFailures = 0;
67
64
  }
68
65
  function getRedisUrl() {
69
- const containerRedis = process.env.REDIS_SERVERS;
66
+ const containerRedis = process.env["REDIS_SERVERS"];
70
67
  if (containerRedis) return `redis://${containerRedis}`;
71
- if (isDev) return process.env.REDIS_URL_DEV;
72
- if (isStaging) return process.env.REDIS_URL_STAGING;
73
- return process.env.REDIS_URL_PROD;
68
+ if (isDev) return process.env["REDIS_URL_DEV"];
69
+ if (isStaging) return process.env["REDIS_URL_STAGING"];
70
+ return process.env["REDIS_URL_PROD"];
74
71
  }
75
72
  async function getClient() {
76
73
  if (state.client) return state.client;
@@ -199,7 +196,7 @@ function createPricingActions(api, config = {}) {
199
196
  }
200
197
  async function getTaxEstimate(customerId, postalCode, items = []) {
201
198
  const custId = resolveCustomerId(customerId, defaultCustomerId);
202
- const params = { customerId: custId, postalCode: postalCode ?? "", items };
199
+ const params = { customerId: custId, postalCode: postalCode ?? "", items, edgeCache };
203
200
  return withServerCache(
204
201
  cachePrefix,
205
202
  taxRedisTtl,
@@ -247,7 +244,7 @@ function createItemActions(api, config = {}) {
247
244
  async function getItemCategory(uid, options) {
248
245
  const sdkParams = { ...options, edgeCache };
249
246
  if (options?.filters) {
250
- sdkParams.filters = JSON.stringify(options.filters);
247
+ sdkParams["filters"] = JSON.stringify(options.filters);
251
248
  }
252
249
  const category = await withServerCache(
253
250
  cachePrefix,
@@ -271,17 +268,17 @@ function createItemActions(api, config = {}) {
271
268
  function buildCategoryParams(itemsFilters, overrides) {
272
269
  const params = { includeStock: "Y" };
273
270
  if (itemsFilters) {
274
- params.filters = JSON.stringify(itemsFilters.filters);
275
- params.limit = overrides?.limit ?? itemsFilters.limit;
276
- params.offset = overrides?.offset ?? itemsFilters.offset;
277
- params.q = itemsFilters.q;
278
- params.sortBy = itemsFilters.sortBy;
271
+ params["filters"] = JSON.stringify(itemsFilters.filters);
272
+ params["limit"] = overrides?.limit ?? itemsFilters.limit;
273
+ params["offset"] = overrides?.offset ?? itemsFilters.offset;
274
+ params["q"] = itemsFilters.q;
275
+ params["sortBy"] = itemsFilters.sortBy;
279
276
  } else {
280
- params.filters = JSON.stringify([]);
281
- params.q = "";
282
- params.sortBy = "desc";
283
- if (overrides?.limit !== void 0) params.limit = overrides.limit;
284
- if (overrides?.offset !== void 0) params.offset = overrides.offset;
277
+ params["filters"] = JSON.stringify([]);
278
+ params["q"] = "";
279
+ params["sortBy"] = "desc";
280
+ if (overrides?.limit !== void 0) params["limit"] = overrides.limit;
281
+ if (overrides?.offset !== void 0) params["offset"] = overrides.offset;
285
282
  }
286
283
  return params;
287
284
  }
@@ -290,8 +287,8 @@ function createItemActions(api, config = {}) {
290
287
  }
291
288
  async function getCategoryItems(uid, filters) {
292
289
  const merged = isItemsFilters(filters) ? buildCategoryParams(filters) : { ...filters };
293
- if (sortByPrefix && typeof merged.sortBy === "string" && merged.sortBy) {
294
- merged.sortBy = `${sortByPrefix}${merged.sortBy}`;
290
+ if (sortByPrefix && typeof merged["sortBy"] === "string" && merged["sortBy"]) {
291
+ merged["sortBy"] = `${sortByPrefix}${merged["sortBy"]}`;
295
292
  }
296
293
  return withServerCache(
297
294
  cachePrefix,
@@ -312,8 +309,8 @@ function createItemActions(api, config = {}) {
312
309
  const limit = itemsFilters?.limit || 24;
313
310
  const offset = pageParam * limit;
314
311
  const merged = buildCategoryParams(itemsFilters, { limit, offset });
315
- if (sortByPrefix && typeof merged.sortBy === "string" && merged.sortBy) {
316
- merged.sortBy = `${sortByPrefix}${merged.sortBy}`;
312
+ if (sortByPrefix && typeof merged["sortBy"] === "string" && merged["sortBy"]) {
313
+ merged["sortBy"] = `${sortByPrefix}${merged["sortBy"]}`;
317
314
  }
318
315
  const result = await withServerCache(
319
316
  cachePrefix,
@@ -339,10 +336,7 @@ function createItemActions(api, config = {}) {
339
336
  redisTtl,
340
337
  "items.categories.attributes.list",
341
338
  async () => {
342
- const response = await api.items.categories.attributes.list(
343
- categoryUid,
344
- { edgeCache }
345
- );
339
+ const response = await api.items.categories.attributes.list(categoryUid, { edgeCache });
346
340
  return { attributes: response.data.attributes };
347
341
  },
348
342
  categoryUid
@@ -367,23 +361,18 @@ function createItemActions(api, config = {}) {
367
361
  includePricing: includePricingArg
368
362
  } : paramsOrUid;
369
363
  if (!params.invMastUid && !params.itemId) {
370
- throw new Error(
371
- "Either invMastUid must be positive or itemId must be provided"
372
- );
364
+ throw new Error("Either invMastUid must be positive or itemId must be provided");
373
365
  }
374
366
  return withServerCache(
375
367
  cachePrefix,
376
368
  redisTtl,
377
369
  "items.invMast.doc.list",
378
370
  async () => {
379
- const response = await api.items.invMast.doc.list(
380
- params.invMastUid ?? 0,
381
- {
382
- itemId: params.itemId,
383
- includePricing: params.includePricing,
384
- edgeCache: 4
385
- }
386
- );
371
+ const response = await api.items.invMast.doc.list(params.invMastUid ?? 0, {
372
+ itemId: params.itemId,
373
+ includePricing: params.includePricing,
374
+ edgeCache: 4
375
+ });
387
376
  return response.data;
388
377
  },
389
378
  params.invMastUid,
@@ -414,7 +403,7 @@ function createItemActions(api, config = {}) {
414
403
  const response = await api.items.invMast.stock.get(invMastUid, {
415
404
  edgeCache
416
405
  });
417
- return response.data?.companySummary ?? {};
406
+ return response.data?.["companySummary"] ?? {};
418
407
  },
419
408
  invMastUid
420
409
  );
@@ -453,10 +442,7 @@ function createItemActions(api, config = {}) {
453
442
  redisTtl,
454
443
  "items.invMast.invAccessory.list",
455
444
  async () => {
456
- const response = await api.items.invMast.invAccessory.list(
457
- invMastUid,
458
- { edgeCache }
459
- );
445
+ const response = await api.items.invMast.invAccessory.list(invMastUid, { edgeCache });
460
446
  return toListResult(response);
461
447
  },
462
448
  invMastUid
@@ -484,7 +470,11 @@ function createItemActions(api, config = {}) {
484
470
  );
485
471
  }
486
472
  async function batchGetStockData(invMastUids) {
487
- return batchFetch(invMastUids, (uid) => getStock(uid), (uid) => uid);
473
+ return batchFetch(
474
+ invMastUids,
475
+ (uid) => getStock(uid),
476
+ (uid) => uid
477
+ );
488
478
  }
489
479
  return {
490
480
  itemCategoryLookup,
@@ -510,11 +500,11 @@ function createCommerceActions(api, config = {}) {
510
500
  const { defaultContactId, defaultCustomerId, convertUnitOfMeasure } = config;
511
501
  async function cartHdrLookup(params) {
512
502
  const lookupParams = { ...params };
513
- if (lookupParams.contactId == null && defaultContactId != null) {
514
- lookupParams.contactId = defaultContactId;
503
+ if (lookupParams["contactId"] == null && defaultContactId != null) {
504
+ lookupParams["contactId"] = defaultContactId;
515
505
  }
516
- if (lookupParams.customerId == null && defaultCustomerId != null) {
517
- lookupParams.customerId = defaultCustomerId;
506
+ if (lookupParams["customerId"] == null && defaultCustomerId != null) {
507
+ lookupParams["customerId"] = defaultCustomerId;
518
508
  }
519
509
  const response = await api.commerce.cartHdr.lookup.get(lookupParams);
520
510
  return response.data;
@@ -634,8 +624,8 @@ function createSearchActions(api, config = {}) {
634
624
  }
635
625
  async function getSearchSuggestions(q, limit, offset) {
636
626
  const params = { q, edgeCache };
637
- if (limit !== void 0) params.size = limit;
638
- if (offset !== void 0) params.from = offset;
627
+ if (limit !== void 0) params["size"] = limit;
628
+ if (offset !== void 0) params["from"] = offset;
639
629
  return withServerCache(
640
630
  cachePrefix,
641
631
  redisTtl,
@@ -825,7 +815,7 @@ function createJoomlaActions(api, config = {}) {
825
815
  sdkParams
826
816
  );
827
817
  const pid = String(parentId);
828
- const filtered = result.data.filter((item) => String(item.parent_id) === pid);
818
+ const filtered = result.data.filter((item) => String(item.parentId) === pid);
829
819
  return { ...result, data: filtered, total: filtered.length };
830
820
  }
831
821
  return withServerCache(
@@ -866,12 +856,10 @@ function createJoomlaActions(api, config = {}) {
866
856
  const raw = response.data;
867
857
  if (!raw) throw new Error("User not found");
868
858
  const customerId = String(
869
- raw.customerId ?? raw.customer_id ?? raw.p21_customer_id ?? ""
859
+ raw.customerId ?? raw["customer_id"] ?? raw["p21_customer_id"] ?? ""
870
860
  );
871
861
  const groups = Array.isArray(raw.groups) ? raw.groups : [];
872
- const permissions = groups.map(
873
- (g2) => String(g2.title ?? g2.name ?? "")
874
- ).filter(Boolean);
862
+ const permissions = groups.map((g2) => String(g2["title"] ?? g2["name"] ?? "")).filter(Boolean);
875
863
  return {
876
864
  id: String(raw.id ?? userId),
877
865
  name: String(raw.name ?? ""),
@@ -890,7 +878,14 @@ function createJoomlaActions(api, config = {}) {
890
878
  });
891
879
  return response.data;
892
880
  }
893
- return { getJoomlaContent, getJoomlaContentList, getJoomlaMenu, getJoomlaMenuDoc, getUserProfile, verifyPassword };
881
+ return {
882
+ getJoomlaContent,
883
+ getJoomlaContentList,
884
+ getJoomlaMenu,
885
+ getJoomlaMenuDoc,
886
+ getUserProfile,
887
+ verifyPassword
888
+ };
894
889
  }
895
890
 
896
891
  // src/actions/legacy.ts
@@ -922,10 +917,7 @@ function createLegacyActions(api, config = {}) {
922
917
  redisTtl,
923
918
  "legacy.invMast.alsoBought.list",
924
919
  async () => {
925
- const response = await api.legacy.invMast.alsoBought.list(
926
- invMastUid,
927
- { edgeCache }
928
- );
920
+ const response = await api.legacy.invMast.alsoBought.list(invMastUid, { edgeCache });
929
921
  return toListResult(response);
930
922
  },
931
923
  invMastUid
@@ -1037,11 +1029,9 @@ function createCustomersActions(api, config = {}) {
1037
1029
  redisTtl,
1038
1030
  "customers.customer.orders.get",
1039
1031
  async () => {
1040
- const response = await api.customers.customer.orders.get(
1041
- customerId,
1042
- orderId,
1043
- { edgeCache }
1044
- );
1032
+ const response = await api.customers.customer.orders.get(customerId, orderId, {
1033
+ edgeCache
1034
+ });
1045
1035
  return response.data;
1046
1036
  },
1047
1037
  customerId,
@@ -1071,11 +1061,9 @@ function createCustomersActions(api, config = {}) {
1071
1061
  redisTtl,
1072
1062
  "customers.customer.invoices.get",
1073
1063
  async () => {
1074
- const response = await api.customers.customer.invoices.get(
1075
- customerId,
1076
- invoiceNo,
1077
- { edgeCache }
1078
- );
1064
+ const response = await api.customers.customer.invoices.get(customerId, invoiceNo, {
1065
+ edgeCache
1066
+ });
1079
1067
  return response.data;
1080
1068
  },
1081
1069
  customerId,
@@ -1104,11 +1092,9 @@ function createCustomersActions(api, config = {}) {
1104
1092
  redisTtl,
1105
1093
  "customers.customer.quotes.get",
1106
1094
  async () => {
1107
- const response = await api.customers.customer.quotes.get(
1108
- customerId,
1109
- quoteNo,
1110
- { edgeCache }
1111
- );
1095
+ const response = await api.customers.customer.quotes.get(customerId, quoteNo, {
1096
+ edgeCache
1097
+ });
1112
1098
  return response.data;
1113
1099
  },
1114
1100
  customerId,
@@ -1218,11 +1204,7 @@ function createP21PimActions(api, config = {}) {
1218
1204
 
1219
1205
  // src/actions/agr-site.ts
1220
1206
  function createAgrSiteActions(api, config = {}) {
1221
- const {
1222
- cachePrefix = "",
1223
- longEdgeCache = 8,
1224
- longRedisTtl = 28800
1225
- } = config;
1207
+ const { cachePrefix = "", longEdgeCache = 8, longRedisTtl = 28800 } = config;
1226
1208
  async function getSettings(serviceName) {
1227
1209
  return withServerCache(
1228
1210
  cachePrefix,
@@ -1372,11 +1354,7 @@ function createUpsActions(api, config = {}) {
1372
1354
 
1373
1355
  // src/actions/logistics.ts
1374
1356
  function createLogisticsActions(api, config = {}) {
1375
- const {
1376
- cachePrefix = "",
1377
- longEdgeCache = 8,
1378
- longRedisTtl = 28800
1379
- } = config;
1357
+ const { cachePrefix = "", longEdgeCache = 8, longRedisTtl = 28800 } = config;
1380
1358
  async function getFreightRates(params) {
1381
1359
  try {
1382
1360
  const response = await api.logistics.speedship.freight.get(params);
@@ -1409,11 +1387,7 @@ function createLogisticsActions(api, config = {}) {
1409
1387
 
1410
1388
  // src/actions/nexus.ts
1411
1389
  function createNexusActions(api, config = {}) {
1412
- const {
1413
- cachePrefix = "",
1414
- edgeCache = 1,
1415
- redisTtl = 3600
1416
- } = config;
1390
+ const { cachePrefix = "", edgeCache = 1, redisTtl = 3600 } = config;
1417
1391
  async function createBinTransfer(data) {
1418
1392
  try {
1419
1393
  const response = await api.nexus.binTransfer.create(data);
@@ -1495,12 +1469,7 @@ function createNexusActions(api, config = {}) {
1495
1469
 
1496
1470
  // src/actions/vmi.ts
1497
1471
  function createVmiActions(api, config = {}) {
1498
- const {
1499
- cachePrefix = "",
1500
- edgeCache = 1,
1501
- redisTtl = 3600,
1502
- shortRedisTtl = 300
1503
- } = config;
1472
+ const { cachePrefix = "", edgeCache = 1, redisTtl = 3600, shortRedisTtl = 300 } = config;
1504
1473
  async function getWarehouses(params) {
1505
1474
  return withServerCache(
1506
1475
  cachePrefix,
@@ -1750,11 +1719,7 @@ function createP21CoreActions(api, config = {}) {
1750
1719
 
1751
1720
  // src/actions/p21-apis.ts
1752
1721
  function createP21ApisActions(api, config = {}) {
1753
- const {
1754
- cachePrefix = "",
1755
- edgeCache = 1,
1756
- redisTtl = 3600
1757
- } = config;
1722
+ const { cachePrefix = "", edgeCache = 1, redisTtl = 3600 } = config;
1758
1723
  async function getCategories(params) {
1759
1724
  return withServerCache(
1760
1725
  cachePrefix,
@@ -1776,10 +1741,9 @@ function createP21ApisActions(api, config = {}) {
1776
1741
  redisTtl,
1777
1742
  "p21Apis.transCategory.defaults.get",
1778
1743
  async () => {
1779
- const response = await api.p21Apis.transCategory.defaults.get(
1780
- categoryId,
1781
- { edgeCache }
1782
- );
1744
+ const response = await api.p21Apis.transCategory.defaults.get(categoryId, {
1745
+ edgeCache
1746
+ });
1783
1747
  return response.data;
1784
1748
  },
1785
1749
  categoryId
@@ -1881,11 +1845,7 @@ function createP21ApisActions(api, config = {}) {
1881
1845
 
1882
1846
  // src/actions/p21-sism.ts
1883
1847
  function createP21SismActions(api, config = {}) {
1884
- const {
1885
- cachePrefix = "",
1886
- edgeCache = 1,
1887
- redisTtl = 3600
1888
- } = config;
1848
+ const { cachePrefix = "", edgeCache = 1, redisTtl = 3600 } = config;
1889
1849
  async function getRecentImports(params) {
1890
1850
  return withServerCache(
1891
1851
  cachePrefix,
@@ -1992,7 +1952,7 @@ function createAgrInfoActions(api, config = {}) {
1992
1952
  redisTtl,
1993
1953
  "agrInfo.context.list",
1994
1954
  async () => {
1995
- const siteId = params?.siteId ?? "";
1955
+ const siteId = params?.["siteId"] ?? "";
1996
1956
  const response = await api.agrInfo.context.get(siteId, {
1997
1957
  ...params,
1998
1958
  edgeCache
@@ -2358,9 +2318,9 @@ function createSiteActions(api, config = {}) {
2358
2318
  redisTtl,
2359
2319
  longEdgeCache,
2360
2320
  longRedisTtl,
2361
- defaultContactId = process.env.DEFAULT_CONTACT_ID,
2362
- defaultCustomerId = process.env.DEFAULT_CUSTOMER_ID,
2363
- defaultCompanyId: _defaultCompanyId = process.env.DEFAULT_COMPANY_ID,
2321
+ defaultContactId = process.env["DEFAULT_CONTACT_ID"],
2322
+ defaultCustomerId = process.env["DEFAULT_CUSTOMER_ID"],
2323
+ defaultCompanyId: _defaultCompanyId = process.env["DEFAULT_COMPANY_ID"],
2364
2324
  convertUnitOfMeasure
2365
2325
  } = config;
2366
2326
  const cache = { cachePrefix, edgeCache, redisTtl };
@@ -2403,32 +2363,22 @@ function createSiteActions(api, config = {}) {
2403
2363
  ...config.search
2404
2364
  })
2405
2365
  );
2406
- const orders = lazy(
2407
- () => createOrderActions(castApi(), cache)
2408
- );
2366
+ const orders = lazy(() => createOrderActions(castApi(), cache));
2409
2367
  const shipping = lazy(
2410
- () => createShippingActions(
2411
- castApi(),
2412
- { ...cache, ...config.shipping }
2413
- )
2414
- );
2415
- const joomla = lazy(
2416
- () => createJoomlaActions(castApi(), cache)
2417
- );
2418
- const legacy = lazy(
2419
- () => createLegacyActions(castApi(), longCache)
2420
- );
2421
- const customers = lazy(
2422
- () => createCustomersActions(castApi(), cache)
2368
+ () => createShippingActions(castApi(), {
2369
+ ...cache,
2370
+ ...config.shipping
2371
+ })
2423
2372
  );
2373
+ const joomla = lazy(() => createJoomlaActions(castApi(), cache));
2374
+ const legacy = lazy(() => createLegacyActions(castApi(), longCache));
2375
+ const customers = lazy(() => createCustomersActions(castApi(), cache));
2424
2376
  const smartyStreets = lazy(
2425
2377
  () => createSmartyStreetsActions(castApi(), {
2426
2378
  cachePrefix
2427
2379
  })
2428
2380
  );
2429
- const p21Pim = lazy(
2430
- () => createP21PimActions(castApi(), cache)
2431
- );
2381
+ const p21Pim = lazy(() => createP21PimActions(castApi(), cache));
2432
2382
  const agrSite = lazy(
2433
2383
  () => createAgrSiteActions(castApi(), {
2434
2384
  cachePrefix,
@@ -2436,54 +2386,26 @@ function createSiteActions(api, config = {}) {
2436
2386
  longRedisTtl
2437
2387
  })
2438
2388
  );
2439
- const avalara = lazy(
2440
- () => createAvalaraActions(castApi(), { cachePrefix })
2441
- );
2389
+ const avalara = lazy(() => createAvalaraActions(castApi(), { cachePrefix }));
2442
2390
  const payments = lazy(
2443
2391
  () => createPaymentsActions(castApi(), {
2444
2392
  cachePrefix,
2445
2393
  ...config.payments
2446
2394
  })
2447
2395
  );
2448
- const ups = lazy(
2449
- () => createUpsActions(castApi(), { cachePrefix })
2450
- );
2451
- const logistics = lazy(
2452
- () => createLogisticsActions(castApi(), longCache)
2453
- );
2454
- const nexus = lazy(
2455
- () => createNexusActions(castApi(), cache)
2456
- );
2457
- const vmi = lazy(
2458
- () => createVmiActions(castApi(), { ...cache, ...config.vmi })
2459
- );
2460
- const p21Core = lazy(
2461
- () => createP21CoreActions(castApi(), longCache)
2462
- );
2463
- const p21Apis = lazy(
2464
- () => createP21ApisActions(castApi(), cache)
2465
- );
2466
- const p21Sism = lazy(
2467
- () => createP21SismActions(castApi(), cache)
2468
- );
2469
- const agrWork = lazy(
2470
- () => createAgrWorkActions(castApi(), { cachePrefix })
2471
- );
2472
- const agrInfo = lazy(
2473
- () => createAgrInfoActions(castApi(), longCache)
2474
- );
2475
- const basecamp2 = lazy(
2476
- () => createBasecamp2Actions(castApi(), longCache)
2477
- );
2478
- const brandFolder = lazy(
2479
- () => createBrandFolderActions(castApi(), cache)
2480
- );
2481
- const gregorovich = lazy(
2482
- () => createGregorovichActions(castApi(), cache)
2483
- );
2484
- const slack = lazy(
2485
- () => createSlackActions(castApi(), cache)
2486
- );
2396
+ const ups = lazy(() => createUpsActions(castApi(), { cachePrefix }));
2397
+ const logistics = lazy(() => createLogisticsActions(castApi(), longCache));
2398
+ const nexus = lazy(() => createNexusActions(castApi(), cache));
2399
+ const vmi = lazy(() => createVmiActions(castApi(), { ...cache, ...config.vmi }));
2400
+ const p21Core = lazy(() => createP21CoreActions(castApi(), longCache));
2401
+ const p21Apis = lazy(() => createP21ApisActions(castApi(), cache));
2402
+ const p21Sism = lazy(() => createP21SismActions(castApi(), cache));
2403
+ const agrWork = lazy(() => createAgrWorkActions(castApi(), { cachePrefix }));
2404
+ const agrInfo = lazy(() => createAgrInfoActions(castApi(), longCache));
2405
+ const basecamp2 = lazy(() => createBasecamp2Actions(castApi(), longCache));
2406
+ const brandFolder = lazy(() => createBrandFolderActions(castApi(), cache));
2407
+ const gregorovich = lazy(() => createGregorovichActions(castApi(), cache));
2408
+ const slack = lazy(() => createSlackActions(castApi(), cache));
2487
2409
  const legacyServices = {
2488
2410
  get pricing() {
2489
2411
  return pricing.get();
@@ -2596,8 +2518,7 @@ function createSiteActions(api, config = {}) {
2596
2518
  const wrapped = new Proxy(legacySvc, {
2597
2519
  get(svc, method) {
2598
2520
  if (typeof method === "symbol") return void 0;
2599
- if (method in svc)
2600
- return svc[method];
2521
+ if (method in svc) return svc[method];
2601
2522
  return proxyFallback[key]?.[method];
2602
2523
  }
2603
2524
  });
@@ -2652,4 +2573,4 @@ export {
2652
2573
  createSlackActions,
2653
2574
  createSiteActions
2654
2575
  };
2655
- //# sourceMappingURL=chunk-PN526XCA.js.map
2576
+ //# sourceMappingURL=chunk-RQIWNNTR.js.map