@pulsecharterconnect/types 0.0.49 → 0.1.1
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.
|
@@ -5,7 +5,8 @@ export declare enum TransportationRequestStatus {
|
|
|
5
5
|
AWAITING_AIR_TRANSPORTATION_SERVICES_APPROVAL = "awaiting-air-transportation-services-approval",
|
|
6
6
|
AWAITING_GROUND_TRANSPORTATION_SERVICES_APPROVAL = "awaiting-ground-transportation-services-approval",
|
|
7
7
|
APPROVED = "approved",
|
|
8
|
-
CANCELLED = "cancelled"
|
|
8
|
+
CANCELLED = "cancelled",
|
|
9
|
+
COMPLETED = "completed"
|
|
9
10
|
}
|
|
10
11
|
export declare enum TransportationRequestProposalStatus {
|
|
11
12
|
CREATED = "created",
|
|
@@ -63,7 +64,7 @@ export declare enum LungEquipmentType {
|
|
|
63
64
|
PARAGONIX_BAROGUARD = "Paragonix BAROguard",
|
|
64
65
|
XVIVO = "XVIVO"
|
|
65
66
|
}
|
|
66
|
-
export type NoType =
|
|
67
|
+
export type NoType = "";
|
|
67
68
|
export type OrganTransport = {
|
|
68
69
|
organType: OrganType;
|
|
69
70
|
equipmentType?: HeartEquipmentType | LungEquipmentType | NoType;
|
|
@@ -9,6 +9,7 @@ var TransportationRequestStatus;
|
|
|
9
9
|
TransportationRequestStatus["AWAITING_GROUND_TRANSPORTATION_SERVICES_APPROVAL"] = "awaiting-ground-transportation-services-approval";
|
|
10
10
|
TransportationRequestStatus["APPROVED"] = "approved";
|
|
11
11
|
TransportationRequestStatus["CANCELLED"] = "cancelled";
|
|
12
|
+
TransportationRequestStatus["COMPLETED"] = "completed";
|
|
12
13
|
})(TransportationRequestStatus = exports.TransportationRequestStatus || (exports.TransportationRequestStatus = {}));
|
|
13
14
|
var TransportationRequestProposalStatus;
|
|
14
15
|
(function (TransportationRequestProposalStatus) {
|
|
@@ -89,8 +90,10 @@ class TransportationRequest {
|
|
|
89
90
|
this.id = transportationRequest.id;
|
|
90
91
|
this.unosId = transportationRequest.unosId;
|
|
91
92
|
this.organizationId = transportationRequest.organizationId;
|
|
92
|
-
this.transportationRequestType =
|
|
93
|
-
|
|
93
|
+
this.transportationRequestType =
|
|
94
|
+
transportationRequest.transportationRequestType;
|
|
95
|
+
this.transportationRequestSegments =
|
|
96
|
+
transportationRequest.transportationRequestSegments;
|
|
94
97
|
this.recipientFacility = transportationRequest.recipientFacility;
|
|
95
98
|
this.recoveryLocation = transportationRequest.recoveryLocation;
|
|
96
99
|
this.orDateTimeGMT = transportationRequest.orDateTimeGMT;
|
|
@@ -99,7 +102,8 @@ class TransportationRequest {
|
|
|
99
102
|
this.organTransportList = transportationRequest.organTransportList;
|
|
100
103
|
this.numberOfTravelers = transportationRequest.numberOfTravelers;
|
|
101
104
|
this.specialInstructions = transportationRequest.specialInstructions;
|
|
102
|
-
this.surgicalServicesRequested =
|
|
105
|
+
this.surgicalServicesRequested =
|
|
106
|
+
transportationRequest.surgicalServicesRequested;
|
|
103
107
|
this.transportationOptions = transportationRequest.transportationOptions;
|
|
104
108
|
this.status = transportationRequest.status;
|
|
105
109
|
this.createdAt = transportationRequest.createdAt;
|
package/dist/types/User.d.ts
CHANGED
|
@@ -11,6 +11,13 @@ export declare enum Role {
|
|
|
11
11
|
TRANSPORTATION_OPERATOR_COORDINATOR = "Transportation Operator Coordinator",
|
|
12
12
|
TRANSPORTATION_OPERATOR_AGENT = "Transportation Operator Agent"
|
|
13
13
|
}
|
|
14
|
+
export declare enum UserStatus {
|
|
15
|
+
CREATED = "created",
|
|
16
|
+
INVITED = "invited",
|
|
17
|
+
ACTIVE = "active",
|
|
18
|
+
INACTIVE = "inactive",
|
|
19
|
+
DELETED = "deleted"
|
|
20
|
+
}
|
|
14
21
|
export interface IUser {
|
|
15
22
|
id: string;
|
|
16
23
|
workOsId: string;
|
|
@@ -30,6 +37,7 @@ export interface IUser {
|
|
|
30
37
|
lastLoginDate?: number;
|
|
31
38
|
notificationSettings: NotificationSettings;
|
|
32
39
|
verifiedEmail?: boolean;
|
|
40
|
+
status: UserStatus;
|
|
33
41
|
createdAt?: number;
|
|
34
42
|
updatedAt?: number;
|
|
35
43
|
}
|
|
@@ -52,9 +60,10 @@ export declare class User implements IUser {
|
|
|
52
60
|
lastLoginDate?: number;
|
|
53
61
|
notificationSettings: NotificationSettings;
|
|
54
62
|
verifiedEmail?: boolean;
|
|
63
|
+
status: UserStatus;
|
|
55
64
|
createdAt?: number;
|
|
56
65
|
updatedAt?: number;
|
|
57
|
-
constructor({ id, workOsId, primaryEmail, secondaryEmail, firstName, lastName, title, primaryPhoneNumber, secondaryPhoneNumber, privacyAgreedOnDate, termsAgreedOnDate, organizationId, role, addedByUserId, addedOnDate, lastLoginDate, notificationSettings, verifiedEmail, createdAt, updatedAt, }: IUser);
|
|
66
|
+
constructor({ id, workOsId, primaryEmail, secondaryEmail, firstName, lastName, title, primaryPhoneNumber, secondaryPhoneNumber, privacyAgreedOnDate, termsAgreedOnDate, organizationId, role, addedByUserId, addedOnDate, lastLoginDate, notificationSettings, verifiedEmail, status, createdAt, updatedAt, }: IUser);
|
|
58
67
|
}
|
|
59
68
|
export declare class ResetPassword {
|
|
60
69
|
token: string;
|
package/dist/types/User.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ResetPassword = exports.User = exports.Role = void 0;
|
|
3
|
+
exports.ResetPassword = exports.User = exports.UserStatus = exports.Role = void 0;
|
|
4
4
|
var Role;
|
|
5
5
|
(function (Role) {
|
|
6
6
|
Role["SUPER_ADMIN"] = "Super Admin";
|
|
@@ -9,8 +9,16 @@ var Role;
|
|
|
9
9
|
Role["TRANSPORTATION_OPERATOR_COORDINATOR"] = "Transportation Operator Coordinator";
|
|
10
10
|
Role["TRANSPORTATION_OPERATOR_AGENT"] = "Transportation Operator Agent";
|
|
11
11
|
})(Role = exports.Role || (exports.Role = {}));
|
|
12
|
+
var UserStatus;
|
|
13
|
+
(function (UserStatus) {
|
|
14
|
+
UserStatus["CREATED"] = "created";
|
|
15
|
+
UserStatus["INVITED"] = "invited";
|
|
16
|
+
UserStatus["ACTIVE"] = "active";
|
|
17
|
+
UserStatus["INACTIVE"] = "inactive";
|
|
18
|
+
UserStatus["DELETED"] = "deleted";
|
|
19
|
+
})(UserStatus = exports.UserStatus || (exports.UserStatus = {}));
|
|
12
20
|
class User {
|
|
13
|
-
constructor({ id, workOsId, primaryEmail, secondaryEmail, firstName, lastName, title, primaryPhoneNumber, secondaryPhoneNumber, privacyAgreedOnDate, termsAgreedOnDate, organizationId, role, addedByUserId, addedOnDate, lastLoginDate, notificationSettings, verifiedEmail, createdAt, updatedAt, }) {
|
|
21
|
+
constructor({ id, workOsId, primaryEmail, secondaryEmail, firstName, lastName, title, primaryPhoneNumber, secondaryPhoneNumber, privacyAgreedOnDate, termsAgreedOnDate, organizationId, role, addedByUserId, addedOnDate, lastLoginDate, notificationSettings, verifiedEmail, status, createdAt, updatedAt, }) {
|
|
14
22
|
this.id = id;
|
|
15
23
|
this.workOsId = workOsId;
|
|
16
24
|
this.primaryEmail = primaryEmail;
|
|
@@ -34,6 +42,7 @@ class User {
|
|
|
34
42
|
inApp: notificationSettings.inApp || true,
|
|
35
43
|
};
|
|
36
44
|
this.verifiedEmail = verifiedEmail || false;
|
|
45
|
+
this.status = status || UserStatus.CREATED;
|
|
37
46
|
this.createdAt = createdAt;
|
|
38
47
|
this.updatedAt = updatedAt;
|
|
39
48
|
}
|