@be-link/tfs-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/index.d.ts +2 -1
- package/index.js +3 -1
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/tfs/modules/groupBooking/service.d.ts +10 -0
- package/tfs/modules/groupBooking/service.js +25 -0
- package/tfs/modules/groupBooking/service.js.map +1 -0
- package/tfs/modules/groupBooking/type.d.ts +35 -0
- package/tfs/modules/groupBooking/type.js +3 -0
- package/tfs/modules/groupBooking/type.js.map +1 -0
- package/types.d.ts +23 -0
package/index.d.ts
CHANGED
|
@@ -9,5 +9,6 @@ import departureGroupSearchService from './tfs/modules/departureGroupSearchInfo/
|
|
|
9
9
|
import contractService from './tfs/modules/contract/service';
|
|
10
10
|
import jobService from './tfs/modules/job/service';
|
|
11
11
|
import tradeOrderCouponCodeService from './tfs/modules/tradeOrderCouponCode/service';
|
|
12
|
+
import groupBookingService from './tfs/modules/groupBooking/service';
|
|
12
13
|
/** 业务模块 */
|
|
13
|
-
export { BizError, rescheduleService, tourTeamService, tourGroupService, tourismInfoService, itineraryService, departureGroupService, departureGroupSearchService, contractService, jobService, tradeOrderCouponCodeService, };
|
|
14
|
+
export { BizError, rescheduleService, tourTeamService, tourGroupService, tourismInfoService, itineraryService, departureGroupService, departureGroupSearchService, contractService, jobService, tradeOrderCouponCodeService, groupBookingService };
|
package/index.js
CHANGED
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.tradeOrderCouponCodeService = exports.jobService = exports.contractService = exports.departureGroupSearchService = exports.departureGroupService = exports.itineraryService = exports.tourismInfoService = exports.tourGroupService = exports.tourTeamService = exports.rescheduleService = exports.BizError = void 0;
|
|
6
|
+
exports.groupBookingService = exports.tradeOrderCouponCodeService = exports.jobService = exports.contractService = exports.departureGroupSearchService = exports.departureGroupService = exports.itineraryService = exports.tourismInfoService = exports.tourGroupService = exports.tourTeamService = exports.rescheduleService = exports.BizError = void 0;
|
|
7
7
|
const BizError_1 = __importDefault(require("./errors/BizError"));
|
|
8
8
|
exports.BizError = BizError_1.default;
|
|
9
9
|
const service_1 = __importDefault(require("./tfs/modules/reschedule/service"));
|
|
@@ -26,4 +26,6 @@ const service_9 = __importDefault(require("./tfs/modules/job/service"));
|
|
|
26
26
|
exports.jobService = service_9.default;
|
|
27
27
|
const service_10 = __importDefault(require("./tfs/modules/tradeOrderCouponCode/service"));
|
|
28
28
|
exports.tradeOrderCouponCodeService = service_10.default;
|
|
29
|
+
const service_11 = __importDefault(require("./tfs/modules/groupBooking/service"));
|
|
30
|
+
exports.groupBookingService = service_11.default;
|
|
29
31
|
//# sourceMappingURL=index.js.map
|
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;AAetC,mBAfK,kBAAQ,CAeL;AAdV,+EAAgE;AAe9D,4BAfK,iBAAiB,CAeL;AAdnB,6EAA4D;AAe1D,0BAfK,iBAAe,CAeL;AAdjB,8EAA8D;AAe5D,2BAfK,iBAAgB,CAeL;AAdlB,gFAAkE;AAehE,6BAfK,iBAAkB,CAeL;AAdpB,8EAA8D;AAe5D,2BAfK,iBAAgB,CAeL;AAdlB,mFAAwE;AAetE,gCAfK,iBAAqB,CAeL;AAdvB,6FAAwF;AAetF,sCAfK,iBAA2B,CAeL;AAd7B,6EAA4D;AAe1D,0BAfK,iBAAe,CAeL;AAdjB,wEAAkD;AAehD,qBAfK,iBAAU,CAeL;AAdZ,0FAAoF;AAelF,sCAfK,kBAA2B,CAeL;AAd7B,kFAAoE;AAelE,8BAfK,kBAAmB,CAeL"}
|
package/package.json
CHANGED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import BaseService from '../baseService';
|
|
2
|
+
import { GroupBooking } from './type';
|
|
3
|
+
declare class GroupBookingService extends BaseService implements GroupBooking.Controller {
|
|
4
|
+
protected prefixUrl: string;
|
|
5
|
+
queryGroupBookingInfo(request: GroupBooking.Request.queryGroupBookingInfo): Promise<GroupBooking.Response.queryGroupBookingInfo>;
|
|
6
|
+
upsertGroupBooking(request: GroupBooking.Request.upsertGroupBooking): Promise<void>;
|
|
7
|
+
cancelGroupBooking(request: GroupBooking.Request.cancelGroupBooking): Promise<void>;
|
|
8
|
+
}
|
|
9
|
+
declare const groupBookingService: GroupBookingService;
|
|
10
|
+
export default groupBookingService;
|
|
@@ -0,0 +1,25 @@
|
|
|
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 GroupBookingService extends baseService_1.default {
|
|
9
|
+
constructor() {
|
|
10
|
+
super(...arguments);
|
|
11
|
+
this.prefixUrl = '/group-booking';
|
|
12
|
+
}
|
|
13
|
+
queryGroupBookingInfo(request) {
|
|
14
|
+
return (0, http_1.callApi)(this.getApiUrl(this.queryGroupBookingInfo), request);
|
|
15
|
+
}
|
|
16
|
+
upsertGroupBooking(request) {
|
|
17
|
+
return (0, http_1.callApi)(this.getApiUrl(this.upsertGroupBooking), request);
|
|
18
|
+
}
|
|
19
|
+
cancelGroupBooking(request) {
|
|
20
|
+
return (0, http_1.callApi)(this.getApiUrl(this.cancelGroupBooking), request);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
const groupBookingService = new GroupBookingService();
|
|
24
|
+
exports.default = groupBookingService;
|
|
25
|
+
//# sourceMappingURL=service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service.js","sourceRoot":"","sources":["../../../../src/tfs/modules/groupBooking/service.ts"],"names":[],"mappings":";;;;;AAAA,qCAAoC;AACpC,iEAAwC;AAGxC,MAAM,mBAAoB,SAAQ,qBAAW;IAA7C;;QACY,cAAS,GAAW,gBAAgB,CAAA;IAahD,CAAC;IAXC,qBAAqB,CAAC,OAAmD;QACvE,OAAO,IAAA,cAAO,EAAmD,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,qBAAqB,CAAC,EAAE,OAAO,CAAC,CAAA;IACvH,CAAC;IACD,kBAAkB,CAAC,OAAgD;QACjE,OAAO,IAAA,cAAO,EAAgD,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,kBAAkB,CAAC,EAAE,OAAO,CAAC,CAAA;IACjH,CAAC;IACD,kBAAkB,CAAC,OAAgD;QACjE,OAAO,IAAA,cAAO,EAAgD,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,kBAAkB,CAAC,EAAE,OAAO,CAAC,CAAA;IACjH,CAAC;CAGF;AAED,MAAM,mBAAmB,GAAG,IAAI,mBAAmB,EAAE,CAAA;AAErD,kBAAe,mBAAmB,CAAA"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Fulfill } from '../../../types';
|
|
2
|
+
export declare namespace GroupBooking {
|
|
3
|
+
namespace Request {
|
|
4
|
+
interface queryGroupBookingInfo {
|
|
5
|
+
conditions: {
|
|
6
|
+
orderIdList?: string[];
|
|
7
|
+
statusList?: Fulfill.Constants.GroupBookingStatusEnum[];
|
|
8
|
+
};
|
|
9
|
+
sort: {
|
|
10
|
+
key: 'createdAt';
|
|
11
|
+
order: 'ASC' | 'DESC';
|
|
12
|
+
}[];
|
|
13
|
+
pageIndex: number;
|
|
14
|
+
pageSize: number;
|
|
15
|
+
}
|
|
16
|
+
interface upsertGroupBooking {
|
|
17
|
+
orderId: string;
|
|
18
|
+
expectDesc: string;
|
|
19
|
+
}
|
|
20
|
+
interface cancelGroupBooking {
|
|
21
|
+
orderId: string;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
namespace Response {
|
|
25
|
+
type queryGroupBookingInfo = Fulfill.Entity.GroupBookingInfo[];
|
|
26
|
+
}
|
|
27
|
+
interface Controller {
|
|
28
|
+
/** 查询拼团信息 */
|
|
29
|
+
queryGroupBookingInfo(request: Request.queryGroupBookingInfo): Promise<Response.queryGroupBookingInfo>;
|
|
30
|
+
/** 发起或修改拼团 */
|
|
31
|
+
upsertGroupBooking(request: Request.upsertGroupBooking): Promise<void>;
|
|
32
|
+
/** 取消拼团 */
|
|
33
|
+
cancelGroupBooking(request: Request.cancelGroupBooking): Promise<void>;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.js","sourceRoot":"","sources":["../../../../src/tfs/modules/groupBooking/type.ts"],"names":[],"mappings":""}
|
package/types.d.ts
CHANGED
|
@@ -52,6 +52,13 @@ export declare namespace Fulfill {
|
|
|
52
52
|
fulfillContactInfo = "fulfillContactInfo",
|
|
53
53
|
itineraryInfo = "itineraryInfo"
|
|
54
54
|
}
|
|
55
|
+
/** 拼团状态 */
|
|
56
|
+
const enum GroupBookingStatusEnum {
|
|
57
|
+
/** 拼团中 */
|
|
58
|
+
IN_GROUP = "IN_GROUP",
|
|
59
|
+
/** 拼团取消 */
|
|
60
|
+
GROUP_CANCEL = "GROUP_CANCEL"
|
|
61
|
+
}
|
|
55
62
|
}
|
|
56
63
|
namespace Entity {
|
|
57
64
|
interface TradeOrderTourismInfo {
|
|
@@ -231,5 +238,21 @@ export declare namespace Fulfill {
|
|
|
231
238
|
isFillDeparture: boolean;
|
|
232
239
|
}[];
|
|
233
240
|
}
|
|
241
|
+
interface GroupBookingInfo {
|
|
242
|
+
/** id */
|
|
243
|
+
id: string;
|
|
244
|
+
/** 创建时间 */
|
|
245
|
+
createdAt: number;
|
|
246
|
+
/** 更新时间 */
|
|
247
|
+
updatedAt: number;
|
|
248
|
+
/** 删除时间 */
|
|
249
|
+
deletedAt: number;
|
|
250
|
+
/** 订单id */
|
|
251
|
+
orderId: string;
|
|
252
|
+
/** 拼团状态 */
|
|
253
|
+
status: Constants.GroupBookingStatusEnum;
|
|
254
|
+
/** 期望描述 */
|
|
255
|
+
expectDesc: string;
|
|
256
|
+
}
|
|
234
257
|
}
|
|
235
258
|
}
|