@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,31 +1,33 @@
1
- import CatalogGroup from './ICatalogGroup';
2
- import Category from './ICategory';
3
- import Categories from './ICategories';
4
- import GygTourShoppingFormData from './IGygTourShoppingFormData';
5
- import MetaData from './IMetaData';
6
- import PaymentConfiguration from './IPaymentConfiguration';
7
- import PaymentConfigurations from './IPaymentConfigurations';
8
- import Tour from './ITour';
9
- import TourAvailability from './ITourAvailability';
10
- import TourAvailabilities from './ITourAvailabilities';
11
- import TourBookingInfo from './ITourBookingInfo';
12
- import TourBookingInfos from './ITourBookingInfos';
13
- import TourBooking from './ITourBooking';
14
- import TourBookingCart from './ITourBookingCart';
15
- import TourBookingCarts from './ITourBookingCarts';
16
- import TourBookingCartRequest from './ITourBookingCartRequest';
17
- import TourBookings from './ITourBookings';
18
- import TourBookingRequest from './ITourBookingRequest';
19
- import TourCategories from './ITourCategories';
20
- import TourCoordinates from './ITourCoordinates';
21
- import TourDurations from './ITourDurations';
22
- import TourLocations from './ITourLocations';
23
- import TourPictures from './ITourPictures';
24
- import TourPrice from './ITourPrice';
25
- import TourOptionPricing from './ITourOptionPricing';
26
- import TourOptionPricings from './ITourOptionPricings';
27
- import TourOption from './ITourOption';
28
- import TourOptions from './ITourOptions';
29
- import TourViewport from './ITourViewport';
30
- import Tours from './ITours';
31
- export { CatalogGroup, Category, Categories, GygTourShoppingFormData, MetaData, PaymentConfiguration, PaymentConfigurations, Tour, TourAvailability, TourAvailabilities, TourBookingInfo, TourBookingInfos, TourBooking, TourBookingCart, TourBookingCarts, TourBookingCartRequest, TourBookings, TourBookingRequest, TourCategories, TourCoordinates, TourDurations, TourLocations, TourPictures, TourPrice, TourOptionPricing, TourOptionPricings, TourOption, TourOptions, TourViewport, Tours, };
1
+ export * from './CatalogGroup';
2
+ export * from './Category';
3
+ export * from './Categories';
4
+ export * from './MetaData';
5
+ export * from './PaymentConfiguration';
6
+ export * from './PaymentConfigurations';
7
+ export * from './Tour';
8
+ export * from './TourAvailability';
9
+ export * from './TourAvailabilities';
10
+ export * from './TourBookingInfo';
11
+ export * from './TourBookingInfos';
12
+ export * from './TourBooking';
13
+ export * from './TourBookingCart';
14
+ export * from './TourBookingCarts';
15
+ export * from './TourBookingCartRequest';
16
+ export * from './TourBookings';
17
+ export * from './TourBookingRequest';
18
+ export * from './TourCategories';
19
+ export * from './TourCoordinates';
20
+ export * from './TourDateRange';
21
+ export * from './TourDurations';
22
+ export * from './TourLocations';
23
+ export * from './TourPictures';
24
+ export * from './TourPrice';
25
+ export * from './TourShoppingFormData';
26
+ export * from './TourOptionDetails';
27
+ export * from './TourOptionPricing';
28
+ export * from './TourOptionPricings';
29
+ export * from './TourOption';
30
+ export * from './TourOptions';
31
+ export * from './TourViewport';
32
+ export * from './TourReservationDetails';
33
+ export * from './Tours';
@@ -1,4 +1,5 @@
1
- import * as Glx from './glx';
2
1
  import * as Yelp from './yelp';
2
+ import * as Glx from './glx';
3
3
  import * as Gyg from './gyg';
