@moxi.gmbh/moxi-typescriptmodels 0.1.1131-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.
Files changed (2) hide show
  1. package/common.d.ts +246 -439
  2. package/package.json +1 -1
package/common.d.ts CHANGED
@@ -1,10 +1,6 @@
1
1
 
2
- export interface AcceptRide extends RideDriverCommand {
3
- driver?: AccountOrTeamRef;
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?: string;
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?: string;
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?: string;
43
+ zoneId?: ZoneId;
48
44
  }
49
45
 
50
46
  export interface AccountOrTeamId {
51
- accountId?: string;
52
- teamId?: string;
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?: string;
57
+ accountId?: AccountId;
62
58
  roles?: AccountRole[];
63
59
  teamPermissions?: TeamPermission[];
64
60
  }
65
61
 
66
62
  export interface AccountPermissionCommand extends UserUpdate {
67
- accountId?: string;
63
+ accountId?: AccountId;
68
64
  }
69
65
 
70
66
  export interface AccountRef {
71
- accountId?: string;
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?: string;
106
+ userId?: UserId;
114
107
  }
115
108
 
116
- export interface AmbulanceFilter extends DrivePermissionFilter {
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) vehicleType == ambulance
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
- * Common information shared across all rides in a series. Similar to RideInfo but without appointment-specific details that vary per ride.
136
+ export interface AnnotatedElement {
137
+ annotations?: Annotation[];
138
+ declaredAnnotations?: Annotation[];
139
+ }
145
140
 
146
- */
147
- export interface AnonymizedGenericRideInfo extends GenericRideInfo {
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?: string;
151
+ time?: Date;
159
152
  }
160
153
 
