From 6740ab27750c9eb3f2e14c5f82c8f4254c76377e Mon Sep 17 00:00:00 2001 From: Jared Kobos Date: Wed, 20 Mar 2019 16:26:17 -0400 Subject: [PATCH] Add event types and account events messages --- src/eventMessageGenerator.ts | 6 ++++++ src/types/index.ts | 9 +++++++++ 2 files changed, 15 insertions(+) diff --git a/src/eventMessageGenerator.ts b/src/eventMessageGenerator.ts index 6574292e9f7..ab32ff9f506 100644 --- a/src/eventMessageGenerator.ts +++ b/src/eventMessageGenerator.ts @@ -12,6 +12,12 @@ interface CreatorsForStatus { /** @see https://leo.stcloudstate.edu/grammar/tenses.html */ export const eventMessageCreators: { [index: string]: CreatorsForStatus } = { + account_update: { + notification: e => `Your account settings have been updated.` + }, + account_settings_update: { + notification: e => `Your account settings have been updated.` + }, backups_cancel: { notification: e => `Backups have been cancelled for ${e.entity!.label}.` }, diff --git a/src/types/index.ts b/src/types/index.ts index b3f911ce7cc..16f3e186ab2 100644 --- a/src/types/index.ts +++ b/src/types/index.ts @@ -77,9 +77,14 @@ namespace Linode { } export type EventAction = + | 'account_update' + | 'account_settings_update' | 'backups_cancel' | 'backups_enable' | 'backups_restore' + | 'community_like' + | 'community_question_reply' + | 'credit_card_updated' | 'disk_create' | 'disk_update' | 'disk_delete' @@ -100,6 +105,7 @@ namespace Linode { | 'linode_create' | 'linode_update' | 'linode_delete' + | 'linode_deleteip' | 'linode_migrate' | 'linode_reboot' | 'linode_resize' @@ -121,6 +127,9 @@ namespace Linode { | 'stackscript_delete' | 'stackscript_publicize' | 'stackscript_revise' + | 'tfa_enabled' + | 'tfa_disabled' + | 'ticket_attachment_upload' | 'user_ssh_key_add' | 'user_ssh_key_update' | 'user_ssh_key_delete'