@ignos/api-client 20250702.0.12045-alpha → 20250702.0.12047-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,8 +787,10 @@ 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
- getCalenderCapacityAdmin(startDate: Date | undefined, endDate: Date | undefined): Promise<CalenderCapacityDto[]>;
790
+ getCalendarCapacityAdmin(startDate: Date | undefined, endDate: Date | undefined): Promise<CalendarDayDto[]>;
791
791
  updateCalenderCapacityAdmin(request: UpdateCalenderCapacity): Promise<CalenderCapacityDto>;
792
+ getCalendarSettings(): Promise<CalendarSettingsDto>;
793
+ updateCalendarSettings(cmd: UpdateCalendarSettingsCommand): Promise<CalendarSettingsDto>;
792
794
  }
793
795
  export declare class KpiAdminClient extends AuthorizedApiBase implements IKpiAdminClient {
794
796
  private http;
@@ -801,10 +803,14 @@ export declare class KpiAdminClient extends AuthorizedApiBase implements IKpiAdm
801
803
  protected processGetMachineCapacityAdmin(response: Response): Promise<MachineGroupCapacityDto[]>;
802
804
  updateMachineCapacityAdmin(request: UpdateMachinesCapacity): Promise<MachineCapacityDto>;
803
805
  protected processUpdateMachineCapacityAdmin(response: Response): Promise<MachineCapacityDto>;
804
- getCalenderCapacityAdmin(startDate: Date | undefined, endDate: Date | undefined): Promise<CalenderCapacityDto[]>;
805
- protected processGetCalenderCapacityAdmin(response: Response): Promise<CalenderCapacityDto[]>;
806
+ getCalendarCapacityAdmin(startDate: Date | undefined, endDate: Date | undefined): Promise<CalendarDayDto[]>;
807
+ protected processGetCalendarCapacityAdmin(response: Response): Promise<CalendarDayDto[]>;
806
808
  updateCalenderCapacityAdmin(request: UpdateCalenderCapacity): Promise<CalenderCapacityDto>;
807
809
  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>;
808
814
  }
