@simpleapps-com/augur-server 2.0.3 → 2.0.6

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 (36) hide show
  1. package/dist/actions.d.ts +72 -71
  2. package/dist/actions.js +51 -159
  3. package/dist/actions.js.map +1 -1
  4. package/dist/auth.d.ts +1 -1
  5. package/dist/auth.js +1 -1
  6. package/dist/{chunk-XHI7OYKV.js → chunk-3YLC52GL.js} +174 -246
  7. package/dist/chunk-3YLC52GL.js.map +1 -0
  8. package/dist/{chunk-I7EWYSPA.js → chunk-DCBWABAP.js} +2 -4
  9. package/dist/{chunk-I7EWYSPA.js.map → chunk-DCBWABAP.js.map} +1 -1
  10. package/dist/{chunk-GYZT5Q2K.js → chunk-OHXPJ225.js} +12 -1
  11. package/dist/chunk-OHXPJ225.js.map +1 -0
  12. package/dist/{chunk-Z7QWERHW.js → chunk-R3XT54FD.js} +8 -10
  13. package/dist/chunk-R3XT54FD.js.map +1 -0
  14. package/dist/{chunk-I26RJDRF.js → chunk-TQP67TGL.js} +1 -1
  15. package/dist/chunk-TQP67TGL.js.map +1 -0
  16. package/dist/index.d.ts +6 -6
  17. package/dist/index.js +8 -11
  18. package/dist/index.js.map +1 -1
  19. package/dist/prefetch.d.ts +3 -4
  20. package/dist/prefetch.js +3 -13
  21. package/dist/prefetch.js.map +1 -1
  22. package/dist/query.js +1 -1
  23. package/dist/{server-site-registry-RvjtgbHN.d.ts → server-site-registry-BtBMmWYF.d.ts} +1 -1
  24. package/dist/{site-CjgTIpnT.d.ts → site-C1raVxkq.d.ts} +107 -59
  25. package/dist/site.d.ts +2 -2
  26. package/dist/site.js +3 -2
  27. package/dist/site.js.map +1 -1
  28. package/dist/{smarty-streets-xASjXqym.d.ts → smarty-streets-DshoLeug.d.ts} +19 -69
  29. package/dist/testing.d.ts +3 -3
  30. package/dist/testing.js +5 -31
  31. package/dist/testing.js.map +1 -1
  32. package/package.json +8 -8
  33. package/dist/chunk-GYZT5Q2K.js.map +0 -1
  34. package/dist/chunk-I26RJDRF.js.map +0 -1
  35. package/dist/chunk-XHI7OYKV.js.map +0 -1
  36. package/dist/chunk-Z7QWERHW.js.map +0 -1
@@ -1,7 +1,7 @@
1
- import { EdgeCacheValue } from '@simpleapps-com/augur-core';
1
+ import { EdgeCacheValue, ListResult } from '@simpleapps-com/augur-core';
2
2
  import { AugurAPI } from '@simpleapps-com/augur-api';
3
- import { TPriceData, TTaxItem, TTax, TCartLookUp, TCartLine, TRelatedProduct, TCheckoutResult, TWebDesc, TTransactionSetup, TAccountQuery, TSurcharge, TCardInfo, TBillingUpdate, TPaymentValidation, TShippingMethod } from '@simpleapps-com/augur-utils';
4
- import { I as ItemActions, S as SearchActions, k as ShippingActions, J as JoomlaActions, a as CustomersActions, o as SmartyStreetsActions, m as ShippingAddress } from './smarty-streets-xASjXqym.js';
3
+ import { TPriceData, TTaxItem, TTax, TCartLookUp, TCartLine, TRelatedProduct, TCheckoutResult, TWebDesc, CustomerDocument, TTransactionSetup, TAccountQuery, TSurcharge, TCardInfo, TBillingUpdate, TPaymentValidation, TShippingMethod } from '@simpleapps-com/augur-utils';
4
+ import { I as ItemActions, S as SearchActions, h as ShippingActions, J as JoomlaActions, l as SmartyStreetsActions, j as ShippingAddress } from './smarty-streets-DshoLeug.js';
5
5
 
6
6
  /** Derived from augur-api SDK — keeps types in sync automatically. */
7
7
  type PricingApiClient = Pick<AugurAPI, "pricing">;
@@ -37,7 +37,7 @@ interface PricingActions {
37
37
  * import { getAugurClient } from "./augur-client";
38
38
  *
39
39
  * export const pricingActions = createPricingActions(getAugurClient(), {
40
- * defaultCustomerId: process.env.NEXT_PUBLIC_DEFAULT_CUSTOMER_ID,
40
+ * // defaultCustomerId falls back to DEFAULT_CUSTOMER_ID env var automatically
41
41
  * cachePrefix: "ampro:",
42
42
  * });
43
43
  *
@@ -63,7 +63,7 @@ interface CommerceActions {
63
63
  contactId?: string | number;
64
64
  customerId?: string | number;
65
65
  }) => Promise<TCartLookUp>;
66
- getCartLines: (cartHdrUid: number) => Promise<TCartLine[]>;
66
+ getCartLines: (cartHdrUid: number) => Promise<ListResult<TCartLine>>;
67
67
  addToCart: (cartHdrUid: number, items: {
68
68
  itemId?: string;
69
69
  invMastUid?: number;
@@ -76,7 +76,7 @@ interface CommerceActions {
76
76
  unitOfMeasure: string;
77
77
  }[]) => Promise<unknown>;
78
78
  deleteCartItems: (cartHdrUid: number) => Promise<void>;
79
- getCartAlsoBought: (cartHdrUid: number) => Promise<TRelatedProduct[]>;
79
+ getCartAlsoBought: (cartHdrUid: number) => Promise<ListResult<TRelatedProduct>>;
80
80
  checkoutOrder: (cartHdrUid: number, data: Record<string, unknown>) => Promise<TCheckoutResult | undefined>;
81
81
  }
