@simpleapps-com/augur-server 2.2.2 → 2.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/actions.d.ts CHANGED
@@ -4,69 +4,119 @@ import { SafeActionResult, TAccountQuery, TInvMastDoc, TPriceData, TStock, TBill
4
4
  export { SafeActionResult } from '@simpleapps-com/augur-utils';
5
5
  import { P as PaginatedResult, G as GetItemCategoryOptions, c as ShippingAddress, N as NormalizedUserProfile, d as SearchPage, A as AddressValidationResult } from './smarty-streets-BnEIKoi8.js';
6
6
 
7
+ /**
8
+ * Generic server action that routes any SDK method call through the site
9
+ * actions singleton. Used internally by `createServerQueryProxy()` to
10
+ * bridge client-side React Query hooks to server-side API calls.
11
+ *
12
+ * @param methodPath Dot-separated SDK method path (e.g. "items.invMast.doc.get")
13
+ * @param args Arguments to pass to the resolved method
14
+ * @returns The raw result from the SiteActions method
15
+ */
16
+ declare function queryAction(methodPath: string, ...args: unknown[]): Promise<unknown>;
17
+
18
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
7
19
  declare function getCustomer(customerId: number): Promise<SafeActionResult<CustomerDocument>>;
20
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
8
21
  declare function customerLookup(params: Record<string, unknown>): Promise<SafeActionResult<ListResult<CustomerDocument>>>;
22
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
9
23
  declare function getCustomerDoc(customerId: number): Promise<SafeActionResult<CustomerDocument>>;
24
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
10
25
  declare function getCustomerOrders(customerId: number, params?: Record<string, unknown>): Promise<SafeActionResult<ListResult>>;
26
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
11
27
  declare function getCustomerOrderDetail(customerId: number, orderId: number): Promise<SafeActionResult<unknown>>;
28
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
12
29
  declare function getCustomerInvoices(customerId: number, params?: Record<string, unknown>): Promise<SafeActionResult<ListResult>>;
30
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
13
31
  declare function getCustomerInvoiceDetail(customerId: number, invoiceNo: number): Promise<SafeActionResult<unknown>>;
32
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
14
33
  declare function getCustomerQuotes(customerId: number, params?: Record<string, unknown>): Promise<SafeActionResult<ListResult>>;
34
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
15
35
  declare function getCustomerQuoteDetail(customerId: number, quoteNo: number): Promise<SafeActionResult<unknown>>;
36
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
16
37
  declare function getContacts(params?: Record<string, unknown>): Promise<SafeActionResult<ListResult>>;
38
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
17
39
  declare function getShipToAddresses(customerId: number): Promise<SafeActionResult<ListResult>>;
40
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
18
41
  declare function itemCategoryLookup(path: string): Promise<SafeActionResult<unknown>>;
42
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
19
43
  declare function getItemCategory(uid: number, options?: GetItemCategoryOptions): Promise<SafeActionResult<TCategory>>;
44
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
20
45
  declare function getCategoryItems(uid: number, filters: Record<string, unknown> | TItemsFilters): Promise<SafeActionResult<TCategoryItemsResult>>;
46
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
21
47
  declare function getCategoryItemsInfinite(uid: number, itemsFilters?: TItemsFilters, pageParam?: number): Promise<SafeActionResult<PaginatedResult<TProductItem>>>;
48
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
22
49
  declare function getItemAttributes(categoryUid: number): Promise<SafeActionResult<{
23
50
  attributes: TAttribute[];
24
51
  }>>;
52
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
25
53
  declare function getInvMast(uid: number): Promise<SafeActionResult<TInvMast>>;
54
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
26
55
  declare function getInvMastDoc(paramsOrUid: {
27
56
  invMastUid?: number;
28
57
  itemId?: string;
29
58
  includePricing?: "Y" | "N";
30
59
  } | number, itemId?: string, includePricing?: "Y" | "N"): Promise<SafeActionResult<TInvMastDoc>>;
60
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
31
61
  declare function getStock(invMastUid: number): Promise<SafeActionResult<TStock>>;
62
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
32
63
  declare function getStockCompanySummary(invMastUid: number): Promise<SafeActionResult<Record<string, number>>>;
64
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
33
65
  declare function getItemFaqs(invMastUid: number): Promise<SafeActionResult<ListResult>>;
66
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
34
67
  declare function getItemSubstitutes(invMastUid: number): Promise<SafeActionResult<ListResult>>;
68
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
35
69
  declare function getItemAccessories(invMastUid: number): Promise<SafeActionResult<ListResult<TItemAccessory>>>;
70
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
36
71
  declare function getSimilarItems(invMastUid: number): Promise<SafeActionResult<ListResult>>;
72
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
37
73
  declare function batchGetInvMastDocs(params: {
38
74
  invMastUid?: number;
39
75
  itemId?: string;
40
76
  }[]): Promise<SafeActionResult<Record<string, TInvMastDoc>>>;
77
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
41
78
  declare function batchGetStockData(invMastUids: number[]): Promise<SafeActionResult<Record<number, TStock>>>;
79
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
42
80
  declare function cartHdrLookup(params: {
43
81
  userId?: string | number;
44
82
  cartToken?: string;
45
83
  contactId?: string | number;
46
84
  customerId?: string | number;
47
85
  }): Promise<SafeActionResult<TCartLookUp>>;
86
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
48
87
  declare function getCartLines(cartHdrUid: number): Promise<SafeActionResult<ListResult<TCartLine>>>;
88
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
49
89
  declare function addToCart(cartHdrUid: number, items: {
50
90
  itemId?: string;
51
91
  invMastUid?: number;
52
92
  quantity: number;
53
93
  unitOfMeasure: string;
54
94
  }[]): Promise<SafeActionResult<unknown>>;
95
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
55
96
  declare function updateCartLines(cartHdrUid: number, lines: {
56
97
  lineNo: number;
57
98
  quantity: number;
58
99
  unitOfMeasure: string;
59
100
  }[]): Promise<SafeActionResult<unknown>>;
101
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
60
102
  declare function deleteCartItems(cartHdrUid: number): Promise<SafeActionResult<void>>;
103
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
61
104
  declare function getCartAlsoBought(cartHdrUid: number): Promise<SafeActionResult<ListResult<TRelatedProduct>>>;
105
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
62
106
  declare function checkoutOrder(cartHdrUid: number, data: Record<string, unknown>): Promise<SafeActionResult<TCheckoutResult | undefined>>;
107
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
63
108
  declare function getItemPrice(itemId: string, customerId?: string | number, quantity?: number): Promise<SafeActionResult<TPriceData>>;
109
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
64
110
  declare function batchGetItemPrices(itemIds: string[], customerId?: string | number, quantity?: number): Promise<SafeActionResult<Record<string, TPriceData>>>;
111
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
65
112
  declare function getTaxEstimate(customerId?: string | number, postalCode?: string, items?: TTaxItem[]): Promise<SafeActionResult<TTax>>;
113
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
66
114
  declare function getSearchAttributes(q: string): Promise<SafeActionResult<{
67
115
  attributes: TAttribute[];
68
116
  }>>;
117
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
69
118
  declare function getSearchSuggestions(q: string, limit?: number, offset?: number): Promise<SafeActionResult<TSearchSuggestionsResponse>>;
119
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
70
120
  declare function itemSearch(filters: {
71
121
  q: string;
72
122
  limit: number;
@@ -77,124 +127,208 @@ declare function itemSearch(filters: {
77
127
  items: TProductItem[];
78
128
  totalResults: number;
79
129
  }>>;
130
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
80
131
  declare function itemSearchInfinite(filters: {
81
132
  q: string;
82
133
  limit: number;
83
134
  sortBy?: string;
84
135
  filters?: [string, string][];
85
136
  }, itemCategoryUid?: number | string, pageParam?: number): Promise<SafeActionResult<SearchPage>>;
137
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
86
138
  declare function getOrderDoc(orderNo: string, postalCode: string): Promise<SafeActionResult<unknown>>;
139
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
87
140
  declare function getShippingRates(toAddress: ShippingAddress, weight: number, serviceCodes?: string[]): Promise<SafeActionResult<ListResult<TShippingMethod>>>;
141
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
88
142
  declare function getJoomlaContent(articleId: number | string, options?: {
89
143
  alias: string;
90
144
  catId?: number;
91
145
  }): Promise<SafeActionResult<TJoomlaContent>>;
146
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
92
147
  declare function getJoomlaContentList(params?: Record<string, unknown>): Promise<SafeActionResult<ListResult<TJoomlaContent>>>;
148
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
93
149
  declare function getJoomlaMenu(paramsOrParentId?: Record<string, unknown> | number, menuType?: string): Promise<SafeActionResult<ListResult<TMenu>>>;
150
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
94
151
  declare function getJoomlaMenuDoc(menuId: number | string): Promise<SafeActionResult<MenuItem>>;
152
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
95
153
  declare function getUserProfile(userId: number | string): Promise<SafeActionResult<NormalizedUserProfile>>;
154
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
96
155
  declare function verifyPassword(username: string, password: string): Promise<SafeActionResult<TPasswordVerification>>;
156
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
97
157
  declare function getItemWebDesc(invMastUid: number): Promise<SafeActionResult<TWebDesc | undefined>>;
158
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
98
159
  declare function getAlsoBoughtItems(invMastUid: number): Promise<SafeActionResult<ListResult<TRelatedProduct>>>;
160
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
99
161
  declare function getItemTags(invMastUid: number): Promise<SafeActionResult<ListResult>>;
162
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
100
163
  declare function getStates(params?: {
101
164
  twoLetterCode?: string;
102
165
  }): Promise<SafeActionResult<ListResult>>;
166
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
103
167
  declare function validateAddress(params: Record<string, unknown>): Promise<SafeActionResult<AddressValidationResult>>;
168
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
104
169
  declare function getInvMastExt(invMastUid: number): Promise<SafeActionResult<unknown>>;
170
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
105
171
  declare function listInvMastExt(params?: Record<string, unknown>): Promise<SafeActionResult<ListResult>>;
172
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
106
173
  declare function getSettings(serviceName?: string): Promise<SafeActionResult<ListResult>>;
174
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
107
175
  declare function getMetaFiles(params?: Record<string, unknown>): Promise<SafeActionResult<ListResult>>;
176
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
108
177
  declare function calculateTax(data: Record<string, unknown>): Promise<SafeActionResult<unknown>>;
178
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
109
179
  declare function transactionSetup(params: Record<string, unknown>): Promise<SafeActionResult<TTransactionSetup | undefined>>;
180
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
110
181
  declare function accountQuery(params: Record<string, unknown>): Promise<SafeActionResult<TAccountQuery | undefined>>;
182
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
111
183
  declare function getSurcharge(params: Record<string, unknown>): Promise<SafeActionResult<TSurcharge | undefined>>;
184
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
112
185
  declare function cardInfo(params: Record<string, unknown>): Promise<SafeActionResult<TCardInfo | undefined>>;
186
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
113
187
  declare function billingUpdate(params: Record<string, unknown>): Promise<SafeActionResult<TBillingUpdate | undefined>>;
188
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
114
189
  declare function validatePayment(params: Record<string, unknown>): Promise<SafeActionResult<TPaymentValidation | undefined>>;
190
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
115
191
  declare function getRates(params: Record<string, unknown>): Promise<SafeActionResult<ListResult<TShippingMethod>>>;
192
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
116
193
  declare function getFreightRates(params: Record<string, unknown>): Promise<SafeActionResult<ListResult>>;
194
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
117
195
  declare function getShipVia(params?: Record<string, unknown>): Promise<SafeActionResult<ListResult>>;
196
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
118
197
  declare function createBinTransfer(data: Record<string, unknown>): Promise<SafeActionResult<unknown>>;
198
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
119
199
  declare function createReceiving(data: Record<string, unknown>): Promise<SafeActionResult<unknown>>;
200
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
120
201
  declare function createTransfer(data: Record<string, unknown>): Promise<SafeActionResult<unknown>>;
202
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
121
203
  declare function getPurchaseOrderReceipts(params?: Record<string, unknown>): Promise<SafeActionResult<ListResult>>;
204
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
122
205
  declare function getTransferReceipts(params?: Record<string, unknown>): Promise<SafeActionResult<ListResult>>;
206
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
123
207
  declare function getTransferShipping(params?: Record<string, unknown>): Promise<SafeActionResult<ListResult>>;
208
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
124
209
  declare function getWarehouses(params?: Record<string, unknown>): Promise<SafeActionResult<ListResult>>;
210
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
125
211
  declare function getWarehouseAvailability(warehouseUid: number, params?: Record<string, unknown>): Promise<SafeActionResult<ListResult>>;
212
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
126
213
  declare function getDistributors(params?: Record<string, unknown>): Promise<SafeActionResult<ListResult>>;
214
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
127
215
  declare function getProducts(params?: Record<string, unknown>): Promise<SafeActionResult<ListResult>>;
216
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
128
217
  declare function getInventoryProfiles(params?: Record<string, unknown>): Promise<SafeActionResult<ListResult>>;
218
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
129
219
  declare function getRestockHeaders(params?: Record<string, unknown>): Promise<SafeActionResult<ListResult>>;
220
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
130
221
  declare function getSections(params?: Record<string, unknown>): Promise<SafeActionResult<ListResult>>;
222
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
131
223
  declare function getAddresses(params?: Record<string, unknown>): Promise<SafeActionResult<ListResult>>;
224
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
132
225
  declare function getCompanies(params?: Record<string, unknown>): Promise<SafeActionResult<ListResult>>;
226
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
133
227
  declare function getCompany(companyId: number): Promise<SafeActionResult<unknown | undefined>>;
228
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
134
229
  declare function getLocations(params?: Record<string, unknown>): Promise<SafeActionResult<ListResult>>;
230
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
135
231
  declare function getPaymentTypes(params?: Record<string, unknown>): Promise<SafeActionResult<ListResult>>;
232
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
136
233
  declare function getCashDrawers(params?: Record<string, unknown>): Promise<SafeActionResult<ListResult>>;
234
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
137
235
  declare function getCodeP21(params?: Record<string, unknown>): Promise<SafeActionResult<ListResult>>;
236
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
138
237
  declare function getP21Categories(params?: Record<string, unknown>): Promise<SafeActionResult<ListResult>>;
238
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
139
239
  declare function getCategoryDefaults(categoryId: number): Promise<SafeActionResult<unknown | undefined>>;
240
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
140
241
  declare function getP21Companies(params?: Record<string, unknown>): Promise<SafeActionResult<ListResult>>;
242
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
141
243
  declare function getUsers(params?: Record<string, unknown>): Promise<SafeActionResult<ListResult>>;
244
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
142
245
  declare function getWebDisplayTypes(params?: Record<string, unknown>): Promise<SafeActionResult<ListResult>>;
246
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
143
247
  declare function getWebDisplayTypeDefaults(id?: number): Promise<SafeActionResult<unknown | undefined>>;
248
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
144
249
  declare function refreshContacts(params?: Record<string, unknown>): Promise<SafeActionResult<unknown | undefined>>;
250
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
145
251
  declare function refreshCustomers(params?: Record<string, unknown>): Promise<SafeActionResult<unknown | undefined>>;
252
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
146
253
  declare function getRecentImports(params?: Record<string, unknown>): Promise<SafeActionResult<ListResult>>;
254
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
147
255
  declare function getImport(importId: string): Promise<SafeActionResult<unknown | undefined>>;
256
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
148
257
  declare function getImportLines(importId: number, params?: Record<string, unknown>): Promise<SafeActionResult<ListResult>>;
258
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
149
259
  declare function getScheduledImports(params?: Record<string, unknown>): Promise<SafeActionResult<ListResult>>;
260
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
150
261
  declare function healthCheck(): Promise<SafeActionResult<string | undefined>>;
262
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
151
263
  declare function ping(): Promise<SafeActionResult<string | undefined>>;
264
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
152
265
  declare function getContext(params?: Record<string, unknown>): Promise<SafeActionResult<ListResult>>;
266
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
153
267
  declare function getRubrics(params?: Record<string, unknown>): Promise<SafeActionResult<ListResult>>;
268
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
154
269
  declare function getMicroservices(params?: Record<string, unknown>): Promise<SafeActionResult<ListResult>>;
270
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
155
271
  declare function generateAkasha(data?: Record<string, unknown>): Promise<SafeActionResult<unknown | undefined>>;
272
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
156
273
  declare function generateJoomla(data?: Record<string, unknown>): Promise<SafeActionResult<unknown | undefined>>;
274
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
157
275
  declare function getTodos(params?: Record<string, unknown>): Promise<SafeActionResult<ListResult>>;
276
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
158
277
  declare function getTodo(todoId: number): Promise<SafeActionResult<unknown>>;
278
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
159
279
  declare function getTodosSummary(params?: Record<string, unknown>): Promise<SafeActionResult<ListResult>>;
280
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
160
281
  declare function getComments(params?: Record<string, unknown>): Promise<SafeActionResult<ListResult>>;
282
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
161
283
  declare function getPeople(params?: Record<string, unknown>): Promise<SafeActionResult<ListResult>>;
284
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
162
285
  declare function getProjects(params?: Record<string, unknown>): Promise<SafeActionResult<ListResult>>;
286
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
163
287
  declare function getEvents(params?: Record<string, unknown>): Promise<SafeActionResult<ListResult>>;
288
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
164
289
  declare function getMetrics(params?: Record<string, unknown>): Promise<SafeActionResult<ListResult>>;
290
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
165
291
  declare function getTodolists(params?: Record<string, unknown>): Promise<SafeActionResult<ListResult>>;
292
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
166
293
  declare function getBrandFolderCategories(params?: Record<string, unknown>): Promise<SafeActionResult<ListResult>>;
294
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
167
295
  declare function getCategory(categoryId: string): Promise<SafeActionResult<unknown>>;
296
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
168
297
  declare function createFocus(categoryId: string, data: Record<string, unknown>): Promise<SafeActionResult<unknown | undefined>>;
298
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
169
299
  declare function askChatGpt(params: Record<string, unknown>): Promise<SafeActionResult<unknown | undefined>>;
300
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
170
301
  declare function getDocuments(params?: Record<string, unknown>): Promise<SafeActionResult<ListResult>>;
302
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
171
303
  declare function createDocument(data: Record<string, unknown>): Promise<SafeActionResult<unknown | undefined>>;
304
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
172
305
  declare function generateOllama(data: Record<string, unknown>): Promise<SafeActionResult<unknown | undefined>>;
306
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
173
307
  declare function sendWebhook(data: Record<string, unknown>): Promise<SafeActionResult<unknown | undefined>>;
308
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
174
309
  declare function getWebhooks(params?: Record<string, unknown>): Promise<SafeActionResult<ListResult>>;
310
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
175
311
  declare function getFavorites(userId: number): Promise<SafeActionResult<ListResult>>;
312
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
176
313
  declare function addFavorite(userId: number, invMastUid: number): Promise<SafeActionResult<unknown>>;
314
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
177
315
  declare function removeFavorite(userId: number, invMastUid: number): Promise<SafeActionResult<void>>;
316
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
178
317
  declare function getWishlists(userId: number): Promise<SafeActionResult<ListResult>>;
318
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
179
319
  declare function createWishlist(userId: number, data: {
180
320
  name: string;
181
321
  description?: string;
182
322
  }): Promise<SafeActionResult<unknown>>;
323
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
183
324
  declare function getWishlistDetail(userId: number, wishlistId: number): Promise<SafeActionResult<unknown>>;
325
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
184
326
  declare function deleteWishlist(userId: number, wishlistId: number): Promise<SafeActionResult<void>>;
327
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
185
328
  declare function addWishlistItems(userId: number, wishlistId: number, items: {
186
329
  invMastUid: number;
187
330
  }[]): Promise<SafeActionResult<unknown>>;
331
+ /** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
188
332
  declare function removeWishlistItem(userId: number, wishlistId: number, lineId: number): Promise<SafeActionResult<void>>;
189
- /**
190
- * Generic server action that routes any SDK method call through the site
191
- * actions singleton. Used internally by `createServerQueryProxy()` to
192
- * bridge client-side React Query hooks to server-side API calls.
193
- *
194
- * @param methodPath Dot-separated SDK method path (e.g. "items.invMast.doc.get")
195
- * @param args Arguments to pass to the resolved method
196
- * @returns The raw result from the SiteActions method
197
- */
198
- declare function queryAction(methodPath: string, ...args: unknown[]): Promise<unknown>;
199
333
 
200
334
  export { accountQuery, addFavorite, addToCart, addWishlistItems, askChatGpt, batchGetInvMastDocs, batchGetItemPrices, batchGetStockData, billingUpdate, calculateTax, cardInfo, cartHdrLookup, checkoutOrder, createBinTransfer, createDocument, createFocus, createReceiving, createTransfer, createWishlist, customerLookup, deleteCartItems, deleteWishlist, generateAkasha, generateJoomla, generateOllama, getAddresses, getAlsoBoughtItems, getBrandFolderCategories, getCartAlsoBought, getCartLines, getCashDrawers, getCategory, getCategoryDefaults, getCategoryItems, getCategoryItemsInfinite, getCodeP21, getComments, getCompanies, getCompany, getContacts, getContext, getCustomer, getCustomerDoc, getCustomerInvoiceDetail, getCustomerInvoices, getCustomerOrderDetail, getCustomerOrders, getCustomerQuoteDetail, getCustomerQuotes, getDistributors, getDocuments, getEvents, getFavorites, getFreightRates, getImport, getImportLines, getInvMast, getInvMastDoc, getInvMastExt, getInventoryProfiles, getItemAccessories, getItemAttributes, getItemCategory, getItemFaqs, getItemPrice, getItemSubstitutes, getItemTags, getItemWebDesc, getJoomlaContent, getJoomlaContentList, getJoomlaMenu, getJoomlaMenuDoc, getLocations, getMetaFiles, getMetrics, getMicroservices, getOrderDoc, getP21Categories, getP21Companies, getPaymentTypes, getPeople, getProducts, getProjects, getPurchaseOrderReceipts, getRates, getRecentImports, getRestockHeaders, getRubrics, getScheduledImports, getSearchAttributes, getSearchSuggestions, getSections, getSettings, getShipToAddresses, getShipVia, getShippingRates, getSimilarItems, getStates, getStock, getStockCompanySummary, getSurcharge, getTaxEstimate, getTodo, getTodolists, getTodos, getTodosSummary, getTransferReceipts, getTransferShipping, getUserProfile, getUsers, getWarehouseAvailability, getWarehouses, getWebDisplayTypeDefaults, getWebDisplayTypes, getWebhooks, getWishlistDetail, getWishlists, healthCheck, itemCategoryLookup, itemSearch, itemSearchInfinite, listInvMastExt, ping, queryAction, refreshContacts, refreshCustomers, removeFavorite, removeWishlistItem, sendWebhook, transactionSetup, updateCartLines, validateAddress, validatePayment, verifyPassword };