Constructors

Methods

Constructors

  • Parameters

    • options: {
          blobStore: BlobStore;
          getMediaBaseUrl: (() => Promise<string>);
      }
      • blobStore: BlobStore
      • getMediaBaseUrl: (() => Promise<string>)
          • (): Promise<string>
          • Returns Promise<string>

    Returns BlobApi

Methods

  • Write blobs for provided variants of a file

    Parameters

    • filepaths: {
          original: string;
          preview?: string;
          thumbnail?: string;
      }
      • original: string
      • Optionalpreview?: string
      • Optionalthumbnail?: string
    • metadata: Metadata

    Returns Promise<{
        driveId: string;
        hash: string;
        name: string;
        type: "photo" | "video" | "audio";
    }>

  • Get a url for a blob based on its BlobId

    Parameters

    Returns Promise<string>