IWaldiezModelStore
Defined in: src/waldiez/models/Stores/IModelStore.ts:7
PropertiesΒΆ
addModel()ΒΆ
addModel: () =>
WaldiezNodeModel
Defined in: src/waldiez/models/Stores/IModelStore.ts:26
Add a new model to the store.
ReturnsΒΆ
The newly added model.
SeeΒΆ
cloneModel()ΒΆ
cloneModel: (
id
) =>null
|WaldiezNodeModel
Defined in: src/waldiez/models/Stores/IModelStore.ts:33
Clone an existing model.
ParametersΒΆ
idΒΆ
string
ReturnsΒΆ
null
| WaldiezNodeModel
The cloned model, or null if the model was not found.
SeeΒΆ
deleteModel()ΒΆ
deleteModel: (
id
) =>void
Defined in: src/waldiez/models/Stores/IModelStore.ts:45
Delete a specific model from the store.
ParametersΒΆ
idΒΆ
string
ReturnsΒΆ
void
exportModel()ΒΆ
exportModel: (
modelId
,hideSecrets
) =>object
Defined in: src/waldiez/models/Stores/IModelStore.ts:67
Export a model from the store.
ParametersΒΆ
modelIdΒΆ
string
hideSecretsΒΆ
boolean
ReturnsΒΆ
object
The exported model data.
getModelById()ΒΆ
getModelById: (
id
) =>null
|WaldiezNodeModel
Defined in: src/waldiez/models/Stores/IModelStore.ts:20
Get a specific model by its ID.
ParametersΒΆ
idΒΆ
string
ReturnsΒΆ
null
| WaldiezNodeModel
The model with the specified ID, or null if not found.
SeeΒΆ
getModels()ΒΆ
getModels: () =>
WaldiezNodeModel
[]
Defined in: src/waldiez/models/Stores/IModelStore.ts:13
Get the stored models.
ReturnsΒΆ
An array of models.
SeeΒΆ
importModel()ΒΆ
importModel: (
model
,modelId
,position
,save
) =>WaldiezNodeModel
Defined in: src/waldiez/models/Stores/IModelStore.ts:55
Import a model into the store.
ParametersΒΆ
modelΒΆ
modelIdΒΆ
string
positionΒΆ
undefined
| { x
: number
; y
: number
; }
saveΒΆ
boolean
ReturnsΒΆ
The imported model.
SeeΒΆ
updateModelData()ΒΆ
updateModelData: (
id
,data
) =>void
Defined in: src/waldiez/models/Stores/IModelStore.ts:40
Update the data of a specific model.
ParametersΒΆ
idΒΆ
string
dataΒΆ
Partial
\<WaldiezNodeModelData
>
ReturnsΒΆ
void