Touch & Sell JS API
    Preparing search index...

    Class TSNode

    TSNode objects are the basic tree objects describing the organization of the user’s documents. They can be either folders or documents and they can be retrieved through TouchSell class.

    Index

    Properties

    document: TSDocument | null

    the associated document, or undefined if the node is a folder.

    folder: TSFolder | null

    the associated folder, or undefined if the node is a document.

    id: number

    the node id

    name: string

    the node name

    nodeType: string

    the node type “document” or “folder”.

    parentId: number
    thumburi?: string

    the URI to the node thumbnail image.

    userSpaceNodeId?: number

    Methods

    • Returns Promise<(TSNode | null)[]>

      the whole list of children nodes.

    • Parameters

      • name: string

        The name of the child to be retrieved

      Returns Promise<TSNode | null>

      the found child with the specified name or undefined.

    • Returns Promise<string[]>

    • Parameters

      • params: Record<string, any>

        The hashmap of parameters (pairs of string key/value) to pass when opening the node.

      Returns Promise<void>

    • Returns Promise<TSNode | null>

      the parent node.