@tripian/core 9.1.97 → 9.2.1
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 +12 -0
- package/api/const/ApiConstModel.d.ts +6 -0
- package/index.js +56 -56
- package/package.json +2 -2
- package/tcore.umd.js +56 -56
- package/tcore.umd.js.map +1 -1
package/api/API.d.ts
CHANGED
|
@@ -30,6 +30,7 @@ declare class API {
|
|
|
30
30
|
poisSearch: (poisRequest: Model.PoisRequest) => Promise<Model.DataPayload<Model.Poi[]>>;
|
|
31
31
|
poisNameSearch: ({ cityId, search, poiCategories, showOffersOnly, showBookingsOnly, limit, page, }: Model.PoisRequestName) => Promise<Model.DataPayload<Model.Poi[]>>;
|
|
32
32
|
poisOpenSearch: ({ cityId, search, poiCategories, showOffersOnly, showBookingsOnly, limit, page, }: Model.PoisRequestName) => Promise<Model.DataPayload<Model.Poi[]>>;
|
|
33
|
+
poisOpenSearchSort: ({ cityId, search, poiCategories, showOffersOnly, showBookingsOnly, limit, page, sort, }: Model.PoisRequestName) => Promise<Model.DataPayload<Model.Poi[]>>;
|
|
33
34
|
poisSearchAutoComplete: () => Promise<string[]>;
|
|
34
35
|
poisSearchAutoCompleteTags: (cityId: number, poiCategories?: string) => Promise<{
|
|
35
36
|
id: number;
|
|
@@ -142,6 +143,17 @@ declare class API {
|
|
|
142
143
|
tripDownloadIcs: (tripHash: string) => Promise<void>;
|
|
143
144
|
tripGetShared: (tripHash: string, delay?: boolean) => Promise<Model.Trip>;
|
|
144
145
|
tripShare: (tripHash: string, share: boolean) => Promise<boolean>;
|
|
146
|
+
/**
|
|
147
|
+
* Timeline
|
|
148
|
+
*/
|
|
149
|
+
timeline: (tripHash: string, minDayIndex?: number, force?: boolean, sleepMs?: number, retryCount?: number) => Promise<Model.TimelineTrip>;
|
|
150
|
+
timelineTripAdd: (tripProfile: Model.TimelineTripProfile, minDayIndex?: number) => Promise<Model.TimelineTrip>;
|
|
151
|
+
timelineTrips: (limit?: number) => Promise<Model.TimelineTrip[]>;
|
|
152
|
+
timelineStepAdd: (planId: number, poiId: string, startTime?: string, endTime?: string) => Promise<Model.TimelineStep>;
|
|
153
|
+
timelineCustomStepAdd: (planId: number, customPoi: Model.CustomPoi, stepType: string, startTime?: string, endTime?: string) => Promise<Model.TimelineStep>;
|
|
154
|
+
timelineStepUpdateTimes: (stepId: number, startTime: string, endTime: string) => Promise<Model.TimelineStep>;
|
|
155
|
+
timelineStepReplace: (stepId: number, newPoiId: string) => Promise<Model.TimelineStep>;
|
|
156
|
+
timelineStepDelete: (stepId: number) => Promise<number>;
|
|
145
157
|
/**
|
|
146
158
|
* Reservations
|
|
147
159
|
*/
|
|
@@ -126,5 +126,11 @@ interface ApiConstModel {
|
|
|
126
126
|
LOGS: ApiConst;
|
|
127
127
|
VISA_IFRAME_TOKEN: ApiConst;
|
|
128
128
|
VISA_VALIDATOR_CHECK: ApiConst;
|
|
129
|
+
TIMELINE_TRIP_ADD: ApiConst;
|
|
130
|
+
TIMELINE: ApiConst;
|
|
131
|
+
TIMELINE_TRIPS: ApiConst;
|
|
132
|
+
TIMELINE_STEP_ADD: ApiConst;
|
|
133
|
+
TIMELINE_STEP_UPDATE: ApiConst;
|
|
134
|
+
TIMELINE_STEP_DELETE: ApiConst;
|
|
129
135
|
}
|
|
130
136
|
export { ApiConst, ApiConstModel };
|