@moxi.gmbh/moxi-typescriptmodels 0.0.41 → 0.0.61
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 +118 -158
- 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
|
+
confirmedInfo?: AccountInfo;
|
|
19
|
+
drivePermissions?: DrivePermission[];
|
|
20
|
+
subscriptions?: Subscription[];
|
|
21
|
+
teams?: Team[];
|
|
22
|
+
unconfirmedInfo?: AccountInfo;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface AccountCommand {
|
|
26
|
+
accountId?: string;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export interface AccountInfo {
|
|
30
|
+
chamberOfCommerceNumber?: 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,24 @@ export interface ConfirmablePermission {
|
|
|
122
147
|
revoked?: boolean;
|
|
123
148
|
}
|
|
124
149
|
|
|
125
|
-
export interface
|
|
126
|
-
info?:
|
|
150
|
+
export interface CreateAccount extends AccountCommand {
|
|
151
|
+
info?: AccountInfo;
|
|
127
152
|
owner?: string;
|
|
128
153
|
requestService?: Service;
|
|
129
154
|
}
|
|
130
155
|
|
|
131
156
|
export interface CreateRideCommand extends RidePlannerCommand {
|
|
132
|
-
owner?:
|
|
157
|
+
owner?: AccountOrTeamId;
|
|
133
158
|
}
|
|
134
159
|
|
|
135
|
-
export interface CreateTeam extends
|
|
160
|
+
export interface CreateTeam extends AccountCommand {
|
|
136
161
|
teamId?: string;
|
|
137
162
|
teamName?: any;
|
|
138
163
|
}
|
|
139
164
|
|
|
140
165
|
export interface CreateUser extends UserCommand {
|
|
166
|
+
email?: any;
|
|
141
167
|
info?: UserInfo;
|
|
142
|
-
owner?: string;
|
|
143
168
|
}
|
|
144
169
|
|
|
145
170
|
export interface DateRange {
|
|
@@ -186,6 +211,12 @@ export interface EmailMessage {
|
|
|
186
211
|
tos?: any[];
|
|
187
212
|
}
|
|
188
213
|
|
|
214
|
+
export interface EmailModel extends MustacheModel {
|
|
215
|
+
attachments?: Attachment[];
|
|
216
|
+
subjectTemplate?: Template;
|
|
217
|
+
to?: any;
|
|
218
|
+
}
|
|
219
|
+
|
|
189
220
|
export interface EncryptValue {
|
|
190
221
|
value?: any;
|
|
191
222
|
}
|
|
@@ -197,6 +228,10 @@ export interface ExecuteStatement extends AdminJsonType {
|
|
|
197
228
|
statement?: any;
|
|
198
229
|
}
|
|
199
230
|
|
|
231
|
+
export interface FindAccount {
|
|
232
|
+
term?: any;
|
|
233
|
+
}
|
|
234
|
+
|
|
200
235
|
export interface FindAddresses {
|
|
201
236
|
term?: any;
|
|
202
237
|
}
|
|
@@ -218,11 +253,7 @@ export interface FindMyRides {
|
|
|
218
253
|
}
|
|
219
254
|
|
|
220
255
|
export interface FindMyUsers {
|
|
221
|
-
|
|
222
|
-
term?: any;
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
export interface FindOrganisations {
|
|
256
|
+
accountId?: string;
|
|
226
257
|
term?: any;
|
|
227
258
|
}
|
|
228
259
|
|
|
@@ -247,6 +278,10 @@ export interface GeoLocation {
|
|
|
247
278
|
longitude?: number;
|
|
248
279
|
}
|
|
249
280
|
|
|
281
|
+
export interface GetAccount {
|
|
282
|
+
accountId?: string;
|
|
283
|
+
}
|
|
284
|
+
|
|
250
285
|
export interface GetApplicationConfig {
|
|
251
286
|
}
|
|
252
287
|
|
|
@@ -256,16 +291,12 @@ export interface GetMessageAtIndex {
|
|
|
256
291
|
messageType?: any;
|
|
257
292
|
}
|
|
258
293
|
|
|
259
|
-
export interface
|
|
294
|
+
export interface GetMyAccounts {
|
|
260
295
|
}
|
|
261
296
|
|
|
262
297
|
export interface GetMyUserProfile {
|
|
263
298
|
}
|
|
264
299
|
|
|
265
|
-
export interface GetOrganisation {
|
|
266
|
-
organisationId?: string;
|
|
267
|
-
}
|
|
268
|
-
|
|
269
300
|
export interface GetRide {
|
|
270
301
|
rideId?: string;
|
|
271
302
|
}
|
|
@@ -283,24 +314,14 @@ export interface GetUserProfile {
|
|
|
283
314
|
userId?: string;
|
|
284
315
|
}
|
|
285
316
|
|
|
286
|
-
export interface GiveDrivePermission extends
|
|
317
|
+
export interface GiveDrivePermission extends AccountUpdate {
|
|
287
318
|
drivePermissionId?: any;
|
|
288
319
|
info?: DrivePermissionInfo;
|
|
289
320
|
}
|
|
290
321
|
|
|
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;
|
|
322
|
+
export interface GiveSubscription extends AccountUpdate {
|
|
323
|
+
info?: SubscriptionInfo;
|
|
324
|
+
subscriptionId?: any;
|
|
304
325
|
}
|
|
305
326
|
|
|
306
327
|
export interface ImpersonateUser {
|
|
@@ -326,8 +347,15 @@ export interface InsurerInfo {
|
|
|
326
347
|
name?: any;
|
|
327
348
|
}
|
|
328
349
|
|
|
329
|
-
export interface
|
|
330
|
-
|
|
350
|
+
export interface Invite {
|
|
351
|
+
accountId?: string;
|
|
352
|
+
invitedBy?: string;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
export interface InviteUser extends UserCommand {
|
|
356
|
+
accountPermission?: AccountPermission;
|
|
357
|
+
autoAccept?: boolean;
|
|
358
|
+
email?: any;
|
|
331
359
|
}
|
|
332
360
|
|
|
333
361
|
export interface MustacheModel {
|
|
@@ -338,49 +366,6 @@ export interface OffsetTimeRange {
|
|
|
338
366
|
start?: Date;
|
|
339
367
|
}
|
|
340
368
|
|
|
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
369
|
export interface Person {
|
|
385
370
|
address?: AddressInfo;
|
|
386
371
|
birthDay?: string;
|
|
@@ -416,47 +401,37 @@ export interface RegisterAuthenticationToken extends UserUpdate {
|
|
|
416
401
|
hashedToken?: any;
|
|
417
402
|
}
|
|
418
403
|
|
|
404
|
+
export interface RejectInviteUser extends UserUpdate {
|
|
405
|
+
accountId?: string;
|
|
406
|
+
}
|
|
407
|
+
|
|
419
408
|
export interface RemoveTeam extends TeamUpdate {
|
|
420
409
|
}
|
|
421
410
|
|
|
422
|
-
export interface RequestDrivePermission extends
|
|
411
|
+
export interface RequestDrivePermission extends AccountUpdate {
|
|
423
412
|
drivePermissionId?: any;
|
|
424
413
|
info?: DrivePermissionInfo;
|
|
425
414
|
}
|
|
426
415
|
|
|
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;
|
|
416
|
+
export interface RequestSubscription extends AccountUpdate {
|
|
417
|
+
info?: SubscriptionInfo;
|
|
418
|
+
subscriptionId?: any;
|
|
440
419
|
}
|
|
441
420
|
|
|
442
421
|
export interface RequestUserReset {
|
|
443
422
|
email?: any;
|
|
444
423
|
}
|
|
445
424
|
|
|
446
|
-
export interface
|
|
447
|
-
|
|
425
|
+
export interface RevokeAccountPermission extends UserUpdate {
|
|
426
|
+
accountId?: string;
|
|
448
427
|
}
|
|
449
428
|
|
|
450
|
-
export interface
|
|
451
|
-
|
|
452
|
-
}
|
|
453
|
-
|
|
454
|
-
export interface RevokeServicePermission extends OrganisationUpdate {
|
|
455
|
-
servicePermissionId?: any;
|
|
429
|
+
export interface RevokeDrivePermission extends AccountUpdate {
|
|
430
|
+
drivePermissionId?: any;
|
|
456
431
|
}
|
|
457
432
|
|
|
458
|
-
export interface
|
|
459
|
-
|
|
433
|
+
export interface RevokeSubscription extends AccountUpdate {
|
|
434
|
+
subscriptionId?: any;
|
|
460
435
|
}
|
|
461
436
|
|
|
462
437
|
export interface Ride {
|
|
@@ -465,10 +440,10 @@ export interface Ride {
|
|
|
465
440
|
confirmed?: boolean;
|
|
466
441
|
confirmedAppointment?: Appointment;
|
|
467
442
|
confirmedRoundTripAppointment?: Appointment;
|
|
468
|
-
driveOwner?:
|
|
443
|
+
driveOwner?: AccountOrTeamId;
|
|
469
444
|
info?: RideInfo;
|
|
470
445
|
rideId?: string;
|
|
471
|
-
rideOwner?:
|
|
446
|
+
rideOwner?: AccountOrTeamId;
|
|
472
447
|
}
|
|
473
448
|
|
|
474
449
|
export interface RideCommand {
|
|
@@ -516,19 +491,9 @@ export interface SendEmail {
|
|
|
516
491
|
message?: EmailMessage;
|
|
517
492
|
}
|
|
518
493
|
|
|
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;
|
|
494
|
+
export interface SendInvitationEmail {
|
|
495
|
+
inviteFor?: string;
|
|
496
|
+
userId?: string;
|
|
532
497
|
}
|
|
533
498
|
|
|
534
499
|
export interface SetUserPassword {
|
|
@@ -547,6 +512,7 @@ export interface SignInUser {
|
|
|
547
512
|
}
|
|
548
513
|
|
|
549
514
|
export interface SignUpUser {
|
|
515
|
+
email?: any;
|
|
550
516
|
info?: UserInfo;
|
|
551
517
|
password?: any;
|
|
552
518
|
userId?: string;
|
|
@@ -561,31 +527,28 @@ export interface StartSchedule {
|
|
|
561
527
|
export interface StopImpersonatingUser {
|
|
562
528
|
}
|
|
563
529
|
|
|
564
|
-
export interface
|
|
565
|
-
|
|
566
|
-
|
|
530
|
+
export interface Subscription extends ConfirmablePermission {
|
|
531
|
+
confirmedInfo?: SubscriptionInfo;
|
|
532
|
+
info?: SubscriptionInfo;
|
|
533
|
+
subscriptionId?: any;
|
|
534
|
+
unconfirmedInfo?: SubscriptionInfo;
|
|
567
535
|
}
|
|
568
536
|
|
|
569
|
-
export interface
|
|
570
|
-
|
|
571
|
-
info?: TeamRolePermissionInfo;
|
|
572
|
-
teamRolePermissionId?: any;
|
|
573
|
-
unconfirmedInfo?: TeamRolePermissionInfo;
|
|
537
|
+
export interface SubscriptionInfo extends TimedPermission {
|
|
538
|
+
service?: Service;
|
|
574
539
|
}
|
|
575
540
|
|
|
576
|
-
export interface
|
|
577
|
-
organisationId?: string;
|
|
578
|
-
role?: TeamRole;
|
|
541
|
+
export interface Team {
|
|
579
542
|
teamId?: string;
|
|
543
|
+
teamName?: any;
|
|
580
544
|
}
|
|
581
545
|
|
|
582
|
-
export interface
|
|
583
|
-
organisationId?: string;
|
|
546
|
+
export interface TeamPermission {
|
|
584
547
|
roles?: TeamRole[];
|
|
585
548
|
teamId?: string;
|
|
586
549
|
}
|
|
587
550
|
|
|
588
|
-
export interface TeamUpdate extends
|
|
551
|
+
export interface TeamUpdate extends AccountUpdate {
|
|
589
552
|
teamId?: string;
|
|
590
553
|
}
|
|
591
554
|
|
|
@@ -607,12 +570,17 @@ export interface ToggleAdminEndpoint extends AdminJsonType {
|
|
|
607
570
|
requestId?: number;
|
|
608
571
|
}
|
|
609
572
|
|
|
610
|
-
export interface
|
|
611
|
-
|
|
573
|
+
export interface UpdateAccountInfo extends AccountUpdate {
|
|
574
|
+
info?: AccountInfo;
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
export interface UpdateAccountPermission extends UserUpdate {
|
|
578
|
+
accountId?: string;
|
|
579
|
+
accountPermission?: AccountPermission;
|
|
612
580
|
}
|
|
613
581
|
|
|
614
|
-
export interface
|
|
615
|
-
|
|
582
|
+
export interface UpdateApplicationConfig {
|
|
583
|
+
config?: ApplicationConfig;
|
|
616
584
|
}
|
|
617
585
|
|
|
618
586
|
export interface UpdateRideConfirmation extends FleetModifyCommand {
|
|
@@ -642,15 +610,8 @@ export interface UserCommand {
|
|
|
642
610
|
userId?: string;
|
|
643
611
|
}
|
|
644
612
|
|
|
645
|
-
export interface UserEmailModel extends MustacheModel {
|
|
646
|
-
attachments?: Attachment[];
|
|
647
|
-
subjectTemplate?: Template;
|
|
648
|
-
user?: UserProfile;
|
|
649
|
-
}
|
|
650
|
-
|
|
651
613
|
export interface UserInfo {
|
|
652
614
|
address?: AddressInfo;
|
|
653
|
-
email?: any;
|
|
654
615
|
firstName?: any;
|
|
655
616
|
language?: any;
|
|
656
617
|
lastName?: any;
|
|
@@ -660,12 +621,11 @@ export interface UserInfo {
|
|
|
660
621
|
|
|
661
622
|
export interface UserProfile {
|
|
662
623
|
acceptedUserAgreements?: any[];
|
|
663
|
-
|
|
664
|
-
|
|
624
|
+
accountPermissions?: AccountPermission[];
|
|
625
|
+
email?: any;
|
|
626
|
+
emailConfirmed?: boolean;
|
|
665
627
|
info?: UserInfo;
|
|
666
|
-
|
|
667
|
-
owner?: string;
|
|
668
|
-
teamRolePermissions?: TeamRolePermission[];
|
|
628
|
+
pendingInvites?: Invite[];
|
|
669
629
|
userId?: string;
|
|
670
630
|
userRole?: UserRole;
|
|
671
631
|
}
|
|
@@ -678,6 +638,8 @@ export interface ZonedTimeRange {
|
|
|
678
638
|
start?: Date;
|
|
679
639
|
}
|
|
680
640
|
|
|
641
|
+
export type AccountRole = "admin" | "owner" | "rideplanner" | "driveplanner";
|
|
642
|
+
|
|
681
643
|
export type AdminJsonTypeUnion = ToggleAdminEndpoint | GetThreadDump | QueryDatabase | ExecuteStatement;
|
|
682
644
|
|
|
683
645
|
export type AuthenticationResult = "SUCCESS" | "NOT_CONFIRMED";
|
|
@@ -694,8 +656,6 @@ export type Equipment = "wheelchair" | "carry_chair" | "lying_down";
|
|
|
694
656
|
|
|
695
657
|
export type FleetCompanyType = "taxi" | "ktw";
|
|
696
658
|
|
|
697
|
-
export type OrganisationRole = "member" | "admin" | "owner" | "rideplanner" | "driveplanner";
|
|
698
|
-
|
|
699
659
|
export type OutputFormat = "PAYLOAD" | "MESSAGE" | "SERIALIZED_MESSAGE";
|
|
700
660
|
|
|
701
661
|
export type RightType = "role" | "jurisdiction";
|
|
@@ -706,7 +666,7 @@ export type Service = "rideplanning" | "driveplanning";
|
|
|
706
666
|
|
|
707
667
|
export type Specificity = "infection" | "overweight" | "oxygen" | "cognitive_impairment" | "attendant_present" | "suction_aspirator";
|
|
708
668
|
|
|
709
|
-
export type TeamRole = "
|
|
669
|
+
export type TeamRole = "driveplanner" | "rideplanner";
|
|
710
670
|
|
|
711
671
|
export type TransportType = "patient_transport" | "private_trip" | "material_transport";
|
|
712
672
|
|
package/package.json
CHANGED