82
82
  /**
@@ -94,8 +94,7 @@ interface CommerceActions {
94
94
  * import { getAugurClient } from "./augur-client";
95
95
  *
96
96
  * export const commerceActions = createCommerceActions(getAugurClient(), {
97
- * defaultContactId: process.env.NEXT_PUBLIC_DEFAULT_CONTACT_ID,
98
- * defaultCustomerId: process.env.NEXT_PUBLIC_DEFAULT_CUSTOMER_ID,
97
+ * // defaultContactId/defaultCustomerId fall back to env vars automatically
99
98
  * convertUnitOfMeasure: (uom) => uom === "EA" ? "EACH" : uom,
100
99
  * });
101
100
  *
@@ -159,11 +158,11 @@ interface LegacyActionsConfig {
159
158
  }
160
159
  interface LegacyActions {
161
160
  getItemWebDesc: (invMastUid: number) => Promise<TWebDesc | undefined>;
162
- getAlsoBoughtItems: (invMastUid: number) => Promise<TRelatedProduct[]>;
163
- getItemTags: (invMastUid: number) => Promise<unknown[]>;
161
+ getAlsoBoughtItems: (invMastUid: number) => Promise<ListResult<TRelatedProduct>>;
162
+ getItemTags: (invMastUid: number) => Promise<ListResult>;
164
163
  getStates: (params?: {
165
164
  twoLetterCode?: string;
166
- }) => Promise<unknown[]>;
165
+ }) => Promise<ListResult>;
167
166
  }
168
167
  /**
169
168
  * @deprecated Use `createSiteActions()` instead. This factory will be removed in the next major version.
@@ -188,6 +187,54 @@ interface LegacyActions {
188
187
  */
189
188
  declare function createLegacyActions(api: LegacyApiClient, config?: LegacyActionsConfig): LegacyActions;
190
189
 
190
+ /** @deprecated Use `ListResult` from `../sdk-call` instead. */
191
+ type CustomerListResult = ListResult;
192
+ /** Derived from augur-api SDK — keeps types in sync automatically. */
193
+ type CustomersApiClient = Pick<AugurAPI, "customers">;
194
+ interface CustomersActionsConfig {
195
+ /** Cache key prefix (e.g. "ampro:"). Default: "". */
196
+ cachePrefix?: string;
197
+ /** CDN edge cache value passed to SDK. Default: 1 (hour). */
198
+ edgeCache?: EdgeCacheValue;
199
+ /** Redis TTL in seconds. Default: 3600 (1 hour). */
200
+ redisTtl?: number;
201
+ }
202
+ interface CustomersActions {
203
+ getCustomer: (customerId: number) => Promise<CustomerDocument>;
204
+ customerLookup: (params: Record<string, unknown>) => Promise<ListResult<CustomerDocument>>;
205
+ getCustomerDoc: (customerId: number) => Promise<CustomerDocument>;
206
+ getCustomerOrders: (customerId: number, params?: Record<string, unknown>) => Promise<ListResult>;
207
+ getCustomerOrderDetail: (customerId: number, orderId: number) => Promise<unknown>;
208
+ getCustomerInvoices: (customerId: number, params?: Record<string, unknown>) => Promise<ListResult>;
209
+ getCustomerInvoiceDetail: (customerId: number, invoiceNo: number) => Promise<unknown>;
210
+ getCustomerQuotes: (customerId: number, params?: Record<string, unknown>) => Promise<ListResult>;
211
+ getCustomerQuoteDetail: (customerId: number, quoteNo: number) => Promise<unknown>;
212
+ getContacts: (params?: Record<string, unknown>) => Promise<ListResult>;
213
+ getShipToAddresses: (customerId: number) => Promise<ListResult>;
214
+ }
215
+ /**
216
+ * @deprecated Use `createSiteActions()` instead. This factory will be removed in the next major version.
217
+ *
218
+ * Creates server-side customer actions with Redis caching and edge cache support.
219
+ *
220
+ * Covers the customers microservice endpoints used by ecommerce sites:
221
+ * customer get, lookup, doc, orders, contacts, and ship-to addresses.
222
+ *
223
+ * @example
224
+ * ```ts
225
+ * import { createCustomersActions } from "@simpleapps-com/augur-server";
226
+ * import { getAugurClient } from "./augur-client";
227
+ *
228
+ * export const customersActions = createCustomersActions(getAugurClient(), {
229
+ * cachePrefix: "ampro:",
230
+ * });
231
+ *
232
+ * const customer = await customersActions.getCustomer(123);
233
+ * const orders = await customersActions.getCustomerOrders(123);
234
+ * ```
235
+ */
236
+ declare function createCustomersActions(api: CustomersApiClient, config?: CustomersActionsConfig): CustomersActions;
237
+
191
238
  /** Derived from augur-api SDK — keeps types in sync automatically. */
192
239
  type P21PimApiClient = Pick<AugurAPI, "p21Pim">;
