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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/common.d.ts CHANGED
@@ -8,7 +8,7 @@ export interface AcceptUserAgreement extends UserEdit {
8
8
  }
9
9
 
10
10
  export interface Account {
11
- accountId?: string;
11
+ accountId?: AccountId;
12
12
  /**
13
13
  * Derived from subscriptions
14
14
  */
@@ -24,7 +24,15 @@ export interface Account {
24
24
  }
25
25
 
26
26
  export interface AccountCommand {
27
- accountId?: string;
27
+ accountId?: AccountId;
28
+ }
29
+
30
+ export interface AccountFilter {
31
+ activeServices?: Service[];
32
+ }
33
+
34
+ export interface AccountId {
35
+ type?: Class<Account>;
28
36
  }
29
37
 
30
38
  export interface AccountInfo {
@@ -32,11 +40,12 @@ export interface AccountInfo {
32
40
  defaultLanguage?: string;
33
41
  notificationEmails?: string[];
34
42
  phoneNumber?: PhoneNumber;
43
+ zoneId?: ZoneId;
35
44
  }
36
45
 
37
46
  export interface AccountOrTeamId {
38
- accountId?: string;
39
- teamId?: string;
47
+ accountId?: AccountId;
48
+ teamId?: TeamId;
40
49
  }
41
50
 
42
51
  export interface AccountOrTeamRef extends AccountOrTeamId {
@@ -45,17 +54,17 @@ export interface AccountOrTeamRef extends AccountOrTeamId {
45
54
  }
46
55
 
47
56
  export interface AccountPermission {
48
- accountId?: string;
57
+ accountId?: AccountId;
49
58
  roles?: AccountRole[];
50
59
  teamPermissions?: TeamPermission[];
51
60
  }
52
61
 
53
62
  export interface AccountPermissionCommand extends UserUpdate {
54
- accountId?: string;
63
+ accountId?: AccountId;
55
64
  }
56
65
 
57
66
  export interface AccountRef {
58
- accountId?: string;
67
+ accountId?: AccountId;
59
68
  name?: string;
60
69
  }
61
70
 
@@ -94,7 +103,7 @@ export interface AdminConfirmUser extends UserUpdateAfterSignup {
94
103
 
95
104
  export interface AdminSetUserPassword {
96
105
  password?: string;
97
- userId?: string;
106
+ userId?: UserId;
98
107
  }
99
108
 
100
109
  export interface AmbulanceFilter extends RideTypeSpecificFilter {
@@ -124,9 +133,22 @@ export interface AmbulanceInfo {
124
133
  requiresSuctionAspirator?: boolean;
125
134
  }
126
135
 
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 {
147
+ }
148
+
127
149
  export interface Appointment {
128
150
  pickup?: boolean;
129
- time?: string;
151
+ time?: Date;
130
152
  }
131
153
 
132
154
  export interface AssignDriver extends RideCommand {
@@ -145,9 +167,9 @@ export interface AuthenticateWithToken extends UserUpdate {
145
167
 
146
168
  export interface AuthenticationResponse {
147
169
  authorizationHeader?: string;
148
- impersonator?: string;
170
+ impersonator?: UserId;
149
171
  result?: AuthenticationResult;
150
- sessionDeadline?: string;
172
+ sessionDeadline?: Date;
151
173
  userProfile?: UserProfile;
152
174
  }
153
175
 
@@ -178,11 +200,17 @@ export interface CeliosSettings {
178
200
  export interface ChangeUserPassword {
179
201
  newPassword?: string;
180
202
  oldPassword?: string;
181
- userId?: string;
203
+ userId?: UserId;
182
204
  }
183
205
 
184
206
  export interface CheckIfUserSignedUp {
185
- 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 {
186
214
  }
187
215
 
188
216
  export interface ConfirmAccount extends AccountCommand {
@@ -201,7 +229,7 @@ export interface ConfirmSubscription extends AccountUpdate {
201
229
 
202
230
  export interface ConfirmUser {
203
231
  token?: string;
204
- userId?: string;
232
+ userId?: UserId;
205
233
  }
206
234
 
207
235
  export interface ConfirmablePermission {
@@ -209,21 +237,33 @@ export interface ConfirmablePermission {
209
237
  revoked?: boolean;
210
238
  }
211
239
 
240
+ export interface Constable {
241
+ }
242
+
212
243
  export interface CreateAccount extends AccountCommand {
213
244
  autoConfirm?: boolean;
214
245
  criticalInfo?: CriticalAccountInfo;
215
246
  info?: AccountInfo;
216
- owner?: string;
247
+ owner?: UserId;
217
248
  requestService?: StandaloneService;
218
249
  }
219
250
 
251
+ export interface CreateOptimizationPlan extends OptimizerMessage {
252
+ accountOrTeam?: AccountOrTeamRef;
253
+ timeRange?: InstantRange;
254
+ }
255
+
220
256
  export interface CreateRideCommand extends RidePlannerCommand {
221
257
  owner?: AccountOrTeamId;
222
258
  }
223
259
 
260
+ export interface CreateSqueezeInPlan extends OptimizerMessage {
261
+ accountOrTeam?: AccountOrTeamRef;
262
+ }
263
+
224
264
  export interface CreateTeam extends AccountCommand {
225
265
  info?: TeamInfo;
226
- teamId?: string;
266
+ teamId?: TeamId;
227
267
  }
228
268
 
229
269
  export interface CreateToken extends TokenCommand {
@@ -243,13 +283,21 @@ export interface CriticalAccountInfo {
243
283
  }
244
284
 
245
285
  export interface DateRange {
246
- end?: string;
247
- start?: string;
286
+ end?: Date;
287
+ start?: Date;
248
288
  }
249
289
 
250
290
  export interface DeleteUser extends UserEdit {
251
291
  }
252
292
 
293
+ export interface Dimension extends Dimension2D, Serializable {
294
+ }
295
+
296
+ export interface Dimension2D extends Cloneable {
297
+ height?: number;
298
+ width?: number;
299
+ }
300
+
253
301
  export interface DispoliveSettings {
254
302
  key?: string;
255
303
  type: "dispolive";
@@ -258,7 +306,7 @@ export interface DispoliveSettings {
258
306
 
259
307
  export interface District {
260
308
  info?: DistrictInfo;
261
- polygons?: any[];
309
+ polygons?: Polygon[];
262
310
  }
263
311
 
264
312
  export interface DistrictInfo {
@@ -329,7 +377,7 @@ export interface FetchGoogleGeoLocation {
329
377
  }
330
378
 
331
379
  export interface FetchGoogleRoute {
332
- departureTime?: string;
380
+ departureTime?: Date;
333
381
  from?: GeoLocation;
334
382
  to?: GeoLocation;
335
383
  }
@@ -339,12 +387,31 @@ export interface FetchRouteResult {
339
387
  duration?: number;
340
388
  }
341
389
 
390
+ /**
391
+ * @deprecated
392
+ */
342
393
  export interface FindAccount {
343
394
  term?: string;
344
395
  }
345
396
 
397
+ export interface FindAccounts {
398
+ filter?: AccountFilter;
399
+ term?: string;
400
+ }
401
+
402
+ export interface FindMyAcceptedRides {
403
+ accountId?: AccountId;
404
+ descending?: boolean;
405
+ filter?: RideFilter;
406
+ maxSize?: number;
407
+ term?: string;
408
+ }
409
+
410
+ /**
411
+ * @deprecated
412
+ */
346
413
  export interface FindMyRideOffers {
347
- accountId?: string;
414
+ accountId?: AccountId;
348
415
  descending?: boolean;
349
416
  filter?: RideFilter;
350
417
  maxSize?: number;
@@ -352,7 +419,7 @@ export interface FindMyRideOffers {
352
419
  }
353
420
 
354
421
  export interface FindMyRides {
355
- accountId?: string;
422
+ accountId?: AccountId;
356
423
  descending?: boolean;
357
424
  filter?: RideFilter;
358
425
  maxSize?: number;
@@ -360,19 +427,19 @@ export interface FindMyRides {
360
427
  }
361
428
 
362
429
  export interface FindMyTokens {
363
- accountId?: string;
364
- teamId?: string;
430
+ accountId?: AccountId;
431
+ teamId?: TeamId;
365
432
  term?: string;
366
433
  }
367
434
 
368
435
  export interface FindMyUsers {
369
- accountId?: string;
370
- teamId?: string;
436
+ accountId?: AccountId;
437
+ teamId?: TeamId;
371
438
  term?: string;
372
439
  }
373
440
 
374
441
  export interface FindPotentialRides {
375
- accountId?: string;
442
+ accountId?: AccountId;
376
443
  descending?: boolean;
377
444
  filter?: RideFilter;
378
445
  maxSize?: number;
@@ -408,7 +475,11 @@ export interface FleetModifyCommand extends FleetCommand {
408
475
  export interface GenerateToken {
409
476
  accountPermission?: AccountPermission;
410
477
  info?: TokenInfo;
411
- tokenId?: string;
478
+ tokenId?: TokenId;
479
+ }
480
+
481
+ export interface GenericDeclaration extends AnnotatedElement {
482
+ typeParameters?: TypeVariable<any>[];
412
483
  }
413
484
 
414
485
  export interface GeoJson {
@@ -438,7 +509,7 @@ export interface Geometry {
438
509
  }
439
510
 
440
511
  export interface GetAccount {
441
- accountId?: string;
512
+ accountId?: AccountId;
442
513
  }
443
514
 
444
515
  export interface GetAccountsOfPotentialDrivers extends GetPotentialDrivers {
@@ -467,17 +538,27 @@ export interface GetIsoStates {
467
538
  export interface GetMonopolyAccounts {
468
539
  }
469
540
 
541
+ export interface GetMyAcceptedRides {
542
+ accountId?: AccountId;
543
+ maxSize?: number;
544
+ timeRange?: InstantRange;
545
+ }
546
+
470
547
  export interface GetMyAccounts {
548
+ filter?: AccountFilter;
471
549
  }
472
550
 
551
+ /**
552
+ * @deprecated
553
+ */
473
554
  export interface GetMyRideOffers {
474
- accountId?: string;
555
+ accountId?: AccountId;
475
556
  maxSize?: number;
476
557
  timeRange?: InstantRange;
477
558
  }
478
559
 
479
560
  export interface GetMyRides {
480
- accountId?: string;
561
+ accountId?: AccountId;
481
562
  maxSize?: number;
482
563
  timeRange?: InstantRange;
483
564
  }
@@ -500,36 +581,36 @@ export interface GetPotentialDrivers {
500
581
  }
501
582
 
502
583
  export interface GetPotentialRides {
503
- accountId?: string;
584
+ accountId?: AccountId;
504
585
  maxSize?: number;
505
586
  timeRange?: InstantRange;
506
587
  }
507
588
 
508
589
  export interface GetRide {
509
- rideId?: string;
590
+ rideId?: RideId;
510
591
  }
511
592
 
512
593
  export interface GetRideCsv extends RideStatisticsQuery {
513
594
  }
514
595
 
515
596
  export interface GetRideData extends RideStatisticsQuery {
516
- rideOwner?: string;
597
+ rideOwner?: AccountId;
517
598
  }
518
599
 
519
600
  export interface GetRideLog {
520
- rideId?: string;
601
+ rideId?: RideId;
521
602
  }
522
603
 
523
604
  export interface GetTeam {
524
- teamId?: string;
605
+ teamId?: TeamId;
525
606
  }
526
607
 
527
608
  export interface GetToken {
528
- tokenId?: string;
609
+ tokenId?: TokenId;
529
610
  }
530
611
 
531
612
  export interface GetUserProfile {
532
- userId?: string;
613
+ userId?: UserId;
533
614
  }
534
615
 
535
616
  export interface GiveDrivePermission extends AccountUpdate {
@@ -547,12 +628,15 @@ export interface GiveTeamPermission extends AccountPermissionCommand {
547
628
  }
548
629
 
549
630
  export interface ImpersonateUser {
550
- userId?: string;
631
+ userId?: UserId;
632
+ }
633
+
634
+ export interface InetAddress extends Serializable {
551
635
  }
552
636
 
553
637
  export interface InstantRange {
554
- end?: string;
555
- start?: string;
638
+ end?: Date;
639
+ start?: Date;
556
640
  }
557
641
 
558
642
  export interface Insurer {
@@ -561,7 +645,7 @@ export interface Insurer {
561
645
  }
562
646
 
563
647
  export interface Invite {
564
- accountId?: string;
648
+ accountId?: AccountId;
565
649
  invitedBy?: string;
566
650
  }
567
651
 
@@ -575,7 +659,7 @@ export interface InviteUser extends UserCommand {
575
659
  * Ip4 or ip6 range in CIDR format
576
660
  */
577
661
  export interface IpRange {
578
- ip?: string;
662
+ ip?: InetAddress;
579
663
  range?: number;
580
664
  }
581
665
 
@@ -603,14 +687,22 @@ export interface NutsSubState {
603
687
  name?: string;
604
688
  }
605
689
 
690
+ export interface OfField<F> extends TypeDescriptor {
691
+ array?: boolean;
692
+ primitive?: boolean;
693
+ }
694
+
606
695
  export interface OffsetTimeRange {
607
696
  end?: Date;
608
697
  start?: Date;
609
698
  }
610
699
 
700
+ export interface OptimizerMessage {
701
+ }
702
+
611
703
  export interface Person {
612
704
  address?: AddressInfo;
613
- birthDay?: string;
705
+ birthDay?: Date;
614
706
  email?: string;
615
707
  firstName?: string;
616
708
  insuranceNumber?: string;
@@ -632,6 +724,47 @@ export interface PersonDimensions {
632
724
  export interface PhoneNumber {
633
725
  }
634
726
 
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;
766
+ }
767
+
635
768
  export interface Region {
636
769
  nutsCode?: string;
637
770
  }
@@ -641,8 +774,8 @@ export interface RegisterAuthenticationToken extends UserUpdate {
641
774
  }
642
775
 
643
776
  export interface RegisterDifferentEta extends FleetModifyCommand {
644
- destinationEta?: string;
645
- originEta?: string;
777
+ destinationEta?: Date;
778
+ originEta?: Date;
646
779
  }
647
780
 
648
781
  export interface RegisterDriveStatus extends FleetModifyCommand {
@@ -654,7 +787,7 @@ export interface RegisterDriverSynced extends FleetModifyCommand {
654
787
 
655
788
  export interface RegisterEinsatz {
656
789
  einsatzNumber?: string;
657
- rideId?: string;
790
+ rideId?: RideId;
658
791
  }
659
792
 
660
793
  export interface RemoveAccount extends AccountUpdate {
@@ -668,7 +801,7 @@ export interface RemoveTeam extends TeamUpdate {
668
801
  }
669
802
 
670
803
  export interface RemoveTeamPermission extends AccountPermissionCommand {
671
- teamId?: string;
804
+ teamId?: TeamId;
672
805
  }
673
806
 
674
807
  export interface ReportIssue {
@@ -690,6 +823,19 @@ export interface RequestUserReset {
690
823
  email?: string;
691
824
  }
692
825
 
826
+ export interface Review {
827
+ comment?: string;
828
+ stars?: number;
829
+ }
830
+
831
+ export interface ReviewRideAsDriver extends FleetModifyCommand {
832
+ review?: Review;
833
+ }
834
+
835
+ export interface ReviewRideAsRider extends RidePlannerCommand {
836
+ review?: Review;
837
+ }
838
+
693
839
  export interface RevokeAccountPermission extends AccountPermissionCommand {
694
840
  }
695
841
 
@@ -713,7 +859,7 @@ export interface Ride {
713
859
  * Derived from bookedTime != null
714
860
  */
715
861
  booked?: boolean;
716
- bookedTime?: string;
862
+ bookedTime?: Date;
717
863
  bookingStatus?: BookingStatus;
718
864
  cancelReason?: string;
719
865
  cancelled?: boolean;
@@ -724,25 +870,27 @@ export interface Ride {
724
870
  /**
725
871
  * Estimated Time of Arrival at the Destination/Drop-off location. Will differ from destinationPta if the driver reported a delay
726
872
  */
727
- destinationEta?: string;
873
+ destinationEta?: Date;
728
874
  /**
729
875
  * Planned Time of Arrival at the Destination/Drop-off location. Derived from info.appointment and info.plannedDuration
730
876
  */
731
- destinationPta?: string;
877
+ destinationPta?: Date;
732
878
  driveOwner?: AccountOrTeamRef;
733
879
  driveStatus?: DriveStatus;
880
+ driverReview?: Review;
734
881
  driverSyncStatus?: SyncStatus;
735
882
  info?: RideInfo;
736
883
  /**
737
884
  * Estimated Time of Arrival at the Origin/Pick-up location. Will differ from originPta if the driver reported a delay
738
885
  */
739
- originEta?: string;
886
+ originEta?: Date;
740
887
  /**
741
888
  * Planned Time of Arrival at the Origin/Pick-up location. Derived from info.appointment and info.plannedDuration
742
889
  */
743
- originPta?: string;
744
- rideId?: string;
890
+ originPta?: Date;
891
+ rideId?: RideId;
745
892
  rideOwner?: AccountOrTeamRef;
893
+ riderReview?: Review;
746
894
  /**
747
895
  * Derived from driveStatus != null
748
896
  */
@@ -750,7 +898,7 @@ export interface Ride {
750
898
  }
751
899
 
752
900
  export interface RideCommand {
753
- rideId?: string;
901
+ rideId?: RideId;
754
902
  }
755
903
 
756
904
  /**
@@ -772,6 +920,7 @@ export interface RideFilter {
772
920
  hasInfection?: boolean;
773
921
  heavyWeight?: boolean;
774
922
  mobilities?: Mobility[];
923
+ region?: Region;
775
924
  requiresMonitoring?: boolean;
776
925
  requiresOxygen?: boolean;
777
926
  requiresSuctionAspirator?: boolean;
@@ -799,8 +948,12 @@ export interface RideFilterCount {
799
948
  total?: number;
800
949
  }
801
950
 
951
+ export interface RideId {
952
+ type?: Class<Ride>;
953
+ }
954
+
802
955
  export interface RideIdResult {
803
- rideId?: string;
956
+ rideId?: RideId;
804
957
  }
805
958
 
806
959
  /**
@@ -822,7 +975,7 @@ export interface RideInfo {
822
975
  mobility?: Mobility;
823
976
  patient?: Person;
824
977
  plannedDuration?: RideDuration;
825
- preferredDriver?: string;
978
+ preferredDriver?: AccountId;
826
979
  rideType?: RideType;
827
980
  to?: AddressInfo;
828
981
  weightInKg?: number;
@@ -840,7 +993,7 @@ export interface RideLog {
840
993
  isSuperAdmin?: boolean;
841
994
  isToken?: boolean;
842
995
  superAdmin?: boolean;
843
- timestamp?: string;
996
+ timestamp?: Date;
844
997
  token?: boolean;
845
998
  }
846
999
 
@@ -853,6 +1006,8 @@ export interface RidePlannerCommand extends RideCommand {
853
1006
 
854
1007
  export interface RideStatisticsQuery {
855
1008
  dateRange?: DateRange;
1009
+ timezoneOrDefault?: ZoneId;
1010
+ zoneId?: ZoneId;
856
1011
  }
857
1012
 
858
1013
  export interface RideTypeSpecificFilter {
@@ -871,7 +1026,7 @@ export interface SaveRide extends CreateRideCommand {
871
1026
  }
872
1027
 
873
1028
  export interface SendConfirmationEmail {
874
- userId?: string;
1029
+ userId?: UserId;
875
1030
  }
876
1031
 
877
1032
  export interface SendEmail {
@@ -884,8 +1039,8 @@ export interface SendFreshdeskNewTicket {
884
1039
  }
885
1040
 
886
1041
  export interface SendInvitationEmail {
887
- accountIdOfInvite?: string;
888
- userId?: string;
1042
+ accountIdOfInvite?: AccountId;
1043
+ userId?: UserId;
889
1044
  }
890
1045
 
891
1046
  export interface SendSlack {
@@ -893,6 +1048,9 @@ export interface SendSlack {
893
1048
  message?: string;
894
1049
  }
895
1050
 
1051
+ export interface Serializable {
1052
+ }
1053
+
896
1054
  export interface SetSettings extends AccountUpdate {
897
1055
  settings?: any;
898
1056
  }
@@ -900,16 +1058,21 @@ export interface SetSettings extends AccountUpdate {
900
1058
  export interface SetUserPassword {
901
1059
  confirmationCode?: string;
902
1060
  password?: string;
903
- userId?: string;
1061
+ userId?: UserId;
904
1062
  }
905
1063
 
906
1064
  export interface SetUserRole extends UserUpdate {
907
1065
  role?: UserRole;
908
1066
  }
909
1067
 
1068
+ export interface Shape {
1069
+ bounds?: Rectangle;
1070
+ bounds2D?: Rectangle2D;
1071
+ }
1072
+
910
1073
  export interface SignInUser {
911
1074
  password?: string;
912
- userId?: string;
1075
+ userId?: UserId;
913
1076
  }
914
1077
 
915
1078
  export interface SignUpUser {
@@ -917,7 +1080,7 @@ export interface SignUpUser {
917
1080
  info?: UserInfo;
918
1081
  inviteToken?: string;
919
1082
  password?: string;
920
- userId?: string;
1083
+ userId?: UserId;
921
1084
  }
922
1085
 
923
1086
  export interface StopImpersonatingUser {
@@ -940,7 +1103,11 @@ export interface TaxiFilter extends RideTypeSpecificFilter {
940
1103
 
941
1104
  export interface Team {
942
1105
  info?: TeamInfo;
943
- teamId?: string;
1106
+ teamId?: TeamId;
1107
+ }
1108
+
1109
+ export interface TeamId {
1110
+ type?: Class<Team>;
944
1111
  }
945
1112
 
946
1113
  export interface TeamInfo {
@@ -952,16 +1119,16 @@ export interface TeamInfo {
952
1119
 
953
1120
  export interface TeamPermission {
954
1121
  roles?: TeamRole[];
955
- teamId?: string;
1122
+ teamId?: TeamId;
956
1123
  }
957
1124
 
958
1125
  export interface TeamUpdate extends AccountUpdate {
959
- teamId?: string;
1126
+ teamId?: TeamId;
960
1127
  }
961
1128
 
962
1129
  export interface TimeRange {
963
- end?: string;
964
- start?: string;
1130
+ end?: Date;
1131
+ start?: Date;
965
1132
  }
966
1133
 
967
1134
  export interface TimedPermission {
@@ -974,11 +1141,15 @@ export interface Token {
974
1141
  info?: TokenInfo;
975
1142
  lastUpdatedBy?: string;
976
1143
  revoked?: boolean;
977
- tokenId?: string;
1144
+ tokenId?: TokenId;
978
1145
  }
979
1146
 
980
1147
  export interface TokenCommand {
981
- tokenId?: string;
1148
+ tokenId?: TokenId;
1149
+ }
1150
+
1151
+ export interface TokenId extends UserOrTokenId {
1152
+ type?: Class<Token>;
982
1153
  }
983
1154
 
984
1155
  export interface TokenInfo {
@@ -990,6 +1161,20 @@ export interface TokenInfo {
990
1161
  export interface TokenUpdate extends TokenCommand {
991
1162
  }
992
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
+
993
1178
  export interface UpdateAccountInfo extends AccountUpdate {
994
1179
  autoConfirm?: boolean;
995
1180
  criticalInfo?: CriticalAccountInfo;
@@ -1019,17 +1204,21 @@ export interface UpdateUserInfo extends UserEdit {
1019
1204
  }
1020
1205
 
1021
1206
  export interface UserCommand {
1022
- userId?: string;
1207
+ userId?: UserId;
1023
1208
  }
1024
1209
 
1025
1210
  export interface UserEdit extends UserUpdateAfterSignup {
1026
1211
  }
1027
1212
 
1213
+ export interface UserId extends UserOrTokenId {
1214
+ type?: Class<UserProfile>;
1215
+ }
1216
+
1028
1217
  export interface UserInfo {
1029
1218
  firstName?: string;
1030
1219
  language?: string;
1031
1220
  lastName?: string;
1032
- telephoneNumber?: string;
1221
+ telephoneNumber?: PhoneNumber;
1033
1222
  }
1034
1223
 
1035
1224
  export interface UserOrTokenId {
@@ -1043,7 +1232,7 @@ export interface UserProfile {
1043
1232
  email?: string;
1044
1233
  emailConfirmed?: boolean;
1045
1234
  info?: UserInfo;
1046
- userId?: string;
1235
+ userId?: UserId;
1047
1236
  userRole?: UserRole;
1048
1237
  }
1049
1238
 
@@ -1053,6 +1242,9 @@ export interface UserUpdate extends UserCommand {
1053
1242
  export interface UserUpdateAfterSignup extends UserUpdate {
1054
1243
  }
1055
1244
 
1245
+ export interface ZoneId extends Serializable {
1246
+ }
1247
+
1056
1248
  export interface ZonedTimeRange {
1057
1249
  end?: Date;
1058
1250
  start?: Date;
@@ -1064,7 +1256,7 @@ export type AuthenticationResult = "SUCCESS" | "NOT_CONFIRMED";
1064
1256
 
1065
1257
  export type BookingStatus = "saved" | "booked" | "accepted" | "started" | "completed" | "cancelled";
1066
1258
 
1067
- export type Direction = "admission" | "relocation" | "discharge";
1259
+ export type Direction = "admission" | "relocation" | "discharge" | "consultation";
1068
1260
 
1069
1261
  export type DriveStatus = "driving_to_origin" | "arrived_at_origin" | "driving_to_destination" | "arrived_at_destination" | "completed";
1070
1262
 
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@moxi.gmbh/moxi-typescriptmodels",
3
- "version": "0.1.401-test-server",
3
+ "version": "0.1.401",
4
4
  "types": "common.d.ts"
5
5
  }
File without changes