Skip to content

Commit

Permalink
refactor: Changes To Review
Browse files Browse the repository at this point in the history
refactor: Providers Module - changed files
  • Loading branch information
Gal Tidhar committed Apr 25, 2024
1 parent fa2ae74 commit 96ce602
Show file tree
Hide file tree
Showing 71 changed files with 1,039 additions and 5,130 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Expand Up @@ -13,7 +13,8 @@ coverage
.DS_Store
dist
**-changes-cache.json

.idea/**/*
.idea/*
.idea/workspace.xml
.idea/usage.statistics.xml
.idea/tasks.xml
Expand Down
1 change: 1 addition & 0 deletions apps/api/package.json
Expand Up @@ -43,6 +43,7 @@
"@nestjs/throttler": "^5.0.1",
"@novu/application-generic": "^0.24.1",
"@novu/dal": "^0.24.1",
"@novu/providers": "^0.24.1",
"@novu/node": "^0.24.1",
"@novu/shared": "^0.24.1",
"@novu/stateless": "^0.24.1",
Expand Down
65 changes: 2 additions & 63 deletions packages/application-generic/package.json
Expand Up @@ -52,72 +52,11 @@
"@google-cloud/storage": "^6.2.3",
"@hokify/agenda": "^6.3.0",
"@nestjs/passport": "^10.0.1",
"@novu/africas-talking": "^0.24.1",
"@novu/apns": "^0.24.1",
"@novu/azure-sms": "^0.24.1",
"@novu/bandwidth": "^0.24.1",
"@novu/braze": "^0.24.1",
"@novu/brevo-sms": "^0.24.1",
"@novu/bulk-sms": "^0.24.1",
"@novu/burst-sms": "^0.24.1",
"@novu/clickatell": "^0.24.1",
"@novu/clicksend": "^0.24.1",
"@novu/dal": "^0.24.1",
"@novu/discord": "^0.24.1",
"@novu/email-webhook": "^0.24.1",
"@novu/emailjs": "^0.24.1",
"@novu/expo": "^0.24.1",
"@novu/fcm": "^0.24.1",
"@novu/firetext": "^0.24.1",
"@novu/forty-six-elks": "^0.24.1",
"@novu/generic-sms": "^0.24.1",
"@novu/getstream": "^0.24.1",
"@novu/grafana-on-call": "^0.24.1",
"@novu/gupshup": "^0.24.1",
"@novu/infobip": "^0.24.1",
"@novu/isend-sms": "^0.24.1",
"@novu/kannel": "^0.24.1",
"@novu/mailersend": "^0.24.1",
"@novu/mailgun": "^0.24.1",
"@novu/mailjet": "^0.24.1",
"@novu/mailtrap": "^0.24.1",
"@novu/mandrill": "^0.24.1",
"@novu/maqsam": "^0.24.1",
"@novu/mattermost": "^0.24.1",
"@novu/messagebird": "^0.24.1",
"@novu/ms-teams": "^0.24.1",
"@novu/netcore": "^0.24.1",
"@novu/nexmo": "^0.24.1",
"@novu/nodemailer": "^0.24.1",
"@novu/one-signal": "^0.24.1",
"@novu/outlook365": "^0.24.1",
"@novu/plivo": "^0.24.1",
"@novu/plunk": "^0.24.1",
"@novu/postmark": "^0.24.1",
"@novu/push-webhook": "^0.24.1",
"@novu/pusher-beams": "^0.24.1",
"@novu/pushpad": "^0.24.1",
"@novu/resend": "^0.24.1",
"@novu/ring-central": "^0.24.1",
"@novu/rocket-chat": "^0.24.1",
"@novu/ryver": "^0.24.1",
"@novu/sendchamp": "^0.24.1",
"@novu/sendgrid": "^0.24.1",
"@novu/sendinblue": "^0.24.1",
"@novu/ses": "^0.24.1",
"@novu/providers": "^0.24.1",
"@novu/shared": "^0.24.1",
"@novu/simpletexting": "^0.24.1",
"@novu/slack": "^0.24.1",
"@novu/sms-central": "^0.24.1",
"@novu/sms77": "^0.24.1",
"@novu/sns": "^0.24.1",
"@novu/sparkpost": "^0.24.1",
"@novu/dal": "^0.24.1",
"@novu/stateless": "^0.24.1",
"@novu/telnyx": "^0.24.1",
"@novu/termii": "^0.24.1",
"@novu/testing": "^0.24.1",
"@novu/twilio": "^0.24.1",
"@novu/zulip": "^0.24.1",
"@opentelemetry/api": "^1.7.0",
"@opentelemetry/auto-instrumentations-node": "^0.40.2",
"@opentelemetry/context-async-hooks": "^1.19.0",
Expand Down
@@ -1,7 +1,7 @@
import { ICredentials } from '@novu/shared';
import { ChannelTypeEnum } from '@novu/stateless';
import { BaseChatHandler } from './base.handler';
import { DiscordProvider } from '@novu/discord';
import { DiscordProvider } from '@novu/providers';

export class DiscordHandler extends BaseChatHandler {
constructor() {
Expand Down
Expand Up @@ -2,7 +2,7 @@ import { ChannelTypeEnum } from '@novu/stateless';

import { ICredentials } from '@novu/shared';
import { BaseChatHandler } from './base.handler';
import { GetstreamChatProvider } from '@novu/getstream';
import { GetstreamChatProvider } from '@novu/providers';

export class GetstreamChatHandler extends BaseChatHandler {
constructor() {
Expand Down
@@ -1,6 +1,6 @@
import { ICredentials } from '@novu/shared';
import { ChannelTypeEnum } from '@novu/stateless';
import { GrafanaOnCallChatProvider } from '@novu/grafana-on-call';
import { GrafanaOnCallChatProvider } from '@novu/providers';

import { BaseChatHandler } from './base.handler';

Expand Down
@@ -1,7 +1,7 @@
import { ICredentials } from '@novu/shared';
import { ChannelTypeEnum } from '@novu/stateless';
import { BaseChatHandler } from './base.handler';
import { MattermostProvider } from '@novu/mattermost';
import { MattermostProvider } from '@novu/providers';

export class MattermostHandler extends BaseChatHandler {
constructor() {
Expand Down
@@ -1,7 +1,7 @@
import { ICredentials } from '@novu/shared';
import { ChannelTypeEnum } from '@novu/stateless';
import { BaseChatHandler } from './base.handler';
import { MsTeamsProvider } from '@novu/ms-teams';
import { MsTeamsProvider } from '@novu/providers';

export class MSTeamsHandler extends BaseChatHandler {
constructor() {
Expand Down
@@ -1,7 +1,7 @@
import { ICredentials, ChatProviderIdEnum } from '@novu/shared';
import { ChannelTypeEnum } from '@novu/stateless';
import { BaseChatHandler } from './base.handler';
import { RocketChatProvider } from '@novu/rocket-chat';
import { RocketChatProvider } from '@novu/providers';

export class RocketChatHandler extends BaseChatHandler {
constructor() {
Expand Down
@@ -1,6 +1,6 @@
import { ICredentials } from '@novu/shared';
import { ChannelTypeEnum } from '@novu/stateless';
import { RyverChatProvider } from '@novu/ryver';
import { RyverChatProvider } from '@novu/providers';
import { BaseChatHandler } from './base.handler';

export class RyverHandler extends BaseChatHandler {
Expand Down
@@ -1,6 +1,6 @@
import { ICredentials } from '@novu/shared';
import { ChannelTypeEnum } from '@novu/stateless';
import { SlackProvider } from '@novu/slack';
import { SlackProvider } from '@novu/providers';

import { BaseChatHandler } from './base.handler';

Expand Down
@@ -1,7 +1,7 @@
import { ICredentials, ChatProviderIdEnum } from '@novu/shared';
import { ChannelTypeEnum } from '@novu/stateless';
import { BaseChatHandler } from './base.handler';
import { ZulipProvider } from '@novu/zulip';
import { ZulipProvider } from '@novu/providers';

export class ZulipHandler extends BaseChatHandler {
constructor() {
Expand Down
@@ -1,4 +1,4 @@
import { BrazeEmailProvider } from '@novu/braze';
import { BrazeEmailProvider } from '@novu/providers';
import { ChannelTypeEnum, ICredentials } from '@novu/shared';
import { BaseHandler } from './base.handler';

Expand Down
@@ -1,5 +1,5 @@
import { ChannelTypeEnum, ICredentials } from '@novu/shared';
import { EmailWebhookProvider } from '@novu/email-webhook';
import { EmailWebhookProvider } from '@novu/providers';
import { BaseHandler } from './base.handler';
export class EmailWebhookHandler extends BaseHandler {
constructor() {
Expand Down
@@ -1,5 +1,5 @@
import { IEmailJsConfig } from '@novu/emailjs/build/main/lib/emailjs.config';
import { EmailJsProvider } from '@novu/emailjs';
import { IEmailJsConfig } from '@novu/providers';
import { EmailJsProvider } from '@novu/providers';
import { ChannelTypeEnum, ICredentials } from '@novu/shared';
import { BaseHandler } from './base.handler';

Expand Down
@@ -1,4 +1,4 @@
import { InfobipEmailProvider } from '@novu/infobip';
import { InfobipEmailProvider } from '@novu/providers';
import { ChannelTypeEnum, ICredentials } from '@novu/shared';
import { BaseHandler } from './base.handler';

Expand Down
@@ -1,5 +1,5 @@
import { ChannelTypeEnum, ICredentials } from '@novu/shared';
import { MailersendEmailProvider } from '@novu/mailersend';
import { MailersendEmailProvider } from '@novu/providers';

import { BaseHandler } from './base.handler';

Expand Down
@@ -1,4 +1,4 @@
import { MailgunEmailProvider } from '@novu/mailgun';
import { MailgunEmailProvider } from '@novu/providers';
import { ChannelTypeEnum, ICredentials } from '@novu/shared';
import { BaseHandler } from './base.handler';

Expand Down
@@ -1,5 +1,5 @@
import { ChannelTypeEnum, ICredentials } from '@novu/shared';
import { MailjetEmailProvider } from '@novu/mailjet';
import { MailjetEmailProvider } from '@novu/providers';
import { BaseHandler } from './base.handler';

export class MailjetHandler extends BaseHandler {
Expand Down
Expand Up @@ -3,7 +3,7 @@ import {
ICredentials,
EmailProviderIdEnum,
} from '@novu/shared';
import { MailtrapEmailProvider } from '@novu/mailtrap';
import { MailtrapEmailProvider } from '@novu/providers';
import { BaseHandler } from './base.handler';

export class MailtrapHandler extends BaseHandler {
Expand Down
@@ -1,5 +1,5 @@
import { ChannelTypeEnum, ICredentials } from '@novu/shared';
import { MandrillProvider } from '@novu/mandrill';
import { MandrillProvider } from '@novu/providers';
import { BaseHandler } from './base.handler';

export class MandrillHandler extends BaseHandler {
Expand Down
@@ -1,5 +1,5 @@
import { ChannelTypeEnum, ICredentials } from '@novu/shared';
import { NetCoreProvider } from '@novu/netcore';
import { NetCoreProvider } from '@novu/providers';
import { BaseHandler } from './base.handler';

export class NetCoreHandler extends BaseHandler {
Expand Down
@@ -1,5 +1,5 @@
import { ChannelTypeEnum, ICredentials } from '@novu/shared';
import { NodemailerProvider } from '@novu/nodemailer';
import { NodemailerProvider } from '@novu/providers';
import { BaseHandler } from './base.handler';

export class NodemailerHandler extends BaseHandler {
Expand Down
@@ -1,5 +1,5 @@
import { ChannelTypeEnum, EmailProviderIdEnum } from '@novu/shared';
import { SendgridEmailProvider } from '@novu/sendgrid';
import { SendgridEmailProvider } from '@novu/providers';

import { BaseHandler } from './base.handler';

Expand Down
@@ -1,5 +1,5 @@
import { ChannelTypeEnum, ICredentials } from '@novu/shared';
import { Outlook365Provider } from '@novu/outlook365';
import { Outlook365Provider } from '@novu/providers';
import { BaseHandler } from './base.handler';

export class Outlook365Handler extends BaseHandler {
Expand Down
@@ -1,5 +1,5 @@
import { ChannelTypeEnum, ICredentials } from '@novu/shared';
import { PlunkEmailProvider } from '@novu/plunk';
import { PlunkEmailProvider } from '@novu/providers';
import { BaseHandler } from './base.handler';

export class PlunkHandler extends BaseHandler {
Expand Down
@@ -1,5 +1,5 @@
import { ChannelTypeEnum, ICredentials } from '@novu/shared';
import { PostmarkEmailProvider } from '@novu/postmark';
import { PostmarkEmailProvider } from '@novu/providers';
import { BaseHandler } from './base.handler';

export class PostmarkHandler extends BaseHandler {
Expand Down
@@ -1,5 +1,5 @@
import { ChannelTypeEnum, ICredentials } from '@novu/shared';
import { ResendEmailProvider } from '@novu/resend';
import { ResendEmailProvider } from '@novu/providers';
import { BaseHandler } from './base.handler';

export class ResendHandler extends BaseHandler {
Expand Down
@@ -1,5 +1,5 @@
import { ChannelTypeEnum } from '@novu/shared';
import { SendgridEmailProvider } from '@novu/sendgrid';
import { SendgridEmailProvider } from '@novu/providers';

import { BaseHandler } from './base.handler';

Expand Down
@@ -1,5 +1,5 @@
import { ChannelTypeEnum, ICredentials } from '@novu/shared';
import { BrevoEmailProvider } from '@novu/sendinblue';
import { BrevoEmailProvider } from '@novu/providers';
import { BaseHandler } from './base.handler';

export class SendinblueHandler extends BaseHandler {
Expand Down
@@ -1,6 +1,6 @@
import { ChannelTypeEnum, ICredentials } from '@novu/shared';
import { SESConfig } from '@novu/ses/build/module/lib/ses.config';
import { SESEmailProvider } from '@novu/ses';
import { SESConfig } from '@novu/providers';
import { SESEmailProvider } from '@novu/providers';
import { BaseHandler } from './base.handler';

export class SESHandler extends BaseHandler {
Expand Down
@@ -1,5 +1,5 @@
import { ChannelTypeEnum, ICredentials } from '@novu/shared';
import { SparkPostEmailProvider } from '@novu/sparkpost';
import { SparkPostEmailProvider } from '@novu/providers';

import { BaseHandler } from './base.handler';

Expand Down
@@ -1,5 +1,5 @@
import { ChannelTypeEnum, ICredentials } from '@novu/shared';
import { APNSPushProvider } from '@novu/apns';
import { APNSPushProvider } from '@novu/providers';
import { BasePushHandler } from './base.handler';

export class APNSHandler extends BasePushHandler {
Expand Down
@@ -1,5 +1,5 @@
import { ChannelTypeEnum, ICredentials } from '@novu/shared';
import { ExpoPushProvider } from '@novu/expo';
import { ExpoPushProvider } from '@novu/providers';
import { BasePushHandler } from './base.handler';

export class ExpoHandler extends BasePushHandler {
Expand Down
@@ -1,5 +1,5 @@
import { ChannelTypeEnum, ICredentials } from '@novu/shared';
import { FcmPushProvider } from '@novu/fcm';
import { FcmPushProvider } from '@novu/providers';
import { BasePushHandler } from './base.handler';

export class FCMHandler extends BasePushHandler {
Expand Down
@@ -1,5 +1,5 @@
import { ChannelTypeEnum, ICredentials } from '@novu/shared';
import { OneSignalPushProvider } from '@novu/one-signal';
import { OneSignalPushProvider } from '@novu/providers';
import { BasePushHandler } from './base.handler';

export class OneSignalHandler extends BasePushHandler {
Expand Down
@@ -1,5 +1,5 @@
import { ChannelTypeEnum, ICredentials } from '@novu/shared';
import { PushWebhookPushProvider } from '@novu/push-webhook';
import { PushWebhookPushProvider } from '@novu/providers';
import { BasePushHandler } from './base.handler';

export class PushWebhookHandler extends BasePushHandler {
Expand Down
@@ -1,4 +1,4 @@
import { PusherBeamsPushProvider } from '@novu/pusher-beams';
import { PusherBeamsPushProvider } from '@novu/providers';
import { ChannelTypeEnum, ICredentials } from '@novu/shared';
import { BasePushHandler } from './base.handler';

Expand Down
@@ -1,5 +1,5 @@
import { ChannelTypeEnum, ICredentials } from '@novu/shared';
import { PushpadPushProvider } from '@novu/pushpad';
import { PushpadPushProvider } from '@novu/providers';
import { BasePushHandler } from './base.handler';

export class PushpadHandler extends BasePushHandler {
Expand Down
@@ -1,5 +1,5 @@
import { ChannelTypeEnum, ICredentials } from '@novu/shared';
import { AfricasTalkingSmsProvider } from '@novu/africas-talking';
import { AfricasTalkingSmsProvider } from '@novu/providers';
import { BaseSmsHandler } from './base.handler';

export class AfricasTalkingSmsHandler extends BaseSmsHandler {
Expand Down
@@ -1,5 +1,5 @@
import { ChannelTypeEnum, ICredentials } from '@novu/shared';
import { AzureSmsProvider } from '@novu/azure-sms';
import { AzureSmsProvider } from '@novu/providers';
import { BaseSmsHandler } from './base.handler';

export class AzureSmsHandler extends BaseSmsHandler {
Expand Down
@@ -1,5 +1,5 @@
import { ChannelTypeEnum, ICredentials } from '@novu/shared';
import { BandwidthSmsProvider } from '@novu/bandwidth';
import { BandwidthSmsProvider } from '@novu/providers';
import { BaseSmsHandler } from './base.handler';

export class BandwidthHandler extends BaseSmsHandler {
Expand Down
@@ -1,6 +1,6 @@
import { ChannelTypeEnum, ICredentials } from '@novu/shared';
import { BaseSmsHandler } from './base.handler';
import { BrevoSmsProvider } from '@novu/brevo-sms';
import { BrevoSmsProvider } from '@novu/providers';

export class BrevoSmsHandler extends BaseSmsHandler {
constructor() {
Expand Down
@@ -1,5 +1,5 @@
import { ChannelTypeEnum, ICredentials } from '@novu/shared';
import { BulkSmsProvider } from '@novu/bulk-sms';
import { BulkSmsProvider } from '@novu/providers';
import { BaseSmsHandler } from './base.handler';

export class BulkSmsHandler extends BaseSmsHandler {
Expand Down

0 comments on commit 96ce602

Please sign in to comment.