From 9664343f3bedd9ccbc72ec4e061c5107bf89a86d Mon Sep 17 00:00:00 2001 From: Oleksii Date: Mon, 5 Jun 2023 11:59:06 +0300 Subject: [PATCH 1/7] schema-utils-version-fix: currency and reference templates update; reference example minor update; patch version update --- examples/Utils/referenceData.js | 25 ++++++++----------- package.json | 2 +- .../UTILS_CURRENCY_CONVERSION.handlebars.js | 2 +- ...UTILS_REFERENCE_DATA_RETRIVE.handlebars.js | 2 +- 4 files changed, 14 insertions(+), 17 deletions(-) diff --git a/examples/Utils/referenceData.js b/examples/Utils/referenceData.js index 56a86527..e6c309be 100644 --- a/examples/Utils/referenceData.js +++ b/examples/Utils/referenceData.js @@ -1,22 +1,19 @@ const uAPI = require('../../index'); const config = require('../../test/testconfig'); -const uuid = require('uuid'); -const UtilService = uAPI.createUtilsService( { - auth: config, - debug: 2, - production: false, - } -); +const UtilService = uAPI.createUtilsService({ + auth: config, + debug: 2, + production: true, +}); const params = { - dataType: "HotelAmenities", - TraceId: uuid() + dataType: 'HotelAmenities', + TraceId: 'some-unique-trace-id', }; UtilService.referenceData(params) -.then( - res => console.log(res), - err => console.log(err) -); - + .then( + res => console.log(res), + err => console.log(err) + ); diff --git a/package.json b/package.json index c770578b..55366f7c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "uapi-json", - "version": "1.15.1", + "version": "1.15.2", "description": "Travelport Universal API", "main": "src/", "files": [ diff --git a/src/Services/Utils/templates/UTILS_CURRENCY_CONVERSION.handlebars.js b/src/Services/Utils/templates/UTILS_CURRENCY_CONVERSION.handlebars.js index 961970d0..82f73a7b 100644 --- a/src/Services/Utils/templates/UTILS_CURRENCY_CONVERSION.handlebars.js +++ b/src/Services/Utils/templates/UTILS_CURRENCY_CONVERSION.handlebars.js @@ -1,5 +1,5 @@ module.exports = ` - + diff --git a/src/Services/Utils/templates/UTILS_REFERENCE_DATA_RETRIVE.handlebars.js b/src/Services/Utils/templates/UTILS_REFERENCE_DATA_RETRIVE.handlebars.js index a61973e0..ebcd7245 100644 --- a/src/Services/Utils/templates/UTILS_REFERENCE_DATA_RETRIVE.handlebars.js +++ b/src/Services/Utils/templates/UTILS_REFERENCE_DATA_RETRIVE.handlebars.js @@ -2,7 +2,7 @@ module.exports = ` - + From 0346a3542e1d10dc07dedb2799be21cac5634ad5 Mon Sep 17 00:00:00 2001 From: Oleksii Date: Mon, 5 Jun 2023 17:06:19 +0300 Subject: [PATCH 2/7] schema-utils-version-fix: availability request booking code add, minor version update --- examples/Air/availability.js | 9 +++++---- package-lock.json | 2 +- package.json | 2 +- .../Air/templates/AIR_AVAILABILTIY_REQUEST.handlebars.js | 5 +++++ 4 files changed, 12 insertions(+), 6 deletions(-) diff --git a/examples/Air/availability.js b/examples/Air/availability.js index 807ca78f..74dbfb72 100644 --- a/examples/Air/availability.js +++ b/examples/Air/availability.js @@ -13,9 +13,9 @@ const AirService = uAPI.createAirService( const params = { legs: [ { - from: 'IEV', - to: 'NYC', - departureDate: '2018-11-10', + from: 'WAW', + to: 'AMS', + departureDate: '2023-11-10', }, ], passengers: { @@ -26,8 +26,9 @@ const params = { INS: 1, //infant with a seat */ }, - permittedCarriers: ['KL'], + permittedCarriers: ['LO'], cabins: ['Economy'], // ['Business'], + bookingCode: 'Y', requestId: '4e2fd1f8-2221-4b6c-bb6e-cf05c367cf60', // permittedConnectionPoints: ['AMS'], // preferredConnectionPoints: ['KBP'], diff --git a/package-lock.json b/package-lock.json index 73ae04ba..3d30fb3a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "uapi-json", - "version": "1.15.1", + "version": "1.16.0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 55366f7c..5be3ec61 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "uapi-json", - "version": "1.15.2", + "version": "1.16.0", "description": "Travelport Universal API", "main": "src/", "files": [ diff --git a/src/Services/Air/templates/AIR_AVAILABILTIY_REQUEST.handlebars.js b/src/Services/Air/templates/AIR_AVAILABILTIY_REQUEST.handlebars.js index 35a609fe..0a0e8d83 100644 --- a/src/Services/Air/templates/AIR_AVAILABILTIY_REQUEST.handlebars.js +++ b/src/Services/Air/templates/AIR_AVAILABILTIY_REQUEST.handlebars.js @@ -71,6 +71,11 @@ module.exports = ` {{/each}} {{/if}} + {{#if ../bookingCode}} + + + + {{/if}} {{/legs}} From 65734a7b5c4ae66e2f91b76ed33747efbffc731c Mon Sep 17 00:00:00 2001 From: Oleksii Date: Wed, 7 Jun 2023 10:37:10 +0300 Subject: [PATCH 3/7] TC-3489: bookingCode availability param as array --- examples/Air/availability.js | 2 +- .../Air/templates/AIR_AVAILABILTIY_REQUEST.handlebars.js | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/examples/Air/availability.js b/examples/Air/availability.js index 74dbfb72..3343e40c 100644 --- a/examples/Air/availability.js +++ b/examples/Air/availability.js @@ -28,7 +28,7 @@ const params = { }, permittedCarriers: ['LO'], cabins: ['Economy'], // ['Business'], - bookingCode: 'Y', + bookingCode: ['Q', 'G'], requestId: '4e2fd1f8-2221-4b6c-bb6e-cf05c367cf60', // permittedConnectionPoints: ['AMS'], // preferredConnectionPoints: ['KBP'], diff --git a/src/Services/Air/templates/AIR_AVAILABILTIY_REQUEST.handlebars.js b/src/Services/Air/templates/AIR_AVAILABILTIY_REQUEST.handlebars.js index 0a0e8d83..8f2590cb 100644 --- a/src/Services/Air/templates/AIR_AVAILABILTIY_REQUEST.handlebars.js +++ b/src/Services/Air/templates/AIR_AVAILABILTIY_REQUEST.handlebars.js @@ -73,7 +73,9 @@ module.exports = ` {{/if}} {{#if ../bookingCode}} - + {{#each ../bookingCode}} + + {{/each}} {{/if}} From a137d233c321cdb86bf87aff1e29ae2f2f51fdd4 Mon Sep 17 00:00:00 2001 From: Oleksii Date: Wed, 7 Jun 2023 10:39:48 +0300 Subject: [PATCH 4/7] TC-3489: minor version update (bookingCode string -> array) --- package-lock.json | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index 3d30fb3a..79bad3f5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "uapi-json", - "version": "1.16.0", + "version": "1.17.0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 5be3ec61..9b413d8c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "uapi-json", - "version": "1.16.0", + "version": "1.17.0", "description": "Travelport Universal API", "main": "src/", "files": [ From dfb7870c5f50be9b152f69b5767af86d8c05312d Mon Sep 17 00:00:00 2001 From: Oleksii Date: Wed, 7 Jun 2023 11:17:46 +0300 Subject: [PATCH 5/7] TC-3489: plural for booking code --- examples/Air/availability.js | 2 +- .../Air/templates/AIR_AVAILABILTIY_REQUEST.handlebars.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/Air/availability.js b/examples/Air/availability.js index 3343e40c..34251b45 100644 --- a/examples/Air/availability.js +++ b/examples/Air/availability.js @@ -28,7 +28,7 @@ const params = { }, permittedCarriers: ['LO'], cabins: ['Economy'], // ['Business'], - bookingCode: ['Q', 'G'], + bookingCodes: ['Q', 'G'], requestId: '4e2fd1f8-2221-4b6c-bb6e-cf05c367cf60', // permittedConnectionPoints: ['AMS'], // preferredConnectionPoints: ['KBP'], diff --git a/src/Services/Air/templates/AIR_AVAILABILTIY_REQUEST.handlebars.js b/src/Services/Air/templates/AIR_AVAILABILTIY_REQUEST.handlebars.js index 8f2590cb..e9a5a7c0 100644 --- a/src/Services/Air/templates/AIR_AVAILABILTIY_REQUEST.handlebars.js +++ b/src/Services/Air/templates/AIR_AVAILABILTIY_REQUEST.handlebars.js @@ -71,9 +71,9 @@ module.exports = ` {{/each}} {{/if}} - {{#if ../bookingCode}} + {{#if ../bookingCodes}} - {{#each ../bookingCode}} + {{#each ../bookingCodes}} {{/each}} From 415157c22e7694e5aa3a0d169e036a4c57121f81 Mon Sep 17 00:00:00 2001 From: Oleksii Date: Wed, 7 Jun 2023 15:14:03 +0300 Subject: [PATCH 6/7] TC-3489: updated patch version instead of minor --- package-lock.json | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index 79bad3f5..9215cb11 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "uapi-json", - "version": "1.17.0", + "version": "1.16.1", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 9b413d8c..805887fd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "uapi-json", - "version": "1.17.0", + "version": "1.16.1", "description": "Travelport Universal API", "main": "src/", "files": [ From c908c202a78e9c3671a812a2cb65d7f170cdfbd6 Mon Sep 17 00:00:00 2001 From: Oleksii Date: Wed, 7 Jun 2023 15:15:55 +0300 Subject: [PATCH 7/7] TC-3489: return to current non-released latest version --- package-lock.json | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index 9215cb11..3d30fb3a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "uapi-json", - "version": "1.16.1", + "version": "1.16.0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 805887fd..5be3ec61 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "uapi-json", - "version": "1.16.1", + "version": "1.16.0", "description": "Travelport Universal API", "main": "src/", "files": [