Skip to content

Commit

Permalink
(fix, webhooks): support audiences for webhooks and payload properties (
Browse files Browse the repository at this point in the history
  • Loading branch information
dsinghvi authored Jun 14, 2024
1 parent 3ca7ee1 commit eda5ce2
Show file tree
Hide file tree
Showing 24 changed files with 4,917 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35231,6 +35231,7 @@ exports[`ir {"name":"webhooks"} 1`] = `
"webhookGroups": {
"webhooks_webhooks": [
{
"id": "webhooks_webhooks.sendNotification",
"displayName": null,
"method": "POST",
"name": {
Expand Down
4 changes: 4 additions & 0 deletions packages/cli/generation/ir-generator/src/IdGenerator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ export const IdGenerator = {
const joinedFernFilePath = stringifyFernFilepath(fernFilepath);
return `webhooks_${joinedFernFilePath}`;
},
generateWebhookId: (fernFilepath: FernFilepath, webhookId: string): string => {
const joinedFernFilePath = stringifyFernFilepath(fernFilepath);
return `webhooks_${joinedFernFilePath}.${webhookId}`;
},
generateWebSocketChannelId: (fernFilepath: FernFilepath): string => {
const joinedFernFilePath = stringifyFernFilepath(fernFilepath);
return `channel_${joinedFernFilePath}`;
Expand Down
Loading

0 comments on commit eda5ce2

Please sign in to comment.