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