testit-js-commons 5.0.9-TMS-5.8 → 5.1.0

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.
Files changed (82) hide show
  1. package/lib/adapters-api/dist/ApiClient.js +6 -5
  2. package/lib/adapters-api/dist/api/AttachmentsApi.js +5 -5
  3. package/lib/adapters-api/dist/api/AutoTestsApi.js +11 -11
  4. package/lib/adapters-api/dist/api/ConfigurationsApi.js +1 -1
  5. package/lib/adapters-api/dist/api/CustomAttributesApi.js +201 -0
  6. package/lib/adapters-api/dist/api/ParametersApi.js +3 -3
  7. package/lib/adapters-api/dist/api/ProjectAttributesApi.js +6 -6
  8. package/lib/adapters-api/dist/api/ProjectSectionsApi.js +1 -1
  9. package/lib/adapters-api/dist/api/ProjectWorkItemsApi.js +1 -1
  10. package/lib/adapters-api/dist/api/ProjectsApi.js +4 -4
  11. package/lib/adapters-api/dist/api/SectionsApi.js +2 -2
  12. package/lib/adapters-api/dist/api/TestResultsApi.js +3 -3
  13. package/lib/adapters-api/dist/api/TestRunsApi.js +8 -8
  14. package/lib/adapters-api/dist/api/WorkItemsApi.js +3 -3
  15. package/lib/adapters-api/dist/api/WorkflowsApi.js +1 -1
  16. package/lib/adapters-api/dist/index.js +80 -3
  17. package/lib/adapters-api/dist/model/AttachmentPutModelAutoTestStepResultsModel.js +1 -1
  18. package/lib/adapters-api/dist/model/AutoTestApiResult.js +15 -0
  19. package/lib/adapters-api/dist/model/AutoTestCreateApiModel.js +15 -0
  20. package/lib/adapters-api/dist/model/AutoTestStepResult.js +1 -1
  21. package/lib/adapters-api/dist/model/AutoTestStepResultUpdateRequest.js +1 -1
  22. package/lib/adapters-api/dist/model/AutoTestUpdateApiModel.js +30 -4
  23. package/lib/adapters-api/dist/model/CreateEmptyTestRunApiModel.js +2 -2
  24. package/lib/adapters-api/dist/model/CustomAttributeApiResult.js +56 -6
  25. package/lib/adapters-api/dist/model/{CustomAttributeGetModel.js → CustomAttributeModel.js} +89 -39
  26. package/lib/adapters-api/dist/model/CustomAttributeOptionPostApiModel.js +98 -0
  27. package/lib/adapters-api/dist/model/CustomAttributeOptionUpdateApiModel.js +124 -0
  28. package/lib/adapters-api/dist/model/CustomAttributePutModel.js +1 -1
  29. package/lib/adapters-api/dist/model/CustomAttributeSearchApiModel.js +137 -0
  30. package/lib/adapters-api/dist/model/CustomAttributeSearchApiResult.js +281 -0
  31. package/lib/adapters-api/dist/model/GlobalCustomAttributePostApiModel.js +141 -0
  32. package/lib/adapters-api/dist/model/GlobalCustomAttributeUpdateApiModel.js +129 -0
  33. package/lib/adapters-api/dist/model/LabelApiModel.js +4 -15
  34. package/lib/adapters-api/dist/model/LayerApiModel.js +102 -0
  35. package/lib/adapters-api/dist/model/LayerApiResult.js +102 -0
  36. package/lib/adapters-api/dist/model/LayerSource.js +61 -0
  37. package/lib/adapters-api/dist/model/ProjectShortestApiResult.js +138 -0
  38. package/lib/adapters-api/dist/model/ProjectsFilterModel.js +13 -13
  39. package/lib/adapters-api/dist/model/TestResultResponse.js +18 -4
  40. package/lib/adapters-api/dist/model/TestResultShortResponse.js +15 -4
  41. package/lib/adapters-api/dist/model/TestResultsFilterApiModel.js +14 -0
  42. package/lib/adapters-api/dist/model/TestRunApiResult.js +45 -4
  43. package/lib/adapters-api/dist/model/UpdateEmptyTestRunApiModel.js +1 -1
  44. package/lib/adapters-api/index.d.ts +758 -204
  45. package/lib/common/index.d.ts +1 -0
  46. package/lib/common/index.js +1 -0
  47. package/lib/common/test-layers.d.ts +11 -0
  48. package/lib/common/test-layers.js +13 -0
  49. package/lib/common/types/common.type.d.ts +6 -0
  50. package/lib/common/utils/index.d.ts +1 -0
  51. package/lib/common/utils/index.js +1 -0
  52. package/lib/common/utils/log-sanitize.util.d.ts +12 -0
  53. package/lib/common/utils/log-sanitize.util.js +112 -0
  54. package/lib/common/utils/log-sanitize.util.test.d.ts +1 -0
  55. package/lib/common/utils/log-sanitize.util.test.js +55 -0
  56. package/lib/common/utils/tms-load-test-run-debug.d.ts +2 -0
  57. package/lib/common/utils/tms-load-test-run-debug.js +6 -0
  58. package/lib/logger/index.d.ts +1 -1
  59. package/lib/logger/index.js +19 -21
  60. package/lib/services/attachments/attachments.service.js +2 -14
  61. package/lib/services/autotests/autotests.converter.d.ts +6 -2
  62. package/lib/services/autotests/autotests.converter.js +41 -16
  63. package/lib/services/autotests/autotests.converter.test.d.ts +1 -0
  64. package/lib/services/autotests/autotests.converter.test.js +39 -0
  65. package/lib/services/autotests/autotests.service.js +4 -5
  66. package/lib/services/autotests/autotests.type.d.ts +2 -0
  67. package/lib/services/syncstorage/syncstorage.runner.js +6 -5
  68. package/lib/services/syncstorage/syncstorage.runner.test.js +16 -0
  69. package/lib/services/testruns/testruns.converter.d.ts +5 -0
  70. package/lib/services/testruns/testruns.converter.js +18 -1
  71. package/lib/services/testruns/testruns.converter.test.js +24 -0
  72. package/lib/services/testruns/testruns.handler.d.ts +2 -2
  73. package/lib/services/testruns/testruns.handler.js +12 -2
  74. package/lib/services/testruns/testruns.service.d.ts +3 -1
  75. package/lib/services/testruns/testruns.service.js +33 -18
  76. package/lib/services/testruns/testruns.service.test.js +0 -43
  77. package/lib/services/testruns/testruns.type.d.ts +3 -1
  78. package/lib/strategy/base.strategy.d.ts +1 -0
  79. package/lib/strategy/base.strategy.js +35 -12
  80. package/lib/strategy/strategy.type.d.ts +2 -0
  81. package/lib/sync-storage/dist/ApiClient.js +3 -0
  82. package/package.json +1 -1
