testit-js-commons 5.0.7 → 5.0.8-TMS-5.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/lib/adapters-api/dist/ApiClient.js +5 -6
  2. package/lib/adapters-api/dist/api/AttachmentsApi.js +5 -5
  3. package/lib/adapters-api/dist/api/AutoTestsApi.js +11 -11
  4. package/lib/adapters-api/dist/api/ConfigurationsApi.js +1 -1
  5. package/lib/adapters-api/dist/api/ParametersApi.js +3 -3
  6. package/lib/adapters-api/dist/api/ProjectAttributesApi.js +6 -6
  7. package/lib/adapters-api/dist/api/ProjectSectionsApi.js +1 -1
  8. package/lib/adapters-api/dist/api/ProjectWorkItemsApi.js +1 -1
  9. package/lib/adapters-api/dist/api/ProjectsApi.js +4 -4
  10. package/lib/adapters-api/dist/api/SectionsApi.js +2 -2
  11. package/lib/adapters-api/dist/api/TestResultsApi.js +3 -3
  12. package/lib/adapters-api/dist/api/TestRunsApi.js +8 -8
  13. package/lib/adapters-api/dist/api/WorkItemsApi.js +3 -3
  14. package/lib/adapters-api/dist/api/WorkflowsApi.js +1 -1
  15. package/lib/adapters-api/dist/index.js +3 -80
  16. package/lib/adapters-api/dist/model/AttachmentPutModelAutoTestStepResultsModel.js +1 -1
  17. package/lib/adapters-api/dist/model/AutoTestApiResult.js +0 -15
  18. package/lib/adapters-api/dist/model/AutoTestCreateApiModel.js +0 -15
  19. package/lib/adapters-api/dist/model/AutoTestStepResult.js +1 -1
  20. package/lib/adapters-api/dist/model/AutoTestStepResultUpdateRequest.js +1 -1
  21. package/lib/adapters-api/dist/model/AutoTestUpdateApiModel.js +4 -30
  22. package/lib/adapters-api/dist/model/CreateEmptyTestRunApiModel.js +2 -2
  23. package/lib/adapters-api/dist/model/CustomAttributeApiResult.js +6 -56
  24. package/lib/adapters-api/dist/model/{CustomAttributeModel.js → CustomAttributeGetModel.js} +39 -89
  25. package/lib/adapters-api/dist/model/CustomAttributePutModel.js +1 -1
  26. package/lib/adapters-api/dist/model/LabelApiModel.js +15 -4
  27. package/lib/adapters-api/dist/model/ProjectsFilterModel.js +13 -13
  28. package/lib/adapters-api/dist/model/TestResultResponse.js +4 -18
  29. package/lib/adapters-api/dist/model/TestResultShortResponse.js +4 -15
  30. package/lib/adapters-api/dist/model/TestResultsFilterApiModel.js +0 -14
  31. package/lib/adapters-api/dist/model/TestRunApiResult.js +4 -45
  32. package/lib/adapters-api/dist/model/UpdateEmptyTestRunApiModel.js +1 -1
  33. package/lib/adapters-api/index.d.ts +204 -758
  34. package/lib/common/index.d.ts +0 -1
  35. package/lib/common/index.js +0 -1
  36. package/lib/common/types/common.type.d.ts +0 -6
  37. package/lib/common/utils/tms-load-test-run-debug.d.ts +0 -2
  38. package/lib/common/utils/tms-load-test-run-debug.js +0 -6
  39. package/lib/services/autotests/autotests.converter.d.ts +2 -6
  40. package/lib/services/autotests/autotests.converter.js +16 -41
  41. package/lib/services/autotests/autotests.service.js +3 -3
  42. package/lib/services/autotests/autotests.type.d.ts +0 -2
  43. package/lib/services/syncstorage/syncstorage.runner.js +5 -6
  44. package/lib/services/syncstorage/syncstorage.runner.test.js +0 -16
  45. package/lib/services/testruns/testruns.handler.d.ts +2 -2
  46. package/lib/services/testruns/testruns.handler.js +2 -12
  47. package/lib/services/testruns/testruns.service.d.ts +0 -2
  48. package/lib/services/testruns/testruns.service.js +6 -31
  49. package/lib/services/testruns/testruns.service.test.js +47 -5
  50. package/lib/strategy/base.strategy.d.ts +11 -0
  51. package/lib/strategy/base.strategy.js +72 -4
  52. package/lib/sync-storage/dist/ApiClient.js +0 -3
  53. package/package.json +1 -1
  54. package/lib/adapters-api/dist/api/CustomAttributesApi.js +0 -201
  55. package/lib/adapters-api/dist/model/CustomAttributeOptionPostApiModel.js +0 -98
  56. package/lib/adapters-api/dist/model/CustomAttributeOptionUpdateApiModel.js +0 -124
  57. package/lib/adapters-api/dist/model/CustomAttributeSearchApiModel.js +0 -137
  58. package/lib/adapters-api/dist/model/CustomAttributeSearchApiResult.js +0 -281
  59. package/lib/adapters-api/dist/model/GlobalCustomAttributePostApiModel.js +0 -141
  60. package/lib/adapters-api/dist/model/GlobalCustomAttributeUpdateApiModel.js +0 -129
  61. package/lib/adapters-api/dist/model/LayerApiModel.js +0 -102
  62. package/lib/adapters-api/dist/model/LayerApiResult.js +0 -102
  63. package/lib/adapters-api/dist/model/LayerSource.js +0 -61
  64. package/lib/adapters-api/dist/model/ProjectShortestApiResult.js +0 -138
  65. package/lib/common/test-layers.d.ts +0 -11
  66. package/lib/common/test-layers.js +0 -13
  67. package/lib/services/autotests/autotests.converter.test.d.ts +0 -1
  68. package/lib/services/autotests/autotests.converter.test.js +0 -39
