@ignos/api-client 20250701.0.12036-alpha → 20250702.0.12045-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.
@@ -787,10 +787,8 @@ export declare class DowntimeReasonsClient extends AuthorizedApiBase implements
787
787
  export interface IKpiAdminClient {
788
788
  getMachineCapacityAdmin(): Promise<MachineGroupCapacityDto[]>;
789
789
  updateMachineCapacityAdmin(request: UpdateMachinesCapacity): Promise<MachineCapacityDto>;
790
- getCalendarCapacityAdmin(startDate: Date | undefined, endDate: Date | undefined): Promise<CalendarDayDto[]>;
790
+ getCalenderCapacityAdmin(startDate: Date | undefined, endDate: Date | undefined): Promise<CalenderCapacityDto[]>;
791
791
  updateCalenderCapacityAdmin(request: UpdateCalenderCapacity): Promise<CalenderCapacityDto>;
792
- getCalendarSettings(): Promise<CalendarSettingsDto>;
793
- updateCalendarSettings(cmd: UpdateCalendarSettingsCommand): Promise<CalendarSettingsDto>;
794
792
  }
795
793
  export declare class KpiAdminClient extends AuthorizedApiBase implements IKpiAdminClient {
796
794
  private http;
@@ -803,14 +801,10 @@ export declare class KpiAdminClient extends AuthorizedApiBase implements IKpiAdm
803
801
  protected processGetMachineCapacityAdmin(response: Response): Promise<MachineGroupCapacityDto[]>;
804
802
  updateMachineCapacityAdmin(request: UpdateMachinesCapacity): Promise<MachineCapacityDto>;
805
803
  protected processUpdateMachineCapacityAdmin(response: Response): Promise<MachineCapacityDto>;
806
- getCalendarCapacityAdmin(startDate: Date | undefined, endDate: Date | undefined): Promise<CalendarDayDto[]>;
807
- protected processGetCalendarCapacityAdmin(response: Response): Promise<CalendarDayDto[]>;
804
+ getCalenderCapacityAdmin(startDate: Date | undefined, endDate: Date | undefined): Promise<CalenderCapacityDto[]>;
805
+ protected processGetCalenderCapacityAdmin(response: Response): Promise<CalenderCapacityDto[]>;
808
806
  updateCalenderCapacityAdmin(request: UpdateCalenderCapacity): Promise<CalenderCapacityDto>;
809
807
  protected processUpdateCalenderCapacityAdmin(response: Response): Promise<CalenderCapacityDto>;
810
- getCalendarSettings(): Promise<CalendarSettingsDto>;
811
- protected processGetCalendarSettings(response: Response): Promise<CalendarSettingsDto>;
812
- updateCalendarSettings(cmd: UpdateCalendarSettingsCommand): Promise<CalendarSettingsDto>;
813
- protected processUpdateCalendarSettings(response: Response): Promise<CalendarSettingsDto>;
814
808
  }
