@tripian/model 4.6.0 → 5.0.2
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.
- package/api/{v3 → v4}/enums/BOOKING_PRODUCT_INFO.d.ts +3 -3
- package/api/v4/enums/OFFER_CURRENCY.d.ts +4 -0
- package/api/v4/enums/OFFER_RECEIVE_METHOD.d.ts +4 -0
- package/api/v4/enums/OFFER_STATUS.d.ts +5 -0
- package/api/v4/enums/OFFER_TYPE.d.ts +5 -0
- package/api/{v3 → v4}/enums/POI_CATEGORY_GROUP.d.ts +7 -7
- package/api/v4/enums/PRODUCT_TYPE_NAME.d.ts +5 -0
- package/api/{v3 → v4}/enums/PROVIDER_ID.d.ts +7 -7
- package/api/{v3 → v4}/enums/PROVIDER_NAME.d.ts +7 -7
- package/api/v4/enums/QUESTIONS_CATEGORY.d.ts +5 -0
- package/api/v4/enums/REACTION.d.ts +5 -0
- package/api/{v3 → v4}/enums/REACTION_COMMENT.d.ts +4 -4
- package/api/v4/enums/RESPONSE_STATUS.d.ts +8 -0
- package/api/v4/enums/VERIFY_CHANNEL.d.ts +4 -0
- package/api/{v3 → v4}/index.d.ts +92 -69
- package/api/v4/models/Accommodation.d.ts +7 -0
- package/api/v4/models/Booking.d.ts +8 -0
- package/api/{v3 → v4}/models/BookingProduct.d.ts +13 -13
- package/api/v4/models/Business.d.ts +18 -0
- package/api/v4/models/BusinessInfoCategory.d.ts +6 -0
- package/api/v4/models/BusinessNameAddress.d.ts +4 -0
- package/api/v4/models/BusinessSearch.d.ts +7 -0
- package/api/v4/models/BusinessVerify.d.ts +4 -0
- package/api/{v3 → v4}/models/City.d.ts +15 -15
- package/api/{v3 → v4}/models/Companion.d.ts +8 -8
- package/api/{v3 → v4}/models/Continent.d.ts +4 -3
- package/api/{v3 → v4}/models/Coordinate.d.ts +4 -4
- package/api/{v3 → v4}/models/Country.d.ts +6 -6
- package/api/v4/models/Device.d.ts +7 -0
- package/api/v4/models/Favorite.d.ts +6 -0
- package/api/{v3 → v4}/models/HourFormat.d.ts +4 -4
- package/api/{v3 → v4}/models/Image.d.ts +7 -7
- package/api/{v3 → v4}/models/ImageOwner.d.ts +4 -5
- package/api/v4/models/Notification.d.ts +8 -0
- package/api/v4/models/NotificationMetaData.d.ts +4 -0
- package/api/v4/models/NotificationSettings.d.ts +6 -0
- package/api/v4/models/NotificationUnseen.d.ts +3 -0
- package/api/v4/models/Offer.d.ts +27 -0
- package/api/v4/models/OfferCustomer.d.ts +6 -0
- package/api/v4/models/OfferImage.d.ts +4 -0
- package/api/v4/models/OfferProductType.d.ts +7 -0
- package/api/{v3 → v4}/models/Plan.d.ts +9 -9
- package/api/{v3 → v4}/models/Poi.d.ts +34 -33
- package/api/{v3 → v4}/models/PoiCategory.d.ts +7 -7
- package/api/{v3 → v4}/models/PoiCategoryGroup.d.ts +5 -5
- package/api/v4/models/PoiCategoryParent.d.ts +5 -0
- package/api/{v3 → v4}/models/PoiReference.d.ts +10 -10
- package/api/v4/models/Question.d.ts +11 -0
- package/api/v4/models/QuestionAnswer.d.ts +6 -0
- package/api/{v3 → v4}/models/Recommendation.d.ts +5 -5
- package/api/{v3 → v4}/models/Step.d.ts +8 -10
- package/api/v4/models/SubAnswer.d.ts +4 -0
- package/api/{v3 → v4}/models/TasteItem.d.ts +8 -7
- package/api/v4/models/TimeFrame.d.ts +4 -0
- package/api/{v3 → v4}/models/Token.d.ts +4 -4
- package/api/v4/models/TokenPayload.d.ts +28 -0
- package/api/v4/models/TokenRefresh.d.ts +5 -0
- package/api/{v3 → v4}/models/TopTen.d.ts +6 -6
- package/api/{v3 → v4}/models/Trip.d.ts +5 -5
- package/api/v4/models/TripProfile.d.ts +13 -0
- package/api/{v3 → v4}/models/TripReference.d.ts +8 -8
- package/api/v4/models/User.d.ts +6 -0
- package/api/v4/models/UserReaction.d.ts +9 -0
- package/api/v4/models/UserReservation.d.ts +10 -0
- package/api/v4/models/UserResetPassword.d.ts +6 -0
- package/api/{v3 → v4}/requests/CompanionRequest.d.ts +6 -6
- package/api/v4/requests/LoginRequest.d.ts +6 -0
- package/api/v4/requests/OfferAddRequest.d.ts +22 -0
- package/api/v4/requests/OfferRequest.d.ts +8 -0
- package/api/v4/requests/PlanUpdateRequest.d.ts +5 -0
- package/api/v4/requests/PoisRequest.d.ts +17 -0
- package/api/v4/requests/PoisRequestCoordinate.d.ts +7 -0
- package/api/{v3 → v4}/requests/PoisRequestMustTry.d.ts +5 -5
- package/api/{v3 → v4}/requests/PoisRequestName.d.ts +7 -7
- package/api/v4/requests/RegisterRequest.d.ts +11 -0
- package/api/v4/requests/TokenRefreshRequest.d.ts +5 -0
- package/api/v4/requests/UserReactionRequest.d.ts +7 -0
- package/api/{v3 → v4}/requests/UserReservationRequest.d.ts +7 -7
- package/api/v4/requests/UserUpdateRequest.d.ts +7 -0
- package/api/{v3 → v4}/responses/DataPayload.d.ts +5 -5
- package/api/v4/responses/DeleteUpdateResponse.d.ts +3 -0
- package/api/v4/responses/ErrorResponse.d.ts +7 -0
- package/api/v4/responses/Pagination.d.ts +7 -0
- package/api/{v3 → v4}/responses/SuccessResponse.d.ts +10 -8
- package/helper/index.d.ts +37 -37
- package/helper/plural.d.ts +1 -1
- package/index.d.ts +4 -4
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/package.json +21 -21
- package/providers/bb/ACTIVITY_THEMES.d.ts +14 -14
- package/providers/bb/Activity.d.ts +11 -11
- package/providers/bb/ActivityInfo.d.ts +16 -16
- package/providers/bb/ActivityInfoImage.d.ts +7 -7
- package/providers/bb/ActivityInfoLocation.d.ts +4 -4
- package/providers/bb/ActivityPoint.d.ts +9 -9
- package/providers/bb/AuthorizationResponse.d.ts +48 -48
- package/providers/bb/Offer.d.ts +58 -58
- package/providers/bb/OfferPoint.d.ts +6 -6
- package/providers/bb/Product.d.ts +19 -19
- package/providers/bb/SearchAccommodationResponse.d.ts +119 -119
- package/providers/bb/SearchActivitiesResponse.d.ts +20 -20
- package/providers/bb/SearchCarRentResponse.d.ts +99 -99
- package/providers/bb/index.d.ts +13 -13
- package/providers/glx/Booking.d.ts +16 -16
- package/providers/glx/BookingContact.d.ts +7 -7
- package/providers/glx/BookingInformation.d.ts +4 -4
- package/providers/glx/BookingLocation.d.ts +5 -5
- package/providers/glx/BookingPrice.d.ts +23 -23
- package/providers/glx/BookingRef.d.ts +24 -24
- package/providers/glx/BookingSearchResult.d.ts +10 -10
- package/providers/glx/BookingSearchResultAggregation.d.ts +18 -18
- package/providers/glx/BookingSubCategory.d.ts +4 -4
- package/providers/glx/BookingSupplier.d.ts +4 -4
- package/providers/glx/Catalog.d.ts +4 -4
- package/providers/glx/CatalogGroup.d.ts +10 -10
- package/providers/glx/Token.d.ts +5 -5
- package/providers/glx/TourRating.d.ts +5 -5
- package/providers/glx/TourReview.d.ts +6 -6
- package/providers/glx/index.d.ts +15 -15
- package/providers/gyg/CatalogGroup.d.ts +5 -5
- package/providers/gyg/Categories.d.ts +8 -8
- package/providers/gyg/Category.d.ts +6 -6
- package/providers/gyg/MetaData.d.ts +15 -15
- package/providers/gyg/PaymentConfiguration.d.ts +8 -8
- package/providers/gyg/PaymentConfigurations.d.ts +8 -8
- package/providers/gyg/Tour.d.ts +36 -36
- package/providers/gyg/TourAvailabilities.d.ts +8 -8
- package/providers/gyg/TourAvailability.d.ts +7 -7
- package/providers/gyg/TourBooking.d.ts +10 -10
- package/providers/gyg/TourBookingCart.d.ts +81 -81
- package/providers/gyg/TourBookingCartRequest.d.ts +49 -49
- package/providers/gyg/TourBookingCartWithDetails.d.ts +6 -6
- package/providers/gyg/TourBookingCarts.d.ts +6 -6
- package/providers/gyg/TourBookingInfo.d.ts +37 -37
- package/providers/gyg/TourBookingInfos.d.ts +8 -8
- package/providers/gyg/TourBookingRequest.d.ts +26 -26
- package/providers/gyg/TourBookings.d.ts +8 -8
- package/providers/gyg/TourCategories.d.ts +5 -5
- package/providers/gyg/TourCoordinates.d.ts +4 -4
- package/providers/gyg/TourDateRange.d.ts +4 -4
- package/providers/gyg/TourDurations.d.ts +4 -4
- package/providers/gyg/TourLocations.d.ts +13 -13
- package/providers/gyg/TourOption.d.ts +34 -34
- package/providers/gyg/TourOptionDetails.d.ts +8 -8
- package/providers/gyg/TourOptionPricing.d.ts +20 -20
- package/providers/gyg/TourOptionPricings.d.ts +8 -8
- package/providers/gyg/TourOptions.d.ts +8 -8
- package/providers/gyg/TourPictures.d.ts +6 -6
- package/providers/gyg/TourPrice.d.ts +11 -11
- package/providers/gyg/TourReservationDetails.d.ts +6 -6
- package/providers/gyg/TourShoppingFormData.d.ts +20 -20
- package/providers/gyg/TourViewport.d.ts +6 -6
- package/providers/gyg/Tours.d.ts +8 -8
- package/providers/gyg/index.d.ts +33 -33
- package/providers/index.d.ts +5 -5
- package/providers/yelp/Business.d.ts +31 -31
- package/providers/yelp/Hold.d.ts +10 -10
- package/providers/yelp/HoldRequest.d.ts +7 -7
- package/providers/yelp/Opening.d.ts +5 -5
- package/providers/yelp/OpeningTime.d.ts +4 -4
- package/providers/yelp/Openings.d.ts +4 -4
- package/providers/yelp/OpeningsRequest.d.ts +6 -6
- package/providers/yelp/Reservation.d.ts +5 -5
- package/providers/yelp/ReservationInfo.d.ts +8 -8
- package/providers/yelp/ReservationRequest.d.ts +12 -12
- package/providers/yelp/ReservationStatusResponse.d.ts +6 -6
- package/providers/yelp/index.d.ts +10 -10
- package/api/v3/enums/REACTION.d.ts +0 -5
- package/api/v3/enums/TRIP_PROFILE_PACE.d.ts +0 -5
- package/api/v3/models/Accommodation.d.ts +0 -7
- package/api/v3/models/Booking.d.ts +0 -6
- package/api/v3/models/Favorite.d.ts +0 -6
- package/api/v3/models/Option.d.ts +0 -6
- package/api/v3/models/PoiCategoryParent.d.ts +0 -4
- package/api/v3/models/PoiHours.d.ts +0 -4
- package/api/v3/models/Question.d.ts +0 -10
- package/api/v3/models/StepHours.d.ts +0 -4
- package/api/v3/models/SubOption.d.ts +0 -4
- package/api/v3/models/TasteItemImage.d.ts +0 -5
- package/api/v3/models/TokenPayload.d.ts +0 -13
- package/api/v3/models/TokenRefresh.d.ts +0 -5
- package/api/v3/models/TripProfile.d.ts +0 -14
- package/api/v3/models/User.d.ts +0 -8
- package/api/v3/models/UserProfile.d.ts +0 -4
- package/api/v3/models/UserReaction.d.ts +0 -12
- package/api/v3/models/UserReservation.d.ts +0 -10
- package/api/v3/requests/Device.d.ts +0 -7
- package/api/v3/requests/FavoriteRequest.d.ts +0 -4
- package/api/v3/requests/FavoriteUpdateRequest.d.ts +0 -4
- package/api/v3/requests/LoginRequestEmail.d.ts +0 -6
- package/api/v3/requests/LoginRequestTripHash.d.ts +0 -5
- package/api/v3/requests/LoginRequestUsername.d.ts +0 -5
- package/api/v3/requests/PlanUpdateRequest.d.ts +0 -5
- package/api/v3/requests/PoisRequest.d.ts +0 -12
- package/api/v3/requests/PoisRequestCoordinate.d.ts +0 -8
- package/api/v3/requests/RecommendationRequest.d.ts +0 -14
- package/api/v3/requests/RegisterRequestEmail.d.ts +0 -8
- package/api/v3/requests/RegisterRequestUsername.d.ts +0 -7
- package/api/v3/requests/StepRequest.d.ts +0 -5
- package/api/v3/requests/StepUpdateRequest.d.ts +0 -4
- package/api/v3/requests/TokenRefreshRequest.d.ts +0 -3
- package/api/v3/requests/UserProfileRequest.d.ts +0 -4
- package/api/v3/requests/UserReactionRequest.d.ts +0 -8
- package/api/v3/requests/UserUpdateRequest.d.ts +0 -7
- package/api/v3/responses/ErrorResponse.d.ts +0 -6
- package/api/v3/responses/Pagination.d.ts +0 -9
- 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 {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
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
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Coordinate } from './Coordinate';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
export declare type PoiReference = {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
image: Image;
|
|
8
|
-
|
|
9
|
-
|
|
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
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { PoiReference } from './PoiReference';
|
|
2
|
-
export declare type Recommendation = {
|
|
3
|
-
|
|
4
|
-
score: number
|
|
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
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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
|
+
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare type TasteItem = {
|
|
3
|
-
id: number;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TokenRefresh } from './TokenRefresh';
|
|
2
|
-
export declare type Token = TokenRefresh & {
|
|
3
|
-
|
|
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
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { PoiCategory } from './PoiCategory';
|
|
2
|
-
import { Poi } from './Poi';
|
|
3
|
-
export declare type TopTen = {
|
|
4
|
-
category: PoiCategory;
|
|
5
|
-
|
|
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 {
|
|
2
|
-
import {
|
|
3
|
-
export declare type Trip = TripReference & {
|
|
4
|
-
plans:
|
|
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 {
|
|
2
|
-
import {
|
|
3
|
-
export declare type TripReference = {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export declare type CompanionRequest = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
};
|
|
1
|
+
export declare type CompanionRequest = {
|
|
2
|
+
title: string;
|
|
3
|
+
name: string;
|
|
4
|
+
answers?: number[];
|
|
5
|
+
age: number;
|
|
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,17 @@
|
|
|
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
|
+
withOffers?: number;
|
|
17
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare type PoisRequestMustTry = {
|
|
2
|
-
cityId: number;
|
|
3
|
-
mustTryIds
|
|
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
|
-
|
|
4
|
-
poiCategories?:
|
|
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
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export declare type UserReservationRequest = {
|
|
2
|
-
key: string;
|
|
3
|
-
|
|
4
|
-
provider: string;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
};
|
|
1
|
+
export declare type UserReservationRequest = {
|
|
2
|
+
key: string;
|
|
3
|
+
value: Object;
|
|
4
|
+
provider: string;
|
|
5
|
+
tripHash: string;
|
|
6
|
+
poiId: number;
|
|
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
|
+
};
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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
|
+
};
|