@qite/tide-client 1.1.55 → 1.1.57

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