@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.
@@ -210,4 +210,5 @@ export declare class Organization implements IOrganization {
210
210
  isSystemAdmin(): boolean;
211
211
  isGroundTransportationEnabled(): boolean;
212
212
  dhrProposalModalEnabled(): boolean;
213
+ isScheduleEnabled(): boolean;
213
214
  }
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pulsecharterconnect/types",
3
- "version": "0.2.122",
3
+ "version": "0.2.124",
4
4
  "description": "A TypeScript library for enhanced type safety.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",