attio-js
Version:
Developer-friendly & type-safe JS/TS SDK based on the official OpenAPI spec of Attio.
61 lines • 3.22 kB
JavaScript
/*
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/
import * as z from "zod";
import { remap as remap$ } from "../../lib/primitives.js";
import { safeParse } from "../../lib/schemas.js";
/** @internal */
export const DeleteV2WebhooksWebhookIdRequest$inboundSchema = z.object({
webhook_id: z.string(),
}).transform((v) => {
return remap$(v, {
"webhook_id": "webhookId",
});
});
/** @internal */
export const DeleteV2WebhooksWebhookIdRequest$outboundSchema = z.object({
webhookId: z.string(),
}).transform((v) => {
return remap$(v, {
webhookId: "webhook_id",
});
});
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export var DeleteV2WebhooksWebhookIdRequest$;
(function (DeleteV2WebhooksWebhookIdRequest$) {
/** @deprecated use `DeleteV2WebhooksWebhookIdRequest$inboundSchema` instead. */
DeleteV2WebhooksWebhookIdRequest$.inboundSchema = DeleteV2WebhooksWebhookIdRequest$inboundSchema;
/** @deprecated use `DeleteV2WebhooksWebhookIdRequest$outboundSchema` instead. */
DeleteV2WebhooksWebhookIdRequest$.outboundSchema = DeleteV2WebhooksWebhookIdRequest$outboundSchema;
})(DeleteV2WebhooksWebhookIdRequest$ || (DeleteV2WebhooksWebhookIdRequest$ = {}));
export function deleteV2WebhooksWebhookIdRequestToJSON(deleteV2WebhooksWebhookIdRequest) {
return JSON.stringify(DeleteV2WebhooksWebhookIdRequest$outboundSchema.parse(deleteV2WebhooksWebhookIdRequest));
}
export function deleteV2WebhooksWebhookIdRequestFromJSON(jsonString) {
return safeParse(jsonString, (x) => DeleteV2WebhooksWebhookIdRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeleteV2WebhooksWebhookIdRequest' from JSON`);
}
/** @internal */
export const DeleteV2WebhooksWebhookIdResponse$inboundSchema = z.object({});
/** @internal */
export const DeleteV2WebhooksWebhookIdResponse$outboundSchema = z.object({});
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export var DeleteV2WebhooksWebhookIdResponse$;
(function (DeleteV2WebhooksWebhookIdResponse$) {
/** @deprecated use `DeleteV2WebhooksWebhookIdResponse$inboundSchema` instead. */
DeleteV2WebhooksWebhookIdResponse$.inboundSchema = DeleteV2WebhooksWebhookIdResponse$inboundSchema;
/** @deprecated use `DeleteV2WebhooksWebhookIdResponse$outboundSchema` instead. */
DeleteV2WebhooksWebhookIdResponse$.outboundSchema = DeleteV2WebhooksWebhookIdResponse$outboundSchema;
})(DeleteV2WebhooksWebhookIdResponse$ || (DeleteV2WebhooksWebhookIdResponse$ = {}));
export function deleteV2WebhooksWebhookIdResponseToJSON(deleteV2WebhooksWebhookIdResponse) {
return JSON.stringify(DeleteV2WebhooksWebhookIdResponse$outboundSchema.parse(deleteV2WebhooksWebhookIdResponse));
}
export function deleteV2WebhooksWebhookIdResponseFromJSON(jsonString) {
return safeParse(jsonString, (x) => DeleteV2WebhooksWebhookIdResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeleteV2WebhooksWebhookIdResponse' from JSON`);
}
//# sourceMappingURL=deletev2webhookswebhookid.js.map