@qite/tide-client 1.1.55 → 1.1.56
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 +1 -28
- package/build/index.js +185 -286
- package/build/index.js.map +1 -1
- package/build/types/booking-v2/request/available-countries-request.d.ts +4 -0
- package/build/types/booking-v2/request/available-flights-request.d.ts +8 -0
- package/build/types/{offer/booking-v2 → booking-v2}/request/index.d.ts +4 -0
- package/build/types/booking-v2/request/prices-request.d.ts +17 -0
- package/build/types/booking-v2/request/transport-dates-request.d.ts +14 -0
- package/build/types/booking-v2/response/available-country.d.ts +5 -0
- package/build/types/booking-v2/response/available-flight.d.ts +4 -0
- package/build/types/{offer → booking-v2/response}/base-price.d.ts +2 -1
- package/build/types/{offer/booking-v2 → booking-v2}/response/index.d.ts +5 -1
- package/build/types/booking-v2/response/transport-dates-response.d.ts +4 -0
- package/build/types/{offer/booking-v2 → booking-v2}/shared/index.d.ts +1 -0
- package/build/types/index.d.ts +4 -24
- package/build/types/mollie/index.d.ts +2 -0
- package/build/types/offer/index.d.ts +3 -39
- package/build/types/web/generate-booking-accommodation-request.d.ts +6 -0
- package/build/types/web/index.d.ts +2 -0
- package/build/utils/api.d.ts +9 -1
- package/build/utils/booking-v2-client.d.ts +47 -11
- package/build/utils/common-client.d.ts +10 -1
- package/build/utils/web-client.d.ts +13 -2
- package/package.json +2 -2
- package/src/index.ts +1 -29
- package/src/types/booking-v2/request/available-countries-request.ts +4 -0
- package/src/types/booking-v2/request/available-flights-request.ts +8 -0
- package/src/types/{offer/booking-v2 → booking-v2}/request/index.ts +4 -0
- package/src/types/booking-v2/request/prices-request.ts +19 -0
- package/src/types/booking-v2/request/transport-dates-request.ts +14 -0
- package/src/types/booking-v2/response/available-country.ts +5 -0
- package/src/types/booking-v2/response/available-flight.ts +4 -0
- package/src/types/{offer → booking-v2/response}/base-price.ts +2 -1
- package/src/types/{offer/booking-v2 → booking-v2}/response/index.ts +5 -1
- package/src/types/booking-v2/response/transport-dates-response.ts +4 -0
- package/src/types/{offer/booking-v2 → booking-v2}/shared/index.ts +1 -0
- package/src/types/index.ts +4 -24
- package/src/types/mollie/index.ts +2 -0
- package/src/types/offer/index.ts +3 -39
- package/src/types/web/generate-booking-accommodation-request.ts +6 -0
- package/src/types/web/index.ts +2 -0
- package/src/utils/api.ts +29 -1
- package/src/utils/booking-v2-client.ts +121 -27
- package/src/utils/common-client.ts +29 -4
- package/src/utils/web-client.ts +20 -4
- package/build/types/aapi/accommodation-occupancy.d.ts +0 -9
- package/build/types/aapi/accommodation-with-available-places.d.ts +0 -14
- package/build/types/aapi/accommodation.d.ts +0 -7
- package/build/types/aapi/additional-services.d.ts +0 -6
- package/build/types/aapi/alternative-flight-data.d.ts +0 -10
- package/build/types/aapi/alternative-flight-leg.d.ts +0 -18
- package/build/types/aapi/alternative-flight.d.ts +0 -12
- package/build/types/aapi/availability-request.d.ts +0 -12
- package/build/types/aapi/availability.d.ts +0 -5
- package/build/types/aapi/available-products-request.d.ts +0 -32
- package/build/types/aapi/duration.d.ts +0 -4
- package/build/types/aapi/flight-leg.d.ts +0 -18
- package/build/types/aapi/flight.d.ts +0 -23
- package/build/types/aapi/hotel.d.ts +0 -35
- package/build/types/aapi/index.d.ts +0 -22
- package/build/types/aapi/option-pax.d.ts +0 -4
- package/build/types/aapi/option.d.ts +0 -28
- package/build/types/aapi/pax.d.ts +0 -4
- package/build/types/aapi/price-detail.d.ts +0 -8
- package/build/types/aapi/regime.d.ts +0 -5
- package/build/types/aapi/traveler-grouping.d.ts +0 -5
- package/build/types/accommodation-occupancy.d.ts +0 -9
- package/build/types/accommodation-with-available-places.d.ts +0 -15
- package/build/types/accommodation.d.ts +0 -7
- package/build/types/additional-services.d.ts +0 -5
- package/build/types/alternative-flight-data.d.ts +0 -10
- package/build/types/alternative-flight-leg.d.ts +0 -18
- package/build/types/alternative-flight.d.ts +0 -12
- package/build/types/availability-request.d.ts +0 -11
- package/build/types/availability.d.ts +0 -5
- package/build/types/available-products-request.d.ts +0 -28
- package/build/types/availablility-request.d.ts +0 -11
- package/build/types/duration.d.ts +0 -4
- package/build/types/entry-line-meta-data.d.ts +0 -5
- package/build/types/enums/online-payment-type.d.ts +0 -3
- package/build/types/enums/print-action-group.enum.d.ts +0 -10
- package/build/types/flight-leg.d.ts +0 -18
- package/build/types/flight.d.ts +0 -23
- package/build/types/hotel.d.ts +0 -34
- package/build/types/offer/address.d.ts +0 -11
- package/build/types/offer/affiliates.d.ts +0 -5
- package/build/types/offer/alternative-flight-data.d.ts +0 -10
- package/build/types/offer/alternative-flight-leg.d.ts +0 -18
- package/build/types/offer/alternative-flight.d.ts +0 -14
- package/build/types/offer/available-package-accommodation.d.ts +0 -7
- package/build/types/offer/available-package-flight.d.ts +0 -9
- package/build/types/offer/available-package-option.d.ts +0 -17
- package/build/types/offer/available-package-pax-price.d.ts +0 -6
- package/build/types/offer/available-package-regime.d.ts +0 -4
- package/build/types/offer/available-package.d.ts +0 -7
- package/build/types/offer/base-prices-from-date-request.d.ts +0 -12
- package/build/types/offer/base-prices-request.d.ts +0 -12
- package/build/types/offer/book-request.d.ts +0 -36
- package/build/types/offer/booking-response.d.ts +0 -4
- package/build/types/offer/booking-v2/request/tour-codes-request.d.ts +0 -3
- package/build/types/offer/cached-package-search-result.d.ts +0 -5
- package/build/types/offer/multiroom-book-request.d.ts +0 -10
- package/build/types/offer/other-product.d.ts +0 -13
- package/build/types/offer/package-book-request-room.d.ts +0 -5
- package/build/types/offer/package-book-request.d.ts +0 -12
- package/build/types/offer/package-flight.d.ts +0 -13
- package/build/types/offer/package-flights.d.ts +0 -5
- package/build/types/offer/package-option.d.ts +0 -22
- package/build/types/offer/package-price-details-request-room.d.ts +0 -4
- package/build/types/offer/package-price-details-request.d.ts +0 -8
- package/build/types/offer/package-room-option.d.ts +0 -10
- package/build/types/offer/package-room.d.ts +0 -7
- package/build/types/offer/package-search-destination.d.ts +0 -9
- package/build/types/offer/package-search-request-date.d.ts +0 -4
- package/build/types/offer/package-search-request-room.d.ts +0 -5
- package/build/types/offer/package-search-request.d.ts +0 -22
- package/build/types/offer/package-search-response.d.ts +0 -4
- package/build/types/offer/package-search-result.d.ts +0 -12
- package/build/types/offer/package-sub-option.d.ts +0 -6
- package/build/types/offer/price-detail.d.ts +0 -18
- package/build/types/offer/price-per-pax.d.ts +0 -6
- package/build/types/option-pax.d.ts +0 -4
- package/build/types/option.d.ts +0 -26
- package/build/types/package-details-request.d.ts +0 -12
- package/build/types/package-flight.d.ts +0 -11
- package/build/types/package-flights.d.ts +0 -5
- package/build/types/package-option.d.ts +0 -19
- package/build/types/package-room-option.d.ts +0 -8
- package/build/types/package-room.d.ts +0 -7
- package/build/types/package-search-destination.d.ts +0 -9
- package/build/types/package-search-request-date.d.ts +0 -4
- package/build/types/package-search-request-room.d.ts +0 -5
- package/build/types/package-search-request.d.ts +0 -21
- package/build/types/package-search-response.d.ts +0 -4
- package/build/types/package-search-result.d.ts +0 -12
- package/build/types/package-sub-option.d.ts +0 -6
- package/build/types/pax.d.ts +0 -4
- package/build/types/regime.d.ts +0 -5
- package/build/types/traveler-grouping.d.ts +0 -5
- package/build/utils/booking-client.d.ts +0 -181
- package/build/utils/bookingClient.d.ts +0 -9
- package/build/utils/client.d.ts +0 -4
- package/src/types/aapi/accommodation-occupancy.ts +0 -9
- package/src/types/aapi/accommodation-with-available-places.ts +0 -15
- package/src/types/aapi/accommodation.ts +0 -8
- package/src/types/aapi/additional-services.ts +0 -6
- package/src/types/aapi/alternative-flight-data.ts +0 -11
- package/src/types/aapi/alternative-flight-leg.ts +0 -18
- package/src/types/aapi/alternative-flight.ts +0 -13
- package/src/types/aapi/availability-request.ts +0 -12
- package/src/types/aapi/availability.ts +0 -6
- package/src/types/aapi/available-products-request.ts +0 -33
- package/src/types/aapi/duration.ts +0 -4
- package/src/types/aapi/flight-leg.ts +0 -18
- package/src/types/aapi/flight.ts +0 -24
- package/src/types/aapi/hotel.ts +0 -36
- package/src/types/aapi/index.ts +0 -22
- package/src/types/aapi/option-pax.ts +0 -4
- package/src/types/aapi/option.ts +0 -29
- package/src/types/aapi/pax.ts +0 -4
- package/src/types/aapi/price-detail.ts +0 -8
- package/src/types/aapi/regime.ts +0 -5
- package/src/types/aapi/traveler-grouping.ts +0 -5
- package/src/types/offer/address.ts +0 -11
- package/src/types/offer/alternative-flight-data.ts +0 -11
- package/src/types/offer/alternative-flight-leg.ts +0 -18
- package/src/types/offer/alternative-flight.ts +0 -15
- package/src/types/offer/available-package-accommodation.ts +0 -8
- package/src/types/offer/available-package-flight.ts +0 -10
- package/src/types/offer/available-package-option.ts +0 -18
- package/src/types/offer/available-package-pax-price.ts +0 -6
- package/src/types/offer/available-package-regime.ts +0 -4
- package/src/types/offer/available-package.ts +0 -8
- package/src/types/offer/base-prices-from-date-request.ts +0 -12
- package/src/types/offer/base-prices-request.ts +0 -12
- package/src/types/offer/book-request.ts +0 -38
- package/src/types/offer/booking-response.ts +0 -4
- package/src/types/offer/cached-package-search-result.ts +0 -6
- package/src/types/offer/multiroom-book-request.ts +0 -11
- package/src/types/offer/other-product.ts +0 -14
- package/src/types/offer/package-book-request-room.ts +0 -6
- package/src/types/offer/package-book-request.ts +0 -13
- package/src/types/offer/package-flight.ts +0 -14
- package/src/types/offer/package-flights.ts +0 -6
- package/src/types/offer/package-option.ts +0 -23
- package/src/types/offer/package-price-details-request-room.ts +0 -4
- package/src/types/offer/package-price-details-request.ts +0 -9
- package/src/types/offer/package-room-option.ts +0 -10
- package/src/types/offer/package-room.ts +0 -8
- package/src/types/offer/package-search-destination.ts +0 -9
- package/src/types/offer/package-search-request-date.ts +0 -4
- package/src/types/offer/package-search-request-room.ts +0 -5
- package/src/types/offer/package-search-request.ts +0 -23
- package/src/types/offer/package-search-result.ts +0 -13
- package/src/types/offer/package-sub-option.ts +0 -6
- package/src/types/offer/price-detail.ts +0 -19
- package/src/types/offer/price-per-pax.ts +0 -6
- package/src/utils/booking-client.ts +0 -310
- package/tests/bookingClient.test.ts +0 -728
- package/tests/mocks/available-products.json +0 -183
- package/tests/mocks/base-prices-from-date.json +0 -74
- package/tests/mocks/base-prices.json +0 -236
- package/tests/mocks/entry-multiroom.json +0 -2043
- package/tests/mocks/entry-multiroom.short.json +0 -4
- package/tests/mocks/offer-entry.json +0 -2043
- package/tests/mocks/offer-entry.short.json +0 -4
- package/tests/mocks/package-entry.json +0 -2043
- package/tests/mocks/package-entry.short.json +0 -4
- package/tests/mocks/package-offer-entry.json +0 -2043
- package/tests/mocks/package-offer-entry.short.json +0 -4
- package/tests/mocks/package-price-details.json +0 -176
- package/tests/mocks/package-search.json +0 -179
- /package/build/types/{offer/booking-v2 → booking-v2}/index.d.ts +0 -0
- /package/build/types/{offer/booking-v2 → booking-v2}/request/bookable-dates-request.d.ts +0 -0
- /package/build/types/{offer/booking-v2 → booking-v2}/request/booking-package-address.d.ts +0 -0
- /package/build/types/{offer/booking-v2 → booking-v2}/request/booking-package-book-request.d.ts +0 -0
- /package/build/types/{offer/booking-v2 → booking-v2}/request/booking-package-customer-request.d.ts +0 -0
- /package/build/types/{offer/booking-v2 → booking-v2}/request/booking-package-destination.d.ts +0 -0
- /package/build/types/{offer/booking-v2 → booking-v2}/request/booking-package-details-request.d.ts +0 -0
- /package/build/types/{offer/booking-v2 → booking-v2}/request/booking-package-flight-pool-request.d.ts +0 -0
- /package/build/types/{offer/booking-v2 → booking-v2}/request/booking-package-request.d.ts +0 -0
- /package/build/types/{offer/booking-v2 → booking-v2}/request/booking-package-search-request.d.ts +0 -0
- /package/build/types/{offer/booking-v2 → booking-v2}/request/booking-package-update-request.d.ts +0 -0
- /package/build/types/{offer/booking-v2 → booking-v2}/request/booking-package-voucher-request.d.ts +0 -0
- /package/build/types/{offer/booking-v2 → booking-v2}/request/selected-flight.d.ts +0 -0
- /package/build/types/{offer/booking-v2 → booking-v2}/request/selected-hotel.d.ts +0 -0
- /package/build/types/{offer/booking-v2 → booking-v2}/request/tour-codes.request.d.ts +0 -0
- /package/build/types/{offer/booking-v2 → booking-v2}/response/bookable-dates.d.ts +0 -0
- /package/build/types/{offer/booking-v2 → booking-v2}/response/booking-package-allotment-info.d.ts +0 -0
- /package/build/types/{offer/booking-v2 → booking-v2}/response/booking-package-dossier.d.ts +0 -0
- /package/build/types/{offer/booking-v2 → booking-v2}/response/booking-package-flight-pool.d.ts +0 -0
- /package/build/types/{offer/booking-v2 → booking-v2}/response/booking-package-hotel-pool.d.ts +0 -0
- /package/build/types/{offer/booking-v2 → booking-v2}/response/booking-package-item.d.ts +0 -0
- /package/build/types/{offer/booking-v2 → booking-v2}/response/booking-price-detail.d.ts +0 -0
- /package/build/types/{offer/booking-v2 → booking-v2}/response/booking-price-details.d.ts +0 -0
- /package/build/types/{offer/booking-v2 → booking-v2}/response/booking-price-per-pax.d.ts +0 -0
- /package/build/types/{offer/booking-v2 → booking-v2}/response/booking-product-notification.d.ts +0 -0
- /package/build/types/{offer/booking-v2 → booking-v2}/response/booking-room-status-option.d.ts +0 -0
- /package/build/types/{offer/booking-v2 → booking-v2}/response/booking-room-status.d.ts +0 -0
- /package/build/types/{offer/booking-v2 → booking-v2}/response/booking-travel-agent.d.ts +0 -0
- /package/build/types/{offer/booking-v2 → booking-v2}/response/booking-validity-line.d.ts +0 -0
- /package/build/types/{offer/booking-v2 → booking-v2}/response/booking-voucher-result.d.ts +0 -0
- /package/build/types/{offer/booking-v2 → booking-v2}/response/changed-line.d.ts +0 -0
- /package/build/types/{offer/booking-v2 → booking-v2}/response/tide-response.d.ts +0 -0
- /package/build/types/{offer/booking-v2 → booking-v2}/response/tour-codes-response.d.ts +0 -0
- /package/build/types/{offer/booking-v2 → booking-v2}/shared/airline-booking-package-option.d.ts +0 -0
- /package/build/types/{offer/booking-v2 → booking-v2}/shared/airport-booking-package-option.d.ts +0 -0
- /package/build/types/{offer/booking-v2 → booking-v2}/shared/booking-airline-group.d.ts +0 -0
- /package/build/types/{offer/booking-v2 → booking-v2}/shared/booking-airport-group.d.ts +0 -0
- /package/build/types/{offer/booking-v2 → booking-v2}/shared/booking-option-group.d.ts +0 -0
- /package/build/types/{offer/booking-v2 → booking-v2}/shared/booking-option-pax.d.ts +0 -0
- /package/build/types/{offer/booking-v2 → booking-v2}/shared/booking-option-unit.d.ts +0 -0
- /package/build/types/{offer/booking-v2 → booking-v2}/shared/booking-package-availability.d.ts +0 -0
- /package/build/types/{offer/booking-v2 → booking-v2}/shared/booking-package-flight-meta-data-line.d.ts +0 -0
- /package/build/types/{offer/booking-v2 → booking-v2}/shared/booking-package-flight-meta-data.d.ts +0 -0
- /package/build/types/{offer/booking-v2 → booking-v2}/shared/booking-package-flight.d.ts +0 -0
- /package/build/types/{offer/booking-v2 → booking-v2}/shared/booking-package-hotel-option.d.ts +0 -0
- /package/build/types/{offer/booking-v2 → booking-v2}/shared/booking-package-hotel-room.d.ts +0 -0
- /package/build/types/{offer/booking-v2 → booking-v2}/shared/booking-package-hotel.d.ts +0 -0
- /package/build/types/{offer/booking-v2 → booking-v2}/shared/booking-package-line.d.ts +0 -0
- /package/build/types/{offer/booking-v2 → booking-v2}/shared/booking-package-option.d.ts +0 -0
- /package/build/types/{offer/booking-v2 → booking-v2}/shared/booking-package-pax.d.ts +0 -0
- /package/build/types/{offer/booking-v2 → booking-v2}/shared/booking-package-request-room.d.ts +0 -0
- /package/build/types/{offer/booking-v2 → booking-v2}/shared/booking-package-room-option.d.ts +0 -0
- /package/build/types/{offer/booking-v2 → booking-v2}/shared/booking-package-room.d.ts +0 -0
- /package/build/types/{offer/booking-v2 → booking-v2}/shared/booking-package-tag.d.ts +0 -0
- /package/build/types/{offer/booking-v2 → booking-v2}/shared/booking-package.d.ts +0 -0
- /package/build/types/{offer/booking-v2 → booking-v2}/shared/per-booking-package-option.d.ts +0 -0
- /package/build/types/{offer/booking-v2 → booking-v2}/shared/per-package-option.d.ts +0 -0
- /package/build/types/{offer/booking-v2 → booking-v2}/shared/per-pax-package-option.d.ts +0 -0
- /package/build/types/{offer/booking-v2 → booking-v2}/shared/per-unit-package-option.d.ts +0 -0
- /package/build/types/{offer/booking-v2 → booking-v2}/shared/room-option-pax-type.d.ts +0 -0
- /package/build/types/{aapi → mollie}/mollie-payment-request.d.ts +0 -0
- /package/build/types/{aapi → mollie}/mollie-payment.d.ts +0 -0
- /package/build/types/{offer → web}/affiliate.d.ts +0 -0
- /package/src/types/{offer/booking-v2 → booking-v2}/index.ts +0 -0
- /package/src/types/{offer/booking-v2 → booking-v2}/request/bookable-dates-request.ts +0 -0
- /package/src/types/{offer/booking-v2 → booking-v2}/request/booking-package-address.ts +0 -0
- /package/src/types/{offer/booking-v2 → booking-v2}/request/booking-package-book-request.ts +0 -0
- /package/src/types/{offer/booking-v2 → booking-v2}/request/booking-package-customer-request.ts +0 -0
- /package/src/types/{offer/booking-v2 → booking-v2}/request/booking-package-destination.ts +0 -0
- /package/src/types/{offer/booking-v2 → booking-v2}/request/booking-package-details-request.ts +0 -0
- /package/src/types/{offer/booking-v2 → booking-v2}/request/booking-package-flight-pool-request.ts +0 -0
- /package/src/types/{offer/booking-v2 → booking-v2}/request/booking-package-request.ts +0 -0
- /package/src/types/{offer/booking-v2 → booking-v2}/request/booking-package-search-request.ts +0 -0
- /package/src/types/{offer/booking-v2 → booking-v2}/request/booking-package-update-request.ts +0 -0
- /package/src/types/{offer/booking-v2 → booking-v2}/request/booking-package-voucher-request.ts +0 -0
- /package/src/types/{offer/booking-v2 → booking-v2}/request/selected-flight.ts +0 -0
- /package/src/types/{offer/booking-v2 → booking-v2}/request/selected-hotel.ts +0 -0
- /package/src/types/{offer/booking-v2 → booking-v2}/request/tour-codes.request.ts +0 -0
- /package/src/types/{offer/booking-v2 → booking-v2}/response/bookable-dates.ts +0 -0
- /package/src/types/{offer/booking-v2 → booking-v2}/response/booking-package-allotment-info.ts +0 -0
- /package/src/types/{offer/booking-v2 → booking-v2}/response/booking-package-dossier.ts +0 -0
- /package/src/types/{offer/booking-v2 → booking-v2}/response/booking-package-flight-pool.ts +0 -0
- /package/src/types/{offer/booking-v2 → booking-v2}/response/booking-package-hotel-pool.ts +0 -0
- /package/src/types/{offer/booking-v2 → booking-v2}/response/booking-package-item.ts +0 -0
- /package/src/types/{offer/booking-v2 → booking-v2}/response/booking-price-detail.ts +0 -0
- /package/src/types/{offer/booking-v2 → booking-v2}/response/booking-price-details.ts +0 -0
- /package/src/types/{offer/booking-v2 → booking-v2}/response/booking-price-per-pax.ts +0 -0
- /package/src/types/{offer/booking-v2 → booking-v2}/response/booking-product-notification.ts +0 -0
- /package/src/types/{offer/booking-v2 → booking-v2}/response/booking-room-status-option.ts +0 -0
- /package/src/types/{offer/booking-v2 → booking-v2}/response/booking-room-status.ts +0 -0
- /package/src/types/{offer/booking-v2 → booking-v2}/response/booking-travel-agent.ts +0 -0
- /package/src/types/{offer/booking-v2 → booking-v2}/response/booking-validity-line.ts +0 -0
- /package/src/types/{offer/booking-v2 → booking-v2}/response/booking-voucher-result.ts +0 -0
- /package/src/types/{offer/booking-v2 → booking-v2}/response/changed-line.ts +0 -0
- /package/src/types/{offer/booking-v2 → booking-v2}/response/tide-response.ts +0 -0
- /package/src/types/{offer/booking-v2 → booking-v2}/response/tour-codes-response.ts +0 -0
- /package/src/types/{offer/booking-v2 → booking-v2}/shared/airline-booking-package-option.ts +0 -0
- /package/src/types/{offer/booking-v2 → booking-v2}/shared/airport-booking-package-option.ts +0 -0
- /package/src/types/{offer/booking-v2 → booking-v2}/shared/booking-airline-group.ts +0 -0
- /package/src/types/{offer/booking-v2 → booking-v2}/shared/booking-airport-group.ts +0 -0
- /package/src/types/{offer/booking-v2 → booking-v2}/shared/booking-option-group.ts +0 -0
- /package/src/types/{offer/booking-v2 → booking-v2}/shared/booking-option-pax.ts +0 -0
- /package/src/types/{offer/booking-v2 → booking-v2}/shared/booking-option-unit.ts +0 -0
- /package/src/types/{offer/booking-v2 → booking-v2}/shared/booking-package-availability.ts +0 -0
- /package/src/types/{offer/booking-v2 → booking-v2}/shared/booking-package-flight-meta-data-line.ts +0 -0
- /package/src/types/{offer/booking-v2 → booking-v2}/shared/booking-package-flight-meta-data.ts +0 -0
- /package/src/types/{offer/booking-v2 → booking-v2}/shared/booking-package-flight.ts +0 -0
- /package/src/types/{offer/booking-v2 → booking-v2}/shared/booking-package-hotel-option.ts +0 -0
- /package/src/types/{offer/booking-v2 → booking-v2}/shared/booking-package-hotel-room.ts +0 -0
- /package/src/types/{offer/booking-v2 → booking-v2}/shared/booking-package-hotel.ts +0 -0
- /package/src/types/{offer/booking-v2 → booking-v2}/shared/booking-package-line.ts +0 -0
- /package/src/types/{offer/booking-v2 → booking-v2}/shared/booking-package-option.ts +0 -0
- /package/src/types/{offer/booking-v2 → booking-v2}/shared/booking-package-pax.ts +0 -0
- /package/src/types/{offer/booking-v2 → booking-v2}/shared/booking-package-request-room.ts +0 -0
- /package/src/types/{offer/booking-v2 → booking-v2}/shared/booking-package-room-option.ts +0 -0
- /package/src/types/{offer/booking-v2 → booking-v2}/shared/booking-package-room.ts +0 -0
- /package/src/types/{offer/booking-v2 → booking-v2}/shared/booking-package-tag.ts +0 -0
- /package/src/types/{offer/booking-v2 → booking-v2}/shared/booking-package.ts +0 -0
- /package/src/types/{offer/booking-v2 → booking-v2}/shared/per-booking-package-option.ts +0 -0
- /package/src/types/{offer/booking-v2 → booking-v2}/shared/per-package-option.ts +0 -0
- /package/src/types/{offer/booking-v2 → booking-v2}/shared/per-pax-package-option.ts +0 -0
- /package/src/types/{offer/booking-v2 → booking-v2}/shared/per-unit-package-option.ts +0 -0
- /package/src/types/{offer/booking-v2 → booking-v2}/shared/room-option-pax-type.ts +0 -0
- /package/src/types/{aapi → mollie}/mollie-payment-request.ts +0 -0
- /package/src/types/{aapi → mollie}/mollie-payment.ts +0 -0
- /package/src/types/{offer → web}/affiliate.ts +0 -0
package/build/index.d.ts
CHANGED
|
@@ -8,41 +8,14 @@ export {
|
|
|
8
8
|
ServiceType,
|
|
9
9
|
} from "./types";
|
|
10
10
|
export {
|
|
11
|
-
Address,
|
|
12
|
-
AvailableProductsRequest,
|
|
13
|
-
BasePricesRequest,
|
|
14
|
-
BasePricesFromDateRequest,
|
|
15
11
|
CrmContactRequest,
|
|
16
12
|
MolliePaymentRequest,
|
|
17
|
-
MultiroomBookRequest,
|
|
18
|
-
OtherProduct,
|
|
19
|
-
PackageBookRequestRoom,
|
|
20
|
-
PackageBookRequest,
|
|
21
|
-
PackagePriceDetailsRequestRoom,
|
|
22
|
-
PackagePriceDetailsRequest,
|
|
23
|
-
PackageSearchDestination,
|
|
24
|
-
PackageSearchRequestDate,
|
|
25
|
-
PackageSearchRequestRoom,
|
|
26
|
-
PackageSearchRequest,
|
|
27
13
|
Pax,
|
|
28
|
-
TravelerGrouping,
|
|
29
14
|
WebContactFormRequest,
|
|
30
15
|
WebContactHasTagRequest,
|
|
31
16
|
} from "./types";
|
|
32
|
-
export {
|
|
33
|
-
Availability,
|
|
34
|
-
AvailablePackage,
|
|
35
|
-
BasePrice,
|
|
36
|
-
BookingResponse,
|
|
37
|
-
CachedPackageSearchResult,
|
|
38
|
-
Entry,
|
|
39
|
-
MolliePayment,
|
|
40
|
-
PackageOption,
|
|
41
|
-
PackageRoom,
|
|
42
|
-
PriceDetail,
|
|
43
|
-
} from "./types";
|
|
17
|
+
export { BasePrice, Entry, MolliePayment } from "./types";
|
|
44
18
|
export { FlightMetaData } from "./types";
|
|
45
|
-
export * from "./utils/booking-client";
|
|
46
19
|
export * from "./utils/booking-v2-client";
|
|
47
20
|
export * from "./utils/member-client";
|
|
48
21
|
export * from "./utils/mollie-client";
|
package/build/index.js
CHANGED
|
@@ -107,7 +107,7 @@ var ServiceType = {
|
|
|
107
107
|
rocket: 28,
|
|
108
108
|
};
|
|
109
109
|
|
|
110
|
-
|
|
110
|
+
/******************************************************************************
|
|
111
111
|
Copyright (c) Microsoft Corporation.
|
|
112
112
|
|
|
113
113
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -167,9 +167,13 @@ function __generator(thisArg, body) {
|
|
|
167
167
|
f,
|
|
168
168
|
y,
|
|
169
169
|
t,
|
|
170
|
-
g
|
|
170
|
+
g = Object.create(
|
|
171
|
+
(typeof Iterator === "function" ? Iterator : Object).prototype
|
|
172
|
+
);
|
|
171
173
|
return (
|
|
172
|
-
(g =
|
|
174
|
+
(g.next = verb(0)),
|
|
175
|
+
(g["throw"] = verb(1)),
|
|
176
|
+
(g["return"] = verb(2)),
|
|
173
177
|
typeof Symbol === "function" &&
|
|
174
178
|
(g[Symbol.iterator] = function () {
|
|
175
179
|
return this;
|
|
@@ -183,7 +187,7 @@ function __generator(thisArg, body) {
|
|
|
183
187
|
}
|
|
184
188
|
function step(op) {
|
|
185
189
|
if (f) throw new TypeError("Generator is already executing.");
|
|
186
|
-
while (_)
|
|
190
|
+
while ((g && ((g = 0), op[0] && (_ = 0)), _))
|
|
187
191
|
try {
|
|
188
192
|
if (
|
|
189
193
|
((f = 1),
|
|
@@ -253,6 +257,18 @@ function __generator(thisArg, body) {
|
|
|
253
257
|
}
|
|
254
258
|
}
|
|
255
259
|
|
|
260
|
+
typeof SuppressedError === "function"
|
|
261
|
+
? SuppressedError
|
|
262
|
+
: function (error, suppressed, message) {
|
|
263
|
+
var e = new Error(message);
|
|
264
|
+
return (
|
|
265
|
+
(e.name = "SuppressedError"),
|
|
266
|
+
(e.error = error),
|
|
267
|
+
(e.suppressed = suppressed),
|
|
268
|
+
e
|
|
269
|
+
);
|
|
270
|
+
};
|
|
271
|
+
|
|
256
272
|
var post$1 = function (url, apiKey, body, token, signal, languageCode) {
|
|
257
273
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
258
274
|
var response;
|
|
@@ -284,6 +300,37 @@ var post$1 = function (url, apiKey, body, token, signal, languageCode) {
|
|
|
284
300
|
});
|
|
285
301
|
});
|
|
286
302
|
};
|
|
303
|
+
var patch$1 = function (url, apiKey, body, token, signal, languageCode) {
|
|
304
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
305
|
+
var response;
|
|
306
|
+
return __generator(this, function (_a) {
|
|
307
|
+
switch (_a.label) {
|
|
308
|
+
case 0:
|
|
309
|
+
return [
|
|
310
|
+
4 /*yield*/,
|
|
311
|
+
fetch(url, {
|
|
312
|
+
method: "PATCH",
|
|
313
|
+
headers: {
|
|
314
|
+
"Content-Type": "application/json",
|
|
315
|
+
"Api-Key": apiKey,
|
|
316
|
+
Language: languageCode || "nl-BE",
|
|
317
|
+
Authorization: token ? "Bearer " + token : "",
|
|
318
|
+
},
|
|
319
|
+
credentials: "include",
|
|
320
|
+
body: body,
|
|
321
|
+
signal: signal,
|
|
322
|
+
}),
|
|
323
|
+
];
|
|
324
|
+
case 1:
|
|
325
|
+
response = _a.sent();
|
|
326
|
+
if (!response.ok) {
|
|
327
|
+
throw new Error(response.statusText);
|
|
328
|
+
}
|
|
329
|
+
return [2 /*return*/, response];
|
|
330
|
+
}
|
|
331
|
+
});
|
|
332
|
+
});
|
|
333
|
+
};
|
|
287
334
|
var get$1 = function (url, apiKey, token, signal, languageCode) {
|
|
288
335
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
289
336
|
var response;
|
|
@@ -6004,20 +6051,6 @@ var reviver = function (_, value) {
|
|
|
6004
6051
|
}
|
|
6005
6052
|
return value;
|
|
6006
6053
|
};
|
|
6007
|
-
var replacer = function (_, value) {
|
|
6008
|
-
if (typeof value === "string") {
|
|
6009
|
-
if (Date.parse(value)) {
|
|
6010
|
-
var date = new Date(value);
|
|
6011
|
-
if (date.toISOString() === value) {
|
|
6012
|
-
var year = date.getFullYear();
|
|
6013
|
-
var month = date.getMonth() + 1;
|
|
6014
|
-
var day = date.getDate();
|
|
6015
|
-
return year + "-" + month + "-" + day;
|
|
6016
|
-
}
|
|
6017
|
-
}
|
|
6018
|
-
}
|
|
6019
|
-
return value;
|
|
6020
|
-
};
|
|
6021
6054
|
|
|
6022
6055
|
var post = function (
|
|
6023
6056
|
url,
|
|
@@ -6043,17 +6076,39 @@ var post = function (
|
|
|
6043
6076
|
case 2:
|
|
6044
6077
|
responseBody = _a.sent();
|
|
6045
6078
|
result = skipReviver
|
|
6046
|
-
? JSON.parse(
|
|
6047
|
-
|
|
6048
|
-
|
|
6049
|
-
|
|
6050
|
-
|
|
6051
|
-
|
|
6052
|
-
|
|
6053
|
-
|
|
6054
|
-
|
|
6055
|
-
|
|
6056
|
-
|
|
6079
|
+
? JSON.parse(responseBody)
|
|
6080
|
+
: JSON.parse(responseBody, reviver);
|
|
6081
|
+
return [2 /*return*/, result];
|
|
6082
|
+
}
|
|
6083
|
+
});
|
|
6084
|
+
});
|
|
6085
|
+
};
|
|
6086
|
+
var patch = function (
|
|
6087
|
+
url,
|
|
6088
|
+
apiKey,
|
|
6089
|
+
body,
|
|
6090
|
+
token,
|
|
6091
|
+
signal,
|
|
6092
|
+
skipReviver,
|
|
6093
|
+
languageCode
|
|
6094
|
+
) {
|
|
6095
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
6096
|
+
var response, responseBody, result;
|
|
6097
|
+
return __generator(this, function (_a) {
|
|
6098
|
+
switch (_a.label) {
|
|
6099
|
+
case 0:
|
|
6100
|
+
return [
|
|
6101
|
+
4 /*yield*/,
|
|
6102
|
+
patch$1(url, apiKey, body, token, signal, languageCode),
|
|
6103
|
+
];
|
|
6104
|
+
case 1:
|
|
6105
|
+
response = _a.sent();
|
|
6106
|
+
return [4 /*yield*/, response.text()];
|
|
6107
|
+
case 2:
|
|
6108
|
+
responseBody = _a.sent();
|
|
6109
|
+
result = skipReviver
|
|
6110
|
+
? JSON.parse(responseBody)
|
|
6111
|
+
: JSON.parse(responseBody, reviver);
|
|
6057
6112
|
return [2 /*return*/, result];
|
|
6058
6113
|
}
|
|
6059
6114
|
});
|
|
@@ -6080,233 +6135,77 @@ var get = function (url, apiKey, token, signal, skipReviver, languageCode) {
|
|
|
6080
6135
|
});
|
|
6081
6136
|
};
|
|
6082
6137
|
|
|
6083
|
-
var ENDPOINT$8 = "/api/web/booking";
|
|
6084
|
-
var ENDPOINT_AVAILABLE_PRODUCTS = ENDPOINT$8 + "/available-products";
|
|
6085
|
-
var ENDPOINT_PACKAGE_SEARCH = ENDPOINT$8 + "/package-search";
|
|
6086
|
-
var ENDPOINT_PACKAGE_PRICE_DETAILS = ENDPOINT$8 + "/package-price-details";
|
|
6087
|
-
var ENDPOINT_CREATE_OFFER = ENDPOINT$8 + "/offer-entry";
|
|
6088
|
-
var ENDPOINT_CREATE_ENTRY = ENDPOINT$8 + "/entry-multiroom";
|
|
6089
|
-
var ENDPOINT_CREATE_PACKAGE_OFFER = ENDPOINT$8 + "/package-offer-entry";
|
|
6090
|
-
var ENDPOINT_CREATE_PACKAGE_ENTRY = ENDPOINT$8 + "/package-entry";
|
|
6091
|
-
var ENDPOINT_GET_BASE_PRICES = ENDPOINT$8 + "/base-prices";
|
|
6092
|
-
var ENDPOINT_GET_BASE_PRICES_FROM_DATE = ENDPOINT$8 + "/base-prices-from-date";
|
|
6093
|
-
/**
|
|
6094
|
-
* api/web/booking/available-products
|
|
6095
|
-
* @param config
|
|
6096
|
-
* @param request
|
|
6097
|
-
* @returns Availabilities (options) for the specified request.
|
|
6098
|
-
* @deprecated Use V2: Search
|
|
6099
|
-
*/
|
|
6100
|
-
var getAvailableProducts = function (config, request, signal) {
|
|
6101
|
-
var url = "" + config.host + ENDPOINT_AVAILABLE_PRODUCTS;
|
|
6102
|
-
var apiKey = config.apiKey;
|
|
6103
|
-
var body = JSON.stringify(request);
|
|
6104
|
-
return post(url, apiKey, body, config.token, signal);
|
|
6105
|
-
};
|
|
6106
|
-
/**
|
|
6107
|
-
* api/web/booking/package-search
|
|
6108
|
-
* @param config
|
|
6109
|
-
* @param request
|
|
6110
|
-
* @returns Travel options (excursions etc) for a specified product, accommodation and regime.
|
|
6111
|
-
* @depracted Use V2: Search
|
|
6112
|
-
*/
|
|
6113
|
-
var searchPackages = function (config, request, signal) {
|
|
6114
|
-
var url = "" + config.host + ENDPOINT_PACKAGE_SEARCH;
|
|
6115
|
-
var apiKey = config.apiKey;
|
|
6116
|
-
var body = JSON.stringify(request);
|
|
6117
|
-
return post(url, apiKey, body, config.token, signal);
|
|
6118
|
-
};
|
|
6119
|
-
/**
|
|
6120
|
-
* api/web/booking/package-price-details
|
|
6121
|
-
* @param config
|
|
6122
|
-
* @param request
|
|
6123
|
-
* @returns A price breakdown for a specified Package (= product and selected options).
|
|
6124
|
-
* @deprecated Use V2: Price details
|
|
6125
|
-
*/
|
|
6126
|
-
var getPackagePriceDetails = function (config, request, signal) {
|
|
6127
|
-
var url = "" + config.host + ENDPOINT_PACKAGE_PRICE_DETAILS;
|
|
6128
|
-
var apiKey = config.apiKey;
|
|
6129
|
-
var body = JSON.stringify(request);
|
|
6130
|
-
return post(url, apiKey, body, config.token, signal);
|
|
6131
|
-
};
|
|
6132
|
-
/**
|
|
6133
|
-
* api/web/booking/offer-entry
|
|
6134
|
-
* Creates an Tide Offer, based on the request.
|
|
6135
|
-
* @param config
|
|
6136
|
-
* @param request
|
|
6137
|
-
* @returns The (full) created offer Entry.
|
|
6138
|
-
* @deprecated Use V2: Book
|
|
6139
|
-
*/
|
|
6140
|
-
var createOffer = function (config, request, signal) {
|
|
6141
|
-
// Update request to use full response
|
|
6142
|
-
request.useShortResponse = false;
|
|
6143
|
-
var url = "" + config.host + ENDPOINT_CREATE_OFFER;
|
|
6144
|
-
var apiKey = config.apiKey;
|
|
6145
|
-
var body = JSON.stringify(request);
|
|
6146
|
-
return post(url, apiKey, body, config.token, signal);
|
|
6147
|
-
};
|
|
6148
|
-
/**
|
|
6149
|
-
* api/web/booking/offer-entry
|
|
6150
|
-
* Creates a Tide Offer, based on the request.
|
|
6151
|
-
* @param config
|
|
6152
|
-
* @param request
|
|
6153
|
-
* @returns The (short) created offer Entry.
|
|
6154
|
-
* @deprecated Use V2: Book
|
|
6155
|
-
*/
|
|
6156
|
-
var createOfferWithShortResponse = function (config, request, signal) {
|
|
6157
|
-
// Update request to use short response
|
|
6158
|
-
request.useShortResponse = true;
|
|
6159
|
-
var url = "" + config.host + ENDPOINT_CREATE_OFFER;
|
|
6160
|
-
var apiKey = config.apiKey;
|
|
6161
|
-
var body = JSON.stringify(request, replacer);
|
|
6162
|
-
return post(url, apiKey, body, config.token, signal);
|
|
6163
|
-
};
|
|
6164
|
-
/**
|
|
6165
|
-
* api/web/booking/entry-multiroom
|
|
6166
|
-
* Creates a Tide Booking, based on the request.
|
|
6167
|
-
* @param config
|
|
6168
|
-
* @param request
|
|
6169
|
-
* @returns The (full) created booking Entry.
|
|
6170
|
-
* @deprecated Use V2: Book
|
|
6171
|
-
*/
|
|
6172
|
-
var createEntry = function (config, request, signal) {
|
|
6173
|
-
// Update request to use full response
|
|
6174
|
-
request.useShortResponse = false;
|
|
6175
|
-
var url = "" + config.host + ENDPOINT_CREATE_ENTRY;
|
|
6176
|
-
var apiKey = config.apiKey;
|
|
6177
|
-
var body = JSON.stringify(request, replacer);
|
|
6178
|
-
return post(url, apiKey, body, config.token, signal);
|
|
6179
|
-
};
|
|
6180
|
-
/**
|
|
6181
|
-
* api/web/booking/entry-multiroom
|
|
6182
|
-
* Creates a Tide Booking, based on the request.
|
|
6183
|
-
* @param config
|
|
6184
|
-
* @param request
|
|
6185
|
-
* @returns The (short) created booking Entry.
|
|
6186
|
-
* @deprecated Use V2: Book
|
|
6187
|
-
*/
|
|
6188
|
-
var createEntryWithShortResponse = function (config, request, signal) {
|
|
6189
|
-
// Update request to use short response
|
|
6190
|
-
request.useShortResponse = true;
|
|
6191
|
-
var url = "" + config.host + ENDPOINT_CREATE_ENTRY;
|
|
6192
|
-
var apiKey = config.apiKey;
|
|
6193
|
-
var body = JSON.stringify(request, replacer);
|
|
6194
|
-
return post(url, apiKey, body, config.token, signal);
|
|
6195
|
-
};
|
|
6196
|
-
/**
|
|
6197
|
-
* api/web/booking/package-offer-entry
|
|
6198
|
-
* Creates a Tide Offer, based on the request.
|
|
6199
|
-
* @param config
|
|
6200
|
-
* @param request
|
|
6201
|
-
* @returns The (full) created offer Entry.
|
|
6202
|
-
* @depracted Use V2: Book
|
|
6203
|
-
*/
|
|
6204
|
-
var createPackageOffer = function (config, request, signal) {
|
|
6205
|
-
// Update request to use full response
|
|
6206
|
-
request.useShortResponse = false;
|
|
6207
|
-
var url = "" + config.host + ENDPOINT_CREATE_PACKAGE_OFFER;
|
|
6208
|
-
var apiKey = config.apiKey;
|
|
6209
|
-
var body = JSON.stringify(request, replacer);
|
|
6210
|
-
return post(url, apiKey, body, config.token, signal);
|
|
6211
|
-
};
|
|
6212
|
-
/**
|
|
6213
|
-
* api/web/booking/package-offer-entry
|
|
6214
|
-
* Creates a Tide Offer, based on the request.
|
|
6215
|
-
* @param config
|
|
6216
|
-
* @param request
|
|
6217
|
-
* @returns The (short) created offer Entry.
|
|
6218
|
-
* @deprecated Use V2: Book
|
|
6219
|
-
*/
|
|
6220
|
-
var createPackageOfferWithShortResponse = function (config, request, signal) {
|
|
6221
|
-
// Update request to use short response
|
|
6222
|
-
request.useShortResponse = true;
|
|
6223
|
-
var url = "" + config.host + ENDPOINT_CREATE_PACKAGE_OFFER;
|
|
6224
|
-
var apiKey = config.apiKey;
|
|
6225
|
-
var body = JSON.stringify(request, replacer);
|
|
6226
|
-
return post(url, apiKey, body, config.token, signal);
|
|
6227
|
-
};
|
|
6228
|
-
/**
|
|
6229
|
-
* api/web/booking/package-entry
|
|
6230
|
-
* Create a Tide Booking, based on the request.
|
|
6231
|
-
* @param config
|
|
6232
|
-
* @param request
|
|
6233
|
-
* @returns The (full) created booking Entry.
|
|
6234
|
-
* @deprecated Use V2: book
|
|
6235
|
-
*/
|
|
6236
|
-
var createPackageEntry = function (config, request, signal) {
|
|
6237
|
-
// Update request to use full response
|
|
6238
|
-
request.useShortResponse = false;
|
|
6239
|
-
var url = "" + config.host + ENDPOINT_CREATE_PACKAGE_ENTRY;
|
|
6240
|
-
var apiKey = config.apiKey;
|
|
6241
|
-
var body = JSON.stringify(request, replacer);
|
|
6242
|
-
return post(url, apiKey, body, config.token, signal);
|
|
6243
|
-
};
|
|
6244
|
-
/**
|
|
6245
|
-
* api/web/booking/package-entry
|
|
6246
|
-
* Create a Tide Booking, based on the request.
|
|
6247
|
-
* @param config
|
|
6248
|
-
* @param request
|
|
6249
|
-
* @returns The (short) created booking Entry.
|
|
6250
|
-
* @deprecated Use V2: Book
|
|
6251
|
-
*/
|
|
6252
|
-
var createPackageEntryWithShortResponse = function (config, request, signal) {
|
|
6253
|
-
// Update request to use short response
|
|
6254
|
-
request.useShortResponse = true;
|
|
6255
|
-
var url = "" + config.host + ENDPOINT_CREATE_PACKAGE_ENTRY;
|
|
6256
|
-
var apiKey = config.apiKey;
|
|
6257
|
-
var body = JSON.stringify(request, replacer);
|
|
6258
|
-
return post(url, apiKey, body, config.token, signal);
|
|
6259
|
-
};
|
|
6260
|
-
/**
|
|
6261
|
-
* api/web/booking/base-prices
|
|
6262
|
-
* Get base prices of a specific product and accommodation in a defined period.
|
|
6263
|
-
* @param config
|
|
6264
|
-
* @param request
|
|
6265
|
-
* @returns The base prices of a specific product and accommodation during the defined period.
|
|
6266
|
-
* @deprecated Use V2: Prices
|
|
6267
|
-
*/
|
|
6268
|
-
var getBasePrices = function (config, request, signal) {
|
|
6269
|
-
var url = "" + config.host + ENDPOINT_GET_BASE_PRICES;
|
|
6270
|
-
var apiKey = config.apiKey;
|
|
6271
|
-
var body = JSON.stringify(request, replacer);
|
|
6272
|
-
return post(url, apiKey, body, config.token, signal);
|
|
6273
|
-
};
|
|
6274
|
-
/**
|
|
6275
|
-
* api/web/booking/base-prices-from-date
|
|
6276
|
-
* Get base prices of a specific product and accommodation starting from a specific date.
|
|
6277
|
-
* @param config
|
|
6278
|
-
* @param request
|
|
6279
|
-
* @returns The base prices of a specific product and accommodationg starting from a specific date.
|
|
6280
|
-
*/
|
|
6281
|
-
var getBasePricesFromDate = function (config, request, signal) {
|
|
6282
|
-
var url = "" + config.host + ENDPOINT_GET_BASE_PRICES_FROM_DATE;
|
|
6283
|
-
var apiKey = config.apiKey;
|
|
6284
|
-
var body = JSON.stringify(request, replacer);
|
|
6285
|
-
return post(url, apiKey, body, config.token, signal);
|
|
6286
|
-
};
|
|
6287
|
-
|
|
6288
6138
|
var ENDPOINT$7 = "/api/web/booking/v2";
|
|
6289
|
-
var
|
|
6139
|
+
var ENDPOINT_AVAILABLE_FLIGHTS = ENDPOINT$7 + "/available-flights";
|
|
6140
|
+
var ENDPOINT_TRANSPORT_DATES = ENDPOINT$7 + "/transport-dates";
|
|
6141
|
+
var ENDPOINT_PRICES = ENDPOINT$7 + "/prices";
|
|
6142
|
+
var ENDPOINT_AVAILABLE_COUNTRIES = ENDPOINT$7 + "/available-countries";
|
|
6290
6143
|
var ENDPOINT_SEARCH = ENDPOINT$7 + "/search";
|
|
6291
6144
|
var ENDPOINT_SEARCH_WITH_ERROR_MAPPING =
|
|
6292
6145
|
ENDPOINT$7 + "/search-with-error-mapping";
|
|
6146
|
+
// const ENDPOINT_ELASTIC = `${ENDPOINT}/elastic`; // TODO
|
|
6293
6147
|
var ENDPOINT_DETAILS = ENDPOINT$7 + "/details";
|
|
6294
6148
|
var ENDPOINT_VALIDATE_VOUCHER = ENDPOINT$7 + "/validate-voucher";
|
|
6295
|
-
var ENDPOINT_ALTERNATE_HOTELS =
|
|
6296
|
-
|
|
6149
|
+
var ENDPOINT_ALTERNATE_HOTELS = function (transactionId, optionId) {
|
|
6150
|
+
return (
|
|
6151
|
+
ENDPOINT$7 + "/details/" + transactionId + "/alternate-hotels/" + optionId
|
|
6152
|
+
);
|
|
6153
|
+
};
|
|
6154
|
+
var ENDPOINT_ALTERNATE_FLIGHTS = function (transactionId) {
|
|
6155
|
+
return ENDPOINT$7 + "/details/" + transactionId + "/alternate-flights";
|
|
6156
|
+
};
|
|
6157
|
+
var ENDPOINT_BOOKABLE_DATES = ENDPOINT$7 + "/bookable-dates";
|
|
6297
6158
|
var ENDPOINT_PRICE_DETAILS = ENDPOINT$7 + "/price-details";
|
|
6298
6159
|
var ENDPOINT_BOOK = ENDPOINT$7 + "/book";
|
|
6299
6160
|
var ENDPOINT_UPDATE = ENDPOINT$7 + "/update";
|
|
6300
6161
|
var ENDPOINT_AGENTS = ENDPOINT$7 + "/agents";
|
|
6301
|
-
var ENDPOINT_AVAILABLE_ALLOTMENTS =
|
|
6162
|
+
var ENDPOINT_AVAILABLE_ALLOTMENTS = function (eventId, productCode) {
|
|
6163
|
+
return (
|
|
6164
|
+
ENDPOINT$7 + "/get-allotment-availability/" + eventId + "/" + productCode
|
|
6165
|
+
);
|
|
6166
|
+
};
|
|
6302
6167
|
var ENDPOINT_FLIGHT_POOL = ENDPOINT$7 + "/flight-pool";
|
|
6303
|
-
var ENDPOINT_BOOKABLE_DATES = ENDPOINT$7 + "/bookable-dates";
|
|
6304
6168
|
var ENDPOINT_TOUR_CODES = ENDPOINT$7 + "/tourcodes";
|
|
6305
|
-
var
|
|
6306
|
-
|
|
6169
|
+
var ENDPOINT_CUSTOM_ENTRY_STATUS$1 = function (
|
|
6170
|
+
dossierNumber,
|
|
6171
|
+
customEntryStatusId
|
|
6172
|
+
) {
|
|
6173
|
+
return (
|
|
6174
|
+
ENDPOINT$7 +
|
|
6175
|
+
"/custom-entry-status/" +
|
|
6176
|
+
dossierNumber +
|
|
6177
|
+
"/" +
|
|
6178
|
+
customEntryStatusId
|
|
6179
|
+
);
|
|
6180
|
+
};
|
|
6181
|
+
var ENDPOINT_ENTRY_STATUS = function (dossierNumber, entryStatus) {
|
|
6182
|
+
return (
|
|
6183
|
+
ENDPOINT$7 + "/custom-entry-status/" + dossierNumber + "/" + entryStatus
|
|
6184
|
+
);
|
|
6185
|
+
};
|
|
6186
|
+
var availableFlights = function (config, request, signal) {
|
|
6187
|
+
var url = "" + config.host + ENDPOINT_AVAILABLE_FLIGHTS;
|
|
6307
6188
|
var apiKey = config.apiKey;
|
|
6308
6189
|
var body = JSON.stringify(request);
|
|
6309
|
-
return post(url, apiKey, body, config.token, signal);
|
|
6190
|
+
return post(url, apiKey, body, config.token, signal, true);
|
|
6191
|
+
};
|
|
6192
|
+
var transportDates = function (config, request, signal) {
|
|
6193
|
+
var url = "" + config.host + ENDPOINT_TRANSPORT_DATES;
|
|
6194
|
+
var apiKey = config.apiKey;
|
|
6195
|
+
var body = JSON.stringify(request);
|
|
6196
|
+
return post(url, apiKey, body, config.token, signal, true);
|
|
6197
|
+
};
|
|
6198
|
+
var prices = function (config, request, signal) {
|
|
6199
|
+
var url = "" + config.host + ENDPOINT_PRICES;
|
|
6200
|
+
var apiKey = config.apiKey;
|
|
6201
|
+
var body = JSON.stringify(request);
|
|
6202
|
+
return post(url, apiKey, body, config.token, signal, true);
|
|
6203
|
+
};
|
|
6204
|
+
var availableCountries = function (config, request, signal) {
|
|
6205
|
+
var url = "" + config.host + ENDPOINT_AVAILABLE_COUNTRIES;
|
|
6206
|
+
var apiKey = config.apiKey;
|
|
6207
|
+
var body = JSON.stringify(request);
|
|
6208
|
+
return post(url, apiKey, body, config.token, signal, true);
|
|
6310
6209
|
};
|
|
6311
6210
|
// PACKAGE SEARCH
|
|
6312
6211
|
var search = function (config, request, signal) {
|
|
@@ -6333,28 +6232,23 @@ var validateVoucher = function (config, request, signal) {
|
|
|
6333
6232
|
var body = JSON.stringify(request);
|
|
6334
6233
|
return post(url, apiKey, body, config.token, signal, true);
|
|
6335
6234
|
};
|
|
6336
|
-
var alternateHotels = function (config, transactionId, signal) {
|
|
6235
|
+
var alternateHotels = function (config, transactionId, optionId, signal) {
|
|
6337
6236
|
var url =
|
|
6338
|
-
"" +
|
|
6339
|
-
config.host +
|
|
6340
|
-
ENDPOINT_DETAILS +
|
|
6341
|
-
"/" +
|
|
6342
|
-
transactionId +
|
|
6343
|
-
ENDPOINT_ALTERNATE_HOTELS;
|
|
6237
|
+
"" + config.host + ENDPOINT_ALTERNATE_HOTELS(transactionId, optionId);
|
|
6344
6238
|
var apiKey = config.apiKey;
|
|
6345
6239
|
return get(url, apiKey, config.token, signal, true);
|
|
6346
6240
|
};
|
|
6347
6241
|
var alternateFlights = function (config, transactionId, signal) {
|
|
6348
|
-
var url =
|
|
6349
|
-
"" +
|
|
6350
|
-
config.host +
|
|
6351
|
-
ENDPOINT_DETAILS +
|
|
6352
|
-
"/" +
|
|
6353
|
-
transactionId +
|
|
6354
|
-
ENDPOINT_ALTERNATE_FLIGHTS;
|
|
6242
|
+
var url = "" + config.host + ENDPOINT_ALTERNATE_FLIGHTS(transactionId);
|
|
6355
6243
|
var apiKey = config.apiKey;
|
|
6356
6244
|
return get(url, apiKey, config.token, signal, true);
|
|
6357
6245
|
};
|
|
6246
|
+
var bookableDates = function (config, request, signal) {
|
|
6247
|
+
var url = "" + config.host + ENDPOINT_BOOKABLE_DATES;
|
|
6248
|
+
var apiKey = config.apiKey;
|
|
6249
|
+
var body = JSON.stringify(request);
|
|
6250
|
+
return post(url, apiKey, body, config.token, signal, true);
|
|
6251
|
+
};
|
|
6358
6252
|
var priceDetails = function (config, request, signal, languageCode) {
|
|
6359
6253
|
var url = "" + config.host + ENDPOINT_PRICE_DETAILS;
|
|
6360
6254
|
var apiKey = config.apiKey;
|
|
@@ -6380,13 +6274,7 @@ var agents = function (config, signal) {
|
|
|
6380
6274
|
};
|
|
6381
6275
|
var getAllotmentAvailability = function (config, eventId, productCode, signal) {
|
|
6382
6276
|
var url =
|
|
6383
|
-
"" +
|
|
6384
|
-
config.host +
|
|
6385
|
-
ENDPOINT_AVAILABLE_ALLOTMENTS +
|
|
6386
|
-
"/" +
|
|
6387
|
-
eventId +
|
|
6388
|
-
"/" +
|
|
6389
|
-
productCode;
|
|
6277
|
+
"" + config.host + ENDPOINT_AVAILABLE_ALLOTMENTS(eventId, productCode);
|
|
6390
6278
|
var apiKey = config.apiKey;
|
|
6391
6279
|
return get(url, apiKey, config.token, signal, true);
|
|
6392
6280
|
};
|
|
@@ -6396,18 +6284,31 @@ var searchFlightPool = function (config, request, signal) {
|
|
|
6396
6284
|
var body = JSON.stringify(request);
|
|
6397
6285
|
return post(url, apiKey, body, config.token, signal, true);
|
|
6398
6286
|
};
|
|
6399
|
-
var bookableDates = function (config, request, signal) {
|
|
6400
|
-
var url = "" + config.host + ENDPOINT_BOOKABLE_DATES;
|
|
6401
|
-
var apiKey = config.apiKey;
|
|
6402
|
-
var body = JSON.stringify(request);
|
|
6403
|
-
return post(url, apiKey, body, config.token, signal, true);
|
|
6404
|
-
};
|
|
6405
6287
|
var tourCodes = function (config, request, signal) {
|
|
6406
6288
|
var url = "" + config.host + ENDPOINT_TOUR_CODES;
|
|
6407
6289
|
var apiKey = config.apiKey;
|
|
6408
6290
|
var body = JSON.stringify(request);
|
|
6409
6291
|
return post(url, apiKey, body, config.token, signal, true);
|
|
6410
6292
|
};
|
|
6293
|
+
var setCustomEntryStatus = function (
|
|
6294
|
+
config,
|
|
6295
|
+
dossierNumber,
|
|
6296
|
+
customEntryStatusId,
|
|
6297
|
+
signal
|
|
6298
|
+
) {
|
|
6299
|
+
var url =
|
|
6300
|
+
"" +
|
|
6301
|
+
config.host +
|
|
6302
|
+
ENDPOINT_CUSTOM_ENTRY_STATUS$1(dossierNumber, customEntryStatusId);
|
|
6303
|
+
var apiKey = config.apiKey;
|
|
6304
|
+
return get(url, apiKey, config.token, signal, true);
|
|
6305
|
+
};
|
|
6306
|
+
var setEntryStatus = function (config, dossierNumber, entryStatus, signal) {
|
|
6307
|
+
var url =
|
|
6308
|
+
"" + config.host + ENDPOINT_ENTRY_STATUS(dossierNumber, entryStatus);
|
|
6309
|
+
var apiKey = config.apiKey;
|
|
6310
|
+
return patch(url, apiKey, null, config.token, signal, true);
|
|
6311
|
+
};
|
|
6411
6312
|
|
|
6412
6313
|
var ENDPOINT$6 = "/api/member";
|
|
6413
6314
|
var ENDPOINT_LOGIN = ENDPOINT$6 + "/login";
|
|
@@ -6719,6 +6620,7 @@ var ENDPOINT$2 = "/api/web";
|
|
|
6719
6620
|
var ENDPOINT_CREATE_CRM_CONTACT = ENDPOINT$2 + "/crmcontact";
|
|
6720
6621
|
var ENDPOINT_CREATE_AFFILIATES = ENDPOINT$2 + "/affiliates";
|
|
6721
6622
|
var ENDPOINT_TRANSLATION_DICTIONARY = ENDPOINT$2 + "/translation-dictionary";
|
|
6623
|
+
var ENDPOINT_BOOKING_ACCOMMODATION = ENDPOINT$2 + "/booking-accommodation";
|
|
6722
6624
|
/**
|
|
6723
6625
|
* api/web/crmcontact
|
|
6724
6626
|
* Creates a CRM contact.
|
|
@@ -6731,7 +6633,7 @@ var createCrmContact = function (config, request, signal) {
|
|
|
6731
6633
|
var url = "" + config.host + ENDPOINT_CREATE_CRM_CONTACT;
|
|
6732
6634
|
var apiKey = config.apiKey;
|
|
6733
6635
|
var body = JSON.stringify(request);
|
|
6734
|
-
return post
|
|
6636
|
+
return post(url, apiKey, body, config.token, signal);
|
|
6735
6637
|
};
|
|
6736
6638
|
/**
|
|
6737
6639
|
* api/web/affiliates
|
|
@@ -6751,6 +6653,12 @@ var getTranslationDictionary = function (config, segmentKey, signal) {
|
|
|
6751
6653
|
var apiKey = config.apiKey;
|
|
6752
6654
|
return get(url, apiKey, undefined, signal);
|
|
6753
6655
|
};
|
|
6656
|
+
var generateBookingAccommodations = function (config, request, signal) {
|
|
6657
|
+
var url = "" + config.host + ENDPOINT_BOOKING_ACCOMMODATION;
|
|
6658
|
+
var apiKey = config.apiKey;
|
|
6659
|
+
var body = JSON.stringify(request);
|
|
6660
|
+
return post(url, apiKey, body, config.token, signal);
|
|
6661
|
+
};
|
|
6754
6662
|
|
|
6755
6663
|
var ENDPOINT$1 = "/api/web/contact";
|
|
6756
6664
|
var ENDPOINT_CONTACT_FORM = ENDPOINT$1 + "/contact-form";
|
|
@@ -6801,6 +6709,8 @@ exports.ServiceType = ServiceType;
|
|
|
6801
6709
|
exports.agents = agents;
|
|
6802
6710
|
exports.alternateFlights = alternateFlights;
|
|
6803
6711
|
exports.alternateHotels = alternateHotels;
|
|
6712
|
+
exports.availableCountries = availableCountries;
|
|
6713
|
+
exports.availableFlights = availableFlights;
|
|
6804
6714
|
exports.book = book;
|
|
6805
6715
|
exports.bookableDates = bookableDates;
|
|
6806
6716
|
exports.changeEntryAgentSurcharge = changeEntryAgentSurcharge;
|
|
@@ -6808,25 +6718,13 @@ exports.confirm = confirm;
|
|
|
6808
6718
|
exports.contactForm = contactForm;
|
|
6809
6719
|
exports.contactHasTag = contactHasTag;
|
|
6810
6720
|
exports.createCrmContact = createCrmContact;
|
|
6811
|
-
exports.createEntry = createEntry;
|
|
6812
|
-
exports.createEntryWithShortResponse = createEntryWithShortResponse;
|
|
6813
|
-
exports.createOffer = createOffer;
|
|
6814
|
-
exports.createOfferWithShortResponse = createOfferWithShortResponse;
|
|
6815
|
-
exports.createPackageEntry = createPackageEntry;
|
|
6816
|
-
exports.createPackageEntryWithShortResponse =
|
|
6817
|
-
createPackageEntryWithShortResponse;
|
|
6818
|
-
exports.createPackageOffer = createPackageOffer;
|
|
6819
|
-
exports.createPackageOfferWithShortResponse =
|
|
6820
|
-
createPackageOfferWithShortResponse;
|
|
6821
6721
|
exports.createParams = createParams;
|
|
6822
6722
|
exports.details = details;
|
|
6823
6723
|
exports.feedXml = feedXml;
|
|
6824
6724
|
exports.forgotPassword = forgotPassword;
|
|
6725
|
+
exports.generateBookingAccommodations = generateBookingAccommodations;
|
|
6825
6726
|
exports.getAffiliates = getAffiliates;
|
|
6826
6727
|
exports.getAllotmentAvailability = getAllotmentAvailability;
|
|
6827
|
-
exports.getAvailableProducts = getAvailableProducts;
|
|
6828
|
-
exports.getBasePrices = getBasePrices;
|
|
6829
|
-
exports.getBasePricesFromDate = getBasePricesFromDate;
|
|
6830
6728
|
exports.getCountries = getCountries;
|
|
6831
6729
|
exports.getCustomEntryStatus = getCustomEntryStatus;
|
|
6832
6730
|
exports.getEntryList = getEntryList;
|
|
@@ -6834,20 +6732,21 @@ exports.getEntryStatus = getEntryStatus;
|
|
|
6834
6732
|
exports.getEntryTotals = getEntryTotals;
|
|
6835
6733
|
exports.getInvoiceList = getInvoiceList;
|
|
6836
6734
|
exports.getMolliePayment = getMolliePayment;
|
|
6837
|
-
exports.getPackagePriceDetails = getPackagePriceDetails;
|
|
6838
6735
|
exports.getPrintActions = getPrintActions;
|
|
6839
6736
|
exports.getTranslationDictionary = getTranslationDictionary;
|
|
6840
6737
|
exports.login = login;
|
|
6841
6738
|
exports.logout = logout;
|
|
6842
6739
|
exports.priceDetails = priceDetails;
|
|
6740
|
+
exports.prices = prices;
|
|
6843
6741
|
exports.print = print;
|
|
6844
|
-
exports.readPackageSearchList = readPackageSearchList;
|
|
6845
6742
|
exports.resetPassword = resetPassword;
|
|
6846
6743
|
exports.search = search;
|
|
6847
6744
|
exports.searchFlightPool = searchFlightPool;
|
|
6848
|
-
exports.searchPackages = searchPackages;
|
|
6849
6745
|
exports.searchWithErrorMapping = searchWithErrorMapping;
|
|
6746
|
+
exports.setCustomEntryStatus = setCustomEntryStatus;
|
|
6747
|
+
exports.setEntryStatus = setEntryStatus;
|
|
6850
6748
|
exports.tourCodes = tourCodes;
|
|
6749
|
+
exports.transportDates = transportDates;
|
|
6851
6750
|
exports.update = update;
|
|
6852
6751
|
exports.validateVoucher = validateVoucher;
|
|
6853
6752
|
//# sourceMappingURL=index.js.map
|