mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-08-03 06:17:29 +08:00
Feat: add DingTalk AI Table connector and integration for data synch… (#13413)
### What problem does this PR solve? Add DingTalk AI Table connector and integration for data synchronization Issue #13400 ### Type of change - [x] New Feature (non-breaking change which adds functionality) Co-authored-by: wangheyang <wangheyang@corp.netease.com>
This commit is contained in:
@@ -30,6 +30,7 @@ export enum DataSourceKey {
|
||||
OCI_STORAGE = 'oci_storage',
|
||||
GOOGLE_CLOUD_STORAGE = 'google_cloud_storage',
|
||||
AIRTABLE = 'airtable',
|
||||
DINGTALK_AI_TABLE = 'dingtalk_ai_table',
|
||||
GITLAB = 'gitlab',
|
||||
ASANA = 'asana',
|
||||
IMAP = 'imap',
|
||||
@@ -123,6 +124,11 @@ export const generateDataSourceInfo = (t: TFunction) => {
|
||||
description: t(`setting.${DataSourceKey.AIRTABLE}Description`),
|
||||
icon: <SvgIcon name={'data-source/airtable'} width={38} />,
|
||||
},
|
||||
[DataSourceKey.DINGTALK_AI_TABLE]: {
|
||||
name: 'Dingtalk AI Table',
|
||||
description: t(`setting.dingtalkAITableDescription`),
|
||||
icon: <SvgIcon name={'data-source/dingtalk-ai-table'} width={38} />,
|
||||
},
|
||||
[DataSourceKey.GITLAB]: {
|
||||
name: 'GitLab',
|
||||
description: t(`setting.${DataSourceKey.GITLAB}Description`),
|
||||
@@ -658,6 +664,26 @@ export const DataSourceFormFields = {
|
||||
required: true,
|
||||
},
|
||||
],
|
||||
[DataSourceKey.DINGTALK_AI_TABLE]: [
|
||||
{
|
||||
label: 'Access Token',
|
||||
name: 'config.credentials.access_token',
|
||||
type: FormFieldType.Password,
|
||||
required: true,
|
||||
},
|
||||
{
|
||||
label: 'Base ID',
|
||||
name: 'config.table_id',
|
||||
type: FormFieldType.Text,
|
||||
required: true,
|
||||
},
|
||||
{
|
||||
label: 'Operator ID',
|
||||
name: 'config.operator_id',
|
||||
type: FormFieldType.Text,
|
||||
required: true,
|
||||
},
|
||||
],
|
||||
[DataSourceKey.GITLAB]: [
|
||||
{
|
||||
label: 'Project Owner',
|
||||
@@ -1135,6 +1161,17 @@ export const DataSourceFormDefaultValues = {
|
||||
},
|
||||
},
|
||||
},
|
||||
[DataSourceKey.DINGTALK_AI_TABLE]: {
|
||||
name: '',
|
||||
source: DataSourceKey.DINGTALK_AI_TABLE,
|
||||
config: {
|
||||
table_id: '',
|
||||
operator_id: '',
|
||||
credentials: {
|
||||
access_token: '',
|
||||
},
|
||||
},
|
||||
},
|
||||
[DataSourceKey.GITLAB]: {
|
||||
name: '',
|
||||
source: DataSourceKey.GITLAB,
|
||||
|
||||
Reference in New Issue
Block a user