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

re-feat(provider): guilded provider added #4494

Closed
wants to merge 24 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
cede35c
feat(provider): guilded provider added
Kanav-Arora Oct 11, 2023
d4bc6a8
Merge branch 'next' into nv-2962-guilded-chat-provider
Kanav-Arora Oct 11, 2023
95c4d72
Merge branch 'next' into nv-2962-guilded-chat-provider
Kanav-Arora Oct 12, 2023
697a820
fix(test): cspell fail fixed
Kanav-Arora Oct 12, 2023
acf5bb0
Merge branch 'next' into nv-2962-guilded-chat-provider
Kanav-Arora Oct 15, 2023
327e721
feat(provider): guilded provider added
Kanav-Arora Oct 11, 2023
37d3d2b
fix(test): cspell fail fixed
Kanav-Arora Oct 12, 2023
8e8acdc
Merge remote-tracking branch 'refs/remotes/upstream/nv-2962-guilded-c…
Kanav-Arora Oct 18, 2023
e4df390
Merge branch 'next' into nv-2962-guilded-chat-provider
Kanav-Arora Oct 23, 2023
70a6fe7
Updated README.md
alienishi Oct 22, 2023
3e65106
feat: add actor to system variables (#4278)
ainouzgali Oct 23, 2023
ab01eef
Remove Product Hunt and added UTMs (#4621)
nevo-david Oct 23, 2023
dcd006f
Updated README.md
alienishi Oct 23, 2023
9a810d5
Updated README.md
alienishi Oct 23, 2023
c0dcf1a
fix: sender name in mandrill provider
emersonliuuu Oct 18, 2023
40f7e72
fix: add missing parameter in test
emersonliuuu Oct 19, 2023
392234b
fix: changed the logout icon from a trash to that of a log out icon
maverox Sep 30, 2023
5a5f8cd
Update index.ts
maverox Oct 2, 2023
af66f94
Updated HeaderNav.tsx
maverox Oct 2, 2023
ca767be
fix:changed logout icon to one mentioned in figma design
maverox Oct 20, 2023
d884295
solved the issue of switching svg with theme
maverox Oct 20, 2023
75c25b6
feat(provider): guilded provider added
Kanav-Arora Oct 11, 2023
2727b54
feat(provider): guilded provider added
Kanav-Arora Oct 11, 2023
dc8d6c3
Merge branch 'next' into nv-2962-guilded-chat-provider
Kanav-Arora Oct 23, 2023
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
5 changes: 5 additions & 0 deletions .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -511,6 +511,11 @@
"Docgen",
"clicksend",
"Clicksend",
"guilded",
"Guilded",
"Wordmark",
"Logomark",
"Clicksend",
"Kamil",
"Myśliwiec",
"nestframework"
Expand Down
9 changes: 9 additions & 0 deletions apps/web/public/static/images/providers/dark/guilded.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions apps/web/public/static/images/providers/light/guilded.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 9 additions & 1 deletion libs/shared/src/consts/providers/channels/chat.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { IConfigCredentials, IProviderConfig } from '../provider.interface';
import { slackConfig } from '../credentials';
import { guildedConfig, slackConfig } from '../credentials';
import { ChatProviderIdEnum } from '../provider.enum';

import { ChannelTypeEnum } from '../../../types';
Expand Down 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.Guilded,
displayName: 'Guilded',
channel: ChannelTypeEnum.CHAT,
credentials: guildedConfig,
docReference: 'https://www.guilded.gg/docs/api/chat/ChatMessage',
logoFileName: { light: 'guilded.svg', dark: 'guilded.svg' },
},
];
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,21 @@ export const twilioConfig: IConfigCredentials[] = [
...smsConfigBase,
];

export const guildedConfig: IConfigCredentials[] = [
{
key: CredentialsKeyEnum.ApiKey,
displayName: 'API Key',
type: 'string',
required: true,
},
{
key: CredentialsKeyEnum.MessageProfileId,
displayName: 'Channel ID',
type: 'string',
required: true,
},
];

