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

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 (81) hide show
  1. package/lib/adapters-api/dist/ApiClient.js +5 -6
  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/ParametersApi.js +3 -3
  6. package/lib/adapters-api/dist/api/ProjectAttributesApi.js +6 -6
  7. package/lib/adapters-api/dist/api/ProjectSectionsApi.js +1 -1
  8. package/lib/adapters-api/dist/api/ProjectWorkItemsApi.js +1 -1
  9. package/lib/adapters-api/dist/api/ProjectsApi.js +4 -4
  10. package/lib/adapters-api/dist/api/SectionsApi.js +2 -2
  11. package/lib/adapters-api/dist/api/TestResultsApi.js +3 -3
  12. package/lib/adapters-api/dist/api/TestRunsApi.js +8 -8
  13. package/lib/adapters-api/dist/api/WorkItemsApi.js +3 -3
  14. package/lib/adapters-api/dist/api/WorkflowsApi.js +1 -1
  15. package/lib/adapters-api/dist/index.js +3 -80
  16. package/lib/adapters-api/dist/model/AttachmentPutModelAutoTestStepResultsModel.js +1 -1
  17. package/lib/adapters-api/dist/model/AutoTestApiResult.js +0 -15
  18. package/lib/adapters-api/dist/model/AutoTestCreateApiModel.js +0 -15
  19. package/lib/adapters-api/dist/model/AutoTestStepResult.js +1 -1
  20. package/lib/adapters-api/dist/model/AutoTestStepResultUpdateRequest.js +1 -1
  21. package/lib/adapters-api/dist/model/AutoTestUpdateApiModel.js +4 -30
  22. package/lib/adapters-api/dist/model/CreateEmptyTestRunApiModel.js +2 -2
  23. package/lib/adapters-api/dist/model/CustomAttributeApiResult.js +6 -56
  24. package/lib/adapters-api/dist/model/{CustomAttributeModel.js → CustomAttributeGetModel.js} +39 -89
  25. package/lib/adapters-api/dist/model/CustomAttributePutModel.js +1 -1
  26. package/lib/adapters-api/dist/model/LabelApiModel.js +15 -4
  27. package/lib/adapters-api/dist/model/ProjectsFilterModel.js +13 -13
  28. package/lib/adapters-api/dist/model/TestResultResponse.js +4 -18
  29. package/lib/adapters-api/dist/model/TestResultShortResponse.js +4 -15
  30. package/lib/adapters-api/dist/model/TestResultsFilterApiModel.js +0 -14
  31. package/lib/adapters-api/dist/model/TestRunApiResult.js +4 -45
  32. package/lib/adapters-api/dist/model/UpdateEmptyTestRunApiModel.js +1 -1
  33. package/lib/adapters-api/index.d.ts +204 -758
  34. package/lib/common/index.d.ts +0 -1
  35. package/lib/common/index.js +0 -1
  36. package/lib/common/types/common.type.d.ts +0 -6
  37. package/lib/common/utils/index.d.ts +1 -0
  38. package/lib/common/utils/index.js +1 -0
  39. package/lib/common/utils/log-sanitize.util.d.ts +12 -0
  40. package/lib/common/utils/log-sanitize.util.js +112 -0
  41. package/lib/common/utils/log-sanitize.util.test.js +55 -0
  42. package/lib/common/utils/tms-load-test-run-debug.d.ts +0 -2
  43. package/lib/common/utils/tms-load-test-run-debug.js +0 -6
  44. package/lib/logger/index.d.ts +1 -1
  45. package/lib/logger/index.js +19 -21
  46. package/lib/services/attachments/attachments.service.js +2 -14
  47. package/lib/services/autotests/autotests.converter.d.ts +2 -6
  48. package/lib/services/autotests/autotests.converter.js +16 -41
  49. package/lib/services/autotests/autotests.service.js +4 -5
  50. package/lib/services/autotests/autotests.type.d.ts +0 -2
  51. package/lib/services/syncstorage/syncstorage.runner.js +5 -6
  52. package/lib/services/syncstorage/syncstorage.runner.test.js +0 -16
  53. package/lib/services/testruns/testruns.converter.d.ts +5 -0
  54. package/lib/services/testruns/testruns.converter.js +18 -1
  55. package/lib/services/testruns/testruns.converter.test.js +24 -0
  56. package/lib/services/testruns/testruns.handler.d.ts +2 -2
  57. package/lib/services/testruns/testruns.handler.js +2 -12
  58. package/lib/services/testruns/testruns.service.d.ts +3 -1
  59. package/lib/services/testruns/testruns.service.js +18 -33
  60. package/lib/services/testruns/testruns.service.test.js +43 -0
  61. package/lib/services/testruns/testruns.type.d.ts +3 -1
  62. package/lib/strategy/base.strategy.d.ts +1 -0
  63. package/lib/strategy/base.strategy.js +35 -12
  64. package/lib/strategy/strategy.type.d.ts +2 -0
  65. package/lib/sync-storage/dist/ApiClient.js +0 -3
  66. package/package.json +1 -1
  67. package/lib/adapters-api/dist/api/CustomAttributesApi.js +0 -201
  68. package/lib/adapters-api/dist/model/CustomAttributeOptionPostApiModel.js +0 -98
  69. package/lib/adapters-api/dist/model/CustomAttributeOptionUpdateApiModel.js +0 -124
  70. package/lib/adapters-api/dist/model/CustomAttributeSearchApiModel.js +0 -137
  71. package/lib/adapters-api/dist/model/CustomAttributeSearchApiResult.js +0 -281
  72. package/lib/adapters-api/dist/model/GlobalCustomAttributePostApiModel.js +0 -141
  73. package/lib/adapters-api/dist/model/GlobalCustomAttributeUpdateApiModel.js +0 -129
  74. package/lib/adapters-api/dist/model/LayerApiModel.js +0 -102
  75. package/lib/adapters-api/dist/model/LayerApiResult.js +0 -102
  76. package/lib/adapters-api/dist/model/LayerSource.js +0 -61
  77. package/lib/adapters-api/dist/model/ProjectShortestApiResult.js +0 -138
  78. package/lib/common/test-layers.d.ts +0 -11
  79. package/lib/common/test-layers.js +0 -13
  80. package/lib/services/autotests/autotests.converter.test.js +0 -39
  81. /package/lib/{services/autotests/autotests.converter.test.d.ts → common/utils/log-sanitize.util.test.d.ts} +0 -0
