exodus-framework 2.0.766 → 2.0.767

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.
@@ -3,9 +3,9 @@ import { IService } from '../contracts';
3
3
  import { System } from '../models/System';
4
4
  declare class EcosystemService extends Service implements IService {
5
5
  init(): Promise<void>;
6
- static getSystemVariable(tenantId: string, key: string): Promise<System>;
7
- static setSystemVariable(tenantId: string, key: string, value: string): Promise<void>;
8
- static createSystemVariable(tenantId: string, key: string, value: string): Promise<System>;
6
+ getSystemVariable(tenantId: string, key: string): Promise<System>;
7
+ setSystemVariable(tenantId: string, key: string, value: string): Promise<void>;
8
+ createSystemVariable(tenantId: string, key: string, value: string): Promise<System>;
9
9
  }
10
10
  export default EcosystemService;
11
11
  //# sourceMappingURL=ecosystem.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ecosystem.d.ts","sourceRoot":"","sources":["../../src/services/ecosystem.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AACjC,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAG1C,cAAM,gBAAiB,SAAQ,OAAQ,YAAW,QAAQ;IAClD,IAAI;WAEG,iBAAiB,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM;WAI/C,iBAAiB,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM;WAS9D,oBAAoB,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM;CAO/E;AAED,eAAe,gBAAgB,CAAC"}
1
+ {"version":3,"file":"ecosystem.d.ts","sourceRoot":"","sources":["../../src/services/ecosystem.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AACjC,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAG1C,cAAM,gBAAiB,SAAQ,OAAQ,YAAW,QAAQ;IAClD,IAAI;IAEJ,iBAAiB,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM;IAI/C,iBAAiB,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM;IAS9D,oBAAoB,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM;CAOxE;AAED,eAAe,gBAAgB,CAAC"}
@@ -10,7 +10,7 @@ var _sequelize = _interopRequireDefault(require("./sequelize"));
10
10
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
11
11
  class EcosystemService extends _app.Service {
12
12
  async init() {}
13
- static async getSystemVariable(tenantId, key) {
13
+ async getSystemVariable(tenantId, key) {
14
14
  const Entity = await _sequelize.default.singleton().getModel(_System.System, tenantId);
15
15
  return Entity.findOne({
16
16
  where: {
@@ -18,7 +18,7 @@ class EcosystemService extends _app.Service {
18
18
  }
19
19
  });
20
20
  }
21
- static async setSystemVariable(tenantId, key, value) {
21
+ async setSystemVariable(tenantId, key, value) {
22
22
  const Entity = await _sequelize.default.singleton().getModel(_System.System, tenantId);
23
23
  const variable = await Entity.findOne({
24
24
  where: {
@@ -30,7 +30,7 @@ class EcosystemService extends _app.Service {
30
30
  variable.changed('value', true);
31
31
  await variable.save();
32
32
  }
33
- static async createSystemVariable(tenantId, key, value) {
33
+ async createSystemVariable(tenantId, key, value) {
34
34
  const Entity = await _sequelize.default.singleton().getModel(_System.System, tenantId);
35
35
  const variable = await Entity.findOne({
36
36
  where: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "exodus-framework",
3
- "version": "2.0.766",
3
+ "version": "2.0.767",
4
4
  "description": "Exodus Framework",
5
5
  "author": "jhownpaixao",
6
6
  "license": "ISC",