plaza-sdk 1.3.13 → 1.3.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/lib/cjs/modules/alif-shop-api/core/products/api.js +1 -1
- package/lib/esm/modules/alif-shop-api/core/products/api.js +1 -1
- package/lib/types/src/modules/alif-shop-api/core/products/api.d.ts +3 -3
- package/lib/types/src/modules/alif-shop-api/core/products/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("../../../../common/utils.js");exports.SingleWarehouseProduct=async(s
|
|
1
|
+
"use strict";var e=require("../../../../common/utils.js");exports.SingleWarehouseProduct=async(t,s)=>t.get(`/warehouse/items/${s.productId}`,{headers:e.pasteAuthHeaderAndApikey(s.token)}),exports.UpdateWarehouseProduct=(t,s,r)=>t.put(`/warehouse/items/${s.productId}`,r,{headers:e.pasteAuthHeaderAndApikey(s.token)}),exports.WarehouseCategoriesList=(t,s)=>t.get("/warehouse/app",{headers:e.pasteAuthHeaderAndApikey(s.token)}),exports.WarehouseList=(t,{token:s="",...r})=>t.post("/warehouse/items",{params:{...r,q:r.q||""},headers:e.pasteAuthHeaderAndApikey(s)});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{pasteAuthHeaderAndApikey as e}from"../../../../common/utils.js";const o=async(o,s)=>o.get(`/warehouse/items/${s.productId}`,{headers:e(s.token)}),s=(o,s,t)=>o.put(`/warehouse/items/${s.productId}`,t,{headers:e(s.token)}),t=(o,{token:s,...t})=>o.post("/warehouse/items",{params:{...t,q:t.q||""},headers:e(s)}),r=
|
|
1
|
+
import{pasteAuthHeaderAndApikey as e}from"../../../../common/utils.js";const o=async(o,s)=>o.get(`/warehouse/items/${s.productId}`,{headers:e(s.token)}),s=(o,s,t)=>o.put(`/warehouse/items/${s.productId}`,t,{headers:e(s.token)}),t=(o,{token:s="",...t})=>o.post("/warehouse/items",{params:{...t,q:t.q||""},headers:e(s)}),r=(o,s)=>o.get("/warehouse/app",{headers:e(s.token)});export{o as SingleWarehouseProduct,s as UpdateWarehouseProduct,r as WarehouseCategoriesList,t as WarehouseList};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { CallerParam, CallerParamPayload
|
|
1
|
+
import { CallerParam, CallerParamPayload } from '../../../../common/types.js';
|
|
2
|
+
import { TokenParams } from '../../../../common/params.js';
|
|
2
3
|
import { ProductsApi } from './types.js';
|
|
3
4
|
import { ProductIdBasedParams, WarehouseProductsListParams } from './params.js';
|
|
4
5
|
import 'axios';
|
|
5
6
|
import '../../common/types.js';
|
|
6
7
|
import '../../common/interfaces.js';
|
|
7
|
-
import '../../../../common/params.js';
|
|
8
8
|
|
|
9
9
|
declare const SingleWarehouseProduct: CallerParam<ProductIdBasedParams, ProductsApi.SingleWarehouse.Response>;
|
|
10
10
|
declare const UpdateWarehouseProduct: CallerParamPayload<ProductIdBasedParams, ProductsApi.UpdateWarehouse.Request, ProductsApi.UpdateWarehouse.Response>;
|
|
11
11
|
declare const WarehouseList: CallerParam<WarehouseProductsListParams, ProductsApi.WarehouseList.Response>;
|
|
12
|
-
declare const WarehouseCategoriesList:
|
|
12
|
+
declare const WarehouseCategoriesList: CallerParam<TokenParams, ProductsApi.WarehouseCategoriesList.Response>;
|
|
13
13
|
|
|
14
14
|
export { SingleWarehouseProduct, UpdateWarehouseProduct, WarehouseCategoriesList, WarehouseList };
|
|
@@ -3,6 +3,6 @@ export { ProductsApi, ProductsEntity } from './types.js';
|
|
|
3
3
|
export { ProductIdBasedParams, WarehouseProductsListParams } from './params.js';
|
|
4
4
|
import '../../../../common/types.js';
|
|
5
5
|
import 'axios';
|
|
6
|
+
import '../../../../common/params.js';
|
|
6
7
|
import '../../common/types.js';
|
|
7
8
|
import '../../common/interfaces.js';
|
|
8
|
-
import '../../../../common/params.js';
|