diff --git a/javascript/src/api/background_task.ts b/javascript/src/api/background_task.ts index d3224f1c5..16923cce3 100644 --- a/javascript/src/api/background_task.ts +++ b/javascript/src/api/background_task.ts @@ -33,7 +33,7 @@ export class BackgroundTask { public list( options?: BackgroundTaskListOptions ): Promise { - return this.api.v1BackgroundTaskList({ + return this.api.listBackgroundTasks({ ...options, iterator: options?.iterator ?? undefined, }); @@ -52,7 +52,7 @@ export class BackgroundTask { /** Get a background task by ID. */ public get(taskId: string): Promise { - return this.api.v1BackgroundTaskGet({ + return this.api.getBackgroundTask({ taskId, }); } 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 af77b09d3..92f2edeff 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 086c6d86d..1743a1ef9 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";