@pulsecharterconnect/types 0.2.122 → 0.2.124
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.
|
@@ -179,6 +179,15 @@ class Organization {
|
|
|
179
179
|
},
|
|
180
180
|
];
|
|
181
181
|
}
|
|
182
|
+
organization.featureFlags.forEach((flag) => {
|
|
183
|
+
const existingFlagIndex = this.featureFlags.findIndex((f) => f.name === flag.name);
|
|
184
|
+
if (existingFlagIndex !== -1) {
|
|
185
|
+
this.featureFlags[existingFlagIndex].enabled = flag.enabled;
|
|
186
|
+
}
|
|
187
|
+
else {
|
|
188
|
+
this.featureFlags.push(flag);
|
|
189
|
+
}
|
|
190
|
+
});
|
|
182
191
|
if (!organization.communicationsSettings)
|
|
183
192
|
organization.communicationsSettings = { alwaysAddParticipantIds: [] };
|
|
184
193
|
if (!organization.communicationsSettings.alwaysAddParticipantIds)
|
|
@@ -237,5 +246,8 @@ class Organization {
|
|
|
237
246
|
dhrProposalModalEnabled() {
|
|
238
247
|
return this.featureFlags.some((flag) => flag.name === FeatureFlag_1.FeatureFlagName.DHR_PROPOSAL_MODAL && flag.enabled);
|
|
239
248
|
}
|
|
249
|
+
isScheduleEnabled() {
|
|
250
|
+
return this.featureFlags.some((flag) => flag.name === FeatureFlag_1.FeatureFlagName.SCHEDULE && flag.enabled);
|
|
251
|
+
}
|
|
240
252
|
}
|
|
241
253
|
exports.Organization = Organization;
|