/** * 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 { Registry } from '@nocobase/utils/client'; import { ComponentType } from 'react'; type LoaderOf
> = () => Promise<{ default: ComponentType
;
}>;
export type RegisterChannelOptions = {
title: string;
type: string;
components: {
ChannelConfigForm: ComponentType;
MessageConfigForm?: ComponentType<{
variableOptions: any;
}>;
ContentConfigForm?: ComponentType<{
variableOptions?: any;
}>;
ChannelConfigFormLoader?: LoaderOf;
MessageConfigFormLoader?: LoaderOf<{
variableOptions: any;
}>;
ContentConfigFormLoader?: LoaderOf<{
variableOptions?: any;
}>;
};
meta?: {
creatable?: boolean;
editable?: boolean;
deletable?: boolean;
};
};
export type ChannelTypes = Registry