@tripian/core 9.0.31 → 9.0.32
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/API.d.ts +4 -0
- package/api/const/ApiConstModel.d.ts +1 -0
- package/data/dataModel.d.ts +12 -0
- package/easy/handle/cache/Cached.d.ts +10 -0
- package/easy/handle/cache/cacheHelper.d.ts +10 -0
- package/index.js +4 -4
- package/index.js.map +1 -1
- package/package.json +2 -2
- package/tcore.umd.js +4 -4
- package/tcore.umd.js.map +1 -1
package/api/API.d.ts
CHANGED
|
@@ -28,6 +28,10 @@ declare class API {
|
|
|
28
28
|
poisNameSearch: ({ cityId, search, poiCategories, showOffersOnly, limit, page, }: Model.PoisRequestName) => Promise<Model.DataPayload<Model.Poi[]>>;
|
|
29
29
|
poisOpenSearch: ({ cityId, search, poiCategories, showOffersOnly, limit, page, }: Model.PoisRequestName) => Promise<Model.DataPayload<Model.Poi[]>>;
|
|
30
30
|
poisSearchAutoComplete: () => Promise<string[]>;
|
|
31
|
+
poisSearchAutoCompleteTags: (cityId: number, poiCategories?: string) => Promise<{
|
|
32
|
+
id: number;
|
|
33
|
+
name: string;
|
|
34
|
+
}[]>;
|
|
31
35
|
poisCoordinateSearch: ({ poiCategories, coordinate, distance, bounds, showOffersOnly, limit, }: Model.PoisRequestCoordinate) => Promise<Model.Poi[]>;
|
|
32
36
|
poisMustTrySearch: ({ cityId, mustTryIds, limit }: Model.PoisRequestMustTry) => Promise<Model.Poi[]>;
|
|
33
37
|
pois: (poiIds: string[], withOffers: number, cityId?: number) => Promise<Model.Poi[]>;
|
package/data/dataModel.d.ts
CHANGED
|
@@ -41,4 +41,16 @@ export interface DataModel {
|
|
|
41
41
|
categoryGroup: Model.POI_CATEGORY_GROUP;
|
|
42
42
|
pois: Model.DataPayload<Model.Poi[]>;
|
|
43
43
|
}[];
|
|
44
|
+
autoCompleteTags: {
|
|
45
|
+
id: number;
|
|
46
|
+
name: string;
|
|
47
|
+
}[];
|
|
48
|
+
autoCompleteTagsAll: {
|
|
49
|
+
cityId: number;
|
|
50
|
+
categoryGroup: Model.POI_CATEGORY_GROUP;
|
|
51
|
+
tags: {
|
|
52
|
+
id: number;
|
|
53
|
+
name: string;
|
|
54
|
+
}[];
|
|
55
|
+
}[];
|
|
44
56
|
}
|
|
@@ -23,6 +23,16 @@ declare class Cached {
|
|
|
23
23
|
*
|
|
24
24
|
*/
|
|
25
25
|
static poiCategories: () => Model.PoiCategory[] | undefined;
|
|
26
|
+
/**
|
|
27
|
+
******************************************************************************
|
|
28
|
+
*
|
|
29
|
+
* POIS Category Tags
|
|
30
|
+
*
|
|
31
|
+
*/
|
|
32
|
+
static autoCompleteTagsAll: (cityId: number, category: string) => {
|
|
33
|
+
id: number;
|
|
34
|
+
name: string;
|
|
35
|
+
}[] | undefined;
|
|
26
36
|
/**
|
|
27
37
|
******************************************************************************
|
|
28
38
|
*
|
|
@@ -13,6 +13,16 @@ export declare const citiesConcat: (cities: Model.City[], newCities: Model.City[
|
|
|
13
13
|
*/
|
|
14
14
|
export declare const poiCached: (pois: Model.Poi[], id: number) => Model.Poi | undefined;
|
|
15
15
|
export declare const poisConcat: (pois: Model.Poi[], newPois: Model.Poi[]) => Model.Poi[];
|
|
16
|
+
export declare const autoCompleteTagsConcat: (tags: {
|
|
17
|
+
id: number;
|
|
18
|
+
name: string;
|
|
19
|
+
}[], newTags: {
|
|
20
|
+
id: number;
|
|
21
|
+
name: string;
|
|
22
|
+
}[]) => {
|
|
23
|
+
id: number;
|
|
24
|
+
name: string;
|
|
25
|
+
}[];
|
|
16
26
|
/**
|
|
17
27
|
******************************************************************************
|
|
18
28
|
*
|