/
settings.js
39 lines (36 loc) · 1.38 KB
/
settings.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import path from 'path';
import meow from './meow';
import os from 'os';
export default {
DEFAULT_OUTPUT_FILE: 'output.json',
DEFAULT_CSV_FILE: path.join(__dirname, './fixtures/example.csv'),
DEFAULT_LANGUAGE: 'en-US',
DEFAULT_TWILIO_CONFIG_FILE: path.join(os.homedir(), '.twilio/config.json'),
MESSAGES: {
NOT_VALID_FIXTURE_FILE: `You need to send a valid --fixtures parameter in order to do the testing.
Remember that the file format needs to be .csv. And the structure of the file,
needs to be as follows:
task, samples
hello_world, (Hi | Hello | Hey) I am Erick`,
INITIALIZING_MESSAGE: 'Initializing.',
FINISHED_PARSING: 'File parsed correctly!',
FINISHED_DATA_EXPANSION: 'Data expanded correctly!',
FINISHED_TA_QUERIES: 'All data was sent correctly!',
SUCCEDED_MESSAGE: `Testing complete.`,
SYMBOL: '✔',
},
MEOW: [meow.configString, meow.flags],
DEFAULT_PROMPTS_CONFIG_MULTIPLE: {
type: 'select',
name: 'value',
message: 'What config do you want to use?',
choices: [],
initial: 0
},
DEFAULT_PROMPTS_CONFIG: {
type: 'text',
name: 'value',
message: 'What is the assistant SID?',
validate: value => value.length < 32 ? `The Assistant SID should have at least 32 hex numbers. For example: 751efa8dc8eda8a1826a66db8598ad21.` : true
}
}