@friggframework/devtools 2.0.0--canary.460.1f9acc3.0 → 2.0.0--canary.464.f9d3fc0.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.
@@ -1959,6 +1959,30 @@ const attachIntegrations = (definition, AppDefinition) => {
1959
1959
  }Queue`;
1960
1960
  const queueName = `\${self:service}--\${self:provider.stage}-${queueReference}`;
1961
1961
 
1962
+ // Add webhook handler if enabled (BEFORE catch-all proxy route)
1963
+ const webhookConfig = integration.Definition.webhooks;
1964
+ if (webhookConfig && (webhookConfig === true || webhookConfig.enabled === true)) {
1965
+ const webhookFunctionName = `${integrationName}Webhook`;
1966
+
1967
+ definition.functions[webhookFunctionName] = {
1968
+ handler: `node_modules/@friggframework/core/handlers/routers/integration-webhook-routers.handlers.${integrationName}Webhook.handler`,
1969
+ events: [
1970
+ {
1971
+ httpApi: {
1972
+ path: `/api/${integrationName}-integration/webhooks`,
1973
+ method: 'POST',
1974
+ },
1975
+ },
1976
+ {
1977
+ httpApi: {
1978
+ path: `/api/${integrationName}-integration/webhooks/{integrationId}`,
1979
+ method: 'POST',
1980
+ },
1981
+ },
1982
+ ],
1983
+ };
1984
+ }
1985
+
1962
1986
  definition.functions[integrationName] = {
1963
1987
  handler: `node_modules/@friggframework/core/handlers/routers/integration-defined-routers.handlers.${integrationName}.handler`,
1964
1988
  events: [
@@ -2009,30 +2033,6 @@ const attachIntegrations = (definition, AppDefinition) => {
2009
2033
  };
2010
2034
 
2011
2035
  definition.custom[queueReference] = queueName;
2012
-
2013
- // Add webhook handler if enabled
2014
- const webhookConfig = integration.Definition.webhooks;
2015
- if (webhookConfig && (webhookConfig === true || webhookConfig.enabled === true)) {
2016
- const webhookFunctionName = `${integrationName}Webhook`;
2017
-
2018
- definition.functions[webhookFunctionName] = {
2019
- handler: `node_modules/@friggframework/core/handlers/routers/integration-webhook-routers.handlers.${integrationName}Webhook.handler`,
2020
- events: [
2021
- {
2022
- httpApi: {
2023
- path: `/api/${integrationName}-integration/webhooks`,
2024
- method: 'POST',
2025
- },
2026
- },
2027
- {
2028
- httpApi: {
2029
- path: `/api/${integrationName}-integration/webhooks/{integrationId}`,
2030
- method: 'POST',
2031
- },
2032
- },
2033
- ],
2034
- };
2035
- }
2036
2036
  }
2037
2037
  };
2038
2038
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@friggframework/devtools",
3
3
  "prettier": "@friggframework/prettier-config",
4
- "version": "2.0.0--canary.460.1f9acc3.0",
4
+ "version": "2.0.0--canary.464.f9d3fc0.0",
5
5
  "dependencies": {
6
6
  "@aws-sdk/client-ec2": "^3.835.0",
7
7
  "@aws-sdk/client-kms": "^3.835.0",
@@ -9,8 +9,8 @@
9
9
  "@babel/eslint-parser": "^7.18.9",
10
10
  "@babel/parser": "^7.25.3",
11
11
  "@babel/traverse": "^7.25.3",
12
- "@friggframework/schemas": "2.0.0--canary.460.1f9acc3.0",
13
- "@friggframework/test": "2.0.0--canary.460.1f9acc3.0",
12
+ "@friggframework/schemas": "2.0.0--canary.464.f9d3fc0.0",
13
+ "@friggframework/test": "2.0.0--canary.464.f9d3fc0.0",
14
14
  "@hapi/boom": "^10.0.1",
15
15
  "@inquirer/prompts": "^5.3.8",
16
16
  "axios": "^1.7.2",
@@ -32,8 +32,8 @@
32
32
  "serverless-http": "^2.7.0"
33
33
  },
34
34
  "devDependencies": {
35
- "@friggframework/eslint-config": "2.0.0--canary.460.1f9acc3.0",
36
- "@friggframework/prettier-config": "2.0.0--canary.460.1f9acc3.0",
35
+ "@friggframework/eslint-config": "2.0.0--canary.464.f9d3fc0.0",
36
+ "@friggframework/prettier-config": "2.0.0--canary.464.f9d3fc0.0",
37
37
  "aws-sdk-client-mock": "^4.1.0",
38
38
  "aws-sdk-client-mock-jest": "^4.1.0",
39
39
  "jest": "^30.1.3",
@@ -68,5 +68,5 @@
68
68
  "publishConfig": {
69
69
  "access": "public"
70
70
  },
71
- "gitHead": "1f9acc320cece62d17b75c366d4acb3b07625dee"
71
+ "gitHead": "f9d3fc0e7c7135c87a6b6b1befc7d7912966f86a"
72
72
  }