@moxi.gmbh/moxi-typescriptmodels 0.1.1071-test-server → 0.1.1091-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 +66 -0
  2. 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,20 @@ export interface PlanRide extends RideDriverModifyCommand {
783
798
  plannedStartTime?: string;
784
799
  }
785
800
 
801
+ export interface ReadUpdates {
802
+ clientId?: string;
803
+ maxSize?: number;
804
+ maxTimeout?: number;
805
+ tokenId?: string;
806
+ updateTypes?: TrackingUpdateType[];
807
+ }
808
+
809
+ export interface ReadUpdatesResult {
810
+ clientSegment?: number[];
811
+ lastIndex?: number;
812
+ updates?: any[];
813
+ }
814
+
786
815
  export interface Region {
787
816
  nutsCode?: string;
788
817
  }
@@ -843,6 +872,15 @@ export interface RequestUserReset {
843
872
  email?: string;
844
873
  }
845
874
 
875
+ /**
876
+ * Resets the lastIndex position of your token.
877
+ */
878
+ export interface ResetPosition {
879
+ index?: number;
880
+ timestamp?: string;
881
+ tokenId?: string;
882
+ }
883
+
846
884
  export interface ReturnRide extends RideDriverModifyCommand {
847
885
  }
848
886
 
@@ -1108,6 +1146,16 @@ export interface RideSeriesPostConfirmCommand {
1108
1146
  export interface RideSeriesPreConfirmCommand extends RideSeriesCommand {
1109
1147
  }
1110
1148
 
1149
+ export interface RideSeriesUpdate {
1150
+ after?: RideSeries;
1151
+ before?: RideSeries;
1152
+ entityId?: string;
1153
+ eventType?: string;
1154
+ index?: number;
1155
+ timestamp?: string;
1156
+ type: "rideseries";
1157
+ }
1158
+
1111
1159
  export interface RideStatisticsQuery {
1112
1160
  dateRange?: DateRange;
1113
1161
  timezoneOrDefault?: string;
@@ -1120,6 +1168,16 @@ export interface RideSystemCommand extends RideCommand {
1120
1168
  export interface RideUpcaster {
1121
1169
  }
1122
1170
 
1171
+ export interface RideUpdate {
1172
+ after?: Ride;
1173
+ before?: Ride;
1174
+ entityId?: string;
1175
+ eventType?: string;
1176
+ index?: number;
1177
+ timestamp?: string;
1178
+ type: "ride";
1179
+ }
1180
+
1123
1181
  export interface Role<T> {
1124
1182
  }
1125
1183
 
@@ -1271,6 +1329,12 @@ export interface UpdateAccountPermission extends AccountPermissionCommand {
1271
1329
  accountPermission?: AccountPermission;
1272
1330
  }
1273
1331
 
1332
+ export interface UpdatePosition {
1333
+ clientSegment?: number[];
1334
+ lastIndex?: number;
1335
+ tokenId?: string;
1336
+ }
1337
+
1274
1338
  export interface UpdateRide extends RideBookerCommand {
1275
1339
  booker?: AccountOrTeamRef;
1276
1340
  info?: RideInfo;
@@ -1375,6 +1439,8 @@ export type SyncStatus = "not_synced" | "synced" | "update_not_synced";
1375
1439
 
1376
1440
  export type TeamRole = "dispatcher" | "ridebooker";
1377
1441
 
1442
+ export type TrackingUpdateType = "ride" | "rideseries";
1443
+
1378
1444
  export type UserRole = "superadmin";
1379
1445
 
1380
1446
  export type VehicleType = "taxi" | "ambulance";
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@moxi.gmbh/moxi-typescriptmodels",
3
- "version": "0.1.1071-test-server",
3
+ "version": "0.1.1091-test-server",
4
4
  "types": "common.d.ts"
5
5
  }