@be-link/cs-cli-nodejs 0.0.28 → 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.
- package/cs/modules/itemDiscountActivity/service.d.ts +9 -0
- package/cs/modules/itemDiscountActivity/service.js +22 -0
- package/cs/modules/itemDiscountActivity/service.js.map +1 -0
- package/cs/modules/itemDiscountActivity/types.d.ts +83 -0
- package/cs/modules/itemDiscountActivity/types.js +3 -0
- package/cs/modules/itemDiscountActivity/types.js.map +1 -0
- package/cs/modules/itemQuery/bySupplier/service.d.ts +12 -0
- package/cs/modules/itemQuery/bySupplier/service.js +22 -0
- package/cs/modules/itemQuery/bySupplier/service.js.map +1 -0
- package/cs/modules/itemQuery/bySupplier/type.d.ts +18 -0
- package/cs/modules/itemQuery/bySupplier/type.js +3 -0
- package/cs/modules/itemQuery/bySupplier/type.js.map +1 -0
- package/cs/modules/itemQuery/index.d.ts +10 -0
- package/cs/modules/itemQuery/index.js +2 -0
- package/cs/modules/itemQuery/index.js.map +1 -1
- package/index.d.ts +1 -1
- package/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -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 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/cs/modules/itemDiscountActivity/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module 供应商维度查询商品模块
|
|
3
|
+
*/
|
|
4
|
+
import { QueryBlockDataMap, QueryDataRes } from '../../../../types';
|
|
5
|
+
import BaseService from '../../baseService';
|
|
6
|
+
import { QueryBySupplier } from './type';
|
|
7
|
+
declare class QueryBySupplierService extends BaseService implements QueryBySupplier.Controller {
|
|
8
|
+
prefixUrl: string;
|
|
9
|
+
queryItemList<k extends (keyof QueryBlockDataMap)[]>(request: QueryBySupplier.Request.IQueryItemList<k>): Promise<QueryDataRes<k>[]>;
|
|
10
|
+
}
|
|
11
|
+
declare const bySupplier: QueryBySupplierService;
|
|
12
|
+
export default bySupplier;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @module 供应商维度查询商品模块
|
|
4
|
+
*/
|
|
5
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
6
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
7
|
+
};
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
const http_1 = require("../../../http");
|
|
10
|
+
const baseService_1 = __importDefault(require("../../baseService"));
|
|
11
|
+
class QueryBySupplierService extends baseService_1.default {
|
|
12
|
+
constructor() {
|
|
13
|
+
super(...arguments);
|
|
14
|
+
this.prefixUrl = '/item/query/by-supplier';
|
|
15
|
+
}
|
|
16
|
+
queryItemList(request) {
|
|
17
|
+
return (0, http_1.callApi)(this.getApiUrl(this.queryItemList), request);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
const bySupplier = new QueryBySupplierService();
|
|
21
|
+
exports.default = bySupplier;
|
|
22
|
+
//# sourceMappingURL=service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service.js","sourceRoot":"","sources":["../../../../../src/cs/modules/itemQuery/bySupplier/service.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;AAGH,wCAAuC;AACvC,oEAA2C;AAG3C,MAAM,sBAAuB,SAAQ,qBAAW;IAAhD;;QACE,cAAS,GAAW,yBAAyB,CAAA;IAU/C,CAAC;IARC,aAAa,CACX,OAAkD;QAElD,OAAO,IAAA,cAAO,EACZ,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,aAAa,CAAC,EAClC,OAAO,CACR,CAAA;IACH,CAAC;CACF;AAED,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAA;AAE/C,kBAAe,UAAU,CAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as GDto from '../../../../types';
|
|
2
|
+
export declare namespace QueryBySupplier {
|
|
3
|
+
namespace Request {
|
|
4
|
+
interface IPaging {
|
|
5
|
+
pageIndex?: number;
|
|
6
|
+
pageSize?: number;
|
|
7
|
+
}
|
|
8
|
+
interface IQueryItemList<K> {
|
|
9
|
+
supplierIds: string[];
|
|
10
|
+
queryBlocks: K;
|
|
11
|
+
paging: IPaging;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
namespace Response { }
|
|
15
|
+
interface Controller {
|
|
16
|
+
queryItemList<k extends (keyof GDto.QueryBlockDataMap)[]>(request: Request.IQueryItemList<k>): Promise<GDto.QueryDataRes<k>[]>;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.js","sourceRoot":"","sources":["../../../../../src/cs/modules/itemQuery/bySupplier/type.ts"],"names":[],"mappings":""}
|
|
@@ -20,5 +20,15 @@ declare const itemQueryService: {
|
|
|
20
20
|
readonly publicProdHost: "";
|
|
21
21
|
getApiUrl(func: Function): string;
|
|
22
22
|
};
|
|
23
|
+
bySupplier: {
|
|
24
|
+
prefixUrl: string;
|
|
25
|
+
queryItemList<k extends (keyof import("../../../types").QueryBlockDataMap)[]>(request: import("./bySupplier/type").QueryBySupplier.Request.IQueryItemList<k>): Promise<import("../../../types").QueryDataRes<k>[]>;
|
|
26
|
+
isPublicEnv: boolean;
|
|
27
|
+
readonly natDevHost: "http://qgostaxv.cs.nmkh74o4.rlwzae9d.com:8090";
|
|
28
|
+
readonly natProdHost: "";
|
|
29
|
+
readonly publicDevHost: "https://cs-74680-5-1304510571.sh.run.tcloudbase.com";
|
|
30
|
+
readonly publicProdHost: "";
|
|
31
|
+
getApiUrl(func: Function): string;
|
|
32
|
+
};
|
|
23
33
|
};
|
|
24
34
|
export default itemQueryService;
|
|
@@ -5,9 +5,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const service_1 = __importDefault(require("./byItem/service"));
|
|
7
7
|
const service_2 = __importDefault(require("./byStock/service"));
|
|
8
|
+
const service_3 = __importDefault(require("./bySupplier/service"));
|
|
8
9
|
const itemQueryService = {
|
|
9
10
|
byItem: service_1.default,
|
|
10
11
|
byStock: service_2.default,
|
|
12
|
+
bySupplier: service_3.default,
|
|
11
13
|
};
|
|
12
14
|
exports.default = itemQueryService;
|
|
13
15
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/cs/modules/itemQuery/index.ts"],"names":[],"mappings":";;;;;AAAA,+DAAqC;AACrC,gEAAuC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/cs/modules/itemQuery/index.ts"],"names":[],"mappings":";;;;;AAAA,+DAAqC;AACrC,gEAAuC;AACvC,mEAA6C;AAE7C,MAAM,gBAAgB,GAAG;IACvB,MAAM,EAAN,iBAAM;IACN,OAAO,EAAP,iBAAO;IACP,UAAU,EAAV,iBAAU;CACX,CAAA;AAED,kBAAe,gBAAgB,CAAA"}
|
package/index.d.ts
CHANGED
|
@@ -5,4 +5,4 @@ import itemQueryService from './cs/modules/itemQuery';
|
|
|
5
5
|
import supplierService from './cs/modules/supplier/service';
|
|
6
6
|
import shuttleBusSupplierService from './cs/modules/shuttleBusSupplier/service';
|
|
7
7
|
import serviceVenueService from './cs/modules/serviceVenue/service';
|
|
8
|
-
export { BizError, CSDto, itemQueryService, supplierService, shuttleBusSupplierService, serviceVenueService };
|
|
8
|
+
export { BizError, CSDto, itemQueryService, supplierService, shuttleBusSupplierService, serviceVenueService, };
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iEAAwC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iEAAwC;AAUtC,mBAVK,kBAAQ,CAUL;AATV,+CAAgC;AAU9B,sBAAK;AARP,WAAW;AACX,uEAAqD;AAQnD,2BARK,mBAAgB,CAQL;AAPlB,4EAA2D;AAQzD,0BARK,iBAAe,CAQL;AAPjB,sFAA+E;AAQ7E,oCARK,iBAAyB,CAQL;AAP3B,gFAAmE;AAQjE,8BARK,iBAAmB,CAQL"}
|