asv-hlps 1.2.88 → 1.2.90

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/cjs/auth.d.ts CHANGED
@@ -12,6 +12,7 @@ interface AuthParam {
12
12
  roles?: string[];
13
13
  steGrps?: string[];
14
14
  };
15
+ rolesClient?: string[];
15
16
  steGrps?: string[];
16
17
  steNames?: string[];
17
18
  url?: string;
@@ -16,5 +16,6 @@ export declare class AuthService {
16
16
  logout: () => boolean;
17
17
  authUser: () => any;
18
18
  getAuth: (param?: AuthParam) => boolean;
19
+ getAuthWithClient: ({ tag, roles, rolesClient, steGrps }: AuthParam) => boolean;
19
20
  }
20
21
  export {};
@@ -77,6 +77,9 @@ class AuthService {
77
77
  this.getAuth = (param) => {
78
78
  return (0, auth_1.getAuth)(this.authUser(), this.authStes, param);
79
79
  };
80
+ this.getAuthWithClient = ({ tag, roles, rolesClient, steGrps }) => {
81
+ return this.getAuth({ tag: tag, roles: roles }) || this.getAuth({ tag: tag, client: { roles: rolesClient }, steGrps: steGrps });
82
+ };
80
83
  this.tokenKey = tokenkey;
81
84
  this.authStes = authStes;
82
85
  capacitor = capacitor;
package/lib/esm/auth.d.ts CHANGED
@@ -12,6 +12,7 @@ interface AuthParam {
12
12
  roles?: string[];
13
13
  steGrps?: string[];
14
14
  };
15
+ rolesClient?: string[];
15
16
  steGrps?: string[];
16
17
  steNames?: string[];
17
18
  url?: string;
@@ -16,5 +16,6 @@ export declare class AuthService {
16
16
  logout: () => boolean;
17
17
  authUser: () => any;
18
18
  getAuth: (param?: AuthParam) => boolean;
19
+ getAuthWithClient: ({ tag, roles, rolesClient, steGrps }: AuthParam) => boolean;
19
20
  }
20
21
  export {};
@@ -71,6 +71,9 @@ export class AuthService {
71
71
  this.getAuth = (param) => {
72
72
  return getAuth(this.authUser(), this.authStes, param);
73
73
  };
74
+ this.getAuthWithClient = ({ tag, roles, rolesClient, steGrps }) => {
75
+ return this.getAuth({ tag: tag, roles: roles }) || this.getAuth({ tag: tag, client: { roles: rolesClient }, steGrps: steGrps });
76
+ };
74
77
  this.tokenKey = tokenkey;
75
78
  this.authStes = authStes;
76
79
  capacitor = capacitor;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "asv-hlps",
3
- "version": "1.2.88",
3
+ "version": "1.2.90",
4
4
  "description": "helpers",
5
5
  "main": "./lib/cjs/index.js",
6
6
  "module": "./lib/esm/index.js",