@moxi.gmbh/moxi-typescriptmodels 0.1.171-test-server → 0.1.191-test-server

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.
Files changed (2) hide show
  1. package/common.d.ts +51 -3
  2. package/package.json +1 -1
package/common.d.ts CHANGED
@@ -17,6 +17,7 @@ export interface Account {
17
17
  criticalInfo?: CriticalAccountInfo;
18
18
  drivePermissions?: DrivePermission[];
19
19
  info?: AccountInfo;
20
+ integrationSettings?: IntegrationSettingsUnion<any>[];
20
21
  subscriptions?: Subscription[];
21
22
  teams?: Team[];
22
23
  unconfirmedCriticalInfo?: CriticalAccountInfo;
@@ -172,6 +173,15 @@ export interface CancelRide extends RidePlannerCommand {
172
173
  reason?: string;
173
174
  }
174
175
 
176
+ export interface CeliosSettings extends IntegrationSettingsUnion<CeliosSettings> {
177
+ certificate?: string;
178
+ host?: string;
179
+ password?: string;
180
+ port?: string;
181
+ type: "celios";
182
+ user?: string;
183
+ }
184
+
175
185
  export interface ChangeUserPassword {
176
186
  newPassword?: string;
177
187
  oldPassword?: string;
@@ -214,7 +224,7 @@ export interface CreateAccount extends AccountCommand {
214
224
  criticalInfo?: CriticalAccountInfo;
215
225
  info?: AccountInfo;
216
226
  owner?: string;
217
- requestService?: Service;
227
+ requestService?: StandaloneService;
218
228
  }
219
229
 
220
230
  export interface CreateRideCommand extends RidePlannerCommand {
@@ -250,6 +260,12 @@ export interface DateRange extends Comparable<DateRange> {
250
260
  export interface DeleteUser extends UserEdit {
251
261
  }
252
262
 
263
+ export interface DispoliveSettings extends IntegrationSettingsUnion<DispoliveSettings> {
264
+ key?: string;
265
+ type: "dispolive";
266
+ url?: string;
267
+ }
268
+
253
269
  export interface District {
254
270
  info?: DistrictInfo;
255
271
  polygons?: any[];
@@ -278,6 +294,7 @@ export interface DrivePermission {
278
294
 
279
295
  export interface DrivePermissionInfo {
280
296
  filter?: RideTypeSpecificFilterUnion;
297
+ monopoly?: boolean;
281
298
  regions?: Region[];
282
299
  }
283
300
 
@@ -479,6 +496,9 @@ export interface GetMessageAtIndex {
479
496
  messageType?: any;
480
497
  }
481
498
 
499
+ export interface GetMonopolyAccounts {
500
+ }
501
+
482
502
  export interface GetMyAccounts {
483
503
  }
484
504
 
@@ -577,6 +597,10 @@ export interface Insurer {
577
597
  name?: string;
578
598
  }
579
599
 
600
+ export interface IntegrationSettings<T> {
601
+ type: "celios" | "dispolive";
602
+ }
603
+
580
604
  export interface Invite {
581
605
  accountId?: string;
582
606
  invitedBy?: string;
@@ -679,9 +703,18 @@ export interface RegisterDriveStatus extends FleetModifyCommand {
679
703
  export interface RegisterDriverSynced extends FleetModifyCommand {
680
704
  }
681
705
 
706
+ export interface RegisterEinsatz {
707
+ einsatzNumber?: string;
708
+ rideId?: string;
709
+ }
710
+
682
711
  export interface RemoveAccount extends AccountUpdate {
683
712
  }
684
713
 
714
+ export interface RemoveSettings extends AccountUpdate {
715
+ type?: IntegrationType;
716
+ }
717
+
685
718
  export interface RemoveTeam extends TeamUpdate {
686
719
  }
687
720
 
@@ -694,9 +727,14 @@ export interface ReportIssue {
694
727
  issue?: string;
695
728
  }
696
729
 
730
+ export interface Request {
731
+ filter?: RideTypeSpecificFilterUnion;
732
+ regions?: Region[];
733
+ }
734
+
697
735
  export interface RequestDrivePermission extends AccountUpdate {
698
736
  drivePermissionId?: string;
699
- info?: DrivePermissionInfo;
737
+ info?: Request;
700
738
  }
701
739
 
702
740
  export interface RequestSubscription extends AccountUpdate {
@@ -914,6 +952,10 @@ export interface SendSlack {
914
952
  message?: string;
915
953
  }
916
954
 
955
+ export interface SetSettings extends AccountUpdate {
956
+ settings?: IntegrationSettingsUnion<any>;
957
+ }
958
+
917
959
  export interface SetUserPassword {
918
960
  confirmationCode?: string;
919
961
  password?: string;
@@ -1115,6 +1157,10 @@ export type GeometryUnion = GeoPolygon | GeoMultiPolygon;
1115
1157
 
1116
1158
  export type InsuranceType = "public_insurance" | "private_insurance" | "german_accident_insurance" | "no_or_unknown_insurance";
1117
1159
 
1160
+ export type IntegrationSettingsUnion<T> = DispoliveSettings | CeliosSettings;
1161
+
1162
+ export type IntegrationType = "dispolive" | "celios";
1163
+
1118
1164
  export type Mobility = "wheelchair" | "big_or_electric_wheelchair" | "carry_chair" | "lying_down";
1119
1165
 
1120
1166
  export type OutputFormat = "PAYLOAD" | "MESSAGE" | "SERIALIZED_MESSAGE";
@@ -1123,10 +1169,12 @@ export type RideType = "taxi" | "ambulance";
1123
1169
 
1124
1170
  export type RideTypeSpecificFilterUnion = AmbulanceFilter | TaxiFilter;
1125
1171
 
1126
- export type Service = "rideplanning" | "driveplanning";
1172
+ export type Service = "rideplanning" | "driveplanning" | "celios_integration" | "dispolive_integration";
1127
1173
 
1128
1174
  export type SlackChannel = "admin_monitoring" | "admin_respond_immediately" | "admin_respond_within_hour" | "admin_reported_issues";
1129
1175
 
1176
+ export type StandaloneService = "rideplanning" | "driveplanning";
1177
+
1130
1178
  export type SyncStatus = "not_synced" | "synced" | "update_not_synced";
1131
1179
 
1132
1180
  export type TeamRole = "driveplanner" | "rideplanner";
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@moxi.gmbh/moxi-typescriptmodels",
3
- "version": "0.1.171-test-server",
3
+ "version": "0.1.191-test-server",
4
4
  "types": "common.d.ts"
5
5
  }