@pulsecharterconnect/types 0.1.37 → 0.1.38
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.
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare enum FeatureFlagName {
|
|
2
|
+
GROUND_TRANSPORTATION = "ground-transportation"
|
|
3
|
+
}
|
|
4
|
+
export interface IFeatureFlag {
|
|
5
|
+
name: FeatureFlagName;
|
|
6
|
+
description: string;
|
|
7
|
+
enabled: boolean;
|
|
8
|
+
createdAt?: number;
|
|
9
|
+
updatedAt?: number;
|
|
10
|
+
}
|
|
11
|
+
export declare class FeatureFlag implements IFeatureFlag {
|
|
12
|
+
name: FeatureFlagName;
|
|
13
|
+
description: string;
|
|
14
|
+
enabled: boolean;
|
|
15
|
+
createdAt?: number;
|
|
16
|
+
updatedAt?: number;
|
|
17
|
+
constructor(featureFlag: IFeatureFlag);
|
|
18
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FeatureFlag = exports.FeatureFlagName = void 0;
|
|
4
|
+
var FeatureFlagName;
|
|
5
|
+
(function (FeatureFlagName) {
|
|
6
|
+
FeatureFlagName["GROUND_TRANSPORTATION"] = "ground-transportation";
|
|
7
|
+
})(FeatureFlagName = exports.FeatureFlagName || (exports.FeatureFlagName = {}));
|
|
8
|
+
class FeatureFlag {
|
|
9
|
+
constructor(featureFlag) {
|
|
10
|
+
this.name = featureFlag.name;
|
|
11
|
+
this.description = featureFlag.description;
|
|
12
|
+
this.enabled = featureFlag.enabled;
|
|
13
|
+
this.createdAt = featureFlag.createdAt;
|
|
14
|
+
this.updatedAt = featureFlag.updatedAt;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.FeatureFlag = FeatureFlag;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { IFeatureFlag } from "./FeatureFlag";
|
|
1
2
|
export declare enum OrganizationType {
|
|
2
3
|
SYSTEM_ADMIN = "System Admin",
|
|
3
4
|
TRANSPLANT_CENTER = "Transplant Center",
|
|
@@ -133,6 +134,7 @@ export interface ITransplantCenterOrganization {
|
|
|
133
134
|
facilities: Facility[];
|
|
134
135
|
safetyRequirements: SafetyRequirements[];
|
|
135
136
|
unosRegionNumbersServed: number[];
|
|
137
|
+
preferredTransportationOperators?: string[];
|
|
136
138
|
}
|
|
137
139
|
export interface ITranportationOperatorOrganization {
|
|
138
140
|
mainFacility?: Facility;
|
|
@@ -158,6 +160,7 @@ export interface IOrganization {
|
|
|
158
160
|
workOsId: string;
|
|
159
161
|
name: string;
|
|
160
162
|
type: OrganizationType;
|
|
163
|
+
featureFlags: IFeatureFlag[];
|
|
161
164
|
systemAdminOrganizationDetails?: ISystemAdminOrganization;
|
|
162
165
|
transplantCenterOrganizationDetails?: ITransplantCenterOrganization;
|
|
163
166
|
transportationOperatorOrganizationDetails?: ITranportationOperatorOrganization;
|
|
@@ -169,6 +172,7 @@ export declare class Organization implements IOrganization {
|
|
|
169
172
|
workOsId: string;
|
|
170
173
|
name: string;
|
|
171
174
|
type: OrganizationType;
|
|
175
|
+
featureFlags: IFeatureFlag[];
|
|
172
176
|
systemAdminOrganizationDetails?: ISystemAdminOrganization;
|
|
173
177
|
transplantCenterOrganizationDetails?: ITransplantCenterOrganization;
|
|
174
178
|
transportationOperatorOrganizationDetails?: ITranportationOperatorOrganization;
|
package/dist/types/index.d.ts
CHANGED
package/dist/types/index.js
CHANGED