@ignos/api-client 20250122.0.11003 → 20250130.0.11040-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.
@@ -760,6 +760,7 @@ export interface IDowntimeReasonsClient {
760
760
  listDowntimeReasonsForMachine(id: number): Promise<DowntimeReasonDto[]>;
761
761
  listTopDowntimeReasons(): Promise<TopDowntimeReasonsDto>;
762
762
  createReport(request: CreateDowntimeReasonsReportRequest | undefined): Promise<DowntimeReasonsReportDto>;
763
+ exportReportToCsv(request: CreateDowntimeReasonsReportRequest | undefined): Promise<DowntimeReasonsReportCsvDto>;
763
764
  }
764
765
  export declare class DowntimeReasonsClient extends AuthorizedApiBase implements IDowntimeReasonsClient {
765
766
  private http;
@@ -780,6 +781,8 @@ export declare class DowntimeReasonsClient extends AuthorizedApiBase implements
780
781
  protected processListTopDowntimeReasons(response: Response): Promise<TopDowntimeReasonsDto>;
781
782
  createReport(request: CreateDowntimeReasonsReportRequest | undefined): Promise<DowntimeReasonsReportDto>;
782
783
  protected processCreateReport(response: Response): Promise<DowntimeReasonsReportDto>;
784
+ exportReportToCsv(request: CreateDowntimeReasonsReportRequest | undefined): Promise<DowntimeReasonsReportCsvDto>;
785
+ protected processExportReportToCsv(response: Response): Promise<DowntimeReasonsReportCsvDto>;
783
786
  }
