@tachybase/auth 1.6.1-alpha.1 → 1.6.1-alpha.2

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.
@@ -9,10 +9,13 @@ import { IUserStatusService } from './user-status-service';
9
9
  */
10
10
  export declare class BaseAuth extends Auth {
11
11
  protected userCollection: Collection;
12
+ protected userStatusCollection: Collection;
12
13
  constructor(config: AuthConfig & {
13
14
  userCollection: Collection;
15
+ userStatusCollection: Collection;
14
16
  });
15
17
  get userRepository(): import("@tachybase/database").Repository<any, any>;
18
+ get userStatusRepository(): import("@tachybase/database").Repository<any, any>;
16
19
  get jwt(): JwtService;
17
20
  get tokenController(): ITokenControlService;
18
21
  get userStatusService(): IUserStatusService;
package/lib/base/auth.js CHANGED
@@ -36,13 +36,17 @@ var import_auth = require("../auth");
36
36
  const localeNamespace = "auth";
37
37
  const _BaseAuth = class _BaseAuth extends import_auth.Auth {
38
38
  constructor(config) {
39
- const { userCollection } = config;
39
+ const { userCollection, userStatusCollection } = config;
40
40
  super(config);
41
41
  this.userCollection = userCollection;
42
+ this.userStatusCollection = userStatusCollection;
42
43
  }
43
44
  get userRepository() {
44
45
  return this.userCollection.repository;
45
46
  }
47
+ get userStatusRepository() {
48
+ return this.userStatusCollection.repository;
49
+ }
46
50
  get jwt() {
47
51
  return this.ctx.tego.authManager.jwt;
48
52
  }
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@tachybase/auth",
3
- "version": "1.6.1-alpha.1",
3
+ "version": "1.6.1-alpha.2",
4
4
  "description": "",
5
5
  "license": "Apache-2.0",
6
6
  "main": "./lib/index.js",
7
7
  "types": "./lib/index.d.ts",
8
8
  "dependencies": {
9
9
  "jsonwebtoken": "^8.5.1",
10
- "@tachybase/actions": "1.6.1-alpha.1",
11
- "@tachybase/database": "1.6.1-alpha.1",
12
- "@tachybase/resourcer": "1.6.1-alpha.1",
13
- "@tachybase/utils": "1.6.1-alpha.1"
10
+ "@tachybase/database": "1.6.1-alpha.2",
11
+ "@tachybase/resourcer": "1.6.1-alpha.2",
12
+ "@tachybase/actions": "1.6.1-alpha.2",
13
+ "@tachybase/utils": "1.6.1-alpha.2"
14
14
  },
15
15
  "devDependencies": {
16
16
  "@types/jsonwebtoken": "^8.5.9",