@qite/tide-client 1.1.54 → 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 +27 -15
- package/build/index.js +4958 -4837
- package/build/index.js.map +1 -1
- package/build/services/odata.service.d.ts +8 -2
- package/build/types/{offer/booking-v2 → booking-v2}/index.d.ts +3 -3
- 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/booking-v2/request/bookable-dates-request.d.ts +4 -0
- package/{src/types/offer/address.ts → build/types/booking-v2/request/booking-package-address.d.ts} +14 -11
- package/build/types/booking-v2/request/booking-package-book-request.d.ts +24 -0
- package/build/types/{offer/booking-v2 → booking-v2}/request/booking-package-customer-request.d.ts +4 -4
- package/build/types/booking-v2/request/booking-package-destination.d.ts +9 -0
- package/build/types/booking-v2/request/booking-package-details-request.d.ts +21 -0
- package/build/types/booking-v2/request/booking-package-flight-pool-request.d.ts +12 -0
- package/build/types/booking-v2/request/booking-package-request.d.ts +5 -0
- package/build/types/booking-v2/request/booking-package-search-request.d.ts +27 -0
- package/build/types/{offer/booking-v2 → booking-v2}/request/booking-package-update-request.d.ts +4 -4
- package/build/types/{offer/booking-v2 → booking-v2}/request/booking-package-voucher-request.d.ts +4 -4
- package/build/types/{offer/booking-v2 → booking-v2}/request/index.d.ts +18 -14
- package/build/types/booking-v2/request/prices-request.d.ts +17 -0
- package/build/types/booking-v2/request/selected-flight.d.ts +6 -0
- package/build/types/booking-v2/request/selected-hotel.d.ts +5 -0
- package/build/types/{offer/booking-v2/request/tour-codes-request.d.ts → booking-v2/request/tour-codes.request.d.ts} +3 -3
- 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/booking-v2/response/base-price.d.ts +7 -0
- package/build/types/booking-v2/response/bookable-dates.d.ts +4 -0
- package/build/types/booking-v2/response/booking-package-allotment-info.d.ts +17 -0
- package/build/types/booking-v2/response/booking-package-dossier.d.ts +6 -0
- package/build/types/{offer/booking-v2 → booking-v2}/response/booking-package-flight-pool.d.ts +5 -5
- package/build/types/{offer/booking-v2 → booking-v2}/response/booking-package-hotel-pool.d.ts +4 -4
- package/build/types/booking-v2/response/booking-package-item.d.ts +39 -0
- package/build/types/booking-v2/response/booking-price-detail.d.ts +17 -0
- package/build/types/{offer/booking-v2 → booking-v2}/response/booking-price-details.d.ts +14 -14
- package/build/types/booking-v2/response/booking-price-per-pax.d.ts +4 -0
- package/build/types/booking-v2/response/booking-product-notification.d.ts +7 -0
- package/build/types/booking-v2/response/booking-room-status-option.d.ts +5 -0
- package/build/types/{offer/booking-v2 → booking-v2}/response/booking-room-status.d.ts +5 -5
- package/build/types/booking-v2/response/booking-travel-agent.d.ts +7 -0
- package/build/types/booking-v2/response/booking-validity-line.d.ts +4 -0
- package/build/types/{offer/booking-v2 → booking-v2}/response/booking-voucher-result.d.ts +3 -3
- package/build/types/booking-v2/response/changed-line.d.ts +4 -0
- package/build/types/{offer/booking-v2 → booking-v2}/response/index.d.ts +20 -16
- package/build/types/booking-v2/response/tide-response.d.ts +8 -0
- package/build/types/{offer/booking-v2 → booking-v2}/response/tour-codes-response.d.ts +3 -3
- package/build/types/booking-v2/response/transport-dates-response.d.ts +4 -0
- package/build/types/{offer/booking-v2 → booking-v2}/shared/airline-booking-package-option.d.ts +2 -3
- package/build/types/{offer/booking-v2 → booking-v2}/shared/airport-booking-package-option.d.ts +2 -3
- package/build/types/{offer/booking-v2 → booking-v2}/shared/booking-airline-group.d.ts +6 -6
- package/build/types/{offer/booking-v2 → booking-v2}/shared/booking-airport-group.d.ts +6 -6
- package/build/types/booking-v2/shared/booking-option-group.d.ts +5 -0
- package/build/types/{offer/booking-v2 → booking-v2}/shared/booking-option-pax.d.ts +13 -13
- package/build/types/{offer/booking-v2 → booking-v2}/shared/booking-option-unit.d.ts +12 -12
- package/build/types/booking-v2/shared/booking-package-availability.d.ts +9 -0
- package/build/types/booking-v2/shared/booking-package-flight-meta-data-line.d.ts +18 -0
- package/build/types/booking-v2/shared/booking-package-flight-meta-data.d.ts +10 -0
- package/build/types/booking-v2/shared/booking-package-flight.d.ts +15 -0
- package/build/types/{package-room-option.d.ts → booking-v2/shared/booking-package-hotel-option.d.ts} +10 -8
- package/build/types/{offer/booking-v2 → booking-v2}/shared/booking-package-hotel-room.d.ts +5 -5
- package/build/types/booking-v2/shared/booking-package-hotel.d.ts +22 -0
- package/build/types/booking-v2/shared/booking-package-line.d.ts +16 -0
- package/build/types/booking-v2/shared/booking-package-option.d.ts +47 -0
- package/build/types/booking-v2/shared/booking-package-pax.d.ts +17 -0
- package/build/types/{offer/booking-v2 → booking-v2}/shared/booking-package-request-room.d.ts +5 -5
- package/build/types/booking-v2/shared/booking-package-room-option.d.ts +21 -0
- package/build/types/{offer/booking-v2 → booking-v2}/shared/booking-package-room.d.ts +5 -5
- package/build/types/booking-v2/shared/booking-package-tag.d.ts +5 -0
- package/build/types/booking-v2/shared/booking-package.d.ts +11 -0
- package/build/types/{offer/booking-v2 → booking-v2}/shared/index.d.ts +24 -23
- package/build/types/{offer/booking-v2 → booking-v2}/shared/per-booking-package-option.d.ts +9 -9
- package/build/types/booking-v2/shared/per-package-option.d.ts +9 -0
- package/build/types/{offer/booking-v2 → booking-v2}/shared/per-pax-package-option.d.ts +5 -5
- package/build/types/{offer/booking-v2 → booking-v2}/shared/per-unit-package-option.d.ts +7 -7
- package/build/types/{offer/booking-v2 → booking-v2}/shared/room-option-pax-type.d.ts +4 -4
- package/build/types/company/agent/agent-invoice-item.d.ts +9 -9
- package/build/types/company/agent/change-entry-agent-surcharge-action.model.d.ts +5 -5
- package/build/types/company/agent/entry-totals.d.ts +7 -7
- package/build/types/company/agent/index.d.ts +3 -3
- package/build/types/company/agent-print-action-request.d.ts +11 -11
- package/build/types/company/agent-print-action.d.ts +6 -6
- package/build/types/company/custom-entry-status-item.d.ts +6 -6
- package/build/types/company/index.d.ts +5 -5
- package/build/types/company/number-string-pair.d.ts +4 -4
- package/build/types/enums/allotment-type.d.ts +5 -5
- package/build/types/enums/availability-search-type.d.ts +4 -4
- package/build/types/enums/data-type.d.ts +14 -14
- package/build/types/enums/dossier-type.d.ts +6 -6
- package/build/types/enums/entry-line-flag.d.ts +6 -6
- package/build/types/enums/entry-line-status.d.ts +19 -19
- package/build/types/enums/entry-status.d.ts +8 -8
- package/build/types/enums/export-status.d.ts +5 -5
- package/build/types/enums/gender.d.ts +5 -5
- package/build/types/enums/index.d.ts +17 -17
- package/build/types/enums/meta-data-type.d.ts +10 -10
- package/build/types/enums/payment-type.d.ts +6 -6
- package/build/types/enums/price-chart-type.d.ts +4 -4
- package/build/types/enums/print-action-group.d.ts +10 -10
- package/build/types/enums/requirement-type.d.ts +5 -5
- package/build/types/enums/room-type.d.ts +8 -8
- package/build/types/enums/sale-type.d.ts +4 -4
- package/build/types/enums/service-type.d.ts +31 -31
- package/build/types/index.d.ts +8 -6
- package/build/types/mollie/index.d.ts +2 -0
- package/build/types/mollie/mollie-payment-request.d.ts +6 -0
- package/build/types/{aapi → mollie}/mollie-payment.d.ts +3 -3
- package/build/types/odata/column.d.ts +8 -8
- package/build/types/odata/filter-item.d.ts +14 -14
- package/build/types/odata/index.d.ts +3 -3
- package/build/types/odata/odata-params.d.ts +3 -3
- package/build/types/offer/additional-services.d.ts +6 -6
- package/build/types/offer/confirmed-dossier-check.d.ts +6 -6
- package/build/types/offer/country-item.d.ts +5 -5
- package/build/types/offer/crm-contact-request.d.ts +36 -28
- package/build/types/offer/customer-request.d.ts +5 -5
- package/build/types/offer/dossier-default-product.d.ts +14 -14
- package/build/types/offer/dossier-pax-item.d.ts +4 -4
- package/build/types/offer/dossier-view-result.d.ts +48 -48
- package/build/types/offer/entry-check-response.d.ts +8 -8
- package/build/types/offer/entry-line-meta-data.d.ts +5 -5
- package/build/types/offer/entry-line-pax.d.ts +8 -8
- package/build/types/offer/entry-line.d.ts +73 -67
- package/build/types/offer/entry-price-line.d.ts +40 -40
- package/build/types/offer/entry-room2.d.ts +5 -5
- package/build/types/offer/entry.d.ts +65 -55
- package/build/types/offer/flight-meta-data-line.d.ts +16 -16
- package/build/types/offer/flight-meta-data.d.ts +14 -14
- package/build/types/offer/flight-pool.d.ts +5 -5
- package/build/types/offer/index.d.ts +40 -76
- package/build/types/offer/item-tag.d.ts +3 -3
- package/build/types/offer/language.d.ts +5 -5
- package/build/types/offer/member-confirmation-request.d.ts +5 -5
- package/build/types/offer/member-forgot-password-request.d.ts +4 -4
- package/build/types/offer/member-info.d.ts +10 -10
- package/build/types/offer/member-login-request.d.ts +4 -4
- package/build/types/offer/member-login-response.d.ts +3 -3
- package/build/types/offer/member-reset-password-request.d.ts +4 -4
- package/build/types/offer/note.d.ts +16 -16
- package/build/types/offer/page-result.d.ts +5 -5
- package/build/types/offer/pax.d.ts +29 -29
- package/build/types/offer/payment.d.ts +20 -20
- package/build/types/offer/person-country-preference.d.ts +7 -7
- package/build/types/offer/person-location-preference.d.ts +7 -7
- package/build/types/offer/person-oord-preference.d.ts +7 -7
- package/build/types/offer/person-period-date-range-preference.d.ts +6 -6
- package/build/types/offer/person-period-preference.d.ts +7 -7
- package/build/types/offer/person-region-preference.d.ts +7 -7
- package/build/types/offer/person-tour-group-preference.d.ts +7 -7
- package/build/types/offer/product-notification-result.d.ts +9 -9
- package/build/types/offer/web-contact-form-request.d.ts +13 -13
- package/build/types/offer/web-contact-has-tag-request.d.ts +4 -4
- package/build/types/tide-client-config.d.ts +5 -5
- package/build/types/{offer/affiliates.d.ts → web/affiliate.d.ts} +5 -5
- 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 +23 -2
- package/build/utils/booking-v2-client.d.ts +139 -18
- package/build/utils/common-client.d.ts +26 -2
- package/build/utils/json.d.ts +2 -2
- package/build/utils/member-client.d.ts +32 -7
- package/build/utils/mollie-client.d.ts +15 -7
- package/build/utils/search-client.d.ts +12 -9
- package/build/utils/web-agent-client.d.ts +72 -23
- package/build/utils/web-client.d.ts +44 -22
- package/build/utils/web-contact-client.d.ts +23 -11
- package/build/utils/web-file.d.ts +14 -10
- package/package.json +64 -64
- package/rollup.config.js +20 -20
- package/src/index.ts +43 -71
- package/src/services/odata.service.ts +158 -158
- package/src/types/{offer/booking-v2 → booking-v2}/index.ts +3 -3
- 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/bookable-dates-request.ts +4 -4
- package/src/types/{offer/booking-v2 → booking-v2}/request/booking-package-address.ts +14 -14
- package/src/types/{offer/booking-v2 → booking-v2}/request/booking-package-book-request.ts +26 -26
- package/src/types/{offer/booking-v2 → booking-v2}/request/booking-package-customer-request.ts +4 -4
- package/src/types/{offer/booking-v2 → booking-v2}/request/booking-package-destination.ts +9 -9
- package/src/types/{offer/booking-v2 → booking-v2}/request/booking-package-details-request.ts +24 -24
- package/src/types/{offer/booking-v2 → booking-v2}/request/booking-package-flight-pool-request.ts +13 -13
- package/src/types/{offer/booking-v2 → booking-v2}/request/booking-package-request.ts +5 -5
- package/src/types/{offer/booking-v2 → booking-v2}/request/booking-package-search-request.ts +30 -30
- package/src/types/{offer/booking-v2 → booking-v2}/request/booking-package-update-request.ts +5 -5
- package/src/types/{offer/booking-v2 → booking-v2}/request/booking-package-voucher-request.ts +4 -4
- package/src/types/{offer/booking-v2 → booking-v2}/request/index.ts +18 -14
- package/src/types/booking-v2/request/prices-request.ts +19 -0
- package/src/types/{offer/booking-v2 → booking-v2}/request/selected-flight.ts +6 -6
- package/src/types/{offer/booking-v2 → booking-v2}/request/selected-hotel.ts +5 -5
- package/src/types/{offer/booking-v2 → booking-v2}/request/tour-codes.request.ts +3 -3
- 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 +7 -6
- package/src/types/{offer/booking-v2 → booking-v2}/response/bookable-dates.ts +4 -4
- package/src/types/{offer/booking-v2 → booking-v2}/response/booking-package-allotment-info.ts +17 -17
- package/src/types/{offer/booking-v2 → booking-v2}/response/booking-package-dossier.ts +6 -6
- package/src/types/{offer/booking-v2 → booking-v2}/response/booking-package-flight-pool.ts +6 -6
- package/src/types/{offer/booking-v2 → booking-v2}/response/booking-package-hotel-pool.ts +5 -5
- package/src/types/{offer/booking-v2 → booking-v2}/response/booking-package-item.ts +40 -40
- package/src/types/{offer/booking-v2 → booking-v2}/response/booking-price-detail.ts +20 -20
- package/src/types/{offer/booking-v2 → booking-v2}/response/booking-price-details.ts +15 -15
- package/src/types/{offer/booking-v2 → booking-v2}/response/booking-price-per-pax.ts +4 -4
- package/src/types/{offer/booking-v2 → booking-v2}/response/booking-product-notification.ts +7 -7
- package/src/types/{offer/booking-v2 → booking-v2}/response/booking-room-status-option.ts +5 -5
- package/src/types/{offer/booking-v2 → booking-v2}/response/booking-room-status.ts +6 -6
- package/src/types/{offer/booking-v2 → booking-v2}/response/booking-travel-agent.ts +7 -7
- package/src/types/{offer/booking-v2 → booking-v2}/response/booking-validity-line.ts +4 -4
- package/src/types/{offer/booking-v2 → booking-v2}/response/booking-voucher-result.ts +3 -3
- package/src/types/{offer/booking-v2 → booking-v2}/response/changed-line.ts +4 -4
- package/src/types/{offer/booking-v2 → booking-v2}/response/index.ts +20 -16
- package/src/types/{offer/booking-v2 → booking-v2}/response/tide-response.ts +6 -6
- package/src/types/{offer/booking-v2 → booking-v2}/response/tour-codes-response.ts +3 -3
- package/src/types/booking-v2/response/transport-dates-response.ts +4 -0
- package/src/types/{offer/booking-v2 → booking-v2}/shared/airline-booking-package-option.ts +3 -3
- package/src/types/{offer/booking-v2 → booking-v2}/shared/airport-booking-package-option.ts +3 -3
- package/src/types/{offer/booking-v2 → booking-v2}/shared/booking-airline-group.ts +7 -7
- package/src/types/{offer/booking-v2 → booking-v2}/shared/booking-airport-group.ts +7 -7
- package/src/types/{offer/booking-v2 → booking-v2}/shared/booking-option-group.ts +5 -5
- package/src/types/{offer/booking-v2 → booking-v2}/shared/booking-option-pax.ts +14 -14
- package/src/types/{offer/booking-v2 → booking-v2}/shared/booking-option-unit.ts +13 -13
- package/src/types/{offer/booking-v2 → booking-v2}/shared/booking-package-availability.ts +9 -9
- package/src/types/{offer/booking-v2 → booking-v2}/shared/booking-package-flight-meta-data-line.ts +18 -17
- package/src/types/{offer/booking-v2 → booking-v2}/shared/booking-package-flight-meta-data.ts +11 -11
- package/src/types/{offer/booking-v2 → booking-v2}/shared/booking-package-flight.ts +16 -15
- package/src/types/{offer/booking-v2 → booking-v2}/shared/booking-package-hotel-option.ts +10 -10
- package/src/types/{offer/booking-v2 → booking-v2}/shared/booking-package-hotel-room.ts +6 -6
- package/src/types/{offer/booking-v2 → booking-v2}/shared/booking-package-hotel.ts +27 -27
- package/src/types/{offer/booking-v2 → booking-v2}/shared/booking-package-line.ts +17 -17
- package/src/types/{offer/booking-v2 → booking-v2}/shared/booking-package-option.ts +55 -55
- package/src/types/{offer/booking-v2 → booking-v2}/shared/booking-package-pax.ts +19 -19
- package/src/types/{offer/booking-v2 → booking-v2}/shared/booking-package-request-room.ts +6 -6
- package/src/types/{offer/booking-v2 → booking-v2}/shared/booking-package-room-option.ts +22 -22
- package/src/types/{offer/booking-v2 → booking-v2}/shared/booking-package-room.ts +6 -6
- package/src/types/{offer/booking-v2 → booking-v2}/shared/booking-package-tag.ts +5 -5
- package/src/types/{offer/booking-v2 → booking-v2}/shared/booking-package.ts +13 -13
- package/src/types/{offer/booking-v2 → booking-v2}/shared/index.ts +24 -23
- package/src/types/{offer/booking-v2 → booking-v2}/shared/per-booking-package-option.ts +10 -10
- package/src/types/{offer/booking-v2 → booking-v2}/shared/per-package-option.ts +10 -10
- package/src/types/{offer/booking-v2 → booking-v2}/shared/per-pax-package-option.ts +6 -6
- package/src/types/{offer/booking-v2 → booking-v2}/shared/per-unit-package-option.ts +8 -8
- package/src/types/{offer/booking-v2 → booking-v2}/shared/room-option-pax-type.ts +4 -4
- package/src/types/company/agent/agent-invoice-item.ts +9 -9
- package/src/types/company/agent/change-entry-agent-surcharge-action.model.ts +5 -5
- package/src/types/company/agent/entry-totals.ts +7 -7
- package/src/types/company/agent/index.ts +3 -3
- package/src/types/company/agent-print-action-request.ts +11 -11
- package/src/types/company/agent-print-action.ts +7 -7
- package/src/types/company/custom-entry-status-item.ts +6 -6
- package/src/types/company/index.ts +5 -5
- package/src/types/company/number-string-pair.ts +4 -4
- package/src/types/enums/allotment-type.ts +5 -5
- package/src/types/enums/availability-search-type.ts +4 -4
- package/src/types/enums/data-type.ts +14 -14
- package/src/types/enums/dossier-type.ts +6 -6
- package/src/types/enums/entry-line-flag.ts +6 -6
- package/src/types/enums/entry-line-status.ts +19 -19
- package/src/types/enums/entry-status.ts +8 -8
- package/src/types/enums/export-status.ts +5 -5
- package/src/types/enums/gender.ts +5 -5
- package/src/types/enums/index.ts +17 -17
- package/src/types/enums/meta-data-type.ts +10 -10
- package/src/types/enums/payment-type.ts +6 -6
- package/src/types/enums/price-chart-type.ts +4 -4
- package/src/types/enums/print-action-group.ts +10 -10
- package/src/types/enums/requirement-type.ts +5 -5
- package/src/types/enums/room-type.ts +8 -8
- package/src/types/enums/sale-type.ts +4 -4
- package/src/types/enums/service-type.ts +31 -31
- package/src/types/index.ts +8 -28
- package/src/types/mollie/index.ts +2 -0
- package/src/types/{aapi → mollie}/mollie-payment-request.ts +6 -6
- package/src/types/{aapi → mollie}/mollie-payment.ts +3 -3
- package/src/types/odata/column.ts +8 -8
- package/src/types/odata/filter-item.ts +14 -14
- package/src/types/odata/index.ts +3 -3
- package/src/types/odata/odata-params.ts +3 -3
- package/src/types/offer/additional-services.ts +6 -6
- package/src/types/offer/confirmed-dossier-check.ts +6 -6
- package/src/types/offer/country-item.ts +5 -5
- package/src/types/offer/crm-contact-request.ts +37 -37
- package/src/types/offer/customer-request.ts +5 -5
- package/src/types/offer/dossier-default-product.ts +14 -14
- package/src/types/offer/dossier-view-result.ts +49 -49
- package/src/types/offer/entry-check-response.ts +5 -5
- package/src/types/offer/entry-line-meta-data.ts +5 -5
- package/src/types/offer/entry-line-pax.ts +9 -9
- package/src/types/offer/entry-line.ts +74 -74
- package/src/types/offer/entry-price-line.ts +40 -40
- package/src/types/offer/entry-room2.ts +5 -5
- package/src/types/offer/entry.ts +66 -66
- package/src/types/offer/flight-meta-data-line.ts +16 -16
- package/src/types/offer/flight-meta-data.ts +15 -15
- package/src/types/offer/flight-pool.ts +6 -6
- package/src/types/offer/index.ts +40 -76
- package/src/types/offer/item-tag.ts +3 -3
- package/src/types/offer/language.ts +5 -5
- package/src/types/offer/member-confirmation-request.ts +5 -5
- package/src/types/offer/member-forgot-password-request.ts +4 -4
- package/src/types/offer/member-info.ts +10 -10
- package/src/types/offer/member-login-request.ts +4 -4
- package/src/types/offer/member-login-response.ts +3 -3
- package/src/types/offer/member-reset-password-request.ts +4 -4
- package/src/types/offer/note.ts +16 -16
- package/src/types/offer/page-result.ts +5 -5
- package/src/types/offer/pax.ts +30 -30
- package/src/types/offer/payment.ts +20 -20
- package/src/types/offer/person-country-preference.ts +7 -7
- package/src/types/offer/person-location-preference.ts +7 -7
- package/src/types/offer/person-oord-preference.ts +7 -7
- package/src/types/offer/person-period-date-range-preference.ts +6 -6
- package/src/types/offer/person-period-preference.ts +7 -7
- package/src/types/offer/person-region-preference.ts +7 -7
- package/src/types/offer/person-tour-group-preference.ts +7 -7
- package/src/types/offer/product-notification-result.ts +9 -9
- package/src/types/offer/web-contact-form-request.ts +13 -13
- package/src/types/offer/web-contact-has-tag-request.ts +4 -4
- package/src/types/tide-client-config.ts +5 -5
- package/src/types/{offer → web}/affiliate.ts +5 -5
- package/src/types/web/generate-booking-accommodation-request.ts +6 -0
- package/src/types/web/index.ts +2 -0
- package/src/utils/api.ts +82 -54
- package/src/utils/booking-v2-client.ts +318 -224
- package/src/utils/common-client.ts +69 -44
- package/src/utils/json.ts +26 -26
- package/src/utils/member-client.ts +76 -76
- package/src/utils/mollie-client.ts +27 -27
- package/src/utils/search-client.ts +22 -22
- package/src/utils/web-agent-client.ts +176 -176
- package/src/utils/web-client.ts +74 -58
- package/src/utils/web-contact-client.ts +43 -43
- package/src/utils/web-file.ts +24 -24
- package/tests/webClient.test.ts +38 -38
- package/tests/webContactClient.test.ts +61 -61
- package/tsconfig.json +23 -23
- 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/mollie-payment-request.d.ts +0 -6
- package/build/types/aapi/option-pax.d.ts +0 -4
- package/build/types/aapi/option.d.ts +0 -21
- 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/affiliate.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 -12
- 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-price.d.ts +0 -6
- 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/bookable-dates-request.d.ts +0 -4
- package/build/types/offer/booking-v2/request/booking-package-address.d.ts +0 -14
- package/build/types/offer/booking-v2/request/booking-package-book-request.d.ts +0 -24
- package/build/types/offer/booking-v2/request/booking-package-destination.d.ts +0 -9
- package/build/types/offer/booking-v2/request/booking-package-details-request.d.ts +0 -21
- package/build/types/offer/booking-v2/request/booking-package-flight-pool-request.d.ts +0 -12
- package/build/types/offer/booking-v2/request/booking-package-request.d.ts +0 -5
- package/build/types/offer/booking-v2/request/booking-package-search-request.d.ts +0 -27
- package/build/types/offer/booking-v2/request/selected-flight.d.ts +0 -6
- package/build/types/offer/booking-v2/request/selected-hotel.d.ts +0 -5
- package/build/types/offer/booking-v2/request/tour-codes.request.d.ts +0 -3
- package/build/types/offer/booking-v2/response/bookable-dates.d.ts +0 -4
- package/build/types/offer/booking-v2/response/booking-package-allotment-info.d.ts +0 -17
- package/build/types/offer/booking-v2/response/booking-package-dossier.d.ts +0 -6
- package/build/types/offer/booking-v2/response/booking-package-item.d.ts +0 -39
- package/build/types/offer/booking-v2/response/booking-price-detail.d.ts +0 -17
- package/build/types/offer/booking-v2/response/booking-price-per-pax.d.ts +0 -4
- package/build/types/offer/booking-v2/response/booking-product-notification.d.ts +0 -7
- package/build/types/offer/booking-v2/response/booking-room-status-option.d.ts +0 -5
- package/build/types/offer/booking-v2/response/booking-travel-agent.d.ts +0 -7
- package/build/types/offer/booking-v2/response/booking-validity-line.d.ts +0 -4
- package/build/types/offer/booking-v2/response/changed-line.d.ts +0 -4
- package/build/types/offer/booking-v2/response/tide-response.d.ts +0 -8
- package/build/types/offer/booking-v2/shared/booking-option-group.d.ts +0 -5
- package/build/types/offer/booking-v2/shared/booking-package-availability.d.ts +0 -9
- package/build/types/offer/booking-v2/shared/booking-package-flight-meta-data-line.d.ts +0 -17
- package/build/types/offer/booking-v2/shared/booking-package-flight-meta-data.d.ts +0 -10
- package/build/types/offer/booking-v2/shared/booking-package-flight.d.ts +0 -14
- package/build/types/offer/booking-v2/shared/booking-package-hotel-option.d.ts +0 -10
- package/build/types/offer/booking-v2/shared/booking-package-hotel.d.ts +0 -22
- package/build/types/offer/booking-v2/shared/booking-package-line.d.ts +0 -16
- package/build/types/offer/booking-v2/shared/booking-package-option.d.ts +0 -47
- package/build/types/offer/booking-v2/shared/booking-package-pax.d.ts +0 -17
- package/build/types/offer/booking-v2/shared/booking-package-room-option.d.ts +0 -21
- package/build/types/offer/booking-v2/shared/booking-package-tag.d.ts +0 -5
- package/build/types/offer/booking-v2/shared/booking-package.d.ts +0 -11
- package/build/types/offer/booking-v2/shared/per-package-option.d.ts +0 -9
- 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 -18
- 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.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 -114
- 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/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
|
@@ -1,18 +1,139 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
1
|
+
import { TideClientConfig } from "..";
|
|
2
|
+
import {
|
|
3
|
+
AvailableCountriesRequest,
|
|
4
|
+
AvailableCountry,
|
|
5
|
+
AvailableFlight,
|
|
6
|
+
AvailableFlightsRequest,
|
|
7
|
+
BasePrice,
|
|
8
|
+
BookableDates,
|
|
9
|
+
BookableDatesRequest,
|
|
10
|
+
BookingPackage,
|
|
11
|
+
BookingPackageAvailability,
|
|
12
|
+
BookingPackageBookRequest,
|
|
13
|
+
BookingPackageDetailsRequest,
|
|
14
|
+
BookingPackageDossier,
|
|
15
|
+
BookingPackageFlightPool,
|
|
16
|
+
BookingPackageFlightPoolRequest,
|
|
17
|
+
BookingPackageHotelPool,
|
|
18
|
+
BookingPackageItem,
|
|
19
|
+
BookingPackageRequest,
|
|
20
|
+
BookingPackageSearchRequest,
|
|
21
|
+
BookingPackageUpdateRequest,
|
|
22
|
+
BookingPackageVoucherRequest,
|
|
23
|
+
BookingPriceDetails,
|
|
24
|
+
BookingTravelAgent,
|
|
25
|
+
BookingVoucherResult,
|
|
26
|
+
EntryStatus,
|
|
27
|
+
PricesRequest,
|
|
28
|
+
TideResponse,
|
|
29
|
+
TourCodesRequest,
|
|
30
|
+
TourCodesResponse,
|
|
31
|
+
TransportDatesRequest,
|
|
32
|
+
TransportDatesResponse,
|
|
33
|
+
} from "../types";
|
|
34
|
+
export declare const availableFlights: (
|
|
35
|
+
config: TideClientConfig,
|
|
36
|
+
request: AvailableFlightsRequest,
|
|
37
|
+
signal?: AbortSignal | undefined
|
|
38
|
+
) => Promise<AvailableFlight[]>;
|
|
39
|
+
export declare const transportDates: (
|
|
40
|
+
config: TideClientConfig,
|
|
41
|
+
request: TransportDatesRequest,
|
|
42
|
+
signal?: AbortSignal | undefined
|
|
43
|
+
) => Promise<TransportDatesResponse>;
|
|
44
|
+
export declare const prices: (
|
|
45
|
+
config: TideClientConfig,
|
|
46
|
+
request: PricesRequest,
|
|
47
|
+
signal?: AbortSignal | undefined
|
|
48
|
+
) => Promise<BasePrice[]>;
|
|
49
|
+
export declare const availableCountries: (
|
|
50
|
+
config: TideClientConfig,
|
|
51
|
+
request: AvailableCountriesRequest,
|
|
52
|
+
signal?: AbortSignal | undefined
|
|
53
|
+
) => Promise<AvailableCountry[]>;
|
|
54
|
+
export declare const search: (
|
|
55
|
+
config: TideClientConfig,
|
|
56
|
+
request: BookingPackageRequest<BookingPackageSearchRequest>,
|
|
57
|
+
signal?: AbortSignal | undefined
|
|
58
|
+
) => Promise<BookingPackageItem[]>;
|
|
59
|
+
export declare const searchWithErrorMapping: (
|
|
60
|
+
config: TideClientConfig,
|
|
61
|
+
request: BookingPackageRequest<BookingPackageSearchRequest>,
|
|
62
|
+
signal?: AbortSignal | undefined
|
|
63
|
+
) => Promise<TideResponse<BookingPackageItem[]>>;
|
|
64
|
+
export declare const details: (
|
|
65
|
+
config: TideClientConfig,
|
|
66
|
+
request: BookingPackageRequest<BookingPackageDetailsRequest>,
|
|
67
|
+
signal?: AbortSignal | undefined,
|
|
68
|
+
languageCode?: string | undefined
|
|
69
|
+
) => Promise<TideResponse<BookingPackage>>;
|
|
70
|
+
export declare const validateVoucher: (
|
|
71
|
+
config: TideClientConfig,
|
|
72
|
+
request: BookingPackageRequest<BookingPackageVoucherRequest>,
|
|
73
|
+
signal?: AbortSignal | undefined
|
|
74
|
+
) => Promise<BookingVoucherResult>;
|
|
75
|
+
export declare const alternateHotels: (
|
|
76
|
+
config: TideClientConfig,
|
|
77
|
+
transactionId: string,
|
|
78
|
+
optionId: string,
|
|
79
|
+
signal?: AbortSignal | undefined
|
|
80
|
+
) => Promise<BookingPackageHotelPool>;
|
|
81
|
+
export declare const alternateFlights: (
|
|
82
|
+
config: TideClientConfig,
|
|
83
|
+
transactionId: string,
|
|
84
|
+
signal?: AbortSignal | undefined
|
|
85
|
+
) => Promise<BookingPackageFlightPool>;
|
|
86
|
+
export declare const bookableDates: (
|
|
87
|
+
config: TideClientConfig,
|
|
88
|
+
request: BookableDatesRequest,
|
|
89
|
+
signal?: AbortSignal | undefined
|
|
90
|
+
) => Promise<BookableDates>;
|
|
91
|
+
export declare const priceDetails: (
|
|
92
|
+
config: TideClientConfig,
|
|
93
|
+
request: BookingPackageRequest<BookingPackageBookRequest>,
|
|
94
|
+
signal?: AbortSignal | undefined,
|
|
95
|
+
languageCode?: string | undefined
|
|
96
|
+
) => Promise<BookingPriceDetails>;
|
|
97
|
+
export declare const book: (
|
|
98
|
+
config: TideClientConfig,
|
|
99
|
+
request: BookingPackageRequest<BookingPackageBookRequest>,
|
|
100
|
+
signal?: AbortSignal | undefined,
|
|
101
|
+
languageCode?: string | undefined
|
|
102
|
+
) => Promise<BookingPackageDossier>;
|
|
103
|
+
export declare const update: (
|
|
104
|
+
config: TideClientConfig,
|
|
105
|
+
request: BookingPackageRequest<BookingPackageUpdateRequest>,
|
|
106
|
+
signal?: AbortSignal | undefined
|
|
107
|
+
) => Promise<BookingPackageDossier>;
|
|
108
|
+
export declare const agents: (
|
|
109
|
+
config: TideClientConfig,
|
|
110
|
+
signal?: AbortSignal | undefined
|
|
111
|
+
) => Promise<BookingTravelAgent[]>;
|
|
112
|
+
export declare const getAllotmentAvailability: (
|
|
113
|
+
config: TideClientConfig,
|
|
114
|
+
eventId: string,
|
|
115
|
+
productCode: string,
|
|
116
|
+
signal?: AbortSignal | undefined
|
|
117
|
+
) => Promise<BookingPackageAvailability[]>;
|
|
118
|
+
export declare const searchFlightPool: (
|
|
119
|
+
config: TideClientConfig,
|
|
120
|
+
request: BookingPackageRequest<BookingPackageFlightPoolRequest>,
|
|
121
|
+
signal?: AbortSignal | undefined
|
|
122
|
+
) => Promise<BookingPackageFlightPool>;
|
|
123
|
+
export declare const tourCodes: (
|
|
124
|
+
config: TideClientConfig,
|
|
125
|
+
request: TourCodesRequest,
|
|
126
|
+
signal?: AbortSignal | undefined
|
|
127
|
+
) => Promise<TourCodesResponse>;
|
|
128
|
+
export declare const setCustomEntryStatus: (
|
|
129
|
+
config: TideClientConfig,
|
|
130
|
+
dossierNumber: string,
|
|
131
|
+
customEntryStatusId: number,
|
|
132
|
+
signal?: AbortSignal | undefined
|
|
133
|
+
) => Promise<BookingPackageAvailability[]>;
|
|
134
|
+
export declare const setEntryStatus: (
|
|
135
|
+
config: TideClientConfig,
|
|
136
|
+
dossierNumber: string,
|
|
137
|
+
entryStatus: EntryStatus,
|
|
138
|
+
signal?: AbortSignal | undefined
|
|
139
|
+
) => Promise<BookingPackageAvailability[]>;
|
|
@@ -1,2 +1,26 @@
|
|
|
1
|
-
export declare const post: <T>(
|
|
2
|
-
|
|
1
|
+
export declare const post: <T>(
|
|
2
|
+
url: string,
|
|
3
|
+
apiKey: string,
|
|
4
|
+
body?: string | null | undefined,
|
|
5
|
+
token?: string | undefined,
|
|
6
|
+
signal?: AbortSignal | undefined,
|
|
7
|
+
skipReviver?: boolean | undefined,
|
|
8
|
+
languageCode?: string | undefined
|
|
9
|
+
) => Promise<T>;
|
|
10
|
+
export declare const patch: <T>(
|
|
11
|
+
url: string,
|
|
12
|
+
apiKey: string,
|
|
13
|
+
body?: string | null | undefined,
|
|
14
|
+
token?: string | undefined,
|
|
15
|
+
signal?: AbortSignal | undefined,
|
|
16
|
+
skipReviver?: boolean | undefined,
|
|
17
|
+
languageCode?: string | undefined
|
|
18
|
+
) => Promise<T>;
|
|
19
|
+
export declare const get: <T>(
|
|
20
|
+
url: string,
|
|
21
|
+
apiKey: string,
|
|
22
|
+
token?: string | undefined,
|
|
23
|
+
signal?: AbortSignal | undefined,
|
|
24
|
+
skipReviver?: boolean | undefined,
|
|
25
|
+
languageCode?: string | undefined
|
|
26
|
+
) => Promise<T>;
|
package/build/utils/json.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const reviver: (_: any, value: any) => any;
|
|
2
|
-
export declare const replacer: (_: any, value: any) => any;
|
|
1
|
+
export declare const reviver: (_: any, value: any) => any;
|
|
2
|
+
export declare const replacer: (_: any, value: any) => any;
|
|
@@ -1,7 +1,32 @@
|
|
|
1
|
-
import { TideClientConfig } from "..";
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { TideClientConfig } from "..";
|
|
2
|
+
import {
|
|
3
|
+
MemberConfirmationRequest,
|
|
4
|
+
MemberForgotPasswordRequest,
|
|
5
|
+
MemberLoginRequest,
|
|
6
|
+
MemberLoginResponse,
|
|
7
|
+
MemberResetPasswordRequest,
|
|
8
|
+
} from "../types";
|
|
9
|
+
export declare const login: (
|
|
10
|
+
config: TideClientConfig,
|
|
11
|
+
request: MemberLoginRequest,
|
|
12
|
+
signal?: AbortSignal | undefined
|
|
13
|
+
) => Promise<MemberLoginResponse>;
|
|
14
|
+
export declare const logout: (
|
|
15
|
+
config: TideClientConfig,
|
|
16
|
+
signal?: AbortSignal | undefined
|
|
17
|
+
) => Promise<Response>;
|
|
18
|
+
export declare const confirm: (
|
|
19
|
+
config: TideClientConfig,
|
|
20
|
+
request: MemberConfirmationRequest,
|
|
21
|
+
signal?: AbortSignal | undefined
|
|
22
|
+
) => Promise<Response>;
|
|
23
|
+
export declare const forgotPassword: (
|
|
24
|
+
config: TideClientConfig,
|
|
25
|
+
request: MemberForgotPasswordRequest,
|
|
26
|
+
signal?: AbortSignal | undefined
|
|
27
|
+
) => Promise<Response>;
|
|
28
|
+
export declare const resetPassword: (
|
|
29
|
+
config: TideClientConfig,
|
|
30
|
+
request: MemberResetPasswordRequest,
|
|
31
|
+
signal?: AbortSignal | undefined
|
|
32
|
+
) => Promise<Response>;
|
|
@@ -1,7 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import {
|
|
2
|
+
MolliePayment,
|
|
3
|
+
MolliePaymentRequest,
|
|
4
|
+
TideClientConfig,
|
|
5
|
+
} from "../types";
|
|
6
|
+
/**
|
|
7
|
+
* api/mollie/create-payment
|
|
8
|
+
* @param request
|
|
9
|
+
* @returns mollie payment url
|
|
10
|
+
*/
|
|
11
|
+
export declare const getMolliePayment: (
|
|
12
|
+
config: TideClientConfig,
|
|
13
|
+
request: MolliePaymentRequest,
|
|
14
|
+
signal?: AbortSignal | undefined
|
|
15
|
+
) => Promise<MolliePayment>;
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import { CountryItem, PageResult, TideClientConfig } from "../types";
|
|
2
|
-
/**
|
|
3
|
-
* api/search/countries
|
|
4
|
-
* Gets all Countries
|
|
5
|
-
* @param config
|
|
6
|
-
* @param signal
|
|
7
|
-
* @returns OK if succeeded.
|
|
8
|
-
*/
|
|
9
|
-
export declare const getCountries: (
|
|
1
|
+
import { CountryItem, PageResult, TideClientConfig } from "../types";
|
|
2
|
+
/**
|
|
3
|
+
* api/search/countries
|
|
4
|
+
* Gets all Countries
|
|
5
|
+
* @param config
|
|
6
|
+
* @param signal
|
|
7
|
+
* @returns OK if succeeded.
|
|
8
|
+
*/
|
|
9
|
+
export declare const getCountries: (
|
|
10
|
+
config: TideClientConfig,
|
|
11
|
+
signal?: AbortSignal | undefined
|
|
12
|
+
) => Promise<PageResult<CountryItem>>;
|
|
@@ -1,23 +1,72 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
export declare const
|
|
1
|
+
import {
|
|
2
|
+
AgentInvoiceItem,
|
|
3
|
+
AgentPrintAction,
|
|
4
|
+
AgentPrintActionRequest,
|
|
5
|
+
ChangeEntryAgentSurchargeAction,
|
|
6
|
+
Column,
|
|
7
|
+
CustomEntryStatusItem,
|
|
8
|
+
DossierViewResult,
|
|
9
|
+
EntryTotals,
|
|
10
|
+
FilterItem,
|
|
11
|
+
NumberStringPair,
|
|
12
|
+
PageResult,
|
|
13
|
+
PrintActionGroup,
|
|
14
|
+
TideClientConfig,
|
|
15
|
+
} from "../types";
|
|
16
|
+
/**
|
|
17
|
+
* api/web/agent/print-action/{print-action-group}
|
|
18
|
+
* @param config
|
|
19
|
+
* @param printActionGroup
|
|
20
|
+
* @param signal
|
|
21
|
+
* @returns print actions that are available for agents for given group.
|
|
22
|
+
*/
|
|
23
|
+
export declare const getPrintActions: (
|
|
24
|
+
config: TideClientConfig,
|
|
25
|
+
printActionGroup: PrintActionGroup,
|
|
26
|
+
signal?: AbortSignal | undefined
|
|
27
|
+
) => Promise<AgentPrintAction[]>;
|
|
28
|
+
/**
|
|
29
|
+
* api/web/agent/print-action
|
|
30
|
+
* @param config
|
|
31
|
+
* @param request
|
|
32
|
+
* @param signal
|
|
33
|
+
* @returns pdf as stream.
|
|
34
|
+
*/
|
|
35
|
+
export declare const print: (
|
|
36
|
+
config: TideClientConfig,
|
|
37
|
+
request: AgentPrintActionRequest,
|
|
38
|
+
signal?: AbortSignal | undefined
|
|
39
|
+
) => Promise<Response>;
|
|
40
|
+
export declare const getEntryList: (
|
|
41
|
+
config: TideClientConfig,
|
|
42
|
+
filterItem: FilterItem,
|
|
43
|
+
gridColumns?: Column[] | undefined,
|
|
44
|
+
signal?: AbortSignal | undefined
|
|
45
|
+
) => Promise<PageResult<DossierViewResult>>;
|
|
46
|
+
export declare const getEntryTotals: (
|
|
47
|
+
config: TideClientConfig,
|
|
48
|
+
filterItem: FilterItem,
|
|
49
|
+
gridColumns?: Column[] | undefined,
|
|
50
|
+
signal?: AbortSignal | undefined
|
|
51
|
+
) => Promise<EntryTotals>;
|
|
52
|
+
export declare const getInvoiceList: (
|
|
53
|
+
config: TideClientConfig,
|
|
54
|
+
filterItem: FilterItem,
|
|
55
|
+
gridColumns?: Column[] | undefined,
|
|
56
|
+
signal?: AbortSignal | undefined
|
|
57
|
+
) => Promise<PageResult<AgentInvoiceItem>>;
|
|
58
|
+
export declare const getCustomEntryStatus: (
|
|
59
|
+
config: TideClientConfig,
|
|
60
|
+
signal?: AbortSignal | undefined,
|
|
61
|
+
languageCode?: string | undefined
|
|
62
|
+
) => Promise<CustomEntryStatusItem[]>;
|
|
63
|
+
export declare const getEntryStatus: (
|
|
64
|
+
config: TideClientConfig,
|
|
65
|
+
signal?: AbortSignal | undefined,
|
|
66
|
+
languageCode?: string | undefined
|
|
67
|
+
) => Promise<NumberStringPair[]>;
|
|
68
|
+
export declare const changeEntryAgentSurcharge: (
|
|
69
|
+
config: TideClientConfig,
|
|
70
|
+
request: ChangeEntryAgentSurchargeAction,
|
|
71
|
+
signal?: AbortSignal | undefined
|
|
72
|
+
) => Promise<Response>;
|
|
@@ -1,22 +1,44 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
*
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
1
|
+
import {
|
|
2
|
+
Affiliate,
|
|
3
|
+
CrmContactRequest,
|
|
4
|
+
GenerateBookingAccommodationRequest,
|
|
5
|
+
TideClientConfig,
|
|
6
|
+
} from "../types";
|
|
7
|
+
/**
|
|
8
|
+
* api/web/crmcontact
|
|
9
|
+
* Creates a CRM contact.
|
|
10
|
+
* @param config
|
|
11
|
+
* @param request
|
|
12
|
+
* @param signal
|
|
13
|
+
* @returns OK if succeeded.
|
|
14
|
+
*/
|
|
15
|
+
export declare const createCrmContact: (
|
|
16
|
+
config: TideClientConfig,
|
|
17
|
+
request: CrmContactRequest,
|
|
18
|
+
signal?: AbortSignal | undefined
|
|
19
|
+
) => Promise<Response>;
|
|
20
|
+
/**
|
|
21
|
+
* api/web/affiliates
|
|
22
|
+
* Gets all Affiliates
|
|
23
|
+
* @param config
|
|
24
|
+
* @param signal
|
|
25
|
+
* @returns OK if succeeded.
|
|
26
|
+
*/
|
|
27
|
+
export declare const getAffiliates: (
|
|
28
|
+
config: TideClientConfig,
|
|
29
|
+
signal?: AbortSignal | undefined
|
|
30
|
+
) => Promise<[Affiliate]>;
|
|
31
|
+
export declare const getTranslationDictionary: (
|
|
32
|
+
config: TideClientConfig,
|
|
33
|
+
segmentKey: string,
|
|
34
|
+
signal?: AbortSignal | undefined
|
|
35
|
+
) => Promise<{
|
|
36
|
+
[key: string]: object;
|
|
37
|
+
}>;
|
|
38
|
+
export declare const generateBookingAccommodations: (
|
|
39
|
+
config: TideClientConfig,
|
|
40
|
+
request: GenerateBookingAccommodationRequest,
|
|
41
|
+
signal?: AbortSignal | undefined
|
|
42
|
+
) => Promise<{
|
|
43
|
+
[key: string]: string;
|
|
44
|
+
}>;
|
|
@@ -1,11 +1,23 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import {
|
|
2
|
+
TideClientConfig,
|
|
3
|
+
WebContactFormRequest,
|
|
4
|
+
WebContactHasTagRequest,
|
|
5
|
+
} from "../types";
|
|
6
|
+
/**
|
|
7
|
+
* api/web/contact/contact-form
|
|
8
|
+
* Processes a contact form.
|
|
9
|
+
* @param config
|
|
10
|
+
* @param request
|
|
11
|
+
* @param signal
|
|
12
|
+
* @returns OK if succeeded.
|
|
13
|
+
*/
|
|
14
|
+
export declare const contactForm: (
|
|
15
|
+
config: TideClientConfig,
|
|
16
|
+
request: WebContactFormRequest,
|
|
17
|
+
signal?: AbortSignal | undefined
|
|
18
|
+
) => Promise<Response>;
|
|
19
|
+
export declare const contactHasTag: (
|
|
20
|
+
config: TideClientConfig,
|
|
21
|
+
request: WebContactHasTagRequest,
|
|
22
|
+
signal?: AbortSignal | undefined
|
|
23
|
+
) => Promise<Response>;
|
|
@@ -1,10 +1,14 @@
|
|
|
1
|
-
import { TideClientConfig } from "../types";
|
|
2
|
-
/**
|
|
3
|
-
* api/web/file/feed
|
|
4
|
-
* fetch a xml from blob feed.
|
|
5
|
-
* @param config
|
|
6
|
-
* @param request
|
|
7
|
-
* @param signal
|
|
8
|
-
* @returns OK if succeeded.
|
|
9
|
-
*/
|
|
10
|
-
export declare const feedXml: (
|
|
1
|
+
import { TideClientConfig } from "../types";
|
|
2
|
+
/**
|
|
3
|
+
* api/web/file/feed
|
|
4
|
+
* fetch a xml from blob feed.
|
|
5
|
+
* @param config
|
|
6
|
+
* @param request
|
|
7
|
+
* @param signal
|
|
8
|
+
* @returns OK if succeeded.
|
|
9
|
+
*/
|
|
10
|
+
export declare const feedXml: (
|
|
11
|
+
config: TideClientConfig,
|
|
12
|
+
request: string,
|
|
13
|
+
signal?: AbortSignal | undefined
|
|
14
|
+
) => Promise<Response>;
|
package/package.json
CHANGED
|
@@ -1,64 +1,64 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@qite/tide-client",
|
|
3
|
-
"version": "1.1.
|
|
4
|
-
"description": "Frontend client for Tide",
|
|
5
|
-
"main": "build/index.js",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"build": "rollup -c",
|
|
8
|
-
"tsc": "tsc --noEmit",
|
|
9
|
-
"format": "prettier --write .",
|
|
10
|
-
"test": "jest",
|
|
11
|
-
"copy": "cpx \"**/*.*\" \"../travelworld.gatsby/node_modules/@qite/tide-client\""
|
|
12
|
-
},
|
|
13
|
-
"repository": {
|
|
14
|
-
"type": "git",
|
|
15
|
-
"url": "git+ssh://git@bitbucket.org/qitegeneral/tide-client.git"
|
|
16
|
-
},
|
|
17
|
-
"keywords": [
|
|
18
|
-
"tide",
|
|
19
|
-
"client"
|
|
20
|
-
],
|
|
21
|
-
"maintainers": [
|
|
22
|
-
"Loris Decoster <loris@qite.be>",
|
|
23
|
-
"Bram De Cuyper <bram.de.cuyper@qite.be>",
|
|
24
|
-
"Maarten Brysbaert <maarten.brysbaert@qite.be>"
|
|
25
|
-
],
|
|
26
|
-
"license": "OBSD",
|
|
27
|
-
"homepage": "https://bitbucket.org/qitegeneral/tide-client#readme",
|
|
28
|
-
"devDependencies": {
|
|
29
|
-
"@rollup/plugin-commonjs": "^19.0.0",
|
|
30
|
-
"@rollup/plugin-node-resolve": "^13.0.0",
|
|
31
|
-
"@types/jest": "^26.0.23",
|
|
32
|
-
"@types/moment": "^2.13.0",
|
|
33
|
-
"dotenv": "^9.0.2",
|
|
34
|
-
"jest": "^26.6.3",
|
|
35
|
-
"jest-fetch-mock": "^3.0.3",
|
|
36
|
-
"momentjs": "^2.0.0",
|
|
37
|
-
"prettier": "^2.3.0",
|
|
38
|
-
"rollup": "^2.48.0",
|
|
39
|
-
"rollup-plugin-typescript2": "
|
|
40
|
-
"ts-jest": "^26.5.6",
|
|
41
|
-
"tslib": "^2.2.0",
|
|
42
|
-
"typescript": "^4.2.4"
|
|
43
|
-
},
|
|
44
|
-
"jest": {
|
|
45
|
-
"moduleFileExtensions": [
|
|
46
|
-
"ts",
|
|
47
|
-
"js"
|
|
48
|
-
],
|
|
49
|
-
"transform": {
|
|
50
|
-
"^.+\\.ts$": "ts-jest"
|
|
51
|
-
},
|
|
52
|
-
"globals": {
|
|
53
|
-
"ts-jest": {
|
|
54
|
-
"tsconfig": "tsconfig.json"
|
|
55
|
-
}
|
|
56
|
-
},
|
|
57
|
-
"testMatch": [
|
|
58
|
-
"**/tests/**/*.test.ts"
|
|
59
|
-
]
|
|
60
|
-
},
|
|
61
|
-
"dependencies": {
|
|
62
|
-
"cpx": "^1.5.0"
|
|
63
|
-
}
|
|
64
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@qite/tide-client",
|
|
3
|
+
"version": "1.1.56",
|
|
4
|
+
"description": "Frontend client for Tide",
|
|
5
|
+
"main": "build/index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"build": "rollup -c",
|
|
8
|
+
"tsc": "tsc --noEmit",
|
|
9
|
+
"format": "prettier --write .",
|
|
10
|
+
"test": "jest",
|
|
11
|
+
"copy": "cpx \"**/*.*\" \"../travelworld.gatsby/node_modules/@qite/tide-client\""
|
|
12
|
+
},
|
|
13
|
+
"repository": {
|
|
14
|
+
"type": "git",
|
|
15
|
+
"url": "git+ssh://git@bitbucket.org/qitegeneral/tide-client.git"
|
|
16
|
+
},
|
|
17
|
+
"keywords": [
|
|
18
|
+
"tide",
|
|
19
|
+
"client"
|
|
20
|
+
],
|
|
21
|
+
"maintainers": [
|
|
22
|
+
"Loris Decoster <loris@qite.be>",
|
|
23
|
+
"Bram De Cuyper <bram.de.cuyper@qite.be>",
|
|
24
|
+
"Maarten Brysbaert <maarten.brysbaert@qite.be>"
|
|
25
|
+
],
|
|
26
|
+
"license": "OBSD",
|
|
27
|
+
"homepage": "https://bitbucket.org/qitegeneral/tide-client#readme",
|
|
28
|
+
"devDependencies": {
|
|
29
|
+
"@rollup/plugin-commonjs": "^19.0.0",
|
|
30
|
+
"@rollup/plugin-node-resolve": "^13.0.0",
|
|
31
|
+
"@types/jest": "^26.0.23",
|
|
32
|
+
"@types/moment": "^2.13.0",
|
|
33
|
+
"dotenv": "^9.0.2",
|
|
34
|
+
"jest": "^26.6.3",
|
|
35
|
+
"jest-fetch-mock": "^3.0.3",
|
|
36
|
+
"momentjs": "^2.0.0",
|
|
37
|
+
"prettier": "^2.3.0",
|
|
38
|
+
"rollup": "^2.48.0",
|
|
39
|
+
"rollup-plugin-typescript2": "0.36.0",
|
|
40
|
+
"ts-jest": "^26.5.6",
|
|
41
|
+
"tslib": "^2.2.0",
|
|
42
|
+
"typescript": "^4.2.4"
|
|
43
|
+
},
|
|
44
|
+
"jest": {
|
|
45
|
+
"moduleFileExtensions": [
|
|
46
|
+
"ts",
|
|
47
|
+
"js"
|
|
48
|
+
],
|
|
49
|
+
"transform": {
|
|
50
|
+
"^.+\\.ts$": "ts-jest"
|
|
51
|
+
},
|
|
52
|
+
"globals": {
|
|
53
|
+
"ts-jest": {
|
|
54
|
+
"tsconfig": "tsconfig.json"
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"testMatch": [
|
|
58
|
+
"**/tests/**/*.test.ts"
|
|
59
|
+
]
|
|
60
|
+
},
|
|
61
|
+
"dependencies": {
|
|
62
|
+
"cpx": "^1.5.0"
|
|
63
|
+
}
|
|
64
|
+
}
|