@simpleapps-com/augur-server 1.0.18 → 1.0.20

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.
@@ -1,7 +1,7 @@
1
1
  import { EdgeCacheValue } from '@simpleapps-com/augur-core';
2
2
  import { AugurAPI } from '@simpleapps-com/augur-api';
3
- import { TPriceData, TTaxItem, TTax, TCategory, TAttribute, TInvMast, TInvMastDoc, TStockData, TItemAccessory, TCartLookUp, TCartLine, TWebDesc } from '@simpleapps-com/augur-utils';
4
- import { S as SearchActions, i as ShippingActions, J as JoomlaActions, a as CustomersActions, m as SmartyStreetsActions, k as ShippingAddress } from './smarty-streets-BS4ifhxQ.js';
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-wNE71Nip.js';
5
5
 
6
6
  /** Derived from augur-api SDK — keeps types in sync automatically. */
7
7
  type PricingApiClient = Pick<AugurAPI, "pricing">;
@@ -20,7 +20,7 @@ interface PricingActionsConfig {
20
20
  interface PricingActions {
21
21
  getItemPrice: (itemId: string, customerId?: string | number, quantity?: number) => Promise<TPriceData>;
22
22
  batchGetItemPrices: (itemIds: string[], customerId?: string | number, quantity?: number) => Promise<Record<string, TPriceData>>;
23
- getTaxEstimate: (customerId: string | number, postalCode: string, items: TTaxItem[]) => Promise<TTax>;
23
+ getTaxEstimate: (customerId?: string | number, postalCode?: string, items?: TTaxItem[]) => Promise<TTax>;
24
24
  }
25
25
  /**
26
26
  * @deprecated Use `createSiteActions()` instead. This factory will be removed in the next major version.
@@ -48,72 +48,6 @@ interface PricingActions {
48
48
  */
49
49
  declare function createPricingActions(api: PricingApiClient, config?: PricingActionsConfig): PricingActions;
50
50
 
51
- /** Derived from augur-api SDK — keeps types in sync automatically. */
52
- type ItemsApiClient = Pick<AugurAPI, "items">;
53
- interface ItemActionsConfig {
54
- /** Cache key prefix (e.g. "ampro:"). Default: "". */
55
- cachePrefix?: string;
56
- /** CDN edge cache value for most calls. Default: 1 (hour). */
57
- edgeCache?: EdgeCacheValue;
58
- /** CDN edge cache for rarely-changing data like FAQs. Default: 8 (hours). */
59
- longEdgeCache?: EdgeCacheValue;
60
- /** Redis TTL for most calls in seconds. Default: 3600 (1 hour). */
61
- redisTtl?: number;
62
- /** Redis TTL for rarely-changing data in seconds. Default: 28800 (8 hours). */
63
- longRedisTtl?: number;
64
- /** Sort category children by sequenceNo. Default: true. */
65
- sortChildren?: boolean;
66
- /** Prefix prepended to sortBy filter values (e.g. "item_category_sequence_no_min|"). */
67
- sortByPrefix?: string;
68
- }
69
- interface ItemActions {
70
- itemCategoryLookup: (path: string) => Promise<unknown>;
71
- getItemCategory: (uid: number, options?: Record<string, unknown>) => Promise<TCategory>;
72
- getCategoryItems: (uid: number, filters: Record<string, unknown>) => Promise<unknown>;
73
- getItemAttributes: (categoryUid: number) => Promise<TAttribute[]>;
74
- getInvMast: (uid: number) => Promise<TInvMast>;
75
- getInvMastDoc: (params: {
76
- invMastUid?: number;
77
- itemId?: string;
78
- includePricing?: "Y" | "N";
79
- }) => Promise<TInvMastDoc>;
80
- getStock: (invMastUid: number) => Promise<TStockData[]>;
81
- getStockCompanySummary: (invMastUid: number) => Promise<Record<string, number>>;
82
- getItemFaqs: (invMastUid: number) => Promise<unknown[]>;
83
- getItemSubstitutes: (invMastUid: number) => Promise<unknown[]>;
84
- getItemAccessories: (invMastUid: number) => Promise<TItemAccessory[]>;
85
- getSimilarItems: (invMastUid: number) => Promise<unknown[]>;
86
- batchGetInvMastDocs: (params: {
87
- invMastUid?: number;
88
- itemId?: string;
89
- }[]) => Promise<Record<string, TInvMastDoc>>;
90
- batchGetStockData: (invMastUids: number[]) => Promise<Record<number, TStockData[]>>;
91
- }
92
- /**
93
- * @deprecated Use `createSiteActions()` instead. This factory will be removed in the next major version.
94
- *
95
- * Creates server-side item actions with Redis caching and edge cache support.
96
- *
97
- * Uses `withServerCache` which produces cache keys compatible with augur-hooks'
98
- * `withCache`, so server-prefetched data is shared with client-side hooks.
99
- *
100
- * @example
101
- * ```ts
102
- * // lib/item-actions.ts
103
- * import { createItemActions } from "@simpleapps-com/augur-server";
104
- * import { getAugurClient } from "./augur-client";
105
- *
106
- * export const itemActions = createItemActions(getAugurClient(), {
107
- * cachePrefix: "ampro:",
108
- * });
109
- *
110
- * // In a server component:
111
- * const category = await itemActions.getItemCategory(123);
112
- * const doc = await itemActions.getInvMastDoc({ itemId: "ITEM-1" });
113
- * ```
114
- */
115
- declare function createItemActions(api: ItemsApiClient, config?: ItemActionsConfig): ItemActions;
116
-
117
51
  /** Derived from augur-api SDK — keeps types in sync automatically. */
118
52
  type CommerceApiClient = Pick<AugurAPI, "commerce">;
119
53
  interface CommerceActionsConfig {
@@ -142,8 +76,8 @@ interface CommerceActions {
142
76
  unitOfMeasure: string;
143
77
  }[]) => Promise<unknown>;
144
78
  deleteCartItems: (cartHdrUid: number) => Promise<void>;
145
- getCartAlsoBought: (cartHdrUid: number) => Promise<unknown[]>;
146
- checkoutOrder: (cartHdrUid: number, data: Record<string, unknown>) => Promise<unknown>;
79
+ getCartAlsoBought: (cartHdrUid: number) => Promise<TRelatedProduct[]>;
80
+ checkoutOrder: (cartHdrUid: number, data: Record<string, unknown>) => Promise<TCheckoutResult | undefined>;
147
81
  }
