@moxi.gmbh/moxi-typescriptmodels 0.1.401 → 0.1.411
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 +479 -246
- package/package.json +1 -1
package/common.d.ts
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
|
|
2
|
-
export interface
|
|
3
|
-
|
|
2
|
+
export interface AcceptRide extends RideDriverCommand {
|
|
3
|
+
driver?: AccountOrTeamRef;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
export interface AcceptRideSeries extends RideDriverSeriesCommand {
|
|
7
|
+
dispatcher?: AccountOrTeamRef;
|
|
4
8
|
}
|
|
5
9
|
|
|
6
10
|
export interface AcceptUserAgreement extends UserEdit {
|
|
@@ -8,7 +12,11 @@ export interface AcceptUserAgreement extends UserEdit {
|
|
|
8
12
|
}
|
|
9
13
|
|
|
10
14
|
export interface Account {
|
|
11
|
-
accountId?:
|
|
15
|
+
accountId?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Derived from subscriptions
|
|
18
|
+
*/
|
|
19
|
+
activeOrganisationTypes?: OrganisationType[];
|
|
12
20
|
/**
|
|
13
21
|
* Derived from subscriptions
|
|
14
22
|
*/
|
|
@@ -24,28 +32,24 @@ export interface Account {
|
|
|
24
32
|
}
|
|
25
33
|
|
|
26
34
|
export interface AccountCommand {
|
|
27
|
-
accountId?:
|
|
35
|
+
accountId?: string;
|
|
28
36
|
}
|
|
29
37
|
|
|
30
38
|
export interface AccountFilter {
|
|
31
39
|
activeServices?: Service[];
|
|
32
40
|
}
|
|
33
41
|
|
|
34
|
-
export interface AccountId {
|
|
35
|
-
type?: Class<Account>;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
42
|
export interface AccountInfo {
|
|
39
43
|
address?: AddressInfo;
|
|
40
44
|
defaultLanguage?: string;
|
|
41
45
|
notificationEmails?: string[];
|
|
42
46
|
phoneNumber?: PhoneNumber;
|
|
43
|
-
zoneId?:
|
|
47
|
+
zoneId?: string;
|
|
44
48
|
}
|
|
45
49
|
|
|
46
50
|
export interface AccountOrTeamId {
|
|
47
|
-
accountId?:
|
|
48
|
-
teamId?:
|
|
51
|
+
accountId?: string;
|
|
52
|
+
teamId?: string;
|
|
49
53
|
}
|
|
50
54
|
|
|
51
55
|
export interface AccountOrTeamRef extends AccountOrTeamId {
|
|
@@ -54,20 +58,23 @@ export interface AccountOrTeamRef extends AccountOrTeamId {
|
|
|
54
58
|
}
|
|
55
59
|
|
|
56
60
|
export interface AccountPermission {
|
|
57
|
-
accountId?:
|
|
61
|
+
accountId?: string;
|
|
58
62
|
roles?: AccountRole[];
|
|
59
63
|
teamPermissions?: TeamPermission[];
|
|
60
64
|
}
|
|
61
65
|
|
|
62
66
|
export interface AccountPermissionCommand extends UserUpdate {
|
|
63
|
-
accountId?:
|
|
67
|
+
accountId?: string;
|
|
64
68
|
}
|
|
65
69
|
|
|
66
70
|
export interface AccountRef {
|
|
67
|
-
accountId?:
|
|
71
|
+
accountId?: string;
|
|
68
72
|
name?: string;
|
|
69
73
|
}
|
|
70
74
|
|
|
75
|
+
export interface AccountUpcaster {
|
|
76
|
+
}
|
|
77
|
+
|
|
71
78
|
export interface AccountUpdate extends AccountCommand {
|
|
72
79
|
}
|
|
73
80
|
|
|
@@ -103,16 +110,16 @@ export interface AdminConfirmUser extends UserUpdateAfterSignup {
|
|
|
103
110
|
|
|
104
111
|
export interface AdminSetUserPassword {
|
|
105
112
|
password?: string;
|
|
106
|
-
userId?:
|
|
113
|
+
userId?: string;
|
|
107
114
|
}
|
|
108
115
|
|
|
109
|
-
export interface AmbulanceFilter extends
|
|
116
|
+
export interface AmbulanceFilter extends DrivePermissionFilter {
|
|
110
117
|
heavyWeightAllowed?: boolean;
|
|
111
118
|
type: "ambulance";
|
|
112
119
|
}
|
|
113
120
|
|
|
114
121
|
/**
|
|
115
|
-
* Filled if (and only if)
|
|
122
|
+
* Filled if (and only if) vehicleType == ambulance
|
|
116
123
|
*/
|
|
117
124
|
export interface AmbulanceInfo {
|
|
118
125
|
/**
|
|
@@ -133,26 +140,26 @@ export interface AmbulanceInfo {
|
|
|
133
140
|
requiresSuctionAspirator?: boolean;
|
|
134
141
|
}
|
|
135
142
|
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
declaredAnnotations?: Annotation[];
|
|
139
|
-
}
|
|
143
|
+
/**
|
|
144
|
+
* Common information shared across all rides in a series. Similar to RideInfo but without appointment-specific details that vary per ride.
|
|
140
145
|
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
type?: Type;
|
|
146
|
+
*/
|
|
147
|
+
export interface AnonymizedGenericRideInfo extends GenericRideInfo {
|
|
144
148
|
}
|
|
145
149
|
|
|
146
|
-
|
|
150
|
+
/**
|
|
151
|
+
* Information about the ride, from the creator of the ride
|
|
152
|
+
*/
|
|
153
|
+
export interface AnonymizedRideInfo extends RideInfo {
|
|
147
154
|
}
|
|
148
155
|
|
|
149
156
|
export interface Appointment {
|
|
150
157
|
pickup?: boolean;
|
|
151
|
-
time?:
|
|
158
|
+
time?: string;
|
|
152
159
|
}
|
|
153
160
|
|
|
154
161
|
export interface AssignDriver extends RideCommand {
|
|
155
|
-
|
|
162
|
+
driver?: AccountOrTeamRef;
|
|
156
163
|
}
|
|
157
164
|
|
|
158
165
|
export interface Attachment {
|
|
@@ -167,27 +174,47 @@ export interface AuthenticateWithToken extends UserUpdate {
|
|
|
167
174
|
|
|
168
175
|
export interface AuthenticationResponse {
|
|
169
176
|
authorizationHeader?: string;
|
|
170
|
-
impersonator?:
|
|
177
|
+
impersonator?: string;
|
|
171
178
|
result?: AuthenticationResult;
|
|
172
|
-
sessionDeadline?:
|
|
179
|
+
sessionDeadline?: string;
|
|
173
180
|
userProfile?: UserProfile;
|
|
174
181
|
}
|
|
175
182
|
|
|
176
183
|
export interface AuthenticationService {
|
|
177
184
|
}
|
|
178
185
|
|
|
186
|
+
export interface BatchUpdateRideSeriesInfo extends RideSeriesPostConfirmCommand {
|
|
187
|
+
info?: GenericRideInfo;
|
|
188
|
+
updater?: AccountOrTeamRef;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
export interface BatchUpdateRideSeriesTimes extends RideSeriesPostConfirmCommand {
|
|
192
|
+
rides?: SingleRideUpdate[];
|
|
193
|
+
updater?: AccountOrTeamRef;
|
|
194
|
+
}
|
|
195
|
+
|
|
179
196
|
export interface BookRide extends CreateRideCommand {
|
|
197
|
+
booker?: AccountOrTeamRef;
|
|
180
198
|
info?: RideInfo;
|
|
181
|
-
owner?: AccountOrTeamRef;
|
|
182
199
|
}
|
|
183
200
|
|
|
184
|
-
export interface
|
|
201
|
+
export interface BookRideSeries extends RideBookerSeriesCommand {
|
|
202
|
+
booker?: AccountOrTeamRef;
|
|
203
|
+
info?: GenericRideInfo;
|
|
204
|
+
rides?: SingleRide[];
|
|
185
205
|
}
|
|
186
206
|
|
|
187
|
-
export interface CancelRide extends
|
|
207
|
+
export interface CancelRide extends RideBookerCommand {
|
|
188
208
|
reason?: string;
|
|
189
209
|
}
|
|
190
210
|
|
|
211
|
+
export interface CancelRideSeries extends RideBookerSeriesCommand {
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
export interface CancelRidesInSeries extends RideSeriesPostConfirmCommand {
|
|
215
|
+
updater?: AccountOrTeamRef;
|
|
216
|
+
}
|
|
217
|
+
|
|
191
218
|
export interface CeliosSettings {
|
|
192
219
|
certificate?: string;
|
|
193
220
|
host?: string;
|
|
@@ -200,17 +227,11 @@ export interface CeliosSettings {
|
|
|
200
227
|
export interface ChangeUserPassword {
|
|
201
228
|
newPassword?: string;
|
|
202
229
|
oldPassword?: string;
|
|
203
|
-
userId?:
|
|
230
|
+
userId?: string;
|
|
204
231
|
}
|
|
205
232
|
|
|
206
233
|
export interface CheckIfUserSignedUp {
|
|
207
|
-
userId?:
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
export interface Class<T> extends Serializable, GenericDeclaration, Type, AnnotatedElement, OfField<Class<any>>, Constable {
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
export interface Cloneable {
|
|
234
|
+
userId?: string;
|
|
214
235
|
}
|
|
215
236
|
|
|
216
237
|
export interface ConfirmAccount extends AccountCommand {
|
|
@@ -229,7 +250,7 @@ export interface ConfirmSubscription extends AccountUpdate {
|
|
|
229
250
|
|
|
230
251
|
export interface ConfirmUser {
|
|
231
252
|
token?: string;
|
|
232
|
-
userId?:
|
|
253
|
+
userId?: string;
|
|
233
254
|
}
|
|
234
255
|
|
|
235
256
|
export interface ConfirmablePermission {
|
|
@@ -237,14 +258,11 @@ export interface ConfirmablePermission {
|
|
|
237
258
|
revoked?: boolean;
|
|
238
259
|
}
|
|
239
260
|
|
|
240
|
-
export interface Constable {
|
|
241
|
-
}
|
|
242
|
-
|
|
243
261
|
export interface CreateAccount extends AccountCommand {
|
|
244
262
|
autoConfirm?: boolean;
|
|
245
263
|
criticalInfo?: CriticalAccountInfo;
|
|
246
264
|
info?: AccountInfo;
|
|
247
|
-
owner?:
|
|
265
|
+
owner?: string;
|
|
248
266
|
requestService?: StandaloneService;
|
|
249
267
|
}
|
|
250
268
|
|
|
@@ -253,8 +271,18 @@ export interface CreateOptimizationPlan extends OptimizerMessage {
|
|
|
253
271
|
timeRange?: InstantRange;
|
|
254
272
|
}
|
|
255
273
|
|
|
256
|
-
export interface CreateRideCommand extends
|
|
257
|
-
|
|
274
|
+
export interface CreateRideCommand extends RideBookerCommand {
|
|
275
|
+
booker?: AccountOrTeamId;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
export interface CreateRideFromSeries extends RideDriverCommand {
|
|
279
|
+
booker?: AccountOrTeamRef;
|
|
280
|
+
driver?: AccountOrTeamRef;
|
|
281
|
+
info?: RideInfo;
|
|
282
|
+
seriesInfo?: SeriesInfo;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
export interface CreateRidesFromSeries extends RideDriverSeriesCommand {
|
|
258
286
|
}
|
|
259
287
|
|
|
260
288
|
export interface CreateSqueezeInPlan extends OptimizerMessage {
|
|
@@ -263,7 +291,7 @@ export interface CreateSqueezeInPlan extends OptimizerMessage {
|
|
|
263
291
|
|
|
264
292
|
export interface CreateTeam extends AccountCommand {
|
|
265
293
|
info?: TeamInfo;
|
|
266
|
-
teamId?:
|
|
294
|
+
teamId?: string;
|
|
267
295
|
}
|
|
268
296
|
|
|
269
297
|
export interface CreateToken extends TokenCommand {
|
|
@@ -283,19 +311,16 @@ export interface CriticalAccountInfo {
|
|
|
283
311
|
}
|
|
284
312
|
|
|
285
313
|
export interface DateRange {
|
|
286
|
-
end?:
|
|
287
|
-
start?:
|
|
314
|
+
end?: string;
|
|
315
|
+
start?: string;
|
|
288
316
|
}
|
|
289
317
|
|
|
290
318
|
export interface DeleteUser extends UserEdit {
|
|
291
319
|
}
|
|
292
320
|
|
|
293
|
-
export interface
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
export interface Dimension2D extends Cloneable {
|
|
297
|
-
height?: number;
|
|
298
|
-
width?: number;
|
|
321
|
+
export interface DisconnectClient {
|
|
322
|
+
clientId?: string;
|
|
323
|
+
tokenId?: string;
|
|
299
324
|
}
|
|
300
325
|
|
|
301
326
|
export interface DispoliveSettings {
|
|
@@ -306,7 +331,7 @@ export interface DispoliveSettings {
|
|
|
306
331
|
|
|
307
332
|
export interface District {
|
|
308
333
|
info?: DistrictInfo;
|
|
309
|
-
polygons?:
|
|
334
|
+
polygons?: any[];
|
|
310
335
|
}
|
|
311
336
|
|
|
312
337
|
export interface DistrictInfo {
|
|
@@ -330,14 +355,18 @@ export interface DrivePermission {
|
|
|
330
355
|
revoked?: boolean;
|
|
331
356
|
}
|
|
332
357
|
|
|
358
|
+
export interface DrivePermissionFilter {
|
|
359
|
+
type: "ambulance" | "taxi";
|
|
360
|
+
}
|
|
361
|
+
|
|
333
362
|
export interface DrivePermissionInfo {
|
|
334
|
-
filter?:
|
|
363
|
+
filter?: DrivePermissionFilterUnion;
|
|
335
364
|
monopoly?: boolean;
|
|
336
365
|
regions?: Region[];
|
|
337
366
|
}
|
|
338
367
|
|
|
339
368
|
export interface DrivePermissionInfoRequest {
|
|
340
|
-
filter?:
|
|
369
|
+
filter?: DrivePermissionFilterUnion;
|
|
341
370
|
regions?: Region[];
|
|
342
371
|
}
|
|
343
372
|
|
|
@@ -377,7 +406,7 @@ export interface FetchGoogleGeoLocation {
|
|
|
377
406
|
}
|
|
378
407
|
|
|
379
408
|
export interface FetchGoogleRoute {
|
|
380
|
-
departureTime?:
|
|
409
|
+
departureTime?: string;
|
|
381
410
|
from?: GeoLocation;
|
|
382
411
|
to?: GeoLocation;
|
|
383
412
|
}
|
|
@@ -399,8 +428,11 @@ export interface FindAccounts {
|
|
|
399
428
|
term?: string;
|
|
400
429
|
}
|
|
401
430
|
|
|
431
|
+
/**
|
|
432
|
+
* @deprecated
|
|
433
|
+
*/
|
|
402
434
|
export interface FindMyAcceptedRides {
|
|
403
|
-
accountId?:
|
|
435
|
+
accountId?: string;
|
|
404
436
|
descending?: boolean;
|
|
405
437
|
filter?: RideFilter;
|
|
406
438
|
maxSize?: number;
|
|
@@ -411,15 +443,23 @@ export interface FindMyAcceptedRides {
|
|
|
411
443
|
* @deprecated
|
|
412
444
|
*/
|
|
413
445
|
export interface FindMyRideOffers {
|
|
414
|
-
accountId?:
|
|
446
|
+
accountId?: string;
|
|
415
447
|
descending?: boolean;
|
|
416
448
|
filter?: RideFilter;
|
|
417
449
|
maxSize?: number;
|
|
418
450
|
term?: string;
|
|
419
451
|
}
|
|
420
452
|
|
|
453
|
+
export interface FindMyRideSeries {
|
|
454
|
+
accountId?: string;
|
|
455
|
+
descending?: boolean;
|
|
456
|
+
maxSize?: number;
|
|
457
|
+
term?: string;
|
|
458
|
+
timeRange?: InstantRange;
|
|
459
|
+
}
|
|
460
|
+
|
|
421
461
|
export interface FindMyRides {
|
|
422
|
-
accountId?:
|
|
462
|
+
accountId?: string;
|
|
423
463
|
descending?: boolean;
|
|
424
464
|
filter?: RideFilter;
|
|
425
465
|
maxSize?: number;
|
|
@@ -427,19 +467,29 @@ export interface FindMyRides {
|
|
|
427
467
|
}
|
|
428
468
|
|
|
429
469
|
export interface FindMyTokens {
|
|
430
|
-
accountId?:
|
|
431
|
-
teamId?:
|
|
470
|
+
accountId?: string;
|
|
471
|
+
teamId?: string;
|
|
432
472
|
term?: string;
|
|
433
473
|
}
|
|
434
474
|
|
|
435
475
|
export interface FindMyUsers {
|
|
436
|
-
accountId?:
|
|
437
|
-
teamId?:
|
|
476
|
+
accountId?: string;
|
|
477
|
+
teamId?: string;
|
|
438
478
|
term?: string;
|
|
439
479
|
}
|
|
440
480
|
|
|
481
|
+
export interface FindPotentialRideSeries {
|
|
482
|
+
accountId?: string;
|
|
483
|
+
descending?: boolean;
|
|
484
|
+
filter?: RideInfoFilter;
|
|
485
|
+
maxSize?: number;
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
/**
|
|
489
|
+
* @deprecated
|
|
490
|
+
*/
|
|
441
491
|
export interface FindPotentialRides {
|
|
442
|
-
accountId?:
|
|
492
|
+
accountId?: string;
|
|
443
493
|
descending?: boolean;
|
|
444
494
|
filter?: RideFilter;
|
|
445
495
|
maxSize?: number;
|
|
@@ -453,6 +503,22 @@ export interface FindRides {
|
|
|
453
503
|
term?: string;
|
|
454
504
|
}
|
|
455
505
|
|
|
506
|
+
export interface FindRidesForDriver {
|
|
507
|
+
accountId?: string;
|
|
508
|
+
descending?: boolean;
|
|
509
|
+
filter?: RideFilter;
|
|
510
|
+
maxSize?: number;
|
|
511
|
+
term?: string;
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
export interface FindRidesInMarketplace {
|
|
515
|
+
accountId?: string;
|
|
516
|
+
descending?: boolean;
|
|
517
|
+
filter?: RideFilter;
|
|
518
|
+
maxSize?: number;
|
|
519
|
+
term?: string;
|
|
520
|
+
}
|
|
521
|
+
|
|
456
522
|
export interface FindRidesResult {
|
|
457
523
|
count?: RideFilterCount;
|
|
458
524
|
rides?: Ride[];
|
|
@@ -466,20 +532,35 @@ export interface FindUsers {
|
|
|
466
532
|
term?: string;
|
|
467
533
|
}
|
|
468
534
|
|
|
469
|
-
export interface FleetCommand extends RideCommand {
|
|
470
|
-
}
|
|
471
|
-
|
|
472
|
-
export interface FleetModifyCommand extends FleetCommand {
|
|
473
|
-
}
|
|
474
|
-
|
|
475
535
|
export interface GenerateToken {
|
|
476
536
|
accountPermission?: AccountPermission;
|
|
477
537
|
info?: TokenInfo;
|
|
478
|
-
tokenId?:
|
|
538
|
+
tokenId?: string;
|
|
479
539
|
}
|
|
480
540
|
|
|
481
|
-
|
|
482
|
-
|
|
541
|
+
/**
|
|
542
|
+
* Common information shared across all rides in a series. Similar to RideInfo but without appointment-specific details that vary per ride.
|
|
543
|
+
|
|
544
|
+
*/
|
|
545
|
+
export interface GenericRideInfo {
|
|
546
|
+
ambulanceInfo?: AmbulanceInfo;
|
|
547
|
+
attendantsPresent?: number;
|
|
548
|
+
comment?: string;
|
|
549
|
+
dimensions?: PersonDimensions;
|
|
550
|
+
distanceInMeters?: number;
|
|
551
|
+
from?: AddressInfo;
|
|
552
|
+
/**
|
|
553
|
+
* Derived from weightInKg != null
|
|
554
|
+
*/
|
|
555
|
+
heavyWeight?: boolean;
|
|
556
|
+
mobility?: Mobility;
|
|
557
|
+
patient?: Person;
|
|
558
|
+
plannedDuration?: RideDuration;
|
|
559
|
+
preferredDriver?: string;
|
|
560
|
+
purpose?: RidePurpose;
|
|
561
|
+
to?: AddressInfo;
|
|
562
|
+
vehicleType?: VehicleType;
|
|
563
|
+
weightInKg?: number;
|
|
483
564
|
}
|
|
484
565
|
|
|
485
566
|
export interface GeoJson {
|
|
@@ -509,7 +590,7 @@ export interface Geometry {
|
|
|
509
590
|
}
|
|
510
591
|
|
|
511
592
|
export interface GetAccount {
|
|
512
|
-
accountId?:
|
|
593
|
+
accountId?: string;
|
|
513
594
|
}
|
|
514
595
|
|
|
515
596
|
export interface GetAccountsOfPotentialDrivers extends GetPotentialDrivers {
|
|
@@ -518,6 +599,18 @@ export interface GetAccountsOfPotentialDrivers extends GetPotentialDrivers {
|
|
|
518
599
|
export interface GetAccountsOfPotentialDriversAsAdmin extends GetPotentialDrivers {
|
|
519
600
|
}
|
|
520
601
|
|
|
602
|
+
export interface GetAllRideSeriesForDriver {
|
|
603
|
+
accountId?: string;
|
|
604
|
+
descending?: boolean;
|
|
605
|
+
maxSize?: number;
|
|
606
|
+
timeRange?: InstantRange;
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
export interface GetAllRideSeriesInMarketplace {
|
|
610
|
+
accountId?: string;
|
|
611
|
+
maxSize?: number;
|
|
612
|
+
}
|
|
613
|
+
|
|
521
614
|
export interface GetDistrict {
|
|
522
615
|
geoLocation?: GeoLocation;
|
|
523
616
|
stateNutsCode?: string;
|
|
@@ -538,8 +631,11 @@ export interface GetIsoStates {
|
|
|
538
631
|
export interface GetMonopolyAccounts {
|
|
539
632
|
}
|
|
540
633
|
|
|
634
|
+
/**
|
|
635
|
+
* @deprecated
|
|
636
|
+
*/
|
|
541
637
|
export interface GetMyAcceptedRides {
|
|
542
|
-
accountId?:
|
|
638
|
+
accountId?: string;
|
|
543
639
|
maxSize?: number;
|
|
544
640
|
timeRange?: InstantRange;
|
|
545
641
|
}
|
|
@@ -552,13 +648,13 @@ export interface GetMyAccounts {
|
|
|
552
648
|
* @deprecated
|
|
553
649
|
*/
|
|
554
650
|
export interface GetMyRideOffers {
|
|
555
|
-
accountId?:
|
|
651
|
+
accountId?: string;
|
|
556
652
|
maxSize?: number;
|
|
557
653
|
timeRange?: InstantRange;
|
|
558
654
|
}
|
|
559
655
|
|
|
560
656
|
export interface GetMyRides {
|
|
561
|
-
accountId?:
|
|
657
|
+
accountId?: string;
|
|
562
658
|
maxSize?: number;
|
|
563
659
|
timeRange?: InstantRange;
|
|
564
660
|
}
|
|
@@ -575,42 +671,76 @@ export interface GetNutsStates {
|
|
|
575
671
|
export interface GetPotentialDrivers {
|
|
576
672
|
fromDistrict?: string;
|
|
577
673
|
mobility?: Mobility;
|
|
578
|
-
rideType?: RideType;
|
|
579
674
|
toDistrict?: string;
|
|
675
|
+
vehicleType?: VehicleType;
|
|
580
676
|
weightInKg?: number;
|
|
581
677
|
}
|
|
582
678
|
|
|
679
|
+
/**
|
|
680
|
+
* @deprecated
|
|
681
|
+
*/
|
|
583
682
|
export interface GetPotentialRides {
|
|
584
|
-
accountId?:
|
|
683
|
+
accountId?: string;
|
|
585
684
|
maxSize?: number;
|
|
586
685
|
timeRange?: InstantRange;
|
|
587
686
|
}
|
|
588
687
|
|
|
589
688
|
export interface GetRide {
|
|
590
|
-
rideId?:
|
|
689
|
+
rideId?: string;
|
|
591
690
|
}
|
|
592
691
|
|
|
593
692
|
export interface GetRideCsv extends RideStatisticsQuery {
|
|
594
693
|
}
|
|
595
694
|
|
|
596
|
-
export interface
|
|
597
|
-
|
|
695
|
+
export interface GetRideDataForBooker extends RideStatisticsQuery {
|
|
696
|
+
accountId?: string;
|
|
697
|
+
}
|
|
698
|
+
|
|
699
|
+
export interface GetRideDataForDriver extends RideStatisticsQuery {
|
|
700
|
+
accountId?: string;
|
|
598
701
|
}
|
|
599
702
|
|
|
600
703
|
export interface GetRideLog {
|
|
601
|
-
rideId?:
|
|
704
|
+
rideId?: string;
|
|
705
|
+
}
|
|
706
|
+
|
|
707
|
+
export interface GetRideSeries {
|
|
708
|
+
rideSeriesId?: string;
|
|
709
|
+
}
|
|
710
|
+
|
|
711
|
+
export interface GetRideSeriesForDriver {
|
|
712
|
+
accountId?: string;
|
|
713
|
+
maxSize?: number;
|
|
714
|
+
timeRange?: InstantRange;
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
export interface GetRidesForDriver {
|
|
718
|
+
accountId?: string;
|
|
719
|
+
maxSize?: number;
|
|
720
|
+
timeRange?: InstantRange;
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
export interface GetRidesInMarketplace {
|
|
724
|
+
accountId?: string;
|
|
725
|
+
maxSize?: number;
|
|
726
|
+
timeRange?: InstantRange;
|
|
727
|
+
}
|
|
728
|
+
|
|
729
|
+
export interface GetRidesInSeries {
|
|
730
|
+
filter?: RideFilter;
|
|
731
|
+
rideSeriesId?: string;
|
|
602
732
|
}
|
|
603
733
|
|
|
604
734
|
export interface GetTeam {
|
|
605
|
-
teamId?:
|
|
735
|
+
teamId?: string;
|
|
606
736
|
}
|
|
607
737
|
|
|
608
738
|
export interface GetToken {
|
|
609
|
-
tokenId?:
|
|
739
|
+
tokenId?: string;
|
|
610
740
|
}
|
|
611
741
|
|
|
612
742
|
export interface GetUserProfile {
|
|
613
|
-
userId?:
|
|
743
|
+
userId?: string;
|
|
614
744
|
}
|
|
615
745
|
|
|
616
746
|
export interface GiveDrivePermission extends AccountUpdate {
|
|
@@ -628,15 +758,12 @@ export interface GiveTeamPermission extends AccountPermissionCommand {
|
|
|
628
758
|
}
|
|
629
759
|
|
|
630
760
|
export interface ImpersonateUser {
|
|
631
|
-
userId?:
|
|
632
|
-
}
|
|
633
|
-
|
|
634
|
-
export interface InetAddress extends Serializable {
|
|
761
|
+
userId?: string;
|
|
635
762
|
}
|
|
636
763
|
|
|
637
764
|
export interface InstantRange {
|
|
638
|
-
end?:
|
|
639
|
-
start?:
|
|
765
|
+
end?: string;
|
|
766
|
+
start?: string;
|
|
640
767
|
}
|
|
641
768
|
|
|
642
769
|
export interface Insurer {
|
|
@@ -645,7 +772,7 @@ export interface Insurer {
|
|
|
645
772
|
}
|
|
646
773
|
|
|
647
774
|
export interface Invite {
|
|
648
|
-
accountId?:
|
|
775
|
+
accountId?: string;
|
|
649
776
|
invitedBy?: string;
|
|
650
777
|
}
|
|
651
778
|
|
|
@@ -659,7 +786,7 @@ export interface InviteUser extends UserCommand {
|
|
|
659
786
|
* Ip4 or ip6 range in CIDR format
|
|
660
787
|
*/
|
|
661
788
|
export interface IpRange {
|
|
662
|
-
ip?:
|
|
789
|
+
ip?: string;
|
|
663
790
|
range?: number;
|
|
664
791
|
}
|
|
665
792
|
|
|
@@ -670,6 +797,16 @@ export interface IsoState {
|
|
|
670
797
|
nutsCode?: string;
|
|
671
798
|
}
|
|
672
799
|
|
|
800
|
+
export interface Metric {
|
|
801
|
+
clientId?: string;
|
|
802
|
+
clientSegment?: number[];
|
|
803
|
+
maxSize?: number;
|
|
804
|
+
maxTimeout?: string;
|
|
805
|
+
tokenId?: string;
|
|
806
|
+
type?: string;
|
|
807
|
+
updates?: string[];
|
|
808
|
+
}
|
|
809
|
+
|
|
673
810
|
export interface NutsDistrict {
|
|
674
811
|
code?: string;
|
|
675
812
|
name?: string;
|
|
@@ -687,11 +824,6 @@ export interface NutsSubState {
|
|
|
687
824
|
name?: string;
|
|
688
825
|
}
|
|
689
826
|
|
|
690
|
-
export interface OfField<F> extends TypeDescriptor {
|
|
691
|
-
array?: boolean;
|
|
692
|
-
primitive?: boolean;
|
|
693
|
-
}
|
|
694
|
-
|
|
695
827
|
export interface OffsetTimeRange {
|
|
696
828
|
end?: Date;
|
|
697
829
|
start?: Date;
|
|
@@ -702,7 +834,7 @@ export interface OptimizerMessage {
|
|
|
702
834
|
|
|
703
835
|
export interface Person {
|
|
704
836
|
address?: AddressInfo;
|
|
705
|
-
birthDay?:
|
|
837
|
+
birthDay?: string;
|
|
706
838
|
email?: string;
|
|
707
839
|
firstName?: string;
|
|
708
840
|
insuranceNumber?: string;
|
|
@@ -724,45 +856,22 @@ export interface PersonDimensions {
|
|
|
724
856
|
export interface PhoneNumber {
|
|
725
857
|
}
|
|
726
858
|
|
|
727
|
-
export interface
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
export interface Point2D extends Cloneable {
|
|
731
|
-
x?: number;
|
|
732
|
-
y?: number;
|
|
859
|
+
export interface PlanRide extends RideDriverModifyCommand {
|
|
860
|
+
plannedStartTime?: string;
|
|
733
861
|
}
|
|
734
862
|
|
|
735
|
-
export interface
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
xpoints?: number[];
|
|
742
|
-
ypoints?: number[];
|
|
743
|
-
}
|
|
744
|
-
|
|
745
|
-
export interface Rectangle extends Rectangle2D, Shape, Serializable {
|
|
746
|
-
location?: Point;
|
|
747
|
-
rect?: Rectangle2D;
|
|
748
|
-
size?: Dimension;
|
|
749
|
-
}
|
|
750
|
-
|
|
751
|
-
export interface Rectangle2D extends RectangularShape {
|
|
863
|
+
export interface ReadUpdates {
|
|
864
|
+
clientId?: string;
|
|
865
|
+
maxSize?: number;
|
|
866
|
+
maxTimeout?: number;
|
|
867
|
+
tokenId?: string;
|
|
868
|
+
updateTypes?: TrackingUpdateType[];
|
|
752
869
|
}
|
|
753
870
|
|
|
754
|
-
export interface
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
height?: number;
|
|
759
|
-
maxX?: number;
|
|
760
|
-
maxY?: number;
|
|
761
|
-
minX?: number;
|
|
762
|
-
minY?: number;
|
|
763
|
-
width?: number;
|
|
764
|
-
x?: number;
|
|
765
|
-
y?: number;
|
|
871
|
+
export interface ReadUpdatesResult {
|
|
872
|
+
clientSegment?: number[];
|
|
873
|
+
lastIndex?: number;
|
|
874
|
+
updates?: any[];
|
|
766
875
|
}
|
|
767
876
|
|
|
768
877
|
export interface Region {
|
|
@@ -773,21 +882,16 @@ export interface RegisterAuthenticationToken extends UserUpdate {
|
|
|
773
882
|
hashedToken?: string;
|
|
774
883
|
}
|
|
775
884
|
|
|
776
|
-
export interface
|
|
777
|
-
destinationEta?: Date;
|
|
778
|
-
originEta?: Date;
|
|
779
|
-
}
|
|
780
|
-
|
|
781
|
-
export interface RegisterDriveStatus extends FleetModifyCommand {
|
|
885
|
+
export interface RegisterDriveStatus extends RideDriverModifyCommand {
|
|
782
886
|
driveStatus?: DriveStatus;
|
|
783
887
|
}
|
|
784
888
|
|
|
785
|
-
export interface RegisterDriverSynced extends
|
|
889
|
+
export interface RegisterDriverSynced extends RideDriverModifyCommand {
|
|
786
890
|
}
|
|
787
891
|
|
|
788
892
|
export interface RegisterEinsatz {
|
|
789
893
|
einsatzNumber?: string;
|
|
790
|
-
rideId?:
|
|
894
|
+
rideId?: string;
|
|
791
895
|
}
|
|
792
896
|
|
|
793
897
|
export interface RemoveAccount extends AccountUpdate {
|
|
@@ -801,7 +905,7 @@ export interface RemoveTeam extends TeamUpdate {
|
|
|
801
905
|
}
|
|
802
906
|
|
|
803
907
|
export interface RemoveTeamPermission extends AccountPermissionCommand {
|
|
804
|
-
teamId?:
|
|
908
|
+
teamId?: string;
|
|
805
909
|
}
|
|
806
910
|
|
|
807
911
|
export interface ReportIssue {
|
|
@@ -809,6 +913,13 @@ export interface ReportIssue {
|
|
|
809
913
|
issue?: string;
|
|
810
914
|
}
|
|
811
915
|
|
|
916
|
+
/**
|
|
917
|
+
* Can only report delays when ride has started and has not arrived at destination.
|
|
918
|
+
*/
|
|
919
|
+
export interface ReportRideDelay extends RideDriverModifyCommand {
|
|
920
|
+
minutes?: number;
|
|
921
|
+
}
|
|
922
|
+
|
|
812
923
|
export interface RequestDrivePermission extends AccountUpdate {
|
|
813
924
|
drivePermissionId?: string;
|
|
814
925
|
info?: DrivePermissionInfoRequest;
|
|
@@ -823,16 +934,31 @@ export interface RequestUserReset {
|
|
|
823
934
|
email?: string;
|
|
824
935
|
}
|
|
825
936
|
|
|
937
|
+
/**
|
|
938
|
+
* Resets the lastIndex position of your token.
|
|
939
|
+
*/
|
|
940
|
+
export interface ResetPosition {
|
|
941
|
+
index?: number;
|
|
942
|
+
timestamp?: string;
|
|
943
|
+
tokenId?: string;
|
|
944
|
+
}
|
|
945
|
+
|
|
946
|
+
export interface ReturnRide extends RideDriverModifyCommand {
|
|
947
|
+
}
|
|
948
|
+
|
|
949
|
+
export interface ReturnRideSeries extends RideDriverSeriesCommand {
|
|
950
|
+
}
|
|
951
|
+
|
|
826
952
|
export interface Review {
|
|
827
953
|
comment?: string;
|
|
828
954
|
stars?: number;
|
|
829
955
|
}
|
|
830
956
|
|
|
831
|
-
export interface
|
|
957
|
+
export interface ReviewRideAsBooker extends RideBookerCommand {
|
|
832
958
|
review?: Review;
|
|
833
959
|
}
|
|
834
960
|
|
|
835
|
-
export interface
|
|
961
|
+
export interface ReviewRideAsDriver extends RideDriverModifyCommand {
|
|
836
962
|
review?: Review;
|
|
837
963
|
}
|
|
838
964
|
|
|
@@ -852,14 +978,22 @@ export interface RevokeToken extends TokenUpdate {
|
|
|
852
978
|
|
|
853
979
|
export interface Ride {
|
|
854
980
|
/**
|
|
855
|
-
* Derived from
|
|
981
|
+
* Derived from driver != null
|
|
856
982
|
*/
|
|
857
983
|
accepted?: boolean;
|
|
984
|
+
actualEndTime?: string;
|
|
985
|
+
actualStartTime?: string;
|
|
986
|
+
/**
|
|
987
|
+
* Derived from driveStatus != null
|
|
988
|
+
*/
|
|
989
|
+
arrived?: boolean;
|
|
858
990
|
/**
|
|
859
991
|
* Derived from bookedTime != null
|
|
860
992
|
*/
|
|
861
993
|
booked?: boolean;
|
|
862
|
-
bookedTime?:
|
|
994
|
+
bookedTime?: string;
|
|
995
|
+
booker?: AccountOrTeamRef;
|
|
996
|
+
bookerReview?: Review;
|
|
863
997
|
bookingStatus?: BookingStatus;
|
|
864
998
|
cancelReason?: string;
|
|
865
999
|
cancelled?: boolean;
|
|
@@ -868,37 +1002,70 @@ export interface Ride {
|
|
|
868
1002
|
*/
|
|
869
1003
|
completed?: boolean;
|
|
870
1004
|
/**
|
|
871
|
-
*
|
|
1005
|
+
* Desired Time of Arrival at the Destination/Drop-off location. Derived from info.appointment and info.plannedDuration
|
|
872
1006
|
*/
|
|
873
|
-
|
|
1007
|
+
desiredEndTime?: string;
|
|
874
1008
|
/**
|
|
875
|
-
*
|
|
1009
|
+
* Desired Time of Arrival at the Origin/Pick-up location. Derived from info.appointment and info.plannedDuration
|
|
876
1010
|
*/
|
|
877
|
-
|
|
878
|
-
driveOwner?: AccountOrTeamRef;
|
|
1011
|
+
desiredStartTime?: string;
|
|
879
1012
|
driveStatus?: DriveStatus;
|
|
1013
|
+
driver?: AccountOrTeamRef;
|
|
880
1014
|
driverReview?: Review;
|
|
881
1015
|
driverSyncStatus?: SyncStatus;
|
|
1016
|
+
endTimeDelay?: number;
|
|
1017
|
+
/**
|
|
1018
|
+
* Expected Time of Arrival at the Destination/Drop-off location.
|
|
1019
|
+
*/
|
|
1020
|
+
expectedEndTime?: string;
|
|
1021
|
+
/**
|
|
1022
|
+
* Expected Time of Arrival at the Origin/Pick-up location.
|
|
1023
|
+
*/
|
|
1024
|
+
expectedStartTime?: string;
|
|
882
1025
|
info?: RideInfo;
|
|
883
1026
|
/**
|
|
884
|
-
*
|
|
1027
|
+
* Derived from plannedStartTime != null
|
|
1028
|
+
*/
|
|
1029
|
+
planned?: boolean;
|
|
1030
|
+
/**
|
|
1031
|
+
* Planned Time of Arrival at the Destination/Drop-off location, reported by the driver.
|
|
885
1032
|
*/
|
|
886
|
-
|
|
1033
|
+
plannedEndTime?: string;
|
|
1034
|
+
plannedStartTime?: string;
|
|
1035
|
+
rideId?: string;
|
|
887
1036
|
/**
|
|
888
|
-
*
|
|
1037
|
+
* The time until which rides can be found. It's the planned time or else the desired time.
|
|
889
1038
|
*/
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
1039
|
+
searchEndTime?: string;
|
|
1040
|
+
/**
|
|
1041
|
+
* The time from which rides can be found. It's the planned time or else the desired time.
|
|
1042
|
+
*/
|
|
1043
|
+
searchStartTime?: string;
|
|
1044
|
+
seriesInfo?: SeriesInfo;
|
|
1045
|
+
startTimeDelay?: number;
|
|
894
1046
|
/**
|
|
895
1047
|
* Derived from driveStatus != null
|
|
896
1048
|
*/
|
|
897
1049
|
started?: boolean;
|
|
898
1050
|
}
|
|
899
1051
|
|
|
1052
|
+
export interface RideBookerCommand extends RideCommand {
|
|
1053
|
+
}
|
|
1054
|
+
|
|
1055
|
+
export interface RideBookerSeriesCommand extends RideSeriesCommand {
|
|
1056
|
+
}
|
|
1057
|
+
|
|
900
1058
|
export interface RideCommand {
|
|
901
|
-
rideId?:
|
|
1059
|
+
rideId?: string;
|
|
1060
|
+
}
|
|
1061
|
+
|
|
1062
|
+
export interface RideDriverCommand extends RideCommand {
|
|
1063
|
+
}
|
|
1064
|
+
|
|
1065
|
+
export interface RideDriverModifyCommand extends RideDriverCommand {
|
|
1066
|
+
}
|
|
1067
|
+
|
|
1068
|
+
export interface RideDriverSeriesCommand extends RideSeriesPreConfirmCommand {
|
|
902
1069
|
}
|
|
903
1070
|
|
|
904
1071
|
/**
|
|
@@ -913,47 +1080,43 @@ export interface RideDuration {
|
|
|
913
1080
|
|
|
914
1081
|
export interface RideFilter {
|
|
915
1082
|
bookingStatuses?: BookingStatus[];
|
|
916
|
-
directions?: Direction[];
|
|
917
1083
|
driveStatuses?: DriveStatus[];
|
|
918
1084
|
driverAccountNames?: string[];
|
|
919
1085
|
driverTeamNames?: string[];
|
|
920
1086
|
hasInfection?: boolean;
|
|
921
1087
|
heavyWeight?: boolean;
|
|
922
1088
|
mobilities?: Mobility[];
|
|
1089
|
+
purposes?: RidePurpose[];
|
|
923
1090
|
region?: Region;
|
|
924
1091
|
requiresMonitoring?: boolean;
|
|
925
1092
|
requiresOxygen?: boolean;
|
|
926
1093
|
requiresSuctionAspirator?: boolean;
|
|
927
|
-
rideType?: RideType;
|
|
928
1094
|
riderAccountNames?: string[];
|
|
929
1095
|
riderTeamNames?: string[];
|
|
930
1096
|
timeRange?: InstantRange;
|
|
1097
|
+
vehicleType?: VehicleType;
|
|
931
1098
|
}
|
|
932
1099
|
|
|
933
1100
|
export interface RideFilterCount {
|
|
934
1101
|
bookingStatuses?: { [P in BookingStatus]?: number };
|
|
935
|
-
directions?: { [P in Direction]?: number };
|
|
936
1102
|
driveStatuses?: { [P in DriveStatus]?: number };
|
|
937
1103
|
driverAccountNames?: { [index: string]: number };
|
|
938
1104
|
driverTeamNames?: { [index: string]: number };
|
|
939
1105
|
hasInfection?: number;
|
|
940
1106
|
heavyWeight?: number;
|
|
941
1107
|
mobilities?: { [P in Mobility]?: number };
|
|
1108
|
+
purposes?: { [P in RidePurpose]?: number };
|
|
942
1109
|
requiresMonitoring?: number;
|
|
943
1110
|
requiresOxygen?: number;
|
|
944
1111
|
requiresSuctionAspirator?: number;
|
|
945
|
-
rideTypes?: { [P in RideType]?: number };
|
|
946
1112
|
riderAccountNames?: { [index: string]: number };
|
|
947
1113
|
riderTeamNames?: { [index: string]: number };
|
|
948
1114
|
total?: number;
|
|
949
|
-
}
|
|
950
|
-
|
|
951
|
-
export interface RideId {
|
|
952
|
-
type?: Class<Ride>;
|
|
1115
|
+
vehicleTypes?: { [P in VehicleType]?: number };
|
|
953
1116
|
}
|
|
954
1117
|
|
|
955
1118
|
export interface RideIdResult {
|
|
956
|
-
rideId?:
|
|
1119
|
+
rideId?: string;
|
|
957
1120
|
}
|
|
958
1121
|
|
|
959
1122
|
/**
|
|
@@ -965,7 +1128,6 @@ export interface RideInfo {
|
|
|
965
1128
|
attendantsPresent?: number;
|
|
966
1129
|
comment?: string;
|
|
967
1130
|
dimensions?: PersonDimensions;
|
|
968
|
-
direction?: Direction;
|
|
969
1131
|
distanceInMeters?: number;
|
|
970
1132
|
from?: AddressInfo;
|
|
971
1133
|
/**
|
|
@@ -975,12 +1137,25 @@ export interface RideInfo {
|
|
|
975
1137
|
mobility?: Mobility;
|
|
976
1138
|
patient?: Person;
|
|
977
1139
|
plannedDuration?: RideDuration;
|
|
978
|
-
preferredDriver?:
|
|
979
|
-
|
|
1140
|
+
preferredDriver?: string;
|
|
1141
|
+
purpose?: RidePurpose;
|
|
980
1142
|
to?: AddressInfo;
|
|
1143
|
+
vehicleType?: VehicleType;
|
|
981
1144
|
weightInKg?: number;
|
|
982
1145
|
}
|
|
983
1146
|
|
|
1147
|
+
export interface RideInfoFilter {
|
|
1148
|
+
hasInfection?: boolean;
|
|
1149
|
+
heavyWeight?: boolean;
|
|
1150
|
+
mobilities?: Mobility[];
|
|
1151
|
+
purposes?: RidePurpose[];
|
|
1152
|
+
region?: Region;
|
|
1153
|
+
requiresMonitoring?: boolean;
|
|
1154
|
+
requiresOxygen?: boolean;
|
|
1155
|
+
requiresSuctionAspirator?: boolean;
|
|
1156
|
+
vehicleType?: VehicleType;
|
|
1157
|
+
}
|
|
1158
|
+
|
|
984
1159
|
export interface RideLog {
|
|
985
1160
|
actingFor?: AccountOrTeamRef;
|
|
986
1161
|
allowedViewers?: AccountOrTeamRef[];
|
|
@@ -993,7 +1168,7 @@ export interface RideLog {
|
|
|
993
1168
|
isSuperAdmin?: boolean;
|
|
994
1169
|
isToken?: boolean;
|
|
995
1170
|
superAdmin?: boolean;
|
|
996
|
-
timestamp?:
|
|
1171
|
+
timestamp?: string;
|
|
997
1172
|
token?: boolean;
|
|
998
1173
|
}
|
|
999
1174
|
|
|
@@ -1001,17 +1176,67 @@ export interface RideOfferInfo {
|
|
|
1001
1176
|
appointment?: Appointment;
|
|
1002
1177
|
}
|
|
1003
1178
|
|
|
1004
|
-
export interface
|
|
1179
|
+
export interface RideSeries {
|
|
1180
|
+
accepted?: boolean;
|
|
1181
|
+
booked?: boolean;
|
|
1182
|
+
booker?: AccountOrTeamRef;
|
|
1183
|
+
cancelled?: boolean;
|
|
1184
|
+
confirmed?: boolean;
|
|
1185
|
+
driver?: AccountOrTeamRef;
|
|
1186
|
+
endTime?: string;
|
|
1187
|
+
info?: GenericRideInfo;
|
|
1188
|
+
rideSeriesId?: string;
|
|
1189
|
+
rides?: SingleRide[];
|
|
1190
|
+
startTime?: string;
|
|
1191
|
+
status?: RideSeriesStatus;
|
|
1192
|
+
}
|
|
1193
|
+
|
|
1194
|
+
export interface RideSeriesCommand {
|
|
1195
|
+
rideSeriesId?: string;
|
|
1196
|
+
}
|
|
1197
|
+
|
|
1198
|
+
export interface RideSeriesIdResult {
|
|
1199
|
+
rideSeriesId?: string;
|
|
1200
|
+
}
|
|
1201
|
+
|
|
1202
|
+
export interface RideSeriesPostConfirmCommand {
|
|
1203
|
+
rideSeriesId?: string;
|
|
1204
|
+
ridesToModify?: Ride[];
|
|
1205
|
+
}
|
|
1206
|
+
|
|
1207
|
+
export interface RideSeriesPreConfirmCommand extends RideSeriesCommand {
|
|
1208
|
+
}
|
|
1209
|
+
|
|
1210
|
+
export interface RideSeriesUpdate {
|
|
1211
|
+
after?: RideSeries;
|
|
1212
|
+
before?: RideSeries;
|
|
1213
|
+
entityId?: string;
|
|
1214
|
+
eventType?: string;
|
|
1215
|
+
index?: number;
|
|
1216
|
+
timestamp?: string;
|
|
1217
|
+
type: "rideseries";
|
|
1005
1218
|
}
|
|
1006
1219
|
|
|
1007
1220
|
export interface RideStatisticsQuery {
|
|
1008
1221
|
dateRange?: DateRange;
|
|
1009
|
-
timezoneOrDefault?:
|
|
1010
|
-
zoneId?:
|
|
1222
|
+
timezoneOrDefault?: string;
|
|
1223
|
+
zoneId?: string;
|
|
1011
1224
|
}
|
|
1012
1225
|
|
|
1013
|
-
export interface
|
|
1014
|
-
|
|
1226
|
+
export interface RideSystemCommand extends RideCommand {
|
|
1227
|
+
}
|
|
1228
|
+
|
|
1229
|
+
export interface RideUpcaster {
|
|
1230
|
+
}
|
|
1231
|
+
|
|
1232
|
+
export interface RideUpdate {
|
|
1233
|
+
after?: Ride;
|
|
1234
|
+
before?: Ride;
|
|
1235
|
+
entityId?: string;
|
|
1236
|
+
eventType?: string;
|
|
1237
|
+
index?: number;
|
|
1238
|
+
timestamp?: string;
|
|
1239
|
+
type: "ride";
|
|
1015
1240
|
}
|
|
1016
1241
|
|
|
1017
1242
|
export interface Role<T> {
|
|
@@ -1021,12 +1246,12 @@ export interface Role<T> {
|
|
|
1021
1246
|
* Save a new ride or update a previously saved ride. Not allowed to saveRide after the ride has been booked.
|
|
1022
1247
|
*/
|
|
1023
1248
|
export interface SaveRide extends CreateRideCommand {
|
|
1249
|
+
booker?: AccountOrTeamRef;
|
|
1024
1250
|
info?: RideInfo;
|
|
1025
|
-
owner?: AccountOrTeamRef;
|
|
1026
1251
|
}
|
|
1027
1252
|
|
|
1028
1253
|
export interface SendConfirmationEmail {
|
|
1029
|
-
userId?:
|
|
1254
|
+
userId?: string;
|
|
1030
1255
|
}
|
|
1031
1256
|
|
|
1032
1257
|
export interface SendEmail {
|
|
@@ -1039,8 +1264,8 @@ export interface SendFreshdeskNewTicket {
|
|
|
1039
1264
|
}
|
|
1040
1265
|
|
|
1041
1266
|
export interface SendInvitationEmail {
|
|
1042
|
-
accountIdOfInvite?:
|
|
1043
|
-
userId?:
|
|
1267
|
+
accountIdOfInvite?: string;
|
|
1268
|
+
userId?: string;
|
|
1044
1269
|
}
|
|
1045
1270
|
|
|
1046
1271
|
export interface SendSlack {
|
|
@@ -1048,7 +1273,12 @@ export interface SendSlack {
|
|
|
1048
1273
|
message?: string;
|
|
1049
1274
|
}
|
|
1050
1275
|
|
|
1051
|
-
|
|
1276
|
+
/**
|
|
1277
|
+
* Information about a ride that is part of series.
|
|
1278
|
+
*/
|
|
1279
|
+
export interface SeriesInfo {
|
|
1280
|
+
returnTrip?: boolean;
|
|
1281
|
+
rideSeriesId?: string;
|
|
1052
1282
|
}
|
|
1053
1283
|
|
|
1054
1284
|
export interface SetSettings extends AccountUpdate {
|
|
@@ -1058,21 +1288,16 @@ export interface SetSettings extends AccountUpdate {
|
|
|
1058
1288
|
export interface SetUserPassword {
|
|
1059
1289
|
confirmationCode?: string;
|
|
1060
1290
|
password?: string;
|
|
1061
|
-
userId?:
|
|
1291
|
+
userId?: string;
|
|
1062
1292
|
}
|
|
1063
1293
|
|
|
1064
1294
|
export interface SetUserRole extends UserUpdate {
|
|
1065
1295
|
role?: UserRole;
|
|
1066
1296
|
}
|
|
1067
1297
|
|
|
1068
|
-
export interface Shape {
|
|
1069
|
-
bounds?: Rectangle;
|
|
1070
|
-
bounds2D?: Rectangle2D;
|
|
1071
|
-
}
|
|
1072
|
-
|
|
1073
1298
|
export interface SignInUser {
|
|
1074
1299
|
password?: string;
|
|
1075
|
-
userId?:
|
|
1300
|
+
userId?: string;
|
|
1076
1301
|
}
|
|
1077
1302
|
|
|
1078
1303
|
export interface SignUpUser {
|
|
@@ -1080,7 +1305,20 @@ export interface SignUpUser {
|
|
|
1080
1305
|
info?: UserInfo;
|
|
1081
1306
|
inviteToken?: string;
|
|
1082
1307
|
password?: string;
|
|
1083
|
-
userId?:
|
|
1308
|
+
userId?: string;
|
|
1309
|
+
}
|
|
1310
|
+
|
|
1311
|
+
/**
|
|
1312
|
+
* Individual ride timing within a series
|
|
1313
|
+
*/
|
|
1314
|
+
export interface SingleRide {
|
|
1315
|
+
desiredStartTime?: string;
|
|
1316
|
+
returnTrip?: boolean;
|
|
1317
|
+
}
|
|
1318
|
+
|
|
1319
|
+
export interface SingleRideUpdate {
|
|
1320
|
+
desiredStartTime?: string;
|
|
1321
|
+
rideId?: string;
|
|
1084
1322
|
}
|
|
1085
1323
|
|
|
1086
1324
|
export interface StopImpersonatingUser {
|
|
@@ -1096,18 +1334,14 @@ export interface SubscriptionInfo extends TimedPermission {
|
|
|
1096
1334
|
service?: Service;
|
|
1097
1335
|
}
|
|
1098
1336
|
|
|
1099
|
-
export interface TaxiFilter extends
|
|
1337
|
+
export interface TaxiFilter extends DrivePermissionFilter {
|
|
1100
1338
|
allowedMobilities?: Mobility[];
|
|
1101
1339
|
type: "taxi";
|
|
1102
1340
|
}
|
|
1103
1341
|
|
|
1104
1342
|
export interface Team {
|
|
1105
1343
|
info?: TeamInfo;
|
|
1106
|
-
teamId?:
|
|
1107
|
-
}
|
|
1108
|
-
|
|
1109
|
-
export interface TeamId {
|
|
1110
|
-
type?: Class<Team>;
|
|
1344
|
+
teamId?: string;
|
|
1111
1345
|
}
|
|
1112
1346
|
|
|
1113
1347
|
export interface TeamInfo {
|
|
@@ -1119,16 +1353,16 @@ export interface TeamInfo {
|
|
|
1119
1353
|
|
|
1120
1354
|
export interface TeamPermission {
|
|
1121
1355
|
roles?: TeamRole[];
|
|
1122
|
-
teamId?:
|
|
1356
|
+
teamId?: string;
|
|
1123
1357
|
}
|
|
1124
1358
|
|
|
1125
1359
|
export interface TeamUpdate extends AccountUpdate {
|
|
1126
|
-
teamId?:
|
|
1360
|
+
teamId?: string;
|
|
1127
1361
|
}
|
|
1128
1362
|
|
|
1129
1363
|
export interface TimeRange {
|
|
1130
|
-
end?:
|
|
1131
|
-
start?:
|
|
1364
|
+
end?: string;
|
|
1365
|
+
start?: string;
|
|
1132
1366
|
}
|
|
1133
1367
|
|
|
1134
1368
|
export interface TimedPermission {
|
|
@@ -1141,15 +1375,11 @@ export interface Token {
|
|
|
1141
1375
|
info?: TokenInfo;
|
|
1142
1376
|
lastUpdatedBy?: string;
|
|
1143
1377
|
revoked?: boolean;
|
|
1144
|
-
tokenId?:
|
|
1378
|
+
tokenId?: string;
|
|
1145
1379
|
}
|
|
1146
1380
|
|
|
1147
1381
|
export interface TokenCommand {
|
|
1148
|
-
tokenId?:
|
|
1149
|
-
}
|
|
1150
|
-
|
|
1151
|
-
export interface TokenId extends UserOrTokenId {
|
|
1152
|
-
type?: Class<Token>;
|
|
1382
|
+
tokenId?: string;
|
|
1153
1383
|
}
|
|
1154
1384
|
|
|
1155
1385
|
export interface TokenInfo {
|
|
@@ -1161,20 +1391,6 @@ export interface TokenInfo {
|
|
|
1161
1391
|
export interface TokenUpdate extends TokenCommand {
|
|
1162
1392
|
}
|
|
1163
1393
|
|
|
1164
|
-
export interface Type {
|
|
1165
|
-
typeName?: string;
|
|
1166
|
-
}
|
|
1167
|
-
|
|
1168
|
-
export interface TypeDescriptor {
|
|
1169
|
-
}
|
|
1170
|
-
|
|
1171
|
-
export interface TypeVariable<D> extends Type, AnnotatedElement {
|
|
1172
|
-
annotatedBounds?: AnnotatedType[];
|
|
1173
|
-
bounds?: Type[];
|
|
1174
|
-
genericDeclaration?: D;
|
|
1175
|
-
name?: string;
|
|
1176
|
-
}
|
|
1177
|
-
|
|
1178
1394
|
export interface UpdateAccountInfo extends AccountUpdate {
|
|
1179
1395
|
autoConfirm?: boolean;
|
|
1180
1396
|
criticalInfo?: CriticalAccountInfo;
|
|
@@ -1185,9 +1401,24 @@ export interface UpdateAccountPermission extends AccountPermissionCommand {
|
|
|
1185
1401
|
accountPermission?: AccountPermission;
|
|
1186
1402
|
}
|
|
1187
1403
|
|
|
1188
|
-
export interface
|
|
1404
|
+
export interface UpdatePosition {
|
|
1405
|
+
clientSegment?: number[];
|
|
1406
|
+
lastIndex?: number;
|
|
1407
|
+
tokenId?: string;
|
|
1408
|
+
}
|
|
1409
|
+
|
|
1410
|
+
export interface UpdateRide extends RideBookerCommand {
|
|
1411
|
+
booker?: AccountOrTeamRef;
|
|
1189
1412
|
info?: RideInfo;
|
|
1190
|
-
|
|
1413
|
+
}
|
|
1414
|
+
|
|
1415
|
+
export interface UpdateRidePlan extends RideDriverModifyCommand {
|
|
1416
|
+
plannedStartTime?: string;
|
|
1417
|
+
}
|
|
1418
|
+
|
|
1419
|
+
export interface UpdateRideSeries extends RideBookerSeriesCommand {
|
|
1420
|
+
info?: GenericRideInfo;
|
|
1421
|
+
rides?: SingleRide[];
|
|
1191
1422
|
}
|
|
1192
1423
|
|
|
1193
1424
|
export interface UpdateTeam extends TeamUpdate {
|
|
@@ -1203,15 +1434,14 @@ export interface UpdateUserInfo extends UserEdit {
|
|
|
1203
1434
|
info?: UserInfo;
|
|
1204
1435
|
}
|
|
1205
1436
|
|
|
1206
|
-
export interface
|
|
1207
|
-
userId?: UserId;
|
|
1437
|
+
export interface UserAndTokenUpcaster {
|
|
1208
1438
|
}
|
|
1209
1439
|
|
|
1210
|
-
export interface
|
|
1440
|
+
export interface UserCommand {
|
|
1441
|
+
userId?: string;
|
|
1211
1442
|
}
|
|
1212
1443
|
|
|
1213
|
-
export interface
|
|
1214
|
-
type?: Class<UserProfile>;
|
|
1444
|
+
export interface UserEdit extends UserUpdateAfterSignup {
|
|
1215
1445
|
}
|
|
1216
1446
|
|
|
1217
1447
|
export interface UserInfo {
|
|
@@ -1232,7 +1462,7 @@ export interface UserProfile {
|
|
|
1232
1462
|
email?: string;
|
|
1233
1463
|
emailConfirmed?: boolean;
|
|
1234
1464
|
info?: UserInfo;
|
|
1235
|
-
userId?:
|
|
1465
|
+
userId?: string;
|
|
1236
1466
|
userRole?: UserRole;
|
|
1237
1467
|
}
|
|
1238
1468
|
|
|
@@ -1242,21 +1472,18 @@ export interface UserUpdate extends UserCommand {
|
|
|
1242
1472
|
export interface UserUpdateAfterSignup extends UserUpdate {
|
|
1243
1473
|
}
|
|
1244
1474
|
|
|
1245
|
-
export interface ZoneId extends Serializable {
|
|
1246
|
-
}
|
|
1247
|
-
|
|
1248
1475
|
export interface ZonedTimeRange {
|
|
1249
1476
|
end?: Date;
|
|
1250
1477
|
start?: Date;
|
|
1251
1478
|
}
|
|
1252
1479
|
|
|
1253
|
-
export type AccountRole = "
|
|
1480
|
+
export type AccountRole = "ridebooker" | "dispatcher" | "admin" | "owner";
|
|
1254
1481
|
|
|
1255
1482
|
export type AuthenticationResult = "SUCCESS" | "NOT_CONFIRMED";
|
|
1256
1483
|
|
|
1257
|
-
export type BookingStatus = "saved" | "booked" | "accepted" | "started" | "completed" | "cancelled";
|
|
1484
|
+
export type BookingStatus = "saved" | "booked" | "accepted" | "planned" | "started" | "completed" | "cancelled";
|
|
1258
1485
|
|
|
1259
|
-
export type
|
|
1486
|
+
export type DrivePermissionFilterUnion = AmbulanceFilter | TaxiFilter;
|
|
1260
1487
|
|
|
1261
1488
|
export type DriveStatus = "driving_to_origin" | "arrived_at_origin" | "driving_to_destination" | "arrived_at_destination" | "completed";
|
|
1262
1489
|
|
|
@@ -1266,20 +1493,26 @@ export type InsuranceType = "public_insurance" | "private_insurance" | "german_a
|
|
|
1266
1493
|
|
|
1267
1494
|
export type IntegrationType = "dispolive" | "celios";
|
|
1268
1495
|
|
|
1269
|
-
export type Mobility = "wheelchair" | "big_or_electric_wheelchair" | "carry_chair" | "
|
|
1496
|
+
export type Mobility = "wheelchair" | "big_or_electric_wheelchair" | "carry_chair" | "stretcher";
|
|
1270
1497
|
|
|
1271
|
-
export type
|
|
1498
|
+
export type OrganisationType = "medical" | "fleet";
|
|
1272
1499
|
|
|
1273
|
-
export type
|
|
1500
|
+
export type RidePurpose = "admission" | "relocation" | "discharge" | "consultation";
|
|
1274
1501
|
|
|
1275
|
-
export type
|
|
1502
|
+
export type RideSeriesStatus = "booked" | "accepted" | "confirmed" | "cancelled";
|
|
1503
|
+
|
|
1504
|
+
export type Service = "pro_medical" | "pro_fleet" | "celios_integration" | "dispolive_integration";
|
|
1276
1505
|
|
|
1277
1506
|
export type SlackChannel = "admin_monitoring" | "admin_respond_immediately" | "admin_respond_within_hour" | "admin_reported_issues";
|
|
1278
1507
|
|
|
1279
|
-
export type StandaloneService = "
|
|
1508
|
+
export type StandaloneService = "pro_medical" | "pro_fleet";
|
|
1280
1509
|
|
|
1281
1510
|
export type SyncStatus = "not_synced" | "synced" | "update_not_synced";
|
|
1282
1511
|
|
|
1283
|
-
export type TeamRole = "
|
|
1512
|
+
export type TeamRole = "dispatcher" | "ridebooker";
|
|
1513
|
+
|
|
1514
|
+
export type TrackingUpdateType = "ride" | "rideseries";
|
|
1284
1515
|
|
|
1285
1516
|
export type UserRole = "superadmin";
|
|
1517
|
+
|
|
1518
|
+
export type VehicleType = "taxi" | "ambulance";
|
package/package.json
CHANGED