UNPKG

attio-js

Version:

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

32 lines 1.06 kB
/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import { attributesStatusesCreate } from "../funcs/attributesStatusesCreate.js"; import { attributesStatusesUpdate } from "../funcs/attributesStatusesUpdate.js"; import { ClientSDK } from "../lib/sdks.js"; import { unwrapAsync } from "../types/fp.js"; export class Statuses extends ClientSDK { /** * Create a status * * @remarks * Add a new status to a status attribute on either an object or a list. * * Required scopes: `object_configuration:read-write`. */ async create(request, options) { return unwrapAsync(attributesStatusesCreate(this, request, options)); } /** * Update a status * * @remarks * Update a status on an status attribute on either an object or a list. * * Required scopes: `object_configuration:read-write`. */ async update(request, options) { return unwrapAsync(attributesStatusesUpdate(this, request, options)); } } //# sourceMappingURL=statuses.js.map