@tripian/core 7.1.7 → 7.3.0
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 -6
- package/api/const/ApiConstModel.d.ts +3 -5
- package/index.d.ts +1 -1
- 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
|
@@ -65,7 +65,7 @@ declare class API {
|
|
|
65
65
|
notificationsUnseen: () => Promise<Model.NotificationUnseen>;
|
|
66
66
|
notificationsUpdateUnseen: () => Promise<Model.DeleteUpdateResponse>;
|
|
67
67
|
notificationsSettings: () => Promise<Model.NotificationSettings[]>;
|
|
68
|
-
notificationsUpdateSettings: (settingId: number, checked:
|
|
68
|
+
notificationsUpdateSettings: (settingId: number, checked: boolean) => Promise<Model.NotificationSettings[]>;
|
|
69
69
|
/**
|
|
70
70
|
* Companions
|
|
71
71
|
*/
|
|
@@ -114,17 +114,15 @@ declare class API {
|
|
|
114
114
|
* Trips
|
|
115
115
|
*/
|
|
116
116
|
tripRefs: (limit?: number) => Promise<Model.TripReference[]>;
|
|
117
|
-
tripSavedRefs: (limit?: number, force?: boolean) => Promise<Model.TripReference[]>;
|
|
118
117
|
tripRef: (hash: string) => Promise<Model.TripReference>;
|
|
119
118
|
trip: (tripHash: string, minDayIndex?: number, force?: boolean, sleepMs?: number) => Promise<Model.Trip>;
|
|
120
119
|
tripAdd: (tripProfile: Model.TripProfile, minDayIndex?: number) => Promise<Model.Trip>;
|
|
120
|
+
tripClone: (tripHash: string) => Promise<Model.Trip>;
|
|
121
121
|
tripUpdate: (tripHash: string, tripProfile: Model.TripProfile, minDayIndex?: number) => Promise<Model.Trip>;
|
|
122
122
|
tripDelete: (tripHash: string) => Promise<number>;
|
|
123
123
|
tripDownloadIcs: (tripHash: string) => Promise<void>;
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
tripShared: (tripHash: string) => Promise<Model.Trip>;
|
|
127
|
-
tripSharedUpdate: (tripHash: string, share: boolean) => Promise<boolean>;
|
|
124
|
+
tripGetShared: (tripHash: string) => Promise<Model.Trip>;
|
|
125
|
+
tripShare: (tripHash: string, share: boolean) => Promise<boolean>;
|
|
128
126
|
/**
|
|
129
127
|
* Reservations
|
|
130
128
|
*/
|
|
@@ -57,16 +57,14 @@ interface ApiConstModel {
|
|
|
57
57
|
STEP_DELETE: ApiConst;
|
|
58
58
|
QUESTIONS: ApiConst;
|
|
59
59
|
TRIPS: ApiConst;
|
|
60
|
-
TRIPS_SAVED: ApiConst;
|
|
61
60
|
TRIP_WITH_HASH: ApiConst;
|
|
62
61
|
TRIP: ApiConst;
|
|
63
62
|
TRIP_ADD: ApiConst;
|
|
63
|
+
TRIP_CLONE: ApiConst;
|
|
64
64
|
TRIP_UPDATE: ApiConst;
|
|
65
65
|
TRIP_DELETE: ApiConst;
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
TRIP_SHARED: ApiConst;
|
|
69
|
-
TRIP_SHARED_UPDATE: ApiConst;
|
|
66
|
+
TRIP_GET_SHARED: ApiConst;
|
|
67
|
+
TRIP_SHARE: ApiConst;
|
|
70
68
|
TRIP_DOWNLOAD_ICS: ApiConst;
|
|
71
69
|
RESERVATIONS: ApiConst;
|
|
72
70
|
RESERVATION_ADD: ApiConst;
|
package/index.d.ts
CHANGED