Scripts¶
Méthodes¶
Scripts.AddScript¶
ADMIN
Add a script
Paramètres :
| Champ | Type | Notes |
|---|---|---|
content |
String |
|
name |
String |
Retour :
| Champ | Type | Notes |
|---|---|---|
errors |
StringList |
optionnel |
script |
Script | optionnel |
scriptError |
ScriptError |
Scripts.EditScript¶
ADMIN
Edit a script
Paramètres :
| Champ | Type | Notes |
|---|---|---|
id |
Uuid |
|
content |
String |
optionnel |
name |
String |
optionnel |
Retour :
| Champ | Type | Notes |
|---|---|---|
errors |
StringList |
optionnel |
scriptError |
ScriptError |
Scripts.GetScriptContent¶
ADMIN
Get a scripts content.
Paramètres :
| Champ | Type | Notes |
|---|---|---|
id |
Uuid |
Retour :
| Champ | Type | Notes |
|---|---|---|
content |
String |
optionnel |
scriptError |
ScriptError |
Scripts.GetScripts¶
ADMIN
Get all script, that is, their names and properties, but no content.
Paramètres :
Aucun paramètre.
Retour :
| Champ | Type | Notes |
|---|---|---|
scripts |
Scripts |
Scripts.RemoveScript¶
ADMIN
remove a script
Paramètres :
| Champ | Type | Notes |
|---|---|---|
id |
Uuid |
Retour :
| Champ | Type | Notes |
|---|---|---|
scriptError |
ScriptError |
Notifications¶
Scripts.ScriptAdded¶
Emitted when a script has been added to the system.
Paramètres :
| Champ | Type | Notes |
|---|---|---|
script |
Script |
Scripts.ScriptChanged¶
Emitted when a script has been changed in the system (e.g. renamed).
Paramètres :
| Champ | Type | Notes |
|---|---|---|
name |
String |
|
scriptId |
Uuid |
Scripts.ScriptContentChanged¶
Emitted when a script's content has been changed in the system.
Paramètres :
| Champ | Type | Notes |
|---|---|---|
scriptId |
Uuid |
Scripts.ScriptLogMessage¶
Emitted when a script produces a console message.
Paramètres :
| Champ | Type | Notes |
|---|---|---|
message |
String |
|
scriptId |
Uuid |
|
type |
ScriptMessageType |
Scripts.ScriptRemoved¶
Emitted when a script has been removed from the system.
Paramètres :
| Champ | Type | Notes |
|---|---|---|
id |
Uuid |