UNPKG

attio-js

Version:

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

19 lines 1.77 kB
import { AttioCore } from "../core.js"; import { RequestOptions } from "../lib/sdks.js"; import { APIError } from "../models/errors/apierror.js"; import { MultipleMatchResultsError, PutV2ListsListEntriesNotFoundError } from "../models/errors/getv2objectsobject.js"; import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import { PutV2ListsListEntriesRequest, PutV2ListsListEntriesResponse } from "../models/operations/putv2listslistentries.js"; import { APIPromise } from "../types/async.js"; import { Result } from "../types/fp.js"; /** * Assert a list entry by parent * * @remarks * Use this endpoint to create or update a list entry for a given parent record. If an entry with the specified parent record is found, that entry will be updated. If no such entry is found, a new entry will be created instead. If there are multiple entries with the same parent record, this endpoint with return the "MULTIPLE_MATCH_RESULTS" error. When writing to multi-select attributes, all values will be either created or deleted as necessary to match the list of values supplied in the request body. * * Required scopes: `list_entry:read-write`, `list_configuration:read`. */ export declare function entriesAssert(client: AttioCore, request: PutV2ListsListEntriesRequest, options?: RequestOptions): APIPromise<Result<PutV2ListsListEntriesResponse, MultipleMatchResultsError | PutV2ListsListEntriesNotFoundError | APIError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>; //# sourceMappingURL=entriesAssert.d.ts.map