@pulsecharterconnect/types 0.0.10 → 0.0.12
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/User.d.ts +46 -0
- package/dist/types/User.js +30 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.js +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export type NotificationSettings = {
|
|
2
|
+
email: boolean;
|
|
3
|
+
text: boolean;
|
|
4
|
+
voice: boolean;
|
|
5
|
+
inApp: boolean;
|
|
6
|
+
};
|
|
7
|
+
export type Role = "Super Admin" | "Transplant Center Coordinator" | "Transportation Operator Coordinator";
|
|
8
|
+
export interface IUser {
|
|
9
|
+
id: string;
|
|
10
|
+
workOsId: string;
|
|
11
|
+
primaryEmail: string;
|
|
12
|
+
secondaryEmail?: string;
|
|
13
|
+
firstName: string;
|
|
14
|
+
lastName: string;
|
|
15
|
+
title: string;
|
|
16
|
+
primaryPhoneNumber: string;
|
|
17
|
+
secondaryPhoneNumber?: string;
|
|
18
|
+
privacyAgreedOnDate?: number;
|
|
19
|
+
termsAgreedOnDate?: number;
|
|
20
|
+
organizationId: string;
|
|
21
|
+
role: Role;
|
|
22
|
+
addedByUserId: string;
|
|
23
|
+
addedOnDate: number;
|
|
24
|
+
lastLoginDate?: number;
|
|
25
|
+
notificationSettings: NotificationSettings;
|
|
26
|
+
}
|
|
27
|
+
export declare class User implements IUser {
|
|
28
|
+
id: string;
|
|
29
|
+
workOsId: string;
|
|
30
|
+
primaryEmail: string;
|
|
31
|
+
secondaryEmail?: string;
|
|
32
|
+
firstName: string;
|
|
33
|
+
lastName: string;
|
|
34
|
+
title: string;
|
|
35
|
+
primaryPhoneNumber: string;
|
|
36
|
+
secondaryPhoneNumber?: string;
|
|
37
|
+
privacyAgreedOnDate?: number;
|
|
38
|
+
termsAgreedOnDate?: number;
|
|
39
|
+
organizationId: string;
|
|
40
|
+
role: Role;
|
|
41
|
+
addedByUserId: string;
|
|
42
|
+
addedOnDate: number;
|
|
43
|
+
lastLoginDate?: number;
|
|
44
|
+
notificationSettings: NotificationSettings;
|
|
45
|
+
constructor({ id, workOsId, primaryEmail, secondaryEmail, firstName, lastName, title, primaryPhoneNumber, secondaryPhoneNumber, privacyAgreedOnDate, termsAgreedOnDate, organizationId, role, addedByUserId, addedOnDate, lastLoginDate, notificationSettings }: IUser);
|
|
46
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.User = void 0;
|
|
4
|
+
class User {
|
|
5
|
+
constructor({ id, workOsId, primaryEmail, secondaryEmail, firstName, lastName, title, primaryPhoneNumber, secondaryPhoneNumber, privacyAgreedOnDate, termsAgreedOnDate, organizationId, role, addedByUserId, addedOnDate, lastLoginDate, notificationSettings }) {
|
|
6
|
+
this.id = id;
|
|
7
|
+
this.workOsId = workOsId;
|
|
8
|
+
this.primaryEmail = primaryEmail;
|
|
9
|
+
this.secondaryEmail = secondaryEmail || undefined;
|
|
10
|
+
this.firstName = firstName;
|
|
11
|
+
this.lastName = lastName;
|
|
12
|
+
this.title = title;
|
|
13
|
+
this.primaryPhoneNumber = primaryPhoneNumber;
|
|
14
|
+
this.secondaryPhoneNumber = secondaryPhoneNumber || undefined;
|
|
15
|
+
this.privacyAgreedOnDate = privacyAgreedOnDate;
|
|
16
|
+
this.termsAgreedOnDate = termsAgreedOnDate;
|
|
17
|
+
this.organizationId = organizationId;
|
|
18
|
+
this.role = role;
|
|
19
|
+
this.addedByUserId = addedByUserId;
|
|
20
|
+
this.addedOnDate = addedOnDate;
|
|
21
|
+
this.lastLoginDate = lastLoginDate;
|
|
22
|
+
this.notificationSettings = {
|
|
23
|
+
email: notificationSettings.email || false,
|
|
24
|
+
text: notificationSettings.text || false,
|
|
25
|
+
voice: notificationSettings.voice || false,
|
|
26
|
+
inApp: notificationSettings.inApp || true,
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.User = User;
|
package/dist/types/index.d.ts
CHANGED
package/dist/types/index.js
CHANGED