feat: change subscription field in workflow

This commit is contained in:
yessenia
2025-10-10 20:37:23 +08:00
parent bae8e44b32
commit 622d12137a
6 changed files with 23 additions and 55 deletions

View File

@ -1,5 +1,5 @@
import type { TypeWithI18N } from '@/app/components/header/account-setting/model-provider-page/declarations'
import type { PluginMeta, SupportedCreationMethods } from '../../plugins/types'
import type { ParametersSchema, PluginMeta, PluginTriggerSubscriptionConstructor, SupportedCreationMethods } from '../../plugins/types'
import type { Collection, Event } from '../../tools/types'
export enum TabsEnum {
@ -200,8 +200,8 @@ export type TriggerProviderApiEntity = {
plugin_unique_identifier: string
supported_creation_methods: SupportedCreationMethods[]
credentials_schema: TriggerCredentialField[]
oauth_client_schema: TriggerCredentialField[]
subscription_schema: TriggerSubscriptionSchema
subscription_constructor: PluginTriggerSubscriptionConstructor
subscription_schema: ParametersSchema[]
events: TriggerApiEntity[]
}
@ -211,8 +211,9 @@ export type TriggerWithProvider = Collection & {
meta: PluginMeta
plugin_unique_identifier: string
credentials_schema?: TriggerCredentialField[]
oauth_client_schema?: TriggerCredentialField[]
subscription_schema?: TriggerSubscriptionSchema
subscription_constructor: PluginTriggerSubscriptionConstructor
subscription_schema?: ParametersSchema[]
supported_creation_methods: SupportedCreationMethods[]
}
// ===== API Service Types =====