815
809
  export interface IKpiClient {
816
810
  getMachineKpi(machineExternalId: string | undefined, previousPeriodStartDate: Date | undefined, startDate: Date | undefined, endDate: Date | undefined, utcOffset: number | undefined): Promise<MachineKpiDto>;
@@ -5857,21 +5851,6 @@ export interface IUpdateMachinesCapacity {
5857
5851
  utilizationPercent?: number | null;
5858
5852
  capacity?: MachineCapacitySettingsDto[] | null;
5859
5853
  }
5860
- export declare class CalendarDayDto implements ICalendarDayDto {
5861
- date?: Date;
5862
- dayCapacity?: CalenderDayCapacityDto;
5863
- capacityHours?: number;
5864
- constructor(data?: ICalendarDayDto);
5865
- init(_data?: any): void;
5866
- static fromJS(data: any): CalendarDayDto;
5867
- toJSON(data?: any): any;
5868
- }
5869
- export interface ICalendarDayDto {
5870
- date?: Date;
5871
- dayCapacity?: CalenderDayCapacityDto;
5872
- capacityHours?: number;
5873
- }
5874
- export type CalenderDayCapacityDto = "WorkingDay" | "HalfDay" | "Holiday";
5875
5854
  export declare class CalenderCapacityDto implements ICalenderCapacityDto {
5876
5855
  date?: Date;
5877
5856
  dayCapacity?: CalenderDayCapacityDto;
@@ -5884,6 +5863,7 @@ export interface ICalenderCapacityDto {
5884
5863
  date?: Date;
5885
5864
  dayCapacity?: CalenderDayCapacityDto;
5886
5865
  }
5866
+ export type CalenderDayCapacityDto = "WorkingDay" | "HalfDay" | "Holiday";
5887
5867
  export declare class UpdateCalenderCapacity implements IUpdateCalenderCapacity {
5888
5868
  date?: Date;
5889
5869
  dayCapacity?: CalenderDayCapacityDto;
@@ -5896,43 +5876,6 @@ export interface IUpdateCalenderCapacity {
5896
5876
  date?: Date;
5897
5877
  dayCapacity?: CalenderDayCapacityDto;
5898
5878
  }
5899
- export declare class CalendarSettingsDto implements ICalendarSettingsDto {
5900
- defaultHoursPerWeekday?: {
5901
- [key in DayOfWeek]?: number;
5902
- };
5903
- halfDayHours?: number;
5904
- holidayHours?: number;
5905
- constructor(data?: ICalendarSettingsDto);
5906
- init(_data?: any): void;
5907
- static fromJS(data: any): CalendarSettingsDto;
5908
- toJSON(data?: any): any;
5909
- }
5910
- export interface ICalendarSettingsDto {
5911
- defaultHoursPerWeekday?: {
5912
- [key in DayOfWeek]?: number;
5913
- };
5914
- halfDayHours?: number;
5915
- holidayHours?: number;
5916
- }
5917
- export type DayOfWeek = 0 | 1 | 2 | 3 | 4 | 5 | 6;
5918
- export declare class UpdateCalendarSettingsCommand implements IUpdateCalendarSettingsCommand {
5919
- defaultHoursPerWeekday?: {
5920
- [key in DayOfWeek]?: number;
5921
- };
5922
- halfDayHours?: number;
5923
- holidayHours?: number;
5924
- constructor(data?: IUpdateCalendarSettingsCommand);
5925
- init(_data?: any): void;
5926
- static fromJS(data: any): UpdateCalendarSettingsCommand;
5927
- toJSON(data?: any): any;
5928
- }
5929
- export interface IUpdateCalendarSettingsCommand {
5930
- defaultHoursPerWeekday?: {
5931
- [key in DayOfWeek]?: number;
5932
- };
5933
- halfDayHours?: number;
5934
- holidayHours?: number;
5935
- }
5936
5879
  export declare class MachineKpiDto implements IMachineKpiDto {
5937
5880
  uptimeToNow: number;
5938
5881
  uptimeToNowPreviousPeriod: number;
@@ -11764,6 +11707,7 @@ export declare class MeasurementFormGroupedElementDto implements IMeasurementFor
11764
11707
  machiningDimension?: number | null;
11765
11708
  nominalInch?: number | null;
11766
11709
  isValid: boolean;
11710
+ validationErrorMessage?: string | null;
11767
11711
  constructor(data?: IMeasurementFormGroupedElementDto);
11768
11712
  init(_data?: any): void;
11769
11713
  static fromJS(data: any): MeasurementFormGroupedElementDto;
@@ -11809,8 +11753,9 @@ export interface IMeasurementFormGroupedElementDto {
11809
11753
  machiningDimension?: number | null;
11810
11754
  nominalInch?: number | null;
11811
11755
  isValid: boolean;
11756
+ validationErrorMessage?: string | null;
11812
11757
  }
11813
- export type MeasurementFrequency = "All" | "FirstArticle" | "NFirst" | "NPercent" | "ISO2859" | "Nth" | "None";
11758
+ export type MeasurementFrequency = "All" | "FirstArticle" | "NFirst" | "NPercent" | "ISO2859" | "Nth" | "FirstAndLast" | "None";
11814
11759
  export type MeasurementFormValueType = "None" | "Bool" | "Decimal" | "String";
11815
11760
  export type BonusType = "None" | "Positive" | "PositiveAndNegative";
11816
11761
  export declare class MeasurementFormLinkedSchemaDto implements IMeasurementFormLinkedSchemaDto {
@@ -11952,6 +11897,7 @@ export declare class UpdateSchemaGroupedElementDto implements IUpdateSchemaGroup
11952
11897
  includeInCustomerDocumentation: boolean;
11953
11898
  canCopy?: boolean | null;
11954
11899
  isDocumentedExternally: boolean;
11900
+ coatingThickness?: number | null;
11955
11901
  constructor(data?: IUpdateSchemaGroupedElementDto);
11956
11902
  init(_data?: any): void;
11957
11903
  static fromJS(data: any): UpdateSchemaGroupedElementDto;
@@ -11964,6 +11910,7 @@ export interface IUpdateSchemaGroupedElementDto {
11964
11910
  includeInCustomerDocumentation: boolean;
11965
11911
  canCopy?: boolean | null;
11966
11912
  isDocumentedExternally: boolean;
11913
+ coatingThickness?: number | null;
11967
11914
  }
11968
11915
  export declare class UpdateSchemaGroupedElementRowDto implements IUpdateSchemaGroupedElementRowDto {
11969
11916
  id: string;
@@ -6020,8 +6020,8 @@ export class KpiAdminClient extends AuthorizedApiBase {
6020
6020
  }
6021
6021
  return Promise.resolve(null);
6022
6022
  }
6023
- getCalendarCapacityAdmin(startDate, endDate) {
6024
- let url_ = this.baseUrl + "/kpiadmin/calendar?";
6023
+ getCalenderCapacityAdmin(startDate, endDate) {
6024
+ let url_ = this.baseUrl + "/kpiadmin/calender?";
6025
6025
  if (startDate === null)
6026
6026
  throw new Error("The parameter 'startDate' cannot be null.");
6027
6027
  else if (startDate !== undefined)
@@ -6040,10 +6040,10 @@ export class KpiAdminClient extends AuthorizedApiBase {
6040
6040
  return this.transformOptions(options_).then(transformedOptions_ => {
6041
6041
  return this.http.fetch(url_, transformedOptions_);
6042
6042
  }).then((_response) => {
6043
- return this.processGetCalendarCapacityAdmin(_response);
6043
+ return this.processGetCalenderCapacityAdmin(_response);
6044
6044
  });
6045
6045
  }
6046
- processGetCalendarCapacityAdmin(response) {
6046
+ processGetCalenderCapacityAdmin(response) {
6047
6047
  const status = response.status;
6048
6048
  let _headers = {};
6049
6049
  if (response.headers && response.headers.forEach) {
@@ -6057,7 +6057,7 @@ export class KpiAdminClient extends AuthorizedApiBase {
6057
6057
  if (Array.isArray(resultData200)) {
6058
6058
  result200 = [];
6059
6059
  for (let item of resultData200)
6060
- result200.push(CalendarDayDto.fromJS(item));
6060
+ result200.push(CalenderCapacityDto.fromJS(item));
6061
6061
  }
6062
6062
  return result200;
6063
6063
  });
@@ -6109,83 +6109,6 @@ export class KpiAdminClient extends AuthorizedApiBase {
6109
6109
  }
6110
6110
  return Promise.resolve(null);
6111
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);
6165
- });
6166
- }
6167
- processUpdateCalendarSettings(response) {
6168
- const status = response.status;
6169
- let _headers = {};
6170
- if (response.headers && response.headers.forEach) {
6171
- response.headers.forEach((v, k) => _headers[k] = v);
6172
- }
6173
- ;
6174
- if (status === 200) {
6175
- return response.text().then((_responseText) => {
6176
- let result200 = null;
6177
- let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
6178
- result200 = CalendarSettingsDto.fromJS(resultData200);
6179
- return result200;
6180
- });
6181
- }
6182
- else if (status !== 200 && status !== 204) {
6183
- return response.text().then((_responseText) => {
6184
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
6185
- });
6186
- }
6187
- return Promise.resolve(null);
6188
- }
6189
6112
  }
6190
6113
  export class KpiClient extends AuthorizedApiBase {
6191
6114
  constructor(configuration, baseUrl, http) {
@@ -29301,36 +29224,6 @@ export class UpdateMachinesCapacity {
29301
29224
  return data;
29302
29225
  }
29303
29226
  }
29304
- export class CalendarDayDto {
29305
- constructor(data) {
29306
- if (data) {
29307
- for (var property in data) {
29308
- if (data.hasOwnProperty(property))
29309
- this[property] = data[property];
29310
- }
29311
- }
29312
- }
29313
- init(_data) {
29314
- if (_data) {
29315
- this.date = _data["date"] ? new Date(_data["date"].toString()) : undefined;
29316
- this.dayCapacity = _data["dayCapacity"];
29317
- this.capacityHours = _data["capacityHours"];
29318
- }
29319
- }
29320
- static fromJS(data) {
29321
- data = typeof data === 'object' ? data : {};
29322
- let result = new CalendarDayDto();
29323
- result.init(data);
29324
- return result;
29325
- }
29326
- toJSON(data) {
29327
- data = typeof data === 'object' ? data : {};
29328
- data["date"] = this.date ? this.date.toISOString() : undefined;
29329
- data["dayCapacity"] = this.dayCapacity;
29330
- data["capacityHours"] = this.capacityHours;
29331
- return data;
29332
- }
29333
- }
29334
29227
  export class CalenderCapacityDto {
29335
29228
  constructor(data) {
29336
29229
  if (data) {
@@ -29387,90 +29280,6 @@ export class UpdateCalenderCapacity {
29387
29280
  return data;
29388
29281
  }
29389
29282
  }
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
29283
  export class MachineKpiDto {
29475
29284
  constructor(data) {
29476
29285
  if (data) {
@@ -41261,6 +41070,7 @@ export class MeasurementFormGroupedElementDto {
41261
41070
  this.machiningDimension = _data["machiningDimension"];
41262
41071
  this.nominalInch = _data["nominalInch"];
41263
41072
  this.isValid = _data["isValid"];
41073
+ this.validationErrorMessage = _data["validationErrorMessage"];
41264
41074
  }
41265
41075
  }
41266
41076
  static fromJS(data) {
@@ -41310,6 +41120,7 @@ export class MeasurementFormGroupedElementDto {
41310
41120
  data["machiningDimension"] = this.machiningDimension;
41311
41121
  data["nominalInch"] = this.nominalInch;
41312
41122
  data["isValid"] = this.isValid;
41123
+ data["validationErrorMessage"] = this.validationErrorMessage;
41313
41124
  return data;
41314
41125
  }
41315
41126
  }
@@ -41580,6 +41391,7 @@ export class UpdateSchemaGroupedElementDto {
41580
41391
  this.includeInCustomerDocumentation = _data["includeInCustomerDocumentation"];
41581
41392
  this.canCopy = _data["canCopy"];
41582
41393
  this.isDocumentedExternally = _data["isDocumentedExternally"];
41394
+ this.coatingThickness = _data["coatingThickness"];
41583
41395
  }
41584
41396
  }
41585
41397
  static fromJS(data) {
@@ -41596,6 +41408,7 @@ export class UpdateSchemaGroupedElementDto {
41596
41408
  data["includeInCustomerDocumentation"] = this.includeInCustomerDocumentation;
41597
41409
  data["canCopy"] = this.canCopy;
41598
41410
  data["isDocumentedExternally"] = this.isDocumentedExternally;
41411
+ data["coatingThickness"] = this.coatingThickness;
41599
41412
  return data;
41600
41413
  }
41601
41414
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ignos/api-client",
3
- "version": "20250701.0.12036-alpha",
3
+ "version": "20250702.0.12045-alpha",
4
4
  "description": "IGNOS API Client",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -6373,13 +6373,9 @@ export interface IKpiAdminClient {
6373
6373
 
6374
6374
  updateMachineCapacityAdmin(request: UpdateMachinesCapacity): Promise<MachineCapacityDto>;
6375
6375
 
6376
- getCalendarCapacityAdmin(startDate: Date | undefined, endDate: Date | undefined): Promise<CalendarDayDto[]>;
6376
+ getCalenderCapacityAdmin(startDate: Date | undefined, endDate: Date | undefined): Promise<CalenderCapacityDto[]>;
6377
6377
 
6378
6378
  updateCalenderCapacityAdmin(request: UpdateCalenderCapacity): Promise<CalenderCapacityDto>;
6379
-
6380
- getCalendarSettings(): Promise<CalendarSettingsDto>;
6381
-
6382
- updateCalendarSettings(cmd: UpdateCalendarSettingsCommand): Promise<CalendarSettingsDto>;
6383
6379
  }
6384
6380
 
6385
6381
  export class KpiAdminClient extends AuthorizedApiBase implements IKpiAdminClient {
@@ -6473,8 +6469,8 @@ export class KpiAdminClient extends AuthorizedApiBase implements IKpiAdminClient
6473
6469
  return Promise.resolve<MachineCapacityDto>(null as any);
6474
6470
  }
6475
6471
 
6476
- getCalendarCapacityAdmin(startDate: Date | undefined, endDate: Date | undefined): Promise<CalendarDayDto[]> {
6477
- let url_ = this.baseUrl + "/kpiadmin/calendar?";
6472
+ getCalenderCapacityAdmin(startDate: Date | undefined, endDate: Date | undefined): Promise<CalenderCapacityDto[]> {
6473
+ let url_ = this.baseUrl + "/kpiadmin/calender?";
6478
6474
  if (startDate === null)
6479
6475
  throw new Error("The parameter 'startDate' cannot be null.");
6480
6476
  else if (startDate !== undefined)
@@ -6495,11 +6491,11 @@ export class KpiAdminClient extends AuthorizedApiBase implements IKpiAdminClient
6495
6491
  return this.transformOptions(options_).then(transformedOptions_ => {
6496
6492
  return this.http.fetch(url_, transformedOptions_);
6497
6493
  }).then((_response: Response) => {
6498
- return this.processGetCalendarCapacityAdmin(_response);
6494
+ return this.processGetCalenderCapacityAdmin(_response);
6499
6495
  });
6500
6496
  }
6501
6497
 
6502
- protected processGetCalendarCapacityAdmin(response: Response): Promise<CalendarDayDto[]> {
6498
+ protected processGetCalenderCapacityAdmin(response: Response): Promise<CalenderCapacityDto[]> {
6503
6499
  const status = response.status;
6504
6500
  let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
6505
6501
  if (status === 200) {
@@ -6509,7 +6505,7 @@ export class KpiAdminClient extends AuthorizedApiBase implements IKpiAdminClient
6509
6505
  if (Array.isArray(resultData200)) {
6510
6506
  result200 = [] as any;
6511
6507
  for (let item of resultData200)
6512
- result200!.push(CalendarDayDto.fromJS(item));
6508
+ result200!.push(CalenderCapacityDto.fromJS(item));
6513
6509
  }
6514
6510
  return result200;
6515
6511
  });
@@ -6518,7 +6514,7 @@ export class KpiAdminClient extends AuthorizedApiBase implements IKpiAdminClient
6518
6514
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
6519
6515
  });
6520
6516
  }
6521
- return Promise.resolve<CalendarDayDto[]>(null as any);
6517
+ return Promise.resolve<CalenderCapacityDto[]>(null as any);
6522
6518
  }
6523
6519
 
6524
6520
  updateCalenderCapacityAdmin(request: UpdateCalenderCapacity): Promise<CalenderCapacityDto> {
@@ -6560,82 +6556,6 @@ export class KpiAdminClient extends AuthorizedApiBase implements IKpiAdminClient
6560
6556
  }
6561
6557
  return Promise.resolve<CalenderCapacityDto>(null as any);
6562
6558
  }
6563
-
6564
- getCalendarSettings(): Promise<CalendarSettingsDto> {
6565
- let url_ = this.baseUrl + "/kpiadmin/calendar/settings";
6566
- url_ = url_.replace(/[?&]$/, "");
6567
-
6568
- let options_: RequestInit = {
6569
- method: "GET",
6570
- headers: {
6571
- "Accept": "application/json"
6572
- }
6573
- };
6574
-
6575
- return this.transformOptions(options_).then(transformedOptions_ => {
6576
- return this.http.fetch(url_, transformedOptions_);
6577
- }).then((_response: Response) => {
6578
- return this.processGetCalendarSettings(_response);
6579
- });
6580
- }
6581
-
6582
- protected processGetCalendarSettings(response: Response): Promise<CalendarSettingsDto> {
6583
- const status = response.status;
6584
- let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
6585
- if (status === 200) {
6586
- return response.text().then((_responseText) => {
6587
- let result200: any = null;
6588
- let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
6589
- result200 = CalendarSettingsDto.fromJS(resultData200);
6590
- return result200;
6591
- });
6592
- } else if (status !== 200 && status !== 204) {
6593
- return response.text().then((_responseText) => {
6594
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
6595
- });
6596
- }
6597
- return Promise.resolve<CalendarSettingsDto>(null as any);
6598
- }
6599
-
6600
- updateCalendarSettings(cmd: UpdateCalendarSettingsCommand): Promise<CalendarSettingsDto> {
6601
- let url_ = this.baseUrl + "/kpiadmin/calendar/settings";
6602
- url_ = url_.replace(/[?&]$/, "");
6603
-
6604
- const content_ = JSON.stringify(cmd);
6605
-
6606
- let options_: RequestInit = {
6607
- body: content_,
6608
- method: "PUT",
6609
- headers: {
6610
- "Content-Type": "application/json",
6611
- "Accept": "application/json"
6612
- }
6613
- };
6614
-
6615
- return this.transformOptions(options_).then(transformedOptions_ => {
6616
- return this.http.fetch(url_, transformedOptions_);
6617
- }).then((_response: Response) => {
6618
- return this.processUpdateCalendarSettings(_response);
6619
- });
6620
- }
6621
-
6622
- protected processUpdateCalendarSettings(response: Response): Promise<CalendarSettingsDto> {
6623
- const status = response.status;
6624
- let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
6625
- if (status === 200) {
6626
- return response.text().then((_responseText) => {
6627
- let result200: any = null;
6628
- let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
6629
- result200 = CalendarSettingsDto.fromJS(resultData200);
6630
- return result200;
6631
- });
6632
- } else if (status !== 200 && status !== 204) {
6633
- return response.text().then((_responseText) => {
6634
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
6635
- });
6636
- }
6637
- return Promise.resolve<CalendarSettingsDto>(null as any);
6638
- }
6639
6559
  }
6640
6560
 
6641
6561
  export interface IKpiClient {
@@ -33975,52 +33895,6 @@ export interface IUpdateMachinesCapacity {
33975
33895
  capacity?: MachineCapacitySettingsDto[] | null;
33976
33896
  }
33977
33897
 
33978
- export class CalendarDayDto implements ICalendarDayDto {
33979
- date?: Date;
33980
- dayCapacity?: CalenderDayCapacityDto;
33981
- capacityHours?: number;
33982
-
33983
- constructor(data?: ICalendarDayDto) {
33984
- if (data) {
33985
- for (var property in data) {
33986
- if (data.hasOwnProperty(property))
33987
- (<any>this)[property] = (<any>data)[property];
33988
- }
33989
- }
33990
- }
33991
-
33992
- init(_data?: any) {
33993
- if (_data) {
33994
- this.date = _data["date"] ? new Date(_data["date"].toString()) : <any>undefined;
33995
- this.dayCapacity = _data["dayCapacity"];
33996
- this.capacityHours = _data["capacityHours"];
33997
- }
33998
- }
33999
-
34000
- static fromJS(data: any): CalendarDayDto {
34001
- data = typeof data === 'object' ? data : {};
34002
- let result = new CalendarDayDto();
34003
- result.init(data);
34004
- return result;
34005
- }
34006
-
34007
- toJSON(data?: any) {
34008
- data = typeof data === 'object' ? data : {};
34009
- data["date"] = this.date ? this.date.toISOString() : <any>undefined;
34010
- data["dayCapacity"] = this.dayCapacity;
34011
- data["capacityHours"] = this.capacityHours;
34012
- return data;
34013
- }
34014
- }
34015
-
34016
- export interface ICalendarDayDto {
34017
- date?: Date;
34018
- dayCapacity?: CalenderDayCapacityDto;
34019
- capacityHours?: number;
34020
- }
34021
-
34022
- export type CalenderDayCapacityDto = "WorkingDay" | "HalfDay" | "Holiday";
34023
-
34024
33898
  export class CalenderCapacityDto implements ICalenderCapacityDto {
34025
33899
  date?: Date;
34026
33900
  dayCapacity?: CalenderDayCapacityDto;
@@ -34061,6 +33935,8 @@ export interface ICalenderCapacityDto {
34061
33935
  dayCapacity?: CalenderDayCapacityDto;
34062
33936
  }
34063
33937
 
33938
+ export type CalenderDayCapacityDto = "WorkingDay" | "HalfDay" | "Holiday";
33939
+
34064
33940
  export class UpdateCalenderCapacity implements IUpdateCalenderCapacity {
34065
33941
  date?: Date;
34066
33942
  dayCapacity?: CalenderDayCapacityDto;
@@ -34101,120 +33977,6 @@ export interface IUpdateCalenderCapacity {
34101
33977
  dayCapacity?: CalenderDayCapacityDto;
34102
33978
  }
34103
33979
 
34104
- export class CalendarSettingsDto implements ICalendarSettingsDto {
34105
- defaultHoursPerWeekday?: { [key in DayOfWeek]?: number; };
34106
- halfDayHours?: number;
34107
- holidayHours?: number;
34108
-
34109
- constructor(data?: ICalendarSettingsDto) {
34110
- if (data) {
34111
- for (var property in data) {
34112
- if (data.hasOwnProperty(property))
34113
- (<any>this)[property] = (<any>data)[property];
34114
- }
34115
- }
34116
- }
34117
-
34118
- init(_data?: any) {
34119
- if (_data) {
34120
- if (_data["defaultHoursPerWeekday"]) {
34121
- this.defaultHoursPerWeekday = {} as any;
34122
- for (let key in _data["defaultHoursPerWeekday"]) {
34123
- if (_data["defaultHoursPerWeekday"].hasOwnProperty(key))
34124
- (<any>this.defaultHoursPerWeekday)![key] = _data["defaultHoursPerWeekday"][key];
34125
- }
34126
- }
34127
- this.halfDayHours = _data["halfDayHours"];
34128
- this.holidayHours = _data["holidayHours"];
34129
- }
34130
- }
34131
-
34132
- static fromJS(data: any): CalendarSettingsDto {
34133
- data = typeof data === 'object' ? data : {};
34134
- let result = new CalendarSettingsDto();
34135
- result.init(data);
34136
- return result;
34137
- }
34138
-
34139
- toJSON(data?: any) {
34140
- data = typeof data === 'object' ? data : {};
34141
- if (this.defaultHoursPerWeekday) {
34142
- data["defaultHoursPerWeekday"] = {};
34143
- for (let key in this.defaultHoursPerWeekday) {
34144
- if (this.defaultHoursPerWeekday.hasOwnProperty(key))
34145
- (<any>data["defaultHoursPerWeekday"])[key] = (<any>this.defaultHoursPerWeekday)[key];
34146
- }
34147
- }
34148
- data["halfDayHours"] = this.halfDayHours;
34149
- data["holidayHours"] = this.holidayHours;
34150
- return data;
34151
- }
34152
- }
34153
-
34154
- export interface ICalendarSettingsDto {
34155
- defaultHoursPerWeekday?: { [key in DayOfWeek]?: number; };
34156
- halfDayHours?: number;
34157
- holidayHours?: number;
34158
- }
34159
-
34160
- export type DayOfWeek = 0 | 1 | 2 | 3 | 4 | 5 | 6;
34161
-
34162
- export class UpdateCalendarSettingsCommand implements IUpdateCalendarSettingsCommand {
34163
- defaultHoursPerWeekday?: { [key in DayOfWeek]?: number; };
34164
- halfDayHours?: number;
34165
- holidayHours?: number;
34166
-
34167
- constructor(data?: IUpdateCalendarSettingsCommand) {
34168
- if (data) {
34169
- for (var property in data) {
34170
- if (data.hasOwnProperty(property))
34171
- (<any>this)[property] = (<any>data)[property];
34172
- }
34173
- }
34174
- }
34175
-
34176
- init(_data?: any) {
34177
- if (_data) {
34178
- if (_data["defaultHoursPerWeekday"]) {
34179
- this.defaultHoursPerWeekday = {} as any;
34180
- for (let key in _data["defaultHoursPerWeekday"]) {
34181
- if (_data["defaultHoursPerWeekday"].hasOwnProperty(key))
34182
- (<any>this.defaultHoursPerWeekday)![key] = _data["defaultHoursPerWeekday"][key];
34183
- }
34184
- }
34185
- this.halfDayHours = _data["halfDayHours"];
34186
- this.holidayHours = _data["holidayHours"];
34187
- }
34188
- }
34189
-
34190
- static fromJS(data: any): UpdateCalendarSettingsCommand {
34191
- data = typeof data === 'object' ? data : {};
34192
- let result = new UpdateCalendarSettingsCommand();
34193
- result.init(data);
34194
- return result;
34195
- }
34196
-
34197
- toJSON(data?: any) {
34198
- data = typeof data === 'object' ? data : {};
34199
- if (this.defaultHoursPerWeekday) {
34200
- data["defaultHoursPerWeekday"] = {};
34201
- for (let key in this.defaultHoursPerWeekday) {
34202
- if (this.defaultHoursPerWeekday.hasOwnProperty(key))
34203
- (<any>data["defaultHoursPerWeekday"])[key] = (<any>this.defaultHoursPerWeekday)[key];
34204
- }
34205
- }
34206
- data["halfDayHours"] = this.halfDayHours;
34207
- data["holidayHours"] = this.holidayHours;
34208
- return data;
34209
- }
34210
- }
34211
-
34212
- export interface IUpdateCalendarSettingsCommand {
34213
- defaultHoursPerWeekday?: { [key in DayOfWeek]?: number; };
34214
- halfDayHours?: number;
34215
- holidayHours?: number;
34216
- }
34217
-
34218
33980
  export class MachineKpiDto implements IMachineKpiDto {
34219
33981
  uptimeToNow!: number;
34220
33982
  uptimeToNowPreviousPeriod!: number;
@@ -51815,6 +51577,7 @@ export class MeasurementFormGroupedElementDto implements IMeasurementFormGrouped
51815
51577
  machiningDimension?: number | null;
51816
51578
  nominalInch?: number | null;
51817
51579
  isValid!: boolean;
51580
+ validationErrorMessage?: string | null;
51818
51581
 
51819
51582
  constructor(data?: IMeasurementFormGroupedElementDto) {
51820
51583
  if (data) {
@@ -51866,6 +51629,7 @@ export class MeasurementFormGroupedElementDto implements IMeasurementFormGrouped
51866
51629
  this.machiningDimension = _data["machiningDimension"];
51867
51630
  this.nominalInch = _data["nominalInch"];
51868
51631
  this.isValid = _data["isValid"];
51632
+ this.validationErrorMessage = _data["validationErrorMessage"];
51869
51633
  }
51870
51634
  }
51871
51635
 
@@ -51917,6 +51681,7 @@ export class MeasurementFormGroupedElementDto implements IMeasurementFormGrouped
51917
51681
  data["machiningDimension"] = this.machiningDimension;
51918
51682
  data["nominalInch"] = this.nominalInch;
51919
51683
  data["isValid"] = this.isValid;
51684
+ data["validationErrorMessage"] = this.validationErrorMessage;
51920
51685
  return data;
51921
51686
  }
51922
51687
  }
@@ -51961,9 +51726,10 @@ export interface IMeasurementFormGroupedElementDto {
51961
51726
  machiningDimension?: number | null;
51962
51727
  nominalInch?: number | null;
51963
51728
  isValid: boolean;
51729
+ validationErrorMessage?: string | null;
51964
51730
  }
51965
51731
 
51966
- export type MeasurementFrequency = "All" | "FirstArticle" | "NFirst" | "NPercent" | "ISO2859" | "Nth" | "None";
51732
+ export type MeasurementFrequency = "All" | "FirstArticle" | "NFirst" | "NPercent" | "ISO2859" | "Nth" | "FirstAndLast" | "None";
51967
51733
 
51968
51734
  export type MeasurementFormValueType = "None" | "Bool" | "Decimal" | "String";
51969
51735
 
@@ -52358,6 +52124,7 @@ export class UpdateSchemaGroupedElementDto implements IUpdateSchemaGroupedElemen
52358
52124
  includeInCustomerDocumentation!: boolean;
52359
52125
  canCopy?: boolean | null;
52360
52126
  isDocumentedExternally!: boolean;
52127
+ coatingThickness?: number | null;
52361
52128
 
52362
52129
  constructor(data?: IUpdateSchemaGroupedElementDto) {
52363
52130
  if (data) {
@@ -52376,6 +52143,7 @@ export class UpdateSchemaGroupedElementDto implements IUpdateSchemaGroupedElemen
52376
52143
  this.includeInCustomerDocumentation = _data["includeInCustomerDocumentation"];
52377
52144
  this.canCopy = _data["canCopy"];
52378
52145
  this.isDocumentedExternally = _data["isDocumentedExternally"];
52146
+ this.coatingThickness = _data["coatingThickness"];
52379
52147
  }
52380
52148
  }
52381
52149
 
@@ -52394,6 +52162,7 @@ export class UpdateSchemaGroupedElementDto implements IUpdateSchemaGroupedElemen
52394
52162
  data["includeInCustomerDocumentation"] = this.includeInCustomerDocumentation;
52395
52163
  data["canCopy"] = this.canCopy;
52396
52164
  data["isDocumentedExternally"] = this.isDocumentedExternally;
52165
+ data["coatingThickness"] = this.coatingThickness;
52397
52166
  return data;
52398
52167
  }
52399
52168
  }
@@ -52405,6 +52174,7 @@ export interface IUpdateSchemaGroupedElementDto {
52405
52174
  includeInCustomerDocumentation: boolean;
52406
52175
  canCopy?: boolean | null;
52407
52176
  isDocumentedExternally: boolean;
52177
+ coatingThickness?: number | null;
52408
52178
  }
52409
52179
 
52410
52180
  export class UpdateSchemaGroupedElementRowDto implements IUpdateSchemaGroupedElementRowDto {