bdy 1.22.43-dev → 1.22.44-dev-distro
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/distTs/package.json +3 -2
- package/distTs/src/api/client.js +73 -2
- package/distTs/src/cliIndex.js +2 -0
- package/distTs/src/command/distro/create.js +40 -0
- package/distTs/src/command/distro/delete.js +38 -0
- package/distTs/src/command/distro/list.js +35 -0
- package/distTs/src/command/distro/route/create.js +50 -0
- package/distTs/src/command/distro/route/delete.js +39 -0
- package/distTs/src/command/distro/route/list.js +45 -0
- package/distTs/src/command/distro/route.js +18 -0
- package/distTs/src/command/distro.js +23 -0
- package/distTs/src/command/domain/buy.js +27 -8
- package/distTs/src/command/login.js +1 -0
- package/distTs/src/command/pipeline/list.js +1 -1
- package/distTs/src/command/pipeline/run/apply.js +62 -0
- package/distTs/src/input.js +180 -1
- package/distTs/src/output.js +8 -0
- package/distTs/src/texts.js +86 -6
- package/distTs/src/types/distro.js +232 -0
- package/package.json +3 -2
- package/distTs/src/command/project/get.js +0 -18
- package/distTs/src/command/project/set.js +0 -31
- package/distTs/src/command/sandbox/get/yaml.js +0 -30
- package/distTs/src/command/vt/scrape.js +0 -193
package/distTs/src/input.js
CHANGED
|
@@ -50,6 +50,7 @@ const node_path_1 = __importStar(require("node:path"));
|
|
|
50
50
|
const cfg_1 = __importDefault(require("./tunnel/cfg"));
|
|
51
51
|
const uuid_1 = require("uuid");
|
|
52
52
|
const sandbox_1 = require("./types/sandbox");
|
|
53
|
+
const distro_1 = require("./types/distro");
|
|
53
54
|
class Input {
|
|
54
55
|
static timeout(timeout) {
|
|
55
56
|
const t = parseInt(timeout, 10);
|
|
@@ -341,11 +342,25 @@ class Input {
|
|
|
341
342
|
const baseUrl = this.restApiBaseUrl(api, region, t);
|
|
342
343
|
return new ApiClient(baseUrl, t, refreshToken, clientId, clientSecret, clientToken);
|
|
343
344
|
}
|
|
345
|
+
static routeType(type) {
|
|
346
|
+
if (!type)
|
|
347
|
+
return distro_1.ROUTE_TYPE.PROXY;
|
|
348
|
+
if (Object.values(distro_1.ROUTE_TYPE).includes(type)) {
|
|
349
|
+
return type;
|
|
350
|
+
}
|
|
351
|
+
output_1.default.exitError(texts_1.ERR_COMMAND_ROUTE_TYPE);
|
|
352
|
+
}
|
|
353
|
+
static routePath(path) {
|
|
354
|
+
if (!path)
|
|
355
|
+
return '';
|
|
356
|
+
return path.replace(/^\/+/, '');
|
|
357
|
+
}
|
|
344
358
|
static artifactType(type) {
|
|
345
359
|
if (!type)
|
|
346
360
|
return utils_1.ARTIFACT_TYPE.BUCKET;
|
|
347
|
-
if (Object.values(utils_1.ARTIFACT_TYPE).includes(type))
|
|
361
|
+
if (Object.values(utils_1.ARTIFACT_TYPE).includes(type)) {
|
|
348
362
|
return type;
|
|
363
|
+
}
|
|
349
364
|
output_1.default.exitError(texts_1.ERR_COMMAND_ARTIFACT_TYPE);
|
|
350
365
|
}
|
|
351
366
|
static artifactScope(project) {
|
|
@@ -489,6 +504,154 @@ class Input {
|
|
|
489
504
|
});
|
|
490
505
|
return list;
|
|
491
506
|
}
|
|
507
|
+
static async routeTarget(client, workspace, project, targetList) {
|
|
508
|
+
if (!targetList || !Array.isArray(targetList) || !targetList.length) {
|
|
509
|
+
output_1.default.exitError(texts_1.ERR_COMMAND_ROUTE_NO_TARGET);
|
|
510
|
+
}
|
|
511
|
+
const targets = {};
|
|
512
|
+
const SEP = '\x00';
|
|
513
|
+
for (let j = 0; j < targetList.length; j += 1) {
|
|
514
|
+
const str = targetList[j];
|
|
515
|
+
let type = null;
|
|
516
|
+
let url = '';
|
|
517
|
+
let artifact = '';
|
|
518
|
+
let sandbox = '';
|
|
519
|
+
let region = null;
|
|
520
|
+
const parts = str
|
|
521
|
+
.replace(/\\,/g, SEP)
|
|
522
|
+
.split(',')
|
|
523
|
+
.map((p) => p.split(SEP).join(','));
|
|
524
|
+
for (let i = 0; i < parts.length; i += 1) {
|
|
525
|
+
const p = parts[i];
|
|
526
|
+
const idx = p.indexOf('=');
|
|
527
|
+
if (idx < 0) {
|
|
528
|
+
output_1.default.exitError((0, texts_1.ERR_WRONG_ROUTE_TARGET)(str, 'No key=val delimiter'));
|
|
529
|
+
}
|
|
530
|
+
const key = p.substring(0, idx).trim();
|
|
531
|
+
const val = p.substring(idx + 1).trim();
|
|
532
|
+
if (key === 'url' && val) {
|
|
533
|
+
if (url || type !== null) {
|
|
534
|
+
output_1.default.exitError((0, texts_1.ERR_WRONG_ROUTE_TARGET)(str, 'Param url defined twice'));
|
|
535
|
+
}
|
|
536
|
+
type = distro_1.ROUTE_TARGET_TYPE.EXTERNAL;
|
|
537
|
+
url = val;
|
|
538
|
+
}
|
|
539
|
+
else if (key === 'artifact' && val) {
|
|
540
|
+
if (artifact || type !== null) {
|
|
541
|
+
output_1.default.exitError((0, texts_1.ERR_WRONG_ROUTE_TARGET)(str, 'Param artifact defined twice'));
|
|
542
|
+
}
|
|
543
|
+
type = distro_1.ROUTE_TARGET_TYPE.ARTIFACT;
|
|
544
|
+
artifact = val;
|
|
545
|
+
}
|
|
546
|
+
else if (key === 'sandbox' && val) {
|
|
547
|
+
if (sandbox || type !== null) {
|
|
548
|
+
output_1.default.exitError((0, texts_1.ERR_WRONG_ROUTE_TARGET)(str, 'Param sandbox defined twice'));
|
|
549
|
+
}
|
|
550
|
+
type = distro_1.ROUTE_TARGET_TYPE.SANDBOX;
|
|
551
|
+
sandbox = val;
|
|
552
|
+
}
|
|
553
|
+
else if (key === 'region' && val) {
|
|
554
|
+
if (region) {
|
|
555
|
+
output_1.default.exitError((0, texts_1.ERR_WRONG_ROUTE_TARGET)(str, 'Param region defined twice'));
|
|
556
|
+
}
|
|
557
|
+
const match = Object.values(distro_1.ROUTE_REGION).find((r) => r.toLowerCase() === val.toLowerCase());
|
|
558
|
+
if (match) {
|
|
559
|
+
region = match;
|
|
560
|
+
}
|
|
561
|
+
else {
|
|
562
|
+
output_1.default.exitError((0, texts_1.ERR_WRONG_ROUTE_TARGET)(str, 'Wrong value of region'));
|
|
563
|
+
}
|
|
564
|
+
}
|
|
565
|
+
else {
|
|
566
|
+
output_1.default.exitError((0, texts_1.ERR_WRONG_ROUTE_TARGET)(str, 'Unknown param'));
|
|
567
|
+
}
|
|
568
|
+
}
|
|
569
|
+
if (!type) {
|
|
570
|
+
output_1.default.exitError((0, texts_1.ERR_WRONG_ROUTE_TARGET)(str, 'Unrecognized type'));
|
|
571
|
+
}
|
|
572
|
+
if (!region) {
|
|
573
|
+
region = distro_1.ROUTE_REGION.Default;
|
|
574
|
+
}
|
|
575
|
+
if (targets[region]) {
|
|
576
|
+
output_1.default.exitError((0, texts_1.ERR_WRONG_ROUTE_TARGET)(str, 'Region already used by another target'));
|
|
577
|
+
}
|
|
578
|
+
let target;
|
|
579
|
+
if (type === distro_1.ROUTE_TARGET_TYPE.EXTERNAL) {
|
|
580
|
+
target = {
|
|
581
|
+
type,
|
|
582
|
+
external_url: url,
|
|
583
|
+
};
|
|
584
|
+
}
|
|
585
|
+
else if (type === distro_1.ROUTE_TARGET_TYPE.ARTIFACT) {
|
|
586
|
+
const idx = artifact.indexOf(':');
|
|
587
|
+
if (idx < 0) {
|
|
588
|
+
output_1.default.exitError((0, texts_1.ERR_WRONG_ROUTE_TARGET)(str, 'artifact wrong format (identifier:version)'));
|
|
589
|
+
}
|
|
590
|
+
const identifier = artifact.substring(0, idx).trim();
|
|
591
|
+
const version = artifact.substring(idx + 1).trim();
|
|
592
|
+
if (!identifier || !version) {
|
|
593
|
+
output_1.default.exitError((0, texts_1.ERR_WRONG_ROUTE_TARGET)(str, 'artifact wrong format (identifier:version)'));
|
|
594
|
+
}
|
|
595
|
+
let result = await client.getArtifactVersionByIdentifier(workspace, project, identifier, version);
|
|
596
|
+
if (!result.artifact_id && project) {
|
|
597
|
+
// try in workspace scope
|
|
598
|
+
result = await client.getArtifactVersionByIdentifier(workspace, null, identifier, version);
|
|
599
|
+
}
|
|
600
|
+
if (!result.domain) {
|
|
601
|
+
output_1.default.exitError((0, texts_1.ERR_WRONG_ROUTE_TARGET)(str, texts_1.ERR_WORKSPACE_NOT_FOUND));
|
|
602
|
+
}
|
|
603
|
+
if (!result.artifact_id) {
|
|
604
|
+
output_1.default.exitError((0, texts_1.ERR_WRONG_ROUTE_TARGET)(str, texts_1.ERR_ARTIFACT_NOT_FOUND));
|
|
605
|
+
}
|
|
606
|
+
if (!result.artifact_version_id) {
|
|
607
|
+
output_1.default.exitError((0, texts_1.ERR_WRONG_ROUTE_TARGET)(str, texts_1.ERR_ARTIFACT_VERSION_NOT_FOUND));
|
|
608
|
+
}
|
|
609
|
+
target = {
|
|
610
|
+
type,
|
|
611
|
+
artifact: {
|
|
612
|
+
id: result.artifact_id,
|
|
613
|
+
version_id: result.artifact_version_id,
|
|
614
|
+
},
|
|
615
|
+
};
|
|
616
|
+
}
|
|
617
|
+
else if (type === distro_1.ROUTE_TARGET_TYPE.SANDBOX) {
|
|
618
|
+
const idx = sandbox.indexOf(':');
|
|
619
|
+
if (idx < 0) {
|
|
620
|
+
output_1.default.exitError((0, texts_1.ERR_WRONG_ROUTE_TARGET)(str, 'sandbox wrong format (identifier:endpoint)'));
|
|
621
|
+
}
|
|
622
|
+
const identifier = sandbox.substring(0, idx).trim();
|
|
623
|
+
const endpoint = sandbox.substring(idx + 1).trim();
|
|
624
|
+
if (!identifier || !endpoint) {
|
|
625
|
+
output_1.default.exitError((0, texts_1.ERR_WRONG_ROUTE_TARGET)(str, 'sandbox wrong format (identifier:endpoint)'));
|
|
626
|
+
}
|
|
627
|
+
if (!project) {
|
|
628
|
+
output_1.default.exitError((0, texts_1.ERR_WRONG_ROUTE_TARGET)(str, 'sandbox target can be used only in project'));
|
|
629
|
+
}
|
|
630
|
+
const result = await client.getSandboxByIdentifier(workspace, project, identifier);
|
|
631
|
+
if (!result.domain) {
|
|
632
|
+
output_1.default.exitError((0, texts_1.ERR_WRONG_ROUTE_TARGET)(str, texts_1.ERR_WORKSPACE_NOT_FOUND));
|
|
633
|
+
}
|
|
634
|
+
if (!result.sandbox_id) {
|
|
635
|
+
output_1.default.exitError((0, texts_1.ERR_WRONG_ROUTE_TARGET)(str, texts_1.ERR_SANDBOX_NOT_FOUND));
|
|
636
|
+
}
|
|
637
|
+
target = {
|
|
638
|
+
type,
|
|
639
|
+
sandbox: {
|
|
640
|
+
id: result.sandbox_id,
|
|
641
|
+
endpoint: endpoint,
|
|
642
|
+
},
|
|
643
|
+
};
|
|
644
|
+
}
|
|
645
|
+
else {
|
|
646
|
+
output_1.default.exitError((0, texts_1.ERR_WRONG_ROUTE_TARGET)(str, 'Unknown target type'));
|
|
647
|
+
}
|
|
648
|
+
targets[region] = target;
|
|
649
|
+
}
|
|
650
|
+
if (!targets[distro_1.ROUTE_REGION.Default]) {
|
|
651
|
+
output_1.default.exitError(texts_1.ERR_ROUTE_NO_DEFAULT);
|
|
652
|
+
}
|
|
653
|
+
return targets;
|
|
654
|
+
}
|
|
492
655
|
static sandboxFetch(fetchList) {
|
|
493
656
|
const fetch = [];
|
|
494
657
|
const SEP = '\x00';
|
|
@@ -872,6 +1035,22 @@ class Input {
|
|
|
872
1035
|
output_1.default.exitError(texts_1.ERR_API_WRONG_METHOD);
|
|
873
1036
|
return null;
|
|
874
1037
|
}
|
|
1038
|
+
static distroScope(project, scope) {
|
|
1039
|
+
if (scope) {
|
|
1040
|
+
if (scope === distro_1.DISTRO_SCOPE.WORKSPACE) {
|
|
1041
|
+
return scope;
|
|
1042
|
+
}
|
|
1043
|
+
if (scope === distro_1.DISTRO_SCOPE.PROJECT) {
|
|
1044
|
+
if (!project)
|
|
1045
|
+
output_1.default.exitError(texts_1.ERR_COMMAND_DISTRO_NO_PROJECT);
|
|
1046
|
+
return scope;
|
|
1047
|
+
}
|
|
1048
|
+
return output_1.default.exitError(texts_1.ERR_COMMAND_DISTRO_SCOPE);
|
|
1049
|
+
}
|
|
1050
|
+
if (project)
|
|
1051
|
+
return distro_1.DISTRO_SCOPE.PROJECT;
|
|
1052
|
+
return distro_1.DISTRO_SCOPE.WORKSPACE;
|
|
1053
|
+
}
|
|
875
1054
|
static restApiProject(project, allowNull) {
|
|
876
1055
|
const ProjectCfg = require('./project/cfg').default;
|
|
877
1056
|
let p = process.env.BUDDY_PROJECT;
|
package/distTs/src/output.js
CHANGED
|
@@ -158,6 +158,14 @@ class Output {
|
|
|
158
158
|
static cyan(txt, newLine = true) {
|
|
159
159
|
this.normal(this.getCyanColor(txt), newLine);
|
|
160
160
|
}
|
|
161
|
+
static identifier(identifier) {
|
|
162
|
+
Output.dim('Identifier: ', false);
|
|
163
|
+
Output.cyan(identifier);
|
|
164
|
+
}
|
|
165
|
+
static id(id) {
|
|
166
|
+
Output.dim('Id: ', false);
|
|
167
|
+
Output.cyan(id);
|
|
168
|
+
}
|
|
161
169
|
static debug(txt) {
|
|
162
170
|
const { debug } = require('./visualTest/context');
|
|
163
171
|
if (debug) {
|
package/distTs/src/texts.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ERR_KEY_PATH_IS_NOT_VALID = exports.ERR_CA_PATH_IS_NOT_VALID = exports.ERR_WRONG_CA = exports.ERR_WRONG_KEY_CERT = exports.ERR_NAME_WITHOUT_ASTERISK = exports.ERR_PORT_IS_NOT_VALID = exports.ERR_REGION_IS_NOT_VALID = exports.ERR_PATH_IS_NOT_DIRECTORY = exports.ERR_DIRECTORY_DOES_NOT_EXISTS = exports.ERR_TERMINATE_IS_NOT_VALID = exports.ERR_TIMEOUT_IS_NOT_VALID = exports.ERR_TYPE_IS_NOT_VALID = exports.ERR_TARGET_IS_NOT_VALID = exports.ERR_SAVING_AGENT_CONFIG = exports.ERR_AGENT_NOT_REGISTERED = exports.ERR_WRONG_FETCH = exports.ERR_RUN_WRONG_VARIABLE = exports.ERR_RUN_PIPELINE_WRONG_ACTION = exports.ERR_RUN_PIPELINE_WRONG_DELAY = exports.ERR_PIPELINE_RUNS_NOT_FOUND = exports.
|
|
3
|
+
exports.ERR_KEY_PATH_IS_NOT_VALID = exports.ERR_CA_PATH_IS_NOT_VALID = exports.ERR_WRONG_CA = exports.ERR_WRONG_KEY_CERT = exports.ERR_NAME_WITHOUT_ASTERISK = exports.ERR_PORT_IS_NOT_VALID = exports.ERR_REGION_IS_NOT_VALID = exports.ERR_PATH_IS_NOT_DIRECTORY = exports.ERR_DIRECTORY_DOES_NOT_EXISTS = exports.ERR_TERMINATE_IS_NOT_VALID = exports.ERR_TIMEOUT_IS_NOT_VALID = exports.ERR_TYPE_IS_NOT_VALID = exports.ERR_TARGET_IS_NOT_VALID = exports.ERR_SAVING_AGENT_CONFIG = exports.ERR_AGENT_NOT_REGISTERED = exports.ERR_WRONG_FETCH = exports.ERR_RUN_WRONG_VARIABLE = exports.ERR_RUN_PIPELINE_WRONG_ACTION = exports.ERR_RUN_PIPELINE_WRONG_DELAY = exports.ERR_PIPELINE_RUNS_NOT_FOUND = exports.TXT_PIPELINES_NOT_FOUND = exports.ERR_RUN_PIPELINE_WRONG_RUN_ACTION_ID = exports.ERR_RUN_PIPELINE_WRONG_RUN_ID = exports.ERR_RUN_PIPELINE_WRONG_PRIORITY = exports.ERR_SANDBOX_EXEC_RUNTIME_NOT_FOUND = exports.ERR_ARTIFACT_VERSIONS_NOT_FOUND = exports.ERR_ARTIFACT_NOT_FOUND = exports.ERR_ARTIFACT_VERSION_NOT_FOUND = exports.ERR_ARTIFACT_VERSION_EXISTS = exports.ERR_ARTIFACT_PUBLISH_NOT_FOUND = exports.ERR_ARTIFACT_DOWNLOAD_NOT_FOUND = exports.ERR_CANT_APPLY_ACTION_EXECUTION = exports.ERR_PIPELINE_NOT_FOUND = exports.ERR_PROJECT_NOT_FOUND = exports.ERR_WORKSPACE_NOT_FOUND = exports.ERR_REST_API_YAML_NOT_FOUND = exports.ERR_REST_API_YAML = exports.ERR_REST_API_PROJECT = exports.ERR_REST_API_WORKSPACE = exports.ERR_PATH_NOT_EXISTS = exports.ERR_REST_API_REGION = exports.ERR_REST_API_URL = exports.ERR_REST_API_TOKEN = exports.ERR_REST_API_RATE_LIMIT = exports.ERR_REST_API_RESOURCE_NOT_FOUND = exports.ERR_REST_API_WRONG_TOKEN = exports.ERR_REST_API_CONNECT_ERROR = exports.ERR_REST_API_NOT_RESPONDING = exports.ERR_REST_API_GENERAL_ERROR = exports.ERR_CANCELLED = void 0;
|
|
4
4
|
exports.ERR_MISSING_STORYBOOK_INDEX_FILE = exports.ERR_WRONG_STORYBOOK_DIRECTORY = exports.ERR_MISSING_BUILD_ID = exports.ERR_MISSING_UT_TOKEN = exports.ERR_MISSING_CRAWL_TOKEN = exports.ERR_MISSING_VT_TOKEN = exports.ERR_CONFIG_CORRUPTED = exports.ERR_WRONG_TOKEN = exports.ERR_TOKEN_NOT_PROVIDED = exports.ERR_CANT_CREATE_DIR_IN_HOME = exports.ERR_CONNECTION_ERROR = exports.ERR_CONNECTION_TIMEOUT = exports.ERR_WRONG_STREAM = exports.ERR_WRONG_HANDSHAKE = exports.ERR_FETCH_VERSION = exports.ERR_ARTIFACT_DOWNLOAD_REPLACE = exports.ERR_ARTIFACT_DOWNLOAD_NOT_EMPTY_DIR = exports.ERR_ARTIFACT_DOWNLOAD_IS_FILE = exports.ERR_ARTIFACT_DOWNLOAD_READDIR = exports.ERR_ARTIFACT_DOWNLOAD_MKDIR = exports.ERR_SWW = exports.ERR_NOT_FOUND = exports.ERR_FAILED_TO_CONNECT_TO_AGENT = exports.ERR_TUNNEL_REMOVED = exports.ERR_TUNNELS_DISABLED = exports.ERR_AGENT_LIMIT_REACHED = exports.ERR_TUNNEL_TARGET_INVALID = exports.ERR_WORKSPACE_FLAGGED = exports.ERR_TUNNEL_LIMIT_REACHED = exports.ERR_DOMAIN_RESTRICTED = exports.ERR_AGENT_REMOVED = exports.ERR_FAILED_TO_CONNECT = exports.ERR_TUNNEL_ALREADY_EXISTS = exports.ERR_AGENT_NOT_SUPPORTED = exports.ERR_AGENT_ADMIN_RIGHTS = exports.ERR_SWW_AGENT_UPDATING = exports.ERR_SWW_AGENT_ENABLING = exports.ERR_AGENT_TAG_INVALID = exports.ERR_AGENT_NOT_FOUND = exports.ERR_AGENT_NOT_RUNNING = exports.ERR_AGENT_IS_NOT_SERVICE = exports.ERR_AGENT_NOT_INSTALLED = exports.ERR_TUNNEL_NOT_FOUND = exports.ERR_WHITELIST_IS_NOT_VALID = exports.ERR_USER_AGENT_IS_NOT_VALID = exports.ERR_BA_IS_NOT_VALID = exports.ERR_BA_LOGIN_NOT_PROVIDED = exports.ERR_BA_PASSWORD_NOT_PROVIDED = exports.ERR_CB_THRESHOLD_IS_NOT_VALID = exports.ERR_CERT_PATH_IS_NOT_VALID = void 0;
|
|
5
5
|
exports.TXT_AGENT_STANDALONE_AGENT_FETCH_ERROR = exports.TXT_AGENT_STANDALONE_AGENT_FETCHED = exports.TXT_AGENT_STANDALONE_AGENT_FETCHING = exports.TXT_TUNNEL_ADDED = exports.TXT_TUNNEL_REMOVED = exports.TXT_REGION_SAVED = exports.TXT_TIMEOUT_SAVED = exports.TXT_TOKEN_REMOVED = exports.TXT_TOKEN_SAVED = exports.TXT_WHITELIST_SAVED = exports.TXT_TUNNEL_STOPPED = exports.TXT_TUNNEL_STARTED = exports.TXY_AGENT_CONFIRM_DELETE = exports.TXT_AGENT_DISABLED = exports.TXT_AGENT_ALREADY_INSTALLED = exports.TXT_AGENT_UPDATED = exports.TXT_AGENT_INSTALLED = exports.TXT_AGENT_NO_TAGS = exports.TXT_AGENT_TAGS_SET = exports.TXT_AGENT_TUNNELING_DISABLED = exports.TXT_AGENT_TUNNELING_ENABLED = exports.TXT_AGENT_PROXY_DISABLED = exports.TXT_AGENT_PROXY_ENABLED = exports.TXT_AGENT_TARGET_DISABLED = exports.TXT_AGENT_TARGET_ENABLED = exports.TXT_AGENT_RESTARTED = exports.TXT_AGENT_DEBUG_OFF = exports.TXT_AGENT_DEBUG_ON = exports.TXT_AGENT_USER_CHANGED = exports.TXT_AGENT_STARTED = exports.TXT_AGENT_STOPPED = exports.WARN_BROWSER_VERSION = exports.ERR_RESOURCE_DISCOVERY = exports.ERR_NO_SNAPSHOTS_TO_SEND = exports.ERR_INVALID_SNAPSHOT = exports.ERR_TEST_EXECUTION = exports.ERR_INVALID_JSON = exports.ERR_INVALID_DOWNLOAD_RESPONSE = exports.ERR_INVALID_CRAWL_RESPONSE = exports.ERR_INVALID_COMPARE_LINKS_RESPONSE = exports.ERR_INVALID_STORYBOOK_RESPONSE = exports.ERR_INVALID_DEFAULT_SETTINGS_RESPONSE = exports.ERR_INVALID_CLOSE_SESSION_RESPONSE = exports.ERR_INVALID_SNAPSHOTS_RESPONSE = exports.ERR_INVALID_SNAPSHOT_RESPONSE = exports.ERR_MISSING_URLS = exports.ERR_RESOURCE_NOT_FOUND = exports.ERR_MISSING_EXEC_COMMAND = exports.ERR_PARSING_STORIES = exports.ERR_UNSUPPORTED_STORYBOOK = void 0;
|
|
6
6
|
exports.DESC_COMMAND_AGENT_TAGS = exports.DESC_COMMAND_AGENT_PROXY = exports.DESC_COMMAND_AGENT_TARGET = exports.DESC_COMMAND_AGENT_TUNNEL = exports.DESC_COMMAND_AGENT_STOP = exports.DESC_COMMAND_AGENT_PROXY_DISABLE = exports.DESC_COMMAND_AGENT_TARGET_DISABLE = exports.DESC_COMMAND_AGENT_TUNNELING_DISABLE = exports.DESC_COMMAND_AGENT_TUNNELING_ENABLE = exports.DESC_COMMAND_AGENT_PROXY_ENABLE = exports.DESC_COMMAND_AGENT_TARGET_ENABLE = exports.DESC_COMMAND_AGENT_PROXY_STATUS = exports.DESC_COMMAND_AGENT_TARGET_STATUS = exports.DESC_COMMAND_AGENT_STATUS = exports.DESC_COMMAND_AGENT_RESTART = exports.DESC_COMMAND_AGENT_ENABLE = exports.DESC_COMMAND_AGENT_DEBUG = exports.DESC_COMMAND_AGENT_DISABLE = exports.DESC_COMMAND_AGENT_START = exports.DESC_COMMAND_AGENT_INSTALL = exports.DESC_COMMAND_AGENT_UNINSTALL = exports.DESC_COMMAND_AGENT_TUNNEL_REMOVE = exports.DESC_COMMAND_AGENT_TUNNEL_STATUS = exports.DESC_COMMAND_AGENT_TUNNEL_LIST = exports.DESC_COMMAND_CONFIG_SET = exports.DESC_COMMAND_CONFIG_REMOVE = exports.DESC_COMMAND_CONFIG_GET = exports.DESC_COMMAND_CONFIG_ADD = exports.DESC_COMMAND_CONFIG_SET_WHITELIST = exports.DESC_COMMAND_CONFIG_SET_TOKEN = exports.DESC_COMMAND_CONFIG_SET_TIMEOUT = exports.DESC_COMMAND_CONFIG_SET_REGION = exports.DESC_COMMAND_CONFIG_REMOVE_TOKEN = exports.DESC_COMMAND_CONFIG_REMOVE_TUNNEL = exports.DESC_COMMAND_CONFIG_GET_WHITELIST = exports.DESC_COMMAND_CONFIG_GET_TUNNELS = exports.DESC_COMMAND_CONFIG_GET_TUNNEL = exports.DESC_COMMAND_CONFIG_GET_TOKEN = exports.DESC_COMMAND_CONFIG_GET_TIMEOUT = exports.DESC_COMMAND_CONFIG_GET_REGION = exports.DESC_COMMAND_CONFIG_ADD_TLS = exports.DESC_COMMAND_CONFIG_ADD_TCP = exports.DESC_COMMAND_CONFIG_ADD_HTTP = exports.AGENT_FETCH_RETRY = exports.NO_TUNNELS_STARTED = exports.TXT_AGENT_STANDALONE_EXITING = exports.TXT_AGENT_STANDALONE_STARTED = exports.TXT_AGENT_STANDALONE_AGENT_REGISTER_ERROR = exports.TXT_AGENT_STANDALONE_AGENT_REGISTERED = exports.TXT_AGENT_STANDALONE_AGENT_REGISTERING = void 0;
|
|
@@ -13,9 +13,10 @@ exports.OPTION_SANDBOX_RESOURCES = exports.OPTION_SANDBOX_OS = exports.OPTION_SA
|
|
|
13
13
|
exports.DESC_COMMAND_SANDBOX_EXEC_KILL = exports.DESC_COMMAND_SANDBOX_EXEC_LOGS = exports.DESC_COMMAND_SANDBOX_APP_START = exports.DESC_COMMAND_SANDBOX_APP_STOP = exports.DESC_COMMAND_SANDBOX_APP_STATUS = exports.DESC_COMMAND_SANDBOX_APP_LOGS = exports.DESC_COMMAND_SANDBOX_EXEC_STATUS = exports.DESC_COMMAND_SANDBOX_EXEC_LIST = exports.DESC_COMMAND_SANDBOX_APP_REMOVE = exports.DESC_COMMAND_SANDBOX_APP_ADD = exports.DESC_COMMAND_SANDBOX_APP_LIST = exports.TXT_SANDBOX_WAITING_START = exports.TXT_SANDBOX_WAITING_STOP = exports.TXT_SANDBOX_WAITING_APPS = exports.TXT_SANDBOX_WAITING_SETUP = exports.TXT_SANDBOX_WAITING_RUNNING = exports.TXT_SANDBOX_STOPPED = exports.TXT_SANDBOX_STARTED = exports.TXT_SANDBOX_DESTROYED = exports.TXT_SANDBOX_DESTROY_CONFIRM = exports.TXT_SANDBOX_UPDATED = exports.TXT_SANDBOX_CREATED = exports.TXT_SANDBOX_CREATING = exports.TXT_SANDBOX_APP_STARTED = exports.TXT_SANDBOX_APP_STOPPED = exports.OPTION_SANDBOX_WAIT = exports.OPTION_SANDBOX_WAIT_APPS = exports.OPTION_SANDBOX_WAIT_CONFIGURED = exports.OPTION_SANDBOX_WAIT_RUNNING = exports.ERR_SANDBOX_STOP_FAILED = exports.ERR_SANDBOX_NO_COMMANDS = exports.ERR_SANDBOX_RUNNING_FAILED = exports.ERR_SANDBOX_STOP_TIMEOUT = exports.ERR_SANDBOX_SNAPSHOT_TIMEOUT = exports.ERR_SANDBOX_RUNNING_TIMEOUT = exports.ERR_SANDBOX_APPS_TIMEOUT = exports.ERR_SANDBOX_SETUP_TIMEOUT = exports.ERR_SANDBOX_APP_FAILED = exports.ERR_SANDBOX_SETUP_FAILED = exports.ERR_SANDBOX_INVALID_RESOURCES = exports.ERR_SANDBOX_APP_NOT_FOUND = exports.ERR_SANDBOX_NOT_FOUND = exports.OPTION_SANDBOX_RUNTIME = exports.OPTION_SANDBOX_TIMEOUT = exports.OPTION_SANDBOX_FETCH = exports.OPTION_SANDBOX_APP_DIR = exports.OPTION_SANDBOX_APP_COMMAND = exports.OPTION_SANDBOX_YAML = exports.OPTION_SANDBOX_TAGS = exports.OPTION_SANDBOX_INSTALL_COMMANDS = void 0;
|
|
14
14
|
exports.ERR_SANDBOX_CP_SOURCE_NOT_FOUND = exports.TXT_SANDBOX_CP_DONE = exports.TXT_SANDBOX_CP_PROGRESS = exports.TXT_SANDBOX_UNZIPPING_COUNT = exports.TXT_SANDBOX_UNZIP_DONE = exports.TXT_SANDBOX_UNZIP = exports.TXT_SANDBOX_CP_DOWNLOAD_DONE = exports.TXT_SANDBOX_CP_DOWNLOAD = exports.OPTION_SANDBOX_CP_DOWNLOAD_REPLACE = exports.OPTION_SANDBOX_CP_DOWNLOAD_MERGE = exports.OPTION_SANDBOX_CP_DEST = exports.OPTION_SANDBOX_CP_SOURCE = exports.DESC_COMMAND_SANDBOX_CP = exports.ERR_SANDBOX_ENDPOINTS_NOT_FOUND = exports.ERR_SANDBOX_ENDPOINT_NOT_FOUND = exports.ERR_SANDBOX_ENDPOINT_EXISTS = exports.TXT_SANDBOX_ENDPOINT_DELETED = exports.TXT_SANDBOX_ENDPOINT_DELETE_CONFIRM = exports.TXT_SANDBOX_ENDPOINT_ADDED = exports.TXT_SANDBOX_APP_REMOVED = exports.TXT_SANDBOX_APP_ADDED = exports.OPTION_SANDBOX_ENDPOINT_TYPE = exports.OPTION_SANDBOX_ENDPOINT_PORT = exports.OPTION_SANDBOX_ENDPOINT_NAME_ARG = exports.OPTION_SANDBOX_ENDPOINT_NAME = exports.DESC_COMMAND_SANDBOX_ENDPOINT_DELETE = exports.DESC_COMMAND_SANDBOX_ENDPOINT_ADD = exports.DESC_COMMAND_SANDBOX_ENDPOINT_GET = exports.DESC_COMMAND_SANDBOX_ENDPOINT_LIST = exports.DESC_COMMAND_SANDBOX_ENDPOINT = exports.ERR_SANDBOX_SNAPSHOTS_NOT_FOUND = exports.ERR_SANDBOX_SNAPSHOT_NOT_FOUND = exports.ERR_SANDBOX_SNAPSHOT_FAILED = exports.TXT_SANDBOX_SNAPSHOT_WAITING = exports.TXT_SANDBOX_SNAPSHOT_DELETE_CONFIRM = exports.TXT_SANDBOX_SNAPSHOT_DELETED = exports.TXT_SANDBOX_SNAPSHOT_CREATED = exports.OPTION_SANDBOX_FROM_SNAPSHOT = exports.OPTION_SANDBOX_SNAPSHOT_NAME_ARG = exports.OPTION_SANDBOX_SNAPSHOT_NAME = exports.DESC_COMMAND_SANDBOX_SNAPSHOT_DELETE = exports.DESC_COMMAND_SANDBOX_SNAPSHOT_GET = exports.DESC_COMMAND_SANDBOX_SNAPSHOT_CREATE = exports.DESC_COMMAND_SANDBOX_SNAPSHOT_LIST = exports.DESC_COMMAND_SANDBOX_SNAPSHOT = exports.TXT_SANDBOX_COMMAND_KILLED = exports.OPTION_SANDBOX_COMMAND_KILL_CONFIRM = exports.OPTION_SANDBOX_LOGS_LIMIT = exports.OPTION_SANDBOX_APP_ID = exports.OPTION_SANDBOX_COMMAND_ID = void 0;
|
|
15
15
|
exports.DESC_COMMAND_LOGOUT = exports.DESC_COMMAND_LOGIN = exports.ERR_API_MEDIA_TYPE_NOT_IMPLEMENTED = exports.ERR_API_PARAMETER_NOT_REPLACED = exports.TXT_API_ENDPOINT_REQUIRED_SCOPES = exports.ERR_API_ENDPOINT_NOT_FOUND = exports.ERR_API_WRONG_METHOD = exports.ERR_SCHEMA_FETCH_FAILED = exports.OPT_COMMAND_API_INFO_URL = exports.OPT_COMMAND_API_INFO_SCHEMA = exports.OPT_COMMAND_API_INFO_METHOD = exports.OPT_COMMAND_API_LIST_SEARCH = exports.OPT_COMMAND_API_LIST_METHOD = exports.ERR_API_REQUEST_BODY_VALUE = exports.ERR_API_REQUEST_QUERY_VALUE = exports.ERR_API_REQUEST_INVALID_JSON = exports.ERR_API_REQUEST_FILE_ERROR = exports.ERR_API_REQUEST_OUTPUT_EXISTS = exports.DESC_COMMAND_API_INFO = exports.DESC_COMMAND_API_FORM = exports.DESC_COMMAND_API_JSON = exports.DESC_COMMAND_API_DATA = exports.DESC_COMMAND_API_OUTPUT = exports.DESC_COMMAND_API_REQUEST_QUERY = exports.DESC_COMMAND_API_PROJECT = exports.DESC_COMMAND_API_WORKSPACE = exports.DESC_COMMAND_API_REQUEST_URL = exports.DESC_COMMAND_API_GET = exports.DESC_COMMAND_API_PATCH = exports.DESC_COMMAND_API_DELETE = exports.DESC_COMMAND_API_PUT = exports.DESC_COMMAND_API_POST = exports.DESC_COMMAND_API_LIST = exports.DESC_COMMAND_API = exports.ERR_WHOAMI_LOGOUT = exports.TXT_WHOAMI_NO_WORKSPACE = exports.DESC_COMMAND_WHOAMI = exports.TXT_SANDBOX_EXEC_FAILED = exports.TXT_SANDBOX_EXEC_INPROGRESS = exports.TXT_SANDBOX_EXEC_SUCCESS = exports.TXT_SANDBOX_EXEC_BACKGROUND = exports.TXT_SANDBOX_EXEC_ID = exports.ERR_SANDBOX_CP_INVALID_SOURCE = exports.ERR_SANDBOX_CP_INVALID_DEST = exports.ERR_SANDBOX_CP_REPLACE = exports.ERR_SANDBOX_CP_MKDIR = exports.ERR_SANDBOX_CP_PATH_EXISTS = exports.ERR_SANDBOX_CP_NOT_EMPTY_DIR = exports.ERR_SANDBOX_CP_READDIR = exports.ERR_SANDBOX_CP_DEST_NOT_FOLDER = void 0;
|
|
16
|
-
exports.
|
|
17
|
-
exports.
|
|
18
|
-
exports.
|
|
16
|
+
exports.TXT_COMMAND_DISTROS_NOT_FOUND = exports.TXT_COMMAND_ROUTE_DELETED = exports.TXT_COMMAND_DISTRO_DELETED = exports.TXT_COMMAND_ROUTE_DELETE_CONFIRM = exports.TXT_COMMAND_DISTRO_DELETE_CONFIRM = exports.ERR_COMMAND_DISTRO_NOT_FOUND = exports.ERR_COMMAND_DISTRO_SCOPE = exports.TXT_COMMAND_ROUTE_CREATED = exports.TXT_COMMAND_DISTRO_CREATED = exports.ERR_COMMAND_DISTRO_NO_PROJECT = exports.OPT_COMMAND_DISTRO_NAME = exports.OPT_COMMAND_ROUTE_TARGET = exports.OPT_COMMAND_ROUTE_PATH = exports.OPT_COMMAND_ROUTE_DOMAIN = exports.OPT_COMMAND_ROUTE_SUBDOMAIN = exports.OPT_COMMAND_ROUTE_TYPE = exports.OPT_COMMAND_ROUTE_ID = exports.OPT_COMMAND_DISTRO_IDENTIFIER = exports.OPT_COMMAND_DISTRO_SCOPE = exports.DESC_COMMAND_ROUTE = exports.DESC_COMMAND_ROUTE_DELETE = exports.DESC_COMMAND_ROUTE_LIST = exports.DESC_COMMAND_DISTRO_LIST = exports.DESC_COMMAND_DISTRO_DELETE = exports.DESC_COMMAND_ROUTE_CREATE = exports.DESC_COMMAND_DISTRO_CREATE = exports.DESC_COMMAND_DISTRO = exports.ERR_API_MESSAGE_REPLACER = exports.ERR_LOGIN_INVALID_BASE_URL = exports.ERR_LOGIN_NO_WORKSPACE_FOUND = exports.ERR_LOGIN_NO_WORKSPACES = exports.ERR_LOGIN_HTTP_CANCEL = exports.ERR_LOGIN_HTTP_FAILED = exports.ERR_LOGIN_HTTP_SERVER_PORT_TAKEN = exports.TXT_LOGIN_SUCCESS = exports.TXT_LOGIN_SELECT_WORKSPACE = exports.TXT_LOGIN_ENTER_BASE_URL = exports.TXT_LOGIN_PROVIDE_CODE = exports.TXT_LOGIN_OPEN_URL = exports.TXT_LOGIN_OPENING_STAR = exports.TXT_LOGIN_OPENING = exports.TXT_LOGIN_SELECT_REGION = exports.TXT_WORKSPACE_NONE = exports.TXT_WORKSPACE_SET_SUCCESS = exports.ARG_COMMAND_WORKSPACE = exports.DESC_COMMAND_WORKSPACE_GET = exports.DESC_COMMAND_WORKSPACE_SET = exports.DESC_COMMAND_WORKSPACE_LIST = exports.DESC_COMMAND_WORKSPACE = exports.TXT_LOGOUT_SUCCESS = void 0;
|
|
17
|
+
exports.DESC_COMMAND_PROJECT_GIT = exports.DESC_COMMAND_PROJECT_GIT_CREDENTIAL = exports.DESC_COMMAND_PROJECT = exports.TXT_ARTIFACT_VERSION_DOWNLOAD = exports.TXT_ARTIFACT_PUBLISH = exports.TXT_ARTIFACT_CREATED = exports.TXT_ARTIFACT_VERSION_DELETED = exports.TXT_ARTIFACT_DELETED = exports.ERR_COMMAND_ARTIFACT_TYPE = exports.OPT_COMMAND_ARTIFACT_VERSION = exports.OPT_COMMAND_ARTIFACT_IDENTIFIER = exports.OPT_COMMAND_ARTIFACT_CREATE_IDENTIFIER = exports.OPT_COMMAND_ARTIFACT_NAME = exports.OPT_COMMAND_ARTIFACT_TYPE = exports.DESC_COMMAND_ARTIFACT_CREATE = exports.DESC_COMMAND_ARTIFACT_GET = exports.TXT_ARTIFACT_DOCKER_LOGIN_FAILED = exports.TXT_ARTIFACT_DOCKER_LOGIN_SUCCESS = exports.TXT_ARTIFACT_VERSION_DELETE_CONFIRM = exports.TXT_ARTIFACT_DELETE_CONFIRM = exports.DESC_COMMAND_ARTIFACT_DELETE = exports.ERR_COMMAND_ARTIFACT_NO_PROJECTS = exports.DESC_COMMAND_ARTIFACT_VERSION_GET = exports.DESC_COMMAND_ARTIFACT_VERSION_LIST = exports.DESC_COMMAND_ARTIFACT_VERSION_DELETE = exports.DESC_COMMAND_ARTIFACT_DOCKER_LOGIN = exports.DESC_COMMAND_ARTIFACT_LIST = exports.DESC_COMMAND_ARTIFACT_VERSION = exports.ERR_COMMAND_DOMAIN_UNAVAILABLE = exports.OPTION_COMMAND_DOMAIN_IDENTIFIER = exports.ERR_COMMAND_DOMAIN_NO_DOMAINS = exports.TXT_COMMAND_DOMAIN_PROMPT_REQUIRED = exports.TXT_COMMAND_DOMAIN_BUY_SELECT_DOMAIN = exports.TXT_COMMAND_DOMAIN_PROVIDE_PROMPT = exports.ERR_COMMAND_DOMAIN_NOT_FOUND = exports.OPT_COMMAND_DOMAIN_ONLY_AVAILABLE = exports.OPT_COMMAND_DOMAIN_SORT = exports.OPT_COMMAND_DOMAIN_PHRASE = exports.OPT_COMMAND_DOMAIN_BUY_OWNER = exports.OPT_COMMAND_DOMAIN_BUY_TLD = exports.DESC_COMMAND_DOMAIN_GET = exports.DESC_COMMAND_DOMAIN_LIST = exports.DESC_COMMAND_DOMAIN_SEARCH = exports.DESC_COMMAND_DOMAIN_BUY = exports.DESC_COMMAND_DOMAIN = exports.ERR_ROUTE_NO_DEFAULT = exports.ERR_WRONG_ROUTE_TARGET = exports.ERR_COMMAND_ROUTE_NO_TARGET = exports.ERR_COMMAND_ROUTE_TYPE = exports.TXT_COMMAND_ROUTES_NOT_FOUND = void 0;
|
|
18
|
+
exports.EXAMPLE_SANDBOX_APP_STOP = exports.EXAMPLE_SANDBOX_APP_REMOVE = exports.EXAMPLE_SANDBOX_APP_ADD = exports.EXAMPLE_SANDBOX_APP_START = exports.EXAMPLE_SANDBOX_APP_LOGS = exports.EXAMPLE_SANDBOX_EXEC_LIST = exports.EXAMPLE_SANDBOX_APP_LIST = exports.EXAMPLE_SANDBOX_EXEC_KILL = exports.EXAMPLE_SANDBOX_EXEC_COMMAND = exports.EXAMPLE_TUNNEL_START = exports.EXAMPLE_TUNNEL_TCP = exports.EXAMPLE_TUNNEL_TLS = exports.EXAMPLE_AGENT_TUNNEL_START = exports.EXAMPLE_AGENT_TUNNEL_STATUS = exports.EXAMPLE_AGENT_TUNNEL_REMOVE = exports.EXAMPLE_AGENT_TUNNEL_LIST = exports.EXAMPLE_TUNNEL_HTTP = exports.EXAMPLE_SANDBOX_CREATE = exports.EXAMPLE_DISTRO_CREATE = exports.EXAMPLE_ROUTE_CREATE = exports.EXAMPLE_ROUTE_LIST = exports.EXAMPLE_ROUTE_DELETE = exports.EXAMPLE_DISTRO_DELETE = exports.EXAMPLE_DISTRO_LIST = exports.EXAMPLE_SANDBOX_CP = exports.ERR_PROJECT_NO_PROJECTS = exports.TXT_LOGIN_SELECT_PROJECT = exports.TXT_COMMAND_PROJECT_CREATED = exports.TXT_COMMAND_PROJECT_LINK_NOT_FOUND = exports.TXT_COMMAND_PROJECT_LINK_NAME = exports.TXT_COMMAND_PROJECT_LINK_SELECT_PROJECT = exports.TXT_COMMAND_PROJECT_LINK_TO = exports.TXT_COMMAND_PROJECT_LINK_EXISTING_DESC = exports.TXT_COMMAND_PROJECT_LINK_EXISTING = exports.TXT_COMMAND_PROJECT_LINK_CREATE_NEW_DESC = exports.TXT_COMMAND_PROJECT_LINK_CREATE_NEW = exports.ERR_COMMAND_PROJECT_LINK_DIR_NOT_DIR = exports.TXT_COMMAND_PROJECT_LINK_GIT_REPO_INITIALIZED = exports.TXT_COMMAND_PROJECT_LINK_GIT_REPO = exports.TXT_COMMAND_PROJECT_LINK_DIR_CONFIRM = exports.TXT_COMMAND_PROJECT_LINK_DIR_LINKED = exports.ERR_COMMAND_PROJECT_LINK_DIR_CREATE = exports.OPT_COMMAND_PROJECT_LINK_TRY_NOW = exports.OPT_COMMAND_PROJECT_LINK_SET_GIT_REMOTE = exports.OPT_COMMAND_PROJECT_LINK_HAS_REMOTE = exports.OPT_COMMAND_PROJECT_LINK_DIRECTORY = exports.OPT_COMMAND_PROJECT_LINK_GIT = exports.OPT_COMMAND_PROJECT_LINK_RELINK = exports.DESC_COMMAND_PROJECT_LINK = exports.DESC_COMMAND_PROJECT_LIST = void 0;
|
|
19
|
+
exports.EXAMPLE_ARTIFACT_VERSION_DELETE = exports.EXAMPLE_ARTIFACT_VERSION_GET = exports.EXAMPLE_ARTIFACT_VERSION_LIST = exports.EXAMPLE_ARTIFACT_CREATE = exports.EXAMPLE_ARTIFACT_DELETE = exports.EXAMPLE_ARTIFACT_DOWNLOAD = exports.EXAMPLE_ARTIFACT_PUBLISH = exports.EXAMPLE_PIPELINE_RUN_RETRY = exports.EXAMPLE_PIPELINE_RUN_LIST = exports.EXAMPLE_PIPELINE_LIST = exports.EXAMPLE_PIPELINE_YML = exports.EXAMPLE_PIPELINE_GET = exports.EXAMPLE_PIPELINE_UPDATE = exports.EXAMPLE_PIPELINE_DELETE = exports.EXAMPLE_PIPELINE_CREATE = exports.EXAMPLE_PIPELINE_RUN_CANCEL = exports.EXAMPLE_PIPELINE_RUN_APPLY = exports.EXAMPLE_PIPELINE_RUN_LOGS = exports.EXAMPLE_PIPELINE_RUN_JSONL = exports.EXAMPLE_PIPELINE_RUN_STATUS = exports.EXAMPLE_PIPELINE_RUN_START = exports.EXAMPLE_SANDBOX_ENDPOINT_LIST = exports.EXAMPLE_SANDBOX_ENDPOINT_GET = exports.EXAMPLE_SANDBOX_ENDPOINT_DELETE = exports.EXAMPLE_SANDBOX_ENDPOINT_CREATE = exports.EXAMPLE_SANDBOX_SNAPSHOT_LIST = exports.EXAMPLE_SANDBOX_SNAPSHOT_GET = exports.EXAMPLE_SANDBOX_SNAPSHOT_DELETE = exports.EXAMPLE_SANDBOX_SNAPSHOT_CREATE = exports.EXAMPLE_SANDBOX_EXEC_STATUS = exports.EXAMPLE_SANDBOX_EXEC_LOGS = exports.EXAMPLE_SANDBOX_APP_STATUS = void 0;
|
|
19
20
|
const utils_1 = require("./utils");
|
|
20
21
|
exports.ERR_CANCELLED = 'Cancelled';
|
|
21
22
|
exports.ERR_REST_API_GENERAL_ERROR = 'Something went wrong';
|
|
@@ -56,7 +57,7 @@ exports.ERR_SANDBOX_EXEC_RUNTIME_NOT_FOUND = 'Sandbox exec runtime not found';
|
|
|
56
57
|
exports.ERR_RUN_PIPELINE_WRONG_PRIORITY = 'Priority has wrong value. Possible: LOW, NORMAL, HIGH';
|
|
57
58
|
exports.ERR_RUN_PIPELINE_WRONG_RUN_ID = 'Run id must be a number';
|
|
58
59
|
exports.ERR_RUN_PIPELINE_WRONG_RUN_ACTION_ID = 'Run action id must be provided';
|
|
59
|
-
exports.
|
|
60
|
+
exports.TXT_PIPELINES_NOT_FOUND = 'No pipelines found';
|
|
60
61
|
exports.ERR_PIPELINE_RUNS_NOT_FOUND = 'No runs found in this pipeline';
|
|
61
62
|
exports.ERR_RUN_PIPELINE_WRONG_DELAY = 'Delay must be a valid date format: 2016-11-18T12:38:16.000Z or 30s, 10m, 3h10m30s';
|
|
62
63
|
const ERR_RUN_PIPELINE_WRONG_ACTION = (str) => `Action id has wrong value: ${str}`;
|
|
@@ -860,8 +861,51 @@ const ERR_API_MESSAGE_REPLACER = (message, path, baseUrl, rateLimitTs) => {
|
|
|
860
861
|
return message;
|
|
861
862
|
};
|
|
862
863
|
exports.ERR_API_MESSAGE_REPLACER = ERR_API_MESSAGE_REPLACER;
|
|
864
|
+
// distro & route commands
|
|
865
|
+
exports.DESC_COMMAND_DISTRO = 'Manage distributions';
|
|
866
|
+
exports.DESC_COMMAND_DISTRO_CREATE = 'Create distribution. Required scopes: DISTRIBUTION_ADD';
|
|
867
|
+
exports.DESC_COMMAND_ROUTE_CREATE = 'Create route. Required scopes: DISTRIBUTION_ADD';
|
|
868
|
+
exports.DESC_COMMAND_DISTRO_DELETE = 'Delete distribution. Required scopes: DISTRIBUTION_MANAGE';
|
|
869
|
+
exports.DESC_COMMAND_DISTRO_LIST = 'List distributions. Required scopes: DISTRIBUTION_INFO';
|
|
870
|
+
exports.DESC_COMMAND_ROUTE_LIST = 'List routes. Required scopes: DISTRIBUTION_INFO';
|
|
871
|
+
exports.DESC_COMMAND_ROUTE_DELETE = 'Delete route. Required scopes: DISTRIBUTION_MANAGE';
|
|
872
|
+
exports.DESC_COMMAND_ROUTE = 'Manage distribution routes';
|
|
873
|
+
exports.OPT_COMMAND_DISTRO_SCOPE = 'Force distribution scope (WORKSPACE, PROJECT). By default calculated by provided options and environmental variables';
|
|
874
|
+
exports.OPT_COMMAND_DISTRO_IDENTIFIER = 'Human-readable ID of the distribution';
|
|
875
|
+
exports.OPT_COMMAND_ROUTE_ID = 'ID of the route (find via "bdy distro route ls")';
|
|
876
|
+
exports.OPT_COMMAND_ROUTE_TYPE = 'Type of the route. Allowed: PROXY, PROXY_NO_CACHE, REDIRECT, CLOAKING';
|
|
877
|
+
exports.OPT_COMMAND_ROUTE_SUBDOMAIN = 'Optional sub-name prepended to --domain (e.g. --subdomain=api --domain=example.com → api.example.com). Omit to route the zone itself. Do NOT use this to peel a label off a multi-level zone — the zone always goes whole into --domain';
|
|
878
|
+
exports.OPT_COMMAND_ROUTE_DOMAIN = 'Zone for the route — pass the WHOLE string from `bdy domain ls` (e.g. "example.com" or "my-app.example.dev"). Do NOT split a multi-level zone into subdomain+domain; the entire bought/claimed string is one zone and goes here as-is. Use --subdomain only to route a sub-name within this zone';
|
|
879
|
+
exports.OPT_COMMAND_ROUTE_PATH = 'Path of the route';
|
|
880
|
+
exports.OPT_COMMAND_ROUTE_TARGET = `Target of the route (can be used multiple times).
|
|
881
|
+
Format: "region=default,url=https://example.com,artifact=artifact:version,sandbox=sandbox:endpoint"
|
|
882
|
+
To use "," in value use \\,
|
|
883
|
+
For external url target use url (required), region (optional)
|
|
884
|
+
For artifact target use artifact (required), region (optional)
|
|
885
|
+
For sandbox target use sandbox (required), region (optional)
|
|
886
|
+
Region can be Default, NorthAmerica, Europe, Asia, Oceania, SouthAmerica, Africa, Antarctica or two letter country name
|
|
887
|
+
If no region is specified or default is used, the target is used as the fallback for all locations. Default region is mandatory`;
|
|
888
|
+
exports.OPT_COMMAND_DISTRO_NAME = 'Name of the distribution';
|
|
889
|
+
exports.ERR_COMMAND_DISTRO_NO_PROJECT = 'Project must be provided for PROJECT scope';
|
|
890
|
+
exports.TXT_COMMAND_DISTRO_CREATED = 'Distribution created';
|
|
891
|
+
exports.TXT_COMMAND_ROUTE_CREATED = 'Route created';
|
|
892
|
+
exports.ERR_COMMAND_DISTRO_SCOPE = 'Wrong scope. Allowed: WORKSPACE, PROJECT';
|
|
893
|
+
exports.ERR_COMMAND_DISTRO_NOT_FOUND = 'Distribution not found';
|
|
894
|
+
const TXT_COMMAND_DISTRO_DELETE_CONFIRM = (name) => `Are you sure you want to delete distribution '${name}'?`;
|
|
895
|
+
exports.TXT_COMMAND_DISTRO_DELETE_CONFIRM = TXT_COMMAND_DISTRO_DELETE_CONFIRM;
|
|
896
|
+
const TXT_COMMAND_ROUTE_DELETE_CONFIRM = (identifier, routeId) => `Are you sure you want to delete distribution route '${identifier}/${routeId}'?`;
|
|
897
|
+
exports.TXT_COMMAND_ROUTE_DELETE_CONFIRM = TXT_COMMAND_ROUTE_DELETE_CONFIRM;
|
|
898
|
+
exports.TXT_COMMAND_DISTRO_DELETED = 'Distribution deleted successfully';
|
|
899
|
+
exports.TXT_COMMAND_ROUTE_DELETED = 'Distribution route deleted successfully';
|
|
900
|
+
exports.TXT_COMMAND_DISTROS_NOT_FOUND = 'No distributions found';
|
|
901
|
+
exports.TXT_COMMAND_ROUTES_NOT_FOUND = 'No routes found';
|
|
902
|
+
exports.ERR_COMMAND_ROUTE_TYPE = 'Wrong route type. Allowed: PROXY, REDIRECT, CLOAKING, PROXY_NO_CACHE';
|
|
903
|
+
exports.ERR_COMMAND_ROUTE_NO_TARGET = 'At least one target must be provided';
|
|
904
|
+
const ERR_WRONG_ROUTE_TARGET = (v, msg) => `Target has wrong format: ${v}. ${msg}`;
|
|
905
|
+
exports.ERR_WRONG_ROUTE_TARGET = ERR_WRONG_ROUTE_TARGET;
|
|
906
|
+
exports.ERR_ROUTE_NO_DEFAULT = 'Target in Default region is mandatory';
|
|
863
907
|
// domain commands
|
|
864
|
-
exports.DESC_COMMAND_DOMAIN = 'Manage domains';
|
|
908
|
+
exports.DESC_COMMAND_DOMAIN = 'Manage zones (called "domains" in Buddy). A zone can be used in distribution routes. Zones can be apex (example.com) or multi-level (my-app.example.dev) — the whole string is one zone';
|
|
865
909
|
exports.DESC_COMMAND_DOMAIN_BUY = 'Buy domain';
|
|
866
910
|
exports.DESC_COMMAND_DOMAIN_SEARCH = 'Search domain';
|
|
867
911
|
exports.DESC_COMMAND_DOMAIN_LIST = 'List domains';
|
|
@@ -999,6 +1043,42 @@ EXAMPLES:
|
|
|
999
1043
|
bdy sb cp /path/to/dir sandbox-identifier:/path/to/dir
|
|
1000
1044
|
### copy local directory into sandbox directory:
|
|
1001
1045
|
bdy sb cp /path/to/dir sandbox-identifier:/path/to/dir/`;
|
|
1046
|
+
exports.EXAMPLE_DISTRO_LIST = `
|
|
1047
|
+
### list distributions
|
|
1048
|
+
bdy distro ls`;
|
|
1049
|
+
exports.EXAMPLE_DISTRO_DELETE = `
|
|
1050
|
+
### delete distribution
|
|
1051
|
+
bdy distro rm distro-identifier
|
|
1052
|
+
### delete distribution and automatically confirm deletion:
|
|
1053
|
+
bdy distro rm -f distro-identifier`;
|
|
1054
|
+
exports.EXAMPLE_ROUTE_DELETE = `
|
|
1055
|
+
### delete route (find by "bdy distro route ls distro-identifier")
|
|
1056
|
+
bdy distro route rm distro-identifier route-id`;
|
|
1057
|
+
exports.EXAMPLE_ROUTE_LIST = `
|
|
1058
|
+
### list routes
|
|
1059
|
+
bdy distro route ls distro-identifier`;
|
|
1060
|
+
exports.EXAMPLE_ROUTE_CREATE = `
|
|
1061
|
+
### --domain is the WHOLE zone string from \`bdy domain ls\` (apex like "example.com" or multi-level like "my-app.example.dev").
|
|
1062
|
+
### --subdomain is OPTIONAL and only prepends a NEW sub-name to that zone. Never split a multi-level zone — it goes whole into --domain.
|
|
1063
|
+
### route an apex zone you bought ("example.com") to an artifact
|
|
1064
|
+
bdy distro route create distro-identifier --domain="example.com" --target "artifact=artifact-identifier:version"
|
|
1065
|
+
### route a multi-level zone you claimed ("my-app.example.dev") to an artifact — pass it WHOLE, do NOT split
|
|
1066
|
+
bdy distro route create distro-identifier --domain="my-app.example.dev" --target "artifact=artifact-identifier:version"
|
|
1067
|
+
### route a NEW sub-name within a zone ("api.example.com") — subdomain is "api", zone is "example.com"
|
|
1068
|
+
bdy distro route create distro-identifier --subdomain="api" --domain="example.com" --target "url=https://backend.internal"
|
|
1069
|
+
### route to a sandbox endpoint (no zone, distro's default domain is used)
|
|
1070
|
+
bdy distro route create distro-identifier --subdomain="sandbox" --target "sandbox=sandbox-identifier:endpoint-name"
|
|
1071
|
+
### route to an artifact in two locations (default + Europe override)
|
|
1072
|
+
bdy distro route create distro-identifier --subdomain="artifact" --target "artifact=artifact-identifier:version" --target "region=Europe,artifact=artifact-identifier:version2"
|
|
1073
|
+
### route only for js files under a sub-name
|
|
1074
|
+
bdy distro route create distro-identifier --path="*.js" --subdomain="cdn" --target "artifact=artifact-identifier:version"
|
|
1075
|
+
### create redirect route
|
|
1076
|
+
bdy distro route create distro-identifier --type="REDIRECT" --path="/my-url" --target "url=https://example.com/page"`;
|
|
1077
|
+
exports.EXAMPLE_DISTRO_CREATE = `
|
|
1078
|
+
### create distribution with name
|
|
1079
|
+
bdy distro create -n name
|
|
1080
|
+
### create distribution in project with identifier
|
|
1081
|
+
bdy distro create -i id --project project`;
|
|
1002
1082
|
exports.EXAMPLE_SANDBOX_CREATE = `
|
|
1003
1083
|
EXAMPLES:
|
|
1004
1084
|
### create ubuntu 22.04 sandbox with name and wait for start:
|
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ROUTE_REGION = exports.ROUTE_TARGET_TYPE = exports.ROUTE_TYPE = exports.DISTRO_SCOPE = void 0;
|
|
4
|
+
var DISTRO_SCOPE;
|
|
5
|
+
(function (DISTRO_SCOPE) {
|
|
6
|
+
DISTRO_SCOPE["WORKSPACE"] = "WORKSPACE";
|
|
7
|
+
DISTRO_SCOPE["PROJECT"] = "PROJECT";
|
|
8
|
+
})(DISTRO_SCOPE || (exports.DISTRO_SCOPE = DISTRO_SCOPE = {}));
|
|
9
|
+
var ROUTE_TYPE;
|
|
10
|
+
(function (ROUTE_TYPE) {
|
|
11
|
+
ROUTE_TYPE["PROXY"] = "PROXY";
|
|
12
|
+
ROUTE_TYPE["REDIRECT"] = "REDIRECT";
|
|
13
|
+
ROUTE_TYPE["CLOAKING"] = "CLOAKING";
|
|
14
|
+
ROUTE_TYPE["PROXY_NO_CACHE"] = "PROXY_NO_CACHE";
|
|
15
|
+
})(ROUTE_TYPE || (exports.ROUTE_TYPE = ROUTE_TYPE = {}));
|
|
16
|
+
var ROUTE_TARGET_TYPE;
|
|
17
|
+
(function (ROUTE_TARGET_TYPE) {
|
|
18
|
+
ROUTE_TARGET_TYPE["EXTERNAL"] = "EXTERNAL";
|
|
19
|
+
ROUTE_TARGET_TYPE["ARTIFACT"] = "ARTIFACT";
|
|
20
|
+
ROUTE_TARGET_TYPE["SANDBOX"] = "SANDBOX";
|
|
21
|
+
})(ROUTE_TARGET_TYPE || (exports.ROUTE_TARGET_TYPE = ROUTE_TARGET_TYPE = {}));
|
|
22
|
+
var ROUTE_REGION;
|
|
23
|
+
(function (ROUTE_REGION) {
|
|
24
|
+
ROUTE_REGION["Default"] = "Default";
|
|
25
|
+
ROUTE_REGION["NorthAmerica"] = "NorthAmerica";
|
|
26
|
+
ROUTE_REGION["Europe"] = "Europe";
|
|
27
|
+
ROUTE_REGION["Asia"] = "Asia";
|
|
28
|
+
ROUTE_REGION["Oceania"] = "Oceania";
|
|
29
|
+
ROUTE_REGION["SouthAmerica"] = "SouthAmerica";
|
|
30
|
+
ROUTE_REGION["Africa"] = "Africa";
|
|
31
|
+
ROUTE_REGION["Antarctica"] = "Antarctica";
|
|
32
|
+
ROUTE_REGION["Afghanistan"] = "AF";
|
|
33
|
+
ROUTE_REGION["Albania"] = "AL";
|
|
34
|
+
ROUTE_REGION["Algeria"] = "DZ";
|
|
35
|
+
ROUTE_REGION["Andorra"] = "AD";
|
|
36
|
+
ROUTE_REGION["Angola"] = "AO";
|
|
37
|
+
ROUTE_REGION["AntiguaAndBarbuda"] = "AG";
|
|
38
|
+
ROUTE_REGION["Argentina"] = "AR";
|
|
39
|
+
ROUTE_REGION["Armenia"] = "AM";
|
|
40
|
+
ROUTE_REGION["Australia"] = "AU";
|
|
41
|
+
ROUTE_REGION["Austria"] = "AT";
|
|
42
|
+
ROUTE_REGION["Azerbaijan"] = "AZ";
|
|
43
|
+
ROUTE_REGION["Bahamas"] = "BS";
|
|
44
|
+
ROUTE_REGION["Bahrain"] = "BH";
|
|
45
|
+
ROUTE_REGION["Bangladesh"] = "BD";
|
|
46
|
+
ROUTE_REGION["Barbados"] = "BB";
|
|
47
|
+
ROUTE_REGION["Belarus"] = "BY";
|
|
48
|
+
ROUTE_REGION["Belgium"] = "BE";
|
|
49
|
+
ROUTE_REGION["Belize"] = "BZ";
|
|
50
|
+
ROUTE_REGION["Benin"] = "BJ";
|
|
51
|
+
ROUTE_REGION["Bermuda"] = "BM";
|
|
52
|
+
ROUTE_REGION["Bhutan"] = "BT";
|
|
53
|
+
ROUTE_REGION["Bolivia"] = "BO";
|
|
54
|
+
ROUTE_REGION["BosniaAndHerzegovina"] = "BA";
|
|
55
|
+
ROUTE_REGION["Botswana"] = "BW";
|
|
56
|
+
ROUTE_REGION["Brazil"] = "BR";
|
|
57
|
+
ROUTE_REGION["Brunei"] = "BN";
|
|
58
|
+
ROUTE_REGION["Bulgaria"] = "BG";
|
|
59
|
+
ROUTE_REGION["BurkinaFaso"] = "BF";
|
|
60
|
+
ROUTE_REGION["Burundi"] = "BI";
|
|
61
|
+
ROUTE_REGION["CaboVerde"] = "CV";
|
|
62
|
+
ROUTE_REGION["Cambodia"] = "KH";
|
|
63
|
+
ROUTE_REGION["Cameroon"] = "CM";
|
|
64
|
+
ROUTE_REGION["Canada"] = "CA";
|
|
65
|
+
ROUTE_REGION["CaymanIslands"] = "KY";
|
|
66
|
+
ROUTE_REGION["CentralAfricanRepublic"] = "CF";
|
|
67
|
+
ROUTE_REGION["Chad"] = "TD";
|
|
68
|
+
ROUTE_REGION["Chile"] = "CL";
|
|
69
|
+
ROUTE_REGION["China"] = "CN";
|
|
70
|
+
ROUTE_REGION["ChristmasIsland"] = "CX";
|
|
71
|
+
ROUTE_REGION["Colombia"] = "CO";
|
|
72
|
+
ROUTE_REGION["Comoros"] = "KM";
|
|
73
|
+
ROUTE_REGION["DemocraticRepublicCongo"] = "CD";
|
|
74
|
+
ROUTE_REGION["Congo"] = "CG";
|
|
75
|
+
ROUTE_REGION["CostaRica"] = "CR";
|
|
76
|
+
ROUTE_REGION["Croatia"] = "HR";
|
|
77
|
+
ROUTE_REGION["Cuba"] = "CU";
|
|
78
|
+
ROUTE_REGION["Czechia"] = "CZ";
|
|
79
|
+
ROUTE_REGION["CoteIvoire"] = "CI";
|
|
80
|
+
ROUTE_REGION["Denmark"] = "DK";
|
|
81
|
+
ROUTE_REGION["Djibouti"] = "DJ";
|
|
82
|
+
ROUTE_REGION["Dominica"] = "DM";
|
|
83
|
+
ROUTE_REGION["DominicanRepublic"] = "DO";
|
|
84
|
+
ROUTE_REGION["Ecuador"] = "EC";
|
|
85
|
+
ROUTE_REGION["Egypt"] = "EG";
|
|
86
|
+
ROUTE_REGION["ElSalvador"] = "SV";
|
|
87
|
+
ROUTE_REGION["EquatorialGuinea"] = "GQ";
|
|
88
|
+
ROUTE_REGION["Eritrea"] = "ER";
|
|
89
|
+
ROUTE_REGION["Estonia"] = "EE";
|
|
90
|
+
ROUTE_REGION["Eswatini"] = "SZ";
|
|
91
|
+
ROUTE_REGION["Ethiopia"] = "ET";
|
|
92
|
+
ROUTE_REGION["Fiji"] = "FJ";
|
|
93
|
+
ROUTE_REGION["Finland"] = "FI";
|
|
94
|
+
ROUTE_REGION["France"] = "FR";
|
|
95
|
+
ROUTE_REGION["Gabon"] = "GA";
|
|
96
|
+
ROUTE_REGION["Gambia"] = "GM";
|
|
97
|
+
ROUTE_REGION["Georgia"] = "GE";
|
|
98
|
+
ROUTE_REGION["Germany"] = "DE";
|
|
99
|
+
ROUTE_REGION["Ghana"] = "GH";
|
|
100
|
+
ROUTE_REGION["Greece"] = "GR";
|
|
101
|
+
ROUTE_REGION["Greenland"] = "GL";
|
|
102
|
+
ROUTE_REGION["Grenada"] = "GD";
|
|
103
|
+
ROUTE_REGION["Guatemala"] = "GT";
|
|
104
|
+
ROUTE_REGION["Guinea"] = "GN";
|
|
105
|
+
ROUTE_REGION["GuineaBissau"] = "GW";
|
|
106
|
+
ROUTE_REGION["Guyana"] = "GY";
|
|
107
|
+
ROUTE_REGION["Haiti"] = "HT";
|
|
108
|
+
ROUTE_REGION["HolySee"] = "VA";
|
|
109
|
+
ROUTE_REGION["Honduras"] = "HN";
|
|
110
|
+
ROUTE_REGION["Hungary"] = "HU";
|
|
111
|
+
ROUTE_REGION["Iceland"] = "IS";
|
|
112
|
+
ROUTE_REGION["India"] = "IN";
|
|
113
|
+
ROUTE_REGION["Indonesia"] = "ID";
|
|
114
|
+
ROUTE_REGION["Iran"] = "IR";
|
|
115
|
+
ROUTE_REGION["Iraq"] = "IQ";
|
|
116
|
+
ROUTE_REGION["Ireland"] = "IE";
|
|
117
|
+
ROUTE_REGION["Israel"] = "IL";
|
|
118
|
+
ROUTE_REGION["Italy"] = "IT";
|
|
119
|
+
ROUTE_REGION["Jamaica"] = "JM";
|
|
120
|
+
ROUTE_REGION["Japan"] = "JP";
|
|
121
|
+
ROUTE_REGION["Jordan"] = "JO";
|
|
122
|
+
ROUTE_REGION["Kazakhstan"] = "KZ";
|
|
123
|
+
ROUTE_REGION["Kenya"] = "KE";
|
|
124
|
+
ROUTE_REGION["Kiribati"] = "KI";
|
|
125
|
+
ROUTE_REGION["NorthKorea"] = "KP";
|
|
126
|
+
ROUTE_REGION["SouthKorea"] = "KR";
|
|
127
|
+
ROUTE_REGION["Kuwait"] = "KW";
|
|
128
|
+
ROUTE_REGION["Kyrgyzstan"] = "KG";
|
|
129
|
+
ROUTE_REGION["Laos"] = "LA";
|
|
130
|
+
ROUTE_REGION["Latvia"] = "LV";
|
|
131
|
+
ROUTE_REGION["Lebanon"] = "LB";
|
|
132
|
+
ROUTE_REGION["Lesotho"] = "LS";
|
|
133
|
+
ROUTE_REGION["Liberia"] = "LR";
|
|
134
|
+
ROUTE_REGION["Libya"] = "LY";
|
|
135
|
+
ROUTE_REGION["Liechtenstein"] = "LI";
|
|
136
|
+
ROUTE_REGION["Lithuania"] = "LT";
|
|
137
|
+
ROUTE_REGION["Luxembourg"] = "LU";
|
|
138
|
+
ROUTE_REGION["Macao"] = "MO";
|
|
139
|
+
ROUTE_REGION["Madagascar"] = "MG";
|
|
140
|
+
ROUTE_REGION["Malawi"] = "MW";
|
|
141
|
+
ROUTE_REGION["Malaysia"] = "MY";
|
|
142
|
+
ROUTE_REGION["Maldives"] = "MV";
|
|
143
|
+
ROUTE_REGION["Mali"] = "ML";
|
|
144
|
+
ROUTE_REGION["Malta"] = "MT";
|
|
145
|
+
ROUTE_REGION["Mauritania"] = "MR";
|
|
146
|
+
ROUTE_REGION["Mauritius"] = "MU";
|
|
147
|
+
ROUTE_REGION["Mexico"] = "MX";
|
|
148
|
+
ROUTE_REGION["Micronesia"] = "FM";
|
|
149
|
+
ROUTE_REGION["Moldova"] = "MD";
|
|
150
|
+
ROUTE_REGION["Monaco"] = "MC";
|
|
151
|
+
ROUTE_REGION["Mongolia"] = "MN";
|
|
152
|
+
ROUTE_REGION["Montenegro"] = "ME";
|
|
153
|
+
ROUTE_REGION["Montserrat"] = "MS";
|
|
154
|
+
ROUTE_REGION["Morocco"] = "MA";
|
|
155
|
+
ROUTE_REGION["Mozambique"] = "MZ";
|
|
156
|
+
ROUTE_REGION["Myanmar"] = "MM";
|
|
157
|
+
ROUTE_REGION["Namibia"] = "NA";
|
|
158
|
+
ROUTE_REGION["Nauru"] = "NR";
|
|
159
|
+
ROUTE_REGION["Nepal"] = "NP";
|
|
160
|
+
ROUTE_REGION["Netherlands"] = "NL";
|
|
161
|
+
ROUTE_REGION["NewZealand"] = "NZ";
|
|
162
|
+
ROUTE_REGION["Nicaragua"] = "NI";
|
|
163
|
+
ROUTE_REGION["Niger"] = "NE";
|
|
164
|
+
ROUTE_REGION["Nigeria"] = "NG";
|
|
165
|
+
ROUTE_REGION["Norway"] = "NO";
|
|
166
|
+
ROUTE_REGION["Oman"] = "OM";
|
|
167
|
+
ROUTE_REGION["Pakistan"] = "PK";
|
|
168
|
+
ROUTE_REGION["Palestine"] = "PS";
|
|
169
|
+
ROUTE_REGION["Panama"] = "PA";
|
|
170
|
+
ROUTE_REGION["PapuaNewGuinea"] = "PG";
|
|
171
|
+
ROUTE_REGION["Paraguay"] = "PY";
|
|
172
|
+
ROUTE_REGION["Peru"] = "PE";
|
|
173
|
+
ROUTE_REGION["Philippines"] = "PH";
|
|
174
|
+
ROUTE_REGION["Poland"] = "PL";
|
|
175
|
+
ROUTE_REGION["Portugal"] = "PT";
|
|
176
|
+
ROUTE_REGION["PuertoRico"] = "PR";
|
|
177
|
+
ROUTE_REGION["Qatar"] = "QA";
|
|
178
|
+
ROUTE_REGION["NorthMacedonia"] = "MK";
|
|
179
|
+
ROUTE_REGION["Romania"] = "RO";
|
|
180
|
+
ROUTE_REGION["RussianFederation"] = "RU";
|
|
181
|
+
ROUTE_REGION["Rwanda"] = "RW";
|
|
182
|
+
ROUTE_REGION["SaintHelena"] = "SH";
|
|
183
|
+
ROUTE_REGION["SaintKittsAndNevis"] = "KN";
|
|
184
|
+
ROUTE_REGION["SaintLucia"] = "LC";
|
|
185
|
+
ROUTE_REGION["SaintVincentAndGrenadines"] = "VC";
|
|
186
|
+
ROUTE_REGION["Samoa"] = "WS";
|
|
187
|
+
ROUTE_REGION["SanMarino"] = "SM";
|
|
188
|
+
ROUTE_REGION["SaoTomeAndPrincipe"] = "ST";
|
|
189
|
+
ROUTE_REGION["SaudiArabia"] = "SA";
|
|
190
|
+
ROUTE_REGION["Senegal"] = "SN";
|
|
191
|
+
ROUTE_REGION["Serbia"] = "RS";
|
|
192
|
+
ROUTE_REGION["Seychelles"] = "SC";
|
|
193
|
+
ROUTE_REGION["SierraLeone"] = "SL";
|
|
194
|
+
ROUTE_REGION["Singapore"] = "SG";
|
|
195
|
+
ROUTE_REGION["Slovakia"] = "SK";
|
|
196
|
+
ROUTE_REGION["Slovenia"] = "SI";
|
|
197
|
+
ROUTE_REGION["SolomonIslands"] = "SB";
|
|
198
|
+
ROUTE_REGION["Somalia"] = "SO";
|
|
199
|
+
ROUTE_REGION["SouthAfrica"] = "ZA";
|
|
200
|
+
ROUTE_REGION["SouthSudan"] = "SS";
|
|
201
|
+
ROUTE_REGION["Spain"] = "ES";
|
|
202
|
+
ROUTE_REGION["SriLanka"] = "LK";
|
|
203
|
+
ROUTE_REGION["Sudan"] = "SD";
|
|
204
|
+
ROUTE_REGION["Suriname"] = "SR";
|
|
205
|
+
ROUTE_REGION["Sweden"] = "SE";
|
|
206
|
+
ROUTE_REGION["Switzerland"] = "CH";
|
|
207
|
+
ROUTE_REGION["SyrianArabRepublic"] = "SY";
|
|
208
|
+
ROUTE_REGION["Taiwan"] = "TW";
|
|
209
|
+
ROUTE_REGION["Tajikistan"] = "TJ";
|
|
210
|
+
ROUTE_REGION["Tanzania"] = "TZ";
|
|
211
|
+
ROUTE_REGION["Thailand"] = "TH";
|
|
212
|
+
ROUTE_REGION["TimorLeste"] = "TL";
|
|
213
|
+
ROUTE_REGION["Togo"] = "TG";
|
|
214
|
+
ROUTE_REGION["Tonga"] = "TO";
|
|
215
|
+
ROUTE_REGION["TrinidadAndTobago"] = "TT";
|
|
216
|
+
ROUTE_REGION["Tunisia"] = "TN";
|
|
217
|
+
ROUTE_REGION["Turkey"] = "TR";
|
|
218
|
+
ROUTE_REGION["Turkmenistan"] = "TM";
|
|
219
|
+
ROUTE_REGION["Uganda"] = "UG";
|
|
220
|
+
ROUTE_REGION["Ukraine"] = "UA";
|
|
221
|
+
ROUTE_REGION["UnitedArabEmirates"] = "AE";
|
|
222
|
+
ROUTE_REGION["UnitedKingdom"] = "GB";
|
|
223
|
+
ROUTE_REGION["UnitedStatesOfAmerica"] = "US";
|
|
224
|
+
ROUTE_REGION["Uruguay"] = "UY";
|
|
225
|
+
ROUTE_REGION["Uzbekistan"] = "UZ";
|
|
226
|
+
ROUTE_REGION["Vanuatu"] = "VU";
|
|
227
|
+
ROUTE_REGION["Venezuela"] = "VE";
|
|
228
|
+
ROUTE_REGION["VietNam"] = "VN";
|
|
229
|
+
ROUTE_REGION["Yemen"] = "YE";
|
|
230
|
+
ROUTE_REGION["Zambia"] = "ZM";
|
|
231
|
+
ROUTE_REGION["Zimbabwe"] = "ZW";
|
|
232
|
+
})(ROUTE_REGION || (exports.ROUTE_REGION = ROUTE_REGION = {}));
|