exodus-framework 2.0.766 → 2.0.768
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 +1 @@
|
|
1
|
-
{"version":3,"file":"Application.d.ts","sourceRoot":"","sources":["../../src/models/Application.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAEhB,eAAe,EACf,uBAAuB,EACvB,KAAK,EACN,MAAM,WAAW,CAAC;AAGnB,qBAAa,WAAY,SAAQ,KAAK,CACpC,eAAe,CAAC,WAAW,CAAC,EAC5B,uBAAuB,CAAC,WAAW,CAAC,CACrC;IACS,IAAI,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAC;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,EAAE,gBAAgB,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC;CACvD"}
|
1
|
+
{"version":3,"file":"Application.d.ts","sourceRoot":"","sources":["../../src/models/Application.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAEhB,eAAe,EACf,uBAAuB,EACvB,KAAK,EACN,MAAM,WAAW,CAAC;AAGnB,qBAAa,WAAY,SAAQ,KAAK,CACpC,eAAe,CAAC,WAAW,CAAC,EAC5B,uBAAuB,CAAC,WAAW,CAAC,CACrC;IACS,IAAI,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAC;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,EAAE,gBAAgB,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC;CACvD"}
|
@@ -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
|
-
|
7
|
-
|
8
|
-
|
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;
|
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
|
-
|
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
|
-
|
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
|
-
|
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: {
|