@be-link/tfs-cli-nodejs 0.0.17 → 0.0.20
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 +1 -1
- package/tfs/enums/GourpBizType.d.ts +6 -0
- package/tfs/enums/GourpBizType.js +3 -0
- package/tfs/enums/GourpBizType.js.map +1 -0
- package/tfs/modules/tourGroup/service.d.ts +1 -0
- package/tfs/modules/tourGroup/service.js +3 -0
- package/tfs/modules/tourGroup/service.js.map +1 -1
- package/tfs/modules/tourGroup/type.d.ts +20 -18
- package/tfs/modules/tourTeam/service.d.ts +2 -0
- package/tfs/modules/tourTeam/service.js +6 -0
- package/tfs/modules/tourTeam/service.js.map +1 -1
- package/tfs/modules/tourTeam/type.d.ts +22 -2
package/package.json
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GourpBizType.js","sourceRoot":"","sources":["../../../src/tfs/enums/GourpBizType.ts"],"names":[],"mappings":""}
|
|
@@ -9,6 +9,7 @@ declare class TourGroupService extends BaseService implements TourGroup.Controll
|
|
|
9
9
|
updateGroup(param: TourGroup.Request.updateGroupParam): Promise<void>;
|
|
10
10
|
batchCreateGroup(request: TourGroup.Request.batchCreateGroupParam): Promise<TourGroup.Response.batchCreateGroupRes>;
|
|
11
11
|
batchUpdateGroup(request: TourGroup.Request.batchUpdateGroupParam[]): Promise<void>;
|
|
12
|
+
queryGroupInfoByOrderIds(request: TourGroup.Request.queryGroupInfoByOrderIdsParam): Promise<TourGroup.Response.queryGroupInfoByOrderIdsRes>;
|
|
12
13
|
}
|
|
13
14
|
declare const tourGroupService: TourGroupService;
|
|
14
15
|
export default tourGroupService;
|
|
@@ -31,6 +31,9 @@ class TourGroupService extends baseService_1.default {
|
|
|
31
31
|
batchUpdateGroup(request) {
|
|
32
32
|
return (0, http_1.callApi)(this.getApiUrl(this.batchUpdateGroup), request);
|
|
33
33
|
}
|
|
34
|
+
queryGroupInfoByOrderIds(request) {
|
|
35
|
+
return (0, http_1.callApi)(this.getApiUrl(this.queryGroupInfoByOrderIds), request);
|
|
36
|
+
}
|
|
34
37
|
}
|
|
35
38
|
const tourGroupService = new TourGroupService();
|
|
36
39
|
exports.default = tourGroupService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service.js","sourceRoot":"","sources":["../../../../src/tfs/modules/tourGroup/service.ts"],"names":[],"mappings":";;;;;AAAA,qCAAoC;AACpC,iEAAwC;AAGxC,MAAM,gBAAiB,SAAQ,qBAAW;IAA1C;;QACY,cAAS,GAAW,aAAa,CAAA;
|
|
1
|
+
{"version":3,"file":"service.js","sourceRoot":"","sources":["../../../../src/tfs/modules/tourGroup/service.ts"],"names":[],"mappings":";;;;;AAAA,qCAAoC;AACpC,iEAAwC;AAGxC,MAAM,gBAAiB,SAAQ,qBAAW;IAA1C;;QACY,cAAS,GAAW,aAAa,CAAA;IAqC7C,CAAC;IAnCC,yBAAyB,CACvB,KAAuD;QAEvD,OAAO,IAAA,cAAO,EAAoD,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,yBAAyB,CAAC,EAAE,KAAK,CAAC,CAAA;IAC1H,CAAC;IAED,WAAW,CAAC,KAAyC;QACnD,OAAO,IAAA,cAAO,EAAsC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,KAAK,CAAC,CAAA;IAC9F,CAAC;IAED,cAAc,CAAC,OAA8C;QAC3D,OAAO,IAAA,cAAO,EAAyC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,cAAc,CAAC,EAAE,OAAO,CAAC,CAAA;IACtG,CAAC;IAED,sCAAsC,CAAC,KAAkE;QACvG,OAAO,IAAA,cAAO,EAAiE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,sCAAsC,CAAC,EAAE,KAAK,CAAC,CAAA;IACpJ,CAAC;IAED,WAAW,CAAC,KAAyC;QACnD,OAAO,IAAA,cAAO,EAAsC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,KAAK,CAAC,CAAA;IAC9F,CAAC;IAED,gBAAgB,CAAC,OAAgD;QAC/D,OAAO,IAAA,cAAO,EAA2C,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,gBAAgB,CAAC,EAAE,OAAO,CAAC,CAAA;IAC1G,CAAC;IAED,gBAAgB,CAAC,OAAkD;QACjE,OAAO,IAAA,cAAO,EAA2C,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,gBAAgB,CAAC,EAAE,OAAO,CAAC,CAAA;IAC1G,CAAC;IAED,wBAAwB,CAAC,OAAwD;QAC/E,OAAO,IAAA,cAAO,EAAmD,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,wBAAwB,CAAC,EAAE,OAAO,CAAC,CAAA;IAC1H,CAAC;CAGF;AAED,MAAM,gBAAgB,GAAG,IAAI,gBAAgB,EAAE,CAAA;AAE/C,kBAAe,gBAAgB,CAAA"}
|
|
@@ -24,8 +24,13 @@ export declare namespace TourGroup {
|
|
|
24
24
|
}
|
|
25
25
|
interface batchUpdateGroupParam {
|
|
26
26
|
groupId: string;
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
idList: {
|
|
28
|
+
id: string;
|
|
29
|
+
type: string;
|
|
30
|
+
}[];
|
|
31
|
+
}
|
|
32
|
+
interface queryGroupInfoByOrderIdsParam {
|
|
33
|
+
orderIds: string[];
|
|
29
34
|
}
|
|
30
35
|
}
|
|
31
36
|
namespace Response {
|
|
@@ -40,11 +45,14 @@ export declare namespace TourGroup {
|
|
|
40
45
|
id: string;
|
|
41
46
|
orderList: string[];
|
|
42
47
|
}[];
|
|
48
|
+
itemId: string;
|
|
49
|
+
fulfillAt: number;
|
|
43
50
|
}
|
|
44
51
|
interface queryGroupInfoRes {
|
|
45
52
|
unSplit: {
|
|
46
|
-
|
|
53
|
+
resList: {
|
|
47
54
|
id: string;
|
|
55
|
+
type: 'team' | 'order';
|
|
48
56
|
orderList: {
|
|
49
57
|
id: string;
|
|
50
58
|
tourists: {
|
|
@@ -53,17 +61,12 @@ export declare namespace TourGroup {
|
|
|
53
61
|
};
|
|
54
62
|
}[];
|
|
55
63
|
};
|
|
56
|
-
orderList: {
|
|
57
|
-
id: string;
|
|
58
|
-
tourists: {
|
|
59
|
-
name: string;
|
|
60
|
-
mobile: string;
|
|
61
|
-
};
|
|
62
|
-
}[];
|
|
63
64
|
}[];
|
|
64
65
|
split: {
|
|
65
66
|
group: {
|
|
66
|
-
|
|
67
|
+
id: string;
|
|
68
|
+
limitCount: number;
|
|
69
|
+
resList: {
|
|
67
70
|
id: string;
|
|
68
71
|
orderList: {
|
|
69
72
|
id: string;
|
|
@@ -73,16 +76,14 @@ export declare namespace TourGroup {
|
|
|
73
76
|
};
|
|
74
77
|
}[];
|
|
75
78
|
}[];
|
|
76
|
-
orderList: {
|
|
77
|
-
id: string;
|
|
78
|
-
tourists: {
|
|
79
|
-
name: string;
|
|
80
|
-
mobile: string;
|
|
81
|
-
};
|
|
82
|
-
}[];
|
|
83
79
|
}[];
|
|
84
80
|
};
|
|
85
81
|
}
|
|
82
|
+
interface queryGroupInfoByOrderIdsRes {
|
|
83
|
+
[orderId: string]: {
|
|
84
|
+
groupId: string;
|
|
85
|
+
};
|
|
86
|
+
}
|
|
86
87
|
}
|
|
87
88
|
interface Controller {
|
|
88
89
|
queryOrderIdListByGroupId(param: Request.queryOrderIdListByGroupIdParam): Promise<Response.queryOrderIdListByGroupIdRes>;
|
|
@@ -92,5 +93,6 @@ export declare namespace TourGroup {
|
|
|
92
93
|
queryGroupInfo(request: Request.queryGroupInfoParam): Promise<Response.queryGroupInfoRes>;
|
|
93
94
|
batchCreateGroup(request: Request.batchCreateGroupParam): Promise<Response.batchCreateGroupRes>;
|
|
94
95
|
batchUpdateGroup(request: Request.batchUpdateGroupParam[]): Promise<void>;
|
|
96
|
+
queryGroupInfoByOrderIds(request: Request.queryGroupInfoByOrderIdsParam): Promise<Response.queryGroupInfoByOrderIdsRes>;
|
|
95
97
|
}
|
|
96
98
|
}
|
|
@@ -7,6 +7,8 @@ declare class TourTeamService extends BaseService implements TourTeam.Controller
|
|
|
7
7
|
deleteTourTeam(param: TourTeam.Request.deleteTourTeamParam): Promise<void>;
|
|
8
8
|
queryTeamInfoByOrderId(param: TourTeam.Request.queryTeamInfoByOrderIdParam): Promise<TourTeam.Response.queryTeamInfoByOrderIdRes>;
|
|
9
9
|
setTeamLeader(param: TourTeam.Request.setTeamLeaderParam): Promise<void>;
|
|
10
|
+
queryTeamsByOrderIds(param: TourTeam.Request.queryTeamsByOrderIdsParam): Promise<TourTeam.Response.queryTeamsByOrderIdsRes>;
|
|
11
|
+
queryTeamTouristByOrderIds(param: TourTeam.Request.queryTeamTouristByOrderIdsParam): Promise<TourTeam.Response.queryTeamTouristByOrderIdsRes>;
|
|
10
12
|
updateTourTeam(param: TourTeam.Request.updateTourTeamParam): Promise<void>;
|
|
11
13
|
upsertOrderToTeam(param: TourTeam.Request.upsertOrderToTeamParam): Promise<void>;
|
|
12
14
|
}
|
|
@@ -25,6 +25,12 @@ class TourTeamService extends baseService_1.default {
|
|
|
25
25
|
setTeamLeader(param) {
|
|
26
26
|
return (0, http_1.callApi)(this.getApiUrl(this.setTeamLeader), param);
|
|
27
27
|
}
|
|
28
|
+
queryTeamsByOrderIds(param) {
|
|
29
|
+
return (0, http_1.callApi)(this.getApiUrl(this.queryTeamsByOrderIds), param);
|
|
30
|
+
}
|
|
31
|
+
queryTeamTouristByOrderIds(param) {
|
|
32
|
+
return (0, http_1.callApi)(this.getApiUrl(this.queryTeamTouristByOrderIds), param);
|
|
33
|
+
}
|
|
28
34
|
updateTourTeam(param) {
|
|
29
35
|
return (0, http_1.callApi)(this.getApiUrl(this.updateTourTeam), param);
|
|
30
36
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service.js","sourceRoot":"","sources":["../../../../src/tfs/modules/tourTeam/service.ts"],"names":[],"mappings":";;;;;AAAA,qCAAoC;AACpC,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,0BAA0B,CAAC,EAAE,KAAK,CAAC,CAAA;IAC3H,CAAC;IAED,cAAc,CAAC,KAA2C;QACxD,OAAO,IAAA,cAAO,EAAwC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,cAAc,CAAC,EAAE,KAAK,CAAC,CAAA;IACnG,CAAC;IAED,iBAAiB,CAAC,KAA8C;QAC9D,OAAO,IAAA,cAAO,EAA2C,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,iBAAiB,CAAC,EAAE,KAAK,CAAC,CAAA;IACzG,CAAC;CAEF;AAED,MAAM,eAAe,GAAG,IAAI,eAAe,EAAE,CAAA;AAE7C,kBAAe,eAAe,CAAA"}
|
|
@@ -29,6 +29,9 @@ export declare namespace TourTeam {
|
|
|
29
29
|
name: string;
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
|
+
interface queryTeamsByOrderIdsParam {
|
|
33
|
+
orderIdList: string[];
|
|
34
|
+
}
|
|
32
35
|
interface upsertOrderToTeamParam {
|
|
33
36
|
teamId?: string;
|
|
34
37
|
orderIdList: string[];
|
|
@@ -40,6 +43,9 @@ export declare namespace TourTeam {
|
|
|
40
43
|
itemId: string;
|
|
41
44
|
fulfillTime: number;
|
|
42
45
|
}
|
|
46
|
+
interface queryTeamTouristByOrderIdsParam {
|
|
47
|
+
orderIds: string[];
|
|
48
|
+
}
|
|
43
49
|
}
|
|
44
50
|
namespace Response {
|
|
45
51
|
interface queryTeamInfoRes {
|
|
@@ -51,7 +57,7 @@ export declare namespace TourTeam {
|
|
|
51
57
|
};
|
|
52
58
|
orders: {
|
|
53
59
|
id: string;
|
|
54
|
-
|
|
60
|
+
tourists: {
|
|
55
61
|
name: string;
|
|
56
62
|
mobile: string;
|
|
57
63
|
}[];
|
|
@@ -59,7 +65,7 @@ export declare namespace TourTeam {
|
|
|
59
65
|
}[];
|
|
60
66
|
orderList: {
|
|
61
67
|
id: string;
|
|
62
|
-
|
|
68
|
+
tourists: {
|
|
63
69
|
name: string;
|
|
64
70
|
mobile: string;
|
|
65
71
|
}[];
|
|
@@ -70,6 +76,18 @@ export declare namespace TourTeam {
|
|
|
70
76
|
leaderInfo: any;
|
|
71
77
|
orders: string[];
|
|
72
78
|
}
|
|
79
|
+
interface queryTeamsByOrderIdsRes {
|
|
80
|
+
[tradeOrderId: string]: {
|
|
81
|
+
teamId: string;
|
|
82
|
+
leaderInfo: {};
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
interface queryTeamTouristByOrderIdsRes {
|
|
86
|
+
tourists: {
|
|
87
|
+
name: string;
|
|
88
|
+
mobile: string;
|
|
89
|
+
}[];
|
|
90
|
+
}
|
|
73
91
|
}
|
|
74
92
|
interface Controller {
|
|
75
93
|
queryTeamInfo(param: Request.queryTeamInfoParam): Promise<Response.queryTeamInfoRes>;
|
|
@@ -79,5 +97,7 @@ export declare namespace TourTeam {
|
|
|
79
97
|
upsertOrderToTeam(param: Request.upsertOrderToTeamParam): Promise<void>;
|
|
80
98
|
deleteTourTeam(param: Request.deleteTourTeamParam): Promise<void>;
|
|
81
99
|
setTeamLeader(param: Request.setTeamLeaderParam): Promise<void>;
|
|
100
|
+
queryTeamsByOrderIds(param: Request.queryTeamsByOrderIdsParam): Promise<Response.queryTeamsByOrderIdsRes>;
|
|
101
|
+
queryTeamTouristByOrderIds(param: Request.queryTeamTouristByOrderIdsParam): Promise<Response.queryTeamTouristByOrderIdsRes>;
|
|
82
102
|
}
|
|
83
103
|
}
|