@qite/tide-booking-component 1.4.91 → 1.4.92
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/build/build-cjs/index.js +5 -4
- package/build/build-cjs/src/search-results/types.d.ts +1 -0
- package/build/build-esm/index.js +5 -4
- package/build/build-esm/src/search-results/types.d.ts +1 -0
- package/package.json +1 -1
- package/src/search-results/components/search-results-container/search-results-container.tsx +5 -3
- package/src/search-results/types.ts +1 -0
package/build/build-cjs/index.js
CHANGED
|
@@ -47250,6 +47250,7 @@ var SearchResultsContainer = function () {
|
|
|
47250
47250
|
searchRequest = rq;
|
|
47251
47251
|
_b.label = 4;
|
|
47252
47252
|
case 4:
|
|
47253
|
+
searchRequest.agentId = context.agentId;
|
|
47253
47254
|
return [4 /*yield*/, build.search(config, searchRequest)];
|
|
47254
47255
|
case 5:
|
|
47255
47256
|
packageSearchResults = _b.sent();
|
|
@@ -47316,6 +47317,7 @@ var SearchResultsContainer = function () {
|
|
|
47316
47317
|
}
|
|
47317
47318
|
searchRequest = rq;
|
|
47318
47319
|
searchRequest.portalId = context.portalId;
|
|
47320
|
+
searchRequest.agentId = context.agentId;
|
|
47319
47321
|
return [4 /*yield*/, build.searchPackagingAccommodations(config, searchRequest)];
|
|
47320
47322
|
case 2:
|
|
47321
47323
|
packageAccoSearchResults = _b.sent();
|
|
@@ -47428,7 +47430,8 @@ var SearchResultsContainer = function () {
|
|
|
47428
47430
|
duration: null,
|
|
47429
47431
|
preNights: null,
|
|
47430
47432
|
postNights: null
|
|
47431
|
-
}
|
|
47433
|
+
},
|
|
47434
|
+
agentId: context.agentId
|
|
47432
47435
|
};
|
|
47433
47436
|
if (!(entry && entryId)) return [3 /*break*/, 3];
|
|
47434
47437
|
requestRooms = getRequestRoomsFromEntry(entry.rooms);
|
|
@@ -47465,7 +47468,6 @@ var SearchResultsContainer = function () {
|
|
|
47465
47468
|
params,
|
|
47466
47469
|
rooms,
|
|
47467
47470
|
tagId,
|
|
47468
|
-
agentId,
|
|
47469
47471
|
destinationAirport,
|
|
47470
47472
|
destinationId,
|
|
47471
47473
|
destinationIsCountry,
|
|
@@ -47507,7 +47509,6 @@ var SearchResultsContainer = function () {
|
|
|
47507
47509
|
params = new URLSearchParams(location.search);
|
|
47508
47510
|
rooms = getRoomsFromParams(params, 'rooms');
|
|
47509
47511
|
tagId = getNumberFromParams(params, 'tagId');
|
|
47510
|
-
agentId = getNumberFromParams(params, 'agentId');
|
|
47511
47512
|
destinationAirport = getStringFromParams(params, 'destinationAirport');
|
|
47512
47513
|
destinationId = null;
|
|
47513
47514
|
destinationIsCountry = false;
|
|
@@ -47535,7 +47536,7 @@ var SearchResultsContainer = function () {
|
|
|
47535
47536
|
detailSearchRequest = {
|
|
47536
47537
|
officeId: 1,
|
|
47537
47538
|
portalId: context.portalId,
|
|
47538
|
-
agentId: agentId
|
|
47539
|
+
agentId: context.agentId,
|
|
47539
47540
|
catalogueId: (_a = context.searchConfiguration.defaultCatalogueId) !== null && _a !== void 0 ? _a : 0,
|
|
47540
47541
|
searchConfigurationId: context.searchConfiguration.id,
|
|
47541
47542
|
vendorConfigurationId: selectedItem.vendorId,
|
package/build/build-esm/index.js
CHANGED
|
@@ -46998,6 +46998,7 @@ var SearchResultsContainer = function () {
|
|
|
46998
46998
|
searchRequest = rq;
|
|
46999
46999
|
_b.label = 4;
|
|
47000
47000
|
case 4:
|
|
47001
|
+
searchRequest.agentId = context.agentId;
|
|
47001
47002
|
return [4 /*yield*/, build.search(config, searchRequest)];
|
|
47002
47003
|
case 5:
|
|
47003
47004
|
packageSearchResults = _b.sent();
|
|
@@ -47064,6 +47065,7 @@ var SearchResultsContainer = function () {
|
|
|
47064
47065
|
}
|
|
47065
47066
|
searchRequest = rq;
|
|
47066
47067
|
searchRequest.portalId = context.portalId;
|
|
47068
|
+
searchRequest.agentId = context.agentId;
|
|
47067
47069
|
return [4 /*yield*/, build.searchPackagingAccommodations(config, searchRequest)];
|
|
47068
47070
|
case 2:
|
|
47069
47071
|
packageAccoSearchResults = _b.sent();
|
|
@@ -47176,7 +47178,8 @@ var SearchResultsContainer = function () {
|
|
|
47176
47178
|
duration: null,
|
|
47177
47179
|
preNights: null,
|
|
47178
47180
|
postNights: null
|
|
47179
|
-
}
|
|
47181
|
+
},
|
|
47182
|
+
agentId: context.agentId
|
|
47180
47183
|
};
|
|
47181
47184
|
if (!(entry && entryId)) return [3 /*break*/, 3];
|
|
47182
47185
|
requestRooms = getRequestRoomsFromEntry(entry.rooms);
|
|
@@ -47213,7 +47216,6 @@ var SearchResultsContainer = function () {
|
|
|
47213
47216
|
params,
|
|
47214
47217
|
rooms,
|
|
47215
47218
|
tagId,
|
|
47216
|
-
agentId,
|
|
47217
47219
|
destinationAirport,
|
|
47218
47220
|
destinationId,
|
|
47219
47221
|
destinationIsCountry,
|
|
@@ -47255,7 +47257,6 @@ var SearchResultsContainer = function () {
|
|
|
47255
47257
|
params = new URLSearchParams(location.search);
|
|
47256
47258
|
rooms = getRoomsFromParams(params, 'rooms');
|
|
47257
47259
|
tagId = getNumberFromParams(params, 'tagId');
|
|
47258
|
-
agentId = getNumberFromParams(params, 'agentId');
|
|
47259
47260
|
destinationAirport = getStringFromParams(params, 'destinationAirport');
|
|
47260
47261
|
destinationId = null;
|
|
47261
47262
|
destinationIsCountry = false;
|
|
@@ -47283,7 +47284,7 @@ var SearchResultsContainer = function () {
|
|
|
47283
47284
|
detailSearchRequest = {
|
|
47284
47285
|
officeId: 1,
|
|
47285
47286
|
portalId: context.portalId,
|
|
47286
|
-
agentId: agentId
|
|
47287
|
+
agentId: context.agentId,
|
|
47287
47288
|
catalogueId: (_a = context.searchConfiguration.defaultCatalogueId) !== null && _a !== void 0 ? _a : 0,
|
|
47288
47289
|
searchConfigurationId: context.searchConfiguration.id,
|
|
47289
47290
|
vendorConfigurationId: selectedItem.vendorId,
|
package/package.json
CHANGED
|
@@ -475,6 +475,7 @@ const SearchResultsContainer: React.FC = () => {
|
|
|
475
475
|
searchRequest = rq;
|
|
476
476
|
}
|
|
477
477
|
|
|
478
|
+
searchRequest.agentId = context.agentId;
|
|
478
479
|
const packageSearchResults = await search(config, searchRequest);
|
|
479
480
|
|
|
480
481
|
console.log('Search results', packageSearchResults);
|
|
@@ -534,6 +535,7 @@ const SearchResultsContainer: React.FC = () => {
|
|
|
534
535
|
|
|
535
536
|
searchRequest = rq;
|
|
536
537
|
searchRequest.portalId = context.portalId;
|
|
538
|
+
searchRequest.agentId = context.agentId;
|
|
537
539
|
|
|
538
540
|
const packageAccoSearchResults = await searchPackagingAccommodations(config, searchRequest);
|
|
539
541
|
|
|
@@ -626,7 +628,8 @@ const SearchResultsContainer: React.FC = () => {
|
|
|
626
628
|
duration: null,
|
|
627
629
|
preNights: null,
|
|
628
630
|
postNights: null
|
|
629
|
-
}
|
|
631
|
+
},
|
|
632
|
+
agentId: context.agentId
|
|
630
633
|
};
|
|
631
634
|
|
|
632
635
|
if (entry && entryId) {
|
|
@@ -674,7 +677,6 @@ const SearchResultsContainer: React.FC = () => {
|
|
|
674
677
|
const params = new URLSearchParams(location.search);
|
|
675
678
|
const rooms = getRoomsFromParams(params, 'rooms');
|
|
676
679
|
let tagId = getNumberFromParams(params, 'tagId');
|
|
677
|
-
let agentId = getNumberFromParams(params, 'agentId');
|
|
678
680
|
|
|
679
681
|
let destinationAirport = getStringFromParams(params, 'destinationAirport');
|
|
680
682
|
|
|
@@ -706,7 +708,7 @@ const SearchResultsContainer: React.FC = () => {
|
|
|
706
708
|
const detailSearchRequest: PackagingAccommodationRequest = {
|
|
707
709
|
officeId: 1,
|
|
708
710
|
portalId: context.portalId,
|
|
709
|
-
agentId: agentId
|
|
711
|
+
agentId: context.agentId,
|
|
710
712
|
catalogueId: context!.searchConfiguration.defaultCatalogueId ?? 0,
|
|
711
713
|
searchConfigurationId: context!.searchConfiguration.id,
|
|
712
714
|
vendorConfigurationId: selectedItem.vendorId,
|
|
@@ -6,6 +6,7 @@ export type FlightSelectionMode = 'paired' | 'independent';
|
|
|
6
6
|
export interface SearchResultsConfiguration {
|
|
7
7
|
searchConfiguration: WebsiteConfigurationSearchConfiguration;
|
|
8
8
|
portalId?: number;
|
|
9
|
+
agentId?: number;
|
|
9
10
|
// Tide connection
|
|
10
11
|
tideConnection: {
|
|
11
12
|
host: string;
|