@pulsecharterconnect/types 0.2.73 → 0.2.74
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.
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { IFeatureFlag } from "./FeatureFlag";
|
|
2
|
+
import { IParticipant } from "./Trip";
|
|
2
3
|
export declare enum OrganizationType {
|
|
3
4
|
SYSTEM_ADMIN = "System Admin",
|
|
4
5
|
TRANSPLANT_CENTER = "Transplant Center",
|
|
@@ -163,6 +164,9 @@ export interface ITranportationOperatorOrganization {
|
|
|
163
164
|
safetyCertifications: SafetyCertifications[];
|
|
164
165
|
markupPercentage?: number;
|
|
165
166
|
}
|
|
167
|
+
export interface IOrganizationCommunicationsSettings {
|
|
168
|
+
alwaysAddParticipants: IParticipant[];
|
|
169
|
+
}
|
|
166
170
|
export interface IOrganization {
|
|
167
171
|
id: string;
|
|
168
172
|
workOsId: string;
|
|
@@ -173,6 +177,7 @@ export interface IOrganization {
|
|
|
173
177
|
systemAdminOrganizationDetails?: ISystemAdminOrganization;
|
|
174
178
|
transplantCenterOrganizationDetails?: ITransplantCenterOrganization;
|
|
175
179
|
transportationOperatorOrganizationDetails?: ITranportationOperatorOrganization;
|
|
180
|
+
communicationsSettings?: IOrganizationCommunicationsSettings;
|
|
176
181
|
createdAt?: number;
|
|
177
182
|
updatedAt?: number;
|
|
178
183
|
}
|
|
@@ -190,6 +195,7 @@ export declare class Organization implements IOrganization {
|
|
|
190
195
|
systemAdminOrganizationDetails?: ISystemAdminOrganization;
|
|
191
196
|
transplantCenterOrganizationDetails?: ITransplantCenterOrganization;
|
|
192
197
|
transportationOperatorOrganizationDetails?: ITranportationOperatorOrganization;
|
|
198
|
+
communicationsSettings?: IOrganizationCommunicationsSettings;
|
|
193
199
|
createdAt?: number;
|
|
194
200
|
updatedAt?: number;
|
|
195
201
|
constructor(organization: IOrganization);
|
|
@@ -121,6 +121,11 @@ class Organization {
|
|
|
121
121
|
throw new Error("Organization type not recognized");
|
|
122
122
|
}
|
|
123
123
|
this.featureFlags = organization.featureFlags || [];
|
|
124
|
+
if (!organization.communicationsSettings)
|
|
125
|
+
organization.communicationsSettings = { alwaysAddParticipants: [] };
|
|
126
|
+
if (!organization.communicationsSettings.alwaysAddParticipants)
|
|
127
|
+
organization.communicationsSettings.alwaysAddParticipants = [];
|
|
128
|
+
this.communicationsSettings = organization.communicationsSettings;
|
|
124
129
|
this.createdAt = organization.createdAt;
|
|
125
130
|
this.updatedAt = organization.updatedAt;
|
|
126
131
|
}
|