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 DeleteV2CommentsCommentIdRequest$inboundSchema = z.object({
comment_id: z.string(),
}).transform((v) => {
return remap$(v, {
"comment_id": "commentId",
});
});
/** @internal */
export const DeleteV2CommentsCommentIdRequest$outboundSchema = z.object({
commentId: z.string(),
}).transform((v) => {
return remap$(v, {
commentId: "comment_id",
});
});
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export var DeleteV2CommentsCommentIdRequest$;
(function (DeleteV2CommentsCommentIdRequest$) {
/** @deprecated use `DeleteV2CommentsCommentIdRequest$inboundSchema` instead. */
DeleteV2CommentsCommentIdRequest$.inboundSchema = DeleteV2CommentsCommentIdRequest$inboundSchema;
/** @deprecated use `DeleteV2CommentsCommentIdRequest$outboundSchema` instead. */
DeleteV2CommentsCommentIdRequest$.outboundSchema = DeleteV2CommentsCommentIdRequest$outboundSchema;
})(DeleteV2CommentsCommentIdRequest$ || (DeleteV2CommentsCommentIdRequest$ = {}));
export function deleteV2CommentsCommentIdRequestToJSON(deleteV2CommentsCommentIdRequest) {
return JSON.stringify(DeleteV2CommentsCommentIdRequest$outboundSchema.parse(deleteV2CommentsCommentIdRequest));
}
export function deleteV2CommentsCommentIdRequestFromJSON(jsonString) {
return safeParse(jsonString, (x) => DeleteV2CommentsCommentIdRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeleteV2CommentsCommentIdRequest' from JSON`);
}
/** @internal */
export const DeleteV2CommentsCommentIdResponse$inboundSchema = z.object({});
/** @internal */
export const DeleteV2CommentsCommentIdResponse$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 DeleteV2CommentsCommentIdResponse$;
(function (DeleteV2CommentsCommentIdResponse$) {
/** @deprecated use `DeleteV2CommentsCommentIdResponse$inboundSchema` instead. */
DeleteV2CommentsCommentIdResponse$.inboundSchema = DeleteV2CommentsCommentIdResponse$inboundSchema;
/** @deprecated use `DeleteV2CommentsCommentIdResponse$outboundSchema` instead. */
DeleteV2CommentsCommentIdResponse$.outboundSchema = DeleteV2CommentsCommentIdResponse$outboundSchema;
})(DeleteV2CommentsCommentIdResponse$ || (DeleteV2CommentsCommentIdResponse$ = {}));
export function deleteV2CommentsCommentIdResponseToJSON(deleteV2CommentsCommentIdResponse) {
return JSON.stringify(DeleteV2CommentsCommentIdResponse$outboundSchema.parse(deleteV2CommentsCommentIdResponse));
}
export function deleteV2CommentsCommentIdResponseFromJSON(jsonString) {
return safeParse(jsonString, (x) => DeleteV2CommentsCommentIdResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeleteV2CommentsCommentIdResponse' from JSON`);
}
//# sourceMappingURL=deletev2commentscommentid.js.map