Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • AttachmentClient

Index

Constructors

Properties

client: HttpClient

Methods

  • Delete attachment permanently by attachment id.

    Parameters

    • attachmentId: number

      attachment id

    Returns Promise<Response<Attachment[]>>

    Returns attachment detail of deleted

  • Batch delete attachment permanently by attachment ids.

    Parameters

    • attachmentIds: number[]

      a collection of attachment id

    Returns Promise<Response<Attachment[]>>

    Returns attachments of deleted

  • Gets attachment detail by id.

    Parameters

    • attachmentId: number

      attachment id

    Returns Promise<Response<Attachment>>

    Returns attachment detail response.

  • Page query attachment list.

    Parameters

    Returns Promise<Response<Page<Attachment>>>

    Returns attachment page response.

  • listMediaTypes(): Promise<Response<string[]>>
  • List all of attachment media types.

    Returns Promise<Response<string[]>>

    Returns attachment media types response.

  • listTypes(): Promise<Response<string[]>>
  • List all of attachment types.

    Returns Promise<Response<string[]>>

    Returns a response of attachment types.

  • Update attachment name by id.

    Parameters

    • attachmentId: number

      attachment id

    • name: string

      a new attachment name

    Returns Promise<Response<Attachment>>

    Returns an updated attachment response.

  • Upload a single attachment file.

    Parameters

    • data: unknown

      attachment file object.

    • Optional options: UploadOptions

      other upload options.

    Returns Promise<Response<Attachment>>

    Returns a response of uploaded attachment

  • Batch upload attachments.

    Parameters

    • data: unknown[]

      attachment file object.

    • Optional options: UploadOptions

      other upload options.

    Returns Promise<Response<Attachment[]>>

    Returns a response of uploaded attachments.

Generated using TypeDoc