@sabstravtech/obtservices 0.0.19020100 → 0.0.22041208

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 (241) hide show
  1. package/angular/components/with-component.d.ts +2 -1
  2. package/angular/fetchers.d.ts +17 -12
  3. package/angular/lib/vendor/classes/helpers.d.ts +8 -0
  4. package/angular/lib/vendor/fetchers/apply-JIT-hotel-rules.fetcher.d.ts +7 -0
  5. package/angular/lib/vendor/fetchers/apply-jit-flight-rules.d.ts +7 -0
  6. package/angular/lib/vendor/fetchers/basket-fetcher.d.ts +2 -1
  7. package/angular/lib/vendor/fetchers/conferma-office.fetcher.d.ts +2 -1
  8. package/angular/lib/vendor/fetchers/flight-fare-rules.fetcher.d.ts +7 -0
  9. package/angular/lib/vendor/fetchers/flight-quote.fetcher.d.ts +2 -1
  10. package/angular/lib/vendor/fetchers/get-conferma-room-images.fetcher.d.ts +7 -0
  11. package/angular/lib/vendor/fetchers/get-covid-microsite-token.fetcher.d.ts +7 -0
  12. package/angular/lib/vendor/fetchers/get-flight-seat-map-fetcher.d.ts +7 -0
  13. package/angular/lib/vendor/fetchers/get-rail-live-departures.fetcher.d.ts +7 -0
  14. package/angular/lib/vendor/fetchers/get-user-favourite-searches.fetcher.d.ts +7 -0
  15. package/angular/lib/vendor/fetchers/irl-discount-card-fetcher.d.ts +7 -0
  16. package/angular/lib/vendor/fetchers/search-airlines-fetcher.d.ts +2 -1
  17. package/angular/lib/vendor/fetchers/search-airports-fetcher.d.ts +2 -1
  18. package/angular/lib/vendor/fetchers/search-conferma-cities.fetcher.d.ts +2 -1
  19. package/angular/lib/vendor/fetchers/user-fetcher.d.ts +2 -1
  20. package/angular/lib/vendor/services/my-bookings.service.d.ts +4 -3
  21. package/angular/lib/vendor/services/search.service.d.ts +15 -3
  22. package/angular/lib/vendor/services/user.service.d.ts +4 -3
  23. package/angular/lib/vendor/types/graphql.angular.types.d.ts +1062 -1062
  24. package/angular/lib/vendor/updaters/cancel-booking-updater.d.ts +6 -0
  25. package/angular/lib/vendor/updaters/confirm-messages-updater.d.ts +6 -0
  26. package/angular/lib/vendor/updaters/remove-favourite-search.updater.d.ts +6 -0
  27. package/angular/lib/vendor/updaters/save-favourite-search.updater.d.ts +6 -0
  28. package/angular/sabstravtech-obtservices-angular.d.ts +14 -9
  29. package/angular/sabstravtech-obtservices-angular.metadata.json +1 -1
  30. package/angular/updaters.d.ts +3 -0
  31. package/base/classes.d.ts +1 -0
  32. package/base/fetchers.d.ts +27 -3
  33. package/base/interfaces.d.ts +3 -3
  34. package/base/lib/vendor/classes/base-enterprise.d.ts +5 -2
  35. package/base/lib/vendor/classes/bookable-basket.d.ts +1 -1
  36. package/base/lib/vendor/classes/cabhire-enterprise-search.d.ts +8 -7
  37. package/base/lib/vendor/classes/carhire-enterprise-search.d.ts +11 -2
  38. package/base/lib/vendor/classes/enviroment.d.ts +2 -0
  39. package/base/lib/vendor/classes/eurostar-enterprise-search.d.ts +26 -69
  40. package/base/lib/vendor/classes/flight-enterprise-search.d.ts +39 -22
  41. package/base/lib/vendor/classes/helpers.d.ts +49 -6
  42. package/base/lib/vendor/classes/hotel-enterprise-search.d.ts +19 -8
  43. package/base/lib/vendor/classes/irl-direction.enum.d.ts +4 -0
  44. package/base/lib/vendor/classes/irl-enterprise-search.d.ts +285 -30
  45. package/base/lib/vendor/classes/lounges-enterprise-search.d.ts +7 -3
  46. package/base/lib/vendor/classes/management-info-and-valid.d.ts +1 -0
  47. package/base/lib/vendor/classes/modal-types.enum.d.ts +4 -0
  48. package/base/lib/vendor/classes/parking-enterprise-search.d.ts +7 -3
  49. package/base/lib/vendor/classes/rail-direction.enum.d.ts +2 -2
  50. package/base/lib/vendor/classes/rail-enterprise-search.d.ts +83 -54
  51. package/base/lib/vendor/classes/rail-index-to-ticket.d.ts +9 -0
  52. package/base/lib/vendor/classes/supplementary-booking-info-impl.d.ts +1 -0
  53. package/base/lib/vendor/classes/user-favourite.enum.d.ts +3 -0
  54. package/base/lib/vendor/fetchers/apply-JIT-hotel-rules.fetcher.d.ts +23 -0
  55. package/base/lib/vendor/fetchers/apply-jit-flight-rules.d.ts +21 -0
  56. package/base/lib/vendor/fetchers/basket-fetcher.d.ts +2 -1
  57. package/base/lib/vendor/fetchers/conferma-office.fetcher.d.ts +2 -1
  58. package/base/lib/vendor/fetchers/flight-fare-rules.fetcher.d.ts +21 -0
  59. package/base/lib/vendor/fetchers/flight-quote.fetcher.d.ts +6 -2
  60. package/base/lib/vendor/fetchers/get-conferma-room-images.fetcher.d.ts +21 -0
  61. package/base/lib/vendor/fetchers/get-covid-microsite-token.fetcher.d.ts +21 -0
  62. package/base/lib/vendor/fetchers/get-flight-seat-map-fetcher.d.ts +21 -0
  63. package/base/lib/vendor/fetchers/get-rail-live-departures.fetcher.d.ts +21 -0
  64. package/base/lib/vendor/fetchers/get-user-favourite-searches.fetcher.d.ts +21 -0
  65. package/base/lib/vendor/fetchers/irl-discount-card-fetcher.d.ts +21 -0
  66. package/base/lib/vendor/fetchers/list-fetchable-enterprise.d.ts +1 -1
  67. package/base/lib/vendor/fetchers/object-fetchable-enterprise.d.ts +3 -1
  68. package/base/lib/vendor/fetchers/search-airlines.fetcher.d.ts +2 -1
  69. package/base/lib/vendor/fetchers/search-airports-fetcher.d.ts +2 -1
  70. package/base/lib/vendor/fetchers/search-conferma-cities.fetcher.d.ts +2 -1
  71. package/base/lib/vendor/fetchers/user-fetcher.d.ts +2 -1
  72. package/base/lib/vendor/interfaces/Icabhire-enterprise-search.d.ts +3 -2
  73. package/base/lib/vendor/interfaces/Icarhire-enterprise-search.d.ts +4 -1
  74. package/base/lib/vendor/interfaces/Ienterprise-basket.service.d.ts +4 -3
  75. package/base/lib/vendor/interfaces/Ieurostar-enterprise-search.d.ts +8 -4
  76. package/base/lib/vendor/interfaces/Iflight-enterprise-search.d.ts +15 -4
  77. package/base/lib/vendor/interfaces/Ihotel-enterprise-search.d.ts +8 -22
  78. package/base/lib/vendor/interfaces/Iirl-enterprise-search.d.ts +15 -10
  79. package/base/lib/vendor/interfaces/Ilounges-enterprise-search.d.ts +4 -2
  80. package/base/lib/vendor/interfaces/Imybookings.service.d.ts +2 -1
  81. package/base/lib/vendor/interfaces/Iparking-enterprise-search.d.ts +3 -2
  82. package/base/lib/vendor/interfaces/Irail-enterprise-search.d.ts +31 -31
  83. package/base/lib/vendor/interfaces/Isearch.service.d.ts +12 -3
  84. package/base/lib/vendor/interfaces/Iuser.service.d.ts +3 -1
  85. package/base/lib/vendor/interfaces/cab-hire-search-arg.interface.d.ts +10 -0
  86. package/base/lib/vendor/interfaces/car-hire-search-arg.interface.d.ts +42 -0
  87. package/base/lib/vendor/interfaces/enable-fresh-chat-interface.d.ts +7 -0
  88. package/base/lib/vendor/interfaces/eurostar-search-arg.interface.d.ts +6 -0
  89. package/base/lib/vendor/interfaces/flight-filters.interface.d.ts +1 -0
  90. package/base/lib/vendor/interfaces/flight-search-args.interface.d.ts +8 -0
  91. package/base/lib/vendor/interfaces/hotel-recent-search-args.interface.d.ts +4 -0
  92. package/base/lib/vendor/interfaces/irl-search-arg.interface.d.ts +5 -0
  93. package/base/lib/vendor/interfaces/rail-basket-item.interface.d.ts +11 -5
  94. package/base/lib/vendor/interfaces/rail-recent-search-args.interface.d.ts +16 -11
  95. package/base/lib/vendor/interfaces/rail-selected-ticket.interface.d.ts +4 -9
  96. package/base/lib/vendor/interfaces/summary-interface.d.ts +23 -0
  97. package/base/lib/vendor/interfaces/terms-and-conditions.interface.d.ts +4 -0
  98. package/base/lib/vendor/interfaces/user.data.d.ts +1 -0
  99. package/base/lib/vendor/services/enterprise-basket.service.d.ts +5 -3
  100. package/base/lib/vendor/services/hotel-avallibility.service.d.ts +5 -3
  101. package/base/lib/vendor/services/my-bookings.service.d.ts +6 -3
  102. package/base/lib/vendor/services/search.service.d.ts +46 -10
  103. package/base/lib/vendor/services/user.service.d.ts +9 -4
  104. package/base/lib/vendor/types/graphql.types.d.ts +982 -1051
  105. package/base/lib/vendor/types/types.d.ts +187 -14
  106. package/base/lib/vendor/updaters/cancel-booking-updater.d.ts +20 -0
  107. package/base/lib/vendor/updaters/confirm-messages-updater.d.ts +19 -0
  108. package/base/lib/vendor/updaters/remove-favourite-search-updater.d.ts +19 -0
  109. package/base/lib/vendor/updaters/save-favourite-search-updater.d.ts +20 -0
  110. package/base/sabstravtech-obtservices-base.metadata.json +1 -1
  111. package/base/updaters.d.ts +4 -0
  112. package/bundles/sabstravtech-obtservices-angular.umd.js +763 -158
  113. package/bundles/sabstravtech-obtservices-angular.umd.js.map +1 -1
  114. package/bundles/sabstravtech-obtservices-angular.umd.min.js +1 -1
  115. package/bundles/sabstravtech-obtservices-angular.umd.min.js.map +1 -1
  116. package/bundles/sabstravtech-obtservices-base.umd.js +8805 -7342
  117. package/bundles/sabstravtech-obtservices-base.umd.js.map +1 -1
  118. package/bundles/sabstravtech-obtservices-base.umd.min.js +2 -2
  119. package/bundles/sabstravtech-obtservices-base.umd.min.js.map +1 -1
  120. package/esm2015/angular/components/basket-panel.js +9 -5
  121. package/esm2015/angular/components/with-component.js +7 -4
  122. package/esm2015/angular/fetchers.js +18 -13
  123. package/esm2015/angular/lib/vendor/classes/helpers.js +21 -4
  124. package/esm2015/angular/lib/vendor/fetchers/apply-JIT-hotel-rules.fetcher.js +25 -0
  125. package/esm2015/angular/lib/vendor/fetchers/apply-jit-flight-rules.js +25 -0
  126. package/esm2015/angular/lib/vendor/fetchers/basket-fetcher.js +8 -5
  127. package/esm2015/angular/lib/vendor/fetchers/conferma-office.fetcher.js +8 -5
  128. package/esm2015/angular/lib/vendor/fetchers/flight-fare-rules.fetcher.js +25 -0
  129. package/esm2015/angular/lib/vendor/fetchers/flight-quote.fetcher.js +8 -5
  130. package/esm2015/angular/lib/vendor/fetchers/get-conferma-room-images.fetcher.js +25 -0
  131. package/esm2015/angular/lib/vendor/fetchers/get-covid-microsite-token.fetcher.js +25 -0
  132. package/esm2015/angular/lib/vendor/fetchers/get-flight-seat-map-fetcher.js +25 -0
  133. package/esm2015/angular/lib/vendor/fetchers/get-rail-live-departures.fetcher.js +25 -0
  134. package/esm2015/angular/lib/vendor/fetchers/get-user-favourite-searches.fetcher.js +25 -0
  135. package/esm2015/angular/lib/vendor/fetchers/irl-discount-card-fetcher.js +25 -0
  136. package/esm2015/angular/lib/vendor/fetchers/search-airlines-fetcher.js +8 -5
  137. package/esm2015/angular/lib/vendor/fetchers/search-airports-fetcher.js +8 -5
  138. package/esm2015/angular/lib/vendor/fetchers/search-conferma-cities.fetcher.js +8 -5
  139. package/esm2015/angular/lib/vendor/fetchers/user-fetcher.js +8 -5
  140. package/esm2015/angular/lib/vendor/services/my-bookings.service.js +8 -5
  141. package/esm2015/angular/lib/vendor/services/search.service.js +69 -33
  142. package/esm2015/angular/lib/vendor/services/user.service.js +9 -6
  143. package/esm2015/angular/lib/vendor/types/graphql.angular.types.js +1467 -2520
  144. package/esm2015/angular/lib/vendor/updaters/cancel-booking-updater.js +22 -0
  145. package/esm2015/angular/lib/vendor/updaters/confirm-messages-updater.js +22 -0
  146. package/esm2015/angular/lib/vendor/updaters/remove-favourite-search.updater.js +22 -0
  147. package/esm2015/angular/lib/vendor/updaters/save-favourite-search.updater.js +22 -0
  148. package/esm2015/angular/obtservices.module.js +17 -1
  149. package/esm2015/angular/sabstravtech-obtservices-angular.js +15 -10
  150. package/esm2015/angular/updaters.js +4 -1
  151. package/esm2015/base/classes.js +2 -1
  152. package/esm2015/base/fetchers.js +28 -4
  153. package/esm2015/base/interfaces.js +4 -4
  154. package/esm2015/base/lib/vendor/classes/base-enterprise.js +14 -14
  155. package/esm2015/base/lib/vendor/classes/bookable-basket.js +11 -6
  156. package/esm2015/base/lib/vendor/classes/cabhire-enterprise-search.js +76 -103
  157. package/esm2015/base/lib/vendor/classes/carhire-enterprise-search.js +121 -18
  158. package/esm2015/base/lib/vendor/classes/enviroment.js +3 -1
  159. package/esm2015/base/lib/vendor/classes/eurostar-enterprise-search.js +540 -677
  160. package/esm2015/base/lib/vendor/classes/flight-enterprise-search.js +676 -298
  161. package/esm2015/base/lib/vendor/classes/helpers.js +260 -70
  162. package/esm2015/base/lib/vendor/classes/hotel-enterprise-search.js +289 -123
  163. package/esm2015/base/lib/vendor/classes/irl-direction.enum.js +6 -0
  164. package/esm2015/base/lib/vendor/classes/irl-enterprise-search.js +412 -694
  165. package/esm2015/base/lib/vendor/classes/lounges-enterprise-search.js +98 -5
  166. package/esm2015/base/lib/vendor/classes/management-info-and-valid.js +49 -30
  167. package/esm2015/base/lib/vendor/classes/modal-types.enum.js +5 -1
  168. package/esm2015/base/lib/vendor/classes/parking-enterprise-search.js +61 -5
  169. package/esm2015/base/lib/vendor/classes/rail-direction.enum.js +3 -3
  170. package/esm2015/base/lib/vendor/classes/rail-enterprise-search.js +1024 -682
  171. package/esm2015/base/lib/vendor/classes/rail-index-to-ticket.js +48 -0
  172. package/esm2015/base/lib/vendor/classes/supplementary-booking-info-impl.js +16 -4
  173. package/esm2015/base/lib/vendor/classes/user-favourite.enum.js +4 -1
  174. package/esm2015/base/lib/vendor/fetchers/apply-JIT-hotel-rules.fetcher.js +22 -0
  175. package/esm2015/base/lib/vendor/fetchers/apply-jit-flight-rules.js +10 -0
  176. package/esm2015/base/lib/vendor/fetchers/basket-fetcher.js +3 -3
  177. package/esm2015/base/lib/vendor/fetchers/conferma-office.fetcher.js +3 -3
  178. package/esm2015/base/lib/vendor/fetchers/flight-fare-rules.fetcher.js +11 -0
  179. package/esm2015/base/lib/vendor/fetchers/flight-quote.fetcher.js +12 -4
  180. package/esm2015/base/lib/vendor/fetchers/get-conferma-room-images.fetcher.js +11 -0
  181. package/esm2015/base/lib/vendor/fetchers/get-covid-microsite-token.fetcher.js +11 -0
  182. package/esm2015/base/lib/vendor/fetchers/get-flight-seat-map-fetcher.js +11 -0
  183. package/esm2015/base/lib/vendor/fetchers/get-rail-live-departures.fetcher.js +11 -0
  184. package/esm2015/base/lib/vendor/fetchers/get-user-favourite-searches.fetcher.js +10 -0
  185. package/esm2015/base/lib/vendor/fetchers/irl-discount-card-fetcher.js +11 -0
  186. package/esm2015/base/lib/vendor/fetchers/list-fetchable-enterprise.js +5 -3
  187. package/esm2015/base/lib/vendor/fetchers/object-fetchable-enterprise.js +4 -3
  188. package/esm2015/base/lib/vendor/fetchers/search-airlines.fetcher.js +3 -3
  189. package/esm2015/base/lib/vendor/fetchers/search-airports-fetcher.js +3 -3
  190. package/esm2015/base/lib/vendor/fetchers/search-conferma-cities.fetcher.js +3 -3
  191. package/esm2015/base/lib/vendor/fetchers/user-fetcher.js +3 -3
  192. package/esm2015/base/lib/vendor/interfaces/Icabhire-enterprise-search.js +1 -1
  193. package/esm2015/base/lib/vendor/interfaces/Icarhire-enterprise-search.js +1 -1
  194. package/esm2015/base/lib/vendor/interfaces/Ienterprise-basket.service.js +1 -1
  195. package/esm2015/base/lib/vendor/interfaces/Ieurostar-enterprise-search.js +1 -1
  196. package/esm2015/base/lib/vendor/interfaces/Iflight-enterprise-search.js +7 -1
  197. package/esm2015/base/lib/vendor/interfaces/Ihotel-enterprise-search.js +1 -1
  198. package/esm2015/base/lib/vendor/interfaces/Iirl-enterprise-search.js +1 -1
  199. package/esm2015/base/lib/vendor/interfaces/Ilounges-enterprise-search.js +1 -1
  200. package/esm2015/base/lib/vendor/interfaces/Imybookings.service.js +1 -1
  201. package/esm2015/base/lib/vendor/interfaces/Iparking-enterprise-search.js +1 -1
  202. package/esm2015/base/lib/vendor/interfaces/Irail-enterprise-search.js +1 -1
  203. package/esm2015/base/lib/vendor/interfaces/Isearch.service.js +1 -1
  204. package/esm2015/base/lib/vendor/interfaces/Iuser.service.js +1 -1
  205. package/esm2015/base/lib/vendor/interfaces/cab-hire-search-arg.interface.js +2 -0
  206. package/esm2015/base/lib/vendor/interfaces/car-hire-search-arg.interface.js +3 -0
  207. package/esm2015/base/lib/vendor/interfaces/enable-fresh-chat-interface.js +3 -0
  208. package/esm2015/base/lib/vendor/interfaces/eurostar-search-arg.interface.js +2 -0
  209. package/esm2015/base/lib/vendor/interfaces/flight-filters.interface.js +1 -1
  210. package/esm2015/base/lib/vendor/interfaces/flight-search-args.interface.js +2 -0
  211. package/esm2015/base/lib/vendor/interfaces/hotel-recent-search-args.interface.js +1 -1
  212. package/esm2015/base/lib/vendor/interfaces/irl-search-arg.interface.js +2 -0
  213. package/esm2015/base/lib/vendor/interfaces/rail-basket-item.interface.js +1 -1
  214. package/esm2015/base/lib/vendor/interfaces/rail-recent-search-args.interface.js +1 -1
  215. package/esm2015/base/lib/vendor/interfaces/rail-selected-ticket.interface.js +1 -1
  216. package/esm2015/base/lib/vendor/interfaces/summary-interface.js +2 -0
  217. package/esm2015/base/lib/vendor/interfaces/terms-and-conditions.interface.js +2 -0
  218. package/esm2015/base/lib/vendor/interfaces/user.data.js +1 -1
  219. package/esm2015/base/lib/vendor/services/enterprise-basket.service.js +107 -57
  220. package/esm2015/base/lib/vendor/services/hotel-avallibility.service.js +43 -5
  221. package/esm2015/base/lib/vendor/services/my-bookings.service.js +6 -2
  222. package/esm2015/base/lib/vendor/services/search.service.js +110 -46
  223. package/esm2015/base/lib/vendor/services/user.service.js +13 -2
  224. package/esm2015/base/lib/vendor/types/graphql.types.js +35 -28
  225. package/esm2015/base/lib/vendor/types/types.js +35 -2
  226. package/esm2015/base/lib/vendor/updaters/cancel-booking-updater.js +11 -0
  227. package/esm2015/base/lib/vendor/updaters/confirm-messages-updater.js +11 -0
  228. package/esm2015/base/lib/vendor/updaters/remove-favourite-search-updater.js +11 -0
  229. package/esm2015/base/lib/vendor/updaters/save-favourite-search-updater.js +11 -0
  230. package/esm2015/base/updaters.js +5 -1
  231. package/fesm2015/sabstravtech-obtservices-angular.js +1554 -2350
  232. package/fesm2015/sabstravtech-obtservices-angular.js.map +1 -1
  233. package/fesm2015/sabstravtech-obtservices-base.js +8088 -6752
  234. package/fesm2015/sabstravtech-obtservices-base.js.map +1 -1
  235. package/package.json +1 -1
  236. package/base/lib/vendor/interfaces/rail-journey-leg.interface.d.ts +0 -6
  237. package/base/lib/vendor/interfaces/rail-ticket-group.interface.d.ts +0 -26
  238. package/base/lib/vendor/interfaces/rail-ticket-groups.interface.d.ts +0 -4
  239. package/esm2015/base/lib/vendor/interfaces/rail-journey-leg.interface.js +0 -2
  240. package/esm2015/base/lib/vendor/interfaces/rail-ticket-group.interface.js +0 -2
  241. package/esm2015/base/lib/vendor/interfaces/rail-ticket-groups.interface.js +0 -2
