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,184 @@
|
|
|
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 _CustomAttributeOptionModel = _interopRequireDefault(require("./CustomAttributeOptionModel"));
|
|
9
|
+
var _CustomAttributeTypesEnum = _interopRequireDefault(require("./CustomAttributeTypesEnum"));
|
|
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 CustomAttributeGetModel model module.
|
|
26
|
+
* @module model/CustomAttributeGetModel
|
|
27
|
+
* @version 1.0.0
|
|
28
|
+
*/
|
|
29
|
+
class CustomAttributeGetModel {
|
|
30
|
+
/**
|
|
31
|
+
* Constructs a new <code>CustomAttributeGetModel</code>.
|
|
32
|
+
* @alias module:model/CustomAttributeGetModel
|
|
33
|
+
* @param id {String} Unique ID of the attribute
|
|
34
|
+
* @param options {Array.<module:model/CustomAttributeOptionModel>} Collection of the attribute options
|
|
35
|
+
* @param type {module:model/CustomAttributeTypesEnum} Type of the attribute
|
|
36
|
+
* @param isDeleted {Boolean} Indicates if the attribute is deleted
|
|
37
|
+
* @param name {String} Name of the attribute
|
|
38
|
+
* @param isEnabled {Boolean} Indicates if the attribute is enabled
|
|
39
|
+
* @param isRequired {Boolean} Indicates if the attribute is mandatory to specify
|
|
40
|
+
* @param isGlobal {Boolean} Indicates if the attribute is available across all projects
|
|
41
|
+
*/
|
|
42
|
+
constructor(id, options, type, isDeleted, name, isEnabled, isRequired, isGlobal) {
|
|
43
|
+
CustomAttributeGetModel.initialize(this, id, options, type, isDeleted, name, isEnabled, isRequired, isGlobal);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Initializes the fields of this object.
|
|
48
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
49
|
+
* Only for internal use.
|
|
50
|
+
*/
|
|
51
|
+
static initialize(obj, id, options, type, isDeleted, name, isEnabled, isRequired, isGlobal) {
|
|
52
|
+
obj['id'] = id;
|
|
53
|
+
obj['options'] = options;
|
|
54
|
+
obj['type'] = type;
|
|
55
|
+
obj['isDeleted'] = isDeleted;
|
|
56
|
+
obj['name'] = name;
|
|
57
|
+
obj['isEnabled'] = isEnabled;
|
|
58
|
+
obj['isRequired'] = isRequired;
|
|
59
|
+
obj['isGlobal'] = isGlobal;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Constructs a <code>CustomAttributeGetModel</code> from a plain JavaScript object, optionally creating a new instance.
|
|
64
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
65
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
66
|
+
* @param {module:model/CustomAttributeGetModel} obj Optional instance to populate.
|
|
67
|
+
* @return {module:model/CustomAttributeGetModel} The populated <code>CustomAttributeGetModel</code> instance.
|
|
68
|
+
*/
|
|
69
|
+
static constructFromObject(data, obj) {
|
|
70
|
+
if (data) {
|
|
71
|
+
obj = obj || new CustomAttributeGetModel();
|
|
72
|
+
if (data.hasOwnProperty('id')) {
|
|
73
|
+
obj['id'] = _ApiClient.default.convertToType(data['id'], 'String');
|
|
74
|
+
}
|
|
75
|
+
if (data.hasOwnProperty('options')) {
|
|
76
|
+
obj['options'] = _ApiClient.default.convertToType(data['options'], [_CustomAttributeOptionModel.default]);
|
|
77
|
+
}
|
|
78
|
+
if (data.hasOwnProperty('type')) {
|
|
79
|
+
obj['type'] = _ApiClient.default.convertToType(data['type'], _CustomAttributeTypesEnum.default);
|
|
80
|
+
}
|
|
81
|
+
if (data.hasOwnProperty('isDeleted')) {
|
|
82
|
+
obj['isDeleted'] = _ApiClient.default.convertToType(data['isDeleted'], 'Boolean');
|
|
83
|
+
}
|
|
84
|
+
if (data.hasOwnProperty('name')) {
|
|
85
|
+
obj['name'] = _ApiClient.default.convertToType(data['name'], 'String');
|
|
86
|
+
}
|
|
87
|
+
if (data.hasOwnProperty('isEnabled')) {
|
|
88
|
+
obj['isEnabled'] = _ApiClient.default.convertToType(data['isEnabled'], 'Boolean');
|
|
89
|
+
}
|
|
90
|
+
if (data.hasOwnProperty('isRequired')) {
|
|
91
|
+
obj['isRequired'] = _ApiClient.default.convertToType(data['isRequired'], 'Boolean');
|
|
92
|
+
}
|
|
93
|
+
if (data.hasOwnProperty('isGlobal')) {
|
|
94
|
+
obj['isGlobal'] = _ApiClient.default.convertToType(data['isGlobal'], 'Boolean');
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
return obj;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Validates the JSON data with respect to <code>CustomAttributeGetModel</code>.
|
|
102
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
103
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>CustomAttributeGetModel</code>.
|
|
104
|
+
*/
|
|
105
|
+
static validateJSON(data) {
|
|
106
|
+
// check to make sure all required properties are present in the JSON string
|
|
107
|
+
for (const property of CustomAttributeGetModel.RequiredProperties) {
|
|
108
|
+
if (!data.hasOwnProperty(property)) {
|
|
109
|
+
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
// ensure the json data is a string
|
|
113
|
+
if (data['id'] && !(typeof data['id'] === 'string' || data['id'] instanceof String)) {
|
|
114
|
+
throw new Error("Expected the field `id` to be a primitive type in the JSON string but got " + data['id']);
|
|
115
|
+
}
|
|
116
|
+
if (data['options']) {
|
|
117
|
+
// data not null
|
|
118
|
+
// ensure the json data is an array
|
|
119
|
+
if (!Array.isArray(data['options'])) {
|
|
120
|
+
throw new Error("Expected the field `options` to be an array in the JSON data but got " + data['options']);
|
|
121
|
+
}
|
|
122
|
+
// validate the optional field `options` (array)
|
|
123
|
+
for (const item of data['options']) {
|
|
124
|
+
_CustomAttributeOptionModel.default.validateJSON(item);
|
|
125
|
+
}
|
|
126
|
+
;
|
|
127
|
+
}
|
|
128
|
+
// ensure the json data is a string
|
|
129
|
+
if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
|
|
130
|
+
throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
|
|
131
|
+
}
|
|
132
|
+
return true;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
CustomAttributeGetModel.RequiredProperties = ["id", "options", "type", "isDeleted", "name", "isEnabled", "isRequired", "isGlobal"];
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* Unique ID of the attribute
|
|
139
|
+
* @member {String} id
|
|
140
|
+
*/
|
|
141
|
+
CustomAttributeGetModel.prototype['id'] = undefined;
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* Collection of the attribute options
|
|
145
|
+
* @member {Array.<module:model/CustomAttributeOptionModel>} options
|
|
146
|
+
*/
|
|
147
|
+
CustomAttributeGetModel.prototype['options'] = undefined;
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* Type of the attribute
|
|
151
|
+
* @member {module:model/CustomAttributeTypesEnum} type
|
|
152
|
+
*/
|
|
153
|
+
CustomAttributeGetModel.prototype['type'] = undefined;
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* Indicates if the attribute is deleted
|
|
157
|
+
* @member {Boolean} isDeleted
|
|
158
|
+
*/
|
|
159
|
+
CustomAttributeGetModel.prototype['isDeleted'] = undefined;
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* Name of the attribute
|
|
163
|
+
* @member {String} name
|
|
164
|
+
*/
|
|
165
|
+
CustomAttributeGetModel.prototype['name'] = undefined;
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* Indicates if the attribute is enabled
|
|
169
|
+
* @member {Boolean} isEnabled
|
|
170
|
+
*/
|
|
171
|
+
CustomAttributeGetModel.prototype['isEnabled'] = undefined;
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* Indicates if the attribute is mandatory to specify
|
|
175
|
+
* @member {Boolean} isRequired
|
|
176
|
+
*/
|
|
177
|
+
CustomAttributeGetModel.prototype['isRequired'] = undefined;
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* Indicates if the attribute is available across all projects
|
|
181
|
+
* @member {Boolean} isGlobal
|
|
182
|
+
*/
|
|
183
|
+
CustomAttributeGetModel.prototype['isGlobal'] = undefined;
|
|
184
|
+
var _default = exports.default = CustomAttributeGetModel;
|
|
@@ -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 CustomAttributeOptionApiResult model module.
|
|
24
|
+
* @module model/CustomAttributeOptionApiResult
|
|
25
|
+
* @version 1.0.0
|
|
26
|
+
*/
|
|
27
|
+
class CustomAttributeOptionApiResult {
|
|
28
|
+
/**
|
|
29
|
+
* Constructs a new <code>CustomAttributeOptionApiResult</code>.
|
|
30
|
+
* @alias module:model/CustomAttributeOptionApiResult
|
|
31
|
+
* @param id {String} Unique ID of the attribute option
|
|
32
|
+
* @param isDeleted {Boolean} Indicates if the attributes option is deleted
|
|
33
|
+
* @param isDefault {Boolean} Indicates if the attribute option is used by default
|
|
34
|
+
*/
|
|
35
|
+
constructor(id, isDeleted, isDefault) {
|
|
36
|
+
CustomAttributeOptionApiResult.initialize(this, id, isDeleted, isDefault);
|
|
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, id, isDeleted, isDefault) {
|
|
45
|
+
obj['id'] = id;
|
|
46
|
+
obj['isDeleted'] = isDeleted;
|
|
47
|
+
obj['isDefault'] = isDefault;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Constructs a <code>CustomAttributeOptionApiResult</code> from a plain JavaScript object, optionally creating a new instance.
|
|
52
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
53
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
54
|
+
* @param {module:model/CustomAttributeOptionApiResult} obj Optional instance to populate.
|
|
55
|
+
* @return {module:model/CustomAttributeOptionApiResult} The populated <code>CustomAttributeOptionApiResult</code> instance.
|
|
56
|
+
*/
|
|
57
|
+
static constructFromObject(data, obj) {
|
|
58
|
+
if (data) {
|
|
59
|
+
obj = obj || new CustomAttributeOptionApiResult();
|
|
60
|
+
if (data.hasOwnProperty('id')) {
|
|
61
|
+
obj['id'] = _ApiClient.default.convertToType(data['id'], 'String');
|
|
62
|
+
}
|
|
63
|
+
if (data.hasOwnProperty('isDeleted')) {
|
|
64
|
+
obj['isDeleted'] = _ApiClient.default.convertToType(data['isDeleted'], 'Boolean');
|
|
65
|
+
}
|
|
66
|
+
if (data.hasOwnProperty('value')) {
|
|
67
|
+
obj['value'] = _ApiClient.default.convertToType(data['value'], 'String');
|
|
68
|
+
}
|
|
69
|
+
if (data.hasOwnProperty('isDefault')) {
|
|
70
|
+
obj['isDefault'] = _ApiClient.default.convertToType(data['isDefault'], 'Boolean');
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
return obj;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Validates the JSON data with respect to <code>CustomAttributeOptionApiResult</code>.
|
|
78
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
79
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>CustomAttributeOptionApiResult</code>.
|
|
80
|
+
*/
|
|
81
|
+
static validateJSON(data) {
|
|
82
|
+
// check to make sure all required properties are present in the JSON string
|
|
83
|
+
for (const property of CustomAttributeOptionApiResult.RequiredProperties) {
|
|
84
|
+
if (!data.hasOwnProperty(property)) {
|
|
85
|
+
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
// ensure the json data is a string
|
|
89
|
+
if (data['id'] && !(typeof data['id'] === 'string' || data['id'] instanceof String)) {
|
|
90
|
+
throw new Error("Expected the field `id` to be a primitive type in the JSON string but got " + data['id']);
|
|
91
|
+
}
|
|
92
|
+
// ensure the json data is a string
|
|
93
|
+
if (data['value'] && !(typeof data['value'] === 'string' || data['value'] instanceof String)) {
|
|
94
|
+
throw new Error("Expected the field `value` to be a primitive type in the JSON string but got " + data['value']);
|
|
95
|
+
}
|
|
96
|
+
return true;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
CustomAttributeOptionApiResult.RequiredProperties = ["id", "isDeleted", "isDefault"];
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Unique ID of the attribute option
|
|
103
|
+
* @member {String} id
|
|
104
|
+
*/
|
|
105
|
+
CustomAttributeOptionApiResult.prototype['id'] = undefined;
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Indicates if the attributes option is deleted
|
|
109
|
+
* @member {Boolean} isDeleted
|
|
110
|
+
*/
|
|
111
|
+
CustomAttributeOptionApiResult.prototype['isDeleted'] = undefined;
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Value of the attribute option
|
|
115
|
+
* @member {String} value
|
|
116
|
+
*/
|
|
117
|
+
CustomAttributeOptionApiResult.prototype['value'] = undefined;
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* Indicates if the attribute option is used by default
|
|
121
|
+
* @member {Boolean} isDefault
|
|
122
|
+
*/
|
|
123
|
+
CustomAttributeOptionApiResult.prototype['isDefault'] = undefined;
|
|
124
|
+
var _default = exports.default = CustomAttributeOptionApiResult;
|
|
@@ -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 CustomAttributeOptionModel model module.
|
|
24
|
+
* @module model/CustomAttributeOptionModel
|
|
25
|
+
* @version 1.0.0
|
|
26
|
+
*/
|
|
27
|
+
class CustomAttributeOptionModel {
|
|
28
|
+
/**
|
|
29
|
+
* Constructs a new <code>CustomAttributeOptionModel</code>.
|
|
30
|
+
* @alias module:model/CustomAttributeOptionModel
|
|
31
|
+
* @param id {String} Unique ID of the attribute option
|
|
32
|
+
* @param isDeleted {Boolean} Indicates if the attributes option is deleted
|
|
33
|
+
* @param isDefault {Boolean} Indicates if the attribute option is used by default
|
|
34
|
+
*/
|
|
35
|
+
constructor(id, isDeleted, isDefault) {
|
|
36
|
+
CustomAttributeOptionModel.initialize(this, id, isDeleted, isDefault);
|
|
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, id, isDeleted, isDefault) {
|
|
45
|
+
obj['id'] = id;
|
|
46
|
+
obj['isDeleted'] = isDeleted;
|
|
47
|
+
obj['isDefault'] = isDefault;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Constructs a <code>CustomAttributeOptionModel</code> from a plain JavaScript object, optionally creating a new instance.
|
|
52
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
53
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
54
|
+
* @param {module:model/CustomAttributeOptionModel} obj Optional instance to populate.
|
|
55
|
+
* @return {module:model/CustomAttributeOptionModel} The populated <code>CustomAttributeOptionModel</code> instance.
|
|
56
|
+
*/
|
|
57
|
+
static constructFromObject(data, obj) {
|
|
58
|
+
if (data) {
|
|
59
|
+
obj = obj || new CustomAttributeOptionModel();
|
|
60
|
+
if (data.hasOwnProperty('id')) {
|
|
61
|
+
obj['id'] = _ApiClient.default.convertToType(data['id'], 'String');
|
|
62
|
+
}
|
|
63
|
+
if (data.hasOwnProperty('isDeleted')) {
|
|
64
|
+
obj['isDeleted'] = _ApiClient.default.convertToType(data['isDeleted'], 'Boolean');
|
|
65
|
+
}
|
|
66
|
+
if (data.hasOwnProperty('value')) {
|
|
67
|
+
obj['value'] = _ApiClient.default.convertToType(data['value'], 'String');
|
|
68
|
+
}
|
|
69
|
+
if (data.hasOwnProperty('isDefault')) {
|
|
70
|
+
obj['isDefault'] = _ApiClient.default.convertToType(data['isDefault'], 'Boolean');
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
return obj;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Validates the JSON data with respect to <code>CustomAttributeOptionModel</code>.
|
|
78
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
79
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>CustomAttributeOptionModel</code>.
|
|
80
|
+
*/
|
|
81
|
+
static validateJSON(data) {
|
|
82
|
+
// check to make sure all required properties are present in the JSON string
|
|
83
|
+
for (const property of CustomAttributeOptionModel.RequiredProperties) {
|
|
84
|
+
if (!data.hasOwnProperty(property)) {
|
|
85
|
+
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
// ensure the json data is a string
|
|
89
|
+
if (data['id'] && !(typeof data['id'] === 'string' || data['id'] instanceof String)) {
|
|
90
|
+
throw new Error("Expected the field `id` to be a primitive type in the JSON string but got " + data['id']);
|
|
91
|
+
}
|
|
92
|
+
// ensure the json data is a string
|
|
93
|
+
if (data['value'] && !(typeof data['value'] === 'string' || data['value'] instanceof String)) {
|
|
94
|
+
throw new Error("Expected the field `value` to be a primitive type in the JSON string but got " + data['value']);
|
|
95
|
+
}
|
|
96
|
+
return true;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
CustomAttributeOptionModel.RequiredProperties = ["id", "isDeleted", "isDefault"];
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Unique ID of the attribute option
|
|
103
|
+
* @member {String} id
|
|
104
|
+
*/
|
|
105
|
+
CustomAttributeOptionModel.prototype['id'] = undefined;
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Indicates if the attributes option is deleted
|
|
109
|
+
* @member {Boolean} isDeleted
|
|
110
|
+
*/
|
|
111
|
+
CustomAttributeOptionModel.prototype['isDeleted'] = undefined;
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Value of the attribute option
|
|
115
|
+
* @member {String} value
|
|
116
|
+
*/
|
|
117
|
+
CustomAttributeOptionModel.prototype['value'] = undefined;
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* Indicates if the attribute option is used by default
|
|
121
|
+
* @member {Boolean} isDefault
|
|
122
|
+
*/
|
|
123
|
+
CustomAttributeOptionModel.prototype['isDefault'] = undefined;
|
|
124
|
+
var _default = exports.default = CustomAttributeOptionModel;
|
|
@@ -0,0 +1,182 @@
|
|
|
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 _CustomAttributeOptionModel = _interopRequireDefault(require("./CustomAttributeOptionModel"));
|
|
9
|
+
var _CustomAttributeTypesEnum = _interopRequireDefault(require("./CustomAttributeTypesEnum"));
|
|
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 CustomAttributePutModel model module.
|
|
26
|
+
* @module model/CustomAttributePutModel
|
|
27
|
+
* @version 1.0.0
|
|
28
|
+
*/
|
|
29
|
+
class CustomAttributePutModel {
|
|
30
|
+
/**
|
|
31
|
+
* Constructs a new <code>CustomAttributePutModel</code>.
|
|
32
|
+
* @alias module:model/CustomAttributePutModel
|
|
33
|
+
* @param id {String} Unique ID of the attribute
|
|
34
|
+
* @param type {module:model/CustomAttributeTypesEnum} Type of the attribute
|
|
35
|
+
* @param isDeleted {Boolean} Indicates if the entity is deleted
|
|
36
|
+
* @param name {String} Name of the attribute
|
|
37
|
+
* @param isEnabled {Boolean} Indicates if the attribute is enabled
|
|
38
|
+
* @param isRequired {Boolean} Indicates if the attribute value is mandatory to specify
|
|
39
|
+
* @param isGlobal {Boolean} Indicates if the attribute is available across all projects
|
|
40
|
+
*/
|
|
41
|
+
constructor(id, type, isDeleted, name, isEnabled, isRequired, isGlobal) {
|
|
42
|
+
CustomAttributePutModel.initialize(this, id, type, isDeleted, name, isEnabled, isRequired, isGlobal);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Initializes the fields of this object.
|
|
47
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
48
|
+
* Only for internal use.
|
|
49
|
+
*/
|
|
50
|
+
static initialize(obj, id, type, isDeleted, name, isEnabled, isRequired, isGlobal) {
|
|
51
|
+
obj['id'] = id;
|
|
52
|
+
obj['type'] = type;
|
|
53
|
+
obj['isDeleted'] = isDeleted;
|
|
54
|
+
obj['name'] = name;
|
|
55
|
+
obj['isEnabled'] = isEnabled;
|
|
56
|
+
obj['isRequired'] = isRequired;
|
|
57
|
+
obj['isGlobal'] = isGlobal;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Constructs a <code>CustomAttributePutModel</code> from a plain JavaScript object, optionally creating a new instance.
|
|
62
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
63
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
64
|
+
* @param {module:model/CustomAttributePutModel} obj Optional instance to populate.
|
|
65
|
+
* @return {module:model/CustomAttributePutModel} The populated <code>CustomAttributePutModel</code> instance.
|
|
66
|
+
*/
|
|
67
|
+
static constructFromObject(data, obj) {
|
|
68
|
+
if (data) {
|
|
69
|
+
obj = obj || new CustomAttributePutModel();
|
|
70
|
+
if (data.hasOwnProperty('id')) {
|
|
71
|
+
obj['id'] = _ApiClient.default.convertToType(data['id'], 'String');
|
|
72
|
+
}
|
|
73
|
+
if (data.hasOwnProperty('options')) {
|
|
74
|
+
obj['options'] = _ApiClient.default.convertToType(data['options'], [_CustomAttributeOptionModel.default]);
|
|
75
|
+
}
|
|
76
|
+
if (data.hasOwnProperty('type')) {
|
|
77
|
+
obj['type'] = _ApiClient.default.convertToType(data['type'], _CustomAttributeTypesEnum.default);
|
|
78
|
+
}
|
|
79
|
+
if (data.hasOwnProperty('isDeleted')) {
|
|
80
|
+
obj['isDeleted'] = _ApiClient.default.convertToType(data['isDeleted'], 'Boolean');
|
|
81
|
+
}
|
|
82
|
+
if (data.hasOwnProperty('name')) {
|
|
83
|
+
obj['name'] = _ApiClient.default.convertToType(data['name'], 'String');
|
|
84
|
+
}
|
|
85
|
+
if (data.hasOwnProperty('isEnabled')) {
|
|
86
|
+
obj['isEnabled'] = _ApiClient.default.convertToType(data['isEnabled'], 'Boolean');
|
|
87
|
+
}
|
|
88
|
+
if (data.hasOwnProperty('isRequired')) {
|
|
89
|
+
obj['isRequired'] = _ApiClient.default.convertToType(data['isRequired'], 'Boolean');
|
|
90
|
+
}
|
|
91
|
+
if (data.hasOwnProperty('isGlobal')) {
|
|
92
|
+
obj['isGlobal'] = _ApiClient.default.convertToType(data['isGlobal'], 'Boolean');
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
return obj;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Validates the JSON data with respect to <code>CustomAttributePutModel</code>.
|
|
100
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
101
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>CustomAttributePutModel</code>.
|
|
102
|
+
*/
|
|
103
|
+
static validateJSON(data) {
|
|
104
|
+
// check to make sure all required properties are present in the JSON string
|
|
105
|
+
for (const property of CustomAttributePutModel.RequiredProperties) {
|
|
106
|
+
if (!data.hasOwnProperty(property)) {
|
|
107
|
+
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
// ensure the json data is a string
|
|
111
|
+
if (data['id'] && !(typeof data['id'] === 'string' || data['id'] instanceof String)) {
|
|
112
|
+
throw new Error("Expected the field `id` to be a primitive type in the JSON string but got " + data['id']);
|
|
113
|
+
}
|
|
114
|
+
if (data['options']) {
|
|
115
|
+
// data not null
|
|
116
|
+
// ensure the json data is an array
|
|
117
|
+
if (!Array.isArray(data['options'])) {
|
|
118
|
+
throw new Error("Expected the field `options` to be an array in the JSON data but got " + data['options']);
|
|
119
|
+
}
|
|
120
|
+
// validate the optional field `options` (array)
|
|
121
|
+
for (const item of data['options']) {
|
|
122
|
+
_CustomAttributeOptionModel.default.validateJSON(item);
|
|
123
|
+
}
|
|
124
|
+
;
|
|
125
|
+
}
|
|
126
|
+
// ensure the json data is a string
|
|
127
|
+
if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
|
|
128
|
+
throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
|
|
129
|
+
}
|
|
130
|
+
return true;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
CustomAttributePutModel.RequiredProperties = ["id", "type", "isDeleted", "name", "isEnabled", "isRequired", "isGlobal"];
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* Unique ID of the attribute
|
|
137
|
+
* @member {String} id
|
|
138
|
+
*/
|
|
139
|
+
CustomAttributePutModel.prototype['id'] = undefined;
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* Collection of the attribute options Available for attributes of type `options` and `multiple options` only
|
|
143
|
+
* @member {Array.<module:model/CustomAttributeOptionModel>} options
|
|
144
|
+
*/
|
|
145
|
+
CustomAttributePutModel.prototype['options'] = undefined;
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* Type of the attribute
|
|
149
|
+
* @member {module:model/CustomAttributeTypesEnum} type
|
|
150
|
+
*/
|
|
151
|
+
CustomAttributePutModel.prototype['type'] = undefined;
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* Indicates if the entity is deleted
|
|
155
|
+
* @member {Boolean} isDeleted
|
|
156
|
+
*/
|
|
157
|
+
CustomAttributePutModel.prototype['isDeleted'] = undefined;
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* Name of the attribute
|
|
161
|
+
* @member {String} name
|
|
162
|
+
*/
|
|
163
|
+
CustomAttributePutModel.prototype['name'] = undefined;
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* Indicates if the attribute is enabled
|
|
167
|
+
* @member {Boolean} isEnabled
|
|
168
|
+
*/
|
|
169
|
+
CustomAttributePutModel.prototype['isEnabled'] = undefined;
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* Indicates if the attribute value is mandatory to specify
|
|
173
|
+
* @member {Boolean} isRequired
|
|
174
|
+
*/
|
|
175
|
+
CustomAttributePutModel.prototype['isRequired'] = undefined;
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* Indicates if the attribute is available across all projects
|
|
179
|
+
* @member {Boolean} isGlobal
|
|
180
|
+
*/
|
|
181
|
+
CustomAttributePutModel.prototype['isGlobal'] = undefined;
|
|
182
|
+
var _default = exports.default = CustomAttributePutModel;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
9
|
+
/**
|
|
10
|
+
* API
|
|
11
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
12
|
+
*
|
|
13
|
+
* The version of the OpenAPI document: adapters
|
|
14
|
+
*
|
|
15
|
+
*
|
|
16
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
17
|
+
* https://openapi-generator.tech
|
|
18
|
+
* Do not edit the class manually.
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Enum class CustomAttributeType.
|
|
24
|
+
* @enum {}
|
|
25
|
+
* @readonly
|
|
26
|
+
*/
|
|
27
|
+
class CustomAttributeType {
|
|
28
|
+
/**
|
|
29
|
+
* value: "string"
|
|
30
|
+
* @const
|
|
31
|
+
*/
|
|
32
|
+
"string" = "string";
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* value: "datetime"
|
|
36
|
+
* @const
|
|
37
|
+
*/
|
|
38
|
+
"datetime" = "datetime";
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* value: "options"
|
|
42
|
+
* @const
|
|
43
|
+
*/
|
|
44
|
+
"options" = "options";
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* value: "user"
|
|
48
|
+
* @const
|
|
49
|
+
*/
|
|
50
|
+
"user" = "user";
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* value: "multipleOptions"
|
|
54
|
+
* @const
|
|
55
|
+
*/
|
|
56
|
+
"multipleOptions" = "multipleOptions";
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* value: "checkbox"
|
|
60
|
+
* @const
|
|
61
|
+
*/
|
|
62
|
+
"checkbox" = "checkbox";
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Returns a <code>CustomAttributeType</code> enum value from a Javascript object name.
|
|
66
|
+
* @param {Object} data The plain JavaScript object containing the name of the enum value.
|
|
67
|
+
* @return {module:model/CustomAttributeType} The enum <code>CustomAttributeType</code> value.
|
|
68
|
+
*/
|
|
69
|
+
static constructFromObject(object) {
|
|
70
|
+
return object;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
exports.default = CustomAttributeType;
|