@ignos/api-client 20250121.0.10997 → 20250128.0.11039
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.
- package/lib/ignosportal-api.d.ts +27 -4
- package/lib/ignosportal-api.js +78 -2
- package/package.json +1 -1
- package/src/ignosportal-api.ts +104 -6
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -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[]>;
|
|
@@ -5309,6 +5312,7 @@ export declare class DowntimeReasonDto implements IDowntimeReasonDto {
|
|
|
5309
5312
|
reason: string;
|
|
5310
5313
|
machineTypes: string[];
|
|
5311
5314
|
reasonType: DowntimeReasonTypeDto;
|
|
5315
|
+
description?: string | null;
|
|
5312
5316
|
constructor(data?: IDowntimeReasonDto);
|
|
5313
5317
|
init(_data?: any): void;
|
|
5314
5318
|
static fromJS(data: any): DowntimeReasonDto;
|
|
@@ -5319,11 +5323,13 @@ export interface IDowntimeReasonDto {
|
|
|
5319
5323
|
reason: string;
|
|
5320
5324
|
machineTypes: string[];
|
|
5321
5325
|
reasonType: DowntimeReasonTypeDto;
|
|
5326
|
+
description?: string | null;
|
|
5322
5327
|
}
|
|
5323
5328
|
export declare class CreateDowntimeReason implements ICreateDowntimeReason {
|
|
5324
5329
|
reason: string;
|
|
5325
5330
|
machineTypes: string[];
|
|
5326
5331
|
reasonType: DowntimeReasonTypeDto;
|
|
5332
|
+
description?: string | null;
|
|
5327
5333
|
constructor(data?: ICreateDowntimeReason);
|
|
5328
5334
|
init(_data?: any): void;
|
|
5329
5335
|
static fromJS(data: any): CreateDowntimeReason;
|
|
@@ -5333,11 +5339,13 @@ export interface ICreateDowntimeReason {
|
|
|
5333
5339
|
reason: string;
|
|
5334
5340
|
machineTypes: string[];
|
|
5335
5341
|
reasonType: DowntimeReasonTypeDto;
|
|
5342
|
+
description?: string | null;
|
|
5336
5343
|
}
|
|
5337
5344
|
export declare class UpdateDowntimeReasonRequest implements IUpdateDowntimeReasonRequest {
|
|
5338
5345
|
reason: string;
|
|
5339
5346
|
machineTypes: string[];
|
|
5340
5347
|
reasonType: DowntimeReasonTypeDto;
|
|
5348
|
+
description?: string | null;
|
|
5341
5349
|
constructor(data?: IUpdateDowntimeReasonRequest);
|
|
5342
5350
|
init(_data?: any): void;
|
|
5343
5351
|
static fromJS(data: any): UpdateDowntimeReasonRequest;
|
|
@@ -5347,6 +5355,7 @@ export interface IUpdateDowntimeReasonRequest {
|
|
|
5347
5355
|
reason: string;
|
|
5348
5356
|
machineTypes: string[];
|
|
5349
5357
|
reasonType: DowntimeReasonTypeDto;
|
|
5358
|
+
description?: string | null;
|
|
5350
5359
|
}
|
|
5351
5360
|
export declare class MachineTypeDto implements IMachineTypeDto {
|
|
5352
5361
|
machineType: string;
|
|
@@ -5480,6 +5489,20 @@ export interface ICreateDowntimeReasonsReportRequest {
|
|
|
5480
5489
|
startTime?: Date | null;
|
|
5481
5490
|
endTime?: Date | null;
|
|
5482
5491
|
}
|
|
5492
|
+
export declare class DowntimeReasonsReportCsvDto implements IDowntimeReasonsReportCsvDto {
|
|
5493
|
+
downtimeCsv?: DownloadDto | null;
|
|
5494
|
+
eventsCsv?: DownloadDto | null;
|
|
5495
|
+
programsCsv?: DownloadDto | null;
|
|
5496
|
+
constructor(data?: IDowntimeReasonsReportCsvDto);
|
|
5497
|
+
init(_data?: any): void;
|
|
5498
|
+
static fromJS(data: any): DowntimeReasonsReportCsvDto;
|
|
5499
|
+
toJSON(data?: any): any;
|
|
5500
|
+
}
|
|
5501
|
+
export interface IDowntimeReasonsReportCsvDto {
|
|
5502
|
+
downtimeCsv?: DownloadDto | null;
|
|
5503
|
+
eventsCsv?: DownloadDto | null;
|
|
5504
|
+
programsCsv?: DownloadDto | null;
|
|
5505
|
+
}
|
|
5483
5506
|
export declare class MachineGroupCapacityDto implements IMachineGroupCapacityDto {
|
|
5484
5507
|
machineGroupName: string;
|
|
5485
5508
|
machine: MachineCapacityDto[];
|
|
@@ -5560,16 +5583,16 @@ export interface ICalenderCapacityDto {
|
|
|
5560
5583
|
}
|
|
5561
5584
|
export type CalenderDayCapacityDto = "WorkingDay" | "HalfDay" | "Holiday";
|
|
5562
5585
|
export declare class UpdateCalenderCapacity implements IUpdateCalenderCapacity {
|
|
5563
|
-
date
|
|
5564
|
-
dayCapacity
|
|
5586
|
+
date?: Date;
|
|
5587
|
+
dayCapacity?: CalenderDayCapacityDto;
|
|
5565
5588
|
constructor(data?: IUpdateCalenderCapacity);
|
|
5566
5589
|
init(_data?: any): void;
|
|
5567
5590
|
static fromJS(data: any): UpdateCalenderCapacity;
|
|
5568
5591
|
toJSON(data?: any): any;
|
|
5569
5592
|
}
|
|
5570
5593
|
export interface IUpdateCalenderCapacity {
|
|
5571
|
-
date
|
|
5572
|
-
dayCapacity
|
|
5594
|
+
date?: Date;
|
|
5595
|
+
dayCapacity?: CalenderDayCapacityDto;
|
|
5573
5596
|
}
|
|
5574
5597
|
export declare class MachineDto implements IMachineDto {
|
|
5575
5598
|
id: number;
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -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) {
|
|
@@ -26459,6 +26499,7 @@ export class DowntimeReasonDto {
|
|
|
26459
26499
|
this.machineTypes.push(item);
|
|
26460
26500
|
}
|
|
26461
26501
|
this.reasonType = _data["reasonType"];
|
|
26502
|
+
this.description = _data["description"];
|
|
26462
26503
|
}
|
|
26463
26504
|
}
|
|
26464
26505
|
static fromJS(data) {
|
|
@@ -26477,6 +26518,7 @@ export class DowntimeReasonDto {
|
|
|
26477
26518
|
data["machineTypes"].push(item);
|
|
26478
26519
|
}
|
|
26479
26520
|
data["reasonType"] = this.reasonType;
|
|
26521
|
+
data["description"] = this.description;
|
|
26480
26522
|
return data;
|
|
26481
26523
|
}
|
|
26482
26524
|
}
|
|
@@ -26501,6 +26543,7 @@ export class CreateDowntimeReason {
|
|
|
26501
26543
|
this.machineTypes.push(item);
|
|
26502
26544
|
}
|
|
26503
26545
|
this.reasonType = _data["reasonType"];
|
|
26546
|
+
this.description = _data["description"];
|
|
26504
26547
|
}
|
|
26505
26548
|
}
|
|
26506
26549
|
static fromJS(data) {
|
|
@@ -26518,6 +26561,7 @@ export class CreateDowntimeReason {
|
|
|
26518
26561
|
data["machineTypes"].push(item);
|
|
26519
26562
|
}
|
|
26520
26563
|
data["reasonType"] = this.reasonType;
|
|
26564
|
+
data["description"] = this.description;
|
|
26521
26565
|
return data;
|
|
26522
26566
|
}
|
|
26523
26567
|
}
|
|
@@ -26542,6 +26586,7 @@ export class UpdateDowntimeReasonRequest {
|
|
|
26542
26586
|
this.machineTypes.push(item);
|
|
26543
26587
|
}
|
|
26544
26588
|
this.reasonType = _data["reasonType"];
|
|
26589
|
+
this.description = _data["description"];
|
|
26545
26590
|
}
|
|
26546
26591
|
}
|
|
26547
26592
|
static fromJS(data) {
|
|
@@ -26559,6 +26604,7 @@ export class UpdateDowntimeReasonRequest {
|
|
|
26559
26604
|
data["machineTypes"].push(item);
|
|
26560
26605
|
}
|
|
26561
26606
|
data["reasonType"] = this.reasonType;
|
|
26607
|
+
data["description"] = this.description;
|
|
26562
26608
|
return data;
|
|
26563
26609
|
}
|
|
26564
26610
|
}
|
|
@@ -26896,6 +26942,36 @@ export class CreateDowntimeReasonsReportRequest {
|
|
|
26896
26942
|
return data;
|
|
26897
26943
|
}
|
|
26898
26944
|
}
|
|
26945
|
+
export class DowntimeReasonsReportCsvDto {
|
|
26946
|
+
constructor(data) {
|
|
26947
|
+
if (data) {
|
|
26948
|
+
for (var property in data) {
|
|
26949
|
+
if (data.hasOwnProperty(property))
|
|
26950
|
+
this[property] = data[property];
|
|
26951
|
+
}
|
|
26952
|
+
}
|
|
26953
|
+
}
|
|
26954
|
+
init(_data) {
|
|
26955
|
+
if (_data) {
|
|
26956
|
+
this.downtimeCsv = _data["downtimeCsv"] ? DownloadDto.fromJS(_data["downtimeCsv"]) : undefined;
|
|
26957
|
+
this.eventsCsv = _data["eventsCsv"] ? DownloadDto.fromJS(_data["eventsCsv"]) : undefined;
|
|
26958
|
+
this.programsCsv = _data["programsCsv"] ? DownloadDto.fromJS(_data["programsCsv"]) : undefined;
|
|
26959
|
+
}
|
|
26960
|
+
}
|
|
26961
|
+
static fromJS(data) {
|
|
26962
|
+
data = typeof data === 'object' ? data : {};
|
|
26963
|
+
let result = new DowntimeReasonsReportCsvDto();
|
|
26964
|
+
result.init(data);
|
|
26965
|
+
return result;
|
|
26966
|
+
}
|
|
26967
|
+
toJSON(data) {
|
|
26968
|
+
data = typeof data === 'object' ? data : {};
|
|
26969
|
+
data["downtimeCsv"] = this.downtimeCsv ? this.downtimeCsv.toJSON() : undefined;
|
|
26970
|
+
data["eventsCsv"] = this.eventsCsv ? this.eventsCsv.toJSON() : undefined;
|
|
26971
|
+
data["programsCsv"] = this.programsCsv ? this.programsCsv.toJSON() : undefined;
|
|
26972
|
+
return data;
|
|
26973
|
+
}
|
|
26974
|
+
}
|
|
26899
26975
|
export class MachineGroupCapacityDto {
|
|
26900
26976
|
constructor(data) {
|
|
26901
26977
|
if (data) {
|
|
@@ -27079,7 +27155,7 @@ export class CalenderCapacityDto {
|
|
|
27079
27155
|
}
|
|
27080
27156
|
toJSON(data) {
|
|
27081
27157
|
data = typeof data === 'object' ? data : {};
|
|
27082
|
-
data["date"] = this.date ?
|
|
27158
|
+
data["date"] = this.date ? this.date.toISOString() : undefined;
|
|
27083
27159
|
data["dayCapacity"] = this.dayCapacity;
|
|
27084
27160
|
return data;
|
|
27085
27161
|
}
|
|
@@ -27107,7 +27183,7 @@ export class UpdateCalenderCapacity {
|
|
|
27107
27183
|
}
|
|
27108
27184
|
toJSON(data) {
|
|
27109
27185
|
data = typeof data === 'object' ? data : {};
|
|
27110
|
-
data["date"] = this.date ?
|
|
27186
|
+
data["date"] = this.date ? this.date.toISOString() : undefined;
|
|
27111
27187
|
data["dayCapacity"] = this.dayCapacity;
|
|
27112
27188
|
return data;
|
|
27113
27189
|
}
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -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 {
|
|
@@ -30658,6 +30700,7 @@ export class DowntimeReasonDto implements IDowntimeReasonDto {
|
|
|
30658
30700
|
reason!: string;
|
|
30659
30701
|
machineTypes!: string[];
|
|
30660
30702
|
reasonType!: DowntimeReasonTypeDto;
|
|
30703
|
+
description?: string | null;
|
|
30661
30704
|
|
|
30662
30705
|
constructor(data?: IDowntimeReasonDto) {
|
|
30663
30706
|
if (data) {
|
|
@@ -30681,6 +30724,7 @@ export class DowntimeReasonDto implements IDowntimeReasonDto {
|
|
|
30681
30724
|
this.machineTypes!.push(item);
|
|
30682
30725
|
}
|
|
30683
30726
|
this.reasonType = _data["reasonType"];
|
|
30727
|
+
this.description = _data["description"];
|
|
30684
30728
|
}
|
|
30685
30729
|
}
|
|
30686
30730
|
|
|
@@ -30701,6 +30745,7 @@ export class DowntimeReasonDto implements IDowntimeReasonDto {
|
|
|
30701
30745
|
data["machineTypes"].push(item);
|
|
30702
30746
|
}
|
|
30703
30747
|
data["reasonType"] = this.reasonType;
|
|
30748
|
+
data["description"] = this.description;
|
|
30704
30749
|
return data;
|
|
30705
30750
|
}
|
|
30706
30751
|
}
|
|
@@ -30710,12 +30755,14 @@ export interface IDowntimeReasonDto {
|
|
|
30710
30755
|
reason: string;
|
|
30711
30756
|
machineTypes: string[];
|
|
30712
30757
|
reasonType: DowntimeReasonTypeDto;
|
|
30758
|
+
description?: string | null;
|
|
30713
30759
|
}
|
|
30714
30760
|
|
|
30715
30761
|
export class CreateDowntimeReason implements ICreateDowntimeReason {
|
|
30716
30762
|
reason!: string;
|
|
30717
30763
|
machineTypes!: string[];
|
|
30718
30764
|
reasonType!: DowntimeReasonTypeDto;
|
|
30765
|
+
description?: string | null;
|
|
30719
30766
|
|
|
30720
30767
|
constructor(data?: ICreateDowntimeReason) {
|
|
30721
30768
|
if (data) {
|
|
@@ -30738,6 +30785,7 @@ export class CreateDowntimeReason implements ICreateDowntimeReason {
|
|
|
30738
30785
|
this.machineTypes!.push(item);
|
|
30739
30786
|
}
|
|
30740
30787
|
this.reasonType = _data["reasonType"];
|
|
30788
|
+
this.description = _data["description"];
|
|
30741
30789
|
}
|
|
30742
30790
|
}
|
|
30743
30791
|
|
|
@@ -30757,6 +30805,7 @@ export class CreateDowntimeReason implements ICreateDowntimeReason {
|
|
|
30757
30805
|
data["machineTypes"].push(item);
|
|
30758
30806
|
}
|
|
30759
30807
|
data["reasonType"] = this.reasonType;
|
|
30808
|
+
data["description"] = this.description;
|
|
30760
30809
|
return data;
|
|
30761
30810
|
}
|
|
30762
30811
|
}
|
|
@@ -30765,12 +30814,14 @@ export interface ICreateDowntimeReason {
|
|
|
30765
30814
|
reason: string;
|
|
30766
30815
|
machineTypes: string[];
|
|
30767
30816
|
reasonType: DowntimeReasonTypeDto;
|
|
30817
|
+
description?: string | null;
|
|
30768
30818
|
}
|
|
30769
30819
|
|
|
30770
30820
|
export class UpdateDowntimeReasonRequest implements IUpdateDowntimeReasonRequest {
|
|
30771
30821
|
reason!: string;
|
|
30772
30822
|
machineTypes!: string[];
|
|
30773
30823
|
reasonType!: DowntimeReasonTypeDto;
|
|
30824
|
+
description?: string | null;
|
|
30774
30825
|
|
|
30775
30826
|
constructor(data?: IUpdateDowntimeReasonRequest) {
|
|
30776
30827
|
if (data) {
|
|
@@ -30793,6 +30844,7 @@ export class UpdateDowntimeReasonRequest implements IUpdateDowntimeReasonRequest
|
|
|
30793
30844
|
this.machineTypes!.push(item);
|
|
30794
30845
|
}
|
|
30795
30846
|
this.reasonType = _data["reasonType"];
|
|
30847
|
+
this.description = _data["description"];
|
|
30796
30848
|
}
|
|
30797
30849
|
}
|
|
30798
30850
|
|
|
@@ -30812,6 +30864,7 @@ export class UpdateDowntimeReasonRequest implements IUpdateDowntimeReasonRequest
|
|
|
30812
30864
|
data["machineTypes"].push(item);
|
|
30813
30865
|
}
|
|
30814
30866
|
data["reasonType"] = this.reasonType;
|
|
30867
|
+
data["description"] = this.description;
|
|
30815
30868
|
return data;
|
|
30816
30869
|
}
|
|
30817
30870
|
}
|
|
@@ -30820,6 +30873,7 @@ export interface IUpdateDowntimeReasonRequest {
|
|
|
30820
30873
|
reason: string;
|
|
30821
30874
|
machineTypes: string[];
|
|
30822
30875
|
reasonType: DowntimeReasonTypeDto;
|
|
30876
|
+
description?: string | null;
|
|
30823
30877
|
}
|
|
30824
30878
|
|
|
30825
30879
|
export class MachineTypeDto implements IMachineTypeDto {
|
|
@@ -31288,6 +31342,50 @@ export interface ICreateDowntimeReasonsReportRequest {
|
|
|
31288
31342
|
endTime?: Date | null;
|
|
31289
31343
|
}
|
|
31290
31344
|
|
|
31345
|
+
export class DowntimeReasonsReportCsvDto implements IDowntimeReasonsReportCsvDto {
|
|
31346
|
+
downtimeCsv?: DownloadDto | null;
|
|
31347
|
+
eventsCsv?: DownloadDto | null;
|
|
31348
|
+
programsCsv?: DownloadDto | null;
|
|
31349
|
+
|
|
31350
|
+
constructor(data?: IDowntimeReasonsReportCsvDto) {
|
|
31351
|
+
if (data) {
|
|
31352
|
+
for (var property in data) {
|
|
31353
|
+
if (data.hasOwnProperty(property))
|
|
31354
|
+
(<any>this)[property] = (<any>data)[property];
|
|
31355
|
+
}
|
|
31356
|
+
}
|
|
31357
|
+
}
|
|
31358
|
+
|
|
31359
|
+
init(_data?: any) {
|
|
31360
|
+
if (_data) {
|
|
31361
|
+
this.downtimeCsv = _data["downtimeCsv"] ? DownloadDto.fromJS(_data["downtimeCsv"]) : <any>undefined;
|
|
31362
|
+
this.eventsCsv = _data["eventsCsv"] ? DownloadDto.fromJS(_data["eventsCsv"]) : <any>undefined;
|
|
31363
|
+
this.programsCsv = _data["programsCsv"] ? DownloadDto.fromJS(_data["programsCsv"]) : <any>undefined;
|
|
31364
|
+
}
|
|
31365
|
+
}
|
|
31366
|
+
|
|
31367
|
+
static fromJS(data: any): DowntimeReasonsReportCsvDto {
|
|
31368
|
+
data = typeof data === 'object' ? data : {};
|
|
31369
|
+
let result = new DowntimeReasonsReportCsvDto();
|
|
31370
|
+
result.init(data);
|
|
31371
|
+
return result;
|
|
31372
|
+
}
|
|
31373
|
+
|
|
31374
|
+
toJSON(data?: any) {
|
|
31375
|
+
data = typeof data === 'object' ? data : {};
|
|
31376
|
+
data["downtimeCsv"] = this.downtimeCsv ? this.downtimeCsv.toJSON() : <any>undefined;
|
|
31377
|
+
data["eventsCsv"] = this.eventsCsv ? this.eventsCsv.toJSON() : <any>undefined;
|
|
31378
|
+
data["programsCsv"] = this.programsCsv ? this.programsCsv.toJSON() : <any>undefined;
|
|
31379
|
+
return data;
|
|
31380
|
+
}
|
|
31381
|
+
}
|
|
31382
|
+
|
|
31383
|
+
export interface IDowntimeReasonsReportCsvDto {
|
|
31384
|
+
downtimeCsv?: DownloadDto | null;
|
|
31385
|
+
eventsCsv?: DownloadDto | null;
|
|
31386
|
+
programsCsv?: DownloadDto | null;
|
|
31387
|
+
}
|
|
31388
|
+
|
|
31291
31389
|
export class MachineGroupCapacityDto implements IMachineGroupCapacityDto {
|
|
31292
31390
|
machineGroupName!: string;
|
|
31293
31391
|
machine!: MachineCapacityDto[];
|
|
@@ -31543,7 +31641,7 @@ export class CalenderCapacityDto implements ICalenderCapacityDto {
|
|
|
31543
31641
|
|
|
31544
31642
|
toJSON(data?: any) {
|
|
31545
31643
|
data = typeof data === 'object' ? data : {};
|
|
31546
|
-
data["date"] = this.date ?
|
|
31644
|
+
data["date"] = this.date ? this.date.toISOString() : <any>undefined;
|
|
31547
31645
|
data["dayCapacity"] = this.dayCapacity;
|
|
31548
31646
|
return data;
|
|
31549
31647
|
}
|
|
@@ -31557,8 +31655,8 @@ export interface ICalenderCapacityDto {
|
|
|
31557
31655
|
export type CalenderDayCapacityDto = "WorkingDay" | "HalfDay" | "Holiday";
|
|
31558
31656
|
|
|
31559
31657
|
export class UpdateCalenderCapacity implements IUpdateCalenderCapacity {
|
|
31560
|
-
date
|
|
31561
|
-
dayCapacity
|
|
31658
|
+
date?: Date;
|
|
31659
|
+
dayCapacity?: CalenderDayCapacityDto;
|
|
31562
31660
|
|
|
31563
31661
|
constructor(data?: IUpdateCalenderCapacity) {
|
|
31564
31662
|
if (data) {
|
|
@@ -31585,15 +31683,15 @@ export class UpdateCalenderCapacity implements IUpdateCalenderCapacity {
|
|
|
31585
31683
|
|
|
31586
31684
|
toJSON(data?: any) {
|
|
31587
31685
|
data = typeof data === 'object' ? data : {};
|
|
31588
|
-
data["date"] = this.date ?
|
|
31686
|
+
data["date"] = this.date ? this.date.toISOString() : <any>undefined;
|
|
31589
31687
|
data["dayCapacity"] = this.dayCapacity;
|
|
31590
31688
|
return data;
|
|
31591
31689
|
}
|
|
31592
31690
|
}
|
|
31593
31691
|
|
|
31594
31692
|
export interface IUpdateCalenderCapacity {
|
|
31595
|
-
date
|
|
31596
|
-
dayCapacity
|
|
31693
|
+
date?: Date;
|
|
31694
|
+
dayCapacity?: CalenderDayCapacityDto;
|
|
31597
31695
|
}
|
|
31598
31696
|
|
|
31599
31697
|
export class MachineDto implements IMachineDto {
|