@be-link/ecommerce-promotion-service-node-sdk 0.0.9 → 0.0.11

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/enum.d.ts CHANGED
@@ -178,7 +178,9 @@ export declare namespace ENUM {
178
178
  /** 扣减库存 */
179
179
  DEDUCT_STOCK = "DEDUCT_STOCK",
180
180
  /** 同步直播 */
181
- SYNC_LIVE = "SYNC_LIVE"
181
+ SYNC_LIVE = "SYNC_LIVE",
182
+ /** 更新适用范围 */
183
+ UPDATE_SCOPE = "UPDATE_SCOPE"
182
184
  }
183
185
  /** 操作类型中文 */
184
186
  enum OPERATE_TYPE_CHINESE {
package/enum.js CHANGED
@@ -207,6 +207,8 @@ var ENUM;
207
207
  OPERATE_TYPE["DEDUCT_STOCK"] = "DEDUCT_STOCK";
208
208
  /** 同步直播 */
209
209
  OPERATE_TYPE["SYNC_LIVE"] = "SYNC_LIVE";
210
+ /** 更新适用范围 */
211
+ OPERATE_TYPE["UPDATE_SCOPE"] = "UPDATE_SCOPE";
210
212
  })(OPERATE_TYPE = COUPON_ENUM.OPERATE_TYPE || (COUPON_ENUM.OPERATE_TYPE = {}));
211
213
  /** 操作类型中文 */
212
214
  let OPERATE_TYPE_CHINESE;
@@ -8,6 +8,9 @@ declare class CouponService extends BaseService implements Service.CouponTemplat
8
8
  addCouponStock(request: Service.Request.addCouponStock): Promise<Service.Response.addCouponStock>;
9
9
  getCouponTemplateDetail(request: Service.Request.getCouponTemplateDetail): Promise<Service.Response.getCouponTemplateDetail>;
10
10
  syncCouponToLive(request: Service.Request.syncCouponToLive): Promise<void>;
11
+ updateCouponTemplateScope(request: Service.Request.updateCouponTemplateScope): Promise<void>;
12
+ deleteCouponTemplateScope(request: Service.Request.deleteCouponTemplateScope): Promise<void>;
13
+ addCouponTemplateScope(request: Service.Request.addCouponTemplateScope): Promise<void>;
11
14
  }
12
15
  export declare const couponService: CouponService;
13
16
  export default couponService;
@@ -39,6 +39,15 @@ let CouponService = class CouponService extends BaseService_1.default {
39
39
  syncCouponToLive(request) {
40
40
  return (0, http_1.callApi)(this.getApiUrl(this.syncCouponToLive), request);
41
41
  }
42
+ updateCouponTemplateScope(request) {
43
+ return (0, http_1.callApi)(this.getApiUrl(this.updateCouponTemplateScope), request);
44
+ }
45
+ deleteCouponTemplateScope(request) {
46
+ return (0, http_1.callApi)(this.getApiUrl(this.deleteCouponTemplateScope), request);
47
+ }
48
+ addCouponTemplateScope(request) {
49
+ return (0, http_1.callApi)(this.getApiUrl(this.addCouponTemplateScope), request);
50
+ }
42
51
  };
43
52
  __decorate([
44
53
  (0, tsoa_1.OperationId)('创建券模版'),
@@ -70,6 +79,21 @@ __decorate([
70
79
  (0, tsoa_1.Post)('sync-coupon-to-live'),
71
80
  __param(0, (0, tsoa_1.Body)())
72
81
  ], CouponService.prototype, "syncCouponToLive", null);
82
+ __decorate([
83
+ (0, tsoa_1.OperationId)('更新券模版适用范围'),
84
+ (0, tsoa_1.Post)('update-coupon-template-scope'),
85
+ __param(0, (0, tsoa_1.Body)())
86
+ ], CouponService.prototype, "updateCouponTemplateScope", null);
87
+ __decorate([
88
+ (0, tsoa_1.OperationId)('删除券模版适用范围'),
89
+ (0, tsoa_1.Post)('delete-coupon-template-scope'),
90
+ __param(0, (0, tsoa_1.Body)())
91
+ ], CouponService.prototype, "deleteCouponTemplateScope", null);
92
+ __decorate([
93
+ (0, tsoa_1.OperationId)('新增券模版适用范围'),
94
+ (0, tsoa_1.Post)('add-coupon-template-scope'),
95
+ __param(0, (0, tsoa_1.Body)())
96
+ ], CouponService.prototype, "addCouponTemplateScope", null);
73
97
  CouponService = __decorate([
74
98
  (0, tsoa_1.Route)('coupon'),
75
99
  (0, tsoa_1.Tags)('Coupon')
@@ -251,6 +251,37 @@ export declare namespace Service {
251
251
  /** 券ID */
252
252
  couponId: string;
253
253
  }
254
+ /** 更新券模版适用范围 */
255
+ interface updateCouponTemplateScope {
256
+ /** 券ID */
257
+ couponId: string;
258
+ /** 是否可用 */
259
+ available: boolean;
260
+ /** 范围值 */
261
+ scopeValue: string;
262
+ /** 范围ID列表 */
263
+ idList?: string[];
264
+ /** 范围类型 */
265
+ scopeType: ENUM.COUPON_ENUM.SCOPE_TYPE;
266
+ }
267
+ /** 删除券模版适用范围 */
268
+ interface deleteCouponTemplateScope {
269
+ /** 券ID */
270
+ couponId: string;
271
+ }
272
+ /** 新增券模版适用范围 */
273
+ interface addCouponTemplateScope {
274
+ /** 券ID */
275
+ couponId: string;
276
+ /** 是否可用 */
277
+ available: boolean;
278
+ /** 范围值 */
279
+ scopeValue: string;
280
+ /** 范围ID列表 */
281
+ idList?: string[];
282
+ /** 范围类型 */
283
+ scopeType: ENUM.COUPON_ENUM.SCOPE_TYPE;
284
+ }
254
285
  }
255
286
  namespace Response {
256
287
  /** 券模版列表项 */
@@ -367,5 +398,11 @@ export declare namespace Service {
367
398
  getCouponTemplateDetail(request: Service.Request.getCouponTemplateDetail, req: any): Promise<Service.Response.getCouponTemplateDetail>;
368
399
  /** 同步券至火山直播 */
369
400
  syncCouponToLive(request: Service.Request.syncCouponToLive, req: any): Promise<void>;
401
+ /** 更新券模版适用范围 */
402
+ updateCouponTemplateScope(request: Service.Request.updateCouponTemplateScope, req: any): Promise<void>;
403
+ /** 删除券模版适用范围 */
404
+ deleteCouponTemplateScope(request: Service.Request.deleteCouponTemplateScope, req: any): Promise<void>;
405
+ /** 新增券模版适用范围 */
406
+ addCouponTemplateScope(request: Service.Request.addCouponTemplateScope, req: any): Promise<void>;
370
407
  }
371
408
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@be-link/ecommerce-promotion-service-node-sdk",
3
- "version": "0.0.9",
3
+ "version": "0.0.11",
4
4
  "description": "EcommercePromotionService Node.js SDK",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",