@pulsecharterconnect/types 0.2.74 → 0.2.76

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.
@@ -4,7 +4,7 @@ export declare enum FeatureFlagName {
4
4
  JET_INSIGHT_INTEGRATION = "jet-insight-integration",
5
5
  COMMUNICATIONS = "communications",
6
6
  LOGISTICS = "logistics",
7
- PROPOSAL_SELECT_ADDITIONAL_DETAILS = "proposal-select-additional-details"
7
+ DHR_PROPOSAL_MODAL = "dhr-proposal-modal"
8
8
  }
9
9
  export interface IFeatureFlag {
10
10
  name: FeatureFlagName;
@@ -8,7 +8,7 @@ var FeatureFlagName;
8
8
  FeatureFlagName["JET_INSIGHT_INTEGRATION"] = "jet-insight-integration";
9
9
  FeatureFlagName["COMMUNICATIONS"] = "communications";
10
10
  FeatureFlagName["LOGISTICS"] = "logistics";
11
- FeatureFlagName["PROPOSAL_SELECT_ADDITIONAL_DETAILS"] = "proposal-select-additional-details";
11
+ FeatureFlagName["DHR_PROPOSAL_MODAL"] = "dhr-proposal-modal";
12
12
  })(FeatureFlagName = exports.FeatureFlagName || (exports.FeatureFlagName = {}));
13
13
  class FeatureFlag {
14
14
  constructor(featureFlag) {
@@ -1,5 +1,4 @@
1
1
  import { IFeatureFlag } from "./FeatureFlag";
2
- import { IParticipant } from "./Trip";
3
2
  export declare enum OrganizationType {
4
3
  SYSTEM_ADMIN = "System Admin",
5
4
  TRANSPLANT_CENTER = "Transplant Center",
@@ -165,7 +164,7 @@ export interface ITranportationOperatorOrganization {
165
164
  markupPercentage?: number;
166
165
  }
167
166
  export interface IOrganizationCommunicationsSettings {
168
- alwaysAddParticipants: IParticipant[];
167
+ alwaysAddParticipantIds: string[];
169
168
  }
170
169
  export interface IOrganization {
171
170
  id: string;
@@ -208,5 +207,5 @@ export declare class Organization implements IOrganization {
208
207
  isAirOperator(): boolean;
209
208
  isSystemAdmin(): boolean;
210
209
  isGroundTransportationEnabled(): boolean;
211
- proposalSelectRequiresAdditionalDetails(): boolean;
210
+ dhrProposalModalEnabled(): boolean;
212
211
  }
@@ -122,9 +122,9 @@ class Organization {
122
122
  }
123
123
  this.featureFlags = organization.featureFlags || [];
124
124
  if (!organization.communicationsSettings)
125
- organization.communicationsSettings = { alwaysAddParticipants: [] };
126
- if (!organization.communicationsSettings.alwaysAddParticipants)
127
- organization.communicationsSettings.alwaysAddParticipants = [];
125
+ organization.communicationsSettings = { alwaysAddParticipantIds: [] };
126
+ if (!organization.communicationsSettings.alwaysAddParticipantIds)
127
+ organization.communicationsSettings.alwaysAddParticipantIds = [];
128
128
  this.communicationsSettings = organization.communicationsSettings;
129
129
  this.createdAt = organization.createdAt;
130
130
  this.updatedAt = organization.updatedAt;
@@ -176,9 +176,8 @@ class Organization {
176
176
  isGroundTransportationEnabled() {
177
177
  return this.featureFlags.some((flag) => flag.name === FeatureFlag_1.FeatureFlagName.GROUND_TRANSPORTATION && flag.enabled);
178
178
  }
179
- proposalSelectRequiresAdditionalDetails() {
180
- return this.featureFlags.some((flag) => flag.name === FeatureFlag_1.FeatureFlagName.PROPOSAL_SELECT_ADDITIONAL_DETAILS &&
181
- flag.enabled);
179
+ dhrProposalModalEnabled() {
180
+ return this.featureFlags.some((flag) => flag.name === FeatureFlag_1.FeatureFlagName.DHR_PROPOSAL_MODAL && flag.enabled);
182
181
  }
183
182
  }
184
183
  exports.Organization = Organization;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pulsecharterconnect/types",
3
- "version": "0.2.74",
3
+ "version": "0.2.76",
4
4
  "description": "A TypeScript library for enhanced type safety.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",