148
82
  /**
149
83
  * @deprecated Use `createSiteActions()` instead. This factory will be removed in the next major version.
@@ -225,7 +159,7 @@ interface LegacyActionsConfig {
225
159
  }
226
160
  interface LegacyActions {
227
161
  getItemWebDesc: (invMastUid: number) => Promise<TWebDesc | undefined>;
228
- getAlsoBoughtItems: (invMastUid: number) => Promise<unknown[]>;
162
+ getAlsoBoughtItems: (invMastUid: number) => Promise<TRelatedProduct[]>;
229
163
  getItemTags: (invMastUid: number) => Promise<unknown[]>;
230
164
  getStates: (params?: {
231
165
  twoLetterCode?: string;
@@ -379,12 +313,12 @@ interface PaymentsActionsConfig {
379
313
  mode?: string;
380
314
  }
381
315
  interface PaymentsActions {
382
- transactionSetup: (params: Record<string, unknown>) => Promise<unknown>;
383
- accountQuery: (params: Record<string, unknown>) => Promise<unknown>;
384
- getSurcharge: (params: Record<string, unknown>) => Promise<unknown>;
385
- cardInfo: (params: Record<string, unknown>) => Promise<unknown>;
386
- billingUpdate: (params: Record<string, unknown>) => Promise<unknown>;
387
- validatePayment: (params: Record<string, unknown>) => Promise<unknown>;
316
+ transactionSetup: (params: Record<string, unknown>) => Promise<TTransactionSetup | undefined>;
317
+ accountQuery: (params: Record<string, unknown>) => Promise<TAccountQuery | undefined>;
318
+ getSurcharge: (params: Record<string, unknown>) => Promise<TSurcharge | undefined>;
319
+ cardInfo: (params: Record<string, unknown>) => Promise<TCardInfo | undefined>;
320
+ billingUpdate: (params: Record<string, unknown>) => Promise<TBillingUpdate | undefined>;
321
+ validatePayment: (params: Record<string, unknown>) => Promise<TPaymentValidation | undefined>;
388
322
  }
389
323
  /**
390
324
  * @deprecated Use `createSiteActions()` instead. This factory will be removed in the next major version.
@@ -415,7 +349,7 @@ interface UpsActionsConfig {
415
349
  cachePrefix?: string;
416
350
  }
417
351
  interface UpsActions {
418
- getRates: (params: Record<string, unknown>) => Promise<unknown>;
352
+ getRates: (params: Record<string, unknown>) => Promise<TShippingMethod[] | undefined>;
419
353
  }
420
354
  /**
421
355
  * @deprecated Use `createSiteActions()` instead. This factory will be removed in the next major version.
@@ -934,7 +868,16 @@ interface SlackActions {
934
868
  declare function createSlackActions(api: SlackApiClient, config?: SlackActionsConfig): SlackActions;
935
869
 
936
870
  interface SiteActionsConfig {
937
- /** Cache key prefix shared across all services (e.g. "ampro:") */
871
+ /**
872
+ * Cache key prefix shared across all services.
873
+ *
874
+ * Defaults to `"${siteId}:"` extracted from the API client.
875
+ * The site ID is the canonical cache namespace — most sites should
876
+ * NOT set this and let it derive automatically.
877
+ *
878
+ * Only override when migrating from a legacy prefix (e.g. `"ampro:"`
879
+ * instead of the site ID `"ampro-online"`).
880
+ */
938
881
  cachePrefix?: string;