export const slackConfig: IConfigCredentials[] = [
{
key: CredentialsKeyEnum.ApplicationId,
Expand Down
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 @@ -80,6 +80,7 @@ export enum ChatProviderIdEnum {
Discord = 'discord',
MsTeams = 'msteams',
Mattermost = 'mattermost',
Guilded = 'guilded',
}

export enum PushProviderIdEnum {
Expand Down
48 changes: 48 additions & 0 deletions packages/application-generic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,54 @@
"@novu/termii": "^0.20.0",
"@novu/testing": "^0.20.0",
"@novu/twilio": "^0.20.0",
"@novu/africas-talking": "^0.20.0-alpha.1",
"@novu/apns": "^0.20.0-alpha.1",
"@novu/burst-sms": "^0.20.0-alpha.1",
"@novu/clickatell": "^0.20.0-alpha.1",
"@novu/dal": "^0.20.0-alpha.1",
"@novu/discord": "^0.20.0-alpha.1",
"@novu/email-webhook": "^0.20.0-alpha.0",
"@novu/emailjs": "^0.20.0-alpha.1",
"@novu/expo": "^0.20.0-alpha.1",
"@novu/fcm": "^0.20.0-alpha.1",
"@novu/firetext": "^0.20.0-alpha.1",
"@novu/forty-six-elks": "^0.20.0-alpha.1",
"@novu/gupshup": "^0.20.0-alpha.1",
"@novu/infobip": "^0.20.0-alpha.1",
"@novu/kannel": "^0.20.0-alpha.1",
"@novu/mailersend": "^0.20.0-alpha.1",
"@novu/mailgun": "^0.20.0-alpha.1",
"@novu/mailjet": "^0.20.0-alpha.1",
"@novu/mailtrap": "^0.20.0-alpha.1",
"@novu/mandrill": "^0.20.0-alpha.1",
"@novu/maqsam": "^0.20.0-alpha.1",
"@novu/mattermost": "^0.20.0-alpha.1",
"@novu/ms-teams": "^0.20.0-alpha.0",
"@novu/netcore": "^0.20.0-alpha.1",
"@novu/nodemailer": "^0.20.0-alpha.1",
"@novu/one-signal": "^0.20.0-alpha.1",
"@novu/outlook365": "^0.20.0-alpha.1",
"@novu/plivo": "^0.20.0-alpha.1",
"@novu/plunk": "^0.20.0-alpha.1",
"@novu/postmark": "^0.20.0-alpha.1",
"@novu/push-webhook": "^0.20.0-alpha.1",
"@novu/resend": "^0.20.0-alpha.1",
"@novu/sendchamp": "^0.20.0-alpha.1",
"@novu/sendgrid": "^0.20.0-alpha.1",
"@novu/sendinblue": "^0.20.0-alpha.1",
"@novu/ses": "^0.20.0-alpha.1",
"@novu/shared": "^0.20.0-alpha.1",
"@novu/guilded": "^0.20.0-alpha.1",
"@novu/slack": "^0.20.0-alpha.1",
"@novu/sms-central": "^0.20.0-alpha.0",
"@novu/sms77": "^0.20.0-alpha.1",
"@novu/sns": "^0.20.0-alpha.1",
"@novu/sparkpost": "^0.20.0-alpha.1",
"@novu/stateless": "^0.20.0-alpha.1",
"@novu/telnyx": "^0.20.0-alpha.1",
"@novu/termii": "^0.20.0-alpha.1",
"@novu/testing": "^0.20.0-alpha.1",
"@novu/twilio": "^0.20.0-alpha.1",
"@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,15 @@ import { IntegrationEntity } from '@novu/dal';
import { DiscordHandler } from './handlers/discord.handler';
import { MSTeamsHandler } from './handlers/msteams.handler';
import { MattermostHandler } from './handlers/mattermost.handler';
import { GuildedHandler } from './handlers/guilded.handler';

export class ChatFactory implements IChatFactory {
handlers: IChatHandler[] = [
new SlackHandler(),
new DiscordHandler(),
new MSTeamsHandler(),
new MattermostHandler(),
new GuildedHandler(),
];

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

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

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

export * from './guilded.handler';
Loading
Loading