784
787
  export interface IKpiAdminClient {
785
788
  getMachineCapacityAdmin(): Promise<MachineGroupCapacityDto[]>;
@@ -4749,6 +4752,7 @@ export declare class MeasuringToolDetailDto implements IMeasuringToolDetailDto {
4749
4752
  lastLocation?: string | null;
4750
4753
  lastLocationDate?: Date | null;
4751
4754
  calibrationStatus: CalibrationStatusDto;
4755
+ nonCalibrationTool: boolean;
4752
4756
  constructor(data?: IMeasuringToolDetailDto);
4753
4757
  init(_data?: any): void;
4754
4758
  static fromJS(data: any): MeasuringToolDetailDto;
@@ -4774,6 +4778,7 @@ export interface IMeasuringToolDetailDto {
4774
4778
  lastLocation?: string | null;
4775
4779
  lastLocationDate?: Date | null;
4776
4780
  calibrationStatus: CalibrationStatusDto;
4781
+ nonCalibrationTool: boolean;
4777
4782
  }
4778
4783
  export declare class ManufacturerDto implements IManufacturerDto {
4779
4784
  id: string;
@@ -4883,6 +4888,7 @@ export declare class UpdateMeasuringToolRequest implements IUpdateMeasuringToolR
4883
4888
  serialNumber?: string | null;
4884
4889
  defaultLocation?: string | null;
4885
4890
  precision?: string | null;
4891
+ nonCalibrationTool?: boolean | null;
4886
4892
  constructor(data?: IUpdateMeasuringToolRequest);
4887
4893
  init(_data?: any): void;
4888
4894
  static fromJS(data: any): UpdateMeasuringToolRequest;
@@ -4900,6 +4906,7 @@ export interface IUpdateMeasuringToolRequest {
4900
4906
  serialNumber?: string | null;
4901
4907
  defaultLocation?: string | null;
4902
4908
  precision?: string | null;
4909
+ nonCalibrationTool?: boolean | null;
4903
4910
  }
4904
4911
  export declare class MeasuringToolCalibrationDto implements IMeasuringToolCalibrationDto {
4905
4912
  calibrationDate: Date;
@@ -5309,6 +5316,7 @@ export declare class DowntimeReasonDto implements IDowntimeReasonDto {
5309
5316
  reason: string;
5310
5317
  machineTypes: string[];
5311
5318
  reasonType: DowntimeReasonTypeDto;
5319
+ description?: string | null;
5312
5320
  constructor(data?: IDowntimeReasonDto);
5313
5321
  init(_data?: any): void;
5314
5322
  static fromJS(data: any): DowntimeReasonDto;
@@ -5319,11 +5327,13 @@ export interface IDowntimeReasonDto {
5319
5327
  reason: string;
5320
5328
  machineTypes: string[];
5321
5329
  reasonType: DowntimeReasonTypeDto;
5330
+ description?: string | null;
5322
5331
  }
5323
5332
  export declare class CreateDowntimeReason implements ICreateDowntimeReason {
5324
5333
  reason: string;
5325
5334
  machineTypes: string[];
5326
5335
  reasonType: DowntimeReasonTypeDto;
5336
+ description?: string | null;
5327
5337
  constructor(data?: ICreateDowntimeReason);
5328
5338
  init(_data?: any): void;
5329
5339
  static fromJS(data: any): CreateDowntimeReason;
@@ -5333,11 +5343,13 @@ export interface ICreateDowntimeReason {
5333
5343
  reason: string;
5334
5344
  machineTypes: string[];
5335
5345
  reasonType: DowntimeReasonTypeDto;
5346
+ description?: string | null;
5336
5347
  }
5337
5348
  export declare class UpdateDowntimeReasonRequest implements IUpdateDowntimeReasonRequest {
5338
5349
  reason: string;
5339
5350
  machineTypes: string[];
5340
5351
  reasonType: DowntimeReasonTypeDto;
5352
+ description?: string | null;
5341
5353
  constructor(data?: IUpdateDowntimeReasonRequest);
5342
5354
  init(_data?: any): void;
5343
5355
  static fromJS(data: any): UpdateDowntimeReasonRequest;
@@ -5347,6 +5359,7 @@ export interface IUpdateDowntimeReasonRequest {
5347
5359
  reason: string;
5348
5360
  machineTypes: string[];
5349
5361
  reasonType: DowntimeReasonTypeDto;
5362
+ description?: string | null;
5350
5363
  }
5351
5364
  export declare class MachineTypeDto implements IMachineTypeDto {
5352
5365
  machineType: string;
@@ -5480,6 +5493,20 @@ export interface ICreateDowntimeReasonsReportRequest {
5480
5493
  startTime?: Date | null;
5481
5494
  endTime?: Date | null;
5482
5495
  }
5496
+ export declare class DowntimeReasonsReportCsvDto implements IDowntimeReasonsReportCsvDto {
5497
+ downtimeCsv?: DownloadDto | null;
5498
+ eventsCsv?: DownloadDto | null;
5499
+ programsCsv?: DownloadDto | null;
5500
+ constructor(data?: IDowntimeReasonsReportCsvDto);
5501
+ init(_data?: any): void;
5502
+ static fromJS(data: any): DowntimeReasonsReportCsvDto;
5503
+ toJSON(data?: any): any;
5504
+ }
5505
+ export interface IDowntimeReasonsReportCsvDto {
5506
+ downtimeCsv?: DownloadDto | null;
5507
+ eventsCsv?: DownloadDto | null;
5508
+ programsCsv?: DownloadDto | null;
5509
+ }
5483
5510
  export declare class MachineGroupCapacityDto implements IMachineGroupCapacityDto {
5484
5511
  machineGroupName: string;
5485
5512
  machine: MachineCapacityDto[];
@@ -5891,6 +5891,46 @@ export class DowntimeReasonsClient extends AuthorizedApiBase {
5891
5891
  }
5892
5892
  return Promise.resolve(null);
5893
5893
  }
5894
+ exportReportToCsv(request) {
5895
+ let url_ = this.baseUrl + "/downtimereasons/exporttocsv";
5896
+ url_ = url_.replace(/[?&]$/, "");
5897
+ const content_ = JSON.stringify(request);
5898
+ let options_ = {
5899
+ body: content_,
5900
+ method: "POST",
5901
+ headers: {
5902
+ "Content-Type": "application/json",
5903
+ "Accept": "application/json"
5904
+ }
5905
+ };
5906
+ return this.transformOptions(options_).then(transformedOptions_ => {
5907
+ return this.http.fetch(url_, transformedOptions_);
5908
+ }).then((_response) => {
5909
+ return this.processExportReportToCsv(_response);
5910
+ });
5911
+ }
5912
+ processExportReportToCsv(response) {
5913
+ const status = response.status;
5914
+ let _headers = {};
5915
+ if (response.headers && response.headers.forEach) {
5916
+ response.headers.forEach((v, k) => _headers[k] = v);
5917
+ }
5918
+ ;
5919
+ if (status === 200) {
5920
+ return response.text().then((_responseText) => {
5921
+ let result200 = null;
5922
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
5923
+ result200 = DowntimeReasonsReportCsvDto.fromJS(resultData200);
5924
+ return result200;
5925
+ });
5926
+ }
5927
+ else if (status !== 200 && status !== 204) {
5928
+ return response.text().then((_responseText) => {
5929
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
5930
+ });
5931
+ }
5932
+ return Promise.resolve(null);
5933
+ }
5894
5934
  }
5895
5935
  export class KpiAdminClient extends AuthorizedApiBase {
5896
5936
  constructor(configuration, baseUrl, http) {
@@ -25340,6 +25380,7 @@ export class MeasuringToolDetailDto {
25340
25380
  this.lastLocation = _data["lastLocation"];
25341
25381
  this.lastLocationDate = _data["lastLocationDate"] ? new Date(_data["lastLocationDate"].toString()) : undefined;
25342
25382
  this.calibrationStatus = _data["calibrationStatus"];
25383
+ this.nonCalibrationTool = _data["nonCalibrationTool"];
25343
25384
  }
25344
25385
  }
25345
25386
  static fromJS(data) {
@@ -25369,6 +25410,7 @@ export class MeasuringToolDetailDto {
25369
25410
  data["lastLocation"] = this.lastLocation;
25370
25411
  data["lastLocationDate"] = this.lastLocationDate ? this.lastLocationDate.toISOString() : undefined;
25371
25412
  data["calibrationStatus"] = this.calibrationStatus;
25413
+ data["nonCalibrationTool"] = this.nonCalibrationTool;
25372
25414
  return data;
25373
25415
  }
25374
25416
  }
@@ -25570,6 +25612,7 @@ export class UpdateMeasuringToolRequest {
25570
25612
  this.serialNumber = _data["serialNumber"];
25571
25613
  this.defaultLocation = _data["defaultLocation"];
25572
25614
  this.precision = _data["precision"];
25615
+ this.nonCalibrationTool = _data["nonCalibrationTool"];
25573
25616
  }
25574
25617
  }
25575
25618
  static fromJS(data) {
@@ -25591,6 +25634,7 @@ export class UpdateMeasuringToolRequest {
25591
25634
  data["serialNumber"] = this.serialNumber;
25592
25635
  data["defaultLocation"] = this.defaultLocation;
25593
25636
  data["precision"] = this.precision;
25637
+ data["nonCalibrationTool"] = this.nonCalibrationTool;
25594
25638
  return data;
25595
25639
  }
25596
25640
  }
@@ -26459,6 +26503,7 @@ export class DowntimeReasonDto {
26459
26503
  this.machineTypes.push(item);
26460
26504
  }
26461
26505
  this.reasonType = _data["reasonType"];
26506
+ this.description = _data["description"];
26462
26507
  }
26463
26508
  }
26464
26509
  static fromJS(data) {
@@ -26477,6 +26522,7 @@ export class DowntimeReasonDto {
26477
26522
  data["machineTypes"].push(item);
26478
26523
  }
26479
26524
  data["reasonType"] = this.reasonType;
26525
+ data["description"] = this.description;
26480
26526
  return data;
26481
26527
  }
26482
26528
  }
@@ -26501,6 +26547,7 @@ export class CreateDowntimeReason {
26501
26547
  this.machineTypes.push(item);
26502
26548
  }
26503
26549
  this.reasonType = _data["reasonType"];
26550
+ this.description = _data["description"];
26504
26551
  }
26505
26552
  }
26506
26553
  static fromJS(data) {
@@ -26518,6 +26565,7 @@ export class CreateDowntimeReason {
26518
26565
  data["machineTypes"].push(item);
26519
26566
  }
26520
26567
  data["reasonType"] = this.reasonType;
26568
+ data["description"] = this.description;
26521
26569
  return data;
26522
26570
  }
26523
26571
  }
@@ -26542,6 +26590,7 @@ export class UpdateDowntimeReasonRequest {
26542
26590
  this.machineTypes.push(item);
26543
26591
  }
26544
26592
  this.reasonType = _data["reasonType"];
26593
+ this.description = _data["description"];
26545
26594
  }