@@ -0,0 +1,102 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
+ var _LayerSource = _interopRequireDefault(require("./LayerSource"));
9
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
10
+ /**
11
+ * API
12
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
13
+ *
14
+ * The version of the OpenAPI document: adapters
15
+ *
16
+ *
17
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
18
+ * https://openapi-generator.tech
19
+ * Do not edit the class manually.
20
+ *
21
+ */
22
+
23
+ /**
24
+ * The LayerApiModel model module.
25
+ * @module model/LayerApiModel
26
+ * @version 1.0.0
27
+ */
28
+ class LayerApiModel {
29
+ /**
30
+ * Constructs a new <code>LayerApiModel</code>.
31
+ * Model of auto test layer for use in requests.
32
+ * @alias module:model/LayerApiModel
33
+ * @param name {String} Name of the test pyramid layer. Available layers: * Unit * Component * API * UI * E2E * Contract
34
+ * @param source {module:model/LayerSource} Source of the test pyramid layer.
35
+ */
36
+ constructor(name, source) {
37
+ LayerApiModel.initialize(this, name, source);
38
+ }
39
+
40
+ /**
41
+ * Initializes the fields of this object.
42
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
43
+ * Only for internal use.
44
+ */
45
+ static initialize(obj, name, source) {
46
+ obj['name'] = name;
47
+ obj['source'] = source;
48
+ }
49
+
50
+ /**
51
+ * Constructs a <code>LayerApiModel</code> from a plain JavaScript object, optionally creating a new instance.
52
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
53
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
54
+ * @param {module:model/LayerApiModel} obj Optional instance to populate.
55
+ * @return {module:model/LayerApiModel} The populated <code>LayerApiModel</code> instance.
56
+ */
57
+ static constructFromObject(data, obj) {
58
+ if (data) {
59
+ obj = obj || new LayerApiModel();
60
+ if (data.hasOwnProperty('name')) {
61
+ obj['name'] = _ApiClient.default.convertToType(data['name'], 'String');
62
+ }
63
+ if (data.hasOwnProperty('source')) {
64
+ obj['source'] = _ApiClient.default.convertToType(data['source'], _LayerSource.default);
65
+ }
66
+ }
67
+ return obj;
68
+ }
69
+
70
+ /**
71
+ * Validates the JSON data with respect to <code>LayerApiModel</code>.
72
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
73
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>LayerApiModel</code>.
74
+ */
75
+ static validateJSON(data) {
76
+ // check to make sure all required properties are present in the JSON string
77
+ for (const property of LayerApiModel.RequiredProperties) {
78
+ if (!data.hasOwnProperty(property)) {
79
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
80
+ }
81
+ }
82
+ // ensure the json data is a string
83
+ if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
84
+ throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
85
+ }
86
+ return true;
87
+ }
88
+ }
89
+ LayerApiModel.RequiredProperties = ["name", "source"];
90
+
91
+ /**
92
+ * Name of the test pyramid layer. Available layers: * Unit * Component * API * UI * E2E * Contract
93
+ * @member {String} name
94
+ */
95
+ LayerApiModel.prototype['name'] = undefined;
96
+
97
+ /**
98
+ * Source of the test pyramid layer.
99
+ * @member {module:model/LayerSource} source
100
+ */
101
+ LayerApiModel.prototype['source'] = undefined;
102
+ var _default = exports.default = LayerApiModel;
@@ -0,0 +1,102 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
+ var _LayerSource = _interopRequireDefault(require("./LayerSource"));
9
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
10
+ /**
11
+ * API
12
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
13
+ *
14
+ * The version of the OpenAPI document: adapters
15
+ *
16
+ *
17
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
18
+ * https://openapi-generator.tech
19
+ * Do not edit the class manually.
20
+ *
21
+ */
22
+
23
+ /**
24
+ * The LayerApiResult model module.
25
+ * @module model/LayerApiResult
26
+ * @version 1.0.0
27
+ */
28
+ class LayerApiResult {
29
+ /**
30
+ * Constructs a new <code>LayerApiResult</code>.
31
+ * Model of auto test layer for use in responses.
32
+ * @alias module:model/LayerApiResult
33
+ * @param name {String} Name of the test pyramid layer.
34
+ * @param source {module:model/LayerSource} Source of the test pyramid layer.
35
+ */
36
+ constructor(name, source) {
37
+ LayerApiResult.initialize(this, name, source);
38
+ }
39
+
40
+ /**
41
+ * Initializes the fields of this object.
42
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
43
+ * Only for internal use.
44
+ */
45
+ static initialize(obj, name, source) {
46
+ obj['name'] = name;
47
+ obj['source'] = source;
48
+ }
49
+
50
+ /**
51
+ * Constructs a <code>LayerApiResult</code> from a plain JavaScript object, optionally creating a new instance.
52
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
53
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
54
+ * @param {module:model/LayerApiResult} obj Optional instance to populate.
55
+ * @return {module:model/LayerApiResult} The populated <code>LayerApiResult</code> instance.
56
+ */
57
+ static constructFromObject(data, obj) {
58
+ if (data) {
59
+ obj = obj || new LayerApiResult();
60
+ if (data.hasOwnProperty('name')) {
61
+ obj['name'] = _ApiClient.default.convertToType(data['name'], 'String');
62
+ }
63
+ if (data.hasOwnProperty('source')) {
64
+ obj['source'] = _ApiClient.default.convertToType(data['source'], _LayerSource.default);
65
+ }
66
+ }
67
+ return obj;
68
+ }
69
+
70
+ /**
71
+ * Validates the JSON data with respect to <code>LayerApiResult</code>.
72
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
73
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>LayerApiResult</code>.
74
+ */
75
+ static validateJSON(data) {
76
+ // check to make sure all required properties are present in the JSON string
77
+ for (const property of LayerApiResult.RequiredProperties) {
78
+ if (!data.hasOwnProperty(property)) {
79
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
80
+ }
81
+ }
82
+ // ensure the json data is a string
83
+ if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
84
+ throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
85
+ }
86
+ return true;
87
+ }
88
+ }
89
+ LayerApiResult.RequiredProperties = ["name", "source"];
90
+
91
+ /**
92
+ * Name of the test pyramid layer.
93
+ * @member {String} name
94
+ */
95
+ LayerApiResult.prototype['name'] = undefined;
96
+
97
+ /**
98
+ * Source of the test pyramid layer.
99
+ * @member {module:model/LayerSource} source
100
+ */
101
+ LayerApiResult.prototype['source'] = undefined;
102
+ var _default = exports.default = LayerApiResult;
@@ -0,0 +1,61 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
9
+ /**
10
+ * API
11
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
12
+ *
13
+ * The version of the OpenAPI document: adapters
14
+ *
15
+ *
16
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
17
+ * https://openapi-generator.tech
18
+ * Do not edit the class manually.
19
+ *
20
+ */
21
+
22
+ /**
23
+ * Enum class LayerSource.
24
+ * @enum {}
25
+ * @readonly
26
+ */
27
+ class LayerSource {
28
+ /**
29
+ * value: "Manual"
30
+ * @const
31
+ */
32
+ "Manual" = "Manual";
33
+
34
+ /**
35
+ * value: "Report"
36
+ * @const
37
+ */
38
+ "Report" = "Report";
39
+
40
+ /**
41
+ * value: "Run"
42
+ * @const
43
+ */
44
+ "Run" = "Run";
45
+
46
+ /**
47
+ * value: "Rule"
48
+ * @const
49
+ */
50
+ "Rule" = "Rule";
51
+
52
+ /**
53
+ * Returns a <code>LayerSource</code> enum value from a Javascript object name.
54
+ * @param {Object} data The plain JavaScript object containing the name of the enum value.
55
+ * @return {module:model/LayerSource} The enum <code>LayerSource</code> value.
56
+ */
57
+ static constructFromObject(object) {
58
+ return object;
59
+ }
60
+ }
61
+ exports.default = LayerSource;
@@ -0,0 +1,138 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
+ var _ProjectTypeModel = _interopRequireDefault(require("./ProjectTypeModel"));
9
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
10
+ /**
11
+ * API
12
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
13
+ *
14
+ * The version of the OpenAPI document: adapters
15
+ *
16
+ *
17
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
18
+ * https://openapi-generator.tech
19
+ * Do not edit the class manually.
20
+ *
21
+ */
22
+
23
+ /**
24
+ * The ProjectShortestApiResult model module.
25
+ * @module model/ProjectShortestApiResult
26
+ * @version 1.0.0
27
+ */
28
+ class ProjectShortestApiResult {
29
+ /**
30
+ * Constructs a new <code>ProjectShortestApiResult</code>.
31
+ * @alias module:model/ProjectShortestApiResult
32
+ * @param id {String} Unique ID of project
33
+ * @param isDeleted {Boolean} Indicates whether the project is deleted
34
+ * @param globalId {Number} Global ID of project
35
+ * @param name {String} Name of project
36
+ * @param type {module:model/ProjectTypeModel} Type of the project
37
+ */
38
+ constructor(id, isDeleted, globalId, name, type) {
39
+ ProjectShortestApiResult.initialize(this, id, isDeleted, globalId, name, type);
40
+ }
41
+
42
+ /**
43
+ * Initializes the fields of this object.
44
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
45
+ * Only for internal use.
46
+ */
47
+ static initialize(obj, id, isDeleted, globalId, name, type) {
48
+ obj['id'] = id;
49
+ obj['isDeleted'] = isDeleted;
50
+ obj['globalId'] = globalId;
51
+ obj['name'] = name;
52
+ obj['type'] = type;
53
+ }
54
+
55
+ /**
56
+ * Constructs a <code>ProjectShortestApiResult</code> from a plain JavaScript object, optionally creating a new instance.
57
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
58
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
59
+ * @param {module:model/ProjectShortestApiResult} obj Optional instance to populate.
60
+ * @return {module:model/ProjectShortestApiResult} The populated <code>ProjectShortestApiResult</code> instance.
61
+ */
62
+ static constructFromObject(data, obj) {
63
+ if (data) {
64
+ obj = obj || new ProjectShortestApiResult();
65
+ if (data.hasOwnProperty('id')) {
66
+ obj['id'] = _ApiClient.default.convertToType(data['id'], 'String');
67
+ }
68
+ if (data.hasOwnProperty('isDeleted')) {
69
+ obj['isDeleted'] = _ApiClient.default.convertToType(data['isDeleted'], 'Boolean');
70
+ }
71
+ if (data.hasOwnProperty('globalId')) {
72
+ obj['globalId'] = _ApiClient.default.convertToType(data['globalId'], 'Number');
73
+ }
74
+ if (data.hasOwnProperty('name')) {
75
+ obj['name'] = _ApiClient.default.convertToType(data['name'], 'String');
76
+ }
77
+ if (data.hasOwnProperty('type')) {
78
+ obj['type'] = _ApiClient.default.convertToType(data['type'], _ProjectTypeModel.default);
79
+ }
80
+ }
81
+ return obj;
82
+ }
83
+
84
+ /**
85
+ * Validates the JSON data with respect to <code>ProjectShortestApiResult</code>.
86
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
87
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>ProjectShortestApiResult</code>.
88
+ */
89
+ static validateJSON(data) {
90
+ // check to make sure all required properties are present in the JSON string
91
+ for (const property of ProjectShortestApiResult.RequiredProperties) {
92
+ if (!data.hasOwnProperty(property)) {
93
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
94
+ }
95
+ }
96
+ // ensure the json data is a string
97
+ if (data['id'] && !(typeof data['id'] === 'string' || data['id'] instanceof String)) {
98
+ throw new Error("Expected the field `id` to be a primitive type in the JSON string but got " + data['id']);
99
+ }
100
+ // ensure the json data is a string
101
+ if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
102
+ throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
103
+ }
104
+ return true;
105
+ }
106
+ }
107
+ ProjectShortestApiResult.RequiredProperties = ["id", "isDeleted", "globalId", "name", "type"];
108
+
109
+ /**
110
+ * Unique ID of project
111
+ * @member {String} id
112
+ */
113
+ ProjectShortestApiResult.prototype['id'] = undefined;
114
+
115
+ /**
116
+ * Indicates whether the project is deleted
117
+ * @member {Boolean} isDeleted
118
+ */
119
+ ProjectShortestApiResult.prototype['isDeleted'] = undefined;
120
+
121
+ /**
122
+ * Global ID of project
123
+ * @member {Number} globalId
124
+ */
125
+ ProjectShortestApiResult.prototype['globalId'] = undefined;
126
+
127
+ /**
128
+ * Name of project
129
+ * @member {String} name
130
+ */
131
+ ProjectShortestApiResult.prototype['name'] = undefined;
132
+
133
+ /**
134
+ * Type of the project
135
+ * @member {module:model/ProjectTypeModel} type
136
+ */
137
+ ProjectShortestApiResult.prototype['type'] = undefined;
138
+ var _default = exports.default = ProjectShortestApiResult;
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
8
  var _DateTimeRangeSelectorModel = _interopRequireDefault(require("./DateTimeRangeSelectorModel"));
