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.
- package/lib/adapters-api/dist/ApiClient.js +683 -0
- package/lib/adapters-api/dist/api/AttachmentsApi.js +165 -0
- package/lib/adapters-api/dist/api/AutoTestsApi.js +536 -0
- package/lib/adapters-api/dist/api/ConfigurationsApi.js +91 -0
- package/lib/adapters-api/dist/api/ParametersApi.js +159 -0
- package/lib/adapters-api/dist/api/ProjectAttributesApi.js +140 -0
- package/lib/adapters-api/dist/api/ProjectSectionsApi.js +96 -0
- package/lib/adapters-api/dist/api/ProjectWorkItemsApi.js +99 -0
- package/lib/adapters-api/dist/api/ProjectsApi.js +200 -0
- package/lib/adapters-api/dist/api/SectionsApi.js +118 -0
- package/lib/adapters-api/dist/api/TestResultsApi.js +168 -0
- package/lib/adapters-api/dist/api/TestRunsApi.js +331 -0
- package/lib/adapters-api/dist/api/WorkItemsApi.js +170 -0
- package/lib/adapters-api/dist/api/WorkflowsApi.js +75 -0
- package/lib/adapters-api/dist/index.js +951 -0
- package/lib/adapters-api/dist/model/AssignAttachmentApiModel.js +89 -0
- package/lib/adapters-api/dist/model/AssignAutoTestCaseIdApiModel.js +89 -0
- package/lib/adapters-api/dist/model/AssignIterationApiModel.js +112 -0
- package/lib/adapters-api/dist/model/AttachmentApiResult.js +145 -0
- package/lib/adapters-api/dist/model/AttachmentModel.js +193 -0
- package/lib/adapters-api/dist/model/AttachmentPutModel.js +89 -0
- package/lib/adapters-api/dist/model/AttachmentPutModelAutoTestStepResultsModel.js +196 -0
- package/lib/adapters-api/dist/model/AttachmentUpdateRequest.js +89 -0
- package/lib/adapters-api/dist/model/AutoTest.js +327 -0
- package/lib/adapters-api/dist/model/AutoTestApiResult.js +323 -0
- package/lib/adapters-api/dist/model/AutoTestCaseApiModel.js +89 -0
- package/lib/adapters-api/dist/model/AutoTestCreateApiModel.js +323 -0
- package/lib/adapters-api/dist/model/AutoTestFilterApiModel.js +201 -0
- package/lib/adapters-api/dist/model/AutoTestIdModel.js +88 -0
- package/lib/adapters-api/dist/model/AutoTestModel.js +488 -0
- package/lib/adapters-api/dist/model/AutoTestResultReasonShort.js +99 -0
- package/lib/adapters-api/dist/model/AutoTestResultsForTestRunModel.js +334 -0
- package/lib/adapters-api/dist/model/AutoTestSearchApiModel.js +96 -0
- package/lib/adapters-api/dist/model/AutoTestSearchIncludeApiModel.js +93 -0
- package/lib/adapters-api/dist/model/AutoTestStep.js +123 -0
- package/lib/adapters-api/dist/model/AutoTestStepApiModel.js +123 -0
- package/lib/adapters-api/dist/model/AutoTestStepApiResult.js +123 -0
- package/lib/adapters-api/dist/model/AutoTestStepModel.js +123 -0
- package/lib/adapters-api/dist/model/AutoTestStepResult.js +196 -0
- package/lib/adapters-api/dist/model/AutoTestStepResultUpdateRequest.js +196 -0
- package/lib/adapters-api/dist/model/AutoTestUpdateApiModel.js +327 -0
- package/lib/adapters-api/dist/model/AutoTestWorkItemIdentifierApiResult.js +100 -0
- package/lib/adapters-api/dist/model/AvailableTestResultOutcome.js +67 -0
- package/lib/adapters-api/dist/model/ConfigurationFilterModel.js +114 -0
- package/lib/adapters-api/dist/model/ConfigurationModel.js +213 -0
- package/lib/adapters-api/dist/model/ConfigurationShortModel.js +102 -0
- package/lib/adapters-api/dist/model/CreateEmptyTestRunApiModel.js +185 -0
- package/lib/adapters-api/dist/model/CreateLinkApiModel.js +127 -0
- package/lib/adapters-api/dist/model/CreateParameterApiModel.js +117 -0
- package/lib/adapters-api/dist/model/CreateProjectApiModel.js +124 -0
- package/lib/adapters-api/dist/model/CreateStepApiModel.js +131 -0
- package/lib/adapters-api/dist/model/CreateWorkItemApiModel.js +384 -0
- package/lib/adapters-api/dist/model/CustomAttributeApiResult.js +184 -0
- package/lib/adapters-api/dist/model/CustomAttributeGetModel.js +184 -0
- package/lib/adapters-api/dist/model/CustomAttributeOptionApiResult.js +124 -0
- package/lib/adapters-api/dist/model/CustomAttributeOptionModel.js +124 -0
- package/lib/adapters-api/dist/model/CustomAttributePutModel.js +182 -0
- package/lib/adapters-api/dist/model/CustomAttributeType.js +73 -0
- package/lib/adapters-api/dist/model/CustomAttributeTypesEnum.js +73 -0
- package/lib/adapters-api/dist/model/DateTimeRangeSelectorModel.js +82 -0
- package/lib/adapters-api/dist/model/DeletionState.js +55 -0
- package/lib/adapters-api/dist/model/DetailedProjectApiResult.js +204 -0
- package/lib/adapters-api/dist/model/FailureCategoryModel.js +67 -0
- package/lib/adapters-api/dist/model/GuidExtractionModel.js +90 -0
- package/lib/adapters-api/dist/model/ImageResizeType.js +49 -0
- package/lib/adapters-api/dist/model/Int32RangeSelectorModel.js +82 -0
- package/lib/adapters-api/dist/model/Int64RangeSelectorModel.js +82 -0
- package/lib/adapters-api/dist/model/IterationApiResult.js +109 -0
- package/lib/adapters-api/dist/model/IterationModel.js +109 -0
- package/lib/adapters-api/dist/model/LabelApiModel.js +100 -0
- package/lib/adapters-api/dist/model/LabelApiResult.js +100 -0
- package/lib/adapters-api/dist/model/LabelShortModel.js +100 -0
- package/lib/adapters-api/dist/model/LinkApiResult.js +140 -0
- package/lib/adapters-api/dist/model/LinkCreateApiModel.js +127 -0
- package/lib/adapters-api/dist/model/LinkModel.js +149 -0
- package/lib/adapters-api/dist/model/LinkPostModel.js +137 -0
- package/lib/adapters-api/dist/model/LinkPutModel.js +149 -0
- package/lib/adapters-api/dist/model/LinkShortApiResult.js +126 -0
- package/lib/adapters-api/dist/model/LinkType.js +73 -0
- package/lib/adapters-api/dist/model/LinkUpdateApiModel.js +140 -0
- package/lib/adapters-api/dist/model/ManualRerunApiResult.js +84 -0
- package/lib/adapters-api/dist/model/ManualRerunSelectTestResultsApiModel.js +109 -0
- package/lib/adapters-api/dist/model/ManualRerunTestResultApiModel.js +81 -0
- package/lib/adapters-api/dist/model/Operation.js +110 -0
- package/lib/adapters-api/dist/model/ParameterApiResult.js +154 -0
- package/lib/adapters-api/dist/model/ParameterIterationModel.js +100 -0
- package/lib/adapters-api/dist/model/ParameterShortApiResult.js +132 -0
- package/lib/adapters-api/dist/model/ParameterShortModel.js +158 -0
- package/lib/adapters-api/dist/model/ParametersFilterApiModel.js +98 -0
- package/lib/adapters-api/dist/model/ProblemDetails.js +124 -0
- package/lib/adapters-api/dist/model/ProjectApiResult.js +165 -0
- package/lib/adapters-api/dist/model/ProjectAttributesFilterModel.js +132 -0
- package/lib/adapters-api/dist/model/ProjectTypeModel.js +49 -0
- package/lib/adapters-api/dist/model/ProjectsFilterModel.js +209 -0
- package/lib/adapters-api/dist/model/SectionModel.js +180 -0
- package/lib/adapters-api/dist/model/SectionPostModel.js +178 -0
- package/lib/adapters-api/dist/model/SectionWithStepsModel.js +242 -0
- package/lib/adapters-api/dist/model/SharedStepModel.js +145 -0
- package/lib/adapters-api/dist/model/SharedStepResultApiModel.js +102 -0
- package/lib/adapters-api/dist/model/StepCommentApiModel.js +207 -0
- package/lib/adapters-api/dist/model/StepModel.js +163 -0
- package/lib/adapters-api/dist/model/StepPostModel.js +126 -0
- package/lib/adapters-api/dist/model/StepResultApiModel.js +149 -0
- package/lib/adapters-api/dist/model/TagModel.js +88 -0
- package/lib/adapters-api/dist/model/TestResultLinkApiResult.js +153 -0
- package/lib/adapters-api/dist/model/TestResultOutcome.js +67 -0
- package/lib/adapters-api/dist/model/TestResultResponse.js +400 -0
- package/lib/adapters-api/dist/model/TestResultShortResponse.js +311 -0
- package/lib/adapters-api/dist/model/TestResultStepCommentUpdateRequest.js +152 -0
- package/lib/adapters-api/dist/model/TestResultUpdateRequest.js +285 -0
- package/lib/adapters-api/dist/model/TestResultsFilterApiModel.js +226 -0
- package/lib/adapters-api/dist/model/TestRunApiResult.js +196 -0
- package/lib/adapters-api/dist/model/TestRunState.js +61 -0
- package/lib/adapters-api/dist/model/TestStatusApiResult.js +114 -0
- package/lib/adapters-api/dist/model/TestStatusApiType.js +67 -0
- package/lib/adapters-api/dist/model/TestStatusModel.js +149 -0
- package/lib/adapters-api/dist/model/TestStatusType.js +67 -0
- package/lib/adapters-api/dist/model/UpdateEmptyTestRunApiModel.js +187 -0
- package/lib/adapters-api/dist/model/UpdateLinkApiModel.js +140 -0
- package/lib/adapters-api/dist/model/ValidationProblemDetails.js +144 -0
- package/lib/adapters-api/dist/model/WorkItemApiResult.js +499 -0
- package/lib/adapters-api/dist/model/WorkItemEntityTypeApiModel.js +55 -0
- package/lib/adapters-api/dist/model/WorkItemFilterApiModel.js +309 -0
- package/lib/adapters-api/dist/model/WorkItemIdApiModel.js +89 -0
- package/lib/adapters-api/dist/model/WorkItemParameterKeyApiModel.js +89 -0
- package/lib/adapters-api/dist/model/WorkItemParameterKeyApiResult.js +88 -0
- package/lib/adapters-api/dist/model/WorkItemPriorityApiModel.js +67 -0
- package/lib/adapters-api/dist/model/WorkItemPriorityModel.js +67 -0
- package/lib/adapters-api/dist/model/WorkItemSelectApiModel.js +90 -0
- package/lib/adapters-api/dist/model/WorkItemShortApiResult.js +316 -0
- package/lib/adapters-api/dist/model/WorkItemSourceTypeModel.js +49 -0
- package/lib/adapters-api/dist/model/WorkItemStateApiModel.js +55 -0
- package/lib/adapters-api/dist/model/WorkItemStates.js +55 -0
- package/lib/adapters-api/dist/model/WorkItemTypeModel.js +55 -0
- package/lib/adapters-api/dist/model/WorkflowApiResult.js +111 -0
- package/lib/adapters-api/dist/model/WorkflowStatusApiResult.js +114 -0
- package/lib/adapters-api/index.d.ts +8862 -0
- package/lib/common/base.converter.d.ts +16 -17
- package/lib/common/base.converter.js +12 -14
- package/lib/common/base.service.d.ts +1 -1
- package/lib/common/base.service.js +6 -36
- package/lib/services/attachments/attachments.service.d.ts +1 -2
- package/lib/services/attachments/attachments.service.js +7 -7
- package/lib/services/autotests/autotests.converter.d.ts +2 -3
- package/lib/services/autotests/autotests.converter.js +0 -5
- package/lib/services/autotests/autotests.service.d.ts +1 -2
- package/lib/services/autotests/autotests.service.js +11 -44
- package/lib/services/testresults/testresults.converter.d.ts +4 -5
- package/lib/services/testresults/testresults.converter.js +0 -15
- package/lib/services/testresults/testresults.service.d.ts +2 -3
- package/lib/services/testresults/testresults.service.js +16 -44
- package/lib/services/testresults/testresults.type.d.ts +1 -1
- package/lib/services/testruns/testruns.converter.d.ts +12 -13
- package/lib/services/testruns/testruns.converter.js +19 -8
- package/lib/services/testruns/testruns.service.d.ts +1 -2
- package/lib/services/testruns/testruns.service.js +13 -46
- package/package.json +7 -5
|
@@ -0,0 +1,114 @@
|
|
|
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 ConfigurationFilterModel model module.
|
|
24
|
+
* @module model/ConfigurationFilterModel
|
|
25
|
+
* @version 1.0.0
|
|
26
|
+
*/
|
|
27
|
+
class ConfigurationFilterModel {
|
|
28
|
+
/**
|
|
29
|
+
* Constructs a new <code>ConfigurationFilterModel</code>.
|
|
30
|
+
* @alias module:model/ConfigurationFilterModel
|
|
31
|
+
*/
|
|
32
|
+
constructor() {
|
|
33
|
+
ConfigurationFilterModel.initialize(this);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Initializes the fields of this object.
|
|
38
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
39
|
+
* Only for internal use.
|
|
40
|
+
*/
|
|
41
|
+
static initialize(obj) {}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Constructs a <code>ConfigurationFilterModel</code> from a plain JavaScript object, optionally creating a new instance.
|
|
45
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
46
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
47
|
+
* @param {module:model/ConfigurationFilterModel} obj Optional instance to populate.
|
|
48
|
+
* @return {module:model/ConfigurationFilterModel} The populated <code>ConfigurationFilterModel</code> instance.
|
|
49
|
+
*/
|
|
50
|
+
static constructFromObject(data, obj) {
|
|
51
|
+
if (data) {
|
|
52
|
+
obj = obj || new ConfigurationFilterModel();
|
|
53
|
+
if (data.hasOwnProperty('projectIds')) {
|
|
54
|
+
obj['projectIds'] = _ApiClient.default.convertToType(data['projectIds'], ['String']);
|
|
55
|
+
}
|
|
56
|
+
if (data.hasOwnProperty('name')) {
|
|
57
|
+
obj['name'] = _ApiClient.default.convertToType(data['name'], 'String');
|
|
58
|
+
}
|
|
59
|
+
if (data.hasOwnProperty('isDeleted')) {
|
|
60
|
+
obj['isDeleted'] = _ApiClient.default.convertToType(data['isDeleted'], 'Boolean');
|
|
61
|
+
}
|
|
62
|
+
if (data.hasOwnProperty('globalIds')) {
|
|
63
|
+
obj['globalIds'] = _ApiClient.default.convertToType(data['globalIds'], ['Number']);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
return obj;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Validates the JSON data with respect to <code>ConfigurationFilterModel</code>.
|
|
71
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
72
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>ConfigurationFilterModel</code>.
|
|
73
|
+
*/
|
|
74
|
+
static validateJSON(data) {
|
|
75
|
+
// ensure the json data is an array
|
|
76
|
+
if (!Array.isArray(data['projectIds'])) {
|
|
77
|
+
throw new Error("Expected the field `projectIds` to be an array in the JSON data but got " + data['projectIds']);
|
|
78
|
+
}
|
|
79
|
+
// ensure the json data is a string
|
|
80
|
+
if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
|
|
81
|
+
throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
|
|
82
|
+
}
|
|
83
|
+
// ensure the json data is an array
|
|
84
|
+
if (!Array.isArray(data['globalIds'])) {
|
|
85
|
+
throw new Error("Expected the field `globalIds` to be an array in the JSON data but got " + data['globalIds']);
|
|
86
|
+
}
|
|
87
|
+
return true;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Collection of identifiers of projects from which configurations will be taken
|
|
93
|
+
* @member {Array.<String>} projectIds
|
|
94
|
+
*/
|
|
95
|
+
ConfigurationFilterModel.prototype['projectIds'] = undefined;
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Filter to search by name (case-insensitive, partial match)
|
|
99
|
+
* @member {String} name
|
|
100
|
+
*/
|
|
101
|
+
ConfigurationFilterModel.prototype['name'] = undefined;
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Is configurations deleted or existing
|
|
105
|
+
* @member {Boolean} isDeleted
|
|
106
|
+
*/
|
|
107
|
+
ConfigurationFilterModel.prototype['isDeleted'] = undefined;
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* Collection of global (integer) identifiers to filter configurations
|
|
111
|
+
* @member {Array.<Number>} globalIds
|
|
112
|
+
*/
|
|
113
|
+
ConfigurationFilterModel.prototype['globalIds'] = undefined;
|
|
114
|
+
var _default = exports.default = ConfigurationFilterModel;
|
|
@@ -0,0 +1,213 @@
|
|
|
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 ConfigurationModel model module.
|
|
24
|
+
* @module model/ConfigurationModel
|
|
25
|
+
* @version 1.0.0
|
|
26
|
+
*/
|
|
27
|
+
class ConfigurationModel {
|
|
28
|
+
/**
|
|
29
|
+
* Constructs a new <code>ConfigurationModel</code>.
|
|
30
|
+
* @alias module:model/ConfigurationModel
|
|
31
|
+
* @param projectId {String} This property is used to link configuration with project
|
|
32
|
+
* @param isDefault {Boolean}
|
|
33
|
+
* @param createdDate {Date}
|
|
34
|
+
* @param createdById {String}
|
|
35
|
+
* @param globalId {Number}
|
|
36
|
+
* @param id {String} Unique ID of the entity
|
|
37
|
+
* @param isDeleted {Boolean} Indicates if the entity is deleted
|
|
38
|
+
*/
|
|
39
|
+
constructor(projectId, isDefault, createdDate, createdById, globalId, id, isDeleted) {
|
|
40
|
+
ConfigurationModel.initialize(this, projectId, isDefault, createdDate, createdById, globalId, id, isDeleted);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Initializes the fields of this object.
|
|
45
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
46
|
+
* Only for internal use.
|
|
47
|
+
*/
|
|
48
|
+
static initialize(obj, projectId, isDefault, createdDate, createdById, globalId, id, isDeleted) {
|
|
49
|
+
obj['projectId'] = projectId;
|
|
50
|
+
obj['isDefault'] = isDefault;
|
|
51
|
+
obj['createdDate'] = createdDate;
|
|
52
|
+
obj['createdById'] = createdById;
|
|
53
|
+
obj['globalId'] = globalId;
|
|
54
|
+
obj['id'] = id;
|
|
55
|
+
obj['isDeleted'] = isDeleted;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Constructs a <code>ConfigurationModel</code> from a plain JavaScript object, optionally creating a new instance.
|
|
60
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
61
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
62
|
+
* @param {module:model/ConfigurationModel} obj Optional instance to populate.
|
|
63
|
+
* @return {module:model/ConfigurationModel} The populated <code>ConfigurationModel</code> instance.
|
|
64
|
+
*/
|
|
65
|
+
static constructFromObject(data, obj) {
|
|
66
|
+
if (data) {
|
|
67
|
+
obj = obj || new ConfigurationModel();
|
|
68
|
+
if (data.hasOwnProperty('description')) {
|
|
69
|
+
obj['description'] = _ApiClient.default.convertToType(data['description'], 'String');
|
|
70
|
+
}
|
|
71
|
+
if (data.hasOwnProperty('parameters')) {
|
|
72
|
+
obj['parameters'] = _ApiClient.default.convertToType(data['parameters'], {
|
|
73
|
+
'String': 'String'
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
if (data.hasOwnProperty('projectId')) {
|
|
77
|
+
obj['projectId'] = _ApiClient.default.convertToType(data['projectId'], 'String');
|
|
78
|
+
}
|
|
79
|
+
if (data.hasOwnProperty('isDefault')) {
|
|
80
|
+
obj['isDefault'] = _ApiClient.default.convertToType(data['isDefault'], 'Boolean');
|
|
81
|
+
}
|
|
82
|
+
if (data.hasOwnProperty('name')) {
|
|
83
|
+
obj['name'] = _ApiClient.default.convertToType(data['name'], 'String');
|
|
84
|
+
}
|
|
85
|
+
if (data.hasOwnProperty('createdDate')) {
|
|
86
|
+
obj['createdDate'] = _ApiClient.default.convertToType(data['createdDate'], 'Date');
|
|
87
|
+
}
|
|
88
|
+
if (data.hasOwnProperty('modifiedDate')) {
|
|
89
|
+
obj['modifiedDate'] = _ApiClient.default.convertToType(data['modifiedDate'], 'Date');
|
|
90
|
+
}
|
|
91
|
+
if (data.hasOwnProperty('createdById')) {
|
|
92
|
+
obj['createdById'] = _ApiClient.default.convertToType(data['createdById'], 'String');
|
|
93
|
+
}
|
|
94
|
+
if (data.hasOwnProperty('modifiedById')) {
|
|
95
|
+
obj['modifiedById'] = _ApiClient.default.convertToType(data['modifiedById'], 'String');
|
|
96
|
+
}
|
|
97
|
+
if (data.hasOwnProperty('globalId')) {
|
|
98
|
+
obj['globalId'] = _ApiClient.default.convertToType(data['globalId'], 'Number');
|
|
99
|
+
}
|
|
100
|
+
if (data.hasOwnProperty('id')) {
|
|
101
|
+
obj['id'] = _ApiClient.default.convertToType(data['id'], 'String');
|
|
102
|
+
}
|
|
103
|
+
if (data.hasOwnProperty('isDeleted')) {
|
|
104
|
+
obj['isDeleted'] = _ApiClient.default.convertToType(data['isDeleted'], 'Boolean');
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
return obj;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* Validates the JSON data with respect to <code>ConfigurationModel</code>.
|
|
112
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
113
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>ConfigurationModel</code>.
|
|
114
|
+
*/
|
|
115
|
+
static validateJSON(data) {
|
|
116
|
+
// check to make sure all required properties are present in the JSON string
|
|
117
|
+
for (const property of ConfigurationModel.RequiredProperties) {
|
|
118
|
+
if (!data.hasOwnProperty(property)) {
|
|
119
|
+
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
// ensure the json data is a string
|
|
123
|
+
if (data['description'] && !(typeof data['description'] === 'string' || data['description'] instanceof String)) {
|
|
124
|
+
throw new Error("Expected the field `description` to be a primitive type in the JSON string but got " + data['description']);
|
|
125
|
+
}
|
|
126
|
+
// ensure the json data is a string
|
|
127
|
+
if (data['projectId'] && !(typeof data['projectId'] === 'string' || data['projectId'] instanceof String)) {
|
|
128
|
+
throw new Error("Expected the field `projectId` to be a primitive type in the JSON string but got " + data['projectId']);
|
|
129
|
+
}
|
|
130
|
+
// ensure the json data is a string
|
|
131
|
+
if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
|
|
132
|
+
throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
|
|
133
|
+
}
|
|
134
|
+
// ensure the json data is a string
|
|
135
|
+
if (data['createdById'] && !(typeof data['createdById'] === 'string' || data['createdById'] instanceof String)) {
|
|
136
|
+
throw new Error("Expected the field `createdById` to be a primitive type in the JSON string but got " + data['createdById']);
|
|
137
|
+
}
|
|
138
|
+
// ensure the json data is a string
|
|
139
|
+
if (data['modifiedById'] && !(typeof data['modifiedById'] === 'string' || data['modifiedById'] instanceof String)) {
|
|
140
|
+
throw new Error("Expected the field `modifiedById` to be a primitive type in the JSON string but got " + data['modifiedById']);
|
|
141
|
+
}
|
|
142
|
+
// ensure the json data is a string
|
|
143
|
+
if (data['id'] && !(typeof data['id'] === 'string' || data['id'] instanceof String)) {
|
|
144
|
+
throw new Error("Expected the field `id` to be a primitive type in the JSON string but got " + data['id']);
|
|
145
|
+
}
|
|
146
|
+
return true;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
ConfigurationModel.RequiredProperties = ["projectId", "isDefault", "createdDate", "createdById", "globalId", "id", "isDeleted"];
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* @member {String} description
|
|
153
|
+
*/
|
|
154
|
+
ConfigurationModel.prototype['description'] = undefined;
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* @member {Object.<String, String>} parameters
|
|
158
|
+
*/
|
|
159
|
+
ConfigurationModel.prototype['parameters'] = undefined;
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* This property is used to link configuration with project
|
|
163
|
+
* @member {String} projectId
|
|
164
|
+
*/
|
|
165
|
+
ConfigurationModel.prototype['projectId'] = undefined;
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* @member {Boolean} isDefault
|
|
169
|
+
*/
|
|
170
|
+
ConfigurationModel.prototype['isDefault'] = undefined;
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* @member {String} name
|
|
174
|
+
*/
|
|
175
|
+
ConfigurationModel.prototype['name'] = undefined;
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* @member {Date} createdDate
|
|
179
|
+
*/
|
|
180
|
+
ConfigurationModel.prototype['createdDate'] = undefined;
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* @member {Date} modifiedDate
|
|
184
|
+
*/
|
|
185
|
+
ConfigurationModel.prototype['modifiedDate'] = undefined;
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* @member {String} createdById
|
|
189
|
+
*/
|
|
190
|
+
ConfigurationModel.prototype['createdById'] = undefined;
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* @member {String} modifiedById
|
|
194
|
+
*/
|
|
195
|
+
ConfigurationModel.prototype['modifiedById'] = undefined;
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* @member {Number} globalId
|
|
199
|
+
*/
|
|
200
|
+
ConfigurationModel.prototype['globalId'] = undefined;
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* Unique ID of the entity
|
|
204
|
+
* @member {String} id
|
|
205
|
+
*/
|
|
206
|
+
ConfigurationModel.prototype['id'] = undefined;
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* Indicates if the entity is deleted
|
|
210
|
+
* @member {Boolean} isDeleted
|
|
211
|
+
*/
|
|
212
|
+
ConfigurationModel.prototype['isDeleted'] = undefined;
|
|
213
|
+
var _default = exports.default = ConfigurationModel;
|
|
@@ -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
|
+
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 ConfigurationShortModel model module.
|
|
24
|
+
* @module model/ConfigurationShortModel
|
|
25
|
+
* @version 1.0.0
|
|
26
|
+
*/
|
|
27
|
+
class ConfigurationShortModel {
|
|
28
|
+
/**
|
|
29
|
+
* Constructs a new <code>ConfigurationShortModel</code>.
|
|
30
|
+
* @alias module:model/ConfigurationShortModel
|
|
31
|
+
* @param id {String}
|
|
32
|
+
* @param name {String}
|
|
33
|
+
*/
|
|
34
|
+
constructor(id, name) {
|
|
35
|
+
ConfigurationShortModel.initialize(this, id, name);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Initializes the fields of this object.
|
|
40
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
41
|
+
* Only for internal use.
|
|
42
|
+
*/
|
|
43
|
+
static initialize(obj, id, name) {
|
|
44
|
+
obj['id'] = id;
|
|
45
|
+
obj['name'] = name;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Constructs a <code>ConfigurationShortModel</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/ConfigurationShortModel} obj Optional instance to populate.
|
|
53
|
+
* @return {module:model/ConfigurationShortModel} The populated <code>ConfigurationShortModel</code> instance.
|
|
54
|
+
*/
|
|
55
|
+
static constructFromObject(data, obj) {
|
|
56
|
+
if (data) {
|
|
57
|
+
obj = obj || new ConfigurationShortModel();
|
|
58
|
+
if (data.hasOwnProperty('id')) {
|
|
59
|
+
obj['id'] = _ApiClient.default.convertToType(data['id'], 'String');
|
|
60
|
+
}
|
|
61
|
+
if (data.hasOwnProperty('name')) {
|
|
62
|
+
obj['name'] = _ApiClient.default.convertToType(data['name'], 'String');
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
return obj;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Validates the JSON data with respect to <code>ConfigurationShortModel</code>.
|
|
70
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
71
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>ConfigurationShortModel</code>.
|
|
72
|
+
*/
|
|
73
|
+
static validateJSON(data) {
|
|
74
|
+
// check to make sure all required properties are present in the JSON string
|
|
75
|
+
for (const property of ConfigurationShortModel.RequiredProperties) {
|
|
76
|
+
if (!data.hasOwnProperty(property)) {
|
|
77
|
+
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
// ensure the json data is a string
|
|
81
|
+
if (data['id'] && !(typeof data['id'] === 'string' || data['id'] instanceof String)) {
|
|
82
|
+
throw new Error("Expected the field `id` to be a primitive type in the JSON string but got " + data['id']);
|
|
83
|
+
}
|
|
84
|
+
// ensure the json data is a string
|
|
85
|
+
if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
|
|
86
|
+
throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
|
|
87
|
+
}
|
|
88
|
+
return true;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
ConfigurationShortModel.RequiredProperties = ["id", "name"];
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* @member {String} id
|
|
95
|
+
*/
|
|
96
|
+
ConfigurationShortModel.prototype['id'] = undefined;
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* @member {String} name
|
|
100
|
+
*/
|
|
101
|
+
ConfigurationShortModel.prototype['name'] = undefined;
|
|
102
|
+
var _default = exports.default = ConfigurationShortModel;
|
|
@@ -0,0 +1,185 @@
|
|
|
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 _AssignAttachmentApiModel = _interopRequireDefault(require("./AssignAttachmentApiModel"));
|
|
9
|
+
var _CreateLinkApiModel = _interopRequireDefault(require("./CreateLinkApiModel"));
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
|
+
/**
|
|
12
|
+
* API
|
|
13
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
14
|
+
*
|
|
15
|
+
* The version of the OpenAPI document: adapters
|
|
16
|
+
*
|
|
17
|
+
*
|
|
18
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
19
|
+
* https://openapi-generator.tech
|
|
20
|
+
* Do not edit the class manually.
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* The CreateEmptyTestRunApiModel model module.
|
|
26
|
+
* @module model/CreateEmptyTestRunApiModel
|
|
27
|
+
* @version 1.0.0
|
|
28
|
+
*/
|
|
29
|
+
class CreateEmptyTestRunApiModel {
|
|
30
|
+
/**
|
|
31
|
+
* Constructs a new <code>CreateEmptyTestRunApiModel</code>.
|
|
32
|
+
* @alias module:model/CreateEmptyTestRunApiModel
|
|
33
|
+
* @param projectId {String} Project unique identifier This property is to link test run with a project
|
|
34
|
+
*/
|
|
35
|
+
constructor(projectId) {
|
|
36
|
+
CreateEmptyTestRunApiModel.initialize(this, projectId);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Initializes the fields of this object.
|
|
41
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
42
|
+
* Only for internal use.
|
|
43
|
+
*/
|
|
44
|
+
static initialize(obj, projectId) {
|
|
45
|
+
obj['projectId'] = projectId;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Constructs a <code>CreateEmptyTestRunApiModel</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/CreateEmptyTestRunApiModel} obj Optional instance to populate.
|
|
53
|
+
* @return {module:model/CreateEmptyTestRunApiModel} The populated <code>CreateEmptyTestRunApiModel</code> instance.
|
|
54
|
+
*/
|
|
55
|
+
static constructFromObject(data, obj) {
|
|
56
|
+
if (data) {
|
|
57
|
+
obj = obj || new CreateEmptyTestRunApiModel();
|
|
58
|
+
if (data.hasOwnProperty('projectId')) {
|
|
59
|
+
obj['projectId'] = _ApiClient.default.convertToType(data['projectId'], 'String');
|
|
60
|
+
}
|
|
61
|
+
if (data.hasOwnProperty('name')) {
|
|
62
|
+
obj['name'] = _ApiClient.default.convertToType(data['name'], 'String');
|
|
63
|
+
}
|
|
64
|
+
if (data.hasOwnProperty('description')) {
|
|
65
|
+
obj['description'] = _ApiClient.default.convertToType(data['description'], 'String');
|
|
66
|
+
}
|
|
67
|
+
if (data.hasOwnProperty('launchSource')) {
|
|
68
|
+
obj['launchSource'] = _ApiClient.default.convertToType(data['launchSource'], 'String');
|
|
69
|
+
}
|
|
70
|
+
if (data.hasOwnProperty('attachments')) {
|
|
71
|
+
obj['attachments'] = _ApiClient.default.convertToType(data['attachments'], [_AssignAttachmentApiModel.default]);
|
|
72
|
+
}
|
|
73
|
+
if (data.hasOwnProperty('links')) {
|
|
74
|
+
obj['links'] = _ApiClient.default.convertToType(data['links'], [_CreateLinkApiModel.default]);
|
|
75
|
+
}
|
|
76
|
+
if (data.hasOwnProperty('tags')) {
|
|
77
|
+
obj['tags'] = _ApiClient.default.convertToType(data['tags'], ['String']);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
return obj;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Validates the JSON data with respect to <code>CreateEmptyTestRunApiModel</code>.
|
|
85
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
86
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>CreateEmptyTestRunApiModel</code>.
|
|
87
|
+
*/
|
|
88
|
+
static validateJSON(data) {
|
|
89
|
+
// check to make sure all required properties are present in the JSON string
|
|
90
|
+
for (const property of CreateEmptyTestRunApiModel.RequiredProperties) {
|
|
91
|
+
if (!data.hasOwnProperty(property)) {
|
|
92
|
+
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
// ensure the json data is a string
|
|
96
|
+
if (data['projectId'] && !(typeof data['projectId'] === 'string' || data['projectId'] instanceof String)) {
|
|
97
|
+
throw new Error("Expected the field `projectId` to be a primitive type in the JSON string but got " + data['projectId']);
|
|
98
|
+
}
|
|
99
|
+
// ensure the json data is a string
|
|
100
|
+
if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
|
|
101
|
+
throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
|
|
102
|
+
}
|
|
103
|
+
// ensure the json data is a string
|
|
104
|
+
if (data['description'] && !(typeof data['description'] === 'string' || data['description'] instanceof String)) {
|
|
105
|
+
throw new Error("Expected the field `description` to be a primitive type in the JSON string but got " + data['description']);
|
|
106
|
+
}
|
|
107
|
+
// ensure the json data is a string
|
|
108
|
+
if (data['launchSource'] && !(typeof data['launchSource'] === 'string' || data['launchSource'] instanceof String)) {
|
|
109
|
+
throw new Error("Expected the field `launchSource` to be a primitive type in the JSON string but got " + data['launchSource']);
|
|
110
|
+
}
|
|
111
|
+
if (data['attachments']) {
|
|
112
|
+
// data not null
|
|
113
|
+
// ensure the json data is an array
|
|
114
|
+
if (!Array.isArray(data['attachments'])) {
|
|
115
|
+
throw new Error("Expected the field `attachments` to be an array in the JSON data but got " + data['attachments']);
|
|
116
|
+
}
|
|
117
|
+
// validate the optional field `attachments` (array)
|
|
118
|
+
for (const item of data['attachments']) {
|
|
119
|
+
_AssignAttachmentApiModel.default.validateJSON(item);
|
|
120
|
+
}
|
|
121
|
+
;
|
|
122
|
+
}
|
|
123
|
+
if (data['links']) {
|
|
124
|
+
// data not null
|
|
125
|
+
// ensure the json data is an array
|
|
126
|
+
if (!Array.isArray(data['links'])) {
|
|
127
|
+
throw new Error("Expected the field `links` to be an array in the JSON data but got " + data['links']);
|
|
128
|
+
}
|
|
129
|
+
// validate the optional field `links` (array)
|
|
130
|
+
for (const item of data['links']) {
|
|
131
|
+
_CreateLinkApiModel.default.validateJSON(item);
|
|
132
|
+
}
|
|
133
|
+
;
|
|
134
|
+
}
|
|
135
|
+
// ensure the json data is an array
|
|
136
|
+
if (!Array.isArray(data['tags'])) {
|
|
137
|
+
throw new Error("Expected the field `tags` to be an array in the JSON data but got " + data['tags']);
|
|
138
|
+
}
|
|
139
|
+
return true;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
CreateEmptyTestRunApiModel.RequiredProperties = ["projectId"];
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* Project unique identifier This property is to link test run with a project
|
|
146
|
+
* @member {String} projectId
|
|
147
|
+
*/
|
|
148
|
+
CreateEmptyTestRunApiModel.prototype['projectId'] = undefined;
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* Test run name
|
|
152
|
+
* @member {String} name
|
|
153
|
+
*/
|
|
154
|
+
CreateEmptyTestRunApiModel.prototype['name'] = undefined;
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* Test run description
|
|
158
|
+
* @member {String} description
|
|
159
|
+
*/
|
|
160
|
+
CreateEmptyTestRunApiModel.prototype['description'] = undefined;
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* Test run launch source
|
|
164
|
+
* @member {String} launchSource
|
|
165
|
+
*/
|
|
166
|
+
CreateEmptyTestRunApiModel.prototype['launchSource'] = undefined;
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* Collection of attachments to relate to the test run
|
|
170
|
+
* @member {Array.<module:model/AssignAttachmentApiModel>} attachments
|
|
171
|
+
*/
|
|
172
|
+
CreateEmptyTestRunApiModel.prototype['attachments'] = undefined;
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* Collection of links to relate to the test run
|
|
176
|
+
* @member {Array.<module:model/CreateLinkApiModel>} links
|
|
177
|
+
*/
|
|
178
|
+
CreateEmptyTestRunApiModel.prototype['links'] = undefined;
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* Collection of tags to assign to the test run
|
|
182
|
+
* @member {Array.<String>} tags
|
|
183
|
+
*/
|
|
184
|
+
CreateEmptyTestRunApiModel.prototype['tags'] = undefined;
|
|
185
|
+
var _default = exports.default = CreateEmptyTestRunApiModel;
|