attio-js
Version:
Developer-friendly & type-safe JS/TS SDK based on the official OpenAPI spec of Attio.
44 lines • 1.57 kB
JavaScript
;
/*
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.Threads = void 0;
const threadsGet_js_1 = require("../funcs/threadsGet.js");
const threadsList_js_1 = require("../funcs/threadsList.js");
const sdks_js_1 = require("../lib/sdks.js");
const fp_js_1 = require("../types/fp.js");
class Threads extends sdks_js_1.ClientSDK {
/**
* List threads
*
* @remarks
* List threads of comments on a record or list entry.
*
* To view threads on records, you will need the `object_configuration:read` and `record_permission:read` scopes.
*
* To view threads on list entries, you will need the `list_configuration:read` and `list_entry:read` scopes.
*
* Required scopes: `comment:read`.
*/
async list(request, options) {
return (0, fp_js_1.unwrapAsync)((0, threadsList_js_1.threadsList)(this, request, options));
}
/**
* Get a thread
*
* @remarks
* Get all comments in a thread.
*
* To view threads on records, you will need the `object_configuration:read` and `record_permission:read` scopes.
*
* To view threads on list entries, you will need the `list_configuration:read` and `list_entry:read` scopes.
*
* Required scopes: `comment:read`.
*/
async get(request, options) {
return (0, fp_js_1.unwrapAsync)((0, threadsGet_js_1.threadsGet)(this, request, options));
}
}
exports.Threads = Threads;
//# sourceMappingURL=threads.js.map