attio-js
Version:
Developer-friendly & type-safe JS/TS SDK based on the official OpenAPI spec of Attio.
56 lines • 1.63 kB
JavaScript
/*
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/
import { notesCreate } from "../funcs/notesCreate.js";
import { notesDelete } from "../funcs/notesDelete.js";
import { notesGet } from "../funcs/notesGet.js";
import { notesList } from "../funcs/notesList.js";
import { ClientSDK } from "../lib/sdks.js";
import { unwrapAsync } from "../types/fp.js";
export class Notes extends 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 unwrapAsync(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 unwrapAsync(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 unwrapAsync(notesGet(this, request, options));
}
/**
* Delete a note
*
* @remarks
* Delete a single note by ID.
*
* Required scopes: `note:read-write`.
*/
async delete(request, options) {
return unwrapAsync(notesDelete(this, request, options));
}
}
//# sourceMappingURL=notes.js.map