@vendit-dev/thirdparty-adapters 0.7.14 → 0.7.16
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.
|
@@ -27,7 +27,6 @@ exports.withAsyncBandwidth = exports.refineReservationData = exports.formattedPa
|
|
|
27
27
|
var fast_xml_parser_1 = require("fast-xml-parser");
|
|
28
28
|
var moment_1 = __importDefault(require("moment"));
|
|
29
29
|
var tl_lincoln_types_1 = require("./tl-lincoln.types");
|
|
30
|
-
var function_1 = require("../../utils/function");
|
|
31
30
|
var tl_lincoln_ota_1 = require("../../types/tl-lincoln.ota");
|
|
32
31
|
function jsonToXml(json) {
|
|
33
32
|
var options = {
|
|
@@ -119,6 +118,28 @@ var getMealConditionText = function (_mealCondition) {
|
|
|
119
118
|
return '조식 없음';
|
|
120
119
|
}
|
|
121
120
|
};
|
|
121
|
+
function groupByRoomWithTotalCounts(roomAndRoomRateInformations, totalRoomCount) {
|
|
122
|
+
var groupedRooms = Array(totalRoomCount).fill([]);
|
|
123
|
+
return roomAndRoomRateInformations.reduce(function (acc, curr) {
|
|
124
|
+
var RoomTypeCode = curr.RoomInformation.RoomTypeCode, RoomDate = curr.RoomRateInformation.RoomDate;
|
|
125
|
+
var existingRooms = acc.find(function (groupedRooms) {
|
|
126
|
+
var _a, _b;
|
|
127
|
+
return groupedRooms.length > 0 &&
|
|
128
|
+
((_b = (_a = groupedRooms[0]) === null || _a === void 0 ? void 0 : _a.RoomInformation) === null || _b === void 0 ? void 0 : _b.RoomTypeCode) === RoomTypeCode &&
|
|
129
|
+
!groupedRooms.some(function (room) { return room.RoomRateInformation.RoomDate === RoomDate; });
|
|
130
|
+
});
|
|
131
|
+
if (existingRooms) {
|
|
132
|
+
existingRooms.push(curr);
|
|
133
|
+
}
|
|
134
|
+
else {
|
|
135
|
+
var emptyRoomIndex = acc.findIndex(function (groupedRoom) { return groupedRoom.length === 0; });
|
|
136
|
+
if (emptyRoomIndex !== -1) {
|
|
137
|
+
acc[emptyRoomIndex] = [curr];
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
return acc;
|
|
141
|
+
}, groupedRooms);
|
|
142
|
+
}
|
|
122
143
|
var formattedNameForMealCondition = function (mealCondition, specificMealCondition) {
|
|
123
144
|
var _a;
|
|
124
145
|
return "".concat(getMealConditionText(mealCondition)).concat(((_a = getSpecificMealConditionText(specificMealCondition)) === null || _a === void 0 ? void 0 : _a.length) > 0
|
|
@@ -166,20 +187,20 @@ function formatPhoneNumber(text) {
|
|
|
166
187
|
return onlyNumberText ? "010".concat(onlyNumberText.slice(-8)) : '';
|
|
167
188
|
}
|
|
168
189
|
var makePaymentInfo = function (_a) {
|
|
169
|
-
var datas = _a.datas, basicRateInformation = _a.basicRateInformation, basicInformation = _a.basicInformation, reservationType = _a.reservationType,
|
|
190
|
+
var datas = _a.datas, basicRateInformation = _a.basicRateInformation, basicInformation = _a.basicInformation, reservationType = _a.reservationType, OptionList = _a.OptionList;
|
|
170
191
|
return datas.reduce(function (paymentInput, _a) {
|
|
171
192
|
var _b, _c, _d;
|
|
172
193
|
var RoomInfo = _a.RoomInformation, RoomRateInformation = _a.RoomRateInformation;
|
|
173
|
-
var roomAmount = (RoomRateInformation === null || RoomRateInformation === void 0 ? void 0 : RoomRateInformation.TotalPerRoomRate)
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
194
|
+
var roomAmount = (RoomRateInformation === null || RoomRateInformation === void 0 ? void 0 : RoomRateInformation.TotalPerRoomRate) ||
|
|
195
|
+
((RoomRateInformation === null || RoomRateInformation === void 0 ? void 0 : RoomRateInformation.PerMaleRate) || 0) *
|
|
196
|
+
(RoomInfo.RoomPaxMaleCount || 0) +
|
|
197
|
+
((RoomRateInformation === null || RoomRateInformation === void 0 ? void 0 : RoomRateInformation.PerFemaleRate) ||
|
|
198
|
+
(RoomRateInformation === null || RoomRateInformation === void 0 ? void 0 : RoomRateInformation.PerMaleRate) ||
|
|
199
|
+
0) *
|
|
200
|
+
(RoomInfo.RoomPaxFemaleCount || 0) ||
|
|
201
|
+
(RoomRateInformation === null || RoomRateInformation === void 0 ? void 0 : RoomRateInformation.TotalPerRoomRate) ||
|
|
202
|
+
basicRateInformation.TotalAccommodationCharge ||
|
|
203
|
+
0;
|
|
183
204
|
paymentInput.amount += roomAmount;
|
|
184
205
|
(_b = paymentInput.segments) === null || _b === void 0 ? void 0 : _b.push({
|
|
185
206
|
amount: roomAmount,
|
|
@@ -187,8 +208,8 @@ var makePaymentInfo = function (_a) {
|
|
|
187
208
|
referenceType: 'RESERVATION',
|
|
188
209
|
referenceSubType: reservationType,
|
|
189
210
|
});
|
|
190
|
-
if (basicInformation.MealCondition !== 'Other'
|
|
191
|
-
|
|
211
|
+
if (basicInformation.MealCondition !== 'Other' &&
|
|
212
|
+
basicInformation.MealCondition !== 'WithoutMeal') {
|
|
192
213
|
paymentInput.amount += (RoomRateInformation === null || RoomRateInformation === void 0 ? void 0 : RoomRateInformation.TotalPerRoomServiceFee) || 0;
|
|
193
214
|
(_c = paymentInput.segments) === null || _c === void 0 ? void 0 : _c.push({
|
|
194
215
|
amount: (RoomRateInformation === null || RoomRateInformation === void 0 ? void 0 : RoomRateInformation.TotalPerRoomServiceFee) || 0,
|
|
@@ -208,9 +229,9 @@ var makePaymentInfo = function (_a) {
|
|
|
208
229
|
return Object.assign(paymentInput, {
|
|
209
230
|
reservationType: reservationType,
|
|
210
231
|
type: 'platform',
|
|
211
|
-
externalRoomTypeCode:
|
|
212
|
-
externalRoomTypeName:
|
|
213
|
-
useStartAt: "".concat(
|
|
232
|
+
externalRoomTypeCode: datas[0].RoomInformation.NetRmTypeGroupCode,
|
|
233
|
+
externalRoomTypeName: datas[0].RoomInformation.RoomTypeName,
|
|
234
|
+
useStartAt: "".concat(datas[0].RoomRateInformation.RoomDate).concat((basicInformation === null || basicInformation === void 0 ? void 0 : basicInformation.CheckInTime)
|
|
214
235
|
? " ".concat(basicInformation === null || basicInformation === void 0 ? void 0 : basicInformation.CheckInTime)
|
|
215
236
|
: ''),
|
|
216
237
|
});
|
|
@@ -232,11 +253,11 @@ var refineReservationData = function (infoTravelXML) {
|
|
|
232
253
|
var isGroupReservation = BasicInformation.TotalRoomCount > 1;
|
|
233
254
|
var RisaplsCommonInformation = RisaplsInformation.RisaplsCommonInformation, AgentNativeInformation = RisaplsInformation.AgentNativeInformation;
|
|
234
255
|
var RoomAndRoomRateInformation = RisaplsCommonInformation.RoomAndRoomRateInformation, Allotment = RisaplsCommonInformation.Allotment, Member = RisaplsCommonInformation.Member, OtherInfo = RisaplsCommonInformation.OtherInfo, Basic = RisaplsCommonInformation.Basic, BasicRate = RisaplsCommonInformation.BasicRate, Option = RisaplsCommonInformation.Option;
|
|
235
|
-
var isFullyPaid = !!((_a = AgentNativeInformation === null || AgentNativeInformation === void 0 ? void 0 : AgentNativeInformation.Extendmytrip) === null || _a === void 0 ? void 0 : _a.SettlementDiv)
|
|
236
|
-
|
|
237
|
-
|
|
256
|
+
var isFullyPaid = !!((_a = AgentNativeInformation === null || AgentNativeInformation === void 0 ? void 0 : AgentNativeInformation.Extendmytrip) === null || _a === void 0 ? void 0 : _a.SettlementDiv) &&
|
|
257
|
+
!((_b = AgentNativeInformation === null || AgentNativeInformation === void 0 ? void 0 : AgentNativeInformation.Extend) === null || _b === void 0 ? void 0 : _b.AmountClaimed) &&
|
|
258
|
+
(BasicRateInformation === null || BasicRateInformation === void 0 ? void 0 : BasicRateInformation.Payment) !== 'Hotel Collect';
|
|
238
259
|
var roomAndRoomRateInformations = (0, tl_lincoln_types_1.makeArray)(RoomAndRoomRateInformation);
|
|
239
|
-
var groupedRooms = (
|
|
260
|
+
var groupedRooms = groupByRoomWithTotalCounts(roomAndRoomRateInformations, BasicInformation.TotalRoomCount);
|
|
240
261
|
var status = getReservationStatusFromDataClassification(TransactionType.DataClassification);
|
|
241
262
|
var useStartAt = "".concat(BasicInformation.CheckInDate).concat((BasicInformation === null || BasicInformation === void 0 ? void 0 : BasicInformation.CheckInTime) ? " ".concat(BasicInformation === null || BasicInformation === void 0 ? void 0 : BasicInformation.CheckInTime) : '');
|
|
242
263
|
var useExpireAt = "".concat((0, moment_1.default)(BasicInformation.CheckInDate)
|
|
@@ -255,9 +276,9 @@ var refineReservationData = function (infoTravelXML) {
|
|
|
255
276
|
name: BasicInformation.GuestOrGroupNameKanjiName,
|
|
256
277
|
email: Member === null || Member === void 0 ? void 0 : Member.UserMailAddr,
|
|
257
278
|
reservedBy: SalesOfficeInformation === null || SalesOfficeInformation === void 0 ? void 0 : SalesOfficeInformation.SalesOfficeCompanyName,
|
|
258
|
-
memo: "".concat((Member === null || Member === void 0 ? void 0 : Member.UserKana)
|
|
259
|
-
|
|
260
|
-
|
|
279
|
+
memo: "".concat((Member === null || Member === void 0 ? void 0 : Member.UserKana) ||
|
|
280
|
+
(Member === null || Member === void 0 ? void 0 : Member.UserName) ||
|
|
281
|
+
"".concat(BasicInformation.GuestOrGroupNameKanjiName), " ").concat(BasicInformation === null || BasicInformation === void 0 ? void 0 : BasicInformation.PackagePlanName, "\n").concat((OtherInfo === null || OtherInfo === void 0 ? void 0 : OtherInfo.GuestRequest)
|
|
261
282
|
? "[\uC694\uCCAD\uC0AC\uD56D]\n".concat(OtherInfo.GuestRequest)
|
|
262
283
|
: '', "\n").concat((OtherInfo === null || OtherInfo === void 0 ? void 0 : OtherInfo.AdditionalInformation)
|
|
263
284
|
? "[\uCD94\uAC00\uC815\uBCF4]\n".concat(OtherInfo.AdditionalInformation)
|
|
@@ -276,35 +297,31 @@ var refineReservationData = function (infoTravelXML) {
|
|
|
276
297
|
useStartAt: useStartAt,
|
|
277
298
|
platform: tl_lincoln_ota_1.TL_LINCOLN_TO_VENDIT_OTA_MAP[(SalesOfficeInformation === null || SalesOfficeInformation === void 0 ? void 0 : SalesOfficeInformation.SalesOfficeCompanyName) || 'ANONYMOUS'] || (SalesOfficeInformation === null || SalesOfficeInformation === void 0 ? void 0 : SalesOfficeInformation.SalesOfficeCompanyName),
|
|
278
299
|
externalPlatformCode: SalesOfficeInformation === null || SalesOfficeInformation === void 0 ? void 0 : SalesOfficeInformation.SalesOfficeCode,
|
|
279
|
-
externalPlatformName: (SalesOfficeInformation === null || SalesOfficeInformation === void 0 ? void 0 : SalesOfficeInformation.SalesOfficeCompanyName)
|
|
280
|
-
|
|
300
|
+
externalPlatformName: (SalesOfficeInformation === null || SalesOfficeInformation === void 0 ? void 0 : SalesOfficeInformation.SalesOfficeCompanyName) ||
|
|
301
|
+
(SalesOfficeInformation === null || SalesOfficeInformation === void 0 ? void 0 : SalesOfficeInformation.SalesOfficeName),
|
|
281
302
|
},
|
|
282
|
-
reservations:
|
|
283
|
-
var _a, _b, _c, _d;
|
|
284
|
-
var datas = groupedRooms[
|
|
303
|
+
reservations: groupedRooms.map(function (key, index) {
|
|
304
|
+
var _a, _b, _c, _d, _e;
|
|
305
|
+
var datas = groupedRooms[index];
|
|
285
306
|
var roomsSortedByDate = datas.sort(function (a, b) {
|
|
286
|
-
return new Date(a.RoomRateInformation.RoomDate).valueOf()
|
|
287
|
-
|
|
307
|
+
return new Date(a.RoomRateInformation.RoomDate).valueOf() -
|
|
308
|
+
new Date(b.RoomRateInformation.RoomDate).valueOf();
|
|
288
309
|
});
|
|
289
|
-
var reservationType = Number(Allotment.UseDiv) === 1
|
|
290
|
-
|
|
310
|
+
var reservationType = Number(Allotment.UseDiv) === 1 &&
|
|
311
|
+
BasicInformation.CheckInDate === BasicInformation.CheckOutDate
|
|
291
312
|
? 'rent'
|
|
292
313
|
: 'lodge';
|
|
293
314
|
var CheckInDate = roomsSortedByDate[0].RoomRateInformation.RoomDate;
|
|
294
315
|
var CheckOutDate = (_a = (0, moment_1.default)(CheckInDate)
|
|
295
316
|
.add(BasicInformation === null || BasicInformation === void 0 ? void 0 : BasicInformation.Nights, 'days')) === null || _a === void 0 ? void 0 : _a.format('YYYY-MM-DD');
|
|
296
|
-
var OptionList = Option
|
|
297
|
-
? (0, tl_lincoln_types_1.makeArray)(Option)
|
|
298
|
-
: [];
|
|
317
|
+
var OptionList = Option ? (0, tl_lincoln_types_1.makeArray)(Option) : [];
|
|
299
318
|
var DepositList = (BasicRate === null || BasicRate === void 0 ? void 0 : BasicRate.DepositList) && (0, tl_lincoln_types_1.makeArray)(BasicRate.DepositList);
|
|
300
319
|
var paymentInfo = makePaymentInfo({
|
|
301
320
|
datas: datas,
|
|
302
321
|
basicRateInformation: BasicRateInformation,
|
|
303
322
|
basicInformation: BasicInformation,
|
|
304
323
|
reservationType: reservationType,
|
|
305
|
-
CheckInDate: CheckInDate,
|
|
306
324
|
OptionList: OptionList,
|
|
307
|
-
roomsSortedByDate: roomsSortedByDate,
|
|
308
325
|
});
|
|
309
326
|
return {
|
|
310
327
|
useStartAt: "".concat(CheckInDate).concat((BasicInformation === null || BasicInformation === void 0 ? void 0 : BasicInformation.CheckInTime)
|
|
@@ -313,27 +330,31 @@ var refineReservationData = function (infoTravelXML) {
|
|
|
313
330
|
useExpireAt: "".concat(CheckOutDate).concat((BasicInformation === null || BasicInformation === void 0 ? void 0 : BasicInformation.CheckOutTime)
|
|
314
331
|
? " ".concat(BasicInformation === null || BasicInformation === void 0 ? void 0 : BasicInformation.CheckOutTime)
|
|
315
332
|
: ''),
|
|
316
|
-
sleeps:
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
333
|
+
sleeps: isGroupReservation
|
|
334
|
+
? (BasicInformation.GrandTotalPaxCount || 0) /
|
|
335
|
+
BasicInformation.TotalRoomCount ||
|
|
336
|
+
((_b = datas[0].RoomInformation) === null || _b === void 0 ? void 0 : _b.PerRoomPaxCount)
|
|
337
|
+
: (_d = (_c = roomsSortedByDate[0]) === null || _c === void 0 ? void 0 : _c.RoomInformation) === null || _d === void 0 ? void 0 : _d.PerRoomPaxCount,
|
|
338
|
+
guestName: "".concat(BasicInformation.GuestOrGroupNameSingleByte ||
|
|
339
|
+
BasicInformation.GuestOrGroupNameKanjiName ||
|
|
340
|
+
'Anonymous').concat(isGroupReservation ? " ".concat(index + 1) : ''),
|
|
320
341
|
externalPlatformCode: SalesOfficeInformation === null || SalesOfficeInformation === void 0 ? void 0 : SalesOfficeInformation.SalesOfficeCode,
|
|
321
|
-
externalPlatformName: (SalesOfficeInformation === null || SalesOfficeInformation === void 0 ? void 0 : SalesOfficeInformation.SalesOfficeCompanyName)
|
|
322
|
-
|
|
342
|
+
externalPlatformName: (SalesOfficeInformation === null || SalesOfficeInformation === void 0 ? void 0 : SalesOfficeInformation.SalesOfficeCompanyName) ||
|
|
343
|
+
(SalesOfficeInformation === null || SalesOfficeInformation === void 0 ? void 0 : SalesOfficeInformation.SalesOfficeName),
|
|
323
344
|
cmsOtaNumber: "".concat(BasicInformation.TravelAgencyBookingNumber).concat(isGroupReservation ? "-v".concat(index + 1) : ''),
|
|
324
|
-
cmsProductName: roomsSortedByDate[0].RoomInformation.RoomTypeName
|
|
325
|
-
|
|
345
|
+
cmsProductName: roomsSortedByDate[0].RoomInformation.RoomTypeName ||
|
|
346
|
+
BasicInformation.PackagePlanName,
|
|
326
347
|
platform: tl_lincoln_ota_1.TL_LINCOLN_TO_VENDIT_OTA_MAP[(SalesOfficeInformation === null || SalesOfficeInformation === void 0 ? void 0 : SalesOfficeInformation.SalesOfficeCompanyName) || 'ANONYMOUS'] || (SalesOfficeInformation === null || SalesOfficeInformation === void 0 ? void 0 : SalesOfficeInformation.SalesOfficeCompanyName),
|
|
327
|
-
otaNumber: "".concat(tl_lincoln_ota_1.TL_LINCOLN_TO_VENDIT_OTA_MAP[(SalesOfficeInformation === null || SalesOfficeInformation === void 0 ? void 0 : SalesOfficeInformation.SalesOfficeCompanyName) || 'ANONYMOUS'] || (SalesOfficeInformation === null || SalesOfficeInformation === void 0 ? void 0 : SalesOfficeInformation.SalesOfficeCompanyName), "|").concat((
|
|
348
|
+
otaNumber: "".concat(tl_lincoln_ota_1.TL_LINCOLN_TO_VENDIT_OTA_MAP[(SalesOfficeInformation === null || SalesOfficeInformation === void 0 ? void 0 : SalesOfficeInformation.SalesOfficeCompanyName) || 'ANONYMOUS'] || (SalesOfficeInformation === null || SalesOfficeInformation === void 0 ? void 0 : SalesOfficeInformation.SalesOfficeCompanyName), "|").concat((_e = "".concat(BasicInformation.TravelAgencyBookingNumber)) === null || _e === void 0 ? void 0 : _e.slice(-4)),
|
|
328
349
|
externalRoomTypeCode: roomsSortedByDate[0].RoomInformation.NetRmTypeGroupCode,
|
|
329
350
|
externalRoomTypeName: roomsSortedByDate[0].RoomInformation.RoomTypeName,
|
|
330
351
|
type: reservationType,
|
|
331
352
|
phone: formatPhoneNumber("".concat((Member === null || Member === void 0 ? void 0 : Member.UserTel) || Basic.PhoneNumber || '')),
|
|
332
353
|
status: status,
|
|
333
|
-
memoContent: "".concat((Member === null || Member === void 0 ? void 0 : Member.UserKana)
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
354
|
+
memoContent: "".concat((Member === null || Member === void 0 ? void 0 : Member.UserKana) ||
|
|
355
|
+
(Member === null || Member === void 0 ? void 0 : Member.UserName) ||
|
|
356
|
+
"".concat(BasicInformation.GuestOrGroupNameKanjiName), " ").concat(roomsSortedByDate[0].RoomInformation.RoomTypeName ||
|
|
357
|
+
BasicInformation.PackagePlanName, "\n").concat((OtherInfo === null || OtherInfo === void 0 ? void 0 : OtherInfo.GuestRequest)
|
|
337
358
|
? "[\uC694\uCCAD\uC0AC\uD56D]\n".concat(OtherInfo.GuestRequest)
|
|
338
359
|
: '', "\n").concat((OtherInfo === null || OtherInfo === void 0 ? void 0 : OtherInfo.AdditionalInformation)
|
|
339
360
|
? "[\uCD94\uAC00\uC815\uBCF4]\n".concat(OtherInfo.AdditionalInformation)
|
|
@@ -343,8 +364,8 @@ var refineReservationData = function (infoTravelXML) {
|
|
|
343
364
|
paymentInfo: Object.assign(paymentInfo, !isFullyPaid && {
|
|
344
365
|
amount: (DepositList === null || DepositList === void 0 ? void 0 : DepositList.reduce(function (acc, deposit) { return acc + ((deposit === null || deposit === void 0 ? void 0 : deposit.DepositAmount) || 0); }, 0)) || 0,
|
|
345
366
|
isFullyPaid: false,
|
|
346
|
-
outstandingAmount: paymentInfo.amount
|
|
347
|
-
|
|
367
|
+
outstandingAmount: paymentInfo.amount -
|
|
368
|
+
((DepositList === null || DepositList === void 0 ? void 0 : DepositList.reduce(function (acc, deposit) { return acc + ((deposit === null || deposit === void 0 ? void 0 : deposit.DepositAmount) || 0); }, 0)) || 0),
|
|
348
369
|
}),
|
|
349
370
|
};
|
|
350
371
|
}),
|
|
@@ -60,6 +60,9 @@ var TlLincolnOta;
|
|
|
60
60
|
TlLincolnOta["YANOLJA"] = "Yanolja";
|
|
61
61
|
TlLincolnOta["T_MON"] = "T-mon";
|
|
62
62
|
TlLincolnOta["TRIPDOTCOM"] = "Trip.com Group(new)";
|
|
63
|
+
TlLincolnOta["CHALET_KOREA"] = "CHALET KOREA";
|
|
64
|
+
TlLincolnOta["SUITE"] = "SUITE";
|
|
65
|
+
TlLincolnOta["SMART"] = "Smart";
|
|
63
66
|
})(TlLincolnOta || (TlLincolnOta = {}));
|
|
64
67
|
exports.TL_LINCOLN_TO_VENDIT_OTA_MAP = (_a = {},
|
|
65
68
|
_a[TlLincolnOta.JEJU_COM] = 'Jeju.com',
|
|
@@ -115,7 +118,10 @@ exports.TL_LINCOLN_TO_VENDIT_OTA_MAP = (_a = {},
|
|
|
115
118
|
_a[TlLincolnOta.ROOMIO] = 'ROOMIO',
|
|
116
119
|
_a[TlLincolnOta.ALLMYTOUR] = 'ALLMYTOUR',
|
|
117
120
|
_a[TlLincolnOta.MYREALTRIP] = 'MYREALTRIP',
|
|
118
|
-
_a[TlLincolnOta.YANOLJA] = '
|
|
121
|
+
_a[TlLincolnOta.YANOLJA] = 'YANOLJAHOTEL',
|
|
119
122
|
_a[TlLincolnOta.T_MON] = 'TMON',
|
|
120
123
|
_a[TlLincolnOta.TRIPDOTCOM] = 'TRIPDOTCOM',
|
|
124
|
+
_a[TlLincolnOta.CHALET_KOREA] = 'CHALET_KOREA',
|
|
125
|
+
_a[TlLincolnOta.SUITE] = 'SUITE',
|
|
126
|
+
_a[TlLincolnOta.SMART] = 'SMART',
|
|
121
127
|
_a);
|
package/package.json
CHANGED
|
@@ -1,50 +1,52 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
2
|
+
"name": "@vendit-dev/thirdparty-adapters",
|
|
3
|
+
"version": "0.7.16",
|
|
4
|
+
"description": "Third party adapters between v-cloud and other PMS/CMS providers.",
|
|
5
|
+
"main": "lib/index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"build": "tsc",
|
|
8
|
+
"dev": "node ./test/tl-lincoln.test.js",
|
|
9
|
+
"npm-login": "npm login",
|
|
10
|
+
"publish": "npm publish"
|
|
11
|
+
},
|
|
12
|
+
"keywords": [
|
|
13
|
+
"vendit"
|
|
14
|
+
],
|
|
15
|
+
"author": "Vendit <dev@vendit.co.kr> (https://vendit.co.kr)",
|
|
16
|
+
"license": "MIT",
|
|
17
|
+
"devDependencies": {
|
|
18
|
+
"@babel/cli": "^7.10.5",
|
|
19
|
+
"@babel/core": "^7.10.5",
|
|
20
|
+
"@babel/node": "^7.10.5",
|
|
21
|
+
"@babel/plugin-proposal-class-properties": "^7.10.4",
|
|
22
|
+
"@babel/plugin-proposal-optional-chaining": "^7.10.4",
|
|
23
|
+
"@babel/preset-env": "^7.10.4",
|
|
24
|
+
"@babel/preset-flow": "^7.10.4",
|
|
25
|
+
"@types/ioredis": "^5.0.0",
|
|
26
|
+
"@types/node": "^20.4.5",
|
|
27
|
+
"@types/node-fetch": "^2.6.1",
|
|
28
|
+
"@types/npm": "^7.19.1",
|
|
29
|
+
"@types/sequelize": "^4.28.15",
|
|
30
|
+
"@types/tedious": "^4.0.9",
|
|
31
|
+
"@types/validator": "^13.7.17",
|
|
32
|
+
"@typescript-eslint/eslint-plugin": "^3.6.1",
|
|
33
|
+
"@typescript-eslint/parser": "^3.6.1",
|
|
34
|
+
"@vendit-dev/utility-modules": "^0.20.1",
|
|
35
|
+
"babel-eslint": "^10.1.0",
|
|
36
|
+
"babel-plugin-module-resolver": "^4.0.0",
|
|
37
|
+
"cross-env": "^7.0.2",
|
|
38
|
+
"eslint": "^7.4.0",
|
|
39
|
+
"eslint-config-airbnb-base": "^13.1.0",
|
|
40
|
+
"eslint-plugin-import": "^2.16.0",
|
|
41
|
+
"typescript": "4.9.3"
|
|
42
|
+
},
|
|
43
|
+
"dependencies": {
|
|
44
|
+
"fast-xml-parser": "^4.4.0",
|
|
45
|
+
"moment": "^2.29.2",
|
|
46
|
+
"node-fetch": "2",
|
|
47
|
+
"npm": "6",
|
|
48
|
+
"sequelize": "^6.32.1",
|
|
49
|
+
"tedious": "6.2.1",
|
|
50
|
+
"uuid": "^8.3.2"
|
|
51
|
+
}
|
|
50
52
|
}
|