@sdflc/backend-helpers 1.0.15 → 1.0.16
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
CHANGED
|
@@ -13,6 +13,7 @@ declare class BaseGateway {
|
|
|
13
13
|
getDb(): import("./database").Database;
|
|
14
14
|
getBuilder(): any;
|
|
15
15
|
getIdField(): string;
|
|
16
|
+
getCore(): import("./baseCore").BaseCore;
|
|
16
17
|
get(id: any): Promise<any>;
|
|
17
18
|
getMany(ids: any[]): Promise<any>;
|
|
18
19
|
list(args?: ListArgsInterface): Promise<any>;
|
package/build/baseGateway.js
CHANGED
|
@@ -100,6 +100,9 @@ var BaseGateway = /** @class */ (function () {
|
|
|
100
100
|
BaseGateway.prototype.getIdField = function () {
|
|
101
101
|
return this.config.idField || ID_FIELD;
|
|
102
102
|
};
|
|
103
|
+
BaseGateway.prototype.getCore = function () {
|
|
104
|
+
return this.config.core;
|
|
105
|
+
};
|
|
103
106
|
BaseGateway.prototype.get = function (id) {
|
|
104
107
|
return __awaiter(this, void 0, void 0, function () {
|
|
105
108
|
return __generator(this, function (_a) {
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { LoggerLevels, Logger } from '@sdflc/utils';
|
|
2
|
+
import { BaseCore } from '../baseCore';
|
|
2
3
|
import { Database } from '../database';
|
|
3
4
|
import { LoaderInterface } from './LoaderInterface';
|
|
4
5
|
import { SortItemInterface } from './SortItemInterface';
|
|
5
6
|
export interface BaseGatewayInterface {
|
|
6
7
|
db: Database;
|
|
8
|
+
core: BaseCore;
|
|
7
9
|
table?: string;
|
|
8
10
|
idField?: string;
|
|
9
11
|
setFields?: string[] | string;
|
package/package.json
CHANGED