Skip to content

Commit

Permalink
[Search] Updated Notion native config to correct one (#182920)
Browse files Browse the repository at this point in the history
## 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)
  • Loading branch information
efegurkan authored May 8, 2024
1 parent 8805c4e commit e7dc1fc
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 e7dc1fc

Please sign in to comment.