@simpleapps-com/augur-server 1.0.13 → 1.0.15
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 +171 -0
- package/dist/actions.js +606 -0
- package/dist/actions.js.map +1 -0
- package/dist/chunk-MQGUOFAZ.js +23 -0
- package/dist/chunk-MQGUOFAZ.js.map +1 -0
- package/dist/chunk-ZBS5CNBC.js +20 -0
- package/dist/chunk-ZBS5CNBC.js.map +1 -0
- package/dist/index.d.ts +5 -57
- package/dist/index.js +10 -15
- package/dist/index.js.map +1 -1
- package/dist/sdk-call-BgnoWAZK.d.ts +56 -0
- package/dist/server-site-registry-DlLN0e5y.d.ts +19 -0
- package/dist/{site-BBtab6v0.d.ts → site-DpL27QZc.d.ts} +3 -269
- package/dist/site.d.ts +2 -1
- package/dist/site.js +4 -0
- package/dist/site.js.map +1 -1
- package/dist/smarty-streets-1vGdsGf-.d.ts +272 -0
- package/dist/testing.d.ts +3 -1
- package/dist/testing.js +5 -0
- package/dist/testing.js.map +1 -1
- package/package.json +9 -5
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
import { S as SafeActionResult } from './sdk-call-BgnoWAZK.js';
|
|
2
|
+
import { C as CustomerListResult, k as ShippingAddress, N as NormalizedUserProfile, h as SearchPage, A as AddressValidationResult } from './smarty-streets-1vGdsGf-.js';
|
|
3
|
+
import { TInvMastDoc, TPriceData, TStockData, TCartLookUp, TCartLine, TInvMast, TItemAccessory, TAttribute, TCategory, TWebDesc, TTaxItem, TTax, TProductItem } from '@simpleapps-com/augur-utils';
|
|
4
|
+
import '@simpleapps-com/augur-api';
|
|
5
|
+
import '@simpleapps-com/augur-core';
|
|
6
|
+
|
|
7
|
+
declare function getCustomer(customerId: number): Promise<SafeActionResult<unknown>>;
|
|
8
|
+
declare function customerLookup(params: Record<string, unknown>): Promise<SafeActionResult<unknown[]>>;
|
|
9
|
+
declare function getCustomerDoc(customerId: number): Promise<SafeActionResult<unknown>>;
|
|
10
|
+
declare function getCustomerOrders(customerId: number, params?: Record<string, unknown>): Promise<SafeActionResult<CustomerListResult>>;
|
|
11
|
+
declare function getCustomerOrderDetail(customerId: number, orderId: number): Promise<SafeActionResult<unknown>>;
|
|
12
|
+
declare function getCustomerInvoices(customerId: number, params?: Record<string, unknown>): Promise<SafeActionResult<CustomerListResult>>;
|
|
13
|
+
declare function getCustomerInvoiceDetail(customerId: number, invoiceNo: number): Promise<SafeActionResult<unknown>>;
|
|
14
|
+
declare function getCustomerQuotes(customerId: number, params?: Record<string, unknown>): Promise<SafeActionResult<CustomerListResult>>;
|
|
15
|
+
declare function getCustomerQuoteDetail(customerId: number, quoteNo: number): Promise<SafeActionResult<unknown>>;
|
|
16
|
+
declare function getContacts(params?: Record<string, unknown>): Promise<SafeActionResult<unknown[]>>;
|
|
17
|
+
declare function getShipToAddresses(customerId: number): Promise<SafeActionResult<unknown[]>>;
|
|
18
|
+
declare function itemCategoryLookup(path: string): Promise<SafeActionResult<unknown>>;
|
|
19
|
+
declare function getItemCategory(uid: number, options?: Record<string, unknown>): Promise<SafeActionResult<TCategory>>;
|
|
20
|
+
declare function getCategoryItems(uid: number, filters: Record<string, unknown>): Promise<SafeActionResult<unknown>>;
|
|
21
|
+
declare function getItemAttributes(categoryUid: number): Promise<SafeActionResult<TAttribute[]>>;
|
|
22
|
+
declare function getInvMast(uid: number): Promise<SafeActionResult<TInvMast>>;
|
|
23
|
+
declare function getInvMastDoc(params: {
|
|
24
|
+
invMastUid?: number;
|
|
25
|
+
itemId?: string;
|
|
26
|
+
includePricing?: "Y" | "N";
|
|
27
|
+
}): Promise<SafeActionResult<TInvMastDoc>>;
|
|
28
|
+
declare function getStock(invMastUid: number): Promise<SafeActionResult<TStockData[]>>;
|
|
29
|
+
declare function getStockCompanySummary(invMastUid: number): Promise<SafeActionResult<Record<string, number>>>;
|
|
30
|
+
declare function getItemFaqs(invMastUid: number): Promise<SafeActionResult<unknown[]>>;
|
|
31
|
+
declare function getItemSubstitutes(invMastUid: number): Promise<SafeActionResult<unknown[]>>;
|
|
32
|
+
declare function getItemAccessories(invMastUid: number): Promise<SafeActionResult<TItemAccessory[]>>;
|
|
33
|
+
declare function getSimilarItems(invMastUid: number): Promise<SafeActionResult<unknown[]>>;
|
|
34
|
+
declare function batchGetInvMastDocs(params: {
|
|
35
|
+
invMastUid?: number;
|
|
36
|
+
itemId?: string;
|
|
37
|
+
}[]): Promise<SafeActionResult<Record<string, TInvMastDoc>>>;
|
|
38
|
+
declare function batchGetStockData(invMastUids: number[]): Promise<SafeActionResult<Record<number, TStockData[]>>>;
|
|
39
|
+
declare function cartHdrLookup(params: {
|
|
40
|
+
userId?: string | number;
|
|
41
|
+
cartToken?: string;
|
|
42
|
+
contactId?: string | number;
|
|
43
|
+
customerId?: string | number;
|
|
44
|
+
}): Promise<SafeActionResult<TCartLookUp>>;
|
|
45
|
+
declare function getCartLines(cartHdrUid: number): Promise<SafeActionResult<TCartLine[]>>;
|
|
46
|
+
declare function addToCart(cartHdrUid: number, items: {
|
|
47
|
+
itemId?: string;
|
|
48
|
+
invMastUid?: number;
|
|
49
|
+
quantity: number;
|
|
50
|
+
unitOfMeasure: string;
|
|
51
|
+
}[]): Promise<SafeActionResult<unknown>>;
|
|
52
|
+
declare function updateCartLines(cartHdrUid: number, lines: {
|
|
53
|
+
lineNo: number;
|
|
54
|
+
quantity: number;
|
|
55
|
+
unitOfMeasure: string;
|
|
56
|
+
}[]): Promise<SafeActionResult<unknown>>;
|
|
57
|
+
declare function deleteCartItems(cartHdrUid: number): Promise<SafeActionResult<void>>;
|
|
58
|
+
declare function getCartAlsoBought(cartHdrUid: number): Promise<SafeActionResult<unknown[]>>;
|
|
59
|
+
declare function checkoutOrder(cartHdrUid: number, data: Record<string, unknown>): Promise<SafeActionResult<unknown>>;
|
|
60
|
+
declare function getItemPrice(itemId: string, customerId?: string | number, quantity?: number): Promise<SafeActionResult<TPriceData>>;
|
|
61
|
+
declare function batchGetItemPrices(itemIds: string[], customerId?: string | number, quantity?: number): Promise<SafeActionResult<Record<string, TPriceData>>>;
|
|
62
|
+
declare function getTaxEstimate(customerId: string | number, postalCode: string, items: TTaxItem[]): Promise<SafeActionResult<TTax>>;
|
|
63
|
+
declare function getSearchAttributes(q: string): Promise<SafeActionResult<TAttribute[]>>;
|
|
64
|
+
declare function getSearchSuggestions(q: string, limit?: number, offset?: number): Promise<SafeActionResult<{
|
|
65
|
+
data: unknown[];
|
|
66
|
+
total: number;
|
|
67
|
+
totalResults: number;
|
|
68
|
+
}>>;
|
|
69
|
+
declare function itemSearch(filters: {
|
|
70
|
+
q: string;
|
|
71
|
+
limit: number;
|
|
72
|
+
offset: number;
|
|
73
|
+
sortBy?: string;
|
|
74
|
+
filters?: [string, string][];
|
|
75
|
+
}, itemCategoryUid?: number | string): Promise<SafeActionResult<{
|
|
76
|
+
items: TProductItem[];
|
|
77
|
+
totalResults: number;
|
|
78
|
+
}>>;
|
|
79
|
+
declare function itemSearchInfinite(filters: {
|
|
80
|
+
q: string;
|
|
81
|
+
limit: number;
|
|
82
|
+
sortBy?: string;
|
|
83
|
+
filters?: [string, string][];
|
|
84
|
+
}, itemCategoryUid?: number | string, pageParam?: number): Promise<SafeActionResult<SearchPage>>;
|
|
85
|
+
declare function getOrderDoc(orderNo: string, postalCode: string): Promise<SafeActionResult<unknown>>;
|
|
86
|
+
declare function getShippingRates(toAddress: ShippingAddress, weight: number, serviceCodes?: string[]): Promise<SafeActionResult<unknown>>;
|
|
87
|
+
declare function getJoomlaContent(articleId: number): Promise<SafeActionResult<unknown>>;
|
|
88
|
+
declare function getJoomlaContentList(params?: Record<string, unknown>): Promise<SafeActionResult<unknown[]>>;
|
|
89
|
+
declare function getJoomlaMenu(params?: Record<string, unknown>): Promise<SafeActionResult<unknown[]>>;
|
|
90
|
+
declare function getJoomlaMenuDoc(menuId: number | string): Promise<SafeActionResult<unknown>>;
|
|
91
|
+
declare function getUserProfile(userId: number | string): Promise<SafeActionResult<NormalizedUserProfile>>;
|
|
92
|
+
declare function getItemWebDesc(invMastUid: number): Promise<SafeActionResult<TWebDesc | undefined>>;
|
|
93
|
+
declare function getAlsoBoughtItems(invMastUid: number): Promise<SafeActionResult<unknown[]>>;
|
|
94
|
+
declare function getItemTags(invMastUid: number): Promise<SafeActionResult<unknown[]>>;
|
|
95
|
+
declare function getStates(params?: {
|
|
96
|
+
twoLetterCode?: string;
|
|
97
|
+
}): Promise<SafeActionResult<unknown[]>>;
|
|
98
|
+
declare function validateAddress(params: Record<string, unknown>): Promise<SafeActionResult<AddressValidationResult>>;
|
|
99
|
+
declare function getInvMastExt(invMastUid: number): Promise<SafeActionResult<unknown>>;
|
|
100
|
+
declare function listInvMastExt(params?: Record<string, unknown>): Promise<SafeActionResult<unknown[]>>;
|
|
101
|
+
declare function getSettings(serviceName?: string): Promise<SafeActionResult<unknown[]>>;
|
|
102
|
+
declare function getMetaFiles(params?: Record<string, unknown>): Promise<SafeActionResult<unknown[]>>;
|
|
103
|
+
declare function calculateTax(data: Record<string, unknown>): Promise<SafeActionResult<unknown>>;
|
|
104
|
+
declare function transactionSetup(params: Record<string, unknown>): Promise<SafeActionResult<unknown>>;
|
|
105
|
+
declare function accountQuery(params: Record<string, unknown>): Promise<SafeActionResult<unknown>>;
|
|
106
|
+
declare function getSurcharge(params: Record<string, unknown>): Promise<SafeActionResult<unknown>>;
|
|
107
|
+
declare function cardInfo(params: Record<string, unknown>): Promise<SafeActionResult<unknown>>;
|
|
108
|
+
declare function billingUpdate(params: Record<string, unknown>): Promise<SafeActionResult<unknown>>;
|
|
109
|
+
declare function validatePayment(params: Record<string, unknown>): Promise<SafeActionResult<unknown>>;
|
|
110
|
+
declare function getRates(params: Record<string, unknown>): Promise<SafeActionResult<unknown>>;
|
|
111
|
+
declare function getFreightRates(params: Record<string, unknown>): Promise<SafeActionResult<unknown>>;
|
|
112
|
+
declare function getShipVia(params?: Record<string, unknown>): Promise<SafeActionResult<unknown[]>>;
|
|
113
|
+
declare function createBinTransfer(data: Record<string, unknown>): Promise<SafeActionResult<unknown>>;
|
|
114
|
+
declare function createReceiving(data: Record<string, unknown>): Promise<SafeActionResult<unknown>>;
|
|
115
|
+
declare function createTransfer(data: Record<string, unknown>): Promise<SafeActionResult<unknown>>;
|
|
116
|
+
declare function getPurchaseOrderReceipts(params?: Record<string, unknown>): Promise<SafeActionResult<unknown[]>>;
|
|
117
|
+
declare function getTransferReceipts(params?: Record<string, unknown>): Promise<SafeActionResult<unknown[]>>;
|
|
118
|
+
declare function getTransferShipping(params?: Record<string, unknown>): Promise<SafeActionResult<unknown[]>>;
|
|
119
|
+
declare function getWarehouses(params?: Record<string, unknown>): Promise<SafeActionResult<unknown[]>>;
|
|
120
|
+
declare function getWarehouseAvailability(warehouseUid: number, params?: Record<string, unknown>): Promise<SafeActionResult<unknown[]>>;
|
|
121
|
+
declare function getDistributors(params?: Record<string, unknown>): Promise<SafeActionResult<unknown[]>>;
|
|
122
|
+
declare function getProducts(params?: Record<string, unknown>): Promise<SafeActionResult<unknown[]>>;
|
|
123
|
+
declare function getInventoryProfiles(params?: Record<string, unknown>): Promise<SafeActionResult<unknown[]>>;
|
|
124
|
+
declare function getRestockHeaders(params?: Record<string, unknown>): Promise<SafeActionResult<unknown[]>>;
|
|
125
|
+
declare function getSections(params?: Record<string, unknown>): Promise<SafeActionResult<unknown[]>>;
|
|
126
|
+
declare function getAddresses(params?: Record<string, unknown>): Promise<SafeActionResult<unknown[]>>;
|
|
127
|
+
declare function getCompanies(params?: Record<string, unknown>): Promise<SafeActionResult<unknown[]>>;
|
|
128
|
+
declare function getCompany(companyId: number): Promise<SafeActionResult<unknown | undefined>>;
|
|
129
|
+
declare function getLocations(params?: Record<string, unknown>): Promise<SafeActionResult<unknown[]>>;
|
|
130
|
+
declare function getPaymentTypes(params?: Record<string, unknown>): Promise<SafeActionResult<unknown[]>>;
|
|
131
|
+
declare function getCashDrawers(params?: Record<string, unknown>): Promise<SafeActionResult<unknown[]>>;
|
|
132
|
+
declare function getCodeP21(params?: Record<string, unknown>): Promise<SafeActionResult<unknown[]>>;
|
|
133
|
+
declare function getP21Categories(params?: Record<string, unknown>): Promise<SafeActionResult<unknown[]>>;
|
|
134
|
+
declare function getCategoryDefaults(categoryId: number): Promise<SafeActionResult<unknown | undefined>>;
|
|
135
|
+
declare function getP21Companies(params?: Record<string, unknown>): Promise<SafeActionResult<unknown[]>>;
|
|
136
|
+
declare function getUsers(params?: Record<string, unknown>): Promise<SafeActionResult<unknown[]>>;
|
|
137
|
+
declare function getWebDisplayTypes(params?: Record<string, unknown>): Promise<SafeActionResult<unknown[]>>;
|
|
138
|
+
declare function getWebDisplayTypeDefaults(id?: number): Promise<SafeActionResult<unknown | undefined>>;
|
|
139
|
+
declare function refreshContacts(params?: Record<string, unknown>): Promise<SafeActionResult<unknown | undefined>>;
|
|
140
|
+
declare function refreshCustomers(params?: Record<string, unknown>): Promise<SafeActionResult<unknown | undefined>>;
|
|
141
|
+
declare function getRecentImports(params?: Record<string, unknown>): Promise<SafeActionResult<unknown[]>>;
|
|
142
|
+
declare function getImport(importId: string): Promise<SafeActionResult<unknown | undefined>>;
|
|
143
|
+
declare function getImportLines(importId: number, params?: Record<string, unknown>): Promise<SafeActionResult<unknown[]>>;
|
|
144
|
+
declare function getScheduledImports(params?: Record<string, unknown>): Promise<SafeActionResult<unknown[]>>;
|
|
145
|
+
declare function healthCheck(): Promise<SafeActionResult<string | undefined>>;
|
|
146
|
+
declare function ping(): Promise<SafeActionResult<string | undefined>>;
|
|
147
|
+
declare function getContext(params?: Record<string, unknown>): Promise<SafeActionResult<unknown[]>>;
|
|
148
|
+
declare function getRubrics(params?: Record<string, unknown>): Promise<SafeActionResult<unknown[]>>;
|
|
149
|
+
declare function getMicroservices(params?: Record<string, unknown>): Promise<SafeActionResult<unknown[]>>;
|
|
150
|
+
declare function generateAkasha(data?: Record<string, unknown>): Promise<SafeActionResult<unknown | undefined>>;
|
|
151
|
+
declare function generateJoomla(data?: Record<string, unknown>): Promise<SafeActionResult<unknown | undefined>>;
|
|
152
|
+
declare function getTodos(params?: Record<string, unknown>): Promise<SafeActionResult<unknown[]>>;
|
|
153
|
+
declare function getTodo(todoId: number): Promise<SafeActionResult<unknown>>;
|
|
154
|
+
declare function getTodosSummary(params?: Record<string, unknown>): Promise<SafeActionResult<unknown[]>>;
|
|
155
|
+
declare function getComments(params?: Record<string, unknown>): Promise<SafeActionResult<unknown[]>>;
|
|
156
|
+
declare function getPeople(params?: Record<string, unknown>): Promise<SafeActionResult<unknown[]>>;
|
|
157
|
+
declare function getProjects(params?: Record<string, unknown>): Promise<SafeActionResult<unknown[]>>;
|
|
158
|
+
declare function getEvents(params?: Record<string, unknown>): Promise<SafeActionResult<unknown[]>>;
|
|
159
|
+
declare function getMetrics(params?: Record<string, unknown>): Promise<SafeActionResult<unknown[]>>;
|
|
160
|
+
declare function getTodolists(params?: Record<string, unknown>): Promise<SafeActionResult<unknown[]>>;
|
|
161
|
+
declare function getBrandFolderCategories(params?: Record<string, unknown>): Promise<SafeActionResult<unknown[]>>;
|
|
162
|
+
declare function getCategory(categoryId: string): Promise<SafeActionResult<unknown>>;
|
|
163
|
+
declare function createFocus(categoryId: string, data: Record<string, unknown>): Promise<SafeActionResult<unknown | undefined>>;
|
|
164
|
+
declare function askChatGpt(params: Record<string, unknown>): Promise<SafeActionResult<unknown | undefined>>;
|
|
165
|
+
declare function getDocuments(params?: Record<string, unknown>): Promise<SafeActionResult<unknown[]>>;
|
|
166
|
+
declare function createDocument(data: Record<string, unknown>): Promise<SafeActionResult<unknown | undefined>>;
|
|
167
|
+
declare function generateOllama(data: Record<string, unknown>): Promise<SafeActionResult<unknown | undefined>>;
|
|
168
|
+
declare function sendWebhook(data: Record<string, unknown>): Promise<SafeActionResult<unknown | undefined>>;
|
|
169
|
+
declare function getWebhooks(params?: Record<string, unknown>): Promise<SafeActionResult<unknown[]>>;
|
|
170
|
+
|
|
171
|
+
export { SafeActionResult, accountQuery, addToCart, askChatGpt, batchGetInvMastDocs, batchGetItemPrices, batchGetStockData, billingUpdate, calculateTax, cardInfo, cartHdrLookup, checkoutOrder, createBinTransfer, createDocument, createFocus, createReceiving, createTransfer, customerLookup, deleteCartItems, generateAkasha, generateJoomla, generateOllama, getAddresses, getAlsoBoughtItems, getBrandFolderCategories, getCartAlsoBought, getCartLines, getCashDrawers, getCategory, getCategoryDefaults, getCategoryItems, getCodeP21, getComments, getCompanies, getCompany, getContacts, getContext, getCustomer, getCustomerDoc, getCustomerInvoiceDetail, getCustomerInvoices, getCustomerOrderDetail, getCustomerOrders, getCustomerQuoteDetail, getCustomerQuotes, getDistributors, getDocuments, getEvents, 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, healthCheck, itemCategoryLookup, itemSearch, itemSearchInfinite, listInvMastExt, ping, refreshContacts, refreshCustomers, sendWebhook, transactionSetup, updateCartLines, validateAddress, validatePayment };
|