@twinfinity/core
    Preparing search index...

    Class LayerAttachmentsApiAlpha

    Represents the Layer Attachments API. Contains methods to work with layer attachments for a specific layer. This class is not fully tested yet. Use with caution.

    Index

    Constructors

    • Alpha

      Creates a new instance of the LayerAttachmentsApiImpl class.

      Parameters

      • _clientApi: TwinfinityApiClient

        The TwinfinityApiClient instance.

      • _parent: {
            layer: BimChangeLayer;
            throwIfNoPermissionsAreSatisfied(
                ...requiredPermissions: Permission[],
            ): void;
        }

        The parent object containing the layer and permission-related methods.

      Returns LayerAttachmentsApi

    Methods

    • Alpha

      Determines whether the caller has sufficient permissions to add attachments to the layer.

      Returns boolean

      True if attachments can be added to the layer, false otherwise.

    • Alpha

      Determines whether the caller has sufficient permissions to update a attachment (create a new version of it) on the layer.

      Parameters

      Returns boolean

      True if the attachment can be updated (new version created), false otherwise.

    • Alpha

      Checks if the given change is an attachment of the layer.

      Parameters

      Returns boolean

      True if the change is an attachment of the layer, false otherwise.