@twinfinity/core
    Preparing search index...

    Interface UploadApiClient

    API for uploading content.

    interface UploadApiClient {
        canAppendFileVersion(
            permissionsAndOwnerSystem: DeepImmutable<BimChangeUploadable>,
        ): boolean;
        canCreateFileIn(
            permissions: DeepImmutable<BimChangeLayer | BimFolder>,
        ): boolean;
        canCreateFileInFolder(permissions: DeepImmutable<BimFolder>): boolean;
        createFileSession<Change extends BimChangeUploadable>(
            operation: UploadApiClientContentOperation<Change>,
            o?: DeepImmutableObject<UploadApiClientContentOptions>,
        ): Promise<UploadApiClientFailure | UploadApiTask<Change>>;
    }
    Index

    Methods

    • Checks if it is possible to append a version to a existing change.

      Parameters

      Returns boolean

      true if it is possible to upload content and thereby appending a new version (previous version must exist.)

    • Check if it is possible to create a new change (file) in a folder or a file.

      Parameters

      Returns boolean

      true if it is possible to upload content into the folder and create a new file (no previous version may exist.)

    • Check if it is possible to create a new change (file) in a folder.

      Parameters

      Returns boolean

      true if it is possible to upload content into the folder and create a new file (no previous version may exist.)

      Use canCreateFileIn instead.