@ignos/api-client 20250116.0.10991 → 20250121.0.10997

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.
@@ -2162,6 +2162,243 @@ export class PulseClient extends AuthorizedApiBase {
2162
2162
  return Promise.resolve(null);
2163
2163
  }
2164
2164
  }
2165
+ export class UtilizationClient extends AuthorizedApiBase {
2166
+ constructor(configuration, baseUrl, http) {
2167
+ super(configuration);
2168
+ this.jsonParseReviver = undefined;
2169
+ this.http = http ? http : window;
2170
+ this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
2171
+ }
2172
+ getCompanyUtilization(utilizationType, startTime, endTime) {
2173
+ let url_ = this.baseUrl + "/utilization?";
2174
+ if (utilizationType === null)
2175
+ throw new Error("The parameter 'utilizationType' cannot be null.");
2176
+ else if (utilizationType !== undefined)
2177
+ url_ += "utilizationType=" + encodeURIComponent("" + utilizationType) + "&";
2178
+ if (startTime !== undefined && startTime !== null)
2179
+ url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
2180
+ if (endTime !== undefined && endTime !== null)
2181
+ url_ += "endTime=" + encodeURIComponent(endTime ? "" + endTime.toISOString() : "") + "&";
2182
+ url_ = url_.replace(/[?&]$/, "");
2183
+ let options_ = {
2184
+ method: "GET",
2185
+ headers: {
2186
+ "Accept": "application/json"
2187
+ }
2188
+ };
2189
+ return this.transformOptions(options_).then(transformedOptions_ => {
2190
+ return this.http.fetch(url_, transformedOptions_);
2191
+ }).then((_response) => {
2192
+ return this.processGetCompanyUtilization(_response);
2193
+ });
2194
+ }
2195
+ processGetCompanyUtilization(response) {
2196
+ const status = response.status;
2197
+ let _headers = {};
2198
+ if (response.headers && response.headers.forEach) {
2199
+ response.headers.forEach((v, k) => _headers[k] = v);
2200
+ }
2201
+ ;
2202
+ if (status === 200) {
2203
+ return response.text().then((_responseText) => {
2204
+ let result200 = null;
2205
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
2206
+ result200 = CompanyUtilizationDto.fromJS(resultData200);
2207
+ return result200;
2208
+ });
2209
+ }
2210
+ else if (status !== 200 && status !== 204) {
2211
+ return response.text().then((_responseText) => {
2212
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
2213
+ });
2214
+ }
2215
+ return Promise.resolve(null);
2216
+ }
2217
+ getCrossCompanyUtilization(utilizationType, startTime, endTime) {
2218
+ let url_ = this.baseUrl + "/utilization/cross-company?";
2219
+ if (utilizationType === null)
2220
+ throw new Error("The parameter 'utilizationType' cannot be null.");
2221
+ else if (utilizationType !== undefined)
2222
+ url_ += "utilizationType=" + encodeURIComponent("" + utilizationType) + "&";
2223
+ if (startTime !== undefined && startTime !== null)
2224
+ url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
2225
+ if (endTime !== undefined && endTime !== null)
2226
+ url_ += "endTime=" + encodeURIComponent(endTime ? "" + endTime.toISOString() : "") + "&";
2227
+ url_ = url_.replace(/[?&]$/, "");
2228
+ let options_ = {
2229
+ method: "GET",
2230
+ headers: {
2231
+ "Accept": "application/json"
2232
+ }
2233
+ };
2234
+ return this.transformOptions(options_).then(transformedOptions_ => {
2235
+ return this.http.fetch(url_, transformedOptions_);
2236
+ }).then((_response) => {
2237
+ return this.processGetCrossCompanyUtilization(_response);
2238
+ });
2239
+ }
2240
+ processGetCrossCompanyUtilization(response) {
2241
+ const status = response.status;
2242
+ let _headers = {};
2243
+ if (response.headers && response.headers.forEach) {
2244
+ response.headers.forEach((v, k) => _headers[k] = v);
2245
+ }
2246
+ ;
2247
+ if (status === 200) {
2248
+ return response.text().then((_responseText) => {
2249
+ let result200 = null;
2250
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
2251
+ result200 = CrossCompanyUtilizationDto.fromJS(resultData200);
2252
+ return result200;
2253
+ });
2254
+ }
2255
+ else if (status !== 200 && status !== 204) {
2256
+ return response.text().then((_responseText) => {
2257
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
2258
+ });
2259
+ }
2260
+ return Promise.resolve(null);
2261
+ }
2262
+ getUtilizationDatapoints(utilizationType, startTime, endTime, assetId, assetExternalId) {
2263
+ let url_ = this.baseUrl + "/utilization/datapoints?";
2264
+ if (utilizationType === null)
2265
+ throw new Error("The parameter 'utilizationType' cannot be null.");
2266
+ else if (utilizationType !== undefined)
2267
+ url_ += "utilizationType=" + encodeURIComponent("" + utilizationType) + "&";
2268
+ if (startTime !== undefined && startTime !== null)
2269
+ url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
2270
+ if (endTime !== undefined && endTime !== null)
2271
+ url_ += "endTime=" + encodeURIComponent(endTime ? "" + endTime.toISOString() : "") + "&";
2272
+ if (assetId !== undefined && assetId !== null)
2273
+ url_ += "assetId=" + encodeURIComponent("" + assetId) + "&";
2274
+ if (assetExternalId !== undefined && assetExternalId !== null)
2275
+ url_ += "assetExternalId=" + encodeURIComponent("" + assetExternalId) + "&";
2276
+ url_ = url_.replace(/[?&]$/, "");
2277
+ let options_ = {
2278
+ method: "GET",
2279
+ headers: {
2280
+ "Accept": "application/json"
2281
+ }
2282
+ };
2283
+ return this.transformOptions(options_).then(transformedOptions_ => {
2284
+ return this.http.fetch(url_, transformedOptions_);
2285
+ }).then((_response) => {
2286
+ return this.processGetUtilizationDatapoints(_response);
2287
+ });
2288
+ }
2289
+ processGetUtilizationDatapoints(response) {
2290
+ const status = response.status;
2291
+ let _headers = {};
2292
+ if (response.headers && response.headers.forEach) {
2293
+ response.headers.forEach((v, k) => _headers[k] = v);
2294
+ }
2295
+ ;
2296
+ if (status === 200) {
2297
+ return response.text().then((_responseText) => {
2298
+ let result200 = null;
2299
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
2300
+ result200 = MachineUtilizationDatapointListDto.fromJS(resultData200);
2301
+ return result200;
2302
+ });
2303
+ }
2304
+ else if (status !== 200 && status !== 204) {
2305
+ return response.text().then((_responseText) => {
2306
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
2307
+ });
2308
+ }
2309
+ return Promise.resolve(null);
2310
+ }
2311
+ getCompanyUtilizationDatapoints(utilizationType, startTime, endTime) {
2312
+ let url_ = this.baseUrl + "/utilization/datapoints/company?";
2313
+ if (utilizationType === null)
2314
+ throw new Error("The parameter 'utilizationType' cannot be null.");
2315
+ else if (utilizationType !== undefined)
2316
+ url_ += "utilizationType=" + encodeURIComponent("" + utilizationType) + "&";
2317
+ if (startTime !== undefined && startTime !== null)
2318
+ url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
2319
+ if (endTime !== undefined && endTime !== null)
2320
+ url_ += "endTime=" + encodeURIComponent(endTime ? "" + endTime.toISOString() : "") + "&";
2321
+ url_ = url_.replace(/[?&]$/, "");
2322
+ let options_ = {
2323
+ method: "GET",
2324
+ headers: {
2325
+ "Accept": "application/json"
2326
+ }
2327
+ };
2328
+ return this.transformOptions(options_).then(transformedOptions_ => {
2329
+ return this.http.fetch(url_, transformedOptions_);
2330
+ }).then((_response) => {
2331
+ return this.processGetCompanyUtilizationDatapoints(_response);
2332
+ });
2333
+ }
2334
+ processGetCompanyUtilizationDatapoints(response) {
2335
+ const status = response.status;
2336
+ let _headers = {};
2337
+ if (response.headers && response.headers.forEach) {
2338
+ response.headers.forEach((v, k) => _headers[k] = v);
2339
+ }
2340
+ ;
2341
+ if (status === 200) {
2342
+ return response.text().then((_responseText) => {
2343
+ let result200 = null;
2344
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
2345
+ result200 = CompanyUtilizationDatapointListDto.fromJS(resultData200);
2346
+ return result200;
2347
+ });
2348
+ }
2349
+ else if (status !== 200 && status !== 204) {
2350
+ return response.text().then((_responseText) => {
2351
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
2352
+ });
2353
+ }
2354
+ return Promise.resolve(null);
2355
+ }
2356
+ getCrossCompanyUtilizationDatapoints(utilizationType, startTime, endTime) {
2357
+ let url_ = this.baseUrl + "/utilization/datapoints/cross-company?";
2358
+ if (utilizationType === null)
2359
+ throw new Error("The parameter 'utilizationType' cannot be null.");
2360
+ else if (utilizationType !== undefined)
2361
+ url_ += "utilizationType=" + encodeURIComponent("" + utilizationType) + "&";
2362
+ if (startTime !== undefined && startTime !== null)
2363
+ url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
2364
+ if (endTime !== undefined && endTime !== null)
2365
+ url_ += "endTime=" + encodeURIComponent(endTime ? "" + endTime.toISOString() : "") + "&";
2366
+ url_ = url_.replace(/[?&]$/, "");
2367
+ let options_ = {
2368
+ method: "GET",
2369
+ headers: {
2370
+ "Accept": "application/json"
2371
+ }
2372
+ };
2373
+ return this.transformOptions(options_).then(transformedOptions_ => {
2374
+ return this.http.fetch(url_, transformedOptions_);
2375
+ }).then((_response) => {
2376
+ return this.processGetCrossCompanyUtilizationDatapoints(_response);
2377
+ });
2378
+ }
2379
+ processGetCrossCompanyUtilizationDatapoints(response) {
2380
+ const status = response.status;
2381
+ let _headers = {};
2382
+ if (response.headers && response.headers.forEach) {
2383
+ response.headers.forEach((v, k) => _headers[k] = v);
2384
+ }
2385
+ ;
2386
+ if (status === 200) {
2387
+ return response.text().then((_responseText) => {
2388
+ let result200 = null;
2389
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
2390
+ result200 = CrossCompanyUtilizationDatapointListDto.fromJS(resultData200);
2391
+ return result200;
2392
+ });
2393
+ }
2394
+ else if (status !== 200 && status !== 204) {
2395
+ return response.text().then((_responseText) => {
2396
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
2397
+ });
2398
+ }
2399
+ return Promise.resolve(null);
2400
+ }
2401
+ }
2165
2402
  export class MrbClient extends AuthorizedApiBase {
2166
2403
  constructor(configuration, baseUrl, http) {
2167
2404
  super(configuration);
@@ -22515,6 +22752,332 @@ export class UpdatePulseSettings {
22515
22752
  return data;
22516
22753
  }
22517
22754
  }
22755
+ export class CompanyUtilizationDto {
22756
+ constructor(data) {
22757
+ if (data) {
22758
+ for (var property in data) {
22759
+ if (data.hasOwnProperty(property))
22760
+ this[property] = data[property];
22761
+ }
22762
+ }
22763
+ if (!data) {
22764
+ this.companyUtilization = new UtilizationDetailsV2Dto();
22765
+ this.groups = [];
22766
+ this.ungroupedMachines = [];
22767
+ }
22768
+ }
22769
+ init(_data) {
22770
+ if (_data) {
22771
+ this.utilizationType = _data["utilizationType"];
22772
+ this.companyUtilization = _data["companyUtilization"] ? UtilizationDetailsV2Dto.fromJS(_data["companyUtilization"]) : new UtilizationDetailsV2Dto();
22773
+ if (Array.isArray(_data["groups"])) {
22774
+ this.groups = [];
22775
+ for (let item of _data["groups"])
22776
+ this.groups.push(MachineGroupUtilizationV2Dto.fromJS(item));
22777
+ }
22778
+ if (Array.isArray(_data["ungroupedMachines"])) {
22779
+ this.ungroupedMachines = [];
22780
+ for (let item of _data["ungroupedMachines"])
22781
+ this.ungroupedMachines.push(MachineUtilizationV3Dto.fromJS(item));
22782
+ }
22783
+ }
22784
+ }
22785
+ static fromJS(data) {
22786
+ data = typeof data === 'object' ? data : {};
22787
+ let result = new CompanyUtilizationDto();
22788
+ result.init(data);
22789
+ return result;
22790
+ }
22791
+ toJSON(data) {
22792
+ data = typeof data === 'object' ? data : {};
22793
+ data["utilizationType"] = this.utilizationType;
22794
+ data["companyUtilization"] = this.companyUtilization ? this.companyUtilization.toJSON() : undefined;
22795
+ if (Array.isArray(this.groups)) {
22796
+ data["groups"] = [];
22797
+ for (let item of this.groups)
22798
+ data["groups"].push(item.toJSON());
22799
+ }
22800
+ if (Array.isArray(this.ungroupedMachines)) {
22801
+ data["ungroupedMachines"] = [];
22802
+ for (let item of this.ungroupedMachines)
22803
+ data["ungroupedMachines"].push(item.toJSON());
22804
+ }
22805
+ return data;
22806
+ }
22807
+ }
22808
+ export class UtilizationDetailsV2Dto {
22809
+ constructor(data) {
22810
+ if (data) {
22811
+ for (var property in data) {
22812
+ if (data.hasOwnProperty(property))
22813
+ this[property] = data[property];
22814
+ }
22815
+ }
22816
+ }
22817
+ init(_data) {
22818
+ if (_data) {
22819
+ this.utilizationPercent = _data["utilizationPercent"];
22820
+ this.uptimeInSeconds = _data["uptimeInSeconds"];
22821
+ this.downtimeInSeconds = _data["downtimeInSeconds"];
22822
+ this.totalTimeInSeconds = _data["totalTimeInSeconds"];
22823
+ }
22824
+ }
22825
+ static fromJS(data) {
22826
+ data = typeof data === 'object' ? data : {};
22827
+ let result = new UtilizationDetailsV2Dto();
22828
+ result.init(data);
22829
+ return result;
22830
+ }
22831
+ toJSON(data) {
22832
+ data = typeof data === 'object' ? data : {};
22833
+ data["utilizationPercent"] = this.utilizationPercent;
22834
+ data["uptimeInSeconds"] = this.uptimeInSeconds;
22835
+ data["downtimeInSeconds"] = this.downtimeInSeconds;
22836
+ data["totalTimeInSeconds"] = this.totalTimeInSeconds;
22837
+ return data;
22838
+ }
22839
+ }
22840
+ export class MachineGroupUtilizationV2Dto {
22841
+ constructor(data) {
22842
+ if (data) {
22843
+ for (var property in data) {
22844
+ if (data.hasOwnProperty(property))
22845
+ this[property] = data[property];
22846
+ }
22847
+ }
22848
+ if (!data) {
22849
+ this.utilization = new UtilizationDetailsV2Dto();
22850
+ this.machines = [];
22851
+ }
22852
+ }
22853
+ init(_data) {
22854
+ if (_data) {
22855
+ this.name = _data["name"];
22856
+ this.utilization = _data["utilization"] ? UtilizationDetailsV2Dto.fromJS(_data["utilization"]) : new UtilizationDetailsV2Dto();
22857
+ if (Array.isArray(_data["machines"])) {
22858
+ this.machines = [];
22859
+ for (let item of _data["machines"])
22860
+ this.machines.push(MachineUtilizationV3Dto.fromJS(item));
22861
+ }
22862
+ }
22863
+ }
22864
+ static fromJS(data) {
22865
+ data = typeof data === 'object' ? data : {};
22866
+ let result = new MachineGroupUtilizationV2Dto();
22867
+ result.init(data);
22868
+ return result;
22869
+ }
22870
+ toJSON(data) {
22871
+ data = typeof data === 'object' ? data : {};
22872
+ data["name"] = this.name;
22873
+ data["utilization"] = this.utilization ? this.utilization.toJSON() : undefined;
22874
+ if (Array.isArray(this.machines)) {
22875
+ data["machines"] = [];
22876
+ for (let item of this.machines)
22877
+ data["machines"].push(item.toJSON());
22878
+ }
22879
+ return data;
22880
+ }
22881
+ }
22882
+ export class MachineUtilizationV3Dto {
22883
+ constructor(data) {
22884
+ if (data) {
22885
+ for (var property in data) {
22886
+ if (data.hasOwnProperty(property))
22887
+ this[property] = data[property];
22888
+ }
22889
+ }
22890
+ if (!data) {
22891
+ this.utilization = new UtilizationDetailsV2Dto();
22892
+ }
22893
+ }
22894
+ init(_data) {
22895
+ if (_data) {
22896
+ this.id = _data["id"];
22897
+ this.name = _data["name"];
22898
+ this.description = _data["description"];
22899
+ this.utilization = _data["utilization"] ? UtilizationDetailsV2Dto.fromJS(_data["utilization"]) : new UtilizationDetailsV2Dto();
22900
+ }
22901
+ }
22902
+ static fromJS(data) {
22903
+ data = typeof data === 'object' ? data : {};
22904
+ let result = new MachineUtilizationV3Dto();
22905
+ result.init(data);
22906
+ return result;
22907
+ }
22908
+ toJSON(data) {
22909
+ data = typeof data === 'object' ? data : {};
22910
+ data["id"] = this.id;
22911
+ data["name"] = this.name;
22912
+ data["description"] = this.description;
22913
+ data["utilization"] = this.utilization ? this.utilization.toJSON() : undefined;
22914
+ return data;
22915
+ }
22916
+ }
22917
+ export class CrossCompanyUtilizationDto {
22918
+ constructor(data) {
22919
+ if (data) {
22920
+ for (var property in data) {
22921
+ if (data.hasOwnProperty(property))
22922
+ this[property] = data[property];
22923
+ }
22924
+ }
22925
+ if (!data) {
22926
+ this.crossCompanyUtilization = new UtilizationDetailsV2Dto();
22927
+ this.companies = [];
22928
+ }
22929
+ }
22930
+ init(_data) {
22931
+ if (_data) {
22932
+ this.utilizationType = _data["utilizationType"];
22933
+ this.crossCompanyUtilization = _data["crossCompanyUtilization"] ? UtilizationDetailsV2Dto.fromJS(_data["crossCompanyUtilization"]) : new UtilizationDetailsV2Dto();
22934
+ if (Array.isArray(_data["companies"])) {
22935
+ this.companies = [];
22936
+ for (let item of _data["companies"])
22937
+ this.companies.push(CompanyUtilizationDto.fromJS(item));
22938
+ }
22939
+ }
22940
+ }
22941
+ static fromJS(data) {
22942
+ data = typeof data === 'object' ? data : {};
22943
+ let result = new CrossCompanyUtilizationDto();
22944
+ result.init(data);
22945
+ return result;
22946
+ }
22947
+ toJSON(data) {
22948
+ data = typeof data === 'object' ? data : {};
22949
+ data["utilizationType"] = this.utilizationType;
22950
+ data["crossCompanyUtilization"] = this.crossCompanyUtilization ? this.crossCompanyUtilization.toJSON() : undefined;
22951
+ if (Array.isArray(this.companies)) {
22952
+ data["companies"] = [];
22953
+ for (let item of this.companies)
22954
+ data["companies"].push(item.toJSON());
22955
+ }
22956
+ return data;
22957
+ }
22958
+ }
22959
+ export class UtilizationDatapointListDto {
22960
+ constructor(data) {
22961
+ if (data) {
22962
+ for (var property in data) {
22963
+ if (data.hasOwnProperty(property))
22964
+ this[property] = data[property];
22965
+ }
22966
+ }
22967
+ }
22968
+ init(_data) {
22969
+ if (_data) {
22970
+ if (Array.isArray(_data["datapoints"])) {
22971
+ this.datapoints = [];
22972
+ for (let item of _data["datapoints"])
22973
+ this.datapoints.push(NumericNullableValueWithTimestamp.fromJS(item));
22974
+ }
22975
+ }
22976
+ }
22977
+ static fromJS(data) {
22978
+ data = typeof data === 'object' ? data : {};
22979
+ let result = new UtilizationDatapointListDto();
22980
+ result.init(data);
22981
+ return result;
22982
+ }
22983
+ toJSON(data) {
22984
+ data = typeof data === 'object' ? data : {};
22985
+ if (Array.isArray(this.datapoints)) {
22986
+ data["datapoints"] = [];
22987
+ for (let item of this.datapoints)
22988
+ data["datapoints"].push(item.toJSON());
22989
+ }
22990
+ return data;
22991
+ }
22992
+ }
22993
+ export class MachineUtilizationDatapointListDto extends UtilizationDatapointListDto {
22994
+ constructor(data) {
22995
+ super(data);
22996
+ }
22997
+ init(_data) {
22998
+ super.init(_data);
22999
+ if (_data) {
23000
+ this.externalId = _data["externalId"];
23001
+ this.id = _data["id"];
23002
+ this.name = _data["name"];
23003
+ this.description = _data["description"];
23004
+ }
23005
+ }
23006
+ static fromJS(data) {
23007
+ data = typeof data === 'object' ? data : {};
23008
+ let result = new MachineUtilizationDatapointListDto();
23009
+ result.init(data);
23010
+ return result;
23011
+ }
23012
+ toJSON(data) {
23013
+ data = typeof data === 'object' ? data : {};
23014
+ data["externalId"] = this.externalId;
23015
+ data["id"] = this.id;
23016
+ data["name"] = this.name;
23017
+ data["description"] = this.description;
23018
+ super.toJSON(data);
23019
+ return data;
23020
+ }
23021
+ }
23022
+ export class CompanyUtilizationDatapointListDto extends UtilizationDatapointListDto {
23023
+ constructor(data) {
23024
+ super(data);
23025
+ }
23026
+ init(_data) {
23027
+ super.init(_data);
23028
+ if (_data) {
23029
+ this.companyId = _data["companyId"];
23030
+ this.companyName = _data["companyName"];
23031
+ }
23032
+ }
23033
+ static fromJS(data) {
23034
+ data = typeof data === 'object' ? data : {};
23035
+ let result = new CompanyUtilizationDatapointListDto();
23036
+ result.init(data);
23037
+ return result;
23038
+ }
23039
+ toJSON(data) {
23040
+ data = typeof data === 'object' ? data : {};
23041
+ data["companyId"] = this.companyId;
23042
+ data["companyName"] = this.companyName;
23043
+ super.toJSON(data);
23044
+ return data;
23045
+ }
23046
+ }
23047
+ export class CrossCompanyUtilizationDatapointListDto {
23048
+ constructor(data) {
23049
+ if (data) {
23050
+ for (var property in data) {
23051
+ if (data.hasOwnProperty(property))
23052
+ this[property] = data[property];
23053
+ }
23054
+ }
23055
+ }
23056
+ init(_data) {
23057
+ if (_data) {
23058
+ if (Array.isArray(_data["companies"])) {
23059
+ this.companies = [];
23060
+ for (let item of _data["companies"])
23061
+ this.companies.push(CompanyUtilizationDatapointListDto.fromJS(item));
23062
+ }
23063
+ }
23064
+ }
23065
+ static fromJS(data) {
23066
+ data = typeof data === 'object' ? data : {};
23067
+ let result = new CrossCompanyUtilizationDatapointListDto();
23068
+ result.init(data);
23069
+ return result;
23070
+ }
23071
+ toJSON(data) {
23072
+ data = typeof data === 'object' ? data : {};
23073
+ if (Array.isArray(this.companies)) {
23074
+ data["companies"] = [];
23075
+ for (let item of this.companies)
23076
+ data["companies"].push(item.toJSON());
23077
+ }
23078
+ return data;
23079
+ }
23080
+ }
22518
23081
  export class MrbInstanceDto {
22519
23082
  constructor(data) {
22520
23083
  if (data) {
@@ -26388,6 +26951,7 @@ export class MachineCapacityDto {
26388
26951
  if (_data) {
26389
26952
  this.machineExternalId = _data["machineExternalId"];
26390
26953
  this.name = _data["name"];
26954
+ this.description = _data["description"];
26391
26955
  this.utilizationPercent = _data["utilizationPercent"];
26392
26956
  this.comment = _data["comment"];
26393
26957
  if (Array.isArray(_data["capacity"])) {
@@ -26410,6 +26974,7 @@ export class MachineCapacityDto {
26410
26974
  data = typeof data === 'object' ? data : {};
26411
26975
  data["machineExternalId"] = this.machineExternalId;
26412
26976
  data["name"] = this.name;
26977
+ data["description"] = this.description;
26413
26978
  data["utilizationPercent"] = this.utilizationPercent;
26414
26979
  data["comment"] = this.comment;
26415
26980
  if (Array.isArray(this.capacity)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ignos/api-client",
3
- "version": "20250116.0.10991",
3
+ "version": "20250121.0.10997",
4
4
  "description": "IGNOS API Client",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",