@tripian/core 9.1.98 → 9.2.3
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 +13 -0
- package/api/const/ApiConstModel.d.ts +7 -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
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import Model from '@tripian/model';
|
|
2
2
|
import IXhrOptions from '../xhr/IXhrOptions';
|
|
3
|
+
import { DeleteUpdateResponse } from '../../../ui-tripian-model/dist/api/v4/responses/DeleteUpdateResponse';
|
|
3
4
|
declare class API {
|
|
4
5
|
private xhr;
|
|
5
6
|
private forceRequest;
|
|
@@ -143,6 +144,18 @@ declare class API {
|
|
|
143
144
|
tripDownloadIcs: (tripHash: string) => Promise<void>;
|
|
144
145
|
tripGetShared: (tripHash: string, delay?: boolean) => Promise<Model.Trip>;
|
|
145
146
|
tripShare: (tripHash: string, share: boolean) => Promise<boolean>;
|
|
147
|
+
/**
|
|
148
|
+
* Timeline
|
|
149
|
+
*/
|
|
150
|
+
timeline: (tripHash: string, minDayIndex?: number, force?: boolean, sleepMs?: number, retryCount?: number) => Promise<Model.TimelineTrip>;
|
|
151
|
+
timelineTripAdd: (tripProfile: Model.TimelineTripProfile, minDayIndex?: number) => Promise<Model.TimelineTrip>;
|
|
152
|
+
timelineTrips: (limit?: number) => Promise<Model.TimelineTrip[]>;
|
|
153
|
+
timelineStepAdd: (planId: number, poiId: string, startTime?: string, endTime?: string) => Promise<Model.TimelineStep>;
|
|
154
|
+
timelineCustomStepAdd: (planId: number, customPoi: Model.CustomPoi, stepType: string, startTime?: string, endTime?: string) => Promise<Model.TimelineStep>;
|
|
155
|
+
timelineStepUpdateTimes: (stepId: number, startTime: string, endTime: string) => Promise<Model.TimelineStep>;
|
|
156
|
+
timelineStepReplace: (stepId: number, newPoiId: string) => Promise<Model.TimelineStep>;
|
|
157
|
+
timelineStepDelete: (stepId: number) => Promise<number>;
|
|
158
|
+
timelineUpdate: (tripHash: string, tripProfile: Model.TimelineSegmentRequest) => Promise<Model.DeleteUpdateResponse>;
|
|
146
159
|
/**
|
|
147
160
|
* Reservations
|
|
148
161
|
*/
|
|
@@ -126,5 +126,12 @@ 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;
|
|
135
|
+
TIMELINE_UPDATE: ApiConst;
|
|
129
136
|
}
|
|
130
137
|
export { ApiConst, ApiConstModel };
|