@simpleapps-com/augur-server 2.2.3 → 2.2.5
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 +2 -11
- package/dist/actions.js +418 -136
- package/dist/actions.js.map +1 -1
- package/dist/{chunk-MUTPMHZW.js → chunk-3N37FS5N.js} +16 -20
- package/dist/chunk-3N37FS5N.js.map +1 -0
- package/dist/chunk-EYMB52E5.js +28 -0
- package/dist/chunk-EYMB52E5.js.map +1 -0
- package/dist/chunk-GP6W4BV3.js +32 -0
- package/dist/chunk-GP6W4BV3.js.map +1 -0
- package/dist/hooks.d.ts +7 -15
- package/dist/hooks.js +8 -6
- package/dist/hooks.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/query-action.d.ts +12 -0
- package/dist/query-action.js +10 -0
- package/dist/query-action.js.map +1 -0
- package/dist/{server-site-registry-5JIrOo05.d.ts → server-site-registry-CB7eqDcW.d.ts} +17 -0
- package/dist/site.js +2 -1
- package/dist/site.js.map +1 -1
- package/dist/testing.d.ts +1 -1
- package/dist/testing.js +2 -1
- package/dist/testing.js.map +1 -1
- package/package.json +9 -5
- package/dist/chunk-MUTPMHZW.js.map +0 -1
- package/dist/chunk-ZXTBD32L.js +0 -570
- package/dist/chunk-ZXTBD32L.js.map +0 -1
package/dist/actions.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export { ApiResult, ListResult } from '@simpleapps-com/augur-core';
|
|
|
3
3
|
import { SafeActionResult, TAccountQuery, TInvMastDoc, TPriceData, TStock, TBillingUpdate, TCardInfo, TCartLookUp, TCheckoutResult, CustomerDocument, TRelatedProduct, TCartLine, TItemsFilters, TCategoryItemsResult, TProductItem, TInvMast, TItemAccessory, TAttribute, TCategory, TWebDesc, TJoomlaContent, TMenu, MenuItem, TShippingMethod, TSearchSuggestionsResponse, TSurcharge, TTaxItem, TTax, TTransactionSetup, TPaymentValidation, TPasswordVerification } from '@simpleapps-com/augur-utils';
|
|
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
|
+
export { queryAction } from './query-action.js';
|
|
6
7
|
|
|
7
8
|
/** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
|
|
8
9
|
declare function getCustomer(customerId: number): Promise<SafeActionResult<CustomerDocument>>;
|
|
@@ -319,15 +320,5 @@ declare function addWishlistItems(userId: number, wishlistId: number, items: {
|
|
|
319
320
|
}[]): Promise<SafeActionResult<unknown>>;
|
|
320
321
|
/** @deprecated Use `createServerQueryProxy()` from `@simpleapps-com/augur-server/hooks` instead. */
|
|
321
322
|
declare function removeWishlistItem(userId: number, wishlistId: number, lineId: number): Promise<SafeActionResult<void>>;
|
|
322
|
-
/**
|
|
323
|
-
* Generic server action that routes any SDK method call through the site
|
|
324
|
-
* actions singleton. Used internally by `createServerQueryProxy()` to
|
|
325
|
-
* bridge client-side React Query hooks to server-side API calls.
|
|
326
|
-
*
|
|
327
|
-
* @param methodPath Dot-separated SDK method path (e.g. "items.invMast.doc.get")
|
|
328
|
-
* @param args Arguments to pass to the resolved method
|
|
329
|
-
* @returns The raw result from the SiteActions method
|
|
330
|
-
*/
|
|
331
|
-
declare function queryAction(methodPath: string, ...args: unknown[]): Promise<unknown>;
|
|
332
323
|
|
|
333
|
-
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,
|
|
324
|
+
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, refreshContacts, refreshCustomers, removeFavorite, removeWishlistItem, sendWebhook, transactionSetup, updateCartLines, validateAddress, validatePayment, verifyPassword };
|
package/dist/actions.js
CHANGED
|
@@ -1,142 +1,424 @@
|
|
|
1
1
|
"use server";
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
batchGetStockData,
|
|
11
|
-
billingUpdate,
|
|
12
|
-
calculateTax,
|
|
13
|
-
cardInfo,
|
|
14
|
-
cartHdrLookup,
|
|
15
|
-
checkoutOrder,
|
|
16
|
-
createBinTransfer,
|
|
17
|
-
createDocument,
|
|
18
|
-
createFocus,
|
|
19
|
-
createReceiving,
|
|
20
|
-
createTransfer,
|
|
21
|
-
createWishlist,
|
|
22
|
-
customerLookup,
|
|
23
|
-
deleteCartItems,
|
|
24
|
-
deleteWishlist,
|
|
25
|
-
generateAkasha,
|
|
26
|
-
generateJoomla,
|
|
27
|
-
generateOllama,
|
|
28
|
-
getAddresses,
|
|
29
|
-
getAlsoBoughtItems,
|
|
30
|
-
getBrandFolderCategories,
|
|
31
|
-
getCartAlsoBought,
|
|
32
|
-
getCartLines,
|
|
33
|
-
getCashDrawers,
|
|
34
|
-
getCategory,
|
|
35
|
-
getCategoryDefaults,
|
|
36
|
-
getCategoryItems,
|
|
37
|
-
getCategoryItemsInfinite,
|
|
38
|
-
getCodeP21,
|
|
39
|
-
getComments,
|
|
40
|
-
getCompanies,
|
|
41
|
-
getCompany,
|
|
42
|
-
getContacts,
|
|
43
|
-
getContext,
|
|
44
|
-
getCustomer,
|
|
45
|
-
getCustomerDoc,
|
|
46
|
-
getCustomerInvoiceDetail,
|
|
47
|
-
getCustomerInvoices,
|
|
48
|
-
getCustomerOrderDetail,
|
|
49
|
-
getCustomerOrders,
|
|
50
|
-
getCustomerQuoteDetail,
|
|
51
|
-
getCustomerQuotes,
|
|
52
|
-
getDistributors,
|
|
53
|
-
getDocuments,
|
|
54
|
-
getEvents,
|
|
55
|
-
getFavorites,
|
|
56
|
-
getFreightRates,
|
|
57
|
-
getImport,
|
|
58
|
-
getImportLines,
|
|
59
|
-
getInvMast,
|
|
60
|
-
getInvMastDoc,
|
|
61
|
-
getInvMastExt,
|
|
62
|
-
getInventoryProfiles,
|
|
63
|
-
getItemAccessories,
|
|
64
|
-
getItemAttributes,
|
|
65
|
-
getItemCategory,
|
|
66
|
-
getItemFaqs,
|
|
67
|
-
getItemPrice,
|
|
68
|
-
getItemSubstitutes,
|
|
69
|
-
getItemTags,
|
|
70
|
-
getItemWebDesc,
|
|
71
|
-
getJoomlaContent,
|
|
72
|
-
getJoomlaContentList,
|
|
73
|
-
getJoomlaMenu,
|
|
74
|
-
getJoomlaMenuDoc,
|
|
75
|
-
getLocations,
|
|
76
|
-
getMetaFiles,
|
|
77
|
-
getMetrics,
|
|
78
|
-
getMicroservices,
|
|
79
|
-
getOrderDoc,
|
|
80
|
-
getP21Categories,
|
|
81
|
-
getP21Companies,
|
|
82
|
-
getPaymentTypes,
|
|
83
|
-
getPeople,
|
|
84
|
-
getProducts,
|
|
85
|
-
getProjects,
|
|
86
|
-
getPurchaseOrderReceipts,
|
|
87
|
-
getRates,
|
|
88
|
-
getRecentImports,
|
|
89
|
-
getRestockHeaders,
|
|
90
|
-
getRubrics,
|
|
91
|
-
getScheduledImports,
|
|
92
|
-
getSearchAttributes,
|
|
93
|
-
getSearchSuggestions,
|
|
94
|
-
getSections,
|
|
95
|
-
getSettings,
|
|
96
|
-
getShipToAddresses,
|
|
97
|
-
getShipVia,
|
|
98
|
-
getShippingRates,
|
|
99
|
-
getSimilarItems,
|
|
100
|
-
getStates,
|
|
101
|
-
getStock,
|
|
102
|
-
getStockCompanySummary,
|
|
103
|
-
getSurcharge,
|
|
104
|
-
getTaxEstimate,
|
|
105
|
-
getTodo,
|
|
106
|
-
getTodolists,
|
|
107
|
-
getTodos,
|
|
108
|
-
getTodosSummary,
|
|
109
|
-
getTransferReceipts,
|
|
110
|
-
getTransferShipping,
|
|
111
|
-
getUserProfile,
|
|
112
|
-
getUsers,
|
|
113
|
-
getWarehouseAvailability,
|
|
114
|
-
getWarehouses,
|
|
115
|
-
getWebDisplayTypeDefaults,
|
|
116
|
-
getWebDisplayTypes,
|
|
117
|
-
getWebhooks,
|
|
118
|
-
getWishlistDetail,
|
|
119
|
-
getWishlists,
|
|
120
|
-
healthCheck,
|
|
121
|
-
itemCategoryLookup,
|
|
122
|
-
itemSearch,
|
|
123
|
-
itemSearchInfinite,
|
|
124
|
-
listInvMastExt,
|
|
125
|
-
ping,
|
|
126
|
-
queryAction,
|
|
127
|
-
refreshContacts,
|
|
128
|
-
refreshCustomers,
|
|
129
|
-
removeFavorite,
|
|
130
|
-
removeWishlistItem,
|
|
131
|
-
sendWebhook,
|
|
132
|
-
transactionSetup,
|
|
133
|
-
updateCartLines,
|
|
134
|
-
validateAddress,
|
|
135
|
-
validatePayment,
|
|
136
|
-
verifyPassword
|
|
137
|
-
} from "./chunk-ZXTBD32L.js";
|
|
138
|
-
import "./chunk-MUTPMHZW.js";
|
|
3
|
+
queryAction
|
|
4
|
+
} from "./chunk-GP6W4BV3.js";
|
|
5
|
+
import {
|
|
6
|
+
getSiteActions,
|
|
7
|
+
safeAction
|
|
8
|
+
} from "./chunk-3N37FS5N.js";
|
|
9
|
+
import "./chunk-EYMB52E5.js";
|
|
139
10
|
import "./chunk-DGUM43GV.js";
|
|
11
|
+
|
|
12
|
+
// src/server-actions.ts
|
|
13
|
+
function siteAction(fn) {
|
|
14
|
+
const actions = getSiteActions();
|
|
15
|
+
return safeAction(() => fn(actions));
|
|
16
|
+
}
|
|
17
|
+
async function getCustomer(customerId) {
|
|
18
|
+
return siteAction((a) => a.customers.getCustomer(customerId));
|
|
19
|
+
}
|
|
20
|
+
async function customerLookup(params) {
|
|
21
|
+
return siteAction((a) => a.customers.customerLookup(params));
|
|
22
|
+
}
|
|
23
|
+
async function getCustomerDoc(customerId) {
|
|
24
|
+
return siteAction((a) => a.customers.getCustomerDoc(customerId));
|
|
25
|
+
}
|
|
26
|
+
async function getCustomerOrders(customerId, params) {
|
|
27
|
+
return siteAction((a) => a.customers.getCustomerOrders(customerId, params));
|
|
28
|
+
}
|
|
29
|
+
async function getCustomerOrderDetail(customerId, orderId) {
|
|
30
|
+
return siteAction((a) => a.customers.getCustomerOrderDetail(customerId, orderId));
|
|
31
|
+
}
|
|
32
|
+
async function getCustomerInvoices(customerId, params) {
|
|
33
|
+
return siteAction((a) => a.customers.getCustomerInvoices(customerId, params));
|
|
34
|
+
}
|
|
35
|
+
async function getCustomerInvoiceDetail(customerId, invoiceNo) {
|
|
36
|
+
return siteAction((a) => a.customers.getCustomerInvoiceDetail(customerId, invoiceNo));
|
|
37
|
+
}
|
|
38
|
+
async function getCustomerQuotes(customerId, params) {
|
|
39
|
+
return siteAction((a) => a.customers.getCustomerQuotes(customerId, params));
|
|
40
|
+
}
|
|
41
|
+
async function getCustomerQuoteDetail(customerId, quoteNo) {
|
|
42
|
+
return siteAction((a) => a.customers.getCustomerQuoteDetail(customerId, quoteNo));
|
|
43
|
+
}
|
|
44
|
+
async function getContacts(params) {
|
|
45
|
+
return siteAction((a) => a.customers.getContacts(params));
|
|
46
|
+
}
|
|
47
|
+
async function getShipToAddresses(customerId) {
|
|
48
|
+
return siteAction((a) => a.customers.getShipToAddresses(customerId));
|
|
49
|
+
}
|
|
50
|
+
async function itemCategoryLookup(path) {
|
|
51
|
+
return siteAction((a) => a.items.itemCategoryLookup(path));
|
|
52
|
+
}
|
|
53
|
+
async function getItemCategory(uid, options) {
|
|
54
|
+
return siteAction((a) => a.items.getItemCategory(uid, options));
|
|
55
|
+
}
|
|
56
|
+
async function getCategoryItems(uid, filters) {
|
|
57
|
+
return siteAction((a) => a.items.getCategoryItems(uid, filters));
|
|
58
|
+
}
|
|
59
|
+
async function getCategoryItemsInfinite(uid, itemsFilters, pageParam) {
|
|
60
|
+
return siteAction((a) => a.items.getCategoryItemsInfinite(uid, itemsFilters, pageParam));
|
|
61
|
+
}
|
|
62
|
+
async function getItemAttributes(categoryUid) {
|
|
63
|
+
return siteAction((a) => a.items.getItemAttributes(categoryUid));
|
|
64
|
+
}
|
|
65
|
+
async function getInvMast(uid) {
|
|
66
|
+
return siteAction((a) => a.items.getInvMast(uid));
|
|
67
|
+
}
|
|
68
|
+
async function getInvMastDoc(paramsOrUid, itemId, includePricing) {
|
|
69
|
+
return siteAction(
|
|
70
|
+
(a) => typeof paramsOrUid === "number" ? a.items.getInvMastDoc(paramsOrUid, itemId, includePricing) : a.items.getInvMastDoc(paramsOrUid)
|
|
71
|
+
);
|
|
72
|
+
}
|
|
73
|
+
async function getStock(invMastUid) {
|
|
74
|
+
return siteAction((a) => a.items.getStock(invMastUid));
|
|
75
|
+
}
|
|
76
|
+
async function getStockCompanySummary(invMastUid) {
|
|
77
|
+
return siteAction((a) => a.items.getStockCompanySummary(invMastUid));
|
|
78
|
+
}
|
|
79
|
+
async function getItemFaqs(invMastUid) {
|
|
80
|
+
return siteAction((a) => a.items.getItemFaqs(invMastUid));
|
|
81
|
+
}
|
|
82
|
+
async function getItemSubstitutes(invMastUid) {
|
|
83
|
+
return siteAction((a) => a.items.getItemSubstitutes(invMastUid));
|
|
84
|
+
}
|
|
85
|
+
async function getItemAccessories(invMastUid) {
|
|
86
|
+
return siteAction((a) => a.items.getItemAccessories(invMastUid));
|
|
87
|
+
}
|
|
88
|
+
async function getSimilarItems(invMastUid) {
|
|
89
|
+
return siteAction((a) => a.items.getSimilarItems(invMastUid));
|
|
90
|
+
}
|
|
91
|
+
async function batchGetInvMastDocs(params) {
|
|
92
|
+
return siteAction((a) => a.items.batchGetInvMastDocs(params));
|
|
93
|
+
}
|
|
94
|
+
async function batchGetStockData(invMastUids) {
|
|
95
|
+
return siteAction((a) => a.items.batchGetStockData(invMastUids));
|
|
96
|
+
}
|
|
97
|
+
async function cartHdrLookup(params) {
|
|
98
|
+
return siteAction((a) => a.commerce.cartHdrLookup(params));
|
|
99
|
+
}
|
|
100
|
+
async function getCartLines(cartHdrUid) {
|
|
101
|
+
return siteAction((a) => a.commerce.getCartLines(cartHdrUid));
|
|
102
|
+
}
|
|
103
|
+
async function addToCart(cartHdrUid, items) {
|
|
104
|
+
return siteAction((a) => a.commerce.addToCart(cartHdrUid, items));
|
|
105
|
+
}
|
|
106
|
+
async function updateCartLines(cartHdrUid, lines) {
|
|
107
|
+
return siteAction((a) => a.commerce.updateCartLines(cartHdrUid, lines));
|
|
108
|
+
}
|
|
109
|
+
async function deleteCartItems(cartHdrUid) {
|
|
110
|
+
return siteAction((a) => a.commerce.deleteCartItems(cartHdrUid));
|
|
111
|
+
}
|
|
112
|
+
async function getCartAlsoBought(cartHdrUid) {
|
|
113
|
+
return siteAction((a) => a.commerce.getCartAlsoBought(cartHdrUid));
|
|
114
|
+
}
|
|
115
|
+
async function checkoutOrder(cartHdrUid, data) {
|
|
116
|
+
return siteAction((a) => a.commerce.checkoutOrder(cartHdrUid, data));
|
|
117
|
+
}
|
|
118
|
+
async function getItemPrice(itemId, customerId, quantity) {
|
|
119
|
+
return siteAction((a) => a.pricing.getItemPrice(itemId, customerId, quantity));
|
|
120
|
+
}
|
|
121
|
+
async function batchGetItemPrices(itemIds, customerId, quantity) {
|
|
122
|
+
return siteAction((a) => a.pricing.batchGetItemPrices(itemIds, customerId, quantity));
|
|
123
|
+
}
|
|
124
|
+
async function getTaxEstimate(customerId, postalCode, items) {
|
|
125
|
+
return siteAction((a) => a.pricing.getTaxEstimate(customerId, postalCode, items));
|
|
126
|
+
}
|
|
127
|
+
async function getSearchAttributes(q) {
|
|
128
|
+
return siteAction((a) => a.search.getSearchAttributes(q));
|
|
129
|
+
}
|
|
130
|
+
async function getSearchSuggestions(q, limit, offset) {
|
|
131
|
+
return siteAction((a) => a.search.getSearchSuggestions(q, limit, offset));
|
|
132
|
+
}
|
|
133
|
+
async function itemSearch(filters, itemCategoryUid) {
|
|
134
|
+
return siteAction((a) => a.search.itemSearch(filters, itemCategoryUid));
|
|
135
|
+
}
|
|
136
|
+
async function itemSearchInfinite(filters, itemCategoryUid, pageParam) {
|
|
137
|
+
return siteAction((a) => a.search.itemSearchInfinite(filters, itemCategoryUid, pageParam));
|
|
138
|
+
}
|
|
139
|
+
async function getOrderDoc(orderNo, postalCode) {
|
|
140
|
+
return siteAction((a) => a.orders.getOrderDoc(orderNo, postalCode));
|
|
141
|
+
}
|
|
142
|
+
async function getShippingRates(toAddress, weight, serviceCodes) {
|
|
143
|
+
return siteAction((a) => a.shipping.getShippingRates(toAddress, weight, serviceCodes));
|
|
144
|
+
}
|
|
145
|
+
async function getJoomlaContent(articleId, options) {
|
|
146
|
+
return siteAction(
|
|
147
|
+
(a) => options?.alias ? a.joomla.getJoomlaContent(articleId, options) : a.joomla.getJoomlaContent(Number(articleId))
|
|
148
|
+
);
|
|
149
|
+
}
|
|
150
|
+
async function getJoomlaContentList(params) {
|
|
151
|
+
return siteAction((a) => a.joomla.getJoomlaContentList(params));
|
|
152
|
+
}
|
|
153
|
+
async function getJoomlaMenu(paramsOrParentId, menuType) {
|
|
154
|
+
return siteAction(
|
|
155
|
+
(a) => typeof paramsOrParentId === "number" ? a.joomla.getJoomlaMenu(paramsOrParentId, menuType) : a.joomla.getJoomlaMenu(paramsOrParentId)
|
|
156
|
+
);
|
|
157
|
+
}
|
|
158
|
+
async function getJoomlaMenuDoc(menuId) {
|
|
159
|
+
return siteAction((a) => a.joomla.getJoomlaMenuDoc(menuId));
|
|
160
|
+
}
|
|
161
|
+
async function getUserProfile(userId) {
|
|
162
|
+
return siteAction((a) => a.joomla.getUserProfile(userId));
|
|
163
|
+
}
|
|
164
|
+
async function verifyPassword(username, password) {
|
|
165
|
+
return siteAction((a) => a.joomla.verifyPassword(username, password));
|
|
166
|
+
}
|
|
167
|
+
async function getItemWebDesc(invMastUid) {
|
|
168
|
+
return siteAction((a) => a.legacy.getItemWebDesc(invMastUid));
|
|
169
|
+
}
|
|
170
|
+
async function getAlsoBoughtItems(invMastUid) {
|
|
171
|
+
return siteAction((a) => a.legacy.getAlsoBoughtItems(invMastUid));
|
|
172
|
+
}
|
|
173
|
+
async function getItemTags(invMastUid) {
|
|
174
|
+
return siteAction((a) => a.legacy.getItemTags(invMastUid));
|
|
175
|
+
}
|
|
176
|
+
async function getStates(params) {
|
|
177
|
+
return siteAction((a) => a.legacy.getStates(params));
|
|
178
|
+
}
|
|
179
|
+
async function validateAddress(params) {
|
|
180
|
+
return siteAction((a) => a.smartyStreets.validateAddress(params));
|
|
181
|
+
}
|
|
182
|
+
async function getInvMastExt(invMastUid) {
|
|
183
|
+
return siteAction((a) => a.p21Pim.getInvMastExt(invMastUid));
|
|
184
|
+
}
|
|
185
|
+
async function listInvMastExt(params) {
|
|
186
|
+
return siteAction((a) => a.p21Pim.listInvMastExt(params));
|
|
187
|
+
}
|
|
188
|
+
async function getSettings(serviceName) {
|
|
189
|
+
return siteAction((a) => a.agrSite.getSettings(serviceName));
|
|
190
|
+
}
|
|
191
|
+
async function getMetaFiles(params) {
|
|
192
|
+
return siteAction((a) => a.agrSite.getMetaFiles(params));
|
|
193
|
+
}
|
|
194
|
+
async function calculateTax(data) {
|
|
195
|
+
return siteAction((a) => a.avalara.calculateTax(data));
|
|
196
|
+
}
|
|
197
|
+
async function transactionSetup(params) {
|
|
198
|
+
return siteAction((a) => a.payments.transactionSetup(params));
|
|
199
|
+
}
|
|
200
|
+
async function accountQuery(params) {
|
|
201
|
+
return siteAction((a) => a.payments.accountQuery(params));
|
|
202
|
+
}
|
|
203
|
+
async function getSurcharge(params) {
|
|
204
|
+
return siteAction((a) => a.payments.getSurcharge(params));
|
|
205
|
+
}
|
|
206
|
+
async function cardInfo(params) {
|
|
207
|
+
return siteAction((a) => a.payments.cardInfo(params));
|
|
208
|
+
}
|
|
209
|
+
async function billingUpdate(params) {
|
|
210
|
+
return siteAction((a) => a.payments.billingUpdate(params));
|
|
211
|
+
}
|
|
212
|
+
async function validatePayment(params) {
|
|
213
|
+
return siteAction((a) => a.payments.validatePayment(params));
|
|
214
|
+
}
|
|
215
|
+
async function getRates(params) {
|
|
216
|
+
return siteAction((a) => a.ups.getRates(params));
|
|
217
|
+
}
|
|
218
|
+
async function getFreightRates(params) {
|
|
219
|
+
return siteAction((a) => a.logistics.getFreightRates(params));
|
|
220
|
+
}
|
|
221
|
+
async function getShipVia(params) {
|
|
222
|
+
return siteAction((a) => a.logistics.getShipVia(params));
|
|
223
|
+
}
|
|
224
|
+
async function createBinTransfer(data) {
|
|
225
|
+
return siteAction((a) => a.nexus.createBinTransfer(data));
|
|
226
|
+
}
|
|
227
|
+
async function createReceiving(data) {
|
|
228
|
+
return siteAction((a) => a.nexus.createReceiving(data));
|
|
229
|
+
}
|
|
230
|
+
async function createTransfer(data) {
|
|
231
|
+
return siteAction((a) => a.nexus.createTransfer(data));
|
|
232
|
+
}
|
|
233
|
+
async function getPurchaseOrderReceipts(params) {
|
|
234
|
+
return siteAction((a) => a.nexus.getPurchaseOrderReceipts(params));
|
|
235
|
+
}
|
|
236
|
+
async function getTransferReceipts(params) {
|
|
237
|
+
return siteAction((a) => a.nexus.getTransferReceipts(params));
|
|
238
|
+
}
|
|
239
|
+
async function getTransferShipping(params) {
|
|
240
|
+
return siteAction((a) => a.nexus.getTransferShipping(params));
|
|
241
|
+
}
|
|
242
|
+
async function getWarehouses(params) {
|
|
243
|
+
return siteAction((a) => a.vmi.getWarehouses(params));
|
|
244
|
+
}
|
|
245
|
+
async function getWarehouseAvailability(warehouseUid, params) {
|
|
246
|
+
return siteAction((a) => a.vmi.getWarehouseAvailability(warehouseUid, params));
|
|
247
|
+
}
|
|
248
|
+
async function getDistributors(params) {
|
|
249
|
+
return siteAction((a) => a.vmi.getDistributors(params));
|
|
250
|
+
}
|
|
251
|
+
async function getProducts(params) {
|
|
252
|
+
return siteAction((a) => a.vmi.getProducts(params));
|
|
253
|
+
}
|
|
254
|
+
async function getInventoryProfiles(params) {
|
|
255
|
+
return siteAction((a) => a.vmi.getInventoryProfiles(params));
|
|
256
|
+
}
|
|
257
|
+
async function getRestockHeaders(params) {
|
|
258
|
+
return siteAction((a) => a.vmi.getRestockHeaders(params));
|
|
259
|
+
}
|
|
260
|
+
async function getSections(params) {
|
|
261
|
+
return siteAction((a) => a.vmi.getSections(params));
|
|
262
|
+
}
|
|
263
|
+
async function getAddresses(params) {
|
|
264
|
+
return siteAction((a) => a.p21Core.getAddresses(params));
|
|
265
|
+
}
|
|
266
|
+
async function getCompanies(params) {
|
|
267
|
+
return siteAction((a) => a.p21Core.getCompanies(params));
|
|
268
|
+
}
|
|
269
|
+
async function getCompany(companyId) {
|
|
270
|
+
return siteAction((a) => a.p21Core.getCompany(companyId));
|
|
271
|
+
}
|
|
272
|
+
async function getLocations(params) {
|
|
273
|
+
return siteAction((a) => a.p21Core.getLocations(params));
|
|
274
|
+
}
|
|
275
|
+
async function getPaymentTypes(params) {
|
|
276
|
+
return siteAction((a) => a.p21Core.getPaymentTypes(params));
|
|
277
|
+
}
|
|
278
|
+
async function getCashDrawers(params) {
|
|
279
|
+
return siteAction((a) => a.p21Core.getCashDrawers(params));
|
|
280
|
+
}
|
|
281
|
+
async function getCodeP21(params) {
|
|
282
|
+
return siteAction((a) => a.p21Core.getCodeP21(params));
|
|
283
|
+
}
|
|
284
|
+
async function getP21Categories(params) {
|
|
285
|
+
return siteAction((a) => a.p21Apis.getCategories(params));
|
|
286
|
+
}
|
|
287
|
+
async function getCategoryDefaults(categoryId) {
|
|
288
|
+
return siteAction((a) => a.p21Apis.getCategoryDefaults(categoryId));
|
|
289
|
+
}
|
|
290
|
+
async function getP21Companies(params) {
|
|
291
|
+
return siteAction((a) => a.p21Apis.getCompanies(params));
|
|
292
|
+
}
|
|
293
|
+
async function getUsers(params) {
|
|
294
|
+
return siteAction((a) => a.p21Apis.getUsers(params));
|
|
295
|
+
}
|
|
296
|
+
async function getWebDisplayTypes(params) {
|
|
297
|
+
return siteAction((a) => a.p21Apis.getWebDisplayTypes(params));
|
|
298
|
+
}
|
|
299
|
+
async function getWebDisplayTypeDefaults(id) {
|
|
300
|
+
return siteAction((a) => a.p21Apis.getWebDisplayTypeDefaults(id));
|
|
301
|
+
}
|
|
302
|
+
async function refreshContacts(params) {
|
|
303
|
+
return siteAction((a) => a.p21Apis.refreshContacts(params));
|
|
304
|
+
}
|
|
305
|
+
async function refreshCustomers(params) {
|
|
306
|
+
return siteAction((a) => a.p21Apis.refreshCustomers(params));
|
|
307
|
+
}
|
|
308
|
+
async function getRecentImports(params) {
|
|
309
|
+
return siteAction((a) => a.p21Sism.getRecentImports(params));
|
|
310
|
+
}
|
|
311
|
+
async function getImport(importId) {
|
|
312
|
+
return siteAction((a) => a.p21Sism.getImport(importId));
|
|
313
|
+
}
|
|
314
|
+
async function getImportLines(importId, params) {
|
|
315
|
+
return siteAction((a) => a.p21Sism.getImportLines(importId, params));
|
|
316
|
+
}
|
|
317
|
+
async function getScheduledImports(params) {
|
|
318
|
+
return siteAction((a) => a.p21Sism.getScheduledImports(params));
|
|
319
|
+
}
|
|
320
|
+
async function healthCheck() {
|
|
321
|
+
return siteAction((a) => a.agrWork.healthCheck());
|
|
322
|
+
}
|
|
323
|
+
async function ping() {
|
|
324
|
+
return siteAction((a) => a.agrWork.ping());
|
|
325
|
+
}
|
|
326
|
+
async function getContext(params) {
|
|
327
|
+
return siteAction((a) => a.agrInfo.getContext(params));
|
|
328
|
+
}
|
|
329
|
+
async function getRubrics(params) {
|
|
330
|
+
return siteAction((a) => a.agrInfo.getRubrics(params));
|
|
331
|
+
}
|
|
332
|
+
async function getMicroservices(params) {
|
|
333
|
+
return siteAction((a) => a.agrInfo.getMicroservices(params));
|
|
334
|
+
}
|
|
335
|
+
async function generateAkasha(data) {
|
|
336
|
+
return siteAction((a) => a.agrInfo.generateAkasha(data));
|
|
337
|
+
}
|
|
338
|
+
async function generateJoomla(data) {
|
|
339
|
+
return siteAction((a) => a.agrInfo.generateJoomla(data));
|
|
340
|
+
}
|
|
341
|
+
async function getTodos(params) {
|
|
342
|
+
return siteAction((a) => a.basecamp2.getTodos(params));
|
|
343
|
+
}
|
|
344
|
+
async function getTodo(todoId) {
|
|
345
|
+
return siteAction((a) => a.basecamp2.getTodo(todoId));
|
|
346
|
+
}
|
|
347
|
+
async function getTodosSummary(params) {
|
|
348
|
+
return siteAction((a) => a.basecamp2.getTodosSummary(params));
|
|
349
|
+
}
|
|
350
|
+
async function getComments(params) {
|
|
351
|
+
return siteAction((a) => a.basecamp2.getComments(params));
|
|
352
|
+
}
|
|
353
|
+
async function getPeople(params) {
|
|
354
|
+
return siteAction((a) => a.basecamp2.getPeople(params));
|
|
355
|
+
}
|
|
356
|
+
async function getProjects(params) {
|
|
357
|
+
return siteAction((a) => a.basecamp2.getProjects(params));
|
|
358
|
+
}
|
|
359
|
+
async function getEvents(params) {
|
|
360
|
+
return siteAction((a) => a.basecamp2.getEvents(params));
|
|
361
|
+
}
|
|
362
|
+
async function getMetrics(params) {
|
|
363
|
+
return siteAction((a) => a.basecamp2.getMetrics(params));
|
|
364
|
+
}
|
|
365
|
+
async function getTodolists(params) {
|
|
366
|
+
return siteAction((a) => a.basecamp2.getTodolists(params));
|
|
367
|
+
}
|
|
368
|
+
async function getBrandFolderCategories(params) {
|
|
369
|
+
return siteAction((a) => a.brandFolder.getCategories(params));
|
|
370
|
+
}
|
|
371
|
+
async function getCategory(categoryId) {
|
|
372
|
+
return siteAction((a) => a.brandFolder.getCategory(categoryId));
|
|
373
|
+
}
|
|
374
|
+
async function createFocus(categoryId, data) {
|
|
375
|
+
return siteAction((a) => a.brandFolder.createFocus(categoryId, data));
|
|
376
|
+
}
|
|
377
|
+
async function askChatGpt(params) {
|
|
378
|
+
return siteAction((a) => a.gregorovich.askChatGpt(params));
|
|
379
|
+
}
|
|
380
|
+
async function getDocuments(params) {
|
|
381
|
+
return siteAction((a) => a.gregorovich.getDocuments(params));
|
|
382
|
+
}
|
|
383
|
+
async function createDocument(data) {
|
|
384
|
+
return siteAction((a) => a.gregorovich.createDocument(data));
|
|
385
|
+
}
|
|
386
|
+
async function generateOllama(data) {
|
|
387
|
+
return siteAction((a) => a.gregorovich.generateOllama(data));
|
|
388
|
+
}
|
|
389
|
+
async function sendWebhook(data) {
|
|
390
|
+
return siteAction((a) => a.slack.sendWebhook(data));
|
|
391
|
+
}
|
|
392
|
+
async function getWebhooks(params) {
|
|
393
|
+
return siteAction((a) => a.slack.getWebhooks(params));
|
|
394
|
+
}
|
|
395
|
+
async function getFavorites(userId) {
|
|
396
|
+
return siteAction((a) => a.favorites.getFavorites(userId));
|
|
397
|
+
}
|
|
398
|
+
async function addFavorite(userId, invMastUid) {
|
|
399
|
+
return siteAction((a) => a.favorites.addFavorite(userId, invMastUid));
|
|
400
|
+
}
|
|
401
|
+
async function removeFavorite(userId, invMastUid) {
|
|
402
|
+
return siteAction((a) => a.favorites.removeFavorite(userId, invMastUid));
|
|
403
|
+
}
|
|
404
|
+
async function getWishlists(userId) {
|
|
405
|
+
return siteAction((a) => a.wishlists.getWishlists(userId));
|
|
406
|
+
}
|
|
407
|
+
async function createWishlist(userId, data) {
|
|
408
|
+
return siteAction((a) => a.wishlists.createWishlist(userId, data));
|
|
409
|
+
}
|
|
410
|
+
async function getWishlistDetail(userId, wishlistId) {
|
|
411
|
+
return siteAction((a) => a.wishlists.getWishlistDetail(userId, wishlistId));
|
|
412
|
+
}
|
|
413
|
+
async function deleteWishlist(userId, wishlistId) {
|
|
414
|
+
return siteAction((a) => a.wishlists.deleteWishlist(userId, wishlistId));
|
|
415
|
+
}
|
|
416
|
+
async function addWishlistItems(userId, wishlistId, items) {
|
|
417
|
+
return siteAction((a) => a.wishlists.addWishlistItems(userId, wishlistId, items));
|
|
418
|
+
}
|
|
419
|
+
async function removeWishlistItem(userId, wishlistId, lineId) {
|
|
420
|
+
return siteAction((a) => a.wishlists.removeWishlistItem(userId, wishlistId, lineId));
|
|
421
|
+
}
|
|
140
422
|
export {
|
|
141
423
|
accountQuery,
|
|
142
424
|
addFavorite,
|