@be-link/tfs-cli-nodejs 0.0.32 → 0.0.34
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 +5 -3
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/tfs/modules/contract/service.d.ts +8 -0
- package/tfs/modules/contract/service.js +19 -0
- package/tfs/modules/contract/service.js.map +1 -0
- package/tfs/modules/contract/type.d.ts +16 -0
- package/tfs/modules/contract/type.js +3 -0
- package/tfs/modules/contract/type.js.map +1 -0
- package/tfs/modules/tourGroup/type.d.ts +1 -0
- package/tfs/modules/tourTeam/type.d.ts +7 -0
package/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import tourGroupService from './tfs/modules/tourGroup/service';
|
|
|
5
5
|
import tourismInfoService from './tfs/modules/tourismInfo/service';
|
|
6
6
|
import itineraryService from './tfs/modules/itinerary/service';
|
|
7
7
|
import departureGroupService from './tfs/modules/departureGroup/service';
|
|
8
|
+
import contractService from './tfs/modules/contract/service';
|
|
8
9
|
import jobService from './tfs/modules/job/service';
|
|
9
10
|
/** 业务模块 */
|
|
10
|
-
export { BizError, rescheduleService, tourTeamService, tourGroupService, tourismInfoService, itineraryService, departureGroupService, jobService, };
|
|
11
|
+
export { BizError, rescheduleService, tourTeamService, tourGroupService, tourismInfoService, itineraryService, departureGroupService, contractService, jobService, };
|
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.jobService = exports.departureGroupService = exports.itineraryService = exports.tourismInfoService = exports.tourGroupService = exports.tourTeamService = exports.rescheduleService = exports.BizError = void 0;
|
|
6
|
+
exports.jobService = exports.contractService = 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"));
|
|
@@ -18,6 +18,8 @@ const service_5 = __importDefault(require("./tfs/modules/itinerary/service"));
|
|
|
18
18
|
exports.itineraryService = service_5.default;
|
|
19
19
|
const service_6 = __importDefault(require("./tfs/modules/departureGroup/service"));
|
|
20
20
|
exports.departureGroupService = service_6.default;
|
|
21
|
-
const service_7 = __importDefault(require("./tfs/modules/
|
|
22
|
-
exports.
|
|
21
|
+
const service_7 = __importDefault(require("./tfs/modules/contract/service"));
|
|
22
|
+
exports.contractService = service_7.default;
|
|
23
|
+
const service_8 = __importDefault(require("./tfs/modules/job/service"));
|
|
24
|
+
exports.jobService = service_8.default;
|
|
23
25
|
//# 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;AAYtC,mBAZK,kBAAQ,CAYL;AAXV,+EAAgE;AAY9D,4BAZK,iBAAiB,CAYL;AAXnB,6EAA4D;AAY1D,0BAZK,iBAAe,CAYL;AAXjB,8EAA8D;AAY5D,2BAZK,iBAAgB,CAYL;AAXlB,gFAAkE;AAYhE,6BAZK,iBAAkB,CAYL;AAXpB,8EAA8D;AAY5D,2BAZK,iBAAgB,CAYL;AAXlB,mFAAwE;AAYtE,gCAZK,iBAAqB,CAYL;AAXvB,6EAA4D;AAY1D,0BAZK,iBAAe,CAYL;AAXjB,wEAAkD;AAYhD,qBAZK,iBAAU,CAYL"}
|
package/package.json
CHANGED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Contract } from "./type";
|
|
2
|
+
import BaseService from '../baseService';
|
|
3
|
+
declare class ContractService extends BaseService implements Contract.Controller {
|
|
4
|
+
protected prefixUrl: string;
|
|
5
|
+
exportPdf(request: Contract.Request.IExportPdf): Promise<Contract.Response.IExportPdf>;
|
|
6
|
+
}
|
|
7
|
+
declare const contractService: ContractService;
|
|
8
|
+
export default contractService;
|
|
@@ -0,0 +1,19 @@
|
|
|
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 ContractService extends baseService_1.default {
|
|
9
|
+
constructor() {
|
|
10
|
+
super(...arguments);
|
|
11
|
+
this.prefixUrl = '/contract';
|
|
12
|
+
}
|
|
13
|
+
exportPdf(request) {
|
|
14
|
+
return (0, http_1.callApi)(this.getApiUrl(this.exportPdf), request);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
const contractService = new ContractService();
|
|
18
|
+
exports.default = contractService;
|
|
19
|
+
//# sourceMappingURL=service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service.js","sourceRoot":"","sources":["../../../../src/tfs/modules/contract/service.ts"],"names":[],"mappings":";;;;;AACA,qCAAoC;AACpC,iEAAwC;AAExC,MAAM,eAAgB,SAAQ,qBAAW;IAAzC;;QACY,cAAS,GAAG,WAAW,CAAA;IAKnC,CAAC;IAHC,SAAS,CAAC,OAAoC;QAC5C,OAAO,IAAA,cAAO,EAAmC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC,CAAA;IAC3F,CAAC;CACF;AAED,MAAM,eAAe,GAAG,IAAI,eAAe,EAAE,CAAA;AAC7C,kBAAe,eAAe,CAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare namespace Contract {
|
|
2
|
+
namespace Request {
|
|
3
|
+
interface IExportPdf {
|
|
4
|
+
orderId: string;
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
namespace Response {
|
|
8
|
+
interface IExportPdf {
|
|
9
|
+
downloadUrl: string;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
interface Controller {
|
|
13
|
+
/** 导出合同pdf */
|
|
14
|
+
exportPdf(request: Request.IExportPdf): Promise<Response.IExportPdf>;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.js","sourceRoot":"","sources":["../../../../src/tfs/modules/contract/type.ts"],"names":[],"mappings":""}
|
|
@@ -3,6 +3,7 @@ export declare namespace TourTeam {
|
|
|
3
3
|
interface queryTeamInfoParam {
|
|
4
4
|
itemId: string;
|
|
5
5
|
fulfillAt: number;
|
|
6
|
+
isShowRefundOrder?: boolean;
|
|
6
7
|
}
|
|
7
8
|
interface queryTeamInfoByOrderIdParam {
|
|
8
9
|
orderId: string;
|
|
@@ -11,12 +12,14 @@ export declare namespace TourTeam {
|
|
|
11
12
|
teamId: string;
|
|
12
13
|
orderIdList?: string[];
|
|
13
14
|
leaderInfo?: any;
|
|
15
|
+
supplierId?: string;
|
|
14
16
|
}
|
|
15
17
|
interface createTourTeamParam {
|
|
16
18
|
orderIdList: string[];
|
|
17
19
|
leaderInfo: any;
|
|
18
20
|
itemId: string;
|
|
19
21
|
fulfillTime: number;
|
|
22
|
+
supplierId: string;
|
|
20
23
|
}
|
|
21
24
|
interface deleteTourTeamParam {
|
|
22
25
|
teamId: string;
|
|
@@ -42,6 +45,7 @@ export declare namespace TourTeam {
|
|
|
42
45
|
};
|
|
43
46
|
itemId: string;
|
|
44
47
|
fulfillTime: number;
|
|
48
|
+
supplierId: string;
|
|
45
49
|
}
|
|
46
50
|
interface queryTeamTouristByOrderIdsParam {
|
|
47
51
|
orderIds: string[];
|
|
@@ -54,12 +58,14 @@ export declare namespace TourTeam {
|
|
|
54
58
|
leaderInfo: {
|
|
55
59
|
mobile: string;
|
|
56
60
|
name: string;
|
|
61
|
+
idCard: string;
|
|
57
62
|
};
|
|
58
63
|
orders: {
|
|
59
64
|
id: string;
|
|
60
65
|
tourists: {
|
|
61
66
|
name: string;
|
|
62
67
|
mobile: string;
|
|
68
|
+
idCard: string;
|
|
63
69
|
}[];
|
|
64
70
|
}[];
|
|
65
71
|
}[];
|
|
@@ -68,6 +74,7 @@ export declare namespace TourTeam {
|
|
|
68
74
|
tourists: {
|
|
69
75
|
name: string;
|
|
70
76
|
mobile: string;
|
|
77
|
+
idCard: string;
|
|
71
78
|
}[];
|
|
72
79
|
}[];
|
|
73
80
|
}
|