@simpleapps-com/augur-server 1.0.15 → 1.0.17

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.js CHANGED
@@ -7,173 +7,177 @@ import {
7
7
  } from "./chunk-MQGUOFAZ.js";
8
8
 
9
9
  // src/server-actions.ts
10
+ function siteAction(fn) {
11
+ const actions = getSiteActions();
12
+ return safeAction(() => fn(actions));
13
+ }
10
14
  async function getCustomer(customerId) {
11
- return safeAction(() => getSiteActions().customers.getCustomer(customerId));
15
+ return siteAction((a) => a.customers.getCustomer(customerId));
12
16
  }
13
17
  async function customerLookup(params) {
14
- return safeAction(() => getSiteActions().customers.customerLookup(params));
18
+ return siteAction((a) => a.customers.customerLookup(params));
15
19
  }
16
20
  async function getCustomerDoc(customerId) {
17
- return safeAction(() => getSiteActions().customers.getCustomerDoc(customerId));
21
+ return siteAction((a) => a.customers.getCustomerDoc(customerId));
18
22
  }
19
23
  async function getCustomerOrders(customerId, params) {
20
- return safeAction(
21
- () => getSiteActions().customers.getCustomerOrders(customerId, params)
24
+ return siteAction(
25
+ (a) => a.customers.getCustomerOrders(customerId, params)
22
26
  );
23
27
  }
24
28
  async function getCustomerOrderDetail(customerId, orderId) {
25
- return safeAction(
26
- () => getSiteActions().customers.getCustomerOrderDetail(customerId, orderId)
29
+ return siteAction(
30
+ (a) => a.customers.getCustomerOrderDetail(customerId, orderId)
27
31
  );
28
32
  }
29
33
  async function getCustomerInvoices(customerId, params) {
30
- return safeAction(
31
- () => getSiteActions().customers.getCustomerInvoices(customerId, params)
34
+ return siteAction(
35
+ (a) => a.customers.getCustomerInvoices(customerId, params)
32
36
  );
33
37
  }
34
38
  async function getCustomerInvoiceDetail(customerId, invoiceNo) {
35
- return safeAction(
36
- () => getSiteActions().customers.getCustomerInvoiceDetail(customerId, invoiceNo)
39
+ return siteAction(
40
+ (a) => a.customers.getCustomerInvoiceDetail(customerId, invoiceNo)
37
41
  );
38
42
  }
39
43
  async function getCustomerQuotes(customerId, params) {
40
- return safeAction(
41
- () => getSiteActions().customers.getCustomerQuotes(customerId, params)
44
+ return siteAction(
45
+ (a) => a.customers.getCustomerQuotes(customerId, params)
42
46
  );
43
47
  }
44
48
  async function getCustomerQuoteDetail(customerId, quoteNo) {
45
- return safeAction(
46
- () => getSiteActions().customers.getCustomerQuoteDetail(customerId, quoteNo)
49
+ return siteAction(
50
+ (a) => a.customers.getCustomerQuoteDetail(customerId, quoteNo)
47
51
  );
48
52
  }
49
53
  async function getContacts(params) {
50
- return safeAction(() => getSiteActions().customers.getContacts(params));
54
+ return siteAction((a) => a.customers.getContacts(params));
51
55
  }
52
56
  async function getShipToAddresses(customerId) {
53
- return safeAction(
54
- () => getSiteActions().customers.getShipToAddresses(customerId)
57
+ return siteAction(
58
+ (a) => a.customers.getShipToAddresses(customerId)
55
59
  );
56
60
  }
57
61
  async function itemCategoryLookup(path) {
58
- return safeAction(() => getSiteActions().items.itemCategoryLookup(path));
62
+ return siteAction((a) => a.items.itemCategoryLookup(path));
59
63
  }
60
64
  async function getItemCategory(uid, options) {
61
- return safeAction(
62
- () => getSiteActions().items.getItemCategory(uid, options)
65
+ return siteAction(
66
+ (a) => a.items.getItemCategory(uid, options)
63
67
  );
64
68
  }
65
69
  async function getCategoryItems(uid, filters) {
66
- return safeAction(
67
- () => getSiteActions().items.getCategoryItems(uid, filters)
70
+ return siteAction(
71
+ (a) => a.items.getCategoryItems(uid, filters)
68
72
  );
69
73
  }
70
74
  async function getItemAttributes(categoryUid) {
71
- return safeAction(
72
- () => getSiteActions().items.getItemAttributes(categoryUid)
75
+ return siteAction(
76
+ (a) => a.items.getItemAttributes(categoryUid)
73
77
  );
74
78
  }
75
79
  async function getInvMast(uid) {
76
- return safeAction(() => getSiteActions().items.getInvMast(uid));
80
+ return siteAction((a) => a.items.getInvMast(uid));
77
81
  }
78
82
  async function getInvMastDoc(params) {
79
- return safeAction(() => getSiteActions().items.getInvMastDoc(params));
83
+ return siteAction((a) => a.items.getInvMastDoc(params));
80
84
  }
81
85
  async function getStock(invMastUid) {
82
- return safeAction(() => getSiteActions().items.getStock(invMastUid));
86
+ return siteAction((a) => a.items.getStock(invMastUid));
83
87
  }
84
88
  async function getStockCompanySummary(invMastUid) {
85
- return safeAction(
86
- () => getSiteActions().items.getStockCompanySummary(invMastUid)
89
+ return siteAction(
90
+ (a) => a.items.getStockCompanySummary(invMastUid)
87
91
  );
88
92
  }
89
93
  async function getItemFaqs(invMastUid) {
90
- return safeAction(() => getSiteActions().items.getItemFaqs(invMastUid));
94
+ return siteAction((a) => a.items.getItemFaqs(invMastUid));
91
95
  }
92
96
  async function getItemSubstitutes(invMastUid) {
93
- return safeAction(
94
- () => getSiteActions().items.getItemSubstitutes(invMastUid)
97
+ return siteAction(
98
+ (a) => a.items.getItemSubstitutes(invMastUid)
95
99
  );
96
100
  }
97
101
  async function getItemAccessories(invMastUid) {
98
- return safeAction(
99
- () => getSiteActions().items.getItemAccessories(invMastUid)
102
+ return siteAction(
103
+ (a) => a.items.getItemAccessories(invMastUid)
100
104
  );
101
105
  }
102
106
  async function getSimilarItems(invMastUid) {
103
- return safeAction(
104
- () => getSiteActions().items.getSimilarItems(invMastUid)
107
+ return siteAction(
108
+ (a) => a.items.getSimilarItems(invMastUid)
105
109
  );
106
110
  }
107
111
  async function batchGetInvMastDocs(params) {
108
- return safeAction(() => getSiteActions().items.batchGetInvMastDocs(params));
112
+ return siteAction((a) => a.items.batchGetInvMastDocs(params));
109
113
  }
110
114
  async function batchGetStockData(invMastUids) {
111
- return safeAction(
112
- () => getSiteActions().items.batchGetStockData(invMastUids)
115
+ return siteAction(
116
+ (a) => a.items.batchGetStockData(invMastUids)
113
117
  );
114
118
  }
115
119
  async function cartHdrLookup(params) {
116
- return safeAction(() => getSiteActions().commerce.cartHdrLookup(params));
120
+ return siteAction((a) => a.commerce.cartHdrLookup(params));
117
121
  }
118
122
  async function getCartLines(cartHdrUid) {
119
- return safeAction(() => getSiteActions().commerce.getCartLines(cartHdrUid));
123
+ return siteAction((a) => a.commerce.getCartLines(cartHdrUid));
120
124
  }
121
125
  async function addToCart(cartHdrUid, items) {
122
- return safeAction(
123
- () => getSiteActions().commerce.addToCart(cartHdrUid, items)
126
+ return siteAction(
127
+ (a) => a.commerce.addToCart(cartHdrUid, items)
124
128
  );
125
129
  }
126
130
  async function updateCartLines(cartHdrUid, lines) {
127
- return safeAction(
128
- () => getSiteActions().commerce.updateCartLines(cartHdrUid, lines)
131
+ return siteAction(
132
+ (a) => a.commerce.updateCartLines(cartHdrUid, lines)
129
133
  );
130
134
  }
131
135
  async function deleteCartItems(cartHdrUid) {
132
- return safeAction(
133
- () => getSiteActions().commerce.deleteCartItems(cartHdrUid)
136
+ return siteAction(
137
+ (a) => a.commerce.deleteCartItems(cartHdrUid)
134
138
  );
135
139
  }
136
140
  async function getCartAlsoBought(cartHdrUid) {
137
- return safeAction(
138
- () => getSiteActions().commerce.getCartAlsoBought(cartHdrUid)
141
+ return siteAction(
142
+ (a) => a.commerce.getCartAlsoBought(cartHdrUid)
139
143
  );
140
144
  }
141
145
  async function checkoutOrder(cartHdrUid, data) {
142
- return safeAction(
143
- () => getSiteActions().commerce.checkoutOrder(cartHdrUid, data)
146
+ return siteAction(
147
+ (a) => a.commerce.checkoutOrder(cartHdrUid, data)
144
148
  );
145
149
  }
146
150
  async function getItemPrice(itemId, customerId, quantity) {
147
- return safeAction(
148
- () => getSiteActions().pricing.getItemPrice(itemId, customerId, quantity)
151
+ return siteAction(
152
+ (a) => a.pricing.getItemPrice(itemId, customerId, quantity)
149
153
  );
150
154
  }
151
155
  async function batchGetItemPrices(itemIds, customerId, quantity) {
152
- return safeAction(
153
- () => getSiteActions().pricing.batchGetItemPrices(itemIds, customerId, quantity)
156
+ return siteAction(
157
+ (a) => a.pricing.batchGetItemPrices(itemIds, customerId, quantity)
154
158
  );
155
159
  }
156
160
  async function getTaxEstimate(customerId, postalCode, items) {
157
- return safeAction(
158
- () => getSiteActions().pricing.getTaxEstimate(customerId, postalCode, items)
161
+ return siteAction(
162
+ (a) => a.pricing.getTaxEstimate(customerId, postalCode, items)
159
163
  );
160
164
  }
161
165
  async function getSearchAttributes(q) {
162
- return safeAction(() => getSiteActions().search.getSearchAttributes(q));
166
+ return siteAction((a) => a.search.getSearchAttributes(q));
163
167
  }
164
168
  async function getSearchSuggestions(q, limit, offset) {
165
- return safeAction(
166
- () => getSiteActions().search.getSearchSuggestions(q, limit, offset)
169
+ return siteAction(
170
+ (a) => a.search.getSearchSuggestions(q, limit, offset)
167
171
  );
168
172
  }
169
173
  async function itemSearch(filters, itemCategoryUid) {
170
- return safeAction(
171
- () => getSiteActions().search.itemSearch(filters, itemCategoryUid)
174
+ return siteAction(
175
+ (a) => a.search.itemSearch(filters, itemCategoryUid)
172
176
  );
173
177
  }
174
178
  async function itemSearchInfinite(filters, itemCategoryUid, pageParam) {
175
- return safeAction(
176
- () => getSiteActions().search.itemSearchInfinite(
179
+ return siteAction(
180
+ (a) => a.search.itemSearchInfinite(
177
181
  filters,
178
182
  itemCategoryUid,
179
183
  pageParam
@@ -181,13 +185,13 @@ async function itemSearchInfinite(filters, itemCategoryUid, pageParam) {
181
185
  );
182
186
  }
183
187
  async function getOrderDoc(orderNo, postalCode) {
184
- return safeAction(
185
- () => getSiteActions().orders.getOrderDoc(orderNo, postalCode)
188
+ return siteAction(
189
+ (a) => a.orders.getOrderDoc(orderNo, postalCode)
186
190
  );
187
191
  }
188
192
  async function getShippingRates(toAddress, weight, serviceCodes) {
189
- return safeAction(
190
- () => getSiteActions().shipping.getShippingRates(
193
+ return siteAction(
194
+ (a) => a.shipping.getShippingRates(
191
195
  toAddress,
192
196
  weight,
193
197
  serviceCodes
@@ -195,289 +199,294 @@ async function getShippingRates(toAddress, weight, serviceCodes) {
195
199
  );
196
200
  }
197
201
  async function getJoomlaContent(articleId) {
198
- return safeAction(
199
- () => getSiteActions().joomla.getJoomlaContent(articleId)
202
+ return siteAction(
203
+ (a) => a.joomla.getJoomlaContent(articleId)
200
204
  );
201
205
  }
202
206
  async function getJoomlaContentList(params) {
203
- return safeAction(
204
- () => getSiteActions().joomla.getJoomlaContentList(params)
207
+ return siteAction(
208
+ (a) => a.joomla.getJoomlaContentList(params)
205
209
  );
206
210
  }
207
211
  async function getJoomlaMenu(params) {
208
- return safeAction(() => getSiteActions().joomla.getJoomlaMenu(params));
212
+ return siteAction((a) => a.joomla.getJoomlaMenu(params));
209
213
  }
210
214
  async function getJoomlaMenuDoc(menuId) {
211
- return safeAction(() => getSiteActions().joomla.getJoomlaMenuDoc(menuId));
215
+ return siteAction((a) => a.joomla.getJoomlaMenuDoc(menuId));
212
216
  }
213
217
  async function getUserProfile(userId) {
214
- return safeAction(() => getSiteActions().joomla.getUserProfile(userId));
218
+ return siteAction((a) => a.joomla.getUserProfile(userId));
219
+ }
220
+ async function verifyPassword(username, password) {
221
+ return siteAction(
222
+ (a) => a.joomla.verifyPassword(username, password)
223
+ );
215
224
  }
216
225
  async function getItemWebDesc(invMastUid) {
217
- return safeAction(() => getSiteActions().legacy.getItemWebDesc(invMastUid));
226
+ return siteAction((a) => a.legacy.getItemWebDesc(invMastUid));
218
227
  }
219
228
  async function getAlsoBoughtItems(invMastUid) {
220
- return safeAction(
221
- () => getSiteActions().legacy.getAlsoBoughtItems(invMastUid)
229
+ return siteAction(
230
+ (a) => a.legacy.getAlsoBoughtItems(invMastUid)
222
231
  );
223
232
  }
224
233
  async function getItemTags(invMastUid) {
225
- return safeAction(() => getSiteActions().legacy.getItemTags(invMastUid));
234
+ return siteAction((a) => a.legacy.getItemTags(invMastUid));
226
235
  }
227
236
  async function getStates(params) {
228
- return safeAction(() => getSiteActions().legacy.getStates(params));
237
+ return siteAction((a) => a.legacy.getStates(params));
229
238
  }
230
239
  async function validateAddress(params) {
231
- return safeAction(
232
- () => getSiteActions().smartyStreets.validateAddress(params)
240
+ return siteAction(
241
+ (a) => a.smartyStreets.validateAddress(params)
233
242
  );
234
243
  }
235
244
  async function getInvMastExt(invMastUid) {
236
- return safeAction(() => getSiteActions().p21Pim.getInvMastExt(invMastUid));
245
+ return siteAction((a) => a.p21Pim.getInvMastExt(invMastUid));
237
246
  }
238
247
  async function listInvMastExt(params) {
239
- return safeAction(() => getSiteActions().p21Pim.listInvMastExt(params));
248
+ return siteAction((a) => a.p21Pim.listInvMastExt(params));
240
249
  }
241
250
  async function getSettings(serviceName) {
242
- return safeAction(() => getSiteActions().agrSite.getSettings(serviceName));
251
+ return siteAction((a) => a.agrSite.getSettings(serviceName));
243
252
  }
244
253
  async function getMetaFiles(params) {
245
- return safeAction(() => getSiteActions().agrSite.getMetaFiles(params));
254
+ return siteAction((a) => a.agrSite.getMetaFiles(params));
246
255
  }
247
256
  async function calculateTax(data) {
248
- return safeAction(() => getSiteActions().avalara.calculateTax(data));
257
+ return siteAction((a) => a.avalara.calculateTax(data));
249
258
  }
250
259
  async function transactionSetup(params) {
251
- return safeAction(
252
- () => getSiteActions().payments.transactionSetup(params)
260
+ return siteAction(
261
+ (a) => a.payments.transactionSetup(params)
253
262
  );
254
263
  }
255
264
  async function accountQuery(params) {
256
- return safeAction(() => getSiteActions().payments.accountQuery(params));
265
+ return siteAction((a) => a.payments.accountQuery(params));
257
266
  }
258
267
  async function getSurcharge(params) {
259
- return safeAction(() => getSiteActions().payments.getSurcharge(params));
268
+ return siteAction((a) => a.payments.getSurcharge(params));
260
269
  }
261
270
  async function cardInfo(params) {
262
- return safeAction(() => getSiteActions().payments.cardInfo(params));
271
+ return siteAction((a) => a.payments.cardInfo(params));
263
272
  }
264
273
  async function billingUpdate(params) {
265
- return safeAction(() => getSiteActions().payments.billingUpdate(params));
274
+ return siteAction((a) => a.payments.billingUpdate(params));
266
275
  }
267
276
  async function validatePayment(params) {
268
- return safeAction(() => getSiteActions().payments.validatePayment(params));
277
+ return siteAction((a) => a.payments.validatePayment(params));
269
278
  }
270
279
  async function getRates(params) {
271
- return safeAction(() => getSiteActions().ups.getRates(params));
280
+ return siteAction((a) => a.ups.getRates(params));
272
281
  }
273
282
  async function getFreightRates(params) {
274
- return safeAction(() => getSiteActions().logistics.getFreightRates(params));
283
+ return siteAction((a) => a.logistics.getFreightRates(params));
275
284
  }
276
285
  async function getShipVia(params) {
277
- return safeAction(() => getSiteActions().logistics.getShipVia(params));
286
+ return siteAction((a) => a.logistics.getShipVia(params));
278
287
  }
279
288
  async function createBinTransfer(data) {
280
- return safeAction(() => getSiteActions().nexus.createBinTransfer(data));
289
+ return siteAction((a) => a.nexus.createBinTransfer(data));
281
290
  }
282
291
  async function createReceiving(data) {
283
- return safeAction(() => getSiteActions().nexus.createReceiving(data));
292
+ return siteAction((a) => a.nexus.createReceiving(data));
284
293
  }
285
294
  async function createTransfer(data) {
286
- return safeAction(() => getSiteActions().nexus.createTransfer(data));
295
+ return siteAction((a) => a.nexus.createTransfer(data));
287
296
  }
288
297
  async function getPurchaseOrderReceipts(params) {
289
- return safeAction(
290
- () => getSiteActions().nexus.getPurchaseOrderReceipts(params)
298
+ return siteAction(
299
+ (a) => a.nexus.getPurchaseOrderReceipts(params)
291
300
  );
292
301
  }
293
302
  async function getTransferReceipts(params) {
294
- return safeAction(
295
- () => getSiteActions().nexus.getTransferReceipts(params)
303
+ return siteAction(
304
+ (a) => a.nexus.getTransferReceipts(params)
296
305
  );
297
306
  }
298
307
  async function getTransferShipping(params) {
299
- return safeAction(
300
- () => getSiteActions().nexus.getTransferShipping(params)
308
+ return siteAction(
309
+ (a) => a.nexus.getTransferShipping(params)
301
310
  );
302
311
  }
303
312
  async function getWarehouses(params) {
304
- return safeAction(() => getSiteActions().vmi.getWarehouses(params));
313
+ return siteAction((a) => a.vmi.getWarehouses(params));
305
314
  }
306
315
  async function getWarehouseAvailability(warehouseUid, params) {
307
- return safeAction(
308
- () => getSiteActions().vmi.getWarehouseAvailability(warehouseUid, params)
316
+ return siteAction(
317
+ (a) => a.vmi.getWarehouseAvailability(warehouseUid, params)
309
318
  );
310
319
  }
311
320
  async function getDistributors(params) {
312
- return safeAction(() => getSiteActions().vmi.getDistributors(params));
321
+ return siteAction((a) => a.vmi.getDistributors(params));
313
322
  }
314
323
  async function getProducts(params) {
315
- return safeAction(() => getSiteActions().vmi.getProducts(params));
324
+ return siteAction((a) => a.vmi.getProducts(params));
316
325
  }
317
326
  async function getInventoryProfiles(params) {
318
- return safeAction(() => getSiteActions().vmi.getInventoryProfiles(params));
327
+ return siteAction((a) => a.vmi.getInventoryProfiles(params));
319
328
  }
320
329
  async function getRestockHeaders(params) {
321
- return safeAction(() => getSiteActions().vmi.getRestockHeaders(params));
330
+ return siteAction((a) => a.vmi.getRestockHeaders(params));
322
331
  }
323
332
  async function getSections(params) {
324
- return safeAction(() => getSiteActions().vmi.getSections(params));
333
+ return siteAction((a) => a.vmi.getSections(params));
325
334
  }
326
335
  async function getAddresses(params) {
327
- return safeAction(() => getSiteActions().p21Core.getAddresses(params));
336
+ return siteAction((a) => a.p21Core.getAddresses(params));
328
337
  }
329
338
  async function getCompanies(params) {
330
- return safeAction(() => getSiteActions().p21Core.getCompanies(params));
339
+ return siteAction((a) => a.p21Core.getCompanies(params));
331
340
  }
332
341
  async function getCompany(companyId) {
333
- return safeAction(() => getSiteActions().p21Core.getCompany(companyId));
342
+ return siteAction((a) => a.p21Core.getCompany(companyId));
334
343
  }
335
344
  async function getLocations(params) {
336
- return safeAction(() => getSiteActions().p21Core.getLocations(params));
345
+ return siteAction((a) => a.p21Core.getLocations(params));
337
346
  }
338
347
  async function getPaymentTypes(params) {
339
- return safeAction(() => getSiteActions().p21Core.getPaymentTypes(params));
348
+ return siteAction((a) => a.p21Core.getPaymentTypes(params));
340
349
  }
341
350
  async function getCashDrawers(params) {
342
- return safeAction(() => getSiteActions().p21Core.getCashDrawers(params));
351
+ return siteAction((a) => a.p21Core.getCashDrawers(params));
343
352
  }
344
353
  async function getCodeP21(params) {
345
- return safeAction(() => getSiteActions().p21Core.getCodeP21(params));
354
+ return siteAction((a) => a.p21Core.getCodeP21(params));
346
355
  }
347
356
  async function getP21Categories(params) {
348
- return safeAction(() => getSiteActions().p21Apis.getCategories(params));
357
+ return siteAction((a) => a.p21Apis.getCategories(params));
349
358
  }
350
359
  async function getCategoryDefaults(categoryId) {
351
- return safeAction(
352
- () => getSiteActions().p21Apis.getCategoryDefaults(categoryId)
360
+ return siteAction(
361
+ (a) => a.p21Apis.getCategoryDefaults(categoryId)
353
362
  );
354
363
  }
355
364
  async function getP21Companies(params) {
356
- return safeAction(() => getSiteActions().p21Apis.getCompanies(params));
365
+ return siteAction((a) => a.p21Apis.getCompanies(params));
357
366
  }
358
367
  async function getUsers(params) {
359
- return safeAction(() => getSiteActions().p21Apis.getUsers(params));
368
+ return siteAction((a) => a.p21Apis.getUsers(params));
360
369
  }
361
370
  async function getWebDisplayTypes(params) {
362
- return safeAction(
363
- () => getSiteActions().p21Apis.getWebDisplayTypes(params)
371
+ return siteAction(
372
+ (a) => a.p21Apis.getWebDisplayTypes(params)
364
373
  );
365
374
  }
366
375
  async function getWebDisplayTypeDefaults(id) {
367
- return safeAction(
368
- () => getSiteActions().p21Apis.getWebDisplayTypeDefaults(id)
376
+ return siteAction(
377
+ (a) => a.p21Apis.getWebDisplayTypeDefaults(id)
369
378
  );
370
379
  }
371
380
  async function refreshContacts(params) {
372
- return safeAction(() => getSiteActions().p21Apis.refreshContacts(params));
381
+ return siteAction((a) => a.p21Apis.refreshContacts(params));
373
382
  }
374
383
  async function refreshCustomers(params) {
375
- return safeAction(
376
- () => getSiteActions().p21Apis.refreshCustomers(params)
384
+ return siteAction(
385
+ (a) => a.p21Apis.refreshCustomers(params)
377
386
  );
378
387
  }
379
388
  async function getRecentImports(params) {
380
- return safeAction(() => getSiteActions().p21Sism.getRecentImports(params));
389
+ return siteAction((a) => a.p21Sism.getRecentImports(params));
381
390
  }
382
391
  async function getImport(importId) {
383
- return safeAction(() => getSiteActions().p21Sism.getImport(importId));
392
+ return siteAction((a) => a.p21Sism.getImport(importId));
384
393
  }
385
394
  async function getImportLines(importId, params) {
386
- return safeAction(
387
- () => getSiteActions().p21Sism.getImportLines(importId, params)
395
+ return siteAction(
396
+ (a) => a.p21Sism.getImportLines(importId, params)
388
397
  );
389
398
  }
390
399
  async function getScheduledImports(params) {
391
- return safeAction(
392
- () => getSiteActions().p21Sism.getScheduledImports(params)
400
+ return siteAction(
401
+ (a) => a.p21Sism.getScheduledImports(params)
393
402
  );
394
403
  }
395
404
  async function healthCheck() {
396
- return safeAction(() => getSiteActions().agrWork.healthCheck());
405
+ return siteAction((a) => a.agrWork.healthCheck());
397
406
  }
398
407
  async function ping() {
399
- return safeAction(() => getSiteActions().agrWork.ping());
408
+ return siteAction((a) => a.agrWork.ping());
400
409
  }
401
410
  async function getContext(params) {
402
- return safeAction(() => getSiteActions().agrInfo.getContext(params));
411
+ return siteAction((a) => a.agrInfo.getContext(params));
403
412
  }
404
413
  async function getRubrics(params) {
405
- return safeAction(() => getSiteActions().agrInfo.getRubrics(params));
414
+ return siteAction((a) => a.agrInfo.getRubrics(params));
406
415
  }
407
416
  async function getMicroservices(params) {
408
- return safeAction(() => getSiteActions().agrInfo.getMicroservices(params));
417
+ return siteAction((a) => a.agrInfo.getMicroservices(params));
409
418
  }
410
419
  async function generateAkasha(data) {
411
- return safeAction(() => getSiteActions().agrInfo.generateAkasha(data));
420
+ return siteAction((a) => a.agrInfo.generateAkasha(data));
412
421
  }
413
422
  async function generateJoomla(data) {
414
- return safeAction(() => getSiteActions().agrInfo.generateJoomla(data));
423
+ return siteAction((a) => a.agrInfo.generateJoomla(data));
415
424
  }
416
425
  async function getTodos(params) {
417
- return safeAction(() => getSiteActions().basecamp2.getTodos(params));
426
+ return siteAction((a) => a.basecamp2.getTodos(params));
418
427
  }
419
428
  async function getTodo(todoId) {
420
- return safeAction(() => getSiteActions().basecamp2.getTodo(todoId));
429
+ return siteAction((a) => a.basecamp2.getTodo(todoId));
421
430
  }
422
431
  async function getTodosSummary(params) {
423
- return safeAction(
424
- () => getSiteActions().basecamp2.getTodosSummary(params)
432
+ return siteAction(
433
+ (a) => a.basecamp2.getTodosSummary(params)
425
434
  );
426
435
  }
427
436
  async function getComments(params) {
428
- return safeAction(() => getSiteActions().basecamp2.getComments(params));
437
+ return siteAction((a) => a.basecamp2.getComments(params));
429
438
  }
430
439
  async function getPeople(params) {
431
- return safeAction(() => getSiteActions().basecamp2.getPeople(params));
440
+ return siteAction((a) => a.basecamp2.getPeople(params));
432
441
  }
433
442
  async function getProjects(params) {
434
- return safeAction(() => getSiteActions().basecamp2.getProjects(params));
443
+ return siteAction((a) => a.basecamp2.getProjects(params));
435
444
  }
436
445
  async function getEvents(params) {
437
- return safeAction(() => getSiteActions().basecamp2.getEvents(params));
446
+ return siteAction((a) => a.basecamp2.getEvents(params));
438
447
  }
439
448
  async function getMetrics(params) {
440
- return safeAction(() => getSiteActions().basecamp2.getMetrics(params));
449
+ return siteAction((a) => a.basecamp2.getMetrics(params));
441
450
  }
442
451
  async function getTodolists(params) {
443
- return safeAction(() => getSiteActions().basecamp2.getTodolists(params));
452
+ return siteAction((a) => a.basecamp2.getTodolists(params));
444
453
  }
445
454
  async function getBrandFolderCategories(params) {
446
- return safeAction(
447
- () => getSiteActions().brandFolder.getCategories(params)
455
+ return siteAction(
456
+ (a) => a.brandFolder.getCategories(params)
448
457
  );
449
458
  }
450
459
  async function getCategory(categoryId) {
451
- return safeAction(
452
- () => getSiteActions().brandFolder.getCategory(categoryId)
460
+ return siteAction(
461
+ (a) => a.brandFolder.getCategory(categoryId)
453
462
  );
454
463
  }
455
464
  async function createFocus(categoryId, data) {
456
- return safeAction(
457
- () => getSiteActions().brandFolder.createFocus(categoryId, data)
465
+ return siteAction(
466
+ (a) => a.brandFolder.createFocus(categoryId, data)
458
467
  );
459
468
  }
460
469
  async function askChatGpt(params) {
461
- return safeAction(() => getSiteActions().gregorovich.askChatGpt(params));
470
+ return siteAction((a) => a.gregorovich.askChatGpt(params));
462
471
  }
463
472
  async function getDocuments(params) {
464
- return safeAction(() => getSiteActions().gregorovich.getDocuments(params));
473
+ return siteAction((a) => a.gregorovich.getDocuments(params));
465
474
  }
466
475
  async function createDocument(data) {
467
- return safeAction(
468
- () => getSiteActions().gregorovich.createDocument(data)
476
+ return siteAction(
477
+ (a) => a.gregorovich.createDocument(data)
469
478
  );
470
479
  }
471
480
  async function generateOllama(data) {
472
- return safeAction(
473
- () => getSiteActions().gregorovich.generateOllama(data)
481
+ return siteAction(
482
+ (a) => a.gregorovich.generateOllama(data)
474
483
  );
475
484
  }
476
485
  async function sendWebhook(data) {
477
- return safeAction(() => getSiteActions().slack.sendWebhook(data));
486
+ return siteAction((a) => a.slack.sendWebhook(data));
478
487
  }
479
488
  async function getWebhooks(params) {
480
- return safeAction(() => getSiteActions().slack.getWebhooks(params));
489
+ return siteAction((a) => a.slack.getWebhooks(params));
481
490
  }
482
491
  export {
483
492
  accountQuery,
@@ -601,6 +610,7 @@ export {
601
610
  transactionSetup,
602
611
  updateCartLines,
603
612
  validateAddress,
604
- validatePayment
613
+ validatePayment,
614
+ verifyPassword
605
615
  };
606
616
  //# sourceMappingURL=actions.js.map