ti2-tourplan 1.0.62 → 1.0.64
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/index.js +14 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -424,7 +424,15 @@ class BuyerPlugin {
|
|
|
424
424
|
hostConnectAgentPassword,
|
|
425
425
|
configuration,
|
|
426
426
|
},
|
|
427
|
-
payload: {
|
|
427
|
+
payload: {
|
|
428
|
+
// single optionId or array of optionIds
|
|
429
|
+
optionId,
|
|
430
|
+
forceRefresh,
|
|
431
|
+
searchInput,
|
|
432
|
+
// lastUpdatedFrom is used to get options that were updated after a certain date in Tourplan
|
|
433
|
+
// example: lastUpdatedFrom: '2024-04-22 05:17:57.427Z'
|
|
434
|
+
lastUpdatedFrom,
|
|
435
|
+
},
|
|
428
436
|
}) {
|
|
429
437
|
const model = {
|
|
430
438
|
OptionInfoRequest: {
|
|
@@ -432,6 +440,9 @@ class BuyerPlugin {
|
|
|
432
440
|
Info: 'G',
|
|
433
441
|
AgentID: hostConnectAgentID,
|
|
434
442
|
Password: hostConnectAgentPassword,
|
|
443
|
+
...(lastUpdatedFrom ? {
|
|
444
|
+
LastUpdateFrom: lastUpdatedFrom,
|
|
445
|
+
} : {}),
|
|
435
446
|
},
|
|
436
447
|
};
|
|
437
448
|
const payload = {
|
|
@@ -544,7 +555,8 @@ class BuyerPlugin {
|
|
|
544
555
|
Password: hostConnectAgentPassword,
|
|
545
556
|
},
|
|
546
557
|
});
|
|
547
|
-
const [SCheck, ACheck] = await Promise.map(['S', 'A'], async checkType => {
|
|
558
|
+
// const [SCheck, ACheck] = await Promise.map(['S', 'A'], async checkType => {
|
|
559
|
+
const [SCheck] = await Promise.map(['S'], async checkType => {
|
|
548
560
|
const replyObj = await this.callTourplan({
|
|
549
561
|
model: getModel(checkType),
|
|
550
562
|
endpoint: hostConnectEndpoint,
|