@tripian/model 4.6.0 → 5.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 (208) hide show
  1. package/api/{v3 → v4}/enums/BOOKING_PRODUCT_INFO.d.ts +3 -3
  2. package/api/v4/enums/OFFER_CURRENCY.d.ts +4 -0
  3. package/api/v4/enums/OFFER_RECEIVE_METHOD.d.ts +4 -0
  4. package/api/v4/enums/OFFER_STATUS.d.ts +5 -0
  5. package/api/v4/enums/OFFER_TYPE.d.ts +5 -0
  6. package/api/{v3 → v4}/enums/POI_CATEGORY_GROUP.d.ts +7 -7
  7. package/api/v4/enums/PRODUCT_TYPE_NAME.d.ts +5 -0
  8. package/api/{v3 → v4}/enums/PROVIDER_ID.d.ts +7 -7
  9. package/api/{v3 → v4}/enums/PROVIDER_NAME.d.ts +7 -7
  10. package/api/v4/enums/QUESTIONS_CATEGORY.d.ts +5 -0
  11. package/api/v4/enums/REACTION.d.ts +5 -0
  12. package/api/{v3 → v4}/enums/REACTION_COMMENT.d.ts +4 -4
  13. package/api/v4/enums/RESPONSE_STATUS.d.ts +8 -0
  14. package/api/v4/enums/VERIFY_CHANNEL.d.ts +4 -0
  15. package/api/{v3 → v4}/index.d.ts +92 -69
  16. package/api/v4/models/Accommodation.d.ts +7 -0
  17. package/api/v4/models/Booking.d.ts +8 -0
  18. package/api/{v3 → v4}/models/BookingProduct.d.ts +13 -13
  19. package/api/v4/models/Business.d.ts +18 -0
  20. package/api/v4/models/BusinessInfoCategory.d.ts +6 -0
  21. package/api/v4/models/BusinessNameAddress.d.ts +4 -0
  22. package/api/v4/models/BusinessSearch.d.ts +7 -0
  23. package/api/v4/models/BusinessVerify.d.ts +4 -0
  24. package/api/{v3 → v4}/models/City.d.ts +15 -15
  25. package/api/{v3 → v4}/models/Companion.d.ts +8 -8
  26. package/api/{v3 → v4}/models/Continent.d.ts +4 -3
  27. package/api/{v3 → v4}/models/Coordinate.d.ts +4 -4
  28. package/api/{v3 → v4}/models/Country.d.ts +6 -6
  29. package/api/v4/models/Device.d.ts +7 -0
  30. package/api/v4/models/Favorite.d.ts +6 -0
  31. package/api/{v3 → v4}/models/HourFormat.d.ts +4 -4
  32. package/api/{v3 → v4}/models/Image.d.ts +7 -7
  33. package/api/{v3 → v4}/models/ImageOwner.d.ts +4 -5
  34. package/api/v4/models/Notification.d.ts +8 -0
  35. package/api/v4/models/NotificationMetaData.d.ts +4 -0
  36. package/api/v4/models/NotificationSettings.d.ts +6 -0
  37. package/api/v4/models/NotificationUnseen.d.ts +3 -0
  38. package/api/v4/models/Offer.d.ts +27 -0
  39. package/api/v4/models/OfferCustomer.d.ts +6 -0
  40. package/api/v4/models/OfferImage.d.ts +4 -0
  41. package/api/v4/models/OfferProductType.d.ts +7 -0
  42. package/api/{v3 → v4}/models/Plan.d.ts +9 -9
  43. package/api/{v3 → v4}/models/Poi.d.ts +34 -33
  44. package/api/{v3 → v4}/models/PoiCategory.d.ts +7 -7
  45. package/api/{v3 → v4}/models/PoiCategoryGroup.d.ts +5 -5
  46. package/api/v4/models/PoiCategoryParent.d.ts +5 -0
  47. package/api/{v3 → v4}/models/PoiReference.d.ts +10 -10
  48. package/api/v4/models/Question.d.ts +11 -0
  49. package/api/v4/models/QuestionAnswer.d.ts +6 -0
  50. package/api/{v3 → v4}/models/Recommendation.d.ts +5 -5
  51. package/api/{v3 → v4}/models/Step.d.ts +8 -10
  52. package/api/v4/models/SubAnswer.d.ts +4 -0
  53. package/api/{v3 → v4}/models/TasteItem.d.ts +8 -7
  54. package/api/v4/models/TimeFrame.d.ts +4 -0
  55. package/api/{v3 → v4}/models/Token.d.ts +4 -4
  56. package/api/v4/models/TokenPayload.d.ts +28 -0
  57. package/api/v4/models/TokenRefresh.d.ts +5 -0
  58. package/api/{v3 → v4}/models/TopTen.d.ts +6 -6
  59. package/api/{v3 → v4}/models/Trip.d.ts +5 -5
  60. package/api/v4/models/TripProfile.d.ts +13 -0
  61. package/api/{v3 → v4}/models/TripReference.d.ts +8 -8
  62. package/api/v4/models/User.d.ts +6 -0
  63. package/api/v4/models/UserReaction.d.ts +9 -0
  64. package/api/v4/models/UserReservation.d.ts +10 -0
  65. package/api/v4/models/UserResetPassword.d.ts +6 -0
  66. package/api/{v3 → v4}/requests/CompanionRequest.d.ts +6 -6
  67. package/api/v4/requests/LoginRequest.d.ts +6 -0
  68. package/api/v4/requests/OfferAddRequest.d.ts +22 -0
  69. package/api/v4/requests/OfferRequest.d.ts +9 -0
  70. package/api/v4/requests/PlanUpdateRequest.d.ts +5 -0
  71. package/api/v4/requests/PoisRequest.d.ts +16 -0
  72. package/api/v4/requests/PoisRequestCoordinate.d.ts +7 -0
  73. package/api/{v3 → v4}/requests/PoisRequestMustTry.d.ts +5 -5
  74. package/api/{v3 → v4}/requests/PoisRequestName.d.ts +7 -7
  75. package/api/v4/requests/RegisterRequest.d.ts +11 -0
  76. package/api/v4/requests/TokenRefreshRequest.d.ts +5 -0
  77. package/api/v4/requests/UserReactionRequest.d.ts +7 -0
  78. package/api/{v3 → v4}/requests/UserReservationRequest.d.ts +7 -7
  79. package/api/v4/requests/UserUpdateRequest.d.ts +7 -0
  80. package/api/{v3 → v4}/responses/DataPayload.d.ts +5 -5
  81. package/api/v4/responses/DeleteUpdateResponse.d.ts +3 -0
  82. package/api/v4/responses/ErrorResponse.d.ts +7 -0
  83. package/api/v4/responses/Pagination.d.ts +7 -0
  84. package/api/{v3 → v4}/responses/SuccessResponse.d.ts +10 -8
  85. package/helper/index.d.ts +37 -37
  86. package/helper/plural.d.ts +1 -1
  87. package/index.d.ts +4 -4
  88. package/index.js +1 -1
  89. package/index.js.map +1 -1
  90. package/package.json +21 -21
  91. package/providers/bb/ACTIVITY_THEMES.d.ts +14 -14
  92. package/providers/bb/Activity.d.ts +11 -11
  93. package/providers/bb/ActivityInfo.d.ts +16 -16
  94. package/providers/bb/ActivityInfoImage.d.ts +7 -7
  95. package/providers/bb/ActivityInfoLocation.d.ts +4 -4
  96. package/providers/bb/ActivityPoint.d.ts +9 -9
  97. package/providers/bb/AuthorizationResponse.d.ts +48 -48
  98. package/providers/bb/Offer.d.ts +58 -58
  99. package/providers/bb/OfferPoint.d.ts +6 -6
  100. package/providers/bb/Product.d.ts +19 -19
  101. package/providers/bb/SearchAccommodationResponse.d.ts +119 -119
  102. package/providers/bb/SearchActivitiesResponse.d.ts +20 -20
  103. package/providers/bb/SearchCarRentResponse.d.ts +99 -99
  104. package/providers/bb/index.d.ts +13 -13
  105. package/providers/glx/Booking.d.ts +16 -16
  106. package/providers/glx/BookingContact.d.ts +7 -7
  107. package/providers/glx/BookingInformation.d.ts +4 -4
  108. package/providers/glx/BookingLocation.d.ts +5 -5
  109. package/providers/glx/BookingPrice.d.ts +23 -23
  110. package/providers/glx/BookingRef.d.ts +24 -24
  111. package/providers/glx/BookingSearchResult.d.ts +10 -10
  112. package/providers/glx/BookingSearchResultAggregation.d.ts +18 -18
  113. package/providers/glx/BookingSubCategory.d.ts +4 -4
  114. package/providers/glx/BookingSupplier.d.ts +4 -4
  115. package/providers/glx/Catalog.d.ts +4 -4
  116. package/providers/glx/CatalogGroup.d.ts +10 -10
  117. package/providers/glx/Token.d.ts +5 -5
  118. package/providers/glx/TourRating.d.ts +5 -5
  119. package/providers/glx/TourReview.d.ts +6 -6
  120. package/providers/glx/index.d.ts +15 -15
  121. package/providers/gyg/CatalogGroup.d.ts +5 -5
  122. package/providers/gyg/Categories.d.ts +8 -8
  123. package/providers/gyg/Category.d.ts +6 -6
  124. package/providers/gyg/MetaData.d.ts +15 -15
  125. package/providers/gyg/PaymentConfiguration.d.ts +8 -8
  126. package/providers/gyg/PaymentConfigurations.d.ts +8 -8
  127. package/providers/gyg/Tour.d.ts +36 -36
  128. package/providers/gyg/TourAvailabilities.d.ts +8 -8
  129. package/providers/gyg/TourAvailability.d.ts +7 -7
  130. package/providers/gyg/TourBooking.d.ts +10 -10
  131. package/providers/gyg/TourBookingCart.d.ts +81 -81
  132. package/providers/gyg/TourBookingCartRequest.d.ts +49 -49
  133. package/providers/gyg/TourBookingCartWithDetails.d.ts +6 -6
  134. package/providers/gyg/TourBookingCarts.d.ts +6 -6
  135. package/providers/gyg/TourBookingInfo.d.ts +37 -37
  136. package/providers/gyg/TourBookingInfos.d.ts +8 -8
  137. package/providers/gyg/TourBookingRequest.d.ts +26 -26
  138. package/providers/gyg/TourBookings.d.ts +8 -8
  139. package/providers/gyg/TourCategories.d.ts +5 -5
  140. package/providers/gyg/TourCoordinates.d.ts +4 -4
  141. package/providers/gyg/TourDateRange.d.ts +4 -4
  142. package/providers/gyg/TourDurations.d.ts +4 -4
  143. package/providers/gyg/TourLocations.d.ts +13 -13
  144. package/providers/gyg/TourOption.d.ts +34 -34
  145. package/providers/gyg/TourOptionDetails.d.ts +8 -8
  146. package/providers/gyg/TourOptionPricing.d.ts +20 -20
  147. package/providers/gyg/TourOptionPricings.d.ts +8 -8
  148. package/providers/gyg/TourOptions.d.ts +8 -8
  149. package/providers/gyg/TourPictures.d.ts +6 -6
  150. package/providers/gyg/TourPrice.d.ts +11 -11
  151. package/providers/gyg/TourReservationDetails.d.ts +6 -6
  152. package/providers/gyg/TourShoppingFormData.d.ts +20 -20
  153. package/providers/gyg/TourViewport.d.ts +6 -6
  154. package/providers/gyg/Tours.d.ts +8 -8
  155. package/providers/gyg/index.d.ts +33 -33
  156. package/providers/index.d.ts +5 -5
  157. package/providers/yelp/Business.d.ts +31 -31
  158. package/providers/yelp/Hold.d.ts +10 -10
  159. package/providers/yelp/HoldRequest.d.ts +7 -7
  160. package/providers/yelp/Opening.d.ts +5 -5
  161. package/providers/yelp/OpeningTime.d.ts +4 -4
  162. package/providers/yelp/Openings.d.ts +4 -4
  163. package/providers/yelp/OpeningsRequest.d.ts +6 -6
  164. package/providers/yelp/Reservation.d.ts +5 -5
  165. package/providers/yelp/ReservationInfo.d.ts +8 -8
  166. package/providers/yelp/ReservationRequest.d.ts +12 -12
  167. package/providers/yelp/ReservationStatusResponse.d.ts +6 -6
  168. package/providers/yelp/index.d.ts +10 -10
  169. package/api/v3/enums/REACTION.d.ts +0 -5
  170. package/api/v3/enums/TRIP_PROFILE_PACE.d.ts +0 -5
  171. package/api/v3/models/Accommodation.d.ts +0 -7
  172. package/api/v3/models/Booking.d.ts +0 -6
  173. package/api/v3/models/Favorite.d.ts +0 -6
  174. package/api/v3/models/Option.d.ts +0 -6
  175. package/api/v3/models/PoiCategoryParent.d.ts +0 -4
  176. package/api/v3/models/PoiHours.d.ts +0 -4
  177. package/api/v3/models/Question.d.ts +0 -10
  178. package/api/v3/models/StepHours.d.ts +0 -4
  179. package/api/v3/models/SubOption.d.ts +0 -4
  180. package/api/v3/models/TasteItemImage.d.ts +0 -5
  181. package/api/v3/models/TokenPayload.d.ts +0 -13
  182. package/api/v3/models/TokenRefresh.d.ts +0 -5
  183. package/api/v3/models/TripProfile.d.ts +0 -14
  184. package/api/v3/models/User.d.ts +0 -8
  185. package/api/v3/models/UserProfile.d.ts +0 -4
  186. package/api/v3/models/UserReaction.d.ts +0 -12
  187. package/api/v3/models/UserReservation.d.ts +0 -10
  188. package/api/v3/requests/Device.d.ts +0 -7
  189. package/api/v3/requests/FavoriteRequest.d.ts +0 -4
  190. package/api/v3/requests/FavoriteUpdateRequest.d.ts +0 -4
  191. package/api/v3/requests/LoginRequestEmail.d.ts +0 -6
  192. package/api/v3/requests/LoginRequestTripHash.d.ts +0 -5
  193. package/api/v3/requests/LoginRequestUsername.d.ts +0 -5
  194. package/api/v3/requests/PlanUpdateRequest.d.ts +0 -5
  195. package/api/v3/requests/PoisRequest.d.ts +0 -12
  196. package/api/v3/requests/PoisRequestCoordinate.d.ts +0 -8
  197. package/api/v3/requests/RecommendationRequest.d.ts +0 -14
  198. package/api/v3/requests/RegisterRequestEmail.d.ts +0 -8
  199. package/api/v3/requests/RegisterRequestUsername.d.ts +0 -7
  200. package/api/v3/requests/StepRequest.d.ts +0 -5
  201. package/api/v3/requests/StepUpdateRequest.d.ts +0 -4
  202. package/api/v3/requests/TokenRefreshRequest.d.ts +0 -3
  203. package/api/v3/requests/UserProfileRequest.d.ts +0 -4
  204. package/api/v3/requests/UserReactionRequest.d.ts +0 -8
  205. package/api/v3/requests/UserUpdateRequest.d.ts +0 -7
  206. package/api/v3/responses/ErrorResponse.d.ts +0 -6
  207. package/api/v3/responses/Pagination.d.ts +0 -9
  208. package/api/v3/responses/PaginationLinks.d.ts +0 -4
