@friggframework/core 2.0.0--canary.396.b49bddf.0 → 2.0.0--canary.396.8420fe0.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.
@@ -139,8 +139,8 @@ function setIntegrationRoutes(router, factory, getUserFromBearerToken, integrati
139
139
  const integrations = await getIntegrationsForUser.execute(userId);
140
140
  const results = {
141
141
  entities: {
142
- options: integrationClasses.map((IntegrationClass) =>
143
- IntegrationClass.getOptionDetails()
142
+ options: integrations.map((integration) =>
143
+ integration.getOptionDetails()
144
144
  ),
145
145
  authorized: await getEntitiesForUserUseCase.execute(userId),
146
146
  },
@@ -152,6 +152,10 @@ class Integration {
152
152
  return methodName in this || (this.behavior && methodName in this.behavior);
153
153
  }
154
154
 
155
+ // getOptions() {
156
+ // return this.getOptionDetails();
157
+ // }
158
+
155
159
  /**
156
160
  * Custom JSON serializer to prevent circular references (e.g. Module → Api → delegate)
157
161
  * and to keep API responses lightweight.
@@ -15,6 +15,7 @@ function mapIntegrationClassToIntegrationDTO(integration) {
15
15
  messages: integration.messages,
16
16
  entityReference: integration.entityReference,
17
17
  userActions: integration.userActions,
18
+ options: integration.getOptionDetails(),
18
19
  };
19
20
  }
20
21
 
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.b49bddf.0",
4
+ "version": "2.0.0--canary.396.8420fe0.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.b49bddf.0",
26
- "@friggframework/prettier-config": "2.0.0--canary.396.b49bddf.0",
27
- "@friggframework/test": "2.0.0--canary.396.b49bddf.0",
25
+ "@friggframework/eslint-config": "2.0.0--canary.396.8420fe0.0",
26
+ "@friggframework/prettier-config": "2.0.0--canary.396.8420fe0.0",
27
+ "@friggframework/test": "2.0.0--canary.396.8420fe0.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": "b49bddf0a8d75f08f9826caaae0e6dbdee5ca018"
56
+ "gitHead": "8420fe09831b3cd4069196f3a14ace468e03b458"
57
57
  }