ti2-tourplan 1.0.63 → 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.
Files changed (2) hide show
  1. package/index.js +12 -1
  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: { optionId, forceRefresh, searchInput },
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 = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ti2-tourplan",
3
- "version": "1.0.63",
3
+ "version": "1.0.64",
4
4
  "description": "Tourplan's TI2 Plugin",
5
5
  "main": "index.js",
6
6
  "scripts": {