@tripian/core 6.0.23 → 6.0.24
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.js +2 -2
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/providers/gyg/API.d.ts +29 -0
- package/tcore.umd.js +2 -2
- package/tcore.umd.js.map +1 -1
package/package.json
CHANGED
package/providers/gyg/API.d.ts
CHANGED
|
@@ -1,4 +1,24 @@
|
|
|
1
1
|
import Model, { Providers } from '@tripian/model';
|
|
2
|
+
export declare type GygTourDataFormPersonsCategory = {
|
|
3
|
+
addon: boolean;
|
|
4
|
+
id: number;
|
|
5
|
+
max_age?: number;
|
|
6
|
+
min_age: number;
|
|
7
|
+
name: string;
|
|
8
|
+
stand_alone: boolean;
|
|
9
|
+
};
|
|
10
|
+
export declare type GygTourDataOptionAvailability = {
|
|
11
|
+
availability_id: number;
|
|
12
|
+
} & Providers.Gyg.TourAvailability & Providers.Gyg.TourOptionPricing;
|
|
13
|
+
export declare type GygTourDataOption = Providers.Gyg.TourOption & {
|
|
14
|
+
availabilities: GygTourDataOptionAvailability[];
|
|
15
|
+
};
|
|
16
|
+
export declare type GygTourData = {
|
|
17
|
+
tour: Providers.Gyg.Tour;
|
|
18
|
+
availableDates: string[];
|
|
19
|
+
formPersonsCategories: GygTourDataFormPersonsCategory[];
|
|
20
|
+
options: GygTourDataOption[];
|
|
21
|
+
};
|
|
2
22
|
declare class API {
|
|
3
23
|
private axios;
|
|
4
24
|
private proxyURL;
|
|
@@ -8,6 +28,15 @@ declare class API {
|
|
|
8
28
|
category: (categoryId: number, language?: string, currency?: string) => Promise<Providers.Gyg.Category>;
|
|
9
29
|
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[]>;
|
|
10
30
|
tour: (tourId: number, language?: string, currency?: string, preformatted?: string) => Promise<Providers.Gyg.Tour>;
|
|
31
|
+
private tourOptions_1;
|
|
32
|
+
private optionAvailabilities_2;
|
|
33
|
+
private optionPricings_3;
|
|
34
|
+
tourData: (tourId: number, startDate: string, endDate: string, language?: string, currency?: string) => Promise<GygTourData>;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* REMOVE
|
|
38
|
+
*
|
|
39
|
+
*/
|
|
11
40
|
tourAvailabilities: (tourId: number, startDate: string, endDate?: string, language?: string, currency?: string) => Promise<Providers.Gyg.TourAvailability[]>;
|
|
12
41
|
options: (tourId: number, language?: string, currency?: string) => Promise<Providers.Gyg.TourOption[]>;
|
|
13
42
|
optionAvailabilities: (optionId: number, startDate: string, endDate?: string, language?: string, currency?: string) => Promise<Providers.Gyg.TourAvailability[]>;
|