@be-link/ecommerce-backend-bff-service-node-sdk 0.0.72 → 0.0.74

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.
@@ -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 { PROMOTION_ENUM } from '../../../../enums';
2
- import type { StandardResponse } from '../../../../types';
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: PROMOTION_ENUM.POINT_MALL.ExchangeType;
22
+ exchangeType: PROMOTION_SERVICE_ENUM.POINT_MALL.ExchangeType;
23
23
  /** 是否开启 */
24
- enabled: boolean;
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: boolean;
39
- enabled: boolean;
40
- exchangeType: PROMOTION_ENUM.POINT_MALL.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: PROMOTION_ENUM.POINT_MALL.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: PROMOTION_ENUM.POINT_MALL.ExchangeType;
65
- online?: boolean;
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: boolean;
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?: boolean | null | undefined;
91
+ online?: number | null | undefined;
101
92
  /** 是否开启,传null/undefined表示不筛选 */
102
- enabled?: boolean | null | undefined;
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
  }
@@ -86,4 +86,10 @@ export declare class PandoraProductService extends BaseService implements Servic
86
86
  * @returns Promise,解析为标准响应格式
87
87
  */
88
88
  searchProductByName(request: Service.Request.searchProductByName): Promise<StandardResponse<Service.Response.searchProductByName[]>>;
89
+ /**
90
+ * 获取绑定的SKU信息
91
+ * @param request - 请求参数
92
+ * @returns Promise,解析为标准响应格式
93
+ */
94
+ queryBindSkus(request: Service.Request.queryBindSkus): Promise<StandardResponse<Service.Response.queryBindSkus[]>>;
89
95
  }
@@ -119,5 +119,13 @@ class PandoraProductService extends BaseService_1.default {
119
119
  searchProductByName(request) {
120
120
  return this.request(this.searchProductByName, request);
121
121
  }
122
+ /**
123
+ * 获取绑定的SKU信息
124
+ * @param request - 请求参数
125
+ * @returns Promise,解析为标准响应格式
126
+ */
127
+ queryBindSkus(request) {
128
+ return this.request(this.queryBindSkus, request);
129
+ }
122
130
  }
123
131
  exports.PandoraProductService = PandoraProductService;
@@ -255,6 +255,10 @@ export declare namespace PandoraProductService {
255
255
  /** 商品名称 */
256
256
  productName: string;
257
257
  }
258
+ interface queryBindSkus {
259
+ /** SKU Id */
260
+ skuId: string;
261
+ }
258
262
  }
259
263
  namespace Response {
260
264
  interface create {
@@ -372,6 +376,26 @@ export declare namespace PandoraProductService {
372
376
  /** 商品ID */
373
377
  productId: string;
374
378
  }
379
+ interface queryBindSkus {
380
+ /** 商品Id */
381
+ productId: string;
382
+ /** SKU Id */
383
+ skuId: string;
384
+ /** 商品名称 */
385
+ productName: string;
386
+ /** 分类 */
387
+ cateName: string;
388
+ /** 数量 */
389
+ quantity: number;
390
+ /** 69码 */
391
+ skuCode: string;
392
+ /** 规格 */
393
+ attrs: Attr[];
394
+ /** 价格 */
395
+ price: number;
396
+ /** 上下架状态 */
397
+ status: string;
398
+ }
375
399
  }
376
400
  /**
377
401
  * ProductLive Controller 接口定义
@@ -429,5 +453,9 @@ export declare namespace PandoraProductService {
429
453
  * 根据商品名获取商品id列表
430
454
  */
431
455
  searchProductByName(request: PandoraProductService.Request.searchProductByName): Promise<StandardResponse<PandoraProductService.Response.searchProductByName[]>>;
456
+ /**
457
+ * 获取绑定的SKU信息
458
+ */
459
+ queryBindSkus(request: PandoraProductService.Request.queryBindSkus): Promise<StandardResponse<PandoraProductService.Response.queryBindSkus[]>>;
432
460
  }
433
461
  }
