plaza-sdk 1.2.1 → 1.3.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/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/core/products/api.js +1 -0
- package/lib/cjs/modules/alif-shop-client-api/core/products/index.js +1 -0
- package/lib/cjs/modules/alif-shop-client-api/core/products/params.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/core/products/api.js +1 -0
- package/lib/esm/modules/alif-shop-client-api/core/products/index.js +1 -0
- package/lib/esm/modules/alif-shop-client-api/core/products/params.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-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 +5 -0
- package/lib/types/src/modules/alif-shop-client-api/core/products/api.d.ts +7 -0
- package/lib/types/src/modules/alif-shop-client-api/core/products/index.d.ts +4 -0
- package/lib/types/src/modules/alif-shop-client-api/core/products/params.d.ts +13 -0
- package/lib/types/src/modules/alif-shop-client-api/index.d.ts +5 -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=(t,e)=>{const{name:o="",...s}=e;return t.post("/auth/login",{name:o,...s})},exports.RequestLogin=(t,e)=>t.post("/auth/request-login",e);
|
|
@@ -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"),r=require("./products/api.js");exports.Login=e.Login,exports.RequestLogin=e.RequestLogin,exports.SearchList=r.SearchList;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";exports.SearchList=(r,e)=>{const{order:s=null,price_range:t={},brands:n=[],filters:a={},...c}=e;return r.post("/search/full-text",{order:s,price_range:t,brands:n,filters:a,...c})};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var r=require("./api.js");exports.SearchList=r.SearchList;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e=require("./core/auth/api.js"),r=require("./core/products/api.js");exports.Login=e.Login,exports.RequestLogin=e.RequestLogin,exports.SearchList=r.SearchList;
|
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 t=(t,n)=>t.post("/auth/request-login",n),n=(t,n)=>{const{name:o="",...e}=n;return t.post("/auth/login",{name:o,...e})};export{n as Login,t as RequestLogin};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{Login,RequestLogin}from"./api.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{Login,RequestLogin}from"./auth/api.js";export{SearchList}from"./products/api.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const r=(r,e)=>{const{order:t=null,price_range:n={},brands:s=[],filters:l={},...o}=e;return r.post("/search/full-text",{order:t,price_range:n,brands:s,filters:l,...o})};export{r as SearchList};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{SearchList}from"./api.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{Login,RequestLogin}from"./core/auth/api.js";export{SearchList}from"./core/products/api.js";
|
package/lib/esm/modules/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
@@ -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.1",
|
|
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",
|