attio-js
Version:
Developer-friendly & type-safe JS/TS SDK based on the official OpenAPI spec of Attio.
60 lines • 1.99 kB
JavaScript
;
/*
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.Objects = void 0;
const objectsCreate_js_1 = require("../funcs/objectsCreate.js");
const objectsGet_js_1 = require("../funcs/objectsGet.js");
const objectsList_js_1 = require("../funcs/objectsList.js");
const objectsPartialUpdate_js_1 = require("../funcs/objectsPartialUpdate.js");
const sdks_js_1 = require("../lib/sdks.js");
const fp_js_1 = require("../types/fp.js");
class Objects extends sdks_js_1.ClientSDK {
/**
* List objects
*
* @remarks
* Lists all system-defined and user-defined objects in your workspace.
*
* Required scopes: `object_configuration:read`.
*/
async list(options) {
return (0, fp_js_1.unwrapAsync)((0, objectsList_js_1.objectsList)(this, options));
}
/**
* Create an object
*
* @remarks
* Creates a new custom object in your workspace.
*
* Required scopes: `object_configuration:read-write`.
*/
async create(request, options) {
return (0, fp_js_1.unwrapAsync)((0, objectsCreate_js_1.objectsCreate)(this, request, options));
}
/**
* Get an object
*
* @remarks
* Gets a single object by its `object_id` or slug.
*
* Required scopes: `object_configuration:read`.
*/
async get(request, options) {
return (0, fp_js_1.unwrapAsync)((0, objectsGet_js_1.objectsGet)(this, request, options));
}
/**
* Update an object
*
* @remarks
* Updates a single object. The object to be updated is identified by its `object_id`.
*
* Required scopes: `object_configuration:read-write`.
*/
async partialUpdate(request, options) {
return (0, fp_js_1.unwrapAsync)((0, objectsPartialUpdate_js_1.objectsPartialUpdate)(this, request, options));
}
}
exports.Objects = Objects;
//# sourceMappingURL=objects.js.map