UNPKG

attio-js

Version:

Developer-friendly & type-safe JS/TS SDK based on the official OpenAPI spec of Attio.

106 lines 5.52 kB
"use strict"; /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; var desc = Object.getOwnPropertyDescriptor(m, k); if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { desc = { enumerable: true, get: function() { return m[k]; } }; } Object.defineProperty(o, k2, desc); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; })); var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { Object.defineProperty(o, "default", { enumerable: true, value: v }); }) : function(o, v) { o["default"] = v; }); var __importStar = (this && this.__importStar) || (function () { var ownKeys = function(o) { ownKeys = Object.getOwnPropertyNames || function (o) { var ar = []; for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; return ar; }; return ownKeys(o); }; return function (mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); __setModuleDefault(result, mod); return result; }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.GetV2CommentsCommentIdResponse$ = exports.GetV2CommentsCommentIdResponse$outboundSchema = exports.GetV2CommentsCommentIdResponse$inboundSchema = exports.GetV2CommentsCommentIdRequest$ = exports.GetV2CommentsCommentIdRequest$outboundSchema = exports.GetV2CommentsCommentIdRequest$inboundSchema = void 0; exports.getV2CommentsCommentIdRequestToJSON = getV2CommentsCommentIdRequestToJSON; exports.getV2CommentsCommentIdRequestFromJSON = getV2CommentsCommentIdRequestFromJSON; exports.getV2CommentsCommentIdResponseToJSON = getV2CommentsCommentIdResponseToJSON; exports.getV2CommentsCommentIdResponseFromJSON = getV2CommentsCommentIdResponseFromJSON; const z = __importStar(require("zod")); const primitives_js_1 = require("../../lib/primitives.js"); const schemas_js_1 = require("../../lib/schemas.js"); const comment_js_1 = require("../components/comment.js"); /** @internal */ exports.GetV2CommentsCommentIdRequest$inboundSchema = z.object({ comment_id: z.string(), }).transform((v) => { return (0, primitives_js_1.remap)(v, { "comment_id": "commentId", }); }); /** @internal */ exports.GetV2CommentsCommentIdRequest$outboundSchema = z.object({ commentId: z.string(), }).transform((v) => { return (0, primitives_js_1.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. */ var GetV2CommentsCommentIdRequest$; (function (GetV2CommentsCommentIdRequest$) { /** @deprecated use `GetV2CommentsCommentIdRequest$inboundSchema` instead. */ GetV2CommentsCommentIdRequest$.inboundSchema = exports.GetV2CommentsCommentIdRequest$inboundSchema; /** @deprecated use `GetV2CommentsCommentIdRequest$outboundSchema` instead. */ GetV2CommentsCommentIdRequest$.outboundSchema = exports.GetV2CommentsCommentIdRequest$outboundSchema; })(GetV2CommentsCommentIdRequest$ || (exports.GetV2CommentsCommentIdRequest$ = GetV2CommentsCommentIdRequest$ = {})); function getV2CommentsCommentIdRequestToJSON(getV2CommentsCommentIdRequest) { return JSON.stringify(exports.GetV2CommentsCommentIdRequest$outboundSchema.parse(getV2CommentsCommentIdRequest)); } function getV2CommentsCommentIdRequestFromJSON(jsonString) { return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetV2CommentsCommentIdRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetV2CommentsCommentIdRequest' from JSON`); } /** @internal */ exports.GetV2CommentsCommentIdResponse$inboundSchema = z.object({ data: comment_js_1.Comment$inboundSchema, }); /** @internal */ exports.GetV2CommentsCommentIdResponse$outboundSchema = z.object({ data: comment_js_1.Comment$outboundSchema, }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ var GetV2CommentsCommentIdResponse$; (function (GetV2CommentsCommentIdResponse$) { /** @deprecated use `GetV2CommentsCommentIdResponse$inboundSchema` instead. */ GetV2CommentsCommentIdResponse$.inboundSchema = exports.GetV2CommentsCommentIdResponse$inboundSchema; /** @deprecated use `GetV2CommentsCommentIdResponse$outboundSchema` instead. */ GetV2CommentsCommentIdResponse$.outboundSchema = exports.GetV2CommentsCommentIdResponse$outboundSchema; })(GetV2CommentsCommentIdResponse$ || (exports.GetV2CommentsCommentIdResponse$ = GetV2CommentsCommentIdResponse$ = {})); function getV2CommentsCommentIdResponseToJSON(getV2CommentsCommentIdResponse) { return JSON.stringify(exports.GetV2CommentsCommentIdResponse$outboundSchema.parse(getV2CommentsCommentIdResponse)); } function getV2CommentsCommentIdResponseFromJSON(jsonString) { return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetV2CommentsCommentIdResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetV2CommentsCommentIdResponse' from JSON`); } //# sourceMappingURL=getv2commentscommentid.js.map