@tripian/model 9.1.32 → 9.1.34
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 +1 -1
- package/api/v4/models/PoiCategory.d.ts +2 -4
- 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';
|
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:
|
|
12
|
-
export declare const getSubCategoryIds: (parentCategoryId: number, poiCategories?: PoiCategory[]) => number[];
|
|
9
|
+
export declare const getCategoryGroups: (categoriesData: PoiCategoryGroup[]) => CategoryGroupResult[];
|
|
10
|
+
export declare const getCategoryGroup: (categoryId: string, 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;
|