[Security Solution][Detection Engine] fixes type errors, adds category for new ES|QL rule type (#167745)

## Summary

- https://github.com/elastic/kibana/pull/166781 PR added category id for
each Security rule type. This PR was created before ES|QL rule was
added, but ES|QL rule got merged earlier, before the last successful
build for that PR was created. That allowed maintenance window PR to be
merged, without adding category to ES|QL rule
This commit is contained in:
Vitalii Dmyterko 2023-10-02 12:47:22 +01:00 committed by GitHub
parent b0ef90dad1
commit 274139eff7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,6 +7,7 @@
import { validateNonExact } from '@kbn/securitysolution-io-ts-utils';
import { ESQL_RULE_TYPE_ID } from '@kbn/securitysolution-rules';
import { DEFAULT_APP_CATEGORIES } from '@kbn/core-application-common';
import { SERVER_APP_ID } from '../../../../../common/constants';
import type { EsqlRuleParams } from '../../rule_schema';
@ -47,6 +48,7 @@ export const createEsqlAlertType = (
},
minimumLicenseRequired: 'basic',
isExportable: false,
category: DEFAULT_APP_CATEGORIES.security.id,
producer: SERVER_APP_ID,
executor: (params) => esqlExecutor({ ...params, version }),
};