rmapi-js
    Preparing search index...

    Class Seeding

    items to add to a FakeCloud as another device would, written in one root write by put

    A parent is "" for the root, "trash", or a folder's id.

    Index
    • add an epub with body as its file

      Parameters

      • id: string
      • name: string
      • body: Uint8Array
      • parent: string = ""

      Returns this

    • add an item made of exactly files, each a name in full, such as <id>.metadata or <id>/<page>.rm, and its bytes

      Parameters

      • id: string
      • files: Iterable<readonly [string, Uint8Array<ArrayBufferLike>]>

      Returns this

    • add a folder

      Parameters

      • id: string
      • name: string
      • parent: string = ""

      Returns this

    • add a notebook of pages, in order

      Parameters

      • id: string
      • name: string
      • pages: readonly NotebookPage[]
      • parent: string = ""

      Returns this

    • add a pdf with body as its file

      Parameters

      • id: string
      • name: string
      • body: Uint8Array
      • parent: string = ""

      Returns this

    • write every item added in one root write, and start again from none

      Returns void

    • add the account the benchmarks share, of items items: a tenth folders, half pdfs, and the rest notebooks of one to three pages, each the next of pages in turn

      Parameters

      • items: number
      • pages: readonly Uint8Array<ArrayBufferLike>[]

      Returns this

    • add a template whose .template is definition

      Parameters

      • id: string
      • name: string
      • definition: Uint8Array
      • parent: string = ""

      Returns this