testit-js-commons 4.2.0-TMS-5.8 → 5.0.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 (157) hide show
  1. package/lib/adapters-api/dist/ApiClient.js +683 -0
  2. package/lib/adapters-api/dist/api/AttachmentsApi.js +165 -0
  3. package/lib/adapters-api/dist/api/AutoTestsApi.js +536 -0
  4. package/lib/adapters-api/dist/api/ConfigurationsApi.js +91 -0
  5. package/lib/adapters-api/dist/api/ParametersApi.js +159 -0
  6. package/lib/adapters-api/dist/api/ProjectAttributesApi.js +140 -0
  7. package/lib/adapters-api/dist/api/ProjectSectionsApi.js +96 -0
  8. package/lib/adapters-api/dist/api/ProjectWorkItemsApi.js +99 -0
  9. package/lib/adapters-api/dist/api/ProjectsApi.js +200 -0
  10. package/lib/adapters-api/dist/api/SectionsApi.js +118 -0
  11. package/lib/adapters-api/dist/api/TestResultsApi.js +168 -0
  12. package/lib/adapters-api/dist/api/TestRunsApi.js +331 -0
  13. package/lib/adapters-api/dist/api/WorkItemsApi.js +170 -0
  14. package/lib/adapters-api/dist/api/WorkflowsApi.js +75 -0
  15. package/lib/adapters-api/dist/index.js +951 -0
  16. package/lib/adapters-api/dist/model/AssignAttachmentApiModel.js +89 -0
  17. package/lib/adapters-api/dist/model/AssignAutoTestCaseIdApiModel.js +89 -0
  18. package/lib/adapters-api/dist/model/AssignIterationApiModel.js +112 -0
  19. package/lib/adapters-api/dist/model/AttachmentApiResult.js +145 -0
  20. package/lib/adapters-api/dist/model/AttachmentModel.js +193 -0
  21. package/lib/adapters-api/dist/model/AttachmentPutModel.js +89 -0
  22. package/lib/adapters-api/dist/model/AttachmentPutModelAutoTestStepResultsModel.js +196 -0
  23. package/lib/adapters-api/dist/model/AttachmentUpdateRequest.js +89 -0
  24. package/lib/adapters-api/dist/model/AutoTest.js +327 -0
  25. package/lib/adapters-api/dist/model/AutoTestApiResult.js +323 -0
  26. package/lib/adapters-api/dist/model/AutoTestCaseApiModel.js +89 -0
  27. package/lib/adapters-api/dist/model/AutoTestCreateApiModel.js +323 -0
  28. package/lib/adapters-api/dist/model/AutoTestFilterApiModel.js +201 -0
  29. package/lib/adapters-api/dist/model/AutoTestIdModel.js +88 -0
  30. package/lib/adapters-api/dist/model/AutoTestModel.js +488 -0
  31. package/lib/adapters-api/dist/model/AutoTestResultReasonShort.js +99 -0
  32. package/lib/adapters-api/dist/model/AutoTestResultsForTestRunModel.js +334 -0
  33. package/lib/adapters-api/dist/model/AutoTestSearchApiModel.js +96 -0
  34. package/lib/adapters-api/dist/model/AutoTestSearchIncludeApiModel.js +93 -0
  35. package/lib/adapters-api/dist/model/AutoTestStep.js +123 -0
  36. package/lib/adapters-api/dist/model/AutoTestStepApiModel.js +123 -0
  37. package/lib/adapters-api/dist/model/AutoTestStepApiResult.js +123 -0
  38. package/lib/adapters-api/dist/model/AutoTestStepModel.js +123 -0
  39. package/lib/adapters-api/dist/model/AutoTestStepResult.js +196 -0
  40. package/lib/adapters-api/dist/model/AutoTestStepResultUpdateRequest.js +196 -0
  41. package/lib/adapters-api/dist/model/AutoTestUpdateApiModel.js +327 -0
  42. package/lib/adapters-api/dist/model/AutoTestWorkItemIdentifierApiResult.js +100 -0
  43. package/lib/adapters-api/dist/model/AvailableTestResultOutcome.js +67 -0
  44. package/lib/adapters-api/dist/model/ConfigurationFilterModel.js +114 -0
  45. package/lib/adapters-api/dist/model/ConfigurationModel.js +213 -0
  46. package/lib/adapters-api/dist/model/ConfigurationShortModel.js +102 -0
  47. package/lib/adapters-api/dist/model/CreateEmptyTestRunApiModel.js +185 -0
  48. package/lib/adapters-api/dist/model/CreateLinkApiModel.js +127 -0
  49. package/lib/adapters-api/dist/model/CreateParameterApiModel.js +117 -0
  50. package/lib/adapters-api/dist/model/CreateProjectApiModel.js +124 -0
  51. package/lib/adapters-api/dist/model/CreateStepApiModel.js +131 -0
  52. package/lib/adapters-api/dist/model/CreateWorkItemApiModel.js +384 -0
  53. package/lib/adapters-api/dist/model/CustomAttributeApiResult.js +184 -0
  54. package/lib/adapters-api/dist/model/CustomAttributeGetModel.js +184 -0
  55. package/lib/adapters-api/dist/model/CustomAttributeOptionApiResult.js +124 -0
  56. package/lib/adapters-api/dist/model/CustomAttributeOptionModel.js +124 -0
  57. package/lib/adapters-api/dist/model/CustomAttributePutModel.js +182 -0
  58. package/lib/adapters-api/dist/model/CustomAttributeType.js +73 -0
  59. package/lib/adapters-api/dist/model/CustomAttributeTypesEnum.js +73 -0
  60. package/lib/adapters-api/dist/model/DateTimeRangeSelectorModel.js +82 -0
  61. package/lib/adapters-api/dist/model/DeletionState.js +55 -0
  62. package/lib/adapters-api/dist/model/DetailedProjectApiResult.js +204 -0
  63. package/lib/adapters-api/dist/model/FailureCategoryModel.js +67 -0
  64. package/lib/adapters-api/dist/model/GuidExtractionModel.js +90 -0
  65. package/lib/adapters-api/dist/model/ImageResizeType.js +49 -0
  66. package/lib/adapters-api/dist/model/Int32RangeSelectorModel.js +82 -0
  67. package/lib/adapters-api/dist/model/Int64RangeSelectorModel.js +82 -0
  68. package/lib/adapters-api/dist/model/IterationApiResult.js +109 -0
  69. package/lib/adapters-api/dist/model/IterationModel.js +109 -0
  70. package/lib/adapters-api/dist/model/LabelApiModel.js +100 -0
  71. package/lib/adapters-api/dist/model/LabelApiResult.js +100 -0
  72. package/lib/adapters-api/dist/model/LabelShortModel.js +100 -0
  73. package/lib/adapters-api/dist/model/LinkApiResult.js +140 -0
  74. package/lib/adapters-api/dist/model/LinkCreateApiModel.js +127 -0
  75. package/lib/adapters-api/dist/model/LinkModel.js +149 -0
  76. package/lib/adapters-api/dist/model/LinkPostModel.js +137 -0
  77. package/lib/adapters-api/dist/model/LinkPutModel.js +149 -0
  78. package/lib/adapters-api/dist/model/LinkShortApiResult.js +126 -0
  79. package/lib/adapters-api/dist/model/LinkType.js +73 -0
  80. package/lib/adapters-api/dist/model/LinkUpdateApiModel.js +140 -0
  81. package/lib/adapters-api/dist/model/ManualRerunApiResult.js +84 -0
  82. package/lib/adapters-api/dist/model/ManualRerunSelectTestResultsApiModel.js +109 -0
  83. package/lib/adapters-api/dist/model/ManualRerunTestResultApiModel.js +81 -0
  84. package/lib/adapters-api/dist/model/Operation.js +110 -0
  85. package/lib/adapters-api/dist/model/ParameterApiResult.js +154 -0
  86. package/lib/adapters-api/dist/model/ParameterIterationModel.js +100 -0
  87. package/lib/adapters-api/dist/model/ParameterShortApiResult.js +132 -0
  88. package/lib/adapters-api/dist/model/ParameterShortModel.js +158 -0
  89. package/lib/adapters-api/dist/model/ParametersFilterApiModel.js +98 -0
  90. package/lib/adapters-api/dist/model/ProblemDetails.js +124 -0
  91. package/lib/adapters-api/dist/model/ProjectApiResult.js +165 -0
  92. package/lib/adapters-api/dist/model/ProjectAttributesFilterModel.js +132 -0
  93. package/lib/adapters-api/dist/model/ProjectTypeModel.js +49 -0
  94. package/lib/adapters-api/dist/model/ProjectsFilterModel.js +209 -0
  95. package/lib/adapters-api/dist/model/SectionModel.js +180 -0
  96. package/lib/adapters-api/dist/model/SectionPostModel.js +178 -0
  97. package/lib/adapters-api/dist/model/SectionWithStepsModel.js +242 -0
  98. package/lib/adapters-api/dist/model/SharedStepModel.js +145 -0
  99. package/lib/adapters-api/dist/model/SharedStepResultApiModel.js +102 -0
  100. package/lib/adapters-api/dist/model/StepCommentApiModel.js +207 -0
  101. package/lib/adapters-api/dist/model/StepModel.js +163 -0
  102. package/lib/adapters-api/dist/model/StepPostModel.js +126 -0
  103. package/lib/adapters-api/dist/model/StepResultApiModel.js +149 -0
  104. package/lib/adapters-api/dist/model/TagModel.js +88 -0
  105. package/lib/adapters-api/dist/model/TestResultLinkApiResult.js +153 -0
  106. package/lib/adapters-api/dist/model/TestResultOutcome.js +67 -0
  107. package/lib/adapters-api/dist/model/TestResultResponse.js +400 -0
  108. package/lib/adapters-api/dist/model/TestResultShortResponse.js +311 -0
  109. package/lib/adapters-api/dist/model/TestResultStepCommentUpdateRequest.js +152 -0
  110. package/lib/adapters-api/dist/model/TestResultUpdateRequest.js +285 -0
  111. package/lib/adapters-api/dist/model/TestResultsFilterApiModel.js +226 -0
  112. package/lib/adapters-api/dist/model/TestRunApiResult.js +196 -0
  113. package/lib/adapters-api/dist/model/TestRunState.js +61 -0
  114. package/lib/adapters-api/dist/model/TestStatusApiResult.js +114 -0
  115. package/lib/adapters-api/dist/model/TestStatusApiType.js +67 -0
  116. package/lib/adapters-api/dist/model/TestStatusModel.js +149 -0
  117. package/lib/adapters-api/dist/model/TestStatusType.js +67 -0
  118. package/lib/adapters-api/dist/model/UpdateEmptyTestRunApiModel.js +187 -0
  119. package/lib/adapters-api/dist/model/UpdateLinkApiModel.js +140 -0
  120. package/lib/adapters-api/dist/model/ValidationProblemDetails.js +144 -0
  121. package/lib/adapters-api/dist/model/WorkItemApiResult.js +499 -0
  122. package/lib/adapters-api/dist/model/WorkItemEntityTypeApiModel.js +55 -0
  123. package/lib/adapters-api/dist/model/WorkItemFilterApiModel.js +309 -0
  124. package/lib/adapters-api/dist/model/WorkItemIdApiModel.js +89 -0
  125. package/lib/adapters-api/dist/model/WorkItemParameterKeyApiModel.js +89 -0
  126. package/lib/adapters-api/dist/model/WorkItemParameterKeyApiResult.js +88 -0
  127. package/lib/adapters-api/dist/model/WorkItemPriorityApiModel.js +67 -0
  128. package/lib/adapters-api/dist/model/WorkItemPriorityModel.js +67 -0
  129. package/lib/adapters-api/dist/model/WorkItemSelectApiModel.js +90 -0
  130. package/lib/adapters-api/dist/model/WorkItemShortApiResult.js +316 -0
  131. package/lib/adapters-api/dist/model/WorkItemSourceTypeModel.js +49 -0
  132. package/lib/adapters-api/dist/model/WorkItemStateApiModel.js +55 -0
  133. package/lib/adapters-api/dist/model/WorkItemStates.js +55 -0
  134. package/lib/adapters-api/dist/model/WorkItemTypeModel.js +55 -0
  135. package/lib/adapters-api/dist/model/WorkflowApiResult.js +111 -0
  136. package/lib/adapters-api/dist/model/WorkflowStatusApiResult.js +114 -0
  137. package/lib/adapters-api/index.d.ts +8862 -0
  138. package/lib/common/base.converter.d.ts +16 -17
  139. package/lib/common/base.converter.js +12 -14
  140. package/lib/common/base.service.d.ts +1 -1
  141. package/lib/common/base.service.js +6 -36
  142. package/lib/services/attachments/attachments.service.d.ts +1 -2
  143. package/lib/services/attachments/attachments.service.js +7 -7
  144. package/lib/services/autotests/autotests.converter.d.ts +2 -3
  145. package/lib/services/autotests/autotests.converter.js +0 -5
  146. package/lib/services/autotests/autotests.service.d.ts +1 -2
  147. package/lib/services/autotests/autotests.service.js +11 -44
  148. package/lib/services/testresults/testresults.converter.d.ts +4 -5
  149. package/lib/services/testresults/testresults.converter.js +0 -15
  150. package/lib/services/testresults/testresults.service.d.ts +2 -3
  151. package/lib/services/testresults/testresults.service.js +16 -44
  152. package/lib/services/testresults/testresults.type.d.ts +1 -1
  153. package/lib/services/testruns/testruns.converter.d.ts +12 -13
  154. package/lib/services/testruns/testruns.converter.js +19 -8
  155. package/lib/services/testruns/testruns.service.d.ts +1 -2
  156. package/lib/services/testruns/testruns.service.js +13 -46
  157. package/package.json +7 -5
