UNPKG

attio-js

Version:

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

124 lines 8.13 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.GetV2TargetIdentifierAttributesAttributeResponse$ = exports.GetV2TargetIdentifierAttributesAttributeResponse$outboundSchema = exports.GetV2TargetIdentifierAttributesAttributeResponse$inboundSchema = exports.GetV2TargetIdentifierAttributesAttributeRequest$ = exports.GetV2TargetIdentifierAttributesAttributeRequest$outboundSchema = exports.GetV2TargetIdentifierAttributesAttributeRequest$inboundSchema = exports.GetV2TargetIdentifierAttributesAttributeTarget$ = exports.GetV2TargetIdentifierAttributesAttributeTarget$outboundSchema = exports.GetV2TargetIdentifierAttributesAttributeTarget$inboundSchema = exports.GetV2TargetIdentifierAttributesAttributeTarget = void 0; exports.getV2TargetIdentifierAttributesAttributeRequestToJSON = getV2TargetIdentifierAttributesAttributeRequestToJSON; exports.getV2TargetIdentifierAttributesAttributeRequestFromJSON = getV2TargetIdentifierAttributesAttributeRequestFromJSON; exports.getV2TargetIdentifierAttributesAttributeResponseToJSON = getV2TargetIdentifierAttributesAttributeResponseToJSON; exports.getV2TargetIdentifierAttributesAttributeResponseFromJSON = getV2TargetIdentifierAttributesAttributeResponseFromJSON; const z = __importStar(require("zod")); const schemas_js_1 = require("../../lib/schemas.js"); const attribute_js_1 = require("../components/attribute.js"); /** * Whether the attribute is on an object or a list. */ exports.GetV2TargetIdentifierAttributesAttributeTarget = { Objects: "objects", Lists: "lists", }; /** @internal */ exports.GetV2TargetIdentifierAttributesAttributeTarget$inboundSchema = z .nativeEnum(exports.GetV2TargetIdentifierAttributesAttributeTarget); /** @internal */ exports.GetV2TargetIdentifierAttributesAttributeTarget$outboundSchema = exports.GetV2TargetIdentifierAttributesAttributeTarget$inboundSchema; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ var GetV2TargetIdentifierAttributesAttributeTarget$; (function (GetV2TargetIdentifierAttributesAttributeTarget$) { /** @deprecated use `GetV2TargetIdentifierAttributesAttributeTarget$inboundSchema` instead. */ GetV2TargetIdentifierAttributesAttributeTarget$.inboundSchema = exports.GetV2TargetIdentifierAttributesAttributeTarget$inboundSchema; /** @deprecated use `GetV2TargetIdentifierAttributesAttributeTarget$outboundSchema` instead. */ GetV2TargetIdentifierAttributesAttributeTarget$.outboundSchema = exports.GetV2TargetIdentifierAttributesAttributeTarget$outboundSchema; })(GetV2TargetIdentifierAttributesAttributeTarget$ || (exports.GetV2TargetIdentifierAttributesAttributeTarget$ = GetV2TargetIdentifierAttributesAttributeTarget$ = {})); /** @internal */ exports.GetV2TargetIdentifierAttributesAttributeRequest$inboundSchema = z.object({ target: exports.GetV2TargetIdentifierAttributesAttributeTarget$inboundSchema, identifier: z.string(), attribute: z.string(), }); /** @internal */ exports.GetV2TargetIdentifierAttributesAttributeRequest$outboundSchema = z.object({ target: exports.GetV2TargetIdentifierAttributesAttributeTarget$outboundSchema, identifier: z.string(), attribute: z.string(), }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ var GetV2TargetIdentifierAttributesAttributeRequest$; (function (GetV2TargetIdentifierAttributesAttributeRequest$) { /** @deprecated use `GetV2TargetIdentifierAttributesAttributeRequest$inboundSchema` instead. */ GetV2TargetIdentifierAttributesAttributeRequest$.inboundSchema = exports.GetV2TargetIdentifierAttributesAttributeRequest$inboundSchema; /** @deprecated use `GetV2TargetIdentifierAttributesAttributeRequest$outboundSchema` instead. */ GetV2TargetIdentifierAttributesAttributeRequest$.outboundSchema = exports.GetV2TargetIdentifierAttributesAttributeRequest$outboundSchema; })(GetV2TargetIdentifierAttributesAttributeRequest$ || (exports.GetV2TargetIdentifierAttributesAttributeRequest$ = GetV2TargetIdentifierAttributesAttributeRequest$ = {})); function getV2TargetIdentifierAttributesAttributeRequestToJSON(getV2TargetIdentifierAttributesAttributeRequest) { return JSON.stringify(exports.GetV2TargetIdentifierAttributesAttributeRequest$outboundSchema.parse(getV2TargetIdentifierAttributesAttributeRequest)); } function getV2TargetIdentifierAttributesAttributeRequestFromJSON(jsonString) { return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetV2TargetIdentifierAttributesAttributeRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetV2TargetIdentifierAttributesAttributeRequest' from JSON`); } /** @internal */ exports.GetV2TargetIdentifierAttributesAttributeResponse$inboundSchema = z.object({ data: attribute_js_1.Attribute$inboundSchema, }); /** @internal */ exports.GetV2TargetIdentifierAttributesAttributeResponse$outboundSchema = z.object({ data: attribute_js_1.Attribute$outboundSchema, }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ var GetV2TargetIdentifierAttributesAttributeResponse$; (function (GetV2TargetIdentifierAttributesAttributeResponse$) { /** @deprecated use `GetV2TargetIdentifierAttributesAttributeResponse$inboundSchema` instead. */ GetV2TargetIdentifierAttributesAttributeResponse$.inboundSchema = exports.GetV2TargetIdentifierAttributesAttributeResponse$inboundSchema; /** @deprecated use `GetV2TargetIdentifierAttributesAttributeResponse$outboundSchema` instead. */ GetV2TargetIdentifierAttributesAttributeResponse$.outboundSchema = exports.GetV2TargetIdentifierAttributesAttributeResponse$outboundSchema; })(GetV2TargetIdentifierAttributesAttributeResponse$ || (exports.GetV2TargetIdentifierAttributesAttributeResponse$ = GetV2TargetIdentifierAttributesAttributeResponse$ = {})); function getV2TargetIdentifierAttributesAttributeResponseToJSON(getV2TargetIdentifierAttributesAttributeResponse) { return JSON.stringify(exports.GetV2TargetIdentifierAttributesAttributeResponse$outboundSchema.parse(getV2TargetIdentifierAttributesAttributeResponse)); } function getV2TargetIdentifierAttributesAttributeResponseFromJSON(jsonString) { return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetV2TargetIdentifierAttributesAttributeResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetV2TargetIdentifierAttributesAttributeResponse' from JSON`); } //# sourceMappingURL=getv2targetidentifierattributesattribute.js.map