/** * This file is part of the NocoBase (R) project. * Copyright (c) 2020-2024 NocoBase Co., Ltd. * Authors: NocoBase Team. * * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. * For more information, please refer to: https://www.nocobase.com/agreement. */ import { useCollectionDataSource } from '@nocobase/client'; import type { SchemaInitializerItemType } from '@nocobase/client'; import { CheckboxGroupWithTooltip, RadioWithTooltip, TriggerCollectionRecordSelect, WorkflowVariableWrapper } from '@nocobase/plugin-workflow/client'; import React from 'react'; import V2RequestInterceptionTrigger from '../client-v2/RequestInterceptionTrigger'; type WorkflowField = { isForeignKey?: boolean; type?: string; target?: string; collectionName?: string; name?: string; }; export default class RequestInterceptionTrigger extends V2RequestInterceptionTrigger { presetFieldset: { collection: { type: string; title: string; required: boolean; 'x-decorator': string; 'x-component': string; }; }; fieldset: { collection: { type: string; title: string; required: boolean; 'x-disabled': boolean; 'x-decorator': string; 'x-component': string; "x-reactions": { target: string; effects: string[]; fulfill: { state: { value: any[]; }; }; }[]; }; global: { type: string; title: string; 'x-decorator': string; 'x-component': string; 'x-component-props': { direction: string; options: { label: string; value: boolean; }[]; }; default: boolean; }; actions: { type: string; title: string; 'x-decorator': string; 'x-component': string; 'x-component-props': { direction: string; options: { label: string; value: string; }[]; }; required: boolean; 'x-reactions': { dependencies: string[]; fulfill: { state: { visible: string; }; }; }[]; }; }; triggerFieldset: { action: { type: string; title: string; 'x-decorator': string; 'x-component': string; 'x-component-props': { allowClear: boolean; }; enum: { label: string; value: string; }[]; default: string; required: boolean; }; target: { type: string; title: string; description: string; 'x-decorator': string; 'x-component': string; default: any; required: boolean; }; userId: { type: string; title: string; 'x-decorator': string; 'x-component': string; 'x-component-props': { nullable: boolean; changeOnSelect: boolean; variableOptions: { types: ((field: WorkflowField) => boolean)[]; }; render(props: Record): React.JSX.Element; }; default: any; required: boolean; }; roleName: { type: string; title: string; 'x-decorator': string; 'x-component': string; 'x-component-props': { nullable: boolean; changeOnSelect: boolean; variableOptions: { types: ((field: WorkflowField) => boolean)[]; }; render(props: Record): React.JSX.Element; }; default: any; }; }; scope: { useCollectionDataSource: typeof useCollectionDataSource; useValueObject(): boolean; }; components: { FieldsSelect: React.MemoExoticComponent>>; RadioWithTooltip: typeof RadioWithTooltip; CheckboxGroupWithTooltip: typeof CheckboxGroupWithTooltip; WorkflowVariableWrapper: typeof WorkflowVariableWrapper; TriggerCollectionRecordSelect: typeof TriggerCollectionRecordSelect; }; useInitializers(config: any): SchemaInitializerItemType | null; } export {};