161
154
  export interface AssignDriver extends RideCommand {
162
- driver?: AccountOrTeamRef;
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?: string;
170
+ impersonator?: UserId;
178
171
  result?: AuthenticationResult;
179
- sessionDeadline?: string;
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 BookRideSeries extends RideBookerSeriesCommand {
202
- booker?: AccountOrTeamRef;
203
- info?: GenericRideInfo;
204
- rides?: SingleRide[];
184
+ export interface CancelDrive extends FleetModifyCommand {
205
185
  }
206
186
 
207
- export interface CancelRide extends RideBookerCommand {
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?: string;
203
+ userId?: UserId;
231
204
  }
232
205
 
233
206
  export interface CheckIfUserSignedUp {
234
- userId?: string;
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 {
@@ -244,16 +223,13 @@ export interface ConfirmDrivePermission extends AccountUpdate {
244
223
  export interface ConfirmEverythingInAccount extends AccountCommand {
245
224
  }
246
225
 
247
- export interface ConfirmRideSeries extends RideDriverSeriesCommand {
248
- }
249
-
250
226
  export interface ConfirmSubscription extends AccountUpdate {
251
227
  subscriptionId?: string;
252
228
  }
253
229
 
254
230
  export interface ConfirmUser {
255
231
  token?: string;
256
- userId?: string;
232
+ userId?: UserId;
257
233
  }
258
234
 
259
235
  export interface ConfirmablePermission {
@@ -261,11 +237,14 @@ export interface ConfirmablePermission {
261
237
  revoked?: boolean;
262
238
  }
263
239
 
240
+ export interface Constable {
241
+ }
242
+
264
243
  export interface CreateAccount extends AccountCommand {
265
244
  autoConfirm?: boolean;
266
245
  criticalInfo?: CriticalAccountInfo;
267
246
  info?: AccountInfo;
268
- owner?: string;
247
+ owner?: UserId;
269
248
  requestService?: StandaloneService;
270
249
  }
271
250
 
@@ -274,15 +253,8 @@ export interface CreateOptimizationPlan extends OptimizerMessage {
274
253
  timeRange?: InstantRange;
275
254
  }
276
255
 
277
- export interface CreateRideCommand extends RideBookerCommand {
278
- booker?: AccountOrTeamId;
279
- }
280
-
281
- export interface CreateRideFromSeries extends RideDriverCommand {
282
- booker?: AccountOrTeamRef;
283
- driver?: AccountOrTeamRef;
284
- info?: RideInfo;
285
- seriesInfo?: SeriesInfo;
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?: string;
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?: string;
315
- start?: string;
286
+ end?: Date;
287
+ start?: Date;
316
288
  }
317
289
 
318
290
  export interface DeleteUser extends UserEdit {
319
291
  }
320
292
 
321
- export interface DisconnectClient {
322
- clientId?: string;
323
- tokenId?: string;
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?: any[];
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?: DrivePermissionFilterUnion;
334
+ filter?: RideTypeSpecificFilterUnion;
364
335
  monopoly?: boolean;
365
336
  regions?: Region[];
366
337
  }
367
338
 
368
339
  export interface DrivePermissionInfoRequest {
369
- filter?: DrivePermissionFilterUnion;
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?: string;
380
+ departureTime?: Date;
410
381
  from?: GeoLocation;
411
382
  to?: GeoLocation;
412
383
  }
@@ -429,7 +400,7 @@ export interface FindAccounts {
429
400
  }
430
401
 
431
402
  export interface FindMyAcceptedRides {
432
- accountId?: string;
403
+ accountId?: AccountId;
433
404
  descending?: boolean;
434
405
  filter?: RideFilter;
435
406
  maxSize?: number;
@@ -440,23 +411,15 @@ export interface FindMyAcceptedRides {
440
411
  * @deprecated
441
412
  */
442
413
  export interface FindMyRideOffers {
443
- accountId?: string;
414
+ accountId?: AccountId;
444
415
  descending?: boolean;
445
416
  filter?: RideFilter;
446
417
  maxSize?: number;
447
418
  term?: string;
448
419
  }
449
420
 
450
- export interface FindMyRideSeries {
451
- accountId?: string;
452
- descending?: boolean;
453
- maxSize?: number;
454
- term?: string;
455
- timeRange?: InstantRange;
456
- }
457
-
458
421
  export interface FindMyRides {
459
- accountId?: string;
422
+ accountId?: AccountId;
460
423
  descending?: boolean;
461
424
  filter?: RideFilter;
462
425
  maxSize?: number;
@@ -464,26 +427,19 @@ export interface FindMyRides {
464
427
  }
465
428
 
466
429
  export interface FindMyTokens {
467
- accountId?: string;
468
- teamId?: string;
430
+ accountId?: AccountId;
431
+ teamId?: TeamId;
469
432
  term?: string;
470
433
  }
471
434
 
472
435
  export interface FindMyUsers {
473
- accountId?: string;
474
- teamId?: string;
436
+ accountId?: AccountId;
437
+ teamId?: TeamId;
475
438
  term?: string;
476
439
  }
477
440
 
478
- export interface FindPotentialRideSeries {
479
- accountId?: string;
480
- descending?: boolean;
481
- filter?: RideInfoFilter;
482
- maxSize?: number;
483
- }
484
-
485
441
  export interface FindPotentialRides {
486
- accountId?: string;
442
+ accountId?: AccountId;
487
443
  descending?: boolean;
488
444
  filter?: RideFilter;
489
445
  maxSize?: number;
@@ -510,35 +466,20 @@ export interface FindUsers {
510
466
  term?: string;
511
467
  }
512
468
 
469
+ export interface FleetCommand extends RideCommand {
470
+ }
471
+
472
+ export interface FleetModifyCommand extends FleetCommand {
473
+ }
474
+
513
475
  export interface GenerateToken {
514
476
  accountPermission?: AccountPermission;
515
477
  info?: TokenInfo;
516
- tokenId?: string;
478
+ tokenId?: TokenId;
517
479
  }
518
480
 
519
- /**
520
- * Common information shared across all rides in a series. Similar to RideInfo but without appointment-specific details that vary per ride.
521
-
522
- */
523
- export interface GenericRideInfo {
524
- ambulanceInfo?: AmbulanceInfo;
525
- attendantsPresent?: number;
526
- comment?: string;
527
- dimensions?: PersonDimensions;
528
- distanceInMeters?: number;
529
- from?: AddressInfo;
530
- /**
531
- * Derived from weightInKg != null
532
- */
533
- heavyWeight?: boolean;
534
- mobility?: Mobility;
535
- patient?: Person;
536
- plannedDuration?: RideDuration;
537
- preferredDriver?: string;
538
- purpose?: RidePurpose;
539
- to?: AddressInfo;
540
- vehicleType?: VehicleType;
541
- weightInKg?: number;
481
+ export interface GenericDeclaration extends AnnotatedElement {
482
+ typeParameters?: TypeVariable<any>[];
542
483
  }
543
484
 
544
485
  export interface GeoJson {
@@ -568,7 +509,7 @@ export interface Geometry {
568
509
  }
569
510
 
570
511
  export interface GetAccount {
571
- accountId?: string;
512
+ accountId?: AccountId;
572
513
  }
573
514
 
574
515
  export interface GetAccountsOfPotentialDrivers extends GetPotentialDrivers {
@@ -597,15 +538,8 @@ export interface GetIsoStates {
597
538
  export interface GetMonopolyAccounts {
598
539
  }
599
540
 
600
- export interface GetMyAcceptedRideSeries {
601
- accountId?: string;
602
- descending?: boolean;
603
- maxSize?: number;
604
- timeRange?: InstantRange;
605
- }
606
-
607
541
  export interface GetMyAcceptedRides {
608
- accountId?: string;
542
+ accountId?: AccountId;
609
543
  maxSize?: number;
610
544
  timeRange?: InstantRange;
611
545
  }
@@ -618,19 +552,13 @@ export interface GetMyAccounts {
618
552
  * @deprecated
619
553
  */
620
554
  export interface GetMyRideOffers {
621
- accountId?: string;
622
- maxSize?: number;
623
- timeRange?: InstantRange;
624
- }
625
-
626
- export interface GetMyRideSeries {
627
- accountId?: string;
555
+ accountId?: AccountId;
628
556
  maxSize?: number;
629
557
  timeRange?: InstantRange;
630
558
  }
631
559
 
632
560
  export interface GetMyRides {
633
- accountId?: string;
561
+ accountId?: AccountId;
634
562
  maxSize?: number;
635
563
  timeRange?: InstantRange;
636
564
  }
@@ -647,60 +575,42 @@ export interface GetNutsStates {
647
575
  export interface GetPotentialDrivers {
648
576
  fromDistrict?: string;
649
577
  mobility?: Mobility;
578
+ rideType?: RideType;
650
579
  toDistrict?: string;
651
- vehicleType?: VehicleType;
652
580
  weightInKg?: number;
653
581
  }
654
582
 
655
- export interface GetPotentialRideSeries {
656
- accountId?: string;
657
- maxSize?: number;
658
- }
659
-
660
583
  export interface GetPotentialRides {
661
- accountId?: string;
584
+ accountId?: AccountId;
662
585
  maxSize?: number;
663
586
  timeRange?: InstantRange;
664
587
  }
665
588
 
666
589
  export interface GetRide {
667
- rideId?: string;
590
+ rideId?: RideId;
668
591
  }
669
592
 
670
593
  export interface GetRideCsv extends RideStatisticsQuery {
671
594
  }
672
595
 
673
- export interface GetRideDataForBooker extends RideStatisticsQuery {
674
- accountId?: string;
675
- }
676
-
677
- export interface GetRideDataForDriver extends RideStatisticsQuery {
678
- accountId?: string;
596
+ export interface GetRideData extends RideStatisticsQuery {
597
+ rideOwner?: AccountId;
679
598
  }
680
599
 
681
600
  export interface GetRideLog {
682
- rideId?: string;
683
- }
684
-
685
- export interface GetRideSeries {
686
- rideSeriesId?: string;
687
- }
688
-
689
- export interface GetRidesInSeries {
690
- filter?: RideFilter;
691
- rideSeriesId?: string;
601
+ rideId?: RideId;
692
602
  }
693
603
 
694
604
  export interface GetTeam {
695
- teamId?: string;
605
+ teamId?: TeamId;
696
606
  }
697
607
 
698
608
  export interface GetToken {
699
- tokenId?: string;
609
+ tokenId?: TokenId;
700
610
  }
701
611
 
702
612
  export interface GetUserProfile {
703
- userId?: string;
613
+ userId?: UserId;
704
614
  }
705
615
 
706
616
  export interface GiveDrivePermission extends AccountUpdate {
@@ -718,12 +628,15 @@ export interface GiveTeamPermission extends AccountPermissionCommand {
718
628
  }
719
629
 
720
630
  export interface ImpersonateUser {
721
- userId?: string;
631
+ userId?: UserId;
632
+ }
633
+
634
+ export interface InetAddress extends Serializable {
722
635
  }
723
636
 
724
637
  export interface InstantRange {
725
- end?: string;
726
- start?: string;
638
+ end?: Date;
639
+ start?: Date;
727
640
  }
728
641
 
729
642
  export interface Insurer {
@@ -732,7 +645,7 @@ export interface Insurer {
732
645
  }
733
646
 
734
647
  export interface Invite {
735
- accountId?: string;
648
+ accountId?: AccountId;
736
649
  invitedBy?: string;
737
650
  }
738
651
 
@@ -746,7 +659,7 @@ export interface InviteUser extends UserCommand {
746
659
  * Ip4 or ip6 range in CIDR format
747
660
  */
748
661
  export interface IpRange {
749
- ip?: string;
662
+ ip?: InetAddress;
750
663
  range?: number;
751
664
  }
752
665
 
@@ -757,16 +670,6 @@ export interface IsoState {
757
670
  nutsCode?: string;
758
671
  }
759
672
 
760
- export interface Metric {
761
- clientId?: string;
762
- clientSegment?: number[];
763
- maxSize?: number;
764
- maxTimeout?: string;
765
- tokenId?: string;
766
- type?: string;
767
- updates?: string[];
768
- }
769
-
770
673
  export interface NutsDistrict {
771
674
  code?: string;
772
675
  name?: string;
@@ -784,6 +687,11 @@ export interface NutsSubState {
784
687
  name?: string;
785
688
  }
786
689
 
690
+ export interface OfField<F> extends TypeDescriptor {
691
+ array?: boolean;
692
+ primitive?: boolean;
693
+ }
694
+
787
695
  export interface OffsetTimeRange {
788
696
  end?: Date;
789
697
  start?: Date;
@@ -794,7 +702,7 @@ export interface OptimizerMessage {
794
702
 
795
703
  export interface Person {
796
704
  address?: AddressInfo;
797
- birthDay?: string;
705
+ birthDay?: Date;
798
706
  email?: string;
799
707
  firstName?: string;
800
708
  insuranceNumber?: string;
@@ -816,22 +724,45 @@ export interface PersonDimensions {
816
724
  export interface PhoneNumber {
817
725
  }
818
726
 
819
- export interface PlanRide extends RideDriverModifyCommand {
820
- plannedStartTime?: string;
727
+ export interface Point extends Point2D, Serializable {
821
728
  }
822
729
 
823
- export interface ReadUpdates {
824
- clientId?: string;
825
- maxSize?: number;
826
- maxTimeout?: number;
827
- tokenId?: string;
828
- updateTypes?: TrackingUpdateType[];
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[];
829
743
  }
830
744
 
831
- export interface ReadUpdatesResult {
832
- clientSegment?: number[];
833
- lastIndex?: number;
834
- updates?: any[];
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;
835
766
  }
836
767
 
837
768
  export interface Region {
@@ -842,16 +773,21 @@ export interface RegisterAuthenticationToken extends UserUpdate {
842
773
  hashedToken?: string;
843
774
  }
844
775
 
845
- export interface RegisterDriveStatus extends RideDriverModifyCommand {
776
+ export interface RegisterDifferentEta extends FleetModifyCommand {
777
+ destinationEta?: Date;
778
+ originEta?: Date;
779
+ }
780
+
781
+ export interface RegisterDriveStatus extends FleetModifyCommand {
846
782
  driveStatus?: DriveStatus;
847
783
  }
848
784
 
849
- export interface RegisterDriverSynced extends RideDriverModifyCommand {
785
+ export interface RegisterDriverSynced extends FleetModifyCommand {
850
786
  }
851
787
 
852
788
  export interface RegisterEinsatz {
853
789
  einsatzNumber?: string;
854
- rideId?: string;
790
+ rideId?: RideId;
855
791
  }
856
792
 
857
793
  export interface RemoveAccount extends AccountUpdate {
@@ -865,7 +801,7 @@ export interface RemoveTeam extends TeamUpdate {
865
801
  }
866
802
 
867
803
  export interface RemoveTeamPermission extends AccountPermissionCommand {
868
- teamId?: string;
804
+ teamId?: TeamId;
869
805
  }
870
806
 
871
807
  export interface ReportIssue {
@@ -873,13 +809,6 @@ export interface ReportIssue {
873
809
  issue?: string;
874
810
  }
875
811
 
876
- /**
877
- * Can only report delays when ride has started and has not arrived at destination.
878
- */
879
- export interface ReportRideDelay extends RideDriverModifyCommand {
880
- minutes?: number;
881
- }
882
-
883
812
  export interface RequestDrivePermission extends AccountUpdate {
884
813
  drivePermissionId?: string;
885
814
  info?: DrivePermissionInfoRequest;
@@ -894,31 +823,16 @@ export interface RequestUserReset {
894
823
  email?: string;
895
824
  }
896
825
 
897
- /**
898
- * Resets the lastIndex position of your token.
899
- */
900
- export interface ResetPosition {
901
- index?: number;
902
- timestamp?: string;
903
- tokenId?: string;
904
- }
905
-
906
- export interface ReturnRide extends RideDriverModifyCommand {
907
- }
908
-
909
- export interface ReturnRideSeries extends RideDriverSeriesCommand {
910
- }
911
-
912
826
  export interface Review {
913
827
  comment?: string;
914
828
  stars?: number;
915
829
  }
916
830
 
917
- export interface ReviewRideAsBooker extends RideBookerCommand {
831
+ export interface ReviewRideAsDriver extends FleetModifyCommand {
918
832
  review?: Review;
919
833
  }
920
834
 
921
- export interface ReviewRideAsDriver extends RideDriverModifyCommand {
835
+ export interface ReviewRideAsRider extends RidePlannerCommand {
922
836
  review?: Review;
923
837
  }
924
838
 
@@ -938,22 +852,14 @@ export interface RevokeToken extends TokenUpdate {
938
852
 
939
853
  export interface Ride {
940
854
  /**
941
- * Derived from driver != null
855
+ * Derived from driveOwner != null
942
856
  */
943
857
  accepted?: boolean;
944
- actualEndTime?: string;
945
- actualStartTime?: string;
946
- /**
947
- * Derived from driveStatus != null
948
- */
949
- arrived?: boolean;
950
858
  /**
951
859
  * Derived from bookedTime != null
952
860
  */
953
861
  booked?: boolean;
954
- bookedTime?: string;
955
- booker?: AccountOrTeamRef;
956
- bookerReview?: Review;
862
+ bookedTime?: Date;
957
863
  bookingStatus?: BookingStatus;
958
864
  cancelReason?: string;
959
865
  cancelled?: boolean;
@@ -962,70 +868,37 @@ export interface Ride {
962
868
  */
963
869
  completed?: boolean;
964
870
  /**
965
- * Desired Time of Arrival at the Destination/Drop-off location. Derived from info.appointment and info.plannedDuration
871
+ * Estimated Time of Arrival at the Destination/Drop-off location. Will differ from destinationPta if the driver reported a delay
966
872
  */
967
- desiredEndTime?: string;
873
+ destinationEta?: Date;
968
874
  /**
969
- * Desired Time of Arrival at the Origin/Pick-up location. Derived from info.appointment and info.plannedDuration
875
+ * Planned Time of Arrival at the Destination/Drop-off location. Derived from info.appointment and info.plannedDuration
970
876
  */
971
- desiredStartTime?: string;
877
+ destinationPta?: Date;
878
+ driveOwner?: AccountOrTeamRef;
972
879
  driveStatus?: DriveStatus;
973
- driver?: AccountOrTeamRef;
974
880
  driverReview?: Review;
975
881
  driverSyncStatus?: SyncStatus;
976
- endTimeDelay?: number;
977
- /**
978
- * Expected Time of Arrival at the Destination/Drop-off location.
979
- */
980
- expectedEndTime?: string;
981
- /**
982
- * Expected Time of Arrival at the Origin/Pick-up location.
983
- */
984
- expectedStartTime?: string;
985
882
  info?: RideInfo;
986
883
  /**
987
- * Derived from plannedStartTime != null
988
- */
989
- planned?: boolean;
990
- /**
991
- * 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
992
885
  */
993
- plannedEndTime?: string;
994
- plannedStartTime?: string;
995
- rideId?: string;
886
+ originEta?: Date;
996
887
  /**
997
- * The time until which rides can be found. It's the planned time or else the desired time.
888
+ * Planned Time of Arrival at the Origin/Pick-up location. Derived from info.appointment and info.plannedDuration
998
889
  */
999
- searchEndTime?: string;
1000
- /**
1001
- * The time from which rides can be found. It's the planned time or else the desired time.
1002
- */
1003
- searchStartTime?: string;
1004
- seriesInfo?: SeriesInfo;
1005
- startTimeDelay?: number;
890
+ originPta?: Date;
891
+ rideId?: RideId;
892
+ rideOwner?: AccountOrTeamRef;
893
+ riderReview?: Review;
1006
894
  /**
1007
895
  * Derived from driveStatus != null
1008
896
  */
1009
897
  started?: boolean;
1010
898
  }
1011
899
 
1012
- export interface RideBookerCommand extends RideCommand {
1013
- }
1014
-
1015
- export interface RideBookerSeriesCommand extends RideSeriesCommand {
1016
- }
1017
-
1018
900
  export interface RideCommand {
1019
- rideId?: string;
1020
- }
1021
-
1022
- export interface RideDriverCommand extends RideCommand {
1023
- }
1024
-
1025
- export interface RideDriverModifyCommand extends RideDriverCommand {
1026
- }
1027
-
1028
- export interface RideDriverSeriesCommand extends RideSeriesPreConfirmCommand {
901
+ rideId?: RideId;
1029
902
  }
1030
903
 
1031
904
  /**
@@ -1040,43 +913,47 @@ export interface RideDuration {
1040
913
 
1041
914
  export interface RideFilter {
1042
915
  bookingStatuses?: BookingStatus[];
916
+ directions?: Direction[];
1043
917
  driveStatuses?: DriveStatus[];
1044
918
  driverAccountNames?: string[];
1045
919
  driverTeamNames?: string[];
1046
920
  hasInfection?: boolean;
1047
921
  heavyWeight?: boolean;
1048
922
  mobilities?: Mobility[];
1049
- purposes?: RidePurpose[];
1050
923
  region?: Region;
1051
924
  requiresMonitoring?: boolean;
1052
925
  requiresOxygen?: boolean;
1053
926
  requiresSuctionAspirator?: boolean;
927
+ rideType?: RideType;
1054
928
  riderAccountNames?: string[];
1055
929
  riderTeamNames?: string[];
1056
930
  timeRange?: InstantRange;
1057
- vehicleType?: VehicleType;
1058
931
  }
1059
932
 
1060
933
  export interface RideFilterCount {
1061
934
  bookingStatuses?: { [P in BookingStatus]?: number };
935
+ directions?: { [P in Direction]?: number };
1062
936
  driveStatuses?: { [P in DriveStatus]?: number };
1063
937
  driverAccountNames?: { [index: string]: number };
1064
938
  driverTeamNames?: { [index: string]: number };
1065
939
  hasInfection?: number;
1066
940
  heavyWeight?: number;
1067
941
  mobilities?: { [P in Mobility]?: number };
1068
- purposes?: { [P in RidePurpose]?: number };
1069
942
  requiresMonitoring?: number;
1070
943
  requiresOxygen?: number;
1071
944
  requiresSuctionAspirator?: number;
945
+ rideTypes?: { [P in RideType]?: number };
1072
946
  riderAccountNames?: { [index: string]: number };
1073
947
  riderTeamNames?: { [index: string]: number };
1074
948
  total?: number;
1075
- vehicleTypes?: { [P in VehicleType]?: number };
949
+ }
950
+
951
+ export interface RideId {
952
+ type?: Class<Ride>;
1076
953
  }
1077
954
 
1078
955
  export interface RideIdResult {
1079
- rideId?: string;
956
+ rideId?: RideId;
1080
957
  }
1081
958
 
1082
959
  /**
@@ -1088,6 +965,7 @@ export interface RideInfo {
1088
965
  attendantsPresent?: number;
1089
966
  comment?: string;
1090
967
  dimensions?: PersonDimensions;
968
+ direction?: Direction;
1091
969
  distanceInMeters?: number;
1092
970
  from?: AddressInfo;
1093
971
  /**
@@ -1097,25 +975,12 @@ export interface RideInfo {
1097
975
  mobility?: Mobility;
1098
976
  patient?: Person;
1099
977
  plannedDuration?: RideDuration;
1100
- preferredDriver?: string;
1101
- purpose?: RidePurpose;
978
+ preferredDriver?: AccountId;
979
+ rideType?: RideType;
1102
980
  to?: AddressInfo;
1103
- vehicleType?: VehicleType;
1104
981
  weightInKg?: number;
1105
982
  }
1106
983
 
1107
- export interface RideInfoFilter {
1108
- hasInfection?: boolean;
1109
- heavyWeight?: boolean;
1110
- mobilities?: Mobility[];
1111
- purposes?: RidePurpose[];
1112
- region?: Region;
1113
- requiresMonitoring?: boolean;
1114
- requiresOxygen?: boolean;
1115
- requiresSuctionAspirator?: boolean;
1116
- vehicleType?: VehicleType;
1117
- }
1118
-
1119
984
  export interface RideLog {
1120
985
  actingFor?: AccountOrTeamRef;
1121
986
  allowedViewers?: AccountOrTeamRef[];
@@ -1128,7 +993,7 @@ export interface RideLog {
1128
993
  isSuperAdmin?: boolean;
1129
994
  isToken?: boolean;
1130
995
  superAdmin?: boolean;
1131
- timestamp?: string;
996
+ timestamp?: Date;
1132
997
  token?: boolean;
1133
998
  }
1134
999
 
@@ -1136,67 +1001,17 @@ export interface RideOfferInfo {
1136
1001
  appointment?: Appointment;
1137
1002
  }
1138
1003
 
1139
- export interface RideSeries {
1140
- accepted?: boolean;
1141
- booked?: boolean;
1142
- booker?: AccountOrTeamRef;
1143
- cancelled?: boolean;
1144
- confirmed?: boolean;
1145
- driver?: AccountOrTeamRef;
1146
- endTime?: string;
1147
- info?: GenericRideInfo;
1148
- rideSeriesId?: string;
1149
- rides?: SingleRide[];
1150
- startTime?: string;
1151
- status?: RideSeriesStatus;
1152
- }
1153
-
1154
- export interface RideSeriesCommand {
1155
- rideSeriesId?: string;
1156
- }
1157
-
1158
- export interface RideSeriesIdResult {
1159
- rideSeriesId?: string;
1160
- }
1161
-
1162
- export interface RideSeriesPostConfirmCommand {
1163
- rideSeriesId?: string;
1164
- ridesToModify?: Ride[];
1165
- }
1166
-
1167
- export interface RideSeriesPreConfirmCommand extends RideSeriesCommand {
1168
- }
1169
-
1170
- export interface RideSeriesUpdate {
1171
- after?: RideSeries;
1172
- before?: RideSeries;
1173
- entityId?: string;
1174
- eventType?: string;
1175
- index?: number;
1176
- timestamp?: string;
1177
- type: "rideseries";
1004
+ export interface RidePlannerCommand extends RideCommand {
1178
1005
  }
1179
1006
 
1180
1007
  export interface RideStatisticsQuery {
1181
1008
  dateRange?: DateRange;
1182
- timezoneOrDefault?: string;
1183
- zoneId?: string;
1184
- }
1185
-
1186
- export interface RideSystemCommand extends RideCommand {
1187
- }
1188
-
1189
- export interface RideUpcaster {
1009
+ timezoneOrDefault?: ZoneId;
1010
+ zoneId?: ZoneId;
1190
1011
  }
1191
1012
 
1192
- export interface RideUpdate {
1193
- after?: Ride;
1194
- before?: Ride;
1195
- entityId?: string;
1196
- eventType?: string;
1197
- index?: number;
1198
- timestamp?: string;
1199
- type: "ride";
1013
+ export interface RideTypeSpecificFilter {
1014
+ type: "ambulance" | "taxi";
1200
1015
  }
1201
1016
 
1202
1017
  export interface Role<T> {
@@ -1206,12 +1021,12 @@ export interface Role<T> {
1206
1021
  * Save a new ride or update a previously saved ride. Not allowed to saveRide after the ride has been booked.
1207
1022
  */
1208
1023
  export interface SaveRide extends CreateRideCommand {
1209
- booker?: AccountOrTeamRef;
1210
1024
  info?: RideInfo;
1025
+ owner?: AccountOrTeamRef;
1211
1026
  }
1212
1027
 
1213
1028
  export interface SendConfirmationEmail {
1214
- userId?: string;
1029
+ userId?: UserId;
1215
1030
  }
1216
1031
 
1217
1032
  export interface SendEmail {
@@ -1224,8 +1039,8 @@ export interface SendFreshdeskNewTicket {
1224
1039
  }
1225
1040
 
1226
1041
  export interface SendInvitationEmail {
1227
- accountIdOfInvite?: string;
1228
- userId?: string;
1042
+ accountIdOfInvite?: AccountId;
1043
+ userId?: UserId;
1229
1044
  }
1230
1045
 
1231
1046
  export interface SendSlack {
@@ -1233,12 +1048,7 @@ export interface SendSlack {
1233
1048
  message?: string;
1234
1049
  }
1235
1050
 
1236
- /**
1237
- * Information about a ride that is part of series.
1238
- */
1239
- export interface SeriesInfo {
1240
- returnTrip?: boolean;
1241
- rideSeriesId?: string;
1051
+ export interface Serializable {
1242
1052
  }
1243
1053
 
1244
1054
  export interface SetSettings extends AccountUpdate {
@@ -1248,16 +1058,21 @@ export interface SetSettings extends AccountUpdate {
1248
1058
  export interface SetUserPassword {
1249
1059
  confirmationCode?: string;
1250
1060
  password?: string;
1251
- userId?: string;
1061
+ userId?: UserId;
1252
1062
  }
1253
1063
 
1254
1064
  export interface SetUserRole extends UserUpdate {
1255
1065
  role?: UserRole;
1256
1066
  }
1257
1067
 
1068
+ export interface Shape {
1069
+ bounds?: Rectangle;
1070
+ bounds2D?: Rectangle2D;
1071
+ }
1072
+
1258
1073
  export interface SignInUser {
1259
1074
  password?: string;
1260
- userId?: string;
1075
+ userId?: UserId;
1261
1076
  }
1262
1077
 
1263
1078
  export interface SignUpUser {
@@ -1265,20 +1080,7 @@ export interface SignUpUser {
1265
1080
  info?: UserInfo;
1266
1081
  inviteToken?: string;
1267
1082
  password?: string;
1268
- userId?: string;
1269
- }
1270
-
1271
- /**
1272
- * Individual ride timing within a series
1273
- */
1274
- export interface SingleRide {
1275
- desiredStartTime?: string;
1276
- returnTrip?: boolean;
1277
- }
1278
-
1279
- export interface SingleRideUpdate {
1280
- desiredStartTime?: string;
1281
- rideId?: string;
1083
+ userId?: UserId;
1282
1084
  }
1283
1085
 
1284
1086
  export interface StopImpersonatingUser {
@@ -1294,14 +1096,18 @@ export interface SubscriptionInfo extends TimedPermission {
1294
1096
  service?: Service;
1295
1097
  }
1296
1098
 
1297
- export interface TaxiFilter extends DrivePermissionFilter {
1099
+ export interface TaxiFilter extends RideTypeSpecificFilter {
1298
1100
  allowedMobilities?: Mobility[];
1299
1101
  type: "taxi";
1300
1102
  }
1301
1103
 
1302
1104
  export interface Team {
1303
1105
  info?: TeamInfo;
1304
- teamId?: string;
1106
+ teamId?: TeamId;
1107
+ }
1108
+
1109
+ export interface TeamId {
1110
+ type?: Class<Team>;
1305
1111
  }
1306
1112
 
1307
1113
  export interface TeamInfo {
@@ -1313,16 +1119,16 @@ export interface TeamInfo {
1313
1119
 
1314
1120
  export interface TeamPermission {
1315
1121
  roles?: TeamRole[];
1316
- teamId?: string;
1122
+ teamId?: TeamId;
1317
1123
  }
1318
1124
 
1319
1125
  export interface TeamUpdate extends AccountUpdate {
1320
- teamId?: string;
1126
+ teamId?: TeamId;
1321
1127
  }
1322
1128
 
1323
1129
  export interface TimeRange {
1324
- end?: string;
1325
- start?: string;
1130
+ end?: Date;
1131
+ start?: Date;
1326
1132
  }
1327
1133
 
1328
1134
  export interface TimedPermission {
@@ -1335,11 +1141,15 @@ export interface Token {
1335
1141
  info?: TokenInfo;
1336
1142
  lastUpdatedBy?: string;
1337
1143
  revoked?: boolean;
1338
- tokenId?: string;
1144
+ tokenId?: TokenId;
1339
1145
  }
1340
1146
 
1341
1147
  export interface TokenCommand {
1342
- tokenId?: string;
1148
+ tokenId?: TokenId;
1149
+ }
1150
+
1151
+ export interface TokenId extends UserOrTokenId {
1152
+ type?: Class<Token>;
1343
1153
  }
1344
1154
 
1345
1155
  export interface TokenInfo {
@@ -1351,6 +1161,20 @@ export interface TokenInfo {
1351
1161
  export interface TokenUpdate extends TokenCommand {
1352
1162
  }
1353
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
+
1354
1178
  export interface UpdateAccountInfo extends AccountUpdate {
1355
1179
  autoConfirm?: boolean;
1356
1180
  criticalInfo?: CriticalAccountInfo;
@@ -1361,24 +1185,9 @@ export interface UpdateAccountPermission extends AccountPermissionCommand {
1361
1185
  accountPermission?: AccountPermission;
1362
1186
  }
1363
1187
 
1364
- export interface UpdatePosition {
1365
- clientSegment?: number[];
1366
- lastIndex?: number;
1367
- tokenId?: string;
1368
- }
1369
-
1370
- export interface UpdateRide extends RideBookerCommand {
1371
- booker?: AccountOrTeamRef;
1188
+ export interface UpdateRideBooking extends RidePlannerCommand {
1372
1189
  info?: RideInfo;
1373
- }
1374
-
1375
- export interface UpdateRidePlan extends RideDriverModifyCommand {
1376
- plannedStartTime?: string;
1377
- }
1378
-
1379
- export interface UpdateRideSeries extends RideBookerSeriesCommand {
1380
- info?: GenericRideInfo;
1381
- rides?: SingleRide[];
1190
+ owner?: AccountOrTeamRef;
1382
1191
  }
1383
1192
 
1384
1193
  export interface UpdateTeam extends TeamUpdate {
@@ -1394,16 +1203,17 @@ export interface UpdateUserInfo extends UserEdit {
1394
1203
  info?: UserInfo;
1395
1204
  }
1396
1205
 
1397
- export interface UserAndTokenUpcaster {
1398
- }
1399
-
1400
1206
  export interface UserCommand {
1401
- userId?: string;
1207
+ userId?: UserId;
1402
1208
  }
1403
1209
 
1404
1210
  export interface UserEdit extends UserUpdateAfterSignup {
1405
1211
  }
1406
1212
 
1213
+ export interface UserId extends UserOrTokenId {
1214
+ type?: Class<UserProfile>;
1215
+ }
1216
+
1407
1217
  export interface UserInfo {
1408
1218
  firstName?: string;
1409
1219
  language?: string;
@@ -1422,7 +1232,7 @@ export interface UserProfile {
1422
1232
  email?: string;
1423
1233
  emailConfirmed?: boolean;
1424
1234
  info?: UserInfo;
1425
- userId?: string;
1235
+ userId?: UserId;
1426
1236
  userRole?: UserRole;
1427
1237
  }
1428
1238
 
@@ -1432,18 +1242,21 @@ export interface UserUpdate extends UserCommand {
1432
1242
  export interface UserUpdateAfterSignup extends UserUpdate {
1433
1243
  }
1434
1244
 
1245
+ export interface ZoneId extends Serializable {
1246
+ }
1247
+
1435
1248
  export interface ZonedTimeRange {
1436
1249
  end?: Date;
1437
1250
  start?: Date;
1438
1251
  }
1439
1252
 
1440
- export type AccountRole = "ridebooker" | "dispatcher" | "admin" | "owner";
1253
+ export type AccountRole = "rideplanner" | "driveplanner" | "admin" | "owner";
1441
1254
 
1442
1255
  export type AuthenticationResult = "SUCCESS" | "NOT_CONFIRMED";
1443
1256
 
1444
- export type BookingStatus = "saved" | "booked" | "accepted" | "planned" | "started" | "completed" | "cancelled";
1257
+ export type BookingStatus = "saved" | "booked" | "accepted" | "started" | "completed" | "cancelled";
1445
1258
 
1446
- export type DrivePermissionFilterUnion = AmbulanceFilter | TaxiFilter;
1259
+ export type Direction = "admission" | "relocation" | "discharge" | "consultation";
1447
1260
 
1448
1261
  export type DriveStatus = "driving_to_origin" | "arrived_at_origin" | "driving_to_destination" | "arrived_at_destination" | "completed";
1449
1262
 
@@ -1453,26 +1266,20 @@ export type InsuranceType = "public_insurance" | "private_insurance" | "german_a
1453
1266
 
1454
1267
  export type IntegrationType = "dispolive" | "celios";
1455
1268
 
1456
- export type Mobility = "wheelchair" | "big_or_electric_wheelchair" | "carry_chair" | "stretcher";
1269
+ export type Mobility = "wheelchair" | "big_or_electric_wheelchair" | "carry_chair" | "lying_down";
1457
1270
 
1458
- export type OrganisationType = "medical" | "fleet";
1271
+ export type RideType = "taxi" | "ambulance";
1459
1272
 
1460
- export type RidePurpose = "admission" | "relocation" | "discharge" | "consultation";
1273
+ export type RideTypeSpecificFilterUnion = AmbulanceFilter | TaxiFilter;
1461
1274
 
1462
- export type RideSeriesStatus = "booked" | "accepted" | "confirmed" | "cancelled";
1463
-
1464
- export type Service = "pro_medical" | "pro_fleet" | "celios_integration" | "dispolive_integration";
1275
+ export type Service = "rideplanning" | "driveplanning" | "celios_integration" | "dispolive_integration";
1465
1276
 
1466
1277
  export type SlackChannel = "admin_monitoring" | "admin_respond_immediately" | "admin_respond_within_hour" | "admin_reported_issues";
1467
1278
 
1468
- export type StandaloneService = "pro_medical" | "pro_fleet";
1279
+ export type StandaloneService = "rideplanning" | "driveplanning";
1469
1280
 
1470
1281
  export type SyncStatus = "not_synced" | "synced" | "update_not_synced";
1471
1282
 
1472
- export type TeamRole = "dispatcher" | "ridebooker";
1473
-
1474
- export type TrackingUpdateType = "ride" | "rideseries";
1283
+ export type TeamRole = "driveplanner" | "rideplanner";
1475
1284
 
1476
1285
  export type UserRole = "superadmin";
1477
-
1478
- 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.1131-test-server",
3
+ "version": "0.1.1151-test-server",
4
4
  "types": "common.d.ts"
5
5
  }