@tripian/model 1.0.0 → 4.0.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 (229) hide show
  1. package/api/v3/enums/BOOKING_PRODUCT_INFO.d.ts +3 -4
  2. package/api/v3/enums/POI_CATEGORY_GROUP.d.ts +7 -8
  3. package/api/v3/enums/PROVIDER_ID.d.ts +7 -6
  4. package/api/v3/enums/PROVIDER_NAME.d.ts +7 -6
  5. package/api/v3/enums/REACTION.d.ts +5 -6
  6. package/api/v3/enums/REACTION_COMMENT.d.ts +4 -5
  7. package/api/v3/enums/TRIP_PROFILE_PACE.d.ts +5 -6
  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} +13 -14
  12. package/api/v3/models/City.d.ts +15 -0
  13. package/api/v3/models/{ICompanion.d.ts → Companion.d.ts} +8 -9
  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} +6 -7
  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} +5 -6
  21. package/api/v3/models/Option.d.ts +6 -0
  22. package/api/v3/models/{IPlan.d.ts → Plan.d.ts} +9 -10
  23. package/api/v3/models/{IPoi.d.ts → Poi.d.ts} +33 -34
  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} +10 -11
  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} +5 -6
  36. package/api/v3/models/Token.d.ts +4 -0
  37. package/api/v3/models/{ITokenPayload.d.ts → TokenPayload.d.ts} +13 -14
  38. package/api/v3/models/{ITokenRefresh.d.ts → TokenRefresh.d.ts} +5 -6
  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} +14 -15
  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} +12 -13
  46. package/api/v3/models/{IUserReservation.d.ts → UserReservation.d.ts} +10 -11
  47. package/api/v3/requests/{ICompanionRequest.d.ts → CompanionRequest.d.ts} +6 -7
  48. package/api/v3/requests/{IDevice.d.ts → Device.d.ts} +7 -8
  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} +5 -6
  55. package/api/v3/requests/{IPoisRequest.d.ts → PoisRequest.d.ts} +12 -13
  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} +7 -8
  59. package/api/v3/requests/{IRecommendationRequest.d.ts → RecommendationRequest.d.ts} +14 -15
  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/StepRequest.d.ts +5 -0
  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} +7 -8
  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} +6 -7
  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 +37 -38
  75. package/helper/plural.d.ts +1 -2
  76. package/index.d.ts +4 -5
  77. package/index.js +1 -1
  78. package/index.js.map +1 -1
  79. package/package.json +58 -58
  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/SearchActivitiesResponse.d.ts +20 -0
  91. package/providers/bb/index.d.ts +11 -0
  92. package/providers/glx/Booking.d.ts +16 -0
  93. package/providers/glx/{IBookingContact.d.ts → BookingContact.d.ts} +7 -8
  94. package/providers/glx/BookingInformation.d.ts +4 -0
  95. package/providers/glx/BookingLocation.d.ts +5 -0
  96. package/providers/glx/{IBookingPrice.d.ts → BookingPrice.d.ts} +23 -24
  97. package/providers/glx/BookingRef.d.ts +24 -0
  98. package/providers/glx/BookingSearchResult.d.ts +10 -0
  99. package/providers/glx/BookingSearchResultAggregation.d.ts +18 -0
  100. package/providers/glx/BookingSubCategory.d.ts +4 -0
  101. package/providers/glx/BookingSupplier.d.ts +4 -0
  102. package/providers/glx/Catalog.d.ts +4 -0
  103. package/providers/glx/{ICatalogGroup.d.ts → CatalogGroup.d.ts} +10 -11
  104. package/providers/glx/{IToken.d.ts → Token.d.ts} +5 -6
  105. package/providers/glx/TourRating.d.ts +5 -0
  106. package/providers/glx/{ITourReview.d.ts → TourReview.d.ts} +6 -7
  107. package/providers/glx/index.d.ts +15 -16
  108. package/providers/gyg/CatalogGroup.d.ts +5 -0
  109. package/providers/gyg/Categories.d.ts +8 -0
  110. package/providers/gyg/{ICategory.d.ts → Category.d.ts} +6 -7
  111. package/providers/gyg/{IMetaData.d.ts → MetaData.d.ts} +15 -16
  112. package/providers/gyg/{IPaymentConfiguration.d.ts → PaymentConfiguration.d.ts} +8 -9
  113. package/providers/gyg/PaymentConfigurations.d.ts +8 -0
  114. package/providers/gyg/{ITour.d.ts → Tour.d.ts} +36 -37
  115. package/providers/gyg/TourAvailabilities.d.ts +8 -0
  116. package/providers/gyg/{ITourAvailability.d.ts → TourAvailability.d.ts} +7 -8
  117. package/providers/gyg/{ITourBooking.d.ts → TourBooking.d.ts} +10 -11
  118. package/providers/gyg/{ITourBookingCart.d.ts → TourBookingCart.d.ts} +72 -73
  119. package/providers/gyg/{ITourBookingCartRequest.d.ts → TourBookingCartRequest.d.ts} +49 -50
  120. package/providers/gyg/TourBookingCarts.d.ts +6 -0
  121. package/providers/gyg/{ITourBookingInfo.d.ts → TourBookingInfo.d.ts} +37 -38
  122. package/providers/gyg/TourBookingInfos.d.ts +8 -0
  123. package/providers/gyg/TourBookingRequest.d.ts +20 -0
  124. package/providers/gyg/TourBookings.d.ts +8 -0
  125. package/providers/gyg/TourCategories.d.ts +5 -0
  126. package/providers/gyg/TourCoordinates.d.ts +4 -0
  127. package/providers/gyg/TourDurations.d.ts +4 -0
  128. package/providers/gyg/TourLocations.d.ts +13 -0
  129. package/providers/gyg/{ITourOption.d.ts → TourOption.d.ts} +34 -35
  130. package/providers/gyg/TourOptionDetails.d.ts +8 -0
  131. package/providers/gyg/{ITourOptionPricing.d.ts → TourOptionPricing.d.ts} +20 -21
  132. package/providers/gyg/TourOptionPricings.d.ts +8 -0
  133. package/providers/gyg/TourOptions.d.ts +8 -0
  134. package/providers/gyg/{ITourPictures.d.ts → TourPictures.d.ts} +6 -7
  135. package/providers/gyg/{ITourPrice.d.ts → TourPrice.d.ts} +11 -12
  136. package/providers/gyg/TourShoppingFormData.d.ts +20 -0
  137. package/providers/gyg/{ITourViewport.d.ts → TourViewport.d.ts} +6 -7
  138. package/providers/gyg/Tours.d.ts +8 -0
  139. package/providers/gyg/index.d.ts +31 -30
  140. package/providers/index.d.ts +5 -4
  141. package/providers/yelp/{IBusiness.d.ts → Business.d.ts} +31 -32
  142. package/providers/yelp/{IHold.d.ts → Hold.d.ts} +10 -11
  143. package/providers/yelp/{IHoldRequest.d.ts → HoldRequest.d.ts} +7 -8
  144. package/providers/yelp/Opening.d.ts +5 -0
  145. package/providers/yelp/OpeningTime.d.ts +4 -0
  146. package/providers/yelp/Openings.d.ts +4 -0
  147. package/providers/yelp/{IOpeningsRequest.d.ts → OpeningsRequest.d.ts} +6 -7
  148. package/providers/yelp/{IReservation.d.ts → Reservation.d.ts} +5 -6
  149. package/providers/yelp/ReservationInfo.d.ts +8 -0
  150. package/providers/yelp/{IReservationRequest.d.ts → ReservationRequest.d.ts} +12 -13
  151. package/providers/yelp/ReservationStatusResponse.d.ts +6 -0
  152. package/providers/yelp/index.d.ts +10 -11
  153. package/api/custom/IPoiCategoryGroup.d.ts +0 -6
  154. package/api/v3/models/IAccommodation.d.ts +0 -8
  155. package/api/v3/models/IBooking.d.ts +0 -7
  156. package/api/v3/models/ICity.d.ts +0 -16
  157. package/api/v3/models/IContinent.d.ts +0 -4
  158. package/api/v3/models/ICoordinate.d.ts +0 -5
  159. package/api/v3/models/ICountry.d.ts +0 -7
  160. package/api/v3/models/IHourFormat.d.ts +0 -5
  161. package/api/v3/models/IImage.d.ts +0 -8
  162. package/api/v3/models/IOption.d.ts +0 -7
  163. package/api/v3/models/IPoiCategory.d.ts +0 -8
  164. package/api/v3/models/IPoiCategoryParent.d.ts +0 -5
  165. package/api/v3/models/IPoiHours.d.ts +0 -5
  166. package/api/v3/models/IPoiReference.d.ts +0 -11
  167. package/api/v3/models/IRecommendation.d.ts +0 -6
  168. package/api/v3/models/IStep.d.ts +0 -11
  169. package/api/v3/models/IStepHours.d.ts +0 -5
  170. package/api/v3/models/ISubOption.d.ts +0 -5
  171. package/api/v3/models/ITasteItem.d.ts +0 -8
  172. package/api/v3/models/IToken.d.ts +0 -5
  173. package/api/v3/models/ITopTen.d.ts +0 -7
  174. package/api/v3/models/ITrip.d.ts +0 -6
  175. package/api/v3/models/ITripReference.d.ts +0 -9
  176. package/api/v3/models/IUser.d.ts +0 -9
  177. package/api/v3/models/IUserProfile.d.ts +0 -5
  178. package/api/v3/requests/IFavoriteRequest.d.ts +0 -5
  179. package/api/v3/requests/IFavoriteUpdateRequest.d.ts +0 -5
  180. package/api/v3/requests/ILoginRequestEmail.d.ts +0 -7
  181. package/api/v3/requests/ILoginRequestTripHash.d.ts +0 -6
  182. package/api/v3/requests/ILoginRequestUsername.d.ts +0 -6
  183. package/api/v3/requests/IPoisRequestCoordinate.d.ts +0 -9
  184. package/api/v3/requests/IPoisRequestMustTry.d.ts +0 -6
  185. package/api/v3/requests/IRegisterRequestEmail.d.ts +0 -9
  186. package/api/v3/requests/IRegisterRequestUsername.d.ts +0 -8
  187. package/api/v3/requests/IStepRequest.d.ts +0 -6
  188. package/api/v3/requests/IStepUpdateRequest.d.ts +0 -5
  189. package/api/v3/requests/ITokenRefreshRequest.d.ts +0 -4
  190. package/api/v3/requests/IUserProfileRequest.d.ts +0 -5
  191. package/api/v3/requests/IUserReactionRequest.d.ts +0 -9
  192. package/api/v3/requests/IUserUpdateRequest.d.ts +0 -8
  193. package/api/v3/responses/IDataPayload.d.ts +0 -6
  194. package/api/v3/responses/IPagination.d.ts +0 -10
  195. package/api/v3/responses/IPaginationLinks.d.ts +0 -5
  196. package/api/v3/responses/ISuccessResponse.d.ts +0 -9
  197. package/providers/glx/IBooking.d.ts +0 -17
  198. package/providers/glx/IBookingInformation.d.ts +0 -5
  199. package/providers/glx/IBookingLocation.d.ts +0 -6
  200. package/providers/glx/IBookingRef.d.ts +0 -25
  201. package/providers/glx/IBookingSearchResult.d.ts +0 -11
  202. package/providers/glx/IBookingSearchResultAggregation.d.ts +0 -18
  203. package/providers/glx/IBookingSubCategory.d.ts +0 -5
  204. package/providers/glx/IBookingSupplier.d.ts +0 -5
  205. package/providers/glx/ICatalog.d.ts +0 -5
  206. package/providers/glx/ITourRating.d.ts +0 -6
  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/ITourBookingRequest.d.ts +0 -25
  214. package/providers/gyg/ITourBookings.d.ts +0 -9
  215. package/providers/gyg/ITourCategories.d.ts +0 -6
  216. package/providers/gyg/ITourCoordinates.d.ts +0 -5
  217. package/providers/gyg/ITourDurations.d.ts +0 -5
  218. package/providers/gyg/ITourLocations.d.ts +0 -14
  219. package/providers/gyg/ITourOptionPricings.d.ts +0 -9
  220. package/providers/gyg/ITourOptions.d.ts +0 -9
  221. package/providers/gyg/ITours.d.ts +0 -9
  222. package/providers/gyg/sampleData/categories.d.ts +0 -12
  223. package/providers/gyg/sampleData/tours-full.d.ts +0 -90
  224. package/providers/gyg/sampleData/tours.d.ts +0 -111
  225. package/providers/yelp/IOpening.d.ts +0 -6
  226. package/providers/yelp/IOpeningTime.d.ts +0 -5
  227. package/providers/yelp/IOpenings.d.ts +0 -5
  228. package/providers/yelp/IReservationInfo.d.ts +0 -9
  229. package/providers/yelp/IReservationStatusResponse.d.ts +0 -7
