UNPKG

attio-js

Version:

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

60 lines 1.92 kB
"use strict"; /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.Notes = void 0; const notesCreate_js_1 = require("../funcs/notesCreate.js"); const notesDelete_js_1 = require("../funcs/notesDelete.js"); const notesGet_js_1 = require("../funcs/notesGet.js"); const notesList_js_1 = require("../funcs/notesList.js"); const sdks_js_1 = require("../lib/sdks.js"); const fp_js_1 = require("../types/fp.js"); class Notes extends sdks_js_1.ClientSDK { /** * List notes * * @remarks * List notes for all records or for a specific record. * * Required scopes: `note:read`, `object_configuration:read`, `record_permission:read`. */ async list(request, options) { return (0, fp_js_1.unwrapAsync)((0, notesList_js_1.notesList)(this, request, options)); } /** * Create a note * * @remarks * Creates a new note for a given record. * * Required scopes: `note:read-write`, `object_configuration:read`, `record_permission:read`. */ async create(request, options) { return (0, fp_js_1.unwrapAsync)((0, notesCreate_js_1.notesCreate)(this, request, options)); } /** * Get a note * * @remarks * Get a single note by ID. * * Required scopes: `note:read`, `object_configuration:read`, `record_permission:read`. */ async get(request, options) { return (0, fp_js_1.unwrapAsync)((0, notesGet_js_1.notesGet)(this, request, options)); } /** * Delete a note * * @remarks * Delete a single note by ID. * * Required scopes: `note:read-write`. */ async delete(request, options) { return (0, fp_js_1.unwrapAsync)((0, notesDelete_js_1.notesDelete)(this, request, options)); } } exports.Notes = Notes; //# sourceMappingURL=notes.js.map