@spytecgps/nova-orm 1.3.76 → 1.3.78
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/index.js +1 -1
- package/dist/types/common.d.ts +6 -0
- package/dist/types/security.d.ts +8 -8
- package/package.json +1 -1
package/dist/types/common.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ReplicationMode } from 'typeorm';
|
|
1
2
|
export interface BaseSelectQueryParams {
|
|
2
3
|
queryOptions?: {
|
|
3
4
|
forceUseReplica?: boolean;
|
|
@@ -15,3 +16,8 @@ export interface OptionalReportPagination extends BaseSelectQueryParams {
|
|
|
15
16
|
pageIndex?: number;
|
|
16
17
|
};
|
|
17
18
|
}
|
|
19
|
+
export interface BaseSelectQueryParamsV2 {
|
|
20
|
+
queryOptions?: {
|
|
21
|
+
replicationMode?: ReplicationMode;
|
|
22
|
+
};
|
|
23
|
+
}
|
package/dist/types/security.d.ts
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { AccessType } from '../entities/userSecurityRole';
|
|
2
|
-
import {
|
|
2
|
+
import { BaseSelectQueryParamsV2 } from './common';
|
|
3
3
|
import { HapnSecurityRole } from './enums';
|
|
4
|
-
export interface GetUserRolesParams extends
|
|
4
|
+
export interface GetUserRolesParams extends BaseSelectQueryParamsV2 {
|
|
5
5
|
filters: {
|
|
6
6
|
userId: string;
|
|
7
7
|
};
|
|
8
8
|
}
|
|
9
|
-
export interface GetUserRolesByClientIdParams extends
|
|
9
|
+
export interface GetUserRolesByClientIdParams extends BaseSelectQueryParamsV2 {
|
|
10
10
|
filters: {
|
|
11
11
|
clientId: number;
|
|
12
12
|
role?: HapnSecurityRole;
|
|
13
13
|
};
|
|
14
14
|
}
|
|
15
|
-
export interface UserIsInRoleParams extends
|
|
15
|
+
export interface UserIsInRoleParams extends BaseSelectQueryParamsV2 {
|
|
16
16
|
filters: {
|
|
17
17
|
userId: string;
|
|
18
18
|
role: HapnSecurityRole;
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
|
-
export interface UserIsAdminOrOwnerParams extends
|
|
21
|
+
export interface UserIsAdminOrOwnerParams extends BaseSelectQueryParamsV2 {
|
|
22
22
|
filters: {
|
|
23
23
|
userId: string;
|
|
24
24
|
};
|
|
@@ -48,7 +48,7 @@ export interface RemoveUserRolesParams {
|
|
|
48
48
|
userId: string;
|
|
49
49
|
};
|
|
50
50
|
}
|
|
51
|
-
export interface GetAuthorizedResourcesByUserIdParams extends
|
|
51
|
+
export interface GetAuthorizedResourcesByUserIdParams extends BaseSelectQueryParamsV2 {
|
|
52
52
|
filters: {
|
|
53
53
|
userId?: string;
|
|
54
54
|
securityGroupId?: number;
|
|
@@ -83,14 +83,14 @@ export interface BulkRemoveUserAuthorizedBoundariesParams {
|
|
|
83
83
|
};
|
|
84
84
|
}
|
|
85
85
|
export declare const requiredGetUserIdsByClientIdAndAuthorizedDevicesParamsAttributes: string[];
|
|
86
|
-
export interface GetUserIdsByClientIdAndAuthorizedDevicesParams extends
|
|
86
|
+
export interface GetUserIdsByClientIdAndAuthorizedDevicesParams extends BaseSelectQueryParamsV2 {
|
|
87
87
|
filters: {
|
|
88
88
|
clientId: number;
|
|
89
89
|
imeisList: string[];
|
|
90
90
|
};
|
|
91
91
|
}
|
|
92
92
|
export declare const requiredGetUserIdsByClientIdAndAuthorizedBoundariesParamsAttributes: string[];
|
|
93
|
-
export interface GetUserIdsByClientIdAndAuthorizedBoundariesParams extends
|
|
93
|
+
export interface GetUserIdsByClientIdAndAuthorizedBoundariesParams extends BaseSelectQueryParamsV2 {
|
|
94
94
|
filters: {
|
|
95
95
|
clientId: number;
|
|
96
96
|
boundaryIdList: number[];
|