@moxi.gmbh/moxi-typescriptmodels 0.0.1201 → 0.0.1221

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 +82 -18
  2. package/package.json +1 -1
package/common.d.ts CHANGED
@@ -217,6 +217,12 @@ export interface CreateTeam extends AccountCommand {
217
217
  teamId?: string;
218
218
  }
219
219
 
220
+ export interface CreateToken extends TokenCommand {
221
+ accountPermission?: AccountPermission;
222
+ hashedToken?: string;
223
+ info?: TokenInfo;
224
+ }
225
+
220
226
  export interface CreateUser extends UserCommand {
221
227
  email?: string;
222
228
  info?: UserInfo;
@@ -232,7 +238,7 @@ export interface DateRange extends Comparable<DateRange> {
232
238
  start?: string;
233
239
  }
234
240
 
235
- export interface DeleteUser extends EditUser {
241
+ export interface DeleteUser extends UserEdit {
236
242
  }
237
243
 
238
244
  export interface District {
@@ -266,9 +272,6 @@ export interface DrivePermissionInfo {
266
272
  regions?: Region[];
267
273
  }
268
274
 
269
- export interface EditUser extends UserUpdate {
270
- }
271
-
272
275
  export interface EmailMessage {
273
276
  attachments?: Attachment[];
274
277
  bccs?: string[];
@@ -324,6 +327,7 @@ export interface FindAccount {
324
327
 
325
328
  export interface FindMyRideOffers {
326
329
  accountId?: string;
330
+ descending?: boolean;
327
331
  filter?: RideFilter;
328
332
  maxSize?: number;
329
333
  term?: string;
@@ -331,11 +335,18 @@ export interface FindMyRideOffers {
331
335
 
332
336
  export interface FindMyRides {
333
337
  accountId?: string;
338
+ descending?: boolean;
334
339
  filter?: RideFilter;
335
340
  maxSize?: number;
336
341
  term?: string;
337
342
  }
338
343
 
344
+ export interface FindMyTokens {
345
+ accountId?: string;
346
+ teamId?: string;
347
+ term?: string;
348
+ }
349
+
339
350
  export interface FindMyUsers {
340
351
  accountId?: string;
341
352
  teamId?: string;
@@ -344,12 +355,14 @@ export interface FindMyUsers {
344
355
 
345
356
  export interface FindPotentialRides {
346
357
  accountId?: string;
358
+ descending?: boolean;
347
359
  filter?: RideFilter;
348
360
  maxSize?: number;
349
361
  term?: string;
350
362
  }
351
363
 
352
364
  export interface FindRides {
365
+ descending?: boolean;
353
366
  filter?: RideFilter;
354
367
  maxSize?: number;
355
368
  term?: string;
@@ -360,6 +373,10 @@ export interface FindRidesResult {
360
373
  rides?: Ride[];
361
374
  }
362
375
 
376
+ export interface FindTokens {
377
+ term?: string;
378
+ }
379
+
363
380
  export interface FindUsers {
364
381
  term?: string;
365
382
  }
@@ -370,6 +387,12 @@ export interface FleetCommand extends RideCommand {
370
387
  export interface FleetModifyCommand extends FleetCommand {
371
388
  }
372
389
 
390
+ export interface GenerateToken {
391
+ accountPermission?: AccountPermission;
392
+ info?: TokenInfo;
393
+ tokenId?: string;
394
+ }
395
+
373
396
  export interface GeoJson {
374
397
  features?: Feature[];
375
398
  }
@@ -431,6 +454,9 @@ export interface GetMessageAtIndex {
431
454
  export interface GetMyAccounts {
432
455
  }
433
456
 
457
+ export interface GetMyToken {
458
+ }
459
+
434
460
  export interface GetMyUserProfile {
435
461
  }
436
462
 
@@ -458,6 +484,10 @@ export interface GetThreadDump extends AdminJsonType {
458
484
  requestId?: number;
459
485
  }
460
486
 
487
+ export interface GetToken {
488
+ tokenId?: string;
489
+ }
490
+
461
491
  export interface GetUserProfile {
462
492
  userId?: string;
463
493
  }
@@ -500,6 +530,14 @@ export interface InviteUser extends UserCommand {
500
530
  email?: string;
501
531
  }
502
532
 
533
+ /**
534
+ * Ip4 or ip6 range in CIDR format
535
+ */
536
+ export interface IpRange {
537
+ ip?: string;
538
+ range?: number;
539
+ }
540
+
503
541
  export interface IsoState {
504
542
  germanName?: string;
505
543
  isoCode?: string;
@@ -626,6 +664,9 @@ export interface RevokeSubscription extends AccountUpdate {
626
664
  subscriptionId?: string;
627
665
  }
628
666
 
667
+ export interface RevokeToken extends TokenUpdate {
668
+ }
669
+
629
670
  export interface Ride {
630
671
  /**
631
672
  * Derived from driveOwner != null
@@ -729,6 +770,7 @@ export interface RideLog {
729
770
  eventDescription?: string;
730
771
  eventId?: string;
731
772
  impersonator?: string;
773
+ tokenId?: string;
732
774
  userId?: string;
733
775
  }
734
776
 
@@ -743,18 +785,9 @@ export interface RideTypeSpecificFilter {
743
785
  type: "ambulance" | "taxi";
744
786
  }
745
787
 
746
- export interface Right {
747
- type: "role";
748
- }
749
-
750
788
  export interface Role<T> {
751
789
  }
752
790
 
753
- export interface RoleRight extends Right {
754
- role?: UserRole;
755
- type: "role";
756
- }
757
-
758
791
  /**
759
792
  * Save a new ride or update a previously saved ride. Not allowed to saveRide after the ride has been booked.
760
793
  */
@@ -866,6 +899,28 @@ export interface ToggleAdminEndpoint extends AdminJsonType {
866
899
  requestId?: number;
867
900
  }
868
901
 
902
+ export interface Token {
903
+ accountPermission?: AccountPermission;
904
+ createdBy?: string;
905
+ info?: TokenInfo;
906
+ lastUpdatedBy?: string;
907
+ revoked?: boolean;
908
+ tokenId?: string;
909
+ }
910
+
911
+ export interface TokenCommand {
912
+ tokenId?: string;
913
+ }
914
+
915
+ export interface TokenInfo {
916
+ dateRange?: DateRange;
917
+ name?: string;
918
+ whitelistedIps?: IpRange[];
919
+ }
920
+
921
+ export interface TokenUpdate extends TokenCommand {
922
+ }
923
+
869
924
  export interface UpdateAccountInfo extends AccountUpdate {
870
925
  autoConfirm?: boolean;
871
926
  criticalInfo?: CriticalAccountInfo;
@@ -885,7 +940,12 @@ export interface UpdateTeam extends TeamUpdate {
885
940
  info?: TeamInfo;
886
941
  }
887
942
 
888
- export interface UpdateUserInfo extends EditUser {
943
+ export interface UpdateToken extends TokenUpdate {
944
+ accountPermission?: AccountPermission;
945
+ info?: TokenInfo;
946
+ }
947
+
948
+ export interface UpdateUserInfo extends UserEdit {
889
949
  info?: UserInfo;
890
950
  }
891
951
 
@@ -893,6 +953,9 @@ export interface UserCommand {
893
953
  userId?: string;
894
954
  }
895
955
 
956
+ export interface UserEdit extends UserUpdate {
957
+ }
958
+
896
959
  export interface UserInfo {
897
960
  firstName?: string;
898
961
  language?: string;
@@ -900,6 +963,11 @@ export interface UserInfo {
900
963
  telephoneNumber?: string;
901
964
  }
902
965
 
966
+ export interface UserOrTokenId {
967
+ functionalId?: string;
968
+ token?: boolean;
969
+ }
970
+
903
971
  export interface UserProfile {
904
972
  acceptedUserAgreements?: string[];
905
973
  accountPermissions?: AccountPermission[];
@@ -945,10 +1013,6 @@ export type RideType = "taxi" | "ambulance";
945
1013
 
946
1014
  export type RideTypeSpecificFilterUnion = AmbulanceFilter | TaxiFilter;
947
1015
 
948
- export type RightType = "role" | "jurisdiction";
949
-
950
- export type RightUnion = RoleRight;
951
-
952
1016
  export type Service = "rideplanning" | "driveplanning";
953
1017
 
954
1018
  export type SlackChannel = "admin_monitoring" | "admin_respond_immediately" | "admin_respond_within_hour" | "admin_reported_issues";
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@moxi.gmbh/moxi-typescriptmodels",
3
- "version": "0.0.1201",
3
+ "version": "0.0.1221",
4
4
  "types": "common.d.ts"
5
5
  }