mirror of https://github.com/langgenius/dify.git
refactor(trigger): update TriggerApiEntity description type to TypeWithI18N
- Changed the description field type in `TriggerApiEntity` from `TriggerDescription` to `TypeWithI18N` for improved internationalization support. - Adjusted the usage of the description field in the `convertToTriggerWithProvider` function to align with the new type definition.
This commit is contained in:
parent
8dfe693529
commit
90fc06a494
|
|
@ -184,7 +184,7 @@ export type TriggerDescription = {
|
|||
export type TriggerApiEntity = {
|
||||
name: string
|
||||
identity: TriggerIdentity
|
||||
description: TriggerDescription
|
||||
description: TypeWithI18N
|
||||
parameters: TriggerParameter[]
|
||||
output_schema?: Record<string, any>
|
||||
}
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ const convertToTriggerWithProvider = (provider: TriggerProviderApiEntity): Trigg
|
|||
name: event.name,
|
||||
author: provider.author,
|
||||
label: event.identity.label,
|
||||
description: event.description.llm,
|
||||
description: event.description,
|
||||
parameters: event.parameters.map(param => ({
|
||||
name: param.name,
|
||||
label: param.label,
|
||||
|
|
|
|||
Loading…
Reference in New Issue