UNPKG

attio-js

Version:

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

82 lines 3.22 kB
import * as z from "zod"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type SelectOptionId = { /** * The ID of the workspace */ workspaceId: string; /** * The ID of the object */ objectId: string; /** * The ID of the attribute */ attributeId: string; /** * The ID of the select option */ optionId: string; }; export type SelectOption = { id: SelectOptionId; /** * The title of the select option */ title: string; /** * Whether or not to archive the select option. See our [archiving guide](/docs/archiving-vs-deleting) for more information on archiving. */ isArchived: boolean; }; /** @internal */ export declare const SelectOptionId$inboundSchema: z.ZodType<SelectOptionId, z.ZodTypeDef, unknown>; /** @internal */ export type SelectOptionId$Outbound = { workspace_id: string; object_id: string; attribute_id: string; option_id: string; }; /** @internal */ export declare const SelectOptionId$outboundSchema: z.ZodType<SelectOptionId$Outbound, z.ZodTypeDef, SelectOptionId>; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace SelectOptionId$ { /** @deprecated use `SelectOptionId$inboundSchema` instead. */ const inboundSchema: z.ZodType<SelectOptionId, z.ZodTypeDef, unknown>; /** @deprecated use `SelectOptionId$outboundSchema` instead. */ const outboundSchema: z.ZodType<SelectOptionId$Outbound, z.ZodTypeDef, SelectOptionId>; /** @deprecated use `SelectOptionId$Outbound` instead. */ type Outbound = SelectOptionId$Outbound; } export declare function selectOptionIdToJSON(selectOptionId: SelectOptionId): string; export declare function selectOptionIdFromJSON(jsonString: string): SafeParseResult<SelectOptionId, SDKValidationError>; /** @internal */ export declare const SelectOption$inboundSchema: z.ZodType<SelectOption, z.ZodTypeDef, unknown>; /** @internal */ export type SelectOption$Outbound = { id: SelectOptionId$Outbound; title: string; is_archived: boolean; }; /** @internal */ export declare const SelectOption$outboundSchema: z.ZodType<SelectOption$Outbound, z.ZodTypeDef, SelectOption>; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace SelectOption$ { /** @deprecated use `SelectOption$inboundSchema` instead. */ const inboundSchema: z.ZodType<SelectOption, z.ZodTypeDef, unknown>; /** @deprecated use `SelectOption$outboundSchema` instead. */ const outboundSchema: z.ZodType<SelectOption$Outbound, z.ZodTypeDef, SelectOption>; /** @deprecated use `SelectOption$Outbound` instead. */ type Outbound = SelectOption$Outbound; } export declare function selectOptionToJSON(selectOption: SelectOption): string; export declare function selectOptionFromJSON(jsonString: string): SafeParseResult<SelectOption, SDKValidationError>; //# sourceMappingURL=selectoption.d.ts.map