diff --git a/opencti-platform/opencti-graphql/src/modules/ingestion/ingestion-rss.ts b/opencti-platform/opencti-graphql/src/modules/ingestion/ingestion-rss.ts index 76915865ea325..56d9647a2277a 100644 --- a/opencti-platform/opencti-graphql/src/modules/ingestion/ingestion-rss.ts +++ b/opencti-platform/opencti-graphql/src/modules/ingestion/ingestion-rss.ts @@ -29,15 +29,15 @@ const INGESTION_RSS_DEFINITION: ModuleDefinition { diff --git a/opencti-platform/opencti-graphql/src/modules/ingestion/ingestion-taxii.ts b/opencti-platform/opencti-graphql/src/modules/ingestion/ingestion-taxii.ts index 60cf30691d920..1c7bc4e985336 100644 --- a/opencti-platform/opencti-graphql/src/modules/ingestion/ingestion-taxii.ts +++ b/opencti-platform/opencti-graphql/src/modules/ingestion/ingestion-taxii.ts @@ -29,20 +29,20 @@ const INGESTION_DEFINITION: ModuleDefinition { diff --git a/opencti-platform/opencti-graphql/src/modules/internal/csvMapper/csvMapper.ts b/opencti-platform/opencti-graphql/src/modules/internal/csvMapper/csvMapper.ts index 4fa50bad94e88..e6d9e12a150e8 100644 --- a/opencti-platform/opencti-graphql/src/modules/internal/csvMapper/csvMapper.ts +++ b/opencti-platform/opencti-graphql/src/modules/internal/csvMapper/csvMapper.ts @@ -30,11 +30,11 @@ const CSV_MAPPER_DEFINITION: ModuleDefinition { diff --git a/opencti-platform/opencti-graphql/src/modules/internal/document/document.ts b/opencti-platform/opencti-graphql/src/modules/internal/document/document.ts index 23e9708e92bbb..a128006536dcb 100644 --- a/opencti-platform/opencti-graphql/src/modules/internal/document/document.ts +++ b/opencti-platform/opencti-graphql/src/modules/internal/document/document.ts @@ -5,7 +5,7 @@ import type { AttributeDefinition } from '../../../schema/attribute-definition'; // Register at minimum lastModified attribute // This way the search engine is able to order by lastModified const attributes: Array = [ - { name: 'lastModified', type: 'date', mandatoryType: 'internal', editDefault: false, multiple: false, upsert: false }, + { name: 'lastModified', label: 'Last modification date', type: 'date', mandatoryType: 'internal', editDefault: false, multiple: false, upsert: false, isFilterable: true }, ]; schemaAttributesDefinition.registerAttributes(ENTITY_TYPE_INTERNAL_FILE, attributes); diff --git a/opencti-platform/opencti-graphql/src/modules/language/language.ts b/opencti-platform/opencti-graphql/src/modules/language/language.ts index ba4b312ca58b4..8a6efc8d521ff 100644 --- a/opencti-platform/opencti-graphql/src/modules/language/language.ts +++ b/opencti-platform/opencti-graphql/src/modules/language/language.ts @@ -29,7 +29,7 @@ const LANGUAGE_DEFINITION: ModuleDefinition = }, }, attributes: [ - { name: 'name', type: 'string', mandatoryType: 'external', editDefault: true, multiple: false, upsert: true }, + { name: 'name', label: 'Name', type: 'string', mandatoryType: 'external', editDefault: true, multiple: false, upsert: true, isFilterable: true }, ], relations: [], // All relations are from the other side representative: (stix: StixLanguage) => { diff --git a/opencti-platform/opencti-graphql/src/modules/malwareAnalysis/malwareAnalysis.ts b/opencti-platform/opencti-graphql/src/modules/malwareAnalysis/malwareAnalysis.ts index 6575af2ac93ea..fa98d2fd0ea70 100644 --- a/opencti-platform/opencti-graphql/src/modules/malwareAnalysis/malwareAnalysis.ts +++ b/opencti-platform/opencti-graphql/src/modules/malwareAnalysis/malwareAnalysis.ts @@ -52,17 +52,17 @@ const MALWARE_ANALYSIS_DEFINITION: ModuleDefinition { diff --git a/opencti-platform/opencti-graphql/src/modules/managerConfiguration/managerConfiguration.ts b/opencti-platform/opencti-graphql/src/modules/managerConfiguration/managerConfiguration.ts index c66e7276019bd..eb6f0eccee69e 100644 --- a/opencti-platform/opencti-graphql/src/modules/managerConfiguration/managerConfiguration.ts +++ b/opencti-platform/opencti-graphql/src/modules/managerConfiguration/managerConfiguration.ts @@ -28,11 +28,11 @@ const MANAGER_CONFIGURATION_DEFINITION: ModuleDefinition { diff --git a/opencti-platform/opencti-graphql/src/modules/narrative/narrative.ts b/opencti-platform/opencti-graphql/src/modules/narrative/narrative.ts index 1342fe2701252..dc1607bb07d4a 100644 --- a/opencti-platform/opencti-graphql/src/modules/narrative/narrative.ts +++ b/opencti-platform/opencti-graphql/src/modules/narrative/narrative.ts @@ -31,9 +31,9 @@ const NARRATIVE_DEFINITION: ModuleDefinition = { }, }, attributes: [ - { name: 'name', type: 'string', mandatoryType: 'external', editDefault: true, multiple: false, upsert: false }, - { name: 'description', type: 'string', mandatoryType: 'no', editDefault: false, multiple: false, upsert: false }, - { name: 'event_types', type: 'string', mandatoryType: 'external', editDefault: true, multiple: true, upsert: false }, - { name: 'trigger_scope', type: 'string', mandatoryType: 'internal', editDefault: false, multiple: false, upsert: false }, - { name: 'notifiers', type: 'string', mandatoryType: 'external', editDefault: true, multiple: true, upsert: false }, - { name: 'filters', type: 'string', mandatoryType: 'no', editDefault: false, multiple: false, upsert: false }, - { name: 'recipients', type: 'string', mandatoryType: 'no', editDefault: false, multiple: true, upsert: false }, - { name: 'trigger_ids', type: 'string', mandatoryType: 'no', editDefault: false, multiple: true, upsert: false }, - { name: 'period', type: 'string', mandatoryType: 'no', editDefault: false, multiple: false, upsert: false }, - { name: 'trigger_time', type: 'string', mandatoryType: 'no', editDefault: false, multiple: false, upsert: false }, - { name: 'authorized_members', type: 'json', mandatoryType: 'no', editDefault: false, multiple: true, upsert: false }, - { name: 'authorized_authorities', type: 'string', mandatoryType: 'no', editDefault: false, multiple: true, upsert: false }, - { name: 'instance_trigger', type: 'boolean', mandatoryType: 'external', editDefault: true, multiple: false, upsert: false }, - { name: 'trigger_type', type: 'string', mandatoryType: 'internal', editDefault: false, multiple: false, upsert: false }, + { name: 'name', label: 'Name', type: 'string', mandatoryType: 'external', editDefault: true, multiple: false, upsert: false, isFilterable: true }, + { name: 'description', label: 'Description', type: 'string', mandatoryType: 'no', editDefault: false, multiple: false, upsert: false, isFilterable: true }, + { name: 'event_types', label: 'Event types', type: 'string', mandatoryType: 'external', editDefault: true, multiple: true, upsert: false, isFilterable: true }, + { name: 'trigger_scope', label: 'Trigger scope', type: 'string', mandatoryType: 'internal', editDefault: false, multiple: false, upsert: false, isFilterable: true }, + { name: 'notifiers', label: 'Notifiers', type: 'string', mandatoryType: 'external', editDefault: true, multiple: true, upsert: false, isFilterable: true }, + { name: 'filters', label: 'Filters', type: 'string', mandatoryType: 'no', editDefault: false, multiple: false, upsert: false, isFilterable: true }, + { name: 'recipients', label: 'Recipients', type: 'string', mandatoryType: 'no', editDefault: false, multiple: true, upsert: false, isFilterable: false }, + { name: 'trigger_ids', label: 'Trigger IDs', type: 'string', mandatoryType: 'no', editDefault: false, multiple: true, upsert: false, isFilterable: false }, + { name: 'period', label: 'Period', type: 'string', mandatoryType: 'no', editDefault: false, multiple: false, upsert: false, isFilterable: true }, + { name: 'trigger_time', label: 'Trigger time', type: 'string', mandatoryType: 'no', editDefault: false, multiple: false, upsert: false, isFilterable: true }, + { name: 'authorized_members', label: 'Authorized members', type: 'json', mandatoryType: 'no', editDefault: false, multiple: true, upsert: false, isFilterable: false }, + { name: 'authorized_authorities', label: 'Authorized authorities', type: 'string', mandatoryType: 'no', editDefault: false, multiple: true, upsert: false, isFilterable: false }, + { name: 'instance_trigger', label: 'Instance trigger', type: 'boolean', mandatoryType: 'external', editDefault: true, multiple: false, upsert: false, isFilterable: true }, + { name: 'trigger_type', label: 'Trigger type', type: 'string', mandatoryType: 'internal', editDefault: false, multiple: false, upsert: false, isFilterable: true }, ], relations: [], representative: (stix: StixTrigger) => { diff --git a/opencti-platform/opencti-graphql/src/modules/notifier/notifier.ts b/opencti-platform/opencti-graphql/src/modules/notifier/notifier.ts index 800738133ec49..bbdac547296db 100644 --- a/opencti-platform/opencti-graphql/src/modules/notifier/notifier.ts +++ b/opencti-platform/opencti-graphql/src/modules/notifier/notifier.ts @@ -23,13 +23,13 @@ const NOTIFIER_DEFINITION: ModuleDefinition = }, }, attributes: [ - { name: 'name', type: 'string', mandatoryType: 'internal', editDefault: false, multiple: false, upsert: false }, - { name: 'description', type: 'string', mandatoryType: 'no', editDefault: false, multiple: false, upsert: false }, - { name: 'built_in', type: 'boolean', mandatoryType: 'no', editDefault: false, multiple: false, upsert: false }, - { name: 'notifier_connector_id', type: 'string', mandatoryType: 'internal', editDefault: false, multiple: false, upsert: false }, - { name: 'notifier_configuration', type: 'json', mandatoryType: 'no', editDefault: false, multiple: false, upsert: false }, - { name: 'authorized_members', type: 'json', mandatoryType: 'no', editDefault: false, multiple: true, upsert: false }, - { name: 'authorized_authorities', type: 'string', mandatoryType: 'no', editDefault: false, multiple: true, upsert: false }, + { name: 'name', label: 'Name', type: 'string', mandatoryType: 'internal', editDefault: false, multiple: false, upsert: false, isFilterable: true }, + { name: 'description', label: 'Description', type: 'string', mandatoryType: 'no', editDefault: false, multiple: false, upsert: false, isFilterable: true }, + { name: 'built_in', label: 'Built-in', type: 'boolean', mandatoryType: 'no', editDefault: false, multiple: false, upsert: false, isFilterable: true }, + { name: 'notifier_connector_id', label: 'Connector ID', type: 'string', mandatoryType: 'internal', editDefault: false, multiple: false, upsert: false, isFilterable: false }, + { name: 'notifier_configuration', label: 'Configuration', type: 'json', mandatoryType: 'no', editDefault: false, multiple: false, upsert: false, isFilterable: false }, + { name: 'authorized_members', label: 'Authorized members', type: 'json', mandatoryType: 'no', editDefault: false, multiple: true, upsert: false, isFilterable: false }, + { name: 'authorized_authorities', label: 'Authorized authorities', type: 'string', mandatoryType: 'no', editDefault: false, multiple: true, upsert: false, isFilterable: false }, ], relations: [], representative: (stix: StixNotifier) => { diff --git a/opencti-platform/opencti-graphql/src/modules/organization/organization.ts b/opencti-platform/opencti-graphql/src/modules/organization/organization.ts index 4796017850f0d..209351cd04353 100644 --- a/opencti-platform/opencti-graphql/src/modules/organization/organization.ts +++ b/opencti-platform/opencti-graphql/src/modules/organization/organization.ts @@ -44,19 +44,11 @@ const ORGANIZATION_DEFINITION: ModuleDefinition