@@ -4,14 +4,16 @@ import { Traveller } from '../models/traveller.object';
4
4
  import { BasketDetails } from '../services/enterprise-basket.service';
5
5
  import { ManagementInfoAndIsValid } from './management-info-and-valid';
6
6
  import { UserServices } from '../interfaces/Iuser.service';
7
- import { FlightDirectionEnum, MinMax, NgbDateStruct, Schema } from '../types/types';
7
+ import { FlightDirectionEnum, FlightGroups, MainFlightCabinClass, MinMax, NgbDateStruct, OBTFlightCabinClass, OBTRailJourneyFare, Schema } from '../types/types';
8
8
  import { Airport, BasketItem, FareConditions, FlightItinerary, FlightJourney, Service, ServiceType, UserPassengerTypeInput } from '../types/graphql.types';
9
9
  import { SupplementaryBookingInfoInterface } from '../interfaces/Isupplementary-booking-info-impl';
10
10
  import { FlightFilters } from '../interfaces/flight-filters.interface';
11
+ import { Rules } from '../interfaces/summary-interface';
11
12
  export declare class BaseHelperRoutines {
12
13
  static READ_DATE_FORMAT: string;
13
14
  static READ_TIME_FORMAT: string;
14
15
  static DATE_FORMAT: string;
16
+ static GRAPHQL_DATA_FORMAT_TIME: string;
15
17
  static ISO_DATA_FORMAT: string;
16
18
  static ISO_DATA_FORMAT_TIME: string;
17
19
  static ISO_DATA_FORMAT_NO_HYPHANS: string;
@@ -32,6 +34,7 @@ export declare class BaseHelperRoutines {
32
34
  formatTimeColon(date: moment.Moment): string;
33
35
  formatIsoDate(date: moment.Moment): string;
34
36
  formatIsoDateTime(date: moment.Moment): string;
37
+ formatGraphQLDateTime(date: moment.Moment): string;
35
38
  formatIsoDateNoHyphans(date: moment.Moment): string;
36
39
  generateTimesList(from?: number, to?: number, step?: number): string[];
37
40
  momentToNgDate(date: moment.Moment): NgbDateStruct;
@@ -106,13 +109,14 @@ export declare class BaseHelperRoutines {
106
109
  }>(array: T[], field: string): {
107
110
  [key: string]: T;
108
111
  };
112
+ setFieldInObject(obj: Record<string, any>, fields: string[], value: any): any;
109
113
  arrayToObjectArray<T extends {
110
114
  [key: string]: any;
111
- }>(array: T[], field: string): {
112
- [key: string]: T[];
113
- };
115
+ }, Q extends {
116
+ [key: string]: any;
117
+ }>(array: T[], fields: (string | string[])[]): Q;
114
118
  getTerminals(airport: Airport): string[];
115
- fieldFromObject(obj: object, field: string): string;
119
+ fieldFromObject<T>(obj: object, fields: string | string[]): T | null;
116
120
  mapFieldFromObject<K extends string | number | symbol, T>(field: K): (obj: Record<K, any>) => T;
117
121
  removeNulls<T>(query: T): T;
118
122
  getTravellersId(travellers: Traveller[]): string[];
@@ -172,5 +176,44 @@ export declare class BaseHelperRoutines {
172
176
  */
173
177
  splitStringOnCapitals(rawString: string, join?: boolean): string | string[];
174
178
  createFlightFilters(journeys: FlightItinerary[], defaultFilters: FlightFilters): FlightFilters;
175
- mapOverObject<T extends Record<string | number, V>, V>(items: Record<string | number, V>, callback: (value: V, key?: string | number) => V): Record<string | number, V>;
179
+ mapOverObject<V>(items: Record<string | number, V>, callback: (value: V, key?: string | number) => V): Record<string | number, V>;
180
+ normaliseMinuteToBase10(min: number): number;
181
+ OBTFlightCabinClassToFlightCabinClass(value: OBTFlightCabinClass): MainFlightCabinClass;
182
+ FlightCabinClassToBrandedOBTFlightCabinClass(value: FlightGroups, isBranded: boolean): OBTFlightCabinClass;
183
+ /**
184
+ * @description - convert from metres to miles
185
+ * @param metres - the amount of metres to convert
186
+ * @param decimalPlaces - the amount of d.p to convert to, if negative (default) does not restrict the decimal places
187
+ */
188
+ convertMetresToMiles(metres: number, decimalPlaces?: number): number;
189
+ /**
190
+ * @description - convert seconds to hours
191
+ * @param seconds - to convert
192
+ * @param decimalPlaces - the amount of d.p to convert to, if negative (default) does not restrict the decimal places
193
+ * @returns
194
+ */
195
+ convertSecondsToHours(seconds: number, decimalPlaces?: number): number;
196
+ /**
197
+ * @description - convert seconds to mins
198
+ * @param seconds - to convert
199
+ * @param decimalPlaces - the amount of d.p to convert to, if negative (default) does not restrict the decimal places
200
+ * @returns
201
+ */
202
+ convertSecondsToMins(seconds: number, decimalPlaces?: number): number;
203
+ addRailActionRules(fare: OBTRailJourneyFare, rules: Rules[]): OBTRailJourneyFare;
204
+ map<T>(obj: Record<string, T>, func: (next: T) => T): Record<string, T>;
205
+ mergeObjects<T>(...objs: T[]): T;
206
+ interceptMethodCalls<T extends object>(obj: T, fn: (prop: string | number | symbol, arg: any[]) => any): T;
207
+ /**
208
+ * @description - get the previous quarter hour e.g. if 29 mins - return 15
209
+ * @param dateTime - date/time in moment format
210
+ * @returns moment
211
+ */
212
+ getRoundedDownQuarterHour(dateTime: moment.Moment): moment.Moment;
213
+ /**
214
+ * @description - get rounded up quarter hour e.g. if 29 - return 30
215
+ * @param dateTime - date/time in moment format
216
+ * @returns moment
217
+ */
218
+ getRoundedUpQuarterHour(dateTime: moment.Moment): moment.Moment;
176
219
  }
@@ -5,7 +5,7 @@ import { BaseHelperRoutines } from './helpers';
5
5
  import { BehaviorSubject, Observable, Subject } from 'rxjs';
6
6
  import { BaseEnvironment } from './enviroment';
7
7
  import { BaseHotelAvalibilityService } from '../services/hotel-avallibility.service';
8
- import { Country, HotelQuoteResult, HotelQuoteResultArray, LocationTypes, NgbDateStruct, LocationDetails, RecentSearch } from '../types/types';
8
+ import { Country, HotelQuoteResult, HotelQuoteResultArray, LocationTypes, NgbDateStruct, LocationDetails, RecentSearch, HotelDetails, HotelDetailsArray, SaveFavouriteSearchResult } from '../types/types';
9
9
  import { BasketItem, ConfermaOfficeNames, HotelLocation, HotelRoom, HotelTag, SaveRecentSearchMutationVariables, SearchHotelsQueryVariables, ServiceType } from '../types/graphql.types';
10
10
  import { BaseHotelQuoteFetcher, HotelQuoteFetcherType } from '../fetchers/hotel-quote-fetcher';
11
11
  import { UserServiceInterface } from '../interfaces/Iuser.service';
@@ -13,19 +13,19 @@ import { EnterpriseSearchServiceInterface } from '../interfaces/Isearch.service'
13
13
  import { AbstractHttpCallService } from '../services/http-call.service';
14
14
  import { HotelAvalinilityFetcherType } from '../fetchers/hotel-avaliability-fetcher';
15
15
  import { EnterpriseBasketServiceInterface } from '../interfaces/Ienterprise-basket.service';
16
- import { AvailabilityObject, DisplayFilterSettings, HotelDetails, HotelDetailsArray, HotelEnterpriseSearchInterface, HotelFilters, HotelTempParams, HotelView } from '../interfaces/Ihotel-enterprise-search';
16
+ import { AvailabilityObject, DisplayFilterSettings, HotelEnterpriseSearchInterface, HotelFilters, HotelTempParams, HotelView } from '../interfaces/Ihotel-enterprise-search';
17
17
  import { ICheapestPrice } from '../interfaces/cheapest-price';
18
18
  import { Traveller } from '../models/traveller.object';
19
19
  import { BaseSearchConfermaQuicklistFetcher, ConfermaQuicklistFetcherType } from '../fetchers/conferma-quicklist.fetcher';
20
20
  import { BaseGetRailStationFetcher, GetRailStationFetcherType } from '../fetchers/get-rail-station.fetcher';
21
+ import { ApplyHotelRulesFetcherType, BaseHotelRulesFetcher } from '../fetchers/apply-JIT-hotel-rules.fetcher';
21
22
  export declare enum SortTypesHotel {
22
23
  distance = "distance",
23
24
  name = "name",
24
25
  price = "price"
25
26
  }
26
- export declare class HotelEnterpriseSearch<HQ_Q extends HotelQuoteFetcherType, HA_Q extends HotelAvalinilityFetcherType, QL_Q extends ConfermaQuicklistFetcherType, GRS_Q extends GetRailStationFetcherType> extends BaseEnterpriseSearch<HotelTempParams, HotelQuoteResultArray, HotelDetailsArray> implements HotelEnterpriseSearchInterface {
27
+ export declare class HotelEnterpriseSearch<HQ_Q extends HotelQuoteFetcherType, HA_Q extends HotelAvalinilityFetcherType, QL_Q extends ConfermaQuicklistFetcherType, GRS_Q extends GetRailStationFetcherType, HR_Q extends ApplyHotelRulesFetcherType> extends BaseEnterpriseSearch<HotelTempParams, HotelQuoteResultArray, HotelDetailsArray> implements HotelEnterpriseSearchInterface {
27
28
  private hotelFetcher;
28
- private helpers;
29
29
  private userService;
30
30
  private environment;
31
31
  private avaliabilityService;
@@ -34,6 +34,7 @@ export declare class HotelEnterpriseSearch<HQ_Q extends HotelQuoteFetcherType, H
34
34
  private httpCallService;
35
35
  private quickListFetcher;
36
36
  private getRailStationFetcher;
37
+ private applyHotelRulesFetcher;
37
38
  static readonly MAX_HOTEL_ROOMS = 4;
38
39
  static readonly STORAGE_SESSION_PARAMS = "search_hotel";
39
40
  static readonly STORAGE_SESSION_RESULTS = "results_hotel";
@@ -49,6 +50,7 @@ export declare class HotelEnterpriseSearch<HQ_Q extends HotelQuoteFetcherType, H
49
50
  private results_details;
50
51
  private _checkin_date_ngb;
51
52
  private _checkout_date_ngb;
53
+ private _bookedTravellers;
52
54
  get chains(): string[];
53
55
  get amenities(): string[];
54
56
  get maxDistance(): number;
@@ -115,10 +117,12 @@ export declare class HotelEnterpriseSearch<HQ_Q extends HotelQuoteFetcherType, H
115
117
  get location_type_select(): LocationTypes;
116
118
  set location_type_select(value: LocationTypes);
117
119
  get filters(): HotelFilters;
118
- constructor(hotelFetcher: BaseHotelQuoteFetcher<HQ_Q>, helpers: BaseHelperRoutines, userService: UserServiceInterface, environment: BaseEnvironment, avaliabilityService: BaseHotelAvalibilityService<HA_Q>, basketService: EnterpriseBasketServiceInterface, storageService: BaseStorageService, searchService: EnterpriseSearchServiceInterface, httpCallService: AbstractHttpCallService, quickListFetcher: BaseSearchConfermaQuicklistFetcher<QL_Q>, getRailStationFetcher: BaseGetRailStationFetcher<GRS_Q>);
120
+ constructor(hotelFetcher: BaseHotelQuoteFetcher<HQ_Q>, helpers: BaseHelperRoutines, userService: UserServiceInterface, environment: BaseEnvironment, avaliabilityService: BaseHotelAvalibilityService<HA_Q>, basketService: EnterpriseBasketServiceInterface, storageService: BaseStorageService, searchService: EnterpriseSearchServiceInterface, httpCallService: AbstractHttpCallService, quickListFetcher: BaseSearchConfermaQuicklistFetcher<QL_Q>, getRailStationFetcher: BaseGetRailStationFetcher<GRS_Q>, applyHotelRulesFetcher: BaseHotelRulesFetcher<HR_Q>);
121
+ protected processResults(resultsToMap: HotelQuoteResultArray): HotelDetails[];
119
122
  protected resultsSessionName: string;
120
123
  protected multiResultsSessionName: string;
121
124
  private query;
125
+ private _applyTravelRules;
122
126
  makeLocations(location: HotelLocation[]): {
123
127
  [key: string]: HotelLocation[];
124
128
  };
@@ -127,13 +131,15 @@ export declare class HotelEnterpriseSearch<HQ_Q extends HotelQuoteFetcherType, H
127
131
  private _isValid;
128
132
  startSearch(): Promise<boolean>;
129
133
  getRecentSearchQuery(query: SearchHotelsQueryVariables): SaveRecentSearchMutationVariables;
134
+ private updateSerchQuery;
130
135
  startRecentSearch(recentSearch: RecentSearch): void;
131
136
  private getRailStationByCode;
132
- getSearchQuery(): SearchHotelsQueryVariables;
133
- buildQuery(): void;
137
+ getSearchQuery(ogSearch?: boolean): SearchHotelsQueryVariables;
138
+ buildQuery(ogSearch?: boolean): void;
134
139
  makeHotelAvalilityObject(hotel: HotelQuoteResult): AvailabilityObject;
135
140
  filterResults: () => void;
136
141
  filterLighteningResults: () => void;
142
+ resultsHaveTag(searchTag: string): boolean;
137
143
  private inPriceRange;
138
144
  private inDistanceRange;
139
145
  private containsHotelname;
@@ -173,5 +179,10 @@ export declare class HotelEnterpriseSearch<HQ_Q extends HotelQuoteFetcherType, H
173
179
  * @desc - return the occupancy for a room - need to calculate based on no of rooms, no of travellers and currently occupied rooms;
174
180
  **/
175
181
  calcRoomOccupancy(no_of_rooms: number, travellers: number): number;
176
- addHotelRoomToBasket(hotel: HotelQuoteResult, hotelRoom: HotelRoom, hotelQuery: SearchHotelsQueryVariables, travellers?: Traveller[]): Promise<boolean>;
182
+ addHotelRoomToBasket(hotel: HotelDetails, hotelRoom: HotelRoom, hotelQuery: SearchHotelsQueryVariables, travellers?: Traveller[]): Promise<boolean>;
183
+ getTermsAndCond(hotelRoom: HotelRoom, hotelQuery: SearchHotelsQueryVariables): {
184
+ name: string;
185
+ value: string;
186
+ }[];
187
+ saveSearch(): Observable<SaveFavouriteSearchResult>;
177
188
  }
@@ -0,0 +1,4 @@
1
+ export declare enum IrlDirection {
2
+ Outbound = "out",
3
+ Inbound = "in"
4
+ }
@@ -1,27 +1,41 @@
1
1
  import moment from 'moment';
2
+ import { Observable } from 'rxjs';
2
3
  import { BaseEnterpriseSearch } from './base-enterprise';
3
4
  import { BaseStorageService } from '../services/storage.service';
4
5
  import { BaseHelperRoutines } from './helpers';
5
- import { RailTicketGroups } from '../interfaces/rail-ticket-groups.interface';
6
- import { RailTicketGroup } from '../interfaces/rail-ticket-group.interface';
7
6
  import { ValueDisplay } from '../interfaces/value-display';
8
- import { NgbDateStruct, IrlQuoteResultArray, RecentSearch } from '../types/types';
9
- import { BasketItem, IrlClass, IrlJourneyOption, IrlJourneyOptions, IrlTicketOption, SearchIrlQueryVariables, ServiceType, IrlJourneyType, IrlSupplier, IrlTicket } from '../types/graphql.types';
7
+ import { NgbDateStruct, IrlQuoteResultArray, RecentSearch, IrlTicketOptionWithSelected, SaveFavouriteSearchResult } from '../types/types';
8
+ import { BasketItem, IrlClass, IrlJourneyOption, IrlJourneyOptions, SaveRecentSearchMutationVariables, IrlTicketOption, SearchIrlQueryVariables, ServiceType, IrlJourneyType, IrlSupplier, IrlTravelCard, IrlSegment } from '../types/graphql.types';
9
+ import { BaseIrlDiscountCardFetcher, IrlDiscountCardFetcherType } from '../fetchers/irl-discount-card-fetcher';
10
10
  import { BaseIrlQuoteFetcher, IrlQuoteFetcherType } from '../fetchers/irl-quote-fetcher';
11
- import { BaseSearchIrlStationsFetcher, SearchIrlStationsFetcherType } from '../fetchers/search-irl-stations.fetcher';
12
11
  import { EnterpriseBasketServiceInterface } from '../interfaces/Ienterprise-basket.service';
13
12
  import { EnterpriseSearchServiceInterface } from '../interfaces/Isearch.service';
14
13
  import { IRLEnterpriseSearchInterface, IrlTempParams } from '../interfaces/Iirl-enterprise-search';
15
14
  import { ages } from '../models/traveller.object';
16
15
  import { ICheapestPrice } from '../interfaces/cheapest-price';
17
- export declare enum IrlSearchCriteria {
18
- Depart = "Depart After",
19
- Arrive = "Arrive Before"
16
+ import { SortMethod } from './eurostar-enterprise-search';
17
+ export declare enum SortTypesIrl {
18
+ CheapestFirst = "C",
19
+ EarliestFirst = "E",
20
+ LatestFirst = "L"
20
21
  }
21
- export declare class IRLEnterpriseSearch<Q extends IrlQuoteFetcherType, SIS_Q extends SearchIrlStationsFetcherType> extends BaseEnterpriseSearch<IrlTempParams, IrlQuoteResultArray, IrlQuoteResultArray> implements IRLEnterpriseSearchInterface {
22
+ export interface SortTypeIrl {
23
+ /** Title displayed on dropdown */
24
+ title: string;
25
+ /** Method name used by component to sort results */
26
+ methodRef: SortMethod;
27
+ /** Icon displayed on drop down */
28
+ icon: string;
29
+ }
30
+ export declare enum ClassType {
31
+ Class_1 = "1",
32
+ Class_2 = "2",
33
+ Second_Class = "2nd Class",
34
+ First_Class = "1st Class"
35
+ }
36
+ export declare class IRLEnterpriseSearch<Q extends IrlQuoteFetcherType, GIDF_Q extends IrlDiscountCardFetcherType> extends BaseEnterpriseSearch<IrlTempParams, IrlQuoteResultArray, IrlQuoteResultArray> implements IRLEnterpriseSearchInterface {
22
37
  private Irlfetcher;
23
- private searchIrlStationsFetcher;
24
- private helpers;
38
+ private irlDiscountCardsFetcher;
25
39
  private basketService;
26
40
  private searchService;
27
41
  static readonly STORAGE_SESSION_PARAMS = "search_irl";
@@ -30,6 +44,7 @@ export declare class IRLEnterpriseSearch<Q extends IrlQuoteFetcherType, SIS_Q ex
30
44
  private travellers;
31
45
  protected resultsSessionName: string;
32
46
  protected multiResultsSessionName: string;
47
+ private _sortArray;
33
48
  searchTypes: {
34
49
  display: string;
35
50
  value: IrlJourneyType;
@@ -42,7 +57,6 @@ export declare class IRLEnterpriseSearch<Q extends IrlQuoteFetcherType, SIS_Q ex
42
57
  key: ages;
43
58
  value: string;
44
59
  }[];
45
- irlCriteria: IrlSearchCriteria[];
46
60
  travelCards: {
47
61
  display: string;
48
62
  value: string;
@@ -52,10 +66,16 @@ export declare class IRLEnterpriseSearch<Q extends IrlQuoteFetcherType, SIS_Q ex
52
66
  minInboundDate: NgbDateStruct;
53
67
  private _timeArray;
54
68
  private _canCombine;
55
- private _viaLocation;
56
69
  private _travellingFrom;
57
70
  private _travellingTo;
58
71
  protected _originalUserSearch: IrlTempParams;
72
+ private _outboundJourneyOptions;
73
+ private _isFiltered;
74
+ get outboundJourneyOptions(): IrlJourneyOption;
75
+ set outboundJourneyOptions(data: IrlJourneyOption);
76
+ _outboundTicket: IrlTicketOptionWithSelected;
77
+ get outboundTicket(): IrlTicketOptionWithSelected;
78
+ set outboundTicket(data: IrlTicketOptionWithSelected);
59
79
  get noOfAdults(): number;
60
80
  set noOfAdults(adults: number);
61
81
  get noOfChildren(): number;
@@ -88,18 +108,31 @@ export declare class IRLEnterpriseSearch<Q extends IrlQuoteFetcherType, SIS_Q ex
88
108
  private _children;
89
109
  get children(): number;
90
110
  set children(data: number);
111
+ private _cheapestStandard;
112
+ get cheapestStandard(): IrlTicketOption;
113
+ private _cheapestFirst;
114
+ get cheapestFirst(): IrlTicketOption;
91
115
  private _returnDepartureDateTime;
92
116
  get returnDepartureDateTime(): moment.Moment;
93
117
  set returnDepartureDateTime(newDateTime: moment.Moment);
94
118
  private _ageRange;
95
119
  get ageRange(): string;
96
120
  set ageRange(data: string);
121
+ private _priceDir;
122
+ get priceDir(): boolean;
123
+ set priceDir(data: boolean);
124
+ private _dateDir;
125
+ get dateDir(): boolean;
126
+ set dateDir(data: boolean);
97
127
  get chosenSearchClass(): IrlClass;
98
128
  set chosenSearchClass(classR: IrlClass);
129
+ get discountCard(): IrlTravelCard;
130
+ set discountCard(data: IrlTravelCard);
131
+ private _irlDiscountCardsArray;
132
+ get irlDiscountCardsArray(): IrlTravelCard[];
133
+ set irlDiscountCardsArray(array: IrlTravelCard[]);
99
134
  get outBoundDateTime(): moment.Moment;
100
135
  set outBoundDateTime(newDateTime: moment.Moment);
101
- get outboundCriteria(): IrlSearchCriteria;
102
- set outboundCriteria(newCrit: IrlSearchCriteria);
103
136
  get inBoundDateTime(): moment.Moment;
104
137
  set inBoundDateTime(newDateTime: moment.Moment);
105
138
  private _outbound_date;
@@ -114,37 +147,259 @@ export declare class IRLEnterpriseSearch<Q extends IrlQuoteFetcherType, SIS_Q ex
114
147
  private _return_time;
115
148
  get return_time(): string;
116
149
  set return_time(value: string);
117
- get returnCriteria(): IrlSearchCriteria;
118
- set returnCriteria(newCrit: IrlSearchCriteria);
119
150
  get timeArray(): ValueDisplay[];
120
- private _cheapestStandard;
121
- get cheapestStandard(): IrlTicketOption;
122
- private _cheapestFirst;
123
- get cheapestFirst(): IrlTicketOption;
151
+ private _offline;
152
+ get offline(): boolean;
153
+ set offline(data: boolean);
124
154
  private _irlClass;
125
155
  get irlClass(): IrlClass;
126
156
  set irlClass(data: IrlClass);
127
157
  private _journeytype;
128
158
  get journeyType(): IrlJourneyType;
129
159
  set journeyType(data: IrlJourneyType);
130
- constructor(Irlfetcher: BaseIrlQuoteFetcher<Q>, searchIrlStationsFetcher: BaseSearchIrlStationsFetcher<SIS_Q>, helpers: BaseHelperRoutines, basketService: EnterpriseBasketServiceInterface, storageService: BaseStorageService, searchService: EnterpriseSearchServiceInterface);
160
+ get sortDropdownValues(): SortTypeIrl[];
161
+ constructor(Irlfetcher: BaseIrlQuoteFetcher<Q>, irlDiscountCardsFetcher: BaseIrlDiscountCardFetcher<GIDF_Q>, helpers: BaseHelperRoutines, basketService: EnterpriseBasketServiceInterface, storageService: BaseStorageService, searchService: EnterpriseSearchServiceInterface);
162
+ irlDiscountCards: IrlTravelCard;
163
+ protected processResults(results: IrlQuoteResultArray): ({
164
+ __typename?: "IRLJourneyOptions";
165
+ } & Pick<IrlJourneyOptions, "source" | "sourceId"> & {
166
+ outbound?: ({
167
+ __typename?: "IRLJourneyOption";
168
+ } & Pick<IrlJourneyOption, "from" | "fromCode" | "to" | "toCode" | "departDateTime" | "arriveDateTime" | "changes" | "unsellable"> & {
169
+ identifiers?: {
170
+ __typename?: "IRLIdentifiers";
171
+ } & Pick<import("../types/graphql.types").IrlIdentifiers, "singleOrReturn" | "transactionIdentifier" | "journeyIdentifier" | "provider" | "fareIdentifier" | "direction" | "bookingRef" | "signature">;
172
+ travellers?: ({
173
+ __typename?: "IRLTraveller";
174
+ } & Pick<import("../types/graphql.types").IrlTraveller, "id" | "status" | "surname" | "dob" | "railcard" | "givenName" | "nameTitle" | "contactInfo" | "deliveryEmailAddress" | "fare">)[];
175
+ segments?: ({
176
+ __typename?: "IRLSegment";
177
+ } & Pick<IrlSegment, "id" | "operator" | "reservableStatus" | "departDateTime" | "arriveDateTime" | "depart" | "arrive" | "seatPreferenceGroup"> & {
178
+ seatPreferenceTypes?: ({
179
+ __typename?: "IRLSeatPreferenceType";
180
+ } & Pick<import("../types/graphql.types").IrlSeatPreferenceType, "name" | "allowedValues">)[];
181
+ seats?: ({
182
+ __typename?: "IRLSeat";
183
+ } & Pick<import("../types/graphql.types").IrlSeat, "number" | "location" | "facilities" | "direction" | "coach" | "position" | "deck" | "seatType" | "seatSelection" | "note">)[];
184
+ })[];
185
+ providers?: ({
186
+ __typename?: "IRLProvider";
187
+ } & Pick<import("../types/graphql.types").IrlProvider, "name" | "providerId"> & {
188
+ cheapestTicket?: {
189
+ __typename?: "IRLTicketOption";
190
+ } & Pick<IrlTicketOption, "price" | "currency" | "type" | "class" | "singleOrReturn" | "reservableStatus" | "route" | "routeCode" | "fareRules"> & {
191
+ identifiers?: {
192
+ __typename?: "IRLIdentifiers";
193
+ } & Pick<import("../types/graphql.types").IrlIdentifiers, "singleOrReturn" | "transactionIdentifier" | "journeyIdentifier" | "provider" | "fareIdentifier" | "direction" | "bookingRef" | "signature">;
194
+ tickets?: ({
195
+ __typename?: "IRLTicket";
196
+ } & Pick<import("../types/graphql.types").IrlTicket, "price" | "type" | "route" | "numChildren" | "numAdults"> & {
197
+ segments?: ({
198
+ __typename?: "IRLSegment";
199
+ } & Pick<IrlSegment, "id" | "operator" | "reservableStatus" | "departDateTime" | "arriveDateTime" | "depart" | "arrive" | "seatPreferenceGroup"> & {
200
+ seatPreferenceTypes?: ({
201
+ __typename?: "IRLSeatPreferenceType";
202
+ } & Pick<import("../types/graphql.types").IrlSeatPreferenceType, "name" | "allowedValues">)[];
203
+ seats?: ({
204
+ __typename?: "IRLSeat";
205
+ } & Pick<import("../types/graphql.types").IrlSeat, "number" | "location" | "facilities" | "direction" | "coach" | "position" | "deck" | "seatType" | "seatSelection" | "note">)[];
206
+ })[];
207
+ })[];
208
+ };
209
+ ticketOptions?: ({
210
+ __typename?: "IRLTicketOption";
211
+ } & Pick<IrlTicketOption, "price" | "currency" | "type" | "class" | "singleOrReturn" | "reservableStatus" | "route" | "routeCode" | "fareRules"> & {
212
+ identifiers?: {
213
+ __typename?: "IRLIdentifiers";
214
+ } & Pick<import("../types/graphql.types").IrlIdentifiers, "singleOrReturn" | "transactionIdentifier" | "journeyIdentifier" | "provider" | "fareIdentifier" | "direction" | "bookingRef" | "signature">;
215
+ tickets?: ({
216
+ __typename?: "IRLTicket";
217
+ } & Pick<import("../types/graphql.types").IrlTicket, "price" | "type" | "route" | "numChildren" | "numAdults"> & {
218
+ segments?: ({
219
+ __typename?: "IRLSegment";
220
+ } & Pick<IrlSegment, "id" | "operator" | "reservableStatus" | "departDateTime" | "arriveDateTime" | "depart" | "arrive" | "seatPreferenceGroup"> & {
221
+ seatPreferenceTypes?: ({
222
+ __typename?: "IRLSeatPreferenceType";
223
+ } & Pick<import("../types/graphql.types").IrlSeatPreferenceType, "name" | "allowedValues">)[];
224
+ seats?: ({
225
+ __typename?: "IRLSeat";
226
+ } & Pick<import("../types/graphql.types").IrlSeat, "number" | "location" | "facilities" | "direction" | "coach" | "position" | "deck" | "seatType" | "seatSelection" | "note">)[];
227
+ })[];
228
+ })[];
229
+ })[];
230
+ bookedTicket?: {
231
+ __typename?: "IRLTicketOption";
232
+ } & Pick<IrlTicketOption, "price" | "currency" | "type" | "class" | "singleOrReturn" | "reservableStatus" | "route" | "routeCode" | "fareRules"> & {
233
+ identifiers?: {
234
+ __typename?: "IRLIdentifiers";
235
+ } & Pick<import("../types/graphql.types").IrlIdentifiers, "singleOrReturn" | "transactionIdentifier" | "journeyIdentifier" | "provider" | "fareIdentifier" | "direction" | "bookingRef" | "signature">;
236
+ tickets?: ({
237
+ __typename?: "IRLTicket";
238
+ } & Pick<import("../types/graphql.types").IrlTicket, "price" | "type" | "route" | "numChildren" | "numAdults"> & {
239
+ segments?: ({
240
+ __typename?: "IRLSegment";
241
+ } & Pick<IrlSegment, "id" | "operator" | "reservableStatus" | "departDateTime" | "arriveDateTime" | "depart" | "arrive" | "seatPreferenceGroup"> & {
242
+ seatPreferenceTypes?: ({
243
+ __typename?: "IRLSeatPreferenceType";
244
+ } & Pick<import("../types/graphql.types").IrlSeatPreferenceType, "name" | "allowedValues">)[];
245
+ seats?: ({
246
+ __typename?: "IRLSeat";
247
+ } & Pick<import("../types/graphql.types").IrlSeat, "number" | "location" | "facilities" | "direction" | "coach" | "position" | "deck" | "seatType" | "seatSelection" | "note">)[];
248
+ })[];
249
+ })[];
250
+ };
251
+ })[];
252
+ ticketExtras?: ({
253
+ __typename?: "IRLTicketExtra";
254
+ } & Pick<import("../types/graphql.types").IrlTicketExtra, "currency" | "description" | "type" | "amount" | "location" | "date" | "adultAmount" | "childAmount"> & {
255
+ identifiers?: {
256
+ __typename?: "IRLTicketExtraIdentifiers";
257
+ } & Pick<import("../types/graphql.types").IrlTicketExtraIdentifiers, "type" | "location" | "date" | "journeyId" | "isOrigin">;
258
+ })[];
259
+ plusBus?: {
260
+ __typename?: "IRLPlusBus";
261
+ } & Pick<import("../types/graphql.types").IrlPlusBus, "originPlusBusNLC" | "originStationNLC" | "destinationPlusBusNLC" | "destinationStationNLC">;
262
+ })[];
263
+ return?: ({
264
+ __typename?: "IRLJourneyOption";
265
+ } & Pick<IrlJourneyOption, "from" | "fromCode" | "to" | "toCode" | "departDateTime" | "arriveDateTime" | "changes" | "unsellable"> & {
266
+ identifiers?: {
267
+ __typename?: "IRLIdentifiers";
268
+ } & Pick<import("../types/graphql.types").IrlIdentifiers, "singleOrReturn" | "transactionIdentifier" | "journeyIdentifier" | "provider" | "fareIdentifier" | "direction" | "bookingRef" | "signature">;
269
+ travellers?: ({
270
+ __typename?: "IRLTraveller";
271
+ } & Pick<import("../types/graphql.types").IrlTraveller, "id" | "status" | "surname" | "dob" | "railcard" | "givenName" | "nameTitle" | "contactInfo" | "deliveryEmailAddress" | "fare">)[];
272
+ segments?: ({
273
+ __typename?: "IRLSegment";
274
+ } & Pick<IrlSegment, "id" | "operator" | "reservableStatus" | "departDateTime" | "arriveDateTime" | "depart" | "arrive" | "seatPreferenceGroup"> & {
275
+ seatPreferenceTypes?: ({
276
+ __typename?: "IRLSeatPreferenceType";
277
+ } & Pick<import("../types/graphql.types").IrlSeatPreferenceType, "name" | "allowedValues">)[];
278
+ seats?: ({
279
+ __typename?: "IRLSeat";
280
+ } & Pick<import("../types/graphql.types").IrlSeat, "number" | "location" | "facilities" | "direction" | "coach" | "position" | "deck" | "seatType" | "seatSelection" | "note">)[];
281
+ })[];
282
+ providers?: ({
283
+ __typename?: "IRLProvider";
284
+ } & Pick<import("../types/graphql.types").IrlProvider, "name" | "providerId"> & {
285
+ cheapestTicket?: {
286
+ __typename?: "IRLTicketOption";
287
+ } & Pick<IrlTicketOption, "price" | "currency" | "type" | "class" | "singleOrReturn" | "reservableStatus" | "route" | "routeCode" | "fareRules"> & {
288
+ identifiers?: {
289
+ __typename?: "IRLIdentifiers";
290
+ } & Pick<import("../types/graphql.types").IrlIdentifiers, "singleOrReturn" | "transactionIdentifier" | "journeyIdentifier" | "provider" | "fareIdentifier" | "direction" | "bookingRef" | "signature">;
291
+ tickets?: ({
292
+ __typename?: "IRLTicket";
293
+ } & Pick<import("../types/graphql.types").IrlTicket, "price" | "type" | "route" | "numChildren" | "numAdults"> & {
294
+ segments?: ({
295
+ __typename?: "IRLSegment";
296
+ } & Pick<IrlSegment, "id" | "operator" | "reservableStatus" | "departDateTime" | "arriveDateTime" | "depart" | "arrive" | "seatPreferenceGroup"> & {
297
+ seatPreferenceTypes?: ({
298
+ __typename?: "IRLSeatPreferenceType";
299
+ } & Pick<import("../types/graphql.types").IrlSeatPreferenceType, "name" | "allowedValues">)[];
300
+ seats?: ({
301
+ __typename?: "IRLSeat";
302
+ } & Pick<import("../types/graphql.types").IrlSeat, "number" | "location" | "facilities" | "direction" | "coach" | "position" | "deck" | "seatType" | "seatSelection" | "note">)[];
303
+ })[];
304
+ })[];
305
+ };
306
+ ticketOptions?: ({
307
+ __typename?: "IRLTicketOption";
308
+ } & Pick<IrlTicketOption, "price" | "currency" | "type" | "class" | "singleOrReturn" | "reservableStatus" | "route" | "routeCode" | "fareRules"> & {
309
+ identifiers?: {
310
+ __typename?: "IRLIdentifiers";
311
+ } & Pick<import("../types/graphql.types").IrlIdentifiers, "singleOrReturn" | "transactionIdentifier" | "journeyIdentifier" | "provider" | "fareIdentifier" | "direction" | "bookingRef" | "signature">;
312
+ tickets?: ({
313
+ __typename?: "IRLTicket";
314
+ } & Pick<import("../types/graphql.types").IrlTicket, "price" | "type" | "route" | "numChildren" | "numAdults"> & {
315
+ segments?: ({
316
+ __typename?: "IRLSegment";
317
+ } & Pick<IrlSegment, "id" | "operator" | "reservableStatus" | "departDateTime" | "arriveDateTime" | "depart" | "arrive" | "seatPreferenceGroup"> & {
318
+ seatPreferenceTypes?: ({
319
+ __typename?: "IRLSeatPreferenceType";
320
+ } & Pick<import("../types/graphql.types").IrlSeatPreferenceType, "name" | "allowedValues">)[];
321
+ seats?: ({
322
+ __typename?: "IRLSeat";
323
+ } & Pick<import("../types/graphql.types").IrlSeat, "number" | "location" | "facilities" | "direction" | "coach" | "position" | "deck" | "seatType" | "seatSelection" | "note">)[];
324
+ })[];
325
+ })[];
326
+ })[];
327
+ bookedTicket?: {
328
+ __typename?: "IRLTicketOption";
329
+ } & Pick<IrlTicketOption, "price" | "currency" | "type" | "class" | "singleOrReturn" | "reservableStatus" | "route" | "routeCode" | "fareRules"> & {
330
+ identifiers?: {
331
+ __typename?: "IRLIdentifiers";
332
+ } & Pick<import("../types/graphql.types").IrlIdentifiers, "singleOrReturn" | "transactionIdentifier" | "journeyIdentifier" | "provider" | "fareIdentifier" | "direction" | "bookingRef" | "signature">;
333
+ tickets?: ({
334
+ __typename?: "IRLTicket";
335
+ } & Pick<import("../types/graphql.types").IrlTicket, "price" | "type" | "route" | "numChildren" | "numAdults"> & {
336
+ segments?: ({
337
+ __typename?: "IRLSegment";
338
+ } & Pick<IrlSegment, "id" | "operator" | "reservableStatus" | "departDateTime" | "arriveDateTime" | "depart" | "arrive" | "seatPreferenceGroup"> & {
339
+ seatPreferenceTypes?: ({
340
+ __typename?: "IRLSeatPreferenceType";
341
+ } & Pick<import("../types/graphql.types").IrlSeatPreferenceType, "name" | "allowedValues">)[];
342
+ seats?: ({
343
+ __typename?: "IRLSeat";
344
+ } & Pick<import("../types/graphql.types").IrlSeat, "number" | "location" | "facilities" | "direction" | "coach" | "position" | "deck" | "seatType" | "seatSelection" | "note">)[];
345
+ })[];
346
+ })[];
347
+ };
348
+ })[];
349
+ ticketExtras?: ({
350
+ __typename?: "IRLTicketExtra";
351
+ } & Pick<import("../types/graphql.types").IrlTicketExtra, "currency" | "description" | "type" | "amount" | "location" | "date" | "adultAmount" | "childAmount"> & {
352
+ identifiers?: {
353
+ __typename?: "IRLTicketExtraIdentifiers";
354
+ } & Pick<import("../types/graphql.types").IrlTicketExtraIdentifiers, "type" | "location" | "date" | "journeyId" | "isOrigin">;
355
+ })[];
356
+ plusBus?: {
357
+ __typename?: "IRLPlusBus";
358
+ } & Pick<import("../types/graphql.types").IrlPlusBus, "originPlusBusNLC" | "originStationNLC" | "destinationPlusBusNLC" | "destinationStationNLC">;
359
+ })[];
360
+ })[];
131
361
  protected resetQuery(): void;
132
362
  private _isValid;
133
363
  startSearch(): Promise<boolean>;
364
+ getRecentSearchQuery(query: SearchIrlQueryVariables): SaveRecentSearchMutationVariables;
365
+ private updateSerchQuery;
134
366
  startRecentSearch(recentSearch: RecentSearch): void;
135
367
  private _updateOutboundDateTime;
136
368
  private _updateReturnDateTime;
137
369
  getSearchQuery(): SearchIrlQueryVariables;
138
- combineChildTickets(tickets: RailTicketGroups): RailTicketGroups;
139
- setTicketsGroups(results: IrlJourneyOption[]): any;
140
370
  updateFromPreviousSearches(previousItems: Record<ServiceType, BasketItem>): void;
141
371
  updateCanCombine(tkt: IrlTicketOption): void;
142
- /**
143
- * @description - determine if a fare can be combined with what we currently have selected
144
- */
145
- clearUnneededTickets(way: string, group: RailTicketGroup, timeSlotId: string): RailTicketGroup;
146
- getLegsFromRailJourneyOption(railJourneyOption: IrlJourneyOption): any[];
147
- addSingleJourneyToBasket(serviceId: string, railQuery: SearchIrlQueryVariables, irlJourneyOption: IrlTicket): Promise<boolean>;
372
+ getLegsFromIrlJourneyOption(railJourneyOption: IrlJourneyOption): any[];
373
+ getSelectedIrlTicketOption(irlJourneyOption: IrlJourneyOption, irlTicketOption: IrlTicketOption, providerIndex: number): IrlTicketOption;
374
+ addSingleJourneyToBasket(serviceId: string, irlQuery: SearchIrlQueryVariables, outbound: IrlTicketOption, irlJourneyOption: IrlJourneyOption): Promise<boolean>;
375
+ addReturnJourneyToBasket(serviceId: string, irlQuery: SearchIrlQueryVariables, inbound: IrlTicketOption, inJourneyOption: IrlJourneyOption): Promise<boolean>;
148
376
  updateLowestPrice(results: IrlJourneyOptions[]): ICheapestPrice;
149
377
  findCheapestTicket(results: IrlJourneyOptions[]): number;
378
+ /**
379
+ * Sort results by price
380
+ *
381
+ * @returns
382
+ * @memberof irl-enterprise-search
383
+ */
384
+ sortByPrice(): void;
385
+ /**
386
+ * Sort results by departure time
387
+ *
388
+ * @returns
389
+ * @memberof irl-enterprise-search
390
+ */
391
+ sortByDate(): void;
392
+ addOutboundAndFilter(ticket: IrlTicketOptionWithSelected, fullTicket: IrlJourneyOption): void;
393
+ filterSelected(filterOutbound?: boolean): IrlJourneyOptions[];
394
+ /**
395
+ * @description - get irl station locations
396
+ * @param term - the term to search
397
+ * @param isLoading - BehaviorSubject so we know something is happening
398
+ */
399
+ private getIrlDiscountCards;
400
+ getTermsAndCond(inJourneyOption: IrlJourneyOption): {
401
+ name: string;
402
+ value: string;
403
+ }[];
404
+ saveSearch(): Observable<SaveFavouriteSearchResult>;
150
405
  }
@@ -1,9 +1,9 @@
1
1
  import { BaseEnterpriseSearch } from './base-enterprise';
2
- import { BehaviorSubject } from 'rxjs';
2
+ import { BehaviorSubject, Observable } from 'rxjs';
3
3
  import moment from 'moment';
4
4
  import { BaseStorageService } from '../services/storage.service';
5
5
  import { BaseHelperRoutines } from './helpers';
6
- import { LoungeQuoteResultArray, NgbDateStruct, OBTAirportDetails, RecentSearch, TerminalsType } from '../types/types';
6
+ import { LoungeQuoteResultArray, NgbDateStruct, OBTAirportDetails, RecentSearch, SaveFavouriteSearchResult, TerminalsType } from '../types/types';
7
7
  import { BasketItem, LoungeQuote, SaveRecentSearchMutationVariables, SearchLoungesQueryVariables, ServiceType } from '../types/graphql.types';
8
8
  import { BaseLoungeQuoteFetcher, LoungeQuoteFetcherType } from '../fetchers/lounge-quote.fetcher';
9
9
  import { EnterpriseBasketServiceInterface } from '../interfaces/Ienterprise-basket.service';
@@ -12,7 +12,6 @@ import { LoungesEnterpriseSearchInterface, LoungesTempParams } from '../interfac
12
12
  import { ICheapestPrice } from '../interfaces/cheapest-price';
13
13
  export declare class LoungesEnterpriseSearch<LQ_Q extends LoungeQuoteFetcherType> extends BaseEnterpriseSearch<LoungesTempParams, LoungeQuoteResultArray, LoungeQuoteResultArray> implements LoungesEnterpriseSearchInterface {
14
14
  private loungefetcher;
15
- private helpers;
16
15
  private basketService;
17
16
  private searchService;
18
17
  static readonly STORAGE_SESSION_PARAMS = "search_lounge";
@@ -65,5 +64,10 @@ export declare class LoungesEnterpriseSearch<LQ_Q extends LoungeQuoteFetcherType
65
64
  sortByTerminal(resultArray?: LoungeQuote[]): void;
66
65
  updateFromPreviousSearches(previousItems: Record<ServiceType, BasketItem>): void;
67
66
  addLoungeToBasket(loungeQuote: LoungeQuote, loungeQuery: SearchLoungesQueryVariables): Promise<boolean>;
67
+ getTermsAndCond(loungeQuote: LoungeQuote): {
68
+ name: string;
69
+ value: any;
70
+ }[];
68
71
  updateLowestPrice(results: LoungeQuote[]): ICheapestPrice;
72
+ saveSearch(): Observable<SaveFavouriteSearchResult>;
69
73
  }
@@ -24,6 +24,7 @@ export declare abstract class ManagementInfoAndIsValid extends ValidatorChecker
24
24
  updatedAt: FieldWrapper<Scalars['DateTime']>;
25
25
  valueMask?: Maybe<FieldWrapper<Scalars['String']>>;
26
26
  values: Array<Maybe<FieldWrapper<ManagementInfoValue>>>;
27
+ tempValue?: FieldWrapper<Scalars['String']>;
27
28
  isLoading: BehaviorSubject<boolean>;
28
29
  avaliableItems: GetMiAutoSugestionArray;
29
30
  get selectedValues(): Array<Maybe<FieldWrapper<SelectedManagementInfoValue>>>;