@tripian/model 3.0.0 → 4.2.0

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 (227) hide show
  1. package/api/v3/enums/BOOKING_PRODUCT_INFO.d.ts +1 -2
  2. package/api/v3/enums/POI_CATEGORY_GROUP.d.ts +1 -2
  3. package/api/v3/enums/PROVIDER_ID.d.ts +4 -3
  4. package/api/v3/enums/PROVIDER_NAME.d.ts +6 -5
  5. package/api/v3/enums/REACTION.d.ts +1 -2
  6. package/api/v3/enums/REACTION_COMMENT.d.ts +1 -2
  7. package/api/v3/enums/TRIP_PROFILE_PACE.d.ts +1 -2
  8. package/api/v3/index.d.ts +69 -70
  9. package/api/v3/models/Accommodation.d.ts +7 -0
  10. package/api/v3/models/Booking.d.ts +6 -0
  11. package/api/v3/models/{IBookingProduct.d.ts → BookingProduct.d.ts} +2 -3
  12. package/api/v3/models/City.d.ts +15 -0
  13. package/api/v3/models/{ICompanion.d.ts → Companion.d.ts} +2 -3
  14. package/api/v3/models/Continent.d.ts +3 -0
  15. package/api/v3/models/Coordinate.d.ts +4 -0
  16. package/api/v3/models/Country.d.ts +6 -0
  17. package/api/v3/models/{IFavorite.d.ts → Favorite.d.ts} +2 -3
  18. package/api/v3/models/HourFormat.d.ts +4 -0
  19. package/api/v3/models/Image.d.ts +7 -0
  20. package/api/v3/models/{IImageOwner.d.ts → ImageOwner.d.ts} +2 -3
  21. package/api/v3/models/Option.d.ts +6 -0
  22. package/api/v3/models/{IPlan.d.ts → Plan.d.ts} +4 -5
  23. package/api/v3/models/{IPoi.d.ts → Poi.d.ts} +14 -15
  24. package/api/v3/models/PoiCategory.d.ts +7 -0
  25. package/api/v3/models/PoiCategoryGroup.d.ts +5 -0
  26. package/api/v3/models/PoiCategoryParent.d.ts +4 -0
  27. package/api/v3/models/PoiHours.d.ts +4 -0
  28. package/api/v3/models/PoiReference.d.ts +10 -0
  29. package/api/v3/models/{IQuestion.d.ts → Question.d.ts} +4 -5
  30. package/api/v3/models/Recommendation.d.ts +5 -0
  31. package/api/v3/models/Step.d.ts +10 -0
  32. package/api/v3/models/StepHours.d.ts +4 -0
  33. package/api/v3/models/SubOption.d.ts +4 -0
  34. package/api/v3/models/TasteItem.d.ts +7 -0
  35. package/api/v3/models/{ITasteItemImage.d.ts → TasteItemImage.d.ts} +2 -3
  36. package/api/v3/models/Token.d.ts +4 -0
  37. package/api/v3/models/{ITokenPayload.d.ts → TokenPayload.d.ts} +2 -3
  38. package/api/v3/models/{ITokenRefresh.d.ts → TokenRefresh.d.ts} +2 -3
  39. package/api/v3/models/TopTen.d.ts +6 -0
  40. package/api/v3/models/Trip.d.ts +5 -0
  41. package/api/v3/models/{ITripProfile.d.ts → TripProfile.d.ts} +4 -5
  42. package/api/v3/models/TripReference.d.ts +8 -0
  43. package/api/v3/models/User.d.ts +8 -0
  44. package/api/v3/models/UserProfile.d.ts +4 -0
  45. package/api/v3/models/{IUserReaction.d.ts → UserReaction.d.ts} +4 -5
  46. package/api/v3/models/{IUserReservation.d.ts → UserReservation.d.ts} +2 -3
  47. package/api/v3/requests/{ICompanionRequest.d.ts → CompanionRequest.d.ts} +2 -3
  48. package/api/v3/requests/{IDevice.d.ts → Device.d.ts} +2 -3
  49. package/api/v3/requests/FavoriteRequest.d.ts +4 -0
  50. package/api/v3/requests/FavoriteUpdateRequest.d.ts +4 -0
  51. package/api/v3/requests/LoginRequestEmail.d.ts +6 -0
  52. package/api/v3/requests/LoginRequestTripHash.d.ts +5 -0
  53. package/api/v3/requests/LoginRequestUsername.d.ts +5 -0
  54. package/api/v3/requests/{IPlanUpdateRequest.d.ts → PlanUpdateRequest.d.ts} +2 -3
  55. package/api/v3/requests/{IPoisRequest.d.ts → PoisRequest.d.ts} +2 -3
  56. package/api/v3/requests/PoisRequestCoordinate.d.ts +8 -0
  57. package/api/v3/requests/PoisRequestMustTry.d.ts +5 -0
  58. package/api/v3/requests/{IPoisRequestName.d.ts → PoisRequestName.d.ts} +2 -3
  59. package/api/v3/requests/{IRecommendationRequest.d.ts → RecommendationRequest.d.ts} +3 -4
  60. package/api/v3/requests/RegisterRequestEmail.d.ts +8 -0
  61. package/api/v3/requests/RegisterRequestUsername.d.ts +7 -0
  62. package/api/v3/requests/{IStepRequest.d.ts → StepRequest.d.ts} +2 -3
  63. package/api/v3/requests/StepUpdateRequest.d.ts +4 -0
  64. package/api/v3/requests/TokenRefreshRequest.d.ts +3 -0
  65. package/api/v3/requests/UserProfileRequest.d.ts +4 -0
  66. package/api/v3/requests/UserReactionRequest.d.ts +8 -0
  67. package/api/v3/requests/{IUserReservationRequest.d.ts → UserReservationRequest.d.ts} +2 -3
  68. package/api/v3/requests/UserUpdateRequest.d.ts +7 -0
  69. package/api/v3/responses/DataPayload.d.ts +5 -0
  70. package/api/v3/responses/{IErrorResponse.d.ts → ErrorResponse.d.ts} +2 -3
  71. package/api/v3/responses/Pagination.d.ts +9 -0
  72. package/api/v3/responses/PaginationLinks.d.ts +4 -0
  73. package/api/v3/responses/SuccessResponse.d.ts +8 -0
  74. package/helper/index.d.ts +28 -29
  75. package/helper/plural.d.ts +1 -2
  76. package/index.d.ts +2 -3
  77. package/index.js +1 -1
  78. package/index.js.map +1 -1
  79. package/package.json +1 -1
  80. package/providers/bb/ACTIVITY_THEMES.d.ts +14 -0
  81. package/providers/bb/Activity.d.ts +11 -0
  82. package/providers/bb/ActivityInfo.d.ts +16 -0
  83. package/providers/bb/ActivityInfoImage.d.ts +7 -0
  84. package/providers/bb/ActivityInfoLocation.d.ts +4 -0
  85. package/providers/bb/ActivityPoint.d.ts +9 -0
  86. package/providers/bb/AuthorizationResponse.d.ts +48 -0
  87. package/providers/bb/Offer.d.ts +58 -0
  88. package/providers/bb/OfferPoint.d.ts +6 -0
  89. package/providers/bb/Product.d.ts +19 -0
  90. package/providers/bb/SearchAccommodationResponse.d.ts +119 -0
  91. package/providers/bb/SearchActivitiesResponse.d.ts +20 -0
  92. package/providers/bb/index.d.ts +12 -0
  93. package/providers/glx/Booking.d.ts +16 -0
  94. package/providers/glx/{IBookingContact.d.ts → BookingContact.d.ts} +2 -3
  95. package/providers/glx/BookingInformation.d.ts +4 -0
  96. package/providers/glx/{IBookingLocation.d.ts → BookingLocation.d.ts} +2 -3
  97. package/providers/glx/{IBookingPrice.d.ts → BookingPrice.d.ts} +2 -3
  98. package/providers/glx/{IBookingRef.d.ts → BookingRef.d.ts} +9 -10
  99. package/providers/glx/BookingSearchResult.d.ts +10 -0
  100. package/providers/glx/BookingSearchResultAggregation.d.ts +18 -0
  101. package/providers/glx/BookingSubCategory.d.ts +4 -0
  102. package/providers/glx/BookingSupplier.d.ts +4 -0
  103. package/providers/glx/Catalog.d.ts +4 -0
  104. package/providers/glx/{ICatalogGroup.d.ts → CatalogGroup.d.ts} +4 -5
  105. package/providers/glx/{IToken.d.ts → Token.d.ts} +2 -3
  106. package/providers/glx/{ITourRating.d.ts → TourRating.d.ts} +2 -3
  107. package/providers/glx/{ITourReview.d.ts → TourReview.d.ts} +2 -3
  108. package/providers/glx/index.d.ts +15 -16
  109. package/providers/gyg/CatalogGroup.d.ts +5 -0
  110. package/providers/gyg/Categories.d.ts +8 -0
  111. package/providers/gyg/{ICategory.d.ts → Category.d.ts} +2 -3
  112. package/providers/gyg/{IMetaData.d.ts → MetaData.d.ts} +2 -3
  113. package/providers/gyg/{IPaymentConfiguration.d.ts → PaymentConfiguration.d.ts} +2 -3
  114. package/providers/gyg/PaymentConfigurations.d.ts +8 -0
  115. package/providers/gyg/{ITour.d.ts → Tour.d.ts} +14 -15
  116. package/providers/gyg/TourAvailabilities.d.ts +8 -0
  117. package/providers/gyg/{ITourAvailability.d.ts → TourAvailability.d.ts} +2 -3
  118. package/providers/gyg/{ITourBooking.d.ts → TourBooking.d.ts} +2 -3
  119. package/providers/gyg/{ITourBookingCart.d.ts → TourBookingCart.d.ts} +14 -6
  120. package/providers/gyg/{ITourBookingCartRequest.d.ts → TourBookingCartRequest.d.ts} +2 -3
  121. package/providers/gyg/TourBookingCartWithDetails.d.ts +6 -0
  122. package/providers/gyg/TourBookingCarts.d.ts +6 -0
  123. package/providers/gyg/{ITourBookingInfo.d.ts → TourBookingInfo.d.ts} +2 -3
  124. package/providers/gyg/TourBookingInfos.d.ts +8 -0
  125. package/providers/gyg/{ITourBookingRequest.d.ts → TourBookingRequest.d.ts} +8 -3
  126. package/providers/gyg/TourBookings.d.ts +8 -0
  127. package/providers/gyg/{ITourCategories.d.ts → TourCategories.d.ts} +2 -3
  128. package/providers/gyg/TourCoordinates.d.ts +4 -0
  129. package/providers/gyg/TourDateRange.d.ts +4 -0
  130. package/providers/gyg/TourDurations.d.ts +4 -0
  131. package/providers/gyg/TourLocations.d.ts +13 -0
  132. package/providers/gyg/{ITourOption.d.ts → TourOption.d.ts} +6 -7
  133. package/providers/gyg/TourOptionDetails.d.ts +8 -0
  134. package/providers/gyg/{ITourOptionPricing.d.ts → TourOptionPricing.d.ts} +2 -3
  135. package/providers/gyg/TourOptionPricings.d.ts +8 -0
  136. package/providers/gyg/TourOptions.d.ts +8 -0
  137. package/providers/gyg/{ITourPictures.d.ts → TourPictures.d.ts} +2 -3
  138. package/providers/gyg/{ITourPrice.d.ts → TourPrice.d.ts} +2 -3
  139. package/providers/gyg/TourReservationDetails.d.ts +6 -0
  140. package/providers/gyg/{IGygTourShoppingFormData.d.ts → TourShoppingFormData.d.ts} +2 -3
  141. package/providers/gyg/{ITourViewport.d.ts → TourViewport.d.ts} +2 -3
  142. package/providers/gyg/Tours.d.ts +8 -0
  143. package/providers/gyg/index.d.ts +33 -31
  144. package/providers/index.d.ts +3 -2
  145. package/providers/yelp/{IBusiness.d.ts → Business.d.ts} +2 -3
  146. package/providers/yelp/{IHold.d.ts → Hold.d.ts} +2 -3
  147. package/providers/yelp/{IHoldRequest.d.ts → HoldRequest.d.ts} +2 -3
  148. package/providers/yelp/Opening.d.ts +5 -0
  149. package/providers/yelp/OpeningTime.d.ts +4 -0
  150. package/providers/yelp/Openings.d.ts +4 -0
  151. package/providers/yelp/{IOpeningsRequest.d.ts → OpeningsRequest.d.ts} +2 -3
  152. package/providers/yelp/{IReservation.d.ts → Reservation.d.ts} +2 -3
  153. package/providers/yelp/ReservationInfo.d.ts +8 -0
  154. package/providers/yelp/{IReservationRequest.d.ts → ReservationRequest.d.ts} +2 -3
  155. package/providers/yelp/ReservationStatusResponse.d.ts +6 -0
  156. package/providers/yelp/index.d.ts +10 -11
  157. package/api/custom/IPoiCategoryGroup.d.ts +0 -6
  158. package/api/v3/models/IAccommodation.d.ts +0 -8
  159. package/api/v3/models/IBooking.d.ts +0 -7
  160. package/api/v3/models/ICity.d.ts +0 -16
  161. package/api/v3/models/IContinent.d.ts +0 -4
  162. package/api/v3/models/ICoordinate.d.ts +0 -5
  163. package/api/v3/models/ICountry.d.ts +0 -7
  164. package/api/v3/models/IHourFormat.d.ts +0 -5
  165. package/api/v3/models/IImage.d.ts +0 -8
  166. package/api/v3/models/IOption.d.ts +0 -7
  167. package/api/v3/models/IPoiCategory.d.ts +0 -8
  168. package/api/v3/models/IPoiCategoryParent.d.ts +0 -5
  169. package/api/v3/models/IPoiHours.d.ts +0 -5
  170. package/api/v3/models/IPoiReference.d.ts +0 -11
  171. package/api/v3/models/IRecommendation.d.ts +0 -6
  172. package/api/v3/models/IStep.d.ts +0 -11
  173. package/api/v3/models/IStepHours.d.ts +0 -5
  174. package/api/v3/models/ISubOption.d.ts +0 -5
  175. package/api/v3/models/ITasteItem.d.ts +0 -8
  176. package/api/v3/models/IToken.d.ts +0 -5
  177. package/api/v3/models/ITopTen.d.ts +0 -7
  178. package/api/v3/models/ITrip.d.ts +0 -6
  179. package/api/v3/models/ITripReference.d.ts +0 -9
  180. package/api/v3/models/IUser.d.ts +0 -9
  181. package/api/v3/models/IUserProfile.d.ts +0 -5
  182. package/api/v3/requests/IFavoriteRequest.d.ts +0 -5
  183. package/api/v3/requests/IFavoriteUpdateRequest.d.ts +0 -5
  184. package/api/v3/requests/ILoginRequestEmail.d.ts +0 -7
  185. package/api/v3/requests/ILoginRequestTripHash.d.ts +0 -6
  186. package/api/v3/requests/ILoginRequestUsername.d.ts +0 -6
  187. package/api/v3/requests/IPoisRequestCoordinate.d.ts +0 -9
  188. package/api/v3/requests/IPoisRequestMustTry.d.ts +0 -6
  189. package/api/v3/requests/IRegisterRequestEmail.d.ts +0 -9
  190. package/api/v3/requests/IRegisterRequestUsername.d.ts +0 -8
  191. package/api/v3/requests/IStepUpdateRequest.d.ts +0 -5
  192. package/api/v3/requests/ITokenRefreshRequest.d.ts +0 -4
  193. package/api/v3/requests/IUserProfileRequest.d.ts +0 -5
  194. package/api/v3/requests/IUserReactionRequest.d.ts +0 -9
  195. package/api/v3/requests/IUserUpdateRequest.d.ts +0 -8
  196. package/api/v3/responses/IDataPayload.d.ts +0 -6
  197. package/api/v3/responses/IPagination.d.ts +0 -10
  198. package/api/v3/responses/IPaginationLinks.d.ts +0 -5
  199. package/api/v3/responses/ISuccessResponse.d.ts +0 -9
  200. package/providers/glx/IBooking.d.ts +0 -17
  201. package/providers/glx/IBookingInformation.d.ts +0 -5
  202. package/providers/glx/IBookingSearchResult.d.ts +0 -11
  203. package/providers/glx/IBookingSearchResultAggregation.d.ts +0 -18
  204. package/providers/glx/IBookingSubCategory.d.ts +0 -5
  205. package/providers/glx/IBookingSupplier.d.ts +0 -5
  206. package/providers/glx/ICatalog.d.ts +0 -5
  207. package/providers/gyg/ICatalogGroup.d.ts +0 -6
  208. package/providers/gyg/ICategories.d.ts +0 -9
  209. package/providers/gyg/IPaymentConfigurations.d.ts +0 -9
  210. package/providers/gyg/ITourAvailabilities.d.ts +0 -9
  211. package/providers/gyg/ITourBookingCarts.d.ts +0 -7
  212. package/providers/gyg/ITourBookingInfos.d.ts +0 -9
  213. package/providers/gyg/ITourBookings.d.ts +0 -9
  214. package/providers/gyg/ITourCoordinates.d.ts +0 -5
  215. package/providers/gyg/ITourDurations.d.ts +0 -5
  216. package/providers/gyg/ITourLocations.d.ts +0 -14
  217. package/providers/gyg/ITourOptionPricings.d.ts +0 -9
  218. package/providers/gyg/ITourOptions.d.ts +0 -9
  219. package/providers/gyg/ITours.d.ts +0 -9
  220. package/providers/gyg/sampleData/categories.d.ts +0 -12
  221. package/providers/gyg/sampleData/tours-full.d.ts +0 -90
  222. package/providers/gyg/sampleData/tours.d.ts +0 -111
  223. package/providers/yelp/IOpening.d.ts +0 -6
  224. package/providers/yelp/IOpeningTime.d.ts +0 -5
  225. package/providers/yelp/IOpenings.d.ts +0 -5
  226. package/providers/yelp/IReservationInfo.d.ts +0 -9
  227. package/providers/yelp/IReservationStatusResponse.d.ts +0 -7
