@tripian/core 6.0.17 → 6.0.22

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/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@tripian/core",
3
- "version": "6.0.17",
3
+ "version": "6.0.22",
4
4
  "description": "Tripian Inc Web SDK",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
7
7
  "dependencies": {
8
- "@tripian/model": "6.0.17",
8
+ "@tripian/model": "6.0.20",
9
9
  "adyen-encryption": "^0.1.1",
10
10
  "axios": "^0.19.1",
11
11
  "moment": "^2.29.0"
@@ -1,17 +1,11 @@
1
1
  import { Providers } from '@tripian/model';
2
2
  declare class API {
3
3
  private axios;
4
+ private proxyURL;
4
5
  private sandbox;
5
- private apiKey;
6
- private token;
7
- private tripianProxyURL;
8
- private sandboxUrl;
9
- private sandboxApiKey;
10
- private prodUrl;
11
- private prodApiKey;
12
- constructor(sandbox?: boolean);
6
+ constructor(apiUrl: string, sandbox: boolean);
13
7
  private getImgUrl;
14
- login: () => Promise<void>;
8
+ login: (apiKey: string) => Promise<void>;
15
9
  searchActivities: (startDate: string, endDate: string) => Promise<Providers.Bb.SearchActivitiesResponse>;
16
10
  activityInfo: (offerKey: string) => Promise<Providers.Bb.ActivityInfo>;
17
11
  searchAccommodation: (startDate: string, endDate: string, adults: number, bounds: number[]) => Promise<Providers.Bb.SearchAccommodationResponse>;
@@ -1,11 +1,9 @@
1
1
  import Model, { Providers } from '@tripian/model';
2
2
  declare class API {
3
3
  private axios;
4
- private tripianProxyURL;
5
- private baseURL;
6
- private baseURL_TEST;
7
- private access_token;
8
- constructor(test?: boolean);
4
+ private proxyURL;
5
+ private sandbox;
6
+ constructor(apiUrl: string, apiToken: string, sandbox: boolean);
9
7
  categories: (limit?: number, language?: string, currency?: string) => Promise<Providers.Gyg.Category[]>;
10
8
  category: (categoryId: number, language?: string, currency?: string) => Promise<Providers.Gyg.Category>;
11
9
  tours: (cityName: string, cityCoordinate?: Model.Coordinate, radius?: number, date?: Providers.Gyg.TourDateRange, categoryIds?: number[], unique?: boolean, limit?: number, preformatted?: string, language?: string, currency?: string) => Promise<Providers.Gyg.CatalogGroup[]>;
@@ -1,11 +1,9 @@
1
1
  import { Providers } from '@tripian/model';
2
2
  declare class API {
3
3
  private axios;
4
- private baseURL;
5
- private sandboxToken;
6
- private prodToken;
4
+ private proxyURL;
7
5
  private sandbox;
8
- constructor(sandbox?: boolean);
6
+ constructor(apiUrl: string, apiToken: string, sandbox: boolean);
9
7
  business: (id: string) => Promise<Providers.Yelp.Business>;
10
8
  openings: (openings: Providers.Yelp.OpeningsRequest) => Promise<Providers.Yelp.Openings>;
11
9
  hold: (hold: Providers.Yelp.HoldRequest) => Promise<Providers.Yelp.Hold>;