939
882
  /** Default edge cache TTL in seconds */
940
883
  edgeCache?: EdgeCacheValue;
@@ -1018,8 +961,8 @@ interface SiteActions {
1018
961
  * import { createSiteActions } from "@simpleapps-com/augur-server";
1019
962
  * import { getAugurClient } from "./augur-client";
1020
963
  *
964
+ * // cachePrefix defaults to "${siteId}:" from the API client — no need to set it.
1021
965
  * export const actions = createSiteActions(getAugurClient(), {
1022
- * cachePrefix: "ampro:",
1023
966
  * defaultCustomerId: process.env.NEXT_PUBLIC_DEFAULT_CUSTOMER_ID,
1024
967
  * defaultContactId: process.env.NEXT_PUBLIC_DEFAULT_CONTACT_ID,
1025
968
  * convertUnitOfMeasure: (uom) => uom === "EA" ? "EACH" : uom,
@@ -1038,4 +981,4 @@ interface SiteActions {
1038
981
  */
1039
982
  declare function createSiteActions<TApi extends object>(api: TApi, config?: SiteActionsConfig): SiteActions;
1040
983
 
1041
- export { type PaymentsApiClient as $, type AgrInfoActions as A, type Basecamp2Actions as B, type CommerceActions as C, type LogisticsApiClient as D, type NexusActionsConfig as E, type NexusApiClient as F, type GregorovichActions as G, type OrderActionsConfig as H, type ItemActions as I, type OrderApiClient as J, type P21ApisActionsConfig as K, type LegacyActions as L, type P21ApisApiClient as M, type NexusActions as N, type OrderActions as O, type P21ApisActions as P, type P21CoreActions as Q, type P21CoreActionsConfig as R, type P21CoreApiClient as S, type P21PimActions as T, type P21PimActionsConfig as U, type P21PimApiClient as V, type P21SismActions as W, type P21SismActionsConfig as X, type P21SismApiClient as Y, type PaymentsActions as Z, type PaymentsActionsConfig as _, type AgrInfoActionsConfig as a, type PricingActions as a0, type PricingActionsConfig as a1, type PricingApiClient as a2, type SiteActions as a3, type SiteActionsConfig as a4, type SlackActions as a5, type SlackActionsConfig as a6, type SlackApiClient as a7, type UpsActions as a8, type UpsActionsConfig as a9, createVmiActions as aA, type UpsApiClient as aa, type VmiActions as ab, type VmiActionsConfig as ac, type VmiApiClient as ad, createAgrInfoActions as ae, createAgrSiteActions as af, createAgrWorkActions as ag, createAvalaraActions as ah, createBasecamp2Actions as ai, createBrandFolderActions as aj, createCommerceActions as ak, createGregorovichActions as al, createItemActions as am, createLegacyActions as an, createLogisticsActions as ao, createNexusActions as ap, createOrderActions as aq, createP21ApisActions as ar, createP21CoreActions as as, createP21PimActions as at, createP21SismActions as au, createPaymentsActions as av, createPricingActions as aw, createSiteActions as ax, createSlackActions as ay, createUpsActions 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 GregorovichActionsConfig as s, type GregorovichApiClient as t, type ItemActionsConfig as u, type ItemsApiClient as v, type LegacyActionsConfig as w, type LegacyApiClient as x, type LogisticsActions as y, type LogisticsActionsConfig as z };
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 };
package/dist/site.d.ts CHANGED
@@ -1,10 +1,10 @@
1
- import { a3 as SiteActions, a4 as SiteActionsConfig } from './site-BKPGMqQx.js';
1
+ import { a0 as SiteActions, a1 as SiteActionsConfig } from './site-B_2M8bT-.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-BS4ifhxQ.js';
7
+ import './smarty-streets-wNE71Nip.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,13 +1,13 @@
1
1
  import {
2
2
  createSiteActions
3
- } from "./chunk-5D5JCAKO.js";
3
+ } from "./chunk-DF3HMPTP.js";
4
4
  import {
5
5
  createAuthConfig
6
6
  } from "./chunk-Z7QWERHW.js";
7
7
  import "./chunk-XGRQ53P2.js";
8
8
  import {
9
9
  registerSiteActions
10
- } from "./chunk-MQGUOFAZ.js";
10
+ } from "./chunk-QRCB7P2N.js";
11
11
 
12
12
  // src/server-site.ts
13
13
  function createServerSite(client, config = {}) {
@@ -1,6 +1,84 @@
1
1
  import { AugurAPI } from '@simpleapps-com/augur-api';
2
2
  import { EdgeCacheValue } from '@simpleapps-com/augur-core';
3
- import { TAttribute, TProductItem, TSmartyStreets } from '@simpleapps-com/augur-utils';
3
+ import { TCategory, TCategoryItemsResult, TAttribute, TInvMast, TInvMastDoc, TStockData, TItemAccessory, TProductItem, TShippingMethod, TJoomlaContent, TMenu, TPasswordVerification, CustomerDocument, TSmartyStreets } from '@simpleapps-com/augur-utils';
4
+
5
+ /** Derived from augur-api SDK — keeps types in sync automatically. */
6
+ type ItemsApiClient = Pick<AugurAPI, "items">;
7
+ interface ItemActionsConfig {
8
+ /** Cache key prefix (e.g. "ampro:"). Default: "". */
9
+ cachePrefix?: string;
10
+ /** CDN edge cache value for most calls. Default: 1 (hour). */
11
+ edgeCache?: EdgeCacheValue;
12
+ /** CDN edge cache for rarely-changing data like FAQs. Default: 8 (hours). */
13
+ longEdgeCache?: EdgeCacheValue;
14
+ /** Redis TTL for most calls in seconds. Default: 3600 (1 hour). */
15
+ redisTtl?: number;
16
+ /** Redis TTL for rarely-changing data in seconds. Default: 28800 (8 hours). */
17
+ longRedisTtl?: number;
18
+ /** Sort category children by sequenceNo. Default: true. */
19
+ sortChildren?: boolean;
20
+ /** Prefix prepended to sortBy filter values (e.g. "item_category_sequence_no_min|"). */
21
+ sortByPrefix?: string;
22
+ }
23
+ /** Typed options for getItemCategory. */
24
+ interface GetItemCategoryOptions {
25
+ childrenFilter?: string;
26
+ childrenLimit?: number;
27
+ childrenOffset?: number;
28
+ classId5List?: string;
29
+ filters?: Record<string, string>;
30
+ orderBy?: string;
31
+ path?: string;
32
+ productCollection?: string;
33
+ rootItemCategoryId?: string;
34
+ }
35
+ interface ItemActions {
36
+ itemCategoryLookup: (path: string) => Promise<unknown>;
37
+ getItemCategory: (uid: number, options?: GetItemCategoryOptions) => Promise<TCategory>;
38
+ getCategoryItems: (uid: number, filters: Record<string, unknown>) => Promise<TCategoryItemsResult>;
39
+ getItemAttributes: (categoryUid: number) => Promise<TAttribute[]>;
40
+ getInvMast: (uid: number) => Promise<TInvMast>;
41
+ getInvMastDoc: (params: {
42
+ invMastUid?: number;
43
+ itemId?: string;
44
+ includePricing?: "Y" | "N";
45
+ }) => Promise<TInvMastDoc>;
46
+ getStock: (invMastUid: number) => Promise<TStockData[]>;
47
+ getStockCompanySummary: (invMastUid: number) => Promise<Record<string, number>>;
48
+ getItemFaqs: (invMastUid: number) => Promise<unknown[]>;
49
+ getItemSubstitutes: (invMastUid: number) => Promise<unknown[]>;
50
+ getItemAccessories: (invMastUid: number) => Promise<TItemAccessory[]>;
51
+ getSimilarItems: (invMastUid: number) => Promise<unknown[]>;
52
+ batchGetInvMastDocs: (params: {
53
+ invMastUid?: number;
54
+ itemId?: string;
55
+ }[]) => Promise<Record<string, TInvMastDoc>>;
56
+ batchGetStockData: (invMastUids: number[]) => Promise<Record<number, TStockData[]>>;
57
+ }
58
+ /**
59
+ * @deprecated Use `createSiteActions()` instead. This factory will be removed in the next major version.
60
+ *
61
+ * Creates server-side item actions with Redis caching and edge cache support.
62
+ *
63
+ * Uses `withServerCache` which produces cache keys compatible with augur-hooks'
64
+ * `withCache`, so server-prefetched data is shared with client-side hooks.
65
+ *
66
+ * @example
67
+ * ```ts
68
+ * // lib/item-actions.ts
69
+ * import { createItemActions } from "@simpleapps-com/augur-server";
70
+ * import { getAugurClient } from "./augur-client";
71
+ *
72
+ * export const itemActions = createItemActions(getAugurClient(), {
73
+ * cachePrefix: "ampro:",
74
+ * });
75
+ *
76
+ * // In a server component:
77
+ * const category = await itemActions.getItemCategory(123);
78
+ * const doc = await itemActions.getInvMastDoc({ itemId: "ITEM-1" });
79
+ * ```
80
+ */
81
+ declare function createItemActions(api: ItemsApiClient, config?: ItemActionsConfig): ItemActions;
4
82
 
5
83
  /** Derived from augur-api SDK — keeps types in sync automatically. */
6
84
  type SearchApiClient = Pick<AugurAPI, "opensearch">;
@@ -91,7 +169,7 @@ interface ShippingActionsConfig {
91
169
  redisTtl?: number;
92
170
  }
93
171
  interface ShippingActions {
94
- getShippingRates: (toAddress: ShippingAddress, weight: number, serviceCodes?: string[]) => Promise<unknown>;
172
+ getShippingRates: (toAddress: ShippingAddress, weight: number, serviceCodes?: string[]) => Promise<TShippingMethod[]>;
95
173
  }
96
174
  /**
97
175
  * @deprecated Use `createSiteActions()` instead. This factory will be removed in the next major version.
@@ -143,12 +221,12 @@ interface NormalizedUserProfile {
143
221
  permissions: string[];
144
222
  }
145
223
  interface JoomlaActions {
146
- getJoomlaContent: (articleId: number) => Promise<unknown>;
147
- getJoomlaContentList: (params?: Record<string, unknown>) => Promise<unknown[]>;
148
- getJoomlaMenu: (params?: Record<string, unknown>) => Promise<unknown[]>;
149
- getJoomlaMenuDoc: (menuId: number | string) => Promise<unknown>;
224
+ getJoomlaContent: (articleId: number) => Promise<TJoomlaContent>;
225
+ getJoomlaContentList: (params?: Record<string, unknown>) => Promise<TJoomlaContent[]>;
226
+ getJoomlaMenu: (params?: Record<string, unknown>) => Promise<TMenu[]>;
227
+ getJoomlaMenuDoc: (menuId: number | string) => Promise<TMenu>;
150
228
  getUserProfile: (userId: number | string) => Promise<NormalizedUserProfile>;
151
- verifyPassword: (username: string, password: string) => Promise<unknown>;
229
+ verifyPassword: (username: string, password: string) => Promise<TPasswordVerification>;
152
230
  }
153
231
  /**
154
232
  * @deprecated Use `createSiteActions()` instead. This factory will be removed in the next major version.
@@ -190,9 +268,9 @@ interface CustomersActionsConfig {
190
268
  redisTtl?: number;
191
269
  }
192
270
  interface CustomersActions {
193
- getCustomer: (customerId: number) => Promise<unknown>;
194
- customerLookup: (params: Record<string, unknown>) => Promise<unknown[]>;
195
- getCustomerDoc: (customerId: number) => Promise<unknown>;
271
+ getCustomer: (customerId: number) => Promise<CustomerDocument>;
272
+ customerLookup: (params: Record<string, unknown>) => Promise<CustomerDocument[]>;
273
+ getCustomerDoc: (customerId: number) => Promise<CustomerDocument>;
196
274
  getCustomerOrders: (customerId: number, params?: Record<string, unknown>) => Promise<CustomerListResult>;
197
275
  getCustomerOrderDetail: (customerId: number, orderId: number) => Promise<unknown>;
198
276
  getCustomerInvoices: (customerId: number, params?: Record<string, unknown>) => Promise<CustomerListResult>;
@@ -270,4 +348,4 @@ interface SmartyStreetsActions {
270
348
  */
271
349
  declare function createSmartyStreetsActions(api: SmartyStreetsApiClient, config?: SmartyStreetsActionsConfig): SmartyStreetsActions;
272
350
 
273
- export { type AddressValidationResult as A, type CustomerListResult as C, type JoomlaActions as J, type NormalizedUserProfile as N, type SearchActions as S, type CustomersActions as a, type CustomersActionsConfig as b, type CustomersApiClient as c, type JoomlaActionsConfig as d, type JoomlaApiClient as e, type SearchActionsConfig as f, type SearchApiClient as g, type SearchPage as h, type ShippingActions as i, type ShippingActionsConfig as j, type ShippingAddress as k, type ShippingApiClient as l, type SmartyStreetsActions as m, type SmartyStreetsActionsConfig as n, type SmartyStreetsApiClient as o, createCustomersActions as p, createJoomlaActions as q, createSearchActions as r, createShippingActions as s, createSmartyStreetsActions as t };
351
+ 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 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 };
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-BZvxwcGM.js';
3
- import { a3 as SiteActions } from './site-BKPGMqQx.js';
2
+ export { c as clearSiteActions } from './server-site-registry-DXum3EsN.js';
3
+ import { a0 as SiteActions } from './site-B_2M8bT-.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-BS4ifhxQ.js';
7
+ import './smarty-streets-wNE71Nip.js';
8
8
 
9
9
  /**
10
10
  * A mock function type compatible with both Vitest and Jest.
package/dist/testing.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  clearSiteActions
3
- } from "./chunk-MQGUOFAZ.js";
3
+ } from "./chunk-QRCB7P2N.js";
4
4
 
5
5
  // src/testing.ts
6
6
  import { createMockClient } from "@simpleapps-com/augur-core/testing";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simpleapps-com/augur-server",
3
- "version": "1.0.18",
3
+ "version": "1.0.20",
4
4
  "description": "Server-side utilities for Augur ecommerce sites (Redis caching, SDK helpers, auth)",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -49,8 +49,8 @@
49
49
  ],
50
50
  "dependencies": {
51
51
  "valibot": "^1.0.0",
52
- "@simpleapps-com/augur-core": "1.0.18",
53
- "@simpleapps-com/augur-utils": "1.0.18"
52
+ "@simpleapps-com/augur-core": "1.0.20",
53
+ "@simpleapps-com/augur-utils": "1.0.20"
54
54
  },
55
55
  "peerDependencies": {
56
56
  "@simpleapps-com/augur-api": "^2026.3.1",
@@ -59,7 +59,7 @@
59
59
  "next": "^16.1.6",
60
60
  "next-auth": ">=5.0.0-beta.30",
61
61
  "react": "^19.0.0",
62
- "@simpleapps-com/augur-hooks": "1.0.18"
62
+ "@simpleapps-com/augur-hooks": "1.0.20"
63
63
  },
64
64
  "peerDependenciesMeta": {
65
65
  "ioredis": {
@@ -82,7 +82,7 @@
82
82
  "tsup": "^8.5.0",
83
83
  "vitest": "^3.2.0",
84
84
  "@augur-packages/tsconfig": "0.0.0",
85
- "@simpleapps-com/augur-hooks": "1.0.18"
85
+ "@simpleapps-com/augur-hooks": "1.0.20"
86
86
  },
87
87
  "scripts": {
88
88
  "build": "tsup",