@moxi.gmbh/moxi-typescriptmodels 0.1.1081-test-server → 0.1.1111-test-server
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/common.d.ts +40 -40
- package/package.json +1 -1
package/common.d.ts
CHANGED
|
@@ -13,6 +13,10 @@ export interface AcceptUserAgreement extends UserEdit {
|
|
|
13
13
|
|
|
14
14
|
export interface Account {
|
|
15
15
|
accountId?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Derived from subscriptions
|
|
18
|
+
*/
|
|
19
|
+
activeOrganisationTypes?: OrganisationType[];
|
|
16
20
|
/**
|
|
17
21
|
* Derived from subscriptions
|
|
18
22
|
*/
|
|
@@ -139,7 +143,13 @@ export interface AmbulanceInfo {
|
|
|
139
143
|
/**
|
|
140
144
|
* Same as RideInfo, except it does not contain an appointment
|
|
141
145
|
*/
|
|
142
|
-
export interface
|
|
146
|
+
export interface AnonymizedGenericRideInfo extends GenericRideInfo {
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* Information about the ride, from the creator of the ride
|
|
151
|
+
*/
|
|
152
|
+
export interface AnonymizedRideInfo extends RideInfo {
|
|
143
153
|
}
|
|
144
154
|
|
|
145
155
|
export interface Appointment {
|
|
@@ -271,8 +281,7 @@ export interface CreateRideFromSeries extends RideDriverCommand {
|
|
|
271
281
|
booker?: AccountOrTeamRef;
|
|
272
282
|
driver?: AccountOrTeamRef;
|
|
273
283
|
info?: RideInfo;
|
|
274
|
-
|
|
275
|
-
rideSeriesId?: string;
|
|
284
|
+
seriesInfo?: SeriesInfo;
|
|
276
285
|
}
|
|
277
286
|
|
|
278
287
|
export interface CreateSqueezeInPlan extends OptimizerMessage {
|
|
@@ -798,28 +807,6 @@ export interface PlanRide extends RideDriverModifyCommand {
|
|
|
798
807
|
plannedStartTime?: string;
|
|
799
808
|
}
|
|
800
809
|
|
|
801
|
-
export interface ReadUpdateResult<T> {
|
|
802
|
-
after?: T;
|
|
803
|
-
before?: T;
|
|
804
|
-
/**
|
|
805
|
-
* The id of the entity that the update is about
|
|
806
|
-
*/
|
|
807
|
-
entityId?: string;
|
|
808
|
-
/**
|
|
809
|
-
* The type/name of the event that caused this update
|
|
810
|
-
*/
|
|
811
|
-
eventType?: string;
|
|
812
|
-
/**
|
|
813
|
-
* Index of this update
|
|
814
|
-
*/
|
|
815
|
-
index?: number;
|
|
816
|
-
/**
|
|
817
|
-
* Time at which this update occurred
|
|
818
|
-
*/
|
|
819
|
-
timestamp?: string;
|
|
820
|
-
type: "rideseries" | "ride";
|
|
821
|
-
}
|
|
822
|
-
|
|
823
810
|
export interface ReadUpdates {
|
|
824
811
|
clientId?: string;
|
|
825
812
|
maxSize?: number;
|
|
@@ -831,7 +818,7 @@ export interface ReadUpdates {
|
|
|
831
818
|
export interface ReadUpdatesResult {
|
|
832
819
|
clientSegment?: number[];
|
|
833
820
|
lastIndex?: number;
|
|
834
|
-
updates?:
|
|
821
|
+
updates?: any[];
|
|
835
822
|
}
|
|
836
823
|
|
|
837
824
|
export interface Region {
|
|
@@ -969,14 +956,6 @@ export interface Ride {
|
|
|
969
956
|
* Desired Time of Arrival at the Origin/Pick-up location. Derived from info.appointment and info.plannedDuration
|
|
970
957
|
*/
|
|
971
958
|
desiredStartTime?: string;
|
|
972
|
-
/**
|
|
973
|
-
* Display time is the planned time, or else the desired time
|
|
974
|
-
*/
|
|
975
|
-
displayEndTime?: string;
|
|
976
|
-
/**
|
|
977
|
-
* Display time is the planned time, or else the desired time
|
|
978
|
-
*/
|
|
979
|
-
displayStartTime?: string;
|
|
980
959
|
driveStatus?: DriveStatus;
|
|
981
960
|
driver?: AccountOrTeamRef;
|
|
982
961
|
driverReview?: Review;
|
|
@@ -1000,9 +979,16 @@ export interface Ride {
|
|
|
1000
979
|
*/
|
|
1001
980
|
plannedEndTime?: string;
|
|
1002
981
|
plannedStartTime?: string;
|
|
1003
|
-
returnTrip?: boolean;
|
|
1004
982
|
rideId?: string;
|
|
1005
|
-
|
|
983
|
+
/**
|
|
984
|
+
* The time until which rides can be found. It's the planned time or else the desired time.
|
|
985
|
+
*/
|
|
986
|
+
searchEndTime?: string;
|
|
987
|
+
/**
|
|
988
|
+
* The time from which rides can be found. It's the planned time or else the desired time.
|
|
989
|
+
*/
|
|
990
|
+
searchStartTime?: string;
|
|
991
|
+
seriesInfo?: SeriesInfo;
|
|
1006
992
|
startTimeDelay?: number;
|
|
1007
993
|
/**
|
|
1008
994
|
* Derived from driveStatus != null
|
|
@@ -1168,9 +1154,13 @@ export interface RideSeriesPostConfirmCommand {
|
|
|
1168
1154
|
export interface RideSeriesPreConfirmCommand extends RideSeriesCommand {
|
|
1169
1155
|
}
|
|
1170
1156
|
|
|
1171
|
-
export interface RideSeriesUpdate
|
|
1157
|
+
export interface RideSeriesUpdate {
|
|
1172
1158
|
after?: RideSeries;
|
|
1173
1159
|
before?: RideSeries;
|
|
1160
|
+
entityId?: string;
|
|
1161
|
+
eventType?: string;
|
|
1162
|
+
index?: number;
|
|
1163
|
+
timestamp?: string;
|
|
1174
1164
|
type: "rideseries";
|
|
1175
1165
|
}
|
|
1176
1166
|
|
|
@@ -1186,9 +1176,13 @@ export interface RideSystemCommand extends RideCommand {
|
|
|
1186
1176
|
export interface RideUpcaster {
|
|
1187
1177
|
}
|
|
1188
1178
|
|
|
1189
|
-
export interface RideUpdate
|
|
1179
|
+
export interface RideUpdate {
|
|
1190
1180
|
after?: Ride;
|
|
1191
1181
|
before?: Ride;
|
|
1182
|
+
entityId?: string;
|
|
1183
|
+
eventType?: string;
|
|
1184
|
+
index?: number;
|
|
1185
|
+
timestamp?: string;
|
|
1192
1186
|
type: "ride";
|
|
1193
1187
|
}
|
|
1194
1188
|
|
|
@@ -1226,6 +1220,14 @@ export interface SendSlack {
|
|
|
1226
1220
|
message?: string;
|
|
1227
1221
|
}
|
|
1228
1222
|
|
|
1223
|
+
/**
|
|
1224
|
+
* Information about a ride that is part of series.
|
|
1225
|
+
*/
|
|
1226
|
+
export interface SeriesInfo {
|
|
1227
|
+
returnTrip?: boolean;
|
|
1228
|
+
rideSeriesId?: string;
|
|
1229
|
+
}
|
|
1230
|
+
|
|
1229
1231
|
export interface SetSettings extends AccountUpdate {
|
|
1230
1232
|
settings?: any;
|
|
1231
1233
|
}
|
|
@@ -1439,8 +1441,6 @@ export type Mobility = "wheelchair" | "big_or_electric_wheelchair" | "carry_chai
|
|
|
1439
1441
|
|
|
1440
1442
|
export type OrganisationType = "medical" | "fleet";
|
|
1441
1443
|
|
|
1442
|
-
export type ReadUpdateResultUnion<T> = RideUpdate | RideSeriesUpdate;
|
|
1443
|
-
|
|
1444
1444
|
export type RidePurpose = "admission" | "relocation" | "discharge" | "consultation";
|
|
1445
1445
|
|
|
1446
1446
|
export type RideSeriesStatus = "booked" | "accepted" | "confirmed" | "cancelled";
|
package/package.json
CHANGED