809
815
  export interface IKpiClient {
810
816
  getMachineKpi(machineExternalId: string | undefined, previousPeriodStartDate: Date | undefined, startDate: Date | undefined, endDate: Date | undefined, utcOffset: number | undefined): Promise<MachineKpiDto>;
@@ -5851,6 +5857,21 @@ export interface IUpdateMachinesCapacity {
5851
5857
  utilizationPercent?: number | null;
5852
5858
  capacity?: MachineCapacitySettingsDto[] | null;
5853
5859
  }
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";
5854
5875
  export declare class CalenderCapacityDto implements ICalenderCapacityDto {
5855
5876
  date?: Date;
5856
5877
  dayCapacity?: CalenderDayCapacityDto;
@@ -5863,7 +5884,6 @@ export interface ICalenderCapacityDto {
5863
5884
  date?: Date;
5864
5885
  dayCapacity?: CalenderDayCapacityDto;
5865
5886
  }
5866
- export type CalenderDayCapacityDto = "WorkingDay" | "HalfDay" | "Holiday";
5867
5887
  export declare class UpdateCalenderCapacity implements IUpdateCalenderCapacity {
5868
5888
  date?: Date;
5869
5889
  dayCapacity?: CalenderDayCapacityDto;
@@ -5876,6 +5896,43 @@ export interface IUpdateCalenderCapacity {
5876
5896
  date?: Date;
5877
5897
  dayCapacity?: CalenderDayCapacityDto;
5878
5898
  }
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
+ }
5879
5936
  export declare class MachineKpiDto implements IMachineKpiDto {
5880
5937
  uptimeToNow: number;
5881
5938
  uptimeToNowPreviousPeriod: number;
@@ -11707,7 +11764,6 @@ export declare class MeasurementFormGroupedElementDto implements IMeasurementFor
11707
11764
  machiningDimension?: number | null;
11708
11765
  nominalInch?: number | null;
11709
11766
  isValid: boolean;
11710
- validationErrorMessage?: string | null;
11711
11767
  constructor(data?: IMeasurementFormGroupedElementDto);
11712
11768
  init(_data?: any): void;
11713
11769
  static fromJS(data: any): MeasurementFormGroupedElementDto;
@@ -11753,9 +11809,8 @@ export interface IMeasurementFormGroupedElementDto {
11753
11809
  machiningDimension?: number | null;
11754
11810
  nominalInch?: number | null;
11755
11811
  isValid: boolean;
11756
- validationErrorMessage?: string | null;
11757
11812
  }
11758
- export type MeasurementFrequency = "All" | "FirstArticle" | "NFirst" | "NPercent" | "ISO2859" | "Nth" | "FirstAndLast" | "None";
11813
+ export type MeasurementFrequency = "All" | "FirstArticle" | "NFirst" | "NPercent" | "ISO2859" | "Nth" | "None";
11759
11814
  export type MeasurementFormValueType = "None" | "Bool" | "Decimal" | "String";
11760
11815
  export type BonusType = "None" | "Positive" | "PositiveAndNegative";
11761
11816
  export declare class MeasurementFormLinkedSchemaDto implements IMeasurementFormLinkedSchemaDto {
@@ -11897,7 +11952,6 @@ export declare class UpdateSchemaGroupedElementDto implements IUpdateSchemaGroup
11897
11952
  includeInCustomerDocumentation: boolean;
11898
11953
  canCopy?: boolean | null;
11899
11954
  isDocumentedExternally: boolean;
11900
- coatingThickness?: number | null;
11901
11955
  constructor(data?: IUpdateSchemaGroupedElementDto);
11902
11956
  init(_data?: any): void;
11903
11957
  static fromJS(data: any): UpdateSchemaGroupedElementDto;
@@ -11910,7 +11964,6 @@ export interface IUpdateSchemaGroupedElementDto {
11910
11964
  includeInCustomerDocumentation: boolean;
11911
11965
  canCopy?: boolean | null;
11912
11966
  isDocumentedExternally: boolean;
11913
- coatingThickness?: number | null;
11914
11967
  }
11915
11968
  export declare class UpdateSchemaGroupedElementRowDto implements IUpdateSchemaGroupedElementRowDto {
11916
11969
  id: string;
@@ -6020,8 +6020,8 @@ export class KpiAdminClient extends AuthorizedApiBase {
6020
6020
  }
6021
6021
  return Promise.resolve(null);
6022
6022
  }
6023
- getCalenderCapacityAdmin(startDate, endDate) {
6024
- let url_ = this.baseUrl + "/kpiadmin/calender?";
6023
+ getCalendarCapacityAdmin(startDate, endDate) {
6024
+ let url_ = this.baseUrl + "/kpiadmin/calendar?";
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.processGetCalenderCapacityAdmin(_response);
6043
+ return this.processGetCalendarCapacityAdmin(_response);
6044
6044
  });
6045
6045
  }
6046
- processGetCalenderCapacityAdmin(response) {
6046
+ processGetCalendarCapacityAdmin(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(CalenderCapacityDto.fromJS(item));
6060
+ result200.push(CalendarDayDto.fromJS(item));
6061
6061
  }
6062
6062
  return result200;
6063
6063
  });
@@ -6109,6 +6109,83 @@ 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
+ }
6112
6189
  }
