@pulsecharterconnect/types 0.2.116 → 0.2.117

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.
@@ -120,7 +120,55 @@ class Organization {
120
120
  default:
121
121
  throw new Error("Organization type not recognized");
122
122
  }
123
- this.featureFlags = organization.featureFlags || [];
123
+ this.featureFlags = [];
124
+ if (organization.type === OrganizationType.TRANSPLANT_CENTER) {
125
+ this.featureFlags = [
126
+ {
127
+ name: FeatureFlag_1.FeatureFlagName.GROUND_TRANSPORTATION,
128
+ description: "Enable ground transportation features such as requesting ground transportation and viewing ground transportation details on cases and trips.",
129
+ enabled: false,
130
+ },
131
+ {
132
+ name: FeatureFlag_1.FeatureFlagName.IN_TRAINING,
133
+ description: "When enabled, the organization is in training mode. In training mode, transportation requests are marked as training and will not trigger real-world actions such as notifications or communications channel creation.",
134
+ enabled: false,
135
+ },
136
+ {
137
+ name: FeatureFlag_1.FeatureFlagName.COMMUNICATIONS,
138
+ description: "Enable communications features such as in-app messaging and read receipts.",
139
+ enabled: true,
140
+ },
141
+ {
142
+ name: FeatureFlag_1.FeatureFlagName.LOGISTICS,
143
+ description: "Enable logistics features such as trip and transportation management.",
144
+ enabled: true,
145
+ },
146
+ {
147
+ name: FeatureFlag_1.FeatureFlagName.DHR_PROPOSAL_MODAL,
148
+ description: "Enable the DHR proposal modal which surfaces important information about the donor, organ, and recipient at the time of proposal review to help inform acceptance decisions.",
149
+ enabled: false,
150
+ },
151
+ ];
152
+ }
153
+ else if (organization.type === OrganizationType.TRANSPORTATION_OPERATOR) {
154
+ this.featureFlags = [
155
+ {
156
+ name: FeatureFlag_1.FeatureFlagName.JET_INSIGHT_INTEGRATION,
157
+ enabled: true,
158
+ description: "Enable integration with Jet Insight, allowing for automatic updates of aircraft availability and flight status for operators using Jet Insight's services.",
159
+ },
160
+ {
161
+ name: FeatureFlag_1.FeatureFlagName.COMMUNICATIONS,
162
+ enabled: true,
163
+ description: "Enable communications features such as in-app messaging and read receipts.",
164
+ },
165
+ {
166
+ name: FeatureFlag_1.FeatureFlagName.LOGISTICS,
167
+ enabled: true,
168
+ description: "Enable logistics features such as trip and transportation management.",
169
+ },
170
+ ];
171
+ }
124
172
  if (!organization.communicationsSettings)
125
173
  organization.communicationsSettings = { alwaysAddParticipantIds: [] };
126
174
  if (!organization.communicationsSettings.alwaysAddParticipantIds)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pulsecharterconnect/types",
3
- "version": "0.2.116",
3
+ "version": "0.2.117",
4
4
  "description": "A TypeScript library for enhanced type safety.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",