asv-hlps 1.2.43 → 1.2.44

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
@@ -1,6 +1,6 @@
1
1
  import { User } from "./models/entities/users/User";
2
2
  import { UserNotarial } from "./models/entities/users/UserNotatial";
3
- export interface AuthParam {
3
+ interface AuthParam {
4
4
  tag?: string;
5
5
  roles?: string[];
6
6
  grps?: string[];
@@ -12,4 +12,5 @@ export interface AuthParam {
12
12
  steNames?: string[];
13
13
  url?: string;
14
14
  }
15
- export declare const getAuth: (authUser: User | UserNotarial, authSte: string[], param?: AuthParam) => boolean;
15
+ declare const getAuth: (authUser: User | UserNotarial, authSte: string[], param?: AuthParam) => boolean;
16
+ export { AuthParam, getAuth };
@@ -7,6 +7,7 @@ import StockPipe from "./helpers/pipes/stock-pipe";
7
7
  import { AuthService } from "./services/authService";
8
8
  import CapacitorStorageService from "./services/capacitorStorageService";
9
9
  import StorageService from "./services/storageService";
10
+ import "./auth";
10
11
  import "./bill";
11
12
  import "./bootstrap";
12
13
  import "./models/index";
package/lib/cjs/index.js CHANGED
@@ -36,7 +36,7 @@ const capacitorStorageService_1 = __importDefault(require("./services/capacitorS
36
36
  exports.CapacitorStorageService = capacitorStorageService_1.default;
37
37
  const storageService_1 = __importDefault(require("./services/storageService"));
38
38
  exports.StorageService = storageService_1.default;
39
- // import "./auth";
39
+ require("./auth");
40
40
  require("./bill");
41
41
  require("./bootstrap");
42
42
  // import "./models/entities/estates/index";
package/lib/esm/auth.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { User } from "./models/entities/users/User";
2
2
  import { UserNotarial } from "./models/entities/users/UserNotatial";
3
- export interface AuthParam {
3
+ interface AuthParam {
4
4
  tag?: string;
5
5
  roles?: string[];
6
6
  grps?: string[];
@@ -12,4 +12,5 @@ export interface AuthParam {
12
12
  steNames?: string[];
13
13
  url?: string;
14
14
  }
15
- export declare const getAuth: (authUser: User | UserNotarial, authSte: string[], param?: AuthParam) => boolean;
15
+ declare const getAuth: (authUser: User | UserNotarial, authSte: string[], param?: AuthParam) => boolean;
16
+ export { AuthParam, getAuth };
package/lib/esm/auth.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { isStaffSte } from "./user";
2
- export const getAuth = (authUser, authSte, param) => {
2
+ const getAuth = (authUser, authSte, param) => {
3
3
  var _a, _b, _c, _d, _e, _f;
4
4
  // let auth: boolean = false;
5
5
  if ((param === null || param === void 0 ? void 0 : param.tag) && (authUser === null || authUser === void 0 ? void 0 : authUser.tags)) {
@@ -55,3 +55,4 @@ export const getAuth = (authUser, authSte, param) => {
55
55
  auth = (param.steGrps).includes(this.authUser.ste.grp.code.toLowerCase());
56
56
  } */
57
57
  };
58
+ export { getAuth };
@@ -7,6 +7,7 @@ import StockPipe from "./helpers/pipes/stock-pipe";
7
7
  import { AuthService } from "./services/authService";
8
8
  import CapacitorStorageService from "./services/capacitorStorageService";
9
9
  import StorageService from "./services/storageService";
10
+ import "./auth";
10
11
  import "./bill";
11
12
  import "./bootstrap";
12
13
  import "./models/index";
package/lib/esm/index.js CHANGED
@@ -7,7 +7,7 @@ import StockPipe from "./helpers/pipes/stock-pipe";
7
7
  import { AuthService } from "./services/authService";
8
8
  import CapacitorStorageService from "./services/capacitorStorageService";
9
9
  import StorageService from "./services/storageService";
10
- // import "./auth";
10
+ import "./auth";
11
11
  import "./bill";
12
12
  import "./bootstrap";
13
13
  // import "./models/entities/estates/index";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "asv-hlps",
3
- "version": "1.2.43",
3
+ "version": "1.2.44",
4
4
  "description": "helpers",
5
5
  "main": "./lib/cjs/index.js",
6
6
  "module": "./lib/esm/index.js",