@be-link/tfs-cli-nodejs 0.0.234 → 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/package.json
CHANGED
|
@@ -3,6 +3,7 @@ import { GroupFormationFailure } from './type';
|
|
|
3
3
|
declare class GroupFormationFailureService extends BaseService implements GroupFormationFailure.Controller {
|
|
4
4
|
protected prefixUrl: string;
|
|
5
5
|
initiateGroupFormationFailure(request: GroupFormationFailure.Request.initiateGroupFormationFailure): Promise<GroupFormationFailure.Response.initiateGroupFormationFailure>;
|
|
6
|
+
queryDeparturesFormationInfo(request: GroupFormationFailure.Request.queryDeparturesFormationInfo): Promise<GroupFormationFailure.Response.queryDeparturesFormationInfo>;
|
|
6
7
|
}
|
|
7
8
|
declare const groupFormationFailureService: GroupFormationFailureService;
|
|
8
9
|
export default groupFormationFailureService;
|
|
@@ -13,6 +13,9 @@ class GroupFormationFailureService extends baseService_1.default {
|
|
|
13
13
|
initiateGroupFormationFailure(request) {
|
|
14
14
|
return (0, http_1.callApi)(this.getApiUrl(this.initiateGroupFormationFailure), request);
|
|
15
15
|
}
|
|
16
|
+
queryDeparturesFormationInfo(request) {
|
|
17
|
+
return (0, http_1.callApi)(this.getApiUrl(this.queryDeparturesFormationInfo), request);
|
|
18
|
+
}
|
|
16
19
|
}
|
|
17
20
|
const groupFormationFailureService = new GroupFormationFailureService();
|
|
18
21
|
exports.default = groupFormationFailureService;
|
|
@@ -1 +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;
|
|
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"}
|
|
@@ -1,4 +1,23 @@
|
|
|
1
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
|
+
}
|
|
2
21
|
namespace Request {
|
|
3
22
|
/** 商家发起跟团游不成团 */
|
|
4
23
|
interface initiateGroupFormationFailure {
|
|
@@ -11,6 +30,14 @@ export declare namespace GroupFormationFailure {
|
|
|
11
30
|
/** 操作人(商家) */
|
|
12
31
|
operator: string;
|
|
13
32
|
}
|
|
33
|
+
/** 批量查询出团团期不成团信息 */
|
|
34
|
+
interface queryDeparturesFormationInfo {
|
|
35
|
+
/** 待查询的团期(出行编号 = itemId + fulfillAt;tfs 内部按出团日期实时查订单) */
|
|
36
|
+
departures: {
|
|
37
|
+
itemId: string;
|
|
38
|
+
fulfillAt: number;
|
|
39
|
+
}[];
|
|
40
|
+
}
|
|
14
41
|
}
|
|
15
42
|
namespace Response {
|
|
16
43
|
interface initiateGroupFormationFailure {
|
|
@@ -19,6 +46,7 @@ export declare namespace GroupFormationFailure {
|
|
|
19
46
|
/** 本次新标记为不成团的订单数 */
|
|
20
47
|
orderCount: number;
|
|
21
48
|
}
|
|
49
|
+
type queryDeparturesFormationInfo = DTO.IDepartureFormationInfo[];
|
|
22
50
|
}
|
|
23
51
|
interface Controller {
|
|
24
52
|
/**
|
|
@@ -26,5 +54,7 @@ export declare namespace GroupFormationFailure {
|
|
|
26
54
|
* 同一出行编号(itemId + fulfillAt)幂等:重复提交不重复写订单 / 不重复备注 / 不重复通知销售。
|
|
27
55
|
*/
|
|
28
56
|
initiateGroupFormationFailure(request: Request.initiateGroupFormationFailure): Promise<Response.initiateGroupFormationFailure>;
|
|
57
|
+
/** 批量查询出团团期不成团信息(minGroupSize / 出行统计 / 发起入口状态) */
|
|
58
|
+
queryDeparturesFormationInfo(request: Request.queryDeparturesFormationInfo): Promise<Response.queryDeparturesFormationInfo>;
|
|
29
59
|
}
|
|
30
60
|
}
|