@tripian/core 2.0.0 → 4.1.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/index.d.ts CHANGED
@@ -5,6 +5,7 @@ import API from './api/API';
5
5
  import ProvidersYelpAPI from './providers/yelp/API';
6
6
  import ProvidersGlxAPI from './providers/glx/API';
7
7
  import ProvidersGygAPI from './providers/gyg/API';
8
+ import ProvidersBbAPI from './providers/bb/API';
8
9
  /**
9
10
  * Env
10
11
  */
@@ -27,14 +28,16 @@ declare let api: API;
27
28
  * This function initilize for web sdk.
28
29
  */
29
30
  declare const init: (url: string, xApiKey: string, token?: Model.Token | undefined, useCahce?: boolean) => void;
30
- interface IProviders {
31
+ declare type Providers = {
31
32
  yelp?: ProvidersYelpAPI;
32
33
  glx?: ProvidersGlxAPI;
33
34
  gyg?: ProvidersGygAPI;
35
+ bb?: ProvidersBbAPI;
34
36
  yelpInit: (sandbox?: boolean) => void;
35
37
  glxInit: () => Promise<Providers.Glx.Token>;
36
- gygInit: () => void;
37
- }
38
- declare const providers: IProviders;
38
+ gygInit: (sandbox?: boolean) => void;
39
+ bbInit: (sandbox?: boolean) => Promise<void>;
40
+ };
41
+ declare const providers: Providers;
39
42
  declare const ver: string;
40
43
  export { ver, random, data, api, init, ENV, providers };