@qite/tide-client 2.0.21 → 2.0.22

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.
Files changed (259) hide show
  1. package/build/index.d.ts +14 -17
  2. package/build/index.js +5490 -5854
  3. package/build/index.js.map +1 -1
  4. package/build/services/odata.service.d.ts +2 -8
  5. package/build/types/booking-v2/index.d.ts +3 -3
  6. package/build/types/booking-v2/request/available-countries-request.d.ts +4 -4
  7. package/build/types/booking-v2/request/available-flights-request.d.ts +8 -8
  8. package/build/types/booking-v2/request/bookable-dates-request.d.ts +4 -4
  9. package/build/types/booking-v2/request/booking-package-address.d.ts +14 -14
  10. package/build/types/booking-v2/request/booking-package-book-request.d.ts +26 -26
  11. package/build/types/booking-v2/request/booking-package-customer-request.d.ts +4 -4
  12. package/build/types/booking-v2/request/booking-package-destination.d.ts +9 -9
  13. package/build/types/booking-v2/request/booking-package-details-request.d.ts +28 -28
  14. package/build/types/booking-v2/request/booking-package-flight-pool-request.d.ts +12 -12
  15. package/build/types/booking-v2/request/booking-package-request.d.ts +5 -5
  16. package/build/types/booking-v2/request/booking-package-search-request.d.ts +30 -30
  17. package/build/types/booking-v2/request/booking-package-update-request.d.ts +4 -4
  18. package/build/types/booking-v2/request/booking-package-voucher-request.d.ts +4 -4
  19. package/build/types/booking-v2/request/flight-lines-request.d.ts +3 -3
  20. package/build/types/booking-v2/request/index.d.ts +23 -23
  21. package/build/types/booking-v2/request/packaging/packaging-accommodation-request.d.ts +36 -36
  22. package/build/types/booking-v2/request/packaging/packaging-request-base.d.ts +7 -7
  23. package/build/types/booking-v2/request/packaging/packaging-traject-request.d.ts +13 -13
  24. package/build/types/booking-v2/request/prices-request.d.ts +17 -17
  25. package/build/types/booking-v2/request/reprice-and-issue-ticket-request.d.ts +3 -3
  26. package/build/types/booking-v2/request/selected-flight.d.ts +14 -14
  27. package/build/types/booking-v2/request/selected-hotel.d.ts +5 -5
  28. package/build/types/booking-v2/request/tour-codes.request.d.ts +3 -3
  29. package/build/types/booking-v2/request/transport-dates-request.d.ts +14 -14
  30. package/build/types/booking-v2/response/available-country.d.ts +5 -5
  31. package/build/types/booking-v2/response/available-flight.d.ts +4 -4
  32. package/build/types/booking-v2/response/base-price.d.ts +7 -7
  33. package/build/types/booking-v2/response/bookable-dates.d.ts +4 -4
  34. package/build/types/booking-v2/response/booking-package-allotment-info.d.ts +33 -33
  35. package/build/types/booking-v2/response/booking-package-dossier.d.ts +6 -6
  36. package/build/types/booking-v2/response/booking-package-entryline-flight-meta-data.d.ts +5 -5
  37. package/build/types/booking-v2/response/booking-package-flight-combination.d.ts +5 -5
  38. package/build/types/booking-v2/response/booking-package-flight-info.d.ts +9 -9
  39. package/build/types/booking-v2/response/booking-package-flight-pool.d.ts +5 -5
  40. package/build/types/booking-v2/response/booking-package-flight-route.d.ts +4 -4
  41. package/build/types/booking-v2/response/booking-package-hotel-pool.d.ts +4 -4
  42. package/build/types/booking-v2/response/booking-package-item.d.ts +43 -43
  43. package/build/types/booking-v2/response/booking-price-detail.d.ts +17 -17
  44. package/build/types/booking-v2/response/booking-price-details.d.ts +15 -15
  45. package/build/types/booking-v2/response/booking-price-per-pax.d.ts +4 -4
  46. package/build/types/booking-v2/response/booking-product-notification.d.ts +7 -7
  47. package/build/types/booking-v2/response/booking-room-status-option.d.ts +5 -5
  48. package/build/types/booking-v2/response/booking-room-status.d.ts +5 -5
  49. package/build/types/booking-v2/response/booking-travel-agent.d.ts +7 -7
  50. package/build/types/booking-v2/response/booking-validity-line.d.ts +4 -4
  51. package/build/types/booking-v2/response/booking-voucher-result.d.ts +3 -3
  52. package/build/types/booking-v2/response/changed-line.d.ts +4 -4
  53. package/build/types/booking-v2/response/elastic-result-hit.d.ts +8 -8
  54. package/build/types/booking-v2/response/elastic-result.d.ts +17 -17
  55. package/build/types/booking-v2/response/flight-lines-by-allotment.d.ts +11 -11
  56. package/build/types/booking-v2/response/index.d.ts +37 -37
  57. package/build/types/booking-v2/response/packaging/packaging-accommodation-response.d.ts +20 -20
  58. package/build/types/booking-v2/response/packaging/packaging-base-response.d.ts +25 -25
  59. package/build/types/booking-v2/response/packaging/packaging-entry.d.ts +105 -105
  60. package/build/types/booking-v2/response/packaging/packaging-flight-response.d.ts +18 -20
  61. package/build/types/booking-v2/response/packaging/packaging-traject-response.d.ts +74 -74
  62. package/build/types/booking-v2/response/packaging/packaging-transaction.d.ts +4 -4
  63. package/build/types/booking-v2/response/tide-elastic-product.d.ts +67 -67
  64. package/build/types/booking-v2/response/tide-elastic-tag.d.ts +4 -4
  65. package/build/types/booking-v2/response/tide-response.d.ts +8 -8
  66. package/build/types/booking-v2/response/tour-codes-response.d.ts +3 -3
  67. package/build/types/booking-v2/response/transport-dates-response.d.ts +4 -4
  68. package/build/types/booking-v2/shared/airline-booking-package-option.d.ts +3 -2
  69. package/build/types/booking-v2/shared/airport-booking-package-option.d.ts +3 -2
  70. package/build/types/booking-v2/shared/booking-airline-group.d.ts +6 -6
  71. package/build/types/booking-v2/shared/booking-airport-group.d.ts +6 -6
  72. package/build/types/booking-v2/shared/booking-mapping-info-item.d.ts +6 -6
  73. package/build/types/booking-v2/shared/booking-option-group.d.ts +5 -5
  74. package/build/types/booking-v2/shared/booking-option-pax.d.ts +13 -13
  75. package/build/types/booking-v2/shared/booking-option-unit.d.ts +12 -12
  76. package/build/types/booking-v2/shared/booking-package-availability.d.ts +9 -9
  77. package/build/types/booking-v2/shared/booking-package-custom-field.d.ts +4 -4
  78. package/build/types/booking-v2/shared/booking-package-entry.d.ts +5 -5
  79. package/build/types/booking-v2/shared/booking-package-flight-meta-data-line.d.ts +18 -18
  80. package/build/types/booking-v2/shared/booking-package-flight-meta-data.d.ts +10 -10
  81. package/build/types/booking-v2/shared/booking-package-flight.d.ts +18 -18
  82. package/build/types/booking-v2/shared/booking-package-hotel-option.d.ts +11 -11
  83. package/build/types/booking-v2/shared/booking-package-hotel-room.d.ts +5 -5
  84. package/build/types/booking-v2/shared/booking-package-hotel.d.ts +22 -22
  85. package/build/types/booking-v2/shared/booking-package-line.d.ts +17 -17
  86. package/build/types/booking-v2/shared/booking-package-option-mapping-info.d.ts +5 -5
  87. package/build/types/booking-v2/shared/booking-package-option.d.ts +49 -49
  88. package/build/types/booking-v2/shared/booking-package-pax-custom-field.d.ts +8 -8
  89. package/build/types/booking-v2/shared/booking-package-pax.d.ts +23 -23
  90. package/build/types/booking-v2/shared/booking-package-request-room.d.ts +5 -5
  91. package/build/types/booking-v2/shared/booking-package-room-option.d.ts +22 -22
  92. package/build/types/booking-v2/shared/booking-package-room.d.ts +5 -5
  93. package/build/types/booking-v2/shared/booking-package-tag.d.ts +5 -5
  94. package/build/types/booking-v2/shared/booking-package.d.ts +16 -16
  95. package/build/types/booking-v2/shared/index.d.ts +31 -31
  96. package/build/types/booking-v2/shared/itinerary.d.ts +41 -41
  97. package/build/types/booking-v2/shared/per-booking-package-option.d.ts +9 -9
  98. package/build/types/booking-v2/shared/per-package-option.d.ts +12 -12
  99. package/build/types/booking-v2/shared/per-pax-package-option.d.ts +5 -5
  100. package/build/types/booking-v2/shared/per-unit-package-option.d.ts +7 -7
  101. package/build/types/booking-v2/shared/room-option-pax-type.d.ts +4 -4
  102. package/build/types/company/agent/agent-invoice-item.d.ts +9 -9
  103. package/build/types/company/agent/change-entry-agent-surcharge-action.model.d.ts +5 -5
  104. package/build/types/company/agent/entry-totals.d.ts +7 -7
  105. package/build/types/company/agent/index.d.ts +3 -3
  106. package/build/types/company/agent-print-action-request.d.ts +11 -11
  107. package/build/types/company/agent-print-action.d.ts +6 -6
  108. package/build/types/company/custom-entry-status-item.d.ts +6 -6
  109. package/build/types/company/index.d.ts +5 -5
  110. package/build/types/company/number-string-pair.d.ts +4 -4
  111. package/build/types/enums/allotment-kind.d.ts +4 -4
  112. package/build/types/enums/allotment-status.d.ts +5 -5
  113. package/build/types/enums/allotment-type.d.ts +5 -5
  114. package/build/types/enums/availability-search-type.d.ts +6 -6
  115. package/build/types/enums/custom-field-data-type.d.ts +7 -7
  116. package/build/types/enums/data-type.d.ts +14 -14
  117. package/build/types/enums/date-amount-type.d.ts +4 -4
  118. package/build/types/enums/dossier-type.d.ts +6 -6
  119. package/build/types/enums/duration-type.d.ts +6 -6
  120. package/build/types/enums/entry-line-flag.d.ts +6 -6
  121. package/build/types/enums/entry-line-status.d.ts +19 -19
  122. package/build/types/enums/entry-status.d.ts +8 -8
  123. package/build/types/enums/export-status.d.ts +5 -5
  124. package/build/types/enums/form-field-type.d.ts +12 -12
  125. package/build/types/enums/form-field-width.d.ts +8 -8
  126. package/build/types/enums/form-type.d.ts +4 -4
  127. package/build/types/enums/gender.d.ts +5 -5
  128. package/build/types/enums/height-type.d.ts +4 -4
  129. package/build/types/enums/index.d.ts +34 -34
  130. package/build/types/enums/meta-data-item-property-type.d.ts +6 -6
  131. package/build/types/enums/meta-data-type.d.ts +10 -10
  132. package/build/types/enums/note-type.d.ts +8 -8
  133. package/build/types/enums/payment-type.d.ts +6 -6
  134. package/build/types/enums/portal-qsm-type.d.ts +13 -13
  135. package/build/types/enums/price-chart-type.d.ts +4 -4
  136. package/build/types/enums/print-action-group.d.ts +10 -10
  137. package/build/types/enums/requirement-type.d.ts +5 -5
  138. package/build/types/enums/room-type.d.ts +8 -8
  139. package/build/types/enums/route-transport-type.d.ts +19 -19
  140. package/build/types/enums/sale-type.d.ts +4 -4
  141. package/build/types/enums/service-type.d.ts +33 -33
  142. package/build/types/enums/traject-node-type.d.ts +6 -6
  143. package/build/types/enums/unit-of-measure.d.ts +5 -5
  144. package/build/types/enums/vendor-type.d.ts +24 -24
  145. package/build/types/enums/weight-type.d.ts +4 -4
  146. package/build/types/hubs/index.d.ts +1 -1
  147. package/build/types/hubs/search/flight-search-finish-response.d.ts +4 -4
  148. package/build/types/hubs/search/flight-search-request.d.ts +32 -32
  149. package/build/types/hubs/search/flight-search-response.d.ts +59 -53
  150. package/build/types/hubs/search/index.d.ts +3 -3
  151. package/build/types/index.d.ts +10 -10
  152. package/build/types/mollie/index.d.ts +2 -2
  153. package/build/types/mollie/mollie-payment-request.d.ts +7 -7
  154. package/build/types/mollie/mollie-payment.d.ts +3 -3
  155. package/build/types/odata/column.d.ts +8 -8
  156. package/build/types/odata/filter-item.d.ts +14 -14
  157. package/build/types/odata/index.d.ts +4 -4
  158. package/build/types/odata/odata-params.d.ts +3 -3
  159. package/build/types/odata/page-result.d.ts +5 -5
  160. package/build/types/offer/address-item.d.ts +30 -30
  161. package/build/types/offer/allotment-meta-data.d.ts +6 -6
  162. package/build/types/offer/confirmed-dossier-check.d.ts +6 -6
  163. package/build/types/offer/country-item.d.ts +5 -5
  164. package/build/types/offer/crm-contact-request.d.ts +28 -36
  165. package/build/types/offer/customer-request.d.ts +5 -5
  166. package/build/types/offer/dossier-default-product.d.ts +14 -14
  167. package/build/types/offer/dossier-pax-item.d.ts +4 -4
  168. package/build/types/offer/dossier-view-result.d.ts +48 -48
  169. package/build/types/offer/entry-check-response.d.ts +8 -8
  170. package/build/types/offer/entry-light.d.ts +41 -41
  171. package/build/types/offer/entry-line-meta-data.d.ts +5 -5
  172. package/build/types/offer/entry-line-pax.d.ts +8 -8
  173. package/build/types/offer/entry-line.d.ts +67 -73
  174. package/build/types/offer/entry-price-line.d.ts +40 -40
  175. package/build/types/offer/entry-room.d.ts +6 -6
  176. package/build/types/offer/entry-room2.d.ts +5 -5
  177. package/build/types/offer/entry.d.ts +55 -65
  178. package/build/types/offer/flight-data-segment-meta-data.d.ts +31 -31
  179. package/build/types/offer/flight-meta-data-line.d.ts +16 -16
  180. package/build/types/offer/flight-meta-data.d.ts +13 -13
  181. package/build/types/offer/flight-pool.d.ts +5 -5
  182. package/build/types/offer/geographical-region.d.ts +32 -32
  183. package/build/types/offer/index.d.ts +46 -46
  184. package/build/types/offer/item-tag.d.ts +3 -3
  185. package/build/types/offer/language.d.ts +5 -5
  186. package/build/types/offer/location-item.d.ts +5 -5
  187. package/build/types/offer/member-confirmation-request.d.ts +5 -5
  188. package/build/types/offer/member-forgot-password-request.d.ts +5 -5
  189. package/build/types/offer/member-info.d.ts +14 -14
  190. package/build/types/offer/member-login-request.d.ts +5 -5
  191. package/build/types/offer/member-login-response.d.ts +3 -3
  192. package/build/types/offer/member-reset-password-request.d.ts +4 -4
  193. package/build/types/offer/note.d.ts +16 -16
  194. package/build/types/offer/pax.d.ts +29 -29
  195. package/build/types/offer/payment.d.ts +20 -20
  196. package/build/types/offer/person-country-preference.d.ts +7 -7
  197. package/build/types/offer/person-location-preference.d.ts +7 -7
  198. package/build/types/offer/person-oord-preference.d.ts +7 -7
  199. package/build/types/offer/person-period-date-range-preference.d.ts +6 -6
  200. package/build/types/offer/person-period-preference.d.ts +7 -7
  201. package/build/types/offer/person-region-preference.d.ts +7 -7
  202. package/build/types/offer/person-tour-group-preference.d.ts +7 -7
  203. package/build/types/offer/product-notification-result.d.ts +9 -9
  204. package/build/types/offer/publishing/geo-json-point.d.ts +4 -4
  205. package/build/types/offer/publishing/index.d.ts +4 -4
  206. package/build/types/offer/publishing/mail.d.ts +15 -15
  207. package/build/types/offer/publishing/published-content-item.d.ts +22 -22
  208. package/build/types/offer/publishing/published-content.d.ts +10 -10
  209. package/build/types/offer/web-contact-form-request.d.ts +13 -13
  210. package/build/types/offer/web-contact-has-tag-request.d.ts +4 -4
  211. package/build/types/shared/date-struct.d.ts +5 -5
  212. package/build/types/shared/index.d.ts +2 -2
  213. package/build/types/shared/ticket-number.d.ts +5 -5
  214. package/build/types/tide-client-config.d.ts +5 -5
  215. package/build/types/web/affiliate.d.ts +5 -5
  216. package/build/types/web/agent-allotment-item.d.ts +31 -31
  217. package/build/types/web/agent-allotment.d.ts +32 -32
  218. package/build/types/web/agent-dossier-allotment-item.d.ts +8 -8
  219. package/build/types/web/agent-dossier-allotment.d.ts +14 -14
  220. package/build/types/web/agent-dossier-book-feedback.d.ts +5 -5
  221. package/build/types/web/agent-dossier-entry-line.d.ts +8 -8
  222. package/build/types/web/agent-dossier-flight-meta-data-line.d.ts +18 -18
  223. package/build/types/web/agent-dossier-flight-meta-data.d.ts +6 -6
  224. package/build/types/web/agent-dossier-item.d.ts +18 -18
  225. package/build/types/web/agent-dossier-traveler.d.ts +10 -10
  226. package/build/types/web/agent-dossier.d.ts +19 -19
  227. package/build/types/web/airport.d.ts +6 -6
  228. package/build/types/web/contact-form-request.d.ts +11 -11
  229. package/build/types/web/content-by-parent-request.d.ts +4 -4
  230. package/build/types/web/content-by-property-request.d.ts +9 -9
  231. package/build/types/web/content-by-template-request.d.ts +5 -5
  232. package/build/types/web/content-filter-request.d.ts +4 -4
  233. package/build/types/web/generate-booking-accommodation-request.d.ts +6 -6
  234. package/build/types/web/index.d.ts +26 -26
  235. package/build/types/web/locations-request.d.ts +3 -3
  236. package/build/types/web/portal.d.ts +8 -8
  237. package/build/types/web/style-sheet.d.ts +7 -7
  238. package/build/types/web/tide-location.d.ts +9 -9
  239. package/build/types/web/web-contact.d.ts +9 -9
  240. package/build/types/web/web-form.d.ts +68 -68
  241. package/build/types/web/web-opportunity-request.d.ts +9 -9
  242. package/build/types/web/website-configuration.d.ts +36 -36
  243. package/build/utils/api.d.ts +3 -23
  244. package/build/utils/booking-v2-client.d.ts +28 -172
  245. package/build/utils/common-client.d.ts +3 -26
  246. package/build/utils/json.d.ts +2 -2
  247. package/build/utils/member-client.d.ts +7 -32
  248. package/build/utils/mollie-client.d.ts +7 -15
  249. package/build/utils/packaging-client.d.ts +12 -59
  250. package/build/utils/search-client.d.ts +24 -60
  251. package/build/utils/service-token.d.ts +16 -23
  252. package/build/utils/web-agent-client.d.ts +28 -98
  253. package/build/utils/web-client.d.ts +75 -136
  254. package/build/utils/web-contact-client.d.ts +11 -23
  255. package/build/utils/web-content-client.d.ts +89 -134
  256. package/build/utils/web-file.d.ts +20 -29
  257. package/build/utils/web-form.d.ts +20 -36
  258. package/package.json +67 -67
  259. package/build/types/booking-v2/request/price-list-request.d.ts +0 -3