@@ -1,201 +0,0 @@
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 _CustomAttributeApiResult = _interopRequireDefault(require("../model/CustomAttributeApiResult"));
9
- var _CustomAttributeSearchApiModel = _interopRequireDefault(require("../model/CustomAttributeSearchApiModel"));
10
- var _CustomAttributeSearchApiResult = _interopRequireDefault(require("../model/CustomAttributeSearchApiResult"));
11
- var _GlobalCustomAttributePostApiModel = _interopRequireDefault(require("../model/GlobalCustomAttributePostApiModel"));
12
- var _GlobalCustomAttributeUpdateApiModel = _interopRequireDefault(require("../model/GlobalCustomAttributeUpdateApiModel"));
13
- var _ProblemDetails = _interopRequireDefault(require("../model/ProblemDetails"));
14
- var _ValidationProblemDetails = _interopRequireDefault(require("../model/ValidationProblemDetails"));
15
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
16
- /**
17
- * API
18
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
19
- *
20
- * The version of the OpenAPI document: adapters
21
- *
22
- *
23
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
24
- * https://openapi-generator.tech
25
- * Do not edit the class manually.
26
- *
27
- */
28
-
29
- /**
30
- * CustomAttributes service.
31
- * @module api/CustomAttributesApi
32
- * @version 1.0.0
33
- */
34
- class CustomAttributesApi {
35
- /**
36
- * Constructs a new CustomAttributesApi.
37
- * @alias module:api/CustomAttributesApi
38
- * @class
39
- * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
40
- * default to {@link module:ApiClient#instance} if unspecified.
41
- */
42
- constructor(apiClient) {
43
- this.apiClient = apiClient || _ApiClient.default.instance;
44
- }
45
-
46
- /**
47
- * Update global attribute
48
- * @param {String} id Unique ID of attribute
49
- * @param {Object} opts Optional parameters
50
- * @param {module:model/GlobalCustomAttributeUpdateApiModel} [globalCustomAttributeUpdateApiModel]
51
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CustomAttributeApiResult} and HTTP response
52
- */
53
- adaptersCustomAttributesGlobalIdPutWithHttpInfo(id, opts) {
54
- opts = opts || {};
55
- let postBody = opts['globalCustomAttributeUpdateApiModel'];
56
- // verify the required parameter 'id' is set
57
- if (id === undefined || id === null) {
58
- throw new Error("Missing the required parameter 'id' when calling adaptersCustomAttributesGlobalIdPut");
59
- }
60
- let pathParams = {
61
- 'id': id
62
- };
63
- let queryParams = {};
64
- let headerParams = {};
65
- let formParams = {};
66
- let authNames = ['PrivateToken', 'Identity.Application'];
67
- let contentTypes = ['application/json'];
68
- let accepts = ['application/json'];
69
- let returnType = _CustomAttributeApiResult.default;
70
- return this.apiClient.callApi('/adapters/customAttributes/global/{id}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
71
- }
72
-
73
- /**
74
- * Update global attribute
75
- * @param {String} id Unique ID of attribute
76
- * @param {Object} opts Optional parameters
77
- * @param {module:model/GlobalCustomAttributeUpdateApiModel} opts.globalCustomAttributeUpdateApiModel
78
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CustomAttributeApiResult}
79
- */
80
- adaptersCustomAttributesGlobalIdPut(id, opts) {
81
- return this.adaptersCustomAttributesGlobalIdPutWithHttpInfo(id, opts).then(function (response_and_data) {
82
- return response_and_data.data;
83
- });
84
- }
85
-
86
- /**
87
- * Create global attribute
88
- * @param {Object} opts Optional parameters
89
- * @param {module:model/GlobalCustomAttributePostApiModel} [globalCustomAttributePostApiModel]
90
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CustomAttributeApiResult} and HTTP response
91
- */
92
- adaptersCustomAttributesGlobalPostWithHttpInfo(opts) {
93
- opts = opts || {};
94
- let postBody = opts['globalCustomAttributePostApiModel'];
95
- let pathParams = {};
96
- let queryParams = {};
97
- let headerParams = {};
98
- let formParams = {};
99
- let authNames = ['PrivateToken', 'Identity.Application'];
100
- let contentTypes = ['application/json'];
101
- let accepts = ['application/json'];
102
- let returnType = _CustomAttributeApiResult.default;
103
- return this.apiClient.callApi('/adapters/customAttributes/global', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
104
- }
105
-
106
- /**
107
- * Create global attribute
108
- * @param {Object} opts Optional parameters
109
- * @param {module:model/GlobalCustomAttributePostApiModel} opts.globalCustomAttributePostApiModel
110
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CustomAttributeApiResult}
111
- */
112
- adaptersCustomAttributesGlobalPost(opts) {
113
- return this.adaptersCustomAttributesGlobalPostWithHttpInfo(opts).then(function (response_and_data) {
114
- return response_and_data.data;
115
- });
116
- }
117
-
118
- /**
119
- * Get attribute by ID
120
- * @param {String} id Unique ID of attribute
121
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CustomAttributeApiResult} and HTTP response
122
- */
123
- adaptersCustomAttributesIdGetWithHttpInfo(id) {
124
- let postBody = null;
125
- // verify the required parameter 'id' is set
126
- if (id === undefined || id === null) {
127
- throw new Error("Missing the required parameter 'id' when calling adaptersCustomAttributesIdGet");
128
- }
129
- let pathParams = {
130
- 'id': id
131
- };
132
- let queryParams = {};
133
- let headerParams = {};
134
- let formParams = {};
135
- let authNames = ['PrivateToken', 'Identity.Application'];
136
- let contentTypes = [];
137
- let accepts = ['application/json'];
138
- let returnType = _CustomAttributeApiResult.default;
139
- return this.apiClient.callApi('/adapters/customAttributes/{id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
140
- }
141
-
142
- /**
143
- * Get attribute by ID
144
- * @param {String} id Unique ID of attribute
145
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CustomAttributeApiResult}
146
- */
147
- adaptersCustomAttributesIdGet(id) {
148
- return this.adaptersCustomAttributesIdGetWithHttpInfo(id).then(function (response_and_data) {
149
- return response_and_data.data;
150
- });
151
- }
152
-
153
- /**
154
- * Search for attributes
155
- * @param {Object} opts Optional parameters
156
- * @param {Number} [skip] Amount of items to be skipped (offset)
157
- * @param {Number} [take] Amount of items to be taken (limit)
158
- * @param {String} [orderBy] SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC)
159
- * @param {String} [searchField] Property name for searching
160
- * @param {String} [searchValue] Value for searching
161
- * @param {module:model/CustomAttributeSearchApiModel} [customAttributeSearchApiModel]
162
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/CustomAttributeSearchApiResult>} and HTTP response
163
- */
164
- adaptersCustomAttributesSearchPostWithHttpInfo(opts) {
165
- opts = opts || {};
166
- let postBody = opts['customAttributeSearchApiModel'];
167
- let pathParams = {};
168
- let queryParams = {
169
- 'Skip': opts['skip'],
170
- 'Take': opts['take'],
171
- 'OrderBy': opts['orderBy'],
172
- 'SearchField': opts['searchField'],
173
- 'SearchValue': opts['searchValue']
174
- };
175
- let headerParams = {};
176
- let formParams = {};
177
- let authNames = ['PrivateToken', 'Identity.Application'];
178
- let contentTypes = ['application/json'];
179
- let accepts = ['application/json'];
180
- let returnType = [_CustomAttributeSearchApiResult.default];
181
- return this.apiClient.callApi('/adapters/customAttributes/search', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
182
- }
183
-
184
- /**
185
- * Search for attributes
186
- * @param {Object} opts Optional parameters
187
- * @param {Number} opts.skip Amount of items to be skipped (offset)
188
- * @param {Number} opts.take Amount of items to be taken (limit)
189
- * @param {String} opts.orderBy SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC)
190
- * @param {String} opts.searchField Property name for searching
191
- * @param {String} opts.searchValue Value for searching
192
- * @param {module:model/CustomAttributeSearchApiModel} opts.customAttributeSearchApiModel
193
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/CustomAttributeSearchApiResult>}
194
- */
195
- adaptersCustomAttributesSearchPost(opts) {
196
- return this.adaptersCustomAttributesSearchPostWithHttpInfo(opts).then(function (response_and_data) {
197
- return response_and_data.data;
198
- });
199
- }
200
- }
201
- exports.default = CustomAttributesApi;
@@ -1,98 +0,0 @@
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 CustomAttributeOptionPostApiModel model module.
24
- * @module model/CustomAttributeOptionPostApiModel
25
- * @version 1.0.0
26
- */
27
- class CustomAttributeOptionPostApiModel {
28
- /**
29
- * Constructs a new <code>CustomAttributeOptionPostApiModel</code>.
30
- * @alias module:model/CustomAttributeOptionPostApiModel
31
- * @param isDefault {Boolean} Indicates if the attribute option is used by default
32
- */
33
- constructor(isDefault) {
34
- CustomAttributeOptionPostApiModel.initialize(this, isDefault);
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, isDefault) {
43
- obj['isDefault'] = isDefault;
44
- }
45
-
46
- /**
47
- * Constructs a <code>CustomAttributeOptionPostApiModel</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/CustomAttributeOptionPostApiModel} obj Optional instance to populate.
51
- * @return {module:model/CustomAttributeOptionPostApiModel} The populated <code>CustomAttributeOptionPostApiModel</code> instance.
52
- */
53
- static constructFromObject(data, obj) {
54
- if (data) {
55
- obj = obj || new CustomAttributeOptionPostApiModel();
56
- if (data.hasOwnProperty('value')) {
57
- obj['value'] = _ApiClient.default.convertToType(data['value'], 'String');
58
- }
59
- if (data.hasOwnProperty('isDefault')) {
60
- obj['isDefault'] = _ApiClient.default.convertToType(data['isDefault'], 'Boolean');
61
- }
62
- }
63
- return obj;
64
- }
65
-
66
- /**
67
- * Validates the JSON data with respect to <code>CustomAttributeOptionPostApiModel</code>.
68
- * @param {Object} data The plain JavaScript object bearing properties of interest.
69
- * @return {boolean} to indicate whether the JSON data is valid with respect to <code>CustomAttributeOptionPostApiModel</code>.
70
- */
71
- static validateJSON(data) {
72
- // check to make sure all required properties are present in the JSON string
73
- for (const property of CustomAttributeOptionPostApiModel.RequiredProperties) {
74
- if (!data.hasOwnProperty(property)) {
75
- throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
76
- }
77
- }
78
- // ensure the json data is a string
79
- if (data['value'] && !(typeof data['value'] === 'string' || data['value'] instanceof String)) {
80
- throw new Error("Expected the field `value` to be a primitive type in the JSON string but got " + data['value']);
81
- }
82
- return true;
83
- }
84
- }
85
- CustomAttributeOptionPostApiModel.RequiredProperties = ["isDefault"];
86
-
87
- /**
88
- * Value of the attribute option
89
- * @member {String} value
90
- */
91
- CustomAttributeOptionPostApiModel.prototype['value'] = undefined;
92
-
93
- /**
94
- * Indicates if the attribute option is used by default
95
- * @member {Boolean} isDefault
96
- */
97
- CustomAttributeOptionPostApiModel.prototype['isDefault'] = undefined;
98
- var _default = exports.default = CustomAttributeOptionPostApiModel;
@@ -1,124 +0,0 @@
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 CustomAttributeOptionUpdateApiModel model module.
24
- * @module model/CustomAttributeOptionUpdateApiModel
25
- * @version 1.0.0
26
- */
27
- class CustomAttributeOptionUpdateApiModel {
28
- /**
29
- * Constructs a new <code>CustomAttributeOptionUpdateApiModel</code>.
30
- * @alias module:model/CustomAttributeOptionUpdateApiModel
31
- * @param id {String} Unique ID of the attribute option
32
- * @param isDefault {Boolean} Indicates if the attribute option is used by default
33
- * @param isDeleted {Boolean} Indicates if the attributes option is deleted
34
- */
35
- constructor(id, isDefault, isDeleted) {
36
- CustomAttributeOptionUpdateApiModel.initialize(this, id, isDefault, isDeleted);
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, isDefault, isDeleted) {
45
- obj['id'] = id;
46
- obj['isDefault'] = isDefault;
47
- obj['isDeleted'] = isDeleted;
48
- }
49
-
50
- /**
51
- * Constructs a <code>CustomAttributeOptionUpdateApiModel</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/CustomAttributeOptionUpdateApiModel} obj Optional instance to populate.
55
- * @return {module:model/CustomAttributeOptionUpdateApiModel} The populated <code>CustomAttributeOptionUpdateApiModel</code> instance.
56
- */
57
- static constructFromObject(data, obj) {
58
- if (data) {
59
- obj = obj || new CustomAttributeOptionUpdateApiModel();
60
- if (data.hasOwnProperty('id')) {
61
- obj['id'] = _ApiClient.default.convertToType(data['id'], 'String');
62
- }
63
- if (data.hasOwnProperty('value')) {
64
- obj['value'] = _ApiClient.default.convertToType(data['value'], 'String');
65
- }
66
- if (data.hasOwnProperty('isDefault')) {
67
- obj['isDefault'] = _ApiClient.default.convertToType(data['isDefault'], 'Boolean');
68
- }
69
- if (data.hasOwnProperty('isDeleted')) {
70
- obj['isDeleted'] = _ApiClient.default.convertToType(data['isDeleted'], 'Boolean');
71
- }
72
- }
73
- return obj;
74
- }
75
-
76
- /**
77
- * Validates the JSON data with respect to <code>CustomAttributeOptionUpdateApiModel</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>CustomAttributeOptionUpdateApiModel</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 CustomAttributeOptionUpdateApiModel.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
- CustomAttributeOptionUpdateApiModel.RequiredProperties = ["id", "isDefault", "isDeleted"];
100
-
101
- /**
102
- * Unique ID of the attribute option
103
- * @member {String} id
104
- */
105
- CustomAttributeOptionUpdateApiModel.prototype['id'] = undefined;
106
-
107
- /**
108
- * Value of the attribute option
109
- * @member {String} value
110
- */
111
- CustomAttributeOptionUpdateApiModel.prototype['value'] = undefined;
112
-
113
- /**
114
- * Indicates if the attribute option is used by default
115
- * @member {Boolean} isDefault
116
- */
117
- CustomAttributeOptionUpdateApiModel.prototype['isDefault'] = undefined;
118
-
119
- /**
120
- * Indicates if the attributes option is deleted
121
- * @member {Boolean} isDeleted
122
- */
123
- CustomAttributeOptionUpdateApiModel.prototype['isDeleted'] = undefined;
124
- var _default = exports.default = CustomAttributeOptionUpdateApiModel;
@@ -1,137 +0,0 @@
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 _CustomAttributeType = _interopRequireDefault(require("./CustomAttributeType"));
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 CustomAttributeSearchApiModel model module.
25
- * @module model/CustomAttributeSearchApiModel
26
- * @version 1.0.0
27
- */
28
- class CustomAttributeSearchApiModel {
29
- /**
30
- * Constructs a new <code>CustomAttributeSearchApiModel</code>.
31
- * @alias module:model/CustomAttributeSearchApiModel
32
- */
33
- constructor() {
34
- CustomAttributeSearchApiModel.initialize(this);
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) {}
43
-
44
- /**
45
- * Constructs a <code>CustomAttributeSearchApiModel</code> from a plain JavaScript object, optionally creating a new instance.
46
- * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
47
- * @param {Object} data The plain JavaScript object bearing properties of interest.
48
- * @param {module:model/CustomAttributeSearchApiModel} obj Optional instance to populate.
49
- * @return {module:model/CustomAttributeSearchApiModel} The populated <code>CustomAttributeSearchApiModel</code> instance.
50
- */
51
- static constructFromObject(data, obj) {
52
- if (data) {
53
- obj = obj || new CustomAttributeSearchApiModel();
54
- if (data.hasOwnProperty('name')) {
55
- obj['name'] = _ApiClient.default.convertToType(data['name'], 'String');
56
- }
57
- if (data.hasOwnProperty('projectIds')) {
58
- obj['projectIds'] = _ApiClient.default.convertToType(data['projectIds'], ['String']);
59
- }
60
- if (data.hasOwnProperty('customAttributeIds')) {
61
- obj['customAttributeIds'] = _ApiClient.default.convertToType(data['customAttributeIds'], ['String']);
62
- }
63
- if (data.hasOwnProperty('customAttributeTypes')) {
64
- obj['customAttributeTypes'] = _ApiClient.default.convertToType(data['customAttributeTypes'], [_CustomAttributeType.default]);
65
- }
66
- if (data.hasOwnProperty('isGlobal')) {
67
- obj['isGlobal'] = _ApiClient.default.convertToType(data['isGlobal'], 'Boolean');
68
- }
69
- if (data.hasOwnProperty('isDeleted')) {
70
- obj['isDeleted'] = _ApiClient.default.convertToType(data['isDeleted'], 'Boolean');
71
- }
72
- }
73
- return obj;
74
- }
75
-
76
- /**
77
- * Validates the JSON data with respect to <code>CustomAttributeSearchApiModel</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>CustomAttributeSearchApiModel</code>.
80
- */
81
- static validateJSON(data) {
82
- // ensure the json data is a string
83
- if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
84
- throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
85
- }
86
- // ensure the json data is an array
87
- if (!Array.isArray(data['projectIds'])) {
88
- throw new Error("Expected the field `projectIds` to be an array in the JSON data but got " + data['projectIds']);
89
- }
90
- // ensure the json data is an array
91
- if (!Array.isArray(data['customAttributeIds'])) {
92
- throw new Error("Expected the field `customAttributeIds` to be an array in the JSON data but got " + data['customAttributeIds']);
93
- }
94
- // ensure the json data is an array
95
- if (!Array.isArray(data['customAttributeTypes'])) {
96
- throw new Error("Expected the field `customAttributeTypes` to be an array in the JSON data but got " + data['customAttributeTypes']);
97
- }
98
- return true;
99
- }
100
- }
101
-
102
- /**
103
- * Name of attribute
104
- * @member {String} name
105
- */
106
- CustomAttributeSearchApiModel.prototype['name'] = undefined;
107
-
108
- /**
109
- * Unique IDs of projects where attribute is in use
110
- * @member {Array.<String>} projectIds
111
- */
112
- CustomAttributeSearchApiModel.prototype['projectIds'] = undefined;
113
-
114
- /**
115
- * Unique IDs of attributes for search restriction
116
- * @member {Array.<String>} customAttributeIds
117
- */
118
- CustomAttributeSearchApiModel.prototype['customAttributeIds'] = undefined;
119
-
120
- /**
121
- * Collection of attribute types
122
- * @member {Array.<module:model/CustomAttributeType>} customAttributeTypes
123
- */
124
- CustomAttributeSearchApiModel.prototype['customAttributeTypes'] = undefined;
125
-
126
- /**
127
- * Indicates whether the attribute is available across all projects
128
- * @member {Boolean} isGlobal
129
- */
130
- CustomAttributeSearchApiModel.prototype['isGlobal'] = undefined;
131
-
132
- /**
133
- * Indicates whether the attribute is deleted
134
- * @member {Boolean} isDeleted
135
- */
136
- CustomAttributeSearchApiModel.prototype['isDeleted'] = undefined;
137
- var _default = exports.default = CustomAttributeSearchApiModel;