UNPKG

attio-js

Version:

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

137 lines 9.1 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.GetV2TargetIdentifierAttributesAttributeOptionsResponse$ = exports.GetV2TargetIdentifierAttributesAttributeOptionsResponse$outboundSchema = exports.GetV2TargetIdentifierAttributesAttributeOptionsResponse$inboundSchema = exports.GetV2TargetIdentifierAttributesAttributeOptionsRequest$ = exports.GetV2TargetIdentifierAttributesAttributeOptionsRequest$outboundSchema = exports.GetV2TargetIdentifierAttributesAttributeOptionsRequest$inboundSchema = exports.GetV2TargetIdentifierAttributesAttributeOptionsTarget$ = exports.GetV2TargetIdentifierAttributesAttributeOptionsTarget$outboundSchema = exports.GetV2TargetIdentifierAttributesAttributeOptionsTarget$inboundSchema = exports.GetV2TargetIdentifierAttributesAttributeOptionsTarget = void 0; exports.getV2TargetIdentifierAttributesAttributeOptionsRequestToJSON = getV2TargetIdentifierAttributesAttributeOptionsRequestToJSON; exports.getV2TargetIdentifierAttributesAttributeOptionsRequestFromJSON = getV2TargetIdentifierAttributesAttributeOptionsRequestFromJSON; exports.getV2TargetIdentifierAttributesAttributeOptionsResponseToJSON = getV2TargetIdentifierAttributesAttributeOptionsResponseToJSON; exports.getV2TargetIdentifierAttributesAttributeOptionsResponseFromJSON = getV2TargetIdentifierAttributesAttributeOptionsResponseFromJSON; const z = __importStar(require("zod")); const primitives_js_1 = require("../../lib/primitives.js"); const schemas_js_1 = require("../../lib/schemas.js"); const selectoption_js_1 = require("../components/selectoption.js"); /** * Whether the attribute is on an object or a list. */ exports.GetV2TargetIdentifierAttributesAttributeOptionsTarget = { Objects: "objects", Lists: "lists", }; /** @internal */ exports.GetV2TargetIdentifierAttributesAttributeOptionsTarget$inboundSchema = z.nativeEnum(exports.GetV2TargetIdentifierAttributesAttributeOptionsTarget); /** @internal */ exports.GetV2TargetIdentifierAttributesAttributeOptionsTarget$outboundSchema = exports.GetV2TargetIdentifierAttributesAttributeOptionsTarget$inboundSchema; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ var GetV2TargetIdentifierAttributesAttributeOptionsTarget$; (function (GetV2TargetIdentifierAttributesAttributeOptionsTarget$) { /** @deprecated use `GetV2TargetIdentifierAttributesAttributeOptionsTarget$inboundSchema` instead. */ GetV2TargetIdentifierAttributesAttributeOptionsTarget$.inboundSchema = exports.GetV2TargetIdentifierAttributesAttributeOptionsTarget$inboundSchema; /** @deprecated use `GetV2TargetIdentifierAttributesAttributeOptionsTarget$outboundSchema` instead. */ GetV2TargetIdentifierAttributesAttributeOptionsTarget$.outboundSchema = exports.GetV2TargetIdentifierAttributesAttributeOptionsTarget$outboundSchema; })(GetV2TargetIdentifierAttributesAttributeOptionsTarget$ || (exports.GetV2TargetIdentifierAttributesAttributeOptionsTarget$ = GetV2TargetIdentifierAttributesAttributeOptionsTarget$ = {})); /** @internal */ exports.GetV2TargetIdentifierAttributesAttributeOptionsRequest$inboundSchema = z.object({ target: exports.GetV2TargetIdentifierAttributesAttributeOptionsTarget$inboundSchema, identifier: z.string(), attribute: z.string(), show_archived: z.boolean().optional(), }).transform((v) => { return (0, primitives_js_1.remap)(v, { "show_archived": "showArchived", }); }); /** @internal */ exports.GetV2TargetIdentifierAttributesAttributeOptionsRequest$outboundSchema = z.object({ target: exports.GetV2TargetIdentifierAttributesAttributeOptionsTarget$outboundSchema, identifier: z.string(), attribute: z.string(), showArchived: z.boolean().optional(), }).transform((v) => { return (0, primitives_js_1.remap)(v, { showArchived: "show_archived", }); }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ var GetV2TargetIdentifierAttributesAttributeOptionsRequest$; (function (GetV2TargetIdentifierAttributesAttributeOptionsRequest$) { /** @deprecated use `GetV2TargetIdentifierAttributesAttributeOptionsRequest$inboundSchema` instead. */ GetV2TargetIdentifierAttributesAttributeOptionsRequest$.inboundSchema = exports.GetV2TargetIdentifierAttributesAttributeOptionsRequest$inboundSchema; /** @deprecated use `GetV2TargetIdentifierAttributesAttributeOptionsRequest$outboundSchema` instead. */ GetV2TargetIdentifierAttributesAttributeOptionsRequest$.outboundSchema = exports.GetV2TargetIdentifierAttributesAttributeOptionsRequest$outboundSchema; })(GetV2TargetIdentifierAttributesAttributeOptionsRequest$ || (exports.GetV2TargetIdentifierAttributesAttributeOptionsRequest$ = GetV2TargetIdentifierAttributesAttributeOptionsRequest$ = {})); function getV2TargetIdentifierAttributesAttributeOptionsRequestToJSON(getV2TargetIdentifierAttributesAttributeOptionsRequest) { return JSON.stringify(exports.GetV2TargetIdentifierAttributesAttributeOptionsRequest$outboundSchema.parse(getV2TargetIdentifierAttributesAttributeOptionsRequest)); } function getV2TargetIdentifierAttributesAttributeOptionsRequestFromJSON(jsonString) { return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetV2TargetIdentifierAttributesAttributeOptionsRequest$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'GetV2TargetIdentifierAttributesAttributeOptionsRequest' from JSON`); } /** @internal */ exports.GetV2TargetIdentifierAttributesAttributeOptionsResponse$inboundSchema = z.object({ data: z.array(selectoption_js_1.SelectOption$inboundSchema), }); /** @internal */ exports.GetV2TargetIdentifierAttributesAttributeOptionsResponse$outboundSchema = z.object({ data: z.array(selectoption_js_1.SelectOption$outboundSchema), }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ var GetV2TargetIdentifierAttributesAttributeOptionsResponse$; (function (GetV2TargetIdentifierAttributesAttributeOptionsResponse$) { /** @deprecated use `GetV2TargetIdentifierAttributesAttributeOptionsResponse$inboundSchema` instead. */ GetV2TargetIdentifierAttributesAttributeOptionsResponse$.inboundSchema = exports.GetV2TargetIdentifierAttributesAttributeOptionsResponse$inboundSchema; /** @deprecated use `GetV2TargetIdentifierAttributesAttributeOptionsResponse$outboundSchema` instead. */ GetV2TargetIdentifierAttributesAttributeOptionsResponse$.outboundSchema = exports.GetV2TargetIdentifierAttributesAttributeOptionsResponse$outboundSchema; })(GetV2TargetIdentifierAttributesAttributeOptionsResponse$ || (exports.GetV2TargetIdentifierAttributesAttributeOptionsResponse$ = GetV2TargetIdentifierAttributesAttributeOptionsResponse$ = {})); function getV2TargetIdentifierAttributesAttributeOptionsResponseToJSON(getV2TargetIdentifierAttributesAttributeOptionsResponse) { return JSON.stringify(exports.GetV2TargetIdentifierAttributesAttributeOptionsResponse$outboundSchema .parse(getV2TargetIdentifierAttributesAttributeOptionsResponse)); } function getV2TargetIdentifierAttributesAttributeOptionsResponseFromJSON(jsonString) { return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetV2TargetIdentifierAttributesAttributeOptionsResponse$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'GetV2TargetIdentifierAttributesAttributeOptionsResponse' from JSON`); } //# sourceMappingURL=getv2targetidentifierattributesattributeoptions.js.map