plaza-sdk 1.3.12 → 1.3.13
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/index.js +1 -1
- package/lib/cjs/modules/alif-shop-api/core/products/api.js +1 -1
- package/lib/cjs/modules/alif-shop-api/core/products/index.js +1 -1
- package/lib/cjs/modules/alif-shop-api/index.js +1 -1
- package/lib/esm/modules/alif-shop-api/core/index.js +1 -1
- package/lib/esm/modules/alif-shop-api/core/products/api.js +1 -1
- package/lib/esm/modules/alif-shop-api/core/products/index.js +1 -1
- package/lib/esm/modules/alif-shop-api/index.js +1 -1
- package/lib/types/src/modules/alif-shop-api/core/applications/params.d.ts +1 -1
- package/lib/types/src/modules/alif-shop-api/core/index.d.ts +1 -1
- package/lib/types/src/modules/alif-shop-api/core/products/api.d.ts +3 -2
- package/lib/types/src/modules/alif-shop-api/core/products/index.d.ts +1 -1
- package/lib/types/src/modules/alif-shop-api/core/products/types.d.ts +17 -0
- package/lib/types/src/modules/alif-shop-api/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("./auth/api.js"),r=require("./products/api.js"),
|
|
1
|
+
"use strict";var e=require("./auth/api.js"),r=require("./products/api.js"),s=require("./applications/api.js");exports.GetToken=e.GetToken,exports.RefreshToken=e.RefreshToken,exports.SingleWarehouseProduct=r.SingleWarehouseProduct,exports.UpdateWarehouseProduct=r.UpdateWarehouseProduct,exports.WarehouseCategoriesList=r.WarehouseCategoriesList,exports.WarehouseList=r.WarehouseList,exports.ApplicationsList=s.ApplicationsList,exports.DeliverableWithType=s.DeliverableWithType,exports.SingleApplication=s.SingleApplication;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("../../../../common/utils.js");exports.SingleWarehouseProduct=async(t
|
|
1
|
+
"use strict";var e=require("../../../../common/utils.js");exports.SingleWarehouseProduct=async(s,t)=>s.get(`/warehouse/items/${t.productId}`,{headers:e.pasteAuthHeaderAndApikey(t.token)}),exports.UpdateWarehouseProduct=(s,t,r)=>s.put(`/warehouse/items/${t.productId}`,r,{headers:e.pasteAuthHeaderAndApikey(t.token)}),exports.WarehouseCategoriesList=e=>e.get("/warehouse/app"),exports.WarehouseList=(s,{token:t,...r})=>s.post("/warehouse/items",{params:{...r,q:r.q||""},headers:e.pasteAuthHeaderAndApikey(t)});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("./api.js");exports.SingleWarehouseProduct=e.SingleWarehouseProduct,exports.UpdateWarehouseProduct=e.UpdateWarehouseProduct,exports.WarehouseList=e.WarehouseList;
|
|
1
|
+
"use strict";var e=require("./api.js");exports.SingleWarehouseProduct=e.SingleWarehouseProduct,exports.UpdateWarehouseProduct=e.UpdateWarehouseProduct,exports.WarehouseCategoriesList=e.WarehouseCategoriesList,exports.WarehouseList=e.WarehouseList;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("./core/auth/api.js"),r=require("./core/products/api.js"),o=require("./core/applications/api.js");exports.GetToken=e.GetToken,exports.RefreshToken=e.RefreshToken,exports.SingleWarehouseProduct=r.SingleWarehouseProduct,exports.UpdateWarehouseProduct=r.UpdateWarehouseProduct,exports.WarehouseList=r.WarehouseList,exports.ApplicationsList=o.ApplicationsList,exports.DeliverableWithType=o.DeliverableWithType,exports.SingleApplication=o.SingleApplication;
|
|
1
|
+
"use strict";var e=require("./core/auth/api.js"),r=require("./core/products/api.js"),o=require("./core/applications/api.js");exports.GetToken=e.GetToken,exports.RefreshToken=e.RefreshToken,exports.SingleWarehouseProduct=r.SingleWarehouseProduct,exports.UpdateWarehouseProduct=r.UpdateWarehouseProduct,exports.WarehouseCategoriesList=r.WarehouseCategoriesList,exports.WarehouseList=r.WarehouseList,exports.ApplicationsList=o.ApplicationsList,exports.DeliverableWithType=o.DeliverableWithType,exports.SingleApplication=o.SingleApplication;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{GetToken,RefreshToken}from"./auth/api.js";export{SingleWarehouseProduct,UpdateWarehouseProduct,WarehouseList}from"./products/api.js";export{ApplicationsList,DeliverableWithType,SingleApplication}from"./applications/api.js";
|
|
1
|
+
export{GetToken,RefreshToken}from"./auth/api.js";export{SingleWarehouseProduct,UpdateWarehouseProduct,WarehouseCategoriesList,WarehouseList}from"./products/api.js";export{ApplicationsList,DeliverableWithType,SingleApplication}from"./applications/api.js";
|
|
@@ -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)});export{o as SingleWarehouseProduct,s as UpdateWarehouseProduct,t as WarehouseList};
|
|
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=e=>e.get("/warehouse/app");export{o as SingleWarehouseProduct,s as UpdateWarehouseProduct,r as WarehouseCategoriesList,t as WarehouseList};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{SingleWarehouseProduct,UpdateWarehouseProduct,WarehouseList}from"./api.js";
|
|
1
|
+
export{SingleWarehouseProduct,UpdateWarehouseProduct,WarehouseCategoriesList,WarehouseList}from"./api.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{GetToken,RefreshToken}from"./core/auth/api.js";export{SingleWarehouseProduct,UpdateWarehouseProduct,WarehouseList}from"./core/products/api.js";export{ApplicationsList,DeliverableWithType,SingleApplication}from"./core/applications/api.js";
|
|
1
|
+
export{GetToken,RefreshToken}from"./core/auth/api.js";export{SingleWarehouseProduct,UpdateWarehouseProduct,WarehouseCategoriesList,WarehouseList}from"./core/products/api.js";export{ApplicationsList,DeliverableWithType,SingleApplication}from"./core/applications/api.js";
|
|
@@ -18,7 +18,7 @@ interface ApplicationsParams extends TokenParams {
|
|
|
18
18
|
status_key: ApplicationsEntity.Statuses | (string & {});
|
|
19
19
|
}
|
|
20
20
|
interface ApplicationIdBasedParams extends TokenParams {
|
|
21
|
-
applicationId:
|
|
21
|
+
applicationId: number;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
export type { ApplicationIdBasedParams, ApplicationsParams };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { GetToken, RefreshToken } from './auth/api.js';
|
|
2
2
|
export { AuthApi } from './auth/types.js';
|
|
3
|
-
export { SingleWarehouseProduct, UpdateWarehouseProduct, WarehouseList } from './products/api.js';
|
|
3
|
+
export { SingleWarehouseProduct, UpdateWarehouseProduct, WarehouseCategoriesList, WarehouseList } from './products/api.js';
|
|
4
4
|
export { ProductsApi, ProductsEntity } from './products/types.js';
|
|
5
5
|
export { ProductIdBasedParams, WarehouseProductsListParams } from './products/params.js';
|
|
6
6
|
export { ApplicationsList, DeliverableWithType, SingleApplication } from './applications/api.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CallerParam, CallerParamPayload } from '../../../../common/types.js';
|
|
1
|
+
import { CallerParam, CallerParamPayload, CallerNoParam } from '../../../../common/types.js';
|
|
2
2
|
import { ProductsApi } from './types.js';
|
|
3
3
|
import { ProductIdBasedParams, WarehouseProductsListParams } from './params.js';
|
|
4
4
|
import 'axios';
|
|
@@ -9,5 +9,6 @@ import '../../../../common/params.js';
|
|
|
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: CallerNoParam<ProductsApi.WarehouseCategoriesList.Response>;
|
|
12
13
|
|
|
13
|
-
export { SingleWarehouseProduct, UpdateWarehouseProduct, WarehouseList };
|
|
14
|
+
export { SingleWarehouseProduct, UpdateWarehouseProduct, WarehouseCategoriesList, WarehouseList };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { SingleWarehouseProduct, UpdateWarehouseProduct, WarehouseList } from './api.js';
|
|
1
|
+
export { SingleWarehouseProduct, UpdateWarehouseProduct, WarehouseCategoriesList, WarehouseList } from './api.js';
|
|
2
2
|
export { ProductsApi, ProductsEntity } from './types.js';
|
|
3
3
|
export { ProductIdBasedParams, WarehouseProductsListParams } from './params.js';
|
|
4
4
|
import '../../../../common/types.js';
|
|
@@ -41,6 +41,16 @@ declare namespace ProductsEntity {
|
|
|
41
41
|
is_markable: number;
|
|
42
42
|
};
|
|
43
43
|
}
|
|
44
|
+
interface WarehouseRequestStatus {
|
|
45
|
+
status: string;
|
|
46
|
+
body_ru: string;
|
|
47
|
+
body_uz: string;
|
|
48
|
+
}
|
|
49
|
+
interface WarehouseCategoryItem {
|
|
50
|
+
id: number;
|
|
51
|
+
name_ru: string;
|
|
52
|
+
name_uz: string;
|
|
53
|
+
}
|
|
44
54
|
}
|
|
45
55
|
declare namespace ProductsApi {
|
|
46
56
|
namespace SingleWarehouse {
|
|
@@ -68,6 +78,13 @@ declare namespace ProductsApi {
|
|
|
68
78
|
meta: IMetaWithPagination;
|
|
69
79
|
}
|
|
70
80
|
}
|
|
81
|
+
namespace WarehouseCategoriesList {
|
|
82
|
+
interface Response {
|
|
83
|
+
can_export_items: boolean;
|
|
84
|
+
item_categories: ProductsEntity.WarehouseCategoryItem[];
|
|
85
|
+
moderation_request_statuses: ProductsEntity.WarehouseRequestStatus[];
|
|
86
|
+
}
|
|
87
|
+
}
|
|
71
88
|
}
|
|
72
89
|
|
|
73
90
|
export { ProductsApi, ProductsEntity };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { GetToken, RefreshToken } from './core/auth/api.js';
|
|
2
2
|
export { AuthApi } from './core/auth/types.js';
|
|
3
|
-
export { SingleWarehouseProduct, UpdateWarehouseProduct, WarehouseList } from './core/products/api.js';
|
|
3
|
+
export { SingleWarehouseProduct, UpdateWarehouseProduct, WarehouseCategoriesList, WarehouseList } from './core/products/api.js';
|
|
4
4
|
export { ProductsApi, ProductsEntity } from './core/products/types.js';
|
|
5
5
|
export { ProductIdBasedParams, WarehouseProductsListParams } from './core/products/params.js';
|
|
6
6
|
export { ApplicationsList, DeliverableWithType, SingleApplication } from './core/applications/api.js';
|