@tripian/model 6.0.34 → 6.0.36
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/v4/enums/BOOKING_PRODUCT_INFO.d.ts +3 -3
- package/api/v4/enums/BUSINESS_RESULT_ORIGIN.d.ts +4 -4
- package/api/v4/enums/LOCATION_TYPE.d.ts +4 -4
- package/api/v4/enums/NOTIFICATION_TYPE.d.ts +5 -5
- package/api/v4/enums/OFFER_CURRENCY.d.ts +4 -4
- package/api/v4/enums/OFFER_RECEIVE_METHOD.d.ts +4 -4
- package/api/v4/enums/OFFER_STATUS.d.ts +6 -6
- package/api/v4/enums/OFFER_TYPE.d.ts +6 -6
- package/api/v4/enums/PLAN_STATUS.d.ts +7 -7
- package/api/v4/enums/POI_CATEGORY_GROUP.d.ts +7 -7
- package/api/v4/enums/PRODUCT_TYPE_NAME.d.ts +5 -5
- package/api/v4/enums/PROVIDER_ID.d.ts +7 -7
- package/api/v4/enums/PROVIDER_NAME.d.ts +6 -6
- package/api/v4/enums/QUESTIONS_CATEGORY.d.ts +5 -5
- package/api/v4/enums/REACTION.d.ts +5 -5
- package/api/v4/enums/REACTION_COMMENT.d.ts +4 -4
- package/api/v4/enums/RESPONSE_STATUS.d.ts +8 -8
- package/api/v4/enums/VERIFY_CHANNEL.d.ts +4 -4
- package/api/v4/index.d.ts +100 -99
- package/api/v4/models/Accommodation.d.ts +9 -9
- package/api/v4/models/Booking.d.ts +8 -8
- package/api/v4/models/BookingProduct.d.ts +13 -13
- package/api/v4/models/Business.d.ts +17 -17
- package/api/v4/models/BusinessInfoCategory.d.ts +6 -6
- package/api/v4/models/BusinessNameAddress.d.ts +4 -4
- package/api/v4/models/BusinessSearch.d.ts +7 -7
- package/api/v4/models/BusinessVerify.d.ts +4 -4
- package/api/v4/models/City.d.ts +17 -17
- package/api/v4/models/Companion.d.ts +8 -8
- package/api/v4/models/ConfigList.d.ts +89 -87
- package/api/v4/models/Continent.d.ts +4 -4
- package/api/v4/models/Coordinate.d.ts +4 -4
- package/api/v4/models/Country.d.ts +6 -6
- package/api/v4/models/Device.d.ts +7 -7
- package/api/v4/models/Favorite.d.ts +6 -6
- package/api/v4/models/Feedbacks.d.ts +9 -9
- package/api/v4/models/HourFormat.d.ts +4 -4
- package/api/v4/models/Image.d.ts +7 -7
- package/api/v4/models/ImageOwner.d.ts +4 -4
- package/api/v4/models/Notification.d.ts +8 -8
- package/api/v4/models/NotificationMetaData.d.ts +4 -4
- package/api/v4/models/NotificationSettings.d.ts +6 -6
- package/api/v4/models/NotificationUnseen.d.ts +3 -3
- package/api/v4/models/Offer.d.ts +28 -28
- package/api/v4/models/OfferCustomer.d.ts +6 -6
- package/api/v4/models/OfferProductType.d.ts +7 -7
- package/api/v4/models/Plan.d.ts +9 -9
- package/api/v4/models/Poi.d.ts +34 -34
- package/api/v4/models/PoiCategory.d.ts +7 -7
- package/api/v4/models/PoiCategoryGroup.d.ts +5 -5
- package/api/v4/models/PoiCategoryParent.d.ts +5 -5
- package/api/v4/models/PoiReference.d.ts +10 -10
- package/api/v4/models/PreRegister.d.ts +7 -7
- package/api/v4/models/Question.d.ts +16 -16
- package/api/v4/models/QuestionAnswer.d.ts +7 -7
- package/api/v4/models/Recommendation.d.ts +5 -5
- package/api/v4/models/Step.d.ts +9 -9
- package/api/v4/models/SubAnswer.d.ts +4 -4
- package/api/v4/models/TasteItem.d.ts +8 -8
- package/api/v4/models/TimeFrame.d.ts +4 -4
- package/api/v4/models/Token.d.ts +4 -4
- package/api/v4/models/TokenPayload.d.ts +28 -28
- package/api/v4/models/TokenRefresh.d.ts +5 -5
- package/api/v4/models/TopTen.d.ts +6 -6
- package/api/v4/models/Trip.d.ts +5 -5
- package/api/v4/models/TripProfile.d.ts +13 -13
- package/api/v4/models/TripReference.d.ts +8 -8
- package/api/v4/models/User.d.ts +6 -6
- package/api/v4/models/UserFeedback.d.ts +10 -0
- package/api/v4/models/UserReaction.d.ts +9 -9
- package/api/v4/models/UserReservation.d.ts +10 -10
- package/api/v4/models/UserResetPassword.d.ts +6 -6
- package/api/v4/requests/CompanionRequest.d.ts +6 -6
- package/api/v4/requests/FeedbackRequest.d.ts +7 -7
- package/api/v4/requests/LoginRequest.d.ts +6 -6
- package/api/v4/requests/OfferAddRequest.d.ts +21 -21
- package/api/v4/requests/OfferRequest.d.ts +8 -8
- package/api/v4/requests/PlanUpdateRequest.d.ts +5 -5
- package/api/v4/requests/PoisRequest.d.ts +17 -17
- package/api/v4/requests/PoisRequestCoordinate.d.ts +7 -7
- package/api/v4/requests/PoisRequestMustTry.d.ts +5 -5
- package/api/v4/requests/PoisRequestName.d.ts +7 -7
- package/api/v4/requests/RegisterRequest.d.ts +11 -11
- package/api/v4/requests/TokenRefreshRequest.d.ts +5 -5
- package/api/v4/requests/UserReactionRequest.d.ts +7 -7
- package/api/v4/requests/UserReservationRequest.d.ts +7 -7
- package/api/v4/requests/UserUpdateRequest.d.ts +7 -7
- package/api/v4/responses/DataPayload.d.ts +5 -5
- package/api/v4/responses/DeleteUpdateResponse.d.ts +3 -3
- package/api/v4/responses/ErrorResponse.d.ts +7 -7
- package/api/v4/responses/Pagination.d.ts +7 -7
- package/api/v4/responses/SuccessResponse.d.ts +10 -10
- package/helper/index.d.ts +46 -46
- 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/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 +40 -40
- 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 +4 -4
- 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/v4/models/Step.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Poi } from './Poi';
|
|
2
|
-
export
|
|
3
|
-
alternatives: number[];
|
|
4
|
-
id: number;
|
|
5
|
-
order: number;
|
|
6
|
-
poi: Poi;
|
|
7
|
-
score: number | null;
|
|
8
|
-
scoreDetails: number[];
|
|
9
|
-
};
|
|
1
|
+
import { Poi } from './Poi';
|
|
2
|
+
export type Step = {
|
|
3
|
+
alternatives: number[];
|
|
4
|
+
id: number;
|
|
5
|
+
order: number;
|
|
6
|
+
poi: Poi;
|
|
7
|
+
score: number | null;
|
|
8
|
+
scoreDetails: number[];
|
|
9
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export
|
|
2
|
-
id: number;
|
|
3
|
-
name: string;
|
|
4
|
-
};
|
|
1
|
+
export type SubAnswer = {
|
|
2
|
+
id: number;
|
|
3
|
+
name: string;
|
|
4
|
+
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Image } from './Image';
|
|
2
|
-
export
|
|
3
|
-
id: number;
|
|
4
|
-
name: string;
|
|
5
|
-
poiCount: number | null;
|
|
6
|
-
description: string | null;
|
|
7
|
-
image: Image;
|
|
8
|
-
};
|
|
1
|
+
import { Image } from './Image';
|
|
2
|
+
export 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
|
-
export
|
|
2
|
-
start: string;
|
|
3
|
-
end: string;
|
|
4
|
-
};
|
|
1
|
+
export type TimeFrame = {
|
|
2
|
+
start: string;
|
|
3
|
+
end: string;
|
|
4
|
+
};
|
package/api/v4/models/Token.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TokenRefresh } from './TokenRefresh';
|
|
2
|
-
export
|
|
3
|
-
refreshToken: string;
|
|
4
|
-
};
|
|
1
|
+
import { TokenRefresh } from './TokenRefresh';
|
|
2
|
+
export type Token = TokenRefresh & {
|
|
3
|
+
refreshToken: string;
|
|
4
|
+
};
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
export
|
|
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
|
+
export 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,5 +1,5 @@
|
|
|
1
|
-
export
|
|
2
|
-
idToken: string;
|
|
3
|
-
expiresIn: number;
|
|
4
|
-
tokenType: string;
|
|
5
|
-
};
|
|
1
|
+
export 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
|
|
4
|
-
category: PoiCategory;
|
|
5
|
-
topTenPoi: Poi[];
|
|
6
|
-
};
|
|
1
|
+
import { PoiCategory } from './PoiCategory';
|
|
2
|
+
import { Poi } from './Poi';
|
|
3
|
+
export type TopTen = {
|
|
4
|
+
category: PoiCategory;
|
|
5
|
+
topTenPoi: Poi[];
|
|
6
|
+
};
|
package/api/v4/models/Trip.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Plan } from './Plan';
|
|
2
|
-
import { TripReference } from './TripReference';
|
|
3
|
-
export
|
|
4
|
-
plans: Plan[];
|
|
5
|
-
};
|
|
1
|
+
import { Plan } from './Plan';
|
|
2
|
+
import { TripReference } from './TripReference';
|
|
3
|
+
export type Trip = TripReference & {
|
|
4
|
+
plans: Plan[];
|
|
5
|
+
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { Accommodation } from './Accommodation';
|
|
2
|
-
export
|
|
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
|
+
import { Accommodation } from './Accommodation';
|
|
2
|
+
export 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 { TripProfile } from './TripProfile';
|
|
2
|
-
import { City } from './City';
|
|
3
|
-
export
|
|
4
|
-
id: number;
|
|
5
|
-
tripHash: string;
|
|
6
|
-
tripProfile: TripProfile;
|
|
7
|
-
city: City;
|
|
8
|
-
};
|
|
1
|
+
import { TripProfile } from './TripProfile';
|
|
2
|
+
import { City } from './City';
|
|
3
|
+
export type TripReference = {
|
|
4
|
+
id: number;
|
|
5
|
+
tripHash: string;
|
|
6
|
+
tripProfile: TripProfile;
|
|
7
|
+
city: City;
|
|
8
|
+
};
|
package/api/v4/models/User.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { UserResetPassword } from './UserResetPassword';
|
|
2
|
-
export
|
|
3
|
-
dateOfBirth: string | null;
|
|
4
|
-
answers: number[];
|
|
5
|
-
businessId: number | null;
|
|
6
|
-
};
|
|
1
|
+
import { UserResetPassword } from './UserResetPassword';
|
|
2
|
+
export type User = UserResetPassword & {
|
|
3
|
+
dateOfBirth: string | null;
|
|
4
|
+
answers: number[];
|
|
5
|
+
businessId: number | null;
|
|
6
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { REACTION } from '../enums/REACTION';
|
|
2
|
-
export
|
|
3
|
-
id: number;
|
|
4
|
-
poiId: number;
|
|
5
|
-
stepId: number | null;
|
|
6
|
-
tripHash: string | null;
|
|
7
|
-
reaction: REACTION;
|
|
8
|
-
comment: string;
|
|
9
|
-
};
|
|
1
|
+
import { REACTION } from '../enums/REACTION';
|
|
2
|
+
export type UserReaction = {
|
|
3
|
+
id: number;
|
|
4
|
+
poiId: number;
|
|
5
|
+
stepId: number | null;
|
|
6
|
+
tripHash: string | null;
|
|
7
|
+
reaction: REACTION;
|
|
8
|
+
comment: string;
|
|
9
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export
|
|
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
|
-
};
|
|
1
|
+
export 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
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export
|
|
2
|
-
id: number;
|
|
3
|
-
email: string;
|
|
4
|
-
firstName: string;
|
|
5
|
-
lastName: string;
|
|
6
|
-
};
|
|
1
|
+
export type UserResetPassword = {
|
|
2
|
+
id: number;
|
|
3
|
+
email: string;
|
|
4
|
+
firstName: string;
|
|
5
|
+
lastName: string;
|
|
6
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export
|
|
2
|
-
title: string;
|
|
3
|
-
name: string;
|
|
4
|
-
answers?: number[];
|
|
5
|
-
age: number;
|
|
6
|
-
};
|
|
1
|
+
export type CompanionRequest = {
|
|
2
|
+
title: string;
|
|
3
|
+
name: string;
|
|
4
|
+
answers?: number[];
|
|
5
|
+
age: number;
|
|
6
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export
|
|
2
|
-
subjectType: 'main' | 'poi';
|
|
3
|
-
subjectId: number;
|
|
4
|
-
desc: string;
|
|
5
|
-
tripHash?: string;
|
|
6
|
-
poiId?: number;
|
|
7
|
-
};
|
|
1
|
+
export type FeedbackRequest = {
|
|
2
|
+
subjectType: 'main' | 'poi';
|
|
3
|
+
subjectId: number;
|
|
4
|
+
desc: string;
|
|
5
|
+
tripHash?: string;
|
|
6
|
+
poiId?: number;
|
|
7
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Device } from '../models/Device';
|
|
2
|
-
export
|
|
3
|
-
email: string;
|
|
4
|
-
password: string;
|
|
5
|
-
device?: Device;
|
|
6
|
-
};
|
|
1
|
+
import { Device } from '../models/Device';
|
|
2
|
+
export type LoginRequest = {
|
|
3
|
+
email: string;
|
|
4
|
+
password: string;
|
|
5
|
+
device?: Device;
|
|
6
|
+
};
|
|
@@ -1,21 +1,21 @@
|
|
|
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
|
|
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
|
-
imageUrl?: string;
|
|
17
|
-
productTypeId: number;
|
|
18
|
-
productName?: string;
|
|
19
|
-
offerType: OFFER_TYPE;
|
|
20
|
-
giftName?: string;
|
|
21
|
-
};
|
|
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 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
|
+
imageUrl?: string;
|
|
17
|
+
productTypeId: number;
|
|
18
|
+
productName?: string;
|
|
19
|
+
offerType: OFFER_TYPE;
|
|
20
|
+
giftName?: string;
|
|
21
|
+
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export
|
|
2
|
-
dateFrom: string;
|
|
3
|
-
dateTo: string;
|
|
4
|
-
poiIds?: string;
|
|
5
|
-
boundary?: string;
|
|
6
|
-
typeId?: string;
|
|
7
|
-
excludeOptIn?: number;
|
|
8
|
-
};
|
|
1
|
+
export type OfferRequest = {
|
|
2
|
+
dateFrom: string;
|
|
3
|
+
dateTo: string;
|
|
4
|
+
poiIds?: string;
|
|
5
|
+
boundary?: string;
|
|
6
|
+
typeId?: string;
|
|
7
|
+
excludeOptIn?: number;
|
|
8
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export
|
|
2
|
-
startTime?: string;
|
|
3
|
-
endTime?: string;
|
|
4
|
-
stepOrders?: Array<number>;
|
|
5
|
-
};
|
|
1
|
+
export type PlanUpdateRequest = {
|
|
2
|
+
startTime?: string;
|
|
3
|
+
endTime?: string;
|
|
4
|
+
stepOrders?: Array<number>;
|
|
5
|
+
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
export
|
|
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
|
+
export 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,7 +1,7 @@
|
|
|
1
|
-
export
|
|
2
|
-
poiCategories?: string;
|
|
3
|
-
coordinate?: string;
|
|
4
|
-
distance?: number;
|
|
5
|
-
bounds?: string;
|
|
6
|
-
limit: number;
|
|
7
|
-
};
|
|
1
|
+
export type PoisRequestCoordinate = {
|
|
2
|
+
poiCategories?: string;
|
|
3
|
+
coordinate?: string;
|
|
4
|
+
distance?: number;
|
|
5
|
+
bounds?: string;
|
|
6
|
+
limit: number;
|
|
7
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export
|
|
2
|
-
cityId: number;
|
|
3
|
-
mustTryIds?: string;
|
|
4
|
-
limit: number;
|
|
5
|
-
};
|
|
1
|
+
export type PoisRequestMustTry = {
|
|
2
|
+
cityId: number;
|
|
3
|
+
mustTryIds?: string;
|
|
4
|
+
limit: number;
|
|
5
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export
|
|
2
|
-
cityId?: number;
|
|
3
|
-
search?: string;
|
|
4
|
-
poiCategories?: string;
|
|
5
|
-
limit?: number;
|
|
6
|
-
page?: number;
|
|
7
|
-
};
|
|
1
|
+
export type PoisRequestName = {
|
|
2
|
+
cityId?: number;
|
|
3
|
+
search?: string;
|
|
4
|
+
poiCategories?: string;
|
|
5
|
+
limit?: number;
|
|
6
|
+
page?: number;
|
|
7
|
+
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Device } from '../models/Device';
|
|
2
|
-
export
|
|
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
|
+
import { Device } from '../models/Device';
|
|
2
|
+
export 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,5 +1,5 @@
|
|
|
1
|
-
import { Device } from '../models/Device';
|
|
2
|
-
export
|
|
3
|
-
refreshToken: string;
|
|
4
|
-
device?: Device;
|
|
5
|
-
};
|
|
1
|
+
import { Device } from '../models/Device';
|
|
2
|
+
export type TokenRefreshRequest = {
|
|
3
|
+
refreshToken: string;
|
|
4
|
+
device?: Device;
|
|
5
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { REACTION } from '../enums/REACTION';
|
|
2
|
-
export
|
|
3
|
-
poiId: number;
|
|
4
|
-
stepId?: number;
|
|
5
|
-
reaction: REACTION;
|
|
6
|
-
comment?: string;
|
|
7
|
-
};
|
|
1
|
+
import { REACTION } from '../enums/REACTION';
|
|
2
|
+
export type UserReactionRequest = {
|
|
3
|
+
poiId: number;
|
|
4
|
+
stepId?: number;
|
|
5
|
+
reaction: REACTION;
|
|
6
|
+
comment?: string;
|
|
7
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export
|
|
2
|
-
key: string;
|
|
3
|
-
value: Object;
|
|
4
|
-
provider: string;
|
|
5
|
-
tripHash: string;
|
|
6
|
-
poiId: number;
|
|
7
|
-
};
|
|
1
|
+
export type UserReservationRequest = {
|
|
2
|
+
key: string;
|
|
3
|
+
value: Object;
|
|
4
|
+
provider: string;
|
|
5
|
+
tripHash: string;
|
|
6
|
+
poiId: number;
|
|
7
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export
|
|
2
|
-
firstName?: string;
|
|
3
|
-
lastName?: string;
|
|
4
|
-
dateOfBirth?: string;
|
|
5
|
-
answers?: number[];
|
|
6
|
-
password?: string;
|
|
7
|
-
};
|
|
1
|
+
export 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
|
|
3
|
-
data: T;
|
|
4
|
-
pagination?: Pagination;
|
|
5
|
-
};
|
|
1
|
+
import { Pagination } from './Pagination';
|
|
2
|
+
export type DataPayload<T> = {
|
|
3
|
+
data: T;
|
|
4
|
+
pagination?: Pagination;
|
|
5
|
+
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export
|
|
2
|
-
updated: boolean;
|
|
3
|
-
};
|
|
1
|
+
export type DeleteUpdateResponse = {
|
|
2
|
+
updated: boolean;
|
|
3
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { RESPONSE_STATUS } from '../enums/RESPONSE_STATUS';
|
|
2
|
-
export
|
|
3
|
-
status: RESPONSE_STATUS;
|
|
4
|
-
success: boolean;
|
|
5
|
-
message: string;
|
|
6
|
-
UUID: string;
|
|
7
|
-
};
|
|
1
|
+
import { RESPONSE_STATUS } from '../enums/RESPONSE_STATUS';
|
|
2
|
+
export type ErrorResponse = {
|
|
3
|
+
status: RESPONSE_STATUS;
|
|
4
|
+
success: boolean;
|
|
5
|
+
message: string;
|
|
6
|
+
UUID: string;
|
|
7
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export
|
|
2
|
-
total: number;
|
|
3
|
-
perPage: number;
|
|
4
|
-
totalPages: number;
|
|
5
|
-
currentPage: number;
|
|
6
|
-
count: number;
|
|
7
|
-
};
|
|
1
|
+
export type Pagination = {
|
|
2
|
+
total: number;
|
|
3
|
+
perPage: number;
|
|
4
|
+
totalPages: number;
|
|
5
|
+
currentPage: number;
|
|
6
|
+
count: number;
|
|
7
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { RESPONSE_STATUS } from '../enums/RESPONSE_STATUS';
|
|
2
|
-
import { Pagination } from './Pagination';
|
|
3
|
-
export
|
|
4
|
-
status: RESPONSE_STATUS;
|
|
5
|
-
success: boolean;
|
|
6
|
-
message: string;
|
|
7
|
-
UUID: string;
|
|
8
|
-
data: T;
|
|
9
|
-
pagination?: Pagination;
|
|
10
|
-
};
|
|
1
|
+
import { RESPONSE_STATUS } from '../enums/RESPONSE_STATUS';
|
|
2
|
+
import { Pagination } from './Pagination';
|
|
3
|
+
export type SuccessResponse<T> = {
|
|
4
|
+
status: RESPONSE_STATUS;
|
|
5
|
+
success: boolean;
|
|
6
|
+
message: string;
|
|
7
|
+
UUID: string;
|
|
8
|
+
data: T;
|
|
9
|
+
pagination?: Pagination;
|
|
10
|
+
};
|