@friggframework/core 2.0.0--canary.396.d14a555.0 → 2.0.0--canary.396.b9f7d5a.0

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.
@@ -12,7 +12,7 @@ const { GetCredentialForUser } = require('../credential/use-cases/get-credential
12
12
  const { CreateIntegration } = require('./use-cases/create-integration');
13
13
  const { ModuleService } = require('../module-plugin/module-service');
14
14
  const { ModuleRepository } = require('../module-plugin/module-repository');
15
- const { loadAppDefinition } = require('../backend-utils');
15
+ const { loadAppDefinition } = require('../handlers/backend-utils');
16
16
 
17
17
 
18
18
  const { integrations } = loadAppDefinition();
@@ -1,5 +1,5 @@
1
1
  const { ModuleRepository } = require('./module-repository');
2
- const { GetModuleInstance } = require('./use-cases/get-module-instance');
2
+ const { ModuleService } = require('./module-service');
3
3
  const { Module } = require('./module');
4
4
 
5
5
  class ModuleFactory {
@@ -7,7 +7,7 @@ class ModuleFactory {
7
7
  this.moduleDefinitions = params;
8
8
  this.moduleTypes = this.moduleDefinitions.map((def) => def.moduleName);
9
9
  this.moduleRepository = new ModuleRepository();
10
- this.getModuleInstanceUseCase = new GetModuleInstance({
10
+ this.moduleService = new ModuleService({
11
11
  moduleRepository: this.moduleRepository,
12
12
  moduleDefinitions: this.moduleDefinitions,
13
13
  });
@@ -35,7 +35,7 @@ class ModuleFactory {
35
35
  }
36
36
 
37
37
  async getModuleInstanceFromEntityId(entityId, userId) {
38
- return this.getModuleInstanceUseCase.execute(entityId, userId);
38
+ return this.moduleService.getModuleInstance(entityId, userId);
39
39
  }
40
40
 
41
41
  async getInstanceFromTypeName(typeName, userId) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@friggframework/core",
3
3
  "prettier": "@friggframework/prettier-config",
4
- "version": "2.0.0--canary.396.d14a555.0",
4
+ "version": "2.0.0--canary.396.b9f7d5a.0",
5
5
  "dependencies": {
6
6
  "@hapi/boom": "^10.0.1",
7
7
  "aws-sdk": "^2.1200.0",
@@ -22,9 +22,9 @@
22
22
  "uuid": "^9.0.1"
23
23
  },
24
24
  "devDependencies": {
25
- "@friggframework/eslint-config": "2.0.0--canary.396.d14a555.0",
26
- "@friggframework/prettier-config": "2.0.0--canary.396.d14a555.0",
27
- "@friggframework/test": "2.0.0--canary.396.d14a555.0",
25
+ "@friggframework/eslint-config": "2.0.0--canary.396.b9f7d5a.0",
26
+ "@friggframework/prettier-config": "2.0.0--canary.396.b9f7d5a.0",
27
+ "@friggframework/test": "2.0.0--canary.396.b9f7d5a.0",
28
28
  "@types/lodash": "4.17.15",
29
29
  "@typescript-eslint/eslint-plugin": "^8.0.0",
30
30
  "chai": "^4.3.6",
@@ -53,5 +53,5 @@
53
53
  },
54
54
  "homepage": "https://github.com/friggframework/frigg#readme",
55
55
  "description": "",
56
- "gitHead": "d14a555c2a02159cb7c9baca81bed3aadbd19688"
56
+ "gitHead": "b9f7d5af4da61a0775ab275e823dbb63247be3b6"
57
57
  }