@@ -1,59 +1,12 @@
1
- import { TideClientConfig } from "..";
2
- import {
3
- PackagingTransaction,
4
- PackagingAccommodationRequest,
5
- PackagingAccommodationResponse,
6
- PackagingEntry,
7
- BookingPriceDetails,
8
- ClientPortalItinerary,
9
- FlightSearchRequest,
10
- PackagingFlightResponse,
11
- BookingPackageDossier,
12
- PackagingTrajectRequest,
13
- PackagingTrajectResponse,
14
- } from "../types";
15
- import { PackagingRequestBase } from "../types/booking-v2/request/packaging/packaging-request-base";
16
- export declare const startTransaction: (
17
- config: TideClientConfig,
18
- signal?: AbortSignal | undefined
19
- ) => Promise<PackagingTransaction>;
20
- export declare const searchPackagingAccommodations: (
21
- config: TideClientConfig,
22
- request: PackagingAccommodationRequest,
23
- signal?: AbortSignal | undefined
24
- ) => Promise<PackagingAccommodationResponse[]>;
25
- export declare const searchPackagingFlights: (
26
- config: TideClientConfig,
27
- request: FlightSearchRequest,
28
- signal?: AbortSignal | undefined
29
- ) => Promise<PackagingFlightResponse[]>;
30
- export declare const searchPackagingExcursions: (
31
- config: TideClientConfig,
32
- request: PackagingAccommodationRequest,
33
- signal?: AbortSignal | undefined
34
- ) => Promise<PackagingAccommodationResponse[]>;
35
- export declare const getEntry: (
36
- config: TideClientConfig,
37
- magicLinkCode: string,
38
- signal?: AbortSignal | undefined
39
- ) => Promise<PackagingEntry>;
40
- export declare const getTrajectEntry: (
41
- config: TideClientConfig,
42
- request: PackagingTrajectRequest,
43
- signal?: AbortSignal | undefined
44
- ) => Promise<PackagingTrajectResponse>;
45
- export declare const getPriceDetails: (
46
- config: TideClientConfig,
47
- request: PackagingRequestBase<PackagingEntry>,
48
- signal?: AbortSignal | undefined
49
- ) => Promise<BookingPriceDetails>;
50
- export declare const getItinerary: (
51
- config: TideClientConfig,
52
- request: PackagingRequestBase<PackagingEntry>,
53
- signal?: AbortSignal | undefined
54
- ) => Promise<ClientPortalItinerary>;
55
- export declare const bookPackagingEntry: (
56
- config: TideClientConfig,
57
- request: PackagingRequestBase<PackagingEntry>,
58
- signal?: AbortSignal | undefined
59
- ) => Promise<BookingPackageDossier>;
1
+ import { TideClientConfig } from "..";
2
+ import { PackagingTransaction, PackagingAccommodationRequest, PackagingAccommodationResponse, PackagingEntry, BookingPriceDetails, ClientPortalItinerary, FlightSearchRequest, PackagingFlightResponse, BookingPackageDossier, PackagingTrajectRequest, PackagingTrajectResponse } from "../types";
3
+ import { PackagingRequestBase } from "../types/booking-v2/request/packaging/packaging-request-base";
4
+ export declare const startTransaction: (config: TideClientConfig, signal?: AbortSignal | undefined) => Promise<PackagingTransaction>;
5
+ export declare const searchPackagingAccommodations: (config: TideClientConfig, request: PackagingAccommodationRequest, signal?: AbortSignal | undefined) => Promise<PackagingAccommodationResponse[]>;
6
+ export declare const searchPackagingFlights: (config: TideClientConfig, request: FlightSearchRequest, signal?: AbortSignal | undefined) => Promise<PackagingFlightResponse[]>;
7
+ export declare const searchPackagingExcursions: (config: TideClientConfig, request: PackagingAccommodationRequest, signal?: AbortSignal | undefined) => Promise<PackagingAccommodationResponse[]>;
8
+ export declare const getEntry: (config: TideClientConfig, magicLinkCode: string, signal?: AbortSignal | undefined) => Promise<PackagingEntry>;
9
+ export declare const getTrajectEntry: (config: TideClientConfig, request: PackagingTrajectRequest, signal?: AbortSignal | undefined) => Promise<PackagingTrajectResponse>;
10
+ export declare const getPriceDetails: (config: TideClientConfig, request: PackagingRequestBase<PackagingEntry>, signal?: AbortSignal | undefined) => Promise<BookingPriceDetails>;
11
+ export declare const getItinerary: (config: TideClientConfig, request: PackagingRequestBase<PackagingEntry>, signal?: AbortSignal | undefined) => Promise<ClientPortalItinerary>;
12
+ export declare const bookPackagingEntry: (config: TideClientConfig, request: PackagingRequestBase<PackagingEntry>, signal?: AbortSignal | undefined) => Promise<BookingPackageDossier>;
@@ -1,60 +1,24 @@
1
- import {
2
- AirportItem,
3
- CountryItem,
4
- GeographicalRegion,
5
- PageResult,
6
- Portal,
7
- TideClientConfig,
8
- } from "../types";
9
- import { LocationItem } from "../types/offer/location-item";
10
- /**
11
- * api/search/countries
12
- * Gets all Countries
13
- * @param config
14
- * @param signal
15
- * @returns OK if succeeded.
16
- */
17
- export declare const getCountries: (
18
- config: TideClientConfig,
19
- signal?: AbortSignal | undefined
20
- ) => Promise<PageResult<CountryItem>>;
21
- export declare const searchCountries: (
22
- config: TideClientConfig,
23
- searchTerm: string,
24
- signal?: AbortSignal | undefined
25
- ) => Promise<PageResult<CountryItem>>;
26
- export declare const searchRegions: (
27
- config: TideClientConfig,
28
- searchTerm: string,
29
- signal?: AbortSignal | undefined
30
- ) => Promise<PageResult<LocationItem>>;
31
- export declare const searchOords: (
32
- config: TideClientConfig,
33
- searchTerm: string,
34
- signal?: AbortSignal | undefined
35
- ) => Promise<PageResult<LocationItem>>;
36
- export declare const searchLocations: (
37
- config: TideClientConfig,
38
- searchTerm: string,
39
- signal?: AbortSignal | undefined
40
- ) => Promise<PageResult<LocationItem>>;
41
- /**
42
- * api/web/search/geographicalregions
43
- * Gets all available Geographical Regions
44
- * @param config
45
- * @param signal
46
- * @returns OK if succeeded.
47
- */
48
- export declare const getAvailableGeographicalRegions: (
49
- config: TideClientConfig,
50
- signal?: AbortSignal | undefined
51
- ) => Promise<GeographicalRegion[]>;
52
- export declare const getPortal: (
53
- config: TideClientConfig,
54
- portalId: number,
55
- signal?: AbortSignal | undefined
56
- ) => Promise<Portal>;
57
- export declare const getAirports: (
58
- config: TideClientConfig,
59
- signal?: AbortSignal | undefined
60
- ) => Promise<AirportItem[]>;
1
+ import { AirportItem, CountryItem, GeographicalRegion, PageResult, Portal, TideClientConfig } from "../types";
2
+ import { LocationItem } from "../types/offer/location-item";
3
+ /**
4
+ * api/search/countries
5
+ * Gets all Countries
6
+ * @param config
7
+ * @param signal
8
+ * @returns OK if succeeded.
9
+ */
10
+ export declare const getCountries: (config: TideClientConfig, signal?: AbortSignal | undefined) => Promise<PageResult<CountryItem>>;
11
+ export declare const searchCountries: (config: TideClientConfig, searchTerm: string, signal?: AbortSignal | undefined) => Promise<PageResult<CountryItem>>;
12
+ export declare const searchRegions: (config: TideClientConfig, searchTerm: string, signal?: AbortSignal | undefined) => Promise<PageResult<LocationItem>>;
13
+ export declare const searchOords: (config: TideClientConfig, searchTerm: string, signal?: AbortSignal | undefined) => Promise<PageResult<LocationItem>>;
14
+ export declare const searchLocations: (config: TideClientConfig, searchTerm: string, signal?: AbortSignal | undefined) => Promise<PageResult<LocationItem>>;
15
+ /**
16
+ * api/web/search/geographicalregions
17
+ * Gets all available Geographical Regions
18
+ * @param config
19
+ * @param signal
20
+ * @returns OK if succeeded.
21
+ */
22
+ export declare const getAvailableGeographicalRegions: (config: TideClientConfig, signal?: AbortSignal | undefined) => Promise<GeographicalRegion[]>;
23
+ export declare const getPortal: (config: TideClientConfig, portalId: number, signal?: AbortSignal | undefined) => Promise<Portal>;
24
+ export declare const getAirports: (config: TideClientConfig, signal?: AbortSignal | undefined) => Promise<AirportItem[]>;
@@ -1,23 +1,16 @@
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
+ 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: (host: string, apiKey: string, forceRefresh?: boolean) => Promise<string>;
12
+ /**
13
+ * Clears the cached service token for a given host+apiKey. Useful for
14
+ * manual invalidation (e.g. a runtime key rotation) and test isolation.
15
+ */
16
+ export declare const clearServiceTokenCache: (host: string, apiKey: string) => void;
@@ -1,98 +1,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
+ import { AgentAllotment, AgentAllotmentItem, AgentDossier, AgentInvoiceItem, AgentPrintAction, AgentPrintActionRequest, ChangeEntryAgentSurchargeAction, Column, CustomEntryStatusItem, DossierViewResult, EntryTotals, FilterItem, NumberStringPair, PageResult, PrintActionGroup, TideClientConfig } from "../types";
2
+ import { AgentDossierItem } from "../types/web/agent-dossier-item";
3
+ /**
4
+ * api/web/agent/print-action/{print-action-group}
5
+ * @param config
6
+ * @param printActionGroup
7
+ * @param signal
8
+ * @returns print actions that are available for agents for given group.
9
+ */
10
+ export declare const getPrintActions: (config: TideClientConfig, printActionGroup: PrintActionGroup, signal?: AbortSignal | undefined) => Promise<AgentPrintAction[]>;
11
+ /**
12
+ * api/web/agent/print-action
13
+ * @param config
14
+ * @param request
15
+ * @param signal
16
+ * @returns pdf as stream.
17
+ */
18
+ export declare const print: (config: TideClientConfig, request: AgentPrintActionRequest, signal?: AbortSignal | undefined) => Promise<Response>;
19
+ export declare const getEntryList: (config: TideClientConfig, filterItem: FilterItem, gridColumns?: Column[] | undefined, signal?: AbortSignal | undefined) => Promise<PageResult<DossierViewResult>>;
20
+ export declare const getEntryListv2: (config: TideClientConfig, filterItem: FilterItem, gridColumns?: Column[] | undefined, signal?: AbortSignal | undefined) => Promise<PageResult<AgentDossierItem>>;
21
+ export declare const getEntryTotals: (config: TideClientConfig, filterItem: FilterItem, gridColumns?: Column[] | undefined, signal?: AbortSignal | undefined) => Promise<EntryTotals>;
22
+ export declare const getEntryDetailv2: (config: TideClientConfig, entryId: number, signal?: AbortSignal | undefined) => Promise<AgentDossier>;
23
+ export declare const getInvoiceList: (config: TideClientConfig, filterItem: FilterItem, gridColumns?: Column[] | undefined, signal?: AbortSignal | undefined) => Promise<PageResult<AgentInvoiceItem>>;
24
+ export declare const getCustomEntryStatus: (config: TideClientConfig, signal?: AbortSignal | undefined, languageCode?: string | undefined) => Promise<CustomEntryStatusItem[]>;
25
+ export declare const getEntryStatus: (config: TideClientConfig, signal?: AbortSignal | undefined, languageCode?: string | undefined) => Promise<NumberStringPair[]>;
26
+ export declare const changeEntryAgentSurcharge: (config: TideClientConfig, request: ChangeEntryAgentSurchargeAction, signal?: AbortSignal | undefined) => Promise<Response>;
27
+ export declare const getAllotmentList: (config: TideClientConfig, filterItem: FilterItem, gridColumns?: Column[] | undefined, signal?: AbortSignal | undefined) => Promise<PageResult<AgentAllotmentItem>>;
28
+ export declare const getAllotment: (config: TideClientConfig, allotmentId: number, signal?: AbortSignal | undefined) => Promise<AgentAllotment>;
@@ -1,136 +1,75 @@
1
- import {
2
- AddressItem,
3
- Affiliate,
4
- ContactFormRequest,
5
- CrmContactRequest,
6
- GenerateBookingAccommodationRequest,
7
- LocationsRequest,
8
- Mail,
9
- PageResult,
10
- TideClientConfig,
11
- TideLocation,
12
- WebOpportunityRequest,
13
- WebsiteConfiguration,
14
- StyleSheet,
15
- } from "../types";
16
- /**
17
- * api/web/mail
18
- * Adds the sender as a person and sends a mail.
19
- * @param config
20
- * @param request
21
- * @param signal
22
- * @returns OK if succeeded.
23
- */
24
- export declare const sendMail: (
25
- config: TideClientConfig,
26
- request: Mail,
27
- signal?: AbortSignal | undefined
28
- ) => Promise<Response>;
29
- /**
30
- * api/web/crmcontact
31
- * Creates a CRM contact.
32
- * @param config
33
- * @param request
34
- * @param signal
35
- * @returns OK if succeeded.
36
- */
37
- export declare const createCrmContact: (
38
- config: TideClientConfig,
39
- request: CrmContactRequest,
40
- signal?: AbortSignal | undefined
41
- ) => Promise<Response>;
42
- /**
43
- * api/web/contactform
44
- * Sends a contact request mail
45
- * @param config
46
- * @param request
47
- * @param signal
48
- * @returns OK if succeeded.
49
- */
50
- export declare const sendContactForm: (
51
- config: TideClientConfig,
52
- request: ContactFormRequest,
53
- signal?: AbortSignal | undefined
54
- ) => Promise<Response>;
55
- /**
56
- * api/web/travelagents
57
- * Searches travel agents (addresses of type Agent). Optionally pass a raw OData
58
- * query string (without leading '?'), e.g. "$top=20&$filter=contains(name,'foo')".
59
- * @param config
60
- * @param odataQuery
61
- * @param signal
62
- * @returns OK if succeeded.
63
- */
64
- export declare const getTravelAgents: (
65
- config: TideClientConfig,
66
- odataQuery?: string | undefined,
67
- signal?: AbortSignal | undefined
68
- ) => Promise<PageResult<AddressItem>>;
69
- /**
70
- * api/web/affiliates
71
- * Gets all Affiliates
72
- * @param config
73
- * @param signal
74
- * @returns OK if succeeded.
75
- */
76
- export declare const getAffiliates: (
77
- config: TideClientConfig,
78
- signal?: AbortSignal | undefined
79
- ) => Promise<[Affiliate]>;
80
- export declare const getTranslationDictionary: (
81
- config: TideClientConfig,
82
- segmentKey: string,
83
- signal?: AbortSignal | undefined
84
- ) => Promise<{
85
- [key: string]: object;
86
- }>;
87
- export declare const generateBookingAccommodations: (
88
- config: TideClientConfig,
89
- request: GenerateBookingAccommodationRequest,
90
- signal?: AbortSignal | undefined
91
- ) => Promise<{
92
- [key: string]: string;
93
- }>;
94
- /**
95
- * api/web/opportunity
96
- * Creates a CRM opportunity from a web contact.
97
- * @param config
98
- * @param request
99
- * @param signal
100
- * @returns OK if succeeded.
101
- */
102
- export declare const createOpportunity: (
103
- config: TideClientConfig,
104
- request: WebOpportunityRequest,
105
- signal?: AbortSignal | undefined
106
- ) => Promise<Response>;
107
- /**
108
- * api/web/entry/{entryId}/calculate-deposit
109
- * Calculates the deposit amount for an entry.
110
- * @param config
111
- * @param entryId
112
- * @param signal
113
- * @returns The deposit amount.
114
- */
115
- export declare const calculateDeposit: (
116
- config: TideClientConfig,
117
- entryId: number,
118
- signal?: AbortSignal | undefined
119
- ) => Promise<{
120
- amount: number;
121
- }>;
122
- export declare const getLocations: (
123
- config: TideClientConfig,
124
- request: LocationsRequest,
125
- signal?: AbortSignal | undefined
126
- ) => Promise<TideLocation[]>;
127
- export declare const getWebsiteConfiguration: (
128
- config: TideClientConfig,
129
- id: number,
130
- signal?: AbortSignal | undefined
131
- ) => Promise<WebsiteConfiguration>;
132
- export declare const getStyleSheet: (
133
- config: TideClientConfig,
134
- id: number,
135
- signal?: AbortSignal | undefined
136
- ) => Promise<StyleSheet>;
1
+ import { AddressItem, Affiliate, ContactFormRequest, CrmContactRequest, GenerateBookingAccommodationRequest, LocationsRequest, Mail, PageResult, TideClientConfig, TideLocation, WebOpportunityRequest, WebsiteConfiguration, StyleSheet } from "../types";
2
+ /**
3
+ * api/web/mail
4
+ * Adds the sender as a person and sends a mail.
5
+ * @param config
6
+ * @param request
7
+ * @param signal
8
+ * @returns OK if succeeded.
9
+ */
10
+ export declare const sendMail: (config: TideClientConfig, request: Mail, signal?: AbortSignal | undefined) => Promise<Response>;
11
+ /**
12
+ * api/web/crmcontact
13
+ * Creates a CRM contact.
14
+ * @param config
15
+ * @param request
16
+ * @param signal
17
+ * @returns OK if succeeded.
18
+ */
19
+ export declare const createCrmContact: (config: TideClientConfig, request: CrmContactRequest, signal?: AbortSignal | undefined) => Promise<Response>;
20
+ /**
21
+ * api/web/contactform
22
+ * Sends a contact request mail
23
+ * @param config
24
+ * @param request
25
+ * @param signal
26
+ * @returns OK if succeeded.
27
+ */
28
+ export declare const sendContactForm: (config: TideClientConfig, request: ContactFormRequest, signal?: AbortSignal | undefined) => Promise<Response>;
29
+ /**
30
+ * api/web/travelagents
31
+ * Searches travel agents (addresses of type Agent). Optionally pass a raw OData
32
+ * query string (without leading '?'), e.g. "$top=20&$filter=contains(name,'foo')".
33
+ * @param config
34
+ * @param odataQuery
35
+ * @param signal
36
+ * @returns OK if succeeded.
37
+ */
38
+ export declare const getTravelAgents: (config: TideClientConfig, odataQuery?: string | undefined, signal?: AbortSignal | undefined) => Promise<PageResult<AddressItem>>;
39
+ /**
40
+ * api/web/affiliates
41
+ * Gets all Affiliates
42
+ * @param config
43
+ * @param signal
44
+ * @returns OK if succeeded.
45
+ */
46
+ export declare const getAffiliates: (config: TideClientConfig, signal?: AbortSignal | undefined) => Promise<[Affiliate]>;
47
+ export declare const getTranslationDictionary: (config: TideClientConfig, segmentKey: string, signal?: AbortSignal | undefined) => Promise<{
48
+ [key: string]: object;
49
+ }>;
50
+ export declare const generateBookingAccommodations: (config: TideClientConfig, request: GenerateBookingAccommodationRequest, signal?: AbortSignal | undefined) => Promise<{
51
+ [key: string]: string;
52
+ }>;
53
+ /**
54
+ * api/web/opportunity
55
+ * Creates a CRM opportunity from a web contact.
56
+ * @param config
57
+ * @param request
58
+ * @param signal
59
+ * @returns OK if succeeded.
60
+ */
61
+ export declare const createOpportunity: (config: TideClientConfig, request: WebOpportunityRequest, signal?: AbortSignal | undefined) => Promise<Response>;
62
+ /**
63
+ * api/web/entry/{entryId}/calculate-deposit
64
+ * Calculates the deposit amount for an entry.
65
+ * @param config
66
+ * @param entryId
67
+ * @param signal
68
+ * @returns The deposit amount.
69
+ */
70
+ export declare const calculateDeposit: (config: TideClientConfig, entryId: number, signal?: AbortSignal | undefined) => Promise<{
71
+ amount: number;
72
+ }>;
73
+ export declare const getLocations: (config: TideClientConfig, request: LocationsRequest, signal?: AbortSignal | undefined) => Promise<TideLocation[]>;
74
+ export declare const getWebsiteConfiguration: (config: TideClientConfig, id: number, signal?: AbortSignal | undefined) => Promise<WebsiteConfiguration>;
75
+ export declare const getStyleSheet: (config: TideClientConfig, id: number, signal?: AbortSignal | undefined) => Promise<StyleSheet>;
@@ -1,23 +1,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
+ import { TideClientConfig, WebContactFormRequest, WebContactHasTagRequest } from "../types";
2
+ /**
3
+ * api/web/contact/contact-form
4
+ * Processes a contact form.
5
+ * @param config
6
+ * @param request
7
+ * @param signal
8
+ * @returns OK if succeeded.
9
+ */
10
+ export declare const contactForm: (config: TideClientConfig, request: WebContactFormRequest, signal?: AbortSignal | undefined) => Promise<Response>;
11
+ export declare const contactHasTag: (config: TideClientConfig, request: WebContactHasTagRequest, signal?: AbortSignal | undefined) => Promise<Response>;