Notes

Date

2/1/2024 - 2:44:47 AM

Export

Constructors

Properties

_noteKeyCache: Map<string, string> = ...
api: API
sdkConfig: FilenSDKConfig

Methods

  • Add a participant.

    Parameters

    • param0: {
          contactUUID: string;
          permissionsWrite: boolean;
          publicKey: string;
          uuid: string;
      }
      • contactUUID: string
      • permissionsWrite: boolean
      • publicKey: string
      • uuid: string

    Returns Promise<void>

    Date

    2/20/2024 - 1:39:20 AM

    Async

  • Archive a note.

    Parameters

    • param0: {
          uuid: string;
      }
      • uuid: string

    Returns Promise<void>

    Date

    2/20/2024 - 12:48:44 AM

    Async

  • Change note type.

    Parameters

    • param0: {
          newType: NoteType;
          uuid: string;
      }

    Returns Promise<void>

    Date

    2/20/2024 - 12:39:02 AM

    Async

  • Fetch note content.

    Parameters

    • param0: {
          uuid: string;
      }
      • uuid: string

    Returns Promise<{
        content: string;
        editedTimestamp: number;
        editorId: number;
        preview: string;
        type: NoteType;
    }>

    Date

    2/20/2024 - 12:32:49 AM

    Async

  • Create an empty note.

    Parameters

    • param0: {
          title?: string;
          uuid?: string;
      }
      • Optional title?: string
      • Optional uuid?: string

    Returns Promise<string>

    Date

    2/19/2024 - 11:55:14 PM

    Async

  • Create a tag.

    Parameters

    • param0: {
          name: string;
      }
      • name: string

    Returns Promise<string>

    Date

    2/20/2024 - 3:21:37 AM

    Async

  • Delete a note.

    Parameters

    • param0: {
          uuid: string;
      }
      • uuid: string

    Returns Promise<void>

    Date

    2/20/2024 - 12:48:38 AM

    Async

  • Delete a tag.

    Parameters

    • param0: {
          uuid: string;
      }
      • uuid: string

    Returns Promise<void>

    Date

    2/20/2024 - 4:03:05 AM

    Async

  • Duplicate a note.

    Parameters

    • param0: {
          uuid: string;
      }
      • uuid: string

    Returns Promise<string>

    Date

    2/20/2024 - 1:40:38 AM

    Async

  • Edit a note.

    Parameters

    • param0: {
          content: string;
          type: NoteType;
          uuid: string;
      }
      • content: string
      • type: NoteType
      • uuid: string

    Returns Promise<void>

    Date

    2/20/2024 - 12:43:56 AM

    Async

  • Edit a note's title.

    Parameters

    • param0: {
          title: string;
          uuid: string;
      }
      • title: string
      • uuid: string

    Returns Promise<void>

    Date

    4/1/2024 - 5:46:41 PM

    Async

  • Toggle the favorite status of a note.

    Parameters

    • param0: {
          favorite: boolean;
          uuid: string;
      }
      • favorite: boolean
      • uuid: string

    Returns Promise<void>

    Date

    2/20/2024 - 12:52:30 AM

    Async

  • Fetch a note.

    Parameters

    • param0: {
          uuid: string;
      }
      • uuid: string

    Returns Promise<Note>

    Date

    2/20/2024 - 2:07:16 AM

    Async

  • Fetch a content history of a note.

    Parameters

    • param0: {
          uuid: string;
      }
      • uuid: string

    Returns Promise<NoteHistory[]>

    Date

    2/20/2024 - 2:03:38 AM

    Async

  • Get the note encryption key from owner metadata.

    Parameters

    • param0: {
          uuid: string;
      }
      • uuid: string

    Returns Promise<string>

    Date

    2/20/2024 - 12:26:15 AM

    Async

  • Set permissions for a participant.

    Parameters

    • param0: {
          permissionsWrite: boolean;
          userId: number;
          uuid: string;
      }
      • permissionsWrite: boolean
      • userId: number
      • uuid: string

    Returns Promise<void>

    Date

    2/20/2024 - 4:05:31 AM

    Async

  • Toggle the pinned status of a note.

    Parameters

    • param0: {
          pin: boolean;
          uuid: string;
      }
      • pin: boolean
      • uuid: string

    Returns Promise<void>

    Date

    2/20/2024 - 12:53:31 AM

    Async

  • Fetch all notes ordered by last edit timestamp.

    Returns Promise<Note[]>

    Date

    2/20/2024 - 12:51:06 AM

    Async

  • Remove a participant.

    Parameters

    • param0: {
          userId: number;
          uuid: string;
      }
      • userId: number
      • uuid: string

    Returns Promise<void>

    Date

    2/20/2024 - 4:03:59 AM

    Async

  • Rename a tag.

    Parameters

    • param0: {
          name: string;
          uuid: string;
      }
      • name: string
      • uuid: string

    Returns Promise<void>

    Date

    2/20/2024 - 4:01:29 AM

    Async

  • Restore a note from the archive or trash.

    Parameters

    • param0: {
          uuid: string;
      }
      • uuid: string

    Returns Promise<void>

    Date

    2/20/2024 - 12:52:46 AM

    Async

  • Restore a note from history.

    Parameters

    • param0: {
          id: number;
          uuid: string;
      }
      • id: number
      • uuid: string

    Returns Promise<void>

    Date

    2/20/2024 - 4:46:26 AM

    Async

  • Add a tag to a note.

    Parameters

    • param0: {
          tag: string;
          uuid: string;
      }
      • tag: string
      • uuid: string

    Returns Promise<void>

    Date

    2/20/2024 - 2:38:49 AM

    Async

  • Toggle the favorite status of a tag.

    Parameters

    • param0: {
          favorite: boolean;
          uuid: string;
      }
      • favorite: boolean
      • uuid: string

    Returns Promise<void>

    Date

    2/20/2024 - 4:02:16 AM

    Async

  • Trash a note.

    Parameters

    • param0: {
          uuid: string;
      }
      • uuid: string

    Returns Promise<void>

    Date

    2/20/2024 - 12:48:48 AM

    Async

  • Remove a tag from a note.

    Parameters

    • param0: {
          tag: string;
          uuid: string;
      }
      • tag: string
      • uuid: string

    Returns Promise<void>

    Date

    2/20/2024 - 2:38:54 AM

    Async

Generated using TypeDoc