@tripian/model 0.11.130 → 2.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/custom/IPoiCategoryGroup.d.ts +6 -6
- package/api/v3/enums/BOOKING_PRODUCT_INFO.d.ts +4 -4
- package/api/v3/enums/POI_CATEGORY_GROUP.d.ts +8 -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 +6 -6
- package/api/v3/enums/REACTION_COMMENT.d.ts +5 -5
- package/api/v3/enums/TRIP_PROFILE_PACE.d.ts +6 -6
- package/api/v3/index.d.ts +70 -70
- package/api/v3/models/IAccommodation.d.ts +8 -8
- package/api/v3/models/IBooking.d.ts +7 -7
- package/api/v3/models/IBookingProduct.d.ts +14 -14
- package/api/v3/models/ICity.d.ts +16 -16
- package/api/v3/models/ICompanion.d.ts +9 -9
- package/api/v3/models/IContinent.d.ts +4 -4
- package/api/v3/models/ICoordinate.d.ts +5 -5
- package/api/v3/models/ICountry.d.ts +7 -7
- package/api/v3/models/IFavorite.d.ts +7 -7
- package/api/v3/models/IHourFormat.d.ts +5 -5
- package/api/v3/models/IImage.d.ts +8 -8
- package/api/v3/models/IImageOwner.d.ts +6 -6
- package/api/v3/models/IOption.d.ts +7 -7
- package/api/v3/models/IPlan.d.ts +10 -10
- package/api/v3/models/IPoi.d.ts +34 -34
- package/api/v3/models/IPoiCategory.d.ts +8 -8
- package/api/v3/models/IPoiCategoryParent.d.ts +5 -5
- package/api/v3/models/IPoiHours.d.ts +5 -5
- package/api/v3/models/IPoiReference.d.ts +11 -11
- package/api/v3/models/IQuestion.d.ts +11 -11
- package/api/v3/models/IRecommendation.d.ts +6 -6
- package/api/v3/models/IStep.d.ts +11 -11
- package/api/v3/models/IStepHours.d.ts +5 -5
- package/api/v3/models/ISubOption.d.ts +5 -5
- package/api/v3/models/ITasteItem.d.ts +8 -8
- package/api/v3/models/ITasteItemImage.d.ts +6 -6
- package/api/v3/models/IToken.d.ts +5 -5
- package/api/v3/models/ITokenPayload.d.ts +14 -14
- package/api/v3/models/ITokenRefresh.d.ts +6 -6
- package/api/v3/models/ITopTen.d.ts +7 -7
- package/api/v3/models/ITrip.d.ts +6 -6
- package/api/v3/models/ITripProfile.d.ts +15 -15
- package/api/v3/models/ITripReference.d.ts +9 -9
- package/api/v3/models/IUser.d.ts +9 -9
- package/api/v3/models/IUserProfile.d.ts +5 -5
- package/api/v3/models/IUserReaction.d.ts +13 -13
- package/api/v3/models/IUserReservation.d.ts +11 -11
- package/api/v3/requests/ICompanionRequest.d.ts +7 -7
- package/api/v3/requests/IDevice.d.ts +8 -8
- package/api/v3/requests/IFavoriteRequest.d.ts +5 -5
- package/api/v3/requests/IFavoriteUpdateRequest.d.ts +5 -5
- package/api/v3/requests/ILoginRequestEmail.d.ts +7 -7
- package/api/v3/requests/ILoginRequestTripHash.d.ts +6 -6
- package/api/v3/requests/ILoginRequestUsername.d.ts +6 -6
- package/api/v3/requests/IPlanUpdateRequest.d.ts +6 -6
- package/api/v3/requests/IPoisRequest.d.ts +13 -13
- package/api/v3/requests/IPoisRequestCoordinate.d.ts +9 -9
- package/api/v3/requests/IPoisRequestMustTry.d.ts +6 -6
- package/api/v3/requests/IPoisRequestName.d.ts +8 -8
- package/api/v3/requests/IRecommendationRequest.d.ts +15 -15
- package/api/v3/requests/IRegisterRequestEmail.d.ts +9 -9
- package/api/v3/requests/IRegisterRequestUsername.d.ts +8 -8
- package/api/v3/requests/IStepRequest.d.ts +6 -6
- package/api/v3/requests/IStepUpdateRequest.d.ts +5 -5
- package/api/v3/requests/ITokenRefreshRequest.d.ts +4 -4
- package/api/v3/requests/IUserProfileRequest.d.ts +5 -5
- package/api/v3/requests/IUserReactionRequest.d.ts +9 -9
- package/api/v3/requests/IUserReservationRequest.d.ts +8 -8
- package/api/v3/requests/IUserUpdateRequest.d.ts +8 -8
- package/api/v3/responses/IDataPayload.d.ts +6 -6
- package/api/v3/responses/IErrorResponse.d.ts +7 -7
- package/api/v3/responses/IPagination.d.ts +10 -10
- package/api/v3/responses/IPaginationLinks.d.ts +5 -5
- package/api/v3/responses/ISuccessResponse.d.ts +9 -9
- package/helper/index.d.ts +38 -38
- package/helper/plural.d.ts +2 -2
- package/index.d.ts +5 -5
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/package.json +58 -58
- package/providers/glx/IBooking.d.ts +17 -17
- package/providers/glx/IBookingContact.d.ts +8 -8
- package/providers/glx/IBookingInformation.d.ts +5 -5
- package/providers/glx/IBookingLocation.d.ts +6 -6
- package/providers/glx/IBookingPrice.d.ts +24 -24
- package/providers/glx/IBookingRef.d.ts +25 -25
- package/providers/glx/IBookingSearchResult.d.ts +11 -11
- package/providers/glx/IBookingSearchResultAggregation.d.ts +18 -18
- package/providers/glx/IBookingSubCategory.d.ts +5 -5
- package/providers/glx/IBookingSupplier.d.ts +5 -5
- package/providers/glx/ICatalog.d.ts +5 -5
- package/providers/glx/ICatalogGroup.d.ts +11 -11
- package/providers/glx/IToken.d.ts +6 -6
- package/providers/glx/ITourRating.d.ts +6 -6
- package/providers/glx/ITourReview.d.ts +7 -7
- package/providers/glx/index.d.ts +16 -16
- package/providers/gyg/ICatalogGroup.d.ts +6 -6
- package/providers/gyg/ICategories.d.ts +9 -9
- package/providers/gyg/ICategory.d.ts +7 -7
- package/providers/gyg/IMetaData.d.ts +16 -16
- package/providers/gyg/IPaymentConfiguration.d.ts +9 -0
- package/providers/gyg/IPaymentConfigurations.d.ts +9 -0
- package/providers/gyg/ITour.d.ts +37 -37
- package/providers/gyg/ITourAvailabilities.d.ts +9 -0
- package/providers/gyg/ITourAvailability.d.ts +8 -0
- package/providers/gyg/ITourBooking.d.ts +11 -0
- package/providers/gyg/ITourBookingCart.d.ts +73 -0
- package/providers/gyg/ITourBookingCartRequest.d.ts +50 -0
- package/providers/gyg/ITourBookingCarts.d.ts +7 -0
- package/providers/gyg/ITourBookingInfo.d.ts +38 -0
- package/providers/gyg/ITourBookingInfos.d.ts +9 -0
- package/providers/gyg/ITourBookingRequest.d.ts +25 -0
- package/providers/gyg/ITourBookings.d.ts +9 -0
- package/providers/gyg/ITourCategories.d.ts +6 -6
- package/providers/gyg/ITourCoordinates.d.ts +5 -5
- package/providers/gyg/ITourDurations.d.ts +5 -5
- package/providers/gyg/ITourLocations.d.ts +14 -14
- package/providers/gyg/ITourOption.d.ts +35 -0
- package/providers/gyg/ITourOptionPricing.d.ts +21 -0
- package/providers/gyg/ITourOptionPricings.d.ts +9 -0
- package/providers/gyg/ITourOptions.d.ts +9 -0
- package/providers/gyg/ITourPictures.d.ts +7 -7
- package/providers/gyg/ITourPrice.d.ts +12 -7
- package/providers/gyg/ITourViewport.d.ts +7 -7
- package/providers/gyg/ITours.d.ts +9 -9
- package/providers/gyg/index.d.ts +30 -14
- package/providers/gyg/sampleData/categories.d.ts +12 -12
- package/providers/gyg/sampleData/tours-full.d.ts +90 -90
- package/providers/gyg/sampleData/tours.d.ts +111 -111
- package/providers/index.d.ts +4 -4
- package/providers/yelp/IBusiness.d.ts +32 -32
- package/providers/yelp/IHold.d.ts +11 -11
- package/providers/yelp/IHoldRequest.d.ts +8 -8
- package/providers/yelp/IOpening.d.ts +6 -6
- package/providers/yelp/IOpeningTime.d.ts +5 -5
- package/providers/yelp/IOpenings.d.ts +5 -5
- package/providers/yelp/IOpeningsRequest.d.ts +7 -7
- package/providers/yelp/IReservation.d.ts +6 -6
- package/providers/yelp/IReservationInfo.d.ts +9 -9
- package/providers/yelp/IReservationRequest.d.ts +13 -13
- package/providers/yelp/IReservationStatusResponse.d.ts +7 -7
- package/providers/yelp/index.d.ts +11 -11
package/package.json
CHANGED
|
@@ -1,58 +1,58 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@tripian/model",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "Tripian Inc web model",
|
|
5
|
-
"main": "index.js",
|
|
6
|
-
"types": "index.d.ts",
|
|
7
|
-
"scripts": {
|
|
8
|
-
"npm": "npm publish --access public"
|
|
9
|
-
},
|
|
10
|
-
"devDependencies": {
|
|
11
|
-
"@babel/cli": "^7.7.7",
|
|
12
|
-
"@babel/core": "^7.7.7",
|
|
13
|
-
"@babel/preset-env": "^7.7.7",
|
|
14
|
-
"@tripian/eslint-config-tripian": "latest",
|
|
15
|
-
"@types/node": "^13.1.7",
|
|
16
|
-
"@types/npm": "^2.0.31",
|
|
17
|
-
"@typescript-eslint/eslint-plugin": "^2.16.0",
|
|
18
|
-
"babel-jest": "^24.9.0",
|
|
19
|
-
"babel-loader": "^8.0.6",
|
|
20
|
-
"documentation": "^12.1.4",
|
|
21
|
-
"eslint": "^6.8.0",
|
|
22
|
-
"eslint-config-airbnb": "^18.0.1",
|
|
23
|
-
"eslint-config-airbnb-typescript": "^6.3.1",
|
|
24
|
-
"eslint-config-prettier": "^6.9.0",
|
|
25
|
-
"eslint-plugin-import": "^2.20.0",
|
|
26
|
-
"eslint-plugin-jest": "^23.6.0",
|
|
27
|
-
"eslint-plugin-jsx-a11y": "^6.2.3",
|
|
28
|
-
"eslint-plugin-prettier": "^3.1.2",
|
|
29
|
-
"eslint-plugin-react": "^7.17.0",
|
|
30
|
-
"eslint-plugin-react-hooks": "^2.3.0",
|
|
31
|
-
"jest": "^24.9.0",
|
|
32
|
-
"prettier": "^1.19.1",
|
|
33
|
-
"ts-loader": "^6.2.1",
|
|
34
|
-
"typedoc": "^0.19.1",
|
|
35
|
-
"typedoc-plugin-external-module-name": "^4.0.3",
|
|
36
|
-
"typescript": "^4.0.2",
|
|
37
|
-
"webpack": "^4.41.0",
|
|
38
|
-
"webpack-cli": "^3.3.9"
|
|
39
|
-
},
|
|
40
|
-
"keywords": [
|
|
41
|
-
"tripian",
|
|
42
|
-
"model"
|
|
43
|
-
],
|
|
44
|
-
"repository": {
|
|
45
|
-
"type": "git",
|
|
46
|
-
"url": "git+https://github.com/Tripian-inc/ui-tripian-model.git"
|
|
47
|
-
},
|
|
48
|
-
"author": "Penguen Umut",
|
|
49
|
-
"license": "MIT",
|
|
50
|
-
"bugs": {
|
|
51
|
-
"url": "https://github.com/Tripian-inc/ui-tripian-model/issues"
|
|
52
|
-
},
|
|
53
|
-
"homepage": "https://github.com/Tripian-inc/ui-tripian-model#readme",
|
|
54
|
-
"eslintConfig": {
|
|
55
|
-
"extends": "@tripian/eslint-config-tripian"
|
|
56
|
-
},
|
|
57
|
-
"prettier": "@tripian/eslint-config-tripian/prettier.js"
|
|
58
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@tripian/model",
|
|
3
|
+
"version": "2.00.000",
|
|
4
|
+
"description": "Tripian Inc web model",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"types": "index.d.ts",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"npm": "npm publish --access public"
|
|
9
|
+
},
|
|
10
|
+
"devDependencies": {
|
|
11
|
+
"@babel/cli": "^7.7.7",
|
|
12
|
+
"@babel/core": "^7.7.7",
|
|
13
|
+
"@babel/preset-env": "^7.7.7",
|
|
14
|
+
"@tripian/eslint-config-tripian": "latest",
|
|
15
|
+
"@types/node": "^13.1.7",
|
|
16
|
+
"@types/npm": "^2.0.31",
|
|
17
|
+
"@typescript-eslint/eslint-plugin": "^2.16.0",
|
|
18
|
+
"babel-jest": "^24.9.0",
|
|
19
|
+
"babel-loader": "^8.0.6",
|
|
20
|
+
"documentation": "^12.1.4",
|
|
21
|
+
"eslint": "^6.8.0",
|
|
22
|
+
"eslint-config-airbnb": "^18.0.1",
|
|
23
|
+
"eslint-config-airbnb-typescript": "^6.3.1",
|
|
24
|
+
"eslint-config-prettier": "^6.9.0",
|
|
25
|
+
"eslint-plugin-import": "^2.20.0",
|
|
26
|
+
"eslint-plugin-jest": "^23.6.0",
|
|
27
|
+
"eslint-plugin-jsx-a11y": "^6.2.3",
|
|
28
|
+
"eslint-plugin-prettier": "^3.1.2",
|
|
29
|
+
"eslint-plugin-react": "^7.17.0",
|
|
30
|
+
"eslint-plugin-react-hooks": "^2.3.0",
|
|
31
|
+
"jest": "^24.9.0",
|
|
32
|
+
"prettier": "^1.19.1",
|
|
33
|
+
"ts-loader": "^6.2.1",
|
|
34
|
+
"typedoc": "^0.19.1",
|
|
35
|
+
"typedoc-plugin-external-module-name": "^4.0.3",
|
|
36
|
+
"typescript": "^4.0.2",
|
|
37
|
+
"webpack": "^4.41.0",
|
|
38
|
+
"webpack-cli": "^3.3.9"
|
|
39
|
+
},
|
|
40
|
+
"keywords": [
|
|
41
|
+
"tripian",
|
|
42
|
+
"model"
|
|
43
|
+
],
|
|
44
|
+
"repository": {
|
|
45
|
+
"type": "git",
|
|
46
|
+
"url": "git+https://github.com/Tripian-inc/ui-tripian-model.git"
|
|
47
|
+
},
|
|
48
|
+
"author": "Penguen Umut",
|
|
49
|
+
"license": "MIT",
|
|
50
|
+
"bugs": {
|
|
51
|
+
"url": "https://github.com/Tripian-inc/ui-tripian-model/issues"
|
|
52
|
+
},
|
|
53
|
+
"homepage": "https://github.com/Tripian-inc/ui-tripian-model#readme",
|
|
54
|
+
"eslintConfig": {
|
|
55
|
+
"extends": "@tripian/eslint-config-tripian"
|
|
56
|
+
},
|
|
57
|
+
"prettier": "@tripian/eslint-config-tripian/prettier.js"
|
|
58
|
+
}
|
|
@@ -1,17 +1,17 @@
|
|
|
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
|
+
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,8 +1,8 @@
|
|
|
1
|
-
interface IBookingContact {
|
|
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
|
+
interface IBookingContact {
|
|
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,5 +1,5 @@
|
|
|
1
|
-
interface IBookingInformation {
|
|
2
|
-
label: string;
|
|
3
|
-
value: string;
|
|
4
|
-
}
|
|
5
|
-
export default IBookingInformation;
|
|
1
|
+
interface IBookingInformation {
|
|
2
|
+
label: string;
|
|
3
|
+
value: string;
|
|
4
|
+
}
|
|
5
|
+
export default IBookingInformation;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
interface IBookingLocation {
|
|
2
|
-
address?: string;
|
|
3
|
-
latitude: number;
|
|
4
|
-
longitude: number;
|
|
5
|
-
}
|
|
6
|
-
export default IBookingLocation;
|
|
1
|
+
interface IBookingLocation {
|
|
2
|
+
address?: string;
|
|
3
|
+
latitude: number;
|
|
4
|
+
longitude: number;
|
|
5
|
+
}
|
|
6
|
+
export default IBookingLocation;
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
interface IBookingPrice {
|
|
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
|
+
interface IBookingPrice {
|
|
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,25 +1,25 @@
|
|
|
1
|
-
import IBookingSubCategory from './IBookingSubCategory';
|
|
2
|
-
import IBookingPrice from './IBookingPrice';
|
|
3
|
-
import IBookingLocation from './IBookingLocation';
|
|
4
|
-
interface IBookingRef {
|
|
5
|
-
id: string;
|
|
6
|
-
title: string;
|
|
7
|
-
subTitle: string;
|
|
8
|
-
city: string | null;
|
|
9
|
-
country: string | null;
|
|
10
|
-
thumbnail: string;
|
|
11
|
-
priceStartingAt: IBookingPrice;
|
|
12
|
-
minimumEarningValue?: IBookingPrice;
|
|
13
|
-
pointsDisclaimer: string;
|
|
14
|
-
categories: string[];
|
|
15
|
-
subCategories: IBookingSubCategory[];
|
|
16
|
-
isAvailable: boolean;
|
|
17
|
-
purchaseStrategy: string;
|
|
18
|
-
checkoutStrategy: string;
|
|
19
|
-
geoLocation: IBookingLocation | null;
|
|
20
|
-
providerTranslationAttribution: {
|
|
21
|
-
image: string | null;
|
|
22
|
-
link: string | null;
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
export default IBookingRef;
|
|
1
|
+
import IBookingSubCategory from './IBookingSubCategory';
|
|
2
|
+
import IBookingPrice from './IBookingPrice';
|
|
3
|
+
import IBookingLocation from './IBookingLocation';
|
|
4
|
+
interface IBookingRef {
|
|
5
|
+
id: string;
|
|
6
|
+
title: string;
|
|
7
|
+
subTitle: string;
|
|
8
|
+
city: string | null;
|
|
9
|
+
country: string | null;
|
|
10
|
+
thumbnail: string;
|
|
11
|
+
priceStartingAt: IBookingPrice;
|
|
12
|
+
minimumEarningValue?: IBookingPrice;
|
|
13
|
+
pointsDisclaimer: string;
|
|
14
|
+
categories: string[];
|
|
15
|
+
subCategories: IBookingSubCategory[];
|
|
16
|
+
isAvailable: boolean;
|
|
17
|
+
purchaseStrategy: string;
|
|
18
|
+
checkoutStrategy: string;
|
|
19
|
+
geoLocation: IBookingLocation | null;
|
|
20
|
+
providerTranslationAttribution: {
|
|
21
|
+
image: string | null;
|
|
22
|
+
link: string | null;
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
export default IBookingRef;
|
|
@@ -1,11 +1,11 @@
|
|
|
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
|
+
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 +1,18 @@
|
|
|
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
|
+
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,5 +1,5 @@
|
|
|
1
|
-
interface IBookingSubCategory {
|
|
2
|
-
id: string;
|
|
3
|
-
label: string;
|
|
4
|
-
}
|
|
5
|
-
export default IBookingSubCategory;
|
|
1
|
+
interface IBookingSubCategory {
|
|
2
|
+
id: string;
|
|
3
|
+
label: string;
|
|
4
|
+
}
|
|
5
|
+
export default IBookingSubCategory;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
interface IBookingSupplier {
|
|
2
|
-
name: string;
|
|
3
|
-
trademark: string | null;
|
|
4
|
-
}
|
|
5
|
-
export default IBookingSupplier;
|
|
1
|
+
interface IBookingSupplier {
|
|
2
|
+
name: string;
|
|
3
|
+
trademark: string | null;
|
|
4
|
+
}
|
|
5
|
+
export default IBookingSupplier;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import ICatalogGroup from './ICatalogGroup';
|
|
2
|
-
interface ICatalog {
|
|
3
|
-
groups: ICatalogGroup[];
|
|
4
|
-
}
|
|
5
|
-
export default ICatalog;
|
|
1
|
+
import ICatalogGroup from './ICatalogGroup';
|
|
2
|
+
interface ICatalog {
|
|
3
|
+
groups: ICatalogGroup[];
|
|
4
|
+
}
|
|
5
|
+
export default ICatalog;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import IBookingRef from './IBookingRef';
|
|
2
|
-
interface ICatalogGroup {
|
|
3
|
-
type: string;
|
|
4
|
-
title: string;
|
|
5
|
-
subTitle: string | null;
|
|
6
|
-
description: string;
|
|
7
|
-
featured: boolean;
|
|
8
|
-
items: IBookingRef[];
|
|
9
|
-
groupSearch: any | null;
|
|
10
|
-
}
|
|
11
|
-
export default ICatalogGroup;
|
|
1
|
+
import IBookingRef from './IBookingRef';
|
|
2
|
+
interface ICatalogGroup {
|
|
3
|
+
type: string;
|
|
4
|
+
title: string;
|
|
5
|
+
subTitle: string | null;
|
|
6
|
+
description: string;
|
|
7
|
+
featured: boolean;
|
|
8
|
+
items: IBookingRef[];
|
|
9
|
+
groupSearch: any | null;
|
|
10
|
+
}
|
|
11
|
+
export default ICatalogGroup;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
interface IToken {
|
|
2
|
-
created: string;
|
|
3
|
-
expires: string;
|
|
4
|
-
token: string;
|
|
5
|
-
}
|
|
6
|
-
export default IToken;
|
|
1
|
+
interface IToken {
|
|
2
|
+
created: string;
|
|
3
|
+
expires: string;
|
|
4
|
+
token: string;
|
|
5
|
+
}
|
|
6
|
+
export default IToken;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
interface ITourRating {
|
|
2
|
-
id: string;
|
|
3
|
-
rate: number;
|
|
4
|
-
rateCount: number;
|
|
5
|
-
}
|
|
6
|
-
export default ITourRating;
|
|
1
|
+
interface ITourRating {
|
|
2
|
+
id: string;
|
|
3
|
+
rate: number;
|
|
4
|
+
rateCount: number;
|
|
5
|
+
}
|
|
6
|
+
export default ITourRating;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
interface ITourReview {
|
|
2
|
-
id: string;
|
|
3
|
-
rate: number;
|
|
4
|
-
username: string;
|
|
5
|
-
comment: string;
|
|
6
|
-
}
|
|
7
|
-
export default ITourReview;
|
|
1
|
+
interface ITourReview {
|
|
2
|
+
id: string;
|
|
3
|
+
rate: number;
|
|
4
|
+
username: string;
|
|
5
|
+
comment: string;
|
|
6
|
+
}
|
|
7
|
+
export default ITourReview;
|
package/providers/glx/index.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import Token from './IToken';
|
|
2
|
-
import TourRating from './ITourRating';
|
|
3
|
-
import TourReview from './ITourReview';
|
|
4
|
-
import BookingContact from './IBookingContact';
|
|
5
|
-
import BookingInformation from './IBookingInformation';
|
|
6
|
-
import BookingLocation from './IBookingLocation';
|
|
7
|
-
import BookingPrice from './IBookingPrice';
|
|
8
|
-
import BookingSubCategory from './IBookingSubCategory';
|
|
9
|
-
import BookingSupplier from './IBookingSupplier';
|
|
10
|
-
import BookingRef from './IBookingRef';
|
|
11
|
-
import Booking from './IBooking';
|
|
12
|
-
import BookingSearchResultAggregation from './IBookingSearchResultAggregation';
|
|
13
|
-
import BookingSearchResult from './IBookingSearchResult';
|
|
14
|
-
import CatalogGroup from './ICatalogGroup';
|
|
15
|
-
import Catalog from './ICatalog';
|
|
16
|
-
export { Token, TourRating, TourReview, BookingContact, BookingInformation, BookingLocation, BookingPrice, BookingSubCategory, BookingSupplier, BookingRef, Booking, BookingSearchResultAggregation, BookingSearchResult, CatalogGroup, Catalog, };
|
|
1
|
+
import Token from './IToken';
|
|
2
|
+
import TourRating from './ITourRating';
|
|
3
|
+
import TourReview from './ITourReview';
|
|
4
|
+
import BookingContact from './IBookingContact';
|
|
5
|
+
import BookingInformation from './IBookingInformation';
|
|
6
|
+
import BookingLocation from './IBookingLocation';
|
|
7
|
+
import BookingPrice from './IBookingPrice';
|
|
8
|
+
import BookingSubCategory from './IBookingSubCategory';
|
|
9
|
+
import BookingSupplier from './IBookingSupplier';
|
|
10
|
+
import BookingRef from './IBookingRef';
|
|
11
|
+
import Booking from './IBooking';
|
|
12
|
+
import BookingSearchResultAggregation from './IBookingSearchResultAggregation';
|
|
13
|
+
import BookingSearchResult from './IBookingSearchResult';
|
|
14
|
+
import CatalogGroup from './ICatalogGroup';
|
|
15
|
+
import Catalog from './ICatalog';
|
|
16
|
+
export { Token, TourRating, TourReview, BookingContact, BookingInformation, BookingLocation, BookingPrice, BookingSubCategory, BookingSupplier, BookingRef, Booking, BookingSearchResultAggregation, BookingSearchResult, CatalogGroup, Catalog, };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import ITour from './ITour';
|
|
2
|
-
interface ICatalogGroup {
|
|
3
|
-
title: string;
|
|
4
|
-
items: ITour[];
|
|
5
|
-
}
|
|
6
|
-
export default ICatalogGroup;
|
|
1
|
+
import ITour from './ITour';
|
|
2
|
+
interface ICatalogGroup {
|
|
3
|
+
title: string;
|
|
4
|
+
items: ITour[];
|
|
5
|
+
}
|
|
6
|
+
export default ICatalogGroup;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import ICategory from './ICategory';
|
|
2
|
-
import IMetaData from './IMetaData';
|
|
3
|
-
interface ICategories {
|
|
4
|
-
metadata: IMetaData;
|
|
5
|
-
data: {
|
|
6
|
-
categories: Array<ICategory>;
|
|
7
|
-
};
|
|
8
|
-
}
|
|
9
|
-
export default ICategories;
|
|
1
|
+
import ICategory from './ICategory';
|
|
2
|
+
import IMetaData from './IMetaData';
|
|
3
|
+
interface ICategories {
|
|
4
|
+
metadata: IMetaData;
|
|
5
|
+
data: {
|
|
6
|
+
categories: Array<ICategory>;
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
export default ICategories;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
interface ICategory {
|
|
2
|
-
category_id: number;
|
|
3
|
-
name: string;
|
|
4
|
-
number_of_tours: number;
|
|
5
|
-
parent_id?: number;
|
|
6
|
-
}
|
|
7
|
-
export default ICategory;
|
|
1
|
+
interface ICategory {
|
|
2
|
+
category_id: number;
|
|
3
|
+
name: string;
|
|
4
|
+
number_of_tours: number;
|
|
5
|
+
parent_id?: number;
|
|
6
|
+
}
|
|
7
|
+
export default ICategory;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
interface IMetaDatam {
|
|
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
|
+
interface IMetaDatam {
|
|
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;
|
|
@@ -0,0 +1,9 @@
|
|
|
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;
|