9
- var _Int32RangeSelectorModel = _interopRequireDefault(require("./Int32RangeSelectorModel"));
9
+ var _Int64RangeSelectorModel = _interopRequireDefault(require("./Int64RangeSelectorModel"));
10
10
  var _ProjectTypeModel = _interopRequireDefault(require("./ProjectTypeModel"));
11
11
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
12
12
  /**
@@ -63,16 +63,16 @@ class ProjectsFilterModel {
63
63
  obj['isDeleted'] = _ApiClient.default.convertToType(data['isDeleted'], 'Boolean');
64
64
  }
65
65
  if (data.hasOwnProperty('testCasesCount')) {
66
- obj['testCasesCount'] = _ApiClient.default.convertToType(data['testCasesCount'], _Int32RangeSelectorModel.default);
66
+ obj['testCasesCount'] = _ApiClient.default.convertToType(data['testCasesCount'], _Int64RangeSelectorModel.default);
67
67
  }
68
68
  if (data.hasOwnProperty('checklistsCount')) {
69
- obj['checklistsCount'] = _ApiClient.default.convertToType(data['checklistsCount'], _Int32RangeSelectorModel.default);
69
+ obj['checklistsCount'] = _ApiClient.default.convertToType(data['checklistsCount'], _Int64RangeSelectorModel.default);
70
70
  }
71
71
  if (data.hasOwnProperty('sharedStepsCount')) {
72
- obj['sharedStepsCount'] = _ApiClient.default.convertToType(data['sharedStepsCount'], _Int32RangeSelectorModel.default);
72
+ obj['sharedStepsCount'] = _ApiClient.default.convertToType(data['sharedStepsCount'], _Int64RangeSelectorModel.default);
73
73
  }
74
74
  if (data.hasOwnProperty('autotestsCount')) {
75
- obj['autotestsCount'] = _ApiClient.default.convertToType(data['autotestsCount'], _Int32RangeSelectorModel.default);
75
+ obj['autotestsCount'] = _ApiClient.default.convertToType(data['autotestsCount'], _Int64RangeSelectorModel.default);
76
76
  }
77
77
  if (data.hasOwnProperty('globalIds')) {
78
78
  obj['globalIds'] = _ApiClient.default.convertToType(data['globalIds'], ['Number']);
@@ -103,22 +103,22 @@ class ProjectsFilterModel {
103
103
  // validate the optional field `testCasesCount`
104
104
  if (data['testCasesCount']) {
105
105
  // data not null
106
- _Int32RangeSelectorModel.default.validateJSON(data['testCasesCount']);
106
+ _Int64RangeSelectorModel.default.validateJSON(data['testCasesCount']);
107
107
  }
108
108
  // validate the optional field `checklistsCount`
109
109
  if (data['checklistsCount']) {
110
110
  // data not null
111
- _Int32RangeSelectorModel.default.validateJSON(data['checklistsCount']);
111
+ _Int64RangeSelectorModel.default.validateJSON(data['checklistsCount']);
112
112
  }
113
113
  // validate the optional field `sharedStepsCount`
114
114
  if (data['sharedStepsCount']) {
115
115
  // data not null
116
- _Int32RangeSelectorModel.default.validateJSON(data['sharedStepsCount']);
116
+ _Int64RangeSelectorModel.default.validateJSON(data['sharedStepsCount']);
117
117
  }
118
118
  // validate the optional field `autotestsCount`
119
119
  if (data['autotestsCount']) {
120
120
  // data not null
121
- _Int32RangeSelectorModel.default.validateJSON(data['autotestsCount']);
121
+ _Int64RangeSelectorModel.default.validateJSON(data['autotestsCount']);
122
122
  }
123
123
  // ensure the json data is an array
124
124
  if (!Array.isArray(data['globalIds'])) {
@@ -161,25 +161,25 @@ ProjectsFilterModel.prototype['isDeleted'] = undefined;
161
161
 
162
162
  /**
163
163
  * Specifies a project range of test cases count to search for
164
- * @member {module:model/Int32RangeSelectorModel} testCasesCount
164
+ * @member {module:model/Int64RangeSelectorModel} testCasesCount
165
165
  */
