@lido-nestjs/registry 1.3.0 → 1.4.2
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,8 +1,11 @@
|
|
|
1
|
+
import { FilterQuery, FindOptions } from '@mikro-orm/core';
|
|
1
2
|
import { RegistryKey } from './key.entity';
|
|
2
3
|
import { RegistryKeyRepository } from './key.repository';
|
|
3
4
|
export declare class RegistryKeyStorageService {
|
|
4
5
|
private readonly repository;
|
|
5
6
|
constructor(repository: RegistryKeyRepository);
|
|
7
|
+
/** find keys */
|
|
8
|
+
find<P extends string = never>(where: FilterQuery<RegistryKey>, options?: FindOptions<RegistryKey, P>): Promise<RegistryKey[]>;
|
|
6
9
|
/** find all keys */
|
|
7
10
|
findAll(): Promise<RegistryKey[]>;
|
|
8
11
|
/** find used keys */
|
|
@@ -12,6 +12,10 @@ exports.RegistryKeyStorageService = class RegistryKeyStorageService {
|
|
|
12
12
|
constructor(repository) {
|
|
13
13
|
this.repository = repository;
|
|
14
14
|
}
|
|
15
|
+
/** find keys */
|
|
16
|
+
async find(where, options) {
|
|
17
|
+
return await this.repository.find(where, options);
|
|
18
|
+
}
|
|
15
19
|
/** find all keys */
|
|
16
20
|
async findAll() {
|
|
17
21
|
return await this.repository.findAll({
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
+
import { FilterQuery, FindOptions } from '@mikro-orm/core';
|
|
1
2
|
import { RegistryOperator } from './operator.entity';
|
|
2
3
|
import { RegistryOperatorRepository } from './operator.repository';
|
|
3
4
|
export declare class RegistryOperatorStorageService {
|
|
4
5
|
private readonly repository;
|
|
5
6
|
constructor(repository: RegistryOperatorRepository);
|
|
7
|
+
/** find operators */
|
|
8
|
+
find<P extends string = never>(where: FilterQuery<RegistryOperator>, options?: FindOptions<RegistryOperator, P>): Promise<RegistryOperator[]>;
|
|
6
9
|
/** find all operators */
|
|
7
10
|
findAll(): Promise<RegistryOperator[]>;
|
|
8
11
|
/** find operator by index */
|
|
@@ -12,6 +12,10 @@ exports.RegistryOperatorStorageService = class RegistryOperatorStorageService {
|
|
|
12
12
|
constructor(repository) {
|
|
13
13
|
this.repository = repository;
|
|
14
14
|
}
|
|
15
|
+
/** find operators */
|
|
16
|
+
async find(where, options) {
|
|
17
|
+
return await this.repository.find(where, options);
|
|
18
|
+
}
|
|
15
19
|
/** find all operators */
|
|
16
20
|
async findAll() {
|
|
17
21
|
return await this.repository.findAll({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lido-nestjs/registry",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.2",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"license": "MIT",
|
|
@@ -28,9 +28,9 @@
|
|
|
28
28
|
"access": "public"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@lido-nestjs/contracts": "2.
|
|
31
|
+
"@lido-nestjs/contracts": "2.2.0",
|
|
32
32
|
"@lido-nestjs/decorators": "1.0.0",
|
|
33
|
-
"@lido-nestjs/logger": "1.2.
|
|
33
|
+
"@lido-nestjs/logger": "1.2.1",
|
|
34
34
|
"@lido-nestjs/utils": "1.2.0",
|
|
35
35
|
"cron": "^2.0.0"
|
|
36
36
|
},
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"tslib": "^2.3.1"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@lido-nestjs/execution": "1.7.
|
|
48
|
+
"@lido-nestjs/execution": "1.7.2",
|
|
49
49
|
"@mikro-orm/core": "^5.2.0",
|
|
50
50
|
"@mikro-orm/knex": "^5.2.0",
|
|
51
51
|
"@mikro-orm/nestjs": "^5.0.2",
|