@pulsecharterconnect/types 0.2.75 → 0.2.77

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,3 +1,4 @@
1
+ import { Participant } from "./Trip";
1
2
  export declare enum CommunicationsChannelType {
2
3
  ALL = "All",
3
4
  AIR = "Air",
@@ -27,3 +28,14 @@ export interface ICommunicationsChannelDto extends ICommunicationsChannel {
27
28
  messageCount: number;
28
29
  usersCount: number;
29
30
  }
31
+ export interface ICommunicationsMessage {
32
+ id: string;
33
+ messageText: string;
34
+ timestamp: number;
35
+ sender?: Participant;
36
+ readByParticipantIds: string[];
37
+ }
38
+ export interface ICommunicationsGetMessagesDto {
39
+ messages: ICommunicationsMessage[];
40
+ channelId: string;
41
+ }
@@ -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) {
@@ -207,5 +207,5 @@ export declare class Organization implements IOrganization {
207
207
  isAirOperator(): boolean;
208
208
  isSystemAdmin(): boolean;
209
209
  isGroundTransportationEnabled(): boolean;
210
- proposalSelectRequiresAdditionalDetails(): boolean;
210
+ dhrProposalModalEnabled(): boolean;
211
211
  }
@@ -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.75",
3
+ "version": "0.2.77",
4
4
  "description": "A TypeScript library for enhanced type safety.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",