@@ -1,33 +1,34 @@
1
- import { Image } from './Image';
2
- import { Coordinate } from './Coordinate';
3
- import { PoiCategory } from './PoiCategory';
4
- import { Booking } from './Booking';
5
- import { TasteItem } from './TasteItem';
6
- export declare type Poi = {
7
- address: string | null;
8
- attention: string | null;
9
- booking: Booking[];
10
- category: PoiCategory[];
11
- city_id: number;
12
- closed: number[];
13
- coordinate: Coordinate;
14
- cuisines: string | null;
15
- description: string | null;
16
- distance: number | null;
17
- gallery: Image[];
18
- hours: string | null;
19
- icon: string;
20
- id: number;
21
- image: Image;
22
- marker_coordinate: Coordinate;
23
- must_tries: TasteItem[];
24
- name: string;
25
- phone: string | null;
26
- price: number | null;
27
- rating: number | null;
28
- rating_count: number | null;
29
- safety: string[] | null;
30
- status: boolean;
31
- tags: string[];
32
- web: string | null;
33
- };
1
+ import { Image } from './Image';
2
+ import { Coordinate } from './Coordinate';
3
+ import { PoiCategory } from './PoiCategory';
4
+ import { TasteItem } from './TasteItem';
5
+ import { Booking } from './Booking';
6
+ import { Offer } from './Offer';
7
+ export declare type Poi = {
8
+ id: number;
9
+ cityId: number;
10
+ name: string;
11
+ image: Image;
12
+ gallery: Image[];
13
+ price: number | null;
14
+ rating: number | null;
15
+ ratingCount: number | null;
16
+ description: string | null;
17
+ web: string | null;
18
+ phone: string | null;
19
+ address: string;
20
+ icon: string;
21
+ coordinate: Coordinate;
22
+ bookings: Booking[];
23
+ category: PoiCategory[];
24
+ tags: string[];
25
+ mustTries: TasteItem[];
26
+ cuisines: string | null;
27
+ attention: string | null;
28
+ hours: string | null;
29
+ closed: number[];
30
+ distance: number | null;
31
+ safety: string[];
32
+ status: boolean;
33
+ offers: Offer[];
34
+ };
@@ -1,7 +1,7 @@
1
- import { PoiCategoryParent } from './PoiCategoryParent';
2
- export declare type PoiCategory = {
3
- description: string | null;
4
- id: number;
5
- name: string;
6
- parent: PoiCategoryParent | null;
7
- };
1
+ import { PoiCategoryParent } from './PoiCategoryParent';
2
+ export declare type PoiCategory = {
3
+ id: number;
4
+ name: string;
5
+ description: string | null;
6
+ parent: PoiCategoryParent | null;
7
+ };
@@ -1,5 +1,5 @@
1
- import { POI_CATEGORY_GROUP } from '../enums/POI_CATEGORY_GROUP';
2
- export declare type PoiCategoryGroup = {
3
- ids: number[];
4
- group: POI_CATEGORY_GROUP;
5
- };
1
+ import { POI_CATEGORY_GROUP } from '../enums/POI_CATEGORY_GROUP';
2
+ export declare type PoiCategoryGroup = {
3
+ ids: number[];
4
+ group: POI_CATEGORY_GROUP;
5
+ };
@@ -0,0 +1,5 @@
1
+ export declare type PoiCategoryParent = {
2
+ id: number;
3
+ name: string;
4
+ description: string | null;
5
+ };
@@ -1,10 +1,10 @@
1
- import { Coordinate } from './Coordinate';
2
- import { Image } from './Image';
3
- import { PoiCategory } from './PoiCategory';
4
- export declare type PoiReference = {
5
- category: PoiCategory[];
6
- id: number;
7
- image: Image;
8
- marker_coordinate: Coordinate;
9
- name: string;
10
- };
1
+ import { Coordinate } from './Coordinate';
2
+ import { PoiCategory } from './PoiCategory';
3
+ import { Image } from './Image';
4
+ export declare type PoiReference = {
5
+ id: number;
6
+ name: string;
7
+ image: Image | null;
8
+ coordinate: Coordinate | null;
9
+ category: PoiCategory[];
10
+ };
@@ -0,0 +1,11 @@
1
+ import { QUESTIONS_CATEGORY } from '../enums/QUESTIONS_CATEGORY';
2
+ import { QuestionAnswer } from './QuestionAnswer';
3
+ export declare type Question = {
4
+ id: number;
5
+ skippable: boolean;
6
+ selectMultiple: boolean;
7
+ name: string;
8
+ category: QUESTIONS_CATEGORY;
9
+ order: number;
10
+ answers: QuestionAnswer[];
11
+ };
@@ -0,0 +1,6 @@
1
+ import { SubAnswer } from './SubAnswer';
2
+ export declare type QuestionAnswer = {
3
+ id: number;
4
+ name: string;
5
+ subAnswers: SubAnswer[];
6
+ };
@@ -1,5 +1,5 @@
1
- import { PoiReference } from './PoiReference';
2
- export declare type Recommendation = {
3
- poi_ref: PoiReference;
4
- score: number | null;
5
- };
1
+ import { PoiReference } from './PoiReference';
2
+ export declare type Recommendation = {
3
+ poiRef: PoiReference;
4
+ score: number;
5
+ };
@@ -1,10 +1,8 @@
1
- import { Poi } from './Poi';
2
- import { StepHours } from './StepHours';
3
- export declare type Step = {
4
- alternatives: number[];
5
- hours: StepHours;
6
- id: number;
7
- order: number;
8
- poi: Poi;
9
- score: number | null;
10
- };
1
+ import { Poi } from './Poi';
2
+ export declare type Step = {
3
+ id: number;
4
+ poi: Poi;
5
+ score: number | null;
6
+ order: number;
7
+ alternatives: number[];
8
+ };
@@ -0,0 +1,4 @@
1
+ export declare type SubAnswer = {
2
+ id: number;
3
+ name: string;
4
+ };
@@ -1,7 +1,8 @@
1
- import { TasteItemImage } from './TasteItemImage';
2
- export declare type TasteItem = {
3
- id: number;
4
- description: string | null;
5
- image: TasteItemImage;
6
- name: string;
7
- };
1
+ import { Image } from './Image';
2
+ export declare type TasteItem = {
3
+ id: number;
4
+ name: string;
5
+ poiCount: number | null;
6
+ description: string | null;
7
+ image: Image;
8
+ };
@@ -0,0 +1,4 @@
1
+ export declare type TimeFrame = {
2
+ start: string;
3
+ end: string;
4
+ };
@@ -1,4 +1,4 @@
1
- import { TokenRefresh } from './TokenRefresh';
2
- export declare type Token = TokenRefresh & {
3
- refresh_token: string;
4
- };
1
+ import { TokenRefresh } from './TokenRefresh';
2
+ export declare type Token = TokenRefresh & {
3
+ refreshToken: string;
4
+ };
@@ -0,0 +1,28 @@
1
+ export declare type TokenPayload = {
2
+ 'cognito:username': string;
3
+ sub: string;
4
+ email_verified: boolean;
5
+ iss: string;
6
+ aud: string;
7
+ token_use: string;
8
+ auth_time: number;
9
+ exp: number;
10
+ iat: number;
11
+ email: string;
12
+ origin_jti?: string;
13
+ event_id?: string;
14
+ jti?: string;
15
+ at_hash?: string;
16
+ 'cognito:groups'?: string[];
17
+ nonce?: string;
18
+ identities?: {
19
+ userId: string;
20
+ providerName: string;
21
+ providerType: string;
22
+ issuer: null;
23
+ primary: string;
24
+ dateCreated: string;
25
+ }[];
26
+ name?: string;
27
+ family_name?: string;
28
+ };
@@ -0,0 +1,5 @@
1
+ export declare type TokenRefresh = {
2
+ idToken: string;
3
+ expiresIn: number;
4
+ tokenType: string;
5
+ };
@@ -1,6 +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
- };
1
+ import { PoiCategory } from './PoiCategory';
2
+ import { Poi } from './Poi';
3
+ export declare type TopTen = {
4
+ category: PoiCategory;
5
+ topTenPoi: Poi[];
6
+ };
@@ -1,5 +1,5 @@
1
- import { TripReference } from './TripReference';
2
- import { Plan } from './Plan';
3
- export declare type Trip = TripReference & {
4
- plans: Array<Plan>;
5
- };
1
+ import { Plan } from './Plan';
2
+ import { TripReference } from './TripReference';
3
+ export declare type Trip = TripReference & {
4
+ plans: Plan[];
5
+ };
@@ -0,0 +1,13 @@
1
+ import { Accommodation } from './Accommodation';
2
+ export declare type TripProfile = {
3
+ cityId: number;
4
+ arrivalDatetime: string;
5
+ departureDatetime: string;
6
+ numberOfAdults: number;
7
+ numberOfChildren?: number | null;
8
+ accommodation?: Accommodation | null;
9
+ answers: number[];
10
+ companionIds: number[];
11
+ excludeHash: string[];
12
+ doNotGenerate?: number | null;
13
+ };
@@ -1,8 +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
- };
1
+ import { TripProfile } from './TripProfile';
2
+ import { City } from './City';
3
+ export declare type TripReference = {
4
+ id: number;
5
+ tripHash: string;
6
+ tripProfile: TripProfile;
7
+ city: City;
8
+ };
@@ -0,0 +1,6 @@
1
+ import { UserResetPassword } from './UserResetPassword';
2
+ export declare type User = UserResetPassword & {
3
+ dateOfBirth: string | null;
4
+ answers: number[];
5
+ businessId: number | null;
6
+ };
@@ -0,0 +1,9 @@
1
+ import { REACTION } from '../enums/REACTION';
2
+ export declare type UserReaction = {
3
+ id: number;
4
+ poiId: number;
5
+ stepId: number | null;
6
+ tripHash: string | null;
7
+ reaction: REACTION;
8
+ comment: string;
9
+ };
@@ -0,0 +1,10 @@
1
+ export declare type UserReservation = {
2
+ id: number;
3
+ key: string;
4
+ value: Object;
5
+ provider: string;
6
+ tripHash: string;
7
+ poiId: number;
8
+ createdAt: string;
9
+ updatedAt: string;
10
+ };
@@ -0,0 +1,6 @@
1
+ export declare type UserResetPassword = {
2
+ id: number;
3
+ email: string;
4
+ firstName: string;
5
+ lastName: string;
6
+ };
@@ -1,6 +1,6 @@
1
- export declare type CompanionRequest = {
2
- age: number | null;
3
- answers: number[];
4
- name: string;
5
- title: string;
6
- };
1
+ export declare type CompanionRequest = {
2
+ title: string;
3
+ name: string;
4
+ answers?: number[];
5
+ age: number;
6
+ };
@@ -0,0 +1,6 @@
1
+ import { Device } from '../models/Device';
2
+ export declare type LoginRequest = {
3
+ email: string;
4
+ password: string;
5
+ device?: Device;
6
+ };
@@ -0,0 +1,22 @@
1
+ import { OFFER_CURRENCY } from '../enums/OFFER_CURRENCY';
2
+ import { OFFER_STATUS } from '../enums/OFFER_STATUS';
3
+ import { OFFER_TYPE } from '../enums/OFFER_TYPE';
4
+ import { TimeFrame } from '../models/TimeFrame';
5
+ export declare type OfferAddRequest = {
6
+ cityId: number;
7
+ title: string;
8
+ description?: string;
9
+ currency: OFFER_CURRENCY;
10
+ status?: OFFER_STATUS;
11
+ threshold: number;
12
+ discount: number;
13
+ discountedProductCount?: number;
14
+ quantity?: number;
15
+ timeframe?: TimeFrame;
16
+ image: {
17
+ url: string;
18
+ };
19
+ productTypeId: number;
20
+ productName: string;
21
+ offerType: OFFER_TYPE;
22
+ };
@@ -0,0 +1,9 @@
1
+ export declare type OfferRequest = {
2
+ offerId: number;
3
+ dateFrom: string;
4
+ dateTo: string;
5
+ poiIds?: string;
6
+ boundary?: string;
7
+ typeId?: string;
8
+ excludeOptIn?: number;
9
+ };
@@ -0,0 +1,5 @@
1
+ export declare type PlanUpdateRequest = {
2
+ startTime?: string;
3
+ endTime?: string;
4
+ stepOrders?: Array<number>;
5
+ };
@@ -0,0 +1,16 @@
1
+ export declare type PoisRequest = {
2
+ cityId?: number;
3
+ coordinate?: string;
4
+ search?: string;
5
+ poiIds?: string;
6
+ mustTryIds?: string;
7
+ poiCategories?: string;
8
+ distance?: number;
9
+ bounds?: string;
10
+ sort?: string;
11
+ order?: string;
12
+ price?: string;
13
+ rating?: string;
14
+ page?: number;
15
+ limit?: number;
16
+ };
@@ -0,0 +1,7 @@
1
+ export declare type PoisRequestCoordinate = {
2
+ poiCategories?: string;
3
+ coordinate?: string;
4
+ distance?: number;
5
+ bounds?: string;
6
+ limit: number;
7
+ };
@@ -1,5 +1,5 @@
1
- export declare type PoisRequestMustTry = {
2
- cityId: number;
3
- mustTryIds: number[];
4
- limit: number;
5
- };
1
+ export declare type PoisRequestMustTry = {
2
+ cityId: number;
3
+ mustTryIds?: string;
4
+ limit: number;
5
+ };
@@ -1,7 +1,7 @@
1
- export declare type PoisRequestName = {
2
- cityId?: number;
3
- name: string;
4
- poiCategories?: number[];
5
- limit?: number;
6
- page?: number;
7
- };
1
+ export declare type PoisRequestName = {
2
+ cityId?: number;
3
+ search?: string;
4
+ poiCategories?: string;
5
+ limit?: number;
6
+ page?: number;
7
+ };
@@ -0,0 +1,11 @@
1
+ import { Device } from '../models/Device';
2
+ export declare type RegisterRequest = {
3
+ firstName: string;
4
+ lastName: string;
5
+ email: string;
6
+ password: string;
7
+ dateOfBirth?: string;
8
+ tripianPoiId?: number;
9
+ googlePlaceId?: string;
10
+ device?: Device;
11
+ };
@@ -0,0 +1,5 @@
1
+ import { Device } from '../models/Device';
2
+ export declare type TokenRefreshRequest = {
3
+ refreshToken: string;
4
+ device?: Device;
5
+ };
@@ -0,0 +1,7 @@
1
+ import { REACTION } from '../enums/REACTION';
2
+ export declare type UserReactionRequest = {
3
+ poiId: number;
4
+ stepId?: number;
5
+ reaction: REACTION;
6
+ comment?: string;
7
+ };
@@ -1,7 +1,7 @@
1
- export declare type UserReservationRequest = {
2
- key: string;
3
- poi_id: number;
4
- provider: string;
5
- trip_hash?: string | null;
6
- value: Object;
7
- };
1
+ export declare type UserReservationRequest = {
2
+ key: string;
3
+ value: Object;
4
+ provider: string;
5
+ tripHash: string;
6
+ poiId: number;
7
+ };
@@ -0,0 +1,7 @@
1
+ export declare type UserUpdateRequest = {
2
+ firstName?: string;
3
+ lastName?: string;
4
+ dateOfBirth?: string;
5
+ answers?: number[];
6
+ password?: string;
7
+ };
@@ -1,5 +1,5 @@
1
- import { Pagination } from './Pagination';
2
- export declare type DataPayload<T> = {
3
- data: T;
4
- pagination?: Pagination;
5
- };
1
+ import { Pagination } from './Pagination';
2
+ export declare type DataPayload<T> = {
3
+ data: T;
4
+ pagination?: Pagination;
5
+ };
@@ -0,0 +1,3 @@
1
+ export declare type DeleteUpdateResponse = {
2
+ updated: boolean;
3
+ };
@@ -0,0 +1,7 @@
1
+ import { RESPONSE_STATUS } from '../enums/RESPONSE_STATUS';
2
+ export declare type ErrorResponse = {
3
+ status: RESPONSE_STATUS;
4
+ success: boolean;
5
+ message: string;
6
+ UUID: string;
7
+ };
@@ -0,0 +1,7 @@
1
+ export declare type Pagination = {
2
+ total: number;
3
+ perPage: number;
4
+ totalPages: number;
5
+ currentPage: number;
6
+ count: number;
7
+ };
@@ -1,8 +1,10 @@
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
- };
1
+ import { RESPONSE_STATUS } from '../enums/RESPONSE_STATUS';
2
+ import { Pagination } from './Pagination';
3
+ export declare type SuccessResponse<T> = {
4
+ status: RESPONSE_STATUS;
5
+ success: boolean;
6
+ message: string;
7
+ UUID: string;
8
+ data: T;
9
+ pagination?: Pagination;
10
+ };