Skip to content

Commit

Permalink
Updated Notion native config to correct one
Browse files Browse the repository at this point in the history
  • Loading branch information
efegurkan committed May 8, 2024
1 parent 810e820 commit ae75b9b
Showing 1 changed file with 36 additions and 31 deletions.
67 changes: 36 additions & 31 deletions packages/kbn-search-connectors/types/native_connectors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2808,84 +2808,89 @@ export const NATIVE_CONNECTOR_DEFINITIONS: Record<string, NativeConnector | unde
},
notion: {
configuration: {
tenant_id: {
notion_secret_key: {
default_value: null,
depends_on: [],
display: DisplayType.TEXTBOX,
label: i18n.translate('searchConnectors.nativeConnectors.notion.tenantIdLabel', {
defaultMessage: 'Tenant ID',
label: i18n.translate('searchConnectors.nativeConnectors.notion.notionSecretKeyLabel', {
defaultMessage: 'Notion Secret Key',
}),
options: [],
order: 1,
required: true,
sensitive: false,
sensitive: true,
tooltip: null,
type: FieldType.STRING,
ui_restrictions: [],
validations: [],
value: '',
},
client_id: {
default_value: null,
databases: {
default_value: '',
depends_on: [],
display: DisplayType.TEXTBOX,
label: i18n.translate('searchConnectors.nativeConnectors.notion.clientIdLabel', {
defaultMessage: 'Client ID',
label: i18n.translate('searchConnectors.nativeConnectors.notion.databasesLabel', {
defaultMessage: 'List of Databases',
}),
options: [],
order: 2,
required: true,
sensitive: false,
tooltip: null,
type: FieldType.STRING,
tooltip: '',
type: FieldType.LIST,
ui_restrictions: [],
validations: [],
value: '',
},
secret_value: {
default_value: null,
pages: {
default_value: '',
depends_on: [],
display: DisplayType.TEXTBOX,
label: i18n.translate('searchConnectors.nativeConnectors.notion.secretValueLabel', {
defaultMessage: 'Secret value',
label: i18n.translate('searchConnectors.nativeConnectors.notion.pagesLabel', {
defaultMessage: 'List of Pages',
}),
options: [],
order: 3,
required: true,
sensitive: true,
tooltip: null,
type: FieldType.STRING,
sensitive: false,
tooltip: '',
type: FieldType.LIST,
ui_restrictions: [],
validations: [],
value: '',
},
username: {
index_comments: {
default_value: null,
depends_on: [],
display: DisplayType.TEXTBOX,
label: USERNAME_LABEL,
display: DisplayType.TOGGLE,
label: i18n.translate('searchConnectors.nativeConnectors.notion.indexCommentsLabel', {
defaultMessage: 'Enable indexing comments',
}),
options: [],
order: 4,
required: true,
sensitive: false,
tooltip: null,
type: FieldType.STRING,
tooltip: i18n.translate('searchConnectors.nativeConnectors.notion.indexCommentsTooltip', {
defaultMessage:
'Enabling this will increase the amount of network calls to the source, and may decrease performance',
}),
type: FieldType.BOOLEAN,
ui_restrictions: [],
validations: [],
value: '',
value: false,
},
password: {
default_value: null,
concurrent_downloads: {
default_value: 30,
depends_on: [],
display: DisplayType.TEXTBOX,
label: PASSWORD_LABEL,
display: DisplayType.NUMERIC,
label: MAX_CONCURRENT_DOWNLOADS_LABEL,
options: [],
order: 5,
required: true,
sensitive: true,
required: false,
sensitive: false,
tooltip: null,
type: FieldType.STRING,
ui_restrictions: [],
type: FieldType.INTEGER,
ui_restrictions: ['advanced'],
validations: [],
value: '',
},
Expand Down

0 comments on commit ae75b9b

Please sign in to comment.