6113
6190
  export class KpiClient extends AuthorizedApiBase {
6114
6191
  constructor(configuration, baseUrl, http) {
@@ -29224,6 +29301,36 @@ export class UpdateMachinesCapacity {
29224
29301
  return data;
29225
29302
  }
29226
29303
  }
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
+ }
29227
29334
  export class CalenderCapacityDto {
29228
29335
  constructor(data) {
29229
29336
  if (data) {
@@ -29280,6 +29387,90 @@ export class UpdateCalenderCapacity {
29280
29387
  return data;
29281
29388
  }
29282
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
+ }
29283
29474
  export class MachineKpiDto {
29284
29475
  constructor(data) {
29285
29476
  if (data) {
@@ -41070,7 +41261,6 @@ export class MeasurementFormGroupedElementDto {
41070
41261
  this.machiningDimension = _data["machiningDimension"];
41071
41262
  this.nominalInch = _data["nominalInch"];
41072
41263
  this.isValid = _data["isValid"];
41073
- this.validationErrorMessage = _data["validationErrorMessage"];
41074
41264
  }
41075
41265
  }
41076
41266
  static fromJS(data) {
@@ -41120,7 +41310,6 @@ export class MeasurementFormGroupedElementDto {
41120
41310
  data["machiningDimension"] = this.machiningDimension;
41121
41311
  data["nominalInch"] = this.nominalInch;
41122
41312
  data["isValid"] = this.isValid;
41123
- data["validationErrorMessage"] = this.validationErrorMessage;
41124
41313
  return data;
41125
41314
  }
41126
41315
  }
@@ -41391,7 +41580,6 @@ export class UpdateSchemaGroupedElementDto {
41391
41580
  this.includeInCustomerDocumentation = _data["includeInCustomerDocumentation"];
41392
41581
  this.canCopy = _data["canCopy"];
41393
41582
  this.isDocumentedExternally = _data["isDocumentedExternally"];
41394
- this.coatingThickness = _data["coatingThickness"];
41395
41583
  }
41396
41584
  }
41397
41585
  static fromJS(data) {
@@ -41408,7 +41596,6 @@ export class UpdateSchemaGroupedElementDto {
41408
41596
  data["includeInCustomerDocumentation"] = this.includeInCustomerDocumentation;
41409
41597
  data["canCopy"] = this.canCopy;
41410
41598
  data["isDocumentedExternally"] = this.isDocumentedExternally;
41411
- data["coatingThickness"] = this.coatingThickness;
41412
41599
  return data;
41413
41600
  }
41414
41601
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ignos/api-client",
3
- "version": "20250702.0.12045-alpha",
3
+ "version": "20250702.0.12047-alpha",
4
4
  "description": "IGNOS API Client",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -6373,9 +6373,13 @@ export interface IKpiAdminClient {
6373
6373
 
6374
6374
  updateMachineCapacityAdmin(request: UpdateMachinesCapacity): Promise<MachineCapacityDto>;
6375
6375
 
6376
- getCalenderCapacityAdmin(startDate: Date | undefined, endDate: Date | undefined): Promise<CalenderCapacityDto[]>;
6376
+ getCalendarCapacityAdmin(startDate: Date | undefined, endDate: Date | undefined): Promise<CalendarDayDto[]>;
6377
6377
 
6378
6378
  updateCalenderCapacityAdmin(request: UpdateCalenderCapacity): Promise<CalenderCapacityDto>;
6379
+
6380
+ getCalendarSettings(): Promise<CalendarSettingsDto>;
6381
+
6382
+ updateCalendarSettings(cmd: UpdateCalendarSettingsCommand): Promise<CalendarSettingsDto>;
6379
6383
  }
6380
6384
 
6381
6385
  export class KpiAdminClient extends AuthorizedApiBase implements IKpiAdminClient {
@@ -6469,8 +6473,8 @@ export class KpiAdminClient extends AuthorizedApiBase implements IKpiAdminClient
6469
6473
  return Promise.resolve<MachineCapacityDto>(null as any);
6470
6474
  }
6471
6475
 
6472
- getCalenderCapacityAdmin(startDate: Date | undefined, endDate: Date | undefined): Promise<CalenderCapacityDto[]> {
6473
- let url_ = this.baseUrl + "/kpiadmin/calender?";
6476
+ getCalendarCapacityAdmin(startDate: Date | undefined, endDate: Date | undefined): Promise<CalendarDayDto[]> {
6477
+ let url_ = this.baseUrl + "/kpiadmin/calendar?";
6474
6478
  if (startDate === null)
6475
6479
  throw new Error("The parameter 'startDate' cannot be null.");
6476
6480
  else if (startDate !== undefined)
@@ -6491,11 +6495,11 @@ export class KpiAdminClient extends AuthorizedApiBase implements IKpiAdminClient
6491
6495
  return this.transformOptions(options_).then(transformedOptions_ => {
6492
6496
  return this.http.fetch(url_, transformedOptions_);
6493
6497
  }).then((_response: Response) => {
6494
- return this.processGetCalenderCapacityAdmin(_response);
6498
+ return this.processGetCalendarCapacityAdmin(_response);
6495
6499
  });
6496
6500
  }
6497
6501
 
6498
- protected processGetCalenderCapacityAdmin(response: Response): Promise<CalenderCapacityDto[]> {
6502
+ protected processGetCalendarCapacityAdmin(response: Response): Promise<CalendarDayDto[]> {
6499
6503
  const status = response.status;
6500
6504
  let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
6501
6505
  if (status === 200) {
@@ -6505,7 +6509,7 @@ export class KpiAdminClient extends AuthorizedApiBase implements IKpiAdminClient
6505
6509
  if (Array.isArray(resultData200)) {
6506
6510
  result200 = [] as any;
6507
6511
  for (let item of resultData200)
6508
- result200!.push(CalenderCapacityDto.fromJS(item));
6512
+ result200!.push(CalendarDayDto.fromJS(item));
6509
6513
  }
6510
6514
  return result200;
6511
6515
  });
@@ -6514,7 +6518,7 @@ export class KpiAdminClient extends AuthorizedApiBase implements IKpiAdminClient
6514
6518
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
6515
6519
  });
6516
6520
  }
6517
- return Promise.resolve<CalenderCapacityDto[]>(null as any);
6521
+ return Promise.resolve<CalendarDayDto[]>(null as any);
6518
6522
  }
6519
6523
 
6520
6524
  updateCalenderCapacityAdmin(request: UpdateCalenderCapacity): Promise<CalenderCapacityDto> {
@@ -6556,6 +6560,82 @@ export class KpiAdminClient extends AuthorizedApiBase implements IKpiAdminClient
6556
6560
  }
6557
6561
  return Promise.resolve<CalenderCapacityDto>(null as any);
6558
6562
  }
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
+ }
6559
6639
  }
