asv-hlps 1.2.42 → 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 +3 -2
- package/lib/cjs/index.d.ts +2 -2
- package/lib/cjs/index.js +4 -2
- package/lib/esm/auth.d.ts +3 -2
- package/lib/esm/auth.js +2 -1
- package/lib/esm/index.d.ts +2 -2
- package/lib/esm/index.js +3 -2
- package/package.json +1 -1
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
|
-
|
|
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
|
-
|
|
15
|
+
declare const getAuth: (authUser: User | UserNotarial, authSte: string[], param?: AuthParam) => boolean;
|
|
16
|
+
export { AuthParam, getAuth };
|
package/lib/cjs/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { AuthParam, getAuth } from "./auth";
|
|
1
2
|
import { HlpEntry } from "./helpers/hlpEntry";
|
|
2
3
|
import HlpProduct from "./helpers/hlpProduct";
|
|
3
4
|
import AmountOnBillPipe from "./helpers/pipes/amount-on-bill-pipe";
|
|
@@ -22,7 +23,6 @@ import "./sale";
|
|
|
22
23
|
import "./services/authService";
|
|
23
24
|
import "./user";
|
|
24
25
|
import "./utils";
|
|
25
|
-
export * from "./auth";
|
|
26
26
|
export * from "./bill";
|
|
27
27
|
export * from "./bootstrap";
|
|
28
28
|
export * from "./core/estates/index";
|
|
@@ -37,4 +37,4 @@ export * from "./react-utils";
|
|
|
37
37
|
export * from "./sale";
|
|
38
38
|
export * from "./user";
|
|
39
39
|
export * from "./utils";
|
|
40
|
-
export { AuthService, StorageService, CapacitorStorageService, HlpProduct, HlpEntry, StockPipe, AmountOnListBillPipe, AmountOnBillPipe };
|
|
40
|
+
export { AuthParam, getAuth, AuthService, StorageService, CapacitorStorageService, HlpProduct, HlpEntry, StockPipe, AmountOnListBillPipe, AmountOnBillPipe, };
|
package/lib/cjs/index.js
CHANGED
|
@@ -17,7 +17,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
17
17
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
18
18
|
};
|
|
19
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
-
exports.AmountOnBillPipe = exports.AmountOnListBillPipe = exports.StockPipe = exports.HlpEntry = exports.HlpProduct = exports.CapacitorStorageService = exports.StorageService = exports.AuthService = void 0;
|
|
20
|
+
exports.AmountOnBillPipe = exports.AmountOnListBillPipe = exports.StockPipe = exports.HlpEntry = exports.HlpProduct = exports.CapacitorStorageService = exports.StorageService = exports.AuthService = exports.getAuth = void 0;
|
|
21
|
+
const auth_1 = require("./auth");
|
|
22
|
+
Object.defineProperty(exports, "getAuth", { enumerable: true, get: function () { return auth_1.getAuth; } });
|
|
21
23
|
const hlpEntry_1 = require("./helpers/hlpEntry");
|
|
22
24
|
Object.defineProperty(exports, "HlpEntry", { enumerable: true, get: function () { return hlpEntry_1.HlpEntry; } });
|
|
23
25
|
const hlpProduct_1 = __importDefault(require("./helpers/hlpProduct"));
|
|
@@ -53,7 +55,7 @@ require("./sale");
|
|
|
53
55
|
require("./services/authService");
|
|
54
56
|
require("./user");
|
|
55
57
|
require("./utils");
|
|
56
|
-
|
|
58
|
+
// export * from "./auth";
|
|
57
59
|
__exportStar(require("./bill"), exports);
|
|
58
60
|
__exportStar(require("./bootstrap"), exports);
|
|
59
61
|
__exportStar(require("./core/estates/index"), exports);
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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 };
|
package/lib/esm/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { AuthParam, getAuth } from "./auth";
|
|
1
2
|
import { HlpEntry } from "./helpers/hlpEntry";
|
|
2
3
|
import HlpProduct from "./helpers/hlpProduct";
|
|
3
4
|
import AmountOnBillPipe from "./helpers/pipes/amount-on-bill-pipe";
|
|
@@ -22,7 +23,6 @@ import "./sale";
|
|
|
22
23
|
import "./services/authService";
|
|
23
24
|
import "./user";
|
|
24
25
|
import "./utils";
|
|
25
|
-
export * from "./auth";
|
|
26
26
|
export * from "./bill";
|
|
27
27
|
export * from "./bootstrap";
|
|
28
28
|
export * from "./core/estates/index";
|
|
@@ -37,4 +37,4 @@ export * from "./react-utils";
|
|
|
37
37
|
export * from "./sale";
|
|
38
38
|
export * from "./user";
|
|
39
39
|
export * from "./utils";
|
|
40
|
-
export { AuthService, StorageService, CapacitorStorageService, HlpProduct, HlpEntry, StockPipe, AmountOnListBillPipe, AmountOnBillPipe };
|
|
40
|
+
export { AuthParam, getAuth, AuthService, StorageService, CapacitorStorageService, HlpProduct, HlpEntry, StockPipe, AmountOnListBillPipe, AmountOnBillPipe, };
|
package/lib/esm/index.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { getAuth } from "./auth";
|
|
1
2
|
import { HlpEntry } from "./helpers/hlpEntry";
|
|
2
3
|
import HlpProduct from "./helpers/hlpProduct";
|
|
3
4
|
import AmountOnBillPipe from "./helpers/pipes/amount-on-bill-pipe";
|
|
@@ -25,7 +26,7 @@ import "./sale";
|
|
|
25
26
|
import "./services/authService";
|
|
26
27
|
import "./user";
|
|
27
28
|
import "./utils";
|
|
28
|
-
export * from "./auth";
|
|
29
|
+
// export * from "./auth";
|
|
29
30
|
export * from "./bill";
|
|
30
31
|
export * from "./bootstrap";
|
|
31
32
|
export * from "./core/estates/index";
|
|
@@ -41,4 +42,4 @@ export * from "./sale";
|
|
|
41
42
|
export * from "./user";
|
|
42
43
|
export * from "./utils";
|
|
43
44
|
// export * from "./helpers/hlpProduct";
|
|
44
|
-
export { AuthService, StorageService, CapacitorStorageService, HlpProduct, HlpEntry, StockPipe, AmountOnListBillPipe, AmountOnBillPipe };
|
|
45
|
+
export { getAuth, AuthService, StorageService, CapacitorStorageService, HlpProduct, HlpEntry, StockPipe, AmountOnListBillPipe, AmountOnBillPipe, };
|