@moxi.gmbh/moxi-typescriptmodels 0.1.1041-test-server → 0.1.1041

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.
Files changed (2) hide show
  1. package/common.d.ts +662 -305
  2. package/package.json +1 -1
package/common.d.ts CHANGED
@@ -1,6 +1,41 @@
1
1
 
2
- export interface AcceptDrive extends FleetCommand {
3
- driveOwner?: AccountOrTeamRef;
2
+ export interface AbstractFindMyRides {
3
+ accountId?: string;
4
+ descending?: boolean;
5
+ filter?: RideFilter;
6
+ maxSize?: number;
7
+ term?: string;
8
+ }
9
+
10
+ export interface AbstractFindRides {
11
+ descending?: boolean;
12
+ filter?: RideFilter;
13
+ maxSize?: number;
14
+ term?: string;
15
+ }
16
+
17
+ export interface AbstractFindRidesForDriver {
18
+ accountId?: string;
19
+ descending?: boolean;
20
+ filter?: RideFilter;
21
+ maxSize?: number;
22
+ term?: string;
23
+ }
24
+
25
+ export interface AbstractFindRidesInMarketplace {
26
+ accountId?: string;
27
+ descending?: boolean;
28
+ filter?: RideFilter;
29
+ maxSize?: number;
30
+ term?: string;
31
+ }
32
+
33
+ export interface AcceptRide extends RideDriverCommand {
34
+ driver?: AccountOrTeamRef;
35
+ }
36
+
37
+ export interface AcceptRideSeries extends SeriesDriverCommand {
38
+ driver?: AccountOrTeamRef;
4
39
  }
5
40
 
6
41
  export interface AcceptUserAgreement extends UserEdit {
@@ -8,7 +43,11 @@ export interface AcceptUserAgreement extends UserEdit {
8
43
  }
9
44
 
10
45
  export interface Account {
11
- accountId?: AccountId;
46
+ accountId?: string;
47
+ /**
48
+ * Derived from subscriptions
49
+ */
50
+ activeOrganisationTypes?: OrganisationType[];
12
51
  /**
13
52
  * Derived from subscriptions
14
53
  */
@@ -18,34 +57,36 @@ export interface Account {
18
57
  drivePermissions?: DrivePermission[];
19
58
  info?: AccountInfo;
20
59
  integrationSettings?: any[];
60
+ operateAccounts?: string[];
61
+ operators?: string[];
62
+ /**
63
+ * Derived from subscriptions. Includes organisation types that have not been confirmed yet by a superadmin or are active in past or future.
64
+ */
65
+ organisationTypes?: OrganisationType[];
21
66
  subscriptions?: Subscription[];
22
67
  teams?: Team[];
23
68
  unconfirmedCriticalInfo?: CriticalAccountInfo;
24
69
  }
25
70
 
26
71
  export interface AccountCommand {
27
- accountId?: AccountId;
72
+ accountId?: string;
28
73
  }
29
74
 
30
75
  export interface AccountFilter {
31
76
  activeServices?: Service[];
32
77
  }
33
78
 
34
- export interface AccountId {
35
- type?: Class<Account>;
36
- }
37
-
38
79
  export interface AccountInfo {
39
80
  address?: AddressInfo;
40
81
  defaultLanguage?: string;
41
82
  notificationEmails?: string[];
42
83
  phoneNumber?: PhoneNumber;
43
- zoneId?: ZoneId;
84
+ zoneId?: string;
44
85
  }
45
86
 
46
87
  export interface AccountOrTeamId {
47
- accountId?: AccountId;
48
- teamId?: TeamId;
88
+ accountId?: string;
89
+ teamId?: string;
49
90
  }
50
91
 
51
92
  export interface AccountOrTeamRef extends AccountOrTeamId {
@@ -54,23 +95,34 @@ export interface AccountOrTeamRef extends AccountOrTeamId {
54
95
  }
55
96
 
56
97
  export interface AccountPermission {
57
- accountId?: AccountId;
98
+ accountId?: string;
58
99
  roles?: AccountRole[];
59
100
  teamPermissions?: TeamPermission[];
60
101
  }
61
102
 
62
103
  export interface AccountPermissionCommand extends UserUpdate {
63
- accountId?: AccountId;
104
+ accountId?: string;
105
+ }
106
+
107
+ export interface AccountPermissionFilter {
108
+ roles?: AccountRole[];
64
109
  }
65
110
 
66
111
  export interface AccountRef {
67
- accountId?: AccountId;
112
+ accountId?: string;
68
113
  name?: string;
69
114
  }
70
115
 
116
+ export interface AccountUpcaster {
117
+ }
118
+
71
119
  export interface AccountUpdate extends AccountCommand {
72
120
  }
73
121
 
122
+ export interface AddOperations extends AccountUpdate {
123
+ operateAccount?: string;
124
+ }
125
+
74
126
  /**
75
127
  * Address info of a google-validated address, including geolocation and district code
76
128
  */
@@ -103,16 +155,16 @@ export interface AdminConfirmUser extends UserUpdateAfterSignup {
103
155
 
104
156
  export interface AdminSetUserPassword {
105
157
  password?: string;
106
- userId?: UserId;
158
+ userId?: string;
107
159
  }
108
160
 
109
- export interface AmbulanceFilter extends RideTypeSpecificFilter {
161
+ export interface AmbulanceFilter extends DrivePermissionFilter {
110
162
  heavyWeightAllowed?: boolean;
111
163
  type: "ambulance";
112
164
  }
113
165
 
114
166
  /**
115
- * Filled if (and only if) rideType == ambulance
167
+ * Filled if (and only if) vehicleType == ambulance
116
168
  */
117
169
  export interface AmbulanceInfo {
118
170
  /**
@@ -133,26 +185,29 @@ export interface AmbulanceInfo {
133
185
  requiresSuctionAspirator?: boolean;
134
186
  }
135
187
 
136
- export interface AnnotatedElement {
137
- annotations?: Annotation[];
138
- declaredAnnotations?: Annotation[];
139
- }
140
-
141
- export interface AnnotatedType extends AnnotatedElement {
142
- annotatedOwnerType?: AnnotatedType;
143
- type?: Type;
188
+ /**
189
+ * Information about the ride, from the creator of the ride
190
+ */
191
+ export interface AnonymizedRideInfo extends RideInfo {
144
192
  }
145
193
 
146
- export interface Annotation {
194
+ /**
195
+ * Information about the ride, from the creator of the ride
196
+ */
197
+ export interface AnonymizedSeriesRideInfo extends SeriesRideInfo {
147
198
  }
148
199
 
149
200
  export interface Appointment {
150
201
  pickup?: boolean;
151
- time?: Date;
202
+ time?: string;
152
203
  }
153
204
 
154
- export interface AssignDriver extends RideCommand {
155
- driveOwner?: AccountOrTeamRef;
205
+ export interface AssignDriver extends RideOperatorCommand {
206
+ driver?: AccountOrTeamRef;
207
+ }
208
+
209
+ export interface AssignRideSeriesDriver extends SeriesOperatorCommand {
210
+ driver?: AccountOrTeamRef;
156
211
  }
157
212
 
158
213
  export interface Attachment {
@@ -167,24 +222,36 @@ export interface AuthenticateWithToken extends UserUpdate {
167
222
 
168
223
  export interface AuthenticationResponse {
169
224
  authorizationHeader?: string;
170
- impersonator?: UserId;
225
+ impersonator?: string;
171
226
  result?: AuthenticationResult;
172
- sessionDeadline?: Date;
227
+ sessionDeadline?: string;
173
228
  userProfile?: UserProfile;
174
229
  }
175
230
 
231
+ export interface AuthenticationResponseFactory {
232
+ }
233
+
176
234
  export interface AuthenticationService {
177
235
  }
178
236
 
179
237
  export interface BookRide extends CreateRideCommand {
180
238
  info?: RideInfo;
181
- owner?: AccountOrTeamRef;
182
239
  }
183
240
 
184
- export interface CancelDrive extends FleetModifyCommand {
241
+ export interface BookRideSeries extends CreateSeriesCommand {
242
+ rideSummaries?: RideSummary[];
243
+ }
244
+
245
+ export interface CancelRide extends RideBookerCommand {
246
+ reason?: string;
247
+ }
248
+
249
+ export interface CancelRideSeries extends SeriesCommandWithSeparateEvent {
250
+ reason?: string;
185
251
  }
186
252
 
187
- export interface CancelRide extends RidePlannerCommand {
253
+ export interface CancelRideSeriesEvent extends SeriesBookerCommand {
254
+ cancelRides?: string[];
188
255
  reason?: string;
189
256
  }
190
257
 
@@ -200,17 +267,21 @@ export interface CeliosSettings {
200
267
  export interface ChangeUserPassword {
201
268
  newPassword?: string;
202
269
  oldPassword?: string;
203
- userId?: UserId;
270
+ userId?: string;
204
271
  }
205
272
 
206
273
  export interface CheckIfUserSignedUp {
207
- userId?: UserId;
208
- }
209
-
210
- export interface Class<T> extends Serializable, GenericDeclaration, Type, AnnotatedElement, OfField<Class<any>>, Constable {
274
+ userId?: string;
211
275
  }
212
276
 
213
- export interface Cloneable {
277
+ /**
278
+ * You can send in custom values. For every value you don't send in, we lookup the default setting you set up in your account.
279
+ */
280
+ export interface CleaningAndSlack {
281
+ cleaningAtGarage?: boolean;
282
+ cleaningDuration?: number;
283
+ dropoffDuration?: number;
284
+ pickupDuration?: number;
214
285
  }
215
286
 
216
287
  export interface ConfirmAccount extends AccountCommand {
@@ -229,7 +300,7 @@ export interface ConfirmSubscription extends AccountUpdate {
229
300
 
230
301
  export interface ConfirmUser {
231
302
  token?: string;
232
- userId?: UserId;
303
+ userId?: string;
233
304
  }
234
305
 
235
306
  export interface ConfirmablePermission {
@@ -237,14 +308,11 @@ export interface ConfirmablePermission {
237
308
  revoked?: boolean;
238
309
  }
239
310
 
240
- export interface Constable {
241
- }
242
-
243
311
  export interface CreateAccount extends AccountCommand {
244
312
  autoConfirm?: boolean;
245
313
  criticalInfo?: CriticalAccountInfo;
246
314
  info?: AccountInfo;
247
- owner?: UserId;
315
+ owner?: string;
248
316
  requestService?: StandaloneService;
249
317
  }
250
318
 
@@ -253,8 +321,13 @@ export interface CreateOptimizationPlan extends OptimizerMessage {
253
321
  timeRange?: InstantRange;
254
322
  }
255
323
 
256
- export interface CreateRideCommand extends RidePlannerCommand {
257
- owner?: AccountOrTeamId;
324
+ export interface CreateRideCommand extends RideBookerCommand {
325
+ booker?: AccountOrTeamRef;
326
+ }
327
+
328
+ export interface CreateSeriesCommand extends SeriesBookerCommand {
329
+ booker?: AccountOrTeamRef;
330
+ info?: SeriesRideInfo;
258
331
  }
259
332
 
260
333
  export interface CreateSqueezeInPlan extends OptimizerMessage {
@@ -263,7 +336,7 @@ export interface CreateSqueezeInPlan extends OptimizerMessage {
263
336
 
264
337
  export interface CreateTeam extends AccountCommand {
265
338
  info?: TeamInfo;
266
- teamId?: TeamId;
339
+ teamId?: string;
267
340
  }
268
341
 
269
342
  export interface CreateToken extends TokenCommand {
@@ -283,19 +356,16 @@ export interface CriticalAccountInfo {
283
356
  }
284
357
 
285
358
  export interface DateRange {
286
- end?: Date;
287
- start?: Date;
359
+ end?: string;
360
+ start?: string;
288
361
  }
289
362
 
290
363
  export interface DeleteUser extends UserEdit {
291
364
  }
292
365
 
293
- export interface Dimension extends Dimension2D, Serializable {
294
- }
295
-
296
- export interface Dimension2D extends Cloneable {
297
- height?: number;
298
- width?: number;
366
+ export interface DisconnectClient {
367
+ clientId?: string;
368
+ tokenId?: string;
299
369
  }
300
370
 
301
371
  export interface DispoliveSettings {
@@ -306,7 +376,7 @@ export interface DispoliveSettings {
306
376
 
307
377
  export interface District {
308
378
  info?: DistrictInfo;
309
- polygons?: Polygon[];
379
+ polygons?: any[];
310
380
  }
311
381
 
312
382
  export interface DistrictInfo {
@@ -330,14 +400,18 @@ export interface DrivePermission {
330
400
  revoked?: boolean;
331
401
  }
332
402
 
403
+ export interface DrivePermissionFilter {
404
+ type: "ambulance" | "taxi";
405
+ }
406
+
333
407
  export interface DrivePermissionInfo {
334
- filter?: RideTypeSpecificFilterUnion;
408
+ filter?: DrivePermissionFilterUnion;
335
409
  monopoly?: boolean;
336
410
  regions?: Region[];
337
411
  }
338
412
 
339
413
  export interface DrivePermissionInfoRequest {
340
- filter?: RideTypeSpecificFilterUnion;
414
+ filter?: DrivePermissionFilterUnion;
341
415
  regions?: Region[];
342
416
  }
343
417
 
@@ -377,7 +451,7 @@ export interface FetchGoogleGeoLocation {
377
451
  }
378
452
 
379
453
  export interface FetchGoogleRoute {
380
- departureTime?: Date;
454
+ departureTime?: string;
381
455
  from?: GeoLocation;
382
456
  to?: GeoLocation;
383
457
  }
@@ -399,58 +473,55 @@ export interface FindAccounts {
399
473
  term?: string;
400
474
  }
401
475
 
402
- export interface FindMyAcceptedRides {
403
- accountId?: AccountId;
404
- descending?: boolean;
405
- filter?: RideFilter;
406
- maxSize?: number;
407
- term?: string;
476
+ export interface FindDuplicateRides {
477
+ accountId?: string;
478
+ appointmentTime?: string;
479
+ patientBirthDay?: string;
480
+ patientFirstName?: string;
481
+ patientLastName?: string;
408
482
  }
409
483
 
410
- /**
411
- * @deprecated
412
- */
413
- export interface FindMyRideOffers {
414
- accountId?: AccountId;
415
- descending?: boolean;
416
- filter?: RideFilter;
417
- maxSize?: number;
418
- term?: string;
484
+ export interface FindMyRides extends AbstractFindMyRides {
419
485
  }
420
486
 
421
- export interface FindMyRides {
422
- accountId?: AccountId;
423
- descending?: boolean;
424
- filter?: RideFilter;
425
- maxSize?: number;
426
- term?: string;
487
+ export interface FindMyRidesAndSeries extends AbstractFindMyRides {
488
+ }
489
+
490
+ export interface FindMySeries extends AbstractFindMyRides {
427
491
  }
428
492
 
429
493
  export interface FindMyTokens {
430
- accountId?: AccountId;
431
- teamId?: TeamId;
494
+ accountId?: string;
432
495
  term?: string;
433
496
  }
434
497
 
435
498
  export interface FindMyUsers {
436
- accountId?: AccountId;
437
- teamId?: TeamId;
499
+ accountId?: string;
500
+ teamId?: string;
438
501
  term?: string;
439
502
  }
440
503
 
441
- export interface FindPotentialRides {
442
- accountId?: AccountId;
443
- descending?: boolean;
444
- filter?: RideFilter;
445
- maxSize?: number;
446
- term?: string;
504
+ export interface FindRides extends AbstractFindRides {
447
505
  }
448
506
 
449
- export interface FindRides {
450
- descending?: boolean;
451
- filter?: RideFilter;
452
- maxSize?: number;
453
- term?: string;
507
+ export interface FindRidesAndSeries extends AbstractFindRides {
508
+ }
509
+
510
+ export interface FindRidesAndSeriesForDriver extends AbstractFindRidesForDriver {
511
+ }
512
+
513
+ export interface FindRidesAndSeriesInMarketplace extends AbstractFindRidesInMarketplace {
514
+ }
515
+
516
+ export interface FindRidesAndSeriesResult {
517
+ ridesAndSeries?: RideOrMinimizedSeries[];
518
+ ridesCount?: RideFilterCount;
519
+ }
520
+
521
+ export interface FindRidesForDriver extends AbstractFindRidesForDriver {
522
+ }
523
+
524
+ export interface FindRidesInMarketplace extends AbstractFindRidesInMarketplace {
454
525
  }
455
526
 
456
527
  export interface FindRidesResult {
@@ -458,28 +529,64 @@ export interface FindRidesResult {
458
529
  rides?: Ride[];
459
530
  }
460
531
 
532
+ export interface FindSeries extends AbstractFindRides {
533
+ }
534
+
535
+ export interface FindSeriesForDriver extends AbstractFindRidesForDriver {
536
+ }
537
+
538
+ export interface FindSeriesInMarketplace extends AbstractFindRidesInMarketplace {
539
+ }
540
+
461
541
  export interface FindTokens {
462
542
  term?: string;
463
543
  }
464
544
 
465
545
  export interface FindUsers {
546
+ accountFilter?: AccountFilter;
547
+ accountPermissionFilter?: AccountPermissionFilter;
466
548
  term?: string;
467
549
  }
468
550
 
469
- export interface FleetCommand extends RideCommand {
470
- }
471
-
472
- export interface FleetModifyCommand extends FleetCommand {
551
+ export interface FirebaseMessage {
552
+ data?: { [index: string]: string };
553
+ notification?: Notification;
554
+ topic?: string;
473
555
  }
474
556
 
475
557
  export interface GenerateToken {
476
558
  accountPermission?: AccountPermission;
477
559
  info?: TokenInfo;
478
- tokenId?: TokenId;
560
+ tokenId?: string;
479
561
  }
480
562
 
481
- export interface GenericDeclaration extends AnnotatedElement {
482
- typeParameters?: TypeVariable<any>[];
563
+ export interface GenerateTokenResult {
564
+ entity?: Token;
565
+ jwt?: string;
566
+ }
567
+
568
+ /**
569
+ * Common information shared across all rides in a series. Similar to RideInfo but without appointment-specific details that vary per ride.
570
+
571
+ */
572
+ export interface GenericRideInfo {
573
+ ambulanceInfo?: AmbulanceInfo;
574
+ attendantsPresent?: number;
575
+ comment?: string;
576
+ dimensions?: PersonDimensions;
577
+ distanceInMeters?: number;
578
+ from?: AddressInfo;
579
+ /**
580
+ * Derived from weightInKg != null
581
+ */
582
+ heavyWeight?: boolean;
583
+ mobility?: Mobility;
584
+ patient?: Person;
585
+ plannedDuration?: RideDuration;
586
+ preferredDriver?: string;
587
+ to?: AddressInfo;
588
+ vehicleType?: VehicleType;
589
+ weightInKg?: number;
483
590
  }
484
591
 
485
592
  export interface GeoJson {
@@ -509,13 +616,19 @@ export interface Geometry {
509
616
  }
510
617
 
511
618
  export interface GetAccount {
512
- accountId?: AccountId;
619
+ accountId?: string;
513
620
  }
514
621
 
515
- export interface GetAccountsOfPotentialDrivers extends GetPotentialDrivers {
622
+ /**
623
+ * @deprecated
624
+ */
625
+ export interface GetAccountsOfPotentialDrivers extends IGetPotentialDrivers {
516
626
  }
517
627
 
518
- export interface GetAccountsOfPotentialDriversAsAdmin extends GetPotentialDrivers {
628
+ /**
629
+ * @deprecated
630
+ */
631
+ export interface GetAccountsOfPotentialDriversAsAdmin extends IGetPotentialDrivers {
519
632
  }
520
633
 
521
634
  export interface GetDistrict {
@@ -538,27 +651,18 @@ export interface GetIsoStates {
538
651
  export interface GetMonopolyAccounts {
539
652
  }
540
653
 
541
- export interface GetMyAcceptedRides {
542
- accountId?: AccountId;
543
- maxSize?: number;
544
- timeRange?: InstantRange;
545
- }
546
-
547
654
  export interface GetMyAccounts {
548
655
  filter?: AccountFilter;
549
656
  }
550
657
 
551
- /**
552
- * @deprecated
553
- */
554
- export interface GetMyRideOffers {
555
- accountId?: AccountId;
658
+ export interface GetMyRides {
659
+ accountId?: string;
556
660
  maxSize?: number;
557
661
  timeRange?: InstantRange;
558
662
  }
559
663
 
560
- export interface GetMyRides {
561
- accountId?: AccountId;
664
+ export interface GetMySeries {
665
+ accountId?: string;
562
666
  maxSize?: number;
563
667
  timeRange?: InstantRange;
564
668
  }
@@ -572,45 +676,91 @@ export interface GetMyUserProfile {
572
676
  export interface GetNutsStates {
573
677
  }
574
678
 
575
- export interface GetPotentialDrivers {
679
+ export interface GetOneSeries {
680
+ rideSeriesId?: string;
681
+ }
682
+
683
+ export interface GetPotentialDriverIds extends GetPotentialDriversAbstract {
684
+ }
685
+
686
+ /**
687
+ * Common information shared across all rides in a series. Similar to RideInfo but without appointment-specific details that vary per ride.
688
+
689
+ */
690
+ export interface GetPotentialDrivers extends GetPotentialDriversAbstract {
691
+ }
692
+
693
+ export interface GetPotentialDriversAbstract {
576
694
  fromDistrict?: string;
577
695
  mobility?: Mobility;
578
- rideType?: RideType;
579
- toDistrict?: string;
696
+ vehicleType?: VehicleType;
580
697
  weightInKg?: number;
581
698
  }
582
699
 
583
- export interface GetPotentialRides {
584
- accountId?: AccountId;
700
+ export interface GetRide {
701
+ rideId?: string;
702
+ }
703
+
704
+ export interface GetRideCsv extends RideStatisticsQuery {
705
+ }
706
+
707
+ export interface GetRideDataForBooker extends RideStatisticsQuery {
708
+ accountId?: string;
709
+ }
710
+
711
+ export interface GetRideDataForDriver extends RideStatisticsQuery {
712
+ accountId?: string;
713
+ }
714
+
715
+ export interface GetRideLog {
716
+ rideId?: string;
717
+ }
718
+
719
+ export interface GetRideOrSeries {
720
+ id?: string;
721
+ }
722
+
723
+ export interface GetRidesForDriver {
724
+ accountId?: string;
585
725
  maxSize?: number;
586
726
  timeRange?: InstantRange;
587
727
  }
588
728
 
589
- export interface GetRide {
590
- rideId?: RideId;
729
+ export interface GetRidesInMarketplace {
730
+ accountId?: string;
731
+ maxSize?: number;
732
+ timeRange?: InstantRange;
591
733
  }
592
734
 
593
- export interface GetRideCsv extends RideStatisticsQuery {
735
+ export interface GetRidesInSeries {
736
+ rideSeriesId?: string;
594
737
  }
595
738
 
596
- export interface GetRideData extends RideStatisticsQuery {
597
- rideOwner?: AccountId;
739
+ export interface GetSeriesForDriver {
740
+ accountId?: string;
741
+ maxSize?: number;
742
+ timeRange?: InstantRange;
598
743
  }
599
744
 
600
- export interface GetRideLog {
601
- rideId?: RideId;
745
+ export interface GetSeriesInMarketplace {
746
+ accountId?: string;
747
+ maxSize?: number;
748
+ }
749
+
750
+ export interface GetSeriesLog {
751
+ rideSeriesId?: string;
602
752
  }
603
753
 
604
754
  export interface GetTeam {
605
- teamId?: TeamId;
755
+ teamId?: string;
606
756
  }
607
757
 
608
758
  export interface GetToken {
609
- tokenId?: TokenId;
759
+ tokenId?: string;
610
760
  }
611
761
 
612
762
  export interface GetUserProfile {
613
- userId?: UserId;
763
+ userId?: string;
614
764
  }
615
765
 
616
766
  export interface GiveDrivePermission extends AccountUpdate {
@@ -627,16 +777,25 @@ export interface GiveTeamPermission extends AccountPermissionCommand {
627
777
  teamPermission?: TeamPermission;
628
778
  }
629
779
 
630
- export interface ImpersonateUser {
631
- userId?: UserId;
780
+ export interface HalfHourBeforeStart {
781
+ rideId?: string;
632
782
  }
633
783
 
634
- export interface InetAddress extends Serializable {
784
+ export interface IGetPotentialDrivers {
785
+ fromDistrict?: string;
786
+ mobility?: Mobility;
787
+ toDistrict?: string;
788
+ vehicleType?: VehicleType;
789
+ weightInKg?: number;
790
+ }
791
+
792
+ export interface ImpersonateUser {
793
+ userId?: string;
635
794
  }
636
795
 
637
796
  export interface InstantRange {
638
- end?: Date;
639
- start?: Date;
797
+ end?: string;
798
+ start?: string;
640
799
  }
641
800
 
642
801
  export interface Insurer {
@@ -645,7 +804,7 @@ export interface Insurer {
645
804
  }
646
805
 
647
806
  export interface Invite {
648
- accountId?: AccountId;
807
+ accountId?: string;
649
808
  invitedBy?: string;
650
809
  }
651
810
 
@@ -659,7 +818,7 @@ export interface InviteUser extends UserCommand {
659
818
  * Ip4 or ip6 range in CIDR format
660
819
  */
661
820
  export interface IpRange {
662
- ip?: InetAddress;
821
+ ip?: string;
663
822
  range?: number;
664
823
  }
665
824
 
@@ -670,6 +829,28 @@ export interface IsoState {
670
829
  nutsCode?: string;
671
830
  }
672
831
 
832
+ export interface Metric {
833
+ clientId?: string;
834
+ clientSegment?: number[];
835
+ maxSize?: number;
836
+ maxTimeout?: string;
837
+ tokenId?: string;
838
+ type?: string;
839
+ updates?: string[];
840
+ }
841
+
842
+ /**
843
+ * RideSeries is a grouped ride series. A singular object, that is later split into individual rides, once a driver has accepted the series as a group.
844
+ */
845
+ export interface MinimizedRideSeries extends RideSeries, RideOrMinimizedSeries {
846
+ info?: SeriesRideInfo;
847
+ }
848
+
849
+ export interface Notification {
850
+ body?: string;
851
+ title?: string;
852
+ }
853
+
673
854
  export interface NutsDistrict {
674
855
  code?: string;
675
856
  name?: string;
@@ -687,22 +868,21 @@ export interface NutsSubState {
687
868
  name?: string;
688
869
  }
689
870
 
690
- export interface OfField<F> extends TypeDescriptor {
691
- array?: boolean;
692
- primitive?: boolean;
693
- }
694
-
695
871
  export interface OffsetTimeRange {
696
872
  end?: Date;
697
873
  start?: Date;
698
874
  }
699
875
 
876
+ export interface OneHourAfterEnd {
877
+ rideId?: string;
878
+ }
879
+
700
880
  export interface OptimizerMessage {
701
881
  }
702
882
 
703
883
  export interface Person {
704
884
  address?: AddressInfo;
705
- birthDay?: Date;
885
+ birthDay?: string;
706
886
  email?: string;
707
887
  firstName?: string;
708
888
  insuranceNumber?: string;
@@ -724,45 +904,40 @@ export interface PersonDimensions {
724
904
  export interface PhoneNumber {
725
905
  }
726
906
 
727
- export interface Point extends Point2D, Serializable {
907
+ export interface PlanRide extends RideDriverModifyCommand {
908
+ plannedStartTime?: string;
728
909
  }
729
910
 
730
- export interface Point2D extends Cloneable {
731
- x?: number;
732
- y?: number;
911
+ export interface ReadUpdates {
912
+ clientId?: string;
913
+ maxSize?: number;
914
+ maxTimeout?: number;
915
+ tokenId?: string;
916
+ updateTypes?: EntityType[];
733
917
  }
734
918
 
735
- export interface Polygon extends Shape, Serializable {
736
- /**
737
- * @deprecated
738
- */
739
- boundingBox?: Rectangle;
740
- npoints?: number;
741
- xpoints?: number[];
742
- ypoints?: number[];
919
+ export interface ReadUpdatesResult {
920
+ clientSegment?: number[];
921
+ lastIndex?: number;
922
+ updates?: any[];
923
+ }
924
+
925
+ export interface RefreshTokenData {
926
+ expiresAt?: string;
927
+ hashedToken?: string;
928
+ userId?: string;
743
929
  }
744
930
 
745
- export interface Rectangle extends Rectangle2D, Shape, Serializable {
746
- location?: Point;
747
- rect?: Rectangle2D;
748
- size?: Dimension;
931
+ export interface RefreshTokenService {
749
932
  }
750
933
 
751
- export interface Rectangle2D extends RectangularShape {
934
+ export interface RefreshUserToken {
935
+ refreshToken?: string;
752
936
  }
753
937
 
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;
938
+ export interface RefreshableAuthenticationResponse extends AuthenticationResponse {
939
+ refreshToken?: string;
940
+ refreshTokenDeadline?: string;
766
941
  }
767
942
 
768
943
  export interface Region {
@@ -773,26 +948,29 @@ export interface RegisterAuthenticationToken extends UserUpdate {
773
948
  hashedToken?: string;
774
949
  }
775
950
 
776
- export interface RegisterDifferentEta extends FleetModifyCommand {
777
- destinationEta?: Date;
778
- originEta?: Date;
779
- }
780
-
781
- export interface RegisterDriveStatus extends FleetModifyCommand {
951
+ export interface RegisterDriveStatus extends RideDriverModifyCommand {
782
952
  driveStatus?: DriveStatus;
783
953
  }
784
954
 
785
- export interface RegisterDriverSynced extends FleetModifyCommand {
955
+ export interface RegisterDriverSynced extends RideDriverModifyCommand {
786
956
  }
787
957
 
788
958
  export interface RegisterEinsatz {
789
959
  einsatzNumber?: string;
790
- rideId?: RideId;
960
+ rideId?: string;
791
961
  }
792
962
 
793
963
  export interface RemoveAccount extends AccountUpdate {
794
964
  }
795
965
 
966
+ export interface RemoveOperations extends AccountUpdate {
967
+ operateAccount?: string;
968
+ }
969
+
970
+ export interface RemoveOperator extends AccountUpdate {
971
+ operator?: string;
972
+ }
973
+
796
974
  export interface RemoveSettings extends AccountUpdate {
797
975
  type?: IntegrationType;
798
976
  }
@@ -801,7 +979,7 @@ export interface RemoveTeam extends TeamUpdate {
801
979
  }
802
980
 
803
981
  export interface RemoveTeamPermission extends AccountPermissionCommand {
804
- teamId?: TeamId;
982
+ teamId?: string;
805
983
  }
806
984
 
807
985
  export interface ReportIssue {
@@ -809,6 +987,13 @@ export interface ReportIssue {
809
987
  issue?: string;
810
988
  }
811
989
 
990
+ /**
991
+ * Can only report delays when ride has started and has not arrived at destination.
992
+ */
993
+ export interface ReportRideDelay extends RideDriverModifyCommand {
994
+ minutes?: number;
995
+ }
996
+
812
997
  export interface RequestDrivePermission extends AccountUpdate {
813
998
  drivePermissionId?: string;
814
999
  info?: DrivePermissionInfoRequest;
@@ -823,16 +1008,31 @@ export interface RequestUserReset {
823
1008
  email?: string;
824
1009
  }
825
1010
 
1011
+ /**
1012
+ * Resets the lastIndex position of your token.
1013
+ */
1014
+ export interface ResetPosition {
1015
+ index?: number;
1016
+ timestamp?: string;
1017
+ tokenId?: string;
1018
+ }
1019
+
1020
+ export interface ReturnRide extends RideDriverModifyCommand {
1021
+ }
1022
+
1023
+ export interface ReturnRideSeries extends SeriesDriverCommand {
1024
+ }
1025
+
826
1026
  export interface Review {
827
1027
  comment?: string;
828
1028
  stars?: number;
829
1029
  }
830
1030
 
831
- export interface ReviewRideAsDriver extends FleetModifyCommand {
1031
+ export interface ReviewRideAsBooker extends RideBookerCommand {
832
1032
  review?: Review;
833
1033
  }
834
1034
 
835
- export interface ReviewRideAsRider extends RidePlannerCommand {
1035
+ export interface ReviewRideAsDriver extends RideDriverModifyCommand {
836
1036
  review?: Review;
837
1037
  }
838
1038
 
@@ -843,6 +1043,9 @@ export interface RevokeDrivePermission extends AccountUpdate {
843
1043
  drivePermissionId?: string;
844
1044
  }
845
1045
 
1046
+ export interface RevokeSecondaryTokenPermission extends SecondaryTokenPermissionCommand {
1047
+ }
1048
+
846
1049
  export interface RevokeSubscription extends AccountUpdate {
847
1050
  subscriptionId?: string;
848
1051
  }
@@ -850,17 +1053,27 @@ export interface RevokeSubscription extends AccountUpdate {
850
1053
  export interface RevokeToken extends TokenUpdate {
851
1054
  }
852
1055
 
853
- export interface Ride {
1056
+ export interface RevokeUserRefreshTokens {
1057
+ userId?: string;
1058
+ }
1059
+
1060
+ export interface Ride extends RideOrSeries, RideOrMinimizedSeries {
854
1061
  /**
855
- * Derived from driveOwner != null
1062
+ * Derived from driver != null
856
1063
  */
857
1064
  accepted?: boolean;
1065
+ actualEndTime?: string;
1066
+ actualStartTime?: string;
1067
+ /**
1068
+ * Derived from driveStatus != null
1069
+ */
1070
+ arrived?: boolean;
858
1071
  /**
859
1072
  * Derived from bookedTime != null
860
1073
  */
861
1074
  booked?: boolean;
862
- bookedTime?: Date;
863
- bookingStatus?: BookingStatus;
1075
+ booker?: AccountOrTeamRef;
1076
+ bookerReview?: Review;
864
1077
  cancelReason?: string;
865
1078
  cancelled?: boolean;
866
1079
  /**
@@ -868,37 +1081,63 @@ export interface Ride {
868
1081
  */
869
1082
  completed?: boolean;
870
1083
  /**
871
- * Estimated Time of Arrival at the Destination/Drop-off location. Will differ from destinationPta if the driver reported a delay
1084
+ * Desired Time of Arrival at the Destination/Drop-off location. Derived from info.appointment and info.plannedDuration
872
1085
  */
873
- destinationEta?: Date;
1086
+ desiredEndTime?: string;
874
1087
  /**
875
- * Planned Time of Arrival at the Destination/Drop-off location. Derived from info.appointment and info.plannedDuration
1088
+ * Desired Time of Arrival at the Origin/Pick-up location. Derived from info.appointment and info.plannedDuration
876
1089
  */
877
- destinationPta?: Date;
878
- driveOwner?: AccountOrTeamRef;
1090
+ desiredStartTime?: string;
879
1091
  driveStatus?: DriveStatus;
880
1092
  driverReview?: Review;
881
1093
  driverSyncStatus?: SyncStatus;
1094
+ endTimeDelay?: number;
1095
+ /**
1096
+ * Expected Time of Arrival at the Destination/Drop-off location.
1097
+ */
1098
+ expectedEndTime?: string;
1099
+ /**
1100
+ * Expected Time of Arrival at the Origin/Pick-up location.
1101
+ */
1102
+ expectedStartTime?: string;
882
1103
  info?: RideInfo;
883
1104
  /**
884
- * Estimated Time of Arrival at the Origin/Pick-up location. Will differ from originPta if the driver reported a delay
1105
+ * Derived from plannedStartTime != null
1106
+ */
1107
+ planned?: boolean;
1108
+ /**
1109
+ * Planned Time of Arrival at the Destination/Drop-off location, reported by the driver.
1110
+ */
1111
+ plannedEndTime?: string;
1112
+ plannedStartTime?: string;
1113
+ rideId?: string;
1114
+ /**
1115
+ * The time until which rides can be found. It's the planned time or else the desired time.
885
1116
  */
886
- originEta?: Date;
1117
+ searchEndTime?: string;
887
1118
  /**
888
- * Planned Time of Arrival at the Origin/Pick-up location. Derived from info.appointment and info.plannedDuration
1119
+ * The time from which rides can be found. It's the planned time or else the desired time.
889
1120
  */
890
- originPta?: Date;
891
- rideId?: RideId;
892
- rideOwner?: AccountOrTeamRef;
893
- riderReview?: Review;
1121
+ searchStartTime?: string;
1122
+ seriesInfo?: SeriesInfo;
1123
+ startTimeDelay?: number;
894
1124
  /**
895
1125
  * Derived from driveStatus != null
896
1126
  */
897
1127
  started?: boolean;
898
1128
  }
899
1129
 
1130
+ export interface RideBookerCommand extends RideCommand {
1131
+ }
1132
+
900
1133
  export interface RideCommand {
901
- rideId?: RideId;
1134
+ rideId?: string;
1135
+ }
1136
+
1137
+ export interface RideDriverCommand extends RideCommand {
1138
+ }
1139
+
1140
+ export interface RideDriverModifyCommand extends RideDriverCommand {
902
1141
  }
903
1142
 
904
1143
  /**
@@ -913,72 +1152,53 @@ export interface RideDuration {
913
1152
 
914
1153
  export interface RideFilter {
915
1154
  bookingStatuses?: BookingStatus[];
916
- directions?: Direction[];
917
1155
  driveStatuses?: DriveStatus[];
918
1156
  driverAccountNames?: string[];
919
1157
  driverTeamNames?: string[];
1158
+ entityType?: EntityType;
920
1159
  hasInfection?: boolean;
921
1160
  heavyWeight?: boolean;
922
1161
  mobilities?: Mobility[];
1162
+ purposes?: RidePurpose[];
923
1163
  region?: Region;
924
1164
  requiresMonitoring?: boolean;
925
1165
  requiresOxygen?: boolean;
926
1166
  requiresSuctionAspirator?: boolean;
927
- rideType?: RideType;
928
1167
  riderAccountNames?: string[];
929
1168
  riderTeamNames?: string[];
930
1169
  timeRange?: InstantRange;
1170
+ unfoldRideSeries?: boolean;
1171
+ vehicleType?: VehicleType;
931
1172
  }
932
1173
 
933
1174
  export interface RideFilterCount {
934
1175
  bookingStatuses?: { [P in BookingStatus]?: number };
935
- directions?: { [P in Direction]?: number };
936
1176
  driveStatuses?: { [P in DriveStatus]?: number };
937
1177
  driverAccountNames?: { [index: string]: number };
938
1178
  driverTeamNames?: { [index: string]: number };
939
1179
  hasInfection?: number;
940
1180
  heavyWeight?: number;
941
1181
  mobilities?: { [P in Mobility]?: number };
1182
+ purposes?: { [P in RidePurpose]?: number };
942
1183
  requiresMonitoring?: number;
943
1184
  requiresOxygen?: number;
944
1185
  requiresSuctionAspirator?: number;
945
- rideTypes?: { [P in RideType]?: number };
946
1186
  riderAccountNames?: { [index: string]: number };
947
1187
  riderTeamNames?: { [index: string]: number };
948
1188
  total?: number;
949
- }
950
-
951
- export interface RideId {
952
- type?: Class<Ride>;
1189
+ vehicleTypes?: { [P in VehicleType]?: number };
953
1190
  }
954
1191
 
955
1192
  export interface RideIdResult {
956
- rideId?: RideId;
1193
+ rideId?: string;
957
1194
  }
958
1195
 
959
1196
  /**
960
1197
  * Information about the ride, from the creator of the ride
961
1198
  */
962
- export interface RideInfo {
963
- ambulanceInfo?: AmbulanceInfo;
1199
+ export interface RideInfo extends GenericRideInfo {
964
1200
  appointment?: Appointment;
965
- attendantsPresent?: number;
966
- comment?: string;
967
- dimensions?: PersonDimensions;
968
- direction?: Direction;
969
- distanceInMeters?: number;
970
- from?: AddressInfo;
971
- /**
972
- * Derived from weightInKg != null
973
- */
974
- heavyWeight?: boolean;
975
- mobility?: Mobility;
976
- patient?: Person;
977
- plannedDuration?: RideDuration;
978
- preferredDriver?: AccountId;
979
- rideType?: RideType;
980
- to?: AddressInfo;
981
- weightInKg?: number;
1201
+ purpose?: RidePurpose;
982
1202
  }
983
1203
 
984
1204
  export interface RideLog {
@@ -993,28 +1213,101 @@ export interface RideLog {
993
1213
  isSuperAdmin?: boolean;
994
1214
  isToken?: boolean;
995
1215
  superAdmin?: boolean;
996
- timestamp?: Date;
1216
+ timestamp?: string;
997
1217
  token?: boolean;
998
1218
  }
999
1219
 
1000
- export interface RideOfferInfo {
1001
- appointment?: Appointment;
1220
+ export interface RideOperatorCommand extends RideCommand {
1221
+ }
1222
+
1223
+ export interface RideOrMinimizedSeries {
1224
+ bookingStatus?: BookingStatus;
1225
+ entityType?: EntityType;
1226
+ info?: GenericRideInfo;
1227
+ }
1228
+
1229
+ export interface RideOrSeries {
1230
+ bookedTime?: string;
1231
+ bookingStatus?: BookingStatus;
1232
+ cleaningAndSlack?: CleaningAndSlack;
1233
+ driver?: AccountOrTeamRef;
1234
+ entityType?: EntityType;
1235
+ info?: GenericRideInfo;
1236
+ totalDuration?: number;
1237
+ }
1238
+
1239
+ /**
1240
+ * RideSeries is a grouped ride series. A singular object, that is later split into individual rides, once a driver has accepted the series as a group.
1241
+ */
1242
+ export interface RideSeries extends RideOrSeries {
1243
+ /**
1244
+ * Derived from driver != null
1245
+ */
1246
+ accepted?: boolean;
1247
+ activeRideCount?: number;
1248
+ /**
1249
+ * Derived from bookedTime != null
1250
+ */
1251
+ booked?: boolean;
1252
+ booker?: AccountOrTeamRef;
1253
+ cancelReason?: string;
1254
+ cancelled?: boolean;
1255
+ info?: SeriesRideInfo;
1256
+ rideSeriesId?: string;
1257
+ rides?: Ride[];
1258
+ ridesSummaries?: RideSummary[];
1259
+ searchEndTime?: string;
1260
+ searchStartTime?: string;
1002
1261
  }
1003
1262
 
1004
- export interface RidePlannerCommand extends RideCommand {
1263
+ export interface RideSeriesIdResult {
1264
+ rideSeriesId?: string;
1265
+ }
1266
+
1267
+ export interface RideSeriesUpdate {
1268
+ after?: RideSeries;
1269
+ before?: RideSeries;
1270
+ entityId?: string;
1271
+ eventType?: string;
1272
+ index?: number;
1273
+ timestamp?: string;
1274
+ type: "rideseries";
1275
+ }
1276
+
1277
+ export interface RideSeriesUtils {
1005
1278
  }
1006
1279
 
1007
1280
  export interface RideStatisticsQuery {
1008
1281
  dateRange?: DateRange;
1009
- timezoneOrDefault?: ZoneId;
1010
- zoneId?: ZoneId;
1282
+ zoneId?: string;
1011
1283
  }
1012
1284
 
1013
- export interface RideTypeSpecificFilter {
1014
- type: "ambulance" | "taxi";
1285
+ /**
1286
+ * Individual ride timing within a series. Once a ride series is split, you cannot add rides, only remove
1287
+ */
1288
+ export interface RideSummary {
1289
+ appointmentTime?: string;
1290
+ returnTrip?: boolean;
1291
+ rideId?: string;
1292
+ }
1293
+
1294
+ export interface RideSystemCommand extends RideCommand {
1015
1295
  }
1016
1296
 
1017
- export interface Role<T> {
1297
+ export interface RideUpcaster {
1298
+ }
1299
+
1300
+ export interface RideUpdate {
1301
+ after?: Ride;
1302
+ before?: Ride;
1303
+ entityId?: string;
1304
+ eventType?: string;
1305
+ index?: number;
1306
+ timestamp?: string;
1307
+ type: "ride";
1308
+ }
1309
+
1310
+ export interface Role {
1018
1311
  }
1019
1312
 
1020
1313
  /**
@@ -1022,11 +1315,18 @@ export interface Role<T> {
1022
1315
  */
1023
1316
  export interface SaveRide extends CreateRideCommand {
1024
1317
  info?: RideInfo;
1025
- owner?: AccountOrTeamRef;
1318
+ }
1319
+
1320
+ export interface SaveRideSeries extends CreateSeriesCommand {
1321
+ rideSummaries?: RideSummary[];
1322
+ }
1323
+
1324
+ export interface SecondaryTokenPermissionCommand extends TokenUpdate {
1325
+ accountId?: string;
1026
1326
  }
1027
1327
 
1028
1328
  export interface SendConfirmationEmail {
1029
- userId?: UserId;
1329
+ userId?: string;
1030
1330
  }
1031
1331
 
1032
1332
  export interface SendEmail {
@@ -1036,11 +1336,17 @@ export interface SendEmail {
1036
1336
  export interface SendFreshdeskNewTicket {
1037
1337
  email?: string;
1038
1338
  message?: string;
1339
+ subject?: string;
1039
1340
  }
1040
1341
 
1041
1342
  export interface SendInvitationEmail {
1042
- accountIdOfInvite?: AccountId;
1043
- userId?: UserId;
1343
+ accountIdOfInvite?: string;
1344
+ userId?: string;
1345
+ }
1346
+
1347
+ export interface SendKChat {
1348
+ channel?: KChatChannel;
1349
+ message?: string;
1044
1350
  }
1045
1351
 
1046
1352
  export interface SendSlack {
@@ -1048,7 +1354,55 @@ export interface SendSlack {
1048
1354
  message?: string;
1049
1355
  }
1050
1356
 
1051
- export interface Serializable {
1357
+ export interface SendToFirebase {
1358
+ message?: FirebaseMessage;
1359
+ }
1360
+
1361
+ export interface SeriesBookerCommand extends SeriesCommand {
1362
+ }
1363
+
1364
+ export interface SeriesCommand {
1365
+ rideSeriesId?: string;
1366
+ }
1367
+
1368
+ export interface SeriesCommandWithSeparateEvent {
1369
+ rideSeriesId?: string;
1370
+ }
1371
+
1372
+ export interface SeriesDriverCommand extends SeriesCommand {
1373
+ }
1374
+
1375
+ /**
1376
+ * Information about a ride that is part of series.
1377
+ */
1378
+ export interface SeriesInfo {
1379
+ desyncedFromSeries?: boolean;
1380
+ positionInSeries?: number;
1381
+ returnTrip?: boolean;
1382
+ rideSeriesId?: string;
1383
+ totalRidesInSeries?: number;
1384
+ }
1385
+
1386
+ export interface SeriesOperatorCommand extends SeriesCommand {
1387
+ }
1388
+
1389
+ /**
1390
+ * Information about the ride, from the creator of the ride
1391
+ */
1392
+ export interface SeriesRideInfo extends GenericRideInfo {
1393
+ purpose?: SeriesPurpose;
1394
+ }
1395
+
1396
+ export interface SetOperations extends AccountUpdate {
1397
+ operateAccounts?: string[];
1398
+ }
1399
+
1400
+ export interface SetOperator extends AccountUpdate {
1401
+ operator?: string;
1402
+ }
1403
+
1404
+ export interface SetSecondaryTokenPermission extends SecondaryTokenPermissionCommand {
1405
+ accountPermission?: AccountPermission;
1052
1406
  }
1053
1407
 
1054
1408
  export interface SetSettings extends AccountUpdate {
@@ -1058,21 +1412,16 @@ export interface SetSettings extends AccountUpdate {
1058
1412
  export interface SetUserPassword {
1059
1413
  confirmationCode?: string;
1060
1414
  password?: string;
1061
- userId?: UserId;
1415
+ userId?: string;
1062
1416
  }
1063
1417
 
1064
1418
  export interface SetUserRole extends UserUpdate {
1065
1419
  role?: UserRole;
1066
1420
  }
1067
1421
 
1068
- export interface Shape {
1069
- bounds?: Rectangle;
1070
- bounds2D?: Rectangle2D;
1071
- }
1072
-
1073
1422
  export interface SignInUser {
1074
1423
  password?: string;
1075
- userId?: UserId;
1424
+ userId?: string;
1076
1425
  }
1077
1426
 
1078
1427
  export interface SignUpUser {
@@ -1080,7 +1429,7 @@ export interface SignUpUser {
1080
1429
  info?: UserInfo;
1081
1430
  inviteToken?: string;
1082
1431
  password?: string;
1083
- userId?: UserId;
1432
+ userId?: string;
1084
1433
  }
1085
1434
 
1086
1435
  export interface StopImpersonatingUser {
@@ -1096,18 +1445,14 @@ export interface SubscriptionInfo extends TimedPermission {
1096
1445
  service?: Service;
1097
1446
  }
1098
1447
 
1099
- export interface TaxiFilter extends RideTypeSpecificFilter {
1448
+ export interface TaxiFilter extends DrivePermissionFilter {
1100
1449
  allowedMobilities?: Mobility[];
1101
1450
  type: "taxi";
1102
1451
  }
1103
1452
 
1104
1453
  export interface Team {
1105
1454
  info?: TeamInfo;
1106
- teamId?: TeamId;
1107
- }
1108
-
1109
- export interface TeamId {
1110
- type?: Class<Team>;
1455
+ teamId?: string;
1111
1456
  }
1112
1457
 
1113
1458
  export interface TeamInfo {
@@ -1119,16 +1464,16 @@ export interface TeamInfo {
1119
1464
 
1120
1465
  export interface TeamPermission {
1121
1466
  roles?: TeamRole[];
1122
- teamId?: TeamId;
1467
+ teamId?: string;
1123
1468
  }
1124
1469
 
1125
1470
  export interface TeamUpdate extends AccountUpdate {
1126
- teamId?: TeamId;
1471
+ teamId?: string;
1127
1472
  }
1128
1473
 
1129
1474
  export interface TimeRange {
1130
- end?: Date;
1131
- start?: Date;
1475
+ end?: string;
1476
+ start?: string;
1132
1477
  }
1133
1478
 
1134
1479
  export interface TimedPermission {
@@ -1136,20 +1481,17 @@ export interface TimedPermission {
1136
1481
  }
1137
1482
 
1138
1483
  export interface Token {
1139
- accountPermission?: AccountPermission;
1484
+ accountPermissions?: AccountPermission[];
1140
1485
  createdBy?: string;
1141
1486
  info?: TokenInfo;
1142
1487
  lastUpdatedBy?: string;
1488
+ owner?: string;
1143
1489
  revoked?: boolean;
1144
- tokenId?: TokenId;
1490
+ tokenId?: string;
1145
1491
  }
1146
1492
 
1147
1493
  export interface TokenCommand {
1148
- tokenId?: TokenId;
1149
- }
1150
-
1151
- export interface TokenId extends UserOrTokenId {
1152
- type?: Class<Token>;
1494
+ tokenId?: string;
1153
1495
  }
1154
1496
 
1155
1497
  export interface TokenInfo {
@@ -1161,20 +1503,6 @@ export interface TokenInfo {
1161
1503
  export interface TokenUpdate extends TokenCommand {
1162
1504
  }
1163
1505
 
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
1506
  export interface UpdateAccountInfo extends AccountUpdate {
1179
1507
  autoConfirm?: boolean;
1180
1508
  criticalInfo?: CriticalAccountInfo;
@@ -1185,9 +1513,34 @@ export interface UpdateAccountPermission extends AccountPermissionCommand {
1185
1513
  accountPermission?: AccountPermission;
1186
1514
  }
1187
1515
 
1188
- export interface UpdateRideBooking extends RidePlannerCommand {
1516
+ export interface UpdatePosition {
1517
+ clientSegment?: number[];
1518
+ lastIndex?: number;
1519
+ tokenId?: string;
1520
+ }
1521
+
1522
+ export interface UpdateRide extends RideBookerCommand {
1523
+ booker?: AccountOrTeamRef;
1189
1524
  info?: RideInfo;
1190
- owner?: AccountOrTeamRef;
1525
+ }
1526
+
1527
+ export interface UpdateRidePlan extends RideDriverModifyCommand {
1528
+ plannedStartTime?: string;
1529
+ }
1530
+
1531
+ export interface UpdateRideSeries extends SeriesCommandWithSeparateEvent {
1532
+ booker?: AccountOrTeamRef;
1533
+ info?: SeriesRideInfo;
1534
+ rideSummaries?: RideSummary[];
1535
+ }
1536
+
1537
+ export interface UpdateRideSeriesEvent extends SeriesBookerCommand {
1538
+ addRides?: string[];
1539
+ booker?: AccountOrTeamRef;
1540
+ cancelRides?: string[];
1541
+ info?: SeriesRideInfo;
1542
+ rideSummaries?: RideSummary[];
1543
+ updateRides?: string[];
1191
1544
  }
1192
1545
 
1193
1546
  export interface UpdateTeam extends TeamUpdate {
@@ -1203,15 +1556,14 @@ export interface UpdateUserInfo extends UserEdit {
1203
1556
  info?: UserInfo;
1204
1557
  }
1205
1558
 
1206
- export interface UserCommand {
1207
- userId?: UserId;
1559
+ export interface UserAndTokenUpcaster {
1208
1560
  }
1209
1561
 
1210
- export interface UserEdit extends UserUpdateAfterSignup {
1562
+ export interface UserCommand {
1563
+ userId?: string;
1211
1564
  }
1212
1565
 
1213
- export interface UserId extends UserOrTokenId {
1214
- type?: Class<UserProfile>;
1566
+ export interface UserEdit extends UserUpdateAfterSignup {
1215
1567
  }
1216
1568
 
1217
1569
  export interface UserInfo {
@@ -1232,7 +1584,7 @@ export interface UserProfile {
1232
1584
  email?: string;
1233
1585
  emailConfirmed?: boolean;
1234
1586
  info?: UserInfo;
1235
- userId?: UserId;
1587
+ userId?: string;
1236
1588
  userRole?: UserRole;
1237
1589
  }
1238
1590
 
@@ -1242,44 +1594,49 @@ export interface UserUpdate extends UserCommand {
1242
1594
  export interface UserUpdateAfterSignup extends UserUpdate {
1243
1595
  }
1244
1596
 
1245
- export interface ZoneId extends Serializable {
1246
- }
1247
-
1248
1597
  export interface ZonedTimeRange {
1249
1598
  end?: Date;
1250
1599
  start?: Date;
1251
1600
  }
1252
1601
 
1253
- export type AccountRole = "rideplanner" | "driveplanner" | "admin" | "owner";
1602
+ export type AccountRole = "ridebooker" | "dispatcher" | "operator" | "admin" | "owner";
1254
1603
 
1255
1604
  export type AuthenticationResult = "SUCCESS" | "NOT_CONFIRMED";
1256
1605
 
1257
- export type BookingStatus = "saved" | "booked" | "accepted" | "started" | "completed" | "cancelled";
1606
+ export type BookingStatus = "saved" | "booked" | "accepted" | "planned" | "started" | "completed" | "cancelled";
1258
1607
 
1259
- export type Direction = "admission" | "relocation" | "discharge" | "consultation";
1608
+ export type DrivePermissionFilterUnion = AmbulanceFilter | TaxiFilter;
1260
1609
 
1261
1610
  export type DriveStatus = "driving_to_origin" | "arrived_at_origin" | "driving_to_destination" | "arrived_at_destination" | "completed";
1262
1611
 
1612
+ export type EntityType = "ride" | "rideseries";
1613
+
1263
1614
  export type GeometryUnion = GeoPolygon | GeoMultiPolygon;
1264
1615
 
1265
1616
  export type InsuranceType = "public_insurance" | "private_insurance" | "german_accident_insurance" | "no_or_unknown_insurance";
1266
1617
 
1267
1618
  export type IntegrationType = "dispolive" | "celios";
1268
1619
 
1269
- export type Mobility = "wheelchair" | "big_or_electric_wheelchair" | "carry_chair" | "lying_down";
1620
+ export type KChatChannel = "ride_notifications" | "urgent_issues" | "account_tasks" | "customer_issues";
1621
+
1622
+ export type Mobility = "wheelchair" | "big_or_electric_wheelchair" | "carry_chair" | "stretcher";
1270
1623
 
1271
- export type RideType = "taxi" | "ambulance";
1624
+ export type OrganisationType = "medical" | "fleet" | "operator";
1272
1625
 
1273
- export type RideTypeSpecificFilterUnion = AmbulanceFilter | TaxiFilter;
1626
+ export type RidePurpose = "admission" | "relocation" | "discharge" | "consultation";
1274
1627
 
1275
- export type Service = "rideplanning" | "driveplanning" | "celios_integration" | "dispolive_integration";
1628
+ export type SeriesPurpose = "consultation";
1629
+
1630
+ export type Service = "pro_medical" | "pro_fleet" | "pro_operator" | "celios_integration" | "dispolive_integration" | "moxi_operations";
1276
1631
 
1277
1632
  export type SlackChannel = "admin_monitoring" | "admin_respond_immediately" | "admin_respond_within_hour" | "admin_reported_issues";
1278
1633
 
1279
- export type StandaloneService = "rideplanning" | "driveplanning";
1634
+ export type StandaloneService = "pro_medical" | "pro_fleet" | "pro_operator";
1280
1635
 
1281
1636
  export type SyncStatus = "not_synced" | "synced" | "update_not_synced";
1282
1637
 
1283
- export type TeamRole = "driveplanner" | "rideplanner";
1638
+ export type TeamRole = "dispatcher" | "ridebooker";
1284
1639
 
1285
1640
  export type UserRole = "superadmin";
1641
+
1642
+ export type VehicleType = "taxi" | "ambulance";