feat: support importing and overwriting workflow DSL (#5511)

Co-authored-by: StyleZhang <jasonapring2015@outlook.com>
This commit is contained in:
takatost 2024-06-25 15:46:12 +08:00 committed by GitHub
commit ec1d3ddee2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 361 additions and 26 deletions

View file

@ -54,3 +54,7 @@ export const fetchNodeDefault = (appId: string, blockType: BlockEnum, query = {}
params: { q: JSON.stringify(query) },
})
}
export const updateWorkflowDraftFromDSL = (appId: string, data: string) => {
return post<FetchWorkflowDraftResponse>(`apps/${appId}/workflows/draft/import`, { body: { data } })
}