@pulsecharterconnect/types 0.0.33 → 0.0.35
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/Notification.d.ts +21 -0
- package/dist/types/Notification.js +16 -0
- package/dist/types/User.d.ts +7 -1
- package/dist/types/User.js +9 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.js +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export interface IInAppNotification {
|
|
2
|
+
id: string;
|
|
3
|
+
userId: string;
|
|
4
|
+
subject: string;
|
|
5
|
+
message: string;
|
|
6
|
+
messageRead: boolean;
|
|
7
|
+
messageReadTime: number;
|
|
8
|
+
createdAt?: number;
|
|
9
|
+
updatedAt?: number;
|
|
10
|
+
}
|
|
11
|
+
export declare class InAppNotification implements IInAppNotification {
|
|
12
|
+
id: string;
|
|
13
|
+
userId: string;
|
|
14
|
+
subject: string;
|
|
15
|
+
message: string;
|
|
16
|
+
messageRead: boolean;
|
|
17
|
+
messageReadTime: number;
|
|
18
|
+
createdAt?: number;
|
|
19
|
+
updatedAt?: number;
|
|
20
|
+
constructor(inAppNotification: IInAppNotification);
|
|
21
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InAppNotification = void 0;
|
|
4
|
+
class InAppNotification {
|
|
5
|
+
constructor(inAppNotification) {
|
|
6
|
+
this.id = inAppNotification.id;
|
|
7
|
+
this.userId = inAppNotification.userId;
|
|
8
|
+
this.subject = inAppNotification.subject;
|
|
9
|
+
this.message = inAppNotification.message;
|
|
10
|
+
this.messageRead = inAppNotification.messageRead;
|
|
11
|
+
this.messageReadTime = inAppNotification.messageReadTime;
|
|
12
|
+
this.createdAt = inAppNotification.createdAt;
|
|
13
|
+
this.updatedAt = inAppNotification.updatedAt;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
exports.InAppNotification = InAppNotification;
|
package/dist/types/User.d.ts
CHANGED
|
@@ -4,7 +4,13 @@ export type NotificationSettings = {
|
|
|
4
4
|
voice: boolean;
|
|
5
5
|
inApp: boolean;
|
|
6
6
|
};
|
|
7
|
-
export
|
|
7
|
+
export declare enum Role {
|
|
8
|
+
SUPER_ADMIN = "Super Admin",
|
|
9
|
+
TRANSPLANT_CENTER_COORDINATOR = "Transplant Center Coordinator",
|
|
10
|
+
TRANSPLANT_CENTER_SURGEON = "Transplant Center Surgeon",
|
|
11
|
+
TRANSPORTATION_OPERATOR_COORDINATOR = "Transportation Operator Coordinator",
|
|
12
|
+
TRANSPORTATION_OPERATOR_AGENT = "Transportation Operator Agent"
|
|
13
|
+
}
|
|
8
14
|
export interface IUser {
|
|
9
15
|
id: string;
|
|
10
16
|
workOsId: string;
|
package/dist/types/User.js
CHANGED
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ResetPassword = exports.User = void 0;
|
|
3
|
+
exports.ResetPassword = exports.User = exports.Role = void 0;
|
|
4
|
+
var Role;
|
|
5
|
+
(function (Role) {
|
|
6
|
+
Role["SUPER_ADMIN"] = "Super Admin";
|
|
7
|
+
Role["TRANSPLANT_CENTER_COORDINATOR"] = "Transplant Center Coordinator";
|
|
8
|
+
Role["TRANSPLANT_CENTER_SURGEON"] = "Transplant Center Surgeon";
|
|
9
|
+
Role["TRANSPORTATION_OPERATOR_COORDINATOR"] = "Transportation Operator Coordinator";
|
|
10
|
+
Role["TRANSPORTATION_OPERATOR_AGENT"] = "Transportation Operator Agent";
|
|
11
|
+
})(Role = exports.Role || (exports.Role = {}));
|
|
4
12
|
class User {
|
|
5
13
|
constructor({ id, workOsId, primaryEmail, secondaryEmail, firstName, lastName, title, primaryPhoneNumber, secondaryPhoneNumber, privacyAgreedOnDate, termsAgreedOnDate, organizationId, role, addedByUserId, addedOnDate, lastLoginDate, notificationSettings, verifiedEmail, createdAt, updatedAt, }) {
|
|
6
14
|
this.id = id;
|
package/dist/types/index.d.ts
CHANGED
package/dist/types/index.js
CHANGED