@tripian/model 9.1.33 → 9.1.35
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/api/v4/index.d.ts +2 -0
- package/api/v4/models/CategoryGroupResult.d.ts +4 -0
- package/api/v4/models/CategoryList.d.ts +6 -0
- package/api/v4/models/CategoryListData.d.ts +6 -0
- package/api/v4/models/CategoryListGroup.d.ts +5 -0
- package/api/v4/models/CouponApplication.d.ts +29 -31
- package/api/v4/models/PoiCategory.d.ts +1 -3
- package/api/v4/models/PoiCategoryGroup.d.ts +3 -2
- package/api/v4/models/PoiCategoryResponse.d.ts +6 -0
- package/helper/index.d.ts +3 -5
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/package.json +1 -1
package/api/v4/index.d.ts
CHANGED
|
@@ -36,6 +36,7 @@ export * from './models/BusinessVerify';
|
|
|
36
36
|
export * from './models/Campaign';
|
|
37
37
|
export * from './models/CampaignReport';
|
|
38
38
|
export * from './models/CampaignCustomerReport';
|
|
39
|
+
export * from './models/CategoryGroupResult';
|
|
39
40
|
export * from './models/City';
|
|
40
41
|
export * from './models/CityEvent';
|
|
41
42
|
export * from './models/CityInfo';
|
|
@@ -64,6 +65,7 @@ export * from './models/Poi';
|
|
|
64
65
|
export * from './models/PoiCategory';
|
|
65
66
|
export * from './models/PoiCategoryGroup';
|
|
66
67
|
export * from './models/PoiCategoryParent';
|
|
68
|
+
export * from './models/PoiCategoryResponse';
|
|
67
69
|
export * from './models/PoiReference';
|
|
68
70
|
export * from './models/PreRegister';
|
|
69
71
|
export * from './models/Question';
|
|
@@ -1,41 +1,39 @@
|
|
|
1
1
|
export type TravelInformation = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
adults: number;
|
|
3
|
+
nameOfProperty?: string;
|
|
4
|
+
proofOfHolidayBookingUrl: string;
|
|
5
5
|
};
|
|
6
6
|
export type PersonalInformation = {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
7
|
+
title: 'Mr' | 'Mrs' | 'Ms';
|
|
8
|
+
firstName: string;
|
|
9
|
+
lastName: string;
|
|
10
|
+
arrivalDate: string;
|
|
11
|
+
departureDate: string;
|
|
12
|
+
departureDestination: string;
|
|
13
|
+
airline: string;
|
|
14
|
+
flightNumber: string;
|
|
15
|
+
dateOfBirth: string;
|
|
16
|
+
emailAddress: string;
|
|
17
|
+
phoneNumber: string;
|
|
18
18
|
};
|
|
19
19
|
export type MarketingQuestions = {
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
howDidYouHear: string;
|
|
21
|
+
howDidYouBookYourTrip: 'Online' | 'Travel Agent/ Tour Operator' | 'Direct with hotel';
|
|
22
22
|
};
|
|
23
23
|
export type CouponApplicationRequest = {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
travelInformation: TravelInformation;
|
|
25
|
+
personalInformations: PersonalInformation[];
|
|
26
|
+
marketingQuestions: MarketingQuestions;
|
|
27
27
|
};
|
|
28
28
|
export type CouponApplication = {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
>;
|
|
40
|
-
marketingQuestions: MarketingQuestions;
|
|
29
|
+
id: number;
|
|
30
|
+
applicationDate: string;
|
|
31
|
+
travelInformation: TravelInformation;
|
|
32
|
+
personalInformations: Array<PersonalInformation & {
|
|
33
|
+
id: number;
|
|
34
|
+
campaign_id: number;
|
|
35
|
+
issueDate: string | null;
|
|
36
|
+
status: number;
|
|
37
|
+
}>;
|
|
38
|
+
marketingQuestions: MarketingQuestions;
|
|
41
39
|
};
|
package/helper/index.d.ts
CHANGED
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
import Model from '..';
|
|
2
|
-
import { Theme } from '../api/v4';
|
|
2
|
+
import { CategoryGroupResult, Theme } from '../api/v4';
|
|
3
3
|
import { HourFormat } from '../api/v4/models/HourFormat';
|
|
4
|
-
import { PoiCategory } from '../api/v4/models/PoiCategory';
|
|
5
4
|
import { PoiCategoryGroup } from '../api/v4/models/PoiCategoryGroup';
|
|
6
5
|
export * from './plural';
|
|
7
6
|
export declare const imgUrl: (apiPlaceUrl: string, x?: number, y?: number, type?: string) => string;
|
|
8
7
|
export declare const cityImgUrl: (apiPlaceUrl: string, x?: number, y?: number) => string;
|
|
9
8
|
export declare const imgUrlThumbnails: (imageUrl: string) => string | undefined;
|
|
10
|
-
export declare const getCategoryGroups: (
|
|
11
|
-
export declare const getCategoryGroup: (categoryId: number,
|
|
12
|
-
export declare const getSubCategoryIds: (parentCategoryId: number, poiCategories?: PoiCategory[]) => number[];
|
|
9
|
+
export declare const getCategoryGroups: (categoriesData: PoiCategoryGroup[]) => CategoryGroupResult[];
|
|
10
|
+
export declare const getCategoryGroup: (categoryId: number, poiCategoryGroups?: PoiCategoryGroup[]) => string;
|
|
13
11
|
export declare const hoursFormat: (hour: string | null, daysArray: string[], closed: string) => HourFormat[];
|
|
14
12
|
export declare const compareStringForSort: (a: string, b: string) => number;
|
|
15
13
|
export declare const emailFormatValid: (email: string) => RegExpMatchArray | null;
|