@tripian/model 8.3.0 → 9.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/v4/models/Accommodation.d.ts +1 -1
- package/api/v4/models/Booking.d.ts +1 -1
- package/api/v4/models/BookingProduct.d.ts +1 -1
- package/api/v4/models/Business.d.ts +1 -1
- package/api/v4/models/BusinessInfoCategory.d.ts +1 -1
- package/api/v4/models/BusinessNameAddress.d.ts +1 -1
- package/api/v4/models/BusinessReport.d.ts +2 -2
- package/api/v4/models/BusinessSearch.d.ts +1 -1
- package/api/v4/models/BusinessVerify.d.ts +1 -1
- package/api/v4/models/Campaign.d.ts +3 -3
- package/api/v4/models/CampaignCustomerReport.d.ts +2 -2
- package/api/v4/models/CampaignReport.d.ts +2 -2
- package/api/v4/models/City.d.ts +2 -2
- package/api/v4/models/Companion.d.ts +1 -1
- package/api/v4/models/ConfigList.d.ts +4 -4
- package/api/v4/models/Continent.d.ts +1 -1
- package/api/v4/models/Coordinate.d.ts +1 -1
- package/api/v4/models/Country.d.ts +1 -1
- package/api/v4/models/Coupon.d.ts +1 -1
- package/api/v4/models/CouponApplication.d.ts +5 -5
- package/api/v4/models/Device.d.ts +1 -1
- package/api/v4/models/Favorite.d.ts +1 -1
- package/api/v4/models/Feedbacks.d.ts +2 -2
- package/api/v4/models/HourFormat.d.ts +1 -1
- package/api/v4/models/Image.d.ts +1 -1
- package/api/v4/models/ImageOwner.d.ts +1 -1
- package/api/v4/models/Notification.d.ts +1 -1
- package/api/v4/models/NotificationMetaData.d.ts +1 -1
- package/api/v4/models/NotificationSettings.d.ts +1 -1
- package/api/v4/models/NotificationUnseen.d.ts +1 -1
- package/api/v4/models/Offer.d.ts +1 -1
- package/api/v4/models/OfferCustomer.d.ts +1 -1
- package/api/v4/models/OfferProductType.d.ts +1 -1
- package/api/v4/models/Plan.d.ts +1 -1
- package/api/v4/models/Poi.d.ts +1 -1
- package/api/v4/models/PoiCategory.d.ts +1 -1
- package/api/v4/models/PoiCategoryGroup.d.ts +1 -1
- package/api/v4/models/PoiCategoryParent.d.ts +1 -1
- package/api/v4/models/PoiReference.d.ts +1 -1
- package/api/v4/models/PreRegister.d.ts +1 -1
- package/api/v4/models/Question.d.ts +1 -1
- package/api/v4/models/QuestionAnswer.d.ts +1 -1
- package/api/v4/models/Recommendation.d.ts +1 -1
- package/api/v4/models/Step.d.ts +1 -1
- package/api/v4/models/SubAnswer.d.ts +1 -1
- package/api/v4/models/TasteItem.d.ts +1 -1
- package/api/v4/models/TimeFrame.d.ts +1 -1
- package/api/v4/models/Token.d.ts +1 -1
- package/api/v4/models/TokenPayload.d.ts +1 -1
- package/api/v4/models/TokenRefresh.d.ts +1 -1
- package/api/v4/models/TopTen.d.ts +1 -1
- package/api/v4/models/TourAndTickets.d.ts +1 -1
- package/api/v4/models/Trip.d.ts +1 -1
- package/api/v4/models/TripProfile.d.ts +1 -1
- package/api/v4/models/TripReference.d.ts +1 -1
- package/api/v4/models/User.d.ts +1 -1
- package/api/v4/models/UserFeedback.d.ts +1 -1
- package/api/v4/models/UserReaction.d.ts +1 -1
- package/api/v4/models/UserReservation.d.ts +1 -1
- package/api/v4/models/UserResetPassword.d.ts +1 -1
- package/api/v4/models/VoucherOffer.d.ts +1 -1
- package/api/v4/requests/CompanionRequest.d.ts +1 -1
- package/api/v4/requests/FeedbackRequest.d.ts +1 -1
- package/api/v4/requests/LoginRequest.d.ts +1 -1
- package/api/v4/requests/OfferAddRequest.d.ts +1 -1
- package/api/v4/requests/OfferRequest.d.ts +1 -1
- package/api/v4/requests/PlanUpdateRequest.d.ts +1 -1
- package/api/v4/requests/PoisRequest.d.ts +1 -1
- package/api/v4/requests/PoisRequestCoordinate.d.ts +1 -1
- package/api/v4/requests/PoisRequestMustTry.d.ts +1 -1
- package/api/v4/requests/PoisRequestName.d.ts +1 -1
- package/api/v4/requests/RegisterRequest.d.ts +1 -1
- package/api/v4/requests/TokenRefreshRequest.d.ts +1 -1
- package/api/v4/requests/UserReactionRequest.d.ts +1 -1
- package/api/v4/requests/UserReservationRequest.d.ts +1 -1
- package/api/v4/requests/UserUpdateRequest.d.ts +1 -1
- package/api/v4/requests/VoucherOfferAddRequest.d.ts +1 -1
- package/api/v4/responses/DataPayload.d.ts +1 -1
- package/api/v4/responses/DeleteUpdateResponse.d.ts +1 -1
- package/api/v4/responses/ErrorResponse.d.ts +1 -1
- package/api/v4/responses/Pagination.d.ts +1 -1
- package/api/v4/responses/SuccessResponse.d.ts +1 -1
- package/package.json +1 -1
- package/providers/bb/Activity.d.ts +1 -1
- package/providers/bb/ActivityInfo.d.ts +1 -1
- package/providers/bb/ActivityInfoImage.d.ts +1 -1
- package/providers/bb/ActivityInfoLocation.d.ts +1 -1
- package/providers/bb/ActivityPoint.d.ts +1 -1
- package/providers/bb/AuthorizationResponse.d.ts +1 -1
- package/providers/bb/CatalogGroup.d.ts +1 -1
- package/providers/bb/Offer.d.ts +1 -1
- package/providers/bb/OfferPoint.d.ts +1 -1
- package/providers/bb/Product.d.ts +1 -1
- package/providers/bb/SearchAccommodationResponse.d.ts +5 -5
- package/providers/bb/SearchActivitiesResponse.d.ts +1 -1
- package/providers/bb/SearchCarRentResponse.d.ts +11 -11
- package/providers/gyg/CatalogGroup.d.ts +1 -1
- package/providers/gyg/Categories.d.ts +1 -1
- package/providers/gyg/Category.d.ts +1 -1
- package/providers/gyg/MetaData.d.ts +1 -1
- package/providers/gyg/PaymentConfiguration.d.ts +1 -1
- package/providers/gyg/PaymentConfigurations.d.ts +1 -1
- package/providers/gyg/Tour.d.ts +1 -1
- package/providers/gyg/TourAvailabilities.d.ts +1 -1
- package/providers/gyg/TourAvailability.d.ts +1 -1
- package/providers/gyg/TourBooking.d.ts +1 -1
- package/providers/gyg/TourBookingCart.d.ts +1 -1
- package/providers/gyg/TourBookingCartRequest.d.ts +1 -1
- package/providers/gyg/TourBookingCartWithDetails.d.ts +1 -1
- package/providers/gyg/TourBookingCarts.d.ts +1 -1
- package/providers/gyg/TourBookingInfo.d.ts +1 -1
- package/providers/gyg/TourBookingInfos.d.ts +1 -1
- package/providers/gyg/TourBookingRequest.d.ts +1 -1
- package/providers/gyg/TourBookings.d.ts +1 -1
- package/providers/gyg/TourCategories.d.ts +1 -1
- package/providers/gyg/TourCoordinates.d.ts +1 -1
- package/providers/gyg/TourData.d.ts +1 -1
- package/providers/gyg/TourDataFormPersonsCategory.d.ts +1 -1
- package/providers/gyg/TourDataOption.d.ts +1 -1
- package/providers/gyg/TourDataOptionAvailability.d.ts +1 -1
- package/providers/gyg/TourDateRange.d.ts +1 -1
- package/providers/gyg/TourDurations.d.ts +1 -1
- package/providers/gyg/TourLocations.d.ts +1 -1
- package/providers/gyg/TourOption.d.ts +1 -1
- package/providers/gyg/TourOptionDetails.d.ts +1 -1
- package/providers/gyg/TourOptionPricing.d.ts +1 -1
- package/providers/gyg/TourOptionPricings.d.ts +1 -1
- package/providers/gyg/TourOptions.d.ts +1 -1
- package/providers/gyg/TourPictures.d.ts +1 -1
- package/providers/gyg/TourPrice.d.ts +1 -1
- package/providers/gyg/TourReservationDetails.d.ts +1 -1
- package/providers/gyg/TourShoppingFormData.d.ts +1 -1
- package/providers/gyg/TourViewport.d.ts +1 -1
- package/providers/gyg/Tours.d.ts +1 -1
- package/providers/viator/CatalogGroup.d.ts +1 -1
- package/providers/viator/Duration.d.ts +1 -1
- package/providers/viator/Product.d.ts +2 -2
- package/providers/viator/ProductInfo.d.ts +19 -19
- package/providers/yelp/Business.d.ts +1 -1
- package/providers/yelp/Hold.d.ts +1 -1
- package/providers/yelp/HoldRequest.d.ts +1 -1
- package/providers/yelp/Opening.d.ts +1 -1
- package/providers/yelp/OpeningTime.d.ts +1 -1
- package/providers/yelp/Openings.d.ts +1 -1
- package/providers/yelp/OpeningsRequest.d.ts +1 -1
- package/providers/yelp/Reservation.d.ts +1 -1
- package/providers/yelp/ReservationInfo.d.ts +1 -1
- package/providers/yelp/ReservationRequest.d.ts +1 -1
- package/providers/yelp/ReservationStatusResponse.d.ts +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PROVIDER_ID } from '../enums/PROVIDER_ID';
|
|
2
2
|
import { PROVIDER_NAME } from '../enums/PROVIDER_NAME';
|
|
3
3
|
import { BookingProduct } from './BookingProduct';
|
|
4
|
-
export
|
|
4
|
+
export type Booking = {
|
|
5
5
|
providerId: PROVIDER_ID;
|
|
6
6
|
providerName: PROVIDER_NAME;
|
|
7
7
|
products: BookingProduct[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BusinessNameAddress } from './BusinessNameAddress';
|
|
2
2
|
import { Coordinate } from './Coordinate';
|
|
3
3
|
import { Image } from './Image';
|
|
4
|
-
export
|
|
4
|
+
export type Business = BusinessNameAddress & {
|
|
5
5
|
id: number;
|
|
6
6
|
image: Image;
|
|
7
7
|
gallery: Image[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type BusinessReportItem = {
|
|
2
2
|
businessUserId: number;
|
|
3
3
|
businessUserEmail: string;
|
|
4
4
|
businessUserFullname: string;
|
|
@@ -9,4 +9,4 @@ export declare type BusinessReportItem = {
|
|
|
9
9
|
totalRedeemedAmount: number;
|
|
10
10
|
totalReimbursedAmount: number;
|
|
11
11
|
};
|
|
12
|
-
export
|
|
12
|
+
export type BusinessReport = BusinessReportItem[];
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { CAMPAIGN_STATUS } from '../enums/CAMPAIGN_STATUS';
|
|
2
|
-
export
|
|
2
|
+
export type CampaignUpdateRequest = {
|
|
3
3
|
endDate: string;
|
|
4
4
|
maximumRecipients: number;
|
|
5
5
|
description: string;
|
|
6
6
|
};
|
|
7
|
-
export
|
|
7
|
+
export type CampaignAddRequest = CampaignUpdateRequest & {
|
|
8
8
|
title: string;
|
|
9
9
|
category: 'Voucher';
|
|
10
10
|
limited: boolean;
|
|
@@ -12,7 +12,7 @@ export declare type CampaignAddRequest = CampaignUpdateRequest & {
|
|
|
12
12
|
amount: number;
|
|
13
13
|
maximumOfferAmount: number;
|
|
14
14
|
};
|
|
15
|
-
export
|
|
15
|
+
export type Campaign = CampaignAddRequest & {
|
|
16
16
|
id: number;
|
|
17
17
|
currency: string;
|
|
18
18
|
assignedVouchers: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type CampaignCustomerReportItem = {
|
|
2
2
|
applicationId: number;
|
|
3
3
|
applicationDate: string;
|
|
4
4
|
applicationCustomerId: number;
|
|
@@ -25,4 +25,4 @@ export declare type CampaignCustomerReportItem = {
|
|
|
25
25
|
redeemedDatetimes: string[];
|
|
26
26
|
lengthOfStay: number;
|
|
27
27
|
};
|
|
28
|
-
export
|
|
28
|
+
export type CampaignCustomerReport = CampaignCustomerReportItem[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type CampaignReportItem = {
|
|
2
2
|
id: number;
|
|
3
3
|
businessId: number;
|
|
4
4
|
businessName: string;
|
|
@@ -13,4 +13,4 @@ export declare type CampaignReportItem = {
|
|
|
13
13
|
customerRedeemDateTime: string;
|
|
14
14
|
reimbursedDateTime?: string;
|
|
15
15
|
};
|
|
16
|
-
export
|
|
16
|
+
export type CampaignReport = CampaignReportItem[];
|
package/api/v4/models/City.d.ts
CHANGED
|
@@ -3,14 +3,14 @@ import { Coordinate } from './Coordinate';
|
|
|
3
3
|
import { Country } from './Country';
|
|
4
4
|
import { TasteItem } from './TasteItem';
|
|
5
5
|
import { LOCATION_TYPE } from '../enums/LOCATION_TYPE';
|
|
6
|
-
export
|
|
6
|
+
export type ParentLocation = {
|
|
7
7
|
id: number;
|
|
8
8
|
name: string;
|
|
9
9
|
locationType: LOCATION_TYPE;
|
|
10
10
|
boundary: number[];
|
|
11
11
|
coordinate: Coordinate;
|
|
12
12
|
};
|
|
13
|
-
export
|
|
13
|
+
export type City = {
|
|
14
14
|
boundary: number[];
|
|
15
15
|
coordinate: Coordinate;
|
|
16
16
|
country: Country;
|
|
@@ -7,7 +7,7 @@ export declare enum CONFIG_CONTENTS_PROVIDER_NAME {
|
|
|
7
7
|
YELP = "yelp",
|
|
8
8
|
UBER = "uber"
|
|
9
9
|
}
|
|
10
|
-
export
|
|
10
|
+
export type ProviderObject = {
|
|
11
11
|
id: PROVIDER_ID;
|
|
12
12
|
name: string;
|
|
13
13
|
apiUrl: string;
|
|
@@ -15,7 +15,7 @@ export declare type ProviderObject = {
|
|
|
15
15
|
prod: boolean;
|
|
16
16
|
clientId: string;
|
|
17
17
|
};
|
|
18
|
-
export
|
|
18
|
+
export type Theme = {
|
|
19
19
|
dark: {
|
|
20
20
|
primary: string;
|
|
21
21
|
secondary: string;
|
|
@@ -41,12 +41,12 @@ export declare type Theme = {
|
|
|
41
41
|
headerBg: string;
|
|
42
42
|
};
|
|
43
43
|
};
|
|
44
|
-
export
|
|
44
|
+
export type MenuLink = {
|
|
45
45
|
name: string;
|
|
46
46
|
url: string;
|
|
47
47
|
external_link: boolean;
|
|
48
48
|
};
|
|
49
|
-
export
|
|
49
|
+
export type ConfigList = {
|
|
50
50
|
apiKey: string;
|
|
51
51
|
whiteLabels: {
|
|
52
52
|
reverseProxyUrl: string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type TravelInformation = {
|
|
2
2
|
adults: number;
|
|
3
3
|
nameOfProperty: string;
|
|
4
4
|
proofOfHolidayBookingUrl: string;
|
|
5
5
|
};
|
|
6
|
-
export
|
|
6
|
+
export type PersonalInformation = {
|
|
7
7
|
title: 'Mr' | 'Mrs' | 'Ms';
|
|
8
8
|
firstName: string;
|
|
9
9
|
lastName: string;
|
|
@@ -16,16 +16,16 @@ export declare type PersonalInformation = {
|
|
|
16
16
|
emailAddress: string;
|
|
17
17
|
phoneNumber: string;
|
|
18
18
|
};
|
|
19
|
-
export
|
|
19
|
+
export type MarketingQuestions = {
|
|
20
20
|
howDidYouHear: string;
|
|
21
21
|
howDidYouBookYourTrip: 'Online' | 'Travel Agent/ Tour Operator' | 'Direct with hotel';
|
|
22
22
|
};
|
|
23
|
-
export
|
|
23
|
+
export type CouponApplicationRequest = {
|
|
24
24
|
travelInformation: TravelInformation;
|
|
25
25
|
personalInformations: PersonalInformation[];
|
|
26
26
|
marketingQuestions: MarketingQuestions;
|
|
27
27
|
};
|
|
28
|
-
export
|
|
28
|
+
export type CouponApplication = {
|
|
29
29
|
id: number;
|
|
30
30
|
applicationDate: string;
|
|
31
31
|
travelInformation: TravelInformation;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type FeedbackSubjects = {
|
|
2
2
|
id: number;
|
|
3
3
|
title: string;
|
|
4
4
|
subjectType: 'main' | 'poi';
|
|
5
5
|
};
|
|
6
|
-
export
|
|
6
|
+
export type Feedbacks = {
|
|
7
7
|
mainSubjects: FeedbackSubjects[];
|
|
8
8
|
poiSubjects: FeedbackSubjects[];
|
|
9
9
|
};
|
package/api/v4/models/Image.d.ts
CHANGED
package/api/v4/models/Offer.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { OFFER_STATUS } from '../enums/OFFER_STATUS';
|
|
|
3
3
|
import { OFFER_TYPE } from '../enums/OFFER_TYPE';
|
|
4
4
|
import { OfferProductType } from './OfferProductType';
|
|
5
5
|
import { TimeFrame } from './TimeFrame';
|
|
6
|
-
export
|
|
6
|
+
export type Offer = {
|
|
7
7
|
id: number;
|
|
8
8
|
tripianPoiId: string;
|
|
9
9
|
businessId: number;
|
package/api/v4/models/Plan.d.ts
CHANGED
package/api/v4/models/Poi.d.ts
CHANGED
package/api/v4/models/Step.d.ts
CHANGED
package/api/v4/models/Token.d.ts
CHANGED
package/api/v4/models/Trip.d.ts
CHANGED
package/api/v4/models/User.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { USER_TYPE } from '../enums/USER_TYPE';
|
|
2
2
|
import { UserResetPassword } from './UserResetPassword';
|
|
3
|
-
export
|
|
3
|
+
export type User = UserResetPassword & {
|
|
4
4
|
userType: USER_TYPE;
|
|
5
5
|
timezone: any;
|
|
6
6
|
dateOfBirth: string | null;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { OFFER_CURRENCY } from '../enums/OFFER_CURRENCY';
|
|
2
2
|
import { VoucherOfferAddRequest } from '../requests/VoucherOfferAddRequest';
|
|
3
3
|
import { TimeFrame } from './TimeFrame';
|
|
4
|
-
export
|
|
4
|
+
export type VoucherOffer = VoucherOfferAddRequest & {
|
|
5
5
|
id: number;
|
|
6
6
|
tripianPoiId: string;
|
|
7
7
|
businessId: number;
|
|
@@ -2,7 +2,7 @@ import { OFFER_CURRENCY } from '../enums/OFFER_CURRENCY';
|
|
|
2
2
|
import { OFFER_STATUS } from '../enums/OFFER_STATUS';
|
|
3
3
|
import { OFFER_TYPE } from '../enums/OFFER_TYPE';
|
|
4
4
|
import { TimeFrame } from '../models/TimeFrame';
|
|
5
|
-
export
|
|
5
|
+
export type OfferAddRequest = {
|
|
6
6
|
cityId: number;
|
|
7
7
|
title: string;
|
|
8
8
|
description?: string;
|