@tripian/core 9.1.98 → 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 +11 -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
|
@@ -143,6 +143,17 @@ declare class API {
|
|
|
143
143
|
tripDownloadIcs: (tripHash: string) => Promise<void>;
|
|
144
144
|
tripGetShared: (tripHash: string, delay?: boolean) => Promise<Model.Trip>;
|
|
145
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>;
|
|
146
157
|
/**
|
|
147
158
|
* Reservations
|
|
148
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 };
|