fixed typechecks

This commit is contained in:
Yuliia Naumenko 2021-08-24 16:36:07 -07:00
parent 041243a66c
commit 6f6770fa4b
6 changed files with 11 additions and 0 deletions

View file

@ -77,6 +77,7 @@ const rewriteBodyRes: RewriteResponseCase<FindResult<AlertTypeParams>> = ({
executionStatus,
actions,
scheduledTaskId,
legacyId,
...rest
}) => ({
...rest,
@ -86,6 +87,7 @@ const rewriteBodyRes: RewriteResponseCase<FindResult<AlertTypeParams>> = ({
created_at: createdAt,
updated_at: updatedAt,
api_key_owner: apiKeyOwner,
legacy_id: legacyId,
notify_when: notifyWhen,
mute_all: muteAll,
muted_alert_ids: mutedInstanceIds,

View file

@ -40,6 +40,7 @@ describe('createAlertRoute', () => {
bar: true,
},
throttle: '30s',
legacyId: null,
notifyWhen: 'onActionGroupChange',
actions: [
{

View file

@ -82,6 +82,7 @@ export default function createAlertTests({ getService }: FtrProviderContext) {
consumer: 'alertsFixture',
params: {},
created_by: null,
legacy_id: null,
schedule: { interval: '1m' },
scheduled_task_id: response.body.scheduled_task_id,
updated_by: null,
@ -318,6 +319,7 @@ export default function createAlertTests({ getService }: FtrProviderContext) {
scheduledTaskId: response.body.scheduledTaskId,
updatedBy: null,
apiKeyOwner: null,
legacyId: null,
throttle: '1m',
notifyWhen: 'onThrottleInterval',
muteAll: false,

View file

@ -59,6 +59,7 @@ export default function createFindTests({ getService }: FtrProviderContext) {
actions: [],
params: {},
created_by: null,
legacy_id: null,
api_key_owner: null,
scheduled_task_id: match.scheduled_task_id,
updated_by: null,
@ -145,6 +146,7 @@ export default function createFindTests({ getService }: FtrProviderContext) {
actions: [],
params: {},
createdBy: null,
legacyId: null,
apiKeyOwner: null,
scheduledTaskId: match.scheduledTaskId,
updatedBy: null,

View file

@ -43,6 +43,7 @@ export default function createGetTests({ getService }: FtrProviderContext) {
actions: [],
params: {},
created_by: null,
legacy_id: null,
scheduled_task_id: response.body.scheduled_task_id,
updated_by: null,
api_key_owner: null,
@ -108,6 +109,7 @@ export default function createGetTests({ getService }: FtrProviderContext) {
actions: [],
params: {},
createdBy: null,
legacyId: null,
scheduledTaskId: response.body.scheduledTaskId,
updatedBy: null,
apiKeyOwner: null,

View file

@ -54,6 +54,7 @@ export default function createUpdateTests({ getService }: FtrProviderContext) {
enabled: true,
updated_by: null,
api_key_owner: null,
legacyId: null,
mute_all: false,
muted_alert_ids: [],
notify_when: 'onThrottleInterval',
@ -142,6 +143,7 @@ export default function createUpdateTests({ getService }: FtrProviderContext) {
enabled: true,
updatedBy: null,
apiKeyOwner: null,
legacyId: null,
muteAll: false,
mutedInstanceIds: [],
notifyWhen: 'onThrottleInterval',