@tripian/core 8.3.0 → 9.0.1

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.
@@ -0,0 +1,16 @@
1
+ import Model from '@tripian/model';
2
+ declare class TDate {
3
+ private tripianDates;
4
+ private startDate;
5
+ private endDate;
6
+ private recurrent;
7
+ private blackouts;
8
+ private availableDays;
9
+ constructor(tripianDates: Model.TripianDates);
10
+ private calc;
11
+ include: (dateString: string) => boolean;
12
+ toList: () => string[];
13
+ get: () => Model.TripianDates;
14
+ set: (tripianDates: Model.TripianDates) => void;
15
+ }
16
+ export default TDate;
package/easy/easy.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import Model from '@tripian/model';
2
+ import TDate from './TDate';
2
3
  declare const easy: {
3
4
  /**
4
5
  * Replace stringQuery, param.key with param.value.
@@ -31,5 +32,6 @@ declare const easy: {
31
32
  parseToken: (token: Model.Token) => Model.TokenPayload | undefined;
32
33
  accessTokenExpSecond: (tokenPayload: Model.TokenPayload) => number;
33
34
  refreshTokenExpSecond: (tokenPayload: Model.TokenPayload) => number;
35
+ TDate: typeof TDate;
34
36
  };
35
37
  export default easy;
package/index.d.ts CHANGED
@@ -13,7 +13,7 @@ declare let api: API;
13
13
  * This function initilize for web sdk.
14
14
  */
15
15
  declare const init: (url: string, xApiKey: string, token?: Model.Token, useCahce?: boolean) => void;
16
- declare type Providers = {
16
+ type Providers = {
17
17
  yelp?: ProvidersYelpAPI;
18
18
  gyg?: ProvidersGygAPI;
19
19
  bb?: ProvidersBbAPI;