File class

Abstract

Hierarchy

Constructors

Properties

Methods

Constructors

Properties

comment: string
documentGu: string
file: {
    date: Date;
    name: string;
    type: string;
}

Type declaration

  • date: Date
  • name: string
  • type: string

Methods

  • Retrieve the file from synergy servers. After retrieving the xmlObject, this method calls parseXMLObject which must be defined to parse the xmlObject into a readable, typesafe object.

    Returns

    Returns a base64 object

    Description

    const base64 = await document.get(); // { attribute: { nested: {...} }, base64: "base64 code" }
    

    Returns Promise<DocumentFile[]>

  • Type Parameters

    • T extends undefined | object

    Parameters

    • url: string
    • options: Partial<RequestOptions> = {}
    • preparse: ((xml: string) => string) = ...
        • (xml: string): string
        • Parameters

          • xml: string

          Returns string

    Returns Promise<T>

Generated using TypeDoc