@eaccess/auth 0.1.11 → 0.1.13

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/index.d.cts CHANGED
@@ -214,13 +214,13 @@ declare const AuthRole: {
214
214
  readonly Consultant: 8;
215
215
  readonly Consumer: 16;
216
216
  readonly Contributor: 32;
217
- readonly Coordinator: 64;
217
+ readonly Owner: 64;
218
218
  readonly Creator: 128;
219
219
  readonly Developer: 256;
220
220
  readonly Director: 512;
221
221
  readonly Editor: 1024;
222
222
  readonly Employee: 2048;
223
- readonly Maintainer: 4096;
223
+ readonly Member: 4096;
224
224
  readonly Manager: 8192;
225
225
  readonly Moderator: 16384;
226
226
  readonly Publisher: 32768;
@@ -328,6 +328,7 @@ interface AuthManager$1 {
328
328
  email?: string;
329
329
  userId?: string;
330
330
  }, expiresAfter?: string | number | null, callback?: TokenCallback): Promise<void>;
331
+ userExistsByEmail(email: string): Promise<boolean>;
331
332
  forceLogoutForUserBy(identifier: {
332
333
  accountId?: number;
333
334
  email?: string;
package/dist/index.d.ts CHANGED
@@ -214,13 +214,13 @@ declare const AuthRole: {
214
214
  readonly Consultant: 8;
215
215
  readonly Consumer: 16;
216
216
  readonly Contributor: 32;
217
- readonly Coordinator: 64;
217
+ readonly Owner: 64;
218
218
  readonly Creator: 128;
219
219
  readonly Developer: 256;
220
220
  readonly Director: 512;
221
221
  readonly Editor: 1024;
222
222
  readonly Employee: 2048;
223
- readonly Maintainer: 4096;
223
+ readonly Member: 4096;
224
224
  readonly Manager: 8192;
225
225
  readonly Moderator: 16384;
226
226
  readonly Publisher: 32768;
@@ -328,6 +328,7 @@ interface AuthManager$1 {
328
328
  email?: string;
329
329
  userId?: string;
330
330
  }, expiresAfter?: string | number | null, callback?: TokenCallback): Promise<void>;
331
+ userExistsByEmail(email: string): Promise<boolean>;
331
332
  forceLogoutForUserBy(identifier: {
332
333
  accountId?: number;
333
334
  email?: string;
package/dist/index.js CHANGED
@@ -31,13 +31,13 @@ var AuthRole = {
31
31
  Consultant: 8,
32
32
  Consumer: 16,
33
33
  Contributor: 32,
34
- Coordinator: 64,
34
+ Owner: 64,
35
35
  Creator: 128,
36
36
  Developer: 256,
37
37
  Director: 512,
38
38
  Editor: 1024,
39
39
  Employee: 2048,
40
- Maintainer: 4096,
40
+ Member: 4096,
41
41
  Manager: 8192,
42
42
  Moderator: 16384,
43
43
  Publisher: 32768,