@tripian/core 0.11.270 → 3.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/Random.d.ts +111 -111
- package/api/API.d.ts +173 -173
- package/api/const/APICONST.d.ts +3 -3
- package/api/const/ApiConstModel.d.ts +51 -51
- package/data/data.d.ts +6 -6
- package/data/dataClear.d.ts +2 -2
- package/data/dataModel.d.ts +43 -43
- package/easy/easy.d.ts +35 -35
- package/easy/handle/cache/Cached.d.ts +87 -87
- package/easy/handle/cache/cache.d.ts +9 -9
- package/easy/handle/cache/cacheCommon.d.ts +2 -2
- package/easy/handle/cache/cacheHelper.d.ts +79 -79
- package/easy/handle/handle.d.ts +21 -21
- package/index.d.ts +40 -40
- package/index.html +115 -115
- package/index.js +7 -5
- package/index.js.map +1 -1
- package/package.json +35 -65
- package/providers/glx/API.d.ts +15 -15
- package/providers/glx/demoData.d.ts +3 -3
- package/providers/glx/handle.d.ts +8 -8
- package/providers/gyg/API.d.ts +24 -22
- package/providers/gyg/allCategories.d.ts +3 -3
- package/providers/gyg/catalogCategoryIds.d.ts +6 -6
- package/providers/gyg/handle.d.ts +16 -16
- package/providers/gyg/mockTour.d.ts +3 -3
- package/providers/yelp/API.d.ts +16 -16
- package/providers/yelp/data/business_test.d.ts +3 -3
- package/providers/yelp/data/hold_test.d.ts +3 -3
- package/providers/yelp/data/openings_test.d.ts +3 -3
- package/providers/yelp/data/reservation_test.d.ts +3 -3
- package/tcore.umd.js +7 -5
- package/tcore.umd.js.map +1 -1
- package/xhr/IXhrOptions.d.ts +7 -7
- package/xhr/xhr.d.ts +21 -21
package/package.json
CHANGED
|
@@ -1,65 +1,35 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@tripian/core",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Tripian Inc Web SDK",
|
|
5
|
-
"main": "index.js",
|
|
6
|
-
"types": "index.d.ts",
|
|
7
|
-
"scripts": {
|
|
8
|
-
"npm": "npm publish --access public"
|
|
9
|
-
},
|
|
10
|
-
"dependencies": {
|
|
11
|
-
"@tripian/model": "
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
"
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
"
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
"eslint-plugin-react-hooks": "^2.3.0",
|
|
37
|
-
"jest": "^24.9.0",
|
|
38
|
-
"prettier": "^1.19.1",
|
|
39
|
-
"ts-loader": "^6.2.1",
|
|
40
|
-
"typedoc": "^0.19.1",
|
|
41
|
-
"typedoc-plugin-external-module-name": "^4.0.3",
|
|
42
|
-
"typescript": "^4.0.2",
|
|
43
|
-
"webpack": "^4.41.5",
|
|
44
|
-
"webpack-cli": "^3.3.10"
|
|
45
|
-
},
|
|
46
|
-
"keywords": [
|
|
47
|
-
"tripian",
|
|
48
|
-
"core",
|
|
49
|
-
"web sdk"
|
|
50
|
-
],
|
|
51
|
-
"repository": {
|
|
52
|
-
"type": "git",
|
|
53
|
-
"url": "git+https://github.com/Tripian-inc/ui-tripian-core.git"
|
|
54
|
-
},
|
|
55
|
-
"author": "Penguen Umut",
|
|
56
|
-
"license": "MIT",
|
|
57
|
-
"bugs": {
|
|
58
|
-
"url": "https://github.com/Tripian-inc/ui-tripian-core/issues"
|
|
59
|
-
},
|
|
60
|
-
"homepage": "https://tripian-inc.github.io/ui-tripian-core/globals.html",
|
|
61
|
-
"eslintConfig": {
|
|
62
|
-
"extends": "@tripian/eslint-config-tripian"
|
|
63
|
-
},
|
|
64
|
-
"prettier": "@tripian/eslint-config-tripian/prettier.js"
|
|
65
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@tripian/core",
|
|
3
|
+
"version": "3.0.0",
|
|
4
|
+
"description": "Tripian Inc Web SDK",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"types": "index.d.ts",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"npm": "npm publish --access public"
|
|
9
|
+
},
|
|
10
|
+
"dependencies": {
|
|
11
|
+
"@tripian/model": "2.00.000",
|
|
12
|
+
"adyen-encryption": "^0.1.1",
|
|
13
|
+
"axios": "^0.19.1",
|
|
14
|
+
"moment": "^2.29.0"
|
|
15
|
+
},
|
|
16
|
+
"keywords": [
|
|
17
|
+
"tripian",
|
|
18
|
+
"core",
|
|
19
|
+
"web sdk"
|
|
20
|
+
],
|
|
21
|
+
"repository": {
|
|
22
|
+
"type": "git",
|
|
23
|
+
"url": "git+https://github.com/Tripian-inc/ui-tripian-core.git"
|
|
24
|
+
},
|
|
25
|
+
"author": "Penguen Umut",
|
|
26
|
+
"license": "MIT",
|
|
27
|
+
"bugs": {
|
|
28
|
+
"url": "https://github.com/Tripian-inc/ui-tripian-core/issues"
|
|
29
|
+
},
|
|
30
|
+
"homepage": "https://tripian-inc.github.io/ui-tripian-core/globals.html",
|
|
31
|
+
"eslintConfig": {
|
|
32
|
+
"extends": "@tripian/eslint-config-tripian"
|
|
33
|
+
},
|
|
34
|
+
"prettier": "@tripian/eslint-config-tripian/prettier.js"
|
|
35
|
+
}
|
package/providers/glx/API.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { Providers } from '@tripian/model';
|
|
2
|
-
declare class API {
|
|
3
|
-
private axios;
|
|
4
|
-
private baseURL;
|
|
5
|
-
private tripianTravelerXApiKey;
|
|
6
|
-
private tripianFakeDeviceId;
|
|
7
|
-
private sandbox;
|
|
8
|
-
private token?;
|
|
9
|
-
constructor(sandbox?: boolean);
|
|
10
|
-
login: () => Promise<Providers.Glx.Token>;
|
|
11
|
-
checkLogin: () => Promise<boolean>;
|
|
12
|
-
booking: (id: string) => Promise<Providers.Glx.Booking>;
|
|
13
|
-
catalog: (cityName: string, demo?: boolean) => Promise<Providers.Glx.Catalog>;
|
|
14
|
-
}
|
|
15
|
-
export default API;
|
|
1
|
+
import { Providers } from '@tripian/model';
|
|
2
|
+
declare class API {
|
|
3
|
+
private axios;
|
|
4
|
+
private baseURL;
|
|
5
|
+
private tripianTravelerXApiKey;
|
|
6
|
+
private tripianFakeDeviceId;
|
|
7
|
+
private sandbox;
|
|
8
|
+
private token?;
|
|
9
|
+
constructor(sandbox?: boolean);
|
|
10
|
+
login: () => Promise<Providers.Glx.Token>;
|
|
11
|
+
checkLogin: () => Promise<boolean>;
|
|
12
|
+
booking: (id: string) => Promise<Providers.Glx.Booking>;
|
|
13
|
+
catalog: (cityName: string, demo?: boolean) => Promise<Providers.Glx.Catalog>;
|
|
14
|
+
}
|
|
15
|
+
export default API;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
declare const montrealCatalogExcludeItemIds: string[];
|
|
2
|
-
declare const catalogGroupsApprovedTitles: string[];
|
|
3
|
-
export { montrealCatalogExcludeItemIds, catalogGroupsApprovedTitles };
|
|
1
|
+
declare const montrealCatalogExcludeItemIds: string[];
|
|
2
|
+
declare const catalogGroupsApprovedTitles: string[];
|
|
3
|
+
export { montrealCatalogExcludeItemIds, catalogGroupsApprovedTitles };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { AxiosError } from 'axios';
|
|
2
|
-
interface GlxErrorResponse {
|
|
3
|
-
errorCode: number;
|
|
4
|
-
errorMessage: string;
|
|
5
|
-
traceId: string;
|
|
6
|
-
}
|
|
7
|
-
declare const handleHttpResponseErrorForGlx: (errorResponse: AxiosError<GlxErrorResponse>, dataKey: string, params?: any) => never;
|
|
8
|
-
export { handleHttpResponseErrorForGlx };
|
|
1
|
+
import { AxiosError } from 'axios';
|
|
2
|
+
interface GlxErrorResponse {
|
|
3
|
+
errorCode: number;
|
|
4
|
+
errorMessage: string;
|
|
5
|
+
traceId: string;
|
|
6
|
+
}
|
|
7
|
+
declare const handleHttpResponseErrorForGlx: (errorResponse: AxiosError<GlxErrorResponse>, dataKey: string, params?: any) => never;
|
|
8
|
+
export { handleHttpResponseErrorForGlx };
|
package/providers/gyg/API.d.ts
CHANGED
|
@@ -1,22 +1,24 @@
|
|
|
1
|
-
import Model, { Providers } from '@tripian/model';
|
|
2
|
-
declare class API {
|
|
3
|
-
private axios;
|
|
4
|
-
private
|
|
5
|
-
private
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
1
|
+
import Model, { Providers } from '@tripian/model';
|
|
2
|
+
declare class API {
|
|
3
|
+
private axios;
|
|
4
|
+
private tripianProxyURL;
|
|
5
|
+
private baseURL;
|
|
6
|
+
private baseURL_TEST;
|
|
7
|
+
private access_token;
|
|
8
|
+
constructor(test?: boolean);
|
|
9
|
+
categories: (limit?: number, language?: string, currency?: string) => Promise<Providers.Gyg.Category[]>;
|
|
10
|
+
category: (categoryId: number, language?: string, currency?: string) => Promise<Providers.Gyg.Category>;
|
|
11
|
+
tours: (cityName: string, cityCoordinate?: Model.Coordinate | undefined, radius?: number, categoryIds?: number[] | undefined, unique?: boolean, limit?: number, preformatted?: string, language?: string, currency?: string) => Promise<Providers.Gyg.CatalogGroup[]>;
|
|
12
|
+
tour: (tourId: number, language?: string, currency?: string, preformatted?: string) => Promise<Providers.Gyg.Tour>;
|
|
13
|
+
tourAvailabilities: (tourId: number, startDate: string, endDate?: string | undefined, language?: string, currency?: string) => Promise<Providers.Gyg.TourAvailability[]>;
|
|
14
|
+
options: (tourId: number, language?: string, currency?: string) => Promise<Providers.Gyg.TourOption[]>;
|
|
15
|
+
optionAvailabilities: (optionId: number, startDate: string, endDate?: string | undefined, language?: string, currency?: string) => Promise<Providers.Gyg.TourAvailability[]>;
|
|
16
|
+
optionPricings: (optionId: number, language?: string, currency?: string) => Promise<Providers.Gyg.TourOptionPricing>;
|
|
17
|
+
bookingAdd: (tourBookingRequest: Providers.Gyg.TourBookingRequest) => Promise<Providers.Gyg.TourBooking>;
|
|
18
|
+
booking: (bookingHash: string, language?: string, currency?: string) => Promise<Providers.Gyg.TourBookingInfo[]>;
|
|
19
|
+
bookingDelete: (bookingHash: string, language?: string, currency?: string) => Promise<Providers.Gyg.TourBooking[]>;
|
|
20
|
+
cartAdd: (tourBookingCartRequest: Providers.Gyg.TourBookingCartRequest) => Promise<Providers.Gyg.TourBookingCart>;
|
|
21
|
+
cart: (shoppingCartHash: string, language?: string, currency?: string) => Promise<Providers.Gyg.TourBookingCart>;
|
|
22
|
+
paymentConfiguration: (language?: string, currency?: string, country?: string) => Promise<Providers.Gyg.PaymentConfiguration[]>;
|
|
23
|
+
}
|
|
24
|
+
export default API;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Providers } from '@tripian/model';
|
|
2
|
-
declare const allCategories: Providers.Gyg.Category[];
|
|
3
|
-
export default allCategories;
|
|
1
|
+
import { Providers } from '@tripian/model';
|
|
2
|
+
declare const allCategories: Providers.Gyg.Category[];
|
|
3
|
+
export default allCategories;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
declare const uniqueTour = false;
|
|
2
|
-
declare const titleCategoryIds: {
|
|
3
|
-
title: string;
|
|
4
|
-
categoryIds: number[];
|
|
5
|
-
}[];
|
|
6
|
-
export { uniqueTour, titleCategoryIds };
|
|
1
|
+
declare const uniqueTour = false;
|
|
2
|
+
declare const titleCategoryIds: {
|
|
3
|
+
title: string;
|
|
4
|
+
categoryIds: number[];
|
|
5
|
+
}[];
|
|
6
|
+
export { uniqueTour, titleCategoryIds };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { AxiosError } from 'axios';
|
|
2
|
-
interface GygErrorResponse {
|
|
3
|
-
apiVersion: string;
|
|
4
|
-
date: string;
|
|
5
|
-
descriptor: string;
|
|
6
|
-
errors: {
|
|
7
|
-
errorCode: number;
|
|
8
|
-
errorMessage: string;
|
|
9
|
-
}[];
|
|
10
|
-
helpURL: string;
|
|
11
|
-
method: string;
|
|
12
|
-
query: string;
|
|
13
|
-
status: string;
|
|
14
|
-
}
|
|
15
|
-
declare const handleHttpResponseErrorForGyg: (errorResponse: AxiosError<GygErrorResponse>, dataKey: string, params?: any) => never;
|
|
16
|
-
export { handleHttpResponseErrorForGyg };
|
|
1
|
+
import { AxiosError } from 'axios';
|
|
2
|
+
interface GygErrorResponse {
|
|
3
|
+
apiVersion: string;
|
|
4
|
+
date: string;
|
|
5
|
+
descriptor: string;
|
|
6
|
+
errors: {
|
|
7
|
+
errorCode: number;
|
|
8
|
+
errorMessage: string;
|
|
9
|
+
}[];
|
|
10
|
+
helpURL: string;
|
|
11
|
+
method: string;
|
|
12
|
+
query: string;
|
|
13
|
+
status: string;
|
|
14
|
+
}
|
|
15
|
+
declare const handleHttpResponseErrorForGyg: (errorResponse: AxiosError<GygErrorResponse>, dataKey: string, params?: any) => never;
|
|
16
|
+
export { handleHttpResponseErrorForGyg };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Providers } from '@tripian/model';
|
|
2
|
-
declare const mockTour: Providers.Gyg.Tour;
|
|
3
|
-
export default mockTour;
|
|
1
|
+
import { Providers } from '@tripian/model';
|
|
2
|
+
declare const mockTour: Providers.Gyg.Tour;
|
|
3
|
+
export default mockTour;
|
package/providers/yelp/API.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { Providers } from '@tripian/model';
|
|
2
|
-
declare class API {
|
|
3
|
-
private axios;
|
|
4
|
-
private baseURL;
|
|
5
|
-
private sandboxToken;
|
|
6
|
-
private prodToken;
|
|
7
|
-
private sandbox;
|
|
8
|
-
constructor(sandbox?: boolean);
|
|
9
|
-
business: (id: string) => Promise<Providers.Yelp.Business>;
|
|
10
|
-
openings: (openings: Providers.Yelp.OpeningsRequest) => Promise<Providers.Yelp.Openings>;
|
|
11
|
-
hold: (hold: Providers.Yelp.HoldRequest) => Promise<Providers.Yelp.Hold>;
|
|
12
|
-
reservationStatus: (reservationId: string) => Promise<Providers.Yelp.ReservationStatusResponse>;
|
|
13
|
-
reservationCancel: (reservationId: string) => Promise<any>;
|
|
14
|
-
reservation: (reservation: Providers.Yelp.ReservationRequest) => Promise<Providers.Yelp.Reservation>;
|
|
15
|
-
}
|
|
16
|
-
export default API;
|
|
1
|
+
import { Providers } from '@tripian/model';
|
|
2
|
+
declare class API {
|
|
3
|
+
private axios;
|
|
4
|
+
private baseURL;
|
|
5
|
+
private sandboxToken;
|
|
6
|
+
private prodToken;
|
|
7
|
+
private sandbox;
|
|
8
|
+
constructor(sandbox?: boolean);
|
|
9
|
+
business: (id: string) => Promise<Providers.Yelp.Business>;
|
|
10
|
+
openings: (openings: Providers.Yelp.OpeningsRequest) => Promise<Providers.Yelp.Openings>;
|
|
11
|
+
hold: (hold: Providers.Yelp.HoldRequest) => Promise<Providers.Yelp.Hold>;
|
|
12
|
+
reservationStatus: (reservationId: string) => Promise<Providers.Yelp.ReservationStatusResponse>;
|
|
13
|
+
reservationCancel: (reservationId: string) => Promise<any>;
|
|
14
|
+
reservation: (reservation: Providers.Yelp.ReservationRequest) => Promise<Providers.Yelp.Reservation>;
|
|
15
|
+
}
|
|
16
|
+
export default API;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Providers } from '@tripian/model';
|
|
2
|
-
declare const testBusiness: Providers.Yelp.Business;
|
|
3
|
-
export default testBusiness;
|
|
1
|
+
import { Providers } from '@tripian/model';
|
|
2
|
+
declare const testBusiness: Providers.Yelp.Business;
|
|
3
|
+
export default testBusiness;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Providers } from '@tripian/model';
|
|
2
|
-
declare const hold: Providers.Yelp.Hold;
|
|
3
|
-
export default hold;
|
|
1
|
+
import { Providers } from '@tripian/model';
|
|
2
|
+
declare const hold: Providers.Yelp.Hold;
|
|
3
|
+
export default hold;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Providers } from '@tripian/model';
|
|
2
|
-
declare const openings: Providers.Yelp.Openings;
|
|
3
|
-
export default openings;
|
|
1
|
+
import { Providers } from '@tripian/model';
|
|
2
|
+
declare const openings: Providers.Yelp.Openings;
|
|
3
|
+
export default openings;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Providers } from '@tripian/model';
|
|
2
|
-
declare const reservation: Providers.Yelp.Reservation;
|
|
3
|
-
export default reservation;
|
|
1
|
+
import { Providers } from '@tripian/model';
|
|
2
|
+
declare const reservation: Providers.Yelp.Reservation;
|
|
3
|
+
export default reservation;
|