Skip to content

@sqlrooms/artifacts / UseArtifactWorkspaceResult

Type Alias: UseArtifactWorkspaceResult ​

UseArtifactWorkspaceResult = object

Tab-free artifact collection state and actions for one artifact surface.

Properties ​

artifactIds ​

artifactIds: string[]


artifacts ​

artifacts: ArtifactWorkspaceDescriptor[]


selectedArtifactId? ​

optional selectedArtifactId?: string


selectedArtifact? ​

optional selectedArtifact?: ArtifactMetadata


artifactTypes ​

artifactTypes: ArtifactTypeDefinitions<any>


createArtifact ​

createArtifact: (type?, options?) => string | undefined

Parameters ​

ParameterType
type?string
options?{ title?: string; }
options.title?string

Returns ​

string | undefined


deleteArtifact ​

deleteArtifact: (artifactId) => void

Parameters ​

ParameterType
artifactIdstring

Returns ​

void


renameArtifact ​

renameArtifact: (artifactId, title) => void

Parameters ​

ParameterType
artifactIdstring
titlestring

Returns ​

void


selectArtifact ​

selectArtifact: (artifactId) => void

Parameters ​

ParameterType
artifactIdstring

Returns ​

void