import { TLP } from './interfaces';

export const alertCommonFields = [
	{
		displayName: 'Title',
		id: 'title',
		type: 'string',
		removed: false,
	},
	{
		displayName: 'Description',
		id: 'description',
		type: 'string',
		removed: false,
	},
	{
		displayName: 'Type',
		id: 'type',
		type: 'string',
		removed: false,
	},
	{
		displayName: 'Source',
		id: 'source',
		type: 'string',
		removed: false,
	},
	{
		displayName: 'Source Reference',
		id: 'sourceRef',
		type: 'string',
		removed: false,
	},
	{
		displayName: 'External Link',
		id: 'externalLink',
		type: 'string',
		removed: true,
	},
	{
		displayName: 'Severity (Severity of information)',
		id: 'severity',
		type: 'options',
		options: [
			{
				name: 'Low',
				value: 1,
			},
			{
				name: 'Medium',
				value: 2,
			},
			{
				name: 'High',
				value: 3,
			},
			{
				name: 'Critical',
				value: 4,
			},
		],
		removed: true,
	},
	{
		displayName: 'Date',
		id: 'date',
		type: 'dateTime',
		removed: true,
	},
	{
		displayName: 'Last Sync Date',
		id: 'lastSyncDate',
		type: 'dateTime',
		removed: true,
	},
	{
		displayName: 'Tags',
		id: 'tags',
		type: 'string',
		removed: true,
	},
	{
		displayName: 'Follow',
		id: 'follow',
		type: 'boolean',
		removed: true,
	},
	{
		displayName: 'Flag',
		id: 'flag',
		type: 'boolean',
		removed: true,
	},
	{
		displayName: 'TLP (Confidentiality of information)',
		id: 'tlp',
		type: 'options',
		options: [
			{
				name: 'White',
				value: TLP.white,
			},
			{
				name: 'Green',
				value: TLP.green,
			},
			{
				name: 'Amber',
				value: TLP.amber,
			},
			{
				name: 'Red',
				value: TLP.red,
			},
		],
		removed: true,
	},
	{
		displayName: 'PAP (Level of exposure of information)',
		id: 'pap',
		type: 'options',
		options: [
			{
				name: 'White',
				value: TLP.white,
			},
			{
				name: 'Green',
				value: TLP.green,
			},
			{
				name: 'Amber',
				value: TLP.amber,
			},
			{
				name: 'Red',
				value: TLP.red,
			},
		],
		removed: true,
	},
	{
		displayName: 'Summary',
		id: 'summary',
		type: 'string',
		removed: true,
	},
	{
		displayName: 'Status',
		id: 'status',
		type: 'options',
		removed: true,
	},
	{
		displayName: 'Case Template',
		id: 'caseTemplate',
		type: 'options',
		removed: true,
	},
	{
		displayName: 'Add Tags',
		id: 'addTags',
		type: 'string',
		canBeUsedToMatch: false,
		removed: true,
	},
	{
		displayName: 'Remove Tags',
		id: 'removeTags',
		type: 'string',
		canBeUsedToMatch: false,
		removed: true,
	},
];

export const caseCommonFields = [
	{
		displayName: 'Title',
		id: 'title',
		type: 'string',
		removed: false,
	},
	{
		displayName: 'Description',
		id: 'description',
		type: 'string',
		removed: false,
	},
	{
		displayName: 'Severity (Severity of information)',
		id: 'severity',
		type: 'options',
		options: [
			{
				name: 'Low',
				value: 1,
			},
			{
				name: 'Medium',
				value: 2,
			},
			{
				name: 'High',
				value: 3,
			},
			{
				name: 'Critical',
				value: 4,
			},
		],
		removed: false,
	},
	{
		displayName: 'Start Date',
		id: 'startDate',
		type: 'dateTime',
		removed: false,
	},
	{
		displayName: 'End Date',
		id: 'endDate',
		type: 'dateTime',
		removed: true,
	},
	{
		displayName: 'Tags',
		id: 'tags',
		type: 'string',
		removed: false,
	},
	{
		displayName: 'Flag',
		id: 'flag',
		type: 'boolean',
		removed: true,
	},
	{
		displayName: 'TLP (Confidentiality of information)',
		id: 'tlp',
		type: 'options',
		options: [
			{
				name: 'White',
				value: TLP.white,
			},
			{
				name: 'Green',
				value: TLP.green,
			},
			{
				name: 'Amber',
				value: TLP.amber,
			},
			{
				name: 'Red',
				value: TLP.red,
			},
		],
		removed: false,
	},
	{
		displayName: 'PAP (Level of exposure of information)',
		id: 'pap',
		type: 'options',
		options: [
			{
				name: 'White',
				value: TLP.white,
			},
			{
				name: 'Green',
				value: TLP.green,
			},
			{
				name: 'Amber',
				value: TLP.amber,
			},
			{
				name: 'Red',
				value: TLP.red,
			},
		],
		removed: false,
	},
	{
		displayName: 'Summary',
		id: 'summary',
		type: 'string',
		removed: true,
	},
	{
		displayName: 'Status',
		id: 'status',
		type: 'options',
		removed: true,
	},
	{
		displayName: 'Assignee',
		id: 'assignee',
		type: 'options',
		removed: true,
	},
	{
		displayName: 'Case Template',
		id: 'caseTemplate',
		type: 'options',
		removed: true,
	},
	{
		displayName: 'Tasks',
		id: 'tasks',
		type: 'array',
		removed: true,
	},
	{
		displayName: 'Sharing Parameters',
		id: 'sharingParameters',
		type: 'array',
		removed: true,
	},
	{
		displayName: 'Impact Status',
		id: 'impactStatus',
		type: 'string',
		removed: true,
	},
	{
		displayName: 'Task Rule',
		id: 'taskRule',
		type: 'string',
		removed: true,
	},
	{
		displayName: 'Observable Rule',
		id: 'observableRule',
		type: 'string',
		removed: true,
	},
	{
		displayName: 'Add Tags',
		id: 'addTags',
		type: 'string',
		removed: true,
	},
	{
		displayName: 'Remove Tags',
		id: 'removeTags',
		type: 'string',
		removed: true,
	},
];