@@ -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 _Int64RangeSelectorModel = _interopRequireDefault(require("./Int64RangeSelectorModel"));
9
+ var _Int32RangeSelectorModel = _interopRequireDefault(require("./Int32RangeSelectorModel"));
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'], _Int64RangeSelectorModel.default);
66
+ obj['testCasesCount'] = _ApiClient.default.convertToType(data['testCasesCount'], _Int32RangeSelectorModel.default);
67
67
  }
68
68
  if (data.hasOwnProperty('checklistsCount')) {
69
- obj['checklistsCount'] = _ApiClient.default.convertToType(data['checklistsCount'], _Int64RangeSelectorModel.default);
69
+ obj['checklistsCount'] = _ApiClient.default.convertToType(data['checklistsCount'], _Int32RangeSelectorModel.default);
70
70
  }
71
71
  if (data.hasOwnProperty('sharedStepsCount')) {
72
- obj['sharedStepsCount'] = _ApiClient.default.convertToType(data['sharedStepsCount'], _Int64RangeSelectorModel.default);
72
+ obj['sharedStepsCount'] = _ApiClient.default.convertToType(data['sharedStepsCount'], _Int32RangeSelectorModel.default);
73
73
  }
74
74
  if (data.hasOwnProperty('autotestsCount')) {
75
- obj['autotestsCount'] = _ApiClient.default.convertToType(data['autotestsCount'], _Int64RangeSelectorModel.default);
75
+ obj['autotestsCount'] = _ApiClient.default.convertToType(data['autotestsCount'], _Int32RangeSelectorModel.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
- _Int64RangeSelectorModel.default.validateJSON(data['testCasesCount']);
106
+ _Int32RangeSelectorModel.default.validateJSON(data['testCasesCount']);
107
107
  }
108
108
  // validate the optional field `checklistsCount`
109
109
  if (data['checklistsCount']) {
110
110
  // data not null
111
- _Int64RangeSelectorModel.default.validateJSON(data['checklistsCount']);
111
+ _Int32RangeSelectorModel.default.validateJSON(data['checklistsCount']);
112
112
  }
113
113
  // validate the optional field `sharedStepsCount`
114
114
  if (data['sharedStepsCount']) {
115
115
  // data not null
116
- _Int64RangeSelectorModel.default.validateJSON(data['sharedStepsCount']);
116
+ _Int32RangeSelectorModel.default.validateJSON(data['sharedStepsCount']);
117
117
  }
118
118
  // validate the optional field `autotestsCount`
119
119
  if (data['autotestsCount']) {
120
120
  // data not null
121
- _Int64RangeSelectorModel.default.validateJSON(data['autotestsCount']);
121
+ _Int32RangeSelectorModel.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/Int64RangeSelectorModel} testCasesCount
164
+ * @member {module:model/Int32RangeSelectorModel} 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/Int64RangeSelectorModel} checklistsCount
170
+ * @member {module:model/Int32RangeSelectorModel} 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/Int64RangeSelectorModel} sharedStepsCount
176
+ * @member {module:model/Int32RangeSelectorModel} 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/Int64RangeSelectorModel} autotestsCount
182
+ * @member {module:model/Int32RangeSelectorModel} autotestsCount
183
183
  */
