Skip to content

Commit

Permalink
js: Rename op_webhook_endpoint.ts => operational_webhook_endpoint.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
svix-jplatte committed Jan 27, 2025
1 parent d5f0d25 commit af49441
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export class OperationalWebhookEndpoint {
public list(
options?: OperationalWebhookEndpointListOptions
): Promise<ListResponseOperationalWebhookEndpointOut> {
return this.api.v1OperationalWebhookEndpointList({
return this.api.listOperationalWebhookEndpoints({
...options,
iterator: options?.iterator ?? undefined,
});
Expand All @@ -43,15 +43,15 @@ export class OperationalWebhookEndpoint {
operationalWebhookEndpointIn: OperationalWebhookEndpointIn,
options?: PostOptions
): Promise<OperationalWebhookEndpointOut> {
return this.api.v1OperationalWebhookEndpointCreate({
return this.api.createOperationalWebhookEndpoint({
operationalWebhookEndpointIn,
...options,
});
}

/** Get an operational webhook endpoint. */
public get(endpointId: string): Promise<OperationalWebhookEndpointOut> {
return this.api.v1OperationalWebhookEndpointGet({
return this.api.getOperationalWebhookEndpoint({
endpointId,
});
}
Expand All @@ -61,15 +61,15 @@ export class OperationalWebhookEndpoint {
endpointId: string,
operationalWebhookEndpointUpdate: OperationalWebhookEndpointUpdate
): Promise<OperationalWebhookEndpointOut> {
return this.api.v1OperationalWebhookEndpointUpdate({
return this.api.updateOperationalWebhookEndpoint({
endpointId,
operationalWebhookEndpointUpdate,
});
}

/** Delete an operational webhook endpoint. */
public delete(endpointId: string): Promise<void> {
return this.api.v1OperationalWebhookEndpointDelete({
return this.api.deleteOperationalWebhookEndpoint({
endpointId,
});
}
Expand Down
4 changes: 2 additions & 2 deletions javascript/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand 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";

Expand Down

0 comments on commit af49441

Please sign in to comment.