@@ -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 { PROMOTION_ENUM } from '../../../../enums';
2
- import type { StandardResponse } from '../../../../types';
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: PROMOTION_ENUM.POINT_MALL.ExchangeType;
22
+ exchangeType: PROMOTION_SERVICE_ENUM.POINT_MALL.ExchangeType;
23
23
  /** 是否开启 */
24
- enabled: boolean;
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: boolean;
39
- enabled: boolean;
40
- exchangeType: PROMOTION_ENUM.POINT_MALL.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: PROMOTION_ENUM.POINT_MALL.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: PROMOTION_ENUM.POINT_MALL.ExchangeType;
65
- online?: boolean;
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: boolean;
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?: boolean | null | undefined;
91
+ online?: number | null | undefined;
101
92
  /** 是否开启,传null/undefined表示不筛选 */
102
- enabled?: boolean | null | undefined;
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
  }
@@ -86,4 +86,10 @@ export declare class PandoraProductService extends BaseService implements Servic
86
86
  * @returns Promise,解析为标准响应格式
87
87
  */
88
88
  searchProductByName(request: Service.Request.searchProductByName): Promise<StandardResponse<Service.Response.searchProductByName[]>>;
89
+ /**
90
+ * 获取绑定的SKU信息
91
+ * @param request - 请求参数
92
+ * @returns Promise,解析为标准响应格式
93
+ */
94
+ queryBindSkus(request: Service.Request.queryBindSkus): Promise<StandardResponse<Service.Response.queryBindSkus[]>>;
89
95
  }
@@ -113,4 +113,12 @@ export class PandoraProductService extends BaseService {
113
113
  searchProductByName(request) {
114
114
  return this.request(this.searchProductByName, request);
115
115
  }
116
+ /**
117
+ * 获取绑定的SKU信息
118
+ * @param request - 请求参数
119
+ * @returns Promise,解析为标准响应格式
120
+ */
121
+ queryBindSkus(request) {
122
+ return this.request(this.queryBindSkus, request);
123
+ }
116
124
  }
@@ -255,6 +255,10 @@ export declare namespace PandoraProductService {
255
255
  /** 商品名称 */
256
256
  productName: string;
257
257
  }
258
+ interface queryBindSkus {
259
+ /** SKU Id */
260
+ skuId: string;
261
+ }
258
262
  }
259
263
  namespace Response {
260
264
  interface create {
@@ -372,6 +376,26 @@ export declare namespace PandoraProductService {
372
376
  /** 商品ID */
373
377
  productId: string;
374
378
  }
379
+ interface queryBindSkus {
380
+ /** 商品Id */
381
+ productId: string;
382
+ /** SKU Id */
383
+ skuId: string;
384
+ /** 商品名称 */
385
+ productName: string;
386
+ /** 分类 */
387
+ cateName: string;
388
+ /** 数量 */
389
+ quantity: number;
390
+ /** 69码 */
391
+ skuCode: string;
392
+ /** 规格 */
393
+ attrs: Attr[];
394
+ /** 价格 */
395
+ price: number;
396
+ /** 上下架状态 */
397
+ status: string;
398
+ }
375
399
  }
376
400
  /**
377
401
  * ProductLive Controller 接口定义
@@ -429,5 +453,9 @@ export declare namespace PandoraProductService {
429
453
  * 根据商品名获取商品id列表
430
454
  */
431
455
  searchProductByName(request: PandoraProductService.Request.searchProductByName): Promise<StandardResponse<PandoraProductService.Response.searchProductByName[]>>;
456
+ /**
457
+ * 获取绑定的SKU信息
458
+ */
459
+ queryBindSkus(request: PandoraProductService.Request.queryBindSkus): Promise<StandardResponse<PandoraProductService.Response.queryBindSkus[]>>;
432
460
  }
433
461
  }
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.72",
3
+ "version": "0.0.74",
4
4
  "description": "EcommerceBackendBffService Node.js SDK",
5
5
  "type": "commonjs",
6
6
  "main": "./cjs/index.js",
@@ -31,7 +31,7 @@
31
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
- "@be-link/ecommerce-product-service-node-sdk": "0.0.21"
34
+ "@be-link/ecommerce-product-service-node-sdk": "0.0.22"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@types/node": "^20.0.0",