@moxi.gmbh/moxi-typescriptmodels 0.1.1071-test-server → 0.1.1081-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.
- package/common.d.ts +82 -0
- package/package.json +1 -1
package/common.d.ts
CHANGED
|
@@ -308,6 +308,11 @@ export interface DateRange {
|
|
|
308
308
|
export interface DeleteUser extends UserEdit {
|
|
309
309
|
}
|
|
310
310
|
|
|
311
|
+
export interface DisconnectClient {
|
|
312
|
+
clientId?: string;
|
|
313
|
+
tokenId?: string;
|
|
314
|
+
}
|
|
315
|
+
|
|
311
316
|
export interface DispoliveSettings {
|
|
312
317
|
key?: string;
|
|
313
318
|
type: "dispolive";
|
|
@@ -730,6 +735,16 @@ export interface IsoState {
|
|
|
730
735
|
nutsCode?: string;
|
|
731
736
|
}
|
|
732
737
|
|
|
738
|
+
export interface Metric {
|
|
739
|
+
clientId?: string;
|
|
740
|
+
clientSegment?: number[];
|
|
741
|
+
maxSize?: number;
|
|
742
|
+
maxTimeout?: string;
|
|
743
|
+
tokenId?: string;
|
|
744
|
+
type?: string;
|
|
745
|
+
updates?: string[];
|
|
746
|
+
}
|
|
747
|
+
|
|
733
748
|
export interface NutsDistrict {
|
|
734
749
|
code?: string;
|
|
735
750
|
name?: string;
|
|
@@ -783,6 +798,42 @@ export interface PlanRide extends RideDriverModifyCommand {
|
|
|
783
798
|
plannedStartTime?: string;
|
|
784
799
|
}
|
|
785
800
|
|
|
801
|
+
export interface ReadUpdateResult<T> {
|
|
802
|
+
after?: T;
|
|
803
|
+
before?: T;
|
|
804
|
+
/**
|
|
805
|
+
* The id of the entity that the update is about
|
|
806
|
+
*/
|
|
807
|
+
entityId?: string;
|
|
808
|
+
/**
|
|
809
|
+
* The type/name of the event that caused this update
|
|
810
|
+
*/
|
|
811
|
+
eventType?: string;
|
|
812
|
+
/**
|
|
813
|
+
* Index of this update
|
|
814
|
+
*/
|
|
815
|
+
index?: number;
|
|
816
|
+
/**
|
|
817
|
+
* Time at which this update occurred
|
|
818
|
+
*/
|
|
819
|
+
timestamp?: string;
|
|
820
|
+
type: "rideseries" | "ride";
|
|
821
|
+
}
|
|
822
|
+
|
|
823
|
+
export interface ReadUpdates {
|
|
824
|
+
clientId?: string;
|
|
825
|
+
maxSize?: number;
|
|
826
|
+
maxTimeout?: number;
|
|
827
|
+
tokenId?: string;
|
|
828
|
+
updateTypes?: TrackingUpdateType[];
|
|
829
|
+
}
|
|
830
|
+
|
|
831
|
+
export interface ReadUpdatesResult {
|
|
832
|
+
clientSegment?: number[];
|
|
833
|
+
lastIndex?: number;
|
|
834
|
+
updates?: ReadUpdateResultUnion<any>[];
|
|
835
|
+
}
|
|
836
|
+
|
|
786
837
|
export interface Region {
|
|
787
838
|
nutsCode?: string;
|
|
788
839
|
}
|
|
@@ -843,6 +894,15 @@ export interface RequestUserReset {
|
|
|
843
894
|
email?: string;
|
|
844
895
|
}
|
|
845
896
|
|
|
897
|
+
/**
|
|
898
|
+
* Resets the lastIndex position of your token.
|
|
899
|
+
*/
|
|
900
|
+
export interface ResetPosition {
|
|
901
|
+
index?: number;
|
|
902
|
+
timestamp?: string;
|
|
903
|
+
tokenId?: string;
|
|
904
|
+
}
|
|
905
|
+
|
|
846
906
|
export interface ReturnRide extends RideDriverModifyCommand {
|
|
847
907
|
}
|
|
848
908
|
|
|
@@ -1108,6 +1168,12 @@ export interface RideSeriesPostConfirmCommand {
|
|
|
1108
1168
|
export interface RideSeriesPreConfirmCommand extends RideSeriesCommand {
|
|
1109
1169
|
}
|
|
1110
1170
|
|
|
1171
|
+
export interface RideSeriesUpdate extends ReadUpdateResultUnion<RideSeries> {
|
|
1172
|
+
after?: RideSeries;
|
|
1173
|
+
before?: RideSeries;
|
|
1174
|
+
type: "rideseries";
|
|
1175
|
+
}
|
|
1176
|
+
|
|
1111
1177
|
export interface RideStatisticsQuery {
|
|
1112
1178
|
dateRange?: DateRange;
|
|
1113
1179
|
timezoneOrDefault?: string;
|
|
@@ -1120,6 +1186,12 @@ export interface RideSystemCommand extends RideCommand {
|
|
|
1120
1186
|
export interface RideUpcaster {
|
|
1121
1187
|
}
|
|
1122
1188
|
|
|
1189
|
+
export interface RideUpdate extends ReadUpdateResultUnion<Ride> {
|
|
1190
|
+
after?: Ride;
|
|
1191
|
+
before?: Ride;
|
|
1192
|
+
type: "ride";
|
|
1193
|
+
}
|
|
1194
|
+
|
|
1123
1195
|
export interface Role<T> {
|
|
1124
1196
|
}
|
|
1125
1197
|
|
|
@@ -1271,6 +1343,12 @@ export interface UpdateAccountPermission extends AccountPermissionCommand {
|
|
|
1271
1343
|
accountPermission?: AccountPermission;
|
|
1272
1344
|
}
|
|
1273
1345
|
|
|
1346
|
+
export interface UpdatePosition {
|
|
1347
|
+
clientSegment?: number[];
|
|
1348
|
+
lastIndex?: number;
|
|
1349
|
+
tokenId?: string;
|
|
1350
|
+
}
|
|
1351
|
+
|
|
1274
1352
|
export interface UpdateRide extends RideBookerCommand {
|
|
1275
1353
|
booker?: AccountOrTeamRef;
|
|
1276
1354
|
info?: RideInfo;
|
|
@@ -1361,6 +1439,8 @@ export type Mobility = "wheelchair" | "big_or_electric_wheelchair" | "carry_chai
|
|
|
1361
1439
|
|
|
1362
1440
|
export type OrganisationType = "medical" | "fleet";
|
|
1363
1441
|
|
|
1442
|
+
export type ReadUpdateResultUnion<T> = RideUpdate | RideSeriesUpdate;
|
|
1443
|
+
|
|
1364
1444
|
export type RidePurpose = "admission" | "relocation" | "discharge" | "consultation";
|
|
1365
1445
|
|
|
1366
1446
|
export type RideSeriesStatus = "booked" | "accepted" | "confirmed" | "cancelled";
|
|
@@ -1375,6 +1455,8 @@ export type SyncStatus = "not_synced" | "synced" | "update_not_synced";
|
|
|
1375
1455
|
|
|
1376
1456
|
export type TeamRole = "dispatcher" | "ridebooker";
|
|
1377
1457
|
|
|
1458
|
+
export type TrackingUpdateType = "ride" | "rideseries";
|
|
1459
|
+
|
|
1378
1460
|
export type UserRole = "superadmin";
|
|
1379
1461
|
|
|
1380
1462
|
export type VehicleType = "taxi" | "ambulance";
|
package/package.json
CHANGED