From 3c04a2eb33c5251b4a7070223a935f50acc945c0 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 27 Nov 2025 23:43:07 +0000 Subject: [PATCH 1/2] Initial plan From 45ccad885dd5be83e4d7733974480b5dd0900498 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 27 Nov 2025 23:49:20 +0000 Subject: [PATCH 2/2] fix: restore optional parameters in create methods Co-authored-by: jancurn <10612996+jancurn@users.noreply.github.com> --- src/resource_clients/schedule_collection.ts | 2 +- src/resource_clients/webhook_collection.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/resource_clients/schedule_collection.ts b/src/resource_clients/schedule_collection.ts index 43b7066d..fa0d43fa 100644 --- a/src/resource_clients/schedule_collection.ts +++ b/src/resource_clients/schedule_collection.ts @@ -80,7 +80,7 @@ export class ScheduleCollectionClient extends ResourceCollectionClient { * @returns The created schedule object. * @see https://docs.apify.com/api/v2/schedules-post */ - async create(schedule: ScheduleCreateOrUpdateData): Promise { + async create(schedule?: ScheduleCreateOrUpdateData): Promise { ow(schedule, ow.optional.object); return this._create(schedule); diff --git a/src/resource_clients/webhook_collection.ts b/src/resource_clients/webhook_collection.ts index ce39dbcd..f5699d8d 100644 --- a/src/resource_clients/webhook_collection.ts +++ b/src/resource_clients/webhook_collection.ts @@ -82,7 +82,7 @@ export class WebhookCollectionClient extends ResourceCollectionClient { * @returns The created webhook object. * @see https://docs.apify.com/api/v2/webhooks-post */ - async create(webhook: WebhookUpdateData): Promise { + async create(webhook?: WebhookUpdateData): Promise { ow(webhook, ow.optional.object); return this._create(webhook);