From 0af85fc07939b8418dd867bb69492e742625b568 Mon Sep 17 00:00:00 2001 From: Omar Abdelkader Date: Thu, 29 Feb 2024 01:13:21 -0800 Subject: [PATCH] fix: add missing `isApifyIntegration` field to `Webhook` type (#523) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Co-authored-by: Josef Válek --- src/resource_clients/webhook.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/resource_clients/webhook.ts b/src/resource_clients/webhook.ts index c95b8f79..9ad645fa 100644 --- a/src/resource_clients/webhook.ts +++ b/src/resource_clients/webhook.ts @@ -93,6 +93,7 @@ export interface Webhook { lastDispatch: string; stats: WebhookStats; shouldInterpolateStrings: boolean; + isApifyIntegration?: boolean; headersTemplate?: string; description?: string; } @@ -112,6 +113,7 @@ export type WebhookUpdateData = Partial< | 'requestUrl' | 'payloadTemplate' | 'shouldInterpolateStrings' + | 'isApifyIntegration' | 'headersTemplate' | 'description' >