@be-link/tfs-cli-nodejs 0.0.51 → 0.0.53

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@be-link/tfs-cli-nodejs",
3
- "version": "0.0.51",
3
+ "version": "0.0.53",
4
4
  "description": "交易履约服务Nodejs客户端",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -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,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/groupBooking/type.ts"],"names":[],"mappings":""}
@@ -10,7 +10,7 @@ export declare namespace CouponCode {
10
10
  orderId: string;
11
11
  }
12
12
  interface listCouponCodeOrderIdsReq {
13
- orderIds: string;
13
+ orderIds: string[];
14
14
  }
15
15
  interface listStoreByCodeReq {
16
16
  code: string;
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
  }