@be-link/ecommerce-promotion-service-node-sdk 0.0.9 → 0.0.10
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 +3 -1
- package/enum.js +2 -0
- package/modules/coupon/service.d.ts +1 -0
- package/modules/coupon/service.js +8 -0
- package/modules/coupon/types.d.ts +11 -0
- package/package.json +1 -1
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,7 @@ 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>;
|
|
11
12
|
}
|
|
12
13
|
export declare const couponService: CouponService;
|
|
13
14
|
export default couponService;
|
|
@@ -39,6 +39,9 @@ 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
|
+
}
|
|
42
45
|
};
|
|
43
46
|
__decorate([
|
|
44
47
|
(0, tsoa_1.OperationId)('创建券模版'),
|
|
@@ -70,6 +73,11 @@ __decorate([
|
|
|
70
73
|
(0, tsoa_1.Post)('sync-coupon-to-live'),
|
|
71
74
|
__param(0, (0, tsoa_1.Body)())
|
|
72
75
|
], CouponService.prototype, "syncCouponToLive", null);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, tsoa_1.OperationId)('更新券模版适用范围'),
|
|
78
|
+
(0, tsoa_1.Post)('update-coupon-template-scope'),
|
|
79
|
+
__param(0, (0, tsoa_1.Body)())
|
|
80
|
+
], CouponService.prototype, "updateCouponTemplateScope", null);
|
|
73
81
|
CouponService = __decorate([
|
|
74
82
|
(0, tsoa_1.Route)('coupon'),
|
|
75
83
|
(0, tsoa_1.Tags)('Coupon')
|
|
@@ -251,6 +251,15 @@ export declare namespace Service {
|
|
|
251
251
|
/** 券ID */
|
|
252
252
|
couponId: string;
|
|
253
253
|
}
|
|
254
|
+
/** 更新券模版适用范围 */
|
|
255
|
+
interface updateCouponTemplateScope {
|
|
256
|
+
/** 券ID */
|
|
257
|
+
couponId: string;
|
|
258
|
+
/** 范围值 */
|
|
259
|
+
scopeValue: string;
|
|
260
|
+
/** 范围ID列表 */
|
|
261
|
+
idList?: string[];
|
|
262
|
+
}
|
|
254
263
|
}
|
|
255
264
|
namespace Response {
|
|
256
265
|
/** 券模版列表项 */
|
|
@@ -367,5 +376,7 @@ export declare namespace Service {
|
|
|
367
376
|
getCouponTemplateDetail(request: Service.Request.getCouponTemplateDetail, req: any): Promise<Service.Response.getCouponTemplateDetail>;
|
|
368
377
|
/** 同步券至火山直播 */
|
|
369
378
|
syncCouponToLive(request: Service.Request.syncCouponToLive, req: any): Promise<void>;
|
|
379
|
+
/** 更新券模版适用范围 */
|
|
380
|
+
updateCouponTemplateScope(request: Service.Request.updateCouponTemplateScope, req: any): Promise<void>;
|
|
370
381
|
}
|
|
371
382
|
}
|