@simpleapps-com/augur-server 2.1.0 → 2.1.1
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 +1 -2
- package/dist/actions.js +1 -1
- package/dist/{chunk-UHXT3SZL.js → chunk-HLVRV3KZ.js} +26 -52
- package/dist/chunk-HLVRV3KZ.js.map +1 -0
- package/dist/index.d.ts +4 -50
- package/dist/index.js +1 -146
- package/dist/index.js.map +1 -1
- package/dist/{server-site-registry-CO6kl6vO.d.ts → server-site-registry-DWEjDPIz.d.ts} +1 -1
- package/dist/site-GdPO-aW1.d.ts +299 -0
- package/dist/site.d.ts +3 -3
- package/dist/site.js +1 -1
- package/dist/smarty-streets-BnEIKoi8.d.ts +158 -0
- package/dist/testing.d.ts +3 -4
- package/dist/testing.js +1 -1
- package/package.json +5 -5
- package/dist/chunk-UHXT3SZL.js.map +0 -1
- package/dist/site-CwPu_puI.d.ts +0 -1032
- package/dist/smarty-streets-xhe-ldMO.d.ts +0 -349
package/dist/actions.d.ts
CHANGED
|
@@ -2,8 +2,7 @@ import { ListResult } from '@simpleapps-com/augur-core';
|
|
|
2
2
|
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
|
-
import { P as PaginatedResult, G as GetItemCategoryOptions,
|
|
6
|
-
import '@simpleapps-com/augur-api';
|
|
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';
|
|
7
6
|
|
|
8
7
|
declare function getCustomer(customerId: number): Promise<SafeActionResult<CustomerDocument>>;
|
|
9
8
|
declare function customerLookup(params: Record<string, unknown>): Promise<SafeActionResult<ListResult<CustomerDocument>>>;
|
package/dist/actions.js
CHANGED
|
@@ -197,6 +197,9 @@ function paginateOffset(items, pageParam, limit, total) {
|
|
|
197
197
|
};
|
|
198
198
|
}
|
|
199
199
|
|
|
200
|
+
// src/actions/site.ts
|
|
201
|
+
import { createActionsProxy } from "@simpleapps-com/augur-core";
|
|
202
|
+
|
|
200
203
|
// src/actions/pricing.ts
|
|
201
204
|
function resolveCustomerId(explicit, fallback) {
|
|
202
205
|
const raw = explicit ?? fallback;
|
|
@@ -613,28 +616,6 @@ function createCommerceActions(api, config = {}) {
|
|
|
613
616
|
};
|
|
614
617
|
}
|
|
615
618
|
|
|
616
|
-
// src/actions/orders.ts
|
|
617
|
-
function createOrderActions(api, config = {}) {
|
|
618
|
-
const { cachePrefix = "", edgeCache = 1, redisTtl = 3600 } = config;
|
|
619
|
-
async function getOrderDoc(orderNo, postalCode) {
|
|
620
|
-
return withServerCache(
|
|
621
|
-
cachePrefix,
|
|
622
|
-
redisTtl,
|
|
623
|
-
"orders.oeHdr.doc.get",
|
|
624
|
-
async () => {
|
|
625
|
-
const response = await api.orders.oeHdr.doc.get(Number(orderNo), {
|
|
626
|
-
postalCode,
|
|
627
|
-
edgeCache
|
|
628
|
-
});
|
|
629
|
-
return response.data;
|
|
630
|
-
},
|
|
631
|
-
orderNo,
|
|
632
|
-
postalCode
|
|
633
|
-
);
|
|
634
|
-
}
|
|
635
|
-
return { getOrderDoc };
|
|
636
|
-
}
|
|
637
|
-
|
|
638
619
|
// src/actions/search.ts
|
|
639
620
|
function createSearchActions(api, config = {}) {
|
|
640
621
|
const {
|
|
@@ -741,6 +722,28 @@ function createSearchActions(api, config = {}) {
|
|
|
741
722
|
};
|
|
742
723
|
}
|
|
743
724
|
|
|
725
|
+
// src/actions/orders.ts
|
|
726
|
+
function createOrderActions(api, config = {}) {
|
|
727
|
+
const { cachePrefix = "", edgeCache = 1, redisTtl = 3600 } = config;
|
|
728
|
+
async function getOrderDoc(orderNo, postalCode) {
|
|
729
|
+
return withServerCache(
|
|
730
|
+
cachePrefix,
|
|
731
|
+
redisTtl,
|
|
732
|
+
"orders.oeHdr.doc.get",
|
|
733
|
+
async () => {
|
|
734
|
+
const response = await api.orders.oeHdr.doc.get(Number(orderNo), {
|
|
735
|
+
postalCode,
|
|
736
|
+
edgeCache
|
|
737
|
+
});
|
|
738
|
+
return response.data;
|
|
739
|
+
},
|
|
740
|
+
orderNo,
|
|
741
|
+
postalCode
|
|
742
|
+
);
|
|
743
|
+
}
|
|
744
|
+
return { getOrderDoc };
|
|
745
|
+
}
|
|
746
|
+
|
|
744
747
|
// src/actions/shipping.ts
|
|
745
748
|
function createShippingActions(api, config) {
|
|
746
749
|
const {
|
|
@@ -2354,7 +2357,6 @@ function createSlackActions(api, config = {}) {
|
|
|
2354
2357
|
}
|
|
2355
2358
|
|
|
2356
2359
|
// src/actions/site.ts
|
|
2357
|
-
import { createActionsProxy } from "@simpleapps-com/augur-core";
|
|
2358
2360
|
function createSiteActions(api, config = {}) {
|
|
2359
2361
|
const siteId = api.config?.siteId ?? "";
|
|
2360
2362
|
const {
|
|
@@ -2624,43 +2626,15 @@ export {
|
|
|
2624
2626
|
getCircuitState,
|
|
2625
2627
|
isRedisConnected,
|
|
2626
2628
|
sdkCall,
|
|
2627
|
-
toListResult,
|
|
2628
2629
|
safeAction,
|
|
2629
2630
|
unwrap,
|
|
2630
2631
|
unwrapOr,
|
|
2631
2632
|
batchFetch,
|
|
2632
2633
|
withServerCache,
|
|
2633
2634
|
paginateOffset,
|
|
2634
|
-
createPricingActions,
|
|
2635
|
-
createItemActions,
|
|
2636
|
-
createCommerceActions,
|
|
2637
|
-
createOrderActions,
|
|
2638
|
-
createSearchActions,
|
|
2639
|
-
createShippingActions,
|
|
2640
|
-
createJoomlaActions,
|
|
2641
|
-
createLegacyActions,
|
|
2642
|
-
createCustomersActions,
|
|
2643
|
-
createSmartyStreetsActions,
|
|
2644
|
-
createP21PimActions,
|
|
2645
|
-
createAgrSiteActions,
|
|
2646
|
-
createAvalaraActions,
|
|
2647
|
-
createPaymentsActions,
|
|
2648
|
-
createUpsActions,
|
|
2649
|
-
createLogisticsActions,
|
|
2650
|
-
createNexusActions,
|
|
2651
|
-
createVmiActions,
|
|
2652
|
-
createP21CoreActions,
|
|
2653
|
-
createP21ApisActions,
|
|
2654
|
-
createP21SismActions,
|
|
2655
|
-
createAgrWorkActions,
|
|
2656
|
-
createAgrInfoActions,
|
|
2657
|
-
createBasecamp2Actions,
|
|
2658
|
-
createBrandFolderActions,
|
|
2659
|
-
createGregorovichActions,
|
|
2660
|
-
createSlackActions,
|
|
2661
2635
|
createSiteActions,
|
|
2662
2636
|
registerSiteActions,
|
|
2663
2637
|
getSiteActions,
|
|
2664
2638
|
clearSiteActions
|
|
2665
2639
|
};
|
|
2666
|
-
//# sourceMappingURL=chunk-
|
|
2640
|
+
//# sourceMappingURL=chunk-HLVRV3KZ.js.map
|