@ignos/api-client 20250704.0.12076-alpha → 20250704.0.12087-alpha

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.
@@ -2169,7 +2169,7 @@ export class UtilizationClient extends AuthorizedApiBase {
2169
2169
  this.http = http ? http : window;
2170
2170
  this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
2171
2171
  }
2172
- getCompanyUtilization(utilizationType, startTime, endTime) {
2172
+ getCompanyUtilization(utilizationType, startTime, endTime, dataPointCount) {
2173
2173
  let url_ = this.baseUrl + "/utilization?";
2174
2174
  if (utilizationType === null)
2175
2175
  throw new Error("The parameter 'utilizationType' cannot be null.");
@@ -2179,6 +2179,10 @@ export class UtilizationClient extends AuthorizedApiBase {
2179
2179
  url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
2180
2180
  if (endTime !== undefined && endTime !== null)
2181
2181
  url_ += "endTime=" + encodeURIComponent(endTime ? "" + endTime.toISOString() : "") + "&";
2182
+ if (dataPointCount === null)
2183
+ throw new Error("The parameter 'dataPointCount' cannot be null.");
2184
+ else if (dataPointCount !== undefined)
2185
+ url_ += "dataPointCount=" + encodeURIComponent("" + dataPointCount) + "&";
2182
2186
  url_ = url_.replace(/[?&]$/, "");
2183
2187
  let options_ = {
2184
2188
  method: "GET",
@@ -2214,7 +2218,7 @@ export class UtilizationClient extends AuthorizedApiBase {
2214
2218
  }
2215
2219
  return Promise.resolve(null);
2216
2220
  }
2217
- getCrossCompanyUtilization(utilizationType, startTime, endTime) {
2221
+ getCrossCompanyUtilization(utilizationType, startTime, endTime, dataPointCount) {
2218
2222
  let url_ = this.baseUrl + "/utilization/cross-company?";
2219
2223
  if (utilizationType === null)
2220
2224
  throw new Error("The parameter 'utilizationType' cannot be null.");
@@ -2224,6 +2228,10 @@ export class UtilizationClient extends AuthorizedApiBase {
2224
2228
  url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
2225
2229
  if (endTime !== undefined && endTime !== null)
2226
2230
  url_ += "endTime=" + encodeURIComponent(endTime ? "" + endTime.toISOString() : "") + "&";
2231
+ if (dataPointCount === null)
2232
+ throw new Error("The parameter 'dataPointCount' cannot be null.");
2233
+ else if (dataPointCount !== undefined)
2234
+ url_ += "dataPointCount=" + encodeURIComponent("" + dataPointCount) + "&";
2227
2235
  url_ = url_.replace(/[?&]$/, "");
2228
2236
  let options_ = {
2229
2237
  method: "GET",
@@ -2259,7 +2267,7 @@ export class UtilizationClient extends AuthorizedApiBase {
2259
2267
  }
2260
2268
  return Promise.resolve(null);
2261
2269
  }
2262
- getUtilizationDatapoints(utilizationType, startTime, endTime, assetId, assetExternalId) {
2270
+ getUtilizationDatapoints(utilizationType, startTime, endTime, assetExternalId) {
2263
2271
  let url_ = this.baseUrl + "/utilization/datapoints?";
2264
2272
  if (utilizationType === null)
2265
2273
  throw new Error("The parameter 'utilizationType' cannot be null.");
@@ -2269,8 +2277,6 @@ export class UtilizationClient extends AuthorizedApiBase {
2269
2277
  url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
2270
2278
  if (endTime !== undefined && endTime !== null)
2271
2279
  url_ += "endTime=" + encodeURIComponent(endTime ? "" + endTime.toISOString() : "") + "&";
2272
- if (assetId !== undefined && assetId !== null)
2273
- url_ += "assetId=" + encodeURIComponent("" + assetId) + "&";
2274
2280
  if (assetExternalId !== undefined && assetExternalId !== null)
2275
2281
  url_ += "assetExternalId=" + encodeURIComponent("" + assetExternalId) + "&";
2276
2282
  url_ = url_.replace(/[?&]$/, "");
@@ -6020,8 +6026,8 @@ export class KpiAdminClient extends AuthorizedApiBase {
6020
6026
  }
6021
6027
  return Promise.resolve(null);
6022
6028
  }
6023
- getCalendarCapacityAdmin(startDate, endDate) {
6024
- let url_ = this.baseUrl + "/kpiadmin/calendar?";
6029
+ getCalenderCapacityAdmin(startDate, endDate) {
6030
+ let url_ = this.baseUrl + "/kpiadmin/calender?";
6025
6031
  if (startDate === null)
6026
6032
  throw new Error("The parameter 'startDate' cannot be null.");
6027
6033
  else if (startDate !== undefined)
@@ -6040,10 +6046,10 @@ export class KpiAdminClient extends AuthorizedApiBase {
6040
6046
  return this.transformOptions(options_).then(transformedOptions_ => {
6041
6047
  return this.http.fetch(url_, transformedOptions_);
6042
6048
  }).then((_response) => {
6043
- return this.processGetCalendarCapacityAdmin(_response);
6049
+ return this.processGetCalenderCapacityAdmin(_response);
6044
6050
  });
6045
6051
  }
6046
- processGetCalendarCapacityAdmin(response) {
6052
+ processGetCalenderCapacityAdmin(response) {
6047
6053
  const status = response.status;
6048
6054
  let _headers = {};
6049
6055
  if (response.headers && response.headers.forEach) {
@@ -6057,7 +6063,7 @@ export class KpiAdminClient extends AuthorizedApiBase {
6057
6063
  if (Array.isArray(resultData200)) {
6058
6064
  result200 = [];
6059
6065
  for (let item of resultData200)
6060
- result200.push(CalendarDayDto.fromJS(item));
6066
+ result200.push(CalenderCapacityDto.fromJS(item));
6061
6067
  }
6062
6068
  return result200;
6063
6069
  });
@@ -6069,8 +6075,8 @@ export class KpiAdminClient extends AuthorizedApiBase {
6069
6075
  }
6070
6076
  return Promise.resolve(null);
6071
6077
  }
6072
- updateCalendarCapacityAdmin(request) {
6073
- let url_ = this.baseUrl + "/kpiadmin/calendar";
6078
+ updateCalenderCapacityAdmin(request) {
6079
+ let url_ = this.baseUrl + "/kpiadmin/calender";
6074
6080
  url_ = url_.replace(/[?&]$/, "");
6075
6081
  const content_ = JSON.stringify(request);
6076
6082
  let options_ = {
@@ -6084,87 +6090,10 @@ export class KpiAdminClient extends AuthorizedApiBase {
6084
6090
  return this.transformOptions(options_).then(transformedOptions_ => {
6085
6091
  return this.http.fetch(url_, transformedOptions_);
6086
6092
  }).then((_response) => {
6087
- return this.processUpdateCalendarCapacityAdmin(_response);
6088
- });
6089
- }
6090
- processUpdateCalendarCapacityAdmin(response) {
6091
- const status = response.status;
6092
- let _headers = {};
6093
- if (response.headers && response.headers.forEach) {
6094
- response.headers.forEach((v, k) => _headers[k] = v);
6095
- }
6096
- ;
6097
- if (status === 200) {
6098
- return response.text().then((_responseText) => {
6099
- let result200 = null;
6100
- let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
6101
- result200 = CalendarCapacityDto.fromJS(resultData200);
6102
- return result200;
6103
- });
6104
- }
6105
- else if (status !== 200 && status !== 204) {
6106
- return response.text().then((_responseText) => {
6107
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
6108
- });
6109
- }
6110
- return Promise.resolve(null);
6111
- }
6112
- getCalendarSettings() {
6113
- let url_ = this.baseUrl + "/kpiadmin/calendar/settings";
6114
- url_ = url_.replace(/[?&]$/, "");
6115
- let options_ = {
6116
- method: "GET",
6117
- headers: {
6118
- "Accept": "application/json"
6119
- }
6120
- };
6121
- return this.transformOptions(options_).then(transformedOptions_ => {
6122
- return this.http.fetch(url_, transformedOptions_);
6123
- }).then((_response) => {
6124
- return this.processGetCalendarSettings(_response);
6125
- });
6126
- }
6127
- processGetCalendarSettings(response) {
6128
- const status = response.status;
6129
- let _headers = {};
6130
- if (response.headers && response.headers.forEach) {
6131
- response.headers.forEach((v, k) => _headers[k] = v);
6132
- }
6133
- ;
6134
- if (status === 200) {
6135
- return response.text().then((_responseText) => {
6136
- let result200 = null;
6137
- let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
6138
- result200 = CalendarSettingsDto.fromJS(resultData200);
6139
- return result200;
6140
- });
6141
- }
6142
- else if (status !== 200 && status !== 204) {
6143
- return response.text().then((_responseText) => {
6144
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
6145
- });
6146
- }
6147
- return Promise.resolve(null);
6148
- }
6149
- updateCalendarSettings(cmd) {
6150
- let url_ = this.baseUrl + "/kpiadmin/calendar/settings";
6151
- url_ = url_.replace(/[?&]$/, "");
6152
- const content_ = JSON.stringify(cmd);
6153
- let options_ = {
6154
- body: content_,
6155
- method: "PUT",
6156
- headers: {
6157
- "Content-Type": "application/json",
6158
- "Accept": "application/json"
6159
- }
6160
- };
6161
- return this.transformOptions(options_).then(transformedOptions_ => {
6162
- return this.http.fetch(url_, transformedOptions_);
6163
- }).then((_response) => {
6164
- return this.processUpdateCalendarSettings(_response);
6093
+ return this.processUpdateCalenderCapacityAdmin(_response);
6165
6094
  });
6166
6095
  }
6167
- processUpdateCalendarSettings(response) {
6096
+ processUpdateCalenderCapacityAdmin(response) {
6168
6097
  const status = response.status;
6169
6098
  let _headers = {};
6170
6099
  if (response.headers && response.headers.forEach) {
@@ -6175,7 +6104,7 @@ export class KpiAdminClient extends AuthorizedApiBase {
6175
6104
  return response.text().then((_responseText) => {
6176
6105
  let result200 = null;
6177
6106
  let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
6178
- result200 = CalendarSettingsDto.fromJS(resultData200);
6107
+ result200 = CalenderCapacityDto.fromJS(resultData200);
6179
6108
  return result200;
6180
6109
  });
6181
6110
  }
@@ -24783,6 +24712,8 @@ export class UtilizationTypeEnablingDto {
24783
24712
  this.powerOnEnabled = _data["powerOnEnabled"];
24784
24713
  this.twentyFourSevenEnabled = _data["twentyFourSevenEnabled"];
24785
24714
  this.activeOrderEnabled = _data["activeOrderEnabled"];
24715
+ this.machineCalendarEnabled = _data["machineCalendarEnabled"];
24716
+ this.factoryCalendarEnabled = _data["factoryCalendarEnabled"];
24786
24717
  }
24787
24718
  }
24788
24719
  static fromJS(data) {
@@ -24796,6 +24727,8 @@ export class UtilizationTypeEnablingDto {
24796
24727
  data["powerOnEnabled"] = this.powerOnEnabled;
24797
24728
  data["twentyFourSevenEnabled"] = this.twentyFourSevenEnabled;
24798
24729
  data["activeOrderEnabled"] = this.activeOrderEnabled;
24730
+ data["machineCalendarEnabled"] = this.machineCalendarEnabled;
24731
+ data["factoryCalendarEnabled"] = this.factoryCalendarEnabled;
24799
24732
  return data;
24800
24733
  }
24801
24734
  }
@@ -24814,6 +24747,8 @@ export class UpdatePulseSettings {
24814
24747
  this.powerOnEnabled = _data["powerOnEnabled"];
24815
24748
  this.twentyfourSevenEnabled = _data["twentyfourSevenEnabled"];
24816
24749
  this.activeOrderEnabled = _data["activeOrderEnabled"];
24750
+ this.machineCalendarEnabled = _data["machineCalendarEnabled"];
24751
+ this.factoryCalendarEnabled = _data["factoryCalendarEnabled"];
24817
24752
  }
24818
24753
  }
24819
24754
  static fromJS(data) {
@@ -24828,6 +24763,8 @@ export class UpdatePulseSettings {
24828
24763
  data["powerOnEnabled"] = this.powerOnEnabled;
24829
24764
  data["twentyfourSevenEnabled"] = this.twentyfourSevenEnabled;
24830
24765
  data["activeOrderEnabled"] = this.activeOrderEnabled;
24766
+ data["machineCalendarEnabled"] = this.machineCalendarEnabled;
24767
+ data["factoryCalendarEnabled"] = this.factoryCalendarEnabled;
24831
24768
  return data;
24832
24769
  }
24833
24770
  }
@@ -24896,6 +24833,7 @@ export class UtilizationDetailsV2Dto {
24896
24833
  init(_data) {
24897
24834
  if (_data) {
24898
24835
  this.utilizationPercent = _data["utilizationPercent"];
24836
+ this.capacityInMilliseconds = _data["capacityInMilliseconds"];
24899
24837
  this.uptimeInSeconds = _data["uptimeInSeconds"];
24900
24838
  this.downtimeInSeconds = _data["downtimeInSeconds"];
24901
24839
  this.totalTimeInSeconds = _data["totalTimeInSeconds"];
@@ -24913,6 +24851,7 @@ export class UtilizationDetailsV2Dto {
24913
24851
  toJSON(data) {
24914
24852
  data = typeof data === 'object' ? data : {};
24915
24853
  data["utilizationPercent"] = this.utilizationPercent;
24854
+ data["capacityInMilliseconds"] = this.capacityInMilliseconds;
24916
24855
  data["uptimeInSeconds"] = this.uptimeInSeconds;
24917
24856
  data["downtimeInSeconds"] = this.downtimeInSeconds;
24918
24857
  data["totalTimeInSeconds"] = this.totalTimeInSeconds;
@@ -29301,7 +29240,7 @@ export class UpdateMachinesCapacity {
29301
29240
  return data;
29302
29241
  }
29303
29242
  }
29304
- export class CalendarDayDto {
29243
+ export class CalenderCapacityDto {
29305
29244
  constructor(data) {
29306
29245
  if (data) {
29307
29246
  for (var property in data) {
@@ -29314,12 +29253,11 @@ export class CalendarDayDto {
29314
29253
  if (_data) {
29315
29254
  this.date = _data["date"] ? new Date(_data["date"].toString()) : undefined;
29316
29255
  this.dayCapacity = _data["dayCapacity"];
29317
- this.capacityHours = _data["capacityHours"];
29318
29256
  }
29319
29257
  }
29320
29258
  static fromJS(data) {
29321
29259
  data = typeof data === 'object' ? data : {};
29322
- let result = new CalendarDayDto();
29260
+ let result = new CalenderCapacityDto();
29323
29261
  result.init(data);
29324
29262
  return result;
29325
29263
  }
@@ -29327,11 +29265,10 @@ export class CalendarDayDto {
29327
29265
  data = typeof data === 'object' ? data : {};
29328
29266
  data["date"] = this.date ? this.date.toISOString() : undefined;
29329
29267
  data["dayCapacity"] = this.dayCapacity;
29330
- data["capacityHours"] = this.capacityHours;
29331
29268
  return data;
29332
29269
  }
29333
29270
  }
29334
- export class CalendarCapacityDto {
29271
+ export class UpdateCalenderCapacity {
29335
29272
  constructor(data) {
29336
29273
  if (data) {
29337
29274
  for (var property in data) {
@@ -29348,7 +29285,7 @@ export class CalendarCapacityDto {
29348
29285
  }
29349
29286
  static fromJS(data) {
29350
29287
  data = typeof data === 'object' ? data : {};
29351
- let result = new CalendarCapacityDto();
29288
+ let result = new UpdateCalenderCapacity();
29352
29289
  result.init(data);
29353
29290
  return result;
29354
29291
  }
@@ -29359,118 +29296,6 @@ export class CalendarCapacityDto {
29359
29296
  return data;
29360
29297
  }
29361
29298
  }
29362
- export class UpdateCalendarCapacity {
29363
- constructor(data) {
29364
- if (data) {
29365
- for (var property in data) {
29366
- if (data.hasOwnProperty(property))
29367
- this[property] = data[property];
29368
- }
29369
- }
29370
- }
29371
- init(_data) {
29372
- if (_data) {
29373
- this.date = _data["date"] ? new Date(_data["date"].toString()) : undefined;
29374
- this.dayCapacity = _data["dayCapacity"];
29375
- }
29376
- }
29377
- static fromJS(data) {
29378
- data = typeof data === 'object' ? data : {};
29379
- let result = new UpdateCalendarCapacity();
29380
- result.init(data);
29381
- return result;
29382
- }
29383
- toJSON(data) {
29384
- data = typeof data === 'object' ? data : {};
29385
- data["date"] = this.date ? this.date.toISOString() : undefined;
29386
- data["dayCapacity"] = this.dayCapacity;
29387
- return data;
29388
- }
29389
- }
29390
- export class CalendarSettingsDto {
29391
- constructor(data) {
29392
- if (data) {
29393
- for (var property in data) {
29394
- if (data.hasOwnProperty(property))
29395
- this[property] = data[property];
29396
- }
29397
- }
29398
- }
29399
- init(_data) {
29400
- if (_data) {
29401
- if (_data["defaultHoursPerWeekday"]) {
29402
- this.defaultHoursPerWeekday = {};
29403
- for (let key in _data["defaultHoursPerWeekday"]) {
29404
- if (_data["defaultHoursPerWeekday"].hasOwnProperty(key))
29405
- this.defaultHoursPerWeekday[key] = _data["defaultHoursPerWeekday"][key];
29406
- }
29407
- }
29408
- this.halfDayHours = _data["halfDayHours"];
29409
- this.holidayHours = _data["holidayHours"];
29410
- }
29411
- }
29412
- static fromJS(data) {
29413
- data = typeof data === 'object' ? data : {};
29414
- let result = new CalendarSettingsDto();
29415
- result.init(data);
29416
- return result;
29417
- }
29418
- toJSON(data) {
29419
- data = typeof data === 'object' ? data : {};
29420
- if (this.defaultHoursPerWeekday) {
29421
- data["defaultHoursPerWeekday"] = {};
29422
- for (let key in this.defaultHoursPerWeekday) {
29423
- if (this.defaultHoursPerWeekday.hasOwnProperty(key))
29424
- data["defaultHoursPerWeekday"][key] = this.defaultHoursPerWeekday[key];
29425
- }
29426
- }
29427
- data["halfDayHours"] = this.halfDayHours;
29428
- data["holidayHours"] = this.holidayHours;
29429
- return data;
29430
- }
29431
- }
29432
- export class UpdateCalendarSettingsCommand {
29433
- constructor(data) {
29434
- if (data) {
29435
- for (var property in data) {
29436
- if (data.hasOwnProperty(property))
29437
- this[property] = data[property];
29438
- }
29439
- }
29440
- }
29441
- init(_data) {
29442
- if (_data) {
29443
- if (_data["defaultHoursPerWeekday"]) {
29444
- this.defaultHoursPerWeekday = {};
29445
- for (let key in _data["defaultHoursPerWeekday"]) {
29446
- if (_data["defaultHoursPerWeekday"].hasOwnProperty(key))
29447
- this.defaultHoursPerWeekday[key] = _data["defaultHoursPerWeekday"][key];
29448
- }
29449
- }
29450
- this.halfDayHours = _data["halfDayHours"];
29451
- this.holidayHours = _data["holidayHours"];
29452
- }
29453
- }
29454
- static fromJS(data) {
29455
- data = typeof data === 'object' ? data : {};
29456
- let result = new UpdateCalendarSettingsCommand();
29457
- result.init(data);
29458
- return result;
29459
- }
29460
- toJSON(data) {
29461
- data = typeof data === 'object' ? data : {};
29462
- if (this.defaultHoursPerWeekday) {
29463
- data["defaultHoursPerWeekday"] = {};
29464
- for (let key in this.defaultHoursPerWeekday) {
29465
- if (this.defaultHoursPerWeekday.hasOwnProperty(key))
29466
- data["defaultHoursPerWeekday"][key] = this.defaultHoursPerWeekday[key];
29467
- }
29468
- }
29469
- data["halfDayHours"] = this.halfDayHours;
29470
- data["holidayHours"] = this.holidayHours;
29471
- return data;
29472
- }
29473
- }
29474
29299
  export class MachineKpiDto {
29475
29300
  constructor(data) {
29476
29301
  if (data) {
@@ -41261,6 +41086,7 @@ export class MeasurementFormGroupedElementDto {
41261
41086
  this.machiningDimension = _data["machiningDimension"];
41262
41087
  this.nominalInch = _data["nominalInch"];
41263
41088
  this.isValid = _data["isValid"];
41089
+ this.validationErrorMessage = _data["validationErrorMessage"];
41264
41090
  }
41265
41091
  }
41266
41092
  static fromJS(data) {
@@ -41310,6 +41136,7 @@ export class MeasurementFormGroupedElementDto {
41310
41136
  data["machiningDimension"] = this.machiningDimension;
41311
41137
  data["nominalInch"] = this.nominalInch;
41312
41138
  data["isValid"] = this.isValid;
41139
+ data["validationErrorMessage"] = this.validationErrorMessage;
41313
41140
  return data;
41314
41141
  }
41315
41142
  }
@@ -41580,6 +41407,7 @@ export class UpdateSchemaGroupedElementDto {
41580
41407
  this.includeInCustomerDocumentation = _data["includeInCustomerDocumentation"];
41581
41408
  this.canCopy = _data["canCopy"];
41582
41409
  this.isDocumentedExternally = _data["isDocumentedExternally"];
41410
+ this.coatingThickness = _data["coatingThickness"];
41583
41411
  }
41584
41412
  }
41585
41413
  static fromJS(data) {
@@ -41596,6 +41424,7 @@ export class UpdateSchemaGroupedElementDto {
41596
41424
  data["includeInCustomerDocumentation"] = this.includeInCustomerDocumentation;
41597
41425
  data["canCopy"] = this.canCopy;
41598
41426
  data["isDocumentedExternally"] = this.isDocumentedExternally;
41427
+ data["coatingThickness"] = this.coatingThickness;
41599
41428
  return data;
41600
41429
  }
41601
41430
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ignos/api-client",
3
- "version": "20250704.0.12076-alpha",
3
+ "version": "20250704.0.12087-alpha",
4
4
  "description": "IGNOS API Client",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",