@pulsecharterconnect/types 0.2.2 → 0.2.4
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.
- package/dist/types/Case.d.ts +29 -0
- package/dist/types/Case.js +17 -1
- package/package.json +1 -1
package/dist/types/Case.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { Facility } from "./Organization";
|
|
2
|
+
import { OrganType } from "./TransportationRequest";
|
|
1
3
|
export declare enum CaseWorkflowStepLabel {
|
|
2
4
|
SUBMIT_REQUEST_FOR_PROPOSALS = "Submit Request for Proposals",
|
|
3
5
|
REVIEW_PROPOSALS_AND_CHOOSE_AIR_TRANSPORTATION = "Review Proposals & Choose Air Transportation",
|
|
@@ -46,3 +48,30 @@ export declare class CaseWorkflowStep implements ICaseWorkflowStep {
|
|
|
46
48
|
workflowActions: ICaseWorkflowStepAction[];
|
|
47
49
|
constructor(caseWorkflowStep: ICaseWorkflowStep);
|
|
48
50
|
}
|
|
51
|
+
export interface ICase {
|
|
52
|
+
id: string;
|
|
53
|
+
unosId: string;
|
|
54
|
+
organTypes: OrganType[];
|
|
55
|
+
transportationRequestId?: string;
|
|
56
|
+
tripId?: string;
|
|
57
|
+
transportationRequested: boolean;
|
|
58
|
+
caseWorkflowSteps: ICaseWorkflowStep[];
|
|
59
|
+
caseRecipientFacility: Facility;
|
|
60
|
+
caseRecoveryLocation: Facility;
|
|
61
|
+
createdAt?: number;
|
|
62
|
+
updatedAt?: number;
|
|
63
|
+
}
|
|
64
|
+
export declare class Case implements ICase {
|
|
65
|
+
id: string;
|
|
66
|
+
unosId: string;
|
|
67
|
+
organTypes: OrganType[];
|
|
68
|
+
transportationRequestId?: string;
|
|
69
|
+
tripId?: string;
|
|
70
|
+
transportationRequested: boolean;
|
|
71
|
+
caseWorkflowSteps: ICaseWorkflowStep[];
|
|
72
|
+
caseRecipientFacility: Facility;
|
|
73
|
+
caseRecoveryLocation: Facility;
|
|
74
|
+
createdAt?: number;
|
|
75
|
+
updatedAt?: number;
|
|
76
|
+
constructor(caseData: ICase);
|
|
77
|
+
}
|
package/dist/types/Case.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CaseWorkflowStep = exports.CaseWorkflowStepActionType = exports.CaseWorkflowStepActionLabel = exports.CaseWorkflowStepStatus = exports.CaseWorkflowStepLabel = void 0;
|
|
3
|
+
exports.Case = exports.CaseWorkflowStep = exports.CaseWorkflowStepActionType = exports.CaseWorkflowStepActionLabel = exports.CaseWorkflowStepStatus = exports.CaseWorkflowStepLabel = void 0;
|
|
4
4
|
var CaseWorkflowStepLabel;
|
|
5
5
|
(function (CaseWorkflowStepLabel) {
|
|
6
6
|
CaseWorkflowStepLabel["SUBMIT_REQUEST_FOR_PROPOSALS"] = "Submit Request for Proposals";
|
|
@@ -43,3 +43,19 @@ class CaseWorkflowStep {
|
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
exports.CaseWorkflowStep = CaseWorkflowStep;
|
|
46
|
+
class Case {
|
|
47
|
+
constructor(caseData) {
|
|
48
|
+
this.id = caseData.id;
|
|
49
|
+
this.unosId = caseData.unosId;
|
|
50
|
+
this.organTypes = caseData.organTypes || [];
|
|
51
|
+
this.transportationRequestId = caseData.transportationRequestId;
|
|
52
|
+
this.tripId = caseData.tripId;
|
|
53
|
+
this.transportationRequested = caseData.transportationRequested || false;
|
|
54
|
+
this.caseWorkflowSteps = caseData.caseWorkflowSteps || [];
|
|
55
|
+
this.caseRecipientFacility = caseData.caseRecipientFacility;
|
|
56
|
+
this.caseRecoveryLocation = caseData.caseRecoveryLocation;
|
|
57
|
+
this.createdAt = caseData.createdAt;
|
|
58
|
+
this.updatedAt = caseData.updatedAt;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
exports.Case = Case;
|