From af4944164f43843571a36391e147c729c29b2cb7 Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Mon, 27 Jan 2025 17:41:13 +0100 Subject: [PATCH] js: Rename op_webhook_endpoint.ts => operational_webhook_endpoint.ts --- ...ook_endpoint.ts => operational_webhook_endpoint.ts} | 10 +++++----- javascript/src/index.ts | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) rename javascript/src/api/{op_webhook_endpoint.ts => operational_webhook_endpoint.ts} (90%) diff --git a/javascript/src/api/op_webhook_endpoint.ts b/javascript/src/api/operational_webhook_endpoint.ts similarity index 90% rename from javascript/src/api/op_webhook_endpoint.ts rename to javascript/src/api/operational_webhook_endpoint.ts index af77b09d30..92f2edeff7 100644 --- a/javascript/src/api/op_webhook_endpoint.ts +++ b/javascript/src/api/operational_webhook_endpoint.ts @@ -32,7 +32,7 @@ export class OperationalWebhookEndpoint { public list( options?: OperationalWebhookEndpointListOptions ): Promise { - return this.api.v1OperationalWebhookEndpointList({ + return this.api.listOperationalWebhookEndpoints({ ...options, iterator: options?.iterator ?? undefined, }); @@ -43,7 +43,7 @@ export class OperationalWebhookEndpoint { operationalWebhookEndpointIn: OperationalWebhookEndpointIn, options?: PostOptions ): Promise { - return this.api.v1OperationalWebhookEndpointCreate({ + return this.api.createOperationalWebhookEndpoint({ operationalWebhookEndpointIn, ...options, }); @@ -51,7 +51,7 @@ export class OperationalWebhookEndpoint { /** Get an operational webhook endpoint. */ public get(endpointId: string): Promise { - return this.api.v1OperationalWebhookEndpointGet({ + return this.api.getOperationalWebhookEndpoint({ endpointId, }); } @@ -61,7 +61,7 @@ export class OperationalWebhookEndpoint { endpointId: string, operationalWebhookEndpointUpdate: OperationalWebhookEndpointUpdate ): Promise { - return this.api.v1OperationalWebhookEndpointUpdate({ + return this.api.updateOperationalWebhookEndpoint({ endpointId, operationalWebhookEndpointUpdate, }); @@ -69,7 +69,7 @@ export class OperationalWebhookEndpoint { /** Delete an operational webhook endpoint. */ public delete(endpointId: string): Promise { - return this.api.v1OperationalWebhookEndpointDelete({ + return this.api.deleteOperationalWebhookEndpoint({ endpointId, }); } diff --git a/javascript/src/index.ts b/javascript/src/index.ts index 086c6d86de..1743a1ef93 100644 --- a/javascript/src/index.ts +++ b/javascript/src/index.ts @@ -15,7 +15,7 @@ import { EventType } from "./api/event_type"; import { Integration } from "./api/integration"; import { Message } from "./api/message"; import { MessageAttempt } from "./api/message_attempt"; -import { OperationalWebhookEndpoint } from "./api/op_webhook_endpoint"; +import { OperationalWebhookEndpoint } from "./api/operational_webhook_endpoint"; import { Statistics } from "./api/statistics"; export * from "./openapi/models/all"; @@ -34,7 +34,7 @@ export { MessageAttemptListByEndpointOptions, MessageAttemptListOptions, } from "./api/message_attempt"; -export { OperationalWebhookEndpointListOptions } from "./api/op_webhook_endpoint"; +export { OperationalWebhookEndpointListOptions } from "./api/operational_webhook_endpoint"; const VERSION = "1.56.0";