@qite/tide-client 1.1.182 → 1.1.184
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 +12 -12
- package/build/index.js +5326 -5050
- package/build/index.js.map +1 -1
- package/build/services/odata.service.d.ts +8 -2
- package/build/types/booking-v2/index.d.ts +3 -3
- package/build/types/booking-v2/request/available-countries-request.d.ts +4 -4
- package/build/types/booking-v2/request/available-flights-request.d.ts +8 -8
- package/build/types/booking-v2/request/bookable-dates-request.d.ts +4 -4
- package/build/types/booking-v2/request/booking-package-address.d.ts +14 -14
- package/build/types/booking-v2/request/booking-package-book-request.d.ts +26 -26
- package/build/types/booking-v2/request/booking-package-customer-request.d.ts +4 -4
- package/build/types/booking-v2/request/booking-package-destination.d.ts +9 -9
- package/build/types/booking-v2/request/booking-package-details-request.d.ts +28 -28
- package/build/types/booking-v2/request/booking-package-flight-pool-request.d.ts +12 -12
- package/build/types/booking-v2/request/booking-package-request.d.ts +5 -5
- package/build/types/booking-v2/request/booking-package-search-request.d.ts +30 -30
- package/build/types/booking-v2/request/booking-package-update-request.d.ts +4 -4
- package/build/types/booking-v2/request/booking-package-voucher-request.d.ts +4 -4
- package/build/types/booking-v2/request/flight-lines-request.d.ts +3 -3
- package/build/types/booking-v2/request/index.d.ts +21 -21
- package/build/types/booking-v2/request/packaging/packaging-accommodation-request.d.ts +36 -36
- package/build/types/booking-v2/request/packaging/packaging-request-base.d.ts +7 -7
- package/build/types/booking-v2/request/prices-request.d.ts +17 -17
- package/build/types/booking-v2/request/selected-flight.d.ts +14 -14
- package/build/types/booking-v2/request/selected-hotel.d.ts +5 -5
- package/build/types/booking-v2/request/tour-codes.request.d.ts +3 -3
- package/build/types/booking-v2/request/transport-dates-request.d.ts +14 -14
- package/build/types/booking-v2/response/available-country.d.ts +5 -5
- package/build/types/booking-v2/response/available-flight.d.ts +4 -4
- package/build/types/booking-v2/response/base-price.d.ts +7 -7
- package/build/types/booking-v2/response/bookable-dates.d.ts +4 -4
- package/build/types/booking-v2/response/booking-package-allotment-info.d.ts +33 -33
- package/build/types/booking-v2/response/booking-package-dossier.d.ts +6 -6
- package/build/types/booking-v2/response/booking-package-entryline-flight-meta-data.d.ts +5 -5
- package/build/types/booking-v2/response/booking-package-flight-combination.d.ts +5 -5
- package/build/types/booking-v2/response/booking-package-flight-info.d.ts +9 -9
- package/build/types/booking-v2/response/booking-package-flight-pool.d.ts +5 -5
- package/build/types/booking-v2/response/booking-package-flight-route.d.ts +4 -4
- package/build/types/booking-v2/response/booking-package-hotel-pool.d.ts +4 -4
- package/build/types/booking-v2/response/booking-package-item.d.ts +43 -43
- package/build/types/booking-v2/response/booking-price-detail.d.ts +17 -17
- package/build/types/booking-v2/response/booking-price-details.d.ts +15 -15
- package/build/types/booking-v2/response/booking-price-per-pax.d.ts +4 -4
- package/build/types/booking-v2/response/booking-product-notification.d.ts +7 -7
- package/build/types/booking-v2/response/booking-room-status-option.d.ts +5 -5
- package/build/types/booking-v2/response/booking-room-status.d.ts +5 -5
- package/build/types/booking-v2/response/booking-travel-agent.d.ts +7 -7
- package/build/types/booking-v2/response/booking-validity-line.d.ts +4 -4
- package/build/types/booking-v2/response/booking-voucher-result.d.ts +3 -3
- package/build/types/booking-v2/response/changed-line.d.ts +4 -4
- package/build/types/booking-v2/response/elastic-result-hit.d.ts +8 -8
- package/build/types/booking-v2/response/elastic-result.d.ts +17 -17
- package/build/types/booking-v2/response/flight-lines-by-allotment.d.ts +11 -11
- package/build/types/booking-v2/response/index.d.ts +36 -36
- package/build/types/booking-v2/response/packaging/packaging-accommodation-response.d.ts +20 -20
- package/build/types/booking-v2/response/packaging/packaging-base-response.d.ts +25 -25
- package/build/types/booking-v2/response/packaging/packaging-entry.d.ts +103 -103
- package/build/types/booking-v2/response/packaging/packaging-flight-response.d.ts +20 -17
- package/build/types/booking-v2/response/packaging/packaging-transaction.d.ts +4 -4
- package/build/types/booking-v2/response/tide-elastic-product.d.ts +67 -67
- package/build/types/booking-v2/response/tide-elastic-tag.d.ts +4 -4
- package/build/types/booking-v2/response/tide-response.d.ts +8 -8
- package/build/types/booking-v2/response/tour-codes-response.d.ts +3 -3
- package/build/types/booking-v2/response/transport-dates-response.d.ts +4 -4
- package/build/types/booking-v2/shared/airline-booking-package-option.d.ts +2 -3
- package/build/types/booking-v2/shared/airport-booking-package-option.d.ts +2 -3
- package/build/types/booking-v2/shared/booking-airline-group.d.ts +6 -6
- package/build/types/booking-v2/shared/booking-airport-group.d.ts +6 -6
- package/build/types/booking-v2/shared/booking-mapping-info-item.d.ts +6 -6
- package/build/types/booking-v2/shared/booking-option-group.d.ts +5 -5
- package/build/types/booking-v2/shared/booking-option-pax.d.ts +13 -13
- package/build/types/booking-v2/shared/booking-option-unit.d.ts +12 -12
- package/build/types/booking-v2/shared/booking-package-availability.d.ts +9 -9
- package/build/types/booking-v2/shared/booking-package-entry.d.ts +5 -5
- package/build/types/booking-v2/shared/booking-package-flight-meta-data-line.d.ts +18 -18
- package/build/types/booking-v2/shared/booking-package-flight-meta-data.d.ts +10 -10
- package/build/types/booking-v2/shared/booking-package-flight.d.ts +18 -18
- package/build/types/booking-v2/shared/booking-package-hotel-option.d.ts +10 -10
- package/build/types/booking-v2/shared/booking-package-hotel-room.d.ts +5 -5
- package/build/types/booking-v2/shared/booking-package-hotel.d.ts +22 -22
- package/build/types/booking-v2/shared/booking-package-line.d.ts +17 -17
- package/build/types/booking-v2/shared/booking-package-option-mapping-info.d.ts +5 -5
- package/build/types/booking-v2/shared/booking-package-option.d.ts +49 -49
- package/build/types/booking-v2/shared/booking-package-pax.d.ts +17 -17
- package/build/types/booking-v2/shared/booking-package-request-room.d.ts +5 -5
- package/build/types/booking-v2/shared/booking-package-room-option.d.ts +22 -22
- package/build/types/booking-v2/shared/booking-package-room.d.ts +5 -5
- package/build/types/booking-v2/shared/booking-package-tag.d.ts +5 -5
- package/build/types/booking-v2/shared/booking-package.d.ts +14 -14
- package/build/types/booking-v2/shared/index.d.ts +29 -29
- package/build/types/booking-v2/shared/itinerary.d.ts +41 -41
- package/build/types/booking-v2/shared/per-booking-package-option.d.ts +9 -9
- package/build/types/booking-v2/shared/per-package-option.d.ts +12 -12
- package/build/types/booking-v2/shared/per-pax-package-option.d.ts +5 -5
- package/build/types/booking-v2/shared/per-unit-package-option.d.ts +7 -7
- package/build/types/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-kind.d.ts +4 -4
- package/build/types/enums/allotment-status.d.ts +5 -5
- package/build/types/enums/allotment-type.d.ts +5 -5
- package/build/types/enums/availability-search-type.d.ts +6 -6
- package/build/types/enums/data-type.d.ts +14 -14
- package/build/types/enums/date-amount-type.d.ts +4 -4
- 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/form-field-type.d.ts +12 -12
- package/build/types/enums/form-field-width.d.ts +8 -8
- package/build/types/enums/form-type.d.ts +4 -4
- package/build/types/enums/gender.d.ts +5 -5
- package/build/types/enums/index.d.ts +27 -27
- package/build/types/enums/meta-data-item-property-type.d.ts +6 -6
- package/build/types/enums/meta-data-type.d.ts +10 -10
- package/build/types/enums/note-type.d.ts +8 -0
- package/build/types/enums/payment-type.d.ts +6 -6
- package/build/types/enums/portal-qsm-type.d.ts +13 -13
- 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 +33 -33
- package/build/types/enums/unit-of-measure.d.ts +5 -5
- package/build/types/enums/vendor-type.d.ts +24 -24
- package/build/types/hubs/index.d.ts +1 -1
- package/build/types/hubs/search/flight-search-finish-response.d.ts +4 -4
- package/build/types/hubs/search/flight-search-request.d.ts +32 -32
- package/build/types/hubs/search/flight-search-response.d.ts +53 -53
- package/build/types/hubs/search/index.d.ts +3 -3
- package/build/types/index.d.ts +10 -10
- package/build/types/mollie/index.d.ts +2 -2
- package/build/types/mollie/mollie-payment-request.d.ts +7 -7
- package/build/types/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 +4 -4
- package/build/types/odata/odata-params.d.ts +3 -3
- package/build/types/odata/page-result.d.ts +5 -5
- package/build/types/offer/address-item.d.ts +30 -0
- package/build/types/offer/allotment-meta-data.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-light.d.ts +41 -41
- 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-room.d.ts +6 -6
- package/build/types/offer/entry-room2.d.ts +5 -5
- package/build/types/offer/entry.d.ts +65 -55
- package/build/types/offer/flight-data-segment-meta-data.d.ts +31 -31
- package/build/types/offer/flight-meta-data-line.d.ts +16 -16
- package/build/types/offer/flight-meta-data.d.ts +13 -13
- package/build/types/offer/flight-pool.d.ts +5 -5
- package/build/types/offer/geographical-region.d.ts +32 -0
- package/build/types/offer/index.d.ts +43 -43
- package/build/types/offer/item-tag.d.ts +3 -3
- package/build/types/offer/language.d.ts +5 -5
- package/build/types/offer/location-item.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 +5 -5
- package/build/types/offer/member-info.d.ts +14 -14
- package/build/types/offer/member-login-request.d.ts +5 -5
- 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/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/publishing/geo-json-point.d.ts +4 -0
- package/build/types/offer/publishing/index.d.ts +4 -0
- package/build/types/offer/publishing/mail.d.ts +15 -0
- package/build/types/offer/publishing/published-content-item.d.ts +22 -0
- package/build/types/offer/publishing/published-content.d.ts +10 -0
- 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/shared/date-struct.d.ts +5 -5
- package/build/types/shared/index.d.ts +2 -2
- package/build/types/shared/ticket-number.d.ts +5 -5
- package/build/types/tide-client-config.d.ts +5 -5
- package/build/types/web/affiliate.d.ts +5 -5
- package/build/types/web/agent-allotment-item.d.ts +31 -31
- package/build/types/web/agent-allotment.d.ts +32 -32
- package/build/types/web/agent-dossier-allotment-item.d.ts +8 -8
- package/build/types/web/agent-dossier-allotment.d.ts +14 -14
- package/build/types/web/agent-dossier-book-feedback.d.ts +5 -0
- package/build/types/web/agent-dossier-entry-line.d.ts +6 -6
- package/build/types/web/agent-dossier-flight-meta-data-line.d.ts +14 -14
- package/build/types/web/agent-dossier-flight-meta-data.d.ts +6 -6
- package/build/types/web/agent-dossier-item.d.ts +18 -17
- package/build/types/web/agent-dossier-traveler.d.ts +10 -10
- package/build/types/web/agent-dossier.d.ts +19 -19
- package/build/types/web/airport.d.ts +6 -6
- package/build/types/web/contact-form-request.d.ts +11 -11
- package/build/types/web/content-by-parent-request.d.ts +5 -0
- package/build/types/web/content-by-property-request.d.ts +10 -0
- package/build/types/web/content-by-template-request.d.ts +6 -0
- package/build/types/web/generate-booking-accommodation-request.d.ts +6 -6
- package/build/types/web/index.d.ts +20 -20
- package/build/types/web/locations-request.d.ts +3 -3
- package/build/types/web/portal.d.ts +8 -8
- package/build/types/web/style-sheet.d.ts +7 -7
- package/build/types/web/tide-location.d.ts +9 -9
- package/build/types/web/web-contact.d.ts +9 -0
- package/build/types/web/web-form.d.ts +68 -68
- package/build/types/web/web-opportunity-request.d.ts +9 -0
- package/build/types/web/website-configuration.d.ts +32 -32
- package/build/utils/api.d.ts +23 -3
- package/build/utils/booking-v2-client.d.ts +165 -26
- package/build/utils/common-client.d.ts +26 -3
- 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/packaging-client.d.ts +52 -11
- package/build/utils/search-client.d.ts +48 -16
- package/build/utils/service-token.d.ts +23 -0
- package/build/utils/web-agent-client.d.ts +98 -28
- package/build/utils/web-client.d.ts +77 -36
- package/build/utils/web-contact-client.d.ts +23 -11
- package/build/utils/web-content-client.d.ts +107 -0
- package/build/utils/web-file.d.ts +29 -20
- package/build/utils/web-form.d.ts +36 -20
- package/package.json +1 -1
|
@@ -1,16 +1,48 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
export declare const
|
|
1
|
+
import {
|
|
2
|
+
AirportItem,
|
|
3
|
+
CountryItem,
|
|
4
|
+
PageResult,
|
|
5
|
+
Portal,
|
|
6
|
+
TideClientConfig,
|
|
7
|
+
} from "../types";
|
|
8
|
+
import { LocationItem } from "../types/offer/location-item";
|
|
9
|
+
/**
|
|
10
|
+
* api/search/countries
|
|
11
|
+
* Gets all Countries
|
|
12
|
+
* @param config
|
|
13
|
+
* @param signal
|
|
14
|
+
* @returns OK if succeeded.
|
|
15
|
+
*/
|
|
16
|
+
export declare const getCountries: (
|
|
17
|
+
config: TideClientConfig,
|
|
18
|
+
signal?: AbortSignal | undefined
|
|
19
|
+
) => Promise<PageResult<CountryItem>>;
|
|
20
|
+
export declare const searchCountries: (
|
|
21
|
+
config: TideClientConfig,
|
|
22
|
+
searchTerm: string,
|
|
23
|
+
signal?: AbortSignal | undefined
|
|
24
|
+
) => Promise<PageResult<CountryItem>>;
|
|
25
|
+
export declare const searchRegions: (
|
|
26
|
+
config: TideClientConfig,
|
|
27
|
+
searchTerm: string,
|
|
28
|
+
signal?: AbortSignal | undefined
|
|
29
|
+
) => Promise<PageResult<LocationItem>>;
|
|
30
|
+
export declare const searchOords: (
|
|
31
|
+
config: TideClientConfig,
|
|
32
|
+
searchTerm: string,
|
|
33
|
+
signal?: AbortSignal | undefined
|
|
34
|
+
) => Promise<PageResult<LocationItem>>;
|
|
35
|
+
export declare const searchLocations: (
|
|
36
|
+
config: TideClientConfig,
|
|
37
|
+
searchTerm: string,
|
|
38
|
+
signal?: AbortSignal | undefined
|
|
39
|
+
) => Promise<PageResult<LocationItem>>;
|
|
40
|
+
export declare const getPortal: (
|
|
41
|
+
config: TideClientConfig,
|
|
42
|
+
portalId: number,
|
|
43
|
+
signal?: AbortSignal | undefined
|
|
44
|
+
) => Promise<Portal>;
|
|
45
|
+
export declare const getAirports: (
|
|
46
|
+
config: TideClientConfig,
|
|
47
|
+
signal?: AbortSignal | undefined
|
|
48
|
+
) => Promise<AirportItem[]>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export declare class ServiceTokenError extends Error {
|
|
2
|
+
readonly status: number;
|
|
3
|
+
constructor(status: number);
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* Returns a valid, unexpired service access token for the given host+apiKey,
|
|
7
|
+
* exchanging (and caching) a new one if there's no valid cached token.
|
|
8
|
+
* Concurrent callers for the same host+apiKey share a single in-flight
|
|
9
|
+
* exchange instead of each triggering their own.
|
|
10
|
+
*/
|
|
11
|
+
export declare const getServiceToken: (
|
|
12
|
+
host: string,
|
|
13
|
+
apiKey: string,
|
|
14
|
+
forceRefresh?: boolean
|
|
15
|
+
) => Promise<string>;
|
|
16
|
+
/**
|
|
17
|
+
* Clears the cached service token for a given host+apiKey. Useful for
|
|
18
|
+
* manual invalidation (e.g. a runtime key rotation) and test isolation.
|
|
19
|
+
*/
|
|
20
|
+
export declare const clearServiceTokenCache: (
|
|
21
|
+
host: string,
|
|
22
|
+
apiKey: string
|
|
23
|
+
) => void;
|
|
@@ -1,28 +1,98 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
export declare const
|
|
28
|
-
|
|
1
|
+
import {
|
|
2
|
+
AgentAllotment,
|
|
3
|
+
AgentAllotmentItem,
|
|
4
|
+
AgentDossier,
|
|
5
|
+
AgentInvoiceItem,
|
|
6
|
+
AgentPrintAction,
|
|
7
|
+
AgentPrintActionRequest,
|
|
8
|
+
ChangeEntryAgentSurchargeAction,
|
|
9
|
+
Column,
|
|
10
|
+
CustomEntryStatusItem,
|
|
11
|
+
DossierViewResult,
|
|
12
|
+
EntryTotals,
|
|
13
|
+
FilterItem,
|
|
14
|
+
NumberStringPair,
|
|
15
|
+
PageResult,
|
|
16
|
+
PrintActionGroup,
|
|
17
|
+
TideClientConfig,
|
|
18
|
+
} from "../types";
|
|
19
|
+
import { AgentDossierItem } from "../types/web/agent-dossier-item";
|
|
20
|
+
/**
|
|
21
|
+
* api/web/agent/print-action/{print-action-group}
|
|
22
|
+
* @param config
|
|
23
|
+
* @param printActionGroup
|
|
24
|
+
* @param signal
|
|
25
|
+
* @returns print actions that are available for agents for given group.
|
|
26
|
+
*/
|
|
27
|
+
export declare const getPrintActions: (
|
|
28
|
+
config: TideClientConfig,
|
|
29
|
+
printActionGroup: PrintActionGroup,
|
|
30
|
+
signal?: AbortSignal | undefined
|
|
31
|
+
) => Promise<AgentPrintAction[]>;
|
|
32
|
+
/**
|
|
33
|
+
* api/web/agent/print-action
|
|
34
|
+
* @param config
|
|
35
|
+
* @param request
|
|
36
|
+
* @param signal
|
|
37
|
+
* @returns pdf as stream.
|
|
38
|
+
*/
|
|
39
|
+
export declare const print: (
|
|
40
|
+
config: TideClientConfig,
|
|
41
|
+
request: AgentPrintActionRequest,
|
|
42
|
+
signal?: AbortSignal | undefined
|
|
43
|
+
) => Promise<Response>;
|
|
44
|
+
export declare const getEntryList: (
|
|
45
|
+
config: TideClientConfig,
|
|
46
|
+
filterItem: FilterItem,
|
|
47
|
+
gridColumns?: Column[] | undefined,
|
|
48
|
+
signal?: AbortSignal | undefined
|
|
49
|
+
) => Promise<PageResult<DossierViewResult>>;
|
|
50
|
+
export declare const getEntryListv2: (
|
|
51
|
+
config: TideClientConfig,
|
|
52
|
+
filterItem: FilterItem,
|
|
53
|
+
gridColumns?: Column[] | undefined,
|
|
54
|
+
signal?: AbortSignal | undefined
|
|
55
|
+
) => Promise<PageResult<AgentDossierItem>>;
|
|
56
|
+
export declare const getEntryTotals: (
|
|
57
|
+
config: TideClientConfig,
|
|
58
|
+
filterItem: FilterItem,
|
|
59
|
+
gridColumns?: Column[] | undefined,
|
|
60
|
+
signal?: AbortSignal | undefined
|
|
61
|
+
) => Promise<EntryTotals>;
|
|
62
|
+
export declare const getEntryDetailv2: (
|
|
63
|
+
config: TideClientConfig,
|
|
64
|
+
entryId: number,
|
|
65
|
+
signal?: AbortSignal | undefined
|
|
66
|
+
) => Promise<AgentDossier>;
|
|
67
|
+
export declare const getInvoiceList: (
|
|
68
|
+
config: TideClientConfig,
|
|
69
|
+
filterItem: FilterItem,
|
|
70
|
+
gridColumns?: Column[] | undefined,
|
|
71
|
+
signal?: AbortSignal | undefined
|
|
72
|
+
) => Promise<PageResult<AgentInvoiceItem>>;
|
|
73
|
+
export declare const getCustomEntryStatus: (
|
|
74
|
+
config: TideClientConfig,
|
|
75
|
+
signal?: AbortSignal | undefined,
|
|
76
|
+
languageCode?: string | undefined
|
|
77
|
+
) => Promise<CustomEntryStatusItem[]>;
|
|
78
|
+
export declare const getEntryStatus: (
|
|
79
|
+
config: TideClientConfig,
|
|
80
|
+
signal?: AbortSignal | undefined,
|
|
81
|
+
languageCode?: string | undefined
|
|
82
|
+
) => Promise<NumberStringPair[]>;
|
|
83
|
+
export declare const changeEntryAgentSurcharge: (
|
|
84
|
+
config: TideClientConfig,
|
|
85
|
+
request: ChangeEntryAgentSurchargeAction,
|
|
86
|
+
signal?: AbortSignal | undefined
|
|
87
|
+
) => Promise<Response>;
|
|
88
|
+
export declare const getAllotmentList: (
|
|
89
|
+
config: TideClientConfig,
|
|
90
|
+
filterItem: FilterItem,
|
|
91
|
+
gridColumns?: Column[] | undefined,
|
|
92
|
+
signal?: AbortSignal | undefined
|
|
93
|
+
) => Promise<PageResult<AgentAllotmentItem>>;
|
|
94
|
+
export declare const getAllotment: (
|
|
95
|
+
config: TideClientConfig,
|
|
96
|
+
allotmentId: number,
|
|
97
|
+
signal?: AbortSignal | undefined
|
|
98
|
+
) => Promise<AgentAllotment>;
|
|
@@ -1,36 +1,77 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
* @param
|
|
16
|
-
* @param
|
|
17
|
-
* @
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
1
|
+
import {
|
|
2
|
+
Affiliate,
|
|
3
|
+
ContactFormRequest,
|
|
4
|
+
CrmContactRequest,
|
|
5
|
+
GenerateBookingAccommodationRequest,
|
|
6
|
+
LocationsRequest,
|
|
7
|
+
TideClientConfig,
|
|
8
|
+
TideLocation,
|
|
9
|
+
WebsiteConfiguration,
|
|
10
|
+
StyleSheet,
|
|
11
|
+
} from "../types";
|
|
12
|
+
/**
|
|
13
|
+
* api/web/crmcontact
|
|
14
|
+
* Creates a CRM contact.
|
|
15
|
+
* @param config
|
|
16
|
+
* @param request
|
|
17
|
+
* @param signal
|
|
18
|
+
* @returns OK if succeeded.
|
|
19
|
+
*/
|
|
20
|
+
export declare const createCrmContact: (
|
|
21
|
+
config: TideClientConfig,
|
|
22
|
+
request: CrmContactRequest,
|
|
23
|
+
signal?: AbortSignal | undefined
|
|
24
|
+
) => Promise<Response>;
|
|
25
|
+
/**
|
|
26
|
+
* api/web/contactform
|
|
27
|
+
* Sends a contact request mail
|
|
28
|
+
* @param config
|
|
29
|
+
* @param request
|
|
30
|
+
* @param signal
|
|
31
|
+
* @returns OK if succeeded.
|
|
32
|
+
*/
|
|
33
|
+
export declare const ContactForm: (
|
|
34
|
+
config: TideClientConfig,
|
|
35
|
+
request: ContactFormRequest,
|
|
36
|
+
signal?: AbortSignal | undefined
|
|
37
|
+
) => Promise<Response>;
|
|
38
|
+
/**
|
|
39
|
+
* api/web/affiliates
|
|
40
|
+
* Gets all Affiliates
|
|
41
|
+
* @param config
|
|
42
|
+
* @param signal
|
|
43
|
+
* @returns OK if succeeded.
|
|
44
|
+
*/
|
|
45
|
+
export declare const getAffiliates: (
|
|
46
|
+
config: TideClientConfig,
|
|
47
|
+
signal?: AbortSignal | undefined
|
|
48
|
+
) => Promise<[Affiliate]>;
|
|
49
|
+
export declare const getTranslationDictionary: (
|
|
50
|
+
config: TideClientConfig,
|
|
51
|
+
segmentKey: string,
|
|
52
|
+
signal?: AbortSignal | undefined
|
|
53
|
+
) => Promise<{
|
|
54
|
+
[key: string]: object;
|
|
55
|
+
}>;
|
|
56
|
+
export declare const generateBookingAccommodations: (
|
|
57
|
+
config: TideClientConfig,
|
|
58
|
+
request: GenerateBookingAccommodationRequest,
|
|
59
|
+
signal?: AbortSignal | undefined
|
|
60
|
+
) => Promise<{
|
|
61
|
+
[key: string]: string;
|
|
62
|
+
}>;
|
|
63
|
+
export declare const getLocations: (
|
|
64
|
+
config: TideClientConfig,
|
|
65
|
+
request: LocationsRequest,
|
|
66
|
+
signal?: AbortSignal | undefined
|
|
67
|
+
) => Promise<TideLocation[]>;
|
|
68
|
+
export declare const getWebsiteConfiguration: (
|
|
69
|
+
config: TideClientConfig,
|
|
70
|
+
id: number,
|
|
71
|
+
signal?: AbortSignal | undefined
|
|
72
|
+
) => Promise<WebsiteConfiguration>;
|
|
73
|
+
export declare const getStyleSheet: (
|
|
74
|
+
config: TideClientConfig,
|
|
75
|
+
id: number,
|
|
76
|
+
signal?: AbortSignal | undefined
|
|
77
|
+
) => Promise<StyleSheet>;
|
|
@@ -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>;
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ContentByParentRequest,
|
|
3
|
+
ContentByPropertyRequest,
|
|
4
|
+
ContentByTemplateRequest,
|
|
5
|
+
PublishedContent,
|
|
6
|
+
TideClientConfig,
|
|
7
|
+
} from "../types";
|
|
8
|
+
/**
|
|
9
|
+
* api/web/content/live
|
|
10
|
+
* Gets all Live content
|
|
11
|
+
* @param config
|
|
12
|
+
* @param signal
|
|
13
|
+
* @returns OK if succeeded.
|
|
14
|
+
*/
|
|
15
|
+
export declare const getContentLive: (
|
|
16
|
+
config: TideClientConfig,
|
|
17
|
+
signal?: AbortSignal | undefined
|
|
18
|
+
) => Promise<PublishedContent>;
|
|
19
|
+
/**
|
|
20
|
+
* api/web/content/draft
|
|
21
|
+
* Gets all Draft (Internal) content
|
|
22
|
+
* @param config
|
|
23
|
+
* @param signal
|
|
24
|
+
* @returns OK if succeeded.
|
|
25
|
+
*/
|
|
26
|
+
export declare const getContentDraft: (
|
|
27
|
+
config: TideClientConfig,
|
|
28
|
+
signal?: AbortSignal | undefined
|
|
29
|
+
) => Promise<PublishedContent>;
|
|
30
|
+
/**
|
|
31
|
+
* api/web/content/live/by-property
|
|
32
|
+
* Gets Live content matching a property value (or values).
|
|
33
|
+
* @param config
|
|
34
|
+
* @param request
|
|
35
|
+
* @param signal
|
|
36
|
+
* @returns OK if succeeded.
|
|
37
|
+
*/
|
|
38
|
+
export declare const getContentLiveByProperty: (
|
|
39
|
+
config: TideClientConfig,
|
|
40
|
+
request: ContentByPropertyRequest,
|
|
41
|
+
signal?: AbortSignal | undefined
|
|
42
|
+
) => Promise<PublishedContent>;
|
|
43
|
+
/**
|
|
44
|
+
* api/web/content/draft/by-property
|
|
45
|
+
* Gets Draft (Internal) content matching a property value (or values).
|
|
46
|
+
* @param config
|
|
47
|
+
* @param request
|
|
48
|
+
* @param signal
|
|
49
|
+
* @returns OK if succeeded.
|
|
50
|
+
*/
|
|
51
|
+
export declare const getContentDraftByProperty: (
|
|
52
|
+
config: TideClientConfig,
|
|
53
|
+
request: ContentByPropertyRequest,
|
|
54
|
+
signal?: AbortSignal | undefined
|
|
55
|
+
) => Promise<PublishedContent>;
|
|
56
|
+
/**
|
|
57
|
+
* api/web/content/live/by-template
|
|
58
|
+
* Gets Live content of a given template.
|
|
59
|
+
* @param config
|
|
60
|
+
* @param request
|
|
61
|
+
* @param signal
|
|
62
|
+
* @returns OK if succeeded.
|
|
63
|
+
*/
|
|
64
|
+
export declare const getContentLiveByTemplate: (
|
|
65
|
+
config: TideClientConfig,
|
|
66
|
+
request: ContentByTemplateRequest,
|
|
67
|
+
signal?: AbortSignal | undefined
|
|
68
|
+
) => Promise<PublishedContent>;
|
|
69
|
+
/**
|
|
70
|
+
* api/web/content/draft/by-template
|
|
71
|
+
* Gets Draft (Internal) content of a given template.
|
|
72
|
+
* @param config
|
|
73
|
+
* @param request
|
|
74
|
+
* @param signal
|
|
75
|
+
* @returns OK if succeeded.
|
|
76
|
+
*/
|
|
77
|
+
export declare const getContentDraftByTemplate: (
|
|
78
|
+
config: TideClientConfig,
|
|
79
|
+
request: ContentByTemplateRequest,
|
|
80
|
+
signal?: AbortSignal | undefined
|
|
81
|
+
) => Promise<PublishedContent>;
|
|
82
|
+
/**
|
|
83
|
+
* api/web/content/live/children
|
|
84
|
+
* Gets the Live children of a parent item.
|
|
85
|
+
* @param config
|
|
86
|
+
* @param request
|
|
87
|
+
* @param signal
|
|
88
|
+
* @returns OK if succeeded.
|
|
89
|
+
*/
|
|
90
|
+
export declare const getContentLiveChildren: (
|
|
91
|
+
config: TideClientConfig,
|
|
92
|
+
request: ContentByParentRequest,
|
|
93
|
+
signal?: AbortSignal | undefined
|
|
94
|
+
) => Promise<PublishedContent>;
|
|
95
|
+
/**
|
|
96
|
+
* api/web/content/draft/children
|
|
97
|
+
* Gets the Draft (Internal) children of a parent item.
|
|
98
|
+
* @param config
|
|
99
|
+
* @param request
|
|
100
|
+
* @param signal
|
|
101
|
+
* @returns OK if succeeded.
|
|
102
|
+
*/
|
|
103
|
+
export declare const getContentDraftChildren: (
|
|
104
|
+
config: TideClientConfig,
|
|
105
|
+
request: ContentByParentRequest,
|
|
106
|
+
signal?: AbortSignal | undefined
|
|
107
|
+
) => Promise<PublishedContent>;
|
|
@@ -1,20 +1,29 @@
|
|
|
1
|
-
import { TideClientConfig } from "../types";
|
|
2
|
-
/**
|
|
3
|
-
* api/web/file/feed
|
|
4
|
-
* fetch a xml from blob feed.
|
|
5
|
-
* @param config
|
|
6
|
-
* @param slug
|
|
7
|
-
* @param signal
|
|
8
|
-
* @returns OK if succeeded.
|
|
9
|
-
*/
|
|
10
|
-
export declare const feedXml: (
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
* @
|
|
19
|
-
|
|
20
|
-
|
|
1
|
+
import { TideClientConfig } from "../types";
|
|
2
|
+
/**
|
|
3
|
+
* api/web/file/feed
|
|
4
|
+
* fetch a xml from blob feed.
|
|
5
|
+
* @param config
|
|
6
|
+
* @param slug
|
|
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>;
|
|
15
|
+
/**
|
|
16
|
+
* api/web/file/feed
|
|
17
|
+
* fetch a xml from blob feed in subfolder.
|
|
18
|
+
* @param config
|
|
19
|
+
* @param slug
|
|
20
|
+
* @param folder
|
|
21
|
+
* @param signal
|
|
22
|
+
* @returns OK if succeeded.
|
|
23
|
+
*/
|
|
24
|
+
export declare const feedXmlFolder: (
|
|
25
|
+
config: TideClientConfig,
|
|
26
|
+
slug: string,
|
|
27
|
+
folder: string,
|
|
28
|
+
signal?: AbortSignal | undefined
|
|
29
|
+
) => Promise<Response>;
|
|
@@ -1,20 +1,36 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
*
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
1
|
+
import {
|
|
2
|
+
TideClientConfig,
|
|
3
|
+
TideWebForm,
|
|
4
|
+
TideWebFormContext,
|
|
5
|
+
WebFormSubmitRequest,
|
|
6
|
+
} from "../types";
|
|
7
|
+
/**
|
|
8
|
+
* api/web/form/:id
|
|
9
|
+
* Retrieve a form.
|
|
10
|
+
* @param config
|
|
11
|
+
* @param request
|
|
12
|
+
* @param signal
|
|
13
|
+
* @returns TideWebForm
|
|
14
|
+
*/
|
|
15
|
+
export declare const readForm: (
|
|
16
|
+
config: TideClientConfig,
|
|
17
|
+
id: number,
|
|
18
|
+
contexts: TideWebFormContext[],
|
|
19
|
+
languageCode: string,
|
|
20
|
+
signal?: AbortSignal | undefined
|
|
21
|
+
) => Promise<TideWebForm>;
|
|
22
|
+
/**
|
|
23
|
+
* api/web/form/:id/submit
|
|
24
|
+
* Submits the form data
|
|
25
|
+
* @param config
|
|
26
|
+
* @param id
|
|
27
|
+
* @param request
|
|
28
|
+
* @param signal
|
|
29
|
+
* @returns OK on success
|
|
30
|
+
*/
|
|
31
|
+
export declare const submitForm: (
|
|
32
|
+
config: TideClientConfig,
|
|
33
|
+
id: number,
|
|
34
|
+
request: WebFormSubmitRequest,
|
|
35
|
+
signal?: AbortSignal | undefined
|
|
36
|
+
) => Promise<Response>;
|