166
166
  ProjectsFilterModel.prototype['testCasesCount'] = undefined;
167
167
 
168
168
  /**
169
169
  * Specifies a project range of checklists count to search for
170
- * @member {module:model/Int32RangeSelectorModel} checklistsCount
170
+ * @member {module:model/Int64RangeSelectorModel} checklistsCount
171
171
  */
172
172
  ProjectsFilterModel.prototype['checklistsCount'] = undefined;
173
173
 
174
174
  /**
175
175
  * Specifies a project range of shared steps count to search for
176
- * @member {module:model/Int32RangeSelectorModel} sharedStepsCount
176
+ * @member {module:model/Int64RangeSelectorModel} sharedStepsCount
177
177
  */
178
178
  ProjectsFilterModel.prototype['sharedStepsCount'] = undefined;
179
179
 
180
180
  /**
181
181
  * Specifies a project range of autotests count to search for
182
- * @member {module:model/Int32RangeSelectorModel} autotestsCount
182
+ * @member {module:model/Int64RangeSelectorModel} autotestsCount
183
183
  */
184
184
  ProjectsFilterModel.prototype['autotestsCount'] = undefined;
185
185
 
@@ -39,10 +39,11 @@ class TestResultResponse {
39
39
  * @param id {String}
40
40
  * @param failureClassIds {Array.<String>}
41
41
  * @param configurationId {String}
42
+ * @param testPointId {String}
42
43
  * @param testRunId {String}
43
44
  */
44
- constructor(id, failureClassIds, configurationId, testRunId) {
45
- TestResultResponse.initialize(this, id, failureClassIds, configurationId, testRunId);
45
+ constructor(id, failureClassIds, configurationId, testPointId, testRunId) {
46
+ TestResultResponse.initialize(this, id, failureClassIds, configurationId, testPointId, testRunId);
46
47
  }
47
48
 
48
49
  /**
@@ -50,10 +51,11 @@ class TestResultResponse {
50
51
  * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
51
52
  * Only for internal use.
52
53
  */
53
- static initialize(obj, id, failureClassIds, configurationId, testRunId) {
54
+ static initialize(obj, id, failureClassIds, configurationId, testPointId, testRunId) {
54
55
  obj['id'] = id;
55
56
  obj['failureClassIds'] = failureClassIds;
56
57
  obj['configurationId'] = configurationId;
58
+ obj['testPointId'] = testPointId;
57
59
  obj['testRunId'] = testRunId;
58
60
  }
59
61
 
@@ -100,6 +102,9 @@ class TestResultResponse {
100
102
  if (data.hasOwnProperty('configurationId')) {
101
103
  obj['configurationId'] = _ApiClient.default.convertToType(data['configurationId'], 'String');
102
104
  }
105
+ if (data.hasOwnProperty('testPointId')) {
106
+ obj['testPointId'] = _ApiClient.default.convertToType(data['testPointId'], 'String');
107
+ }
103
108
  if (data.hasOwnProperty('durationInMs')) {
104
109
  obj['durationInMs'] = _ApiClient.default.convertToType(data['durationInMs'], 'Number');
105
110
  }
@@ -227,6 +232,10 @@ class TestResultResponse {
227
232
  throw new Error("Expected the field `configurationId` to be a primitive type in the JSON string but got " + data['configurationId']);
228
233
  }
229
234
  // ensure the json data is a string
235
+ if (data['testPointId'] && !(typeof data['testPointId'] === 'string' || data['testPointId'] instanceof String)) {
236
+ throw new Error("Expected the field `testPointId` to be a primitive type in the JSON string but got " + data['testPointId']);
237
+ }
238
+ // ensure the json data is a string
230
239
  if (data['traces'] && !(typeof data['traces'] === 'string' || data['traces'] instanceof String)) {
231
240
  throw new Error("Expected the field `traces` to be a primitive type in the JSON string but got " + data['traces']);
232
241
  }
@@ -286,7 +295,7 @@ class TestResultResponse {
286
295
  return true;
287
296
  }
288
297
  }
289
- TestResultResponse.RequiredProperties = ["id", "failureClassIds", "configurationId", "testRunId"];
298
+ TestResultResponse.RequiredProperties = ["id", "failureClassIds", "configurationId", "testPointId", "testRunId"];
290
299
 
291
300
  /**
292
301
  * @member {String} id
@@ -343,6 +352,11 @@ TestResultResponse.prototype['autoTestId'] = undefined;
343
352
  */
344
353
  TestResultResponse.prototype['configurationId'] = undefined;
345
354
 
355
+ /**
356
+ * @member {String} testPointId
357
+ */
358
+ TestResultResponse.prototype['testPointId'] = undefined;
359
+
346
360
  /**
347
361
  * @member {Number} durationInMs
348
362
  */
@@ -34,6 +34,7 @@ class TestResultShortResponse {
34
34
  * @alias module:model/TestResultShortResponse
35
35
  * @param id {String} Unique ID of the test result
36
36
  * @param name {String} Name of autotest represented by the test result
37
+ * @param autotestGlobalId {Number} Global ID of autotest represented by the test result
37
38
  * @param autoTestTags {Array.<String>} Tags of the autotest represented by the test result
38
39
  * @param testRunId {String} Unique ID of test run where the test result is located
39
40
  * @param configurationId {String} Unique ID of configuration which the test result uses
@@ -44,8 +45,8 @@ class TestResultShortResponse {
44
45
  * @param attachments {Array.<module:model/AttachmentApiResult>} Collection of files attached to the test result
45
46
  * @param rerunCompletedCount {Number} Run count
46
47
  */
47
- constructor(id, name, autoTestTags, testRunId, configurationId, configurationName, status, resultReasons, links, attachments, rerunCompletedCount) {
48
- TestResultShortResponse.initialize(this, id, name, autoTestTags, testRunId, configurationId, configurationName, status, resultReasons, links, attachments, rerunCompletedCount);
48
+ constructor(id, name, autotestGlobalId, autoTestTags, testRunId, configurationId, configurationName, status, resultReasons, links, attachments, rerunCompletedCount) {
49
+ TestResultShortResponse.initialize(this, id, name, autotestGlobalId, autoTestTags, testRunId, configurationId, configurationName, status, resultReasons, links, attachments, rerunCompletedCount);
49
50
  }
50
51
 
51
52
  /**
@@ -53,9 +54,10 @@ class TestResultShortResponse {
53
54
  * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
54
55
  * Only for internal use.
55
56
  */
56
- static initialize(obj, id, name, autoTestTags, testRunId, configurationId, configurationName, status, resultReasons, links, attachments, rerunCompletedCount) {
57
+ static initialize(obj, id, name, autotestGlobalId, autoTestTags, testRunId, configurationId, configurationName, status, resultReasons, links, attachments, rerunCompletedCount) {
57
58
  obj['id'] = id;
58
59
  obj['name'] = name;
60
+ obj['autotestGlobalId'] = autotestGlobalId;
59
61
  obj['autoTestTags'] = autoTestTags;
60
62
  obj['testRunId'] = testRunId;
61
63
  obj['configurationId'] = configurationId;
@@ -83,6 +85,9 @@ class TestResultShortResponse {
83
85
  if (data.hasOwnProperty('name')) {
84
86
  obj['name'] = _ApiClient.default.convertToType(data['name'], 'String');
85
87
  }
88
+ if (data.hasOwnProperty('autotestGlobalId')) {
89
+ obj['autotestGlobalId'] = _ApiClient.default.convertToType(data['autotestGlobalId'], 'Number');
90
+ }
86
91
  if (data.hasOwnProperty('autotestExternalId')) {
87
92
  obj['autotestExternalId'] = _ApiClient.default.convertToType(data['autotestExternalId'], 'String');
88
93
  }
@@ -218,7 +223,7 @@ class TestResultShortResponse {
218
223
  return true;
219
224
  }
220
225
  }
221
- TestResultShortResponse.RequiredProperties = ["id", "name", "autoTestTags", "testRunId", "configurationId", "configurationName", "status", "resultReasons", "links", "attachments", "rerunCompletedCount"];
226
+ TestResultShortResponse.RequiredProperties = ["id", "name", "autotestGlobalId", "autoTestTags", "testRunId", "configurationId", "configurationName", "status", "resultReasons", "links", "attachments", "rerunCompletedCount"];
222
227
 
223
228
  /**
224
229
  * Unique ID of the test result
@@ -232,6 +237,12 @@ TestResultShortResponse.prototype['id'] = undefined;
232
237
  */
233
238
  TestResultShortResponse.prototype['name'] = undefined;
234
239
 
240
+ /**
241
+ * Global ID of autotest represented by the test result
242
+ * @member {Number} autotestGlobalId
243
+ */
244
+ TestResultShortResponse.prototype['autotestGlobalId'] = undefined;
245
+
235
246
  /**
236
247
  * External ID of autotest represented by the test result
237
248
  * @member {String} autotestExternalId
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
  var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
+ var _FailureCategoryModel = _interopRequireDefault(require("./FailureCategoryModel"));
8
9
  var _Int64RangeSelectorModel = _interopRequireDefault(require("./Int64RangeSelectorModel"));
9
10
  var _TestResultOutcome = _interopRequireDefault(require("./TestResultOutcome"));
10
11
  var _TestStatusApiType = _interopRequireDefault(require("./TestStatusApiType"));
@@ -65,6 +66,9 @@ class TestResultsFilterApiModel {
65
66
  if (data.hasOwnProperty('statusTypes')) {
66
67
  obj['statusTypes'] = _ApiClient.default.convertToType(data['statusTypes'], [_TestStatusApiType.default]);
67
68
  }
69
+ if (data.hasOwnProperty('failureCategories')) {
70
+ obj['failureCategories'] = _ApiClient.default.convertToType(data['failureCategories'], [_FailureCategoryModel.default]);
71
+ }
68
72
  if (data.hasOwnProperty('namespace')) {
69
73
  obj['namespace'] = _ApiClient.default.convertToType(data['namespace'], 'String');
70
74
  }
@@ -115,6 +119,10 @@ class TestResultsFilterApiModel {
115
119
  if (!Array.isArray(data['statusTypes'])) {
116
120
  throw new Error("Expected the field `statusTypes` to be an array in the JSON data but got " + data['statusTypes']);
117
121
  }
122
+ // ensure the json data is an array
123
+ if (!Array.isArray(data['failureCategories'])) {
124
+ throw new Error("Expected the field `failureCategories` to be an array in the JSON data but got " + data['failureCategories']);
125
+ }
118
126
  // ensure the json data is a string
119
127
  if (data['namespace'] && !(typeof data['namespace'] === 'string' || data['namespace'] instanceof String)) {
120
128
  throw new Error("Expected the field `namespace` to be a primitive type in the JSON string but got " + data['namespace']);
@@ -176,6 +184,12 @@ TestResultsFilterApiModel.prototype['statusCodes'] = undefined;
176
184
  */
177
185
  TestResultsFilterApiModel.prototype['statusTypes'] = undefined;
178
186
 
187
+ /**
188
+ * Specifies a test result failure categories to search for
189
+ * @member {Array.<module:model/FailureCategoryModel>} failureCategories
190
+ */
191
+ TestResultsFilterApiModel.prototype['failureCategories'] = undefined;
192
+
179
193
  /**
180
194
  * Specifies a test result namespace to search for
181
195
  * @member {String} namespace