Skip to content

Commit

Permalink
Revert "V2 2 0 release"
Browse files Browse the repository at this point in the history
  • Loading branch information
RamRamez authored Dec 4, 2024
1 parent bf7f055 commit fcc2b22
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 59 deletions.
37 changes: 0 additions & 37 deletions migrations/1731590176819-addUserEmailNotification.ts

This file was deleted.

1 change: 0 additions & 1 deletion src/entities/notificationType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import { NotificationSetting } from './notificationSetting';
// Export Object with Schemas to N1 lookup
export const SCHEMA_VALIDATORS_NAMES = {
SEND_EMAIL_CONFIRMATION: 'sendEmailConfirmation',
SEND_USER_EMAIL_CONFIRMATION_CODE_FLOW: 'sendUserEmailConfirmationCodeFlow',
CREATE_ORTTO_PROFILE: 'createOrttoProfile',
SUBSCRIBE_ONBOARDING: 'subscribeOnboarding',
SUPERFLUID: 'userSuperTokensCritical',
Expand Down
7 changes: 0 additions & 7 deletions src/services/notificationService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,6 @@ export const activityCreator = (
'str:cm:verificationlink': payload.verificationLink,
};
break;
case NOTIFICATIONS_EVENT_NAMES.SEND_USER_EMAIL_CONFIRMATION_CODE_FLOW:
attributes = {
'str:cm:email': payload.email,
'int:cm:code': Number(payload.verificationCode),
'str:cm:userid': payload.userId?.toString(),
};
break;
case NOTIFICATIONS_EVENT_NAMES.CREATE_ORTTO_PROFILE:
attributes = {
'str:cm:email': payload.email,
Expand Down
3 changes: 0 additions & 3 deletions src/types/notifications.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ export enum NOTIFICATIONS_EVENT_NAMES {
SUPER_TOKENS_BALANCE_DEPLETED = 'Stream balance depleted',
CREATE_ORTTO_PROFILE = 'Create Ortto profile',
SEND_EMAIL_CONFIRMATION = 'Send email confirmation',
SEND_USER_EMAIL_CONFIRMATION_CODE_FLOW = 'Send email confirmation code flow',
SUBSCRIBE_ONBOARDING = 'Subscribe onboarding',
NOTIFY_REWARD_AMOUNT = 'Notify reward amount',
}
Expand Down Expand Up @@ -82,6 +81,4 @@ export const ORTTO_EVENT_NAMES = {
'verification-form-email-verification',
[NOTIFICATIONS_EVENT_NAMES.NOTIFY_REWARD_AMOUNT]: 'notify-reward',
[NOTIFICATIONS_EVENT_NAMES.SUBSCRIBE_ONBOARDING]: 'onboarding-form',
[NOTIFICATIONS_EVENT_NAMES.SEND_USER_EMAIL_CONFIRMATION_CODE_FLOW]:
'email-verification-code',
};
10 changes: 0 additions & 10 deletions src/utils/validators/segmentAndMetadataValidators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,12 +162,6 @@ const sendEmailConfirmationSchema = Joi.object({
verificationLink: Joi.string().required(),
});

const sendUserEmailConfirmationCodeFlowSchema = Joi.object({
email: Joi.string().required(),
verificationCode: Joi.string().required(),
userId: Joi.number().required(),
});

const notifyRewardAmountSegmentSchema = Joi.object({
round: Joi.number().required(),
date: Joi.string().required(),
Expand All @@ -191,10 +185,6 @@ export const SEGMENT_METADATA_SCHEMA_VALIDATOR: {
metadata: null,
segment: sendEmailConfirmationSchema,
},
sendUserEmailConfirmationCodeFlow: {
metadata: null,
segment: sendUserEmailConfirmationCodeFlowSchema,
},
createOrttoProfile: {
segment: createOrttoProfileSegmentSchema,
metadata: null,
Expand Down
1 change: 0 additions & 1 deletion src/validators/schemaValidators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ export const sendNotificationValidator = Joi.object({
email: Joi.string().allow(null).allow(''),
title: Joi.string(),
slug: Joi.string(),
verificationCode: Joi.string().allow(null).allow(''),
firstName: Joi.string().allow(null).allow(''),
userId: Joi.number(),
projectLink: Joi.string().allow(null).allow(''),
Expand Down

0 comments on commit fcc2b22

Please sign in to comment.