26546
26595
  }
26547
26596
  static fromJS(data) {
@@ -26559,6 +26608,7 @@ export class UpdateDowntimeReasonRequest {
26559
26608
  data["machineTypes"].push(item);
26560
26609
  }
26561
26610
  data["reasonType"] = this.reasonType;
26611
+ data["description"] = this.description;
26562
26612
  return data;
26563
26613
  }
26564
26614
  }
@@ -26896,6 +26946,36 @@ export class CreateDowntimeReasonsReportRequest {
26896
26946
  return data;
26897
26947
  }
26898
26948
  }
26949
+ export class DowntimeReasonsReportCsvDto {
26950
+ constructor(data) {
26951
+ if (data) {
26952
+ for (var property in data) {
26953
+ if (data.hasOwnProperty(property))
26954
+ this[property] = data[property];
26955
+ }
26956
+ }
26957
+ }
26958
+ init(_data) {
26959
+ if (_data) {
26960
+ this.downtimeCsv = _data["downtimeCsv"] ? DownloadDto.fromJS(_data["downtimeCsv"]) : undefined;
26961
+ this.eventsCsv = _data["eventsCsv"] ? DownloadDto.fromJS(_data["eventsCsv"]) : undefined;
26962
+ this.programsCsv = _data["programsCsv"] ? DownloadDto.fromJS(_data["programsCsv"]) : undefined;
26963
+ }
26964
+ }
26965
+ static fromJS(data) {
26966
+ data = typeof data === 'object' ? data : {};
26967
+ let result = new DowntimeReasonsReportCsvDto();
26968
+ result.init(data);
26969
+ return result;
26970
+ }
26971
+ toJSON(data) {
26972
+ data = typeof data === 'object' ? data : {};
26973
+ data["downtimeCsv"] = this.downtimeCsv ? this.downtimeCsv.toJSON() : undefined;
26974
+ data["eventsCsv"] = this.eventsCsv ? this.eventsCsv.toJSON() : undefined;
26975
+ data["programsCsv"] = this.programsCsv ? this.programsCsv.toJSON() : undefined;
26976
+ return data;
26977
+ }
26978
+ }
26899
26979
  export class MachineGroupCapacityDto {
26900
26980
  constructor(data) {
26901
26981
  if (data) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ignos/api-client",
3
- "version": "20250122.0.11003",
3
+ "version": "20250130.0.11040-alpha",
4
4
  "description": "IGNOS API Client",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -6074,6 +6074,8 @@ export interface IDowntimeReasonsClient {
6074
6074
  listTopDowntimeReasons(): Promise<TopDowntimeReasonsDto>;
6075
6075
 
6076
6076
  createReport(request: CreateDowntimeReasonsReportRequest | undefined): Promise<DowntimeReasonsReportDto>;
6077
+
6078
+ exportReportToCsv(request: CreateDowntimeReasonsReportRequest | undefined): Promise<DowntimeReasonsReportCsvDto>;
6077
6079
  }
6078
6080
 
6079
6081
  export class DowntimeReasonsClient extends AuthorizedApiBase implements IDowntimeReasonsClient {
@@ -6323,6 +6325,46 @@ export class DowntimeReasonsClient extends AuthorizedApiBase implements IDowntim
6323
6325
  }
6324
6326
  return Promise.resolve<DowntimeReasonsReportDto>(null as any);
6325
6327
  }
6328
+
6329
+ exportReportToCsv(request: CreateDowntimeReasonsReportRequest | undefined): Promise<DowntimeReasonsReportCsvDto> {
6330
+ let url_ = this.baseUrl + "/downtimereasons/exporttocsv";
6331
+ url_ = url_.replace(/[?&]$/, "");
6332
+
6333
+ const content_ = JSON.stringify(request);
6334
+
6335
+ let options_: RequestInit = {
6336
+ body: content_,
6337
+ method: "POST",
6338
+ headers: {
6339
+ "Content-Type": "application/json",
6340
+ "Accept": "application/json"
6341
+ }
6342
+ };
6343
+
6344
+ return this.transformOptions(options_).then(transformedOptions_ => {
6345
+ return this.http.fetch(url_, transformedOptions_);
6346
+ }).then((_response: Response) => {
6347
+ return this.processExportReportToCsv(_response);
6348
+ });
6349
+ }
6350
+
6351
+ protected processExportReportToCsv(response: Response): Promise<DowntimeReasonsReportCsvDto> {
6352
+ const status = response.status;
6353
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
6354
+ if (status === 200) {
6355
+ return response.text().then((_responseText) => {
6356
+ let result200: any = null;
6357
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
6358
+ result200 = DowntimeReasonsReportCsvDto.fromJS(resultData200);
6359
+ return result200;
6360
+ });
6361
+ } else if (status !== 200 && status !== 204) {
6362
+ return response.text().then((_responseText) => {
6363
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
6364
+ });
6365
+ }
6366
+ return Promise.resolve<DowntimeReasonsReportCsvDto>(null as any);
6367
+ }
6326
6368
  }