@@ -1,6 +1,5 @@
1
- interface ITokenRefresh {
2
- access_token: string;
3
- expires_in: number;
4
- token_type: string;
5
- }
6
- export default ITokenRefresh;
1
+ export declare type TokenRefresh = {
2
+ access_token: string;
3
+ expires_in: number;
4
+ token_type: string;
5
+ };
@@ -0,0 +1,6 @@
1
+ import { PoiCategory } from './PoiCategory';
2
+ import { Poi } from './Poi';
3
+ export declare type TopTen = {
4
+ category: PoiCategory;
5
+ top_ten_poi: Poi[];
6
+ };
@@ -0,0 +1,5 @@
1
+ import { TripReference } from './TripReference';
2
+ import { Plan } from './Plan';
3
+ export declare type Trip = TripReference & {
4
+ plans: Array<Plan>;
5
+ };
@@ -1,15 +1,14 @@
1
- import IAccommodation from './IAccommodation';
2
- interface ITripProfile {
3
- accommodation: IAccommodation | null;
4
- answers: Array<number>;
5
- arrival_datetime: string;
6
- city_id: number;
7
- companion_ids: Array<number>;
8
- departure_datetime: string;
9
- do_not_generate: number;
10
- number_of_adults: number;
11
- number_of_children: number | null;
12
- owner: string | null;
13
- pace: string | null;
14
- }
15
- export default ITripProfile;
1
+ import { Accommodation } from './Accommodation';
2
+ export declare type TripProfile = {
3
+ accommodation: Accommodation | null;
4
+ answers: Array<number>;
5
+ arrival_datetime: string;
6
+ city_id: number;
7
+ companion_ids: Array<number>;
8
+ departure_datetime: string;
9
+ do_not_generate: number;
10
+ number_of_adults: number;
11
+ number_of_children: number | null;
12
+ owner: string | null;
13
+ pace: string | null;
14
+ };
@@ -0,0 +1,8 @@
1
+ import { City } from './City';
2
+ import { TripProfile } from './TripProfile';
3
+ export declare type TripReference = {
4
+ city: City;
5
+ id: number;
6
+ trip_hash: string;
7
+ trip_profile: TripProfile;
8
+ };
@@ -0,0 +1,8 @@
1
+ import { UserProfile } from './UserProfile';
2
+ export declare type User = {
3
+ email: string;
4
+ first_name: string | null;
5
+ last_name: string | null;
6
+ profile: UserProfile;
7
+ username: string;
8
+ };
@@ -0,0 +1,4 @@
1
+ export declare type UserProfile = {
2
+ age: number | null;
3
+ answers: Array<number>;
4
+ };
@@ -1,13 +1,12 @@
1
- import REACTION from '../enums/REACTION';
2
- import REACTION_COMMENT from '../enums/REACTION_COMMENT';
3
- interface IUserReaction {
4
- comment?: REACTION_COMMENT;
5
- created_at?: string | null;
6
- id: number;
7
- poi_id: number;
8
- reaction: REACTION;
9
- step_id: number;
10
- trip_hash: string;
11
- updated_at?: string | null;
12
- }
13
- export default IUserReaction;
1
+ import { REACTION } from '../enums/REACTION';
2
+ import { REACTION_COMMENT } from '../enums/REACTION_COMMENT';
3
+ export declare type UserReaction = {
4
+ comment?: REACTION_COMMENT;
5
+ created_at?: string | null;
6
+ id: number;
7
+ poi_id: number;
8
+ reaction: REACTION;
9
+ step_id: number;
10
+ trip_hash: string;
11
+ updated_at?: string | null;
12
+ };
@@ -1,11 +1,10 @@
1
- interface IUserReservation {
2
- created_at?: string | null;
3
- id: number;
4
- key: string;
5
- trip_hash?: string | null;
6
- poi_id: number;
7
- provider: string;
8
- updated_at?: string | null;
9
- value: Object;
10
- }
11
- export default IUserReservation;
1
+ export declare type UserReservation = {
2
+ created_at?: string | null;
3
+ id: number;
4
+ key: string;
5
+ trip_hash?: string | null;
6
+ poi_id: number;
7
+ provider: string;
8
+ updated_at?: string | null;
9
+ value: Object;
10
+ };
@@ -1,7 +1,6 @@
1
- interface ICompanionRequest {
2
- age: number | null;
3
- answers: number[];
4
- name: string;
5
- title: string;
6
- }
7
- export default ICompanionRequest;
1
+ export declare type CompanionRequest = {
2
+ age: number | null;
3
+ answers: number[];
4
+ name: string;
5
+ title: string;
6
+ };
@@ -1,8 +1,7 @@
1
- interface IDevice {
2
- bundle_id: string | null;
3
- device_id: string | null;
4
- device_os: string | null;
5
- firebase_token: string | null;
6
- os_version: string | null;
7
- }
8
- export default IDevice;
1
+ export declare type Device = {
2
+ bundle_id: string | null;
3
+ device_id: string | null;
4
+ device_os: string | null;
5
+ firebase_token: string | null;
6
+ os_version: string | null;
7
+ };
@@ -0,0 +1,4 @@
1
+ export declare type FavoriteRequest = {
2
+ poi_id: number;
3
+ trip_hash: string | null;
4
+ };
@@ -0,0 +1,4 @@
1
+ export declare type FavoriteUpdateRequest = {
2
+ poi_id: number;
3
+ trip_hash: string;
4
+ };
@@ -0,0 +1,6 @@
1
+ import { Device } from './Device';
2
+ export declare type LoginRequestEmail = {
3
+ device?: Device;
4
+ email: string;
5
+ password: string;
6
+ };
@@ -0,0 +1,5 @@
1
+ import { Device } from './Device';
2
+ export declare type LoginRequestTripHash = {
3
+ device?: Device;
4
+ trip_hash: string;
5
+ };
@@ -0,0 +1,5 @@
1
+ import { Device } from './Device';
2
+ export declare type LoginRequestUsername = {
3
+ device?: Device;
4
+ login_user: string;
5
+ };
@@ -1,6 +1,5 @@
1
- interface IPlanUpdateRequest {
2
- end_time?: string | null;
3
- orders?: Array<number>;
4
- start_time?: string | null;
5
- }
6
- export default IPlanUpdateRequest;
1
+ export declare type PlanUpdateRequest = {
2
+ end_time?: string | null;
3
+ orders?: Array<number>;
4
+ start_time?: string | null;
5
+ };
@@ -1,13 +1,12 @@
1
- interface IPoisRequest {
2
- city_id?: number;
3
- coordinate?: string;
4
- distance?: number;
5
- must_try_ids?: string;
6
- page?: number;
7
- poi_ids?: string;
8
- poi_categories?: string;
9
- search?: string;
10
- limit?: number;
11
- bounds?: string;
12
- }
13
- export default IPoisRequest;
1
+ export declare type PoisRequest = {
2
+ city_id?: number;
3
+ coordinate?: string;
4
+ distance?: number;
5
+ must_try_ids?: string;
6
+ page?: number;
7
+ poi_ids?: string;
8
+ poi_categories?: string;
9
+ search?: string;
10
+ limit?: number;
11
+ bounds?: string;
12
+ };
@@ -0,0 +1,8 @@
1
+ import { Coordinate } from '../models/Coordinate';
2
+ export declare type PoisRequestCoordinate = {
3
+ poiCategories?: number[];
4
+ coordinate?: Coordinate;
5
+ distance?: number;
6
+ bounds?: string;
7
+ limit: number;
8
+ };
@@ -0,0 +1,5 @@
1
+ export declare type PoisRequestMustTry = {
2
+ cityId: number;
3
+ mustTryIds: number[];
4
+ limit: number;
5
+ };
@@ -1,8 +1,7 @@
1
- interface IPoisRequestName {
2
- cityId?: number;
3
- name: string;
4
- poiCategories?: number[];
5
- limit?: number;
6
- page?: number;
7
- }
8
- export default IPoisRequestName;
1
+ export declare type PoisRequestName = {
2
+ cityId?: number;
3
+ name: string;
4
+ poiCategories?: number[];
5
+ limit?: number;
6
+ page?: number;
7
+ };
@@ -1,15 +1,14 @@
1
- import Coordinate from '../models/ICoordinate';
2
- interface IRecommendationRequest {
3
- hash?: string;
4
- cityId?: number;
5
- coordinate?: Coordinate;
6
- answers?: number[];
7
- poiCategoryIds?: number[];
8
- adults?: number;
9
- children?: number;
10
- adultAgeAverage?: number;
11
- childrenAgeAverage?: number;
12
- limit?: number;
13
- page?: number;
14
- }
15
- export default IRecommendationRequest;
1
+ import { Coordinate } from '../models/Coordinate';
2
+ export declare type RecommendationRequest = {
3
+ hash?: string;
4
+ cityId?: number;
5
+ coordinate?: Coordinate;
6
+ answers?: number[];
7
+ poiCategoryIds?: number[];
8
+ adults?: number;
9
+ children?: number;
10
+ adultAgeAverage?: number;
11
+ childrenAgeAverage?: number;
12
+ limit?: number;
13
+ page?: number;
14
+ };
@@ -0,0 +1,8 @@
1
+ import { UserProfile } from '../models/UserProfile';
2
+ export declare type RegisterRequestEmail = {
3
+ email: string;
4
+ first_name: string | null;
5
+ last_name: string | null;
6
+ password: string;
7
+ profile: UserProfile;
8
+ };
@@ -0,0 +1,7 @@
1
+ import { UserProfile } from '../models/UserProfile';
2
+ export declare type RegisterRequestUsername = {
3
+ first_name: string | null;
4
+ last_name: string | null;
5
+ login_user: string;
6
+ profile: UserProfile;
7
+ };
@@ -0,0 +1,5 @@
1
+ export declare type StepRequest = {
2
+ order?: number;
3
+ plan_id: number;
4
+ poi_id: number;
5
+ };
@@ -0,0 +1,4 @@
1
+ export declare type StepUpdateRequest = {
2
+ order?: number;
3
+ poi_id: number;
4
+ };
@@ -0,0 +1,3 @@
1
+ export declare type TokenRefreshRequest = {
2
+ refresh_token: string;
3
+ };
@@ -0,0 +1,4 @@
1
+ export declare type UserProfileRequest = {
2
+ age?: number | null;
3
+ answers?: number[];
4
+ };
@@ -0,0 +1,8 @@
1
+ import { REACTION } from '../enums/REACTION';
2
+ import { REACTION_COMMENT } from '../enums/REACTION_COMMENT';
3
+ export declare type UserReactionRequest = {
4
+ comment?: REACTION_COMMENT;
5
+ poi_id: number;
6
+ reaction: REACTION;
7
+ step_id: number;
8
+ };
@@ -1,8 +1,7 @@
1
- interface IUserReservationRequest {
2
- key: string;
3
- poi_id: number;
4
- provider: string;
5
- trip_hash?: string | null;
6
- value: Object;
7
- }
8
- export default IUserReservationRequest;
1
+ export declare type UserReservationRequest = {
2
+ key: string;
3
+ poi_id: number;
4
+ provider: string;
5
+ trip_hash?: string | null;
6
+ value: Object;
7
+ };
@@ -0,0 +1,7 @@
1
+ import { UserProfileRequest } from './UserProfileRequest';
2
+ export declare type UserUpdateRequest = {
3
+ first_name?: string | null;
4
+ last_name?: string | null;
5
+ password?: string;
6
+ profile?: UserProfileRequest;
7
+ };
@@ -0,0 +1,5 @@
1
+ import { Pagination } from './Pagination';
2
+ export declare type DataPayload<T> = {
3
+ data: T;
4
+ pagination?: Pagination;
5
+ };
@@ -1,7 +1,6 @@
1
- interface IErrorResponse {
2
- data: null;
3
- success: false;
4
- status: number;
5
- message: string;
6
- }
7
- export default IErrorResponse;
1
+ export declare type ErrorResponse = {
2
+ data: null;
3
+ success: false;
4
+ status: number;
5
+ message: string;
6
+ };
@@ -0,0 +1,9 @@
1
+ import { PaginationLinks } from './PaginationLinks';
2
+ export declare type Pagination = {
3
+ count: number;
4
+ current_page: number;
5
+ links: PaginationLinks;
6
+ per_page: number;
7
+ total_pages: number;
8
+ total: number;
9
+ };
@@ -0,0 +1,4 @@
1
+ export declare type PaginationLinks = {
2
+ next: string | null;
3
+ previous: string | null;
4
+ };
@@ -0,0 +1,8 @@
1
+ import { Pagination } from './Pagination';
2
+ export declare type SuccessResponse<T> = {
3
+ status: number;
4
+ success: boolean;
5
+ message: string;
6
+ data: T;
7
+ pagination?: Pagination;
8
+ };
package/helper/index.d.ts CHANGED
@@ -1,38 +1,37 @@
1
- import PoiCategory from '../api/v3/models/IPoiCategory';
2
- import PoiCategoryGroup from '../api/custom/IPoiCategoryGroup';
3
- import POI_CATEGORY_GROUP from '../api/v3/enums/POI_CATEGORY_GROUP';
4
- import HourFormat from '../api/v3/models/IHourFormat';
5
- import plural from './plural';
6
- declare const imgUrl: (apiPlaceUrl: string, x?: number, y?: number | undefined, type?: string) => string;
7
- declare const cityImgUrl: (apiPlaceUrl: string, x?: number, y?: number | undefined) => string;
8
- declare const imgUrlThumbnails: (imageUrl: string) => string | undefined;
9
- declare const getCategoryGroups: (poiCategories?: PoiCategory[] | undefined) => PoiCategoryGroup[];
10
- declare const getCategoryGroup: (categoryId: number, poiCategories?: PoiCategory[] | undefined) => POI_CATEGORY_GROUP;
11
- declare const getSubCategoryIds: (parentCategoryId: number, poiCategories?: PoiCategory[] | undefined) => number[];
12
- declare const hoursFormat: (hour: string | null) => HourFormat[];
13
- declare const compareStringForSort: (a: string, b: string) => number;
14
- declare const emailFormatValid: (email: string) => RegExpMatchArray | null;
15
- declare const passwordFormatValid: (password: string) => RegExpMatchArray | null;
16
- declare const toEngChars: (str: string) => string;
17
- declare const unicodeToString: (str: string) => string;
18
- declare const hourRange: string[];
19
- declare const minuteRange: string[];
20
- declare const timeRange: Array<string>;
21
- declare const deepCopy: <T>(oldObject: T) => T;
22
- declare const getYourGuideImageArrayFormat: (imgUrls: Array<string>, formatId: string) => string[];
23
- declare const getYourGuideImageFormat: (str: string, formatId: string) => string;
24
- declare const companionTitleOptions: {
25
- value: string;
26
- }[];
27
- declare const delay: (ms: number) => Promise<void>;
28
- /**
29
- * Capitalize first letter of string param
30
- * @param {string} any string
31
- * @returns {string} first letter is uppercase
32
- */
33
- declare const capitalizeFirstLetter: (string: string) => string;
34
- declare const removeDuplicateValuesById: <T extends {
35
- id: number;
36
- }>(duplicateItems: T[]) => T[];
37
- declare const removeDuplicateValues: <T>(duplicateItems: T[], compareFn: (t1: T, t2: T) => boolean) => T[];
38
- export { imgUrl, cityImgUrl, imgUrlThumbnails, deepCopy, getCategoryGroup, getCategoryGroups, getSubCategoryIds, getYourGuideImageArrayFormat, getYourGuideImageFormat, hoursFormat, compareStringForSort, hourRange, minuteRange, emailFormatValid, passwordFormatValid, toEngChars, timeRange, unicodeToString, plural, companionTitleOptions, delay, capitalizeFirstLetter, removeDuplicateValuesById, removeDuplicateValues, };
1
+ import { POI_CATEGORY_GROUP } from '../api/v3';
2
+ import { HourFormat } from '../api/v3/models/HourFormat';
3
+ import { PoiCategory } from '../api/v3/models/PoiCategory';
4
+ import { PoiCategoryGroup } from '../api/v3/models/PoiCategoryGroup';
5
+ export * from './plural';
6
+ export declare const imgUrl: (apiPlaceUrl: string, x?: number, y?: number | undefined, type?: string) => string;
7
+ export declare const cityImgUrl: (apiPlaceUrl: string, x?: number, y?: number | undefined) => string;
8
+ export declare const imgUrlThumbnails: (imageUrl: string) => string | undefined;
9
+ export declare const getCategoryGroups: (poiCategories?: PoiCategory[] | undefined) => PoiCategoryGroup[];
10
+ export declare const getCategoryGroup: (categoryId: number, poiCategories?: PoiCategory[] | undefined) => POI_CATEGORY_GROUP;
11
+ export declare const getSubCategoryIds: (parentCategoryId: number, poiCategories?: PoiCategory[] | undefined) => number[];
12
+ export declare const hoursFormat: (hour: string | null) => HourFormat[];
13
+ export declare const compareStringForSort: (a: string, b: string) => number;
14
+ export declare const emailFormatValid: (email: string) => RegExpMatchArray | null;
15
+ export declare const passwordFormatValid: (password: string) => RegExpMatchArray | null;
16
+ export declare const toEngChars: (str: string) => string;
17
+ export declare const unicodeToString: (str: string) => string;
18
+ export declare const hourRange: string[];
19
+ export declare const minuteRange: string[];
20
+ export declare const timeRange: Array<string>;
21
+ export declare const deepCopy: <T>(oldObject: T) => T;
22
+ export declare const getYourGuideImageArrayFormat: (imgUrls: Array<string>, formatId: string) => string[];
23
+ export declare const getYourGuideImageFormat: (str: string, formatId: string) => string;
24
+ export declare const companionTitleOptions: {
25
+ value: string;
26
+ }[];
27
+ export declare const delay: (ms: number) => Promise<unknown>;
28
+ /**
29
+ * Capitalize first letter of string param
30
+ * @param {string} any string
31
+ * @returns {string} first letter is uppercase
32
+ */
33
+ export declare const capitalizeFirstLetter: (string: string) => string;
34
+ export declare const removeDuplicateValuesById: <T extends {
35
+ id: number;
36
+ }>(duplicateItems: T[]) => T[];
37
+ export declare const removeDuplicateValues: <T>(duplicateItems: T[], compareFn: (t1: T, t2: T) => boolean) => T[];
@@ -1,2 +1 @@
1
- declare const plural: (txt: string, revert?: boolean) => string;
2
- export default plural;
1
+ export declare const plural: (txt: string, revert?: boolean) => string;
package/index.d.ts CHANGED
@@ -1,5 +1,4 @@
1
- import * as Model from './api/v3';
2
- import * as Providers from './providers';
3
- import * as helper from './helper';
4
- export default Model;
5
- export { Providers, helper };
1
+ import * as Model from './api/v3';
2
+ export * as Providers from './providers';
3
+ export * as helper from './helper';
4
+ export default Model;