Skip to content

Commit

Permalink
Fix variable usage for enums
Browse files Browse the repository at this point in the history
  • Loading branch information
artem-shelkovnikov authored Jan 10, 2025
1 parent ede8b4e commit fcfa044
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions packages/kbn-search-connectors/types/native_connectors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4379,7 +4379,7 @@ export const NATIVE_CONNECTOR_DEFINITIONS: Record<string, NativeConnector | unde
auth_method: {
default_value: null,
depends_on: [],
display: DROPDOWN,
display: DisplayType.DROPDOWN,
label: translate(
'searchConnectors.nativeConnectors.sharepoint_online.configuration.authMethodLabel',
{
Expand Down Expand Up @@ -4410,7 +4410,7 @@ export const NATIVE_CONNECTOR_DEFINITIONS: Record<string, NativeConnector | unde
required: true,
sensitive: false,
tooltip: null,
type: STRING,
type: FieldType.STRING,
ui_restrictions: [],
validations: [],
value: 'certificate',
Expand Down Expand Up @@ -4443,7 +4443,7 @@ export const NATIVE_CONNECTOR_DEFINITIONS: Record<string, NativeConnector | unde
value: 'certificate',
},
],
display: TEXTAREA,
display: DisplayType.TEXTAREA,
label: translate(
'searchConnectors.nativeConnectors.sharepoint_online.configuration.certificateLabel',
{
Expand All @@ -4455,7 +4455,7 @@ export const NATIVE_CONNECTOR_DEFINITIONS: Record<string, NativeConnector | unde
required: true,
sensitive: true,
tooltip: null,
type: STRING,
type: FieldType.STRING,
ui_restrictions: [],
validations: [],
value: '',
Expand All @@ -4468,7 +4468,7 @@ export const NATIVE_CONNECTOR_DEFINITIONS: Record<string, NativeConnector | unde
value: 'certificate',
},
],
display: TEXTAREA,
display: DisplayType.TEXTAREA,
label: translate(
'searchConnectors.nativeConnectors.sharepoint_online.configuration.privateKeyLabel',
{
Expand All @@ -4480,7 +4480,7 @@ export const NATIVE_CONNECTOR_DEFINITIONS: Record<string, NativeConnector | unde
required: true,
sensitive: true,
tooltip: null,
type: STRING,
type: FieldType.STRING,
ui_restrictions: [],
validations: [],
value: '',
Expand Down Expand Up @@ -4515,7 +4515,7 @@ export const NATIVE_CONNECTOR_DEFINITIONS: Record<string, NativeConnector | unde
enumerate_all_sites: {
default_value: true,
depends_on: [],
display: TOGGLE,
display: DisplayType.TOGGLE,
label: i18n.translate(
'searchConnectors.nativeConnectors.sharepoint_online.configuration.enumerateAllSitesLabel',
{ defaultMessage: 'Enumerate all sites?' }
Expand All @@ -4531,15 +4531,15 @@ export const NATIVE_CONNECTOR_DEFINITIONS: Record<string, NativeConnector | unde
'If enabled, sites will be fetched in bulk, then filtered down to the configured list of sites. This is efficient when syncing many sites. If disabled, each configured site will be fetched with an individual request. This is efficient when syncing fewer sites.',
}
),
type: BOOLEAN,
type: FieldType.BOOLEAN,
ui_restrictions: [],
validations: [],
value: true,
},
fetch_subsites: {
default_value: false,
depends_on: [{ field: 'enumerate_all_sites', value: false }],
display: TOGGLE,
display: DisplayType.TOGGLE,
label: i18n.translate(
'searchConnectors.nativeConnectors.sharepoint_online.configuration.fetchSubsitesLabel',
{
Expand All @@ -4557,7 +4557,7 @@ export const NATIVE_CONNECTOR_DEFINITIONS: Record<string, NativeConnector | unde
'Whether subsites of the configured site(s) should be automatically fetched.',
}
),
type: BOOLEAN,
type: FieldType.BOOLEAN,
ui_restrictions: [],
validations: [],
value: true,
Expand Down

0 comments on commit fcfa044

Please sign in to comment.