@ignos/api-client 20250704.0.12089-alpha → 20250707.0.12102

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.
@@ -970,58 +970,6 @@ export class MachineUtilizationClient extends AuthorizedApiBase {
970
970
  }
971
971
  return Promise.resolve(null);
972
972
  }
973
- getProgramTimeline(id, startTime, endTime) {
974
- let url_ = this.baseUrl + "/machineutilization/{id}/program-timeline?";
975
- if (id === undefined || id === null)
976
- throw new Error("The parameter 'id' must be defined.");
977
- url_ = url_.replace("{id}", encodeURIComponent("" + id));
978
- if (startTime === null)
979
- throw new Error("The parameter 'startTime' cannot be null.");
980
- else if (startTime !== undefined)
981
- url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
982
- if (endTime === null)
983
- throw new Error("The parameter 'endTime' cannot be null.");
984
- else if (endTime !== undefined)
985
- url_ += "endTime=" + encodeURIComponent(endTime ? "" + endTime.toISOString() : "") + "&";
986
- url_ = url_.replace(/[?&]$/, "");
987
- let options_ = {
988
- method: "GET",
989
- headers: {
990
- "Accept": "application/json"
991
- }
992
- };
993
- return this.transformOptions(options_).then(transformedOptions_ => {
994
- return this.http.fetch(url_, transformedOptions_);
995
- }).then((_response) => {
996
- return this.processGetProgramTimeline(_response);
997
- });
998
- }
999
- processGetProgramTimeline(response) {
1000
- const status = response.status;
1001
- let _headers = {};
1002
- if (response.headers && response.headers.forEach) {
1003
- response.headers.forEach((v, k) => _headers[k] = v);
1004
- }
1005
- ;
1006
- if (status === 200) {
1007
- return response.text().then((_responseText) => {
1008
- let result200 = null;
1009
- let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
1010
- if (Array.isArray(resultData200)) {
1011
- result200 = [];
1012
- for (let item of resultData200)
1013
- result200.push(ProgramDatapoint.fromJS(item));
1014
- }
1015
- return result200;
1016
- });
1017
- }
1018
- else if (status !== 200 && status !== 204) {
1019
- return response.text().then((_responseText) => {
1020
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
1021
- });
1022
- }
1023
- return Promise.resolve(null);
1024
- }
1025
973
  }