6560
6640
 
6561
6641
  export interface IKpiClient {
@@ -33895,6 +33975,52 @@ export interface IUpdateMachinesCapacity {
33895
33975
  capacity?: MachineCapacitySettingsDto[] | null;
33896
33976
  }
33897
33977
 
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
+
33898
34024
  export class CalenderCapacityDto implements ICalenderCapacityDto {
33899
34025
  date?: Date;
33900
34026
  dayCapacity?: CalenderDayCapacityDto;
@@ -33935,8 +34061,6 @@ export interface ICalenderCapacityDto {
33935
34061
  dayCapacity?: CalenderDayCapacityDto;
33936
34062
  }
33937
34063
 
33938
- export type CalenderDayCapacityDto = "WorkingDay" | "HalfDay" | "Holiday";
33939
-
33940
34064
  export class UpdateCalenderCapacity implements IUpdateCalenderCapacity {
33941
34065
  date?: Date;
33942
34066
  dayCapacity?: CalenderDayCapacityDto;
@@ -33977,6 +34101,120 @@ export interface IUpdateCalenderCapacity {
33977
34101
  dayCapacity?: CalenderDayCapacityDto;
33978
34102
  }
33979
34103
 
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
+
33980
34218
  export class MachineKpiDto implements IMachineKpiDto {
33981
34219
  uptimeToNow!: number;
33982
34220
  uptimeToNowPreviousPeriod!: number;
@@ -51577,7 +51815,6 @@ export class MeasurementFormGroupedElementDto implements IMeasurementFormGrouped
51577
51815
  machiningDimension?: number | null;
51578
51816
  nominalInch?: number | null;
51579
51817
  isValid!: boolean;
51580
- validationErrorMessage?: string | null;
51581
51818
 
51582
51819
  constructor(data?: IMeasurementFormGroupedElementDto) {
51583
51820
  if (data) {
@@ -51629,7 +51866,6 @@ export class MeasurementFormGroupedElementDto implements IMeasurementFormGrouped
51629
51866
  this.machiningDimension = _data["machiningDimension"];
51630
51867
  this.nominalInch = _data["nominalInch"];
51631
51868
  this.isValid = _data["isValid"];
51632
- this.validationErrorMessage = _data["validationErrorMessage"];
51633
51869
  }
51634
51870
  }
51635
51871
 
@@ -51681,7 +51917,6 @@ export class MeasurementFormGroupedElementDto implements IMeasurementFormGrouped
51681
51917
  data["machiningDimension"] = this.machiningDimension;
51682
51918
  data["nominalInch"] = this.nominalInch;
51683
51919
  data["isValid"] = this.isValid;
51684
- data["validationErrorMessage"] = this.validationErrorMessage;
51685
51920
  return data;
51686
51921
  }
51687
51922
  }
@@ -51726,10 +51961,9 @@ export interface IMeasurementFormGroupedElementDto {
51726
51961
  machiningDimension?: number | null;
51727
51962
  nominalInch?: number | null;
51728
51963
  isValid: boolean;
51729
- validationErrorMessage?: string | null;
51730
51964
  }
51731
51965
 
51732
- export type MeasurementFrequency = "All" | "FirstArticle" | "NFirst" | "NPercent" | "ISO2859" | "Nth" | "FirstAndLast" | "None";
51966
+ export type MeasurementFrequency = "All" | "FirstArticle" | "NFirst" | "NPercent" | "ISO2859" | "Nth" | "None";
51733
51967
 
51734
51968
  export type MeasurementFormValueType = "None" | "Bool" | "Decimal" | "String";
51735
51969
 
@@ -52124,7 +52358,6 @@ export class UpdateSchemaGroupedElementDto implements IUpdateSchemaGroupedElemen
52124
52358
  includeInCustomerDocumentation!: boolean;
52125
52359
  canCopy?: boolean | null;
52126
52360
  isDocumentedExternally!: boolean;
52127
- coatingThickness?: number | null;
52128
52361
 
52129
52362
  constructor(data?: IUpdateSchemaGroupedElementDto) {
52130
52363
  if (data) {
@@ -52143,7 +52376,6 @@ export class UpdateSchemaGroupedElementDto implements IUpdateSchemaGroupedElemen
52143
52376
  this.includeInCustomerDocumentation = _data["includeInCustomerDocumentation"];
52144
52377
  this.canCopy = _data["canCopy"];
52145
52378
  this.isDocumentedExternally = _data["isDocumentedExternally"];
52146
- this.coatingThickness = _data["coatingThickness"];
52147
52379
  }
52148
52380
  }
52149
52381
 
@@ -52162,7 +52394,6 @@ export class UpdateSchemaGroupedElementDto implements IUpdateSchemaGroupedElemen
52162
52394
  data["includeInCustomerDocumentation"] = this.includeInCustomerDocumentation;
52163
52395
  data["canCopy"] = this.canCopy;
52164
52396
  data["isDocumentedExternally"] = this.isDocumentedExternally;
52165
- data["coatingThickness"] = this.coatingThickness;
52166
52397
  return data;
52167
52398
  }
52168
52399
  }
@@ -52174,7 +52405,6 @@ export interface IUpdateSchemaGroupedElementDto {
52174
52405
  includeInCustomerDocumentation: boolean;
52175
52406
  canCopy?: boolean | null;
52176
52407
  isDocumentedExternally: boolean;
52177
- coatingThickness?: number | null;
52178
52408
  }
52179
52409
 
52180
52410
  export class UpdateSchemaGroupedElementRowDto implements IUpdateSchemaGroupedElementRowDto {