@be-link/ecommerce-promotion-service-node-sdk 0.0.10 → 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.
@@ -9,6 +9,8 @@ declare class CouponService extends BaseService implements Service.CouponTemplat
9
9
  getCouponTemplateDetail(request: Service.Request.getCouponTemplateDetail): Promise<Service.Response.getCouponTemplateDetail>;
10
10
  syncCouponToLive(request: Service.Request.syncCouponToLive): Promise<void>;
11
11
  updateCouponTemplateScope(request: Service.Request.updateCouponTemplateScope): Promise<void>;
12
+ deleteCouponTemplateScope(request: Service.Request.deleteCouponTemplateScope): Promise<void>;
13
+ addCouponTemplateScope(request: Service.Request.addCouponTemplateScope): Promise<void>;
12
14
  }
13
15
  export declare const couponService: CouponService;
14
16
  export default couponService;
@@ -42,6 +42,12 @@ let CouponService = class CouponService extends BaseService_1.default {
42
42
  updateCouponTemplateScope(request) {
43
43
  return (0, http_1.callApi)(this.getApiUrl(this.updateCouponTemplateScope), request);
44
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
+ }
45
51
  };
46
52
  __decorate([
47
53
  (0, tsoa_1.OperationId)('创建券模版'),
@@ -78,6 +84,16 @@ __decorate([
78
84
  (0, tsoa_1.Post)('update-coupon-template-scope'),
79
85
  __param(0, (0, tsoa_1.Body)())
80
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);
81
97
  CouponService = __decorate([
82
98
  (0, tsoa_1.Route)('coupon'),
83
99
  (0, tsoa_1.Tags)('Coupon')
@@ -255,10 +255,32 @@ export declare namespace Service {
255
255
  interface updateCouponTemplateScope {
256
256
  /** 券ID */
257
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;
258
278
  /** 范围值 */
259
279
  scopeValue: string;
260
280
  /** 范围ID列表 */
261
281
  idList?: string[];
282
+ /** 范围类型 */
283
+ scopeType: ENUM.COUPON_ENUM.SCOPE_TYPE;
262
284
  }
263
285
  }
264
286
  namespace Response {
@@ -378,5 +400,9 @@ export declare namespace Service {
378
400
  syncCouponToLive(request: Service.Request.syncCouponToLive, req: any): Promise<void>;
379
401
  /** 更新券模版适用范围 */
380
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>;
381
407
  }
382
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.10",
3
+ "version": "0.0.11",
4
4
  "description": "EcommercePromotionService Node.js SDK",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",