@tripian/core 9.0.31 → 9.0.33
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 +5 -0
- package/api/const/ApiConstModel.d.ts +2 -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[]>;
|
|
@@ -217,6 +221,7 @@ declare class API {
|
|
|
217
221
|
campaignCustomerReport: (campaignId: number, query: Partial<Model.CampaignCustomerReportRequest>) => Promise<Model.DataPayload<Model.CampaignCustomerReport>>;
|
|
218
222
|
businessReport: (query: Partial<Model.BusinessReportRequest>) => Promise<Model.DataPayload<Model.BusinessReport>>;
|
|
219
223
|
businessPreRegisterReport: (query: Partial<Model.BusinessPreRegisterReportRequest>) => Promise<Model.DataPayload<Model.BusinessReport>>;
|
|
224
|
+
businessOfferReport: (page?: number, limit?: number) => Promise<Model.DataPayload<Model.BusinessOfferReport>>;
|
|
220
225
|
businessExport: (reportType: 'campaign-customer-report' | 'campaign-report' | 'business-report' | 'pre-register-report', campaignId?: number) => Promise<{
|
|
221
226
|
url: string;
|
|
222
227
|
}>;
|
|
@@ -20,6 +20,7 @@ interface ApiConstModel {
|
|
|
20
20
|
POI: ApiConst;
|
|
21
21
|
POIS_OPEN_SEARCH: ApiConst;
|
|
22
22
|
POIS_SEARCH_AUTO_COMPLETE: ApiConst;
|
|
23
|
+
POIS_SEARCH_AUTO_COMPLETE_TAGS: ApiConst;
|
|
23
24
|
CUSTOM_POIS: ApiConst;
|
|
24
25
|
TOP_TEN: ApiConst;
|
|
25
26
|
REGISTER: ApiConst;
|
|
@@ -114,6 +115,7 @@ interface ApiConstModel {
|
|
|
114
115
|
CAMPAIGN_CUSTOMER_REPORT: ApiConst;
|
|
115
116
|
BUSINESS_REPORT: ApiConst;
|
|
116
117
|
BUSINESS_PRE_REGISTER_REPORT: ApiConst;
|
|
118
|
+
BUSINESS_OFFER_REPORT: ApiConst;
|
|
117
119
|
BUSINESS_EXPORT: ApiConst;
|
|
118
120
|
TRANSLATIONS: ApiConst;
|
|
119
121
|
LOGS: ApiConst;
|
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
|
*
|