@spytecgps/nova-orm 1.3.77 → 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.
@@ -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
+ }
@@ -1,24 +1,24 @@
1
1
  import { AccessType } from '../entities/userSecurityRole';
2
- import { BaseSelectQueryParams } from './common';
2
+ import { BaseSelectQueryParamsV2 } from './common';
3
3
  import { HapnSecurityRole } from './enums';
4
- export interface GetUserRolesParams extends BaseSelectQueryParams {
4
+ export interface GetUserRolesParams extends BaseSelectQueryParamsV2 {
5
5
  filters: {
6
6
  userId: string;
7
7
  };
8
8
  }
9
- export interface GetUserRolesByClientIdParams extends BaseSelectQueryParams {
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 BaseSelectQueryParams {
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 BaseSelectQueryParams {
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 BaseSelectQueryParams {
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 BaseSelectQueryParams {
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 BaseSelectQueryParams {
93
+ export interface GetUserIdsByClientIdAndAuthorizedBoundariesParams extends BaseSelectQueryParamsV2 {
94
94
  filters: {
95
95
  clientId: number;
96
96
  boundaryIdList: number[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spytecgps/nova-orm",
3
- "version": "1.3.77",
3
+ "version": "1.3.78",
4
4
  "description": "ORM with PlanetScale",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",