feat: enhance condition handling with enum value options and metadata in workflow components
This commit is contained in:
@@ -301,9 +301,16 @@ export type AIWorkflowVariableSelector = {
|
||||
|
||||
export type AIWorkflowVariableSpec = {
|
||||
name: string
|
||||
label?: string
|
||||
type: AIWorkflowVariableType
|
||||
required?: boolean
|
||||
description: string
|
||||
operators?: string[]
|
||||
valueOptions?: {
|
||||
value: unknown
|
||||
label: string
|
||||
description?: string
|
||||
}[]
|
||||
}
|
||||
|
||||
export type AIWorkflowDefinition = {
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
import { request } from "@/lib/api/client"
|
||||
|
||||
export type PublicConfig = {
|
||||
language: string
|
||||
wxworkEnabled: boolean
|
||||
oidcEnabled: boolean
|
||||
}
|
||||
|
||||
let publicConfigPromise: Promise<PublicConfig> | null = null
|
||||
|
||||
export function fetchPublicConfig() {
|
||||
publicConfigPromise ??= request<PublicConfig>("/api/config", {
|
||||
skipAuth: true,
|
||||
}).catch((error) => {
|
||||
publicConfigPromise = null
|
||||
throw error
|
||||
})
|
||||
return publicConfigPromise
|
||||
}
|
||||
Reference in New Issue
Block a user