@be-link/ecommerce-backend-bff-service-node-sdk 0.0.71 → 0.0.73
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/cjs/bff/modules/pandora/pointsMall/service.d.ts +0 -6
- package/cjs/bff/modules/pandora/pointsMall/service.js +0 -8
- package/cjs/bff/modules/pandora/pointsMall/types.d.ts +22 -41
- package/esm/bff/modules/pandora/pointsMall/service.d.ts +0 -6
- package/esm/bff/modules/pandora/pointsMall/service.mjs +0 -8
- package/esm/bff/modules/pandora/pointsMall/types.d.ts +22 -41
- package/package.json +2 -2
|
@@ -26,12 +26,6 @@ export declare class PandoraPointsMallService extends BaseService implements Poi
|
|
|
26
26
|
* @returns Promise,解析为标准响应格式
|
|
27
27
|
*/
|
|
28
28
|
batchToggleProductEnabled(request: PointMallService.Request.batchToggleProductEnabled): Promise<StandardResponse<void>>;
|
|
29
|
-
/**
|
|
30
|
-
* 批量是否上下架
|
|
31
|
-
* @param request - 请求参数
|
|
32
|
-
* @returns Promise,解析为标准响应格式
|
|
33
|
-
*/
|
|
34
|
-
batchToggleProductOnline(request: PointMallService.Request.batchToggleProductOnline): Promise<StandardResponse<void>>;
|
|
35
29
|
/**
|
|
36
30
|
* 根据条件查询积分商城商品
|
|
37
31
|
* @param request - 请求参数
|
|
@@ -39,14 +39,6 @@ class PandoraPointsMallService extends BaseService_1.default {
|
|
|
39
39
|
batchToggleProductEnabled(request) {
|
|
40
40
|
return this.request(this.batchToggleProductEnabled, request);
|
|
41
41
|
}
|
|
42
|
-
/**
|
|
43
|
-
* 批量是否上下架
|
|
44
|
-
* @param request - 请求参数
|
|
45
|
-
* @returns Promise,解析为标准响应格式
|
|
46
|
-
*/
|
|
47
|
-
batchToggleProductOnline(request) {
|
|
48
|
-
return this.request(this.batchToggleProductOnline, request);
|
|
49
|
-
}
|
|
50
42
|
/**
|
|
51
43
|
* 根据条件查询积分商城商品
|
|
52
44
|
* @param request - 请求参数
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
1
|
+
import { PROMOTION_SERVICE_ENUM } from '../../../../enums';
|
|
2
|
+
import { StandardResponse } from '../../../../types';
|
|
3
3
|
export declare namespace PointMallService {
|
|
4
4
|
namespace Entity {
|
|
5
5
|
/** 商品积分兑换配置 */
|
|
@@ -19,11 +19,9 @@ export declare namespace PointMallService {
|
|
|
19
19
|
/** 所需积分的数量 */
|
|
20
20
|
pointsRequired: number;
|
|
21
21
|
/** 兑换类型 */
|
|
22
|
-
exchangeType:
|
|
22
|
+
exchangeType: PROMOTION_SERVICE_ENUM.POINT_MALL.ExchangeType;
|
|
23
23
|
/** 是否开启 */
|
|
24
|
-
enabled:
|
|
25
|
-
/** 是否上架 */
|
|
26
|
-
online: boolean;
|
|
24
|
+
enabled: number;
|
|
27
25
|
/** 排序权重 */
|
|
28
26
|
sortOrder: number;
|
|
29
27
|
}
|
|
@@ -35,9 +33,9 @@ export declare namespace PointMallService {
|
|
|
35
33
|
productId: string;
|
|
36
34
|
skuSpecs: string[];
|
|
37
35
|
salePrice: number;
|
|
38
|
-
online:
|
|
39
|
-
enabled:
|
|
40
|
-
exchangeType:
|
|
36
|
+
online: number;
|
|
37
|
+
enabled: number;
|
|
38
|
+
exchangeType: PROMOTION_SERVICE_ENUM.POINT_MALL.ExchangeType;
|
|
41
39
|
stock: number;
|
|
42
40
|
limitPerUser?: number;
|
|
43
41
|
pointsRequired: number;
|
|
@@ -51,7 +49,7 @@ export declare namespace PointMallService {
|
|
|
51
49
|
productName: string;
|
|
52
50
|
productId: string;
|
|
53
51
|
productImage: string;
|
|
54
|
-
exchangeType:
|
|
52
|
+
exchangeType: PROMOTION_SERVICE_ENUM.POINT_MALL.ExchangeType;
|
|
55
53
|
pointsRequired: number;
|
|
56
54
|
couponRequired: number;
|
|
57
55
|
}
|
|
@@ -61,8 +59,8 @@ export declare namespace PointMallService {
|
|
|
61
59
|
productId: string;
|
|
62
60
|
pointsRequired?: number;
|
|
63
61
|
couponRequired?: number;
|
|
64
|
-
exchangeType:
|
|
65
|
-
|
|
62
|
+
exchangeType: PROMOTION_SERVICE_ENUM.POINT_MALL.ExchangeType;
|
|
63
|
+
enabled?: number;
|
|
66
64
|
sortOrder?: number;
|
|
67
65
|
}
|
|
68
66
|
export interface CreateProduct extends BaseParams {
|
|
@@ -83,23 +81,16 @@ export declare namespace PointMallService {
|
|
|
83
81
|
/** 主键ID列表 */
|
|
84
82
|
ids: string[];
|
|
85
83
|
/** 是否开启 */
|
|
86
|
-
enabled:
|
|
87
|
-
}
|
|
88
|
-
/** 批量是否上下架 */
|
|
89
|
-
export interface batchToggleProductOnline {
|
|
90
|
-
/** 主键ID列表 */
|
|
91
|
-
ids: string[];
|
|
92
|
-
/** 是否上架 */
|
|
93
|
-
online: boolean;
|
|
84
|
+
enabled: number;
|
|
94
85
|
}
|
|
95
86
|
/** 根据条件查询积分商城商品 */
|
|
96
87
|
export interface queryProducts {
|
|
97
88
|
/** 商品ID */
|
|
98
89
|
productIds?: string[];
|
|
99
90
|
/** 是否上架,传null/undefined表示不筛选 */
|
|
100
|
-
online?:
|
|
91
|
+
online?: number | null | undefined;
|
|
101
92
|
/** 是否开启,传null/undefined表示不筛选 */
|
|
102
|
-
enabled?:
|
|
93
|
+
enabled?: number | null | undefined;
|
|
103
94
|
/** 页码 */
|
|
104
95
|
page?: number;
|
|
105
96
|
/** 每页数量 */
|
|
@@ -116,6 +107,10 @@ export declare namespace PointMallService {
|
|
|
116
107
|
export interface getProductDetail {
|
|
117
108
|
/** 商品ID */
|
|
118
109
|
productId: string;
|
|
110
|
+
/** 是否上架 */
|
|
111
|
+
online?: number;
|
|
112
|
+
/** 是否开启 */
|
|
113
|
+
enabled?: number;
|
|
119
114
|
}
|
|
120
115
|
export {};
|
|
121
116
|
}
|
|
@@ -164,29 +159,15 @@ export declare namespace PointMallService {
|
|
|
164
159
|
* 批量创建积分商城商品
|
|
165
160
|
*/
|
|
166
161
|
batchCreateProducts(request: PointMallService.Request.batchCreateProducts): Promise<StandardResponse<PointMallService.Response.batchCreateProducts>>;
|
|
167
|
-
/**
|
|
168
|
-
* 批量编辑积分商城商品
|
|
169
|
-
*/
|
|
162
|
+
/** 批量编辑积分商城商品 */
|
|
170
163
|
batchUpdateProducts(request: PointMallService.Request.batchUpdateProducts): Promise<StandardResponse<void>>;
|
|
171
|
-
/**
|
|
172
|
-
* 批量是否开启
|
|
173
|
-
*/
|
|
164
|
+
/** 批量是否开启 */
|
|
174
165
|
batchToggleProductEnabled(request: PointMallService.Request.batchToggleProductEnabled): Promise<StandardResponse<void>>;
|
|
175
|
-
/**
|
|
176
|
-
* 批量是否上下架
|
|
177
|
-
*/
|
|
178
|
-
batchToggleProductOnline(request: PointMallService.Request.batchToggleProductOnline): Promise<StandardResponse<void>>;
|
|
179
|
-
/**
|
|
180
|
-
* 根据条件查询积分商城商品
|
|
181
|
-
*/
|
|
166
|
+
/** 根据条件查询积分商城商品 */
|
|
182
167
|
queryProducts(request: PointMallService.Request.queryProducts): Promise<StandardResponse<PointMallService.Response.queryProducts>>;
|
|
183
|
-
/**
|
|
184
|
-
* 根据商品ID查询商品详情
|
|
185
|
-
*/
|
|
168
|
+
/** 根据商品ID查询商品详情 */
|
|
186
169
|
getProductDetail(request: PointMallService.Request.getProductDetail): Promise<StandardResponse<PointMallService.Response.getProductDetail>>;
|
|
187
|
-
/**
|
|
188
|
-
* 查询开启且上架的积分商城列表
|
|
189
|
-
*/
|
|
170
|
+
/** 查询开启且上架的积分商城列表 */
|
|
190
171
|
queryEnabledAndOnlineProducts(request: PointMallService.Request.queryEnabledAndOnlineProducts): Promise<StandardResponse<PointMallService.Response.queryEnabledAndOnlineProducts>>;
|
|
191
172
|
}
|
|
192
173
|
}
|
|
@@ -26,12 +26,6 @@ export declare class PandoraPointsMallService extends BaseService implements Poi
|
|
|
26
26
|
* @returns Promise,解析为标准响应格式
|
|
27
27
|
*/
|
|
28
28
|
batchToggleProductEnabled(request: PointMallService.Request.batchToggleProductEnabled): Promise<StandardResponse<void>>;
|
|
29
|
-
/**
|
|
30
|
-
* 批量是否上下架
|
|
31
|
-
* @param request - 请求参数
|
|
32
|
-
* @returns Promise,解析为标准响应格式
|
|
33
|
-
*/
|
|
34
|
-
batchToggleProductOnline(request: PointMallService.Request.batchToggleProductOnline): Promise<StandardResponse<void>>;
|
|
35
29
|
/**
|
|
36
30
|
* 根据条件查询积分商城商品
|
|
37
31
|
* @param request - 请求参数
|
|
@@ -33,14 +33,6 @@ export class PandoraPointsMallService extends BaseService {
|
|
|
33
33
|
batchToggleProductEnabled(request) {
|
|
34
34
|
return this.request(this.batchToggleProductEnabled, request);
|
|
35
35
|
}
|
|
36
|
-
/**
|
|
37
|
-
* 批量是否上下架
|
|
38
|
-
* @param request - 请求参数
|
|
39
|
-
* @returns Promise,解析为标准响应格式
|
|
40
|
-
*/
|
|
41
|
-
batchToggleProductOnline(request) {
|
|
42
|
-
return this.request(this.batchToggleProductOnline, request);
|
|
43
|
-
}
|
|
44
36
|
/**
|
|
45
37
|
* 根据条件查询积分商城商品
|
|
46
38
|
* @param request - 请求参数
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
1
|
+
import { PROMOTION_SERVICE_ENUM } from '../../../../enums';
|
|
2
|
+
import { StandardResponse } from '../../../../types';
|
|
3
3
|
export declare namespace PointMallService {
|
|
4
4
|
namespace Entity {
|
|
5
5
|
/** 商品积分兑换配置 */
|
|
@@ -19,11 +19,9 @@ export declare namespace PointMallService {
|
|
|
19
19
|
/** 所需积分的数量 */
|
|
20
20
|
pointsRequired: number;
|
|
21
21
|
/** 兑换类型 */
|
|
22
|
-
exchangeType:
|
|
22
|
+
exchangeType: PROMOTION_SERVICE_ENUM.POINT_MALL.ExchangeType;
|
|
23
23
|
/** 是否开启 */
|
|
24
|
-
enabled:
|
|
25
|
-
/** 是否上架 */
|
|
26
|
-
online: boolean;
|
|
24
|
+
enabled: number;
|
|
27
25
|
/** 排序权重 */
|
|
28
26
|
sortOrder: number;
|
|
29
27
|
}
|
|
@@ -35,9 +33,9 @@ export declare namespace PointMallService {
|
|
|
35
33
|
productId: string;
|
|
36
34
|
skuSpecs: string[];
|
|
37
35
|
salePrice: number;
|
|
38
|
-
online:
|
|
39
|
-
enabled:
|
|
40
|
-
exchangeType:
|
|
36
|
+
online: number;
|
|
37
|
+
enabled: number;
|
|
38
|
+
exchangeType: PROMOTION_SERVICE_ENUM.POINT_MALL.ExchangeType;
|
|
41
39
|
stock: number;
|
|
42
40
|
limitPerUser?: number;
|
|
43
41
|
pointsRequired: number;
|
|
@@ -51,7 +49,7 @@ export declare namespace PointMallService {
|
|
|
51
49
|
productName: string;
|
|
52
50
|
productId: string;
|
|
53
51
|
productImage: string;
|
|
54
|
-
exchangeType:
|
|
52
|
+
exchangeType: PROMOTION_SERVICE_ENUM.POINT_MALL.ExchangeType;
|
|
55
53
|
pointsRequired: number;
|
|
56
54
|
couponRequired: number;
|
|
57
55
|
}
|
|
@@ -61,8 +59,8 @@ export declare namespace PointMallService {
|
|
|
61
59
|
productId: string;
|
|
62
60
|
pointsRequired?: number;
|
|
63
61
|
couponRequired?: number;
|
|
64
|
-
exchangeType:
|
|
65
|
-
|
|
62
|
+
exchangeType: PROMOTION_SERVICE_ENUM.POINT_MALL.ExchangeType;
|
|
63
|
+
enabled?: number;
|
|
66
64
|
sortOrder?: number;
|
|
67
65
|
}
|
|
68
66
|
export interface CreateProduct extends BaseParams {
|
|
@@ -83,23 +81,16 @@ export declare namespace PointMallService {
|
|
|
83
81
|
/** 主键ID列表 */
|
|
84
82
|
ids: string[];
|
|
85
83
|
/** 是否开启 */
|
|
86
|
-
enabled:
|
|
87
|
-
}
|
|
88
|
-
/** 批量是否上下架 */
|
|
89
|
-
export interface batchToggleProductOnline {
|
|
90
|
-
/** 主键ID列表 */
|
|
91
|
-
ids: string[];
|
|
92
|
-
/** 是否上架 */
|
|
93
|
-
online: boolean;
|
|
84
|
+
enabled: number;
|
|
94
85
|
}
|
|
95
86
|
/** 根据条件查询积分商城商品 */
|
|
96
87
|
export interface queryProducts {
|
|
97
88
|
/** 商品ID */
|
|
98
89
|
productIds?: string[];
|
|
99
90
|
/** 是否上架,传null/undefined表示不筛选 */
|
|
100
|
-
online?:
|
|
91
|
+
online?: number | null | undefined;
|
|
101
92
|
/** 是否开启,传null/undefined表示不筛选 */
|
|
102
|
-
enabled?:
|
|
93
|
+
enabled?: number | null | undefined;
|
|
103
94
|
/** 页码 */
|
|
104
95
|
page?: number;
|
|
105
96
|
/** 每页数量 */
|
|
@@ -116,6 +107,10 @@ export declare namespace PointMallService {
|
|
|
116
107
|
export interface getProductDetail {
|
|
117
108
|
/** 商品ID */
|
|
118
109
|
productId: string;
|
|
110
|
+
/** 是否上架 */
|
|
111
|
+
online?: number;
|
|
112
|
+
/** 是否开启 */
|
|
113
|
+
enabled?: number;
|
|
119
114
|
}
|
|
120
115
|
export {};
|
|
121
116
|
}
|
|
@@ -164,29 +159,15 @@ export declare namespace PointMallService {
|
|
|
164
159
|
* 批量创建积分商城商品
|
|
165
160
|
*/
|
|
166
161
|
batchCreateProducts(request: PointMallService.Request.batchCreateProducts): Promise<StandardResponse<PointMallService.Response.batchCreateProducts>>;
|
|
167
|
-
/**
|
|
168
|
-
* 批量编辑积分商城商品
|
|
169
|
-
*/
|
|
162
|
+
/** 批量编辑积分商城商品 */
|
|
170
163
|
batchUpdateProducts(request: PointMallService.Request.batchUpdateProducts): Promise<StandardResponse<void>>;
|
|
171
|
-
/**
|
|
172
|
-
* 批量是否开启
|
|
173
|
-
*/
|
|
164
|
+
/** 批量是否开启 */
|
|
174
165
|
batchToggleProductEnabled(request: PointMallService.Request.batchToggleProductEnabled): Promise<StandardResponse<void>>;
|
|
175
|
-
/**
|
|
176
|
-
* 批量是否上下架
|
|
177
|
-
*/
|
|
178
|
-
batchToggleProductOnline(request: PointMallService.Request.batchToggleProductOnline): Promise<StandardResponse<void>>;
|
|
179
|
-
/**
|
|
180
|
-
* 根据条件查询积分商城商品
|
|
181
|
-
*/
|
|
166
|
+
/** 根据条件查询积分商城商品 */
|
|
182
167
|
queryProducts(request: PointMallService.Request.queryProducts): Promise<StandardResponse<PointMallService.Response.queryProducts>>;
|
|
183
|
-
/**
|
|
184
|
-
* 根据商品ID查询商品详情
|
|
185
|
-
*/
|
|
168
|
+
/** 根据商品ID查询商品详情 */
|
|
186
169
|
getProductDetail(request: PointMallService.Request.getProductDetail): Promise<StandardResponse<PointMallService.Response.getProductDetail>>;
|
|
187
|
-
/**
|
|
188
|
-
* 查询开启且上架的积分商城列表
|
|
189
|
-
*/
|
|
170
|
+
/** 查询开启且上架的积分商城列表 */
|
|
190
171
|
queryEnabledAndOnlineProducts(request: PointMallService.Request.queryEnabledAndOnlineProducts): Promise<StandardResponse<PointMallService.Response.queryEnabledAndOnlineProducts>>;
|
|
191
172
|
}
|
|
192
173
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@be-link/ecommerce-backend-bff-service-node-sdk",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.73",
|
|
4
4
|
"description": "EcommerceBackendBffService Node.js SDK",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"main": "./cjs/index.js",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"@be-link/ecommerce-client-backend-service-node-sdk": "^0.0.10",
|
|
29
29
|
"@be-link/ecommerce-tag-service-node-sdk": "^0.0.11",
|
|
30
30
|
"@be-link/ecommerce-store-service-node-sdk": "^0.0.13",
|
|
31
|
-
"@be-link/ecommerce-promotion-service-node-sdk": "^0.0.
|
|
31
|
+
"@be-link/ecommerce-promotion-service-node-sdk": "^0.0.23",
|
|
32
32
|
"@be-link/ecommerce-trade-service-node-sdk": "^0.0.17",
|
|
33
33
|
"axios": "1.13.2",
|
|
34
34
|
"@be-link/ecommerce-product-service-node-sdk": "0.0.21"
|