@moxi.gmbh/moxi-typescriptmodels 0.1.361-test-server → 0.1.361
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 +72 -2
- package/package.json +1 -1
package/common.d.ts
CHANGED
|
@@ -27,11 +27,16 @@ export interface AccountCommand {
|
|
|
27
27
|
accountId?: string;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
+
export interface AccountFilter {
|
|
31
|
+
activeServices?: Service[];
|
|
32
|
+
}
|
|
33
|
+
|
|
30
34
|
export interface AccountInfo {
|
|
31
35
|
address?: AddressInfo;
|
|
32
36
|
defaultLanguage?: string;
|
|
33
37
|
notificationEmails?: string[];
|
|
34
38
|
phoneNumber?: PhoneNumber;
|
|
39
|
+
zoneId?: ZoneId;
|
|
35
40
|
}
|
|
36
41
|
|
|
37
42
|
export interface AccountOrTeamId {
|
|
@@ -217,10 +222,19 @@ export interface CreateAccount extends AccountCommand {
|
|
|
217
222
|
requestService?: StandaloneService;
|
|
218
223
|
}
|
|
219
224
|
|
|
225
|
+
export interface CreateOptimizationPlan extends OptimizerMessage {
|
|
226
|
+
accountOrTeam?: AccountOrTeamRef;
|
|
227
|
+
timeRange?: InstantRange;
|
|
228
|
+
}
|
|
229
|
+
|
|
220
230
|
export interface CreateRideCommand extends RidePlannerCommand {
|
|
221
231
|
owner?: AccountOrTeamId;
|
|
222
232
|
}
|
|
223
233
|
|
|
234
|
+
export interface CreateSqueezeInPlan extends OptimizerMessage {
|
|
235
|
+
accountOrTeam?: AccountOrTeamRef;
|
|
236
|
+
}
|
|
237
|
+
|
|
224
238
|
export interface CreateTeam extends AccountCommand {
|
|
225
239
|
info?: TeamInfo;
|
|
226
240
|
teamId?: string;
|
|
@@ -339,10 +353,29 @@ export interface FetchRouteResult {
|
|
|
339
353
|
duration?: number;
|
|
340
354
|
}
|
|
341
355
|
|
|
356
|
+
/**
|
|
357
|
+
* @deprecated
|
|
358
|
+
*/
|
|
342
359
|
export interface FindAccount {
|
|
343
360
|
term?: string;
|
|
344
361
|
}
|
|
345
362
|
|
|
363
|
+
export interface FindAccounts {
|
|
364
|
+
filter?: AccountFilter;
|
|
365
|
+
term?: string;
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
export interface FindMyAcceptedRides {
|
|
369
|
+
accountId?: string;
|
|
370
|
+
descending?: boolean;
|
|
371
|
+
filter?: RideFilter;
|
|
372
|
+
maxSize?: number;
|
|
373
|
+
term?: string;
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
/**
|
|
377
|
+
* @deprecated
|
|
378
|
+
*/
|
|
346
379
|
export interface FindMyRideOffers {
|
|
347
380
|
accountId?: string;
|
|
348
381
|
descending?: boolean;
|
|
@@ -467,9 +500,19 @@ export interface GetIsoStates {
|
|
|
467
500
|
export interface GetMonopolyAccounts {
|
|
468
501
|
}
|
|
469
502
|
|
|
503
|
+
export interface GetMyAcceptedRides {
|
|
504
|
+
accountId?: string;
|
|
505
|
+
maxSize?: number;
|
|
506
|
+
timeRange?: InstantRange;
|
|
507
|
+
}
|
|
508
|
+
|
|
470
509
|
export interface GetMyAccounts {
|
|
510
|
+
filter?: AccountFilter;
|
|
471
511
|
}
|
|
472
512
|
|
|
513
|
+
/**
|
|
514
|
+
* @deprecated
|
|
515
|
+
*/
|
|
473
516
|
export interface GetMyRideOffers {
|
|
474
517
|
accountId?: string;
|
|
475
518
|
maxSize?: number;
|
|
@@ -608,6 +651,9 @@ export interface OffsetTimeRange {
|
|
|
608
651
|
start?: Date;
|
|
609
652
|
}
|
|
610
653
|
|
|
654
|
+
export interface OptimizerMessage {
|
|
655
|
+
}
|
|
656
|
+
|
|
611
657
|
export interface Person {
|
|
612
658
|
address?: AddressInfo;
|
|
613
659
|
birthDay?: string;
|
|
@@ -690,6 +736,19 @@ export interface RequestUserReset {
|
|
|
690
736
|
email?: string;
|
|
691
737
|
}
|
|
692
738
|
|
|
739
|
+
export interface Review {
|
|
740
|
+
comment?: string;
|
|
741
|
+
stars?: number;
|
|
742
|
+
}
|
|
743
|
+
|
|
744
|
+
export interface ReviewRideAsDriver extends FleetModifyCommand {
|
|
745
|
+
review?: Review;
|
|
746
|
+
}
|
|
747
|
+
|
|
748
|
+
export interface ReviewRideAsRider extends RidePlannerCommand {
|
|
749
|
+
review?: Review;
|
|
750
|
+
}
|
|
751
|
+
|
|
693
752
|
export interface RevokeAccountPermission extends AccountPermissionCommand {
|
|
694
753
|
}
|
|
695
754
|
|
|
@@ -731,6 +790,7 @@ export interface Ride {
|
|
|
731
790
|
destinationPta?: string;
|
|
732
791
|
driveOwner?: AccountOrTeamRef;
|
|
733
792
|
driveStatus?: DriveStatus;
|
|
793
|
+
driverReview?: Review;
|
|
734
794
|
driverSyncStatus?: SyncStatus;
|
|
735
795
|
info?: RideInfo;
|
|
736
796
|
/**
|
|
@@ -743,6 +803,7 @@ export interface Ride {
|
|
|
743
803
|
originPta?: string;
|
|
744
804
|
rideId?: string;
|
|
745
805
|
rideOwner?: AccountOrTeamRef;
|
|
806
|
+
riderReview?: Review;
|
|
746
807
|
/**
|
|
747
808
|
* Derived from driveStatus != null
|
|
748
809
|
*/
|
|
@@ -772,6 +833,7 @@ export interface RideFilter {
|
|
|
772
833
|
hasInfection?: boolean;
|
|
773
834
|
heavyWeight?: boolean;
|
|
774
835
|
mobilities?: Mobility[];
|
|
836
|
+
region?: Region;
|
|
775
837
|
requiresMonitoring?: boolean;
|
|
776
838
|
requiresOxygen?: boolean;
|
|
777
839
|
requiresSuctionAspirator?: boolean;
|
|
@@ -853,6 +915,8 @@ export interface RidePlannerCommand extends RideCommand {
|
|
|
853
915
|
|
|
854
916
|
export interface RideStatisticsQuery {
|
|
855
917
|
dateRange?: DateRange;
|
|
918
|
+
timezoneOrDefault?: ZoneId;
|
|
919
|
+
zoneId?: ZoneId;
|
|
856
920
|
}
|
|
857
921
|
|
|
858
922
|
export interface RideTypeSpecificFilter {
|
|
@@ -893,6 +957,9 @@ export interface SendSlack {
|
|
|
893
957
|
message?: string;
|
|
894
958
|
}
|
|
895
959
|
|
|
960
|
+
export interface Serializable {
|
|
961
|
+
}
|
|
962
|
+
|
|
896
963
|
export interface SetSettings extends AccountUpdate {
|
|
897
964
|
settings?: any;
|
|
898
965
|
}
|
|
@@ -1029,7 +1096,7 @@ export interface UserInfo {
|
|
|
1029
1096
|
firstName?: string;
|
|
1030
1097
|
language?: string;
|
|
1031
1098
|
lastName?: string;
|
|
1032
|
-
telephoneNumber?:
|
|
1099
|
+
telephoneNumber?: PhoneNumber;
|
|
1033
1100
|
}
|
|
1034
1101
|
|
|
1035
1102
|
export interface UserOrTokenId {
|
|
@@ -1053,6 +1120,9 @@ export interface UserUpdate extends UserCommand {
|
|
|
1053
1120
|
export interface UserUpdateAfterSignup extends UserUpdate {
|
|
1054
1121
|
}
|
|
1055
1122
|
|
|
1123
|
+
export interface ZoneId extends Serializable {
|
|
1124
|
+
}
|
|
1125
|
+
|
|
1056
1126
|
export interface ZonedTimeRange {
|
|
1057
1127
|
end?: Date;
|
|
1058
1128
|
start?: Date;
|
|
@@ -1064,7 +1134,7 @@ export type AuthenticationResult = "SUCCESS" | "NOT_CONFIRMED";
|
|
|
1064
1134
|
|
|
1065
1135
|
export type BookingStatus = "saved" | "booked" | "accepted" | "started" | "completed" | "cancelled";
|
|
1066
1136
|
|
|
1067
|
-
export type Direction = "admission" | "relocation" | "discharge";
|
|
1137
|
+
export type Direction = "admission" | "relocation" | "discharge" | "consultation";
|
|
1068
1138
|
|
|
1069
1139
|
export type DriveStatus = "driving_to_origin" | "arrived_at_origin" | "driving_to_destination" | "arrived_at_destination" | "completed";
|
|
1070
1140
|
|
package/package.json
CHANGED