@be-link/tfs-cli-nodejs 0.0.68 → 0.0.70
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
|
@@ -13,6 +13,13 @@ declare class GroupBookingService extends BaseService implements GroupBooking.Co
|
|
|
13
13
|
cancelGroupBookingV2(request: GroupBooking.Request.cancelGroupBooking): Promise<void>;
|
|
14
14
|
canOrderGroupBooking(request: GroupBooking.Request.canOrderGroupBooking): Promise<void>;
|
|
15
15
|
initGroupBookingRecord(request: GroupBooking.Request.initGroupBookingRecord): Promise<void>;
|
|
16
|
+
canItemGroupBooking(request: GroupBooking.Request.canItemGroupBooking): Promise<void>;
|
|
17
|
+
canInitGroupBooking(request: GroupBooking.Request.canInitGroupBooking): Promise<void>;
|
|
18
|
+
initGroupBooking(request: GroupBooking.Request.initGroupBooking): Promise<void>;
|
|
19
|
+
lockGroupBooking(request: GroupBooking.Request.lockGroupBooking): Promise<void>;
|
|
20
|
+
submitGroupBooking(request: GroupBooking.Request.submitGroupBooking): Promise<void>;
|
|
21
|
+
acceptGroupBooking(request: GroupBooking.Request.acceptGroupBooking): Promise<void>;
|
|
22
|
+
rejectGroupBooking(request: GroupBooking.Request.rejectGroupBooking): Promise<void>;
|
|
16
23
|
}
|
|
17
24
|
declare const groupBookingService: GroupBookingService;
|
|
18
25
|
export default groupBookingService;
|
|
@@ -43,6 +43,27 @@ class GroupBookingService extends baseService_1.default {
|
|
|
43
43
|
initGroupBookingRecord(request) {
|
|
44
44
|
return (0, http_1.callApi)(this.getApiUrl(this.initGroupBookingRecord), request);
|
|
45
45
|
}
|
|
46
|
+
canItemGroupBooking(request) {
|
|
47
|
+
return (0, http_1.callApi)(this.getApiUrl(this.canItemGroupBooking), request);
|
|
48
|
+
}
|
|
49
|
+
canInitGroupBooking(request) {
|
|
50
|
+
return (0, http_1.callApi)(this.getApiUrl(this.canInitGroupBooking), request);
|
|
51
|
+
}
|
|
52
|
+
initGroupBooking(request) {
|
|
53
|
+
return (0, http_1.callApi)(this.getApiUrl(this.initGroupBooking), request);
|
|
54
|
+
}
|
|
55
|
+
lockGroupBooking(request) {
|
|
56
|
+
return (0, http_1.callApi)(this.getApiUrl(this.lockGroupBooking), request);
|
|
57
|
+
}
|
|
58
|
+
submitGroupBooking(request) {
|
|
59
|
+
return (0, http_1.callApi)(this.getApiUrl(this.submitGroupBooking), request);
|
|
60
|
+
}
|
|
61
|
+
acceptGroupBooking(request) {
|
|
62
|
+
return (0, http_1.callApi)(this.getApiUrl(this.acceptGroupBooking), request);
|
|
63
|
+
}
|
|
64
|
+
rejectGroupBooking(request) {
|
|
65
|
+
return (0, http_1.callApi)(this.getApiUrl(this.rejectGroupBooking), request);
|
|
66
|
+
}
|
|
46
67
|
}
|
|
47
68
|
const groupBookingService = new GroupBookingService();
|
|
48
69
|
exports.default = groupBookingService;
|
|
@@ -1 +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;
|
|
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;IAwDhD,CAAC;IAtDC,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,C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,15 @@ export declare namespace GroupBooking {
|
|
|
16
16
|
interface upsertGroupBooking {
|
|
17
17
|
orderId: string;
|
|
18
18
|
expectDesc: string;
|
|
19
|
+
masterGender?: {
|
|
20
|
+
womanNumber: number;
|
|
21
|
+
manNumber: number;
|
|
22
|
+
};
|
|
23
|
+
operateInfo?: {
|
|
24
|
+
operatorRole: Fulfill.Constants.OperatorRole;
|
|
25
|
+
operator: string;
|
|
26
|
+
reason: string;
|
|
27
|
+
};
|
|
19
28
|
}
|
|
20
29
|
interface cancelGroupBooking {
|
|
21
30
|
orderId: string;
|
|
@@ -26,9 +35,10 @@ export declare namespace GroupBooking {
|
|
|
26
35
|
orderIdList?: string[];
|
|
27
36
|
statusList?: Fulfill.Constants.GroupBookingStatusEnum[];
|
|
28
37
|
fulfillAtRange?: number[];
|
|
38
|
+
cutOffTimeRange?: number[];
|
|
29
39
|
};
|
|
30
40
|
sort?: {
|
|
31
|
-
key: 'createdAt' | 'fulfillAt';
|
|
41
|
+
key: 'createdAt' | 'fulfillAt' | 'cutOffTime';
|
|
32
42
|
order: 'ASC' | 'DESC';
|
|
33
43
|
}[];
|
|
34
44
|
pageIndex: number;
|
|
@@ -40,10 +50,13 @@ export declare namespace GroupBooking {
|
|
|
40
50
|
orderIdList?: string[];
|
|
41
51
|
statusList?: Fulfill.Constants.GroupBookingStatusEnum[];
|
|
42
52
|
fulfillAtRange?: number[];
|
|
53
|
+
cutOffTimeRange?: number[];
|
|
43
54
|
};
|
|
44
55
|
}
|
|
45
56
|
interface canOrderGroupBooking {
|
|
46
57
|
groupId: string;
|
|
58
|
+
purchaseNumber?: number;
|
|
59
|
+
unionId?: string;
|
|
47
60
|
}
|
|
48
61
|
interface queryGroupBookingRecord {
|
|
49
62
|
condition: {
|
|
@@ -52,6 +65,7 @@ export declare namespace GroupBooking {
|
|
|
52
65
|
statusList?: Fulfill.Constants.GroupBookingRecordStatusEnum[];
|
|
53
66
|
unionIdList?: string[];
|
|
54
67
|
fulfillAtRange?: number[];
|
|
68
|
+
createdAtRange?: number[];
|
|
55
69
|
};
|
|
56
70
|
sort?: {
|
|
57
71
|
key: 'createdAt' | 'fulfillAt';
|
|
@@ -66,6 +80,7 @@ export declare namespace GroupBooking {
|
|
|
66
80
|
orderIdList?: string[];
|
|
67
81
|
statusList?: Fulfill.Constants.GroupBookingRecordStatusEnum[];
|
|
68
82
|
fulfillAtRange?: number[];
|
|
83
|
+
createdAtRange?: number[];
|
|
69
84
|
};
|
|
70
85
|
}
|
|
71
86
|
interface initGroupBookingRecord {
|
|
@@ -76,6 +91,59 @@ export declare namespace GroupBooking {
|
|
|
76
91
|
womanNumber: number;
|
|
77
92
|
};
|
|
78
93
|
}
|
|
94
|
+
interface canItemGroupBooking {
|
|
95
|
+
itemIdList: string[];
|
|
96
|
+
unionId: string;
|
|
97
|
+
}
|
|
98
|
+
interface canInitGroupBooking {
|
|
99
|
+
itemId: string;
|
|
100
|
+
unionId: string;
|
|
101
|
+
minNum: number;
|
|
102
|
+
maxNum: number;
|
|
103
|
+
purchaseNumber: number;
|
|
104
|
+
}
|
|
105
|
+
interface initGroupBooking {
|
|
106
|
+
orderId: string;
|
|
107
|
+
expectDesc: string;
|
|
108
|
+
masterGender: {
|
|
109
|
+
womanNumber: number;
|
|
110
|
+
manNumber: number;
|
|
111
|
+
};
|
|
112
|
+
minNum: number;
|
|
113
|
+
maxNum: number;
|
|
114
|
+
}
|
|
115
|
+
interface lockGroupBooking {
|
|
116
|
+
groupId: string;
|
|
117
|
+
operateInfo: {
|
|
118
|
+
operatorRole: Fulfill.Constants.OperatorRole;
|
|
119
|
+
operator: string;
|
|
120
|
+
reason: string;
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
interface submitGroupBooking {
|
|
124
|
+
groupId: string;
|
|
125
|
+
operateInfo: {
|
|
126
|
+
operatorRole: Fulfill.Constants.OperatorRole;
|
|
127
|
+
operator: string;
|
|
128
|
+
reason: string;
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
interface acceptGroupBooking {
|
|
132
|
+
groupId: string;
|
|
133
|
+
operateInfo: {
|
|
134
|
+
operatorRole: Fulfill.Constants.OperatorRole;
|
|
135
|
+
operator: string;
|
|
136
|
+
reason: string;
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
interface rejectGroupBooking {
|
|
140
|
+
groupId: string;
|
|
141
|
+
operateInfo: {
|
|
142
|
+
operatorRole: Fulfill.Constants.OperatorRole;
|
|
143
|
+
operator: string;
|
|
144
|
+
reason: string;
|
|
145
|
+
};
|
|
146
|
+
}
|
|
79
147
|
}
|
|
80
148
|
namespace Response {
|
|
81
149
|
type queryGroupBookingInfo = Fulfill.Entity.GroupBookingInfo[];
|
|
@@ -105,5 +173,19 @@ export declare namespace GroupBooking {
|
|
|
105
173
|
canOrderGroupBooking(request: Request.canOrderGroupBooking): Promise<void>;
|
|
106
174
|
/** 初始化拼团记录 */
|
|
107
175
|
initGroupBookingRecord(request: Request.initGroupBookingRecord): Promise<void>;
|
|
176
|
+
/** 商品&用户是否可以发起拼团 */
|
|
177
|
+
canItemGroupBooking(request: Request.canItemGroupBooking): Promise<void>;
|
|
178
|
+
/** 是否可以初始化拼团(B类) */
|
|
179
|
+
canInitGroupBooking(request: Request.canInitGroupBooking): Promise<void>;
|
|
180
|
+
/** 初始化拼团(B类) */
|
|
181
|
+
initGroupBooking(request: Request.initGroupBooking): Promise<void>;
|
|
182
|
+
/** 立即成团 */
|
|
183
|
+
lockGroupBooking(request: Request.lockGroupBooking): Promise<void>;
|
|
184
|
+
/** 团提交 */
|
|
185
|
+
submitGroupBooking(request: Request.submitGroupBooking): Promise<void>;
|
|
186
|
+
/** 团接单 */
|
|
187
|
+
acceptGroupBooking(request: Request.acceptGroupBooking): Promise<void>;
|
|
188
|
+
/** 团拒单 */
|
|
189
|
+
rejectGroupBooking(request: Request.rejectGroupBooking): Promise<void>;
|
|
108
190
|
}
|
|
109
191
|
}
|
package/types.d.ts
CHANGED
|
@@ -73,7 +73,9 @@ export declare namespace Fulfill {
|
|
|
73
73
|
/** 拼团完结 */
|
|
74
74
|
GROUP_COMPLETED = "GROUP_COMPLETED",
|
|
75
75
|
/** 拼团取消 */
|
|
76
|
-
GROUP_CANCEL = "GROUP_CANCEL"
|
|
76
|
+
GROUP_CANCEL = "GROUP_CANCEL",
|
|
77
|
+
/** 拼团失败 */
|
|
78
|
+
GROUP_FAILED = "GROUP_FAILED"
|
|
77
79
|
}
|
|
78
80
|
enum GroupBookingRecordStatusEnum {
|
|
79
81
|
INIT = "INIT",
|
|
@@ -332,6 +334,8 @@ export declare namespace Fulfill {
|
|
|
332
334
|
cutOffTime: number;
|
|
333
335
|
/** 团类型 */
|
|
334
336
|
groupType: Constants.GroupTypeEnum;
|
|
337
|
+
/** 额外信息 */
|
|
338
|
+
extraInfo: any;
|
|
335
339
|
}
|
|
336
340
|
interface GroupBookingRecord {
|
|
337
341
|
/** id */
|
package/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":";;;AAAA,IAAiB,OAAO,
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":";;;AAAA,IAAiB,OAAO,CAmYvB;AAnYD,WAAiB,OAAO;IAEtB;;OAEG;IACH,IAAiB,SAAS,CAwGzB;IAxGD,WAAiB,SAAS;QA4ExB,IAAY,4BAKX;QALD,WAAY,4BAA4B;YACtC,6CAAa,CAAA;YACb,mDAAmB,CAAA;YACnB,mDAAmB,CAAA;YACnB,iDAAiB,CAAA;QACnB,CAAC,EALW,4BAA4B,GAA5B,sCAA4B,KAA5B,sCAA4B,QAKvC;QAED,UAAU;QACV,IAAY,aAGX;QAHD,WAAY,aAAa;YACvB,wBAAO,CAAA;YACP,wBAAO,CAAA;QACT,CAAC,EAHW,aAAa,GAAb,uBAAa,KAAb,uBAAa,QAGxB;QAED,UAAU;QACV,IAAY,YAaX;QAbD,WAAY,YAAY;YACtB,SAAS;YACT,6BAAa,CAAA;YACb,SAAS;YACT,iCAAiB,CAAA;YACjB,SAAS;YACT,yBAAS,CAAA;YACT,QAAQ;YACR,iCAAiB,CAAA;YACjB,SAAS;YACT,+BAAe,CAAA;YACf,SAAS;YACT,qCAAqB,CAAA;QACvB,CAAC,EAbW,YAAY,GAAZ,sBAAY,KAAZ,sBAAY,QAavB;IACH,CAAC,EAxGgB,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAwGzB;AAsRH,CAAC,EAnYgB,OAAO,uBAAP,OAAO,QAmYvB"}
|