plaza-sdk 1.2.0 → 1.3.0
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-client-api/common/interfaces.js +1 -0
- package/lib/cjs/modules/alif-shop-client-api/common/types.js +1 -0
- package/lib/cjs/modules/alif-shop-client-api/core/auth/api.js +1 -0
- package/lib/cjs/modules/alif-shop-client-api/core/auth/index.js +1 -0
- package/lib/cjs/modules/alif-shop-client-api/core/index.js +1 -0
- package/lib/cjs/modules/alif-shop-client-api/index.js +1 -0
- package/lib/cjs/modules/index.js +1 -1
- package/lib/esm/modules/alif-shop-client-api/common/interfaces.js +1 -0
- package/lib/esm/modules/alif-shop-client-api/common/types.js +1 -0
- package/lib/esm/modules/alif-shop-client-api/core/auth/api.js +1 -0
- package/lib/esm/modules/alif-shop-client-api/core/auth/index.js +1 -0
- package/lib/esm/modules/alif-shop-client-api/core/index.js +1 -0
- package/lib/esm/modules/alif-shop-client-api/index.js +1 -0
- package/lib/esm/modules/index.js +1 -1
- 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 +1 -1
- package/lib/types/src/modules/alif-shop-api/index.d.ts +1 -1
- package/lib/types/src/modules/alif-shop-client-api/common/interfaces.d.ts +2 -0
- package/lib/types/src/modules/alif-shop-client-api/common/types.d.ts +2 -0
- package/lib/types/src/modules/alif-shop-client-api/core/auth/api.d.ts +14 -0
- package/lib/types/src/modules/alif-shop-client-api/core/auth/index.d.ts +3 -0
- package/lib/types/src/modules/alif-shop-client-api/core/index.d.ts +3 -0
- package/lib/types/src/modules/alif-shop-client-api/index.d.ts +3 -0
- package/lib/types/src/modules/index.d.ts +2 -14
- package/package.json +6 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";exports.Login=(e,t)=>{const{name:s="",...o}=t;return e.post("/auth/login",{name:s,...o},{headers:{"accept-language":"uz","service-token":"service-token-alifshop"}})},exports.RequestLogin=(e,t)=>e.post("/auth/request-login",t,{headers:{"accept-language":"uz","service-token":"service-token-alifshop"}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e=require("./api.js");exports.Login=e.Login,exports.RequestLogin=e.RequestLogin;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e=require("./auth/api.js");exports.Login=e.Login,exports.RequestLogin=e.RequestLogin;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e=require("./core/auth/api.js");exports.Login=e.Login,exports.RequestLogin=e.RequestLogin;
|
package/lib/cjs/modules/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=(e,t)=>e.post("/auth/request-login",t,{headers:{"accept-language":"uz","service-token":"service-token-alifshop"}}),t=(e,t)=>{const{name:a="",...n}=t;return e.post("/auth/login",{name:a,...n},{headers:{"accept-language":"uz","service-token":"service-token-alifshop"}})};export{t as Login,e as RequestLogin};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{Login,RequestLogin}from"./api.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{Login,RequestLogin}from"./auth/api.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{Login,RequestLogin}from"./core/auth/api.js";
|
package/lib/esm/modules/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
@@ -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,5 +1,5 @@
|
|
|
1
1
|
export { GetToken, RefreshToken } from './auth/api.js';
|
|
2
|
-
export {
|
|
2
|
+
export { AuthApi } from './auth/types.js';
|
|
3
3
|
export { SingleWarehouseProduct, UpdateWarehouseProduct, WarehouseList } from './products/api.js';
|
|
4
4
|
export { ProductsApi, ProductsEntity } from './products/types.js';
|
|
5
5
|
export { ProductIdBasedParams, WarehouseProductsListParams } from './products/params.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { GetToken, RefreshToken } from './core/auth/api.js';
|
|
2
|
-
export {
|
|
2
|
+
export { AuthApi } from './core/auth/types.js';
|
|
3
3
|
export { SingleWarehouseProduct, UpdateWarehouseProduct, 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';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { CallerPayload } from '../../../../common/types.js';
|
|
2
|
+
import 'axios';
|
|
3
|
+
|
|
4
|
+
declare const RequestLogin: CallerPayload<{
|
|
5
|
+
phone: string;
|
|
6
|
+
}>;
|
|
7
|
+
declare const Login: CallerPayload<{
|
|
8
|
+
name?: string;
|
|
9
|
+
otp: string;
|
|
10
|
+
phone: string;
|
|
11
|
+
remember_me: boolean;
|
|
12
|
+
}>;
|
|
13
|
+
|
|
14
|
+
export { Login, RequestLogin };
|
|
@@ -1,14 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export {
|
|
3
|
-
export { GetTokenParams, RefreshTokenParams } from './uzum-market-api/core/auth/params.js';
|
|
4
|
-
export { AddPromotion, ArchiveProduct, CheckSkuExists, CreateProduct, GetProduct, InvolvedProductsList, ProductDescription, ProductsList, RemovePromotion, SendSkuData, UnarchiveProduct } from './uzum-market-api/core/products/api.js';
|
|
5
|
-
export { IApi } from './uzum-market-api/core/products/types.js';
|
|
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';
|
|
8
|
-
import '../common/types.js';
|
|
9
|
-
import 'axios';
|
|
10
|
-
import './uzum-market-api/core/auth/enums.js';
|
|
11
|
-
import '../common/params.js';
|
|
12
|
-
import './uzum-market-api/common/interfaces.js';
|
|
13
|
-
import '../common/interfaces.js';
|
|
14
|
-
import './uzum-market-api/common/types.js';
|
|
1
|
+
|
|
2
|
+
export { };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "plaza-sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"outputDir": "./lib",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -17,6 +17,11 @@
|
|
|
17
17
|
"types": "./lib/types/src/modules/alif-shop-api/index.d.ts",
|
|
18
18
|
"import": "./lib/esm/modules/alif-shop-api/index.js",
|
|
19
19
|
"require": "./lib/cjs/modules/alif-shop-api/index.js"
|
|
20
|
+
},
|
|
21
|
+
"./alif-shop-client": {
|
|
22
|
+
"types": "./lib/types/src/modules/alif-shop-client-api/index.d.ts",
|
|
23
|
+
"import": "./lib/esm/modules/alif-shop-client-api/index.js",
|
|
24
|
+
"require": "./lib/cjs/modules/alif-shop-client-api/index.js"
|
|
20
25
|
}
|
|
21
26
|
},
|
|
22
27
|
"main": "lib/cjs/index.js",
|