@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.
- package/api/v3/enums/BOOKING_PRODUCT_INFO.d.ts +3 -4
- package/api/v3/enums/POI_CATEGORY_GROUP.d.ts +7 -8
- package/api/v3/enums/PROVIDER_ID.d.ts +7 -6
- package/api/v3/enums/PROVIDER_NAME.d.ts +7 -6
- package/api/v3/enums/REACTION.d.ts +5 -6
- package/api/v3/enums/REACTION_COMMENT.d.ts +4 -5
- package/api/v3/enums/TRIP_PROFILE_PACE.d.ts +5 -6
- 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} +13 -14
- package/api/v3/models/City.d.ts +15 -0
- package/api/v3/models/{ICompanion.d.ts → Companion.d.ts} +8 -9
- 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} +6 -7
- 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} +5 -6
- package/api/v3/models/Option.d.ts +6 -0
- package/api/v3/models/{IPlan.d.ts → Plan.d.ts} +9 -10
- package/api/v3/models/{IPoi.d.ts → Poi.d.ts} +33 -34
- 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} +10 -11
- 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} +5 -6
- package/api/v3/models/Token.d.ts +4 -0
- package/api/v3/models/{ITokenPayload.d.ts → TokenPayload.d.ts} +13 -14
- package/api/v3/models/{ITokenRefresh.d.ts → TokenRefresh.d.ts} +5 -6
- 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} +14 -15
- 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} +12 -13
- package/api/v3/models/{IUserReservation.d.ts → UserReservation.d.ts} +10 -11
- package/api/v3/requests/{ICompanionRequest.d.ts → CompanionRequest.d.ts} +6 -7
- package/api/v3/requests/{IDevice.d.ts → Device.d.ts} +7 -8
- 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} +5 -6
- package/api/v3/requests/{IPoisRequest.d.ts → PoisRequest.d.ts} +12 -13
- 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} +7 -8
- package/api/v3/requests/{IRecommendationRequest.d.ts → RecommendationRequest.d.ts} +14 -15
- package/api/v3/requests/RegisterRequestEmail.d.ts +8 -0
- package/api/v3/requests/RegisterRequestUsername.d.ts +7 -0
- package/api/v3/requests/StepRequest.d.ts +5 -0
- 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} +7 -8
- 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} +6 -7
- 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 +37 -38
- package/helper/plural.d.ts +1 -2
- package/index.d.ts +4 -5
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/package.json +58 -58
- 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} +7 -8
- package/providers/glx/BookingInformation.d.ts +4 -0
- package/providers/glx/BookingLocation.d.ts +5 -0
- package/providers/glx/{IBookingPrice.d.ts → BookingPrice.d.ts} +23 -24
- package/providers/glx/BookingRef.d.ts +24 -0
- 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} +10 -11
- package/providers/glx/{IToken.d.ts → Token.d.ts} +5 -6
- package/providers/glx/TourRating.d.ts +5 -0
- package/providers/glx/{ITourReview.d.ts → TourReview.d.ts} +6 -7
- 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} +6 -7
- package/providers/gyg/{IMetaData.d.ts → MetaData.d.ts} +15 -16
- package/providers/gyg/{IPaymentConfiguration.d.ts → PaymentConfiguration.d.ts} +8 -9
- package/providers/gyg/PaymentConfigurations.d.ts +8 -0
- package/providers/gyg/{ITour.d.ts → Tour.d.ts} +36 -37
- package/providers/gyg/TourAvailabilities.d.ts +8 -0
- package/providers/gyg/{ITourAvailability.d.ts → TourAvailability.d.ts} +7 -8
- package/providers/gyg/{ITourBooking.d.ts → TourBooking.d.ts} +10 -11
- package/providers/gyg/{ITourBookingCart.d.ts → TourBookingCart.d.ts} +72 -73
- package/providers/gyg/{ITourBookingCartRequest.d.ts → TourBookingCartRequest.d.ts} +49 -50
- package/providers/gyg/TourBookingCarts.d.ts +6 -0
- package/providers/gyg/{ITourBookingInfo.d.ts → TourBookingInfo.d.ts} +37 -38
- package/providers/gyg/TourBookingInfos.d.ts +8 -0
- package/providers/gyg/TourBookingRequest.d.ts +20 -0
- package/providers/gyg/TourBookings.d.ts +8 -0
- package/providers/gyg/TourCategories.d.ts +5 -0
- package/providers/gyg/TourCoordinates.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} +34 -35
- package/providers/gyg/TourOptionDetails.d.ts +8 -0
- package/providers/gyg/{ITourOptionPricing.d.ts → TourOptionPricing.d.ts} +20 -21
- 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} +6 -7
- package/providers/gyg/{ITourPrice.d.ts → TourPrice.d.ts} +11 -12
- package/providers/gyg/TourShoppingFormData.d.ts +20 -0
- package/providers/gyg/{ITourViewport.d.ts → TourViewport.d.ts} +6 -7
- package/providers/gyg/Tours.d.ts +8 -0
- package/providers/gyg/index.d.ts +31 -30
- package/providers/index.d.ts +5 -4
- package/providers/yelp/{IBusiness.d.ts → Business.d.ts} +31 -32
- package/providers/yelp/{IHold.d.ts → Hold.d.ts} +10 -11
- package/providers/yelp/{IHoldRequest.d.ts → HoldRequest.d.ts} +7 -8
- 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} +6 -7
- package/providers/yelp/{IReservation.d.ts → Reservation.d.ts} +5 -6
- package/providers/yelp/ReservationInfo.d.ts +8 -0
- package/providers/yelp/{IReservationRequest.d.ts → ReservationRequest.d.ts} +12 -13
- 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/IStepRequest.d.ts +0 -6
- 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/IBookingLocation.d.ts +0 -6
- package/providers/glx/IBookingRef.d.ts +0 -25
- 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/glx/ITourRating.d.ts +0 -6
- 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/ITourBookingRequest.d.ts +0 -25
- package/providers/gyg/ITourBookings.d.ts +0 -9
- package/providers/gyg/ITourCategories.d.ts +0 -6
- 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
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
export declare type AuthorizationResponse = {
|
|
2
|
+
settings: {
|
|
3
|
+
b2CPaymentWays: any[];
|
|
4
|
+
b2CPaymentMethods: number[];
|
|
5
|
+
name: string;
|
|
6
|
+
googleEnabled: boolean;
|
|
7
|
+
systemCurrency: string;
|
|
8
|
+
siteId: string;
|
|
9
|
+
salesId: number;
|
|
10
|
+
b2CId: number;
|
|
11
|
+
organizationId: number;
|
|
12
|
+
parentFirstLevelTOId: number;
|
|
13
|
+
managerName: string;
|
|
14
|
+
managerId: number;
|
|
15
|
+
managerNotification: boolean;
|
|
16
|
+
showCustomerCancellation: boolean;
|
|
17
|
+
withLogin: boolean;
|
|
18
|
+
allowMultiroomBooking: boolean;
|
|
19
|
+
showVisa: boolean;
|
|
20
|
+
showSupplierColumn: boolean;
|
|
21
|
+
showSupplierLogo: boolean;
|
|
22
|
+
showHotelNameColumn: boolean;
|
|
23
|
+
notRestrictChildrenCount: boolean;
|
|
24
|
+
allowSameTouristNames: boolean;
|
|
25
|
+
signUpAvailability: boolean;
|
|
26
|
+
signInAvailability: boolean;
|
|
27
|
+
signUpRequired: boolean;
|
|
28
|
+
isAutoPassword: boolean;
|
|
29
|
+
emaiValidation: boolean;
|
|
30
|
+
isInlineWindow: boolean;
|
|
31
|
+
sliderEffect: boolean;
|
|
32
|
+
allowFlexibleDatesSearch: boolean;
|
|
33
|
+
allowOnlyLatinForTuristName: boolean;
|
|
34
|
+
loyaltyEnabled: boolean;
|
|
35
|
+
voucherMode: string;
|
|
36
|
+
themeEnabled: boolean;
|
|
37
|
+
themeName: string;
|
|
38
|
+
showCompanyNameOnBankReceipt: boolean;
|
|
39
|
+
registrationPendingStatus: boolean;
|
|
40
|
+
notAllowSearchBeforeLogin: boolean;
|
|
41
|
+
showUpSell: boolean;
|
|
42
|
+
manuallyEnterLocations: boolean;
|
|
43
|
+
citiesAndRegionsInSeparateBlocks: boolean;
|
|
44
|
+
citiesAndRegionsInSameDropdown: boolean;
|
|
45
|
+
guestMemberLevelId: number;
|
|
46
|
+
};
|
|
47
|
+
token: string;
|
|
48
|
+
};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { OfferPoint } from './OfferPoint';
|
|
2
|
+
export declare type Offer = {
|
|
3
|
+
offerKey: string;
|
|
4
|
+
taxesAndFeesIncluded: boolean;
|
|
5
|
+
salesTerms: [
|
|
6
|
+
{
|
|
7
|
+
type: string;
|
|
8
|
+
price: {
|
|
9
|
+
currency: string;
|
|
10
|
+
amount: number;
|
|
11
|
+
commission: {
|
|
12
|
+
currency: string;
|
|
13
|
+
amount: number;
|
|
14
|
+
percent: number;
|
|
15
|
+
};
|
|
16
|
+
taxesAndFees: [];
|
|
17
|
+
};
|
|
18
|
+
originalSupplierCurrency: string;
|
|
19
|
+
promoCodeApplied: boolean;
|
|
20
|
+
}
|
|
21
|
+
];
|
|
22
|
+
available: boolean;
|
|
23
|
+
nonRefundable: boolean;
|
|
24
|
+
date: string;
|
|
25
|
+
duration: number;
|
|
26
|
+
languages: [
|
|
27
|
+
{
|
|
28
|
+
langCode: string;
|
|
29
|
+
type: string;
|
|
30
|
+
}
|
|
31
|
+
];
|
|
32
|
+
startTimes: string[];
|
|
33
|
+
serviceName: string;
|
|
34
|
+
tariffName: string;
|
|
35
|
+
serviceCode: string;
|
|
36
|
+
pickUpPoints: OfferPoint[];
|
|
37
|
+
dropOffPoints: OfferPoint[];
|
|
38
|
+
availableTicketQuantity: [];
|
|
39
|
+
touristsQuantityRestrictions: {
|
|
40
|
+
minTourists: number;
|
|
41
|
+
maxTourists: number;
|
|
42
|
+
};
|
|
43
|
+
priceBreakDowns: [
|
|
44
|
+
{
|
|
45
|
+
touristType: string;
|
|
46
|
+
touristTypeId: number;
|
|
47
|
+
touristTypeName: string;
|
|
48
|
+
quantity: number;
|
|
49
|
+
price: {
|
|
50
|
+
currency: string;
|
|
51
|
+
amount: number;
|
|
52
|
+
originalCurrency: string;
|
|
53
|
+
originalAmount: number;
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
];
|
|
57
|
+
serviceDescription?: string;
|
|
58
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ACTIVITY_THEMES } from './ACTIVITY_THEMES';
|
|
2
|
+
import { Offer } from './Offer';
|
|
3
|
+
export declare type Product = {
|
|
4
|
+
info: {
|
|
5
|
+
id: number;
|
|
6
|
+
name: string;
|
|
7
|
+
};
|
|
8
|
+
shortDescription: string;
|
|
9
|
+
fullDescription: string;
|
|
10
|
+
themes: ACTIVITY_THEMES[];
|
|
11
|
+
supplierId: string;
|
|
12
|
+
activityCompanyName: string;
|
|
13
|
+
mainImage: string;
|
|
14
|
+
productType: string;
|
|
15
|
+
type: string;
|
|
16
|
+
transportationType: string;
|
|
17
|
+
offers: Offer[];
|
|
18
|
+
recommended: boolean;
|
|
19
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ACTIVITY_THEMES } from './ACTIVITY_THEMES';
|
|
2
|
+
import { Product } from './Product';
|
|
3
|
+
export declare type SearchActivitiesResponse = {
|
|
4
|
+
searchKey: string;
|
|
5
|
+
offersCount: number;
|
|
6
|
+
processed: boolean;
|
|
7
|
+
activityFilters: {
|
|
8
|
+
priceFrom: number;
|
|
9
|
+
priceTo: number;
|
|
10
|
+
activityNames: string[];
|
|
11
|
+
languages: string[];
|
|
12
|
+
dates: string[];
|
|
13
|
+
startTimeFrom: string;
|
|
14
|
+
startTimeTo: string;
|
|
15
|
+
durationFrom: number;
|
|
16
|
+
durationTo: number;
|
|
17
|
+
themes: ACTIVITY_THEMES[];
|
|
18
|
+
};
|
|
19
|
+
products: Product[];
|
|
20
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export * from './ACTIVITY_THEMES';
|
|
2
|
+
export * from './Activity';
|
|
3
|
+
export * from './ActivityInfo';
|
|
4
|
+
export * from './ActivityInfoImage';
|
|
5
|
+
export * from './ActivityInfoLocation';
|
|
6
|
+
export * from './ActivityPoint';
|
|
7
|
+
export * from './AuthorizationResponse';
|
|
8
|
+
export * from './Offer';
|
|
9
|
+
export * from './OfferPoint';
|
|
10
|
+
export * from './Product';
|
|
11
|
+
export * from './SearchActivitiesResponse';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { BookingRef } from './BookingRef';
|
|
2
|
+
import { BookingInformation } from './BookingInformation';
|
|
3
|
+
import { BookingContact } from './BookingContact';
|
|
4
|
+
import { BookingLocation } from './BookingLocation';
|
|
5
|
+
import { BookingSupplier } from './BookingSupplier';
|
|
6
|
+
export declare type Booking = BookingRef & {
|
|
7
|
+
description: string;
|
|
8
|
+
imageUrls: string[];
|
|
9
|
+
information: BookingInformation[];
|
|
10
|
+
contact: BookingContact;
|
|
11
|
+
locations: BookingLocation[];
|
|
12
|
+
supplier: BookingSupplier;
|
|
13
|
+
termsAndConditions: string | null;
|
|
14
|
+
isWishlisted: any | null;
|
|
15
|
+
disclaimer: any | null;
|
|
16
|
+
};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
name: string;
|
|
3
|
-
email: string | null;
|
|
4
|
-
website: string | null;
|
|
5
|
-
address: string | null;
|
|
6
|
-
phones: string | null;
|
|
7
|
-
}
|
|
8
|
-
export default IBookingContact;
|
|
1
|
+
export declare type BookingContact = {
|
|
2
|
+
name: string;
|
|
3
|
+
email: string | null;
|
|
4
|
+
website: string | null;
|
|
5
|
+
address: string | null;
|
|
6
|
+
phones: string | null;
|
|
7
|
+
};
|
|
@@ -1,24 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
value: number;
|
|
3
|
-
baseCurrency: string;
|
|
4
|
-
exchangeEnabled: boolean;
|
|
5
|
-
exchangeRates: {
|
|
6
|
-
aed: number;
|
|
7
|
-
aud: number;
|
|
8
|
-
cad: number;
|
|
9
|
-
chf: number;
|
|
10
|
-
dkk: number;
|
|
11
|
-
eur: number;
|
|
12
|
-
gbp: number;
|
|
13
|
-
hkd: number;
|
|
14
|
-
huf: number;
|
|
15
|
-
jpy: number;
|
|
16
|
-
nok: number;
|
|
17
|
-
pln: number;
|
|
18
|
-
sek: number;
|
|
19
|
-
sgd: number;
|
|
20
|
-
usd: number;
|
|
21
|
-
glx: number;
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
export default IBookingPrice;
|
|
1
|
+
export declare type BookingPrice = {
|
|
2
|
+
value: number;
|
|
3
|
+
baseCurrency: string;
|
|
4
|
+
exchangeEnabled: boolean;
|
|
5
|
+
exchangeRates: {
|
|
6
|
+
aed: number;
|
|
7
|
+
aud: number;
|
|
8
|
+
cad: number;
|
|
9
|
+
chf: number;
|
|
10
|
+
dkk: number;
|
|
11
|
+
eur: number;
|
|
12
|
+
gbp: number;
|
|
13
|
+
hkd: number;
|
|
14
|
+
huf: number;
|
|
15
|
+
jpy: number;
|
|
16
|
+
nok: number;
|
|
17
|
+
pln: number;
|
|
18
|
+
sek: number;
|
|
19
|
+
sgd: number;
|
|
20
|
+
usd: number;
|
|
21
|
+
glx: number;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { BookingSubCategory } from './BookingSubCategory';
|
|
2
|
+
import { BookingPrice } from './BookingPrice';
|
|
3
|
+
import { BookingLocation } from './BookingLocation';
|
|
4
|
+
export declare type BookingRef = {
|
|
5
|
+
id: string;
|
|
6
|
+
title: string;
|
|
7
|
+
subTitle: string;
|
|
8
|
+
city: string | null;
|
|
9
|
+
country: string | null;
|
|
10
|
+
thumbnail: string;
|
|
11
|
+
priceStartingAt: BookingPrice;
|
|
12
|
+
minimumEarningValue?: BookingPrice;
|
|
13
|
+
pointsDisclaimer: string;
|
|
14
|
+
categories: string[];
|
|
15
|
+
subCategories: BookingSubCategory[];
|
|
16
|
+
isAvailable: boolean;
|
|
17
|
+
purchaseStrategy: string;
|
|
18
|
+
checkoutStrategy: string;
|
|
19
|
+
geoLocation: BookingLocation | null;
|
|
20
|
+
providerTranslationAttribution: {
|
|
21
|
+
image: string | null;
|
|
22
|
+
link: string | null;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BookingRef } from './BookingRef';
|
|
2
|
+
import { BookingSearchResultAggregation } from './BookingSearchResultAggregation';
|
|
3
|
+
export declare type BookingSearchResult = {
|
|
4
|
+
aggregation: BookingSearchResultAggregation;
|
|
5
|
+
items: BookingRef[];
|
|
6
|
+
skip: number;
|
|
7
|
+
take: number;
|
|
8
|
+
parameters: any;
|
|
9
|
+
total: number;
|
|
10
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { BookingPrice } from './BookingPrice';
|
|
2
|
+
declare type BookingSearchResultAggregationCity = {
|
|
3
|
+
label: string;
|
|
4
|
+
count: number;
|
|
5
|
+
};
|
|
6
|
+
declare type BookingSearchResultAggregationCategory = {
|
|
7
|
+
label: string;
|
|
8
|
+
count: number;
|
|
9
|
+
};
|
|
10
|
+
export declare type BookingSearchResultAggregation = {
|
|
11
|
+
price: {
|
|
12
|
+
max: BookingPrice;
|
|
13
|
+
min: BookingPrice;
|
|
14
|
+
};
|
|
15
|
+
cities: BookingSearchResultAggregationCity[];
|
|
16
|
+
categories: BookingSearchResultAggregationCategory[];
|
|
17
|
+
};
|
|
18
|
+
export {};
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
type: string;
|
|
4
|
-
title: string;
|
|
5
|
-
subTitle: string | null;
|
|
6
|
-
description: string;
|
|
7
|
-
featured: boolean;
|
|
8
|
-
items:
|
|
9
|
-
groupSearch: any | null;
|
|
10
|
-
}
|
|
11
|
-
export default ICatalogGroup;
|
|
1
|
+
import { BookingRef } from './BookingRef';
|
|
2
|
+
export declare type CatalogGroup = {
|
|
3
|
+
type: string;
|
|
4
|
+
title: string;
|
|
5
|
+
subTitle: string | null;
|
|
6
|
+
description: string;
|
|
7
|
+
featured: boolean;
|
|
8
|
+
items: BookingRef[];
|
|
9
|
+
groupSearch: any | null;
|
|
10
|
+
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
created: string;
|
|
3
|
-
expires: string;
|
|
4
|
-
token: string;
|
|
5
|
-
}
|
|
6
|
-
export default IToken;
|
|
1
|
+
export declare type Token = {
|
|
2
|
+
created: string;
|
|
3
|
+
expires: string;
|
|
4
|
+
token: string;
|
|
5
|
+
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
id: string;
|
|
3
|
-
rate: number;
|
|
4
|
-
username: string;
|
|
5
|
-
comment: string;
|
|
6
|
-
}
|
|
7
|
-
export default ITourReview;
|
|
1
|
+
export declare type TourReview = {
|
|
2
|
+
id: string;
|
|
3
|
+
rate: number;
|
|
4
|
+
username: string;
|
|
5
|
+
comment: string;
|
|
6
|
+
};
|
package/providers/glx/index.d.ts
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
export { Token, TourRating, TourReview, BookingContact, BookingInformation, BookingLocation, BookingPrice, BookingSubCategory, BookingSupplier, BookingRef, Booking, BookingSearchResultAggregation, BookingSearchResult, CatalogGroup, Catalog, };
|
|
1
|
+
export * from './Token';
|
|
2
|
+
export * from './TourRating';
|
|
3
|
+
export * from './TourReview';
|
|
4
|
+
export * from './BookingContact';
|
|
5
|
+
export * from './BookingInformation';
|
|
6
|
+
export * from './BookingLocation';
|
|
7
|
+
export * from './BookingPrice';
|
|
8
|
+
export * from './BookingSubCategory';
|
|
9
|
+
export * from './BookingSupplier';
|
|
10
|
+
export * from './BookingRef';
|
|
11
|
+
export * from './Booking';
|
|
12
|
+
export * from './BookingSearchResultAggregation';
|
|
13
|
+
export * from './BookingSearchResult';
|
|
14
|
+
export * from './CatalogGroup';
|
|
15
|
+
export * from './Catalog';
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
category_id: number;
|
|
3
|
-
name: string;
|
|
4
|
-
number_of_tours: number;
|
|
5
|
-
parent_id?: number;
|
|
6
|
-
}
|
|
7
|
-
export default ICategory;
|
|
1
|
+
export declare type Category = {
|
|
2
|
+
category_id: number;
|
|
3
|
+
name: string;
|
|
4
|
+
number_of_tours: number;
|
|
5
|
+
parent_id?: number;
|
|
6
|
+
};
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
descriptor: string;
|
|
3
|
-
method: string;
|
|
4
|
-
date: string;
|
|
5
|
-
status: string;
|
|
6
|
-
query: string;
|
|
7
|
-
availableLanguages: any[];
|
|
8
|
-
exchange: {
|
|
9
|
-
rate: number;
|
|
10
|
-
currency: string;
|
|
11
|
-
};
|
|
12
|
-
totalCount: number;
|
|
13
|
-
limit: number;
|
|
14
|
-
offset: number;
|
|
15
|
-
}
|
|
16
|
-
export default IMetaDatam;
|
|
1
|
+
export declare type MetaData = {
|
|
2
|
+
descriptor: string;
|
|
3
|
+
method: string;
|
|
4
|
+
date: string;
|
|
5
|
+
status: string;
|
|
6
|
+
query: string;
|
|
7
|
+
availableLanguages: any[];
|
|
8
|
+
exchange: {
|
|
9
|
+
rate: number;
|
|
10
|
+
currency: string;
|
|
11
|
+
};
|
|
12
|
+
totalCount: number;
|
|
13
|
+
limit: number;
|
|
14
|
+
offset: number;
|
|
15
|
+
};
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
name: string;
|
|
3
|
-
public_key: string;
|
|
4
|
-
brands: Array<{
|
|
5
|
-
name: string;
|
|
6
|
-
code?: string;
|
|
7
|
-
}>;
|
|
8
|
-
}
|
|
9
|
-
export default IPaymentConfiguration;
|
|
1
|
+
export declare type PaymentConfiguration = {
|
|
2
|
+
name: string;
|
|
3
|
+
public_key: string;
|
|
4
|
+
brands: Array<{
|
|
5
|
+
name: string;
|
|
6
|
+
code?: string;
|
|
7
|
+
}>;
|
|
8
|
+
};
|
|
@@ -1,37 +1,36 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
tour_id: number;
|
|
9
|
-
tour_code: string;
|
|
10
|
-
cond_language: Array<string>;
|
|
11
|
-
title: string;
|
|
12
|
-
abstract: string;
|
|
13
|
-
description?: string;
|
|
14
|
-
is_auto_translation?: boolean;
|
|
15
|
-
is_english_fallback?: boolean;
|
|
16
|
-
additional_information?: string;
|
|
17
|
-
bestseller?: boolean;
|
|
18
|
-
certified: boolean;
|
|
19
|
-
overall_rating: number;
|
|
20
|
-
number_of_ratings: number;
|
|
21
|
-
highlights?: Array<string>;
|
|
22
|
-
inclusions?: string;
|
|
23
|
-
exclusions?: string;
|
|
24
|
-
pictures: Array<
|
|
25
|
-
coordinates:
|
|
26
|
-
price:
|
|
27
|
-
categories: Array<
|
|
28
|
-
locations: Array<
|
|
29
|
-
url: string;
|
|
30
|
-
translations?: Array<string>;
|
|
31
|
-
free_sale?: boolean;
|
|
32
|
-
mobile_voucher?: boolean;
|
|
33
|
-
supplier_id?: number;
|
|
34
|
-
durations: Array<
|
|
35
|
-
cancellation_policy_text?: string;
|
|
36
|
-
}
|
|
37
|
-
export default ITour;
|
|
1
|
+
import { TourDurations } from './TourDurations';
|
|
2
|
+
import { TourCategories } from './TourCategories';
|
|
3
|
+
import { TourCoordinates } from './TourCoordinates';
|
|
4
|
+
import { TourLocations } from './TourLocations';
|
|
5
|
+
import { TourPictures } from './TourPictures';
|
|
6
|
+
import { TourPrice } from './TourPrice';
|
|
7
|
+
export declare type Tour = {
|
|
8
|
+
tour_id: number;
|
|
9
|
+
tour_code: string;
|
|
10
|
+
cond_language: Array<string>;
|
|
11
|
+
title: string;
|
|
12
|
+
abstract: string;
|
|
13
|
+
description?: string;
|
|
14
|
+
is_auto_translation?: boolean;
|
|
15
|
+
is_english_fallback?: boolean;
|
|
16
|
+
additional_information?: string;
|
|
17
|
+
bestseller?: boolean;
|
|
18
|
+
certified: boolean;
|
|
19
|
+
overall_rating: number;
|
|
20
|
+
number_of_ratings: number;
|
|
21
|
+
highlights?: Array<string>;
|
|
22
|
+
inclusions?: string;
|
|
23
|
+
exclusions?: string;
|
|
24
|
+
pictures: Array<TourPictures>;
|
|
25
|
+
coordinates: TourCoordinates;
|
|
26
|
+
price: TourPrice;
|
|
27
|
+
categories: Array<TourCategories>;
|
|
28
|
+
locations: Array<TourLocations>;
|
|
29
|
+
url: string;
|
|
30
|
+
translations?: Array<string>;
|
|
31
|
+
free_sale?: boolean;
|
|
32
|
+
mobile_voucher?: boolean;
|
|
33
|
+
supplier_id?: number;
|
|
34
|
+
durations: Array<TourDurations>;
|
|
35
|
+
cancellation_policy_text?: string;
|
|
36
|
+
};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
start_time: string;
|
|
3
|
-
pricing_id: number;
|
|
4
|
-
vacancies: number;
|
|
5
|
-
discount?: number;
|
|
6
|
-
end_time?: string;
|
|
7
|
-
}
|
|
8
|
-
export default ITourAvailability;
|
|
1
|
+
export declare type TourAvailability = {
|
|
2
|
+
start_time: string;
|
|
3
|
+
pricing_id: number;
|
|
4
|
+
vacancies: number;
|
|
5
|
+
discount?: number;
|
|
6
|
+
end_time?: string;
|
|
7
|
+
};
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
bookings: {
|
|
3
|
-
shopping_cart_id: number;
|
|
4
|
-
shopping_cart_hash: string;
|
|
5
|
-
booking_id: number;
|
|
6
|
-
booking_hash: string;
|
|
7
|
-
status: string;
|
|
8
|
-
return_code: number;
|
|
9
|
-
};
|
|
10
|
-
}
|
|
11
|
-
export default ITourBooking;
|
|
1
|
+
export declare type TourBooking = {
|
|
2
|
+
bookings: {
|
|
3
|
+
shopping_cart_id: number;
|
|
4
|
+
shopping_cart_hash: string;
|
|
5
|
+
booking_id: number;
|
|
6
|
+
booking_hash: string;
|
|
7
|
+
status: string;
|
|
8
|
+
return_code: number;
|
|
9
|
+
};
|
|
10
|
+
};
|