6327
6369
 
6328
6370
  export interface IKpiAdminClient {
@@ -28964,6 +29006,7 @@ export class MeasuringToolDetailDto implements IMeasuringToolDetailDto {
28964
29006
  lastLocation?: string | null;
28965
29007
  lastLocationDate?: Date | null;
28966
29008
  calibrationStatus!: CalibrationStatusDto;
29009
+ nonCalibrationTool!: boolean;
28967
29010
 
28968
29011
  constructor(data?: IMeasuringToolDetailDto) {
28969
29012
  if (data) {
@@ -28999,6 +29042,7 @@ export class MeasuringToolDetailDto implements IMeasuringToolDetailDto {
28999
29042
  this.lastLocation = _data["lastLocation"];
29000
29043
  this.lastLocationDate = _data["lastLocationDate"] ? new Date(_data["lastLocationDate"].toString()) : <any>undefined;
29001
29044
  this.calibrationStatus = _data["calibrationStatus"];
29045
+ this.nonCalibrationTool = _data["nonCalibrationTool"];
29002
29046
  }
29003
29047
  }
29004
29048
 
@@ -29030,6 +29074,7 @@ export class MeasuringToolDetailDto implements IMeasuringToolDetailDto {
29030
29074
  data["lastLocation"] = this.lastLocation;
29031
29075
  data["lastLocationDate"] = this.lastLocationDate ? this.lastLocationDate.toISOString() : <any>undefined;
29032
29076
  data["calibrationStatus"] = this.calibrationStatus;
29077
+ data["nonCalibrationTool"] = this.nonCalibrationTool;
29033
29078
  return data;
29034
29079
  }
29035
29080
  }
@@ -29054,6 +29099,7 @@ export interface IMeasuringToolDetailDto {
29054
29099
  lastLocation?: string | null;
29055
29100
  lastLocationDate?: Date | null;
29056
29101
  calibrationStatus: CalibrationStatusDto;
29102
+ nonCalibrationTool: boolean;
29057
29103
  }
29058
29104
 
29059
29105
  export class ManufacturerDto implements IManufacturerDto {
@@ -29340,6 +29386,7 @@ export class UpdateMeasuringToolRequest implements IUpdateMeasuringToolRequest {
29340
29386
  serialNumber?: string | null;
29341
29387
  defaultLocation?: string | null;
29342
29388
  precision?: string | null;
29389
+ nonCalibrationTool?: boolean | null;
29343
29390
 
29344
29391
  constructor(data?: IUpdateMeasuringToolRequest) {
29345
29392
  if (data) {
@@ -29363,6 +29410,7 @@ export class UpdateMeasuringToolRequest implements IUpdateMeasuringToolRequest {
29363
29410
  this.serialNumber = _data["serialNumber"];
29364
29411
  this.defaultLocation = _data["defaultLocation"];
29365
29412
  this.precision = _data["precision"];
29413
+ this.nonCalibrationTool = _data["nonCalibrationTool"];
29366
29414
  }
29367
29415
  }
29368
29416
 
@@ -29386,6 +29434,7 @@ export class UpdateMeasuringToolRequest implements IUpdateMeasuringToolRequest {
29386
29434
  data["serialNumber"] = this.serialNumber;
29387
29435
  data["defaultLocation"] = this.defaultLocation;
29388
29436
  data["precision"] = this.precision;
29437
+ data["nonCalibrationTool"] = this.nonCalibrationTool;
29389
29438
  return data;
29390
29439
  }
29391
29440
  }
@@ -29402,6 +29451,7 @@ export interface IUpdateMeasuringToolRequest {
29402
29451
  serialNumber?: string | null;
29403
29452
  defaultLocation?: string | null;
29404
29453
  precision?: string | null;
29454
+ nonCalibrationTool?: boolean | null;
29405
29455
  }
29406
29456
 
29407
29457
  export class MeasuringToolCalibrationDto implements IMeasuringToolCalibrationDto {
@@ -30658,6 +30708,7 @@ export class DowntimeReasonDto implements IDowntimeReasonDto {
30658
30708
  reason!: string;
30659
30709
  machineTypes!: string[];
30660
30710
  reasonType!: DowntimeReasonTypeDto;
30711
+ description?: string | null;
30661
30712
 
30662
30713
  constructor(data?: IDowntimeReasonDto) {
30663
30714
  if (data) {
@@ -30681,6 +30732,7 @@ export class DowntimeReasonDto implements IDowntimeReasonDto {
30681
30732
  this.machineTypes!.push(item);
30682
30733
  }
30683
30734
  this.reasonType = _data["reasonType"];
30735
+ this.description = _data["description"];
30684
30736
  }
30685
30737
  }
30686
30738
 
@@ -30701,6 +30753,7 @@ export class DowntimeReasonDto implements IDowntimeReasonDto {
30701
30753
  data["machineTypes"].push(item);
30702
30754
  }
30703
30755
  data["reasonType"] = this.reasonType;
30756
+ data["description"] = this.description;
30704
30757
  return data;
30705
30758
  }
30706
30759
  }
@@ -30710,12 +30763,14 @@ export interface IDowntimeReasonDto {
30710
30763
  reason: string;
30711
30764
  machineTypes: string[];
30712
30765
  reasonType: DowntimeReasonTypeDto;
30766
+ description?: string | null;
30713
30767
  }
30714
30768
 
30715
30769
  export class CreateDowntimeReason implements ICreateDowntimeReason {
30716
30770
  reason!: string;
30717
30771
  machineTypes!: string[];
30718
30772
  reasonType!: DowntimeReasonTypeDto;
30773
+ description?: string | null;
30719
30774
 
30720
30775
  constructor(data?: ICreateDowntimeReason) {
30721
30776
  if (data) {
@@ -30738,6 +30793,7 @@ export class CreateDowntimeReason implements ICreateDowntimeReason {
30738
30793
  this.machineTypes!.push(item);
30739
30794
  }
30740
30795
  this.reasonType = _data["reasonType"];
30796
+ this.description = _data["description"];
30741
30797
  }
30742
30798
  }
30743
30799
 
@@ -30757,6 +30813,7 @@ export class CreateDowntimeReason implements ICreateDowntimeReason {
30757
30813
  data["machineTypes"].push(item);
30758
30814
  }
30759
30815
  data["reasonType"] = this.reasonType;
30816
+ data["description"] = this.description;
30760
30817
  return data;
30761
30818
  }
30762
30819
  }
@@ -30765,12 +30822,14 @@ export interface ICreateDowntimeReason {
30765
30822
  reason: string;
30766
30823
  machineTypes: string[];
30767
30824
  reasonType: DowntimeReasonTypeDto;
30825
+ description?: string | null;
30768
30826
  }
30769
30827
 
30770
30828
  export class UpdateDowntimeReasonRequest implements IUpdateDowntimeReasonRequest {
30771
30829
  reason!: string;
30772
30830
  machineTypes!: string[];
30773
30831
  reasonType!: DowntimeReasonTypeDto;
30832
+ description?: string | null;
30774
30833
 
30775
30834
  constructor(data?: IUpdateDowntimeReasonRequest) {
30776
30835
  if (data) {
@@ -30793,6 +30852,7 @@ export class UpdateDowntimeReasonRequest implements IUpdateDowntimeReasonRequest
30793
30852
  this.machineTypes!.push(item);
30794
30853
  }
30795
30854
  this.reasonType = _data["reasonType"];
30855
+ this.description = _data["description"];
30796
30856
  }
30797
30857
  }
30798
30858
 
@@ -30812,6 +30872,7 @@ export class UpdateDowntimeReasonRequest implements IUpdateDowntimeReasonRequest
30812
30872
  data["machineTypes"].push(item);
30813
30873
  }
30814
30874
  data["reasonType"] = this.reasonType;
30875
+ data["description"] = this.description;
30815
30876
  return data;
30816
30877
  }
30817
30878
  }
