@be-link/cs-cli-nodejs 0.0.52 → 0.0.54
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/itemQuery/byItem/service.d.ts +1 -0
- package/cs/modules/itemQuery/byItem/service.js +3 -0
- package/cs/modules/itemQuery/byItem/service.js.map +1 -1
- package/cs/modules/itemQuery/byItem/type.d.ts +18 -0
- package/cs/modules/itemQuery/byItem/type.js.map +1 -1
- package/cs/modules/itemQuery/index.d.ts +1 -0
- package/cs/modules/shuttleBusSupplier/service.d.ts +1 -1
- package/cs/modules/shuttleBusSupplier/service.js.map +1 -1
- package/cs/modules/shuttleBusSupplier/types.d.ts +10 -28
- package/cs/modules/shuttleBusSupplier/types.js +0 -9
- package/cs/modules/shuttleBusSupplier/types.js.map +1 -1
- package/package.json +1 -1
|
@@ -11,6 +11,7 @@ declare class QueryByItemService extends BaseService implements QueryByItem.Cont
|
|
|
11
11
|
mget<K extends (keyof GDto.QueryBlockDataMap)[]>(request: QueryByItem.Request.IMget<K>): Promise<GDto.QueryDataRes<K>[]>;
|
|
12
12
|
queryItemListByCategory<K extends (keyof GDto.QueryBlockDataMap)[]>(request: QueryByItem.Request.IQueryItemListByCategory<K>): Promise<GDto.QueryDataRes<K>[]>;
|
|
13
13
|
queryCenterForItem(request: QueryByItem.Request.QueryCenterForItem): Promise<QueryByItem.Response.QueryCenterForItem>;
|
|
14
|
+
getItemDetail(request: QueryByItem.Request.IGetItemDetail): Promise<QueryByItem.Response.IGetItemDetail>;
|
|
14
15
|
}
|
|
15
16
|
declare const byItem: QueryByItemService;
|
|
16
17
|
export default byItem;
|
|
@@ -26,6 +26,9 @@ class QueryByItemService extends baseService_1.default {
|
|
|
26
26
|
queryCenterForItem(request) {
|
|
27
27
|
return (0, http_1.callApi)(this.getApiUrl(this.queryCenterForItem), request);
|
|
28
28
|
}
|
|
29
|
+
getItemDetail(request) {
|
|
30
|
+
return (0, http_1.callApi)(this.getApiUrl(this.getItemDetail), request);
|
|
31
|
+
}
|
|
29
32
|
}
|
|
30
33
|
const byItem = new QueryByItemService();
|
|
31
34
|
exports.default = byItem;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service.js","sourceRoot":"","sources":["../../../../../src/cs/modules/itemQuery/byItem/service.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;;;AAEH,wCAAuC;AACvC,oEAA2C;AAI3C,MAAM,kBAAmB,SAAQ,qBAAW;IAA5C;;QACE,cAAS,GAAW,qBAAqB,CAAA;
|
|
1
|
+
{"version":3,"file":"service.js","sourceRoot":"","sources":["../../../../../src/cs/modules/itemQuery/byItem/service.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;;;AAEH,wCAAuC;AACvC,oEAA2C;AAI3C,MAAM,kBAAmB,SAAQ,qBAAW;IAA5C;;QACE,cAAS,GAAW,qBAAqB,CAAA;IAwC3C,CAAC;IAtCC,GAAG,CACD,OAAoC;QAEpC,OAAO,IAAA,cAAO,EAAgC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,OAAO,CAAC,CAAA;IAClF,CAAC;IAED,IAAI,CACF,OAAqC;QAErC,OAAO,IAAA,cAAO,EAAiC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC,CAAA;IACpF,CAAC;IAED,uBAAuB,CACrB,OAAwD;QAExD,OAAO,IAAA,cAAO,EACZ,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,uBAAuB,CAAC,EAC5C,OAAO,CACR,CAAA;IACH,CAAC;IAED,kBAAkB,CAChB,OAA+C;QAE/C,OAAO,IAAA,cAAO,EACZ,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,kBAAkB,CAAC,EACvC,OAAO,CACR,CAAA;IACH,CAAC;IAED,aAAa,CACX,OAA2C;QAE3C,OAAO,IAAA,cAAO,EACZ,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,aAAa,CAAC,EAClC,OAAO,CACR,CAAA;IACH,CAAC;CACF;AAED,MAAM,MAAM,GAAG,IAAI,kBAAkB,EAAE,CAAA;AAEvC,kBAAe,MAAM,CAAA"}
|
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
import * as CommodityEnums from 'vitality-meta/enums/commodity';
|
|
2
2
|
import * as GDto from '../../../../types';
|
|
3
|
+
import { CSDto } from '../../../..';
|
|
3
4
|
export declare namespace QueryByItem {
|
|
4
5
|
namespace DTO {
|
|
5
6
|
interface ItemBasicInfo {
|
|
6
7
|
}
|
|
8
|
+
interface IBizTag {
|
|
9
|
+
id: string;
|
|
10
|
+
name: string;
|
|
11
|
+
type: string;
|
|
12
|
+
orderIndex: number;
|
|
13
|
+
}
|
|
7
14
|
}
|
|
8
15
|
namespace Request {
|
|
9
16
|
interface IGet<K> {
|
|
@@ -99,12 +106,21 @@ export declare namespace QueryByItem {
|
|
|
99
106
|
/** 页目条数. 默认10, 最大20 */
|
|
100
107
|
pageSize?: number;
|
|
101
108
|
}
|
|
109
|
+
interface IGetItemDetail {
|
|
110
|
+
itemId: string;
|
|
111
|
+
}
|
|
102
112
|
}
|
|
103
113
|
namespace Response {
|
|
104
114
|
interface QueryCenterForItem {
|
|
105
115
|
id: string;
|
|
106
116
|
isNewItem: boolean;
|
|
107
117
|
}
|
|
118
|
+
interface IGetItemDetail {
|
|
119
|
+
basicInfo: CSDto.IItemBasicInfo;
|
|
120
|
+
attributes: CSDto.IItemAttributes;
|
|
121
|
+
hotelItemInfo: CSDto.IHotelItemInfo;
|
|
122
|
+
bizTagList: DTO.IBizTag[];
|
|
123
|
+
}
|
|
108
124
|
}
|
|
109
125
|
interface Controller {
|
|
110
126
|
get<K extends (keyof GDto.QueryBlockDataMap)[]>(request: Request.IGet<K>): Promise<GDto.QueryDataRes<K>>;
|
|
@@ -112,5 +128,7 @@ export declare namespace QueryByItem {
|
|
|
112
128
|
queryItemListByCategory<k extends (keyof GDto.QueryBlockDataMap)[]>(request: Request.IQueryItemListByCategory<k>): Promise<GDto.QueryDataRes<k>[]>;
|
|
113
129
|
/** 商品搜索大全 */
|
|
114
130
|
queryCenterForItem(request: Request.QueryCenterForItem): Promise<Response.QueryCenterForItem>;
|
|
131
|
+
/** 商品详情 */
|
|
132
|
+
getItemDetail(request: Request.IGetItemDetail): Promise<Response.IGetItemDetail>;
|
|
115
133
|
}
|
|
116
134
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type.js","sourceRoot":"","sources":["../../../../../src/cs/modules/itemQuery/byItem/type.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"type.js","sourceRoot":"","sources":["../../../../../src/cs/modules/itemQuery/byItem/type.ts"],"names":[],"mappings":";;;AAIA,IAAiB,WAAW,CAyK3B;AAzKD,WAAiB,WAAW;IAmI1B,IAAiB,QAAQ,CAiBxB;IAjBD,WAAiB,QAAQ;QAItB,EAAE,CAAA;IAaL,CAAC,EAjBgB,QAAQ,GAAR,oBAAQ,KAAR,oBAAQ,QAiBxB;AAqBH,CAAC,EAzKgB,WAAW,2BAAX,WAAW,QAyK3B"}
|
|
@@ -5,6 +5,7 @@ declare const itemQueryService: {
|
|
|
5
5
|
mget<K_1 extends (keyof import("../../../types").QueryBlockDataMap)[]>(request: import("./byItem/type").QueryByItem.Request.IMget<K_1>): Promise<import("../../../types").QueryDataRes<K_1>[]>;
|
|
6
6
|
queryItemListByCategory<K_2 extends (keyof import("../../../types").QueryBlockDataMap)[]>(request: import("./byItem/type").QueryByItem.Request.IQueryItemListByCategory<K_2>): Promise<import("../../../types").QueryDataRes<K_2>[]>;
|
|
7
7
|
queryCenterForItem(request: import("./byItem/type").QueryByItem.Request.QueryCenterForItem): Promise<import("./byItem/type").QueryByItem.Response.QueryCenterForItem>;
|
|
8
|
+
getItemDetail(request: import("./byItem/type").QueryByItem.Request.IGetItemDetail): Promise<import("./byItem/type").QueryByItem.Response.IGetItemDetail>;
|
|
8
9
|
isPublicEnv: boolean;
|
|
9
10
|
readonly natDevHost: "http://qgostaxv.cs.nmkh74o4.rlwzae9d.com:8090";
|
|
10
11
|
readonly natProdHost: "";
|
|
@@ -3,7 +3,7 @@ import { ShuttleBusSupplier } from './types';
|
|
|
3
3
|
declare class ShuttleBusSupplierService extends BaseService implements ShuttleBusSupplier.Controller {
|
|
4
4
|
prefixUrl: string;
|
|
5
5
|
queryShuttleBusSupplierList(request: ShuttleBusSupplier.Request.QueryShuttleBusSupplierList): Promise<ShuttleBusSupplier.Response.QueryShuttleBusSupplierList>;
|
|
6
|
-
queryShuttleBusSupplierWxGroup(): Promise<ShuttleBusSupplier.Response.
|
|
6
|
+
queryShuttleBusSupplierWxGroup(): Promise<ShuttleBusSupplier.Response.QueryShuttleBusSupplierWxGroupArray>;
|
|
7
7
|
upsertShuttleBusSupplier(request: ShuttleBusSupplier.Request.UpsertShuttleBusSupplier): Promise<ShuttleBusSupplier.Response.UpsertShuttleBusSupplier>;
|
|
8
8
|
queryShuttleBusRoute(request: ShuttleBusSupplier.Request.QueryShuttleBusRoute): Promise<ShuttleBusSupplier.Response.QueryShuttleBusRoute>;
|
|
9
9
|
upsertShuttleBusPickupPoint(request: ShuttleBusSupplier.Request.UpsertShuttleBusPickupPoint): Promise<ShuttleBusSupplier.Response.UpsertShuttleBusPickupPoint>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service.js","sourceRoot":"","sources":["../../../../src/cs/modules/shuttleBusSupplier/service.ts"],"names":[],"mappings":";;;;;AAAA,qCAAoC;AACpC,iEAAwC;AAGxC,MAAM,yBAA0B,SAAQ,qBAAW;IAAnD;;QACE,cAAS,GAAG,uBAAuB,CAAA;
|
|
1
|
+
{"version":3,"file":"service.js","sourceRoot":"","sources":["../../../../src/cs/modules/shuttleBusSupplier/service.ts"],"names":[],"mappings":";;;;;AAAA,qCAAoC;AACpC,iEAAwC;AAGxC,MAAM,yBAA0B,SAAQ,qBAAW;IAAnD;;QACE,cAAS,GAAG,uBAAuB,CAAA;IA0DrC,CAAC;IAzDC,2BAA2B,CACzB,OAA+D;QAE/D,OAAO,IAAA,cAAO,EACZ,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,2BAA2B,CAAC,EAChD,OAAO,CACR,CAAA;IACH,CAAC;IAED,8BAA8B;QAC5B,OAAO,IAAA,cAAO,EACZ,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,8BAA8B,CAAC,CACpD,CAAA;IACH,CAAC;IAED,wBAAwB,CACtB,OAA4D;QAE5D,OAAO,IAAA,cAAO,EACZ,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,wBAAwB,CAAC,EAC7C,OAAO,CACR,CAAA;IACH,CAAC;IAED,oBAAoB,CAClB,OAAwD;QAExD,OAAO,IAAA,cAAO,EACZ,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,oBAAoB,CAAC,EACzC,OAAO,CACR,CAAA;IACH,CAAC;IAED,2BAA2B,CACzB,OAA+D;QAE/D,OAAO,IAAA,cAAO,EACZ,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,2BAA2B,CAAC,EAChD,OAAO,CACR,CAAA;IACH,CAAC;IAED,uCAAuC,CACrC,OAA2E;QAE3E,OAAO,IAAA,cAAO,EACZ,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,uCAAuC,CAAC,EAC5D,OAAO,CACR,CAAA;IACH,CAAC;IAED,cAAc,CAAC,OAAkD;QAC/D,OAAO,IAAA,cAAO,EACZ,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,cAAc,CAAC,EACnC,OAAO,CACR,CAAA;IACH,CAAC;CACF;AAED,MAAM,yBAAyB,GAAG,IAAI,yBAAyB,EAAE,CAAA;AAEjE,kBAAe,yBAAyB,CAAA"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { CommonStatus } from 'vitality-meta/enums/commodity';
|
|
1
2
|
export declare namespace ShuttleBusSupplier {
|
|
2
3
|
namespace DTO {
|
|
3
4
|
interface ShuttleBusSupplier {
|
|
@@ -19,6 +20,8 @@ export declare namespace ShuttleBusSupplier {
|
|
|
19
20
|
wxChatId: string;
|
|
20
21
|
/** 描述信息 */
|
|
21
22
|
description: string;
|
|
23
|
+
/** 状态 */
|
|
24
|
+
status: CommonStatus;
|
|
22
25
|
}
|
|
23
26
|
interface ShuttleBusRouteInfo {
|
|
24
27
|
id: string;
|
|
@@ -37,7 +40,7 @@ export declare namespace ShuttleBusSupplier {
|
|
|
37
40
|
/** 上车点区县 */
|
|
38
41
|
departureDistrict: string;
|
|
39
42
|
/** 状态 */
|
|
40
|
-
status:
|
|
43
|
+
status: CommonStatus;
|
|
41
44
|
}
|
|
42
45
|
interface ItemShuttleBusRouteRelation {
|
|
43
46
|
id: string;
|
|
@@ -47,8 +50,6 @@ export declare namespace ShuttleBusSupplier {
|
|
|
47
50
|
supplierId: string;
|
|
48
51
|
/** 班车线路ID */
|
|
49
52
|
routeId: string;
|
|
50
|
-
/** 状态 */
|
|
51
|
-
status: 'ONSALE' | 'DISCONTINUED';
|
|
52
53
|
/** 售卖价格 */
|
|
53
54
|
salePrice: number;
|
|
54
55
|
/** 结算价格 */
|
|
@@ -61,6 +62,8 @@ export declare namespace ShuttleBusSupplier {
|
|
|
61
62
|
isLimitStock: false;
|
|
62
63
|
/** 上车时间 */
|
|
63
64
|
pickUpTime: string;
|
|
65
|
+
/** 状态 */
|
|
66
|
+
status: CommonStatus;
|
|
64
67
|
}
|
|
65
68
|
}
|
|
66
69
|
namespace Request {
|
|
@@ -137,46 +140,25 @@ export declare namespace ShuttleBusSupplier {
|
|
|
137
140
|
/** 微信群名称 */
|
|
138
141
|
wxGroupName: string;
|
|
139
142
|
}
|
|
143
|
+
type QueryShuttleBusSupplierWxGroupArray = QueryShuttleBusSupplierWxGroup[];
|
|
140
144
|
interface UpsertShuttleBusSupplier {
|
|
141
145
|
/** 供应商ID */
|
|
142
146
|
id: string;
|
|
143
147
|
}
|
|
144
148
|
interface QueryShuttleBusRoute {
|
|
145
|
-
data:
|
|
146
|
-
id: string;
|
|
147
|
-
supplierId: string;
|
|
148
|
-
departureAddress: string;
|
|
149
|
-
departureLongitude: number;
|
|
150
|
-
departureLatitude: number;
|
|
151
|
-
departureProvince: string;
|
|
152
|
-
departureCity: string;
|
|
153
|
-
departureDistrict: string;
|
|
154
|
-
status: string;
|
|
155
|
-
}[];
|
|
149
|
+
data: DTO.ShuttleBusSupplier[];
|
|
156
150
|
total: number;
|
|
157
151
|
}
|
|
158
152
|
interface UpsertShuttleBusPickupPoint {
|
|
159
153
|
id: string;
|
|
160
154
|
}
|
|
161
|
-
|
|
162
|
-
id: string;
|
|
163
|
-
itemId: string;
|
|
164
|
-
supplierId: string;
|
|
165
|
-
routeId: string;
|
|
166
|
-
status: 'ONSALE' | 'DISCONTINUED';
|
|
167
|
-
salePrice: number;
|
|
168
|
-
settlementPrice: number;
|
|
169
|
-
saleDesc: string;
|
|
170
|
-
minOrderCount: number;
|
|
171
|
-
isLimitStock: false;
|
|
172
|
-
pickUpTime: string;
|
|
173
|
-
}
|
|
155
|
+
type GetProductAssociatedShuttleSupplierList = DTO.ItemShuttleBusRouteRelation[];
|
|
174
156
|
}
|
|
175
157
|
interface Controller {
|
|
176
158
|
/** 查询班车供应商列表 */
|
|
177
159
|
queryShuttleBusSupplierList(request: Request.QueryShuttleBusSupplierList): Promise<Response.QueryShuttleBusSupplierList>;
|
|
178
160
|
/** 查询班车供应商报单群 */
|
|
179
|
-
queryShuttleBusSupplierWxGroup(): Promise<Response.
|
|
161
|
+
queryShuttleBusSupplierWxGroup(): Promise<Response.QueryShuttleBusSupplierWxGroupArray>;
|
|
180
162
|
/** 创建或更新班车供应商 */
|
|
181
163
|
upsertShuttleBusSupplier(request: Request.UpsertShuttleBusSupplier): Promise<Response.UpsertShuttleBusSupplier>;
|
|
182
164
|
/** 查询班车供应商路线 */
|
|
@@ -1,12 +1,3 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ShuttleBusSupplier = void 0;
|
|
4
|
-
var ShuttleBusSupplier;
|
|
5
|
-
(function (ShuttleBusSupplier) {
|
|
6
|
-
let Response;
|
|
7
|
-
(function (Response) {
|
|
8
|
-
[];
|
|
9
|
-
[];
|
|
10
|
-
})(Response = ShuttleBusSupplier.Response || (ShuttleBusSupplier.Response = {}));
|
|
11
|
-
})(ShuttleBusSupplier || (exports.ShuttleBusSupplier = ShuttleBusSupplier = {}));
|
|
12
3
|
//# sourceMappingURL=types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/cs/modules/shuttleBusSupplier/types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/cs/modules/shuttleBusSupplier/types.ts"],"names":[],"mappings":""}
|