@moxi.gmbh/moxi-typescriptmodels 0.0.2 → 0.0.5
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 +128 -68
- package/package.json +1 -1
- package/moxi.gmbh-moxi-typescriptmodels-0.0.2.tgz +0 -0
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
|
-
|
|
89
|
+
sessionDeadline?: string;
|
|
90
|
+
userProfile?: UserProfile;
|
|
68
91
|
}
|
|
69
92
|
|
|
70
93
|
export interface AuthenticationService {
|
|
@@ -86,32 +109,19 @@ export interface ChangeUserPassword {
|
|
|
86
109
|
userId?: string;
|
|
87
110
|
}
|
|
88
111
|
|
|
89
|
-
export interface
|
|
112
|
+
export interface ConfirmOrganisation extends OrganisationCommand {
|
|
90
113
|
}
|
|
91
114
|
|
|
92
115
|
export interface ConfirmUser {
|
|
93
|
-
|
|
116
|
+
token?: any;
|
|
94
117
|
userId?: string;
|
|
95
118
|
}
|
|
96
119
|
|
|
97
120
|
export interface ConfirmablePermission {
|
|
121
|
+
active?: boolean;
|
|
98
122
|
revoked?: boolean;
|
|
99
123
|
}
|
|
100
124
|
|
|
101
|
-
export interface CostBearer {
|
|
102
|
-
costBearerId?: CostBearerId;
|
|
103
|
-
info?: CostBearerInfo;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
export interface CostBearerId {
|
|
107
|
-
type?: any;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
export interface CostBearerInfo {
|
|
111
|
-
code?: any;
|
|
112
|
-
name?: any;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
125
|
export interface CreateOrganisation extends OrganisationCommand {
|
|
116
126
|
info?: OrganisationInfo;
|
|
117
127
|
owner?: string;
|
|
@@ -129,6 +139,7 @@ export interface CreateTeam extends OrganisationCommand {
|
|
|
129
139
|
|
|
130
140
|
export interface CreateUser extends UserCommand {
|
|
131
141
|
info?: UserInfo;
|
|
142
|
+
owner?: string;
|
|
132
143
|
}
|
|
133
144
|
|
|
134
145
|
export interface DateRange {
|
|
@@ -136,7 +147,7 @@ export interface DateRange {
|
|
|
136
147
|
start?: string;
|
|
137
148
|
}
|
|
138
149
|
|
|
139
|
-
export interface DeleteUser extends
|
|
150
|
+
export interface DeleteUser extends EditUser {
|
|
140
151
|
}
|
|
141
152
|
|
|
142
153
|
export interface DownloadableFile {
|
|
@@ -160,6 +171,21 @@ export interface DrivePermissionInfo extends TimedPermission {
|
|
|
160
171
|
region?: Region;
|
|
161
172
|
}
|
|
162
173
|
|
|
174
|
+
export interface EditUser extends UserUpdate {
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
export interface EmailMessage {
|
|
178
|
+
attachments?: Attachment[];
|
|
179
|
+
bccs?: any[];
|
|
180
|
+
ccs?: any[];
|
|
181
|
+
from?: any;
|
|
182
|
+
htmlContent?: any;
|
|
183
|
+
plaintextContent?: any;
|
|
184
|
+
replyTo?: any;
|
|
185
|
+
subject?: any;
|
|
186
|
+
tos?: any[];
|
|
187
|
+
}
|
|
188
|
+
|
|
163
189
|
export interface EncryptValue {
|
|
164
190
|
value?: any;
|
|
165
191
|
}
|
|
@@ -175,7 +201,7 @@ export interface FindAddresses {
|
|
|
175
201
|
term?: any;
|
|
176
202
|
}
|
|
177
203
|
|
|
178
|
-
export interface
|
|
204
|
+
export interface FindInsurers {
|
|
179
205
|
term?: any;
|
|
180
206
|
}
|
|
181
207
|
|
|
@@ -191,6 +217,11 @@ export interface FindMyRides {
|
|
|
191
217
|
timeRange?: InstantRange;
|
|
192
218
|
}
|
|
193
219
|
|
|
220
|
+
export interface FindMyUsers {
|
|
221
|
+
organisationId?: string;
|
|
222
|
+
term?: any;
|
|
223
|
+
}
|
|
224
|
+
|
|
194
225
|
export interface FindOrganisations {
|
|
195
226
|
term?: any;
|
|
196
227
|
}
|
|
@@ -228,8 +259,7 @@ export interface GetMessageAtIndex {
|
|
|
228
259
|
export interface GetMyOrganisations {
|
|
229
260
|
}
|
|
230
261
|
|
|
231
|
-
export interface
|
|
232
|
-
organisationId?: string;
|
|
262
|
+
export interface GetMyUserProfile {
|
|
233
263
|
}
|
|
234
264
|
|
|
235
265
|
export interface GetOrganisation {
|
|
@@ -241,7 +271,7 @@ export interface GetRide {
|
|
|
241
271
|
}
|
|
242
272
|
|
|
243
273
|
export interface GetTeam {
|
|
244
|
-
teamId?:
|
|
274
|
+
teamId?: string;
|
|
245
275
|
}
|
|
246
276
|
|
|
247
277
|
export interface GetThreadDump extends AdminJsonType {
|
|
@@ -249,16 +279,13 @@ export interface GetThreadDump extends AdminJsonType {
|
|
|
249
279
|
requestId?: number;
|
|
250
280
|
}
|
|
251
281
|
|
|
252
|
-
export interface GetUser {
|
|
253
|
-
userId?: string;
|
|
254
|
-
}
|
|
255
|
-
|
|
256
282
|
export interface GetUserProfile {
|
|
283
|
+
userId?: string;
|
|
257
284
|
}
|
|
258
285
|
|
|
259
286
|
export interface GiveDrivePermission extends OrganisationUpdate {
|
|
287
|
+
drivePermissionId?: any;
|
|
260
288
|
info?: DrivePermissionInfo;
|
|
261
|
-
regionalDrivePermissionId?: any;
|
|
262
289
|
}
|
|
263
290
|
|
|
264
291
|
export interface GiveOrganisationRole extends UserUpdate {
|
|
@@ -276,19 +303,42 @@ export interface GiveTeamRole extends UserUpdate {
|
|
|
276
303
|
teamRolePermissionId?: any;
|
|
277
304
|
}
|
|
278
305
|
|
|
306
|
+
export interface ImpersonateUser {
|
|
307
|
+
userId?: string;
|
|
308
|
+
}
|
|
309
|
+
|
|
279
310
|
export interface InstantRange {
|
|
280
311
|
end?: string;
|
|
281
312
|
start?: string;
|
|
282
313
|
}
|
|
283
314
|
|
|
315
|
+
export interface Insurer {
|
|
316
|
+
info?: InsurerInfo;
|
|
317
|
+
insurerId?: InsurerId;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
export interface InsurerId {
|
|
321
|
+
type?: any;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
export interface InsurerInfo {
|
|
325
|
+
code?: any;
|
|
326
|
+
name?: any;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
export interface MailWithEnvelopeModel extends MustacheModel {
|
|
330
|
+
email?: EmailMessage;
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
export interface MustacheModel {
|
|
334
|
+
}
|
|
335
|
+
|
|
284
336
|
export interface OffsetTimeRange {
|
|
285
337
|
end?: Date;
|
|
286
338
|
start?: Date;
|
|
287
339
|
}
|
|
288
340
|
|
|
289
341
|
export interface Organisation {
|
|
290
|
-
activeRegions?: DrivePermissionInfo[];
|
|
291
|
-
activeServices?: Service[];
|
|
292
342
|
confirmedInfo?: OrganisationInfo;
|
|
293
343
|
drivePermissions?: DrivePermission[];
|
|
294
344
|
organisationId?: string;
|
|
@@ -334,10 +384,10 @@ export interface OrganisationUpdate extends OrganisationCommand {
|
|
|
334
384
|
export interface Person {
|
|
335
385
|
address?: AddressInfo;
|
|
336
386
|
birthDay?: string;
|
|
337
|
-
costBearer?: CostBearer;
|
|
338
387
|
email?: any;
|
|
339
388
|
firstName?: any;
|
|
340
389
|
insuranceNumber?: any;
|
|
390
|
+
insurer?: Insurer;
|
|
341
391
|
lastName?: any;
|
|
342
392
|
phoneNumber?: any;
|
|
343
393
|
weightInKg?: any;
|
|
@@ -362,6 +412,10 @@ export interface Region {
|
|
|
362
412
|
state?: any;
|
|
363
413
|
}
|
|
364
414
|
|
|
415
|
+
export interface RegisterAuthenticationToken extends UserUpdate {
|
|
416
|
+
hashedToken?: any;
|
|
417
|
+
}
|
|
418
|
+
|
|
365
419
|
export interface RemoveTeam extends TeamUpdate {
|
|
366
420
|
}
|
|
367
421
|
|
|
@@ -389,10 +443,6 @@ export interface RequestUserReset {
|
|
|
389
443
|
email?: any;
|
|
390
444
|
}
|
|
391
445
|
|
|
392
|
-
export interface ResendConfirmationEmail {
|
|
393
|
-
email?: any;
|
|
394
|
-
}
|
|
395
|
-
|
|
396
446
|
export interface RevokeDrivePermission extends OrganisationUpdate {
|
|
397
447
|
drivePermissionId?: any;
|
|
398
448
|
}
|
|
@@ -458,17 +508,12 @@ export interface SaveRide extends CreateRideCommand {
|
|
|
458
508
|
info?: RideInfo;
|
|
459
509
|
}
|
|
460
510
|
|
|
511
|
+
export interface SendConfirmationEmail {
|
|
512
|
+
userId?: string;
|
|
513
|
+
}
|
|
514
|
+
|
|
461
515
|
export interface SendEmail {
|
|
462
|
-
|
|
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[];
|
|
516
|
+
message?: EmailMessage;
|
|
472
517
|
}
|
|
473
518
|
|
|
474
519
|
export interface ServicePermission extends ConfirmablePermission {
|
|
@@ -482,8 +527,8 @@ export interface ServicePermissionInfo extends TimedPermission {
|
|
|
482
527
|
service?: Service;
|
|
483
528
|
}
|
|
484
529
|
|
|
485
|
-
export interface
|
|
486
|
-
|
|
530
|
+
export interface SetUserOwner extends UserUpdate {
|
|
531
|
+
owner?: string;
|
|
487
532
|
}
|
|
488
533
|
|
|
489
534
|
export interface SetUserPassword {
|
|
@@ -492,6 +537,10 @@ export interface SetUserPassword {
|
|
|
492
537
|
userId?: string;
|
|
493
538
|
}
|
|
494
539
|
|
|
540
|
+
export interface SetUserRole extends UserUpdate {
|
|
541
|
+
role?: UserRole;
|
|
542
|
+
}
|
|
543
|
+
|
|
495
544
|
export interface SignInUser {
|
|
496
545
|
password?: any;
|
|
497
546
|
userId?: string;
|
|
@@ -509,9 +558,12 @@ export interface StartSchedule {
|
|
|
509
558
|
scheduleId?: any;
|
|
510
559
|
}
|
|
511
560
|
|
|
561
|
+
export interface StopImpersonatingUser {
|
|
562
|
+
}
|
|
563
|
+
|
|
512
564
|
export interface Team {
|
|
513
|
-
groupName?: any;
|
|
514
565
|
teamId?: string;
|
|
566
|
+
teamName?: any;
|
|
515
567
|
}
|
|
516
568
|
|
|
517
569
|
export interface TeamRolePermission extends ConfirmablePermission {
|
|
@@ -533,10 +585,13 @@ export interface TeamRoleSummary {
|
|
|
533
585
|
teamId?: string;
|
|
534
586
|
}
|
|
535
587
|
|
|
536
|
-
export interface TeamUpdate {
|
|
588
|
+
export interface TeamUpdate extends OrganisationUpdate {
|
|
537
589
|
teamId?: string;
|
|
538
590
|
}
|
|
539
591
|
|
|
592
|
+
export interface Template {
|
|
593
|
+
}
|
|
594
|
+
|
|
540
595
|
export interface TimeRange {
|
|
541
596
|
end?: string;
|
|
542
597
|
start?: string;
|
|
@@ -565,11 +620,11 @@ export interface UpdateRideConfirmation extends FleetModifyCommand {
|
|
|
565
620
|
alternativeTime?: string;
|
|
566
621
|
}
|
|
567
622
|
|
|
568
|
-
export interface
|
|
623
|
+
export interface UpdateTeam extends TeamUpdate {
|
|
569
624
|
teamName?: any;
|
|
570
625
|
}
|
|
571
626
|
|
|
572
|
-
export interface UpdateUserInfo extends
|
|
627
|
+
export interface UpdateUserInfo extends EditUser {
|
|
573
628
|
info?: UserInfo;
|
|
574
629
|
}
|
|
575
630
|
|
|
@@ -578,36 +633,43 @@ export interface UpsertAddress {
|
|
|
578
633
|
info?: AddressInfo;
|
|
579
634
|
}
|
|
580
635
|
|
|
581
|
-
export interface
|
|
582
|
-
|
|
583
|
-
|
|
636
|
+
export interface UpsertInsurers {
|
|
637
|
+
info?: InsurerInfo;
|
|
638
|
+
insurerId?: InsurerId;
|
|
584
639
|
}
|
|
585
640
|
|
|
586
|
-
export interface
|
|
587
|
-
acceptedUserAgreements?: any[];
|
|
588
|
-
activeRoles?: ActiveRoles;
|
|
589
|
-
admin?: boolean;
|
|
590
|
-
info?: UserInfo;
|
|
591
|
-
newUser?: boolean;
|
|
592
|
-
organisationRolePermissions?: OrganisationRolePermission[];
|
|
593
|
-
teamRolePermissions?: TeamRolePermission[];
|
|
641
|
+
export interface UserCommand {
|
|
594
642
|
userId?: string;
|
|
595
|
-
userRole?: UserRole;
|
|
596
643
|
}
|
|
597
644
|
|
|
598
|
-
export interface
|
|
599
|
-
|
|
645
|
+
export interface UserEmailModel extends MustacheModel {
|
|
646
|
+
attachments?: Attachment[];
|
|
647
|
+
subjectTemplate?: Template;
|
|
648
|
+
user?: UserProfile;
|
|
600
649
|
}
|
|
601
650
|
|
|
602
651
|
export interface UserInfo {
|
|
603
652
|
address?: AddressInfo;
|
|
604
653
|
email?: any;
|
|
605
654
|
firstName?: any;
|
|
655
|
+
language?: any;
|
|
606
656
|
lastName?: any;
|
|
607
657
|
publicProfile?: boolean;
|
|
608
658
|
telephoneNumber?: any;
|
|
609
659
|
}
|
|
610
660
|
|
|
661
|
+
export interface UserProfile {
|
|
662
|
+
acceptedUserAgreements?: any[];
|
|
663
|
+
activeRoles?: ActiveRoles;
|
|
664
|
+
confirmed?: boolean;
|
|
665
|
+
info?: UserInfo;
|
|
666
|
+
organisationRolePermissions?: OrganisationRolePermission[];
|
|
667
|
+
owner?: string;
|
|
668
|
+
teamRolePermissions?: TeamRolePermission[];
|
|
669
|
+
userId?: string;
|
|
670
|
+
userRole?: UserRole;
|
|
671
|
+
}
|
|
672
|
+
|
|
611
673
|
export interface UserUpdate extends UserCommand {
|
|
612
674
|
}
|
|
613
675
|
|
|
@@ -636,8 +698,6 @@ export type OrganisationRole = "member" | "admin" | "owner" | "rideplanner" | "d
|
|
|
636
698
|
|
|
637
699
|
export type OutputFormat = "PAYLOAD" | "MESSAGE" | "SERIALIZED_MESSAGE";
|
|
638
700
|
|
|
639
|
-
export type RideRole = "viewer" | "planner" | "driver" | "potentialDriver";
|
|
640
|
-
|
|
641
701
|
export type RightType = "role" | "jurisdiction";
|
|
642
702
|
|
|
643
703
|
export type RightUnion = RoleRight;
|
package/package.json
CHANGED
|
Binary file
|