@unidoc-health/user 2.3.2 → 2.3.3
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/lib/index.d.ts +10 -1
- package/lib/index.js +21 -6
- package/package.json +2 -2
package/lib/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Role, RoleDictionary } from '@
|
|
1
|
+
import { Role, RoleDictionary } from '@unidoc-health/role';
|
|
2
2
|
|
|
3
3
|
declare module '@unidoc-health/user' {
|
|
4
4
|
export interface IUserAdapter {
|
|
@@ -37,6 +37,11 @@ declare module '@unidoc-health/user' {
|
|
|
37
37
|
role?: string;
|
|
38
38
|
npi?: string;
|
|
39
39
|
force_change_password?: boolean;
|
|
40
|
+
|
|
41
|
+
emr_username?: string;
|
|
42
|
+
userType?: string;
|
|
43
|
+
migratedToIKC ? : string;
|
|
44
|
+
|
|
40
45
|
[key: string]: any;
|
|
41
46
|
}
|
|
42
47
|
|
|
@@ -54,6 +59,10 @@ declare module '@unidoc-health/user' {
|
|
|
54
59
|
public force_change_password: boolean;
|
|
55
60
|
public meta: { [key: string]: any };
|
|
56
61
|
|
|
62
|
+
public emr_username?: string;
|
|
63
|
+
public userType?: string;
|
|
64
|
+
public migratedToIKC? : string;
|
|
65
|
+
|
|
57
66
|
constructor(owner: UserProvider, base: Partial<User>);
|
|
58
67
|
hasPermission(permission: string): Promise<boolean>;
|
|
59
68
|
save(update?: boolean): Promise<void>;
|
package/lib/index.js
CHANGED
|
@@ -5,13 +5,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.UserProvider = exports.User = void 0;
|
|
7
7
|
|
|
8
|
-
var _role = require("@
|
|
8
|
+
var _role = require("@unidoc-health/role");
|
|
9
9
|
|
|
10
10
|
var _bcrypt = _interopRequireDefault(require("bcrypt"));
|
|
11
11
|
|
|
12
12
|
var _debug = _interopRequireDefault(require("debug"));
|
|
13
13
|
|
|
14
|
-
const _excluded = ["org", "sub", "password", "username", "firstname", "lastname", "role", "npi", "force_change_password"];
|
|
14
|
+
const _excluded = ["org", "sub", "password", "username", "firstname", "lastname", "role", "npi", "force_change_password", "emr_username", "userType", "migratedToIKC"];
|
|
15
15
|
|
|
16
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
17
|
|
|
@@ -133,7 +133,10 @@ class User {
|
|
|
133
133
|
lastname: null,
|
|
134
134
|
role: null,
|
|
135
135
|
npi: null,
|
|
136
|
-
force_change_password: null
|
|
136
|
+
force_change_password: null,
|
|
137
|
+
emr_username: null,
|
|
138
|
+
userType: null,
|
|
139
|
+
migratedToIKC: null
|
|
137
140
|
}) {
|
|
138
141
|
let {
|
|
139
142
|
org,
|
|
@@ -144,7 +147,10 @@ class User {
|
|
|
144
147
|
lastname,
|
|
145
148
|
role,
|
|
146
149
|
npi,
|
|
147
|
-
force_change_password
|
|
150
|
+
force_change_password,
|
|
151
|
+
emr_username,
|
|
152
|
+
userType,
|
|
153
|
+
migratedToIKC
|
|
148
154
|
} = _ref,
|
|
149
155
|
base = _objectWithoutProperties(_ref, _excluded);
|
|
150
156
|
|
|
@@ -165,6 +171,9 @@ class User {
|
|
|
165
171
|
this.npi = npi;
|
|
166
172
|
this.force_change_password = force_change_password;
|
|
167
173
|
this.meta = {};
|
|
174
|
+
this.emr_username = emr_username;
|
|
175
|
+
this.userType = userType;
|
|
176
|
+
this.migratedToIKC = migratedToIKC;
|
|
168
177
|
Object.assign(this.meta, base);
|
|
169
178
|
}
|
|
170
179
|
|
|
@@ -195,7 +204,10 @@ class User {
|
|
|
195
204
|
lastname,
|
|
196
205
|
role,
|
|
197
206
|
npi,
|
|
198
|
-
force_change_password
|
|
207
|
+
force_change_password,
|
|
208
|
+
emr_username,
|
|
209
|
+
userType,
|
|
210
|
+
migratedToIKC
|
|
199
211
|
} = this;
|
|
200
212
|
return {
|
|
201
213
|
org,
|
|
@@ -205,7 +217,10 @@ class User {
|
|
|
205
217
|
lastname,
|
|
206
218
|
role,
|
|
207
219
|
npi,
|
|
208
|
-
force_change_password
|
|
220
|
+
force_change_password,
|
|
221
|
+
emr_username,
|
|
222
|
+
userType,
|
|
223
|
+
migratedToIKC
|
|
209
224
|
};
|
|
210
225
|
}
|
|
211
226
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unidoc-health/user",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.3",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"author": "",
|
|
16
16
|
"license": "ISC",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@
|
|
18
|
+
"@unidoc-health/role": "^2.0.2",
|
|
19
19
|
"bcrypt": "^5.0.1",
|
|
20
20
|
"debug": "^4.1.1",
|
|
21
21
|
"flat": "^5.0.0",
|