Skip to content

Commit

Permalink
Merge pull request #5147 from KelvisGama/nv-181-add-ringcentral-sms-p…
Browse files Browse the repository at this point in the history
…rovider

feat(provider): add ring central provider (#77)
  • Loading branch information
Cliftonz authored Feb 7, 2024
2 parents 506ded1 + 0656fb7 commit d3b61d1
Show file tree
Hide file tree
Showing 23 changed files with 678 additions and 32 deletions.
5 changes: 4 additions & 1 deletion .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,10 @@
"containerd",
"snapshotter",
"moby",
"ghaction"
"ghaction",
"spyon",
"restapi",
"ringcentral"
],
"flagWords": [],
"patterns": [
Expand Down
17 changes: 17 additions & 0 deletions apps/web/public/static/images/providers/dark/ring-central.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions apps/web/public/static/images/providers/light/ring-central.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 libs/shared/src/consts/providers/channels/sms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import {
azureSmsConfig,
bulkSmsConfig,
iSendSmsConfig,
ringCentralConfig,
brevoSmsConfig,
} from '../credentials';
import { SmsProviderIdEnum } from '../provider.enum';
Expand Down Expand Up @@ -253,6 +254,14 @@ export const smsProviders: IProviderConfig[] = [
docReference: 'https://learn.microsoft.com/en-us/azure/communication-services/quickstarts/sms/receive-sms',
logoFileName: { light: 'azure-sms.png', dark: 'azure-sms.png' },
},
{
id: SmsProviderIdEnum.RingCentral,
displayName: `RingCentral`,
channel: ChannelTypeEnum.SMS,
credentials: ringCentralConfig,
docReference: 'https://developers.ringcentral.com/guide/messaging',
logoFileName: { light: 'ring-central.svg', dark: 'ring-central.svg' },
},
{
id: SmsProviderIdEnum.BrevoSms,
displayName: `Brevo`,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1064,6 +1064,37 @@ export const rocketChatConfig: IConfigCredentials[] = [
},
];

export const ringCentralConfig: IConfigCredentials[] = [
{
key: CredentialsKeyEnum.ClientId,
displayName: 'Client ID',
description: 'Your RingCentral app client ID',
type: 'string',
required: true,
},
{
key: CredentialsKeyEnum.SecretKey,
displayName: 'Client secret',
description: 'Your RingCentral app client secret',
type: 'string',
required: true,
},
{
key: CredentialsKeyEnum.Secure,
displayName: 'Is sandbox',
type: 'switch',
required: false,
},
{
key: CredentialsKeyEnum.Token,
displayName: 'JWT token',
description: 'Your RingCentral user JWT token',
type: 'string',
required: true,
},
...smsConfigBase,
];

export const brevoSmsConfig: IConfigCredentials[] = [
{
key: CredentialsKeyEnum.ApiKey,
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 @@ -98,6 +98,7 @@ export enum SmsProviderIdEnum {
MessageBird = 'messagebird',
Simpletexting = 'simpletexting',
AzureSms = 'azure-sms',
RingCentral = 'ring-central',
BrevoSms = 'brevo-sms',
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"build:widget": "nx build @novu/widget",
"build:embed": "nx build @novu/embed",
"build:storybook": "nx run @novu/web:build-storybook",
"test:providers": "pnpm --filter './providers/**' test",
"test:providers": "cross-env pnpm --filter './providers/**' test",
"release:patch": "lerna version patch --no-push",
"release:minor": "lerna version minor --no-push",
"release:preminor": "lerna version preminor --no-push",
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 @@ -97,6 +97,7 @@
"@novu/pusher-beams": "^0.23.0",
"@novu/pushpad": "^0.23.0",
"@novu/resend": "^0.23.0",
"@novu/ring-central": "^0.23.0",
"@novu/rocket-chat": "^0.23.0",
"@novu/ryver": "^0.23.0",
"@novu/sendchamp": "^0.23.0",
Expand Down
Loading

0 comments on commit d3b61d1

Please sign in to comment.