ExportOptions | WebHare Platform SDK
WebHare Platform SDK
    Preparing search index...

    Type Alias ExportOptions

    type ExportOptions = {
        export?: boolean;
        exportFile?: (
            file: WebHareBlob,
            info: Pick<
                ResourceBaseMetadata,
                "fileName"
                | "extension"
                | "hash"
                | "mediaType",
            >,
        ) => MaybePromise<ExportedBlobReference | undefined>;
        mapWhfsLink?: (
            data: ExportMapWhfsLinkInfo,
        ) => string | null | Promise<string | null>;
    }
    Index

    Properties

    export?: boolean
    exportFile?: (
        file: WebHareBlob,
        info: Pick<
            ResourceBaseMetadata,
            "fileName"
            | "extension"
            | "hash"
            | "mediaType",
        >,
    ) => MaybePromise<ExportedBlobReference | undefined>

    Callback that should attempt to store/refer blobs outside the export structure

    mapWhfsLink?: (
        data: ExportMapWhfsLinkInfo,
    ) => string | null | Promise<string | null>