@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.
@@ -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(): import("./baseCore").BaseCore;
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>;
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sdflc/backend-helpers",
3
- "version": "1.0.16",
3
+ "version": "1.0.17",
4
4
  "description": "Set of helper functions and classes to simplify building backend apps within @sdflc ecosystem",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",