@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
|
-
|
|
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["
|
|
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
|
-
|
|
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
|
-
|
|
180
|
-
return this.featureFlags.some((flag) => flag.name === FeatureFlag_1.FeatureFlagName.
|
|
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;
|