export const taskCommonFields = [
	{
		displayName: 'Title',
		id: 'title',
		type: 'string',
		removed: false,
	},
	{
		displayName: 'Description',
		id: 'description',
		type: 'string',
		removed: false,
	},
	{
		displayName: 'Group',
		id: 'group',
		type: 'string',
		removed: false,
	},
	{
		displayName: 'Status',
		id: 'status',
		type: 'stirng',
		removed: true,
	},
	{
		displayName: 'Flag',
		id: 'flag',
		type: 'boolean',
		removed: false,
	},
	{
		displayName: 'Start Date',
		id: 'startDate',
		type: 'dateTime',
		removed: true,
	},
	{
		displayName: 'Due Date',
		id: 'dueDate',
		type: 'dateTime',
		removed: false,
	},
	{
		displayName: 'End Date',
		id: 'endDate',
		type: 'dateTime',
		removed: true,
	},
	{
		displayName: 'Assignee',
		id: 'assignee',
		type: 'options',
		removed: false,
	},
	{
		displayName: 'Mandatory',
		id: 'mandatory',
		type: 'boolean',
		removed: false,
	},
	{
		displayName: 'Order',
		id: 'order',
		type: 'number',
		removed: true,
	},
];

export const observableCommonFields = [
	{
		displayName: 'Data Type',
		id: 'dataType',
		type: 'options',
		removed: false,
	},
	{
		displayName: 'Start Date',
		id: 'startDate',
		type: 'dateTime',
		removed: true,
	},
	{
		displayName: 'Description',
		id: 'message',
		type: 'string',
		removed: false,
	},
	{
		displayName: 'Tags',
		id: 'tags',
		type: 'string',
		removed: false,
	},
	{
		displayName: 'TLP (Confidentiality of information)',
		id: 'tlp',
		type: 'options',
		options: [
			{
				name: 'White',
				value: TLP.white,
			},
			{
				name: 'Green',
				value: TLP.green,
			},
			{
				name: 'Amber',
				value: TLP.amber,
			},
			{
				name: 'Red',
				value: TLP.red,
			},
		],
		removed: false,
	},
	{
		displayName: 'PAP (Level of exposure of information)',
		id: 'pap',
		type: 'options',
		options: [
			{
				name: 'White',
				value: TLP.white,
			},
			{
				name: 'Green',
				value: TLP.green,
			},
			{
				name: 'Amber',
				value: TLP.amber,
			},
			{
				name: 'Red',
				value: TLP.red,
			},
		],
		removed: false,
	},
	{
		displayName: 'IOC',
		id: 'ioc',
		type: 'boolean',
		removed: false,
	},
	{
		displayName: 'Sighted',
		id: 'sighted',
		type: 'boolean',
		removed: false,
	},
	{
		displayName: 'Sighted At',
		id: 'sightedAt',
		type: 'dateTime',
		removed: true,
	},
	{
		displayName: 'Ignore Similarity',
		id: 'ignoreSimilarity',
		type: 'boolean',
		removed: false,
	},
	{
		displayName: 'Is Zip',
		id: 'isZip',
		type: 'boolean',
		removed: true,
	},
	{
		displayName: 'Zip Password',
		id: 'zipPassword',
		type: 'string',
		removed: true,
	},
	{
		displayName: 'Add Tags',
		id: 'addTags',
		type: 'string',
		removed: true,
	},
	{
		displayName: 'Remove Tags',
		id: 'removeTags',
		type: 'string',
		removed: true,
	},
];