@sdflc/backend-helpers 1.0.16 → 1.0.17
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/build/baseGateway.d.ts +3 -1
- package/build/baseGateway.js +3 -0
- package/package.json +1 -1
package/build/baseGateway.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { BaseGatewayInterface, ListArgsInterface } from './interfaces';
|
|
2
|
+
import { BaseCore } from '.';
|
|
2
3
|
declare class BaseGateway {
|
|
3
4
|
protected config: BaseGatewayInterface;
|
|
4
5
|
protected loader: any;
|
|
@@ -13,7 +14,8 @@ declare class BaseGateway {
|
|
|
13
14
|
getDb(): import("./database").Database;
|
|
14
15
|
getBuilder(): any;
|
|
15
16
|
getIdField(): string;
|
|
16
|
-
getCore():
|
|
17
|
+
getCore(): BaseCore;
|
|
18
|
+
setCore(core: BaseCore): void;
|
|
17
19
|
get(id: any): Promise<any>;
|
|
18
20
|
getMany(ids: any[]): Promise<any>;
|
|
19
21
|
list(args?: ListArgsInterface): Promise<any>;
|
package/build/baseGateway.js
CHANGED
|
@@ -103,6 +103,9 @@ var BaseGateway = /** @class */ (function () {
|
|
|
103
103
|
BaseGateway.prototype.getCore = function () {
|
|
104
104
|
return this.config.core;
|
|
105
105
|
};
|
|
106
|
+
BaseGateway.prototype.setCore = function (core) {
|
|
107
|
+
this.config.core = core;
|
|
108
|
+
};
|
|
106
109
|
BaseGateway.prototype.get = function (id) {
|
|
107
110
|
return __awaiter(this, void 0, void 0, function () {
|
|
108
111
|
return __generator(this, function (_a) {
|
package/package.json
CHANGED