184
184
  ProjectsFilterModel.prototype['autotestsCount'] = undefined;
185
185
 
@@ -39,11 +39,10 @@ class TestResultResponse {
39
39
  * @param id {String}
40
40
  * @param failureClassIds {Array.<String>}
41
41
  * @param configurationId {String}
42
- * @param testPointId {String}
43
42
  * @param testRunId {String}
44
43
  */
45
- constructor(id, failureClassIds, configurationId, testPointId, testRunId) {
46
- TestResultResponse.initialize(this, id, failureClassIds, configurationId, testPointId, testRunId);
44
+ constructor(id, failureClassIds, configurationId, testRunId) {
45
+ TestResultResponse.initialize(this, id, failureClassIds, configurationId, testRunId);
47
46
  }
48
47
 
49
48
  /**
@@ -51,11 +50,10 @@ class TestResultResponse {
51
50
  * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
52
51
  * Only for internal use.
53
52
  */
54
- static initialize(obj, id, failureClassIds, configurationId, testPointId, testRunId) {
53
+ static initialize(obj, id, failureClassIds, configurationId, testRunId) {
55
54
  obj['id'] = id;
56
55
  obj['failureClassIds'] = failureClassIds;
57
56
  obj['configurationId'] = configurationId;
58
- obj['testPointId'] = testPointId;
59
57
  obj['testRunId'] = testRunId;
60
58
  }
61
59
 
@@ -102,9 +100,6 @@ class TestResultResponse {
102
100
  if (data.hasOwnProperty('configurationId')) {
103
101
  obj['configurationId'] = _ApiClient.default.convertToType(data['configurationId'], 'String');
104
102
  }
105
- if (data.hasOwnProperty('testPointId')) {
106
- obj['testPointId'] = _ApiClient.default.convertToType(data['testPointId'], 'String');
107
- }
108
103
  if (data.hasOwnProperty('durationInMs')) {
109
104
  obj['durationInMs'] = _ApiClient.default.convertToType(data['durationInMs'], 'Number');
110
105
  }
@@ -232,10 +227,6 @@ class TestResultResponse {
232
227
  throw new Error("Expected the field `configurationId` to be a primitive type in the JSON string but got " + data['configurationId']);
233
228
  }
234
229
  // 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
239
230
  if (data['traces'] && !(typeof data['traces'] === 'string' || data['traces'] instanceof String)) {
240
231
  throw new Error("Expected the field `traces` to be a primitive type in the JSON string but got " + data['traces']);
241
232
  }
@@ -295,7 +286,7 @@ class TestResultResponse {
295
286
  return true;
296
287
  }
297
288
  }
298
- TestResultResponse.RequiredProperties = ["id", "failureClassIds", "configurationId", "testPointId", "testRunId"];
289
+ TestResultResponse.RequiredProperties = ["id", "failureClassIds", "configurationId", "testRunId"];
299
290
 
300
291
  /**
301
292
  * @member {String} id
@@ -352,11 +343,6 @@ TestResultResponse.prototype['autoTestId'] = undefined;
352
343
  */
353
344
  TestResultResponse.prototype['configurationId'] = undefined;
354
345
 
355
- /**
356
- * @member {String} testPointId
357
- */
358
- TestResultResponse.prototype['testPointId'] = undefined;
359
-
360
346
  /**
361
347
  * @member {Number} durationInMs
362
348
  */
@@ -34,7 +34,6 @@ 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
38
37
  * @param autoTestTags {Array.<String>} Tags of the autotest represented by the test result
39
38
  * @param testRunId {String} Unique ID of test run where the test result is located
40
39
  * @param configurationId {String} Unique ID of configuration which the test result uses
@@ -45,8 +44,8 @@ class TestResultShortResponse {
45
44
  * @param attachments {Array.<module:model/AttachmentApiResult>} Collection of files attached to the test result
46
45
  * @param rerunCompletedCount {Number} Run count
47
46
  */
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);
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);
50
49
  }
51
50
 
52
51
  /**
@@ -54,10 +53,9 @@ class TestResultShortResponse {
54
53
  * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
55
54
  * Only for internal use.
56
55
  */
57
- static initialize(obj, id, name, autotestGlobalId, autoTestTags, testRunId, configurationId, configurationName, status, resultReasons, links, attachments, rerunCompletedCount) {
56
+ static initialize(obj, id, name, autoTestTags, testRunId, configurationId, configurationName, status, resultReasons, links, attachments, rerunCompletedCount) {
58
57
  obj['id'] = id;
59
58
  obj['name'] = name;
60
- obj['autotestGlobalId'] = autotestGlobalId;
61
59
  obj['autoTestTags'] = autoTestTags;
62
60
  obj['testRunId'] = testRunId;
63
61
  obj['configurationId'] = configurationId;
@@ -85,9 +83,6 @@ class TestResultShortResponse {
85
83
  if (data.hasOwnProperty('name')) {
86
84
  obj['name'] = _ApiClient.default.convertToType(data['name'], 'String');
87
85
  }
88
- if (data.hasOwnProperty('autotestGlobalId')) {
89
- obj['autotestGlobalId'] = _ApiClient.default.convertToType(data['autotestGlobalId'], 'Number');
90
- }
91
86
  if (data.hasOwnProperty('autotestExternalId')) {
92
87
  obj['autotestExternalId'] = _ApiClient.default.convertToType(data['autotestExternalId'], 'String');
93
88
  }
@@ -223,7 +218,7 @@ class TestResultShortResponse {
223
218
  return true;
224
219
  }
225
220
  }
226
- TestResultShortResponse.RequiredProperties = ["id", "name", "autotestGlobalId", "autoTestTags", "testRunId", "configurationId", "configurationName", "status", "resultReasons", "links", "attachments", "rerunCompletedCount"];
221
+ TestResultShortResponse.RequiredProperties = ["id", "name", "autoTestTags", "testRunId", "configurationId", "configurationName", "status", "resultReasons", "links", "attachments", "rerunCompletedCount"];
227
222
 
228
223
  /**
229
224
  * Unique ID of the test result
@@ -237,12 +232,6 @@ TestResultShortResponse.prototype['id'] = undefined;
237
232
  */
238
233
  TestResultShortResponse.prototype['name'] = undefined;
239
234
 
240
- /**
241
- * Global ID of autotest represented by the test result
242
- * @member {Number} autotestGlobalId
243
- */
244
- TestResultShortResponse.prototype['autotestGlobalId'] = undefined;
245
-
246
235
  /**
247
236
  * External ID of autotest represented by the test result
248
237
  * @member {String} autotestExternalId
@@ -5,7 +5,6 @@ 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"));
9
8
  var _Int64RangeSelectorModel = _interopRequireDefault(require("./Int64RangeSelectorModel"));
10
9
  var _TestResultOutcome = _interopRequireDefault(require("./TestResultOutcome"));
11
10
  var _TestStatusApiType = _interopRequireDefault(require("./TestStatusApiType"));
@@ -66,9 +65,6 @@ class TestResultsFilterApiModel {
66
65
  if (data.hasOwnProperty('statusTypes')) {
67
66
  obj['statusTypes'] = _ApiClient.default.convertToType(data['statusTypes'], [_TestStatusApiType.default]);
68
67
  }
69
- if (data.hasOwnProperty('failureCategories')) {
70
- obj['failureCategories'] = _ApiClient.default.convertToType(data['failureCategories'], [_FailureCategoryModel.default]);
71
- }
72
68
  if (data.hasOwnProperty('namespace')) {
73
69
  obj['namespace'] = _ApiClient.default.convertToType(data['namespace'], 'String');
74
70
  }
@@ -119,10 +115,6 @@ class TestResultsFilterApiModel {
119
115
  if (!Array.isArray(data['statusTypes'])) {
120
116
  throw new Error("Expected the field `statusTypes` to be an array in the JSON data but got " + data['statusTypes']);
121
117
  }
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
- }
126
118
  // ensure the json data is a string
127
119
  if (data['namespace'] && !(typeof data['namespace'] === 'string' || data['namespace'] instanceof String)) {
128
120
  throw new Error("Expected the field `namespace` to be a primitive type in the JSON string but got " + data['namespace']);
@@ -184,12 +176,6 @@ TestResultsFilterApiModel.prototype['statusCodes'] = undefined;
184
176
  */
185
177
  TestResultsFilterApiModel.prototype['statusTypes'] = undefined;
186
178
 
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
-
193
179
  /**
194
180
  * Specifies a test result namespace to search for
195
181
  * @member {String} namespace
@@ -34,15 +34,14 @@ class TestRunApiResult {
34
34
  * @alias module:model/TestRunApiResult
35
35
  * @param id {String} Test run unique identifier
36
36
  * @param name {String} Test run name
37
- * @param projectId {String} Project unique identifier This property is used to link test run with project.
38
37
  * @param stateName {module:model/TestRunState} Test run state
39
38
  * @param status {module:model/TestStatusApiResult} Test run status
40
39
  * @param attachments {Array.<module:model/AttachmentApiResult>} Collection of attachments related to the test run
41
40
  * @param links {Array.<module:model/LinkApiResult>} Collection of links related to the test run
42
41
  * @param tags {Array.<String>} Collection of tags associated with the test run
43
42
  */
44
- constructor(id, name, projectId, stateName, status, attachments, links, tags) {
45
- TestRunApiResult.initialize(this, id, name, projectId, stateName, status, attachments, links, tags);
43
+ constructor(id, name, stateName, status, attachments, links, tags) {
44
+ TestRunApiResult.initialize(this, id, name, stateName, status, attachments, links, tags);
46
45
  }
47
46
 
48
47
  /**
@@ -50,10 +49,9 @@ class TestRunApiResult {
50
49
  * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
51
50
  * Only for internal use.
52
51
  */
53
- static initialize(obj, id, name, projectId, stateName, status, attachments, links, tags) {
52
+ static initialize(obj, id, name, stateName, status, attachments, links, tags) {
54
53
  obj['id'] = id;
55
54
  obj['name'] = name;
56
- obj['projectId'] = projectId;
57
55
  obj['stateName'] = stateName;
58
56
  obj['status'] = status;
59
57
  obj['attachments'] = attachments;
@@ -77,15 +75,6 @@ class TestRunApiResult {
77
75
  if (data.hasOwnProperty('name')) {
78
76
  obj['name'] = _ApiClient.default.convertToType(data['name'], 'String');
79
77
  }
80
- if (data.hasOwnProperty('description')) {
81
- obj['description'] = _ApiClient.default.convertToType(data['description'], 'String');
82
- }
83
- if (data.hasOwnProperty('launchSource')) {
84
- obj['launchSource'] = _ApiClient.default.convertToType(data['launchSource'], 'String');
85
- }
86
- if (data.hasOwnProperty('projectId')) {
87
- obj['projectId'] = _ApiClient.default.convertToType(data['projectId'], 'String');
88
- }
89
78
  if (data.hasOwnProperty('stateName')) {
90
79
  obj['stateName'] = _ApiClient.default.convertToType(data['stateName'], _TestRunState.default);
91
80
  }
@@ -125,18 +114,6 @@ class TestRunApiResult {
125
114
  if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
126
115
  throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
127
116
  }
128
- // ensure the json data is a string
129
- if (data['description'] && !(typeof data['description'] === 'string' || data['description'] instanceof String)) {
130
- throw new Error("Expected the field `description` to be a primitive type in the JSON string but got " + data['description']);
131
- }
132
- // ensure the json data is a string
133
- if (data['launchSource'] && !(typeof data['launchSource'] === 'string' || data['launchSource'] instanceof String)) {
134
- throw new Error("Expected the field `launchSource` to be a primitive type in the JSON string but got " + data['launchSource']);
135
- }
136
- // ensure the json data is a string
137
- if (data['projectId'] && !(typeof data['projectId'] === 'string' || data['projectId'] instanceof String)) {
138
- throw new Error("Expected the field `projectId` to be a primitive type in the JSON string but got " + data['projectId']);
139
- }
140
117
  // validate the optional field `status`
141
118
  if (data['status']) {
142
119
  // data not null
@@ -173,7 +150,7 @@ class TestRunApiResult {
173
150
  return true;
174
151
  }
175
152
  }
176
- TestRunApiResult.RequiredProperties = ["id", "name", "projectId", "stateName", "status", "attachments", "links", "tags"];
153
+ TestRunApiResult.RequiredProperties = ["id", "name", "stateName", "status", "attachments", "links", "tags"];
177
154
 
178
155
  /**
179
156
  * Test run unique identifier
@@ -187,24 +164,6 @@ TestRunApiResult.prototype['id'] = undefined;
187
164
  */
188
165
  TestRunApiResult.prototype['name'] = undefined;
189
166
 
190
- /**
191
- * Test run description
192
- * @member {String} description
193
- */
194
- TestRunApiResult.prototype['description'] = undefined;
195
-
196
- /**
197
- * Test run launch source Once launch source is specified it cannot be updated.
198
- * @member {String} launchSource
199
- */
200
- TestRunApiResult.prototype['launchSource'] = undefined;
201
-
202
- /**
203
- * Project unique identifier This property is used to link test run with project.
204
- * @member {String} projectId
205
- */
206
- TestRunApiResult.prototype['projectId'] = undefined;
207
-
208
167
  /**
209
168
  * Test run state
210
169
  * @member {module:model/TestRunState} stateName
@@ -162,7 +162,7 @@ UpdateEmptyTestRunApiModel.prototype['name'] = undefined;
162
162
  UpdateEmptyTestRunApiModel.prototype['description'] = undefined;
163
163
 
164
164
  /**
165
- * Test run launch source Once launch source is specified it cannot be updated
165
+ * Test run launch source Once launch source is specified it cannot be updated
166
166
  * @member {String} launchSource
167
167
  */
168
168
  UpdateEmptyTestRunApiModel.prototype['launchSource'] = undefined;