@pulsecharterconnect/types 0.1.58 → 0.1.60
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.
|
@@ -193,4 +193,10 @@ export declare class Organization implements IOrganization {
|
|
|
193
193
|
communicationsEnabled(): boolean;
|
|
194
194
|
logisticsEnabled(): boolean;
|
|
195
195
|
inTraining(): boolean;
|
|
196
|
+
isTransplantCenter(): boolean;
|
|
197
|
+
isTransportationOperator(): boolean;
|
|
198
|
+
isGroundOperator(): boolean;
|
|
199
|
+
isAirOperator(): boolean;
|
|
200
|
+
isSystemAdmin(): boolean;
|
|
201
|
+
isGroundTransportationEnabled(): boolean;
|
|
196
202
|
}
|
|
@@ -139,5 +139,37 @@ class Organization {
|
|
|
139
139
|
}
|
|
140
140
|
return this.featureFlags.some((flag) => flag.name === FeatureFlag_1.FeatureFlagName.IN_TRAINING && flag.enabled);
|
|
141
141
|
}
|
|
142
|
+
isTransplantCenter() {
|
|
143
|
+
return this.type === OrganizationType.TRANSPLANT_CENTER;
|
|
144
|
+
}
|
|
145
|
+
isTransportationOperator() {
|
|
146
|
+
return this.type === OrganizationType.TRANSPORTATION_OPERATOR;
|
|
147
|
+
}
|
|
148
|
+
isGroundOperator() {
|
|
149
|
+
var _a;
|
|
150
|
+
return ((this.type === OrganizationType.TRANSPORTATION_OPERATOR &&
|
|
151
|
+
((_a = this.transportationOperatorOrganizationDetails) === null || _a === void 0 ? void 0 : _a.transportationServicesProvided) &&
|
|
152
|
+
Array.isArray(this.transportationOperatorOrganizationDetails
|
|
153
|
+
.transportationServicesProvided.ground) &&
|
|
154
|
+
this.transportationOperatorOrganizationDetails
|
|
155
|
+
.transportationServicesProvided.ground.length > 0) ||
|
|
156
|
+
false);
|
|
157
|
+
}
|
|
158
|
+
isAirOperator() {
|
|
159
|
+
var _a;
|
|
160
|
+
return ((this.type === OrganizationType.TRANSPORTATION_OPERATOR &&
|
|
161
|
+
((_a = this.transportationOperatorOrganizationDetails) === null || _a === void 0 ? void 0 : _a.transportationServicesProvided) &&
|
|
162
|
+
Array.isArray(this.transportationOperatorOrganizationDetails
|
|
163
|
+
.transportationServicesProvided.air) &&
|
|
164
|
+
this.transportationOperatorOrganizationDetails
|
|
165
|
+
.transportationServicesProvided.air.length > 0) ||
|
|
166
|
+
false);
|
|
167
|
+
}
|
|
168
|
+
isSystemAdmin() {
|
|
169
|
+
return this.type === OrganizationType.SYSTEM_ADMIN;
|
|
170
|
+
}
|
|
171
|
+
isGroundTransportationEnabled() {
|
|
172
|
+
return this.featureFlags.some((flag) => flag.name === FeatureFlag_1.FeatureFlagName.GROUND_TRANSPORTATION && flag.enabled);
|
|
173
|
+
}
|
|
142
174
|
}
|
|
143
175
|
exports.Organization = Organization;
|