Repository URL to install this package:
|
Version:
0.0.1 ▾
|
const path = require('path');
const homedir = require('os').homedir();
const DOODLE_HOME_DIR_PATH = path.join(homedir, '.doodlecli');
const CONFIGURATION_FILE = path.join(DOODLE_HOME_DIR_PATH, 'config.json');
const GMAIL_CREDENTIALS_FILE = path.join(DOODLE_HOME_DIR_PATH, 'gmail.credentials.json');
const GMAIL_API_TOKEN_FILE = path.join(DOODLE_HOME_DIR_PATH, 'token.json');
const DOODLE_REPOS_JSON_FILE = path.join('data', 'repos.json');
// Config keys
const CONFIG_EMAIL_KEY = 'EMAIL';
const CONFIG_FIRST_NAME_KEY = 'FIRST_NAME';
const CONFIG_PASSWORD_KEY = 'PASSWORD';
const CONFIG_GITHUB_TOKEN_KEY = 'GITHUB_TOKEN';
const CONFIG_DEBUG_MODE_KEY = 'DEBUG_MODE';
const JIRA_KEYS = {
WEB: {
github: 'https://github.com/DoodleScheduling/doodle',
},
WIT: {
github: 'https://github.com/DoodleScheduling/web-integration-tests',
},
CE: {
github: 'https://github.com/DoodleScheduling/chrome-extension',
},
OAB: {
github: 'https://github.com/DoodleScheduling/web-billing',
},
FRODO: {
github: {
'web-dashboard': 'https://github.com/DoodleScheduling/web-dashboard',
'web-wizard': 'https://github.com/DoodleScheduling/web-wizard',
'web-users-service': 'https://github.com/DoodleScheduling/web-users-service',
'web-components': 'https://github.com/DoodleScheduling/web-components',
'web-meetme': 'https://github.com/DoodleScheduling/web-meetme',
},
},
};
const DAILIES = {
Growth: 'https://meet.google.com/oxn-ncqr-kpx',
Groups: 'https://meet.google.com/grc-ntth-ufs',
Frontend: 'https://meet.google.com/zzc-qmfd-zjz',
};
// DON'T ADD THE HOMEPAGE TO THIS ARRAY because deploying to staging
// can mess with production deployments if you don't know what you are doing.
const FRONTENDS = ['web-settings', 'web-unified-dashboard'];
const NAMESPACES = ['staging', 'preproduction', 'devbox-groups-1', 'devbox-groups-2', 'devbox-growth-1'];
// HTTP response codes
const STATUS_OK = 200;
const STATUS_CREATED = 201;
const DOODLE_ENVS = {
'local (doodle.local)': 'https://doodle.local:8443',
'local (jockey)': 'https://dev.doodle-test.com',
staging: 'https://staging.doodle-test.com',
preproduction: 'https://doodle-test.com',
production: 'https://doodle.com',
'devbox-growth-1': 'https://devbox-growth-1.kubernetes.doodle-test.com',
'devbox-groups-1': 'https://devbox-groups-1.kubernetes.doodle-test.com',
'devbox-ep-1': 'https://devbox-ep-1.kubernetes.doodle-test.com',
};
// Error codes made human readable <3
const ENTITY_NOT_FOUND = 'ENOENT';
module.exports = {
DOODLE_ENVS,
GMAIL_CREDENTIALS_FILE,
CONFIGURATION_FILE,
JIRA_KEYS,
DAILIES,
FRONTENDS,
NAMESPACES,
STATUS_OK,
STATUS_CREATED,
ENTITY_NOT_FOUND,
CONFIG_EMAIL_KEY,
CONFIG_FIRST_NAME_KEY,
CONFIG_PASSWORD_KEY,
CONFIG_GITHUB_TOKEN_KEY,
CONFIG_DEBUG_MODE_KEY,
DOODLE_HOME_DIR_PATH,
GMAIL_API_TOKEN_FILE,
DOODLE_REPOS_JSON_FILE,
};