4
- export { Glx, Yelp, Gyg };
4
+ import * as Bb from './bb';
5
+ export { Yelp, Glx, Gyg, Bb };
@@ -1,4 +1,4 @@
1
- interface IBusiness {
1
+ export declare type Business = {
2
2
  id: string;
3
3
  alias: string;
4
4
  name: string;
@@ -28,5 +28,4 @@ interface IBusiness {
28
28
  };
29
29
  phone: string;
30
30
  display_phone: string;
31
- }
32
- export default IBusiness;
31
+ };
@@ -1,4 +1,4 @@
1
- interface IHold {
1
+ export declare type Hold = {
2
2
  cancellation_policy: string;
3
3
  credit_card_hold: boolean;
4
4
  expires_at: number;
@@ -7,5 +7,4 @@ interface IHold {
7
7
  last_cancellation_date: number;
8
8
  notes: string;
9
9
  reserve_url: string;
10
- }
11
- export default IHold;
10
+ };
@@ -1,8 +1,7 @@
1
- interface IHoldRequest {
1
+ export declare type HoldRequest = {
2
2
  businessId: string;
3
3
  date: string;
4
4
  time: string;
5
5
  covers: number;
6
6
  uniqueId: string;
7
- }
8
- export default IHoldRequest;
7
+ };
@@ -0,0 +1,5 @@
1
+ import { OpeningTime } from './OpeningTime';
2
+ export declare type Opening = {
3
+ date: string;
4
+ times: OpeningTime[];
5
+ };
@@ -0,0 +1,4 @@
1
+ export declare type OpeningTime = {
2
+ credit_card_required: boolean;
3
+ time: string;
4
+ };
@@ -0,0 +1,4 @@
1
+ import { Opening } from './Opening';
2
+ export declare type Openings = {
3
+ reservation_times: Opening[];
4
+ };
@@ -1,7 +1,6 @@
1
- interface IOpeningsRequest {
1
+ export declare type OpeningsRequest = {
2
2
  businessId: string;
3
3
  date: string;
4
4
  time: string;
5
5
  covers: number;
6
- }
7
- export default IOpeningsRequest;
6
+ };
@@ -1,6 +1,5 @@
1
- interface IReservation {
1
+ export declare type Reservation = {
2
2
  confirmation_url: string;
3
3
  notes: string;
4
4
  reservation_id: string;
5
- }
6
- export default IReservation;
5
+ };
@@ -0,0 +1,8 @@
1
+ import { ReservationRequest } from './ReservationRequest';
2
+ export declare type ReservationInfo = {
3
+ confirm_url: string;
4
+ reservation_id: string;
5
+ reservation_details: ReservationRequest;
6
+ restaurant_name: string;
7
+ restaurant_image: string;
8
+ };
@@ -1,4 +1,4 @@
1
- interface IReservationRequest {
1
+ export declare type ReservationRequest = {
2
2
  businessId: string;
3
3
  date: string;
4
4
  time: string;
@@ -9,5 +9,4 @@ interface IReservationRequest {
9
9
  lastName: string;
10
10
  email: string;
11
11
  phone: string;
12
- }
13
- export default IReservationRequest;
12
+ };
@@ -0,0 +1,6 @@
1
+ export declare type ReservationStatusResponse = {
2
+ active: boolean;
3
+ date: string;
4
+ time: string;
5
+ covers: number;
6
+ };
@@ -1,11 +1,10 @@
1
- import Business from './IBusiness';
2
- import Hold from './IHold';
3
- import HoldRequest from './IHoldRequest';
4
- import Openings from './IOpenings';
5
- import OpeningsRequest from './IOpeningsRequest';
6
- import OpeningTime from './IOpeningTime';
7
- import Reservation from './IReservation';
8
- import ReservationInfo from './IReservationInfo';
9
- import ReservationRequest from './IReservationRequest';
10
- import ReservationStatusResponse from './IReservationStatusResponse';
11
- export { Business, Hold, HoldRequest, Openings, OpeningsRequest, OpeningTime, Reservation, ReservationInfo, ReservationRequest, ReservationStatusResponse, };
1
+ export * from './Business';
2
+ export * from './Hold';
3
+ export * from './HoldRequest';
4
+ export * from './Openings';
5
+ export * from './OpeningsRequest';
6
+ export * from './OpeningTime';
7
+ export * from './Reservation';
8
+ export * from './ReservationInfo';
9
+ export * from './ReservationRequest';
10
+ export * from './ReservationStatusResponse';
@@ -1,6 +0,0 @@
1
- import POI_CATEGORY_GROUP from '../v3/enums/POI_CATEGORY_GROUP';
2
- interface IPoiCategoryGroup {
3
- ids: number[];
4
- group: POI_CATEGORY_GROUP;
5
- }
6
- export default IPoiCategoryGroup;
@@ -1,8 +0,0 @@
1
- import ICoordinate from './ICoordinate';
2
- interface IAccommodation {
3
- address?: string | null;
4
- coordinate?: ICoordinate | null;
5
- name?: string | null;
6
- ref_id?: string | null;
7
- }
8
- export default IAccommodation;
@@ -1,7 +0,0 @@
1
- import IBookingProduct from './IBookingProduct';
2
- interface IBooking {
3
- product: IBookingProduct;
4
- provider_id: number;
5
- provider_name: string;
6
- }
7
- export default IBooking;
@@ -1,16 +0,0 @@
1
- import ICoordinate from './ICoordinate';
2
- import ICountry from './ICountry';
3
- import IImage from './IImage';
4
- import ITasteItem from './ITasteItem';
5
- interface ICity {
6
- boundary: number[];
7
- coordinate: ICoordinate;
8
- country: ICountry;
9
- description: string;
10
- id: number;
11
- image: IImage;
12
- name: string;
13
- status: boolean;
14
- tastes: ITasteItem[];
15
- }
16
- export default ICity;
@@ -1,4 +0,0 @@
1
- interface IContinent {
2
- name: string;
3
- }
4
- export default IContinent;
@@ -1,5 +0,0 @@
1
- interface ICoordinate {
2
- lat: number;
3
- lng: number;
4
- }
5
- export default ICoordinate;
@@ -1,7 +0,0 @@
1
- import IContinent from './IContinent';
2
- interface ICountry {
3
- code: string;
4
- continent: IContinent;
5
- name: string;
6
- }
7
- export default ICountry;
@@ -1,5 +0,0 @@
1
- interface IHourFormat {
2
- day: string;
3
- clock: string[];
4
- }
5
- export default IHourFormat;
@@ -1,8 +0,0 @@
1
- import IImageOwner from './IImageOwner';
2
- interface IImage {
3
- image_owner: IImageOwner | null;
4
- height: number | null;
5
- url: string;
6
- width: number | null;
7
- }
8
- export default IImage;
@@ -1,7 +0,0 @@
1
- import ISubOption from './ISubOption';
2
- interface IOption {
3
- id: number;
4
- name: string;
5
- sub_options: null | Array<ISubOption>;
6
- }
7
- export default IOption;
@@ -1,8 +0,0 @@
1
- import IPoiCategoryParent from './IPoiCategoryParent';
2
- interface IPoiCategory {
3
- description: string | null;
4
- id: number;
5
- name: string;
6
- parent: IPoiCategoryParent | null;
7
- }
8
- export default IPoiCategory;
@@ -1,5 +0,0 @@
1
- interface IPoiCategoryParent {
2
- id: number | null;
3
- name: string | null;
4
- }
5
- export default IPoiCategoryParent;
@@ -1,5 +0,0 @@
1
- interface IPoiHours {
2
- day: string;
3
- clock: string[];
4
- }
5
- export default IPoiHours;
@@ -1,11 +0,0 @@
1
- import ICoordinate from './ICoordinate';
2
- import IImage from './IImage';
3
- import IPoiCategory from './IPoiCategory';
4
- interface IPoiReference {
5
- category: IPoiCategory[];
6
- id: number;
7
- image: IImage;
8
- marker_coordinate: ICoordinate;
9
- name: string;
10
- }
11
- export default IPoiReference;
@@ -1,6 +0,0 @@
1
- import IPoiReference from './IPoiReference';
2
- interface IRecommendation {
3
- poi_ref: IPoiReference;
4
- score: number | null;
5
- }
6
- export default IRecommendation;
@@ -1,11 +0,0 @@
1
- import IPoi from './IPoi';
2
- import IStepHours from './IStepHours';
3
- interface IStep {
4
- alternatives: number[];
5
- hours: IStepHours;
6
- id: number;
7
- order: number;
8
- poi: IPoi;
9
- score: number | null;
10
- }
11
- export default IStep;
@@ -1,5 +0,0 @@
1
- interface IStepHours {
2
- from: string | null;
3
- to: string | null;
4
- }
5
- export default IStepHours;
@@ -1,5 +0,0 @@
1
- interface ISubOption {
2
- id: number;
3
- name: string;
4
- }
5
- export default ISubOption;
@@ -1,8 +0,0 @@
1
- import ITasteItemImage from './ITasteItemImage';
2
- interface ITasteItem {
3
- id: number;
4
- description: string | null;
5
- image: ITasteItemImage;
6
- name: string;
7
- }
8
- export default ITasteItem;
@@ -1,5 +0,0 @@
1
- import ITokenRefresh from './ITokenRefresh';
2
- interface IToken extends ITokenRefresh {
3
- refresh_token: string;
4
- }
5
- export default IToken;
@@ -1,7 +0,0 @@
1
- import IPoiCategory from './IPoiCategory';
2
- import IPoi from './IPoi';
3
- interface ITopTen {
4
- category: IPoiCategory;
5
- top_ten_poi: IPoi[];
6
- }
7
- export default ITopTen;
@@ -1,6 +0,0 @@
1
- import ITripReference from './ITripReference';
2
- import IPlan from './IPlan';
3
- interface ITrip extends ITripReference {
4
- plans: Array<IPlan>;
5
- }
6
- export default ITrip;
@@ -1,9 +0,0 @@
1
- import ITripProfile from './ITripProfile';
2
- import ICity from './ICity';
3
- interface ITripReference {
4
- city: ICity;
5
- id: number;
6
- trip_hash: string;
7
- trip_profile: ITripProfile;
8
- }
9
- export default ITripReference;
@@ -1,9 +0,0 @@
1
- import IUserProfile from './IUserProfile';
2
- interface IUser {
3
- email: string;
4
- first_name: string | null;
5
- last_name: string | null;
6
- profile: IUserProfile;
7
- username: string;
8
- }
9
- export default IUser;
@@ -1,5 +0,0 @@
1
- interface IUserProfile {
2
- age: number | null;
3
- answers: Array<number>;
4
- }
5
- export default IUserProfile;
@@ -1,5 +0,0 @@
1
- interface IFavoriteRequest {
2
- poi_id: number;
3
- trip_hash: string | null;
4
- }
5
- export default IFavoriteRequest;
@@ -1,5 +0,0 @@
1
- interface IFavoriteUpdateRequest {
2
- poi_id: number;
3
- trip_hash: string;
4
- }
5
- export default IFavoriteUpdateRequest;
@@ -1,7 +0,0 @@
1
- import IDevice from './IDevice';
2
- interface ILoginRequestEmail {
3
- device?: IDevice;
4
- email: string;
5
- password: string;
6
- }
7
- export default ILoginRequestEmail;
@@ -1,6 +0,0 @@
1
- import IDevice from './IDevice';
2
- interface ILoginRequestTripHash {
3
- device?: IDevice;
4
- trip_hash: string;
5
- }
6
- export default ILoginRequestTripHash;
@@ -1,6 +0,0 @@
1
- import IDevice from './IDevice';
2
- interface ILoginRequestUsername {
3
- device?: IDevice;
4
- login_user: string;
5
- }
6
- export default ILoginRequestUsername;
@@ -1,9 +0,0 @@
1
- import Coordinate from '../models/ICoordinate';
2
- interface IPoisRequestCoordinate {
3
- poiCategories?: number[];
4
- coordinate?: Coordinate;
5
- distance?: number;
6
- bounds?: string;
7
- limit: number;
8
- }
9
- export default IPoisRequestCoordinate;
@@ -1,6 +0,0 @@
1
- interface IPoisRequestMustTry {
2
- cityId: number;
3
- mustTryIds: number[];
4
- limit: number;
5
- }
6
- export default IPoisRequestMustTry;
@@ -1,9 +0,0 @@
1
- import IUserProfile from '../models/IUserProfile';
2
- interface IRegisterRequestEmail {
3
- email: string;
4
- first_name: string | null;
5
- last_name: string | null;
6
- password: string;
7
- profile: IUserProfile;
8
- }
9
- export default IRegisterRequestEmail;
@@ -1,8 +0,0 @@
1
- import IUserProfile from '../models/IUserProfile';
2
- interface IRegisterRequestUsername {
3
- first_name: string | null;
4
- last_name: string | null;
5
- login_user: string;
6
- profile: IUserProfile;
7
- }
8
- export default IRegisterRequestUsername;
@@ -1,5 +0,0 @@
1
- interface IStepUpdateRequest {
2
- order?: number;
3
- poi_id: number;
4
- }
5
- export default IStepUpdateRequest;
@@ -1,4 +0,0 @@
1
- interface ITokenRefreshRequest {
2
- refresh_token: string;
3
- }
4
- export default ITokenRefreshRequest;
@@ -1,5 +0,0 @@
1
- interface IUserProfileRequest {
2
- age?: number | null;
3
- answers?: number[];
4
- }
5
- export default IUserProfileRequest;
@@ -1,9 +0,0 @@
1
- import REACTION from '../enums/REACTION';
2
- import REACTION_COMMENT from '../enums/REACTION_COMMENT';
3
- interface IUserReactionRequest {
4
- comment?: REACTION_COMMENT;
5
- poi_id: number;
6
- reaction: REACTION;
7
- step_id: number;
8
- }
9
- export default IUserReactionRequest;
@@ -1,8 +0,0 @@
1
- import IUserProfileRequest from './IUserProfileRequest';
2
- interface IUserUpdateRequest {
3
- first_name?: string | null;
4
- last_name?: string | null;
5
- password?: string;
6
- profile?: IUserProfileRequest;
7
- }
8
- export default IUserUpdateRequest;
@@ -1,6 +0,0 @@
1
- import IPagination from './IPagination';
2
- interface IDataPayload<T> {
3
- data: T;
4
- pagination?: IPagination;
5
- }
6
- export default IDataPayload;
@@ -1,10 +0,0 @@
1
- import IPaginationLinks from './IPaginationLinks';
2
- interface IPagination {
3
- count: number;
4
- current_page: number;
5
- links: IPaginationLinks;
6
- per_page: number;
7
- total_pages: number;
8
- total: number;
9
- }
10
- export default IPagination;
@@ -1,5 +0,0 @@
1
- interface IPaginationLinks {
2
- next: string | null;
3
- previous: string | null;
4
- }
5
- export default IPaginationLinks;
@@ -1,9 +0,0 @@
1
- import IPagination from './IPagination';
2
- interface ISuccessResponse<T> {
3
- status: number;
4
- success: boolean;
5
- message: string;
6
- data: T;
7
- pagination?: IPagination;
8
- }
9
- export default ISuccessResponse;
@@ -1,17 +0,0 @@
1
- import IBookingRef from './IBookingRef';
2
- import IBookingInformation from './IBookingInformation';
3
- import IBookingContact from './IBookingContact';
4
- import IBookingLocation from './IBookingLocation';
5
- import IBookingSupplier from './IBookingSupplier';
6
- interface IBooking extends IBookingRef {
7
- description: string;
8
- imageUrls: string[];
9
- information: IBookingInformation[];
10
- contact: IBookingContact;
11
- locations: IBookingLocation[];
12
- supplier: IBookingSupplier;
13
- termsAndConditions: string | null;
14
- isWishlisted: any | null;
15
- disclaimer: any | null;
16
- }
17
- export default IBooking;
@@ -1,5 +0,0 @@
1
- interface IBookingInformation {
2
- label: string;
3
- value: string;
4
- }
5
- export default IBookingInformation;
@@ -1,11 +0,0 @@
1
- import IBookingRef from './IBookingRef';
2
- import IBookingSearchResultAggregation from './IBookingSearchResultAggregation';
3
- interface IBookingSearchResult {
4
- aggregation: IBookingSearchResultAggregation;
5
- items: IBookingRef[];
6
- skip: number;
7
- take: number;
8
- parameters: any;
9
- total: number;
10
- }
11
- export default IBookingSearchResult;