@@ -1,6 +1,5 @@
1
- interface IBookingLocation {
1
+ export declare type BookingLocation = {
2
2
  address?: string;
3
3
  latitude: number;
4
4
  longitude: number;
5
- }
6
- export default IBookingLocation;
5
+ };
@@ -1,4 +1,4 @@
1
- interface IBookingPrice {
1
+ export declare type BookingPrice = {
2
2
  value: number;
3
3
  baseCurrency: string;
4
4
  exchangeEnabled: boolean;
@@ -20,5 +20,4 @@ interface IBookingPrice {
20
20
  usd: number;
21
21
  glx: number;
22
22
  };
23
- }
24
- export default IBookingPrice;
23
+ };
@@ -1,25 +1,24 @@
1
- import IBookingSubCategory from './IBookingSubCategory';
2
- import IBookingPrice from './IBookingPrice';
3
- import IBookingLocation from './IBookingLocation';
4
- interface IBookingRef {
1
+ import { BookingSubCategory } from './BookingSubCategory';
2
+ import { BookingPrice } from './BookingPrice';
3
+ import { BookingLocation } from './BookingLocation';
4
+ export declare type BookingRef = {
5
5
  id: string;
6
6
  title: string;
7
7
  subTitle: string;
8
8
  city: string | null;
9
9
  country: string | null;
10
10
  thumbnail: string;
11
- priceStartingAt: IBookingPrice;
12
- minimumEarningValue?: IBookingPrice;
11
+ priceStartingAt: BookingPrice;
12
+ minimumEarningValue?: BookingPrice;
13
13
  pointsDisclaimer: string;
14
14
  categories: string[];
15
- subCategories: IBookingSubCategory[];
15
+ subCategories: BookingSubCategory[];
16
16
  isAvailable: boolean;
17
17
  purchaseStrategy: string;
18
18
  checkoutStrategy: string;
19
- geoLocation: IBookingLocation | null;
19
+ geoLocation: BookingLocation | null;
20
20
  providerTranslationAttribution: {
21
21
  image: string | null;
22
22
  link: string | null;
23
23
  };
24
- }
25
- export default IBookingRef;
24
+ };
@@ -0,0 +1,10 @@
1
+ import { BookingRef } from './BookingRef';
2
+ import { BookingSearchResultAggregation } from './BookingSearchResultAggregation';
3
+ export declare type BookingSearchResult = {
4
+ aggregation: BookingSearchResultAggregation;
5
+ items: BookingRef[];
6
+ skip: number;
7
+ take: number;
8
+ parameters: any;
9
+ total: number;
10
+ };
@@ -0,0 +1,18 @@
1
+ import { BookingPrice } from './BookingPrice';
2
+ declare type BookingSearchResultAggregationCity = {
3
+ label: string;
4
+ count: number;
5
+ };
6
+ declare type BookingSearchResultAggregationCategory = {
7
+ label: string;
8
+ count: number;
9
+ };
10
+ export declare type BookingSearchResultAggregation = {
11
+ price: {
12
+ max: BookingPrice;
13
+ min: BookingPrice;
14
+ };
15
+ cities: BookingSearchResultAggregationCity[];
16
+ categories: BookingSearchResultAggregationCategory[];
17
+ };
18
+ export {};
@@ -0,0 +1,4 @@
1
+ export declare type BookingSubCategory = {
2
+ id: string;
3
+ label: string;
4
+ };
@@ -0,0 +1,4 @@
1
+ export declare type BookingSupplier = {
2
+ name: string;
3
+ trademark: string | null;
4
+ };
@@ -0,0 +1,4 @@
1
+ import { CatalogGroup } from './CatalogGroup';
2
+ export declare type Catalog = {
3
+ groups: CatalogGroup[];
4
+ };
@@ -1,11 +1,10 @@
1
- import IBookingRef from './IBookingRef';
2
- interface ICatalogGroup {
1
+ import { BookingRef } from './BookingRef';
2
+ export declare type CatalogGroup = {
3
3
  type: string;
4
4
  title: string;
5
5
  subTitle: string | null;
6
6
  description: string;
7
7
  featured: boolean;
8
- items: IBookingRef[];
8
+ items: BookingRef[];
9
9
  groupSearch: any | null;
10
- }
11
- export default ICatalogGroup;
10
+ };
@@ -1,6 +1,5 @@
1
- interface IToken {
1
+ export declare type Token = {
2
2
  created: string;
3
3
  expires: string;
4
4
  token: string;
5
- }
6
- export default IToken;
5
+ };
@@ -1,6 +1,5 @@
1
- interface ITourRating {
1
+ export declare type TourRating = {
2
2
  id: string;
3
3
  rate: number;
4
4
  rateCount: number;
5
- }
6
- export default ITourRating;
5
+ };
@@ -1,7 +1,6 @@
1
- interface ITourReview {
1
+ export declare type TourReview = {
2
2
  id: string;
3
3
  rate: number;
4
4
  username: string;
5
5
  comment: string;
6
- }
7
- export default ITourReview;
6
+ };
@@ -1,16 +1,15 @@
1
- import Token from './IToken';
2
- import TourRating from './ITourRating';
3
- import TourReview from './ITourReview';
4
- import BookingContact from './IBookingContact';
5
- import BookingInformation from './IBookingInformation';
6
- import BookingLocation from './IBookingLocation';
7
- import BookingPrice from './IBookingPrice';
8
- import BookingSubCategory from './IBookingSubCategory';
9
- import BookingSupplier from './IBookingSupplier';
10
- import BookingRef from './IBookingRef';
11
- import Booking from './IBooking';
12
- import BookingSearchResultAggregation from './IBookingSearchResultAggregation';
13
- import BookingSearchResult from './IBookingSearchResult';
14
- import CatalogGroup from './ICatalogGroup';
15
- import Catalog from './ICatalog';
16
- export { Token, TourRating, TourReview, BookingContact, BookingInformation, BookingLocation, BookingPrice, BookingSubCategory, BookingSupplier, BookingRef, Booking, BookingSearchResultAggregation, BookingSearchResult, CatalogGroup, Catalog, };
1
+ export * from './Token';
2
+ export * from './TourRating';
3
+ export * from './TourReview';
4
+ export * from './BookingContact';
5
+ export * from './BookingInformation';
6
+ export * from './BookingLocation';
7
+ export * from './BookingPrice';
8
+ export * from './BookingSubCategory';
9
+ export * from './BookingSupplier';
10
+ export * from './BookingRef';
11
+ export * from './Booking';
12
+ export * from './BookingSearchResultAggregation';
13
+ export * from './BookingSearchResult';
14
+ export * from './CatalogGroup';
15
+ export * from './Catalog';
@@ -0,0 +1,5 @@
1
+ import { Tour } from './Tour';
2
+ export declare type CatalogGroup = {
3
+ title: string;
4
+ items: Tour[];
5
+ };
@@ -0,0 +1,8 @@
1
+ import { Category } from './Category';
2
+ import { MetaData } from './MetaData';
3
+ export declare type Categories = {
4
+ metadata: MetaData;
5
+ data: {
6
+ categories: Array<Category>;
7
+ };
8
+ };
@@ -1,7 +1,6 @@
1
- interface ICategory {
1
+ export declare type Category = {
2
2
  category_id: number;
3
3
  name: string;
4
4
  number_of_tours: number;
5
5
  parent_id?: number;
6
- }
7
- export default ICategory;
6
+ };
@@ -1,4 +1,4 @@
1
- interface IMetaDatam {
1
+ export declare type MetaData = {
2
2
  descriptor: string;
3
3
  method: string;
4
4
  date: string;
@@ -12,5 +12,4 @@ interface IMetaDatam {
12
12
  totalCount: number;
13
13
  limit: number;
14
14
  offset: number;
15
- }
16
- export default IMetaDatam;
15
+ };
@@ -1,9 +1,8 @@
1
- interface IPaymentConfiguration {
1
+ export declare type PaymentConfiguration = {
2
2
  name: string;
3
3
  public_key: string;
4
4
  brands: Array<{
5
5
  name: string;
6
6
  code?: string;
7
7
  }>;
8
- }
9
- export default IPaymentConfiguration;
8
+ };
@@ -0,0 +1,8 @@
1
+ import { MetaData } from './MetaData';
2
+ import { PaymentConfiguration } from './PaymentConfiguration';
3
+ export declare type PaymentConfigurations = {
4
+ metadata: MetaData;
5
+ data: {
6
+ payment_methods: Array<PaymentConfiguration>;
7
+ };
8
+ };
@@ -1,10 +1,10 @@
1
- import ITourDurations from './ITourDurations';
2
- import ITourCategories from './ITourCategories';
3
- import ITourCoordinates from './ITourCoordinates';
4
- import ITourLocations from './ITourLocations';
5
- import ITourPictures from './ITourPictures';
6
- import ITourPrice from './ITourPrice';
7
- interface ITour {
1
+ import { TourDurations } from './TourDurations';
2
+ import { TourCategories } from './TourCategories';
3
+ import { TourCoordinates } from './TourCoordinates';
4
+ import { TourLocations } from './TourLocations';
5
+ import { TourPictures } from './TourPictures';
6
+ import { TourPrice } from './TourPrice';
7
+ export declare type Tour = {
8
8
  tour_id: number;
9
9
  tour_code: string;
10
10
  cond_language: Array<string>;
@@ -21,17 +21,16 @@ interface ITour {
21
21
  highlights?: Array<string>;
22
22
  inclusions?: string;
23
23
  exclusions?: string;
24
- pictures: Array<ITourPictures>;
25
- coordinates: ITourCoordinates;
26
- price: ITourPrice;
27
- categories: Array<ITourCategories>;
28
- locations: Array<ITourLocations>;
24
+ pictures: Array<TourPictures>;
25
+ coordinates: TourCoordinates;
26
+ price?: TourPrice;
27
+ categories: Array<TourCategories>;
28
+ locations: Array<TourLocations>;
29
29
  url: string;
30
30
  translations?: Array<string>;
31
31
  free_sale?: boolean;
32
32
  mobile_voucher?: boolean;
33
33
  supplier_id?: number;
34
- durations: Array<ITourDurations>;
34
+ durations: Array<TourDurations>;
35
35
  cancellation_policy_text?: string;
36
- }
37
- export default ITour;
36
+ };
@@ -0,0 +1,8 @@
1
+ import { MetaData } from './MetaData';
2
+ import { TourAvailability } from './TourAvailability';
3
+ export declare type TourAvailabilities = {
4
+ metadata: MetaData;
5
+ data: {
6
+ availabilities: Array<TourAvailability>;
7
+ };
8
+ };
@@ -1,8 +1,7 @@
1
- interface ITourAvailability {
1
+ export declare type TourAvailability = {
2
2
  start_time: string;
3
3
  pricing_id: number;
4
4
  vacancies: number;
5
5
  discount?: number;
6
6
  end_time?: string;
7
- }
8
- export default ITourAvailability;
7
+ };
@@ -1,4 +1,4 @@
1
- interface ITourBooking {
1
+ export declare type TourBooking = {
2
2
  bookings: {
3
3
  shopping_cart_id: number;
4
4
  shopping_cart_hash: string;
@@ -7,5 +7,4 @@ interface ITourBooking {
7
7
  status: string;
8
8
  return_code: number;
9
9
  };
10
- }
11
- export default ITourBooking;
10
+ };
@@ -1,4 +1,4 @@
1
- interface ITourBookingCart {
1
+ export declare type TourBookingCart = {
2
2
  shopping_cart_id: number;
3
3
  shopping_cart_hash: string;
4
4
  billing: {
@@ -56,9 +56,18 @@ interface ITourBookingCart {
56
56
  cancellation_policy_text: string;
57
57
  };
58
58
  ticket?: {
59
- code: string;
60
- code_type: string;
61
- category: string;
59
+ booking_reference: string;
60
+ voucher_information: string;
61
+ emergency_phone_number: string;
62
+ ticket_hash: string;
63
+ emergency_email: string;
64
+ ticket_url: string;
65
+ supplier_booking_codes: {
66
+ code: string;
67
+ ticket_hash: string;
68
+ label: string;
69
+ type: string;
70
+ }[];
62
71
  };
63
72
  }[];
64
73
  payment_info: {
@@ -69,5 +78,4 @@ interface ITourBookingCart {
69
78
  coupon_info?: string;
70
79
  invoice_reference: string;
71
80
  };
72
- }
73
- export default ITourBookingCart;
81
+ };
@@ -1,4 +1,4 @@
1
- interface ITourBookingCartRequest {
1
+ export declare type TourBookingCartRequest = {
2
2
  base_data: {
3
3
  cnt_language: string;
4
4
  currency: string;
@@ -46,5 +46,4 @@ interface ITourBookingCartRequest {
46
46
  };
47
47
  };
48
48
  };
49
- }
50
- export default ITourBookingCartRequest;
49
+ };
@@ -0,0 +1,6 @@
1
+ import { TourBookingCart } from './TourBookingCart';
2
+ export declare type TourBookingCartWithDetails = TourBookingCart & {
3
+ tour_name: string;
4
+ city_name: string;
5
+ tour_image: string;
6
+ };
@@ -0,0 +1,6 @@
1
+ import { MetaData } from './MetaData';
2
+ import { TourBookingCart } from './TourBookingCart';
3
+ export declare type TourBookingCarts = {
4
+ metadata: MetaData;
5
+ data: TourBookingCart;
6
+ };
@@ -1,4 +1,4 @@
1
- interface ITourBookingInfo {
1
+ export declare type TourBookingInfo = {
2
2
  booking_id: number;
3
3
  booking_hash: string;
4
4
  booking_status: string;
@@ -34,5 +34,4 @@ interface ITourBookingInfo {
34
34
  valid_until: string;
35
35
  cancellation_policy_text: string;
36
36
  };
37
- }
38
- export default ITourBookingInfo;
37
+ };
@@ -0,0 +1,8 @@
1
+ import { MetaData } from './MetaData';
2
+ import { TourBookingInfo } from './TourBookingInfo';
3
+ export declare type TourBookingInfos = {
4
+ metadata: MetaData;
5
+ data: {
6
+ booking: Array<TourBookingInfo>;
7
+ };
8
+ };
@@ -1,4 +1,4 @@
1
- interface ITourBookingRequest {
1
+ export declare type TourBookingRequest = {
2
2
  base_data: {
3
3
  cnt_language: string;
4
4
  currency: string;
@@ -14,8 +14,13 @@ interface ITourBookingRequest {
14
14
  category_id: number;
15
15
  number_of_participants: number;
16
16
  }[];
17
+ booking_parameters?: {
18
+ name: string;
19
+ value_1: string;
20
+ value_2?: string;
21
+ mandatory: boolean;
22
+ }[];
17
23
  };
18
24
  };
19
25
  };
20
- }
21
- export default ITourBookingRequest;
26
+ };
@@ -0,0 +1,8 @@
1
+ import { MetaData } from './MetaData';
2
+ import { TourBooking } from './TourBooking';
3
+ export declare type TourBookings = {
4
+ metadata: MetaData;
5
+ data: {
6
+ bookings: Array<TourBooking>;
7
+ };
8
+ };
@@ -1,6 +1,5 @@
1
- interface ITourCategories {
1
+ export declare type TourCategories = {
2
2
  category_id: number;
3
3
  name: string;
4
4
  parent_id?: number;
5
- }
6
- export default ITourCategories;
5
+ };
@@ -0,0 +1,4 @@
1
+ export declare type TourCoordinates = {
2
+ lat: number;
3
+ long: number;
4
+ };
@@ -0,0 +1,4 @@
1
+ export declare type TourDateRange = {
2
+ start: string;
3
+ end: string;
4
+ };
@@ -0,0 +1,4 @@
1
+ export declare type TourDurations = {
2
+ duration: number;
3
+ unit: string;
4
+ };
@@ -0,0 +1,13 @@
1
+ import { TourCoordinates } from './TourCoordinates';
2
+ import { TourViewport } from './TourViewport';
3
+ export declare type TourLocations = {
4
+ location_id: number;
5
+ type: string;
6
+ name: string;
7
+ english_name: string;
8
+ city?: string;
9
+ country: string;
10
+ coordinates: TourCoordinates;
11
+ parent_id?: number;
12
+ viewport: TourViewport;
13
+ };
@@ -1,6 +1,6 @@
1
- import ITourCoordinates from './ITourCoordinates';
2
- import ITourPrice from './ITourPrice';
3
- interface ITourOption {
1
+ import { TourCoordinates } from './TourCoordinates';
2
+ import { TourPrice } from './TourPrice';
3
+ export declare type TourOption = {
4
4
  option_id: number;
5
5
  tour_id: number;
6
6
  title: string;
@@ -28,8 +28,7 @@ interface ITourOption {
28
28
  wlc: boolean;
29
29
  }[];
30
30
  coordinate_type: string;
31
- coordinates: ITourCoordinates;
32
- price: ITourPrice[];
31
+ coordinates: TourCoordinates;
32
+ price: TourPrice;
33
33
  free_sale?: boolean;
34
- }
35
- export default ITourOption;
34
+ };
@@ -0,0 +1,8 @@
1
+ import { TourAvailability } from './TourAvailability';
2
+ import { TourOption } from './TourOption';
3
+ import { TourOptionPricing } from './TourOptionPricing';
4
+ export declare type TourOptionDetails = {
5
+ option: TourOption;
6
+ availabilities: TourAvailability[];
7
+ pricings?: TourOptionPricing;
8
+ };
@@ -1,4 +1,4 @@
1
- interface ITourOptionPricing {
1
+ export declare type TourOptionPricing = {
2
2
  pricing_id: number;
3
3
  total_minimum_participants: number;
4
4
  total_maximum_participants?: number;
@@ -17,5 +17,4 @@ interface ITourOptionPricing {
17
17
  type: string;
18
18
  }[];
19
19
  }[];
20
- }
21
- export default ITourOptionPricing;
20
+ };
@@ -0,0 +1,8 @@
1
+ import { MetaData } from './MetaData';
2
+ import { TourOptionPricing } from './TourOptionPricing';
3
+ export declare type TourOptionPricings = {
4
+ metadata: MetaData;
5
+ data: {
6
+ pricing: Array<TourOptionPricing>;
7
+ };
8
+ };
@@ -0,0 +1,8 @@
1
+ import { MetaData } from './MetaData';
2
+ import { TourOption } from './TourOption';
3
+ export declare type TourOptions = {
4
+ metadata: MetaData;
5
+ data: {
6
+ tour_options: Array<TourOption>;
7
+ };
8
+ };
@@ -1,7 +1,6 @@
1
- interface ITourPictures {
1
+ export declare type TourPictures = {
2
2
  id: number;
3
3
  url: string;
4
4
  ssl_url: string;
5
5
  verified: boolean;
6
- }
7
- export default ITourPictures;
6
+ };
@@ -1,4 +1,4 @@
1
- interface ITourPrice {
1
+ export declare type TourPrice = {
2
2
  values: {
3
3
  amount: number;
4
4
  special?: {
@@ -8,5 +8,4 @@ interface ITourPrice {
8
8
  };
9
9
  };
10
10
  description: string;
11
- }
12
- export default ITourPrice;
11
+ };
@@ -0,0 +1,6 @@
1
+ import { TourBookingCartWithDetails } from './TourBookingCartWithDetails';
2
+ export declare type TourReservationDetails = {
3
+ data: {
4
+ shopping_cart: TourBookingCartWithDetails;
5
+ };
6
+ };
@@ -1,4 +1,4 @@
1
- interface IGygTourShoppingFormData {
1
+ export declare type TourShoppingFormData = {
2
2
  user: {
3
3
  first_name: string;
4
4
  last_name: string;
@@ -17,5 +17,4 @@ interface IGygTourShoppingFormData {
17
17
  expiryYear: string;
18
18
  generationtime: string;
19
19
  };
20
- }
21
- export default IGygTourShoppingFormData;
20
+ };
@@ -1,7 +1,6 @@
1
- interface ITourViewport {
1
+ export declare type TourViewport = {
2
2
  sw_lat: number;
3
3
  sw_long: number;
4
4
  ne_lat: number;
5
5
  ne_long: number;
6
- }
7
- export default ITourViewport;
6
+ };
@@ -0,0 +1,8 @@
1
+ import { MetaData } from './MetaData';
2
+ import { Tour } from './Tour';
3
+ export declare type Tours = {
4
+ metadata: MetaData;
5
+ data: {
6
+ tours: Array<Tour>;
7
+ };
8
+ };