@pulsecharterconnect/types 0.0.47 → 0.0.49
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.
|
@@ -84,8 +84,9 @@ export declare enum SafetyRequirements {
|
|
|
84
84
|
}
|
|
85
85
|
export type SafetyCertifications = {
|
|
86
86
|
certification: SafetyRequirements;
|
|
87
|
-
expirationDate
|
|
88
|
-
|
|
87
|
+
expirationDate?: number;
|
|
88
|
+
effectiveDate?: number;
|
|
89
|
+
certificationDocumentUrl?: string;
|
|
89
90
|
};
|
|
90
91
|
export type Facility = {
|
|
91
92
|
id: string;
|
|
@@ -97,19 +97,21 @@ class Organization {
|
|
|
97
97
|
this.name = organization.name;
|
|
98
98
|
this.type = organization.type;
|
|
99
99
|
switch (organization.type) {
|
|
100
|
-
case
|
|
101
|
-
this.systemAdminOrganizationDetails =
|
|
100
|
+
case "System Admin":
|
|
101
|
+
this.systemAdminOrganizationDetails =
|
|
102
|
+
organization.systemAdminOrganizationDetails;
|
|
102
103
|
break;
|
|
103
|
-
case
|
|
104
|
-
this.transplantCenterOrganizationDetails =
|
|
104
|
+
case "Transplant Center":
|
|
105
|
+
this.transplantCenterOrganizationDetails =
|
|
106
|
+
organization.transplantCenterOrganizationDetails;
|
|
105
107
|
break;
|
|
106
|
-
case
|
|
107
|
-
this.transportationOperatorOrganizationDetails =
|
|
108
|
+
case "Transportation Operator":
|
|
109
|
+
this.transportationOperatorOrganizationDetails =
|
|
110
|
+
organization.transportationOperatorOrganizationDetails;
|
|
108
111
|
break;
|
|
109
112
|
default:
|
|
110
|
-
throw new Error(
|
|
113
|
+
throw new Error("Organization type not recognized");
|
|
111
114
|
}
|
|
112
|
-
;
|
|
113
115
|
this.createdAt = organization.createdAt;
|
|
114
116
|
this.updatedAt = organization.updatedAt;
|
|
115
117
|
}
|
package/dist/types/Proposal.d.ts
CHANGED
|
@@ -64,7 +64,7 @@ export interface IProposal {
|
|
|
64
64
|
transportationOperatorId: string;
|
|
65
65
|
price: number;
|
|
66
66
|
proposalStatus: ProposalStatus;
|
|
67
|
-
proposalSegments:
|
|
67
|
+
proposalSegments: Array<IProposalAirSegment | IProposalGroundSegment>;
|
|
68
68
|
createdAt?: number;
|
|
69
69
|
updatedAt?: number;
|
|
70
70
|
}
|
|
@@ -74,7 +74,7 @@ export declare class Proposal {
|
|
|
74
74
|
transportationOperatorId: string;
|
|
75
75
|
price: number;
|
|
76
76
|
proposalStatus: ProposalStatus;
|
|
77
|
-
proposalSegments:
|
|
77
|
+
proposalSegments: Array<IProposalAirSegment | IProposalGroundSegment>;
|
|
78
78
|
createdAt?: number;
|
|
79
79
|
updatedAt?: number;
|
|
80
80
|
acceptedOrDeclinedByUserId?: string;
|