AppSettings.ts 838 Bytes
Newer Older
murtaza98's avatar
murtaza98 committed
1 2 3 4
import { ISetting, SettingType} from '@rocket.chat/apps-engine/definition/settings';

export enum AppSettingId {
    RasaBotUsername = 'rasa_bot_username',
5
    RasaServerUrl = 'rasa_server_url',
murtaza98's avatar
murtaza98 committed
6 7 8 9 10 11 12 13 14 15 16
}

export const AppSettings: Array<ISetting> = [
    {
        id: AppSettingId.RasaBotUsername,
        public: true,
        type: SettingType.STRING,
        packageValue: '',
        i18nLabel: 'Bot Username',
        required: true,
    },
17 18 19 20 21 22 23 24 25
    {
        id: AppSettingId.RasaServerUrl,
        public: true,
        type: SettingType.STRING,
        packageValue: '',
        i18nLabel: 'Rasa Server Url',
        i18nDescription: 'Here enter the RASA url where the RASA server is hosted. Make sure to add `/webhooks/rest/webhook` to the end of url. Eg: https://efee760b.ngrok.io/webhooks/rest/webhook',
        required: true,
    },
murtaza98's avatar
murtaza98 committed
26
];