@moxi.gmbh/moxi-typescriptmodels 0.0.2 → 0.0.4

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
@@ -35,14 +35,24 @@ export interface AddressInfo {
35
35
  zipCode?: any;
36
36
  }
37
37
 
38
- export interface AdminConfirmUser {
39
- userId?: string;
38
+ export interface AdminConfirmUser extends UserUpdate {
40
39
  }
41
40
 
42
41
  export interface AdminJsonType {
43
42
  "@type": "executeStatement" | "getThreadDump" | "queryDatabase" | "toggleAdminEndpoint";
44
43
  }
45
44
 
45
+ export interface AdminSetUserPassword {
46
+ password?: any;
47
+ userId?: string;
48
+ }
49
+
50
+ export interface AdminSignUpUser {
51
+ info?: UserInfo;
52
+ owner?: string;
53
+ userId?: string;
54
+ }
55
+
46
56
  export interface AdminWebsocketClient {
47
57
  }
48
58
 
@@ -62,9 +72,22 @@ export interface Appointment {
62
72
  time?: string;
63
73
  }
64
74
 
75
+ export interface Attachment {
76
+ base64Data?: any;
77
+ fileName?: any;
78
+ mediaType?: any;
79
+ }
80
+
81
+ export interface AuthenticateWithToken extends UserUpdate {
82
+ hashedToken?: any;
83
+ }
84
+
65
85
  export interface AuthenticationResponse {
86
+ authorizationHeader?: any;
87
+ impersonator?: string;
66
88
  result?: AuthenticationResult;
67
- userProfile?: User;
89
+ sessionDeadline?: string;
90
+ userProfile?: UserProfile;
68
91
  }
69
92
 
70
93
  export interface AuthenticationService {
@@ -86,11 +109,11 @@ export interface ChangeUserPassword {
86
109
  userId?: string;
87
110
  }
88
111
 
89
- export interface ConfirmAllOrganisationUpdates extends OrganisationCommand {
112
+ export interface ConfirmOrganisation extends OrganisationCommand {
90
113
  }
91
114
 
92
115
  export interface ConfirmUser {
93
- confirmationCode?: any;
116
+ token?: any;
94
117
  userId?: string;
95
118
  }
96
119
 
@@ -129,6 +152,7 @@ export interface CreateTeam extends OrganisationCommand {
129
152
 
130
153
  export interface CreateUser extends UserCommand {
131
154
  info?: UserInfo;
155
+ owner?: string;
132
156
  }
133
157
 
134
158
  export interface DateRange {
@@ -136,7 +160,7 @@ export interface DateRange {
136
160
  start?: string;
137
161
  }
138
162
 
139
- export interface DeleteUser extends UserUpdate {
163
+ export interface DeleteUser extends EditUser {
140
164
  }
141
165
 
142
166
  export interface DownloadableFile {
@@ -160,6 +184,21 @@ export interface DrivePermissionInfo extends TimedPermission {
160
184
  region?: Region;
161
185
  }
162
186
 
187
+ export interface EditUser extends UserUpdate {
188
+ }
189
+
190
+ export interface EmailMessage {
191
+ attachments?: Attachment[];
192
+ bccs?: any[];
193
+ ccs?: any[];
194
+ from?: any;
195
+ htmlContent?: any;
196
+ plaintextContent?: any;
197
+ replyTo?: any;
198
+ subject?: any;
199
+ tos?: any[];
200
+ }
201
+
163
202
  export interface EncryptValue {
164
203
  value?: any;
165
204
  }
@@ -191,6 +230,11 @@ export interface FindMyRides {
191
230
  timeRange?: InstantRange;
192
231
  }
193
232
 
233
+ export interface FindMyUsers {
234
+ organisationId?: string;
235
+ term?: any;
236
+ }
237
+
194
238
  export interface FindOrganisations {
195
239
  term?: any;
196
240
  }
@@ -228,8 +272,7 @@ export interface GetMessageAtIndex {
228
272
  export interface GetMyOrganisations {
229
273
  }
230
274
 
231
- export interface GetMyTeams {
232
- organisationId?: string;
275
+ export interface GetMyUserProfile {
233
276
  }
234
277
 
235
278
  export interface GetOrganisation {
@@ -241,7 +284,7 @@ export interface GetRide {
241
284
  }
242
285
 
243
286
  export interface GetTeam {
244
- teamId?: any;
287
+ teamId?: string;
245
288
  }
246
289
 
247
290
  export interface GetThreadDump extends AdminJsonType {
@@ -249,11 +292,8 @@ export interface GetThreadDump extends AdminJsonType {
249
292
  requestId?: number;
250
293
  }
251
294
 
252
- export interface GetUser {
253
- userId?: string;
254
- }
255
-
256
295
  export interface GetUserProfile {
296
+ userId?: string;
257
297
  }
258
298
 
259
299
  export interface GiveDrivePermission extends OrganisationUpdate {
@@ -276,18 +316,29 @@ export interface GiveTeamRole extends UserUpdate {
276
316
  teamRolePermissionId?: any;
277
317
  }
278
318
 
319
+ export interface ImpersonateUser {
320
+ userId?: string;
321
+ }
322
+
279
323
  export interface InstantRange {
280
324
  end?: string;
281
325
  start?: string;
282
326
  }
283
327
 
328
+ export interface MailWithEnvelopeModel extends MustacheModel {
329
+ email?: EmailMessage;
330
+ }
331
+
332
+ export interface MustacheModel {
333
+ }
334
+
284
335
  export interface OffsetTimeRange {
285
336
  end?: Date;
286
337
  start?: Date;
287
338
  }
288
339
 
289
340
  export interface Organisation {
290
- activeRegions?: DrivePermissionInfo[];
341
+ activeDrivePermissions?: DrivePermissionInfo[];
291
342
  activeServices?: Service[];
292
343
  confirmedInfo?: OrganisationInfo;
293
344
  drivePermissions?: DrivePermission[];
@@ -362,6 +413,10 @@ export interface Region {
362
413
  state?: any;
363
414
  }
364
415
 
416
+ export interface RegisterAuthenticationToken extends UserUpdate {
417
+ hashedToken?: any;
418
+ }
419
+
365
420
  export interface RemoveTeam extends TeamUpdate {
366
421
  }
367
422
 
@@ -389,10 +444,6 @@ export interface RequestUserReset {
389
444
  email?: any;
390
445
  }
391
446
 
392
- export interface ResendConfirmationEmail {
393
- email?: any;
394
- }
395
-
396
447
  export interface RevokeDrivePermission extends OrganisationUpdate {
397
448
  drivePermissionId?: any;
398
449
  }
@@ -458,17 +509,12 @@ export interface SaveRide extends CreateRideCommand {
458
509
  info?: RideInfo;
459
510
  }
460
511
 
512
+ export interface SendConfirmationEmail {
513
+ userId?: string;
514
+ }
515
+
461
516
  export interface SendEmail {
462
- attachments?: DownloadableFile[];
463
- bccAddresses?: any[];
464
- ccAddresses?: any[];
465
- content?: any;
466
- contentType?: any;
467
- noReply?: boolean;
468
- replyTo?: any;
469
- replyToName?: any;
470
- subject?: any;
471
- toAddresses?: any[];
517
+ message?: EmailMessage;
472
518
  }
473
519
 
474
520
  export interface ServicePermission extends ConfirmablePermission {
@@ -482,8 +528,8 @@ export interface ServicePermissionInfo extends TimedPermission {
482
528
  service?: Service;
483
529
  }
484
530
 
485
- export interface SetGeneralUserRole extends UserUpdate {
486
- role?: UserRole;
531
+ export interface SetUserOwner extends UserUpdate {
532
+ owner?: string;
487
533
  }
488
534
 
489
535
  export interface SetUserPassword {
@@ -492,6 +538,10 @@ export interface SetUserPassword {
492
538
  userId?: string;
493
539
  }
494
540
 
541
+ export interface SetUserRole extends UserUpdate {
542
+ role?: UserRole;
543
+ }
544
+
495
545
  export interface SignInUser {
496
546
  password?: any;
497
547
  userId?: string;
@@ -509,9 +559,12 @@ export interface StartSchedule {
509
559
  scheduleId?: any;
510
560
  }
511
561
 
562
+ export interface StopImpersonatingUser {
563
+ }
564
+
512
565
  export interface Team {
513
- groupName?: any;
514
566
  teamId?: string;
567
+ teamName?: any;
515
568
  }
516
569
 
517
570
  export interface TeamRolePermission extends ConfirmablePermission {
@@ -533,10 +586,13 @@ export interface TeamRoleSummary {
533
586
  teamId?: string;
534
587
  }
535
588
 
536
- export interface TeamUpdate {
589
+ export interface TeamUpdate extends OrganisationUpdate {
537
590
  teamId?: string;
538
591
  }
539
592
 
593
+ export interface Template {
594
+ }
595
+
540
596
  export interface TimeRange {
541
597
  end?: string;
542
598
  start?: string;
@@ -565,11 +621,11 @@ export interface UpdateRideConfirmation extends FleetModifyCommand {
565
621
  alternativeTime?: string;
566
622
  }
567
623
 
568
- export interface UpdateTeamInfo extends TeamUpdate {
624
+ export interface UpdateTeam extends TeamUpdate {
569
625
  teamName?: any;
570
626
  }
571
627
 
572
- export interface UpdateUserInfo extends UserUpdate {
628
+ export interface UpdateUserInfo extends EditUser {
573
629
  info?: UserInfo;
574
630
  }
575
631
 
@@ -583,31 +639,38 @@ export interface UpsertCostBearer {
583
639
  info?: CostBearerInfo;
584
640
  }
585
641
 
586
- export interface User {
587
- acceptedUserAgreements?: any[];
588
- activeRoles?: ActiveRoles;
589
- admin?: boolean;
590
- info?: UserInfo;
591
- newUser?: boolean;
592
- organisationRolePermissions?: OrganisationRolePermission[];
593
- teamRolePermissions?: TeamRolePermission[];
642
+ export interface UserCommand {
594
643
  userId?: string;
595
- userRole?: UserRole;
596
644
  }
597
645
 
598
- export interface UserCommand {
599
- userId?: string;
646
+ export interface UserEmailModel extends MustacheModel {
647
+ attachments?: Attachment[];
648
+ subjectTemplate?: Template;
649
+ user?: UserProfile;
600
650
  }
601
651
 
602
652
  export interface UserInfo {
603
653
  address?: AddressInfo;
604
654
  email?: any;
605
655
  firstName?: any;
656
+ language?: any;
606
657
  lastName?: any;
607
658
  publicProfile?: boolean;
608
659
  telephoneNumber?: any;
609
660
  }
610
661
 
662
+ export interface UserProfile {
663
+ acceptedUserAgreements?: any[];
664
+ activeRoles?: ActiveRoles;
665
+ confirmed?: boolean;
666
+ info?: UserInfo;
667
+ organisationRolePermissions?: OrganisationRolePermission[];
668
+ owner?: string;
669
+ teamRolePermissions?: TeamRolePermission[];
670
+ userId?: string;
671
+ userRole?: UserRole;
672
+ }
673
+
611
674
  export interface UserUpdate extends UserCommand {
612
675
  }
613
676
 
@@ -636,8 +699,6 @@ export type OrganisationRole = "member" | "admin" | "owner" | "rideplanner" | "d
636
699
 
637
700
  export type OutputFormat = "PAYLOAD" | "MESSAGE" | "SERIALIZED_MESSAGE";
638
701
 
639
- export type RideRole = "viewer" | "planner" | "driver" | "potentialDriver";
640
-
641
702
  export type RightType = "role" | "jurisdiction";
642
703
 
643
704
  export type RightUnion = RoleRight;
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@moxi.gmbh/moxi-typescriptmodels",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "types": "common.d.ts"
5
5
  }