@@ -0,0 +1,309 @@
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 _Int32RangeSelectorModel = _interopRequireDefault(require("./Int32RangeSelectorModel"));
9
+ var _WorkItemPriorityModel = _interopRequireDefault(require("./WorkItemPriorityModel"));
10
+ var _WorkItemSourceTypeModel = _interopRequireDefault(require("./WorkItemSourceTypeModel"));
11
+ var _WorkItemStates = _interopRequireDefault(require("./WorkItemStates"));
12
+ var _WorkItemTypeModel = _interopRequireDefault(require("./WorkItemTypeModel"));
13
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
14
+ /**
15
+ * API
16
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
17
+ *
18
+ * The version of the OpenAPI document: adapters
19
+ *
20
+ *
21
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
22
+ * https://openapi-generator.tech
23
+ * Do not edit the class manually.
24
+ *
25
+ */
26
+
27
+ /**
28
+ * The WorkItemFilterApiModel model module.
29
+ * @module model/WorkItemFilterApiModel
30
+ * @version 1.0.0
31
+ */
32
+ class WorkItemFilterApiModel {
33
+ /**
34
+ * Constructs a new <code>WorkItemFilterApiModel</code>.
35
+ * @alias module:model/WorkItemFilterApiModel
36
+ */
37
+ constructor() {
38
+ WorkItemFilterApiModel.initialize(this);
39
+ }
40
+
41
+ /**
42
+ * Initializes the fields of this object.
43
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
44
+ * Only for internal use.
45
+ */
46
+ static initialize(obj) {}
47
+
48
+ /**
49
+ * Constructs a <code>WorkItemFilterApiModel</code> from a plain JavaScript object, optionally creating a new instance.
50
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
51
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
52
+ * @param {module:model/WorkItemFilterApiModel} obj Optional instance to populate.
53
+ * @return {module:model/WorkItemFilterApiModel} The populated <code>WorkItemFilterApiModel</code> instance.
54
+ */
55
+ static constructFromObject(data, obj) {
56
+ if (data) {
57
+ obj = obj || new WorkItemFilterApiModel();
58
+ if (data.hasOwnProperty('nameOrId')) {
59
+ obj['nameOrId'] = _ApiClient.default.convertToType(data['nameOrId'], 'String');
60
+ }
61
+ if (data.hasOwnProperty('includeIds')) {
62
+ obj['includeIds'] = _ApiClient.default.convertToType(data['includeIds'], ['String']);
63
+ }
64
+ if (data.hasOwnProperty('excludeIds')) {
65
+ obj['excludeIds'] = _ApiClient.default.convertToType(data['excludeIds'], ['String']);
66
+ }
67
+ if (data.hasOwnProperty('projectIds')) {
68
+ obj['projectIds'] = _ApiClient.default.convertToType(data['projectIds'], ['String']);
69
+ }
70
+ if (data.hasOwnProperty('name')) {
71
+ obj['name'] = _ApiClient.default.convertToType(data['name'], 'String');
72
+ }
73
+ if (data.hasOwnProperty('ids')) {
74
+ obj['ids'] = _ApiClient.default.convertToType(data['ids'], ['String']);
75
+ }
76
+ if (data.hasOwnProperty('globalIds')) {
77
+ obj['globalIds'] = _ApiClient.default.convertToType(data['globalIds'], ['Number']);
78
+ }
79
+ if (data.hasOwnProperty('attributes')) {
80
+ obj['attributes'] = _ApiClient.default.convertToType(data['attributes'], {
81
+ 'String': ['String']
82
+ });
83
+ }
84
+ if (data.hasOwnProperty('isDeleted')) {
85
+ obj['isDeleted'] = _ApiClient.default.convertToType(data['isDeleted'], 'Boolean');
86
+ }
87
+ if (data.hasOwnProperty('sectionIds')) {
88
+ obj['sectionIds'] = _ApiClient.default.convertToType(data['sectionIds'], ['String']);
89
+ }
90
+ if (data.hasOwnProperty('states')) {
91
+ obj['states'] = _ApiClient.default.convertToType(data['states'], [_WorkItemStates.default]);
92
+ }
93
+ if (data.hasOwnProperty('priorities')) {
94
+ obj['priorities'] = _ApiClient.default.convertToType(data['priorities'], [_WorkItemPriorityModel.default]);
95
+ }
96
+ if (data.hasOwnProperty('sourceTypes')) {
97
+ obj['sourceTypes'] = _ApiClient.default.convertToType(data['sourceTypes'], [_WorkItemSourceTypeModel.default]);
98
+ }
99
+ if (data.hasOwnProperty('types')) {
100
+ obj['types'] = _ApiClient.default.convertToType(data['types'], [_WorkItemTypeModel.default]);
101
+ }
102
+ if (data.hasOwnProperty('duration')) {
103
+ obj['duration'] = _ApiClient.default.convertToType(data['duration'], _Int32RangeSelectorModel.default);
104
+ }
105
+ if (data.hasOwnProperty('isAutomated')) {
106
+ obj['isAutomated'] = _ApiClient.default.convertToType(data['isAutomated'], 'Boolean');
107
+ }
108
+ if (data.hasOwnProperty('tags')) {
109
+ obj['tags'] = _ApiClient.default.convertToType(data['tags'], ['String']);
110
+ }
111
+ if (data.hasOwnProperty('excludeTags')) {
112
+ obj['excludeTags'] = _ApiClient.default.convertToType(data['excludeTags'], ['String']);
113
+ }
114
+ if (data.hasOwnProperty('autoTestIds')) {
115
+ obj['autoTestIds'] = _ApiClient.default.convertToType(data['autoTestIds'], ['String']);
116
+ }
117
+ }
118
+ return obj;
119
+ }
120
+
121
+ /**
122
+ * Validates the JSON data with respect to <code>WorkItemFilterApiModel</code>.
123
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
124
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>WorkItemFilterApiModel</code>.
125
+ */
126
+ static validateJSON(data) {
127
+ // ensure the json data is a string
128
+ if (data['nameOrId'] && !(typeof data['nameOrId'] === 'string' || data['nameOrId'] instanceof String)) {
129
+ throw new Error("Expected the field `nameOrId` to be a primitive type in the JSON string but got " + data['nameOrId']);
130
+ }
131
+ // ensure the json data is an array
132
+ if (!Array.isArray(data['includeIds'])) {
133
+ throw new Error("Expected the field `includeIds` to be an array in the JSON data but got " + data['includeIds']);
134
+ }
135
+ // ensure the json data is an array
136
+ if (!Array.isArray(data['excludeIds'])) {
137
+ throw new Error("Expected the field `excludeIds` to be an array in the JSON data but got " + data['excludeIds']);
138
+ }
139
+ // ensure the json data is an array
140
+ if (!Array.isArray(data['projectIds'])) {
141
+ throw new Error("Expected the field `projectIds` to be an array in the JSON data but got " + data['projectIds']);
142
+ }
143
+ // ensure the json data is a string
144
+ if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
145
+ throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
146
+ }
147
+ // ensure the json data is an array
148
+ if (!Array.isArray(data['ids'])) {
149
+ throw new Error("Expected the field `ids` to be an array in the JSON data but got " + data['ids']);
150
+ }
151
+ // ensure the json data is an array
152
+ if (!Array.isArray(data['globalIds'])) {
153
+ throw new Error("Expected the field `globalIds` to be an array in the JSON data but got " + data['globalIds']);
154
+ }
155
+ // ensure the json data is an array
156
+ if (!Array.isArray(data['sectionIds'])) {
157
+ throw new Error("Expected the field `sectionIds` to be an array in the JSON data but got " + data['sectionIds']);
158
+ }
159
+ // ensure the json data is an array
160
+ if (!Array.isArray(data['states'])) {
161
+ throw new Error("Expected the field `states` to be an array in the JSON data but got " + data['states']);
162
+ }
163
+ // ensure the json data is an array
164
+ if (!Array.isArray(data['priorities'])) {
165
+ throw new Error("Expected the field `priorities` to be an array in the JSON data but got " + data['priorities']);
166
+ }
167
+ // ensure the json data is an array
168
+ if (!Array.isArray(data['sourceTypes'])) {
169
+ throw new Error("Expected the field `sourceTypes` to be an array in the JSON data but got " + data['sourceTypes']);
170
+ }
171
+ // ensure the json data is an array
172
+ if (!Array.isArray(data['types'])) {
173
+ throw new Error("Expected the field `types` to be an array in the JSON data but got " + data['types']);
174
+ }
175
+ // validate the optional field `duration`
176
+ if (data['duration']) {
177
+ // data not null
178
+ _Int32RangeSelectorModel.default.validateJSON(data['duration']);
179
+ }
180
+ // ensure the json data is an array
181
+ if (!Array.isArray(data['tags'])) {
182
+ throw new Error("Expected the field `tags` to be an array in the JSON data but got " + data['tags']);
183
+ }
184
+ // ensure the json data is an array
185
+ if (!Array.isArray(data['excludeTags'])) {
186
+ throw new Error("Expected the field `excludeTags` to be an array in the JSON data but got " + data['excludeTags']);
187
+ }
188
+ // ensure the json data is an array
189
+ if (!Array.isArray(data['autoTestIds'])) {
190
+ throw new Error("Expected the field `autoTestIds` to be an array in the JSON data but got " + data['autoTestIds']);
191
+ }
192
+ return true;
193
+ }
194
+ }
195
+
196
+ /**
197
+ * Name or identifier (UUID) of work item
198
+ * @member {String} nameOrId
199
+ */
200
+ WorkItemFilterApiModel.prototype['nameOrId'] = undefined;
201
+
202
+ /**
203
+ * Collection of identifiers of work items which need to be included in result regardless of filtering
204
+ * @member {Array.<String>} includeIds
205
+ */
206
+ WorkItemFilterApiModel.prototype['includeIds'] = undefined;
207
+
208
+ /**
209
+ * Collection of identifiers of work items which need to be excluded from result regardless of filtering
210
+ * @member {Array.<String>} excludeIds
211
+ */
212
+ WorkItemFilterApiModel.prototype['excludeIds'] = undefined;
213
+
214
+ /**
215
+ * Collection of project identifiers
216
+ * @member {Array.<String>} projectIds
217
+ */
218
+ WorkItemFilterApiModel.prototype['projectIds'] = undefined;
219
+
220
+ /**
221
+ * Name of work item
222
+ * @member {String} name
223
+ */
224
+ WorkItemFilterApiModel.prototype['name'] = undefined;
225
+
226
+ /**
227
+ * Specifies a work item unique IDs to search for
228
+ * @member {Array.<String>} ids
229
+ */
230
+ WorkItemFilterApiModel.prototype['ids'] = undefined;
231
+
232
+ /**
233
+ * Collection of global (integer) identifiers
234
+ * @member {Array.<Number>} globalIds
235
+ */
236
+ WorkItemFilterApiModel.prototype['globalIds'] = undefined;
237
+
238
+ /**
239
+ * Custom attributes of work item
240
+ * @member {Object.<String, Array.<String>>} attributes
241
+ */
242
+ WorkItemFilterApiModel.prototype['attributes'] = undefined;
243
+
244
+ /**
245
+ * Is result must consist of only actual/deleted work items
246
+ * @member {Boolean} isDeleted
247
+ */
248
+ WorkItemFilterApiModel.prototype['isDeleted'] = undefined;
249
+
250
+ /**
251
+ * Collection of section identifiers
252
+ * @member {Array.<String>} sectionIds
253
+ */
254
+ WorkItemFilterApiModel.prototype['sectionIds'] = undefined;
255
+
256
+ /**
257
+ * Collection of states of work item
258
+ * @member {Array.<module:model/WorkItemStates>} states
259
+ */
260
+ WorkItemFilterApiModel.prototype['states'] = undefined;
261
+
262
+ /**
263
+ * Collection of priorities of work item
264
+ * @member {Array.<module:model/WorkItemPriorityModel>} priorities
265
+ */
266
+ WorkItemFilterApiModel.prototype['priorities'] = undefined;
267
+
268
+ /**
269
+ * Source type of work item (manual creation or AI generated)
270
+ * @member {Array.<module:model/WorkItemSourceTypeModel>} sourceTypes
271
+ */
272
+ WorkItemFilterApiModel.prototype['sourceTypes'] = undefined;
273
+
274
+ /**
275
+ * Collection of types of work item
276
+ * @member {Array.<module:model/WorkItemTypeModel>} types
277
+ */
278
+ WorkItemFilterApiModel.prototype['types'] = undefined;
279
+
280
+ /**
281
+ * Specifies a work item duration range to search for
282
+ * @member {module:model/Int32RangeSelectorModel} duration
283
+ */
284
+ WorkItemFilterApiModel.prototype['duration'] = undefined;
285
+
286
+ /**
287
+ * Is result must consist of only manual/automated work items
288
+ * @member {Boolean} isAutomated
289
+ */
290
+ WorkItemFilterApiModel.prototype['isAutomated'] = undefined;
291
+
292
+ /**
293
+ * Collection of tags
294
+ * @member {Array.<String>} tags
295
+ */
296
+ WorkItemFilterApiModel.prototype['tags'] = undefined;
297
+
298
+ /**
299
+ * Collection of tags to exclude
300
+ * @member {Array.<String>} excludeTags
301
+ */
302
+ WorkItemFilterApiModel.prototype['excludeTags'] = undefined;
303
+
304
+ /**
305
+ * Collection of identifiers of linked autotests
306
+ * @member {Array.<String>} autoTestIds
307
+ */
308
+ WorkItemFilterApiModel.prototype['autoTestIds'] = undefined;
309
+ var _default = exports.default = WorkItemFilterApiModel;
@@ -0,0 +1,89 @@
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
+ * The WorkItemIdApiModel model module.
24
+ * @module model/WorkItemIdApiModel
25
+ * @version 1.0.0
26
+ */
27
+ class WorkItemIdApiModel {
28
+ /**
29
+ * Constructs a new <code>WorkItemIdApiModel</code>.
30
+ * @alias module:model/WorkItemIdApiModel
31
+ * @param id {String} Work Item ID or Global ID
32
+ */
33
+ constructor(id) {
34
+ WorkItemIdApiModel.initialize(this, id);
35
+ }
36
+
37
+ /**
38
+ * Initializes the fields of this object.
39
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
40
+ * Only for internal use.
41
+ */
42
+ static initialize(obj, id) {
43
+ obj['id'] = id;
44
+ }
45
+
46
+ /**
47
+ * Constructs a <code>WorkItemIdApiModel</code> from a plain JavaScript object, optionally creating a new instance.
48
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
49
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
50
+ * @param {module:model/WorkItemIdApiModel} obj Optional instance to populate.
51
+ * @return {module:model/WorkItemIdApiModel} The populated <code>WorkItemIdApiModel</code> instance.
52
+ */
53
+ static constructFromObject(data, obj) {
54
+ if (data) {
55
+ obj = obj || new WorkItemIdApiModel();
56
+ if (data.hasOwnProperty('id')) {
57
+ obj['id'] = _ApiClient.default.convertToType(data['id'], 'String');
58
+ }
59
+ }
60
+ return obj;
61
+ }
62
+
63
+ /**
64
+ * Validates the JSON data with respect to <code>WorkItemIdApiModel</code>.
65
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
66
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>WorkItemIdApiModel</code>.
67
+ */
68
+ static validateJSON(data) {
69
+ // check to make sure all required properties are present in the JSON string
70
+ for (const property of WorkItemIdApiModel.RequiredProperties) {
71
+ if (!data.hasOwnProperty(property)) {
72
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
73
+ }
74
+ }
75
+ // ensure the json data is a string
76
+ if (data['id'] && !(typeof data['id'] === 'string' || data['id'] instanceof String)) {
77
+ throw new Error("Expected the field `id` to be a primitive type in the JSON string but got " + data['id']);
78
+ }
79
+ return true;
80
+ }
81
+ }
82
+ WorkItemIdApiModel.RequiredProperties = ["id"];
83
+
84
+ /**
85
+ * Work Item ID or Global ID
86
+ * @member {String} id
87
+ */
88
+ WorkItemIdApiModel.prototype['id'] = undefined;
89
+ var _default = exports.default = WorkItemIdApiModel;
@@ -0,0 +1,89 @@
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
+ * The WorkItemParameterKeyApiModel model module.
24
+ * @module model/WorkItemParameterKeyApiModel
25
+ * @version 1.0.0
26
+ */
27
+ class WorkItemParameterKeyApiModel {
28
+ /**
29
+ * Constructs a new <code>WorkItemParameterKeyApiModel</code>.
30
+ * @alias module:model/WorkItemParameterKeyApiModel
31
+ * @param id {String} ID of the parameter key to assign
32
+ */
33
+ constructor(id) {
34
+ WorkItemParameterKeyApiModel.initialize(this, id);
35
+ }
36
+
37
+ /**
38
+ * Initializes the fields of this object.
39
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
40
+ * Only for internal use.
41
+ */
42
+ static initialize(obj, id) {
43
+ obj['id'] = id;
44
+ }
45
+
46
+ /**
47
+ * Constructs a <code>WorkItemParameterKeyApiModel</code> from a plain JavaScript object, optionally creating a new instance.
48
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
49
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
50
+ * @param {module:model/WorkItemParameterKeyApiModel} obj Optional instance to populate.
51
+ * @return {module:model/WorkItemParameterKeyApiModel} The populated <code>WorkItemParameterKeyApiModel</code> instance.
52
+ */
53
+ static constructFromObject(data, obj) {
54
+ if (data) {
55
+ obj = obj || new WorkItemParameterKeyApiModel();
56
+ if (data.hasOwnProperty('id')) {
57
+ obj['id'] = _ApiClient.default.convertToType(data['id'], 'String');
58
+ }
59
+ }
60
+ return obj;
61
+ }
62
+
63
+ /**
64
+ * Validates the JSON data with respect to <code>WorkItemParameterKeyApiModel</code>.
65
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
66
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>WorkItemParameterKeyApiModel</code>.
67
+ */
68
+ static validateJSON(data) {
69
+ // check to make sure all required properties are present in the JSON string
70
+ for (const property of WorkItemParameterKeyApiModel.RequiredProperties) {
71
+ if (!data.hasOwnProperty(property)) {
72
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
73
+ }
74
+ }
75
+ // ensure the json data is a string
76
+ if (data['id'] && !(typeof data['id'] === 'string' || data['id'] instanceof String)) {
77
+ throw new Error("Expected the field `id` to be a primitive type in the JSON string but got " + data['id']);
78
+ }
79
+ return true;
80
+ }
81
+ }
82
+ WorkItemParameterKeyApiModel.RequiredProperties = ["id"];
83
+
84
+ /**
85
+ * ID of the parameter key to assign
86
+ * @member {String} id
87
+ */
88
+ WorkItemParameterKeyApiModel.prototype['id'] = undefined;
89
+ var _default = exports.default = WorkItemParameterKeyApiModel;
@@ -0,0 +1,88 @@
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
+ * The WorkItemParameterKeyApiResult model module.
24
+ * @module model/WorkItemParameterKeyApiResult
25
+ * @version 1.0.0
26
+ */
27
+ class WorkItemParameterKeyApiResult {
28
+ /**
29
+ * Constructs a new <code>WorkItemParameterKeyApiResult</code>.
30
+ * @alias module:model/WorkItemParameterKeyApiResult
31
+ * @param id {String}
32
+ */
33
+ constructor(id) {
34
+ WorkItemParameterKeyApiResult.initialize(this, id);
35
+ }
36
+
37
+ /**
38
+ * Initializes the fields of this object.
39
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
40
+ * Only for internal use.
41
+ */
42
+ static initialize(obj, id) {
43
+ obj['id'] = id;
44
+ }
45
+
46
+ /**
47
+ * Constructs a <code>WorkItemParameterKeyApiResult</code> from a plain JavaScript object, optionally creating a new instance.
48
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
49
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
50
+ * @param {module:model/WorkItemParameterKeyApiResult} obj Optional instance to populate.
51
+ * @return {module:model/WorkItemParameterKeyApiResult} The populated <code>WorkItemParameterKeyApiResult</code> instance.
52
+ */
53
+ static constructFromObject(data, obj) {
54
+ if (data) {
55
+ obj = obj || new WorkItemParameterKeyApiResult();
56
+ if (data.hasOwnProperty('id')) {
57
+ obj['id'] = _ApiClient.default.convertToType(data['id'], 'String');
58
+ }
59
+ }
60
+ return obj;
61
+ }
62
+
63
+ /**
64
+ * Validates the JSON data with respect to <code>WorkItemParameterKeyApiResult</code>.
65
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
66
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>WorkItemParameterKeyApiResult</code>.
67
+ */
68
+ static validateJSON(data) {
69
+ // check to make sure all required properties are present in the JSON string
70
+ for (const property of WorkItemParameterKeyApiResult.RequiredProperties) {
71
+ if (!data.hasOwnProperty(property)) {
72
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
73
+ }
74
+ }
75
+ // ensure the json data is a string
76
+ if (data['id'] && !(typeof data['id'] === 'string' || data['id'] instanceof String)) {
77
+ throw new Error("Expected the field `id` to be a primitive type in the JSON string but got " + data['id']);
78
+ }
79
+ return true;
80
+ }
81
+ }
82
+ WorkItemParameterKeyApiResult.RequiredProperties = ["id"];
83
+
84
+ /**
85
+ * @member {String} id
86
+ */
87
+ WorkItemParameterKeyApiResult.prototype['id'] = undefined;
88
+ var _default = exports.default = WorkItemParameterKeyApiResult;
@@ -0,0 +1,67 @@
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 WorkItemPriorityApiModel.
24
+ * @enum {}
25
+ * @readonly
26
+ */
27
+ class WorkItemPriorityApiModel {
28
+ /**
29
+ * value: "Lowest"
30
+ * @const
31
+ */
32
+ "Lowest" = "Lowest";
33
+
34
+ /**
35
+ * value: "Low"
36
+ * @const
37
+ */
38
+ "Low" = "Low";
39
+
40
+ /**
41
+ * value: "Medium"
42
+ * @const
43
+ */
44
+ "Medium" = "Medium";
45
+
46
+ /**
47
+ * value: "High"
48
+ * @const
49
+ */
50
+ "High" = "High";
51
+
52
+ /**
53
+ * value: "Highest"
54
+ * @const
55
+ */
56
+ "Highest" = "Highest";
57
+
58
+ /**
59
+ * Returns a <code>WorkItemPriorityApiModel</code> enum value from a Javascript object name.
60
+ * @param {Object} data The plain JavaScript object containing the name of the enum value.
61
+ * @return {module:model/WorkItemPriorityApiModel} The enum <code>WorkItemPriorityApiModel</code> value.
62
+ */
63
+ static constructFromObject(object) {
64
+ return object;
65
+ }
66
+ }
67
+ exports.default = WorkItemPriorityApiModel;