@moxi.gmbh/moxi-typescriptmodels 0.0.1101 → 0.0.1131
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 +60 -1
- package/package.json +1 -1
package/common.d.ts
CHANGED
|
@@ -61,18 +61,29 @@ export interface AccountRef {
|
|
|
61
61
|
export interface AccountUpdate extends AccountCommand {
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
+
/**
|
|
65
|
+
* Address info of a google-validated address, including geolocation and district code
|
|
66
|
+
*/
|
|
64
67
|
export interface AddressInfo {
|
|
65
68
|
addition?: string;
|
|
66
69
|
city?: string;
|
|
70
|
+
/**
|
|
71
|
+
* Derived from districtNutsCode
|
|
72
|
+
*/
|
|
67
73
|
country?: string;
|
|
68
|
-
displayName?: string;
|
|
69
74
|
districtNutsCode?: string;
|
|
70
75
|
geoLocation?: GeoLocation;
|
|
71
76
|
instructions?: string;
|
|
72
77
|
number?: string;
|
|
73
78
|
placeName?: string;
|
|
79
|
+
/**
|
|
80
|
+
* Derived from districtNutsCode
|
|
81
|
+
*/
|
|
74
82
|
state?: string;
|
|
75
83
|
street?: string;
|
|
84
|
+
/**
|
|
85
|
+
* Derived from districtNutsCode
|
|
86
|
+
*/
|
|
76
87
|
subState?: string;
|
|
77
88
|
zipCode?: string;
|
|
78
89
|
}
|
|
@@ -97,12 +108,24 @@ export interface AmbulanceFilter extends RideTypeSpecificFilter {
|
|
|
97
108
|
type: "ambulance";
|
|
98
109
|
}
|
|
99
110
|
|
|
111
|
+
/**
|
|
112
|
+
* Filled if (and only if) rideType == ambulance
|
|
113
|
+
*/
|
|
100
114
|
export interface AmbulanceInfo {
|
|
115
|
+
/**
|
|
116
|
+
* Derived from infectionDescription != blank
|
|
117
|
+
*/
|
|
101
118
|
hasInfection?: boolean;
|
|
102
119
|
infectionDescription?: string;
|
|
103
120
|
monitoringDescription?: string;
|
|
104
121
|
oxygenLiterPerHour?: number;
|
|
122
|
+
/**
|
|
123
|
+
* Derived from monitoringDescription != blank
|
|
124
|
+
*/
|
|
105
125
|
requiresMonitoring?: boolean;
|
|
126
|
+
/**
|
|
127
|
+
* Derived from oxygenLiterPerHour != null
|
|
128
|
+
*/
|
|
106
129
|
requiresOxygen?: boolean;
|
|
107
130
|
requiresSuctionAspirator?: boolean;
|
|
108
131
|
}
|
|
@@ -512,6 +535,9 @@ export interface Person {
|
|
|
512
535
|
phoneNumber?: string;
|
|
513
536
|
}
|
|
514
537
|
|
|
538
|
+
/**
|
|
539
|
+
* Filled if (and only if) patient exceeds 130 kg
|
|
540
|
+
*/
|
|
515
541
|
export interface PersonDimensions {
|
|
516
542
|
heightInCm?: number;
|
|
517
543
|
hipWidthInCm?: number;
|
|
@@ -593,21 +619,45 @@ export interface RevokeSubscription extends AccountUpdate {
|
|
|
593
619
|
}
|
|
594
620
|
|
|
595
621
|
export interface Ride {
|
|
622
|
+
/**
|
|
623
|
+
* Derived from driveOwner != null
|
|
624
|
+
*/
|
|
596
625
|
accepted?: boolean;
|
|
626
|
+
/**
|
|
627
|
+
* Derived from bookedTime != null
|
|
628
|
+
*/
|
|
597
629
|
booked?: boolean;
|
|
598
630
|
bookedTime?: string;
|
|
599
631
|
bookingStatus?: BookingStatus;
|
|
600
632
|
cancelled?: boolean;
|
|
633
|
+
/**
|
|
634
|
+
* Derived from driveStatus == completed
|
|
635
|
+
*/
|
|
601
636
|
completed?: boolean;
|
|
637
|
+
/**
|
|
638
|
+
* Estimated Time of Arrival at the Destination/Drop-off location. Will differ from destinationPta if the driver reported a delay
|
|
639
|
+
*/
|
|
602
640
|
destinationEta?: string;
|
|
641
|
+
/**
|
|
642
|
+
* Planned Time of Arrival at the Destination/Drop-off location. Derived from info.appointment and info.plannedDuration
|
|
643
|
+
*/
|
|
603
644
|
destinationPta?: string;
|
|
604
645
|
driveOwner?: AccountOrTeamRef;
|
|
605
646
|
driveStatus?: DriveStatus;
|
|
606
647
|
info?: RideInfo;
|
|
648
|
+
/**
|
|
649
|
+
* Estimated Time of Arrival at the Origin/Pick-up location. Will differ from originPta if the driver reported a delay
|
|
650
|
+
*/
|
|
607
651
|
originEta?: string;
|
|
652
|
+
/**
|
|
653
|
+
* Planned Time of Arrival at the Origin/Pick-up location. Derived from info.appointment and info.plannedDuration
|
|
654
|
+
*/
|
|
608
655
|
originPta?: string;
|
|
609
656
|
rideId?: string;
|
|
610
657
|
rideOwner?: AccountOrTeamRef;
|
|
658
|
+
/**
|
|
659
|
+
* Derived from driveStatus != null
|
|
660
|
+
*/
|
|
611
661
|
started?: boolean;
|
|
612
662
|
}
|
|
613
663
|
|
|
@@ -642,6 +692,9 @@ export interface RideFilterCount {
|
|
|
642
692
|
total?: number;
|
|
643
693
|
}
|
|
644
694
|
|
|
695
|
+
/**
|
|
696
|
+
* Information about the ride, from the creator of the ride
|
|
697
|
+
*/
|
|
645
698
|
export interface RideInfo {
|
|
646
699
|
ambulanceInfo?: AmbulanceInfo;
|
|
647
700
|
appointment?: Appointment;
|
|
@@ -650,6 +703,9 @@ export interface RideInfo {
|
|
|
650
703
|
direction?: Direction;
|
|
651
704
|
distanceInMeters?: number;
|
|
652
705
|
from?: AddressInfo;
|
|
706
|
+
/**
|
|
707
|
+
* Derived from weightInKg != null
|
|
708
|
+
*/
|
|
653
709
|
heavyWeight?: boolean;
|
|
654
710
|
mobility?: Mobility;
|
|
655
711
|
patient?: Person;
|
|
@@ -691,6 +747,9 @@ export interface RoleRight extends Right {
|
|
|
691
747
|
type: "role";
|
|
692
748
|
}
|
|
693
749
|
|
|
750
|
+
/**
|
|
751
|
+
* Save a new ride or update a previously saved ride. Not allowed to saveRide after the ride has been booked.
|
|
752
|
+
*/
|
|
694
753
|
export interface SaveRide extends CreateRideCommand {
|
|
695
754
|
info?: RideInfo;
|
|
696
755
|
owner?: AccountOrTeamRef;
|
package/package.json
CHANGED