[Search] Updated Notion native config to correct one (#182920)

## Summary

Updated Notion native config to correct one as it was copied wrong
previously.

Thanks @praveen-elastic

### Checklist

Delete any items that are not applicable to this PR.

- [x] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)
- [ ] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [x] This renders correctly on smaller devices using a responsive
layout. (You can test this [in your
browser](https://www.browserstack.com/guide/responsive-testing-on-local-server))
- [x] This was checked for [cross-browser
compatibility](https://www.elastic.co/support/matrix#matrix_browsers)
This commit is contained in:
Efe Gürkan YALAMAN 2024-05-08 17:17:15 +02:00 committed by GitHub
parent 8805c4ea4e
commit e7dc1fcd03
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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: '',
},