Touch & Sell JS API
    Preparing search index...

    Class TouchSell

    Global proxy object provided by the application

    Index

    Documents

    • Parameters

      • name: string

      Returns Promise<(TSDocument | null)[]>

      the list of documents which name matches “name”.

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

      the whole list of documents the current user has access to in the app.

    • Returns Promise<TSDocument | null>

      the current document in the Javascript context or NULL if irrelevant.

    • Parameters

      • id: unknown

        The ID of the document to be retrieved.

      Returns Promise<TSDocument | null>

      the found document or NULL.

    • Parameters

      • path: string

        The full path to the document to be retrieved, e.g. “path/to/mydocument”.

      Returns Promise<TSDocument | null>

      the found document or NULL.

    Properties

    APIVersion: 1

    1

    Accessors

    • get platform(): void

      Returns void

      ios, android, windows or web

    Cart (Sharing)

    • Returns Promise<TSCart | null>

    • Parameters

      • key: string
      • value: string

      Returns Promise<TSCart | null>

    • Parameters

      • id: string

      Returns Promise<TSCart | null>

    • Returns Promise<TSCart | null>

      the current cart.

    • Parameters

      Returns Promise<void>

    Collections (NodeList/Presentation/Meeting)

    • Parameters

      • name: string
      • allContent: boolean = false
      • consultation: boolean = false
      • plannedAt: string = ''

      Returns Promise<TSCollection | undefined>

    • Parameters

      • name: string

      Returns Promise<void>

    • Parameters

      • namespace: string

      Returns Promise<(TSCollection | undefined)[]>

    • Parameters

      • key: string
      • value: string
      • namespace: string

      Returns Promise<(TSCollection | undefined)[]>

    • Parameters

      • name: string

      Returns Promise<TSCollection | undefined>

    • Parameters

      • id: unknown

      Returns Promise<any>

    Configuration

    • Returns Promise<string>

    • Returns Promise<string>

    • Returns Promise<string>

    • Returns Promise<string>

      the unique identifier for the device.

    • Returns Promise<string>

    • Returns Promise<string>

    • Returns Promise<string>

    • Returns Promise<string>

    • Returns Promise<string>

    • Returns Promise<string>

    • Returns Promise<string>

    • Parameters

      • appId: string

      Returns Promise<string>

    • Parameters

      • clientId: string

      Returns Promise<string>

    Contact

    • Parameters

      • email: string
      • firstname: string = ''
      • lastname: string = ''
      • phone: string = ''
      • role: string = ''
      • company: string = ''

      Returns Promise<TSContact | null>

      the new contact created

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

      the whole list of contacts the current user has access to in the app.

    • Parameters

      • email: string

        The Email of the contact to be retrieved

      Returns Promise<TSContact | null>

      the found contact or undefined

    Document Actions

    • This will open an OS-native popup.

      Parameters

      • content: string

      Returns Promise<void>

    • Parameters

      • message: string
      • title: string

      Returns Promise<void>

    • Returns Promise<void>

    • Parameters

      • key: string

        The key for the global variable.

      • namespace: string

        The namespace for the variable. Default value is “script”.

      Returns Promise<string>

      the value for the key or NULL.

    • Returns Promise<Record<string, string>>

      the hash map of all the keys and values for the current Javascript context.

    • Load url in the in-app browser, or in another tab on the web.

      Parameters

      • url: string

      Returns Promise<void>

    • Load url in the native browser externally, or in another tab on the web.

      Parameters

      • url: string

      Returns Promise<void>

    • Returns Promise<void>

    • Parameters

      • key: string

        The key for the global variable.

      • value: string

        The value corresponding to “key”.

      • namespace: string

        The namespace for the variable. Default value is “script”.

      Returns Promise<void>

    Folders

    • Parameters

      • name: string

      Returns Promise<(TSFolder | null)[]>

      the list of folders which name matches “name”.

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

      the whole list of folders the current user has access to in the app.

    • Parameters

      • id: unknown

        The ID of the document to be retrieved.

      Returns Promise<TSFolder | null>

      the found document or NULL.

    Navigation

    • Returns Promise<void>

    • Returns Promise<void>

    • Returns Promise<void>

    • Returns Promise<void>

    • Returns Promise<void>

    Nodes

    • Parameters

      • name: string

      Returns Promise<(TSNode | null)[]>

      the list of nodes which name matches “name”.

    • Parameters

      • key: string
      • namespace: string

      Returns Promise<(TSNode | null)[]>

    • Parameters

      • key: string
      • value: string
      • namespace: string

      Returns Promise<(TSNode | null)[]>

    • Parameters

      • tag: string

      Returns Promise<(TSNode | null)[]>

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

      the whole list of nodes the current user has access to in the app.

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

    • Returns Promise<TSNode | null>

      the current node in the Javascript context.

    • Parameters

      • id: unknown

        The ID of the node to be retrieved

      Returns Promise<TSNode | null>

      the found node or undefined

    • Parameters

      • path: string

        The full path to the node to be retrieved, e.g. “path/to/mynode”.

      Returns Promise<TSNode | null>

      the found node or undefined.

    Synchronization

    • Use “push” to push all waiting data to the back-office (user statistics, carts, filled forms...)

      Returns Promise<void>