@be-link/vitality-cli-nodejs 0.0.26 → 0.0.28
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/README.md +1 -97
- package/index.d.ts +7 -1
- package/index.js +14 -1
- package/index.js.map +1 -1
- package/package.json +2 -1
- package/vs/modules/biz/index.d.ts +71 -0
- package/vs/modules/biz/index.js +2 -0
- package/vs/modules/biz/index.js.map +1 -1
- package/vs/modules/biz/trade-bff/index.d.ts +81 -0
- package/vs/modules/biz/trade-bff/index.js +34 -0
- package/vs/modules/biz/trade-bff/index.js.map +1 -0
- package/vs/modules/biz/trade-bff/job/service.d.ts +10 -0
- package/vs/modules/biz/trade-bff/job/service.js +25 -0
- package/vs/modules/biz/trade-bff/job/service.js.map +1 -0
- package/vs/modules/biz/trade-bff/manifest.d.ts +19 -0
- package/vs/modules/biz/trade-bff/manifest.js +40 -0
- package/vs/modules/biz/trade-bff/manifest.js.map +1 -0
- package/vs/modules/biz/trade-bff/miniapp/touristMaterial/service.d.ts +8 -0
- package/vs/modules/biz/trade-bff/miniapp/touristMaterial/service.js +19 -0
- package/vs/modules/biz/trade-bff/miniapp/touristMaterial/service.js.map +1 -0
- package/vs/modules/biz/trade-bff/orderManagementCenterWework/service.d.ts +15 -0
- package/vs/modules/biz/trade-bff/orderManagementCenterWework/service.js +25 -0
- package/vs/modules/biz/trade-bff/orderManagementCenterWework/service.js.map +1 -0
- package/vs/modules/biz/trade-bff/type.d.ts +392 -0
- package/vs/modules/biz/trade-bff/type.js +3 -0
- package/vs/modules/biz/trade-bff/type.js.map +1 -0
- package/vs/modules/biz/trade-bff/web/service.d.ts +15 -0
- package/vs/modules/biz/trade-bff/web/service.js +40 -0
- package/vs/modules/biz/trade-bff/web/service.js.map +1 -0
- package/vs/modules/biz/trade-bff/wework/service.d.ts +9 -0
- package/vs/modules/biz/trade-bff/wework/service.js +22 -0
- package/vs/modules/biz/trade-bff/wework/service.js.map +1 -0
- package/vs/modules/biz/trade-bff/wework/touristMaterial/service.d.ts +9 -0
- package/vs/modules/biz/trade-bff/wework/touristMaterial/service.js +22 -0
- package/vs/modules/biz/trade-bff/wework/touristMaterial/service.js.map +1 -0
- package/vs/modules/dbEvent/service.d.ts +8 -0
- package/vs/modules/dbEvent/service.js +19 -0
- package/vs/modules/dbEvent/service.js.map +1 -0
- package/vs/modules/dbEvent/type.d.ts +24 -0
- package/vs/modules/dbEvent/type.js +3 -0
- package/vs/modules/dbEvent/type.js.map +1 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import BaseService from '../../../baseService';
|
|
2
|
+
import { TradeBff } from '../type';
|
|
3
|
+
declare class TradeBffOrderManagementCenterWeworkService extends BaseService implements TradeBff.OrderManagementCenterWework.Controller {
|
|
4
|
+
prefixUrl: string;
|
|
5
|
+
sendHotelChangeResultNotify(request: TradeBff.OrderManagementCenterWework.Request.SendHotelChangeResultNotify): Promise<{
|
|
6
|
+
skipped?: boolean;
|
|
7
|
+
message?: string;
|
|
8
|
+
}>;
|
|
9
|
+
sendAbnormalNotify(request: TradeBff.OrderManagementCenterWework.Request.SendAbnormalNotify): Promise<TradeBff.OrderManagementCenterWework.NotifyResult>;
|
|
10
|
+
clearAbnormalFollow(request: TradeBff.OrderManagementCenterWework.Request.ClearAbnormalFollow): Promise<{
|
|
11
|
+
success: true;
|
|
12
|
+
}>;
|
|
13
|
+
}
|
|
14
|
+
declare const tradeBffOrderManagementCenterWeworkService: TradeBffOrderManagementCenterWeworkService;
|
|
15
|
+
export default tradeBffOrderManagementCenterWeworkService;
|
|
@@ -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 TradeBffOrderManagementCenterWeworkService extends baseService_1.default {
|
|
9
|
+
constructor() {
|
|
10
|
+
super(...arguments);
|
|
11
|
+
this.prefixUrl = '/biz/trade-bff/orderManagementCenterWework';
|
|
12
|
+
}
|
|
13
|
+
sendHotelChangeResultNotify(request) {
|
|
14
|
+
return (0, http_1.callScfApi)(this.getApiUrl(this.sendHotelChangeResultNotify), request);
|
|
15
|
+
}
|
|
16
|
+
sendAbnormalNotify(request) {
|
|
17
|
+
return (0, http_1.callScfApi)(this.getApiUrl(this.sendAbnormalNotify), request);
|
|
18
|
+
}
|
|
19
|
+
clearAbnormalFollow(request) {
|
|
20
|
+
return (0, http_1.callScfApi)(this.getApiUrl(this.clearAbnormalFollow), request);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
const tradeBffOrderManagementCenterWeworkService = new TradeBffOrderManagementCenterWeworkService();
|
|
24
|
+
exports.default = tradeBffOrderManagementCenterWeworkService;
|
|
25
|
+
//# sourceMappingURL=service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service.js","sourceRoot":"","sources":["../../../../../../src/vs/modules/biz/trade-bff/orderManagementCenterWework/service.ts"],"names":[],"mappings":";;;;;AAAA,2CAA6C;AAC7C,uEAA8C;AAG9C,MAAM,0CACJ,SAAQ,qBAAW;IADrB;;QAIE,cAAS,GAAG,4CAA4C,CAAA;IA2B1D,CAAC;IAzBC,2BAA2B,CACzB,OAAiF;QAEjF,OAAO,IAAA,iBAAU,EAEf,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,2BAA2B,CAAC,EAAE,OAAO,CAAC,CAAA;IAC9D,CAAC;IAED,kBAAkB,CAChB,OAAwE;QAExE,OAAO,IAAA,iBAAU,EACf,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,kBAAkB,CAAC,EACvC,OAAO,CACR,CAAA;IACH,CAAC;IAED,mBAAmB,CACjB,OAAyE;QAEzE,OAAO,IAAA,iBAAU,EACf,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,mBAAmB,CAAC,EACxC,OAAO,CACR,CAAA;IACH,CAAC;CACF;AAED,MAAM,0CAA0C,GAC9C,IAAI,0CAA0C,EAAE,CAAA;AAClD,kBAAe,0CAA0C,CAAA"}
|
|
@@ -0,0 +1,392 @@
|
|
|
1
|
+
import type { PosDto } from '@be-link/pos-cli-nodejs';
|
|
2
|
+
import type { IPositiveOrderInvoice } from '@be-link/pos-cli-nodejs/types';
|
|
3
|
+
import type { TourMaterialType, TourMaterialVisaType } from 'vitality-meta/enums/commodity';
|
|
4
|
+
import type { AbnormalType } from 'vitality-meta/enums/omc';
|
|
5
|
+
export declare namespace TradeBff {
|
|
6
|
+
namespace Job {
|
|
7
|
+
interface RoomShareLifecycleResult {
|
|
8
|
+
scanned: number;
|
|
9
|
+
uniqueOrders: number;
|
|
10
|
+
suspectedInvalid: number;
|
|
11
|
+
cleaned: number;
|
|
12
|
+
noop: number;
|
|
13
|
+
}
|
|
14
|
+
interface RoomShareT1HourlyResult {
|
|
15
|
+
enabled: boolean;
|
|
16
|
+
lifecycle: RoomShareLifecycleResult;
|
|
17
|
+
candidateCount: number;
|
|
18
|
+
notified: number;
|
|
19
|
+
}
|
|
20
|
+
interface Controller {
|
|
21
|
+
jobDeleteOrderDownloadFile(): Promise<void>;
|
|
22
|
+
jobAutoSendWxNotification(): Promise<void>;
|
|
23
|
+
jobTourRoomShareT1Remind(): Promise<RoomShareT1HourlyResult>;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
namespace OrderManagementCenterWework {
|
|
27
|
+
type NotifyType = 'REJECT' | 'APPEND_FAIL' | 'CONTRACT_RESIGN' | 'ROOM_SHARE';
|
|
28
|
+
type NotifyOutcome = 'QUEUED' | 'IDEMPOTENT_HIT' | 'DISABLED' | 'INELIGIBLE' | 'NO_RECEIVER' | 'FAILED';
|
|
29
|
+
namespace Request {
|
|
30
|
+
interface SendHotelChangeResultNotify {
|
|
31
|
+
orderId: string;
|
|
32
|
+
changeFlowId: string;
|
|
33
|
+
changeType: string;
|
|
34
|
+
changeStatus: string;
|
|
35
|
+
changeContent?: string;
|
|
36
|
+
rejectReason?: string;
|
|
37
|
+
sponsorUnionId?: string;
|
|
38
|
+
fromUnionId?: string;
|
|
39
|
+
}
|
|
40
|
+
interface SendAbnormalNotify {
|
|
41
|
+
orderId: string;
|
|
42
|
+
notifyType: NotifyType;
|
|
43
|
+
expectedDeadline?: number;
|
|
44
|
+
}
|
|
45
|
+
interface ClearAbnormalFollow {
|
|
46
|
+
orderId: string;
|
|
47
|
+
abnormalType: AbnormalType;
|
|
48
|
+
changeFlowId?: string;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
interface NotifyResult {
|
|
52
|
+
skipped?: boolean;
|
|
53
|
+
message?: string;
|
|
54
|
+
outcome?: NotifyOutcome;
|
|
55
|
+
relateBizId?: string;
|
|
56
|
+
}
|
|
57
|
+
interface Controller {
|
|
58
|
+
sendHotelChangeResultNotify(request: Request.SendHotelChangeResultNotify): Promise<{
|
|
59
|
+
skipped?: boolean;
|
|
60
|
+
message?: string;
|
|
61
|
+
}>;
|
|
62
|
+
sendAbnormalNotify(request: Request.SendAbnormalNotify): Promise<NotifyResult>;
|
|
63
|
+
clearAbnormalFollow(request: Request.ClearAbnormalFollow): Promise<{
|
|
64
|
+
success: true;
|
|
65
|
+
}>;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
namespace Web {
|
|
69
|
+
namespace Request {
|
|
70
|
+
interface GetTourismItinerary {
|
|
71
|
+
departureDate: number | string;
|
|
72
|
+
name: string;
|
|
73
|
+
category?: string;
|
|
74
|
+
pageSize: number;
|
|
75
|
+
pageIndex: number;
|
|
76
|
+
}
|
|
77
|
+
interface SetTeamLeader {
|
|
78
|
+
teamId: string;
|
|
79
|
+
leaderInfo: {
|
|
80
|
+
mobile: string;
|
|
81
|
+
name: string;
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
interface UpsertOrderToTeam {
|
|
85
|
+
teamId?: string;
|
|
86
|
+
orderIdList: string[];
|
|
87
|
+
type: string;
|
|
88
|
+
leaderInfo?: {
|
|
89
|
+
mobile: string;
|
|
90
|
+
name: string;
|
|
91
|
+
};
|
|
92
|
+
itemId: string;
|
|
93
|
+
fulfillTime: number;
|
|
94
|
+
supplierId: string;
|
|
95
|
+
}
|
|
96
|
+
interface DeleteTourTeam {
|
|
97
|
+
teamId: string;
|
|
98
|
+
orderId: string;
|
|
99
|
+
}
|
|
100
|
+
interface SendOrderPaidNotification {
|
|
101
|
+
orderId: string;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
namespace Response {
|
|
105
|
+
interface CouponAccountInfo {
|
|
106
|
+
id: number;
|
|
107
|
+
name: string;
|
|
108
|
+
account: string;
|
|
109
|
+
phone: string;
|
|
110
|
+
operator: string;
|
|
111
|
+
updatedAt: number;
|
|
112
|
+
expiredAt: number;
|
|
113
|
+
}
|
|
114
|
+
interface AdministrativeRoomShare {
|
|
115
|
+
enabled: true;
|
|
116
|
+
applicable: true;
|
|
117
|
+
roomShareRequired: boolean;
|
|
118
|
+
remark: string;
|
|
119
|
+
}
|
|
120
|
+
interface GetTourismItinerary {
|
|
121
|
+
list: Array<{
|
|
122
|
+
code: string;
|
|
123
|
+
isEdited: boolean;
|
|
124
|
+
itemId: string;
|
|
125
|
+
itemName: string;
|
|
126
|
+
categoryOne: string;
|
|
127
|
+
categoryTwo: string;
|
|
128
|
+
itemPic: string;
|
|
129
|
+
touristCount: number;
|
|
130
|
+
childrenCount: number;
|
|
131
|
+
supplementSingleRoomCount: number;
|
|
132
|
+
orderCount: number;
|
|
133
|
+
skuInfo: {
|
|
134
|
+
_id: string;
|
|
135
|
+
id: string;
|
|
136
|
+
combo: string;
|
|
137
|
+
departureDate: number;
|
|
138
|
+
displayDepartureDate: string;
|
|
139
|
+
groupInfo: {
|
|
140
|
+
groupIdx: number;
|
|
141
|
+
wxQrCode: string;
|
|
142
|
+
leaderName: string;
|
|
143
|
+
leaderMobile: string;
|
|
144
|
+
returnTraffic: string;
|
|
145
|
+
volunteerName: string;
|
|
146
|
+
outboundTraffic: string;
|
|
147
|
+
volunteerMobile: string;
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
}>;
|
|
151
|
+
total: number;
|
|
152
|
+
}
|
|
153
|
+
interface PromotionSummary {
|
|
154
|
+
[promotionToolType: string]: {
|
|
155
|
+
count: number;
|
|
156
|
+
reduce: string;
|
|
157
|
+
unitPrice?: string;
|
|
158
|
+
} | string;
|
|
159
|
+
couponReduce: string;
|
|
160
|
+
totalReduce: string;
|
|
161
|
+
}
|
|
162
|
+
interface GetOrderById {
|
|
163
|
+
roomShare?: AdministrativeRoomShare;
|
|
164
|
+
groupBookingSummaryInfo: {
|
|
165
|
+
id: string;
|
|
166
|
+
status: string;
|
|
167
|
+
quantity: number;
|
|
168
|
+
roomInfo: {
|
|
169
|
+
DOUBLE_BED: {
|
|
170
|
+
count: number;
|
|
171
|
+
};
|
|
172
|
+
SINGLE_BED: {
|
|
173
|
+
count: number;
|
|
174
|
+
};
|
|
175
|
+
};
|
|
176
|
+
expectDesc: string;
|
|
177
|
+
};
|
|
178
|
+
groupBookingInfo: Array<{
|
|
179
|
+
orderId: string;
|
|
180
|
+
orderStatus: string;
|
|
181
|
+
recordStatus: string;
|
|
182
|
+
contactName: string;
|
|
183
|
+
mobile: string;
|
|
184
|
+
quantity: number;
|
|
185
|
+
numberInfo: {
|
|
186
|
+
manNumber: number;
|
|
187
|
+
womanNumber: number;
|
|
188
|
+
};
|
|
189
|
+
paidAt: number;
|
|
190
|
+
isGroupMainOrder: boolean;
|
|
191
|
+
groupType: number;
|
|
192
|
+
isGroupSubOrder: boolean;
|
|
193
|
+
isRootOrder: boolean;
|
|
194
|
+
roomInfo: {
|
|
195
|
+
DOUBLE_BED: {
|
|
196
|
+
count: number;
|
|
197
|
+
};
|
|
198
|
+
SINGLE_BED: {
|
|
199
|
+
count: number;
|
|
200
|
+
};
|
|
201
|
+
};
|
|
202
|
+
}>;
|
|
203
|
+
basicOrderInfo: Omit<PosDto.IPositiveOrder, 'completedAt' | 'fromUserRole' | 'openId' | 'paidAt'> & {
|
|
204
|
+
subOrderIdList: string[];
|
|
205
|
+
userName: string;
|
|
206
|
+
userMobile: string;
|
|
207
|
+
contactInfo: {
|
|
208
|
+
name: string;
|
|
209
|
+
mobile: string;
|
|
210
|
+
reserveMobile?: string;
|
|
211
|
+
};
|
|
212
|
+
};
|
|
213
|
+
fulfillmentInfo: PosDto.IPositiveFulfillmentInfo;
|
|
214
|
+
promotionInfo: PosDto.IPositivePromotionInfo[];
|
|
215
|
+
tourismInfo: PosDto.IPositiveTouristInfo;
|
|
216
|
+
tourMaterial: boolean;
|
|
217
|
+
attachments: Array<{
|
|
218
|
+
url: string;
|
|
219
|
+
name: string;
|
|
220
|
+
}>;
|
|
221
|
+
paymentInfo: PosDto.IPositivePaymentInfo[];
|
|
222
|
+
attributes: PosDto.IPositiveAttributes;
|
|
223
|
+
commodityInfo: {
|
|
224
|
+
id: string;
|
|
225
|
+
name: string;
|
|
226
|
+
categoryOne: string;
|
|
227
|
+
categoryTwo: string;
|
|
228
|
+
headPic: string;
|
|
229
|
+
status: string;
|
|
230
|
+
isSelfLead: boolean;
|
|
231
|
+
isHighCommission: number;
|
|
232
|
+
canUpdateMealInfo: number;
|
|
233
|
+
supplierName?: string;
|
|
234
|
+
shuttleSupplierIdList?: string[];
|
|
235
|
+
cooperator?: string;
|
|
236
|
+
tourWholesaler?: string;
|
|
237
|
+
domesticTourOperator?: string;
|
|
238
|
+
tourContactInfo?: string;
|
|
239
|
+
tourContactName?: string;
|
|
240
|
+
tourContactPhone?: string;
|
|
241
|
+
tourContactAddress?: string;
|
|
242
|
+
hasShopping?: number;
|
|
243
|
+
hasActivity?: number;
|
|
244
|
+
tourPrincipal?: string;
|
|
245
|
+
belinkOwner?: string;
|
|
246
|
+
periodEndTime?: number;
|
|
247
|
+
periodStartTime?: number;
|
|
248
|
+
bookingDays?: string;
|
|
249
|
+
quantity?: number;
|
|
250
|
+
remainQuantity?: number;
|
|
251
|
+
commissionFee?: number;
|
|
252
|
+
unitDeposit?: number;
|
|
253
|
+
sku?: {
|
|
254
|
+
id: string;
|
|
255
|
+
skuId: string;
|
|
256
|
+
salePrice: number;
|
|
257
|
+
combo: string;
|
|
258
|
+
departureDate: number;
|
|
259
|
+
displayDepartureDate: string;
|
|
260
|
+
quantity: number;
|
|
261
|
+
remainQuantity: number;
|
|
262
|
+
costDay?: number;
|
|
263
|
+
settlementPrice?: number;
|
|
264
|
+
};
|
|
265
|
+
contractType?: string;
|
|
266
|
+
};
|
|
267
|
+
extraInfo: {
|
|
268
|
+
supplierRejectReasons?: string[];
|
|
269
|
+
cakeCouponDesc?: string;
|
|
270
|
+
operator?: string;
|
|
271
|
+
privateButlerName?: string;
|
|
272
|
+
itemBelinkOwner?: string;
|
|
273
|
+
storeContactInfo: {
|
|
274
|
+
name: string;
|
|
275
|
+
phone: string;
|
|
276
|
+
};
|
|
277
|
+
fromEcsStoreName?: string;
|
|
278
|
+
fromUserName?: string;
|
|
279
|
+
};
|
|
280
|
+
lastAcceptRecord: PosDto.IOrderOperatorRecord;
|
|
281
|
+
merchantOrder: unknown;
|
|
282
|
+
promotionSummary: PromotionSummary;
|
|
283
|
+
}
|
|
284
|
+
interface TongchengRelationSummary {
|
|
285
|
+
tongchengOrderId: string;
|
|
286
|
+
positiveOrderId: string;
|
|
287
|
+
boundAt: number | null;
|
|
288
|
+
bindStatus: 'BOUND' | 'UNBOUND';
|
|
289
|
+
}
|
|
290
|
+
interface GetOrderBasicInfoById {
|
|
291
|
+
roomShare?: AdministrativeRoomShare;
|
|
292
|
+
basicOrderInfo: Omit<PosDto.IPositiveOrder, 'completedAt' | 'fromUserRole' | 'openId' | 'paidAt'> & {
|
|
293
|
+
subOrderIdList: string[];
|
|
294
|
+
userName: string;
|
|
295
|
+
userMobile: string;
|
|
296
|
+
singleRoomPrice: number;
|
|
297
|
+
shuttleBusSalePrice: number;
|
|
298
|
+
shuttleBusQuantity: number;
|
|
299
|
+
memberPrice: number;
|
|
300
|
+
stayMorePrice: number;
|
|
301
|
+
skuPrice: {
|
|
302
|
+
singlePrice: number;
|
|
303
|
+
singleMemberPrice: number;
|
|
304
|
+
singleStayMorePrice: number;
|
|
305
|
+
};
|
|
306
|
+
};
|
|
307
|
+
paymentInfo: PosDto.IPositivePaymentInfo[];
|
|
308
|
+
attributes: PosDto.IPositiveAttributes;
|
|
309
|
+
tongchengRelation: TongchengRelationSummary | null;
|
|
310
|
+
lastAcceptRecord: PosDto.IOrderOperatorRecord;
|
|
311
|
+
merchantOrder: unknown;
|
|
312
|
+
promotionSummary: PromotionSummary;
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
interface Controller {
|
|
316
|
+
getCouponAccountInfoById(id: string): Promise<Response.CouponAccountInfo | null>;
|
|
317
|
+
getOrderById(tradeOrderId: string): Promise<Response.GetOrderById>;
|
|
318
|
+
getTourismItinerary(request: Request.GetTourismItinerary): Promise<Response.GetTourismItinerary>;
|
|
319
|
+
setTeamLeader(request: Request.SetTeamLeader): Promise<void>;
|
|
320
|
+
upsertOrderToTeam(request: Request.UpsertOrderToTeam): Promise<void>;
|
|
321
|
+
deleteTourTeam(request: Request.DeleteTourTeam): Promise<void>;
|
|
322
|
+
getOrderBasicInfoById(tradeOrderId: string): Promise<Response.GetOrderBasicInfoById>;
|
|
323
|
+
sendOrderPaidNotification(request: Request.SendOrderPaidNotification): Promise<void>;
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
namespace Wework {
|
|
327
|
+
namespace Request {
|
|
328
|
+
interface ChangeOrderContactInfo {
|
|
329
|
+
name: string;
|
|
330
|
+
idCard: string;
|
|
331
|
+
mobile: string;
|
|
332
|
+
orderId: string;
|
|
333
|
+
}
|
|
334
|
+
type CreateOrderInvoiceRecord = IPositiveOrderInvoice;
|
|
335
|
+
}
|
|
336
|
+
namespace TouristMaterial {
|
|
337
|
+
namespace Request {
|
|
338
|
+
interface QueryOrderEntityMaterial {
|
|
339
|
+
orderId: string;
|
|
340
|
+
}
|
|
341
|
+
interface UpdateEntityMaterial {
|
|
342
|
+
operator: string;
|
|
343
|
+
orderId: string;
|
|
344
|
+
touristId: string;
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
namespace Response {
|
|
348
|
+
interface UserEntityMaterial {
|
|
349
|
+
touristId: string;
|
|
350
|
+
touristName: string;
|
|
351
|
+
materialType: TourMaterialType;
|
|
352
|
+
visaType: TourMaterialVisaType;
|
|
353
|
+
materialItemNames: string[];
|
|
354
|
+
isReceived: boolean;
|
|
355
|
+
}
|
|
356
|
+
interface QueryOrderEntityMaterial {
|
|
357
|
+
hasEntityMaterial: boolean;
|
|
358
|
+
userEntityMaterialList: UserEntityMaterial[];
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
interface Controller {
|
|
362
|
+
queryOrderEntityMaterial(request: Request.QueryOrderEntityMaterial): Promise<Response.QueryOrderEntityMaterial>;
|
|
363
|
+
updateEntityMaterial(request: Request.UpdateEntityMaterial): Promise<void>;
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
interface Controller {
|
|
367
|
+
changeOrderContactInfo(request: Request.ChangeOrderContactInfo): Promise<void>;
|
|
368
|
+
createOrderInvoiceRecord(request: Request.CreateOrderInvoiceRecord): Promise<string>;
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
namespace Miniapp {
|
|
372
|
+
namespace TouristMaterial {
|
|
373
|
+
namespace Request {
|
|
374
|
+
interface CreateTouristMaterialOrder {
|
|
375
|
+
unionId: string;
|
|
376
|
+
orderId: string;
|
|
377
|
+
itemId: string;
|
|
378
|
+
materialType: TourMaterialType;
|
|
379
|
+
touristMaterialInfos: Record<string, TourMaterialVisaType>;
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
namespace Response {
|
|
383
|
+
interface CreateTouristMaterialOrder {
|
|
384
|
+
orderId: string;
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
interface Controller {
|
|
388
|
+
createTouristMaterialOrder(request: Request.CreateTouristMaterialOrder): Promise<Response.CreateTouristMaterialOrder>;
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.js","sourceRoot":"","sources":["../../../../../src/vs/modules/biz/trade-bff/type.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import BaseService from '../../../baseService';
|
|
2
|
+
import { TradeBff } from '../type';
|
|
3
|
+
declare class TradeBffWebService extends BaseService implements TradeBff.Web.Controller {
|
|
4
|
+
prefixUrl: string;
|
|
5
|
+
getCouponAccountInfoById(id: string): Promise<TradeBff.Web.Response.CouponAccountInfo | null>;
|
|
6
|
+
getOrderById(tradeOrderId: string): Promise<TradeBff.Web.Response.GetOrderById>;
|
|
7
|
+
getTourismItinerary(request: TradeBff.Web.Request.GetTourismItinerary): Promise<TradeBff.Web.Response.GetTourismItinerary>;
|
|
8
|
+
setTeamLeader(request: TradeBff.Web.Request.SetTeamLeader): Promise<void>;
|
|
9
|
+
upsertOrderToTeam(request: TradeBff.Web.Request.UpsertOrderToTeam): Promise<void>;
|
|
10
|
+
deleteTourTeam(request: TradeBff.Web.Request.DeleteTourTeam): Promise<void>;
|
|
11
|
+
getOrderBasicInfoById(tradeOrderId: string): Promise<TradeBff.Web.Response.GetOrderBasicInfoById>;
|
|
12
|
+
sendOrderPaidNotification(request: TradeBff.Web.Request.SendOrderPaidNotification): Promise<void>;
|
|
13
|
+
}
|
|
14
|
+
declare const tradeBffWebService: TradeBffWebService;
|
|
15
|
+
export default tradeBffWebService;
|
|
@@ -0,0 +1,40 @@
|
|
|
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 TradeBffWebService extends baseService_1.default {
|
|
9
|
+
constructor() {
|
|
10
|
+
super(...arguments);
|
|
11
|
+
this.prefixUrl = '/biz/trade-bff/web';
|
|
12
|
+
}
|
|
13
|
+
getCouponAccountInfoById(id) {
|
|
14
|
+
return (0, http_1.callScfApi)(this.getApiUrl(this.getCouponAccountInfoById), id);
|
|
15
|
+
}
|
|
16
|
+
getOrderById(tradeOrderId) {
|
|
17
|
+
return (0, http_1.callScfApi)(this.getApiUrl(this.getOrderById), tradeOrderId);
|
|
18
|
+
}
|
|
19
|
+
getTourismItinerary(request) {
|
|
20
|
+
return (0, http_1.callScfApi)(this.getApiUrl(this.getTourismItinerary), request);
|
|
21
|
+
}
|
|
22
|
+
setTeamLeader(request) {
|
|
23
|
+
return (0, http_1.callScfApi)(this.getApiUrl(this.setTeamLeader), request);
|
|
24
|
+
}
|
|
25
|
+
upsertOrderToTeam(request) {
|
|
26
|
+
return (0, http_1.callScfApi)(this.getApiUrl(this.upsertOrderToTeam), request);
|
|
27
|
+
}
|
|
28
|
+
deleteTourTeam(request) {
|
|
29
|
+
return (0, http_1.callScfApi)(this.getApiUrl(this.deleteTourTeam), request);
|
|
30
|
+
}
|
|
31
|
+
getOrderBasicInfoById(tradeOrderId) {
|
|
32
|
+
return (0, http_1.callScfApi)(this.getApiUrl(this.getOrderBasicInfoById), tradeOrderId);
|
|
33
|
+
}
|
|
34
|
+
sendOrderPaidNotification(request) {
|
|
35
|
+
return (0, http_1.callScfApi)(this.getApiUrl(this.sendOrderPaidNotification), request);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
const tradeBffWebService = new TradeBffWebService();
|
|
39
|
+
exports.default = tradeBffWebService;
|
|
40
|
+
//# sourceMappingURL=service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service.js","sourceRoot":"","sources":["../../../../../../src/vs/modules/biz/trade-bff/web/service.ts"],"names":[],"mappings":";;;;;AAAA,2CAA6C;AAC7C,uEAA8C;AAG9C,MAAM,kBAAmB,SAAQ,qBAAW;IAA5C;;QACE,cAAS,GAAG,oBAAoB,CAAA;IAiElC,CAAC;IA/DC,wBAAwB,CACtB,EAAU;QAEV,OAAO,IAAA,iBAAU,EACf,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,wBAAwB,CAAC,EAC7C,EAAE,CACH,CAAA;IACH,CAAC;IAED,YAAY,CAAC,YAAoB;QAC/B,OAAO,IAAA,iBAAU,EACf,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,YAAY,CAAC,EACjC,YAAY,CACb,CAAA;IACH,CAAC;IAED,mBAAmB,CACjB,OAAiD;QAEjD,OAAO,IAAA,iBAAU,EACf,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,mBAAmB,CAAC,EACxC,OAAO,CACR,CAAA;IACH,CAAC;IAED,aAAa,CAAC,OAA2C;QACvD,OAAO,IAAA,iBAAU,EACf,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,aAAa,CAAC,EAClC,OAAO,CACR,CAAA;IACH,CAAC;IAED,iBAAiB,CAAC,OAA+C;QAC/D,OAAO,IAAA,iBAAU,EACf,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,iBAAiB,CAAC,EACtC,OAAO,CACR,CAAA;IACH,CAAC;IAED,cAAc,CAAC,OAA4C;QACzD,OAAO,IAAA,iBAAU,EACf,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,cAAc,CAAC,EACnC,OAAO,CACR,CAAA;IACH,CAAC;IAED,qBAAqB,CACnB,YAAoB;QAEpB,OAAO,IAAA,iBAAU,EACf,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,qBAAqB,CAAC,EAC1C,YAAY,CACb,CAAA;IACH,CAAC;IAED,yBAAyB,CACvB,OAAuD;QAEvD,OAAO,IAAA,iBAAU,EACf,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,yBAAyB,CAAC,EAC9C,OAAO,CACR,CAAA;IACH,CAAC;CACF;AAED,MAAM,kBAAkB,GAAG,IAAI,kBAAkB,EAAE,CAAA;AACnD,kBAAe,kBAAkB,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import BaseService from '../../../baseService';
|
|
2
|
+
import { TradeBff } from '../type';
|
|
3
|
+
declare class TradeBffWeworkService extends BaseService implements TradeBff.Wework.Controller {
|
|
4
|
+
prefixUrl: string;
|
|
5
|
+
changeOrderContactInfo(request: TradeBff.Wework.Request.ChangeOrderContactInfo): Promise<void>;
|
|
6
|
+
createOrderInvoiceRecord(request: TradeBff.Wework.Request.CreateOrderInvoiceRecord): Promise<string>;
|
|
7
|
+
}
|
|
8
|
+
declare const tradeBffWeworkService: TradeBffWeworkService;
|
|
9
|
+
export default tradeBffWeworkService;
|
|
@@ -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 http_1 = require("../../../../http");
|
|
7
|
+
const baseService_1 = __importDefault(require("../../../baseService"));
|
|
8
|
+
class TradeBffWeworkService extends baseService_1.default {
|
|
9
|
+
constructor() {
|
|
10
|
+
super(...arguments);
|
|
11
|
+
this.prefixUrl = '/biz/trade-bff/wework';
|
|
12
|
+
}
|
|
13
|
+
changeOrderContactInfo(request) {
|
|
14
|
+
return (0, http_1.callScfApi)(this.getApiUrl(this.changeOrderContactInfo), request);
|
|
15
|
+
}
|
|
16
|
+
createOrderInvoiceRecord(request) {
|
|
17
|
+
return (0, http_1.callScfApi)(this.getApiUrl(this.createOrderInvoiceRecord), request);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
const tradeBffWeworkService = new TradeBffWeworkService();
|
|
21
|
+
exports.default = tradeBffWeworkService;
|
|
22
|
+
//# sourceMappingURL=service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service.js","sourceRoot":"","sources":["../../../../../../src/vs/modules/biz/trade-bff/wework/service.ts"],"names":[],"mappings":";;;;;AAAA,2CAA6C;AAC7C,uEAA8C;AAG9C,MAAM,qBAAsB,SAAQ,qBAAW;IAA/C;;QACE,cAAS,GAAG,uBAAuB,CAAA;IAmBrC,CAAC;IAjBC,sBAAsB,CACpB,OAAuD;QAEvD,OAAO,IAAA,iBAAU,EACf,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,sBAAsB,CAAC,EAC3C,OAAO,CACR,CAAA;IACH,CAAC;IAED,wBAAwB,CACtB,OAAyD;QAEzD,OAAO,IAAA,iBAAU,EACf,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,wBAAwB,CAAC,EAC7C,OAAO,CACR,CAAA;IACH,CAAC;CACF;AAED,MAAM,qBAAqB,GAAG,IAAI,qBAAqB,EAAE,CAAA;AACzD,kBAAe,qBAAqB,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import BaseService from '../../../../baseService';
|
|
2
|
+
import { TradeBff } from '../../type';
|
|
3
|
+
declare class TradeBffWeworkTouristMaterialService extends BaseService implements TradeBff.Wework.TouristMaterial.Controller {
|
|
4
|
+
prefixUrl: string;
|
|
5
|
+
queryOrderEntityMaterial(request: TradeBff.Wework.TouristMaterial.Request.QueryOrderEntityMaterial): Promise<TradeBff.Wework.TouristMaterial.Response.QueryOrderEntityMaterial>;
|
|
6
|
+
updateEntityMaterial(request: TradeBff.Wework.TouristMaterial.Request.UpdateEntityMaterial): Promise<void>;
|
|
7
|
+
}
|
|
8
|
+
declare const tradeBffWeworkTouristMaterialService: TradeBffWeworkTouristMaterialService;
|
|
9
|
+
export default tradeBffWeworkTouristMaterialService;
|
|
@@ -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 http_1 = require("../../../../../http");
|
|
7
|
+
const baseService_1 = __importDefault(require("../../../../baseService"));
|
|
8
|
+
class TradeBffWeworkTouristMaterialService extends baseService_1.default {
|
|
9
|
+
constructor() {
|
|
10
|
+
super(...arguments);
|
|
11
|
+
this.prefixUrl = '/biz/trade-bff/wework/touristMaterial';
|
|
12
|
+
}
|
|
13
|
+
queryOrderEntityMaterial(request) {
|
|
14
|
+
return (0, http_1.callScfApi)(this.getApiUrl(this.queryOrderEntityMaterial), request);
|
|
15
|
+
}
|
|
16
|
+
updateEntityMaterial(request) {
|
|
17
|
+
return (0, http_1.callScfApi)(this.getApiUrl(this.updateEntityMaterial), request);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
const tradeBffWeworkTouristMaterialService = new TradeBffWeworkTouristMaterialService();
|
|
21
|
+
exports.default = tradeBffWeworkTouristMaterialService;
|
|
22
|
+
//# sourceMappingURL=service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service.js","sourceRoot":"","sources":["../../../../../../../src/vs/modules/biz/trade-bff/wework/touristMaterial/service.ts"],"names":[],"mappings":";;;;;AAAA,8CAAgD;AAChD,0EAAiD;AAGjD,MAAM,oCACJ,SAAQ,qBAAW;IADrB;;QAIE,cAAS,GAAG,uCAAuC,CAAA;IAmBrD,CAAC;IAjBC,wBAAwB,CACtB,OAAyE;QAEzE,OAAO,IAAA,iBAAU,EACf,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,wBAAwB,CAAC,EAC7C,OAAO,CACR,CAAA;IACH,CAAC;IAED,oBAAoB,CAClB,OAAqE;QAErE,OAAO,IAAA,iBAAU,EACf,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,oBAAoB,CAAC,EACzC,OAAO,CACR,CAAA;IACH,CAAC;CACF;AAED,MAAM,oCAAoC,GAAG,IAAI,oCAAoC,EAAE,CAAA;AACvF,kBAAe,oCAAoC,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import BaseService from '../baseService';
|
|
2
|
+
import { DbEvent } from './type';
|
|
3
|
+
declare class DbEventService extends BaseService implements DbEvent.Controller {
|
|
4
|
+
prefixUrl: string;
|
|
5
|
+
main(event: DbEvent.CloudEvent): Promise<any>;
|
|
6
|
+
}
|
|
7
|
+
declare const dbEventService: DbEventService;
|
|
8
|
+
export default dbEventService;
|
|
@@ -0,0 +1,19 @@
|
|
|
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 DbEventService extends baseService_1.default {
|
|
9
|
+
constructor() {
|
|
10
|
+
super(...arguments);
|
|
11
|
+
this.prefixUrl = '/dbEvent';
|
|
12
|
+
}
|
|
13
|
+
main(event) {
|
|
14
|
+
return (0, http_1.callApi)(`${this.getHost()}${this.prefixUrl}`, event);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
const dbEventService = new DbEventService();
|
|
18
|
+
exports.default = dbEventService;
|
|
19
|
+
//# sourceMappingURL=service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service.js","sourceRoot":"","sources":["../../../../src/vs/modules/dbEvent/service.ts"],"names":[],"mappings":";;;;;AAAA,qCAAoC;AACpC,iEAAwC;AAGxC,MAAM,cAAe,SAAQ,qBAAW;IAAxC;;QACE,cAAS,GAAG,UAAU,CAAA;IAKxB,CAAC;IAHC,IAAI,CAAC,KAAyB;QAC5B,OAAO,IAAA,cAAO,EAA6B,GAAG,IAAI,CAAC,OAAO,EAAE,GAAG,IAAI,CAAC,SAAS,EAAE,EAAE,KAAK,CAAC,CAAA;IACzF,CAAC;CACF;AAED,MAAM,cAAc,GAAG,IAAI,cAAc,EAAE,CAAA;AAC3C,kBAAe,cAAc,CAAA"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export declare namespace DbEvent {
|
|
2
|
+
interface CloudEvent {
|
|
3
|
+
specversion: string;
|
|
4
|
+
id: string;
|
|
5
|
+
source: string;
|
|
6
|
+
type: string;
|
|
7
|
+
subject: string;
|
|
8
|
+
datacontenttype: 'application/json';
|
|
9
|
+
time: string;
|
|
10
|
+
data: {
|
|
11
|
+
docId?: string;
|
|
12
|
+
doc: {
|
|
13
|
+
_id?: string;
|
|
14
|
+
[key: string]: any;
|
|
15
|
+
};
|
|
16
|
+
dataType: 'insert' | 'update' | 'delete';
|
|
17
|
+
updatedFields: any;
|
|
18
|
+
RemovedFields: string[] | null;
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
interface Controller {
|
|
22
|
+
main(event: CloudEvent): Promise<any>;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.js","sourceRoot":"","sources":["../../../../src/vs/modules/dbEvent/type.ts"],"names":[],"mappings":""}
|