@moxi.gmbh/moxi-typescriptmodels 0.0.51 → 0.0.121
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 +125 -163
- package/package.json +1 -1
package/common.d.ts
CHANGED
|
@@ -1,23 +1,54 @@
|
|
|
1
1
|
|
|
2
|
+
export interface AcceptInviteUser extends UserUpdate {
|
|
3
|
+
accountId?: string;
|
|
4
|
+
}
|
|
5
|
+
|
|
2
6
|
export interface AcceptRide extends FleetCommand {
|
|
3
7
|
alternativeRoundTripTime?: string;
|
|
4
8
|
alternativeTime?: string;
|
|
5
|
-
driveOwner?:
|
|
9
|
+
driveOwner?: AccountOrTeamId;
|
|
6
10
|
}
|
|
7
11
|
|
|
8
12
|
export interface AcceptUserAgreement extends UserUpdate {
|
|
9
13
|
agreementId?: any;
|
|
10
14
|
}
|
|
11
15
|
|
|
12
|
-
export interface
|
|
13
|
-
|
|
14
|
-
|
|
16
|
+
export interface Account {
|
|
17
|
+
accountId?: string;
|
|
18
|
+
drivePermissions?: DrivePermission[];
|
|
19
|
+
info?: AccountInfo;
|
|
20
|
+
pendingInfoUpdate?: AccountInfo;
|
|
21
|
+
subscriptions?: Subscription[];
|
|
22
|
+
teams?: Team[];
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface AccountCommand {
|
|
26
|
+
accountId?: string;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export interface AccountInfo {
|
|
30
|
+
ikNumber?: any;
|
|
31
|
+
name?: any;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export interface AccountOrTeamId {
|
|
35
|
+
accountId?: string;
|
|
36
|
+
teamId?: string;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export interface AccountPermission {
|
|
40
|
+
accountId?: string;
|
|
41
|
+
roles?: AccountRole[];
|
|
42
|
+
teamPermissions?: TeamPermission[];
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export interface AccountUpdate extends AccountCommand {
|
|
15
46
|
}
|
|
16
47
|
|
|
17
48
|
export interface Address {
|
|
49
|
+
accountId?: any;
|
|
18
50
|
addressId?: AddressId;
|
|
19
51
|
info?: AddressInfo;
|
|
20
|
-
organisationId?: any;
|
|
21
52
|
}
|
|
22
53
|
|
|
23
54
|
export interface AddressId {
|
|
@@ -47,12 +78,6 @@ export interface AdminSetUserPassword {
|
|
|
47
78
|
userId?: string;
|
|
48
79
|
}
|
|
49
80
|
|
|
50
|
-
export interface AdminSignUpUser {
|
|
51
|
-
info?: UserInfo;
|
|
52
|
-
owner?: string;
|
|
53
|
-
userId?: string;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
81
|
export interface AdminWebsocketClient {
|
|
57
82
|
}
|
|
58
83
|
|
|
@@ -109,7 +134,7 @@ export interface ChangeUserPassword {
|
|
|
109
134
|
userId?: string;
|
|
110
135
|
}
|
|
111
136
|
|
|
112
|
-
export interface
|
|
137
|
+
export interface ConfirmAccount extends AccountCommand {
|
|
113
138
|
}
|
|
114
139
|
|
|
115
140
|
export interface ConfirmUser {
|
|
@@ -122,24 +147,25 @@ export interface ConfirmablePermission {
|
|
|
122
147
|
revoked?: boolean;
|
|
123
148
|
}
|
|
124
149
|
|
|
125
|
-
export interface
|
|
126
|
-
|
|
150
|
+
export interface CreateAccount extends AccountCommand {
|
|
151
|
+
autoConfirm?: boolean;
|
|
152
|
+
info?: AccountInfo;
|
|
127
153
|
owner?: string;
|
|
128
154
|
requestService?: Service;
|
|
129
155
|
}
|
|
130
156
|
|
|
131
157
|
export interface CreateRideCommand extends RidePlannerCommand {
|
|
132
|
-
owner?:
|
|
158
|
+
owner?: AccountOrTeamId;
|
|
133
159
|
}
|
|
134
160
|
|
|
135
|
-
export interface CreateTeam extends
|
|
161
|
+
export interface CreateTeam extends AccountCommand {
|
|
136
162
|
teamId?: string;
|
|
137
163
|
teamName?: any;
|
|
138
164
|
}
|
|
139
165
|
|
|
140
166
|
export interface CreateUser extends UserCommand {
|
|
167
|
+
email?: any;
|
|
141
168
|
info?: UserInfo;
|
|
142
|
-
owner?: string;
|
|
143
169
|
}
|
|
144
170
|
|
|
145
171
|
export interface DateRange {
|
|
@@ -156,14 +182,15 @@ export interface DownloadableFile {
|
|
|
156
182
|
mediaType?: any;
|
|
157
183
|
}
|
|
158
184
|
|
|
159
|
-
export interface DrivePermission
|
|
160
|
-
|
|
185
|
+
export interface DrivePermission {
|
|
186
|
+
active?: boolean;
|
|
187
|
+
confirmed?: boolean;
|
|
161
188
|
drivePermissionId?: any;
|
|
162
189
|
info?: DrivePermissionInfo;
|
|
163
|
-
|
|
190
|
+
revoked?: boolean;
|
|
164
191
|
}
|
|
165
192
|
|
|
166
|
-
export interface DrivePermissionInfo
|
|
193
|
+
export interface DrivePermissionInfo {
|
|
167
194
|
allowedEquipments?: Equipment[];
|
|
168
195
|
allowedFleetCompanyTypes?: FleetCompanyType[];
|
|
169
196
|
allowedSpecificities?: Specificity[];
|
|
@@ -186,6 +213,12 @@ export interface EmailMessage {
|
|
|
186
213
|
tos?: any[];
|
|
187
214
|
}
|
|
188
215
|
|
|
216
|
+
export interface EmailModel extends MustacheModel {
|
|
217
|
+
attachments?: Attachment[];
|
|
218
|
+
subjectTemplate?: Template;
|
|
219
|
+
to?: any;
|
|
220
|
+
}
|
|
221
|
+
|
|
189
222
|
export interface EncryptValue {
|
|
190
223
|
value?: any;
|
|
191
224
|
}
|
|
@@ -197,6 +230,10 @@ export interface ExecuteStatement extends AdminJsonType {
|
|
|
197
230
|
statement?: any;
|
|
198
231
|
}
|
|
199
232
|
|
|
233
|
+
export interface FindAccount {
|
|
234
|
+
term?: any;
|
|
235
|
+
}
|
|
236
|
+
|
|
200
237
|
export interface FindAddresses {
|
|
201
238
|
term?: any;
|
|
202
239
|
}
|
|
@@ -218,11 +255,7 @@ export interface FindMyRides {
|
|
|
218
255
|
}
|
|
219
256
|
|
|
220
257
|
export interface FindMyUsers {
|
|
221
|
-
|
|
222
|
-
term?: any;
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
export interface FindOrganisations {
|
|
258
|
+
accountId?: string;
|
|
226
259
|
term?: any;
|
|
227
260
|
}
|
|
228
261
|
|
|
@@ -247,6 +280,10 @@ export interface GeoLocation {
|
|
|
247
280
|
longitude?: number;
|
|
248
281
|
}
|
|
249
282
|
|
|
283
|
+
export interface GetAccount {
|
|
284
|
+
accountId?: string;
|
|
285
|
+
}
|
|
286
|
+
|
|
250
287
|
export interface GetApplicationConfig {
|
|
251
288
|
}
|
|
252
289
|
|
|
@@ -256,16 +293,12 @@ export interface GetMessageAtIndex {
|
|
|
256
293
|
messageType?: any;
|
|
257
294
|
}
|
|
258
295
|
|
|
259
|
-
export interface
|
|
296
|
+
export interface GetMyAccounts {
|
|
260
297
|
}
|
|
261
298
|
|
|
262
299
|
export interface GetMyUserProfile {
|
|
263
300
|
}
|
|
264
301
|
|
|
265
|
-
export interface GetOrganisation {
|
|
266
|
-
organisationId?: string;
|
|
267
|
-
}
|
|
268
|
-
|
|
269
302
|
export interface GetRide {
|
|
270
303
|
rideId?: string;
|
|
271
304
|
}
|
|
@@ -283,24 +316,14 @@ export interface GetUserProfile {
|
|
|
283
316
|
userId?: string;
|
|
284
317
|
}
|
|
285
318
|
|
|
286
|
-
export interface GiveDrivePermission extends
|
|
319
|
+
export interface GiveDrivePermission extends AccountUpdate {
|
|
287
320
|
drivePermissionId?: any;
|
|
288
321
|
info?: DrivePermissionInfo;
|
|
289
322
|
}
|
|
290
323
|
|
|
291
|
-
export interface
|
|
292
|
-
info?:
|
|
293
|
-
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
export interface GiveServicePermission extends OrganisationUpdate {
|
|
297
|
-
info?: ServicePermissionInfo;
|
|
298
|
-
servicePermissionId?: any;
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
export interface GiveTeamRole extends UserUpdate {
|
|
302
|
-
info?: TeamRolePermissionInfo;
|
|
303
|
-
teamRolePermissionId?: any;
|
|
324
|
+
export interface GiveSubscription extends AccountUpdate {
|
|
325
|
+
info?: SubscriptionInfo;
|
|
326
|
+
subscriptionId?: any;
|
|
304
327
|
}
|
|
305
328
|
|
|
306
329
|
export interface ImpersonateUser {
|
|
@@ -326,8 +349,15 @@ export interface InsurerInfo {
|
|
|
326
349
|
name?: any;
|
|
327
350
|
}
|
|
328
351
|
|
|
329
|
-
export interface
|
|
330
|
-
|
|
352
|
+
export interface Invite {
|
|
353
|
+
accountId?: string;
|
|
354
|
+
invitedBy?: string;
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
export interface InviteUser extends UserCommand {
|
|
358
|
+
accountPermission?: AccountPermission;
|
|
359
|
+
autoAccept?: boolean;
|
|
360
|
+
email?: any;
|
|
331
361
|
}
|
|
332
362
|
|
|
333
363
|
export interface MustacheModel {
|
|
@@ -338,49 +368,6 @@ export interface OffsetTimeRange {
|
|
|
338
368
|
start?: Date;
|
|
339
369
|
}
|
|
340
370
|
|
|
341
|
-
export interface Organisation {
|
|
342
|
-
confirmedInfo?: OrganisationInfo;
|
|
343
|
-
drivePermissions?: DrivePermission[];
|
|
344
|
-
organisationId?: string;
|
|
345
|
-
servicePermissions?: ServicePermission[];
|
|
346
|
-
teams?: Team[];
|
|
347
|
-
unconfirmedInfo?: OrganisationInfo;
|
|
348
|
-
}
|
|
349
|
-
|
|
350
|
-
export interface OrganisationCommand {
|
|
351
|
-
organisationId?: string;
|
|
352
|
-
}
|
|
353
|
-
|
|
354
|
-
export interface OrganisationInfo {
|
|
355
|
-
chamberOfCommerceNumber?: any;
|
|
356
|
-
name?: any;
|
|
357
|
-
}
|
|
358
|
-
|
|
359
|
-
export interface OrganisationOrTeamId {
|
|
360
|
-
organisationId?: string;
|
|
361
|
-
teamId?: string;
|
|
362
|
-
}
|
|
363
|
-
|
|
364
|
-
export interface OrganisationRolePermission extends ConfirmablePermission {
|
|
365
|
-
confirmedInfo?: OrganisationRolePermissionInfo;
|
|
366
|
-
info?: OrganisationRolePermissionInfo;
|
|
367
|
-
organisationRolePermissionId?: any;
|
|
368
|
-
unconfirmedInfo?: OrganisationRolePermissionInfo;
|
|
369
|
-
}
|
|
370
|
-
|
|
371
|
-
export interface OrganisationRolePermissionInfo extends TimedPermission {
|
|
372
|
-
organisationId?: string;
|
|
373
|
-
role?: OrganisationRole;
|
|
374
|
-
}
|
|
375
|
-
|
|
376
|
-
export interface OrganisationRoleSummary {
|
|
377
|
-
organisationId?: string;
|
|
378
|
-
roles?: OrganisationRole[];
|
|
379
|
-
}
|
|
380
|
-
|
|
381
|
-
export interface OrganisationUpdate extends OrganisationCommand {
|
|
382
|
-
}
|
|
383
|
-
|
|
384
371
|
export interface Person {
|
|
385
372
|
address?: AddressInfo;
|
|
386
373
|
birthDay?: string;
|
|
@@ -416,47 +403,37 @@ export interface RegisterAuthenticationToken extends UserUpdate {
|
|
|
416
403
|
hashedToken?: any;
|
|
417
404
|
}
|
|
418
405
|
|
|
406
|
+
export interface RejectInviteUser extends UserUpdate {
|
|
407
|
+
accountId?: string;
|
|
408
|
+
}
|
|
409
|
+
|
|
419
410
|
export interface RemoveTeam extends TeamUpdate {
|
|
420
411
|
}
|
|
421
412
|
|
|
422
|
-
export interface RequestDrivePermission extends
|
|
413
|
+
export interface RequestDrivePermission extends AccountUpdate {
|
|
423
414
|
drivePermissionId?: any;
|
|
424
415
|
info?: DrivePermissionInfo;
|
|
425
416
|
}
|
|
426
417
|
|
|
427
|
-
export interface
|
|
428
|
-
info?:
|
|
429
|
-
|
|
430
|
-
}
|
|
431
|
-
|
|
432
|
-
export interface RequestServicePermission extends OrganisationUpdate {
|
|
433
|
-
info?: ServicePermissionInfo;
|
|
434
|
-
servicePermissionId?: any;
|
|
435
|
-
}
|
|
436
|
-
|
|
437
|
-
export interface RequestTeamRole extends UserUpdate {
|
|
438
|
-
info?: TeamRolePermissionInfo;
|
|
439
|
-
teamRolePermissionId?: any;
|
|
418
|
+
export interface RequestSubscription extends AccountUpdate {
|
|
419
|
+
info?: SubscriptionInfo;
|
|
420
|
+
subscriptionId?: any;
|
|
440
421
|
}
|
|
441
422
|
|
|
442
423
|
export interface RequestUserReset {
|
|
443
424
|
email?: any;
|
|
444
425
|
}
|
|
445
426
|
|
|
446
|
-
export interface
|
|
447
|
-
|
|
427
|
+
export interface RevokeAccountPermission extends UserUpdate {
|
|
428
|
+
accountId?: string;
|
|
448
429
|
}
|
|
449
430
|
|
|
450
|
-
export interface
|
|
451
|
-
|
|
452
|
-
}
|
|
453
|
-
|
|
454
|
-
export interface RevokeServicePermission extends OrganisationUpdate {
|
|
455
|
-
servicePermissionId?: any;
|
|
431
|
+
export interface RevokeDrivePermission extends AccountUpdate {
|
|
432
|
+
drivePermissionId?: any;
|
|
456
433
|
}
|
|
457
434
|
|
|
458
|
-
export interface
|
|
459
|
-
|
|
435
|
+
export interface RevokeSubscription extends AccountUpdate {
|
|
436
|
+
subscriptionId?: any;
|
|
460
437
|
}
|
|
461
438
|
|
|
462
439
|
export interface Ride {
|
|
@@ -465,10 +442,10 @@ export interface Ride {
|
|
|
465
442
|
confirmed?: boolean;
|
|
466
443
|
confirmedAppointment?: Appointment;
|
|
467
444
|
confirmedRoundTripAppointment?: Appointment;
|
|
468
|
-
driveOwner?:
|
|
445
|
+
driveOwner?: AccountOrTeamId;
|
|
469
446
|
info?: RideInfo;
|
|
470
447
|
rideId?: string;
|
|
471
|
-
rideOwner?:
|
|
448
|
+
rideOwner?: AccountOrTeamId;
|
|
472
449
|
}
|
|
473
450
|
|
|
474
451
|
export interface RideCommand {
|
|
@@ -516,19 +493,9 @@ export interface SendEmail {
|
|
|
516
493
|
message?: EmailMessage;
|
|
517
494
|
}
|
|
518
495
|
|
|
519
|
-
export interface
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
servicePermissionId?: any;
|
|
523
|
-
unconfirmedInfo?: ServicePermissionInfo;
|
|
524
|
-
}
|
|
525
|
-
|
|
526
|
-
export interface ServicePermissionInfo extends TimedPermission {
|
|
527
|
-
service?: Service;
|
|
528
|
-
}
|
|
529
|
-
|
|
530
|
-
export interface SetUserOwner extends UserUpdate {
|
|
531
|
-
owner?: string;
|
|
496
|
+
export interface SendInvitationEmail {
|
|
497
|
+
inviteFor?: string;
|
|
498
|
+
userId?: string;
|
|
532
499
|
}
|
|
533
500
|
|
|
534
501
|
export interface SetUserPassword {
|
|
@@ -547,6 +514,7 @@ export interface SignInUser {
|
|
|
547
514
|
}
|
|
548
515
|
|
|
549
516
|
export interface SignUpUser {
|
|
517
|
+
email?: any;
|
|
550
518
|
info?: UserInfo;
|
|
551
519
|
password?: any;
|
|
552
520
|
userId?: string;
|
|
@@ -561,31 +529,27 @@ export interface StartSchedule {
|
|
|
561
529
|
export interface StopImpersonatingUser {
|
|
562
530
|
}
|
|
563
531
|
|
|
564
|
-
export interface
|
|
565
|
-
|
|
566
|
-
|
|
532
|
+
export interface Subscription extends ConfirmablePermission {
|
|
533
|
+
confirmed?: boolean;
|
|
534
|
+
info?: SubscriptionInfo;
|
|
535
|
+
subscriptionId?: any;
|
|
567
536
|
}
|
|
568
537
|
|
|
569
|
-
export interface
|
|
570
|
-
|
|
571
|
-
info?: TeamRolePermissionInfo;
|
|
572
|
-
teamRolePermissionId?: any;
|
|
573
|
-
unconfirmedInfo?: TeamRolePermissionInfo;
|
|
538
|
+
export interface SubscriptionInfo extends TimedPermission {
|
|
539
|
+
service?: Service;
|
|
574
540
|
}
|
|
575
541
|
|
|
576
|
-
export interface
|
|
577
|
-
organisationId?: string;
|
|
578
|
-
role?: TeamRole;
|
|
542
|
+
export interface Team {
|
|
579
543
|
teamId?: string;
|
|
544
|
+
teamName?: any;
|
|
580
545
|
}
|
|
581
546
|
|
|
582
|
-
export interface
|
|
583
|
-
organisationId?: string;
|
|
547
|
+
export interface TeamPermission {
|
|
584
548
|
roles?: TeamRole[];
|
|
585
549
|
teamId?: string;
|
|
586
550
|
}
|
|
587
551
|
|
|
588
|
-
export interface TeamUpdate extends
|
|
552
|
+
export interface TeamUpdate extends AccountUpdate {
|
|
589
553
|
teamId?: string;
|
|
590
554
|
}
|
|
591
555
|
|
|
@@ -607,12 +571,18 @@ export interface ToggleAdminEndpoint extends AdminJsonType {
|
|
|
607
571
|
requestId?: number;
|
|
608
572
|
}
|
|
609
573
|
|
|
610
|
-
export interface
|
|
611
|
-
|
|
574
|
+
export interface UpdateAccountInfo extends AccountUpdate {
|
|
575
|
+
autoConfirm?: boolean;
|
|
576
|
+
info?: AccountInfo;
|
|
612
577
|
}
|
|
613
578
|
|
|
614
|
-
export interface
|
|
615
|
-
|
|
579
|
+
export interface UpdateAccountPermission extends UserUpdate {
|
|
580
|
+
accountId?: string;
|
|
581
|
+
accountPermission?: AccountPermission;
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
export interface UpdateApplicationConfig {
|
|
585
|
+
config?: ApplicationConfig;
|
|
616
586
|
}
|
|
617
587
|
|
|
618
588
|
export interface UpdateRideConfirmation extends FleetModifyCommand {
|
|
@@ -633,7 +603,7 @@ export interface UpsertAddress {
|
|
|
633
603
|
info?: AddressInfo;
|
|
634
604
|
}
|
|
635
605
|
|
|
636
|
-
export interface
|
|
606
|
+
export interface UpsertInsurer {
|
|
637
607
|
info?: InsurerInfo;
|
|
638
608
|
insurerId?: InsurerId;
|
|
639
609
|
}
|
|
@@ -642,15 +612,8 @@ export interface UserCommand {
|
|
|
642
612
|
userId?: string;
|
|
643
613
|
}
|
|
644
614
|
|
|
645
|
-
export interface UserEmailModel extends MustacheModel {
|
|
646
|
-
attachments?: Attachment[];
|
|
647
|
-
subjectTemplate?: Template;
|
|
648
|
-
user?: UserProfile;
|
|
649
|
-
}
|
|
650
|
-
|
|
651
615
|
export interface UserInfo {
|
|
652
616
|
address?: AddressInfo;
|
|
653
|
-
email?: any;
|
|
654
617
|
firstName?: any;
|
|
655
618
|
language?: any;
|
|
656
619
|
lastName?: any;
|
|
@@ -660,12 +623,11 @@ export interface UserInfo {
|
|
|
660
623
|
|
|
661
624
|
export interface UserProfile {
|
|
662
625
|
acceptedUserAgreements?: any[];
|
|
663
|
-
|
|
664
|
-
|
|
626
|
+
accountPermissions?: AccountPermission[];
|
|
627
|
+
email?: any;
|
|
628
|
+
emailConfirmed?: boolean;
|
|
665
629
|
info?: UserInfo;
|
|
666
|
-
|
|
667
|
-
owner?: string;
|
|
668
|
-
teamRolePermissions?: TeamRolePermission[];
|
|
630
|
+
pendingInvites?: Invite[];
|
|
669
631
|
userId?: string;
|
|
670
632
|
userRole?: UserRole;
|
|
671
633
|
}
|
|
@@ -678,6 +640,8 @@ export interface ZonedTimeRange {
|
|
|
678
640
|
start?: Date;
|
|
679
641
|
}
|
|
680
642
|
|
|
643
|
+
export type AccountRole = "admin" | "owner" | "rideplanner" | "driveplanner";
|
|
644
|
+
|
|
681
645
|
export type AdminJsonTypeUnion = ToggleAdminEndpoint | GetThreadDump | QueryDatabase | ExecuteStatement;
|
|
682
646
|
|
|
683
647
|
export type AuthenticationResult = "SUCCESS" | "NOT_CONFIRMED";
|
|
@@ -694,8 +658,6 @@ export type Equipment = "wheelchair" | "carry_chair" | "lying_down";
|
|
|
694
658
|
|
|
695
659
|
export type FleetCompanyType = "taxi" | "ktw";
|
|
696
660
|
|
|
697
|
-
export type OrganisationRole = "member" | "admin" | "owner" | "rideplanner" | "driveplanner";
|
|
698
|
-
|
|
699
661
|
export type OutputFormat = "PAYLOAD" | "MESSAGE" | "SERIALIZED_MESSAGE";
|
|
700
662
|
|
|
701
663
|
export type RightType = "role" | "jurisdiction";
|
|
@@ -706,7 +668,7 @@ export type Service = "rideplanning" | "driveplanning";
|
|
|
706
668
|
|
|
707
669
|
export type Specificity = "infection" | "overweight" | "oxygen" | "cognitive_impairment" | "attendant_present" | "suction_aspirator";
|
|
708
670
|
|
|
709
|
-
export type TeamRole = "
|
|
671
|
+
export type TeamRole = "driveplanner" | "rideplanner";
|
|
710
672
|
|
|
711
673
|
export type TransportType = "patient_transport" | "private_trip" | "material_transport";
|
|
712
674
|
|
package/package.json
CHANGED