@moxi.gmbh/moxi-typescriptmodels 0.1.1041-test-server → 0.1.1071-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.
Files changed (2) hide show
  1. package/common.d.ts +352 -257
  2. package/package.json +1 -1
package/common.d.ts CHANGED
@@ -1,6 +1,10 @@
1
1
 
2
- export interface AcceptDrive extends FleetCommand {
3
- driveOwner?: AccountOrTeamRef;
2
+ export interface AcceptRide extends RideDriverCommand {
3
+ driver?: AccountOrTeamRef;
4
+ }
5
+
6
+ export interface AcceptRideSeries extends RideDriverSeriesCommand {
7
+ dispatcher?: AccountOrTeamRef;
4
8
  }
5
9
 
6
10
  export interface AcceptUserAgreement extends UserEdit {
@@ -8,7 +12,7 @@ export interface AcceptUserAgreement extends UserEdit {
8
12
  }
9
13
 
10
14
  export interface Account {
11
- accountId?: AccountId;
15
+ accountId?: string;
12
16
  /**
13
17
  * Derived from subscriptions
14
18
  */
@@ -24,28 +28,24 @@ export interface Account {
24
28
  }
25
29
 
26
30
  export interface AccountCommand {
27
- accountId?: AccountId;
31
+ accountId?: string;
28
32
  }
29
33
 
30
34
  export interface AccountFilter {
31
35
  activeServices?: Service[];
32
36
  }
33
37
 
34
- export interface AccountId {
35
- type?: Class<Account>;
36
- }
37
-
38
38
  export interface AccountInfo {
39
39
  address?: AddressInfo;
40
40
  defaultLanguage?: string;
41
41
  notificationEmails?: string[];
42
42
  phoneNumber?: PhoneNumber;
43
- zoneId?: ZoneId;
43
+ zoneId?: string;
44
44
  }
45
45
 
46
46
  export interface AccountOrTeamId {
47
- accountId?: AccountId;
48
- teamId?: TeamId;
47
+ accountId?: string;
48
+ teamId?: string;
49
49
  }
50
50
 
51
51
  export interface AccountOrTeamRef extends AccountOrTeamId {
@@ -54,20 +54,23 @@ export interface AccountOrTeamRef extends AccountOrTeamId {
54
54
  }
55
55
 
56
56
  export interface AccountPermission {
57
- accountId?: AccountId;
57
+ accountId?: string;
58
58
  roles?: AccountRole[];
59
59
  teamPermissions?: TeamPermission[];
60
60
  }
61
61
 
62
62
  export interface AccountPermissionCommand extends UserUpdate {
63
- accountId?: AccountId;
63
+ accountId?: string;
64
64
  }
65
65
 
66
66
  export interface AccountRef {
67
- accountId?: AccountId;
67
+ accountId?: string;
68
68
  name?: string;
69
69
  }
70
70
 
71
+ export interface AccountUpcaster {
72
+ }
73
+
71
74
  export interface AccountUpdate extends AccountCommand {
72
75
  }
73
76
 
@@ -103,16 +106,16 @@ export interface AdminConfirmUser extends UserUpdateAfterSignup {
103
106
 
104
107
  export interface AdminSetUserPassword {
105
108
  password?: string;
106
- userId?: UserId;
109
+ userId?: string;
107
110
  }
108
111
 
109
- export interface AmbulanceFilter extends RideTypeSpecificFilter {
112
+ export interface AmbulanceFilter extends DrivePermissionFilter {
110
113
  heavyWeightAllowed?: boolean;
111
114
  type: "ambulance";
112
115
  }
113
116
 
114
117
  /**
115
- * Filled if (and only if) rideType == ambulance
118
+ * Filled if (and only if) vehicleType == ambulance
116
119
  */
117
120
  export interface AmbulanceInfo {
118
121
  /**
@@ -133,26 +136,19 @@ export interface AmbulanceInfo {
133
136
  requiresSuctionAspirator?: boolean;
134
137
  }
135
138
 
136
- export interface AnnotatedElement {
137
- annotations?: Annotation[];
138
- declaredAnnotations?: Annotation[];
139
- }
140
-
141
- export interface AnnotatedType extends AnnotatedElement {
142
- annotatedOwnerType?: AnnotatedType;
143
- type?: Type;
144
- }
145
-
146
- export interface Annotation {
139
+ /**
140
+ * Same as RideInfo, except it does not contain an appointment
141
+ */
142
+ export interface AnonymizedRideInfo extends GenericRideInfo {
147
143
  }
148
144
 
149
145
  export interface Appointment {
150
146
  pickup?: boolean;
151
- time?: Date;
147
+ time?: string;
152
148
  }
153
149
 
154
150
  export interface AssignDriver extends RideCommand {
155
- driveOwner?: AccountOrTeamRef;
151
+ driver?: AccountOrTeamRef;
156
152
  }
157
153
 
158
154
  export interface Attachment {
@@ -167,27 +163,47 @@ export interface AuthenticateWithToken extends UserUpdate {
167
163
 
168
164
  export interface AuthenticationResponse {
169
165
  authorizationHeader?: string;
170
- impersonator?: UserId;
166
+ impersonator?: string;
171
167
  result?: AuthenticationResult;
172
- sessionDeadline?: Date;
168
+ sessionDeadline?: string;
173
169
  userProfile?: UserProfile;
174
170
  }
175
171
 
176
172
  export interface AuthenticationService {
177
173
  }
178
174
 
175
+ export interface BatchUpdateRideSeriesInfo extends RideSeriesPostConfirmCommand {
176
+ info?: GenericRideInfo;
177
+ updater?: AccountOrTeamRef;
178
+ }
179
+
180
+ export interface BatchUpdateRideSeriesTimes extends RideSeriesPostConfirmCommand {
181
+ rides?: SingleRideUpdate[];
182
+ updater?: AccountOrTeamRef;
183
+ }
184
+
179
185
  export interface BookRide extends CreateRideCommand {
186
+ booker?: AccountOrTeamRef;
180
187
  info?: RideInfo;
181
- owner?: AccountOrTeamRef;
182
188
  }
183
189
 
184
- export interface CancelDrive extends FleetModifyCommand {
190
+ export interface BookRideSeries extends RideBookerSeriesCommand {
191
+ booker?: AccountOrTeamRef;
192
+ info?: GenericRideInfo;
193
+ rides?: SingleRide[];
185
194
  }
186
195
 
187
- export interface CancelRide extends RidePlannerCommand {
196
+ export interface CancelRide extends RideBookerCommand {
188
197
  reason?: string;
189
198
  }
190
199
 
200
+ export interface CancelRideSeries extends RideBookerSeriesCommand {
201
+ }
202
+
203
+ export interface CancelRidesInSeries extends RideSeriesPostConfirmCommand {
204
+ updater?: AccountOrTeamRef;
205
+ }
206
+
191
207
  export interface CeliosSettings {
192
208
  certificate?: string;
193
209
  host?: string;
@@ -200,17 +216,11 @@ export interface CeliosSettings {
200
216
  export interface ChangeUserPassword {
201
217
  newPassword?: string;
202
218
  oldPassword?: string;
203
- userId?: UserId;
219
+ userId?: string;
204
220
  }
205
221
 
206
222
  export interface CheckIfUserSignedUp {
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 {
223
+ userId?: string;
214
224
  }
215
225
 
216
226
  export interface ConfirmAccount extends AccountCommand {
@@ -223,13 +233,16 @@ export interface ConfirmDrivePermission extends AccountUpdate {
223
233
  export interface ConfirmEverythingInAccount extends AccountCommand {
224
234
  }
225
235
 
236
+ export interface ConfirmRideSeries extends RideDriverSeriesCommand {
237
+ }
238
+
226
239
  export interface ConfirmSubscription extends AccountUpdate {
227
240
  subscriptionId?: string;
228
241
  }
229
242
 
230
243
  export interface ConfirmUser {
231
244
  token?: string;
232
- userId?: UserId;
245
+ userId?: string;
233
246
  }
234
247
 
235
248
  export interface ConfirmablePermission {
@@ -237,14 +250,11 @@ export interface ConfirmablePermission {
237
250
  revoked?: boolean;
238
251
  }
239
252
 
240
- export interface Constable {
241
- }
242
-
243
253
  export interface CreateAccount extends AccountCommand {
244
254
  autoConfirm?: boolean;
245
255
  criticalInfo?: CriticalAccountInfo;
246
256
  info?: AccountInfo;
247
- owner?: UserId;
257
+ owner?: string;
248
258
  requestService?: StandaloneService;
249
259
  }
250
260
 
@@ -253,8 +263,16 @@ export interface CreateOptimizationPlan extends OptimizerMessage {
253
263
  timeRange?: InstantRange;
254
264
  }
255
265
 
256
- export interface CreateRideCommand extends RidePlannerCommand {
257
- owner?: AccountOrTeamId;
266
+ export interface CreateRideCommand extends RideBookerCommand {
267
+ booker?: AccountOrTeamId;
268
+ }
269
+
270
+ export interface CreateRideFromSeries extends RideDriverCommand {
271
+ booker?: AccountOrTeamRef;
272
+ driver?: AccountOrTeamRef;
273
+ info?: RideInfo;
274
+ returnTrip?: boolean;
275
+ rideSeriesId?: string;
258
276
  }
259
277
 
260
278
  export interface CreateSqueezeInPlan extends OptimizerMessage {
@@ -263,7 +281,7 @@ export interface CreateSqueezeInPlan extends OptimizerMessage {
263
281
 
264
282
  export interface CreateTeam extends AccountCommand {
265
283
  info?: TeamInfo;
266
- teamId?: TeamId;
284
+ teamId?: string;
267
285
  }
268
286
 
269
287
  export interface CreateToken extends TokenCommand {
@@ -283,21 +301,13 @@ export interface CriticalAccountInfo {
283
301
  }
284
302
 
285
303
  export interface DateRange {
286
- end?: Date;
287
- start?: Date;
304
+ end?: string;
305
+ start?: string;
288
306
  }
289
307
 
290
308
  export interface DeleteUser extends UserEdit {
291
309
  }
292
310
 
293
- export interface Dimension extends Dimension2D, Serializable {
294
- }
295
-
296
- export interface Dimension2D extends Cloneable {
297
- height?: number;
298
- width?: number;
299
- }
300
-
301
311
  export interface DispoliveSettings {
302
312
  key?: string;
303
313
  type: "dispolive";
@@ -306,7 +316,7 @@ export interface DispoliveSettings {
306
316
 
307
317
  export interface District {
308
318
  info?: DistrictInfo;
309
- polygons?: Polygon[];
319
+ polygons?: any[];
310
320
  }
311
321
 
312
322
  export interface DistrictInfo {
@@ -330,14 +340,18 @@ export interface DrivePermission {
330
340
  revoked?: boolean;
331
341
  }
332
342
 
343
+ export interface DrivePermissionFilter {
344
+ type: "ambulance" | "taxi";
345
+ }
346
+
333
347
  export interface DrivePermissionInfo {
334
- filter?: RideTypeSpecificFilterUnion;
348
+ filter?: DrivePermissionFilterUnion;
335
349
  monopoly?: boolean;
336
350
  regions?: Region[];
337
351
  }
338
352
 
339
353
  export interface DrivePermissionInfoRequest {
340
- filter?: RideTypeSpecificFilterUnion;
354
+ filter?: DrivePermissionFilterUnion;
341
355
  regions?: Region[];
342
356
  }
343
357
 
@@ -377,7 +391,7 @@ export interface FetchGoogleGeoLocation {
377
391
  }
378
392
 
379
393
  export interface FetchGoogleRoute {
380
- departureTime?: Date;
394
+ departureTime?: string;
381
395
  from?: GeoLocation;
382
396
  to?: GeoLocation;
383
397
  }
@@ -400,7 +414,7 @@ export interface FindAccounts {
400
414
  }
401
415
 
402
416
  export interface FindMyAcceptedRides {
403
- accountId?: AccountId;
417
+ accountId?: string;
404
418
  descending?: boolean;
405
419
  filter?: RideFilter;
406
420
  maxSize?: number;
@@ -411,7 +425,15 @@ export interface FindMyAcceptedRides {
411
425
  * @deprecated
412
426
  */
413
427
  export interface FindMyRideOffers {
414
- accountId?: AccountId;
428
+ accountId?: string;
429
+ descending?: boolean;
430
+ filter?: RideFilter;
431
+ maxSize?: number;
432
+ term?: string;
433
+ }
434
+
435
+ export interface FindMyRideSeries {
436
+ accountId?: string;
415
437
  descending?: boolean;
416
438
  filter?: RideFilter;
417
439
  maxSize?: number;
@@ -419,7 +441,7 @@ export interface FindMyRideOffers {
419
441
  }
420
442
 
421
443
  export interface FindMyRides {
422
- accountId?: AccountId;
444
+ accountId?: string;
423
445
  descending?: boolean;
424
446
  filter?: RideFilter;
425
447
  maxSize?: number;
@@ -427,19 +449,27 @@ export interface FindMyRides {
427
449
  }
428
450
 
429
451
  export interface FindMyTokens {
430
- accountId?: AccountId;
431
- teamId?: TeamId;
452
+ accountId?: string;
453
+ teamId?: string;
432
454
  term?: string;
433
455
  }
434
456
 
435
457
  export interface FindMyUsers {
436
- accountId?: AccountId;
437
- teamId?: TeamId;
458
+ accountId?: string;
459
+ teamId?: string;
438
460
  term?: string;
439
461
  }
440
462
 
463
+ export interface FindPotentialRideSeries {
464
+ accountId?: string;
465
+ descending?: boolean;
466
+ filter?: RideInfoFilter;
467
+ maxSize?: number;
468
+ timeRange?: InstantRange;
469
+ }
470
+
441
471
  export interface FindPotentialRides {
442
- accountId?: AccountId;
472
+ accountId?: string;
443
473
  descending?: boolean;
444
474
  filter?: RideFilter;
445
475
  maxSize?: number;
@@ -466,20 +496,34 @@ export interface FindUsers {
466
496
  term?: string;
467
497
  }
468
498
 
469
- export interface FleetCommand extends RideCommand {
470
- }
471
-
472
- export interface FleetModifyCommand extends FleetCommand {
473
- }
474
-
475
499
  export interface GenerateToken {
476
500
  accountPermission?: AccountPermission;
477
501
  info?: TokenInfo;
478
- tokenId?: TokenId;
502
+ tokenId?: string;
479
503
  }
480
504
 
481
- export interface GenericDeclaration extends AnnotatedElement {
482
- typeParameters?: TypeVariable<any>[];
505
+ /**
506
+ * Same as RideInfo, except it does not contain an appointment
507
+ */
508
+ export interface GenericRideInfo {
509
+ ambulanceInfo?: AmbulanceInfo;
510
+ attendantsPresent?: number;
511
+ comment?: string;
512
+ dimensions?: PersonDimensions;
513
+ distanceInMeters?: number;
514
+ from?: AddressInfo;
515
+ /**
516
+ * Derived from weightInKg != null
517
+ */
518
+ heavyWeight?: boolean;
519
+ mobility?: Mobility;
520
+ patient?: Person;
521
+ plannedDuration?: RideDuration;
522
+ preferredDriver?: string;
523
+ purpose?: RidePurpose;
524
+ to?: AddressInfo;
525
+ vehicleType?: VehicleType;
526
+ weightInKg?: number;
483
527
  }
484
528
 
485
529
  export interface GeoJson {
@@ -509,7 +553,7 @@ export interface Geometry {
509
553
  }
510
554
 
511
555
  export interface GetAccount {
512
- accountId?: AccountId;
556
+ accountId?: string;
513
557
  }
514
558
 
515
559
  export interface GetAccountsOfPotentialDrivers extends GetPotentialDrivers {
@@ -539,7 +583,7 @@ export interface GetMonopolyAccounts {
539
583
  }
540
584
 
541
585
  export interface GetMyAcceptedRides {
542
- accountId?: AccountId;
586
+ accountId?: string;
543
587
  maxSize?: number;
544
588
  timeRange?: InstantRange;
545
589
  }
@@ -552,13 +596,19 @@ export interface GetMyAccounts {
552
596
  * @deprecated
553
597
  */
554
598
  export interface GetMyRideOffers {
555
- accountId?: AccountId;
599
+ accountId?: string;
600
+ maxSize?: number;
601
+ timeRange?: InstantRange;
602
+ }
603
+
604
+ export interface GetMyRideSeries {
605
+ accountId?: string;
556
606
  maxSize?: number;
557
607
  timeRange?: InstantRange;
558
608
  }
559
609
 
560
610
  export interface GetMyRides {
561
- accountId?: AccountId;
611
+ accountId?: string;
562
612
  maxSize?: number;
563
613
  timeRange?: InstantRange;
564
614
  }
@@ -575,42 +625,55 @@ export interface GetNutsStates {
575
625
  export interface GetPotentialDrivers {
576
626
  fromDistrict?: string;
577
627
  mobility?: Mobility;
578
- rideType?: RideType;
579
628
  toDistrict?: string;
629
+ vehicleType?: VehicleType;
580
630
  weightInKg?: number;
581
631
  }
582
632
 
583
633
  export interface GetPotentialRides {
584
- accountId?: AccountId;
634
+ accountId?: string;
585
635
  maxSize?: number;
586
636
  timeRange?: InstantRange;
587
637
  }
588
638
 
589
639
  export interface GetRide {
590
- rideId?: RideId;
640
+ rideId?: string;
591
641
  }
592
642
 
593
643
  export interface GetRideCsv extends RideStatisticsQuery {
594
644
  }
595
645
 
596
- export interface GetRideData extends RideStatisticsQuery {
597
- rideOwner?: AccountId;
646
+ export interface GetRideDataForBooker extends RideStatisticsQuery {
647
+ accountId?: string;
648
+ }
649
+
650
+ export interface GetRideDataForDriver extends RideStatisticsQuery {
651
+ accountId?: string;
598
652
  }
599
653
 
600
654
  export interface GetRideLog {
601
- rideId?: RideId;
655
+ rideId?: string;
656
+ }
657
+
658
+ export interface GetRideSeries {
659
+ rideSeriesId?: string;
660
+ }
661
+
662
+ export interface GetRidesInSeries {
663
+ filter?: RideFilter;
664
+ rideSeriesId?: string;
602
665
  }
603
666
 
604
667
  export interface GetTeam {
605
- teamId?: TeamId;
668
+ teamId?: string;
606
669
  }
607
670
 
608
671
  export interface GetToken {
609
- tokenId?: TokenId;
672
+ tokenId?: string;
610
673
  }
611
674
 
612
675
  export interface GetUserProfile {
613
- userId?: UserId;
676
+ userId?: string;
614
677
  }
615
678
 
616
679
  export interface GiveDrivePermission extends AccountUpdate {
@@ -628,15 +691,12 @@ export interface GiveTeamPermission extends AccountPermissionCommand {
628
691
  }
629
692
 
630
693
  export interface ImpersonateUser {
631
- userId?: UserId;
632
- }
633
-
634
- export interface InetAddress extends Serializable {
694
+ userId?: string;
635
695
  }
636
696
 
637
697
  export interface InstantRange {
638
- end?: Date;
639
- start?: Date;
698
+ end?: string;
699
+ start?: string;
640
700
  }
641
701
 
642
702
  export interface Insurer {
@@ -645,7 +705,7 @@ export interface Insurer {
645
705
  }
646
706
 
647
707
  export interface Invite {
648
- accountId?: AccountId;
708
+ accountId?: string;
649
709
  invitedBy?: string;
650
710
  }
651
711
 
@@ -659,7 +719,7 @@ export interface InviteUser extends UserCommand {
659
719
  * Ip4 or ip6 range in CIDR format
660
720
  */
661
721
  export interface IpRange {
662
- ip?: InetAddress;
722
+ ip?: string;
663
723
  range?: number;
664
724
  }
665
725
 
@@ -687,11 +747,6 @@ export interface NutsSubState {
687
747
  name?: string;
688
748
  }
689
749
 
690
- export interface OfField<F> extends TypeDescriptor {
691
- array?: boolean;
692
- primitive?: boolean;
693
- }
694
-
695
750
  export interface OffsetTimeRange {
696
751
  end?: Date;
697
752
  start?: Date;
@@ -702,7 +757,7 @@ export interface OptimizerMessage {
702
757
 
703
758
  export interface Person {
704
759
  address?: AddressInfo;
705
- birthDay?: Date;
760
+ birthDay?: string;
706
761
  email?: string;
707
762
  firstName?: string;
708
763
  insuranceNumber?: string;
@@ -724,45 +779,8 @@ export interface PersonDimensions {
724
779
  export interface PhoneNumber {
725
780
  }
726
781
 
727
- export interface Point extends Point2D, Serializable {
728
- }
729
-
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 {
752
- }
753
-
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;
782
+ export interface PlanRide extends RideDriverModifyCommand {
783
+ plannedStartTime?: string;
766
784
  }
767
785
 
768
786
  export interface Region {
@@ -773,21 +791,16 @@ export interface RegisterAuthenticationToken extends UserUpdate {
773
791
  hashedToken?: string;
774
792
  }
775
793
 
776
- export interface RegisterDifferentEta extends FleetModifyCommand {
777
- destinationEta?: Date;
778
- originEta?: Date;
779
- }
780
-
781
- export interface RegisterDriveStatus extends FleetModifyCommand {
794
+ export interface RegisterDriveStatus extends RideDriverModifyCommand {
782
795
  driveStatus?: DriveStatus;
783
796
  }
784
797
 
785
- export interface RegisterDriverSynced extends FleetModifyCommand {
798
+ export interface RegisterDriverSynced extends RideDriverModifyCommand {
786
799
  }
787
800
 
788
801
  export interface RegisterEinsatz {
789
802
  einsatzNumber?: string;
790
- rideId?: RideId;
803
+ rideId?: string;
791
804
  }
792
805
 
793
806
  export interface RemoveAccount extends AccountUpdate {
@@ -801,7 +814,7 @@ export interface RemoveTeam extends TeamUpdate {
801
814
  }
802
815
 
803
816
  export interface RemoveTeamPermission extends AccountPermissionCommand {
804
- teamId?: TeamId;
817
+ teamId?: string;
805
818
  }
806
819
 
807
820
  export interface ReportIssue {
@@ -809,6 +822,13 @@ export interface ReportIssue {
809
822
  issue?: string;
810
823
  }
811
824
 
825
+ /**
826
+ * Can only report delays when ride has started and has not arrived at destination.
827
+ */
828
+ export interface ReportRideDelay extends RideDriverModifyCommand {
829
+ minutes?: number;
830
+ }
831
+
812
832
  export interface RequestDrivePermission extends AccountUpdate {
813
833
  drivePermissionId?: string;
814
834
  info?: DrivePermissionInfoRequest;
@@ -823,16 +843,22 @@ export interface RequestUserReset {
823
843
  email?: string;
824
844
  }
825
845
 
846
+ export interface ReturnRide extends RideDriverModifyCommand {
847
+ }
848
+
849
+ export interface ReturnRideSeries extends RideDriverSeriesCommand {
850
+ }
851
+
826
852
  export interface Review {
827
853
  comment?: string;
828
854
  stars?: number;
829
855
  }
830
856
 
831
- export interface ReviewRideAsDriver extends FleetModifyCommand {
857
+ export interface ReviewRideAsBooker extends RideBookerCommand {
832
858
  review?: Review;
833
859
  }
834
860
 
835
- export interface ReviewRideAsRider extends RidePlannerCommand {
861
+ export interface ReviewRideAsDriver extends RideDriverModifyCommand {
836
862
  review?: Review;
837
863
  }
838
864
 
@@ -852,14 +878,22 @@ export interface RevokeToken extends TokenUpdate {
852
878
 
853
879
  export interface Ride {
854
880
  /**
855
- * Derived from driveOwner != null
881
+ * Derived from driver != null
856
882
  */
857
883
  accepted?: boolean;
884
+ actualEndTime?: string;
885
+ actualStartTime?: string;
886
+ /**
887
+ * Derived from driveStatus != null
888
+ */
889
+ arrived?: boolean;
858
890
  /**
859
891
  * Derived from bookedTime != null
860
892
  */
861
893
  booked?: boolean;
862
- bookedTime?: Date;
894
+ bookedTime?: string;
895
+ booker?: AccountOrTeamRef;
896
+ bookerReview?: Review;
863
897
  bookingStatus?: BookingStatus;
864
898
  cancelReason?: string;
865
899
  cancelled?: boolean;
@@ -868,37 +902,71 @@ export interface Ride {
868
902
  */
869
903
  completed?: boolean;
870
904
  /**
871
- * Estimated Time of Arrival at the Destination/Drop-off location. Will differ from destinationPta if the driver reported a delay
905
+ * Desired Time of Arrival at the Destination/Drop-off location. Derived from info.appointment and info.plannedDuration
872
906
  */
873
- destinationEta?: Date;
907
+ desiredEndTime?: string;
874
908
  /**
875
- * Planned Time of Arrival at the Destination/Drop-off location. Derived from info.appointment and info.plannedDuration
909
+ * Desired Time of Arrival at the Origin/Pick-up location. Derived from info.appointment and info.plannedDuration
876
910
  */
877
- destinationPta?: Date;
878
- driveOwner?: AccountOrTeamRef;
911
+ desiredStartTime?: string;
912
+ /**
913
+ * Display time is the planned time, or else the desired time
914
+ */
915
+ displayEndTime?: string;
916
+ /**
917
+ * Display time is the planned time, or else the desired time
918
+ */
919
+ displayStartTime?: string;
879
920
  driveStatus?: DriveStatus;
921
+ driver?: AccountOrTeamRef;
880
922
  driverReview?: Review;
881
923
  driverSyncStatus?: SyncStatus;
924
+ endTimeDelay?: number;
925
+ /**
926
+ * Expected Time of Arrival at the Destination/Drop-off location.
927
+ */
928
+ expectedEndTime?: string;
929
+ /**
930
+ * Expected Time of Arrival at the Origin/Pick-up location.
931
+ */
932
+ expectedStartTime?: string;
882
933
  info?: RideInfo;
883
934
  /**
884
- * Estimated Time of Arrival at the Origin/Pick-up location. Will differ from originPta if the driver reported a delay
935
+ * Derived from plannedStartTime != null
885
936
  */
886
- originEta?: Date;
937
+ planned?: boolean;
887
938
  /**
888
- * Planned Time of Arrival at the Origin/Pick-up location. Derived from info.appointment and info.plannedDuration
939
+ * Planned Time of Arrival at the Destination/Drop-off location, reported by the driver.
889
940
  */
890
- originPta?: Date;
891
- rideId?: RideId;
892
- rideOwner?: AccountOrTeamRef;
893
- riderReview?: Review;
941
+ plannedEndTime?: string;
942
+ plannedStartTime?: string;
943
+ returnTrip?: boolean;
944
+ rideId?: string;
945
+ rideSeriesId?: string;
946
+ startTimeDelay?: number;
894
947
  /**
895
948
  * Derived from driveStatus != null
896
949
  */
897
950
  started?: boolean;
898
951
  }
899
952
 
953
+ export interface RideBookerCommand extends RideCommand {
954
+ }
955
+
956
+ export interface RideBookerSeriesCommand extends RideSeriesCommand {
957
+ }
958
+
900
959
  export interface RideCommand {
901
- rideId?: RideId;
960
+ rideId?: string;
961
+ }
962
+
963
+ export interface RideDriverCommand extends RideCommand {
964
+ }
965
+
966
+ export interface RideDriverModifyCommand extends RideDriverCommand {
967
+ }
968
+
969
+ export interface RideDriverSeriesCommand extends RideSeriesPreConfirmCommand {
902
970
  }
903
971
 
904
972
  /**
@@ -913,47 +981,43 @@ export interface RideDuration {
913
981
 
914
982
  export interface RideFilter {
915
983
  bookingStatuses?: BookingStatus[];
916
- directions?: Direction[];
917
984
  driveStatuses?: DriveStatus[];
918
985
  driverAccountNames?: string[];
919
986
  driverTeamNames?: string[];
920
987
  hasInfection?: boolean;
921
988
  heavyWeight?: boolean;
922
989
  mobilities?: Mobility[];
990
+ purposes?: RidePurpose[];
923
991
  region?: Region;
924
992
  requiresMonitoring?: boolean;
925
993
  requiresOxygen?: boolean;
926
994
  requiresSuctionAspirator?: boolean;
927
- rideType?: RideType;
928
995
  riderAccountNames?: string[];
929
996
  riderTeamNames?: string[];
930
997
  timeRange?: InstantRange;
998
+ vehicleType?: VehicleType;
931
999
  }
932
1000
 
933
1001
  export interface RideFilterCount {
934
1002
  bookingStatuses?: { [P in BookingStatus]?: number };
935
- directions?: { [P in Direction]?: number };
936
1003
  driveStatuses?: { [P in DriveStatus]?: number };
937
1004
  driverAccountNames?: { [index: string]: number };
938
1005
  driverTeamNames?: { [index: string]: number };
939
1006
  hasInfection?: number;
940
1007
  heavyWeight?: number;
941
1008
  mobilities?: { [P in Mobility]?: number };
1009
+ purposes?: { [P in RidePurpose]?: number };
942
1010
  requiresMonitoring?: number;
943
1011
  requiresOxygen?: number;
944
1012
  requiresSuctionAspirator?: number;
945
- rideTypes?: { [P in RideType]?: number };
946
1013
  riderAccountNames?: { [index: string]: number };
947
1014
  riderTeamNames?: { [index: string]: number };
948
1015
  total?: number;
949
- }
950
-
951
- export interface RideId {
952
- type?: Class<Ride>;
1016
+ vehicleTypes?: { [P in VehicleType]?: number };
953
1017
  }
954
1018
 
955
1019
  export interface RideIdResult {
956
- rideId?: RideId;
1020
+ rideId?: string;
957
1021
  }
958
1022
 
959
1023
  /**
@@ -965,7 +1029,6 @@ export interface RideInfo {
965
1029
  attendantsPresent?: number;
966
1030
  comment?: string;
967
1031
  dimensions?: PersonDimensions;
968
- direction?: Direction;
969
1032
  distanceInMeters?: number;
970
1033
  from?: AddressInfo;
971
1034
  /**
@@ -975,12 +1038,25 @@ export interface RideInfo {
975
1038
  mobility?: Mobility;
976
1039
  patient?: Person;
977
1040
  plannedDuration?: RideDuration;
978
- preferredDriver?: AccountId;
979
- rideType?: RideType;
1041
+ preferredDriver?: string;
1042
+ purpose?: RidePurpose;
980
1043
  to?: AddressInfo;
1044
+ vehicleType?: VehicleType;
981
1045
  weightInKg?: number;
982
1046
  }
983
1047
 
1048
+ export interface RideInfoFilter {
1049
+ hasInfection?: boolean;
1050
+ heavyWeight?: boolean;
1051
+ mobilities?: Mobility[];
1052
+ purposes?: RidePurpose[];
1053
+ region?: Region;
1054
+ requiresMonitoring?: boolean;
1055
+ requiresOxygen?: boolean;
1056
+ requiresSuctionAspirator?: boolean;
1057
+ vehicleType?: VehicleType;
1058
+ }
1059
+
984
1060
  export interface RideLog {
985
1061
  actingFor?: AccountOrTeamRef;
986
1062
  allowedViewers?: AccountOrTeamRef[];
@@ -993,7 +1069,7 @@ export interface RideLog {
993
1069
  isSuperAdmin?: boolean;
994
1070
  isToken?: boolean;
995
1071
  superAdmin?: boolean;
996
- timestamp?: Date;
1072
+ timestamp?: string;
997
1073
  token?: boolean;
998
1074
  }
999
1075
 
@@ -1001,17 +1077,47 @@ export interface RideOfferInfo {
1001
1077
  appointment?: Appointment;
1002
1078
  }
1003
1079
 
1004
- export interface RidePlannerCommand extends RideCommand {
1080
+ export interface RideSeries {
1081
+ accepted?: boolean;
1082
+ booked?: boolean;
1083
+ booker?: AccountOrTeamRef;
1084
+ cancelled?: boolean;
1085
+ confirmed?: boolean;
1086
+ driver?: AccountOrTeamRef;
1087
+ endTime?: string;
1088
+ info?: GenericRideInfo;
1089
+ rideSeriesId?: string;
1090
+ rides?: SingleRide[];
1091
+ startTime?: string;
1092
+ status?: RideSeriesStatus;
1093
+ }
1094
+
1095
+ export interface RideSeriesCommand {
1096
+ rideSeriesId?: string;
1097
+ }
1098
+
1099
+ export interface RideSeriesIdResult {
1100
+ rideSeriesId?: string;
1101
+ }
1102
+
1103
+ export interface RideSeriesPostConfirmCommand {
1104
+ rideSeriesId?: string;
1105
+ ridesToModify?: Ride[];
1106
+ }
1107
+
1108
+ export interface RideSeriesPreConfirmCommand extends RideSeriesCommand {
1005
1109
  }
1006
1110
 
1007
1111
  export interface RideStatisticsQuery {
1008
1112
  dateRange?: DateRange;
1009
- timezoneOrDefault?: ZoneId;
1010
- zoneId?: ZoneId;
1113
+ timezoneOrDefault?: string;
1114
+ zoneId?: string;
1011
1115
  }
1012
1116
 
1013
- export interface RideTypeSpecificFilter {
1014
- type: "ambulance" | "taxi";
1117
+ export interface RideSystemCommand extends RideCommand {
1118
+ }
1119
+
1120
+ export interface RideUpcaster {
1015
1121
  }
1016
1122
 
1017
1123
  export interface Role<T> {
@@ -1021,12 +1127,12 @@ export interface Role<T> {
1021
1127
  * Save a new ride or update a previously saved ride. Not allowed to saveRide after the ride has been booked.
1022
1128
  */
1023
1129
  export interface SaveRide extends CreateRideCommand {
1130
+ booker?: AccountOrTeamRef;
1024
1131
  info?: RideInfo;
1025
- owner?: AccountOrTeamRef;
1026
1132
  }
1027
1133
 
1028
1134
  export interface SendConfirmationEmail {
1029
- userId?: UserId;
1135
+ userId?: string;
1030
1136
  }
1031
1137
 
1032
1138
  export interface SendEmail {
@@ -1039,8 +1145,8 @@ export interface SendFreshdeskNewTicket {
1039
1145
  }
1040
1146
 
1041
1147
  export interface SendInvitationEmail {
1042
- accountIdOfInvite?: AccountId;
1043
- userId?: UserId;
1148
+ accountIdOfInvite?: string;
1149
+ userId?: string;
1044
1150
  }
1045
1151
 
1046
1152
  export interface SendSlack {
@@ -1048,9 +1154,6 @@ export interface SendSlack {
1048
1154
  message?: string;
1049
1155
  }
1050
1156
 
1051
- export interface Serializable {
1052
- }
1053
-
1054
1157
  export interface SetSettings extends AccountUpdate {
1055
1158
  settings?: any;
1056
1159
  }
@@ -1058,21 +1161,16 @@ export interface SetSettings extends AccountUpdate {
1058
1161
  export interface SetUserPassword {
1059
1162
  confirmationCode?: string;
1060
1163
  password?: string;
1061
- userId?: UserId;
1164
+ userId?: string;
1062
1165
  }
1063
1166
 
1064
1167
  export interface SetUserRole extends UserUpdate {
1065
1168
  role?: UserRole;
1066
1169
  }
1067
1170
 
1068
- export interface Shape {
1069
- bounds?: Rectangle;
1070
- bounds2D?: Rectangle2D;
1071
- }
1072
-
1073
1171
  export interface SignInUser {
1074
1172
  password?: string;
1075
- userId?: UserId;
1173
+ userId?: string;
1076
1174
  }
1077
1175
 
1078
1176
  export interface SignUpUser {
@@ -1080,7 +1178,17 @@ export interface SignUpUser {
1080
1178
  info?: UserInfo;
1081
1179
  inviteToken?: string;
1082
1180
  password?: string;
1083
- userId?: UserId;
1181
+ userId?: string;
1182
+ }
1183
+
1184
+ export interface SingleRide {
1185
+ desiredStartTime?: string;
1186
+ returnTrip?: boolean;
1187
+ }
1188
+
1189
+ export interface SingleRideUpdate {
1190
+ desiredStartTime?: string;
1191
+ rideId?: string;
1084
1192
  }
1085
1193
 
1086
1194
  export interface StopImpersonatingUser {
@@ -1096,18 +1204,14 @@ export interface SubscriptionInfo extends TimedPermission {
1096
1204
  service?: Service;
1097
1205
  }
1098
1206
 
1099
- export interface TaxiFilter extends RideTypeSpecificFilter {
1207
+ export interface TaxiFilter extends DrivePermissionFilter {
1100
1208
  allowedMobilities?: Mobility[];
1101
1209
  type: "taxi";
1102
1210
  }
1103
1211
 
1104
1212
  export interface Team {
1105
1213
  info?: TeamInfo;
1106
- teamId?: TeamId;
1107
- }
1108
-
1109
- export interface TeamId {
1110
- type?: Class<Team>;
1214
+ teamId?: string;
1111
1215
  }
1112
1216
 
1113
1217
  export interface TeamInfo {
@@ -1119,16 +1223,16 @@ export interface TeamInfo {
1119
1223
 
1120
1224
  export interface TeamPermission {
1121
1225
  roles?: TeamRole[];
1122
- teamId?: TeamId;
1226
+ teamId?: string;
1123
1227
  }
1124
1228
 
1125
1229
  export interface TeamUpdate extends AccountUpdate {
1126
- teamId?: TeamId;
1230
+ teamId?: string;
1127
1231
  }
1128
1232
 
1129
1233
  export interface TimeRange {
1130
- end?: Date;
1131
- start?: Date;
1234
+ end?: string;
1235
+ start?: string;
1132
1236
  }
1133
1237
 
1134
1238
  export interface TimedPermission {
@@ -1141,15 +1245,11 @@ export interface Token {
1141
1245
  info?: TokenInfo;
1142
1246
  lastUpdatedBy?: string;
1143
1247
  revoked?: boolean;
1144
- tokenId?: TokenId;
1248
+ tokenId?: string;
1145
1249
  }
1146
1250
 
1147
1251
  export interface TokenCommand {
1148
- tokenId?: TokenId;
1149
- }
1150
-
1151
- export interface TokenId extends UserOrTokenId {
1152
- type?: Class<Token>;
1252
+ tokenId?: string;
1153
1253
  }
1154
1254
 
1155
1255
  export interface TokenInfo {
@@ -1161,20 +1261,6 @@ export interface TokenInfo {
1161
1261
  export interface TokenUpdate extends TokenCommand {
1162
1262
  }
1163
1263
 
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
1264
  export interface UpdateAccountInfo extends AccountUpdate {
1179
1265
  autoConfirm?: boolean;
1180
1266
  criticalInfo?: CriticalAccountInfo;
@@ -1185,9 +1271,18 @@ export interface UpdateAccountPermission extends AccountPermissionCommand {
1185
1271
  accountPermission?: AccountPermission;
1186
1272
  }
1187
1273
 
1188
- export interface UpdateRideBooking extends RidePlannerCommand {
1274
+ export interface UpdateRide extends RideBookerCommand {
1275
+ booker?: AccountOrTeamRef;
1189
1276
  info?: RideInfo;
1190
- owner?: AccountOrTeamRef;
1277
+ }
1278
+
1279
+ export interface UpdateRidePlan extends RideDriverModifyCommand {
1280
+ plannedStartTime?: string;
1281
+ }
1282
+
1283
+ export interface UpdateRideSeries extends RideBookerSeriesCommand {
1284
+ info?: GenericRideInfo;
1285
+ rides?: SingleRide[];
1191
1286
  }
1192
1287
 
1193
1288
  export interface UpdateTeam extends TeamUpdate {
@@ -1203,15 +1298,14 @@ export interface UpdateUserInfo extends UserEdit {
1203
1298
  info?: UserInfo;
1204
1299
  }
1205
1300
 
1206
- export interface UserCommand {
1207
- userId?: UserId;
1301
+ export interface UserAndTokenUpcaster {
1208
1302
  }
1209
1303
 
1210
- export interface UserEdit extends UserUpdateAfterSignup {
1304
+ export interface UserCommand {
1305
+ userId?: string;
1211
1306
  }
1212
1307
 
1213
- export interface UserId extends UserOrTokenId {
1214
- type?: Class<UserProfile>;
1308
+ export interface UserEdit extends UserUpdateAfterSignup {
1215
1309
  }
1216
1310
 
1217
1311
  export interface UserInfo {
@@ -1232,7 +1326,7 @@ export interface UserProfile {
1232
1326
  email?: string;
1233
1327
  emailConfirmed?: boolean;
1234
1328
  info?: UserInfo;
1235
- userId?: UserId;
1329
+ userId?: string;
1236
1330
  userRole?: UserRole;
1237
1331
  }
1238
1332
 
@@ -1242,21 +1336,18 @@ export interface UserUpdate extends UserCommand {
1242
1336
  export interface UserUpdateAfterSignup extends UserUpdate {
1243
1337
  }
1244
1338
 
1245
- export interface ZoneId extends Serializable {
1246
- }
1247
-
1248
1339
  export interface ZonedTimeRange {
1249
1340
  end?: Date;
1250
1341
  start?: Date;
1251
1342
  }
1252
1343
 
1253
- export type AccountRole = "rideplanner" | "driveplanner" | "admin" | "owner";
1344
+ export type AccountRole = "ridebooker" | "dispatcher" | "admin" | "owner";
1254
1345
 
1255
1346
  export type AuthenticationResult = "SUCCESS" | "NOT_CONFIRMED";
1256
1347
 
1257
- export type BookingStatus = "saved" | "booked" | "accepted" | "started" | "completed" | "cancelled";
1348
+ export type BookingStatus = "saved" | "booked" | "accepted" | "planned" | "started" | "completed" | "cancelled";
1258
1349
 
1259
- export type Direction = "admission" | "relocation" | "discharge" | "consultation";
1350
+ export type DrivePermissionFilterUnion = AmbulanceFilter | TaxiFilter;
1260
1351
 
1261
1352
  export type DriveStatus = "driving_to_origin" | "arrived_at_origin" | "driving_to_destination" | "arrived_at_destination" | "completed";
1262
1353
 
@@ -1266,20 +1357,24 @@ export type InsuranceType = "public_insurance" | "private_insurance" | "german_a
1266
1357
 
1267
1358
  export type IntegrationType = "dispolive" | "celios";
1268
1359
 
1269
- export type Mobility = "wheelchair" | "big_or_electric_wheelchair" | "carry_chair" | "lying_down";
1360
+ export type Mobility = "wheelchair" | "big_or_electric_wheelchair" | "carry_chair" | "stretcher";
1270
1361
 
1271
- export type RideType = "taxi" | "ambulance";
1362
+ export type OrganisationType = "medical" | "fleet";
1272
1363
 
1273
- export type RideTypeSpecificFilterUnion = AmbulanceFilter | TaxiFilter;
1364
+ export type RidePurpose = "admission" | "relocation" | "discharge" | "consultation";
1274
1365
 
1275
- export type Service = "rideplanning" | "driveplanning" | "celios_integration" | "dispolive_integration";
1366
+ export type RideSeriesStatus = "booked" | "accepted" | "confirmed" | "cancelled";
1367
+
1368
+ export type Service = "pro_medical" | "pro_fleet" | "celios_integration" | "dispolive_integration";
1276
1369
 
1277
1370
  export type SlackChannel = "admin_monitoring" | "admin_respond_immediately" | "admin_respond_within_hour" | "admin_reported_issues";
1278
1371
 
1279
- export type StandaloneService = "rideplanning" | "driveplanning";
1372
+ export type StandaloneService = "pro_medical" | "pro_fleet";
1280
1373
 
1281
1374
  export type SyncStatus = "not_synced" | "synced" | "update_not_synced";
1282
1375
 
1283
- export type TeamRole = "driveplanner" | "rideplanner";
1376
+ export type TeamRole = "dispatcher" | "ridebooker";
1284
1377
 
1285
1378
  export type UserRole = "superadmin";
1379
+
1380
+ export type VehicleType = "taxi" | "ambulance";
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@moxi.gmbh/moxi-typescriptmodels",
3
- "version": "0.1.1041-test-server",
3
+ "version": "0.1.1071-test-server",
4
4
  "types": "common.d.ts"
5
5
  }