All files / lib/src/sdk constants.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 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99  1x 1x   1x 1x 1x 1x 1x     1x 1x 1x 1x 1x 1x 1x 1x     1x 1x 1x 1x 1x 1x 1x 1x 1x     1x 1x 1x   1x                                                   1x             1x                     1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x     1x     1x    
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SubtypeMap = exports.KeywordsMap = exports.CacheKey = exports.OPERATOR_MAP = exports.PREDEFINED_VALUE_MAP = exports.PREDEFINED_PROPERTY_MAP = exports.VERSION_ENUM = exports.EXECUTION_STATUS_ENUM = exports.EXECUTION_TYPE_ENUM = exports.PRIORITY_ENUM = void 0;
var PRIORITY_ENUM;
(function (PRIORITY_ENUM) {
    PRIORITY_ENUM[PRIORITY_ENUM["P0"] = 0] = "P0";
    PRIORITY_ENUM[PRIORITY_ENUM["P1"] = 1] = "P1";
    PRIORITY_ENUM[PRIORITY_ENUM["P2"] = 2] = "P2";
    PRIORITY_ENUM[PRIORITY_ENUM["P3"] = 3] = "P3";
})(PRIORITY_ENUM = exports.PRIORITY_ENUM || (exports.PRIORITY_ENUM = {}));
var EXECUTION_TYPE_ENUM;
(function (EXECUTION_TYPE_ENUM) {
    EXECUTION_TYPE_ENUM[EXECUTION_TYPE_ENUM["Manual"] = 0] = "Manual";
    EXECUTION_TYPE_ENUM[EXECUTION_TYPE_ENUM["Automated"] = 1] = "Automated";
    EXECUTION_TYPE_ENUM[EXECUTION_TYPE_ENUM["Automatable"] = 2] = "Automatable";
    EXECUTION_TYPE_ENUM[EXECUTION_TYPE_ENUM["NotAutomatable"] = 3] = "NotAutomatable";
    EXECUTION_TYPE_ENUM[EXECUTION_TYPE_ENUM["ReadyForAutomation"] = 4] = "ReadyForAutomation";
    EXECUTION_TYPE_ENUM[EXECUTION_TYPE_ENUM["AutomationExpired"] = 5] = "AutomationExpired";
    EXECUTION_TYPE_ENUM[EXECUTION_TYPE_ENUM["AutomationSuspended"] = 6] = "AutomationSuspended";
})(EXECUTION_TYPE_ENUM = exports.EXECUTION_TYPE_ENUM || (exports.EXECUTION_TYPE_ENUM = {}));
var EXECUTION_STATUS_ENUM;
(function (EXECUTION_STATUS_ENUM) {
    EXECUTION_STATUS_ENUM["Passed"] = "p";
    EXECUTION_STATUS_ENUM["Failed"] = "f";
    EXECUTION_STATUS_ENUM["Blocked"] = "b";
    EXECUTION_STATUS_ENUM["Skipped"] = "s";
    EXECUTION_STATUS_ENUM["NotApplicable"] = "na";
    EXECUTION_STATUS_ENUM["Warning"] = "w";
    EXECUTION_STATUS_ENUM["Crashed"] = "c";
    EXECUTION_STATUS_ENUM["NotRun"] = "n";
})(EXECUTION_STATUS_ENUM = exports.EXECUTION_STATUS_ENUM || (exports.EXECUTION_STATUS_ENUM = {}));
var VERSION_ENUM;
(function (VERSION_ENUM) {
    VERSION_ENUM["Active"] = "active";
    VERSION_ENUM["Last"] = "last";
})(VERSION_ENUM = exports.VERSION_ENUM || (exports.VERSION_ENUM = {}));
exports.PREDEFINED_PROPERTY_MAP = {
    project: 'project_id',
    test_plan: 'test_plan_id',
    case_id: 'external_id',
    case_name: 'case_name',
    suite: 'suite_id',
    suite_name: 'suite_name',
    summary: 'summary',
    preconditions: 'preconditions',
    test_step: 'step',
    expected_result: 'expected_result',
    text: 'text',
    priority: 'priority',
    execution_type: 'execution_type',
    last_execution_status: 'last_status',
    execution_status: 'status',
    tested_by: 'tester_id',
    version: 'version',
    version_number: 'number',
    created_by: 'created_by_id',
    date_created: 'date_created',
    updated_by: 'last_updated_by_id',
    last_updated: 'last_updated',
    document_id: 'document_id',
    run: 'build_id',
};
exports.PREDEFINED_VALUE_MAP = {
    priority: PRIORITY_ENUM,
    execution_type: EXECUTION_TYPE_ENUM,
    last_execution_status: EXECUTION_STATUS_ENUM,
    execution_status: EXECUTION_STATUS_ENUM,
    version: VERSION_ENUM,
};
exports.OPERATOR_MAP = {
    '=': 'eq',
    in: 'in',
    not: 'not',
    like: 'like',
    '<': 'lt',
    '<=': 'lte',
    '>': 'gt',
    '>=': 'gte',
};
var CacheKey;
(function (CacheKey) {
    CacheKey["GLOBAL_DATA"] = "GLOBAL_DATA";
    CacheKey["PROJECTS"] = "PROJECTS";
    CacheKey["PROJECT"] = "PROJECT";
    CacheKey["PROJECT_TREE"] = "PROJECT_TREE";
    CacheKey["SECTION"] = "SECTION";
    CacheKey["SUBTYPE"] = "SUBTYPE";
    CacheKey["KEYWORDS"] = "KEYWORDS";
    CacheKey["TEST_PLAN"] = "TEST_PLAN";
    CacheKey["SUITES"] = "SUITES";
    CacheKey["SUITE_TREE"] = "SUITE_TREE";
})(CacheKey = exports.CacheKey || (exports.CacheKey = {}));
var KeywordsMap;
(function (KeywordsMap) {
})(KeywordsMap = exports.KeywordsMap || (exports.KeywordsMap = {}));
var SubtypeMap;
(function (SubtypeMap) {
})(SubtypeMap = exports.SubtypeMap || (exports.SubtypeMap = {}));