feat:脚本只读
This commit is contained in:
@@ -413,6 +413,22 @@ export async function updateScript(
|
||||
);
|
||||
}
|
||||
|
||||
export async function getScriptContent(
|
||||
workspaceId: string,
|
||||
scriptId: string,
|
||||
): Promise<{
|
||||
script_id: string;
|
||||
script_type: ScriptType;
|
||||
content: string | object;
|
||||
format: string;
|
||||
}> {
|
||||
return apiRequest(
|
||||
`/api/v1/scripts/${scriptId}/content`,
|
||||
{},
|
||||
workspaceId,
|
||||
).then((envelope) => (envelope as Record<string, any>).data);
|
||||
}
|
||||
|
||||
export async function deleteScript(
|
||||
workspaceId: string,
|
||||
scriptId: string,
|
||||
|
||||
Reference in New Issue
Block a user