@tripian/core 1.0.0 → 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/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/package.json +35 -66
- 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 -24
- 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/xhr/IXhrOptions.d.ts +7 -7
- package/xhr/xhr.d.ts +21 -21
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;
|
package/xhr/IXhrOptions.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import Model from '@tripian/model';
|
|
2
|
-
interface IXhrOptions {
|
|
3
|
-
url: string;
|
|
4
|
-
xApiKey: string;
|
|
5
|
-
token?: Model.Token;
|
|
6
|
-
}
|
|
7
|
-
export default IXhrOptions;
|
|
1
|
+
import Model from '@tripian/model';
|
|
2
|
+
interface IXhrOptions {
|
|
3
|
+
url: string;
|
|
4
|
+
xApiKey: string;
|
|
5
|
+
token?: Model.Token;
|
|
6
|
+
}
|
|
7
|
+
export default IXhrOptions;
|
package/xhr/xhr.d.ts
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import Model from '@tripian/model';
|
|
2
|
-
import IXhrOptions from './IXhrOptions';
|
|
3
|
-
declare class XHR {
|
|
4
|
-
private static instance;
|
|
5
|
-
private axios;
|
|
6
|
-
private token?;
|
|
7
|
-
getToken: () => Model.Token | undefined;
|
|
8
|
-
setToken: (token: Model.Token) => void;
|
|
9
|
-
removeToken: () => void;
|
|
10
|
-
private constructor();
|
|
11
|
-
static getInstance: (xhrOptions: IXhrOptions) => XHR;
|
|
12
|
-
static refreshXhrToken: () => Promise<Model.Token> | undefined;
|
|
13
|
-
private get;
|
|
14
|
-
private getWithPage;
|
|
15
|
-
private post;
|
|
16
|
-
private put;
|
|
17
|
-
private delete;
|
|
18
|
-
req: (httpMethod: string) => <T>(url: string, dataKey: string, params?: any) => Promise<T>;
|
|
19
|
-
reqWithPage: (httpMethod: string) => <T>(url: string, dataKey: string, params?: any) => Promise<Model.DataPayload<T>>;
|
|
20
|
-
}
|
|
21
|
-
export default XHR;
|
|
1
|
+
import Model from '@tripian/model';
|
|
2
|
+
import IXhrOptions from './IXhrOptions';
|
|
3
|
+
declare class XHR {
|
|
4
|
+
private static instance;
|
|
5
|
+
private axios;
|
|
6
|
+
private token?;
|
|
7
|
+
getToken: () => Model.Token | undefined;
|
|
8
|
+
setToken: (token: Model.Token) => void;
|
|
9
|
+
removeToken: () => void;
|
|
10
|
+
private constructor();
|
|
11
|
+
static getInstance: (xhrOptions: IXhrOptions) => XHR;
|
|
12
|
+
static refreshXhrToken: () => Promise<Model.Token> | undefined;
|
|
13
|
+
private get;
|
|
14
|
+
private getWithPage;
|
|
15
|
+
private post;
|
|
16
|
+
private put;
|
|
17
|
+
private delete;
|
|
18
|
+
req: (httpMethod: string) => <T>(url: string, dataKey: string, params?: any) => Promise<T>;
|
|
19
|
+
reqWithPage: (httpMethod: string) => <T>(url: string, dataKey: string, params?: any) => Promise<Model.DataPayload<T>>;
|
|
20
|
+
}
|
|
21
|
+
export default XHR;
|