Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat : Added Zulip Chat Provider #4410

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -102,3 +102,4 @@ docker/.env
.vercel

.pnpm-store/

6 changes: 3 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[submodule "enterprise/packages"]
path = enterprise/packages
url = [email protected]:novuhq/packages-enterprise.git
branch = next
path = enterprise/packages
url = [email protected]:novuhq/packages-enterprise.git
branch = next
12 changes: 12 additions & 0 deletions apps/web/public/static/images/providers/dark/square/zulip.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions apps/web/public/static/images/providers/light/square/zulip.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions libs/shared/src/consts/providers/channels/chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,12 @@ export const chatProviders: IProviderConfig[] = [
docReference: 'https://developers.mattermost.com/integrate/webhooks/incoming/',
logoFileName: { light: 'mattermost.svg', dark: 'mattermost.svg' },
},
{
id: ChatProviderIdEnum.Zulip,
displayName: 'Zulip',
channel: ChannelTypeEnum.CHAT,
credentials: [] as IConfigCredentials[],
docReference: 'https://zulip.com/api/send-message',
logoFileName: { light: 'zulip.svg', dark: 'zulip.svg' },
},
];
Original file line number Diff line number Diff line change
Expand Up @@ -740,3 +740,12 @@ export const sendchampConfig: IConfigCredentials[] = [
},
...smsConfigBase,
];

export const zulipConfig: IConfigCredentials[] = [
{
key: CredentialsKeyEnum.ApiKey,
displayName: 'API Key',
type: 'string',
required: true,
},
];
1 change: 1 addition & 0 deletions libs/shared/src/consts/providers/provider.enum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ export enum ChatProviderIdEnum {
Discord = 'discord',
MsTeams = 'msteams',
Mattermost = 'mattermost',
Zulip = 'zulip',
}

export enum PushProviderIdEnum {
Expand Down
1 change: 1 addition & 0 deletions packages/application-generic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@
"@novu/termii": "^0.20.0-alpha.0",
"@novu/testing": "^0.20.0-alpha.0",
"@novu/twilio": "^0.20.0-alpha.0",
"@novu/zulip":"^0.16.3",
"@sentry/node": "^7.12.1",
"analytics-node": "^6.2.0",
"bullmq": "^3.10.2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@ import { IntegrationEntity } from '@novu/dal';
import { DiscordHandler } from './handlers/discord.handler';
import { MSTeamsHandler } from './handlers/msteams.handler';
import { MattermostHandler } from './handlers/mattermost.handler';

import { ZulipHandler } from './handlers/zulip.handler';
export class ChatFactory implements IChatFactory {
handlers: IChatHandler[] = [
new SlackHandler(),
new DiscordHandler(),
new MSTeamsHandler(),
new MattermostHandler(),
new ZulipHandler(),
];

getHandler(integration: IntegrationEntity) {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { ICredentials } from '@novu/shared';
import { ChannelTypeEnum } from '@novu/stateless';
import { BaseChatHandler } from './base.handler';
import { ZulipChatProvider } from '@novu/zulip';

export class ZulipHandler extends BaseChatHandler {
constructor() {
super('zulip', ChannelTypeEnum.CHAT);
}

buildProvider(_credentials: ICredentials) {
this.provider = new ZulipChatProvider({});
}
}
Loading
Loading