plaza-sdk 1.1.8 → 1.2.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/lib/browser/bundle.iife.js +1 -1
- package/lib/browser/bundle.umd.js +1 -1
- package/lib/cjs/common/utils.js +1 -1
- package/lib/cjs/modules/alif-shop-api/core/index.js +1 -1
- package/lib/cjs/modules/alif-shop-api/core/products/api.js +1 -0
- package/lib/cjs/modules/alif-shop-api/core/products/index.js +1 -0
- package/lib/cjs/modules/alif-shop-api/core/products/params.js +1 -0
- package/lib/cjs/modules/alif-shop-api/core/products/types.js +1 -0
- package/lib/cjs/modules/alif-shop-api/core/types.js +1 -0
- package/lib/cjs/modules/alif-shop-api/index.js +1 -1
- package/lib/esm/common/utils.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 -0
- package/lib/esm/modules/alif-shop-api/core/products/index.js +1 -0
- package/lib/esm/modules/alif-shop-api/core/products/params.js +1 -0
- package/lib/esm/modules/alif-shop-api/core/products/types.js +1 -0
- package/lib/esm/modules/alif-shop-api/core/types.js +1 -0
- package/lib/esm/modules/alif-shop-api/index.js +1 -1
- package/lib/types/src/common/index.d.ts +1 -1
- package/lib/types/src/common/params.d.ts +4 -1
- package/lib/types/src/common/utils.d.ts +3 -2
- package/lib/types/src/index.d.ts +1 -1
- package/lib/types/src/modules/alif-shop-api/common/interfaces.d.ts +11 -1
- package/lib/types/src/modules/alif-shop-api/common/types.d.ts +5 -1
- package/lib/types/src/modules/alif-shop-api/core/applications/api.d.ts +1 -0
- package/lib/types/src/modules/alif-shop-api/core/applications/index.d.ts +2 -1
- package/lib/types/src/modules/alif-shop-api/core/applications/params.d.ts +2 -4
- package/lib/types/src/modules/alif-shop-api/core/auth/api.d.ts +3 -3
- package/lib/types/src/modules/alif-shop-api/core/auth/index.d.ts +1 -1
- package/lib/types/src/modules/alif-shop-api/core/auth/types.d.ts +2 -2
- package/lib/types/src/modules/alif-shop-api/core/index.d.ts +7 -2
- package/lib/types/src/modules/alif-shop-api/core/products/api.d.ts +13 -0
- package/lib/types/src/modules/alif-shop-api/core/products/index.d.ts +8 -0
- package/lib/types/src/modules/alif-shop-api/core/products/params.d.ts +18 -0
- package/lib/types/src/modules/alif-shop-api/core/products/types.d.ts +73 -0
- package/lib/types/src/modules/alif-shop-api/core/types.d.ts +3 -0
- package/lib/types/src/modules/alif-shop-api/index.d.ts +7 -2
- package/lib/types/src/modules/index.d.ts +1 -1
- package/lib/types/src/modules/uzum-market-api/core/index.d.ts +1 -1
- package/lib/types/src/modules/uzum-market-api/core/products/api.d.ts +1 -0
- package/lib/types/src/modules/uzum-market-api/core/products/index.d.ts +1 -0
- package/lib/types/src/modules/uzum-market-api/core/products/mappers.d.ts +1 -0
- package/lib/types/src/modules/uzum-market-api/core/products/params.d.ts +3 -2
- package/lib/types/src/modules/uzum-market-api/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
var plazaSdk=function(e){"use strict";return e.getNumber=(e,r=0)=>{if("number"==typeof e)return e;if("string"==typeof e){const t=parseFloat(e);return isNaN(t)?r:t}return r},e.pasteAuthHeader=e=>({Authorization:`Bearer ${e}`}),e.pasteAuthHeaderAndApikey=(e,r="2qHIakuLe5")=>({Authorization:`Bearer ${e}`,
|
|
1
|
+
var plazaSdk=function(e){"use strict";return e.getNumber=(e,r=0)=>{if("number"==typeof e)return e;if("string"==typeof e){const t=parseFloat(e);return isNaN(t)?r:t}return r},e.pasteAuthHeader=e=>({Authorization:`Bearer ${e}`}),e.pasteAuthHeaderAndApikey=(e,r="2qHIakuLe5",t="apikey")=>({Authorization:`Bearer ${e}`,[t]:r,locale:"ru"}),e}({});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).plazaSdk={})}(this,function(e){"use strict";e.getNumber=(e,t=0)=>{if("number"==typeof e)return e;if("string"==typeof e){const
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).plazaSdk={})}(this,function(e){"use strict";e.getNumber=(e,t=0)=>{if("number"==typeof e)return e;if("string"==typeof e){const o=parseFloat(e);return isNaN(o)?t:o}return t},e.pasteAuthHeader=e=>({Authorization:`Bearer ${e}`}),e.pasteAuthHeaderAndApikey=(e,t="2qHIakuLe5",o="apikey")=>({Authorization:`Bearer ${e}`,[o]:t,locale:"ru"})});
|
package/lib/cjs/common/utils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";exports.getNumber=(e,r=0)=>{if("number"==typeof e)return e;if("string"==typeof e){const t=parseFloat(e);return isNaN(t)?r:t}return r},exports.pasteAuthHeader=e=>({Authorization:`Bearer ${e}`}),exports.pasteAuthHeaderAndApikey=(e,r="2qHIakuLe5")=>({Authorization:`Bearer ${e}`,
|
|
1
|
+
"use strict";exports.getNumber=(e,r=0)=>{if("number"==typeof e)return e;if("string"==typeof e){const t=parseFloat(e);return isNaN(t)?r:t}return r},exports.pasteAuthHeader=e=>({Authorization:`Bearer ${e}`}),exports.pasteAuthHeaderAndApikey=(e,r="2qHIakuLe5",t="apikey")=>({Authorization:`Bearer ${e}`,[t]:r,locale:"ru"});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("./auth/api.js"),s=require("./applications/api.js");exports.GetToken=e.GetToken,exports.RefreshToken=e.RefreshToken,exports.ApplicationsList=s.ApplicationsList;
|
|
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.WarehouseList=r.WarehouseList,exports.ApplicationsList=s.ApplicationsList;
|
|
@@ -0,0 +1 @@
|
|
|
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.WarehouseList=(t,{token:s,...r})=>t.post("/warehouse/items",{params:{...r,q:r.q||""},headers:e.pasteAuthHeaderAndApikey(s)});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e=require("./api.js");exports.SingleWarehouseProduct=e.SingleWarehouseProduct,exports.UpdateWarehouseProduct=e.UpdateWarehouseProduct,exports.WarehouseList=e.WarehouseList;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("./core/auth/api.js"),
|
|
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;
|
package/lib/esm/common/utils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const r=(r,e=0)=>{if("number"==typeof r)return r;if("string"==typeof r){const t=parseFloat(r);return isNaN(t)?e:t}return e},e=r=>({Authorization:`Bearer ${r}`}),t=(r,e="2qHIakuLe5")=>({Authorization:`Bearer ${r}`,
|
|
1
|
+
const r=(r,e=0)=>{if("number"==typeof r)return r;if("string"==typeof r){const t=parseFloat(r);return isNaN(t)?e:t}return e},e=r=>({Authorization:`Bearer ${r}`}),t=(r,e="2qHIakuLe5",t="apikey")=>({Authorization:`Bearer ${r}`,[t]:e,locale:"ru"});export{r as getNumber,e as pasteAuthHeader,t as pasteAuthHeaderAndApikey};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{GetToken,RefreshToken}from"./auth/api.js";export{ApplicationsList}from"./applications/api.js";
|
|
1
|
+
export{GetToken,RefreshToken}from"./auth/api.js";export{SingleWarehouseProduct,UpdateWarehouseProduct,WarehouseList}from"./products/api.js";export{ApplicationsList}from"./applications/api.js";
|
|
@@ -0,0 +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};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{SingleWarehouseProduct,UpdateWarehouseProduct,WarehouseList}from"./api.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{GetToken,RefreshToken}from"./core/auth/api.js";export{ApplicationsList}from"./core/applications/api.js";
|
|
1
|
+
export{GetToken,RefreshToken}from"./core/auth/api.js";export{SingleWarehouseProduct,UpdateWarehouseProduct,WarehouseList}from"./core/products/api.js";export{ApplicationsList}from"./core/applications/api.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { BooleanNullable, CallerNoParam, CallerParam, CallerParamPayload, CallerPayload, NumberNullable, NumberRange, StringNullable } from './types.js';
|
|
2
2
|
export { getNumber, pasteAuthHeader, pasteAuthHeaderAndApikey } from './utils.js';
|
|
3
|
-
export { UsernamePasswordParams } from './params.js';
|
|
3
|
+
export { TokenParams, UsernamePasswordParams } from './params.js';
|
|
4
4
|
export { IMultiLang, IMultiLangArray } from './interfaces.js';
|
|
5
5
|
import 'axios';
|
|
@@ -2,9 +2,10 @@ declare const getNumber: (value: unknown, defaultValue?: number) => number;
|
|
|
2
2
|
declare const pasteAuthHeader: (token: string) => {
|
|
3
3
|
Authorization: string;
|
|
4
4
|
};
|
|
5
|
-
declare const pasteAuthHeaderAndApikey: (token: string, apikey?: string) => {
|
|
5
|
+
declare const pasteAuthHeaderAndApikey: (token: string, apikey?: string, apikeyFieldName?: string) => {
|
|
6
|
+
[x: string]: string;
|
|
6
7
|
Authorization: string;
|
|
7
|
-
|
|
8
|
+
locale: string;
|
|
8
9
|
};
|
|
9
10
|
|
|
10
11
|
export { getNumber, pasteAuthHeader, pasteAuthHeaderAndApikey };
|
package/lib/types/src/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { BooleanNullable, CallerNoParam, CallerParam, CallerParamPayload, CallerPayload, NumberNullable, NumberRange, StringNullable } from './common/types.js';
|
|
2
2
|
export { getNumber, pasteAuthHeader, pasteAuthHeaderAndApikey } from './common/utils.js';
|
|
3
|
-
export { UsernamePasswordParams } from './common/params.js';
|
|
3
|
+
export { TokenParams, UsernamePasswordParams } from './common/params.js';
|
|
4
4
|
export { IMultiLang, IMultiLangArray } from './common/interfaces.js';
|
|
5
5
|
import 'axios';
|
|
@@ -11,10 +11,20 @@ interface ILinks {
|
|
|
11
11
|
prev: string | null;
|
|
12
12
|
next: string | null;
|
|
13
13
|
}
|
|
14
|
+
interface IMetaLink {
|
|
15
|
+
url: string;
|
|
16
|
+
label: string;
|
|
17
|
+
active: boolean;
|
|
18
|
+
}
|
|
19
|
+
interface IMetaWithPagination extends IMeta {
|
|
20
|
+
total: number;
|
|
21
|
+
last_page: number;
|
|
22
|
+
links: IMetaLink[];
|
|
23
|
+
}
|
|
14
24
|
interface IPaginatedResponse<T> {
|
|
15
25
|
data: T;
|
|
16
26
|
meta: IMeta;
|
|
17
27
|
links: ILinks;
|
|
18
28
|
}
|
|
19
29
|
|
|
20
|
-
export type { ILinks, IMeta, IPaginatedResponse };
|
|
30
|
+
export type { ILinks, IMeta, IMetaLink, IMetaWithPagination, IPaginatedResponse };
|
|
@@ -3,6 +3,7 @@ import { ApplicationsApi } from './types.js';
|
|
|
3
3
|
import { ApplicationsParams } from './params.js';
|
|
4
4
|
import 'axios';
|
|
5
5
|
import '../../common/interfaces.js';
|
|
6
|
+
import '../../../../common/params.js';
|
|
6
7
|
|
|
7
8
|
declare const ApplicationsList: CallerParam<ApplicationsParams, ApplicationsApi.List.Response>;
|
|
8
9
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { ApplicationsList } from './api.js';
|
|
2
2
|
export { ApplicationsApi, ApplicationsEntity } from './types.js';
|
|
3
|
-
export { ApplicationsParams
|
|
3
|
+
export { ApplicationsParams } from './params.js';
|
|
4
4
|
import '../../../../common/types.js';
|
|
5
5
|
import 'axios';
|
|
6
6
|
import '../../common/interfaces.js';
|
|
7
|
+
import '../../../../common/params.js';
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { NumberRange } from '../../../../common/types.js';
|
|
2
|
+
import { TokenParams } from '../../../../common/params.js';
|
|
2
3
|
import { ApplicationsEntity } from './types.js';
|
|
3
4
|
import 'axios';
|
|
4
5
|
import '../../common/interfaces.js';
|
|
5
6
|
|
|
6
|
-
interface TokenParams {
|
|
7
|
-
token: string;
|
|
8
|
-
}
|
|
9
7
|
interface ApplicationsParams extends TokenParams {
|
|
10
8
|
page: number;
|
|
11
9
|
per_page?: number;
|
|
@@ -20,4 +18,4 @@ interface ApplicationsParams extends TokenParams {
|
|
|
20
18
|
status_key: ApplicationsEntity.Statuses | (string & {});
|
|
21
19
|
}
|
|
22
20
|
|
|
23
|
-
export type { ApplicationsParams
|
|
21
|
+
export type { ApplicationsParams };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { CallerPayload } from '../../../../common/types.js';
|
|
2
|
-
import {
|
|
2
|
+
import { AuthApi } from './types.js';
|
|
3
3
|
import 'axios';
|
|
4
4
|
import '../../../../common/params.js';
|
|
5
5
|
|
|
6
|
-
declare const GetToken: CallerPayload<
|
|
7
|
-
declare const RefreshToken: CallerPayload<
|
|
6
|
+
declare const GetToken: CallerPayload<AuthApi.GetToken.Request, AuthApi.CommonResponse>;
|
|
7
|
+
declare const RefreshToken: CallerPayload<AuthApi.RefreshToken.Request, AuthApi.CommonResponse>;
|
|
8
8
|
|
|
9
9
|
export { GetToken, RefreshToken };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UsernamePasswordParams } from '../../../../common/params.js';
|
|
2
2
|
|
|
3
|
-
declare namespace
|
|
3
|
+
declare namespace AuthApi {
|
|
4
4
|
interface CommonResponse {
|
|
5
5
|
access_token: string;
|
|
6
6
|
expires_in: number;
|
|
@@ -24,4 +24,4 @@ declare namespace IAuth {
|
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
export {
|
|
27
|
+
export { AuthApi };
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
export { GetToken, RefreshToken } from './auth/api.js';
|
|
2
|
-
export {
|
|
2
|
+
export { AuthApi } from './auth/types.js';
|
|
3
|
+
export { SingleWarehouseProduct, UpdateWarehouseProduct, WarehouseList } from './products/api.js';
|
|
4
|
+
export { ProductsApi, ProductsEntity } from './products/types.js';
|
|
5
|
+
export { ProductIdBasedParams, WarehouseProductsListParams } from './products/params.js';
|
|
3
6
|
export { ApplicationsList } from './applications/api.js';
|
|
4
7
|
export { ApplicationsApi, ApplicationsEntity } from './applications/types.js';
|
|
5
|
-
export { ApplicationsParams
|
|
8
|
+
export { ApplicationsParams } from './applications/params.js';
|
|
9
|
+
export { AlifShopEntity } from './types.js';
|
|
6
10
|
import '../../../common/types.js';
|
|
7
11
|
import 'axios';
|
|
8
12
|
import '../../../common/params.js';
|
|
13
|
+
import '../common/types.js';
|
|
9
14
|
import '../common/interfaces.js';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { CallerParam, CallerParamPayload } from '../../../../common/types.js';
|
|
2
|
+
import { ProductsApi } from './types.js';
|
|
3
|
+
import { ProductIdBasedParams, WarehouseProductsListParams } from './params.js';
|
|
4
|
+
import 'axios';
|
|
5
|
+
import '../../common/types.js';
|
|
6
|
+
import '../../common/interfaces.js';
|
|
7
|
+
import '../../../../common/params.js';
|
|
8
|
+
|
|
9
|
+
declare const SingleWarehouseProduct: CallerParam<ProductIdBasedParams, ProductsApi.SingleWarehouse.Response>;
|
|
10
|
+
declare const UpdateWarehouseProduct: CallerParamPayload<ProductIdBasedParams, ProductsApi.UpdateWarehouse.Request, ProductsApi.UpdateWarehouse.Response>;
|
|
11
|
+
declare const WarehouseList: CallerParam<WarehouseProductsListParams, ProductsApi.WarehouseList.Response>;
|
|
12
|
+
|
|
13
|
+
export { SingleWarehouseProduct, UpdateWarehouseProduct, WarehouseList };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { SingleWarehouseProduct, UpdateWarehouseProduct, WarehouseList } from './api.js';
|
|
2
|
+
export { ProductsApi, ProductsEntity } from './types.js';
|
|
3
|
+
export { ProductIdBasedParams, WarehouseProductsListParams } from './params.js';
|
|
4
|
+
import '../../../../common/types.js';
|
|
5
|
+
import 'axios';
|
|
6
|
+
import '../../common/types.js';
|
|
7
|
+
import '../../common/interfaces.js';
|
|
8
|
+
import '../../../../common/params.js';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { NumberRange } from '../../../../common/types.js';
|
|
2
|
+
import { TokenParams } from '../../../../common/params.js';
|
|
3
|
+
import 'axios';
|
|
4
|
+
|
|
5
|
+
interface ProductIdBasedParams extends TokenParams {
|
|
6
|
+
productId: number;
|
|
7
|
+
}
|
|
8
|
+
interface WarehouseProductsListParams extends TokenParams {
|
|
9
|
+
per_page: number;
|
|
10
|
+
page: number;
|
|
11
|
+
category_id?: number;
|
|
12
|
+
quantity?: number;
|
|
13
|
+
has_offer?: NumberRange<0, 1>;
|
|
14
|
+
is_visible?: NumberRange<0, 1>;
|
|
15
|
+
q?: string;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export type { ProductIdBasedParams, WarehouseProductsListParams };
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { CardImage } from '../../common/types.js';
|
|
2
|
+
import { ILinks, IMetaWithPagination } from '../../common/interfaces.js';
|
|
3
|
+
|
|
4
|
+
declare namespace ProductsEntity {
|
|
5
|
+
interface AlifshopOffer {
|
|
6
|
+
id: number;
|
|
7
|
+
product_id: number;
|
|
8
|
+
price: number;
|
|
9
|
+
slug: string;
|
|
10
|
+
is_visible: boolean;
|
|
11
|
+
created_at: string;
|
|
12
|
+
updated_at: string;
|
|
13
|
+
product: {
|
|
14
|
+
id: number;
|
|
15
|
+
name: string;
|
|
16
|
+
title_image: string | null;
|
|
17
|
+
images: CardImage[];
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
interface WarehouseProduct {
|
|
21
|
+
id: number;
|
|
22
|
+
merchant_id: number;
|
|
23
|
+
sku: string;
|
|
24
|
+
name: string;
|
|
25
|
+
ikpu: string;
|
|
26
|
+
is_markable: number;
|
|
27
|
+
original_price: number;
|
|
28
|
+
price: number;
|
|
29
|
+
quantity: number;
|
|
30
|
+
third_category_id: number;
|
|
31
|
+
third_category_name: string;
|
|
32
|
+
category_id: number;
|
|
33
|
+
category_name: string;
|
|
34
|
+
created_at: string;
|
|
35
|
+
updated_at: string;
|
|
36
|
+
alifshop_offer: AlifshopOffer | null;
|
|
37
|
+
category: string;
|
|
38
|
+
item_category: {
|
|
39
|
+
id: number;
|
|
40
|
+
name: string;
|
|
41
|
+
is_markable: number;
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
declare namespace ProductsApi {
|
|
46
|
+
namespace SingleWarehouse {
|
|
47
|
+
interface Response {
|
|
48
|
+
data: ProductsEntity.WarehouseProduct;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
namespace UpdateWarehouse {
|
|
52
|
+
interface Request {
|
|
53
|
+
name: string;
|
|
54
|
+
ikpu: string;
|
|
55
|
+
sku: string;
|
|
56
|
+
price: number;
|
|
57
|
+
quantity: number;
|
|
58
|
+
}
|
|
59
|
+
interface Response {
|
|
60
|
+
message: string;
|
|
61
|
+
item: ProductsEntity.WarehouseProduct;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
namespace WarehouseList {
|
|
65
|
+
interface Response {
|
|
66
|
+
data: ProductsEntity.WarehouseProduct[];
|
|
67
|
+
links: ILinks;
|
|
68
|
+
meta: IMetaWithPagination;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export { ProductsApi, ProductsEntity };
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
export { GetToken, RefreshToken } from './core/auth/api.js';
|
|
2
|
-
export {
|
|
2
|
+
export { AuthApi } from './core/auth/types.js';
|
|
3
|
+
export { SingleWarehouseProduct, UpdateWarehouseProduct, WarehouseList } from './core/products/api.js';
|
|
4
|
+
export { ProductsApi, ProductsEntity } from './core/products/types.js';
|
|
5
|
+
export { ProductIdBasedParams, WarehouseProductsListParams } from './core/products/params.js';
|
|
3
6
|
export { ApplicationsList } from './core/applications/api.js';
|
|
4
7
|
export { ApplicationsApi, ApplicationsEntity } from './core/applications/types.js';
|
|
5
|
-
export { ApplicationsParams
|
|
8
|
+
export { ApplicationsParams } from './core/applications/params.js';
|
|
9
|
+
export { AlifShopEntity } from './core/types.js';
|
|
6
10
|
import '../../common/types.js';
|
|
7
11
|
import 'axios';
|
|
8
12
|
import '../../common/params.js';
|
|
13
|
+
import './common/types.js';
|
|
9
14
|
import './common/interfaces.js';
|
|
@@ -4,11 +4,11 @@ export { GetTokenParams, RefreshTokenParams } from './uzum-market-api/core/auth/
|
|
|
4
4
|
export { AddPromotion, ArchiveProduct, CheckSkuExists, CreateProduct, GetProduct, InvolvedProductsList, ProductDescription, ProductsList, RemovePromotion, SendSkuData, UnarchiveProduct } from './uzum-market-api/core/products/api.js';
|
|
5
5
|
export { IApi } from './uzum-market-api/core/products/types.js';
|
|
6
6
|
export { CorePaginationParams, InvolvedProductsParams, ProductIdBasedParams, ProductListParams, SkuBasedParams, SkuIdBasedParams, TokenAndShopId } from './uzum-market-api/core/products/params.js';
|
|
7
|
+
export { UzumMarketEntity } from './uzum-market-api/core/types.js';
|
|
7
8
|
import '../common/types.js';
|
|
8
9
|
import 'axios';
|
|
9
10
|
import './uzum-market-api/core/auth/enums.js';
|
|
10
11
|
import '../common/params.js';
|
|
11
|
-
import './uzum-market-api/core/types.js';
|
|
12
12
|
import './uzum-market-api/common/interfaces.js';
|
|
13
13
|
import '../common/interfaces.js';
|
|
14
14
|
import './uzum-market-api/common/types.js';
|
|
@@ -4,11 +4,11 @@ export { GetTokenParams, RefreshTokenParams } from './auth/params.js';
|
|
|
4
4
|
export { AddPromotion, ArchiveProduct, CheckSkuExists, CreateProduct, GetProduct, InvolvedProductsList, ProductDescription, ProductsList, RemovePromotion, SendSkuData, UnarchiveProduct } from './products/api.js';
|
|
5
5
|
export { IApi } from './products/types.js';
|
|
6
6
|
export { CorePaginationParams, InvolvedProductsParams, ProductIdBasedParams, ProductListParams, SkuBasedParams, SkuIdBasedParams, TokenAndShopId } from './products/params.js';
|
|
7
|
+
export { UzumMarketEntity } from './types.js';
|
|
7
8
|
import '../../../common/types.js';
|
|
8
9
|
import 'axios';
|
|
9
10
|
import './auth/enums.js';
|
|
10
11
|
import '../../../common/params.js';
|
|
11
|
-
import './types.js';
|
|
12
12
|
import '../common/interfaces.js';
|
|
13
13
|
import '../../../common/interfaces.js';
|
|
14
14
|
import '../common/types.js';
|
|
@@ -6,6 +6,7 @@ import '../../common/interfaces.js';
|
|
|
6
6
|
import '../../../../common/interfaces.js';
|
|
7
7
|
import '../../common/types.js';
|
|
8
8
|
import 'axios';
|
|
9
|
+
import '../../../../common/params.js';
|
|
9
10
|
|
|
10
11
|
declare const ArchiveProduct: CallerParam<SkuIdBasedParams, IApi.ArchiveProduct.Response>;
|
|
11
12
|
declare const UnarchiveProduct: CallerParam<SkuIdBasedParams, IApi.UnarchiveProduct.Response>;
|
|
@@ -4,11 +4,11 @@ export { GetTokenParams, RefreshTokenParams } from './core/auth/params.js';
|
|
|
4
4
|
export { AddPromotion, ArchiveProduct, CheckSkuExists, CreateProduct, GetProduct, InvolvedProductsList, ProductDescription, ProductsList, RemovePromotion, SendSkuData, UnarchiveProduct } from './core/products/api.js';
|
|
5
5
|
export { IApi } from './core/products/types.js';
|
|
6
6
|
export { CorePaginationParams, InvolvedProductsParams, ProductIdBasedParams, ProductListParams, SkuBasedParams, SkuIdBasedParams, TokenAndShopId } from './core/products/params.js';
|
|
7
|
+
export { UzumMarketEntity } from './core/types.js';
|
|
7
8
|
import '../../common/types.js';
|
|
8
9
|
import 'axios';
|
|
9
10
|
import './core/auth/enums.js';
|
|
10
11
|
import '../../common/params.js';
|
|
11
|
-
import './core/types.js';
|
|
12
12
|
import './common/interfaces.js';
|
|
13
13
|
import '../../common/interfaces.js';
|
|
14
14
|
import './common/types.js';
|