@tripian/model 2.0.0 → 4.1.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.
- package/api/v3/enums/BOOKING_PRODUCT_INFO.d.ts +1 -2
- package/api/v3/enums/POI_CATEGORY_GROUP.d.ts +1 -2
- package/api/v3/enums/PROVIDER_ID.d.ts +3 -3
- package/api/v3/enums/PROVIDER_NAME.d.ts +3 -3
- package/api/v3/enums/REACTION.d.ts +1 -2
- package/api/v3/enums/REACTION_COMMENT.d.ts +1 -2
- package/api/v3/enums/TRIP_PROFILE_PACE.d.ts +1 -2
- package/api/v3/index.d.ts +69 -70
- package/api/v3/models/Accommodation.d.ts +7 -0
- package/api/v3/models/Booking.d.ts +6 -0
- package/api/v3/models/{IBookingProduct.d.ts → BookingProduct.d.ts} +2 -3
- package/api/v3/models/City.d.ts +15 -0
- package/api/v3/models/{ICompanion.d.ts → Companion.d.ts} +2 -3
- package/api/v3/models/Continent.d.ts +3 -0
- package/api/v3/models/Coordinate.d.ts +4 -0
- package/api/v3/models/Country.d.ts +6 -0
- package/api/v3/models/{IFavorite.d.ts → Favorite.d.ts} +2 -3
- package/api/v3/models/HourFormat.d.ts +4 -0
- package/api/v3/models/Image.d.ts +7 -0
- package/api/v3/models/{IImageOwner.d.ts → ImageOwner.d.ts} +2 -3
- package/api/v3/models/Option.d.ts +6 -0
- package/api/v3/models/{IPlan.d.ts → Plan.d.ts} +4 -5
- package/api/v3/models/{IPoi.d.ts → Poi.d.ts} +14 -15
- package/api/v3/models/PoiCategory.d.ts +7 -0
- package/api/v3/models/PoiCategoryGroup.d.ts +5 -0
- package/api/v3/models/PoiCategoryParent.d.ts +4 -0
- package/api/v3/models/PoiHours.d.ts +4 -0
- package/api/v3/models/PoiReference.d.ts +10 -0
- package/api/v3/models/{IQuestion.d.ts → Question.d.ts} +4 -5
- package/api/v3/models/Recommendation.d.ts +5 -0
- package/api/v3/models/Step.d.ts +10 -0
- package/api/v3/models/StepHours.d.ts +4 -0
- package/api/v3/models/SubOption.d.ts +4 -0
- package/api/v3/models/TasteItem.d.ts +7 -0
- package/api/v3/models/{ITasteItemImage.d.ts → TasteItemImage.d.ts} +2 -3
- package/api/v3/models/Token.d.ts +4 -0
- package/api/v3/models/{ITokenPayload.d.ts → TokenPayload.d.ts} +2 -3
- package/api/v3/models/{ITokenRefresh.d.ts → TokenRefresh.d.ts} +2 -3
- package/api/v3/models/TopTen.d.ts +6 -0
- package/api/v3/models/Trip.d.ts +5 -0
- package/api/v3/models/{ITripProfile.d.ts → TripProfile.d.ts} +4 -5
- package/api/v3/models/TripReference.d.ts +8 -0
- package/api/v3/models/User.d.ts +8 -0
- package/api/v3/models/UserProfile.d.ts +4 -0
- package/api/v3/models/{IUserReaction.d.ts → UserReaction.d.ts} +4 -5
- package/api/v3/models/{IUserReservation.d.ts → UserReservation.d.ts} +2 -3
- package/api/v3/requests/{ICompanionRequest.d.ts → CompanionRequest.d.ts} +2 -3
- package/api/v3/requests/{IDevice.d.ts → Device.d.ts} +2 -3
- package/api/v3/requests/FavoriteRequest.d.ts +4 -0
- package/api/v3/requests/FavoriteUpdateRequest.d.ts +4 -0
- package/api/v3/requests/LoginRequestEmail.d.ts +6 -0
- package/api/v3/requests/LoginRequestTripHash.d.ts +5 -0
- package/api/v3/requests/LoginRequestUsername.d.ts +5 -0
- package/api/v3/requests/{IPlanUpdateRequest.d.ts → PlanUpdateRequest.d.ts} +2 -3
- package/api/v3/requests/{IPoisRequest.d.ts → PoisRequest.d.ts} +2 -3
- package/api/v3/requests/PoisRequestCoordinate.d.ts +8 -0
- package/api/v3/requests/PoisRequestMustTry.d.ts +5 -0
- package/api/v3/requests/{IPoisRequestName.d.ts → PoisRequestName.d.ts} +2 -3
- package/api/v3/requests/{IRecommendationRequest.d.ts → RecommendationRequest.d.ts} +3 -4
- package/api/v3/requests/RegisterRequestEmail.d.ts +8 -0
- package/api/v3/requests/RegisterRequestUsername.d.ts +7 -0
- package/api/v3/requests/{IStepRequest.d.ts → StepRequest.d.ts} +2 -3
- package/api/v3/requests/StepUpdateRequest.d.ts +4 -0
- package/api/v3/requests/TokenRefreshRequest.d.ts +3 -0
- package/api/v3/requests/UserProfileRequest.d.ts +4 -0
- package/api/v3/requests/UserReactionRequest.d.ts +8 -0
- package/api/v3/requests/{IUserReservationRequest.d.ts → UserReservationRequest.d.ts} +2 -3
- package/api/v3/requests/UserUpdateRequest.d.ts +7 -0
- package/api/v3/responses/DataPayload.d.ts +5 -0
- package/api/v3/responses/{IErrorResponse.d.ts → ErrorResponse.d.ts} +2 -3
- package/api/v3/responses/Pagination.d.ts +9 -0
- package/api/v3/responses/PaginationLinks.d.ts +4 -0
- package/api/v3/responses/SuccessResponse.d.ts +8 -0
- package/helper/index.d.ts +28 -29
- package/helper/plural.d.ts +1 -2
- package/index.d.ts +2 -3
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/providers/bb/ACTIVITY_THEMES.d.ts +14 -0
- package/providers/bb/Activity.d.ts +11 -0
- package/providers/bb/ActivityInfo.d.ts +16 -0
- package/providers/bb/ActivityInfoImage.d.ts +7 -0
- package/providers/bb/ActivityInfoLocation.d.ts +4 -0
- package/providers/bb/ActivityPoint.d.ts +9 -0
- package/providers/bb/AuthorizationResponse.d.ts +48 -0
- package/providers/bb/Offer.d.ts +58 -0
- package/providers/bb/OfferPoint.d.ts +6 -0
- package/providers/bb/Product.d.ts +19 -0
- package/providers/bb/SearchActivitiesResponse.d.ts +20 -0
- package/providers/bb/index.d.ts +11 -0
- package/providers/glx/Booking.d.ts +16 -0
- package/providers/glx/{IBookingContact.d.ts → BookingContact.d.ts} +2 -3
- package/providers/glx/BookingInformation.d.ts +4 -0
- package/providers/glx/{IBookingLocation.d.ts → BookingLocation.d.ts} +2 -3
- package/providers/glx/{IBookingPrice.d.ts → BookingPrice.d.ts} +2 -3
- package/providers/glx/{IBookingRef.d.ts → BookingRef.d.ts} +9 -10
- package/providers/glx/BookingSearchResult.d.ts +10 -0
- package/providers/glx/BookingSearchResultAggregation.d.ts +18 -0
- package/providers/glx/BookingSubCategory.d.ts +4 -0
- package/providers/glx/BookingSupplier.d.ts +4 -0
- package/providers/glx/Catalog.d.ts +4 -0
- package/providers/glx/{ICatalogGroup.d.ts → CatalogGroup.d.ts} +4 -5
- package/providers/glx/{IToken.d.ts → Token.d.ts} +2 -3
- package/providers/glx/{ITourRating.d.ts → TourRating.d.ts} +2 -3
- package/providers/glx/{ITourReview.d.ts → TourReview.d.ts} +2 -3
- package/providers/glx/index.d.ts +15 -16
- package/providers/gyg/CatalogGroup.d.ts +5 -0
- package/providers/gyg/Categories.d.ts +8 -0
- package/providers/gyg/{ICategory.d.ts → Category.d.ts} +2 -3
- package/providers/gyg/{IMetaData.d.ts → MetaData.d.ts} +2 -3
- package/providers/gyg/{IPaymentConfiguration.d.ts → PaymentConfiguration.d.ts} +2 -3
- package/providers/gyg/PaymentConfigurations.d.ts +8 -0
- package/providers/gyg/{ITour.d.ts → Tour.d.ts} +14 -15
- package/providers/gyg/TourAvailabilities.d.ts +8 -0
- package/providers/gyg/{ITourAvailability.d.ts → TourAvailability.d.ts} +2 -3
- package/providers/gyg/{ITourBooking.d.ts → TourBooking.d.ts} +2 -3
- package/providers/gyg/{ITourBookingCart.d.ts → TourBookingCart.d.ts} +14 -6
- package/providers/gyg/{ITourBookingCartRequest.d.ts → TourBookingCartRequest.d.ts} +3 -4
- package/providers/gyg/TourBookingCartWithDetails.d.ts +6 -0
- package/providers/gyg/TourBookingCarts.d.ts +6 -0
- package/providers/gyg/{ITourBookingInfo.d.ts → TourBookingInfo.d.ts} +2 -3
- package/providers/gyg/TourBookingInfos.d.ts +8 -0
- package/providers/gyg/{ITourBookingRequest.d.ts → TourBookingRequest.d.ts} +11 -10
- package/providers/gyg/TourBookings.d.ts +8 -0
- package/providers/gyg/{ITourCategories.d.ts → TourCategories.d.ts} +2 -3
- package/providers/gyg/TourCoordinates.d.ts +4 -0
- package/providers/gyg/TourDateRange.d.ts +4 -0
- package/providers/gyg/TourDurations.d.ts +4 -0
- package/providers/gyg/TourLocations.d.ts +13 -0
- package/providers/gyg/{ITourOption.d.ts → TourOption.d.ts} +6 -7
- package/providers/gyg/TourOptionDetails.d.ts +8 -0
- package/providers/gyg/{ITourOptionPricing.d.ts → TourOptionPricing.d.ts} +2 -3
- package/providers/gyg/TourOptionPricings.d.ts +8 -0
- package/providers/gyg/TourOptions.d.ts +8 -0
- package/providers/gyg/{ITourPictures.d.ts → TourPictures.d.ts} +2 -3
- package/providers/gyg/{ITourPrice.d.ts → TourPrice.d.ts} +2 -3
- package/providers/gyg/TourReservationDetails.d.ts +6 -0
- package/providers/gyg/TourShoppingFormData.d.ts +20 -0
- package/providers/gyg/{ITourViewport.d.ts → TourViewport.d.ts} +2 -3
- package/providers/gyg/Tours.d.ts +8 -0
- package/providers/gyg/index.d.ts +33 -30
- package/providers/index.d.ts +3 -2
- package/providers/yelp/{IBusiness.d.ts → Business.d.ts} +2 -3
- package/providers/yelp/{IHold.d.ts → Hold.d.ts} +2 -3
- package/providers/yelp/{IHoldRequest.d.ts → HoldRequest.d.ts} +2 -3
- package/providers/yelp/Opening.d.ts +5 -0
- package/providers/yelp/OpeningTime.d.ts +4 -0
- package/providers/yelp/Openings.d.ts +4 -0
- package/providers/yelp/{IOpeningsRequest.d.ts → OpeningsRequest.d.ts} +2 -3
- package/providers/yelp/{IReservation.d.ts → Reservation.d.ts} +2 -3
- package/providers/yelp/ReservationInfo.d.ts +8 -0
- package/providers/yelp/{IReservationRequest.d.ts → ReservationRequest.d.ts} +2 -3
- package/providers/yelp/ReservationStatusResponse.d.ts +6 -0
- package/providers/yelp/index.d.ts +10 -11
- package/api/custom/IPoiCategoryGroup.d.ts +0 -6
- package/api/v3/models/IAccommodation.d.ts +0 -8
- package/api/v3/models/IBooking.d.ts +0 -7
- package/api/v3/models/ICity.d.ts +0 -16
- package/api/v3/models/IContinent.d.ts +0 -4
- package/api/v3/models/ICoordinate.d.ts +0 -5
- package/api/v3/models/ICountry.d.ts +0 -7
- package/api/v3/models/IHourFormat.d.ts +0 -5
- package/api/v3/models/IImage.d.ts +0 -8
- package/api/v3/models/IOption.d.ts +0 -7
- package/api/v3/models/IPoiCategory.d.ts +0 -8
- package/api/v3/models/IPoiCategoryParent.d.ts +0 -5
- package/api/v3/models/IPoiHours.d.ts +0 -5
- package/api/v3/models/IPoiReference.d.ts +0 -11
- package/api/v3/models/IRecommendation.d.ts +0 -6
- package/api/v3/models/IStep.d.ts +0 -11
- package/api/v3/models/IStepHours.d.ts +0 -5
- package/api/v3/models/ISubOption.d.ts +0 -5
- package/api/v3/models/ITasteItem.d.ts +0 -8
- package/api/v3/models/IToken.d.ts +0 -5
- package/api/v3/models/ITopTen.d.ts +0 -7
- package/api/v3/models/ITrip.d.ts +0 -6
- package/api/v3/models/ITripReference.d.ts +0 -9
- package/api/v3/models/IUser.d.ts +0 -9
- package/api/v3/models/IUserProfile.d.ts +0 -5
- package/api/v3/requests/IFavoriteRequest.d.ts +0 -5
- package/api/v3/requests/IFavoriteUpdateRequest.d.ts +0 -5
- package/api/v3/requests/ILoginRequestEmail.d.ts +0 -7
- package/api/v3/requests/ILoginRequestTripHash.d.ts +0 -6
- package/api/v3/requests/ILoginRequestUsername.d.ts +0 -6
- package/api/v3/requests/IPoisRequestCoordinate.d.ts +0 -9
- package/api/v3/requests/IPoisRequestMustTry.d.ts +0 -6
- package/api/v3/requests/IRegisterRequestEmail.d.ts +0 -9
- package/api/v3/requests/IRegisterRequestUsername.d.ts +0 -8
- package/api/v3/requests/IStepUpdateRequest.d.ts +0 -5
- package/api/v3/requests/ITokenRefreshRequest.d.ts +0 -4
- package/api/v3/requests/IUserProfileRequest.d.ts +0 -5
- package/api/v3/requests/IUserReactionRequest.d.ts +0 -9
- package/api/v3/requests/IUserUpdateRequest.d.ts +0 -8
- package/api/v3/responses/IDataPayload.d.ts +0 -6
- package/api/v3/responses/IPagination.d.ts +0 -10
- package/api/v3/responses/IPaginationLinks.d.ts +0 -5
- package/api/v3/responses/ISuccessResponse.d.ts +0 -9
- package/providers/glx/IBooking.d.ts +0 -17
- package/providers/glx/IBookingInformation.d.ts +0 -5
- package/providers/glx/IBookingSearchResult.d.ts +0 -11
- package/providers/glx/IBookingSearchResultAggregation.d.ts +0 -18
- package/providers/glx/IBookingSubCategory.d.ts +0 -5
- package/providers/glx/IBookingSupplier.d.ts +0 -5
- package/providers/glx/ICatalog.d.ts +0 -5
- package/providers/gyg/ICatalogGroup.d.ts +0 -6
- package/providers/gyg/ICategories.d.ts +0 -9
- package/providers/gyg/IPaymentConfigurations.d.ts +0 -9
- package/providers/gyg/ITourAvailabilities.d.ts +0 -9
- package/providers/gyg/ITourBookingCarts.d.ts +0 -7
- package/providers/gyg/ITourBookingInfos.d.ts +0 -9
- package/providers/gyg/ITourBookings.d.ts +0 -9
- package/providers/gyg/ITourCoordinates.d.ts +0 -5
- package/providers/gyg/ITourDurations.d.ts +0 -5
- package/providers/gyg/ITourLocations.d.ts +0 -14
- package/providers/gyg/ITourOptionPricings.d.ts +0 -9
- package/providers/gyg/ITourOptions.d.ts +0 -9
- package/providers/gyg/ITours.d.ts +0 -9
- package/providers/gyg/sampleData/categories.d.ts +0 -12
- package/providers/gyg/sampleData/tours-full.d.ts +0 -90
- package/providers/gyg/sampleData/tours.d.ts +0 -111
- package/providers/yelp/IOpening.d.ts +0 -6
- package/providers/yelp/IOpeningTime.d.ts +0 -5
- package/providers/yelp/IOpenings.d.ts +0 -5
- package/providers/yelp/IReservationInfo.d.ts +0 -9
- package/providers/yelp/IReservationStatusResponse.d.ts +0 -7
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
export declare type Hold = {
|
|
2
2
|
cancellation_policy: string;
|
|
3
3
|
credit_card_hold: boolean;
|
|
4
4
|
expires_at: number;
|
|
@@ -7,5 +7,4 @@ interface IHold {
|
|
|
7
7
|
last_cancellation_date: number;
|
|
8
8
|
notes: string;
|
|
9
9
|
reserve_url: string;
|
|
10
|
-
}
|
|
11
|
-
export default IHold;
|
|
10
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
export declare type ReservationRequest = {
|
|
2
2
|
businessId: string;
|
|
3
3
|
date: string;
|
|
4
4
|
time: string;
|
|
@@ -9,5 +9,4 @@ interface IReservationRequest {
|
|
|
9
9
|
lastName: string;
|
|
10
10
|
email: string;
|
|
11
11
|
phone: string;
|
|
12
|
-
}
|
|
13
|
-
export default IReservationRequest;
|
|
12
|
+
};
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
export { Business, Hold, HoldRequest, Openings, OpeningsRequest, OpeningTime, Reservation, ReservationInfo, ReservationRequest, ReservationStatusResponse, };
|
|
1
|
+
export * from './Business';
|
|
2
|
+
export * from './Hold';
|
|
3
|
+
export * from './HoldRequest';
|
|
4
|
+
export * from './Openings';
|
|
5
|
+
export * from './OpeningsRequest';
|
|
6
|
+
export * from './OpeningTime';
|
|
7
|
+
export * from './Reservation';
|
|
8
|
+
export * from './ReservationInfo';
|
|
9
|
+
export * from './ReservationRequest';
|
|
10
|
+
export * from './ReservationStatusResponse';
|
package/api/v3/models/ICity.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import ICoordinate from './ICoordinate';
|
|
2
|
-
import ICountry from './ICountry';
|
|
3
|
-
import IImage from './IImage';
|
|
4
|
-
import ITasteItem from './ITasteItem';
|
|
5
|
-
interface ICity {
|
|
6
|
-
boundary: number[];
|
|
7
|
-
coordinate: ICoordinate;
|
|
8
|
-
country: ICountry;
|
|
9
|
-
description: string;
|
|
10
|
-
id: number;
|
|
11
|
-
image: IImage;
|
|
12
|
-
name: string;
|
|
13
|
-
status: boolean;
|
|
14
|
-
tastes: ITasteItem[];
|
|
15
|
-
}
|
|
16
|
-
export default ICity;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import ICoordinate from './ICoordinate';
|
|
2
|
-
import IImage from './IImage';
|
|
3
|
-
import IPoiCategory from './IPoiCategory';
|
|
4
|
-
interface IPoiReference {
|
|
5
|
-
category: IPoiCategory[];
|
|
6
|
-
id: number;
|
|
7
|
-
image: IImage;
|
|
8
|
-
marker_coordinate: ICoordinate;
|
|
9
|
-
name: string;
|
|
10
|
-
}
|
|
11
|
-
export default IPoiReference;
|
package/api/v3/models/IStep.d.ts
DELETED
package/api/v3/models/ITrip.d.ts
DELETED
package/api/v3/models/IUser.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import REACTION from '../enums/REACTION';
|
|
2
|
-
import REACTION_COMMENT from '../enums/REACTION_COMMENT';
|
|
3
|
-
interface IUserReactionRequest {
|
|
4
|
-
comment?: REACTION_COMMENT;
|
|
5
|
-
poi_id: number;
|
|
6
|
-
reaction: REACTION;
|
|
7
|
-
step_id: number;
|
|
8
|
-
}
|
|
9
|
-
export default IUserReactionRequest;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import IBookingRef from './IBookingRef';
|
|
2
|
-
import IBookingInformation from './IBookingInformation';
|
|
3
|
-
import IBookingContact from './IBookingContact';
|
|
4
|
-
import IBookingLocation from './IBookingLocation';
|
|
5
|
-
import IBookingSupplier from './IBookingSupplier';
|
|
6
|
-
interface IBooking extends IBookingRef {
|
|
7
|
-
description: string;
|
|
8
|
-
imageUrls: string[];
|
|
9
|
-
information: IBookingInformation[];
|
|
10
|
-
contact: IBookingContact;
|
|
11
|
-
locations: IBookingLocation[];
|
|
12
|
-
supplier: IBookingSupplier;
|
|
13
|
-
termsAndConditions: string | null;
|
|
14
|
-
isWishlisted: any | null;
|
|
15
|
-
disclaimer: any | null;
|
|
16
|
-
}
|
|
17
|
-
export default IBooking;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import IBookingRef from './IBookingRef';
|
|
2
|
-
import IBookingSearchResultAggregation from './IBookingSearchResultAggregation';
|
|
3
|
-
interface IBookingSearchResult {
|
|
4
|
-
aggregation: IBookingSearchResultAggregation;
|
|
5
|
-
items: IBookingRef[];
|
|
6
|
-
skip: number;
|
|
7
|
-
take: number;
|
|
8
|
-
parameters: any;
|
|
9
|
-
total: number;
|
|
10
|
-
}
|
|
11
|
-
export default IBookingSearchResult;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import IBookingPrice from './IBookingPrice';
|
|
2
|
-
interface IBookingSearchResultAggregationCity {
|
|
3
|
-
label: string;
|
|
4
|
-
count: number;
|
|
5
|
-
}
|
|
6
|
-
interface IBookingSearchResultAggregationCategory {
|
|
7
|
-
label: string;
|
|
8
|
-
count: number;
|
|
9
|
-
}
|
|
10
|
-
interface IBookingSearchResultAggregation {
|
|
11
|
-
price: {
|
|
12
|
-
max: IBookingPrice;
|
|
13
|
-
min: IBookingPrice;
|
|
14
|
-
};
|
|
15
|
-
cities: IBookingSearchResultAggregationCity[];
|
|
16
|
-
categories: IBookingSearchResultAggregationCategory[];
|
|
17
|
-
}
|
|
18
|
-
export default IBookingSearchResultAggregation;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import IMetaData from './IMetaData';
|
|
2
|
-
import IPaymentConfiguration from './IPaymentConfiguration';
|
|
3
|
-
interface IPaymentConfigurations {
|
|
4
|
-
metadata: IMetaData;
|
|
5
|
-
data: {
|
|
6
|
-
payment_methods: Array<IPaymentConfiguration>;
|
|
7
|
-
};
|
|
8
|
-
}
|
|
9
|
-
export default IPaymentConfigurations;
|