arky-sdk 0.7.121 → 0.7.123
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/admin-CE4TeHS4.d.cts +996 -0
- package/dist/admin-t-kqszRx.d.ts +996 -0
- package/dist/admin.d.cts +1 -1
- package/dist/admin.d.ts +1 -1
- package/dist/index.cjs +0 -23
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -1000
- package/dist/index.d.ts +3 -1000
- package/dist/index.js +0 -23
- package/dist/index.js.map +1 -1
- package/dist/storefront-store.cjs +557 -0
- package/dist/storefront-store.cjs.map +1 -0
- package/dist/storefront-store.d.cts +5 -0
- package/dist/storefront-store.d.ts +5 -0
- package/dist/storefront-store.js +555 -0
- package/dist/storefront-store.js.map +1 -0
- package/dist/storefront.cjs +551 -35
- package/dist/storefront.cjs.map +1 -1
- package/dist/storefront.d.cts +175 -2
- package/dist/storefront.d.ts +175 -2
- package/dist/storefront.js +551 -36
- package/dist/storefront.js.map +1 -1
- package/package.json +9 -1
package/dist/index.js
CHANGED
|
@@ -428,29 +428,6 @@ var createStorefrontApi = (apiConfig, updateCustomerSession) => {
|
|
|
428
428
|
}
|
|
429
429
|
},
|
|
430
430
|
order: {
|
|
431
|
-
getQuote(params, options) {
|
|
432
|
-
const store_id = params.store_id || apiConfig.storeId;
|
|
433
|
-
const { location, store_id: _store_id, items, market, ...rest } = params;
|
|
434
|
-
const shipping_address = location ? {
|
|
435
|
-
country: location.country || "",
|
|
436
|
-
state: location.state || "",
|
|
437
|
-
city: location.city || "",
|
|
438
|
-
postal_code: location.postal_code || "",
|
|
439
|
-
name: "",
|
|
440
|
-
street1: "",
|
|
441
|
-
street2: null
|
|
442
|
-
} : rest.shipping_address;
|
|
443
|
-
return apiConfig.httpClient.post(
|
|
444
|
-
`${base(store_id)}/orders/quote`,
|
|
445
|
-
{
|
|
446
|
-
...rest,
|
|
447
|
-
items: normalizeOrderQuoteItems(items),
|
|
448
|
-
shipping_address,
|
|
449
|
-
market: market || apiConfig.market
|
|
450
|
-
},
|
|
451
|
-
options
|
|
452
|
-
);
|
|
453
|
-
},
|
|
454
431
|
get(params, options) {
|
|
455
432
|
const store_id = params.store_id || apiConfig.storeId;
|
|
456
433
|
return apiConfig.httpClient.get(
|