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,127 @@
|
|
|
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 _LinkType = _interopRequireDefault(require("./LinkType"));
|
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
|
+
/**
|
|
11
|
+
* API
|
|
12
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
13
|
+
*
|
|
14
|
+
* The version of the OpenAPI document: adapters
|
|
15
|
+
*
|
|
16
|
+
*
|
|
17
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
18
|
+
* https://openapi-generator.tech
|
|
19
|
+
* Do not edit the class manually.
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* The CreateLinkApiModel model module.
|
|
25
|
+
* @module model/CreateLinkApiModel
|
|
26
|
+
* @version 1.0.0
|
|
27
|
+
*/
|
|
28
|
+
class CreateLinkApiModel {
|
|
29
|
+
/**
|
|
30
|
+
* Constructs a new <code>CreateLinkApiModel</code>.
|
|
31
|
+
* @alias module:model/CreateLinkApiModel
|
|
32
|
+
* @param url {String} Address can be specified without protocol, but necessarily with the domain.
|
|
33
|
+
* @param type {module:model/LinkType} Specifies the type of the link.
|
|
34
|
+
*/
|
|
35
|
+
constructor(url, type) {
|
|
36
|
+
CreateLinkApiModel.initialize(this, url, type);
|
|
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, url, type) {
|
|
45
|
+
obj['url'] = url;
|
|
46
|
+
obj['type'] = type;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Constructs a <code>CreateLinkApiModel</code> from a plain JavaScript object, optionally creating a new instance.
|
|
51
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
52
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
53
|
+
* @param {module:model/CreateLinkApiModel} obj Optional instance to populate.
|
|
54
|
+
* @return {module:model/CreateLinkApiModel} The populated <code>CreateLinkApiModel</code> instance.
|
|
55
|
+
*/
|
|
56
|
+
static constructFromObject(data, obj) {
|
|
57
|
+
if (data) {
|
|
58
|
+
obj = obj || new CreateLinkApiModel();
|
|
59
|
+
if (data.hasOwnProperty('title')) {
|
|
60
|
+
obj['title'] = _ApiClient.default.convertToType(data['title'], 'String');
|
|
61
|
+
}
|
|
62
|
+
if (data.hasOwnProperty('url')) {
|
|
63
|
+
obj['url'] = _ApiClient.default.convertToType(data['url'], 'String');
|
|
64
|
+
}
|
|
65
|
+
if (data.hasOwnProperty('description')) {
|
|
66
|
+
obj['description'] = _ApiClient.default.convertToType(data['description'], 'String');
|
|
67
|
+
}
|
|
68
|
+
if (data.hasOwnProperty('type')) {
|
|
69
|
+
obj['type'] = _ApiClient.default.convertToType(data['type'], _LinkType.default);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
return obj;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Validates the JSON data with respect to <code>CreateLinkApiModel</code>.
|
|
77
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
78
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>CreateLinkApiModel</code>.
|
|
79
|
+
*/
|
|
80
|
+
static validateJSON(data) {
|
|
81
|
+
// check to make sure all required properties are present in the JSON string
|
|
82
|
+
for (const property of CreateLinkApiModel.RequiredProperties) {
|
|
83
|
+
if (!data.hasOwnProperty(property)) {
|
|
84
|
+
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
// ensure the json data is a string
|
|
88
|
+
if (data['title'] && !(typeof data['title'] === 'string' || data['title'] instanceof String)) {
|
|
89
|
+
throw new Error("Expected the field `title` to be a primitive type in the JSON string but got " + data['title']);
|
|
90
|
+
}
|
|
91
|
+
// ensure the json data is a string
|
|
92
|
+
if (data['url'] && !(typeof data['url'] === 'string' || data['url'] instanceof String)) {
|
|
93
|
+
throw new Error("Expected the field `url` to be a primitive type in the JSON string but got " + data['url']);
|
|
94
|
+
}
|
|
95
|
+
// ensure the json data is a string
|
|
96
|
+
if (data['description'] && !(typeof data['description'] === 'string' || data['description'] instanceof String)) {
|
|
97
|
+
throw new Error("Expected the field `description` to be a primitive type in the JSON string but got " + data['description']);
|
|
98
|
+
}
|
|
99
|
+
return true;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
CreateLinkApiModel.RequiredProperties = ["url", "type"];
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* Link name.
|
|
106
|
+
* @member {String} title
|
|
107
|
+
*/
|
|
108
|
+
CreateLinkApiModel.prototype['title'] = undefined;
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* Address can be specified without protocol, but necessarily with the domain.
|
|
112
|
+
* @member {String} url
|
|
113
|
+
*/
|
|
114
|
+
CreateLinkApiModel.prototype['url'] = undefined;
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* Link description.
|
|
118
|
+
* @member {String} description
|
|
119
|
+
*/
|
|
120
|
+
CreateLinkApiModel.prototype['description'] = undefined;
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* Specifies the type of the link.
|
|
124
|
+
* @member {module:model/LinkType} type
|
|
125
|
+
*/
|
|
126
|
+
CreateLinkApiModel.prototype['type'] = undefined;
|
|
127
|
+
var _default = exports.default = CreateLinkApiModel;
|
|
@@ -0,0 +1,117 @@
|
|
|
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 CreateParameterApiModel model module.
|
|
24
|
+
* @module model/CreateParameterApiModel
|
|
25
|
+
* @version 1.0.0
|
|
26
|
+
*/
|
|
27
|
+
class CreateParameterApiModel {
|
|
28
|
+
/**
|
|
29
|
+
* Constructs a new <code>CreateParameterApiModel</code>.
|
|
30
|
+
* @alias module:model/CreateParameterApiModel
|
|
31
|
+
* @param name {String} Key of the parameter
|
|
32
|
+
* @param value {String} Value of the parameter
|
|
33
|
+
*/
|
|
34
|
+
constructor(name, value) {
|
|
35
|
+
CreateParameterApiModel.initialize(this, name, value);
|
|
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, name, value) {
|
|
44
|
+
obj['name'] = name;
|
|
45
|
+
obj['value'] = value;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Constructs a <code>CreateParameterApiModel</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/CreateParameterApiModel} obj Optional instance to populate.
|
|
53
|
+
* @return {module:model/CreateParameterApiModel} The populated <code>CreateParameterApiModel</code> instance.
|
|
54
|
+
*/
|
|
55
|
+
static constructFromObject(data, obj) {
|
|
56
|
+
if (data) {
|
|
57
|
+
obj = obj || new CreateParameterApiModel();
|
|
58
|
+
if (data.hasOwnProperty('name')) {
|
|
59
|
+
obj['name'] = _ApiClient.default.convertToType(data['name'], 'String');
|
|
60
|
+
}
|
|
61
|
+
if (data.hasOwnProperty('value')) {
|
|
62
|
+
obj['value'] = _ApiClient.default.convertToType(data['value'], 'String');
|
|
63
|
+
}
|
|
64
|
+
if (data.hasOwnProperty('projectIds')) {
|
|
65
|
+
obj['projectIds'] = _ApiClient.default.convertToType(data['projectIds'], ['String']);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
return obj;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Validates the JSON data with respect to <code>CreateParameterApiModel</code>.
|
|
73
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
74
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>CreateParameterApiModel</code>.
|
|
75
|
+
*/
|
|
76
|
+
static validateJSON(data) {
|
|
77
|
+
// check to make sure all required properties are present in the JSON string
|
|
78
|
+
for (const property of CreateParameterApiModel.RequiredProperties) {
|
|
79
|
+
if (!data.hasOwnProperty(property)) {
|
|
80
|
+
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
// ensure the json data is a string
|
|
84
|
+
if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
|
|
85
|
+
throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
|
|
86
|
+
}
|
|
87
|
+
// ensure the json data is a string
|
|
88
|
+
if (data['value'] && !(typeof data['value'] === 'string' || data['value'] instanceof String)) {
|
|
89
|
+
throw new Error("Expected the field `value` to be a primitive type in the JSON string but got " + data['value']);
|
|
90
|
+
}
|
|
91
|
+
// ensure the json data is an array
|
|
92
|
+
if (!Array.isArray(data['projectIds'])) {
|
|
93
|
+
throw new Error("Expected the field `projectIds` to be an array in the JSON data but got " + data['projectIds']);
|
|
94
|
+
}
|
|
95
|
+
return true;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
CreateParameterApiModel.RequiredProperties = ["name", "value"];
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Key of the parameter
|
|
102
|
+
* @member {String} name
|
|
103
|
+
*/
|
|
104
|
+
CreateParameterApiModel.prototype['name'] = undefined;
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Value of the parameter
|
|
108
|
+
* @member {String} value
|
|
109
|
+
*/
|
|
110
|
+
CreateParameterApiModel.prototype['value'] = undefined;
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* List of projects where parameter should be available
|
|
114
|
+
* @member {Array.<String>} projectIds
|
|
115
|
+
*/
|
|
116
|
+
CreateParameterApiModel.prototype['projectIds'] = undefined;
|
|
117
|
+
var _default = exports.default = CreateParameterApiModel;
|
|
@@ -0,0 +1,124 @@
|
|
|
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 CreateProjectApiModel model module.
|
|
24
|
+
* @module model/CreateProjectApiModel
|
|
25
|
+
* @version 1.0.0
|
|
26
|
+
*/
|
|
27
|
+
class CreateProjectApiModel {
|
|
28
|
+
/**
|
|
29
|
+
* Constructs a new <code>CreateProjectApiModel</code>.
|
|
30
|
+
* @alias module:model/CreateProjectApiModel
|
|
31
|
+
* @param name {String} Name of the project
|
|
32
|
+
*/
|
|
33
|
+
constructor(name) {
|
|
34
|
+
CreateProjectApiModel.initialize(this, name);
|
|
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, name) {
|
|
43
|
+
obj['name'] = name;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Constructs a <code>CreateProjectApiModel</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/CreateProjectApiModel} obj Optional instance to populate.
|
|
51
|
+
* @return {module:model/CreateProjectApiModel} The populated <code>CreateProjectApiModel</code> instance.
|
|
52
|
+
*/
|
|
53
|
+
static constructFromObject(data, obj) {
|
|
54
|
+
if (data) {
|
|
55
|
+
obj = obj || new CreateProjectApiModel();
|
|
56
|
+
if (data.hasOwnProperty('name')) {
|
|
57
|
+
obj['name'] = _ApiClient.default.convertToType(data['name'], 'String');
|
|
58
|
+
}
|
|
59
|
+
if (data.hasOwnProperty('description')) {
|
|
60
|
+
obj['description'] = _ApiClient.default.convertToType(data['description'], 'String');
|
|
61
|
+
}
|
|
62
|
+
if (data.hasOwnProperty('isFavorite')) {
|
|
63
|
+
obj['isFavorite'] = _ApiClient.default.convertToType(data['isFavorite'], 'Boolean');
|
|
64
|
+
}
|
|
65
|
+
if (data.hasOwnProperty('workflowId')) {
|
|
66
|
+
obj['workflowId'] = _ApiClient.default.convertToType(data['workflowId'], 'String');
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
return obj;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Validates the JSON data with respect to <code>CreateProjectApiModel</code>.
|
|
74
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
75
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>CreateProjectApiModel</code>.
|
|
76
|
+
*/
|
|
77
|
+
static validateJSON(data) {
|
|
78
|
+
// check to make sure all required properties are present in the JSON string
|
|
79
|
+
for (const property of CreateProjectApiModel.RequiredProperties) {
|
|
80
|
+
if (!data.hasOwnProperty(property)) {
|
|
81
|
+
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
|
82
|
+
}
|
|
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
|
+
// ensure the json data is a string
|
|
89
|
+
if (data['description'] && !(typeof data['description'] === 'string' || data['description'] instanceof String)) {
|
|
90
|
+
throw new Error("Expected the field `description` to be a primitive type in the JSON string but got " + data['description']);
|
|
91
|
+
}
|
|
92
|
+
// ensure the json data is a string
|
|
93
|
+
if (data['workflowId'] && !(typeof data['workflowId'] === 'string' || data['workflowId'] instanceof String)) {
|
|
94
|
+
throw new Error("Expected the field `workflowId` to be a primitive type in the JSON string but got " + data['workflowId']);
|
|
95
|
+
}
|
|
96
|
+
return true;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
CreateProjectApiModel.RequiredProperties = ["name"];
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Name of the project
|
|
103
|
+
* @member {String} name
|
|
104
|
+
*/
|
|
105
|
+
CreateProjectApiModel.prototype['name'] = undefined;
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Description of the project
|
|
109
|
+
* @member {String} description
|
|
110
|
+
*/
|
|
111
|
+
CreateProjectApiModel.prototype['description'] = undefined;
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Indicates if the project is marked as favorite
|
|
115
|
+
* @member {Boolean} isFavorite
|
|
116
|
+
*/
|
|
117
|
+
CreateProjectApiModel.prototype['isFavorite'] = undefined;
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* Identifier of the workflow project should use
|
|
121
|
+
* @member {String} workflowId
|
|
122
|
+
*/
|
|
123
|
+
CreateProjectApiModel.prototype['workflowId'] = undefined;
|
|
124
|
+
var _default = exports.default = CreateProjectApiModel;
|
|
@@ -0,0 +1,131 @@
|
|
|
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 CreateStepApiModel model module.
|
|
24
|
+
* @module model/CreateStepApiModel
|
|
25
|
+
* @version 1.0.0
|
|
26
|
+
*/
|
|
27
|
+
class CreateStepApiModel {
|
|
28
|
+
/**
|
|
29
|
+
* Constructs a new <code>CreateStepApiModel</code>.
|
|
30
|
+
* @alias module:model/CreateStepApiModel
|
|
31
|
+
*/
|
|
32
|
+
constructor() {
|
|
33
|
+
CreateStepApiModel.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>CreateStepApiModel</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/CreateStepApiModel} obj Optional instance to populate.
|
|
48
|
+
* @return {module:model/CreateStepApiModel} The populated <code>CreateStepApiModel</code> instance.
|
|
49
|
+
*/
|
|
50
|
+
static constructFromObject(data, obj) {
|
|
51
|
+
if (data) {
|
|
52
|
+
obj = obj || new CreateStepApiModel();
|
|
53
|
+
if (data.hasOwnProperty('action')) {
|
|
54
|
+
obj['action'] = _ApiClient.default.convertToType(data['action'], 'String');
|
|
55
|
+
}
|
|
56
|
+
if (data.hasOwnProperty('expected')) {
|
|
57
|
+
obj['expected'] = _ApiClient.default.convertToType(data['expected'], 'String');
|
|
58
|
+
}
|
|
59
|
+
if (data.hasOwnProperty('testData')) {
|
|
60
|
+
obj['testData'] = _ApiClient.default.convertToType(data['testData'], 'String');
|
|
61
|
+
}
|
|
62
|
+
if (data.hasOwnProperty('comments')) {
|
|
63
|
+
obj['comments'] = _ApiClient.default.convertToType(data['comments'], 'String');
|
|
64
|
+
}
|
|
65
|
+
if (data.hasOwnProperty('workItemId')) {
|
|
66
|
+
obj['workItemId'] = _ApiClient.default.convertToType(data['workItemId'], 'String');
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
return obj;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Validates the JSON data with respect to <code>CreateStepApiModel</code>.
|
|
74
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
75
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>CreateStepApiModel</code>.
|
|
76
|
+
*/
|
|
77
|
+
static validateJSON(data) {
|
|
78
|
+
// ensure the json data is a string
|
|
79
|
+
if (data['action'] && !(typeof data['action'] === 'string' || data['action'] instanceof String)) {
|
|
80
|
+
throw new Error("Expected the field `action` to be a primitive type in the JSON string but got " + data['action']);
|
|
81
|
+
}
|
|
82
|
+
// ensure the json data is a string
|
|
83
|
+
if (data['expected'] && !(typeof data['expected'] === 'string' || data['expected'] instanceof String)) {
|
|
84
|
+
throw new Error("Expected the field `expected` to be a primitive type in the JSON string but got " + data['expected']);
|
|
85
|
+
}
|
|
86
|
+
// ensure the json data is a string
|
|
87
|
+
if (data['testData'] && !(typeof data['testData'] === 'string' || data['testData'] instanceof String)) {
|
|
88
|
+
throw new Error("Expected the field `testData` to be a primitive type in the JSON string but got " + data['testData']);
|
|
89
|
+
}
|
|
90
|
+
// ensure the json data is a string
|
|
91
|
+
if (data['comments'] && !(typeof data['comments'] === 'string' || data['comments'] instanceof String)) {
|
|
92
|
+
throw new Error("Expected the field `comments` to be a primitive type in the JSON string but got " + data['comments']);
|
|
93
|
+
}
|
|
94
|
+
// ensure the json data is a string
|
|
95
|
+
if (data['workItemId'] && !(typeof data['workItemId'] === 'string' || data['workItemId'] instanceof String)) {
|
|
96
|
+
throw new Error("Expected the field `workItemId` to be a primitive type in the JSON string but got " + data['workItemId']);
|
|
97
|
+
}
|
|
98
|
+
return true;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Action applied by user
|
|
104
|
+
* @member {String} action
|
|
105
|
+
*/
|
|
106
|
+
CreateStepApiModel.prototype['action'] = undefined;
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* Expected system reaction
|
|
110
|
+
* @member {String} expected
|
|
111
|
+
*/
|
|
112
|
+
CreateStepApiModel.prototype['expected'] = undefined;
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* Test data for step
|
|
116
|
+
* @member {String} testData
|
|
117
|
+
*/
|
|
118
|
+
CreateStepApiModel.prototype['testData'] = undefined;
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Comments for step
|
|
122
|
+
* @member {String} comments
|
|
123
|
+
*/
|
|
124
|
+
CreateStepApiModel.prototype['comments'] = undefined;
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* Unique identifier of workitem which relates to the step
|
|
128
|
+
* @member {String} workItemId
|
|
129
|
+
*/
|
|
130
|
+
CreateStepApiModel.prototype['workItemId'] = undefined;
|
|
131
|
+
var _default = exports.default = CreateStepApiModel;
|