@pulsecharterconnect/types 0.2.99 → 0.2.101
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.
|
@@ -64,6 +64,7 @@ var OrganType;
|
|
|
64
64
|
OrganType["LUNG_EN_BLOC"] = "Lung - En Bloc";
|
|
65
65
|
OrganType["LEFT_KIDNEY"] = "Kidney - Left";
|
|
66
66
|
OrganType["RIGHT_KIDNEY"] = "Kidney - Right";
|
|
67
|
+
OrganType["KIDNEY"] = "Kidney";
|
|
67
68
|
OrganType["LIVER"] = "Liver";
|
|
68
69
|
OrganType["PANCREAS"] = "Pancreas";
|
|
69
70
|
OrganType["VCA"] = "VCA";
|
|
@@ -137,6 +138,7 @@ function getEquipmentForOrgan(organType) {
|
|
|
137
138
|
];
|
|
138
139
|
case OrganType.LEFT_KIDNEY:
|
|
139
140
|
case OrganType.RIGHT_KIDNEY:
|
|
141
|
+
case OrganType.KIDNEY:
|
|
140
142
|
return [
|
|
141
143
|
EquipmentType.PARAGONIX_KIDNEY_VAULT,
|
|
142
144
|
EquipmentType.ORS_LIFEPORT_KIDNEY,
|
|
@@ -213,7 +215,7 @@ class TransportationRequest {
|
|
|
213
215
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20;
|
|
214
216
|
const recoveryTimeDuration = this.transportationRequestType === TransportRequestType.ONE_WAY
|
|
215
217
|
? luxon_1.Duration.fromObject({ minutes: 0 })
|
|
216
|
-
: (_a = exports.RECOVERY_TIME_DURATION[this.recoveryType]) !== null && _a !== void 0 ? _a : luxon_1.Duration.fromObject({ hours: 3, minutes: 0 });
|
|
218
|
+
: ((_a = exports.RECOVERY_TIME_DURATION[this.recoveryType]) !== null && _a !== void 0 ? _a : luxon_1.Duration.fromObject({ hours: 3, minutes: 0 }));
|
|
217
219
|
const tripDistanceInMiles = this.tripDistanceInMiles || 0;
|
|
218
220
|
const flightTime = calculateTravelTime(tripDistanceInMiles, exports.AVERAGE_AIR_SPEED);
|
|
219
221
|
let tripAirSegments = [];
|
|
@@ -433,7 +435,7 @@ class TransportationRequest {
|
|
|
433
435
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5;
|
|
434
436
|
const recoveryTimeInMinutes = this.transportationRequestType === TransportRequestType.ONE_WAY
|
|
435
437
|
? luxon_1.Duration.fromObject({ minutes: 0 })
|
|
436
|
-
: (_a = exports.RECOVERY_TIME_DURATION[this.recoveryType]) !== null && _a !== void 0 ? _a : luxon_1.Duration.fromObject({ hours: 3, minutes: 0 });
|
|
438
|
+
: ((_a = exports.RECOVERY_TIME_DURATION[this.recoveryType]) !== null && _a !== void 0 ? _a : luxon_1.Duration.fromObject({ hours: 3, minutes: 0 }));
|
|
437
439
|
const localAirportLocation = {
|
|
438
440
|
id: "1234",
|
|
439
441
|
displayName: `${(_b = this.recipientFacility) === null || _b === void 0 ? void 0 : _b.city} area airport`,
|
package/dist/types/User.d.ts
CHANGED
|
@@ -91,7 +91,7 @@ export declare class User implements IUser {
|
|
|
91
91
|
sidebarItems?: SidebarItem[] | undefined;
|
|
92
92
|
createdAt?: number;
|
|
93
93
|
updatedAt?: number;
|
|
94
|
-
constructor(
|
|
94
|
+
constructor(user: IUser);
|
|
95
95
|
isAvailableForNotifications(): boolean;
|
|
96
96
|
}
|
|
97
97
|
export declare class ResetPassword {
|
package/dist/types/User.js
CHANGED
|
@@ -36,38 +36,38 @@ var UserStatus;
|
|
|
36
36
|
UserStatus["DELETED"] = "deleted";
|
|
37
37
|
})(UserStatus = exports.UserStatus || (exports.UserStatus = {}));
|
|
38
38
|
class User {
|
|
39
|
-
constructor(
|
|
40
|
-
this.id = id;
|
|
41
|
-
this.workOsId = workOsId;
|
|
42
|
-
this.primaryEmail = primaryEmail;
|
|
43
|
-
this.secondaryEmail = secondaryEmail || undefined;
|
|
44
|
-
this.firstName = firstName;
|
|
45
|
-
this.lastName = lastName;
|
|
46
|
-
this.title = title;
|
|
47
|
-
this.primaryPhoneNumber = primaryPhoneNumber;
|
|
48
|
-
this.secondaryPhoneNumber = secondaryPhoneNumber || undefined;
|
|
49
|
-
this.privacyAgreedOnDate = privacyAgreedOnDate;
|
|
50
|
-
this.termsAgreedOnDate = termsAgreedOnDate;
|
|
51
|
-
this.organizationId = organizationId;
|
|
52
|
-
this.role = role;
|
|
53
|
-
this.addedByUserId = addedByUserId;
|
|
54
|
-
this.addedOnDate = addedOnDate;
|
|
55
|
-
this.lastLoginDate = lastLoginDate;
|
|
39
|
+
constructor(user) {
|
|
40
|
+
this.id = user.id;
|
|
41
|
+
this.workOsId = user.workOsId;
|
|
42
|
+
this.primaryEmail = user.primaryEmail;
|
|
43
|
+
this.secondaryEmail = user.secondaryEmail || undefined;
|
|
44
|
+
this.firstName = user.firstName;
|
|
45
|
+
this.lastName = user.lastName;
|
|
46
|
+
this.title = user.title;
|
|
47
|
+
this.primaryPhoneNumber = user.primaryPhoneNumber;
|
|
48
|
+
this.secondaryPhoneNumber = user.secondaryPhoneNumber || undefined;
|
|
49
|
+
this.privacyAgreedOnDate = user.privacyAgreedOnDate;
|
|
50
|
+
this.termsAgreedOnDate = user.termsAgreedOnDate;
|
|
51
|
+
this.organizationId = user.organizationId;
|
|
52
|
+
this.role = user.role;
|
|
53
|
+
this.addedByUserId = user.addedByUserId;
|
|
54
|
+
this.addedOnDate = user.addedOnDate;
|
|
55
|
+
this.lastLoginDate = user.lastLoginDate;
|
|
56
56
|
this.notificationSettings = {
|
|
57
|
-
email: notificationSettings.email || false,
|
|
58
|
-
text: notificationSettings.text || false,
|
|
59
|
-
voice: notificationSettings.voice || false,
|
|
60
|
-
inApp: notificationSettings.inApp || true,
|
|
61
|
-
snoozeUntil: notificationSettings.snoozeUntil || 0,
|
|
62
|
-
snoozeUntilTimezone: notificationSettings.snoozeUntilTimezone || "UTC",
|
|
57
|
+
email: user.notificationSettings.email || false,
|
|
58
|
+
text: user.notificationSettings.text || false,
|
|
59
|
+
voice: user.notificationSettings.voice || false,
|
|
60
|
+
inApp: user.notificationSettings.inApp || true,
|
|
61
|
+
snoozeUntil: user.notificationSettings.snoozeUntil || 0,
|
|
62
|
+
snoozeUntilTimezone: user.notificationSettings.snoozeUntilTimezone || "UTC",
|
|
63
63
|
};
|
|
64
|
-
this.verifiedEmail = verifiedEmail || false;
|
|
65
|
-
this.status = status || UserStatus.CREATED;
|
|
66
|
-
this.chatToken = chatToken || undefined;
|
|
67
|
-
this.chatUserId = chatUserId || undefined;
|
|
68
|
-
this.sidebarItems = sidebarItems || undefined;
|
|
69
|
-
this.createdAt = createdAt;
|
|
70
|
-
this.updatedAt = updatedAt;
|
|
64
|
+
this.verifiedEmail = user.verifiedEmail || false;
|
|
65
|
+
this.status = user.status || UserStatus.CREATED;
|
|
66
|
+
this.chatToken = user.chatToken || undefined;
|
|
67
|
+
this.chatUserId = user.chatUserId || undefined;
|
|
68
|
+
this.sidebarItems = user.sidebarItems || undefined;
|
|
69
|
+
this.createdAt = user.createdAt;
|
|
70
|
+
this.updatedAt = user.updatedAt;
|
|
71
71
|
}
|
|
72
72
|
isAvailableForNotifications() {
|
|
73
73
|
const now = luxon_1.DateTime.now().toMillis();
|