UNPKG

attio-js

Version:

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

19 lines 1.74 kB
import { AttioCore } from "../core.js"; import { RequestOptions } from "../lib/sdks.js"; import { APIError } from "../models/errors/apierror.js"; import { GetV2TargetIdentifierAttributesAttributeNotFoundError, PostV2TargetIdentifierAttributesAttributeOptionsSlugConflictError, PostV2TargetIdentifierAttributesAttributeOptionsValidationTypeError } from "../models/errors/getv2objectsobject.js"; import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import { PostV2TargetIdentifierAttributesAttributeOptionsRequest, PostV2TargetIdentifierAttributesAttributeOptionsResponse } from "../models/operations/postv2targetidentifierattributesattributeoptions.js"; import { APIPromise } from "../types/async.js"; import { Result } from "../types/fp.js"; /** * Create a select option * * @remarks * Adds a select option to a select attribute on an object or a list. * * Required scopes: `object_configuration:read-write`. */ export declare function attributesCreateSelectOption(client: AttioCore, request: PostV2TargetIdentifierAttributesAttributeOptionsRequest, options?: RequestOptions): APIPromise<Result<PostV2TargetIdentifierAttributesAttributeOptionsResponse, PostV2TargetIdentifierAttributesAttributeOptionsValidationTypeError | GetV2TargetIdentifierAttributesAttributeNotFoundError | PostV2TargetIdentifierAttributesAttributeOptionsSlugConflictError | APIError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>; //# sourceMappingURL=attributesCreateSelectOption.d.ts.map