@pulsecharterconnect/types 0.1.36 → 0.1.38

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.
@@ -0,0 +1,18 @@
1
+ export declare enum FeatureFlagName {
2
+ GROUND_TRANSPORTATION = "ground-transportation"
3
+ }
4
+ export interface IFeatureFlag {
5
+ name: FeatureFlagName;
6
+ description: string;
7
+ enabled: boolean;
8
+ createdAt?: number;
9
+ updatedAt?: number;
10
+ }
11
+ export declare class FeatureFlag implements IFeatureFlag {
12
+ name: FeatureFlagName;
13
+ description: string;
14
+ enabled: boolean;
15
+ createdAt?: number;
16
+ updatedAt?: number;
17
+ constructor(featureFlag: IFeatureFlag);
18
+ }
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FeatureFlag = exports.FeatureFlagName = void 0;
4
+ var FeatureFlagName;
5
+ (function (FeatureFlagName) {
6
+ FeatureFlagName["GROUND_TRANSPORTATION"] = "ground-transportation";
7
+ })(FeatureFlagName = exports.FeatureFlagName || (exports.FeatureFlagName = {}));
8
+ class FeatureFlag {
9
+ constructor(featureFlag) {
10
+ this.name = featureFlag.name;
11
+ this.description = featureFlag.description;
12
+ this.enabled = featureFlag.enabled;
13
+ this.createdAt = featureFlag.createdAt;
14
+ this.updatedAt = featureFlag.updatedAt;
15
+ }
16
+ }
17
+ exports.FeatureFlag = FeatureFlag;
@@ -1,3 +1,4 @@
1
+ import { IFeatureFlag } from "./FeatureFlag";
1
2
  export declare enum OrganizationType {
2
3
  SYSTEM_ADMIN = "System Admin",
3
4
  TRANSPLANT_CENTER = "Transplant Center",
@@ -133,6 +134,7 @@ export interface ITransplantCenterOrganization {
133
134
  facilities: Facility[];
134
135
  safetyRequirements: SafetyRequirements[];
135
136
  unosRegionNumbersServed: number[];
137
+ preferredTransportationOperators?: string[];
136
138
  }
137
139
  export interface ITranportationOperatorOrganization {
138
140
  mainFacility?: Facility;
@@ -158,6 +160,7 @@ export interface IOrganization {
158
160
  workOsId: string;
159
161
  name: string;
160
162
  type: OrganizationType;
163
+ featureFlags: IFeatureFlag[];
161
164
  systemAdminOrganizationDetails?: ISystemAdminOrganization;
162
165
  transplantCenterOrganizationDetails?: ITransplantCenterOrganization;
163
166
  transportationOperatorOrganizationDetails?: ITranportationOperatorOrganization;
@@ -169,6 +172,7 @@ export declare class Organization implements IOrganization {
169
172
  workOsId: string;
170
173
  name: string;
171
174
  type: OrganizationType;
175
+ featureFlags: IFeatureFlag[];
172
176
  systemAdminOrganizationDetails?: ISystemAdminOrganization;
173
177
  transplantCenterOrganizationDetails?: ITransplantCenterOrganization;
174
178
  transportationOperatorOrganizationDetails?: ITranportationOperatorOrganization;
@@ -112,6 +112,7 @@ class Organization {
112
112
  default:
113
113
  throw new Error("Organization type not recognized");
114
114
  }
115
+ this.featureFlags = organization.featureFlags || [];
115
116
  this.createdAt = organization.createdAt;
116
117
  this.updatedAt = organization.updatedAt;
117
118
  }
@@ -71,6 +71,8 @@ export interface IProposal {
71
71
  markupPercentage: number;
72
72
  proposalStatus: ProposalStatus;
73
73
  proposalSegments: Array<IProposalAirSegment | IProposalGroundSegment>;
74
+ acceptedOrDeclinedByUserId?: string;
75
+ reasonForAcceptDeclineOrUpdate?: string;
74
76
  createdAt?: number;
75
77
  updatedAt?: number;
76
78
  }
@@ -85,5 +87,6 @@ export declare class Proposal implements IProposal {
85
87
  createdAt?: number;
86
88
  updatedAt?: number;
87
89
  acceptedOrDeclinedByUserId?: string;
90
+ reasonForAcceptDeclineOrUpdate?: string;
88
91
  constructor(proposal: IProposal);
89
92
  }
@@ -39,6 +39,9 @@ class Proposal {
39
39
  this.proposalSegments = proposal.proposalSegments;
40
40
  this.createdAt = proposal.createdAt;
41
41
  this.updatedAt = proposal.updatedAt;
42
+ this.acceptedOrDeclinedByUserId = proposal.acceptedOrDeclinedByUserId;
43
+ this.reasonForAcceptDeclineOrUpdate =
44
+ proposal.reasonForAcceptDeclineOrUpdate;
42
45
  }
43
46
  }
44
47
  exports.Proposal = Proposal;
@@ -9,3 +9,4 @@ export * from "./RequestForProposal";
9
9
  export * from "./Proposal";
10
10
  export * from "./Trip";
11
11
  export * from "./Communications";
12
+ export * from "./FeatureFlag";
@@ -25,3 +25,4 @@ __exportStar(require("./RequestForProposal"), exports);
25
25
  __exportStar(require("./Proposal"), exports);
26
26
  __exportStar(require("./Trip"), exports);
27
27
  __exportStar(require("./Communications"), exports);
28
+ __exportStar(require("./FeatureFlag"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pulsecharterconnect/types",
3
- "version": "0.1.36",
3
+ "version": "0.1.38",
4
4
  "description": "A TypeScript library for enhanced type safety.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",