@moxi.gmbh/moxi-typescriptmodels 0.1.561 → 0.1.571
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 +57 -8
- package/package.json +1 -1
package/common.d.ts
CHANGED
|
@@ -26,6 +26,12 @@ export interface Account {
|
|
|
26
26
|
drivePermissions?: DrivePermission[];
|
|
27
27
|
info?: AccountInfo;
|
|
28
28
|
integrationSettings?: any[];
|
|
29
|
+
operateAccounts?: string[];
|
|
30
|
+
operator?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Derived from subscriptions. Includes organisation types that have not been confirmed yet by a superadmin or are active in past or future.
|
|
33
|
+
*/
|
|
34
|
+
organisationTypes?: OrganisationType[];
|
|
29
35
|
subscriptions?: Subscription[];
|
|
30
36
|
teams?: Team[];
|
|
31
37
|
unconfirmedCriticalInfo?: CriticalAccountInfo;
|
|
@@ -158,7 +164,7 @@ export interface Appointment {
|
|
|
158
164
|
time?: string;
|
|
159
165
|
}
|
|
160
166
|
|
|
161
|
-
export interface AssignDriver extends
|
|
167
|
+
export interface AssignDriver extends RideOperatorCommand {
|
|
162
168
|
driver?: AccountOrTeamRef;
|
|
163
169
|
}
|
|
164
170
|
|
|
@@ -593,10 +599,16 @@ export interface GetAccount {
|
|
|
593
599
|
accountId?: string;
|
|
594
600
|
}
|
|
595
601
|
|
|
596
|
-
|
|
602
|
+
/**
|
|
603
|
+
* @deprecated
|
|
604
|
+
*/
|
|
605
|
+
export interface GetAccountsOfPotentialDrivers extends IGetPotentialDrivers {
|
|
597
606
|
}
|
|
598
607
|
|
|
599
|
-
|
|
608
|
+
/**
|
|
609
|
+
* @deprecated
|
|
610
|
+
*/
|
|
611
|
+
export interface GetAccountsOfPotentialDriversAsAdmin extends IGetPotentialDrivers {
|
|
600
612
|
}
|
|
601
613
|
|
|
602
614
|
export interface GetAllRideSeriesForDriver {
|
|
@@ -668,7 +680,25 @@ export interface GetMyUserProfile {
|
|
|
668
680
|
export interface GetNutsStates {
|
|
669
681
|
}
|
|
670
682
|
|
|
671
|
-
|
|
683
|
+
/**
|
|
684
|
+
* Common information shared across all rides in a series. Similar to RideInfo but without appointment-specific details that vary per ride.
|
|
685
|
+
|
|
686
|
+
*/
|
|
687
|
+
export interface GetPotentialDriverIds extends GetPotentialDriversAbstract {
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
/**
|
|
691
|
+
* Common information shared across all rides in a series. Similar to RideInfo but without appointment-specific details that vary per ride.
|
|
692
|
+
|
|
693
|
+
*/
|
|
694
|
+
export interface GetPotentialDrivers extends GetPotentialDriversAbstract {
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
/**
|
|
698
|
+
* Common information shared across all rides in a series. Similar to RideInfo but without appointment-specific details that vary per ride.
|
|
699
|
+
|
|
700
|
+
*/
|
|
701
|
+
export interface GetPotentialDriversAbstract {
|
|
672
702
|
fromDistrict?: string;
|
|
673
703
|
mobility?: Mobility;
|
|
674
704
|
toDistrict?: string;
|
|
@@ -757,6 +787,14 @@ export interface GiveTeamPermission extends AccountPermissionCommand {
|
|
|
757
787
|
teamPermission?: TeamPermission;
|
|
758
788
|
}
|
|
759
789
|
|
|
790
|
+
export interface IGetPotentialDrivers {
|
|
791
|
+
fromDistrict?: string;
|
|
792
|
+
mobility?: Mobility;
|
|
793
|
+
toDistrict?: string;
|
|
794
|
+
vehicleType?: VehicleType;
|
|
795
|
+
weightInKg?: number;
|
|
796
|
+
}
|
|
797
|
+
|
|
760
798
|
export interface ImpersonateUser {
|
|
761
799
|
userId?: string;
|
|
762
800
|
}
|
|
@@ -1176,6 +1214,9 @@ export interface RideOfferInfo {
|
|
|
1176
1214
|
appointment?: Appointment;
|
|
1177
1215
|
}
|
|
1178
1216
|
|
|
1217
|
+
export interface RideOperatorCommand extends RideCommand {
|
|
1218
|
+
}
|
|
1219
|
+
|
|
1179
1220
|
export interface RideSeries {
|
|
1180
1221
|
accepted?: boolean;
|
|
1181
1222
|
booked?: boolean;
|
|
@@ -1280,6 +1321,14 @@ export interface SeriesInfo {
|
|
|
1280
1321
|
rideSeriesId?: string;
|
|
1281
1322
|
}
|
|
1282
1323
|
|
|
1324
|
+
export interface SetOperateAccounts extends AccountUpdate {
|
|
1325
|
+
operateAccounts?: string[];
|
|
1326
|
+
}
|
|
1327
|
+
|
|
1328
|
+
export interface SetOperator extends AccountUpdate {
|
|
1329
|
+
operator?: string;
|
|
1330
|
+
}
|
|
1331
|
+
|
|
1283
1332
|
export interface SetSettings extends AccountUpdate {
|
|
1284
1333
|
settings?: any;
|
|
1285
1334
|
}
|
|
@@ -1476,7 +1525,7 @@ export interface ZonedTimeRange {
|
|
|
1476
1525
|
start?: Date;
|
|
1477
1526
|
}
|
|
1478
1527
|
|
|
1479
|
-
export type AccountRole = "ridebooker" | "dispatcher" | "admin" | "owner";
|
|
1528
|
+
export type AccountRole = "ridebooker" | "dispatcher" | "operator" | "admin" | "owner";
|
|
1480
1529
|
|
|
1481
1530
|
export type AuthenticationResult = "SUCCESS" | "NOT_CONFIRMED";
|
|
1482
1531
|
|
|
@@ -1494,17 +1543,17 @@ export type IntegrationType = "dispolive" | "celios";
|
|
|
1494
1543
|
|
|
1495
1544
|
export type Mobility = "wheelchair" | "big_or_electric_wheelchair" | "carry_chair" | "stretcher";
|
|
1496
1545
|
|
|
1497
|
-
export type OrganisationType = "medical" | "fleet";
|
|
1546
|
+
export type OrganisationType = "medical" | "fleet" | "operator";
|
|
1498
1547
|
|
|
1499
1548
|
export type RidePurpose = "admission" | "relocation" | "discharge" | "consultation";
|
|
1500
1549
|
|
|
1501
1550
|
export type RideSeriesStatus = "booked" | "accepted" | "confirmed" | "cancelled";
|
|
1502
1551
|
|
|
1503
|
-
export type Service = "pro_medical" | "pro_fleet" | "celios_integration" | "dispolive_integration";
|
|
1552
|
+
export type Service = "pro_medical" | "pro_fleet" | "pro_operator" | "celios_integration" | "dispolive_integration";
|
|
1504
1553
|
|
|
1505
1554
|
export type SlackChannel = "admin_monitoring" | "admin_respond_immediately" | "admin_respond_within_hour" | "admin_reported_issues";
|
|
1506
1555
|
|
|
1507
|
-
export type StandaloneService = "pro_medical" | "pro_fleet";
|
|
1556
|
+
export type StandaloneService = "pro_medical" | "pro_fleet" | "pro_operator";
|
|
1508
1557
|
|
|
1509
1558
|
export type SyncStatus = "not_synced" | "synced" | "update_not_synced";
|
|
1510
1559
|
|
package/package.json
CHANGED