asv-hlps 1.2.43 → 1.2.45
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/bootstrap.d.ts +1 -1
- package/lib/cjs/index.d.ts +1 -0
- package/lib/cjs/index.js +1 -1
- package/lib/esm/auth.d.ts +3 -2
- package/lib/esm/auth.js +2 -1
- package/lib/esm/bootstrap.d.ts +1 -1
- package/lib/esm/index.d.ts +1 -0
- package/lib/esm/index.js +1 -1
- 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/bootstrap.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare type
|
|
1
|
+
export declare type VariantType = "warning" | "purple" | "secondary" | "pink" | "primary" | "success" | "danger" | "info";
|
package/lib/cjs/index.d.ts
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
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/bootstrap.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare type
|
|
1
|
+
export declare type VariantType = "warning" | "purple" | "secondary" | "pink" | "primary" | "success" | "danger" | "info";
|
package/lib/esm/index.d.ts
CHANGED
|
@@ -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
|
-
|
|
10
|
+
import "./auth";
|
|
11
11
|
import "./bill";
|
|
12
12
|
import "./bootstrap";
|
|
13
13
|
// import "./models/entities/estates/index";
|