1026
974
  export class MeClient extends AuthorizedApiBase {
1027
975
  constructor(configuration, baseUrl, http) {
@@ -2311,7 +2259,7 @@ export class UtilizationClient extends AuthorizedApiBase {
2311
2259
  }
2312
2260
  return Promise.resolve(null);
2313
2261
  }
2314
- getUtilizationDatapoints(utilizationType, startTime, endTime, assetId, assetExternalId) {
2262
+ getUtilizationDatapoints(utilizationType, startTime, endTime, assetExternalId) {
2315
2263
  let url_ = this.baseUrl + "/utilization/datapoints?";
2316
2264
  if (utilizationType === null)
2317
2265
  throw new Error("The parameter 'utilizationType' cannot be null.");
@@ -2321,8 +2269,6 @@ export class UtilizationClient extends AuthorizedApiBase {
2321
2269
  url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
2322
2270
  if (endTime !== undefined && endTime !== null)
2323
2271
  url_ += "endTime=" + encodeURIComponent(endTime ? "" + endTime.toISOString() : "") + "&";
2324
- if (assetId !== undefined && assetId !== null)
2325
- url_ += "assetId=" + encodeURIComponent("" + assetId) + "&";
2326
2272
  if (assetExternalId !== undefined && assetExternalId !== null)
2327
2273
  url_ += "assetExternalId=" + encodeURIComponent("" + assetExternalId) + "&";
2328
2274
  url_ = url_.replace(/[?&]$/, "");
@@ -6072,8 +6018,8 @@ export class KpiAdminClient extends AuthorizedApiBase {
6072
6018
  }
6073
6019
  return Promise.resolve(null);
6074
6020
  }
6075
- getCalenderCapacityAdmin(startDate, endDate) {
6076
- let url_ = this.baseUrl + "/kpiadmin/calender?";
6021
+ getCalendarCapacityAdmin(startDate, endDate) {
6022
+ let url_ = this.baseUrl + "/kpiadmin/calendar?";
6077
6023
  if (startDate === null)
6078
6024
  throw new Error("The parameter 'startDate' cannot be null.");
6079
6025
  else if (startDate !== undefined)
@@ -6092,10 +6038,10 @@ export class KpiAdminClient extends AuthorizedApiBase {
6092
6038
  return this.transformOptions(options_).then(transformedOptions_ => {
6093
6039
  return this.http.fetch(url_, transformedOptions_);
6094
6040
  }).then((_response) => {
6095
- return this.processGetCalenderCapacityAdmin(_response);
6041
+ return this.processGetCalendarCapacityAdmin(_response);
6096
6042
  });
6097
6043
  }
6098
- processGetCalenderCapacityAdmin(response) {
6044
+ processGetCalendarCapacityAdmin(response) {
6099
6045
  const status = response.status;
6100
6046
  let _headers = {};
6101
6047
  if (response.headers && response.headers.forEach) {
@@ -6109,7 +6055,7 @@ export class KpiAdminClient extends AuthorizedApiBase {
6109
6055
  if (Array.isArray(resultData200)) {
6110
6056
  result200 = [];
6111
6057
  for (let item of resultData200)
6112
- result200.push(CalenderCapacityDto.fromJS(item));
6058
+ result200.push(CalendarDayDto.fromJS(item));
6113
6059
  }
6114
6060
  return result200;
6115
6061
  });
@@ -6121,8 +6067,8 @@ export class KpiAdminClient extends AuthorizedApiBase {
6121
6067
  }
6122
6068
  return Promise.resolve(null);
6123
6069
  }
6124
- updateCalenderCapacityAdmin(request) {
6125
- let url_ = this.baseUrl + "/kpiadmin/calender";
6070
+ updateCalendarCapacityAdmin(request) {
6071
+ let url_ = this.baseUrl + "/kpiadmin/calendar";
6126
6072
  url_ = url_.replace(/[?&]$/, "");
6127
6073
  const content_ = JSON.stringify(request);
6128
6074
  let options_ = {
@@ -6136,10 +6082,47 @@ export class KpiAdminClient extends AuthorizedApiBase {
6136
6082
  return this.transformOptions(options_).then(transformedOptions_ => {
6137
6083
  return this.http.fetch(url_, transformedOptions_);
6138
6084
  }).then((_response) => {
6139
- return this.processUpdateCalenderCapacityAdmin(_response);
6085
+ return this.processUpdateCalendarCapacityAdmin(_response);
6086
+ });
6087
+ }
6088
+ processUpdateCalendarCapacityAdmin(response) {
6089
+ const status = response.status;
6090
+ let _headers = {};
6091
+ if (response.headers && response.headers.forEach) {
6092
+ response.headers.forEach((v, k) => _headers[k] = v);
6093
+ }
6094
+ ;
6095
+ if (status === 200) {
6096
+ return response.text().then((_responseText) => {
6097
+ let result200 = null;
6098
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
6099
+ result200 = CalendarCapacityDto.fromJS(resultData200);
6100
+ return result200;
6101
+ });
6102
+ }
6103
+ else if (status !== 200 && status !== 204) {
6104
+ return response.text().then((_responseText) => {
6105
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
6106
+ });
6107
+ }
6108
+ return Promise.resolve(null);
6109
+ }
6110
+ getCalendarSettings() {
6111
+ let url_ = this.baseUrl + "/kpiadmin/calendar/settings";
6112
+ url_ = url_.replace(/[?&]$/, "");
6113
+ let options_ = {
6114
+ method: "GET",
6115
+ headers: {
6116
+ "Accept": "application/json"
6117
+ }
6118
+ };
6119
+ return this.transformOptions(options_).then(transformedOptions_ => {
6120
+ return this.http.fetch(url_, transformedOptions_);
6121
+ }).then((_response) => {
6122
+ return this.processGetCalendarSettings(_response);
6140
6123
  });
6141
6124
  }
6142
- processUpdateCalenderCapacityAdmin(response) {
6125
+ processGetCalendarSettings(response) {
6143
6126
  const status = response.status;
6144
6127
  let _headers = {};
6145
6128
  if (response.headers && response.headers.forEach) {
@@ -6150,7 +6133,47 @@ export class KpiAdminClient extends AuthorizedApiBase {
6150
6133
  return response.text().then((_responseText) => {
6151
6134
  let result200 = null;
6152
6135
  let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
6153
- result200 = CalenderCapacityDto.fromJS(resultData200);
6136
+ result200 = CalendarSettingsDto.fromJS(resultData200);
6137
+ return result200;
6138
+ });
6139
+ }
6140
+ else if (status !== 200 && status !== 204) {
6141
+ return response.text().then((_responseText) => {
6142
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
6143
+ });
6144
+ }
6145
+ return Promise.resolve(null);
6146
+ }
6147
+ updateCalendarSettings(cmd) {
6148
+ let url_ = this.baseUrl + "/kpiadmin/calendar/settings";
6149
+ url_ = url_.replace(/[?&]$/, "");
6150
+ const content_ = JSON.stringify(cmd);
6151
+ let options_ = {
6152
+ body: content_,
6153
+ method: "PUT",
6154
+ headers: {
6155
+ "Content-Type": "application/json",
6156
+ "Accept": "application/json"
6157
+ }
6158
+ };
6159
+ return this.transformOptions(options_).then(transformedOptions_ => {
6160
+ return this.http.fetch(url_, transformedOptions_);
6161
+ }).then((_response) => {
6162
+ return this.processUpdateCalendarSettings(_response);
6163
+ });
6164
+ }
6165
+ processUpdateCalendarSettings(response) {
6166
+ const status = response.status;
6167
+ let _headers = {};
6168
+ if (response.headers && response.headers.forEach) {
6169
+ response.headers.forEach((v, k) => _headers[k] = v);
6170
+ }
6171
+ ;
6172
+ if (status === 200) {
6173
+ return response.text().then((_responseText) => {
6174
+ let result200 = null;
6175
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
6176
+ result200 = CalendarSettingsDto.fromJS(resultData200);
6154
6177
  return result200;
6155
6178
  });
6156
6179
  }
@@ -23395,34 +23418,6 @@ export class NumericNullableValueWithTimestamp {
23395
23418
  return data;
23396
23419
  }
23397
23420
  }
23398
- export class ProgramDatapoint {
23399
- constructor(data) {
23400
- if (data) {
23401
- for (var property in data) {
23402
- if (data.hasOwnProperty(property))
23403
- this[property] = data[property];
23404
- }
23405
- }
23406
- }
23407
- init(_data) {
23408
- if (_data) {
23409
- this.timestamp = _data["timestamp"];
23410
- this.programValue = _data["programValue"];
23411
- }
23412
- }
23413
- static fromJS(data) {
23414
- data = typeof data === 'object' ? data : {};
23415
- let result = new ProgramDatapoint();
23416
- result.init(data);
23417
- return result;
23418
- }
23419
- toJSON(data) {
23420
- data = typeof data === 'object' ? data : {};
23421
- data["timestamp"] = this.timestamp;
23422
- data["programValue"] = this.programValue;
23423
- return data;
23424
- }
23425
- }
23426
23421
  export class UserAppDto {
23427
23422
  constructor(data) {
23428
23423
  if (data) {
@@ -24786,6 +24781,8 @@ export class UtilizationTypeEnablingDto {
24786
24781
  this.powerOnEnabled = _data["powerOnEnabled"];
24787
24782
  this.twentyFourSevenEnabled = _data["twentyFourSevenEnabled"];
24788
24783
  this.activeOrderEnabled = _data["activeOrderEnabled"];
24784
+ this.machineCalendarEnabled = _data["machineCalendarEnabled"];
24785
+ this.factoryCalendarEnabled = _data["factoryCalendarEnabled"];
24789
24786
  }
24790
24787
  }
24791
24788
  static fromJS(data) {
@@ -24799,6 +24796,8 @@ export class UtilizationTypeEnablingDto {
24799
24796
  data["powerOnEnabled"] = this.powerOnEnabled;
24800
24797
  data["twentyFourSevenEnabled"] = this.twentyFourSevenEnabled;
24801
24798
  data["activeOrderEnabled"] = this.activeOrderEnabled;
24799
+ data["machineCalendarEnabled"] = this.machineCalendarEnabled;
24800
+ data["factoryCalendarEnabled"] = this.factoryCalendarEnabled;
24802
24801
  return data;
24803
24802
  }
24804
24803
  }
@@ -24817,6 +24816,8 @@ export class UpdatePulseSettings {
24817
24816
  this.powerOnEnabled = _data["powerOnEnabled"];
24818
24817
  this.twentyfourSevenEnabled = _data["twentyfourSevenEnabled"];
24819
24818
  this.activeOrderEnabled = _data["activeOrderEnabled"];
24819
+ this.machineCalendarEnabled = _data["machineCalendarEnabled"];
24820
+ this.factoryCalendarEnabled = _data["factoryCalendarEnabled"];
24820
24821
  }
24821
24822
  }
24822
24823
  static fromJS(data) {
@@ -24831,6 +24832,8 @@ export class UpdatePulseSettings {
24831
24832
  data["powerOnEnabled"] = this.powerOnEnabled;
24832
24833
  data["twentyfourSevenEnabled"] = this.twentyfourSevenEnabled;
24833
24834
  data["activeOrderEnabled"] = this.activeOrderEnabled;
24835
+ data["machineCalendarEnabled"] = this.machineCalendarEnabled;
24836
+ data["factoryCalendarEnabled"] = this.factoryCalendarEnabled;
24834
24837
  return data;
24835
24838
  }
24836
24839
  }
@@ -24899,6 +24902,7 @@ export class UtilizationDetailsV2Dto {
24899
24902
  init(_data) {
24900
24903
  if (_data) {
24901
24904
  this.utilizationPercent = _data["utilizationPercent"];
24905
+ this.capacityInMilliseconds = _data["capacityInMilliseconds"];
24902
24906
  this.uptimeInSeconds = _data["uptimeInSeconds"];
24903
24907
  this.downtimeInSeconds = _data["downtimeInSeconds"];
24904
24908
  this.totalTimeInSeconds = _data["totalTimeInSeconds"];
@@ -24916,6 +24920,7 @@ export class UtilizationDetailsV2Dto {
24916
24920
  toJSON(data) {
24917
24921
  data = typeof data === 'object' ? data : {};
24918
24922
  data["utilizationPercent"] = this.utilizationPercent;
24923
+ data["capacityInMilliseconds"] = this.capacityInMilliseconds;
24919
24924
  data["uptimeInSeconds"] = this.uptimeInSeconds;
24920
24925
  data["downtimeInSeconds"] = this.downtimeInSeconds;
24921
24926
  data["totalTimeInSeconds"] = this.totalTimeInSeconds;
@@ -29304,7 +29309,37 @@ export class UpdateMachinesCapacity {
29304
29309
  return data;
29305
29310
  }
29306
29311
  }
29307
- export class CalenderCapacityDto {
29312
+ export class CalendarDayDto {
29313
+ constructor(data) {
29314
+ if (data) {
29315
+ for (var property in data) {
29316
+ if (data.hasOwnProperty(property))
29317
+ this[property] = data[property];
29318
+ }
29319
+ }
29320
+ }
29321
+ init(_data) {
29322
+ if (_data) {
29323
+ this.date = _data["date"] ? new Date(_data["date"].toString()) : undefined;
29324
+ this.dayCapacity = _data["dayCapacity"];
29325
+ this.capacityHours = _data["capacityHours"];
29326
+ }
29327
+ }
29328
+ static fromJS(data) {
29329
+ data = typeof data === 'object' ? data : {};
29330
+ let result = new CalendarDayDto();
29331
+ result.init(data);
29332
+ return result;
29333
+ }
29334
+ toJSON(data) {
29335
+ data = typeof data === 'object' ? data : {};
29336
+ data["date"] = this.date ? this.date.toISOString() : undefined;
29337
+ data["dayCapacity"] = this.dayCapacity;
29338
+ data["capacityHours"] = this.capacityHours;
29339
+ return data;
29340
+ }
29341
+ }
29342
+ export class CalendarCapacityDto {
29308
29343
  constructor(data) {
29309
29344
  if (data) {
29310
29345
  for (var property in data) {
@@ -29321,7 +29356,7 @@ export class CalenderCapacityDto {
29321
29356
  }
29322
29357
  static fromJS(data) {
29323
29358
  data = typeof data === 'object' ? data : {};
29324
- let result = new CalenderCapacityDto();
29359
+ let result = new CalendarCapacityDto();
29325
29360
  result.init(data);
29326
29361
  return result;
29327
29362
  }
@@ -29332,7 +29367,7 @@ export class CalenderCapacityDto {
29332
29367
  return data;
29333
29368
  }
29334
29369
  }
29335
- export class UpdateCalenderCapacity {
29370
+ export class UpdateCalendarCapacity {
29336
29371
  constructor(data) {
29337
29372
  if (data) {
29338
29373
  for (var property in data) {
@@ -29349,7 +29384,7 @@ export class UpdateCalenderCapacity {
29349
29384
  }
29350
29385
  static fromJS(data) {
29351
29386
  data = typeof data === 'object' ? data : {};
29352
- let result = new UpdateCalenderCapacity();
29387
+ let result = new UpdateCalendarCapacity();
29353
29388
  result.init(data);
29354
29389
  return result;
29355
29390
  }
@@ -29360,6 +29395,90 @@ export class UpdateCalenderCapacity {
29360
29395
  return data;
29361
29396
  }
29362
29397
  }
29398
+ export class CalendarSettingsDto {
29399
+ constructor(data) {
29400
+ if (data) {
29401
+ for (var property in data) {
29402
+ if (data.hasOwnProperty(property))
29403
+ this[property] = data[property];
29404
+ }
29405
+ }
29406
+ }
29407
+ init(_data) {
29408
+ if (_data) {
29409
+ if (_data["defaultHoursPerWeekday"]) {
29410
+ this.defaultHoursPerWeekday = {};
29411
+ for (let key in _data["defaultHoursPerWeekday"]) {
29412
+ if (_data["defaultHoursPerWeekday"].hasOwnProperty(key))
29413
+ this.defaultHoursPerWeekday[key] = _data["defaultHoursPerWeekday"][key];
29414
+ }
29415
+ }
29416
+ this.halfDayHours = _data["halfDayHours"];
29417
+ this.holidayHours = _data["holidayHours"];
29418
+ }
29419
+ }
29420
+ static fromJS(data) {
29421
+ data = typeof data === 'object' ? data : {};
29422
+ let result = new CalendarSettingsDto();
29423
+ result.init(data);
29424
+ return result;
29425
+ }
29426
+ toJSON(data) {
29427
+ data = typeof data === 'object' ? data : {};
29428
+ if (this.defaultHoursPerWeekday) {
29429
+ data["defaultHoursPerWeekday"] = {};
29430
+ for (let key in this.defaultHoursPerWeekday) {
29431
+ if (this.defaultHoursPerWeekday.hasOwnProperty(key))
29432
+ data["defaultHoursPerWeekday"][key] = this.defaultHoursPerWeekday[key];
29433
+ }
29434
+ }
29435
+ data["halfDayHours"] = this.halfDayHours;
29436
+ data["holidayHours"] = this.holidayHours;
29437
+ return data;
29438
+ }
29439
+ }
29440
+ export class UpdateCalendarSettingsCommand {
29441
+ constructor(data) {
29442
+ if (data) {
29443
+ for (var property in data) {
29444
+ if (data.hasOwnProperty(property))
29445
+ this[property] = data[property];
29446
+ }
29447
+ }
29448
+ }
29449
+ init(_data) {
29450
+ if (_data) {
29451
+ if (_data["defaultHoursPerWeekday"]) {
29452
+ this.defaultHoursPerWeekday = {};
29453
+ for (let key in _data["defaultHoursPerWeekday"]) {
29454
+ if (_data["defaultHoursPerWeekday"].hasOwnProperty(key))
29455
+ this.defaultHoursPerWeekday[key] = _data["defaultHoursPerWeekday"][key];
29456
+ }
29457
+ }
29458
+ this.halfDayHours = _data["halfDayHours"];
29459
+ this.holidayHours = _data["holidayHours"];
29460
+ }
29461
+ }
29462
+ static fromJS(data) {
29463
+ data = typeof data === 'object' ? data : {};
29464
+ let result = new UpdateCalendarSettingsCommand();
29465
+ result.init(data);
29466
+ return result;
29467
+ }
29468
+ toJSON(data) {
29469
+ data = typeof data === 'object' ? data : {};
29470
+ if (this.defaultHoursPerWeekday) {
29471
+ data["defaultHoursPerWeekday"] = {};
29472
+ for (let key in this.defaultHoursPerWeekday) {
29473
+ if (this.defaultHoursPerWeekday.hasOwnProperty(key))
29474
+ data["defaultHoursPerWeekday"][key] = this.defaultHoursPerWeekday[key];
29475
+ }
29476
+ }
29477
+ data["halfDayHours"] = this.halfDayHours;
29478
+ data["holidayHours"] = this.holidayHours;
29479
+ return data;
29480
+ }
29481
+ }
29363
29482
  export class MachineKpiDto {
29364
29483
  constructor(data) {
29365
29484
  if (data) {
@@ -41150,6 +41269,7 @@ export class MeasurementFormGroupedElementDto {
41150
41269
  this.machiningDimension = _data["machiningDimension"];
41151
41270
  this.nominalInch = _data["nominalInch"];
41152
41271
  this.isValid = _data["isValid"];
41272
+ this.validationErrorMessage = _data["validationErrorMessage"];
41153
41273
  }
41154
41274
  }
41155
41275
  static fromJS(data) {
@@ -41199,6 +41319,7 @@ export class MeasurementFormGroupedElementDto {
41199
41319
  data["machiningDimension"] = this.machiningDimension;
41200
41320
  data["nominalInch"] = this.nominalInch;
41201
41321
  data["isValid"] = this.isValid;
41322
+ data["validationErrorMessage"] = this.validationErrorMessage;
41202
41323
  return data;
41203
41324
  }
41204
41325
  }
@@ -41469,6 +41590,7 @@ export class UpdateSchemaGroupedElementDto {
41469
41590
  this.includeInCustomerDocumentation = _data["includeInCustomerDocumentation"];
41470
41591
  this.canCopy = _data["canCopy"];
41471
41592
  this.isDocumentedExternally = _data["isDocumentedExternally"];
41593
+ this.coatingThickness = _data["coatingThickness"];
41472
41594
  }
41473
41595
  }
41474
41596
  static fromJS(data) {
@@ -41485,6 +41607,7 @@ export class UpdateSchemaGroupedElementDto {
41485
41607
  data["includeInCustomerDocumentation"] = this.includeInCustomerDocumentation;
41486
41608
  data["canCopy"] = this.canCopy;
41487
41609
  data["isDocumentedExternally"] = this.isDocumentedExternally;
41610
+ data["coatingThickness"] = this.coatingThickness;
41488
41611
  return data;
41489
41612
  }
41490
41613
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ignos/api-client",
3
- "version": "20250704.0.12089-alpha",
3
+ "version": "20250707.0.12102",
4
4
  "description": "IGNOS API Client",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",