@@ -30820,6 +30881,7 @@ export interface IUpdateDowntimeReasonRequest {
30820
30881
  reason: string;
30821
30882
  machineTypes: string[];
30822
30883
  reasonType: DowntimeReasonTypeDto;
30884
+ description?: string | null;
30823
30885
  }
30824
30886
 
30825
30887
  export class MachineTypeDto implements IMachineTypeDto {
@@ -31288,6 +31350,50 @@ export interface ICreateDowntimeReasonsReportRequest {
31288
31350
  endTime?: Date | null;
31289
31351
  }
31290
31352
 
31353
+ export class DowntimeReasonsReportCsvDto implements IDowntimeReasonsReportCsvDto {
31354
+ downtimeCsv?: DownloadDto | null;
31355
+ eventsCsv?: DownloadDto | null;
31356
+ programsCsv?: DownloadDto | null;
31357
+
31358
+ constructor(data?: IDowntimeReasonsReportCsvDto) {
31359
+ if (data) {
31360
+ for (var property in data) {
31361
+ if (data.hasOwnProperty(property))
31362
+ (<any>this)[property] = (<any>data)[property];
31363
+ }
31364
+ }
31365
+ }
31366
+
31367
+ init(_data?: any) {
31368
+ if (_data) {
31369
+ this.downtimeCsv = _data["downtimeCsv"] ? DownloadDto.fromJS(_data["downtimeCsv"]) : <any>undefined;
31370
+ this.eventsCsv = _data["eventsCsv"] ? DownloadDto.fromJS(_data["eventsCsv"]) : <any>undefined;
31371
+ this.programsCsv = _data["programsCsv"] ? DownloadDto.fromJS(_data["programsCsv"]) : <any>undefined;
31372
+ }
31373
+ }
31374
+
31375
+ static fromJS(data: any): DowntimeReasonsReportCsvDto {
31376
+ data = typeof data === 'object' ? data : {};
31377
+ let result = new DowntimeReasonsReportCsvDto();
31378
+ result.init(data);
31379
+ return result;
31380
+ }
31381
+
31382
+ toJSON(data?: any) {
31383
+ data = typeof data === 'object' ? data : {};
31384
+ data["downtimeCsv"] = this.downtimeCsv ? this.downtimeCsv.toJSON() : <any>undefined;
31385
+ data["eventsCsv"] = this.eventsCsv ? this.eventsCsv.toJSON() : <any>undefined;
31386
+ data["programsCsv"] = this.programsCsv ? this.programsCsv.toJSON() : <any>undefined;
31387
+ return data;
31388
+ }
31389
+ }
31390
+
31391
+ export interface IDowntimeReasonsReportCsvDto {
31392
+ downtimeCsv?: DownloadDto | null;
31393
+ eventsCsv?: DownloadDto | null;
31394
+ programsCsv?: DownloadDto | null;
31395
+ }
31396
+
31291
31397
  export class MachineGroupCapacityDto implements IMachineGroupCapacityDto {
31292
31398
  machineGroupName!: string;
31293
31399
  machine!: MachineCapacityDto[];