@be-link/tfs-cli-nodejs 0.0.33 → 0.0.36

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 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/job/service"));
22
- exports.jobService = service_7.default;
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;AAWtC,mBAXK,kBAAQ,CAWL;AAVV,+EAAgE;AAW9D,4BAXK,iBAAiB,CAWL;AAVnB,6EAA4D;AAW1D,0BAXK,iBAAe,CAWL;AAVjB,8EAA8D;AAW5D,2BAXK,iBAAgB,CAWL;AAVlB,gFAAkE;AAWhE,6BAXK,iBAAkB,CAWL;AAVpB,8EAA8D;AAW5D,2BAXK,iBAAgB,CAWL;AAVlB,mFAAwE;AAWtE,gCAXK,iBAAqB,CAWL;AAVvB,wEAAkD;AAWhD,qBAXK,iBAAU,CAWL"}
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@be-link/tfs-cli-nodejs",
3
- "version": "0.0.33",
3
+ "version": "0.0.36",
4
4
  "description": "交易履约服务Nodejs客户端",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -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,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.js","sourceRoot":"","sources":["../../../../src/tfs/modules/contract/type.ts"],"names":[],"mappings":""}
@@ -9,6 +9,7 @@ declare class JobService extends BaseService implements Job.Controller {
9
9
  type: 'DEPARTURE' | 'RETURN';
10
10
  }): Promise<void>;
11
11
  tourProductTravelWxWorkSOP(): Promise<void>;
12
+ tourGroupQrCodeMissingRemind(): Promise<void>;
12
13
  }
13
14
  declare const jobService: JobService;
14
15
  export default jobService;
@@ -25,6 +25,9 @@ class JobService extends baseService_1.default {
25
25
  tourProductTravelWxWorkSOP() {
26
26
  return (0, http_1.callApi)(this.getApiUrl(this.tourProductTravelWxWorkSOP));
27
27
  }
28
+ tourGroupQrCodeMissingRemind() {
29
+ return (0, http_1.callApi)(this.getApiUrl(this.tourGroupQrCodeMissingRemind));
30
+ }
28
31
  }
29
32
  const jobService = new JobService();
30
33
  exports.default = jobService;
@@ -1 +1 @@
1
- {"version":3,"file":"service.js","sourceRoot":"","sources":["../../../../src/tfs/modules/job/service.ts"],"names":[],"mappings":";;;;;AAAA,iEAAwC;AACxC,qCAAoC;AAGpC,MAAM,UAAW,SAAQ,qBAAW;IAApC;;QACY,cAAS,GAAG,MAAM,CAAA;IAiB9B,CAAC;IAfC,6CAA6C;QAC3C,OAAO,IAAA,cAAO,EAAkE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,6CAA6C,CAAC,CAAC,CAAA;IACrJ,CAAC;IACD,+CAA+C;QAC7C,OAAO,IAAA,cAAO,EAAoE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,+CAA+C,CAAC,CAAC,CAAA;IACzJ,CAAC;IACD,4CAA4C;QAC1C,OAAO,IAAA,cAAO,EAAiE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,4CAA4C,CAAC,C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EAAiD,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,4BAA4B,CAAC,CAAC,CAAA;IACnH,CAAC;CACF;AAED,MAAM,UAAU,GAAG,IAAI,UAAU,EAAE,CAAA;AACnC,kBAAe,UAAU,CAAA"}
@@ -12,5 +12,7 @@ export declare namespace Job {
12
12
  }): Promise<void>;
13
13
  /** 旅游产品出团的企微SOP */
14
14
  tourProductTravelWxWorkSOP(): Promise<void>;
15
+ /** 提醒客服上传旅游团的微信群码 */
16
+ tourGroupQrCodeMissingRemind(): Promise<void>;
15
17
  }
16
18
  }
@@ -23,6 +23,7 @@ export declare namespace TourGroup {
23
23
  groupCount: number;
24
24
  itemId: string;
25
25
  fulfillAt: number;
26
+ supplierId: string;
26
27
  }
27
28
  interface batchUpdateGroupParam {
28
29
  groupId: string;
@@ -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[];