@spytecgps/nova-orm 1.3.55 → 1.3.56
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/dist/types/enums.d.ts
CHANGED
package/dist/types/security.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseSelectQueryParams } from './common';
|
|
2
|
-
import { HapnSecurityRole } from './enums';
|
|
2
|
+
import { AccessType, HapnSecurityRole } from './enums';
|
|
3
3
|
export interface GetUserRolesParams extends BaseSelectQueryParams {
|
|
4
4
|
filters: {
|
|
5
5
|
userId: string;
|
|
@@ -22,18 +22,25 @@ export interface UserIsAdminOrOwnerParams extends BaseSelectQueryParams {
|
|
|
22
22
|
userId: string;
|
|
23
23
|
};
|
|
24
24
|
}
|
|
25
|
+
export declare const oneRequiredUserRoleParamsAttributes: string[];
|
|
25
26
|
export interface UpdateUserRoleParams {
|
|
26
27
|
filters: {
|
|
27
28
|
userId: string;
|
|
28
29
|
};
|
|
29
30
|
values: {
|
|
30
|
-
roleId
|
|
31
|
+
roleId?: number;
|
|
32
|
+
devicesAccess?: AccessType;
|
|
33
|
+
boundariesAccess?: AccessType;
|
|
34
|
+
minAccessDate?: Date;
|
|
31
35
|
};
|
|
32
36
|
}
|
|
33
37
|
export interface CreateUserRoleParams {
|
|
34
38
|
userId: string;
|
|
35
39
|
clientId: number;
|
|
36
40
|
roleId: number;
|
|
41
|
+
devicesAccess?: AccessType;
|
|
42
|
+
boundariesAccess?: AccessType;
|
|
43
|
+
minAccessDate?: Date;
|
|
37
44
|
}
|
|
38
45
|
export interface RemoveUserRolesParams {
|
|
39
46
|
filters: {
|