@qite/tide-client 1.1.44 → 1.1.46
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/index.d.ts +42 -3
- package/build/index.js +6508 -6287
- package/build/index.js.map +1 -1
- package/build/services/odata.service.d.ts +7 -1
- package/build/types/aapi/accommodation-occupancy.d.ts +7 -7
- package/build/types/aapi/accommodation-with-available-places.d.ts +11 -11
- package/build/types/aapi/accommodation.d.ts +4 -4
- package/build/types/aapi/additional-services.d.ts +4 -4
- package/build/types/aapi/alternative-flight-data.d.ts +7 -7
- package/build/types/aapi/alternative-flight-leg.d.ts +16 -16
- package/build/types/aapi/alternative-flight.d.ts +9 -9
- package/build/types/aapi/availability-request.d.ts +10 -10
- package/build/types/aapi/availability.d.ts +2 -2
- package/build/types/aapi/available-products-request.d.ts +29 -29
- package/build/types/aapi/duration.d.ts +2 -2
- package/build/types/aapi/flight-leg.d.ts +16 -16
- package/build/types/aapi/flight.d.ts +20 -20
- package/build/types/aapi/hotel.d.ts +32 -32
- package/build/types/aapi/mollie-payment-request.d.ts +4 -4
- package/build/types/aapi/mollie-payment.d.ts +1 -1
- package/build/types/aapi/option-pax.d.ts +2 -2
- package/build/types/aapi/option.d.ts +26 -19
- package/build/types/aapi/pax.d.ts +2 -2
- package/build/types/aapi/price-detail.d.ts +6 -6
- package/build/types/aapi/regime.d.ts +3 -3
- package/build/types/aapi/traveler-grouping.d.ts +3 -3
- package/build/types/company/agent/agent-invoice-item.d.ts +7 -7
- package/build/types/company/agent/entry-totals.d.ts +5 -5
- package/build/types/company/agent-print-action-request.d.ts +9 -9
- package/build/types/company/agent-print-action.d.ts +3 -3
- package/build/types/company/custom-entry-status-item.d.ts +4 -4
- package/build/types/company/number-string-pair.d.ts +2 -2
- package/build/types/enums/allotment-type.d.ts +3 -3
- package/build/types/enums/availability-search-type.d.ts +2 -2
- package/build/types/enums/data-type.d.ts +12 -12
- package/build/types/enums/dossier-type.d.ts +4 -4
- package/build/types/enums/entry-line-flag.d.ts +4 -4
- package/build/types/enums/entry-line-status.d.ts +17 -17
- package/build/types/enums/entry-status.d.ts +6 -6
- package/build/types/enums/export-status.d.ts +3 -3
- package/build/types/enums/gender.d.ts +3 -3
- package/build/types/enums/meta-data-type.d.ts +8 -8
- package/build/types/enums/payment-type.d.ts +4 -4
- package/build/types/enums/price-chart-type.d.ts +2 -2
- package/build/types/enums/print-action-group.d.ts +8 -8
- package/build/types/enums/requirement-type.d.ts +3 -3
- package/build/types/enums/room-type.d.ts +6 -6
- package/build/types/enums/sale-type.d.ts +2 -2
- package/build/types/enums/service-type.d.ts +26 -26
- package/build/types/index.d.ts +23 -1
- package/build/types/odata/column.d.ts +6 -6
- package/build/types/odata/filter-item.d.ts +11 -11
- package/build/types/odata/odata-params.d.ts +1 -1
- package/build/types/offer/additional-services.d.ts +4 -4
- package/build/types/offer/address.d.ts +9 -9
- package/build/types/offer/affiliate.d.ts +3 -3
- package/build/types/offer/alternative-flight-data.d.ts +7 -7
- package/build/types/offer/alternative-flight-leg.d.ts +16 -16
- package/build/types/offer/alternative-flight.d.ts +11 -11
- package/build/types/offer/available-package-accommodation.d.ts +4 -4
- package/build/types/offer/available-package-flight.d.ts +6 -6
- package/build/types/offer/available-package-option.d.ts +15 -10
- package/build/types/offer/available-package-pax-price.d.ts +4 -4
- package/build/types/offer/available-package-regime.d.ts +2 -2
- package/build/types/offer/available-package.d.ts +4 -4
- package/build/types/offer/base-price.d.ts +4 -4
- package/build/types/offer/base-prices-from-date-request.d.ts +10 -10
- package/build/types/offer/base-prices-request.d.ts +10 -10
- package/build/types/offer/book-request.d.ts +32 -32
- package/build/types/offer/booking-response.d.ts +2 -2
- package/build/types/offer/booking-v2/request/bookable-dates-request.d.ts +2 -2
- package/build/types/offer/booking-v2/request/booking-package-address.d.ts +12 -12
- package/build/types/offer/booking-v2/request/booking-package-book-request.d.ts +17 -17
- package/build/types/offer/booking-v2/request/booking-package-customer-request.d.ts +2 -2
- package/build/types/offer/booking-v2/request/booking-package-destination.d.ts +7 -7
- package/build/types/offer/booking-v2/request/booking-package-details-request.d.ts +16 -16
- package/build/types/offer/booking-v2/request/booking-package-flight-pool-request.d.ts +8 -8
- package/build/types/offer/booking-v2/request/booking-package-request.d.ts +3 -3
- package/build/types/offer/booking-v2/request/booking-package-search-request.d.ts +23 -23
- package/build/types/offer/booking-v2/request/booking-package-update-request.d.ts +1 -1
- package/build/types/offer/booking-v2/request/booking-package-voucher-request.d.ts +2 -2
- package/build/types/offer/booking-v2/request/selected-flight.d.ts +4 -4
- package/build/types/offer/booking-v2/request/selected-hotel.d.ts +3 -3
- package/build/types/offer/booking-v2/request/tour-codes.request.d.ts +1 -1
- package/build/types/offer/booking-v2/response/bookable-dates.d.ts +2 -2
- package/build/types/offer/booking-v2/response/booking-package-allotment-info.d.ts +15 -15
- package/build/types/offer/booking-v2/response/booking-package-dossier.d.ts +4 -4
- package/build/types/offer/booking-v2/response/booking-package-flight-pool.d.ts +2 -2
- package/build/types/offer/booking-v2/response/booking-package-hotel-pool.d.ts +1 -1
- package/build/types/offer/booking-v2/response/booking-package-item.d.ts +36 -36
- package/build/types/offer/booking-v2/response/booking-price-detail.d.ts +14 -14
- package/build/types/offer/booking-v2/response/booking-price-details.d.ts +7 -6
- package/build/types/offer/booking-v2/response/booking-price-per-pax.d.ts +2 -2
- package/build/types/offer/booking-v2/response/booking-product-notification.d.ts +5 -5
- package/build/types/offer/booking-v2/response/booking-room-status-option.d.ts +3 -3
- package/build/types/offer/booking-v2/response/booking-room-status.d.ts +2 -2
- package/build/types/offer/booking-v2/response/booking-travel-agent.d.ts +5 -5
- package/build/types/offer/booking-v2/response/booking-validity-line.d.ts +2 -2
- package/build/types/offer/booking-v2/response/booking-voucher-result.d.ts +1 -1
- package/build/types/offer/booking-v2/response/changed-line.d.ts +2 -2
- package/build/types/offer/booking-v2/response/tide-response.d.ts +6 -6
- package/build/types/offer/booking-v2/response/tour-codes-response.d.ts +1 -1
- package/build/types/offer/booking-v2/shared/airline-booking-package-option.d.ts +1 -2
- package/build/types/offer/booking-v2/shared/airport-booking-package-option.d.ts +1 -2
- package/build/types/offer/booking-v2/shared/booking-airline-group.d.ts +3 -3
- package/build/types/offer/booking-v2/shared/booking-airport-group.d.ts +3 -3
- package/build/types/offer/booking-v2/shared/booking-option-group.d.ts +3 -3
- package/build/types/offer/booking-v2/shared/booking-option-pax.d.ts +5 -5
- package/build/types/offer/booking-v2/shared/booking-option-unit.d.ts +4 -4
- package/build/types/offer/booking-v2/shared/booking-package-availability.d.ts +6 -6
- package/build/types/offer/booking-v2/shared/booking-package-flight-meta-data-line.d.ts +15 -15
- package/build/types/offer/booking-v2/shared/booking-package-flight-meta-data.d.ts +7 -7
- package/build/types/offer/booking-v2/shared/booking-package-flight.d.ts +11 -11
- package/build/types/offer/booking-v2/shared/booking-package-hotel-option.d.ts +8 -8
- package/build/types/offer/booking-v2/shared/booking-package-hotel-room.d.ts +2 -2
- package/build/types/offer/booking-v2/shared/booking-package-hotel.d.ts +19 -19
- package/build/types/offer/booking-v2/shared/booking-package-line.d.ts +13 -13
- package/build/types/offer/booking-v2/shared/booking-package-option.d.ts +33 -33
- package/build/types/offer/booking-v2/shared/booking-package-pax.d.ts +15 -15
- package/build/types/offer/booking-v2/shared/booking-package-request-room.d.ts +2 -2
- package/build/types/offer/booking-v2/shared/booking-package-room-option.d.ts +15 -15
- package/build/types/offer/booking-v2/shared/booking-package-room.d.ts +2 -2
- package/build/types/offer/booking-v2/shared/booking-package-tag.d.ts +3 -3
- package/build/types/offer/booking-v2/shared/booking-package.d.ts +6 -6
- package/build/types/offer/booking-v2/shared/per-booking-package-option.d.ts +3 -3
- package/build/types/offer/booking-v2/shared/per-package-option.d.ts +6 -6
- package/build/types/offer/booking-v2/shared/per-pax-package-option.d.ts +1 -1
- package/build/types/offer/booking-v2/shared/per-unit-package-option.d.ts +2 -2
- package/build/types/offer/cached-package-search-result.d.ts +2 -2
- package/build/types/offer/confirmed-dossier-check.d.ts +4 -4
- package/build/types/offer/country-item.d.ts +3 -3
- package/build/types/offer/crm-contact-request.d.ts +34 -26
- package/build/types/offer/customer-request.d.ts +3 -3
- package/build/types/offer/dossier-default-product.d.ts +12 -12
- package/build/types/offer/dossier-pax-item.d.ts +2 -2
- package/build/types/offer/dossier-view-result.d.ts +41 -41
- package/build/types/offer/entry-check-response.d.ts +6 -6
- package/build/types/offer/entry-line-meta-data.d.ts +3 -3
- package/build/types/offer/entry-line-pax.d.ts +5 -5
- package/build/types/offer/entry-line.d.ts +71 -65
- package/build/types/offer/entry-price-line.d.ts +38 -38
- package/build/types/offer/entry-room2.d.ts +3 -3
- package/build/types/offer/entry.d.ts +57 -47
- package/build/types/offer/flight-meta-data-line.d.ts +14 -14
- package/build/types/offer/flight-meta-data.d.ts +11 -11
- package/build/types/offer/flight-pool.d.ts +2 -2
- package/build/types/offer/item-tag.d.ts +1 -1
- package/build/types/offer/language.d.ts +3 -3
- package/build/types/offer/member-confirmation-request.d.ts +3 -3
- package/build/types/offer/member-forgot-password-request.d.ts +2 -2
- package/build/types/offer/member-info.d.ts +8 -8
- package/build/types/offer/member-login-request.d.ts +2 -2
- package/build/types/offer/member-login-response.d.ts +1 -1
- package/build/types/offer/member-reset-password-request.d.ts +2 -2
- package/build/types/offer/multiroom-book-request.d.ts +7 -7
- package/build/types/offer/note.d.ts +14 -14
- package/build/types/offer/other-product.d.ts +10 -10
- package/build/types/offer/package-book-request-room.d.ts +2 -2
- package/build/types/offer/package-book-request.d.ts +9 -9
- package/build/types/offer/package-flight.d.ts +10 -10
- package/build/types/offer/package-flights.d.ts +2 -2
- package/build/types/offer/package-option.d.ts +19 -19
- package/build/types/offer/package-price-details-request-room.d.ts +2 -2
- package/build/types/offer/package-price-details-request.d.ts +5 -5
- package/build/types/offer/package-room-option.d.ts +8 -8
- package/build/types/offer/package-room.d.ts +4 -4
- package/build/types/offer/package-search-destination.d.ts +7 -7
- package/build/types/offer/package-search-request-date.d.ts +2 -2
- package/build/types/offer/package-search-request-room.d.ts +3 -3
- package/build/types/offer/package-search-request.d.ts +20 -16
- package/build/types/offer/package-search-result.d.ts +9 -9
- package/build/types/offer/package-sub-option.d.ts +4 -4
- package/build/types/offer/page-result.d.ts +3 -3
- package/build/types/offer/pax.d.ts +26 -26
- package/build/types/offer/payment.d.ts +18 -18
- package/build/types/offer/person-country-preference.d.ts +5 -5
- package/build/types/offer/person-location-preference.d.ts +5 -5
- package/build/types/offer/person-oord-preference.d.ts +5 -5
- package/build/types/offer/person-period-date-range-preference.d.ts +4 -4
- package/build/types/offer/person-period-preference.d.ts +5 -5
- package/build/types/offer/person-region-preference.d.ts +5 -5
- package/build/types/offer/person-tour-group-preference.d.ts +5 -5
- package/build/types/offer/price-detail.d.ts +15 -15
- package/build/types/offer/price-per-pax.d.ts +4 -4
- package/build/types/offer/product-notification-result.d.ts +7 -7
- package/build/types/offer/web-contact-form-request.d.ts +11 -11
- package/build/types/offer/web-contact-has-tag-request.d.ts +2 -2
- package/build/types/tide-client-config.d.ts +3 -3
- package/build/utils/api.d.ts +15 -2
- package/build/utils/booking-client.d.ts +81 -14
- package/build/utils/booking-v2-client.d.ts +101 -16
- package/build/utils/common-client.d.ts +17 -2
- package/build/utils/member-client.d.ts +31 -6
- package/build/utils/mollie-client.d.ts +10 -2
- package/build/utils/search-client.d.ts +4 -1
- package/build/utils/web-agent-client.d.ts +52 -8
- package/build/utils/web-client.d.ts +16 -4
- package/build/utils/web-contact-client.d.ts +15 -3
- package/build/utils/web-file.d.ts +5 -1
- package/package.json +1 -1
- package/src/types/company/agent/change-entry-agent-surcharge-action.model.ts +5 -0
- package/src/types/company/agent/index.ts +1 -0
- package/src/types/offer/booking-v2/response/booking-price-details.ts +1 -0
- package/src/types/offer/dossier-view-result.ts +2 -0
- package/src/types/offer/entry.ts +2 -0
- package/src/utils/web-agent-client.ts +30 -2
- package/src/utils/web-client.ts +9 -10
- package/build/types/cms/translation-dictionary-item-localized.model.d.ts +0 -5
- package/build/types/cms/translation-dictionary-item.model.d.ts +0 -6
- package/build/types/cms/translation-dictionary-segment.model.d.ts +0 -7
- package/build/types/cms/translation-dictionary.model.d.ts +0 -4
package/src/utils/web-client.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { CrmContactRequest, TideClientConfig } from "../types";
|
|
2
|
-
import { TranslationDictionary } from "../types/cms/translation-dictionary.model";
|
|
3
2
|
import { Affiliate } from "../types/offer/affiliate";
|
|
4
3
|
|
|
5
4
|
import { post } from "./api";
|
|
@@ -48,12 +47,12 @@ export const getAffiliates = (
|
|
|
48
47
|
};
|
|
49
48
|
|
|
50
49
|
export const getTranslationDictionary = (
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
): Promise<{[key: string]: object}> => {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
}
|
|
50
|
+
config: TideClientConfig,
|
|
51
|
+
segmentKey: string,
|
|
52
|
+
signal?: AbortSignal
|
|
53
|
+
): Promise<{ [key: string]: object }> => {
|
|
54
|
+
const url = `${config.host}${ENDPOINT_TRANSLATION_DICTIONARY}/${segmentKey}`;
|
|
55
|
+
const apiKey = config.apiKey;
|
|
56
|
+
|
|
57
|
+
return get(url, apiKey, undefined, signal);
|
|
58
|
+
};
|