From 1e979b94aec765792b41ffda142162c5a4539111 Mon Sep 17 00:00:00 2001 From: Ramin Date: Thu, 4 Jul 2024 15:15:48 +0330 Subject: [PATCH] add SUBSCRIBE_ONBOARDING --- src/services/notificationService.ts | 5 +++++ src/types/notifications.ts | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/services/notificationService.ts b/src/services/notificationService.ts index 8e64221..2ae1d0a 100644 --- a/src/services/notificationService.ts +++ b/src/services/notificationService.ts @@ -16,6 +16,11 @@ import { NOTIFICATION_CATEGORY } from '../types/general'; const activityCreator = (payload: any, orttoEventName: NOTIFICATIONS_EVENT_NAMES) : any=> { let attributes; switch (orttoEventName) { + case NOTIFICATIONS_EVENT_NAMES.SUBSCRIBE_ONBOARDING: + attributes = { + "str:cm:email": payload.email, + } + break; case NOTIFICATIONS_EVENT_NAMES.SEND_EMAIL_CONFIRMATION: attributes = { "str:cm:email": payload.email, diff --git a/src/types/notifications.ts b/src/types/notifications.ts index e0b0f86..4247a02 100644 --- a/src/types/notifications.ts +++ b/src/types/notifications.ts @@ -49,7 +49,7 @@ export enum NOTIFICATIONS_EVENT_NAMES { SUPER_TOKENS_BALANCE_DEPLETED = 'Stream balance depleted', CREATE_ORTTO_PROFILE = 'Create Ortto profile', SEND_EMAIL_CONFIRMATION = 'Send email confirmation', - + SUBSCRIBE_ONBOARDING = 'Subscribe onboarding', NOTIFY_REWARD_AMOUNT = 'Notify reward amount', } @@ -71,5 +71,6 @@ export const ORTTO_EVENT_NAMES = { [NOTIFICATIONS_EVENT_NAMES.PROJECT_BADGE_REVOKE_LAST_WARNING]: 'second-update-warning', [NOTIFICATIONS_EVENT_NAMES.CREATE_ORTTO_PROFILE]: 'created-profile', [NOTIFICATIONS_EVENT_NAMES.SEND_EMAIL_CONFIRMATION]: 'verification-form-email-verification', - [NOTIFICATIONS_EVENT_NAMES.NOTIFY_REWARD_AMOUNT]: 'notify-reward-amount' + [NOTIFICATIONS_EVENT_NAMES.NOTIFY_REWARD_AMOUNT]: 'notify-reward-amount', + [NOTIFICATIONS_EVENT_NAMES.SUBSCRIBE_ONBOARDING]: 'onboarding-form', } \ No newline at end of file