diff --git a/src/routes/console/project-[project]/messaging/providers/store.ts b/src/routes/console/project-[project]/messaging/providers/store.ts
index 714db9d9a..68e518b74 100644
--- a/src/routes/console/project-[project]/messaging/providers/store.ts
+++ b/src/routes/console/project-[project]/messaging/providers/store.ts
@@ -38,6 +38,179 @@ type ProvidersMap = {
};
export const providers: ProvidersMap = {
+ [ProviderTypes.Push]: {
+ name: 'Push notification',
+ text: 'notifications',
+ icon: 'device-mobile',
+ providers: {
+ [Providers.FCM]: {
+ imageIcon: 'firebase',
+ title: 'FCM',
+ description: 'Firebase Cloud Messaging',
+ configure: [
+ {
+ label: 'Server key (.json file)',
+ name: 'serverKey',
+ type: 'file',
+ allowedFileExtensions: ['json'],
+ placeholder: 'Enter server key',
+ popover: [
+ 'How to get the FCM server key?',
+ 'Head to Project settings -> Service accounts -> Generate new private key.',
+ 'Generating the new key will result in the download of a JSON file.'
+ ]
+ }
+ ]
+ },
+ [Providers.APNS]: {
+ imageIcon: 'apple',
+ title: 'APNS',
+ description: 'Apple Push Notification Service',
+ configure: [
+ {
+ label: 'Team ID',
+ name: 'teamId',
+ type: 'text',
+ placeholder: 'Enter team ID',
+ popover: [
+ 'How to get the team ID?',
+ 'Head to Apple Developer Member Center -> Membership details -> Team ID.'
+ ]
+ },
+ {
+ label: 'Bundle ID',
+ name: 'bundleId',
+ type: 'text',
+ placeholder: 'Enter bundle ID',
+ popover: [
+ 'How to get the bundle ID?',
+ 'Head to Apple Developer Member Center -> Certificates, Identifiers & Profiles -> Identifiers.',
+ `
+
+

+
+
+ `
+ ]
+ },
+ {
+ label: 'Authentication key ID',
+ name: 'authKeyId',
+ type: 'text',
+ placeholder: 'Enter key ID',
+ popover: [
+ 'How to get the auth key ID?',
+ 'Head to Apple Developer Member Center -> Certificates, Identifiers & Profiles -> Keys.',
+ 'Click on your key to view details.'
+ ]
+ },
+ {
+ label: 'Auth key (.p8 file)',
+ name: 'authKey',
+ type: 'file',
+ allowedFileExtensions: ['p8'],
+ popover: [
+ 'How to get the authentication key?',
+ 'Head to Apple Developer Member Center (under Program resources) -> Certificates, Identifiers & Profiles -> Keys.',
+ 'Create a key and give it a name. Enable the Apple Push Notifications service (APNS), and register your key.'
+ ]
+ }
+ ]
+ }
+ // [Providers.MQTT]: {
+ // imageIcon: 'mqtt',
+ // title: 'MQTT',
+ // description: 'Message Queuing Telemtry Transport'
+ // }
+ }
+ },
+ [ProviderTypes.Email]: {
+ name: 'Email',
+ text: 'emails',
+ icon: 'mail',
+ providers: {
+ [Providers.Mailgun]: {
+ imageIcon: 'mailgun',
+ title: 'Mailgun',
+ description: '',
+ configure: [
+ {
+ label: 'API key',
+ name: 'apiKey',
+ type: 'text',
+ placeholder: 'Enter API key',
+ popover: [
+ 'How to get the API key?',
+ 'Create an account in Mailgun.',
+ 'Head to Profile -> API Security -> Add new key.'
+ ]
+ },
+ {
+ label: 'Domain',
+ name: 'domain',
+ type: 'domain',
+ placeholder: 'Enter domain',
+ popover: [
+ 'How to create a domain?',
+ 'Head to Sending -> Domains -> Add new domain.',
+ 'Follow Mailgun instructions to verify the domain name.'
+ ]
+ },
+ {
+ label: 'EU region',
+ name: 'isEuRegion',
+ type: 'switch',
+ description:
+ 'Enable the EU region setting if your domain is within the European Union.'
+ },
+ {
+ label: 'Sender email',
+ name: 'from',
+ type: 'email',
+ placeholder: 'Enter email'
+ }
+ ]
+ },
+ [Providers.Sendgrid]: {
+ imageIcon: 'sendgrid',
+ title: 'Sendgrid',
+ description: '',
+ configure: [
+ {
+ label: 'API key',
+ name: 'apiKey',
+ type: 'text',
+ placeholder: 'Enter API key',
+ popover: [
+ 'How to get the API key?',
+ 'Create an account in Mailgun.',
+ 'Head to Profile -> API Security -> Add new key.'
+ ]
+ },
+ {
+ label: 'Sender email',
+ name: 'from',
+ type: 'email',
+ placeholder: 'Enter email'
+ }
+ ]
+ }
+ }
+ },
+
[ProviderTypes.Sms]: {
name: 'SMS',
text: 'SMS',
@@ -205,177 +378,5 @@ export const providers: ProvidersMap = {
]
}
}
- },
- [ProviderTypes.Email]: {
- name: 'Email',
- text: 'emails',
- icon: 'mail',
- providers: {
- [Providers.Mailgun]: {
- imageIcon: 'mailgun',
- title: 'Mailgun',
- description: '',
- configure: [
- {
- label: 'API key',
- name: 'apiKey',
- type: 'text',
- placeholder: 'Enter API key',
- popover: [
- 'How to get the API key?',
- 'Create an account in Mailgun.',
- 'Head to Profile -> API Security -> Add new key.'
- ]
- },
- {
- label: 'Domain',
- name: 'domain',
- type: 'domain',
- placeholder: 'Enter domain',
- popover: [
- 'How to create a domain?',
- 'Head to Sending -> Domains -> Add new domain.',
- 'Follow Mailgun instructions to verify the domain name.'
- ]
- },
- {
- label: 'EU region',
- name: 'isEuRegion',
- type: 'switch',
- description:
- 'Enable the EU region setting if your domain is within the European Union.'
- },
- {
- label: 'Sender email',
- name: 'from',
- type: 'email',
- placeholder: 'Enter email'
- }
- ]
- },
- [Providers.Sendgrid]: {
- imageIcon: 'sendgrid',
- title: 'Sendgrid',
- description: '',
- configure: [
- {
- label: 'API key',
- name: 'apiKey',
- type: 'text',
- placeholder: 'Enter API key',
- popover: [
- 'How to get the API key?',
- 'Create an account in Mailgun.',
- 'Head to Profile -> API Security -> Add new key.'
- ]
- },
- {
- label: 'Sender email',
- name: 'from',
- type: 'email',
- placeholder: 'Enter email'
- }
- ]
- }
- }
- },
- [ProviderTypes.Push]: {
- name: 'Push notification',
- text: 'notifications',
- icon: 'device-mobile',
- providers: {
- [Providers.FCM]: {
- imageIcon: 'firebase',
- title: 'FCM',
- description: 'Firebase Cloud Messaging',
- configure: [
- {
- label: 'Server key (.json file)',
- name: 'serverKey',
- type: 'file',
- allowedFileExtensions: ['json'],
- placeholder: 'Enter server key',
- popover: [
- 'How to get the FCM server key?',
- 'Head to Project settings -> Service accounts -> Generate new private key.',
- 'Generating the new key will result in the download of a JSON file.'
- ]
- }
- ]
- },
- [Providers.APNS]: {
- imageIcon: 'apple',
- title: 'APNS',
- description: 'Apple Push Notification Service',
- configure: [
- {
- label: 'Team ID',
- name: 'teamId',
- type: 'text',
- placeholder: 'Enter team ID',
- popover: [
- 'How to get the team ID?',
- 'Head to Apple Developer Member Center -> Membership details -> Team ID.'
- ]
- },
- {
- label: 'Bundle ID',
- name: 'bundleId',
- type: 'text',
- placeholder: 'Enter bundle ID',
- popover: [
- 'How to get the bundle ID?',
- 'Head to Apple Developer Member Center -> Certificates, Identifiers & Profiles -> Identifiers.',
- `
-
-

-
-
- `
- ]
- },
- {
- label: 'Authentication key ID',
- name: 'authKeyId',
- type: 'text',
- placeholder: 'Enter key ID',
- popover: [
- 'How to get the auth key ID?',
- 'Head to Apple Developer Member Center -> Certificates, Identifiers & Profiles -> Keys.',
- 'Click on your key to view details.'
- ]
- },
- {
- label: 'Auth key (.p8 file)',
- name: 'authKey',
- type: 'file',
- allowedFileExtensions: ['p8'],
- popover: [
- 'How to get the authentication key?',
- 'Head to Apple Developer Member Center (under Program resources) -> Certificates, Identifiers & Profiles -> Keys.',
- 'Create a key and give it a name. Enable the Apple Push Notifications service (APNS), and register your key.'
- ]
- }
- ]
- }
- // [Providers.MQTT]: {
- // imageIcon: 'mqtt',
- // title: 'MQTT',
- // description: 'Message Queuing Telemtry Transport'
- // }
- }
}
};