@be-link/cs-cli-nodejs 0.0.29 → 0.0.30

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.
@@ -0,0 +1,9 @@
1
+ import BaseService from '../baseService';
2
+ import { ItemDiscountActivityNamespace } from './types';
3
+ declare class ItemDiscountActivityService extends BaseService implements ItemDiscountActivityNamespace.Controller {
4
+ prefixUrl: string;
5
+ prepareImportDiscountActivity(request: ItemDiscountActivityNamespace.Request.IImportItemDiscountActivity): Promise<ItemDiscountActivityNamespace.Response.IPrepareImportDiscountActivity>;
6
+ importItemDiscountActivity(request: ItemDiscountActivityNamespace.Request.IImportItemDiscountActivity): Promise<void>;
7
+ }
8
+ declare const itemDiscountActivityService: ItemDiscountActivityService;
9
+ export default itemDiscountActivityService;
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const http_1 = require("../../http");
7
+ const baseService_1 = __importDefault(require("../baseService"));
8
+ class ItemDiscountActivityService extends baseService_1.default {
9
+ constructor() {
10
+ super(...arguments);
11
+ this.prefixUrl = '/item-discount-activity';
12
+ }
13
+ prepareImportDiscountActivity(request) {
14
+ return (0, http_1.callApi)(this.getApiUrl(this.prepareImportDiscountActivity), request);
15
+ }
16
+ importItemDiscountActivity(request) {
17
+ return (0, http_1.callApi)(this.getApiUrl(this.importItemDiscountActivity), request);
18
+ }
19
+ }
20
+ const itemDiscountActivityService = new ItemDiscountActivityService();
21
+ exports.default = itemDiscountActivityService;
22
+ //# sourceMappingURL=service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"service.js","sourceRoot":"","sources":["../../../../src/cs/modules/itemDiscountActivity/service.ts"],"names":[],"mappings":";;;;;AAAA,qCAAoC;AACpC,iEAAwC;AAGxC,MAAM,2BACJ,SAAQ,qBAAW;IADrB;;QAIE,cAAS,GAAG,yBAAyB,CAAA;IAkBvC,CAAC;IAjBC,6BAA6B,CAC3B,OAA0E;QAE1E,OAAO,IAAA,cAAO,EACZ,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,6BAA6B,CAAC,EAClD,OAAO,CACR,CAAA;IACH,CAAC;IAED,0BAA0B,CACxB,OAA0E;QAE1E,OAAO,IAAA,cAAO,EACZ,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,0BAA0B,CAAC,EAC/C,OAAO,CACR,CAAA;IACH,CAAC;CACF;AAED,MAAM,2BAA2B,GAAG,IAAI,2BAA2B,EAAE,CAAA;AAErE,kBAAe,2BAA2B,CAAA"}
@@ -0,0 +1,83 @@
1
+ export declare namespace ItemDiscountActivityNamespace {
2
+ namespace Request {
3
+ interface IImportItemDiscountActivity {
4
+ url: string;
5
+ }
6
+ }
7
+ namespace Response {
8
+ interface IPrepareImportDiscountActivity {
9
+ /** 汇总统计 */
10
+ summaryInfo: {
11
+ /** 总数 */
12
+ total: number;
13
+ /** 将添加的数量 */
14
+ willAdded: number;
15
+ /** 将更新的数量 */
16
+ willUpdated: number;
17
+ /** 将删除的数量 */
18
+ willDeleted: number;
19
+ };
20
+ /** 将添加的数据 */
21
+ addedData: {
22
+ /** 商品ID */
23
+ itemId: string;
24
+ /** 商品名称 */
25
+ itemName: string;
26
+ /** 套餐ID */
27
+ comboId: string;
28
+ /** 套餐名称 */
29
+ comboName: string;
30
+ /** 折扣价格 */
31
+ discountPrice: number;
32
+ /** 折扣结算价格 */
33
+ discountSettlementPrice: number;
34
+ /** 连住晚数 */
35
+ nightNum: number;
36
+ }[];
37
+ /** 将更新的数据 */
38
+ updatedData: {
39
+ /** 商品ID */
40
+ itemId: string;
41
+ /** 商品名称 */
42
+ itemName: string;
43
+ /** 套餐ID */
44
+ comboId: string;
45
+ /** 套餐名称 */
46
+ comboName: string;
47
+ /** 折扣价格 */
48
+ discountPrice: number;
49
+ /** 折扣结算价格 */
50
+ discountSettlementPrice: number;
51
+ /** 连住晚数 */
52
+ nightNum: number;
53
+ }[];
54
+ /** 将删除的数据 */
55
+ deletedData: {
56
+ /** 商品ID */
57
+ itemId: string;
58
+ /** 商品名称 */
59
+ itemName: string;
60
+ /** 套餐ID */
61
+ comboId: string;
62
+ /** 套餐名称 */
63
+ comboName: string;
64
+ /** 折扣价格 */
65
+ discountPrice: number;
66
+ /** 折扣结算价格 */
67
+ discountSettlementPrice: number;
68
+ /** 连住晚数 */
69
+ nightNum: number;
70
+ }[];
71
+ }
72
+ }
73
+ interface Controller {
74
+ /**
75
+ * 准备导入数据
76
+ */
77
+ prepareImportDiscountActivity(request: Request.IImportItemDiscountActivity): Promise<Response.IPrepareImportDiscountActivity>;
78
+ /**
79
+ * 导入连住优惠
80
+ */
81
+ importItemDiscountActivity(request: Request.IImportItemDiscountActivity): Promise<void>;
82
+ }
83
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/cs/modules/itemDiscountActivity/types.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@be-link/cs-cli-nodejs",
3
- "version": "0.0.29",
3
+ "version": "0.0.30",
4
4
  "description": "商品服务Nodejs客户端",
5
5
  "main": "index.js",
6
6
  "scripts": {