193
240
  interface P21PimActionsConfig {
@@ -200,7 +247,7 @@ interface P21PimActionsConfig {
200
247
  }
201
248
  interface P21PimActions {
202
249
  getInvMastExt: (invMastUid: number) => Promise<unknown>;
203
- listInvMastExt: (params?: Record<string, unknown>) => Promise<unknown[]>;
250
+ listInvMastExt: (params?: Record<string, unknown>) => Promise<ListResult>;
204
251
  }
205
252
  /**
206
253
  * @deprecated Use `createSiteActions()` instead. This factory will be removed in the next major version.
@@ -236,8 +283,8 @@ interface AgrSiteActionsConfig {
236
283
  longRedisTtl?: number;
237
284
  }
238
285
  interface AgrSiteActions {
239
- getSettings: (serviceName?: string) => Promise<unknown[]>;
240
- getMetaFiles: (params?: Record<string, unknown>) => Promise<unknown[]>;
286
+ getSettings: (serviceName?: string) => Promise<ListResult>;
287
+ getMetaFiles: (params?: Record<string, unknown>) => Promise<ListResult>;
241
288
  }
242
289
  /**
243
290
  * @deprecated Use `createSiteActions()` instead. This factory will be removed in the next major version.
@@ -349,7 +396,7 @@ interface UpsActionsConfig {
349
396
  cachePrefix?: string;
350
397
  }
351
398
  interface UpsActions {
352
- getRates: (params: Record<string, unknown>) => Promise<TShippingMethod[] | undefined>;
399
+ getRates: (params: Record<string, unknown>) => Promise<ListResult<TShippingMethod> | undefined>;
353
400
  }
354
401
  /**
355
402
  * @deprecated Use `createSiteActions()` instead. This factory will be removed in the next major version.
@@ -391,7 +438,7 @@ interface LogisticsActionsConfig {
391
438
  }
392
439
  interface LogisticsActions {
393
440
  getFreightRates: (params: Record<string, unknown>) => Promise<unknown>;
394
- getShipVia: (params?: Record<string, unknown>) => Promise<unknown[]>;
441
+ getShipVia: (params?: Record<string, unknown>) => Promise<ListResult>;
395
442
  }
396
443
  /**
397
444
  * @deprecated Use `createSiteActions()` instead. This factory will be removed in the next major version.
@@ -430,9 +477,9 @@ interface NexusActions {
430
477
  createBinTransfer: (data: Record<string, unknown>) => Promise<unknown>;
431
478
  createReceiving: (data: Record<string, unknown>) => Promise<unknown>;
432
479
  createTransfer: (data: Record<string, unknown>) => Promise<unknown>;
433
- getPurchaseOrderReceipts: (params?: Record<string, unknown>) => Promise<unknown[]>;
434
- getTransferReceipts: (params?: Record<string, unknown>) => Promise<unknown[]>;
435
- getTransferShipping: (params?: Record<string, unknown>) => Promise<unknown[]>;
480
+ getPurchaseOrderReceipts: (params?: Record<string, unknown>) => Promise<ListResult>;
481
+ getTransferReceipts: (params?: Record<string, unknown>) => Promise<ListResult>;
482
+ getTransferShipping: (params?: Record<string, unknown>) => Promise<ListResult>;
436
483
  }
437
484
  /**
438
485
  * @deprecated Use `createSiteActions()` instead. This factory will be removed in the next major version.
@@ -470,13 +517,13 @@ interface VmiActionsConfig {
470
517
  shortRedisTtl?: number;
471
518
  }
472
519
  interface VmiActions {
473
- getWarehouses: (params?: Record<string, unknown>) => Promise<unknown[]>;
474
- getWarehouseAvailability: (warehouseUid: number, params?: Record<string, unknown>) => Promise<unknown[]>;
475
- getDistributors: (params?: Record<string, unknown>) => Promise<unknown[]>;
476
- getProducts: (params?: Record<string, unknown>) => Promise<unknown[]>;
477
- getInventoryProfiles: (params?: Record<string, unknown>) => Promise<unknown[]>;
478
- getRestockHeaders: (params?: Record<string, unknown>) => Promise<unknown[]>;
479
- getSections: (params?: Record<string, unknown>) => Promise<unknown[]>;
520
+ getWarehouses: (params?: Record<string, unknown>) => Promise<ListResult>;
521
+ getWarehouseAvailability: (warehouseUid: number, params?: Record<string, unknown>) => Promise<ListResult>;
522
+ getDistributors: (params?: Record<string, unknown>) => Promise<ListResult>;
523
+ getProducts: (params?: Record<string, unknown>) => Promise<ListResult>;
524
+ getInventoryProfiles: (params?: Record<string, unknown>) => Promise<ListResult>;
525
+ getRestockHeaders: (params?: Record<string, unknown>) => Promise<ListResult>;
526
+ getSections: (params?: Record<string, unknown>) => Promise<ListResult>;
480
527
  }
481
528
  /**
482
529
  * @deprecated Use `createSiteActions()` instead. This factory will be removed in the next major version.
@@ -517,13 +564,13 @@ interface P21CoreActionsConfig {
517
564
  longRedisTtl?: number;
518
565
  }
519
566
  interface P21CoreActions {
520
- getAddresses: (params?: Record<string, unknown>) => Promise<unknown[]>;
521
- getCompanies: (params?: Record<string, unknown>) => Promise<unknown[]>;
567
+ getAddresses: (params?: Record<string, unknown>) => Promise<ListResult>;
568
+ getCompanies: (params?: Record<string, unknown>) => Promise<ListResult>;
522
569
  getCompany: (companyId: number) => Promise<unknown | undefined>;
523
- getLocations: (params?: Record<string, unknown>) => Promise<unknown[]>;
524
- getPaymentTypes: (params?: Record<string, unknown>) => Promise<unknown[]>;
525
- getCashDrawers: (params?: Record<string, unknown>) => Promise<unknown[]>;
526
- getCodeP21: (params?: Record<string, unknown>) => Promise<unknown[]>;
570
+ getLocations: (params?: Record<string, unknown>) => Promise<ListResult>;
571
+ getPaymentTypes: (params?: Record<string, unknown>) => Promise<ListResult>;
572
+ getCashDrawers: (params?: Record<string, unknown>) => Promise<ListResult>;
573
+ getCodeP21: (params?: Record<string, unknown>) => Promise<ListResult>;
527
574
  }
528
575
  /**
529
576
  * @deprecated Use `createSiteActions()` instead. This factory will be removed in the next major version.
@@ -559,11 +606,11 @@ interface P21ApisActionsConfig {
559
606
  redisTtl?: number;
560
607
  }
561
608
  interface P21ApisActions {
562
- getCategories: (params?: Record<string, unknown>) => Promise<unknown[]>;
609
+ getCategories: (params?: Record<string, unknown>) => Promise<ListResult>;
563
610
  getCategoryDefaults: (categoryId: number) => Promise<unknown | undefined>;
564
- getCompanies: (params?: Record<string, unknown>) => Promise<unknown[]>;
565
- getUsers: (params?: Record<string, unknown>) => Promise<unknown[]>;
566
- getWebDisplayTypes: (params?: Record<string, unknown>) => Promise<unknown[]>;
611
+ getCompanies: (params?: Record<string, unknown>) => Promise<ListResult>;
612
+ getUsers: (params?: Record<string, unknown>) => Promise<ListResult>;
613
+ getWebDisplayTypes: (params?: Record<string, unknown>) => Promise<ListResult>;
567
614
  getWebDisplayTypeDefaults: (id?: number) => Promise<unknown | undefined>;
568
615
  refreshContacts: (params?: Record<string, unknown>) => Promise<unknown | undefined>;
569
616
  refreshCustomers: (params?: Record<string, unknown>) => Promise<unknown | undefined>;
@@ -602,10 +649,10 @@ interface P21SismActionsConfig {
602
649
  redisTtl?: number;
603
650
  }
604
651
  interface P21SismActions {
605
- getRecentImports: (params?: Record<string, unknown>) => Promise<unknown[]>;
652
+ getRecentImports: (params?: Record<string, unknown>) => Promise<ListResult>;
606
653
  getImport: (importId: string) => Promise<unknown | undefined>;
607
- getImportLines: (importId: number, params?: Record<string, unknown>) => Promise<unknown[]>;
608
- getScheduledImports: (params?: Record<string, unknown>) => Promise<unknown[]>;
654
+ getImportLines: (importId: number, params?: Record<string, unknown>) => Promise<ListResult>;
655
+ getScheduledImports: (params?: Record<string, unknown>) => Promise<ListResult>;
609
656
  }
610
657
  /**
611
658
  * @deprecated Use `createSiteActions()` instead. This factory will be removed in the next major version.
@@ -676,9 +723,9 @@ interface AgrInfoActionsConfig {
676
723
  longRedisTtl?: number;
677
724
  }
678
725
  interface AgrInfoActions {
679
- getContext: (params?: Record<string, unknown>) => Promise<unknown[]>;
680
- getRubrics: (params?: Record<string, unknown>) => Promise<unknown[]>;
681
- getMicroservices: (params?: Record<string, unknown>) => Promise<unknown[]>;
726
+ getContext: (params?: Record<string, unknown>) => Promise<ListResult>;
727
+ getRubrics: (params?: Record<string, unknown>) => Promise<ListResult>;
728
+ getMicroservices: (params?: Record<string, unknown>) => Promise<ListResult>;
682
729
  generateAkasha: (data?: Record<string, unknown>) => Promise<unknown | undefined>;
683
730
  generateJoomla: (data?: Record<string, unknown>) => Promise<unknown | undefined>;
684
731
  }
@@ -720,15 +767,15 @@ interface Basecamp2ActionsConfig {
720
767
  longRedisTtl?: number;
721
768
  }
722
769
  interface Basecamp2Actions {
723
- getTodos: (params?: Record<string, unknown>) => Promise<unknown[]>;
770
+ getTodos: (params?: Record<string, unknown>) => Promise<ListResult>;
724
771
  getTodo: (todoId: number) => Promise<unknown>;
725
- getTodosSummary: (params?: Record<string, unknown>) => Promise<unknown[]>;
726
- getComments: (params?: Record<string, unknown>) => Promise<unknown[]>;
727
- getPeople: (params?: Record<string, unknown>) => Promise<unknown[]>;
728
- getProjects: (params?: Record<string, unknown>) => Promise<unknown[]>;
729
- getEvents: (params?: Record<string, unknown>) => Promise<unknown[]>;
730
- getMetrics: (params?: Record<string, unknown>) => Promise<unknown[]>;
731
- getTodolists: (params?: Record<string, unknown>) => Promise<unknown[]>;
772
+ getTodosSummary: (params?: Record<string, unknown>) => Promise<ListResult>;
773
+ getComments: (params?: Record<string, unknown>) => Promise<ListResult>;
774
+ getPeople: (params?: Record<string, unknown>) => Promise<ListResult>;
775
+ getProjects: (params?: Record<string, unknown>) => Promise<ListResult>;
776
+ getEvents: (params?: Record<string, unknown>) => Promise<ListResult>;
777
+ getMetrics: (params?: Record<string, unknown>) => Promise<ListResult>;
778
+ getTodolists: (params?: Record<string, unknown>) => Promise<ListResult>;
732
779
  }
733
780
  /**
734
781
  * @deprecated Use `createSiteActions()` instead. This factory will be removed in the next major version.
@@ -764,7 +811,7 @@ interface BrandFolderActionsConfig {
764
811
  redisTtl?: number;
765
812
  }
766
813
  interface BrandFolderActions {
767
- getCategories: (params?: Record<string, unknown>) => Promise<unknown[]>;
814
+ getCategories: (params?: Record<string, unknown>) => Promise<ListResult>;
768
815
  getCategory: (categoryId: string) => Promise<unknown>;
769
816
  createFocus: (categoryId: string, data: Record<string, unknown>) => Promise<unknown | undefined>;
770
817
  }
@@ -804,7 +851,7 @@ interface GregorovichActionsConfig {
804
851
  }
805
852
  interface GregorovichActions {
806
853
  askChatGpt: (params: Record<string, unknown>) => Promise<unknown | undefined>;
807
- getDocuments: (params?: Record<string, unknown>) => Promise<unknown[]>;
854
+ getDocuments: (params?: Record<string, unknown>) => Promise<ListResult>;
808
855
  createDocument: (data: Record<string, unknown>) => Promise<unknown | undefined>;
809
856
  generateOllama: (data: Record<string, unknown>) => Promise<unknown | undefined>;
810
857
  }
@@ -843,7 +890,7 @@ interface SlackActionsConfig {
843
890
  }
844
891
  interface SlackActions {
845
892
  sendWebhook: (data: Record<string, unknown>) => Promise<unknown | undefined>;
846
- getWebhooks: (params?: Record<string, unknown>) => Promise<unknown[]>;
893
+ getWebhooks: (params?: Record<string, unknown>) => Promise<ListResult>;
847
894
  }
848
895
  /**
849
896
  * @deprecated Use `createSiteActions()` instead. This factory will be removed in the next major version.
@@ -887,10 +934,12 @@ interface SiteActionsConfig {
887
934
  longEdgeCache?: EdgeCacheValue;
888
935
  /** Long-lived Redis TTL for rarely-changing data */
889
936
  longRedisTtl?: number;
890
- /** Default contact ID for commerce operations */
937
+ /** Default contact ID for commerce operations. Falls back to process.env.DEFAULT_CONTACT_ID. */
891
938
  defaultContactId?: string | number;
892
- /** Default customer ID for pricing and commerce */
939
+ /** Default customer ID for pricing and commerce. Falls back to process.env.DEFAULT_CUSTOMER_ID. */
893
940
  defaultCustomerId?: string | number;
941
+ /** Default company ID. Falls back to process.env.DEFAULT_COMPANY_ID. Not yet consumed by any factory. */
942
+ defaultCompanyId?: string | number;
894
943
  /** UOM conversion function for commerce (e.g. "EA" → "EACH") */
895
944
  convertUnitOfMeasure?: (uom: string) => string;
896
945
  /** Pricing-specific overrides */
@@ -961,10 +1010,9 @@ interface SiteActions {
961
1010
  * import { createSiteActions } from "@simpleapps-com/augur-server";
962
1011
  * import { getAugurClient } from "./augur-client";
963
1012
  *
964
- * // cachePrefix defaults to "${siteId}:" from the API client — no need to set it.
1013
+ * // defaultCustomerId/defaultContactId fall back to DEFAULT_CUSTOMER_ID/DEFAULT_CONTACT_ID
1014
+ * // env vars when not provided — no need to set them if CDK injects them.
965
1015
  * export const actions = createSiteActions(getAugurClient(), {
966
- * defaultCustomerId: process.env.NEXT_PUBLIC_DEFAULT_CUSTOMER_ID,
967
- * defaultContactId: process.env.NEXT_PUBLIC_DEFAULT_CONTACT_ID,
968
1016
  * convertUnitOfMeasure: (uom) => uom === "EA" ? "EACH" : uom,
969
1017
  * items: { sortChildren: true },
970
1018
  * shipping: {
@@ -981,4 +1029,4 @@ interface SiteActions {
981
1029
  */
982
1030
  declare function createSiteActions<TApi extends object>(api: TApi, config?: SiteActionsConfig): SiteActions;
983
1031
 
984
- export { type PricingApiClient as $, type AgrInfoActions as A, type Basecamp2Actions as B, type CommerceActions as C, type NexusApiClient as D, type OrderActionsConfig as E, type OrderApiClient as F, type GregorovichActions as G, type P21ApisActionsConfig as H, type P21ApisApiClient as I, type P21CoreActions as J, type P21CoreActionsConfig as K, type LegacyActions as L, type P21CoreApiClient as M, type NexusActions as N, type OrderActions as O, type P21ApisActions as P, type P21PimActions as Q, type P21PimActionsConfig as R, type P21PimApiClient as S, type P21SismActions as T, type P21SismActionsConfig as U, type P21SismApiClient as V, type PaymentsActions as W, type PaymentsActionsConfig as X, type PaymentsApiClient as Y, type PricingActions as Z, type PricingActionsConfig as _, type AgrInfoActionsConfig as a, type SiteActions as a0, type SiteActionsConfig as a1, type SlackActions as a2, type SlackActionsConfig as a3, type SlackApiClient as a4, type UpsActions as a5, type UpsActionsConfig as a6, type UpsApiClient as a7, type VmiActions as a8, type VmiActionsConfig as a9, type VmiApiClient as aa, createAgrInfoActions as ab, createAgrSiteActions as ac, createAgrWorkActions as ad, createAvalaraActions as ae, createBasecamp2Actions as af, createBrandFolderActions as ag, createCommerceActions as ah, createGregorovichActions as ai, createLegacyActions as aj, createLogisticsActions as ak, createNexusActions as al, createOrderActions as am, createP21ApisActions as an, createP21CoreActions as ao, createP21PimActions as ap, createP21SismActions as aq, createPaymentsActions as ar, createPricingActions as as, createSiteActions as at, createSlackActions as au, createUpsActions as av, createVmiActions as aw, type AgrInfoApiClient as b, type AgrSiteActions as c, type AgrSiteActionsConfig as d, type AgrSiteApiClient as e, type AgrWorkActions as f, type AgrWorkActionsConfig as g, type AgrWorkApiClient as h, type AvalaraActions as i, type AvalaraActionsConfig as j, type AvalaraApiClient as k, type Basecamp2ActionsConfig as l, type Basecamp2ApiClient as m, type BrandFolderActions as n, type BrandFolderActionsConfig as o, type BrandFolderApiClient as p, type CommerceActionsConfig as q, type CommerceApiClient as r, type GregorovichActionsConfig as s, type GregorovichApiClient as t, type LegacyActionsConfig as u, type LegacyApiClient as v, type LogisticsActions as w, type LogisticsActionsConfig as x, type LogisticsApiClient as y, type NexusActionsConfig as z };
1032
+ export { type PaymentsActionsConfig as $, type AgrInfoActions as A, type Basecamp2Actions as B, type CommerceActions as C, type LogisticsActions as D, type LogisticsActionsConfig as E, type LogisticsApiClient as F, type GregorovichActions as G, type NexusActionsConfig as H, type NexusApiClient as I, type OrderActionsConfig as J, type OrderApiClient as K, type LegacyActions as L, type P21ApisActionsConfig as M, type NexusActions as N, type OrderActions as O, type P21ApisActions as P, type P21ApisApiClient as Q, type P21CoreActions as R, type P21CoreActionsConfig as S, type P21CoreApiClient as T, type P21PimActions as U, type P21PimActionsConfig as V, type P21PimApiClient as W, type P21SismActions as X, type P21SismActionsConfig as Y, type P21SismApiClient as Z, type PaymentsActions as _, type AgrInfoActionsConfig as a, type PaymentsApiClient as a0, type PricingActions as a1, type PricingActionsConfig as a2, type PricingApiClient as a3, type SiteActions as a4, type SiteActionsConfig as a5, type SlackActions as a6, type SlackActionsConfig as a7, type SlackApiClient as a8, type UpsActions as a9, createUpsActions as aA, createVmiActions as aB, type UpsActionsConfig as aa, type UpsApiClient as ab, type VmiActions as ac, type VmiActionsConfig as ad, type VmiApiClient as ae, createAgrInfoActions as af, createAgrSiteActions as ag, createAgrWorkActions as ah, createAvalaraActions as ai, createBasecamp2Actions as aj, createBrandFolderActions as ak, createCommerceActions as al, createCustomersActions as am, createGregorovichActions as an, createLegacyActions as ao, createLogisticsActions as ap, createNexusActions as aq, createOrderActions as ar, createP21ApisActions as as, createP21CoreActions as at, createP21PimActions as au, createP21SismActions as av, createPaymentsActions as aw, createPricingActions as ax, createSiteActions as ay, createSlackActions as az, type AgrInfoApiClient as b, type AgrSiteActions as c, type AgrSiteActionsConfig as d, type AgrSiteApiClient as e, type AgrWorkActions as f, type AgrWorkActionsConfig as g, type AgrWorkApiClient as h, type AvalaraActions as i, type AvalaraActionsConfig as j, type AvalaraApiClient as k, type Basecamp2ActionsConfig as l, type Basecamp2ApiClient as m, type BrandFolderActions as n, type BrandFolderActionsConfig as o, type BrandFolderApiClient as p, type CommerceActionsConfig as q, type CommerceApiClient as r, type CustomerListResult as s, type CustomersActions as t, type CustomersActionsConfig as u, type CustomersApiClient as v, type GregorovichActionsConfig as w, type GregorovichApiClient as x, type LegacyActionsConfig as y, type LegacyApiClient as z };
package/dist/site.d.ts CHANGED
@@ -1,10 +1,10 @@
1
- import { a0 as SiteActions, a1 as SiteActionsConfig } from './site-CjgTIpnT.js';
1
+ import { a4 as SiteActions, a5 as SiteActionsConfig } from './site-C1raVxkq.js';
2
2
  import { AugurAuthCallbacks } from './auth.js';
3
3
  import { NextAuthConfig } from 'next-auth';
4
4
  import '@simpleapps-com/augur-core';
5
5
  import '@simpleapps-com/augur-api';
6
6
  import '@simpleapps-com/augur-utils';
7
- import './smarty-streets-xASjXqym.js';
7
+ import './smarty-streets-DshoLeug.js';
8
8
 
9
9
  /** Auth options forwarded to NextAuth when creating a server site. */
10
10
  interface ServerSiteAuthConfig {
package/dist/site.js CHANGED
@@ -1,10 +1,11 @@
1
1
  import {
2
2
  createSiteActions
3
- } from "./chunk-XHI7OYKV.js";
3
+ } from "./chunk-3YLC52GL.js";
4
4
  import {
5
5
  createAuthConfig
6
- } from "./chunk-Z7QWERHW.js";
6
+ } from "./chunk-R3XT54FD.js";
7
7
  import "./chunk-XGRQ53P2.js";
8
+ import "./chunk-OHXPJ225.js";
8
9
  import {
9
10
  registerSiteActions
10
11
  } from "./chunk-QRCB7P2N.js";
package/dist/site.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/server-site.ts"],"sourcesContent":["import { createSiteActions } from \"./actions/site\";\nimport type { SiteActionsConfig, SiteActions } from \"./actions/site\";\nimport { createAuthConfig } from \"./auth\";\nimport type { AugurAuthCallbacks, AugurAuthClient } from \"./auth\";\nimport type { NextAuthConfig } from \"next-auth\";\nimport { registerSiteActions } from \"./server-site-registry\";\n\n/** Auth options forwarded to NextAuth when creating a server site. */\nexport interface ServerSiteAuthConfig {\n secret?: string;\n maxAge?: number;\n callbacks?: Partial<AugurAuthCallbacks>;\n debug?: boolean;\n}\n\n/** Configuration for {@link createServerSite}, combining action config and auth. */\nexport interface ServerSiteConfig extends SiteActionsConfig {\n auth?: ServerSiteAuthConfig;\n}\n\n/** The object returned by {@link createServerSite}. */\nexport interface ServerSite<TApi extends object> {\n client: TApi;\n actions: SiteActions;\n auth: NextAuthConfig | undefined;\n}\n\n/**\n * Create a server-side site instance that bundles the SDK client, server\n * actions, and (optional) NextAuth configuration.\n *\n * @example\n * ```ts\n * import { AugurApi } from \"@simpleapps-com/augur-api\";\n * import { createServerSite } from \"@simpleapps-com/augur-server\";\n *\n * const api = new AugurApi({ baseUrl: process.env.AUGUR_API_URL! });\n * export const site = createServerSite(api, {\n * defaultCustomerId: \"12345\",\n * auth: { secret: process.env.AUTH_SECRET },\n * });\n * ```\n */\nexport function createServerSite<TApi extends object>(\n client: TApi,\n config: ServerSiteConfig = {},\n): ServerSite<TApi> {\n const actions = createSiteActions(client, config);\n registerSiteActions(actions);\n\n const auth = config.auth\n ? createAuthConfig({\n augurClient: client as unknown as AugurAuthClient,\n defaultCustomerId: config.defaultCustomerId,\n defaultContactId: config.defaultContactId,\n ...config.auth,\n })\n : undefined;\n\n return { client, actions, auth };\n}\n"],"mappings":";;;;;;;;;;;;AA2CO,SAAS,iBACd,QACA,SAA2B,CAAC,GACV;AAClB,QAAM,UAAU,kBAAkB,QAAQ,MAAM;AAChD,sBAAoB,OAAO;AAE3B,QAAM,OAAO,OAAO,OAChB,iBAAiB;AAAA,IACf,aAAa;AAAA,IACb,mBAAmB,OAAO;AAAA,IAC1B,kBAAkB,OAAO;AAAA,IACzB,GAAG,OAAO;AAAA,EACZ,CAAC,IACD;AAEJ,SAAO,EAAE,QAAQ,SAAS,KAAK;AACjC;","names":[]}
1
+ {"version":3,"sources":["../src/server-site.ts"],"sourcesContent":["import { createSiteActions } from \"./actions/site\";\nimport type { SiteActionsConfig, SiteActions } from \"./actions/site\";\nimport { createAuthConfig } from \"./auth\";\nimport type { AugurAuthCallbacks, AugurAuthClient } from \"./auth\";\nimport type { NextAuthConfig } from \"next-auth\";\nimport { registerSiteActions } from \"./server-site-registry\";\n\n/** Auth options forwarded to NextAuth when creating a server site. */\nexport interface ServerSiteAuthConfig {\n secret?: string;\n maxAge?: number;\n callbacks?: Partial<AugurAuthCallbacks>;\n debug?: boolean;\n}\n\n/** Configuration for {@link createServerSite}, combining action config and auth. */\nexport interface ServerSiteConfig extends SiteActionsConfig {\n auth?: ServerSiteAuthConfig;\n}\n\n/** The object returned by {@link createServerSite}. */\nexport interface ServerSite<TApi extends object> {\n client: TApi;\n actions: SiteActions;\n auth: NextAuthConfig | undefined;\n}\n\n/**\n * Create a server-side site instance that bundles the SDK client, server\n * actions, and (optional) NextAuth configuration.\n *\n * @example\n * ```ts\n * import { AugurApi } from \"@simpleapps-com/augur-api\";\n * import { createServerSite } from \"@simpleapps-com/augur-server\";\n *\n * const api = new AugurApi({ baseUrl: process.env.AUGUR_API_URL! });\n * export const site = createServerSite(api, {\n * defaultCustomerId: \"12345\",\n * auth: { secret: process.env.AUTH_SECRET },\n * });\n * ```\n */\nexport function createServerSite<TApi extends object>(\n client: TApi,\n config: ServerSiteConfig = {},\n): ServerSite<TApi> {\n const actions = createSiteActions(client, config);\n registerSiteActions(actions);\n\n const auth = config.auth\n ? createAuthConfig({\n augurClient: client as unknown as AugurAuthClient,\n defaultCustomerId: config.defaultCustomerId,\n defaultContactId: config.defaultContactId,\n ...config.auth,\n })\n : undefined;\n\n return { client, actions, auth };\n}\n"],"mappings":";;;;;;;;;;;;;AA2CO,SAAS,iBACd,QACA,SAA2B,CAAC,GACV;AAClB,QAAM,UAAU,kBAAkB,QAAQ,MAAM;AAChD,sBAAoB,OAAO;AAE3B,QAAM,OAAO,OAAO,OAChB,iBAAiB;AAAA,IACf,aAAa;AAAA,IACb,mBAAmB,OAAO;AAAA,IAC1B,kBAAkB,OAAO;AAAA,IACzB,GAAG,OAAO;AAAA,EACZ,CAAC,IACD;AAEJ,SAAO,EAAE,QAAQ,SAAS,KAAK;AACjC;","names":[]}
@@ -1,6 +1,6 @@
1
1
  import { AugurAPI } from '@simpleapps-com/augur-api';
2
- import { EdgeCacheValue } from '@simpleapps-com/augur-core';
3
- import { TCategory, TCategoryItemsResult, TItemsFilters, TProductItem, TAttribute, TInvMast, TInvMastDoc, TStockData, TItemAccessory, TShippingMethod, TJoomlaContent, TMenu, TPasswordVerification, CustomerDocument, TSmartyStreets } from '@simpleapps-com/augur-utils';
2
+ import { ListResult, EdgeCacheValue } from '@simpleapps-com/augur-core';
3
+ import { TCategory, TCategoryItemsResult, TItemsFilters, TProductItem, TAttribute, TInvMast, TInvMastDoc, TStock, TItemAccessory, TSearchSuggestionsResponse, TShippingMethod, TJoomlaContent, TMenu, TPasswordVerification, TSmartyStreets } from '@simpleapps-com/augur-utils';
4
4
 
5
5
  /**
6
6
  * Standardized paginated response shape.
@@ -72,7 +72,9 @@ interface ItemActions {
72
72
  (uid: number, itemsFilters: TItemsFilters): Promise<TCategoryItemsResult>;
73
73
  };
74
74
  getCategoryItemsInfinite: (uid: number, itemsFilters?: TItemsFilters, pageParam?: number) => Promise<PaginatedResult<TProductItem>>;
75
- getItemAttributes: (categoryUid: number) => Promise<TAttribute[]>;
75
+ getItemAttributes: (categoryUid: number) => Promise<{
76
+ attributes: TAttribute[];
77
+ }>;
76
78
  getInvMast: (uid: number) => Promise<TInvMast>;
77
79
  getInvMastDoc: {
78
80
  (params: {
@@ -82,17 +84,17 @@ interface ItemActions {
82
84
  }): Promise<TInvMastDoc>;
83
85
  (invMastUid: number, itemId?: string, includePricing?: "Y" | "N"): Promise<TInvMastDoc>;
84
86
  };
85
- getStock: (invMastUid: number) => Promise<TStockData[]>;
87
+ getStock: (invMastUid: number) => Promise<TStock>;
86
88
  getStockCompanySummary: (invMastUid: number) => Promise<Record<string, number>>;
87
- getItemFaqs: (invMastUid: number) => Promise<unknown[]>;
88
- getItemSubstitutes: (invMastUid: number) => Promise<unknown[]>;
89
- getItemAccessories: (invMastUid: number) => Promise<TItemAccessory[]>;
90
- getSimilarItems: (invMastUid: number) => Promise<unknown[]>;
89
+ getItemFaqs: (invMastUid: number) => Promise<ListResult>;
90
+ getItemSubstitutes: (invMastUid: number) => Promise<ListResult>;
91
+ getItemAccessories: (invMastUid: number) => Promise<ListResult<TItemAccessory>>;
92
+ getSimilarItems: (invMastUid: number) => Promise<ListResult>;
91
93
  batchGetInvMastDocs: (params: {
92
94
  invMastUid?: number;
93
95
  itemId?: string;
94
96
  }[]) => Promise<Record<string, TInvMastDoc>>;
95
- batchGetStockData: (invMastUids: number[]) => Promise<Record<number, TStockData[]>>;
97
+ batchGetStockData: (invMastUids: number[]) => Promise<Record<number, TStock>>;
96
98
  }
97
99
  /**
98
100
  * @deprecated Use `createSiteActions()` instead. This factory will be removed in the next major version.
@@ -138,12 +140,10 @@ interface SearchPage {
138
140
  nextCursor?: number;
139
141
  }
140
142
  interface SearchActions {
141
- getSearchAttributes: (q: string) => Promise<TAttribute[]>;
142
- getSearchSuggestions: (q: string, limit?: number, offset?: number) => Promise<{
143
- data: unknown[];
144
- total: number;
145
- totalResults: number;
143
+ getSearchAttributes: (q: string) => Promise<{
144
+ attributes: TAttribute[];
146
145
  }>;
146
+ getSearchSuggestions: (q: string, limit?: number, offset?: number) => Promise<TSearchSuggestionsResponse>;
147
147
  itemSearch: (filters: {
148
148
  q: string;
149
149
  limit: number;
@@ -208,7 +208,7 @@ interface ShippingActionsConfig {
208
208
  redisTtl?: number;
209
209
  }
210
210
  interface ShippingActions {
211
- getShippingRates: (toAddress: ShippingAddress, weight: number, serviceCodes?: string[]) => Promise<TShippingMethod[]>;
211
+ getShippingRates: (toAddress: ShippingAddress, weight: number, serviceCodes?: string[]) => Promise<ListResult<TShippingMethod>>;
212
212
  }
213
213
  /**
214
214
  * @deprecated Use `createSiteActions()` instead. This factory will be removed in the next major version.
@@ -267,10 +267,10 @@ interface JoomlaActions {
267
267
  catId?: number;
268
268
  }): Promise<TJoomlaContent>;
269
269
  };
270
- getJoomlaContentList: (params?: Record<string, unknown>) => Promise<TJoomlaContent[]>;
270
+ getJoomlaContentList: (params?: Record<string, unknown>) => Promise<ListResult<TJoomlaContent>>;
271
271
  getJoomlaMenu: {
272
- (params?: Record<string, unknown>): Promise<TMenu[]>;
273
- (parentId: number, menuType: string): Promise<TMenu[]>;
272
+ (params?: Record<string, unknown>): Promise<ListResult<TMenu>>;
273
+ (parentId: number, menuType: string): Promise<ListResult<TMenu>>;
274
274
  };
275
275
  getJoomlaMenuDoc: (menuId: number | string) => Promise<TMenu>;
276
276
  getUserProfile: (userId: number | string) => Promise<NormalizedUserProfile>;
@@ -301,56 +301,6 @@ interface JoomlaActions {
301
301
  */
302
302
  declare function createJoomlaActions(api: JoomlaApiClient, config?: JoomlaActionsConfig): JoomlaActions;
303
303
 
304
- interface CustomerListResult {
305
- data: unknown[];
306
- total: number;
307
- }
308
- /** Derived from augur-api SDK — keeps types in sync automatically. */
309
- type CustomersApiClient = Pick<AugurAPI, "customers">;
310
- interface CustomersActionsConfig {
311
- /** Cache key prefix (e.g. "ampro:"). Default: "". */
312
- cachePrefix?: string;
313
- /** CDN edge cache value passed to SDK. Default: 1 (hour). */
314
- edgeCache?: EdgeCacheValue;
315
- /** Redis TTL in seconds. Default: 3600 (1 hour). */
316
- redisTtl?: number;
317
- }
318
- interface CustomersActions {
319
- getCustomer: (customerId: number) => Promise<CustomerDocument>;
320
- customerLookup: (params: Record<string, unknown>) => Promise<CustomerDocument[]>;
321
- getCustomerDoc: (customerId: number) => Promise<CustomerDocument>;
322
- getCustomerOrders: (customerId: number, params?: Record<string, unknown>) => Promise<CustomerListResult>;
323
- getCustomerOrderDetail: (customerId: number, orderId: number) => Promise<unknown>;
324
- getCustomerInvoices: (customerId: number, params?: Record<string, unknown>) => Promise<CustomerListResult>;
325
- getCustomerInvoiceDetail: (customerId: number, invoiceNo: number) => Promise<unknown>;
326
- getCustomerQuotes: (customerId: number, params?: Record<string, unknown>) => Promise<CustomerListResult>;
327
- getCustomerQuoteDetail: (customerId: number, quoteNo: number) => Promise<unknown>;
328
- getContacts: (params?: Record<string, unknown>) => Promise<unknown[]>;
329
- getShipToAddresses: (customerId: number) => Promise<unknown[]>;
330
- }
331
- /**
332
- * @deprecated Use `createSiteActions()` instead. This factory will be removed in the next major version.
333
- *
334
- * Creates server-side customer actions with Redis caching and edge cache support.
335
- *
336
- * Covers the customers microservice endpoints used by ecommerce sites:
337
- * customer get, lookup, doc, orders, contacts, and ship-to addresses.
338
- *
339
- * @example
340
- * ```ts
341
- * import { createCustomersActions } from "@simpleapps-com/augur-server";
342
- * import { getAugurClient } from "./augur-client";
343
- *
344
- * export const customersActions = createCustomersActions(getAugurClient(), {
345
- * cachePrefix: "ampro:",
346
- * });
347
- *
348
- * const customer = await customersActions.getCustomer(123);
349
- * const orders = await customersActions.getCustomerOrders(123);
350
- * ```
351
- */
352
- declare function createCustomersActions(api: CustomersApiClient, config?: CustomersActionsConfig): CustomersActions;
353
-
354
304
  /** Derived from augur-api SDK — keeps types in sync automatically. */
355
305
  type SmartyStreetsApiClient = Pick<AugurAPI, "smartyStreets">;
356
306
  interface SmartyStreetsActionsConfig {
@@ -396,4 +346,4 @@ interface SmartyStreetsActions {
396
346
  */
397
347
  declare function createSmartyStreetsActions(api: SmartyStreetsApiClient, config?: SmartyStreetsActionsConfig): SmartyStreetsActions;
398
348
 
399
- export { type AddressValidationResult as A, type CustomerListResult as C, type GetItemCategoryOptions as G, type ItemActions as I, type JoomlaActions as J, type NormalizedUserProfile as N, type PaginatedResult as P, type SearchActions as S, type CustomersActions as a, type CustomersActionsConfig as b, type CustomersApiClient as c, type ItemActionsConfig as d, type ItemsApiClient as e, type JoomlaActionsConfig as f, type JoomlaApiClient as g, type SearchActionsConfig as h, type SearchApiClient as i, type SearchPage as j, type ShippingActions as k, type ShippingActionsConfig as l, type ShippingAddress as m, type ShippingApiClient as n, type SmartyStreetsActions as o, type SmartyStreetsActionsConfig as p, type SmartyStreetsApiClient as q, createCustomersActions as r, createItemActions as s, createJoomlaActions as t, createSearchActions as u, createShippingActions as v, createSmartyStreetsActions as w, paginateOffset as x };
349
+ export { type AddressValidationResult as A, type GetItemCategoryOptions as G, type ItemActions as I, type JoomlaActions as J, type NormalizedUserProfile as N, type PaginatedResult as P, type SearchActions as S, type ItemActionsConfig as a, type ItemsApiClient as b, type JoomlaActionsConfig as c, type JoomlaApiClient as d, type SearchActionsConfig as e, type SearchApiClient as f, type SearchPage as g, type ShippingActions as h, type ShippingActionsConfig as i, type ShippingAddress as j, type ShippingApiClient as k, type SmartyStreetsActions as l, type SmartyStreetsActionsConfig as m, type SmartyStreetsApiClient as n, createItemActions as o, createJoomlaActions as p, createSearchActions as q, createShippingActions as r, createSmartyStreetsActions as s, paginateOffset as t };
package/dist/testing.d.ts CHANGED
@@ -1,10 +1,10 @@
1
1
  export { DeepMockClient, MockClientResult, createMockClient } from '@simpleapps-com/augur-core/testing';
2
- export { c as clearSiteActions } from './server-site-registry-RvjtgbHN.js';
3
- import { a0 as SiteActions } from './site-CjgTIpnT.js';
2
+ export { c as clearSiteActions } from './server-site-registry-BtBMmWYF.js';
3
+ import { a4 as SiteActions } from './site-C1raVxkq.js';
4
4
  import '@simpleapps-com/augur-core';
5
5
  import '@simpleapps-com/augur-api';
6
6
  import '@simpleapps-com/augur-utils';
7
- import './smarty-streets-xASjXqym.js';
7
+ import './smarty-streets-DshoLeug.js';
8
8
 
9
9
  /**
10
10
  * A mock function type compatible with both Vitest and Jest.
package/dist/testing.js CHANGED
@@ -32,12 +32,7 @@ var SERVICE_METHODS = {
32
32
  "getCartAlsoBought",
33
33
  "checkoutOrder"
34
34
  ],
35
- search: [
36
- "getSearchAttributes",
37
- "getSearchSuggestions",
38
- "itemSearch",
39
- "itemSearchInfinite"
40
- ],
35
+ search: ["getSearchAttributes", "getSearchSuggestions", "itemSearch", "itemSearchInfinite"],
41
36
  orders: ["getOrderDoc"],
42
37
  shipping: ["getShippingRates"],
43
38
  joomla: [
@@ -48,12 +43,7 @@ var SERVICE_METHODS = {
48
43
  "getUserProfile",
49
44
  "verifyPassword"
50
45
  ],
51
- legacy: [
52
- "getItemWebDesc",
53
- "getAlsoBoughtItems",
54
- "getItemTags",
55
- "getStates"
56
- ],
46
+ legacy: ["getItemWebDesc", "getAlsoBoughtItems", "getItemTags", "getStates"],
57
47
  customers: [
58
48
  "getCustomer",
59
49
  "customerLookup",
@@ -117,20 +107,9 @@ var SERVICE_METHODS = {
117
107
  "refreshContacts",
118
108
  "refreshCustomers"
119
109
  ],
120
- p21Sism: [
121
- "getRecentImports",
122
- "getImport",
123
- "getImportLines",
124
- "getScheduledImports"
125
- ],
110
+ p21Sism: ["getRecentImports", "getImport", "getImportLines", "getScheduledImports"],
126
111
  agrWork: ["healthCheck", "ping"],
127
- agrInfo: [
128
- "getContext",
129
- "getRubrics",
130
- "getMicroservices",
131
- "generateAkasha",
132
- "generateJoomla"
133
- ],
112
+ agrInfo: ["getContext", "getRubrics", "getMicroservices", "generateAkasha", "generateJoomla"],
134
113
  basecamp2: [
135
114
  "getTodos",
136
115
  "getTodo",
@@ -143,12 +122,7 @@ var SERVICE_METHODS = {
143
122
  "getTodolists"
144
123
  ],
145
124
  brandFolder: ["getCategories", "getCategory", "createFocus"],
146
- gregorovich: [
147
- "askChatGpt",
148
- "getDocuments",
149
- "createDocument",
150
- "generateOllama"
151
- ],
125
+ gregorovich: ["askChatGpt", "getDocuments", "createDocument", "generateOllama"],
152
126
  slack: ["sendWebhook", "getWebhooks"]
153
127
  };
154
128
  function createStubFn() {