Skip to content

Commit

Permalink
fix: add missing isApifyIntegration field to Webhook type (#523)
Browse files Browse the repository at this point in the history
This PR adds a missing field on the `Webhook` interface. As per the
[documentation](https://docs.apify.com/platform/integrations/actors/integrating-actors-via-api),
one can programmatically integrate actors together using the "create
webhook" endpoint. The `isApifyIntegration` field helps the UI
distinguish whether to render it as an ordinary HTTP webhook in the
Apify console.

---------

Co-authored-by: Martin Adámek <[email protected]>
Co-authored-by: Josef Válek <[email protected]>
  • Loading branch information
3 people authored Feb 29, 2024
1 parent c356351 commit 0af85fc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/resource_clients/webhook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ export interface Webhook {
lastDispatch: string;
stats: WebhookStats;
shouldInterpolateStrings: boolean;
isApifyIntegration?: boolean;
headersTemplate?: string;
description?: string;
}
Expand All @@ -112,6 +113,7 @@ export type WebhookUpdateData = Partial<
| 'requestUrl'
| 'payloadTemplate'
| 'shouldInterpolateStrings'
| 'isApifyIntegration'
| 'headersTemplate'
| 'description'
>
Expand Down

0 comments on commit 0af85fc

Please sign in to comment.