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,82 @@
|
|
|
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 Int32RangeSelectorModel model module.
|
|
24
|
+
* @module model/Int32RangeSelectorModel
|
|
25
|
+
* @version 1.0.0
|
|
26
|
+
*/
|
|
27
|
+
class Int32RangeSelectorModel {
|
|
28
|
+
/**
|
|
29
|
+
* Constructs a new <code>Int32RangeSelectorModel</code>.
|
|
30
|
+
* @alias module:model/Int32RangeSelectorModel
|
|
31
|
+
*/
|
|
32
|
+
constructor() {
|
|
33
|
+
Int32RangeSelectorModel.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>Int32RangeSelectorModel</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/Int32RangeSelectorModel} obj Optional instance to populate.
|
|
48
|
+
* @return {module:model/Int32RangeSelectorModel} The populated <code>Int32RangeSelectorModel</code> instance.
|
|
49
|
+
*/
|
|
50
|
+
static constructFromObject(data, obj) {
|
|
51
|
+
if (data) {
|
|
52
|
+
obj = obj || new Int32RangeSelectorModel();
|
|
53
|
+
if (data.hasOwnProperty('from')) {
|
|
54
|
+
obj['from'] = _ApiClient.default.convertToType(data['from'], 'Number');
|
|
55
|
+
}
|
|
56
|
+
if (data.hasOwnProperty('to')) {
|
|
57
|
+
obj['to'] = _ApiClient.default.convertToType(data['to'], 'Number');
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
return obj;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Validates the JSON data with respect to <code>Int32RangeSelectorModel</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>Int32RangeSelectorModel</code>.
|
|
67
|
+
*/
|
|
68
|
+
static validateJSON(data) {
|
|
69
|
+
return true;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* @member {Number} from
|
|
75
|
+
*/
|
|
76
|
+
Int32RangeSelectorModel.prototype['from'] = undefined;
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* @member {Number} to
|
|
80
|
+
*/
|
|
81
|
+
Int32RangeSelectorModel.prototype['to'] = undefined;
|
|
82
|
+
var _default = exports.default = Int32RangeSelectorModel;
|
|
@@ -0,0 +1,82 @@
|
|
|
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 Int64RangeSelectorModel model module.
|
|
24
|
+
* @module model/Int64RangeSelectorModel
|
|
25
|
+
* @version 1.0.0
|
|
26
|
+
*/
|
|
27
|
+
class Int64RangeSelectorModel {
|
|
28
|
+
/**
|
|
29
|
+
* Constructs a new <code>Int64RangeSelectorModel</code>.
|
|
30
|
+
* @alias module:model/Int64RangeSelectorModel
|
|
31
|
+
*/
|
|
32
|
+
constructor() {
|
|
33
|
+
Int64RangeSelectorModel.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>Int64RangeSelectorModel</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/Int64RangeSelectorModel} obj Optional instance to populate.
|
|
48
|
+
* @return {module:model/Int64RangeSelectorModel} The populated <code>Int64RangeSelectorModel</code> instance.
|
|
49
|
+
*/
|
|
50
|
+
static constructFromObject(data, obj) {
|
|
51
|
+
if (data) {
|
|
52
|
+
obj = obj || new Int64RangeSelectorModel();
|
|
53
|
+
if (data.hasOwnProperty('from')) {
|
|
54
|
+
obj['from'] = _ApiClient.default.convertToType(data['from'], 'Number');
|
|
55
|
+
}
|
|
56
|
+
if (data.hasOwnProperty('to')) {
|
|
57
|
+
obj['to'] = _ApiClient.default.convertToType(data['to'], 'Number');
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
return obj;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Validates the JSON data with respect to <code>Int64RangeSelectorModel</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>Int64RangeSelectorModel</code>.
|
|
67
|
+
*/
|
|
68
|
+
static validateJSON(data) {
|
|
69
|
+
return true;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* @member {Number} from
|
|
75
|
+
*/
|
|
76
|
+
Int64RangeSelectorModel.prototype['from'] = undefined;
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* @member {Number} to
|
|
80
|
+
*/
|
|
81
|
+
Int64RangeSelectorModel.prototype['to'] = undefined;
|
|
82
|
+
var _default = exports.default = Int64RangeSelectorModel;
|
|
@@ -0,0 +1,109 @@
|
|
|
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 _ParameterShortApiResult = _interopRequireDefault(require("./ParameterShortApiResult"));
|
|
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 IterationApiResult model module.
|
|
25
|
+
* @module model/IterationApiResult
|
|
26
|
+
* @version 1.0.0
|
|
27
|
+
*/
|
|
28
|
+
class IterationApiResult {
|
|
29
|
+
/**
|
|
30
|
+
* Constructs a new <code>IterationApiResult</code>.
|
|
31
|
+
* @alias module:model/IterationApiResult
|
|
32
|
+
* @param id {String}
|
|
33
|
+
*/
|
|
34
|
+
constructor(id) {
|
|
35
|
+
IterationApiResult.initialize(this, id);
|
|
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) {
|
|
44
|
+
obj['id'] = id;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Constructs a <code>IterationApiResult</code> from a plain JavaScript object, optionally creating a new instance.
|
|
49
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
50
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
51
|
+
* @param {module:model/IterationApiResult} obj Optional instance to populate.
|
|
52
|
+
* @return {module:model/IterationApiResult} The populated <code>IterationApiResult</code> instance.
|
|
53
|
+
*/
|
|
54
|
+
static constructFromObject(data, obj) {
|
|
55
|
+
if (data) {
|
|
56
|
+
obj = obj || new IterationApiResult();
|
|
57
|
+
if (data.hasOwnProperty('id')) {
|
|
58
|
+
obj['id'] = _ApiClient.default.convertToType(data['id'], 'String');
|
|
59
|
+
}
|
|
60
|
+
if (data.hasOwnProperty('parameters')) {
|
|
61
|
+
obj['parameters'] = _ApiClient.default.convertToType(data['parameters'], [_ParameterShortApiResult.default]);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
return obj;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Validates the JSON data with respect to <code>IterationApiResult</code>.
|
|
69
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
70
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>IterationApiResult</code>.
|
|
71
|
+
*/
|
|
72
|
+
static validateJSON(data) {
|
|
73
|
+
// check to make sure all required properties are present in the JSON string
|
|
74
|
+
for (const property of IterationApiResult.RequiredProperties) {
|
|
75
|
+
if (!data.hasOwnProperty(property)) {
|
|
76
|
+
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
// ensure the json data is a string
|
|
80
|
+
if (data['id'] && !(typeof data['id'] === 'string' || data['id'] instanceof String)) {
|
|
81
|
+
throw new Error("Expected the field `id` to be a primitive type in the JSON string but got " + data['id']);
|
|
82
|
+
}
|
|
83
|
+
if (data['parameters']) {
|
|
84
|
+
// data not null
|
|
85
|
+
// ensure the json data is an array
|
|
86
|
+
if (!Array.isArray(data['parameters'])) {
|
|
87
|
+
throw new Error("Expected the field `parameters` to be an array in the JSON data but got " + data['parameters']);
|
|
88
|
+
}
|
|
89
|
+
// validate the optional field `parameters` (array)
|
|
90
|
+
for (const item of data['parameters']) {
|
|
91
|
+
_ParameterShortApiResult.default.validateJSON(item);
|
|
92
|
+
}
|
|
93
|
+
;
|
|
94
|
+
}
|
|
95
|
+
return true;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
IterationApiResult.RequiredProperties = ["id"];
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* @member {String} id
|
|
102
|
+
*/
|
|
103
|
+
IterationApiResult.prototype['id'] = undefined;
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* @member {Array.<module:model/ParameterShortApiResult>} parameters
|
|
107
|
+
*/
|
|
108
|
+
IterationApiResult.prototype['parameters'] = undefined;
|
|
109
|
+
var _default = exports.default = IterationApiResult;
|
|
@@ -0,0 +1,109 @@
|
|
|
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 _ParameterShortModel = _interopRequireDefault(require("./ParameterShortModel"));
|
|
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 IterationModel model module.
|
|
25
|
+
* @module model/IterationModel
|
|
26
|
+
* @version 1.0.0
|
|
27
|
+
*/
|
|
28
|
+
class IterationModel {
|
|
29
|
+
/**
|
|
30
|
+
* Constructs a new <code>IterationModel</code>.
|
|
31
|
+
* @alias module:model/IterationModel
|
|
32
|
+
* @param id {String}
|
|
33
|
+
*/
|
|
34
|
+
constructor(id) {
|
|
35
|
+
IterationModel.initialize(this, id);
|
|
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) {
|
|
44
|
+
obj['id'] = id;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Constructs a <code>IterationModel</code> from a plain JavaScript object, optionally creating a new instance.
|
|
49
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
50
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
51
|
+
* @param {module:model/IterationModel} obj Optional instance to populate.
|
|
52
|
+
* @return {module:model/IterationModel} The populated <code>IterationModel</code> instance.
|
|
53
|
+
*/
|
|
54
|
+
static constructFromObject(data, obj) {
|
|
55
|
+
if (data) {
|
|
56
|
+
obj = obj || new IterationModel();
|
|
57
|
+
if (data.hasOwnProperty('id')) {
|
|
58
|
+
obj['id'] = _ApiClient.default.convertToType(data['id'], 'String');
|
|
59
|
+
}
|
|
60
|
+
if (data.hasOwnProperty('parameters')) {
|
|
61
|
+
obj['parameters'] = _ApiClient.default.convertToType(data['parameters'], [_ParameterShortModel.default]);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
return obj;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Validates the JSON data with respect to <code>IterationModel</code>.
|
|
69
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
70
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>IterationModel</code>.
|
|
71
|
+
*/
|
|
72
|
+
static validateJSON(data) {
|
|
73
|
+
// check to make sure all required properties are present in the JSON string
|
|
74
|
+
for (const property of IterationModel.RequiredProperties) {
|
|
75
|
+
if (!data.hasOwnProperty(property)) {
|
|
76
|
+
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
// ensure the json data is a string
|
|
80
|
+
if (data['id'] && !(typeof data['id'] === 'string' || data['id'] instanceof String)) {
|
|
81
|
+
throw new Error("Expected the field `id` to be a primitive type in the JSON string but got " + data['id']);
|
|
82
|
+
}
|
|
83
|
+
if (data['parameters']) {
|
|
84
|
+
// data not null
|
|
85
|
+
// ensure the json data is an array
|
|
86
|
+
if (!Array.isArray(data['parameters'])) {
|
|
87
|
+
throw new Error("Expected the field `parameters` to be an array in the JSON data but got " + data['parameters']);
|
|
88
|
+
}
|
|
89
|
+
// validate the optional field `parameters` (array)
|
|
90
|
+
for (const item of data['parameters']) {
|
|
91
|
+
_ParameterShortModel.default.validateJSON(item);
|
|
92
|
+
}
|
|
93
|
+
;
|
|
94
|
+
}
|
|
95
|
+
return true;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
IterationModel.RequiredProperties = ["id"];
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* @member {String} id
|
|
102
|
+
*/
|
|
103
|
+
IterationModel.prototype['id'] = undefined;
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* @member {Array.<module:model/ParameterShortModel>} parameters
|
|
107
|
+
*/
|
|
108
|
+
IterationModel.prototype['parameters'] = undefined;
|
|
109
|
+
var _default = exports.default = IterationModel;
|
|
@@ -0,0 +1,100 @@
|
|
|
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 LabelApiModel model module.
|
|
24
|
+
* @module model/LabelApiModel
|
|
25
|
+
* @version 1.0.0
|
|
26
|
+
*/
|
|
27
|
+
class LabelApiModel {
|
|
28
|
+
/**
|
|
29
|
+
* Constructs a new <code>LabelApiModel</code>.
|
|
30
|
+
* @alias module:model/LabelApiModel
|
|
31
|
+
* @param name {String} Name of the label
|
|
32
|
+
* @param globalId {Number} Global ID of the label
|
|
33
|
+
*/
|
|
34
|
+
constructor(name, globalId) {
|
|
35
|
+
LabelApiModel.initialize(this, name, globalId);
|
|
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, globalId) {
|
|
44
|
+
obj['name'] = name;
|
|
45
|
+
obj['globalId'] = globalId;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Constructs a <code>LabelApiModel</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/LabelApiModel} obj Optional instance to populate.
|
|
53
|
+
* @return {module:model/LabelApiModel} The populated <code>LabelApiModel</code> instance.
|
|
54
|
+
*/
|
|
55
|
+
static constructFromObject(data, obj) {
|
|
56
|
+
if (data) {
|
|
57
|
+
obj = obj || new LabelApiModel();
|
|
58
|
+
if (data.hasOwnProperty('name')) {
|
|
59
|
+
obj['name'] = _ApiClient.default.convertToType(data['name'], 'String');
|
|
60
|
+
}
|
|
61
|
+
if (data.hasOwnProperty('globalId')) {
|
|
62
|
+
obj['globalId'] = _ApiClient.default.convertToType(data['globalId'], 'Number');
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
return obj;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Validates the JSON data with respect to <code>LabelApiModel</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>LabelApiModel</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 LabelApiModel.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['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
|
|
82
|
+
throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
|
|
83
|
+
}
|
|
84
|
+
return true;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
LabelApiModel.RequiredProperties = ["name", "globalId"];
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Name of the label
|
|
91
|
+
* @member {String} name
|
|
92
|
+
*/
|
|
93
|
+
LabelApiModel.prototype['name'] = undefined;
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Global ID of the label
|
|
97
|
+
* @member {Number} globalId
|
|
98
|
+
*/
|
|
99
|
+
LabelApiModel.prototype['globalId'] = undefined;
|
|
100
|
+
var _default = exports.default = LabelApiModel;
|
|
@@ -0,0 +1,100 @@
|
|
|
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 LabelApiResult model module.
|
|
24
|
+
* @module model/LabelApiResult
|
|
25
|
+
* @version 1.0.0
|
|
26
|
+
*/
|
|
27
|
+
class LabelApiResult {
|
|
28
|
+
/**
|
|
29
|
+
* Constructs a new <code>LabelApiResult</code>.
|
|
30
|
+
* @alias module:model/LabelApiResult
|
|
31
|
+
* @param name {String} Name of the label
|
|
32
|
+
* @param globalId {Number} Global ID of the label
|
|
33
|
+
*/
|
|
34
|
+
constructor(name, globalId) {
|
|
35
|
+
LabelApiResult.initialize(this, name, globalId);
|
|
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, globalId) {
|
|
44
|
+
obj['name'] = name;
|
|
45
|
+
obj['globalId'] = globalId;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Constructs a <code>LabelApiResult</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/LabelApiResult} obj Optional instance to populate.
|
|
53
|
+
* @return {module:model/LabelApiResult} The populated <code>LabelApiResult</code> instance.
|
|
54
|
+
*/
|
|
55
|
+
static constructFromObject(data, obj) {
|
|
56
|
+
if (data) {
|
|
57
|
+
obj = obj || new LabelApiResult();
|
|
58
|
+
if (data.hasOwnProperty('name')) {
|
|
59
|
+
obj['name'] = _ApiClient.default.convertToType(data['name'], 'String');
|
|
60
|
+
}
|
|
61
|
+
if (data.hasOwnProperty('globalId')) {
|
|
62
|
+
obj['globalId'] = _ApiClient.default.convertToType(data['globalId'], 'Number');
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
return obj;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Validates the JSON data with respect to <code>LabelApiResult</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>LabelApiResult</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 LabelApiResult.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['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
|
|
82
|
+
throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
|
|
83
|
+
}
|
|
84
|
+
return true;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
LabelApiResult.RequiredProperties = ["name", "globalId"];
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Name of the label
|
|
91
|
+
* @member {String} name
|
|
92
|
+
*/
|
|
93
|
+
LabelApiResult.prototype['name'] = undefined;
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Global ID of the label
|
|
97
|
+
* @member {Number} globalId
|
|
98
|
+
*/
|
|
99
|
+
LabelApiResult.prototype['globalId'] = undefined;
|
|
100
|
+
var _default = exports.default = LabelApiResult;
|
|
@@ -0,0 +1,100 @@
|
|
|
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 LabelShortModel model module.
|
|
24
|
+
* @module model/LabelShortModel
|
|
25
|
+
* @version 1.0.0
|
|
26
|
+
*/
|
|
27
|
+
class LabelShortModel {
|
|
28
|
+
/**
|
|
29
|
+
* Constructs a new <code>LabelShortModel</code>.
|
|
30
|
+
* @alias module:model/LabelShortModel
|
|
31
|
+
* @param globalId {Number} Global ID of the label
|
|
32
|
+
* @param name {String} Name of the label
|
|
33
|
+
*/
|
|
34
|
+
constructor(globalId, name) {
|
|
35
|
+
LabelShortModel.initialize(this, globalId, 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, globalId, name) {
|
|
44
|
+
obj['globalId'] = globalId;
|
|
45
|
+
obj['name'] = name;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Constructs a <code>LabelShortModel</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/LabelShortModel} obj Optional instance to populate.
|
|
53
|
+
* @return {module:model/LabelShortModel} The populated <code>LabelShortModel</code> instance.
|
|
54
|
+
*/
|
|
55
|
+
static constructFromObject(data, obj) {
|
|
56
|
+
if (data) {
|
|
57
|
+
obj = obj || new LabelShortModel();
|
|
58
|
+
if (data.hasOwnProperty('globalId')) {
|
|
59
|
+
obj['globalId'] = _ApiClient.default.convertToType(data['globalId'], 'Number');
|
|
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>LabelShortModel</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>LabelShortModel</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 LabelShortModel.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['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
|
|
82
|
+
throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
|
|
83
|
+
}
|
|
84
|
+
return true;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
LabelShortModel.RequiredProperties = ["globalId", "name"];
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Global ID of the label
|
|
91
|
+
* @member {Number} globalId
|
|
92
|
+
*/
|
|
93
|
+
LabelShortModel.prototype['globalId'] = undefined;
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Name of the label
|
|
97
|
+
* @member {String} name
|
|
98
|
+
*/
|
|
99
|
+
LabelShortModel.prototype['name'] = undefined;
|
|
100
|
+
var _default = exports.default = LabelShortModel;
|