@pulsecharterconnect/types 0.1.42 → 0.1.44

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.
@@ -166,14 +166,14 @@ export interface IOrganization {
166
166
  name: string;
167
167
  type: OrganizationType;
168
168
  featureFlags: IFeatureFlag[];
169
- timezonePreference?: TimezonePreference;
169
+ timezonePreference?: ITimezonePreference;
170
170
  systemAdminOrganizationDetails?: ISystemAdminOrganization;
171
171
  transplantCenterOrganizationDetails?: ITransplantCenterOrganization;
172
172
  transportationOperatorOrganizationDetails?: ITranportationOperatorOrganization;
173
173
  createdAt?: number;
174
174
  updatedAt?: number;
175
175
  }
176
- export interface TimezonePreference {
176
+ export interface ITimezonePreference {
177
177
  displayMode: TimezoneDisplayMode;
178
178
  organizationTimezone?: string;
179
179
  }
@@ -183,7 +183,7 @@ export declare class Organization implements IOrganization {
183
183
  name: string;
184
184
  type: OrganizationType;
185
185
  featureFlags: IFeatureFlag[];
186
- timezonePreference?: TimezonePreference;
186
+ timezonePreference?: ITimezonePreference;
187
187
  systemAdminOrganizationDetails?: ISystemAdminOrganization;
188
188
  transplantCenterOrganizationDetails?: ITransplantCenterOrganization;
189
189
  transportationOperatorOrganizationDetails?: ITranportationOperatorOrganization;
@@ -7,6 +7,9 @@ export declare enum TripStatus {
7
7
  CANCELLED = "cancelled",
8
8
  ABORTED = "aborted"
9
9
  }
10
+ export declare function getTripStatusLabel(status: TripStatus): string;
11
+ export declare function getSegmentStatusLabel(status: SegmentStatus): string;
12
+ export declare function getOrganRecoveryInProcessStatusLabel(status: OrganRecoveryInProcessStatus): string;
10
13
  export declare enum SegmentStatus {
11
14
  NOT_STARTED = "not-started",
12
15
  START_SEGMENT = "start-segment",
@@ -17,6 +20,7 @@ export declare enum SegmentStatus {
17
20
  export declare enum OrganRecoveryInProcessStatus {
18
21
  IN_OPERATING_ROOM = "in-operating-room",
19
22
  INCISION_MADE = "incision-made",
23
+ HEPARIN_ADMINISTERED = "heparin-administered",
20
24
  CROSS_CLAMP = "cross-clamp",
21
25
  ORGAN_RECOVERED = "organ-recovered"
22
26
  }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Trip = exports.Participant = exports.Gender = exports.TripParticipantRole = exports.TripActions = exports.SegmentType = exports.OrganRecoveryInProcessStatus = exports.SegmentStatus = exports.TripStatus = void 0;
3
+ exports.Trip = exports.Participant = exports.Gender = exports.TripParticipantRole = exports.TripActions = exports.SegmentType = exports.OrganRecoveryInProcessStatus = exports.SegmentStatus = exports.getOrganRecoveryInProcessStatusLabel = exports.getSegmentStatusLabel = exports.getTripStatusLabel = exports.TripStatus = void 0;
4
4
  var TripStatus;
5
5
  (function (TripStatus) {
6
6
  TripStatus["PREPARATION"] = "preparation";
@@ -9,6 +9,57 @@ var TripStatus;
9
9
  TripStatus["CANCELLED"] = "cancelled";
10
10
  TripStatus["ABORTED"] = "aborted";
11
11
  })(TripStatus = exports.TripStatus || (exports.TripStatus = {}));
12
+ function getTripStatusLabel(status) {
13
+ switch (status) {
14
+ case TripStatus.PREPARATION:
15
+ return "Preparation";
16
+ case TripStatus.IN_PROGRESS:
17
+ return "In Progress";
18
+ case TripStatus.COMPLETED:
19
+ return "Completed";
20
+ case TripStatus.CANCELLED:
21
+ return "Cancelled";
22
+ case TripStatus.ABORTED:
23
+ return "Aborted";
24
+ default:
25
+ return "Unknown Status";
26
+ }
27
+ }
28
+ exports.getTripStatusLabel = getTripStatusLabel;
29
+ function getSegmentStatusLabel(status) {
30
+ switch (status) {
31
+ case SegmentStatus.NOT_STARTED:
32
+ return "Not Started";
33
+ case SegmentStatus.START_SEGMENT:
34
+ return "Started";
35
+ case SegmentStatus.TRANSPORTATION_SEGMENT_EN_ROUTE:
36
+ return "En Route";
37
+ case SegmentStatus.ORGAN_RECOVERY_SEGMENT_IN_PROCESS:
38
+ return "Recovery In Process";
39
+ case SegmentStatus.SEGMENT_COMPLETED:
40
+ return "Completed";
41
+ default:
42
+ return "Unknown";
43
+ }
44
+ }
45
+ exports.getSegmentStatusLabel = getSegmentStatusLabel;
46
+ function getOrganRecoveryInProcessStatusLabel(status) {
47
+ switch (status) {
48
+ case OrganRecoveryInProcessStatus.IN_OPERATING_ROOM:
49
+ return "In OR";
50
+ case OrganRecoveryInProcessStatus.INCISION_MADE:
51
+ return "Incision Made";
52
+ case OrganRecoveryInProcessStatus.CROSS_CLAMP:
53
+ return "Cross Clamp Applied";
54
+ case OrganRecoveryInProcessStatus.ORGAN_RECOVERED:
55
+ return "Organ Recovered";
56
+ case OrganRecoveryInProcessStatus.HEPARIN_ADMINISTERED:
57
+ return "Heparin Administered";
58
+ default:
59
+ return "Unknown Status";
60
+ }
61
+ }
62
+ exports.getOrganRecoveryInProcessStatusLabel = getOrganRecoveryInProcessStatusLabel;
12
63
  var SegmentStatus;
13
64
  (function (SegmentStatus) {
14
65
  SegmentStatus["NOT_STARTED"] = "not-started";
@@ -21,6 +72,7 @@ var OrganRecoveryInProcessStatus;
21
72
  (function (OrganRecoveryInProcessStatus) {
22
73
  OrganRecoveryInProcessStatus["IN_OPERATING_ROOM"] = "in-operating-room";
23
74
  OrganRecoveryInProcessStatus["INCISION_MADE"] = "incision-made";
75
+ OrganRecoveryInProcessStatus["HEPARIN_ADMINISTERED"] = "heparin-administered";
24
76
  OrganRecoveryInProcessStatus["CROSS_CLAMP"] = "cross-clamp";
25
77
  OrganRecoveryInProcessStatus["ORGAN_RECOVERED"] = "organ-recovered";
26
78
  })(OrganRecoveryInProcessStatus = exports.OrganRecoveryInProcessStatus || (exports.OrganRecoveryInProcessStatus = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pulsecharterconnect/types",
3
- "version": "0.1.42",
3
+ "version": "0.1.44",
4
4
  "description": "A TypeScript library for enhanced type safety.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",