@simpleapps-com/augur-server 2.0.10 → 2.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/EXPORTS.md +303 -0
- package/llms.txt +335 -0
- package/package.json +8 -6
package/EXPORTS.md
ADDED
|
@@ -0,0 +1,303 @@
|
|
|
1
|
+
# @simpleapps-com/augur-server exports
|
|
2
|
+
|
|
3
|
+
Version: 2.0.9
|
|
4
|
+
|
|
5
|
+
> Auto-generated from built type declarations. Do not edit manually.
|
|
6
|
+
> Regenerate with: `pnpm run generate-exports`
|
|
7
|
+
|
|
8
|
+
## `@simpleapps-com/augur-server`
|
|
9
|
+
|
|
10
|
+
### Values
|
|
11
|
+
|
|
12
|
+
| Export | Kind | Description |
|
|
13
|
+
|--------|------|-------------|
|
|
14
|
+
| `ActionResult` | value | |
|
|
15
|
+
| `EdgeCacheValue` | value | |
|
|
16
|
+
| `QueryOptionsConfig` | value | |
|
|
17
|
+
| `SafeActionResult` | value | |
|
|
18
|
+
| `batchFetch` | function | Fetches data for multiple params in parallel, returning a Record keyed by |
|
|
19
|
+
| `cacheGet` | function | Read a cached value by key. |
|
|
20
|
+
| `cacheSet` | function | Write a value to cache with a TTL. Fire-and-forget semantics: no-ops |
|
|
21
|
+
| `createAgrInfoActions` | value | |
|
|
22
|
+
| `createAgrSiteActions` | value | |
|
|
23
|
+
| `createAgrWorkActions` | value | |
|
|
24
|
+
| `createAvalaraActions` | value | |
|
|
25
|
+
| `createBasecamp2Actions` | value | |
|
|
26
|
+
| `createBrandFolderActions` | value | |
|
|
27
|
+
| `createCommerceActions` | value | |
|
|
28
|
+
| `createCustomersActions` | value | |
|
|
29
|
+
| `createFavoritesActions` | function | |
|
|
30
|
+
| `createGregorovichActions` | value | |
|
|
31
|
+
| `createItemActions` | value | |
|
|
32
|
+
| `createJoomlaActions` | function | |
|
|
33
|
+
| `createLegacyActions` | value | |
|
|
34
|
+
| `createLogisticsActions` | value | |
|
|
35
|
+
| `createNexusActions` | value | |
|
|
36
|
+
| `createOrderActions` | value | |
|
|
37
|
+
| `createP21ApisActions` | value | |
|
|
38
|
+
| `createP21CoreActions` | value | |
|
|
39
|
+
| `createP21PimActions` | value | |
|
|
40
|
+
| `createP21SismActions` | value | |
|
|
41
|
+
| `createPaymentsActions` | value | |
|
|
42
|
+
| `createPricingActions` | value | |
|
|
43
|
+
| `createQueryOptions` | value | |
|
|
44
|
+
| `createSearchActions` | value | |
|
|
45
|
+
| `createServerQueryClient` | function | Creates a server-side query client optimised for prefetching. |
|
|
46
|
+
| `createShippingActions` | value | |
|
|
47
|
+
| `createSiteActions` | value | |
|
|
48
|
+
| `createSlackActions` | value | |
|
|
49
|
+
| `createSmartyStreetsActions` | value | |
|
|
50
|
+
| `createSuspenseQueryOptions` | value | |
|
|
51
|
+
| `createUpsActions` | value | |
|
|
52
|
+
| `createVmiActions` | value | |
|
|
53
|
+
| `createWishlistActions` | function | |
|
|
54
|
+
| `env` | const | Resolved environment: `"development"`, `"staging"`, or `"production"`. |
|
|
55
|
+
| `getCircuitState` | function | Returns the current circuit breaker state. |
|
|
56
|
+
| `getServerQueryClient` | const | Returns a per-request singleton QueryClient for React Server Components. |
|
|
57
|
+
| `getSiteActions` | function | |
|
|
58
|
+
| `isDev` | const | `true` when running locally (localhost / NODE_ENV=development). |
|
|
59
|
+
| `isProduction` | const | `true` when running on the production deployment. |
|
|
60
|
+
| `isRedisConnected` | function | Whether the Redis client is connected and ready to accept commands. |
|
|
61
|
+
| `isStaging` | const | `true` when running on the staging/dev deployment. |
|
|
62
|
+
| `paginateOffset` | value | |
|
|
63
|
+
| `registerSiteActions` | function | |
|
|
64
|
+
| `safeAction` | function | Wraps an async function call with error handling, returning a |
|
|
65
|
+
| `sdkCall` | function | Calls an Augur SDK method, forwarding all arguments with full type safety. |
|
|
66
|
+
| `unwrap` | value | |
|
|
67
|
+
| `unwrapOr` | value | |
|
|
68
|
+
| `verifyRecaptcha` | function | Server-side Google reCAPTCHA v3 verification. |
|
|
69
|
+
| `withServerCache` | function | Server-side cache wrapper using augur-server's Redis client. |
|
|
70
|
+
|
|
71
|
+
### Types
|
|
72
|
+
|
|
73
|
+
`AddressValidationResult`, `AgrInfoActions`, `AgrInfoActionsConfig`, `AgrInfoApiClient`, `AgrSiteActions`, `AgrSiteActionsConfig`, `AgrSiteApiClient`, `AgrWorkActions`, `AgrWorkActionsConfig`, `AgrWorkApiClient`, `AvalaraActions`, `AvalaraActionsConfig`, `AvalaraApiClient`, `Basecamp2Actions`, `Basecamp2ActionsConfig`, `Basecamp2ApiClient`, `BrandFolderActions`, `BrandFolderActionsConfig`, `BrandFolderApiClient`, `CommerceActions`, `CommerceActionsConfig`, `CommerceApiClient`, `CustomerListResult`, `CustomersActions`, `CustomersActionsConfig`, `CustomersApiClient`, `FavoritesActions`, `FavoritesActionsConfig`, `FavoritesApiClient`, `GetItemCategoryOptions`, `GregorovichActions`, `GregorovichActionsConfig`, `GregorovichApiClient`, `ItemActions`, `ItemActionsConfig`, `ItemsApiClient`, `JoomlaActions`, `JoomlaActionsConfig`, `JoomlaApiClient`, `LegacyActions`, `LegacyActionsConfig`, `LegacyApiClient`, `LogisticsActions`, `LogisticsActionsConfig`, `LogisticsApiClient`, `NexusActions`, `NexusActionsConfig`, `NexusApiClient`, `NormalizedUserProfile`, `OrderActions`, `OrderActionsConfig`, `OrderApiClient`, `P21ApisActions`, `P21ApisActionsConfig`, `P21ApisApiClient`, `P21CoreActions`, `P21CoreActionsConfig`, `P21CoreApiClient`, `P21PimActions`, `P21PimActionsConfig`, `P21PimApiClient`, `P21SismActions`, `P21SismActionsConfig`, `P21SismApiClient`, `PaginatedResult`, `PaymentsActions`, `PaymentsApiClient`, `PricingActions`, `PricingActionsConfig`, `PricingApiClient`, `SafeData`, `SearchActions`, `SearchActionsConfig`, `SearchApiClient`, `SearchPage`, `ShippingActions`, `ShippingActionsConfig`, `ShippingAddress`, `ShippingApiClient`, `SiteActions`, `SiteActionsConfig`, `SlackActions`, `SlackActionsConfig`, `SlackApiClient`, `SmartyStreetsActions`, `SmartyStreetsActionsConfig`, `SmartyStreetsApiClient`, `UpsActions`, `UpsActionsConfig`, `UpsApiClient`, `VmiActions`, `VmiActionsConfig`, `VmiApiClient`, `WishlistActions`, `WishlistActionsConfig`, `WishlistsApiClient`
|
|
74
|
+
|
|
75
|
+
```ts
|
|
76
|
+
import { ActionResult, EdgeCacheValue, QueryOptionsConfig } from "@simpleapps-com/augur-server";
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
## `@simpleapps-com/augur-server/auth`
|
|
80
|
+
|
|
81
|
+
### Values
|
|
82
|
+
|
|
83
|
+
| Export | Kind | Description |
|
|
84
|
+
|--------|------|-------------|
|
|
85
|
+
| `createAuthConfig` | function | |
|
|
86
|
+
|
|
87
|
+
### Types
|
|
88
|
+
|
|
89
|
+
`AugurAuthCallbacks`, `AugurAuthClient`, `AugurJWT`, `AugurSession`, `AugurUser`, `CreateAuthConfigOptions`
|
|
90
|
+
|
|
91
|
+
```ts
|
|
92
|
+
import { createAuthConfig } from "@simpleapps-com/augur-server/auth";
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
## `@simpleapps-com/augur-server/query`
|
|
96
|
+
|
|
97
|
+
### Values
|
|
98
|
+
|
|
99
|
+
| Export | Kind | Description |
|
|
100
|
+
|--------|------|-------------|
|
|
101
|
+
| `createQueryOptions` | const | Creates useQuery options with consistent key generation. |
|
|
102
|
+
| `createSuspenseQueryOptions` | const | Creates useSuspenseQuery options with consistent key generation. |
|
|
103
|
+
|
|
104
|
+
### Types
|
|
105
|
+
|
|
106
|
+
`QueryOptionsConfig`
|
|
107
|
+
|
|
108
|
+
```ts
|
|
109
|
+
import { createQueryOptions, createSuspenseQueryOptions } from "@simpleapps-com/augur-server/query";
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
## `@simpleapps-com/augur-server/prefetch`
|
|
113
|
+
|
|
114
|
+
### Values
|
|
115
|
+
|
|
116
|
+
| Export | Kind | Description |
|
|
117
|
+
|--------|------|-------------|
|
|
118
|
+
| `CacheConfig` | value | |
|
|
119
|
+
| `createPrefetchUtilities` | function | Creates SSR prefetch utilities that pre-populate the React Query cache |
|
|
120
|
+
|
|
121
|
+
### Types
|
|
122
|
+
|
|
123
|
+
`PrefetchConfig`, `PrefetchItemCategoryApiOptions`, `PrefetchUtilities`
|
|
124
|
+
|
|
125
|
+
```ts
|
|
126
|
+
import { CacheConfig, createPrefetchUtilities } from "@simpleapps-com/augur-server/prefetch";
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
## `@simpleapps-com/augur-server/testing`
|
|
130
|
+
|
|
131
|
+
### Values
|
|
132
|
+
|
|
133
|
+
| Export | Kind | Description |
|
|
134
|
+
|--------|------|-------------|
|
|
135
|
+
| `DeepMockClient` | value | |
|
|
136
|
+
| `MockClientResult` | value | |
|
|
137
|
+
| `clearSiteActions` | function | |
|
|
138
|
+
| `createMockClient` | value | |
|
|
139
|
+
| `createMockSiteActions` | function | Creates a fully-mocked SiteActions object for testing. |
|
|
140
|
+
|
|
141
|
+
### Types
|
|
142
|
+
|
|
143
|
+
`MockFn`, `MockSiteActions`, `MockSiteActionsResult`
|
|
144
|
+
|
|
145
|
+
```ts
|
|
146
|
+
import { DeepMockClient, MockClientResult, clearSiteActions } from "@simpleapps-com/augur-server/testing";
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
## `@simpleapps-com/augur-server/site`
|
|
150
|
+
|
|
151
|
+
### Values
|
|
152
|
+
|
|
153
|
+
| Export | Kind | Description |
|
|
154
|
+
|--------|------|-------------|
|
|
155
|
+
| `createServerSite` | function | Create a server-side site instance that bundles the SDK client, server |
|
|
156
|
+
|
|
157
|
+
### Types
|
|
158
|
+
|
|
159
|
+
`ServerSite`, `ServerSiteAuthConfig`, `ServerSiteConfig`
|
|
160
|
+
|
|
161
|
+
```ts
|
|
162
|
+
import { createServerSite } from "@simpleapps-com/augur-server/site";
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
## `@simpleapps-com/augur-server/actions`
|
|
166
|
+
|
|
167
|
+
### Values
|
|
168
|
+
|
|
169
|
+
| Export | Kind | Description |
|
|
170
|
+
|--------|------|-------------|
|
|
171
|
+
| `ApiResult` | value | |
|
|
172
|
+
| `ListResult` | value | |
|
|
173
|
+
| `SafeActionResult` | value | |
|
|
174
|
+
| `accountQuery` | function | |
|
|
175
|
+
| `addToCart` | function | |
|
|
176
|
+
| `askChatGpt` | function | |
|
|
177
|
+
| `batchGetInvMastDocs` | function | |
|
|
178
|
+
| `batchGetItemPrices` | function | |
|
|
179
|
+
| `batchGetStockData` | function | |
|
|
180
|
+
| `billingUpdate` | function | |
|
|
181
|
+
| `calculateTax` | function | |
|
|
182
|
+
| `cardInfo` | function | |
|
|
183
|
+
| `cartHdrLookup` | function | |
|
|
184
|
+
| `checkoutOrder` | function | |
|
|
185
|
+
| `createBinTransfer` | function | |
|
|
186
|
+
| `createDocument` | function | |
|
|
187
|
+
| `createFocus` | function | |
|
|
188
|
+
| `createReceiving` | function | |
|
|
189
|
+
| `createTransfer` | function | |
|
|
190
|
+
| `customerLookup` | function | |
|
|
191
|
+
| `deleteCartItems` | function | |
|
|
192
|
+
| `generateAkasha` | function | |
|
|
193
|
+
| `generateJoomla` | function | |
|
|
194
|
+
| `generateOllama` | function | |
|
|
195
|
+
| `getAddresses` | function | |
|
|
196
|
+
| `getAlsoBoughtItems` | function | |
|
|
197
|
+
| `getBrandFolderCategories` | function | |
|
|
198
|
+
| `getCartAlsoBought` | function | |
|
|
199
|
+
| `getCartLines` | function | |
|
|
200
|
+
| `getCashDrawers` | function | |
|
|
201
|
+
| `getCategory` | function | |
|
|
202
|
+
| `getCategoryDefaults` | function | |
|
|
203
|
+
| `getCategoryItems` | function | |
|
|
204
|
+
| `getCategoryItemsInfinite` | function | |
|
|
205
|
+
| `getCodeP21` | function | |
|
|
206
|
+
| `getComments` | function | |
|
|
207
|
+
| `getCompanies` | function | |
|
|
208
|
+
| `getCompany` | function | |
|
|
209
|
+
| `getContacts` | function | |
|
|
210
|
+
| `getContext` | function | |
|
|
211
|
+
| `getCustomer` | function | |
|
|
212
|
+
| `getCustomerDoc` | function | |
|
|
213
|
+
| `getCustomerInvoiceDetail` | function | |
|
|
214
|
+
| `getCustomerInvoices` | function | |
|
|
215
|
+
| `getCustomerOrderDetail` | function | |
|
|
216
|
+
| `getCustomerOrders` | function | |
|
|
217
|
+
| `getCustomerQuoteDetail` | function | |
|
|
218
|
+
| `getCustomerQuotes` | function | |
|
|
219
|
+
| `getDistributors` | function | |
|
|
220
|
+
| `getDocuments` | function | |
|
|
221
|
+
| `getEvents` | function | |
|
|
222
|
+
| `getFreightRates` | function | |
|
|
223
|
+
| `getImport` | function | |
|
|
224
|
+
| `getImportLines` | function | |
|
|
225
|
+
| `getInvMast` | function | |
|
|
226
|
+
| `getInvMastDoc` | function | |
|
|
227
|
+
| `getInvMastExt` | function | |
|
|
228
|
+
| `getInventoryProfiles` | function | |
|
|
229
|
+
| `getItemAccessories` | function | |
|
|
230
|
+
| `getItemAttributes` | function | |
|
|
231
|
+
| `getItemCategory` | function | |
|
|
232
|
+
| `getItemFaqs` | function | |
|
|
233
|
+
| `getItemPrice` | function | |
|
|
234
|
+
| `getItemSubstitutes` | function | |
|
|
235
|
+
| `getItemTags` | function | |
|
|
236
|
+
| `getItemWebDesc` | function | |
|
|
237
|
+
| `getJoomlaContent` | function | |
|
|
238
|
+
| `getJoomlaContentList` | function | |
|
|
239
|
+
| `getJoomlaMenu` | function | |
|
|
240
|
+
| `getJoomlaMenuDoc` | function | |
|
|
241
|
+
| `getLocations` | function | |
|
|
242
|
+
| `getMetaFiles` | function | |
|
|
243
|
+
| `getMetrics` | function | |
|
|
244
|
+
| `getMicroservices` | function | |
|
|
245
|
+
| `getOrderDoc` | function | |
|
|
246
|
+
| `getP21Categories` | function | |
|
|
247
|
+
| `getP21Companies` | function | |
|
|
248
|
+
| `getPaymentTypes` | function | |
|
|
249
|
+
| `getPeople` | function | |
|
|
250
|
+
| `getProducts` | function | |
|
|
251
|
+
| `getProjects` | function | |
|
|
252
|
+
| `getPurchaseOrderReceipts` | function | |
|
|
253
|
+
| `getRates` | function | |
|
|
254
|
+
| `getRecentImports` | function | |
|
|
255
|
+
| `getRestockHeaders` | function | |
|
|
256
|
+
| `getRubrics` | function | |
|
|
257
|
+
| `getScheduledImports` | function | |
|
|
258
|
+
| `getSearchAttributes` | function | |
|
|
259
|
+
| `getSearchSuggestions` | function | |
|
|
260
|
+
| `getSections` | function | |
|
|
261
|
+
| `getSettings` | function | |
|
|
262
|
+
| `getShipToAddresses` | function | |
|
|
263
|
+
| `getShipVia` | function | |
|
|
264
|
+
| `getShippingRates` | function | |
|
|
265
|
+
| `getSimilarItems` | function | |
|
|
266
|
+
| `getStates` | function | |
|
|
267
|
+
| `getStock` | function | |
|
|
268
|
+
| `getStockCompanySummary` | function | |
|
|
269
|
+
| `getSurcharge` | function | |
|
|
270
|
+
| `getTaxEstimate` | function | |
|
|
271
|
+
| `getTodo` | function | |
|
|
272
|
+
| `getTodolists` | function | |
|
|
273
|
+
| `getTodos` | function | |
|
|
274
|
+
| `getTodosSummary` | function | |
|
|
275
|
+
| `getTransferReceipts` | function | |
|
|
276
|
+
| `getTransferShipping` | function | |
|
|
277
|
+
| `getUserProfile` | function | |
|
|
278
|
+
| `getUsers` | function | |
|
|
279
|
+
| `getWarehouseAvailability` | function | |
|
|
280
|
+
| `getWarehouses` | function | |
|
|
281
|
+
| `getWebDisplayTypeDefaults` | function | |
|
|
282
|
+
| `getWebDisplayTypes` | function | |
|
|
283
|
+
| `getWebhooks` | function | |
|
|
284
|
+
| `healthCheck` | function | |
|
|
285
|
+
| `itemCategoryLookup` | function | |
|
|
286
|
+
| `itemSearch` | function | |
|
|
287
|
+
| `itemSearchInfinite` | function | |
|
|
288
|
+
| `listInvMastExt` | function | |
|
|
289
|
+
| `ping` | function | |
|
|
290
|
+
| `refreshContacts` | function | |
|
|
291
|
+
| `refreshCustomers` | function | |
|
|
292
|
+
| `sendWebhook` | function | |
|
|
293
|
+
| `transactionSetup` | function | |
|
|
294
|
+
| `updateCartLines` | function | |
|
|
295
|
+
| `validateAddress` | function | |
|
|
296
|
+
| `validatePayment` | function | |
|
|
297
|
+
| `verifyPassword` | function | |
|
|
298
|
+
|
|
299
|
+
```ts
|
|
300
|
+
import { ApiResult, ListResult, SafeActionResult } from "@simpleapps-com/augur-server/actions";
|
|
301
|
+
```
|
|
302
|
+
|
|
303
|
+
## `@simpleapps-com/augur-server/next-auth`
|
package/llms.txt
ADDED
|
@@ -0,0 +1,335 @@
|
|
|
1
|
+
# @simpleapps-com/augur-server
|
|
2
|
+
|
|
3
|
+
> Server-side utilities for Augur ecommerce sites (Redis caching, SDK helpers, auth)
|
|
4
|
+
|
|
5
|
+
Version: 2.0.9
|
|
6
|
+
|
|
7
|
+
## @simpleapps-com/augur-server
|
|
8
|
+
|
|
9
|
+
- value: ActionResult
|
|
10
|
+
- value: EdgeCacheValue
|
|
11
|
+
- value: QueryOptionsConfig
|
|
12
|
+
- value: SafeActionResult
|
|
13
|
+
- function: batchFetch - Fetches data for multiple params in parallel, returning a Record keyed by
|
|
14
|
+
- function: cacheGet - Read a cached value by key.
|
|
15
|
+
- function: cacheSet - Write a value to cache with a TTL. Fire-and-forget semantics: no-ops
|
|
16
|
+
- value: createAgrInfoActions
|
|
17
|
+
- value: createAgrSiteActions
|
|
18
|
+
- value: createAgrWorkActions
|
|
19
|
+
- value: createAvalaraActions
|
|
20
|
+
- value: createBasecamp2Actions
|
|
21
|
+
- value: createBrandFolderActions
|
|
22
|
+
- value: createCommerceActions
|
|
23
|
+
- value: createCustomersActions
|
|
24
|
+
- function: createFavoritesActions
|
|
25
|
+
- value: createGregorovichActions
|
|
26
|
+
- value: createItemActions
|
|
27
|
+
- function: createJoomlaActions
|
|
28
|
+
- value: createLegacyActions
|
|
29
|
+
- value: createLogisticsActions
|
|
30
|
+
- value: createNexusActions
|
|
31
|
+
- value: createOrderActions
|
|
32
|
+
- value: createP21ApisActions
|
|
33
|
+
- value: createP21CoreActions
|
|
34
|
+
- value: createP21PimActions
|
|
35
|
+
- value: createP21SismActions
|
|
36
|
+
- value: createPaymentsActions
|
|
37
|
+
- value: createPricingActions
|
|
38
|
+
- value: createQueryOptions
|
|
39
|
+
- value: createSearchActions
|
|
40
|
+
- function: createServerQueryClient - Creates a server-side query client optimised for prefetching.
|
|
41
|
+
- value: createShippingActions
|
|
42
|
+
- value: createSiteActions
|
|
43
|
+
- value: createSlackActions
|
|
44
|
+
- value: createSmartyStreetsActions
|
|
45
|
+
- value: createSuspenseQueryOptions
|
|
46
|
+
- value: createUpsActions
|
|
47
|
+
- value: createVmiActions
|
|
48
|
+
- function: createWishlistActions
|
|
49
|
+
- const: env - Resolved environment: `"development"`, `"staging"`, or `"production"`.
|
|
50
|
+
- function: getCircuitState - Returns the current circuit breaker state.
|
|
51
|
+
- const: getServerQueryClient - Returns a per-request singleton QueryClient for React Server Components.
|
|
52
|
+
- function: getSiteActions
|
|
53
|
+
- const: isDev - `true` when running locally (localhost / NODE_ENV=development).
|
|
54
|
+
- const: isProduction - `true` when running on the production deployment.
|
|
55
|
+
- function: isRedisConnected - Whether the Redis client is connected and ready to accept commands.
|
|
56
|
+
- const: isStaging - `true` when running on the staging/dev deployment.
|
|
57
|
+
- value: paginateOffset
|
|
58
|
+
- function: registerSiteActions
|
|
59
|
+
- function: safeAction - Wraps an async function call with error handling, returning a
|
|
60
|
+
- function: sdkCall - Calls an Augur SDK method, forwarding all arguments with full type safety.
|
|
61
|
+
- value: unwrap
|
|
62
|
+
- value: unwrapOr
|
|
63
|
+
- function: verifyRecaptcha - Server-side Google reCAPTCHA v3 verification.
|
|
64
|
+
- function: withServerCache - Server-side cache wrapper using augur-server's Redis client.
|
|
65
|
+
- type: AddressValidationResult
|
|
66
|
+
- type: AgrInfoActions
|
|
67
|
+
- type: AgrInfoActionsConfig
|
|
68
|
+
- type: AgrInfoApiClient
|
|
69
|
+
- type: AgrSiteActions
|
|
70
|
+
- type: AgrSiteActionsConfig
|
|
71
|
+
- type: AgrSiteApiClient
|
|
72
|
+
- type: AgrWorkActions
|
|
73
|
+
- type: AgrWorkActionsConfig
|
|
74
|
+
- type: AgrWorkApiClient
|
|
75
|
+
- type: AvalaraActions
|
|
76
|
+
- type: AvalaraActionsConfig
|
|
77
|
+
- type: AvalaraApiClient
|
|
78
|
+
- type: Basecamp2Actions
|
|
79
|
+
- type: Basecamp2ActionsConfig
|
|
80
|
+
- type: Basecamp2ApiClient
|
|
81
|
+
- type: BrandFolderActions
|
|
82
|
+
- type: BrandFolderActionsConfig
|
|
83
|
+
- type: BrandFolderApiClient
|
|
84
|
+
- type: CommerceActions
|
|
85
|
+
- type: CommerceActionsConfig
|
|
86
|
+
- type: CommerceApiClient
|
|
87
|
+
- type: CustomerListResult
|
|
88
|
+
- type: CustomersActions
|
|
89
|
+
- type: CustomersActionsConfig
|
|
90
|
+
- type: CustomersApiClient
|
|
91
|
+
- type: FavoritesActions
|
|
92
|
+
- type: FavoritesActionsConfig
|
|
93
|
+
- type: FavoritesApiClient
|
|
94
|
+
- type: GetItemCategoryOptions
|
|
95
|
+
- type: GregorovichActions
|
|
96
|
+
- type: GregorovichActionsConfig
|
|
97
|
+
- type: GregorovichApiClient
|
|
98
|
+
- type: ItemActions
|
|
99
|
+
- type: ItemActionsConfig
|
|
100
|
+
- type: ItemsApiClient
|
|
101
|
+
- type: JoomlaActions
|
|
102
|
+
- type: JoomlaActionsConfig
|
|
103
|
+
- type: JoomlaApiClient
|
|
104
|
+
- type: LegacyActions
|
|
105
|
+
- type: LegacyActionsConfig
|
|
106
|
+
- type: LegacyApiClient
|
|
107
|
+
- type: LogisticsActions
|
|
108
|
+
- type: LogisticsActionsConfig
|
|
109
|
+
- type: LogisticsApiClient
|
|
110
|
+
- type: NexusActions
|
|
111
|
+
- type: NexusActionsConfig
|
|
112
|
+
- type: NexusApiClient
|
|
113
|
+
- type: NormalizedUserProfile
|
|
114
|
+
- type: OrderActions
|
|
115
|
+
- type: OrderActionsConfig
|
|
116
|
+
- type: OrderApiClient
|
|
117
|
+
- type: P21ApisActions
|
|
118
|
+
- type: P21ApisActionsConfig
|
|
119
|
+
- type: P21ApisApiClient
|
|
120
|
+
- type: P21CoreActions
|
|
121
|
+
- type: P21CoreActionsConfig
|
|
122
|
+
- type: P21CoreApiClient
|
|
123
|
+
- type: P21PimActions
|
|
124
|
+
- type: P21PimActionsConfig
|
|
125
|
+
- type: P21PimApiClient
|
|
126
|
+
- type: P21SismActions
|
|
127
|
+
- type: P21SismActionsConfig
|
|
128
|
+
- type: P21SismApiClient
|
|
129
|
+
- type: PaginatedResult
|
|
130
|
+
- type: PaymentsActions
|
|
131
|
+
- type: PaymentsApiClient
|
|
132
|
+
- type: PricingActions
|
|
133
|
+
- type: PricingActionsConfig
|
|
134
|
+
- type: PricingApiClient
|
|
135
|
+
- type: SafeData
|
|
136
|
+
- type: SearchActions
|
|
137
|
+
- type: SearchActionsConfig
|
|
138
|
+
- type: SearchApiClient
|
|
139
|
+
- type: SearchPage
|
|
140
|
+
- type: ShippingActions
|
|
141
|
+
- type: ShippingActionsConfig
|
|
142
|
+
- type: ShippingAddress
|
|
143
|
+
- type: ShippingApiClient
|
|
144
|
+
- type: SiteActions
|
|
145
|
+
- type: SiteActionsConfig
|
|
146
|
+
- type: SlackActions
|
|
147
|
+
- type: SlackActionsConfig
|
|
148
|
+
- type: SlackApiClient
|
|
149
|
+
- type: SmartyStreetsActions
|
|
150
|
+
- type: SmartyStreetsActionsConfig
|
|
151
|
+
- type: SmartyStreetsApiClient
|
|
152
|
+
- type: UpsActions
|
|
153
|
+
- type: UpsActionsConfig
|
|
154
|
+
- type: UpsApiClient
|
|
155
|
+
- type: VmiActions
|
|
156
|
+
- type: VmiActionsConfig
|
|
157
|
+
- type: VmiApiClient
|
|
158
|
+
- type: WishlistActions
|
|
159
|
+
- type: WishlistActionsConfig
|
|
160
|
+
- type: WishlistsApiClient
|
|
161
|
+
|
|
162
|
+
## @simpleapps-com/augur-server/auth
|
|
163
|
+
|
|
164
|
+
- function: createAuthConfig
|
|
165
|
+
- type: AugurAuthCallbacks
|
|
166
|
+
- type: AugurAuthClient
|
|
167
|
+
- type: AugurJWT
|
|
168
|
+
- type: AugurSession
|
|
169
|
+
- type: AugurUser
|
|
170
|
+
- type: CreateAuthConfigOptions
|
|
171
|
+
|
|
172
|
+
## @simpleapps-com/augur-server/query
|
|
173
|
+
|
|
174
|
+
- const: createQueryOptions - Creates useQuery options with consistent key generation.
|
|
175
|
+
- const: createSuspenseQueryOptions - Creates useSuspenseQuery options with consistent key generation.
|
|
176
|
+
- type: QueryOptionsConfig
|
|
177
|
+
|
|
178
|
+
## @simpleapps-com/augur-server/prefetch
|
|
179
|
+
|
|
180
|
+
- value: CacheConfig
|
|
181
|
+
- function: createPrefetchUtilities - Creates SSR prefetch utilities that pre-populate the React Query cache
|
|
182
|
+
- type: PrefetchConfig
|
|
183
|
+
- type: PrefetchItemCategoryApiOptions
|
|
184
|
+
- type: PrefetchUtilities
|
|
185
|
+
|
|
186
|
+
## @simpleapps-com/augur-server/testing
|
|
187
|
+
|
|
188
|
+
- value: DeepMockClient
|
|
189
|
+
- value: MockClientResult
|
|
190
|
+
- function: clearSiteActions
|
|
191
|
+
- value: createMockClient
|
|
192
|
+
- function: createMockSiteActions - Creates a fully-mocked SiteActions object for testing.
|
|
193
|
+
- type: MockFn
|
|
194
|
+
- type: MockSiteActions
|
|
195
|
+
- type: MockSiteActionsResult
|
|
196
|
+
|
|
197
|
+
## @simpleapps-com/augur-server/site
|
|
198
|
+
|
|
199
|
+
- function: createServerSite - Create a server-side site instance that bundles the SDK client, server
|
|
200
|
+
- type: ServerSite
|
|
201
|
+
- type: ServerSiteAuthConfig
|
|
202
|
+
- type: ServerSiteConfig
|
|
203
|
+
|
|
204
|
+
## @simpleapps-com/augur-server/actions
|
|
205
|
+
|
|
206
|
+
- value: ApiResult
|
|
207
|
+
- value: ListResult
|
|
208
|
+
- value: SafeActionResult
|
|
209
|
+
- function: accountQuery
|
|
210
|
+
- function: addToCart
|
|
211
|
+
- function: askChatGpt
|
|
212
|
+
- function: batchGetInvMastDocs
|
|
213
|
+
- function: batchGetItemPrices
|
|
214
|
+
- function: batchGetStockData
|
|
215
|
+
- function: billingUpdate
|
|
216
|
+
- function: calculateTax
|
|
217
|
+
- function: cardInfo
|
|
218
|
+
- function: cartHdrLookup
|
|
219
|
+
- function: checkoutOrder
|
|
220
|
+
- function: createBinTransfer
|
|
221
|
+
- function: createDocument
|
|
222
|
+
- function: createFocus
|
|
223
|
+
- function: createReceiving
|
|
224
|
+
- function: createTransfer
|
|
225
|
+
- function: customerLookup
|
|
226
|
+
- function: deleteCartItems
|
|
227
|
+
- function: generateAkasha
|
|
228
|
+
- function: generateJoomla
|
|
229
|
+
- function: generateOllama
|
|
230
|
+
- function: getAddresses
|
|
231
|
+
- function: getAlsoBoughtItems
|
|
232
|
+
- function: getBrandFolderCategories
|
|
233
|
+
- function: getCartAlsoBought
|
|
234
|
+
- function: getCartLines
|
|
235
|
+
- function: getCashDrawers
|
|
236
|
+
- function: getCategory
|
|
237
|
+
- function: getCategoryDefaults
|
|
238
|
+
- function: getCategoryItems
|
|
239
|
+
- function: getCategoryItemsInfinite
|
|
240
|
+
- function: getCodeP21
|
|
241
|
+
- function: getComments
|
|
242
|
+
- function: getCompanies
|
|
243
|
+
- function: getCompany
|
|
244
|
+
- function: getContacts
|
|
245
|
+
- function: getContext
|
|
246
|
+
- function: getCustomer
|
|
247
|
+
- function: getCustomerDoc
|
|
248
|
+
- function: getCustomerInvoiceDetail
|
|
249
|
+
- function: getCustomerInvoices
|
|
250
|
+
- function: getCustomerOrderDetail
|
|
251
|
+
- function: getCustomerOrders
|
|
252
|
+
- function: getCustomerQuoteDetail
|
|
253
|
+
- function: getCustomerQuotes
|
|
254
|
+
- function: getDistributors
|
|
255
|
+
- function: getDocuments
|
|
256
|
+
- function: getEvents
|
|
257
|
+
- function: getFreightRates
|
|
258
|
+
- function: getImport
|
|
259
|
+
- function: getImportLines
|
|
260
|
+
- function: getInvMast
|
|
261
|
+
- function: getInvMastDoc
|
|
262
|
+
- function: getInvMastExt
|
|
263
|
+
- function: getInventoryProfiles
|
|
264
|
+
- function: getItemAccessories
|
|
265
|
+
- function: getItemAttributes
|
|
266
|
+
- function: getItemCategory
|
|
267
|
+
- function: getItemFaqs
|
|
268
|
+
- function: getItemPrice
|
|
269
|
+
- function: getItemSubstitutes
|
|
270
|
+
- function: getItemTags
|
|
271
|
+
- function: getItemWebDesc
|
|
272
|
+
- function: getJoomlaContent
|
|
273
|
+
- function: getJoomlaContentList
|
|
274
|
+
- function: getJoomlaMenu
|
|
275
|
+
- function: getJoomlaMenuDoc
|
|
276
|
+
- function: getLocations
|
|
277
|
+
- function: getMetaFiles
|
|
278
|
+
- function: getMetrics
|
|
279
|
+
- function: getMicroservices
|
|
280
|
+
- function: getOrderDoc
|
|
281
|
+
- function: getP21Categories
|
|
282
|
+
- function: getP21Companies
|
|
283
|
+
- function: getPaymentTypes
|
|
284
|
+
- function: getPeople
|
|
285
|
+
- function: getProducts
|
|
286
|
+
- function: getProjects
|
|
287
|
+
- function: getPurchaseOrderReceipts
|
|
288
|
+
- function: getRates
|
|
289
|
+
- function: getRecentImports
|
|
290
|
+
- function: getRestockHeaders
|
|
291
|
+
- function: getRubrics
|
|
292
|
+
- function: getScheduledImports
|
|
293
|
+
- function: getSearchAttributes
|
|
294
|
+
- function: getSearchSuggestions
|
|
295
|
+
- function: getSections
|
|
296
|
+
- function: getSettings
|
|
297
|
+
- function: getShipToAddresses
|
|
298
|
+
- function: getShipVia
|
|
299
|
+
- function: getShippingRates
|
|
300
|
+
- function: getSimilarItems
|
|
301
|
+
- function: getStates
|
|
302
|
+
- function: getStock
|
|
303
|
+
- function: getStockCompanySummary
|
|
304
|
+
- function: getSurcharge
|
|
305
|
+
- function: getTaxEstimate
|
|
306
|
+
- function: getTodo
|
|
307
|
+
- function: getTodolists
|
|
308
|
+
- function: getTodos
|
|
309
|
+
- function: getTodosSummary
|
|
310
|
+
- function: getTransferReceipts
|
|
311
|
+
- function: getTransferShipping
|
|
312
|
+
- function: getUserProfile
|
|
313
|
+
- function: getUsers
|
|
314
|
+
- function: getWarehouseAvailability
|
|
315
|
+
- function: getWarehouses
|
|
316
|
+
- function: getWebDisplayTypeDefaults
|
|
317
|
+
- function: getWebDisplayTypes
|
|
318
|
+
- function: getWebhooks
|
|
319
|
+
- function: healthCheck
|
|
320
|
+
- function: itemCategoryLookup
|
|
321
|
+
- function: itemSearch
|
|
322
|
+
- function: itemSearchInfinite
|
|
323
|
+
- function: listInvMastExt
|
|
324
|
+
- function: ping
|
|
325
|
+
- function: refreshContacts
|
|
326
|
+
- function: refreshCustomers
|
|
327
|
+
- function: sendWebhook
|
|
328
|
+
- function: transactionSetup
|
|
329
|
+
- function: updateCartLines
|
|
330
|
+
- function: validateAddress
|
|
331
|
+
- function: validatePayment
|
|
332
|
+
- function: verifyPassword
|
|
333
|
+
|
|
334
|
+
## @simpleapps-com/augur-server/next-auth
|
|
335
|
+
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@simpleapps-com/augur-server",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.11",
|
|
4
4
|
"description": "Server-side utilities for Augur ecommerce sites (Redis caching, SDK helpers, auth)",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -45,11 +45,13 @@
|
|
|
45
45
|
"sideEffects": false,
|
|
46
46
|
"files": [
|
|
47
47
|
"dist",
|
|
48
|
-
"next-auth.d.ts"
|
|
48
|
+
"next-auth.d.ts",
|
|
49
|
+
"EXPORTS.md",
|
|
50
|
+
"llms.txt"
|
|
49
51
|
],
|
|
50
52
|
"dependencies": {
|
|
51
|
-
"@simpleapps-com/augur-core": "2.0.
|
|
52
|
-
"@simpleapps-com/augur-utils": "2.0.
|
|
53
|
+
"@simpleapps-com/augur-core": "2.0.11",
|
|
54
|
+
"@simpleapps-com/augur-utils": "2.0.11"
|
|
53
55
|
},
|
|
54
56
|
"peerDependencies": {
|
|
55
57
|
"@simpleapps-com/augur-api": "^2026.3.3",
|
|
@@ -58,7 +60,7 @@
|
|
|
58
60
|
"next": "^16.1.6",
|
|
59
61
|
"next-auth": ">=5.0.0-beta.30",
|
|
60
62
|
"react": "^19.0.0",
|
|
61
|
-
"@simpleapps-com/augur-hooks": "2.0.
|
|
63
|
+
"@simpleapps-com/augur-hooks": "2.0.11"
|
|
62
64
|
},
|
|
63
65
|
"peerDependenciesMeta": {
|
|
64
66
|
"ioredis": {
|
|
@@ -81,7 +83,7 @@
|
|
|
81
83
|
"tsup": "^8.5.0",
|
|
82
84
|
"vitest": "^3.2.0",
|
|
83
85
|
"@augur-packages/tsconfig": "0.0.0",
|
|
84
|
-
"@simpleapps-com/augur-hooks": "2.0.
|
|
86
|
+
"@simpleapps-com/augur-hooks": "2.0.11"
|
|
85
87
|
},
|
|
86
88
|
"scripts": {
|
|
87
89
|
"build": "tsup",
|