Constructors

Methods

  • Deletes the file at the specified path in the specified environment. Delete a file

    Parameters

    • environment: string

      The environment of the file ("draft" or "published").

    • path: string

      The file system location of the file.

    • Optional_options: Configuration

    Returns Promise<void>

  • Deletes the file at the specified path in the specified environment. Delete a file

    Parameters

    • environment: string

      The environment of the file (&quot;draft&quot; or &quot;published&quot;).

    • path: string

      The file system location of the file.

    • Optional_options: Configuration

    Returns Promise<HttpInfo<void>>

  • Creates a file at the specified path in the specified environment. Accepts multipart/form-data content type. Throws an error if a file already exists at the specified path. Create a file

    Parameters

    • environment: string

      The environment of the file (&quot;draft&quot; or &quot;published&quot;).

    • path: string

      The file system location of the file.

    • Optionalfile: HttpFile
    • Optional_options: Configuration

    Returns Promise<AssetFileMetadata>

  • Upserts a file at the specified path in the specified environment. Accepts multipart/form-data content type. Create or update a file

    Parameters

    • environment: string

      The environment of the file (&quot;draft&quot; or &quot;published&quot;).

    • path: string

      The file system location of the file.

    • Optionalfile: HttpFile
    • Optional_options: Configuration

    Returns Promise<AssetFileMetadata>

  • Creates a file at the specified path in the specified environment. Accepts multipart/form-data content type. Throws an error if a file already exists at the specified path. Create a file

    Parameters

    • environment: string

      The environment of the file (&quot;draft&quot; or &quot;published&quot;).

    • path: string

      The file system location of the file.

    • Optionalfile: HttpFile
    • Optional_options: Configuration

    Returns Promise<HttpInfo<AssetFileMetadata>>

  • Downloads the byte contents of the file at the specified path in the specified environment. Download a file

    Parameters

    • environment: string

      The environment of the file (&quot;draft&quot; or &quot;published&quot;).

    • path: string

      The file system location of the file.

    • Optional_options: Configuration

    Returns Promise<void>

  • Downloads the byte contents of the file at the specified path in the specified environment. Download a file

    Parameters

    • environment: string

      The environment of the file (&quot;draft&quot; or &quot;published&quot;).

    • path: string

      The file system location of the file.

    • Optional_options: Configuration

    Returns Promise<HttpInfo<void>>