@be-link/tfs-cli-nodejs 0.0.233 → 0.0.235
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/groupFormationFailure/service.d.ts +9 -0
- package/tfs/modules/groupFormationFailure/service.js +22 -0
- package/tfs/modules/groupFormationFailure/service.js.map +1 -0
- package/tfs/modules/groupFormationFailure/type.d.ts +60 -0
- package/tfs/modules/groupFormationFailure/type.js +3 -0
- package/tfs/modules/groupFormationFailure/type.js.map +1 -0
package/index.d.ts
CHANGED
|
@@ -14,5 +14,6 @@ import fulfillInfoService from './tfs/modules/fulfillInfo/service';
|
|
|
14
14
|
import insuranceRecordService from './tfs/modules/insuranceRecord/service';
|
|
15
15
|
import touristMaterialService from './tfs/modules/touristMaterial/service';
|
|
16
16
|
import tencentAdAttributionService from './tfs/modules/tencentAdAttribution/service';
|
|
17
|
+
import groupFormationFailureService from './tfs/modules/groupFormationFailure/service';
|
|
17
18
|
/** 业务模块 */
|
|
18
|
-
export { BizError, rescheduleService, tourTeamService, tourGroupService, tourismInfoService, itineraryService, departureGroupService, departureGroupSearchService, contractService, jobService, tradeOrderCouponCodeService, groupBookingService, fulfillInfoService, insuranceRecordService, touristMaterialService, tencentAdAttributionService, };
|
|
19
|
+
export { BizError, rescheduleService, tourTeamService, tourGroupService, tourismInfoService, itineraryService, departureGroupService, departureGroupSearchService, contractService, jobService, tradeOrderCouponCodeService, groupBookingService, fulfillInfoService, insuranceRecordService, touristMaterialService, tencentAdAttributionService, groupFormationFailureService, };
|
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.tencentAdAttributionService = exports.touristMaterialService = exports.insuranceRecordService = exports.fulfillInfoService = 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;
|
|
6
|
+
exports.groupFormationFailureService = exports.tencentAdAttributionService = exports.touristMaterialService = exports.insuranceRecordService = exports.fulfillInfoService = 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"));
|
|
@@ -36,4 +36,6 @@ const service_14 = __importDefault(require("./tfs/modules/touristMaterial/servic
|
|
|
36
36
|
exports.touristMaterialService = service_14.default;
|
|
37
37
|
const service_15 = __importDefault(require("./tfs/modules/tencentAdAttribution/service"));
|
|
38
38
|
exports.tencentAdAttributionService = service_15.default;
|
|
39
|
+
const service_16 = __importDefault(require("./tfs/modules/groupFormationFailure/service"));
|
|
40
|
+
exports.groupFormationFailureService = service_16.default;
|
|
39
41
|
//# 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;AAoBtC,mBApBK,kBAAQ,CAoBL;AAnBV,+EAAgE;AAoB9D,4BApBK,iBAAiB,CAoBL;AAnBnB,6EAA4D;AAoB1D,0BApBK,iBAAe,CAoBL;AAnBjB,8EAA8D;AAoB5D,2BApBK,iBAAgB,CAoBL;AAnBlB,gFAAkE;AAoBhE,6BApBK,iBAAkB,CAoBL;AAnBpB,8EAA8D;AAoB5D,2BApBK,iBAAgB,CAoBL;AAnBlB,mFAAwE;AAoBtE,gCApBK,iBAAqB,CAoBL;AAnBvB,6FAAwF;AAoBtF,sCApBK,iBAA2B,CAoBL;AAnB7B,6EAA4D;AAoB1D,0BApBK,iBAAe,CAoBL;AAnBjB,wEAAkD;AAoBhD,qBApBK,iBAAU,CAoBL;AAnBZ,0FAAoF;AAoBlF,sCApBK,kBAA2B,CAoBL;AAnB7B,kFAAoE;AAoBlE,8BApBK,kBAAmB,CAoBL;AAnBrB,iFAAkE;AAoBhE,6BApBK,kBAAkB,CAoBL;AAnBpB,qFAA0E;AAoBxE,iCApBK,kBAAsB,CAoBL;AAnBxB,qFAA0E;AAoBxE,iCApBK,kBAAsB,CAoBL;AAnBxB,0FAAoF;AAoBlF,sCApBK,kBAA2B,CAoBL;AAnB7B,2FAAsF;AAoBpF,uCApBK,kBAA4B,CAoBL"}
|
package/package.json
CHANGED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import BaseService from '../baseService';
|
|
2
|
+
import { GroupFormationFailure } from './type';
|
|
3
|
+
declare class GroupFormationFailureService extends BaseService implements GroupFormationFailure.Controller {
|
|
4
|
+
protected prefixUrl: string;
|
|
5
|
+
initiateGroupFormationFailure(request: GroupFormationFailure.Request.initiateGroupFormationFailure): Promise<GroupFormationFailure.Response.initiateGroupFormationFailure>;
|
|
6
|
+
queryDeparturesFormationInfo(request: GroupFormationFailure.Request.queryDeparturesFormationInfo): Promise<GroupFormationFailure.Response.queryDeparturesFormationInfo>;
|
|
7
|
+
}
|
|
8
|
+
declare const groupFormationFailureService: GroupFormationFailureService;
|
|
9
|
+
export default groupFormationFailureService;
|
|
@@ -0,0 +1,22 @@
|
|
|
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 baseService_1 = __importDefault(require("../baseService"));
|
|
7
|
+
const http_1 = require("../../http");
|
|
8
|
+
class GroupFormationFailureService extends baseService_1.default {
|
|
9
|
+
constructor() {
|
|
10
|
+
super(...arguments);
|
|
11
|
+
this.prefixUrl = '/group-formation-failure';
|
|
12
|
+
}
|
|
13
|
+
initiateGroupFormationFailure(request) {
|
|
14
|
+
return (0, http_1.callApi)(this.getApiUrl(this.initiateGroupFormationFailure), request);
|
|
15
|
+
}
|
|
16
|
+
queryDeparturesFormationInfo(request) {
|
|
17
|
+
return (0, http_1.callApi)(this.getApiUrl(this.queryDeparturesFormationInfo), request);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
const groupFormationFailureService = new GroupFormationFailureService();
|
|
21
|
+
exports.default = groupFormationFailureService;
|
|
22
|
+
//# sourceMappingURL=service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service.js","sourceRoot":"","sources":["../../../../src/tfs/modules/groupFormationFailure/service.ts"],"names":[],"mappings":";;;;;AAAA,iEAAwC;AACxC,qCAAoC;AAGpC,MAAM,4BAA6B,SAAQ,qBAAW;IAAtD;;QACY,cAAS,GAAG,0BAA0B,CAAA;IAmBlD,CAAC;IAjBC,6BAA6B,CAC3B,OAAoE;QAEpE,OAAO,IAAA,cAAO,EACZ,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,6BAA6B,CAAC,EAClD,OAAO,CACR,CAAA;IACH,CAAC;IAED,4BAA4B,CAC1B,OAAmE;QAEnE,OAAO,IAAA,cAAO,EACZ,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,4BAA4B,CAAC,EACjD,OAAO,CACR,CAAA;IACH,CAAC;CACF;AAED,MAAM,4BAA4B,GAAG,IAAI,4BAA4B,EAAE,CAAA;AAEvE,kBAAe,4BAA4B,CAAA"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
export declare namespace GroupFormationFailure {
|
|
2
|
+
/** 发起入口状态:可发起 / 待销售联系 / 不展示 */
|
|
3
|
+
type InitiateStatus = 'CAN_INITIATE' | 'PENDING_SALES' | 'NONE';
|
|
4
|
+
namespace DTO {
|
|
5
|
+
/** 出团团期不成团信息(供出团管理列表补字段) */
|
|
6
|
+
interface IDepartureFormationInfo {
|
|
7
|
+
itemId: string;
|
|
8
|
+
fulfillAt: number;
|
|
9
|
+
/** 出行编号 itemId-fulfillAt */
|
|
10
|
+
bizId: string;
|
|
11
|
+
/** 最低成团人数(非旅游商品 / 未配置为 null) */
|
|
12
|
+
minGroupSize: number | null;
|
|
13
|
+
/** 当前出行人数(活跃订单出行人数之和) */
|
|
14
|
+
travelers: number;
|
|
15
|
+
/** 订单数(活跃订单数) */
|
|
16
|
+
orderCount: number;
|
|
17
|
+
/** 发起入口状态 */
|
|
18
|
+
initiateStatus: InitiateStatus;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
namespace Request {
|
|
22
|
+
/** 商家发起跟团游不成团 */
|
|
23
|
+
interface initiateGroupFormationFailure {
|
|
24
|
+
/** 商品 id(与 fulfillAt 共同构成出行编号 itemId-fulfillAt) */
|
|
25
|
+
itemId: string;
|
|
26
|
+
/** 团期(出行日期)时间戳,与 itemId 共同构成出行编号 */
|
|
27
|
+
fulfillAt: number;
|
|
28
|
+
/** 退改方案(必填,≤200 字) */
|
|
29
|
+
refundChangePlan: string;
|
|
30
|
+
/** 操作人(商家) */
|
|
31
|
+
operator: string;
|
|
32
|
+
}
|
|
33
|
+
/** 批量查询出团团期不成团信息 */
|
|
34
|
+
interface queryDeparturesFormationInfo {
|
|
35
|
+
/** 待查询的团期(出行编号 = itemId + fulfillAt;tfs 内部按出团日期实时查订单) */
|
|
36
|
+
departures: {
|
|
37
|
+
itemId: string;
|
|
38
|
+
fulfillAt: number;
|
|
39
|
+
}[];
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
namespace Response {
|
|
43
|
+
interface initiateGroupFormationFailure {
|
|
44
|
+
/** 是否本次新发起(false = 同出行编号此前已发起,幂等返回,未重复写订单/备注/通知) */
|
|
45
|
+
initiated: boolean;
|
|
46
|
+
/** 本次新标记为不成团的订单数 */
|
|
47
|
+
orderCount: number;
|
|
48
|
+
}
|
|
49
|
+
type queryDeparturesFormationInfo = DTO.IDepartureFormationInfo[];
|
|
50
|
+
}
|
|
51
|
+
interface Controller {
|
|
52
|
+
/**
|
|
53
|
+
* 商家发起跟团游不成团:写订单不成团字段 + 建系统内部未处理备注 + 下架该团期 SKU + 企微通知订单负责销售。
|
|
54
|
+
* 同一出行编号(itemId + fulfillAt)幂等:重复提交不重复写订单 / 不重复备注 / 不重复通知销售。
|
|
55
|
+
*/
|
|
56
|
+
initiateGroupFormationFailure(request: Request.initiateGroupFormationFailure): Promise<Response.initiateGroupFormationFailure>;
|
|
57
|
+
/** 批量查询出团团期不成团信息(minGroupSize / 出行统计 / 发起入口状态) */
|
|
58
|
+
queryDeparturesFormationInfo(request: Request.queryDeparturesFormationInfo): Promise<Response.queryDeparturesFormationInfo>;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.js","sourceRoot":"","sources":["../../../../src/tfs/modules/groupFormationFailure/type.ts"],"names":[],"mappings":""}
|