@moxi.gmbh/moxi-typescriptmodels 0.0.1211 → 0.0.1231
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 +82 -18
- package/package.json +1 -1
package/common.d.ts
CHANGED
|
@@ -135,6 +135,10 @@ export interface Appointment {
|
|
|
135
135
|
time?: string;
|
|
136
136
|
}
|
|
137
137
|
|
|
138
|
+
export interface AssignDriver extends RideCommand {
|
|
139
|
+
driveOwner?: AccountOrTeamRef;
|
|
140
|
+
}
|
|
141
|
+
|
|
138
142
|
export interface Attachment {
|
|
139
143
|
base64Data?: string;
|
|
140
144
|
fileName?: string;
|
|
@@ -217,6 +221,12 @@ export interface CreateTeam extends AccountCommand {
|
|
|
217
221
|
teamId?: string;
|
|
218
222
|
}
|
|
219
223
|
|
|
224
|
+
export interface CreateToken extends TokenCommand {
|
|
225
|
+
accountPermission?: AccountPermission;
|
|
226
|
+
hashedToken?: string;
|
|
227
|
+
info?: TokenInfo;
|
|
228
|
+
}
|
|
229
|
+
|
|
220
230
|
export interface CreateUser extends UserCommand {
|
|
221
231
|
email?: string;
|
|
222
232
|
info?: UserInfo;
|
|
@@ -232,7 +242,7 @@ export interface DateRange extends Comparable<DateRange> {
|
|
|
232
242
|
start?: string;
|
|
233
243
|
}
|
|
234
244
|
|
|
235
|
-
export interface DeleteUser extends
|
|
245
|
+
export interface DeleteUser extends UserEdit {
|
|
236
246
|
}
|
|
237
247
|
|
|
238
248
|
export interface District {
|
|
@@ -266,9 +276,6 @@ export interface DrivePermissionInfo {
|
|
|
266
276
|
regions?: Region[];
|
|
267
277
|
}
|
|
268
278
|
|
|
269
|
-
export interface EditUser extends UserUpdate {
|
|
270
|
-
}
|
|
271
|
-
|
|
272
279
|
export interface EmailMessage {
|
|
273
280
|
attachments?: Attachment[];
|
|
274
281
|
bccs?: string[];
|
|
@@ -338,6 +345,12 @@ export interface FindMyRides {
|
|
|
338
345
|
term?: string;
|
|
339
346
|
}
|
|
340
347
|
|
|
348
|
+
export interface FindMyTokens {
|
|
349
|
+
accountId?: string;
|
|
350
|
+
teamId?: string;
|
|
351
|
+
term?: string;
|
|
352
|
+
}
|
|
353
|
+
|
|
341
354
|
export interface FindMyUsers {
|
|
342
355
|
accountId?: string;
|
|
343
356
|
teamId?: string;
|
|
@@ -364,6 +377,10 @@ export interface FindRidesResult {
|
|
|
364
377
|
rides?: Ride[];
|
|
365
378
|
}
|
|
366
379
|
|
|
380
|
+
export interface FindTokens {
|
|
381
|
+
term?: string;
|
|
382
|
+
}
|
|
383
|
+
|
|
367
384
|
export interface FindUsers {
|
|
368
385
|
term?: string;
|
|
369
386
|
}
|
|
@@ -374,6 +391,12 @@ export interface FleetCommand extends RideCommand {
|
|
|
374
391
|
export interface FleetModifyCommand extends FleetCommand {
|
|
375
392
|
}
|
|
376
393
|
|
|
394
|
+
export interface GenerateToken {
|
|
395
|
+
accountPermission?: AccountPermission;
|
|
396
|
+
info?: TokenInfo;
|
|
397
|
+
tokenId?: string;
|
|
398
|
+
}
|
|
399
|
+
|
|
377
400
|
export interface GeoJson {
|
|
378
401
|
features?: Feature[];
|
|
379
402
|
}
|
|
@@ -435,6 +458,9 @@ export interface GetMessageAtIndex {
|
|
|
435
458
|
export interface GetMyAccounts {
|
|
436
459
|
}
|
|
437
460
|
|
|
461
|
+
export interface GetMyToken {
|
|
462
|
+
}
|
|
463
|
+
|
|
438
464
|
export interface GetMyUserProfile {
|
|
439
465
|
}
|
|
440
466
|
|
|
@@ -462,6 +488,10 @@ export interface GetThreadDump extends AdminJsonType {
|
|
|
462
488
|
requestId?: number;
|
|
463
489
|
}
|
|
464
490
|
|
|
491
|
+
export interface GetToken {
|
|
492
|
+
tokenId?: string;
|
|
493
|
+
}
|
|
494
|
+
|
|
465
495
|
export interface GetUserProfile {
|
|
466
496
|
userId?: string;
|
|
467
497
|
}
|
|
@@ -504,6 +534,14 @@ export interface InviteUser extends UserCommand {
|
|
|
504
534
|
email?: string;
|
|
505
535
|
}
|
|
506
536
|
|
|
537
|
+
/**
|
|
538
|
+
* Ip4 or ip6 range in CIDR format
|
|
539
|
+
*/
|
|
540
|
+
export interface IpRange {
|
|
541
|
+
ip?: string;
|
|
542
|
+
range?: number;
|
|
543
|
+
}
|
|
544
|
+
|
|
507
545
|
export interface IsoState {
|
|
508
546
|
germanName?: string;
|
|
509
547
|
isoCode?: string;
|
|
@@ -630,6 +668,9 @@ export interface RevokeSubscription extends AccountUpdate {
|
|
|
630
668
|
subscriptionId?: string;
|
|
631
669
|
}
|
|
632
670
|
|
|
671
|
+
export interface RevokeToken extends TokenUpdate {
|
|
672
|
+
}
|
|
673
|
+
|
|
633
674
|
export interface Ride {
|
|
634
675
|
/**
|
|
635
676
|
* Derived from driveOwner != null
|
|
@@ -733,6 +774,7 @@ export interface RideLog {
|
|
|
733
774
|
eventDescription?: string;
|
|
734
775
|
eventId?: string;
|
|
735
776
|
impersonator?: string;
|
|
777
|
+
tokenId?: string;
|
|
736
778
|
userId?: string;
|
|
737
779
|
}
|
|
738
780
|
|
|
@@ -747,18 +789,9 @@ export interface RideTypeSpecificFilter {
|
|
|
747
789
|
type: "ambulance" | "taxi";
|
|
748
790
|
}
|
|
749
791
|
|
|
750
|
-
export interface Right {
|
|
751
|
-
type: "role";
|
|
752
|
-
}
|
|
753
|
-
|
|
754
792
|
export interface Role<T> {
|
|
755
793
|
}
|
|
756
794
|
|
|
757
|
-
export interface RoleRight extends Right {
|
|
758
|
-
role?: UserRole;
|
|
759
|
-
type: "role";
|
|
760
|
-
}
|
|
761
|
-
|
|
762
795
|
/**
|
|
763
796
|
* Save a new ride or update a previously saved ride. Not allowed to saveRide after the ride has been booked.
|
|
764
797
|
*/
|
|
@@ -870,6 +903,28 @@ export interface ToggleAdminEndpoint extends AdminJsonType {
|
|
|
870
903
|
requestId?: number;
|
|
871
904
|
}
|
|
872
905
|
|
|
906
|
+
export interface Token {
|
|
907
|
+
accountPermission?: AccountPermission;
|
|
908
|
+
createdBy?: string;
|
|
909
|
+
info?: TokenInfo;
|
|
910
|
+
lastUpdatedBy?: string;
|
|
911
|
+
revoked?: boolean;
|
|
912
|
+
tokenId?: string;
|
|
913
|
+
}
|
|
914
|
+
|
|
915
|
+
export interface TokenCommand {
|
|
916
|
+
tokenId?: string;
|
|
917
|
+
}
|
|
918
|
+
|
|
919
|
+
export interface TokenInfo {
|
|
920
|
+
dateRange?: DateRange;
|
|
921
|
+
name?: string;
|
|
922
|
+
whitelistedIps?: IpRange[];
|
|
923
|
+
}
|
|
924
|
+
|
|
925
|
+
export interface TokenUpdate extends TokenCommand {
|
|
926
|
+
}
|
|
927
|
+
|
|
873
928
|
export interface UpdateAccountInfo extends AccountUpdate {
|
|
874
929
|
autoConfirm?: boolean;
|
|
875
930
|
criticalInfo?: CriticalAccountInfo;
|
|
@@ -889,7 +944,12 @@ export interface UpdateTeam extends TeamUpdate {
|
|
|
889
944
|
info?: TeamInfo;
|
|
890
945
|
}
|
|
891
946
|
|
|
892
|
-
export interface
|
|
947
|
+
export interface UpdateToken extends TokenUpdate {
|
|
948
|
+
accountPermission?: AccountPermission;
|
|
949
|
+
info?: TokenInfo;
|
|
950
|
+
}
|
|
951
|
+
|
|
952
|
+
export interface UpdateUserInfo extends UserEdit {
|
|
893
953
|
info?: UserInfo;
|
|
894
954
|
}
|
|
895
955
|
|
|
@@ -897,6 +957,9 @@ export interface UserCommand {
|
|
|
897
957
|
userId?: string;
|
|
898
958
|
}
|
|
899
959
|
|
|
960
|
+
export interface UserEdit extends UserUpdate {
|
|
961
|
+
}
|
|
962
|
+
|
|
900
963
|
export interface UserInfo {
|
|
901
964
|
firstName?: string;
|
|
902
965
|
language?: string;
|
|
@@ -904,6 +967,11 @@ export interface UserInfo {
|
|
|
904
967
|
telephoneNumber?: string;
|
|
905
968
|
}
|
|
906
969
|
|
|
970
|
+
export interface UserOrTokenId {
|
|
971
|
+
functionalId?: string;
|
|
972
|
+
token?: boolean;
|
|
973
|
+
}
|
|
974
|
+
|
|
907
975
|
export interface UserProfile {
|
|
908
976
|
acceptedUserAgreements?: string[];
|
|
909
977
|
accountPermissions?: AccountPermission[];
|
|
@@ -949,10 +1017,6 @@ export type RideType = "taxi" | "ambulance";
|
|
|
949
1017
|
|
|
950
1018
|
export type RideTypeSpecificFilterUnion = AmbulanceFilter | TaxiFilter;
|
|
951
1019
|
|
|
952
|
-
export type RightType = "role" | "jurisdiction";
|
|
953
|
-
|
|
954
|
-
export type RightUnion = RoleRight;
|
|
955
|
-
|
|
956
1020
|
export type Service = "rideplanning" | "driveplanning";
|
|
957
1021
|
|
|
958
1022
|
export type SlackChannel = "admin_monitoring" | "admin_respond_immediately" | "admin_respond_within_hour" | "admin_reported_issues";
|
package/package.json
CHANGED