@ignos/api-client 20250704.0.12089-alpha → 20250707.0.12102
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/ignosportal-api.d.ts +94 -38
- package/lib/ignosportal-api.js +220 -97
- package/package.json +1 -1
- package/src/ignosportal-api.ts +299 -128
package/src/ignosportal-api.ts
CHANGED
|
@@ -716,8 +716,6 @@ export interface IMachineUtilizationClient {
|
|
|
716
716
|
listPowerOnUtilizationDatapoints(id: number | null | undefined, externalId: string | null | undefined, nDays: number | null | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<PowerOnUtilizationList>;
|
|
717
717
|
|
|
718
718
|
getFactoryUtilization(): Promise<PowerOnUtilizationDto>;
|
|
719
|
-
|
|
720
|
-
getProgramTimeline(id: string, startTime: Date | undefined, endTime: Date | undefined): Promise<ProgramDatapoint[]>;
|
|
721
719
|
}
|
|
722
720
|
|
|
723
721
|
export class MachineUtilizationClient extends AuthorizedApiBase implements IMachineUtilizationClient {
|
|
@@ -1093,57 +1091,6 @@ export class MachineUtilizationClient extends AuthorizedApiBase implements IMach
|
|
|
1093
1091
|
}
|
|
1094
1092
|
return Promise.resolve<PowerOnUtilizationDto>(null as any);
|
|
1095
1093
|
}
|
|
1096
|
-
|
|
1097
|
-
getProgramTimeline(id: string, startTime: Date | undefined, endTime: Date | undefined): Promise<ProgramDatapoint[]> {
|
|
1098
|
-
let url_ = this.baseUrl + "/machineutilization/{id}/program-timeline?";
|
|
1099
|
-
if (id === undefined || id === null)
|
|
1100
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
1101
|
-
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
1102
|
-
if (startTime === null)
|
|
1103
|
-
throw new Error("The parameter 'startTime' cannot be null.");
|
|
1104
|
-
else if (startTime !== undefined)
|
|
1105
|
-
url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
|
|
1106
|
-
if (endTime === null)
|
|
1107
|
-
throw new Error("The parameter 'endTime' cannot be null.");
|
|
1108
|
-
else if (endTime !== undefined)
|
|
1109
|
-
url_ += "endTime=" + encodeURIComponent(endTime ? "" + endTime.toISOString() : "") + "&";
|
|
1110
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
1111
|
-
|
|
1112
|
-
let options_: RequestInit = {
|
|
1113
|
-
method: "GET",
|
|
1114
|
-
headers: {
|
|
1115
|
-
"Accept": "application/json"
|
|
1116
|
-
}
|
|
1117
|
-
};
|
|
1118
|
-
|
|
1119
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
1120
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
1121
|
-
}).then((_response: Response) => {
|
|
1122
|
-
return this.processGetProgramTimeline(_response);
|
|
1123
|
-
});
|
|
1124
|
-
}
|
|
1125
|
-
|
|
1126
|
-
protected processGetProgramTimeline(response: Response): Promise<ProgramDatapoint[]> {
|
|
1127
|
-
const status = response.status;
|
|
1128
|
-
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
1129
|
-
if (status === 200) {
|
|
1130
|
-
return response.text().then((_responseText) => {
|
|
1131
|
-
let result200: any = null;
|
|
1132
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
1133
|
-
if (Array.isArray(resultData200)) {
|
|
1134
|
-
result200 = [] as any;
|
|
1135
|
-
for (let item of resultData200)
|
|
1136
|
-
result200!.push(ProgramDatapoint.fromJS(item));
|
|
1137
|
-
}
|
|
1138
|
-
return result200;
|
|
1139
|
-
});
|
|
1140
|
-
} else if (status !== 200 && status !== 204) {
|
|
1141
|
-
return response.text().then((_responseText) => {
|
|
1142
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
1143
|
-
});
|
|
1144
|
-
}
|
|
1145
|
-
return Promise.resolve<ProgramDatapoint[]>(null as any);
|
|
1146
|
-
}
|
|
1147
1094
|
}
|
|
1148
1095
|
|
|
1149
1096
|
export interface IMeClient {
|
|
@@ -2444,7 +2391,7 @@ export interface IUtilizationClient {
|
|
|
2444
2391
|
|
|
2445
2392
|
getCrossCompanyUtilization(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<CrossCompanyUtilizationDto>;
|
|
2446
2393
|
|
|
2447
|
-
getUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined,
|
|
2394
|
+
getUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined, assetExternalId: string | null | undefined): Promise<MachineUtilizationDatapointListDto>;
|
|
2448
2395
|
|
|
2449
2396
|
getCompanyUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<CompanyUtilizationDatapointListDto>;
|
|
2450
2397
|
|
|
@@ -2550,7 +2497,7 @@ export class UtilizationClient extends AuthorizedApiBase implements IUtilization
|
|
|
2550
2497
|
return Promise.resolve<CrossCompanyUtilizationDto>(null as any);
|
|
2551
2498
|
}
|
|
2552
2499
|
|
|
2553
|
-
getUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined,
|
|
2500
|
+
getUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined, assetExternalId: string | null | undefined): Promise<MachineUtilizationDatapointListDto> {
|
|
2554
2501
|
let url_ = this.baseUrl + "/utilization/datapoints?";
|
|
2555
2502
|
if (utilizationType === null)
|
|
2556
2503
|
throw new Error("The parameter 'utilizationType' cannot be null.");
|
|
@@ -2560,8 +2507,6 @@ export class UtilizationClient extends AuthorizedApiBase implements IUtilization
|
|
|
2560
2507
|
url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
|
|
2561
2508
|
if (endTime !== undefined && endTime !== null)
|
|
2562
2509
|
url_ += "endTime=" + encodeURIComponent(endTime ? "" + endTime.toISOString() : "") + "&";
|
|
2563
|
-
if (assetId !== undefined && assetId !== null)
|
|
2564
|
-
url_ += "assetId=" + encodeURIComponent("" + assetId) + "&";
|
|
2565
2510
|
if (assetExternalId !== undefined && assetExternalId !== null)
|
|
2566
2511
|
url_ += "assetExternalId=" + encodeURIComponent("" + assetExternalId) + "&";
|
|
2567
2512
|
url_ = url_.replace(/[?&]$/, "");
|
|
@@ -6426,9 +6371,13 @@ export interface IKpiAdminClient {
|
|
|
6426
6371
|
|
|
6427
6372
|
updateMachineCapacityAdmin(request: UpdateMachinesCapacity): Promise<MachineCapacityDto>;
|
|
6428
6373
|
|
|
6429
|
-
|
|
6374
|
+
getCalendarCapacityAdmin(startDate: Date | undefined, endDate: Date | undefined): Promise<CalendarDayDto[]>;
|
|
6375
|
+
|
|
6376
|
+
updateCalendarCapacityAdmin(request: UpdateCalendarCapacity): Promise<CalendarCapacityDto>;
|
|
6430
6377
|
|
|
6431
|
-
|
|
6378
|
+
getCalendarSettings(): Promise<CalendarSettingsDto>;
|
|
6379
|
+
|
|
6380
|
+
updateCalendarSettings(cmd: UpdateCalendarSettingsCommand): Promise<CalendarSettingsDto>;
|
|
6432
6381
|
}
|
|
6433
6382
|
|
|
6434
6383
|
export class KpiAdminClient extends AuthorizedApiBase implements IKpiAdminClient {
|
|
@@ -6522,8 +6471,8 @@ export class KpiAdminClient extends AuthorizedApiBase implements IKpiAdminClient
|
|
|
6522
6471
|
return Promise.resolve<MachineCapacityDto>(null as any);
|
|
6523
6472
|
}
|
|
6524
6473
|
|
|
6525
|
-
|
|
6526
|
-
let url_ = this.baseUrl + "/kpiadmin/
|
|
6474
|
+
getCalendarCapacityAdmin(startDate: Date | undefined, endDate: Date | undefined): Promise<CalendarDayDto[]> {
|
|
6475
|
+
let url_ = this.baseUrl + "/kpiadmin/calendar?";
|
|
6527
6476
|
if (startDate === null)
|
|
6528
6477
|
throw new Error("The parameter 'startDate' cannot be null.");
|
|
6529
6478
|
else if (startDate !== undefined)
|
|
@@ -6544,11 +6493,11 @@ export class KpiAdminClient extends AuthorizedApiBase implements IKpiAdminClient
|
|
|
6544
6493
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
6545
6494
|
return this.http.fetch(url_, transformedOptions_);
|
|
6546
6495
|
}).then((_response: Response) => {
|
|
6547
|
-
return this.
|
|
6496
|
+
return this.processGetCalendarCapacityAdmin(_response);
|
|
6548
6497
|
});
|
|
6549
6498
|
}
|
|
6550
6499
|
|
|
6551
|
-
protected
|
|
6500
|
+
protected processGetCalendarCapacityAdmin(response: Response): Promise<CalendarDayDto[]> {
|
|
6552
6501
|
const status = response.status;
|
|
6553
6502
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
6554
6503
|
if (status === 200) {
|
|
@@ -6558,7 +6507,7 @@ export class KpiAdminClient extends AuthorizedApiBase implements IKpiAdminClient
|
|
|
6558
6507
|
if (Array.isArray(resultData200)) {
|
|
6559
6508
|
result200 = [] as any;
|
|
6560
6509
|
for (let item of resultData200)
|
|
6561
|
-
result200!.push(
|
|
6510
|
+
result200!.push(CalendarDayDto.fromJS(item));
|
|
6562
6511
|
}
|
|
6563
6512
|
return result200;
|
|
6564
6513
|
});
|
|
@@ -6567,11 +6516,11 @@ export class KpiAdminClient extends AuthorizedApiBase implements IKpiAdminClient
|
|
|
6567
6516
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
6568
6517
|
});
|
|
6569
6518
|
}
|
|
6570
|
-
return Promise.resolve<
|
|
6519
|
+
return Promise.resolve<CalendarDayDto[]>(null as any);
|
|
6571
6520
|
}
|
|
6572
6521
|
|
|
6573
|
-
|
|
6574
|
-
let url_ = this.baseUrl + "/kpiadmin/
|
|
6522
|
+
updateCalendarCapacityAdmin(request: UpdateCalendarCapacity): Promise<CalendarCapacityDto> {
|
|
6523
|
+
let url_ = this.baseUrl + "/kpiadmin/calendar";
|
|
6575
6524
|
url_ = url_.replace(/[?&]$/, "");
|
|
6576
6525
|
|
|
6577
6526
|
const content_ = JSON.stringify(request);
|
|
@@ -6588,18 +6537,94 @@ export class KpiAdminClient extends AuthorizedApiBase implements IKpiAdminClient
|
|
|
6588
6537
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
6589
6538
|
return this.http.fetch(url_, transformedOptions_);
|
|
6590
6539
|
}).then((_response: Response) => {
|
|
6591
|
-
return this.
|
|
6540
|
+
return this.processUpdateCalendarCapacityAdmin(_response);
|
|
6541
|
+
});
|
|
6542
|
+
}
|
|
6543
|
+
|
|
6544
|
+
protected processUpdateCalendarCapacityAdmin(response: Response): Promise<CalendarCapacityDto> {
|
|
6545
|
+
const status = response.status;
|
|
6546
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
6547
|
+
if (status === 200) {
|
|
6548
|
+
return response.text().then((_responseText) => {
|
|
6549
|
+
let result200: any = null;
|
|
6550
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
6551
|
+
result200 = CalendarCapacityDto.fromJS(resultData200);
|
|
6552
|
+
return result200;
|
|
6553
|
+
});
|
|
6554
|
+
} else if (status !== 200 && status !== 204) {
|
|
6555
|
+
return response.text().then((_responseText) => {
|
|
6556
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
6557
|
+
});
|
|
6558
|
+
}
|
|
6559
|
+
return Promise.resolve<CalendarCapacityDto>(null as any);
|
|
6560
|
+
}
|
|
6561
|
+
|
|
6562
|
+
getCalendarSettings(): Promise<CalendarSettingsDto> {
|
|
6563
|
+
let url_ = this.baseUrl + "/kpiadmin/calendar/settings";
|
|
6564
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
6565
|
+
|
|
6566
|
+
let options_: RequestInit = {
|
|
6567
|
+
method: "GET",
|
|
6568
|
+
headers: {
|
|
6569
|
+
"Accept": "application/json"
|
|
6570
|
+
}
|
|
6571
|
+
};
|
|
6572
|
+
|
|
6573
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
6574
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
6575
|
+
}).then((_response: Response) => {
|
|
6576
|
+
return this.processGetCalendarSettings(_response);
|
|
6577
|
+
});
|
|
6578
|
+
}
|
|
6579
|
+
|
|
6580
|
+
protected processGetCalendarSettings(response: Response): Promise<CalendarSettingsDto> {
|
|
6581
|
+
const status = response.status;
|
|
6582
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
6583
|
+
if (status === 200) {
|
|
6584
|
+
return response.text().then((_responseText) => {
|
|
6585
|
+
let result200: any = null;
|
|
6586
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
6587
|
+
result200 = CalendarSettingsDto.fromJS(resultData200);
|
|
6588
|
+
return result200;
|
|
6589
|
+
});
|
|
6590
|
+
} else if (status !== 200 && status !== 204) {
|
|
6591
|
+
return response.text().then((_responseText) => {
|
|
6592
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
6593
|
+
});
|
|
6594
|
+
}
|
|
6595
|
+
return Promise.resolve<CalendarSettingsDto>(null as any);
|
|
6596
|
+
}
|
|
6597
|
+
|
|
6598
|
+
updateCalendarSettings(cmd: UpdateCalendarSettingsCommand): Promise<CalendarSettingsDto> {
|
|
6599
|
+
let url_ = this.baseUrl + "/kpiadmin/calendar/settings";
|
|
6600
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
6601
|
+
|
|
6602
|
+
const content_ = JSON.stringify(cmd);
|
|
6603
|
+
|
|
6604
|
+
let options_: RequestInit = {
|
|
6605
|
+
body: content_,
|
|
6606
|
+
method: "PUT",
|
|
6607
|
+
headers: {
|
|
6608
|
+
"Content-Type": "application/json",
|
|
6609
|
+
"Accept": "application/json"
|
|
6610
|
+
}
|
|
6611
|
+
};
|
|
6612
|
+
|
|
6613
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
6614
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
6615
|
+
}).then((_response: Response) => {
|
|
6616
|
+
return this.processUpdateCalendarSettings(_response);
|
|
6592
6617
|
});
|
|
6593
6618
|
}
|
|
6594
6619
|
|
|
6595
|
-
protected
|
|
6620
|
+
protected processUpdateCalendarSettings(response: Response): Promise<CalendarSettingsDto> {
|
|
6596
6621
|
const status = response.status;
|
|
6597
6622
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
6598
6623
|
if (status === 200) {
|
|
6599
6624
|
return response.text().then((_responseText) => {
|
|
6600
6625
|
let result200: any = null;
|
|
6601
6626
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
6602
|
-
result200 =
|
|
6627
|
+
result200 = CalendarSettingsDto.fromJS(resultData200);
|
|
6603
6628
|
return result200;
|
|
6604
6629
|
});
|
|
6605
6630
|
} else if (status !== 200 && status !== 204) {
|
|
@@ -6607,7 +6632,7 @@ export class KpiAdminClient extends AuthorizedApiBase implements IKpiAdminClient
|
|
|
6607
6632
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
6608
6633
|
});
|
|
6609
6634
|
}
|
|
6610
|
-
return Promise.resolve<
|
|
6635
|
+
return Promise.resolve<CalendarSettingsDto>(null as any);
|
|
6611
6636
|
}
|
|
6612
6637
|
}
|
|
6613
6638
|
|
|
@@ -25303,46 +25328,6 @@ export interface INumericNullableValueWithTimestamp {
|
|
|
25303
25328
|
value?: number | null;
|
|
25304
25329
|
}
|
|
25305
25330
|
|
|
25306
|
-
export class ProgramDatapoint implements IProgramDatapoint {
|
|
25307
|
-
timestamp?: number;
|
|
25308
|
-
programValue?: string;
|
|
25309
|
-
|
|
25310
|
-
constructor(data?: IProgramDatapoint) {
|
|
25311
|
-
if (data) {
|
|
25312
|
-
for (var property in data) {
|
|
25313
|
-
if (data.hasOwnProperty(property))
|
|
25314
|
-
(<any>this)[property] = (<any>data)[property];
|
|
25315
|
-
}
|
|
25316
|
-
}
|
|
25317
|
-
}
|
|
25318
|
-
|
|
25319
|
-
init(_data?: any) {
|
|
25320
|
-
if (_data) {
|
|
25321
|
-
this.timestamp = _data["timestamp"];
|
|
25322
|
-
this.programValue = _data["programValue"];
|
|
25323
|
-
}
|
|
25324
|
-
}
|
|
25325
|
-
|
|
25326
|
-
static fromJS(data: any): ProgramDatapoint {
|
|
25327
|
-
data = typeof data === 'object' ? data : {};
|
|
25328
|
-
let result = new ProgramDatapoint();
|
|
25329
|
-
result.init(data);
|
|
25330
|
-
return result;
|
|
25331
|
-
}
|
|
25332
|
-
|
|
25333
|
-
toJSON(data?: any) {
|
|
25334
|
-
data = typeof data === 'object' ? data : {};
|
|
25335
|
-
data["timestamp"] = this.timestamp;
|
|
25336
|
-
data["programValue"] = this.programValue;
|
|
25337
|
-
return data;
|
|
25338
|
-
}
|
|
25339
|
-
}
|
|
25340
|
-
|
|
25341
|
-
export interface IProgramDatapoint {
|
|
25342
|
-
timestamp?: number;
|
|
25343
|
-
programValue?: string;
|
|
25344
|
-
}
|
|
25345
|
-
|
|
25346
25331
|
export class UserAppDto implements IUserAppDto {
|
|
25347
25332
|
key!: string;
|
|
25348
25333
|
name!: string;
|
|
@@ -27316,12 +27301,14 @@ export interface IPulseSettingsDto {
|
|
|
27316
27301
|
utilizationTypeEnabling: UtilizationTypeEnablingDto;
|
|
27317
27302
|
}
|
|
27318
27303
|
|
|
27319
|
-
export type UtilizationTypeDto = "PowerOn" | "TwentyFourSeven" | "ActiveOrder";
|
|
27304
|
+
export type UtilizationTypeDto = "PowerOn" | "TwentyFourSeven" | "ActiveOrder" | "MachineCalendar" | "FactoryCalendar";
|
|
27320
27305
|
|
|
27321
27306
|
export class UtilizationTypeEnablingDto implements IUtilizationTypeEnablingDto {
|
|
27322
27307
|
powerOnEnabled!: boolean;
|
|
27323
27308
|
twentyFourSevenEnabled!: boolean;
|
|
27324
27309
|
activeOrderEnabled!: boolean;
|
|
27310
|
+
machineCalendarEnabled!: boolean;
|
|
27311
|
+
factoryCalendarEnabled!: boolean;
|
|
27325
27312
|
|
|
27326
27313
|
constructor(data?: IUtilizationTypeEnablingDto) {
|
|
27327
27314
|
if (data) {
|
|
@@ -27337,6 +27324,8 @@ export class UtilizationTypeEnablingDto implements IUtilizationTypeEnablingDto {
|
|
|
27337
27324
|
this.powerOnEnabled = _data["powerOnEnabled"];
|
|
27338
27325
|
this.twentyFourSevenEnabled = _data["twentyFourSevenEnabled"];
|
|
27339
27326
|
this.activeOrderEnabled = _data["activeOrderEnabled"];
|
|
27327
|
+
this.machineCalendarEnabled = _data["machineCalendarEnabled"];
|
|
27328
|
+
this.factoryCalendarEnabled = _data["factoryCalendarEnabled"];
|
|
27340
27329
|
}
|
|
27341
27330
|
}
|
|
27342
27331
|
|
|
@@ -27352,6 +27341,8 @@ export class UtilizationTypeEnablingDto implements IUtilizationTypeEnablingDto {
|
|
|
27352
27341
|
data["powerOnEnabled"] = this.powerOnEnabled;
|
|
27353
27342
|
data["twentyFourSevenEnabled"] = this.twentyFourSevenEnabled;
|
|
27354
27343
|
data["activeOrderEnabled"] = this.activeOrderEnabled;
|
|
27344
|
+
data["machineCalendarEnabled"] = this.machineCalendarEnabled;
|
|
27345
|
+
data["factoryCalendarEnabled"] = this.factoryCalendarEnabled;
|
|
27355
27346
|
return data;
|
|
27356
27347
|
}
|
|
27357
27348
|
}
|
|
@@ -27360,6 +27351,8 @@ export interface IUtilizationTypeEnablingDto {
|
|
|
27360
27351
|
powerOnEnabled: boolean;
|
|
27361
27352
|
twentyFourSevenEnabled: boolean;
|
|
27362
27353
|
activeOrderEnabled: boolean;
|
|
27354
|
+
machineCalendarEnabled: boolean;
|
|
27355
|
+
factoryCalendarEnabled: boolean;
|
|
27363
27356
|
}
|
|
27364
27357
|
|
|
27365
27358
|
export class UpdatePulseSettings implements IUpdatePulseSettings {
|
|
@@ -27367,6 +27360,8 @@ export class UpdatePulseSettings implements IUpdatePulseSettings {
|
|
|
27367
27360
|
powerOnEnabled!: boolean;
|
|
27368
27361
|
twentyfourSevenEnabled!: boolean;
|
|
27369
27362
|
activeOrderEnabled!: boolean;
|
|
27363
|
+
machineCalendarEnabled!: boolean;
|
|
27364
|
+
factoryCalendarEnabled!: boolean;
|
|
27370
27365
|
|
|
27371
27366
|
constructor(data?: IUpdatePulseSettings) {
|
|
27372
27367
|
if (data) {
|
|
@@ -27383,6 +27378,8 @@ export class UpdatePulseSettings implements IUpdatePulseSettings {
|
|
|
27383
27378
|
this.powerOnEnabled = _data["powerOnEnabled"];
|
|
27384
27379
|
this.twentyfourSevenEnabled = _data["twentyfourSevenEnabled"];
|
|
27385
27380
|
this.activeOrderEnabled = _data["activeOrderEnabled"];
|
|
27381
|
+
this.machineCalendarEnabled = _data["machineCalendarEnabled"];
|
|
27382
|
+
this.factoryCalendarEnabled = _data["factoryCalendarEnabled"];
|
|
27386
27383
|
}
|
|
27387
27384
|
}
|
|
27388
27385
|
|
|
@@ -27399,6 +27396,8 @@ export class UpdatePulseSettings implements IUpdatePulseSettings {
|
|
|
27399
27396
|
data["powerOnEnabled"] = this.powerOnEnabled;
|
|
27400
27397
|
data["twentyfourSevenEnabled"] = this.twentyfourSevenEnabled;
|
|
27401
27398
|
data["activeOrderEnabled"] = this.activeOrderEnabled;
|
|
27399
|
+
data["machineCalendarEnabled"] = this.machineCalendarEnabled;
|
|
27400
|
+
data["factoryCalendarEnabled"] = this.factoryCalendarEnabled;
|
|
27402
27401
|
return data;
|
|
27403
27402
|
}
|
|
27404
27403
|
}
|
|
@@ -27408,6 +27407,8 @@ export interface IUpdatePulseSettings {
|
|
|
27408
27407
|
powerOnEnabled: boolean;
|
|
27409
27408
|
twentyfourSevenEnabled: boolean;
|
|
27410
27409
|
activeOrderEnabled: boolean;
|
|
27410
|
+
machineCalendarEnabled: boolean;
|
|
27411
|
+
factoryCalendarEnabled: boolean;
|
|
27411
27412
|
}
|
|
27412
27413
|
|
|
27413
27414
|
export class CompanyUtilizationDto implements ICompanyUtilizationDto {
|
|
@@ -27481,6 +27482,7 @@ export interface ICompanyUtilizationDto {
|
|
|
27481
27482
|
|
|
27482
27483
|
export class UtilizationDetailsV2Dto implements IUtilizationDetailsV2Dto {
|
|
27483
27484
|
utilizationPercent?: number | null;
|
|
27485
|
+
capacityInMilliseconds?: number;
|
|
27484
27486
|
uptimeInSeconds?: number | null;
|
|
27485
27487
|
downtimeInSeconds?: number | null;
|
|
27486
27488
|
totalTimeInSeconds?: number | null;
|
|
@@ -27500,6 +27502,7 @@ export class UtilizationDetailsV2Dto implements IUtilizationDetailsV2Dto {
|
|
|
27500
27502
|
init(_data?: any) {
|
|
27501
27503
|
if (_data) {
|
|
27502
27504
|
this.utilizationPercent = _data["utilizationPercent"];
|
|
27505
|
+
this.capacityInMilliseconds = _data["capacityInMilliseconds"];
|
|
27503
27506
|
this.uptimeInSeconds = _data["uptimeInSeconds"];
|
|
27504
27507
|
this.downtimeInSeconds = _data["downtimeInSeconds"];
|
|
27505
27508
|
this.totalTimeInSeconds = _data["totalTimeInSeconds"];
|
|
@@ -27519,6 +27522,7 @@ export class UtilizationDetailsV2Dto implements IUtilizationDetailsV2Dto {
|
|
|
27519
27522
|
toJSON(data?: any) {
|
|
27520
27523
|
data = typeof data === 'object' ? data : {};
|
|
27521
27524
|
data["utilizationPercent"] = this.utilizationPercent;
|
|
27525
|
+
data["capacityInMilliseconds"] = this.capacityInMilliseconds;
|
|
27522
27526
|
data["uptimeInSeconds"] = this.uptimeInSeconds;
|
|
27523
27527
|
data["downtimeInSeconds"] = this.downtimeInSeconds;
|
|
27524
27528
|
data["totalTimeInSeconds"] = this.totalTimeInSeconds;
|
|
@@ -27531,6 +27535,7 @@ export class UtilizationDetailsV2Dto implements IUtilizationDetailsV2Dto {
|
|
|
27531
27535
|
|
|
27532
27536
|
export interface IUtilizationDetailsV2Dto {
|
|
27533
27537
|
utilizationPercent?: number | null;
|
|
27538
|
+
capacityInMilliseconds?: number;
|
|
27534
27539
|
uptimeInSeconds?: number | null;
|
|
27535
27540
|
downtimeInSeconds?: number | null;
|
|
27536
27541
|
totalTimeInSeconds?: number | null;
|
|
@@ -33988,11 +33993,12 @@ export interface IUpdateMachinesCapacity {
|
|
|
33988
33993
|
capacity?: MachineCapacitySettingsDto[] | null;
|
|
33989
33994
|
}
|
|
33990
33995
|
|
|
33991
|
-
export class
|
|
33996
|
+
export class CalendarDayDto implements ICalendarDayDto {
|
|
33992
33997
|
date?: Date;
|
|
33993
|
-
dayCapacity?:
|
|
33998
|
+
dayCapacity?: CalendarDayCapacityDto;
|
|
33999
|
+
capacityHours?: number;
|
|
33994
34000
|
|
|
33995
|
-
constructor(data?:
|
|
34001
|
+
constructor(data?: ICalendarDayDto) {
|
|
33996
34002
|
if (data) {
|
|
33997
34003
|
for (var property in data) {
|
|
33998
34004
|
if (data.hasOwnProperty(property))
|
|
@@ -34005,12 +34011,13 @@ export class CalenderCapacityDto implements ICalenderCapacityDto {
|
|
|
34005
34011
|
if (_data) {
|
|
34006
34012
|
this.date = _data["date"] ? new Date(_data["date"].toString()) : <any>undefined;
|
|
34007
34013
|
this.dayCapacity = _data["dayCapacity"];
|
|
34014
|
+
this.capacityHours = _data["capacityHours"];
|
|
34008
34015
|
}
|
|
34009
34016
|
}
|
|
34010
34017
|
|
|
34011
|
-
static fromJS(data: any):
|
|
34018
|
+
static fromJS(data: any): CalendarDayDto {
|
|
34012
34019
|
data = typeof data === 'object' ? data : {};
|
|
34013
|
-
let result = new
|
|
34020
|
+
let result = new CalendarDayDto();
|
|
34014
34021
|
result.init(data);
|
|
34015
34022
|
return result;
|
|
34016
34023
|
}
|
|
@@ -34019,22 +34026,24 @@ export class CalenderCapacityDto implements ICalenderCapacityDto {
|
|
|
34019
34026
|
data = typeof data === 'object' ? data : {};
|
|
34020
34027
|
data["date"] = this.date ? this.date.toISOString() : <any>undefined;
|
|
34021
34028
|
data["dayCapacity"] = this.dayCapacity;
|
|
34029
|
+
data["capacityHours"] = this.capacityHours;
|
|
34022
34030
|
return data;
|
|
34023
34031
|
}
|
|
34024
34032
|
}
|
|
34025
34033
|
|
|
34026
|
-
export interface
|
|
34034
|
+
export interface ICalendarDayDto {
|
|
34027
34035
|
date?: Date;
|
|
34028
|
-
dayCapacity?:
|
|
34036
|
+
dayCapacity?: CalendarDayCapacityDto;
|
|
34037
|
+
capacityHours?: number;
|
|
34029
34038
|
}
|
|
34030
34039
|
|
|
34031
|
-
export type
|
|
34040
|
+
export type CalendarDayCapacityDto = "WorkingDay" | "HalfDay" | "Holiday";
|
|
34032
34041
|
|
|
34033
|
-
export class
|
|
34042
|
+
export class CalendarCapacityDto implements ICalendarCapacityDto {
|
|
34034
34043
|
date?: Date;
|
|
34035
|
-
dayCapacity?:
|
|
34044
|
+
dayCapacity?: CalendarDayCapacityDto;
|
|
34036
34045
|
|
|
34037
|
-
constructor(data?:
|
|
34046
|
+
constructor(data?: ICalendarCapacityDto) {
|
|
34038
34047
|
if (data) {
|
|
34039
34048
|
for (var property in data) {
|
|
34040
34049
|
if (data.hasOwnProperty(property))
|
|
@@ -34050,9 +34059,9 @@ export class UpdateCalenderCapacity implements IUpdateCalenderCapacity {
|
|
|
34050
34059
|
}
|
|
34051
34060
|
}
|
|
34052
34061
|
|
|
34053
|
-
static fromJS(data: any):
|
|
34062
|
+
static fromJS(data: any): CalendarCapacityDto {
|
|
34054
34063
|
data = typeof data === 'object' ? data : {};
|
|
34055
|
-
let result = new
|
|
34064
|
+
let result = new CalendarCapacityDto();
|
|
34056
34065
|
result.init(data);
|
|
34057
34066
|
return result;
|
|
34058
34067
|
}
|
|
@@ -34065,9 +34074,163 @@ export class UpdateCalenderCapacity implements IUpdateCalenderCapacity {
|
|
|
34065
34074
|
}
|
|
34066
34075
|
}
|
|
34067
34076
|
|
|
34068
|
-
export interface
|
|
34077
|
+
export interface ICalendarCapacityDto {
|
|
34069
34078
|
date?: Date;
|
|
34070
|
-
dayCapacity?:
|
|
34079
|
+
dayCapacity?: CalendarDayCapacityDto;
|
|
34080
|
+
}
|
|
34081
|
+
|
|
34082
|
+
export class UpdateCalendarCapacity implements IUpdateCalendarCapacity {
|
|
34083
|
+
date?: Date;
|
|
34084
|
+
dayCapacity?: CalendarDayCapacityDto;
|
|
34085
|
+
|
|
34086
|
+
constructor(data?: IUpdateCalendarCapacity) {
|
|
34087
|
+
if (data) {
|
|
34088
|
+
for (var property in data) {
|
|
34089
|
+
if (data.hasOwnProperty(property))
|
|
34090
|
+
(<any>this)[property] = (<any>data)[property];
|
|
34091
|
+
}
|
|
34092
|
+
}
|
|
34093
|
+
}
|
|
34094
|
+
|
|
34095
|
+
init(_data?: any) {
|
|
34096
|
+
if (_data) {
|
|
34097
|
+
this.date = _data["date"] ? new Date(_data["date"].toString()) : <any>undefined;
|
|
34098
|
+
this.dayCapacity = _data["dayCapacity"];
|
|
34099
|
+
}
|
|
34100
|
+
}
|
|
34101
|
+
|
|
34102
|
+
static fromJS(data: any): UpdateCalendarCapacity {
|
|
34103
|
+
data = typeof data === 'object' ? data : {};
|
|
34104
|
+
let result = new UpdateCalendarCapacity();
|
|
34105
|
+
result.init(data);
|
|
34106
|
+
return result;
|
|
34107
|
+
}
|
|
34108
|
+
|
|
34109
|
+
toJSON(data?: any) {
|
|
34110
|
+
data = typeof data === 'object' ? data : {};
|
|
34111
|
+
data["date"] = this.date ? this.date.toISOString() : <any>undefined;
|
|
34112
|
+
data["dayCapacity"] = this.dayCapacity;
|
|
34113
|
+
return data;
|
|
34114
|
+
}
|
|
34115
|
+
}
|
|
34116
|
+
|
|
34117
|
+
export interface IUpdateCalendarCapacity {
|
|
34118
|
+
date?: Date;
|
|
34119
|
+
dayCapacity?: CalendarDayCapacityDto;
|
|
34120
|
+
}
|
|
34121
|
+
|
|
34122
|
+
export class CalendarSettingsDto implements ICalendarSettingsDto {
|
|
34123
|
+
defaultHoursPerWeekday?: { [key in DayOfWeek]?: number; };
|
|
34124
|
+
halfDayHours?: number;
|
|
34125
|
+
holidayHours?: number;
|
|
34126
|
+
|
|
34127
|
+
constructor(data?: ICalendarSettingsDto) {
|
|
34128
|
+
if (data) {
|
|
34129
|
+
for (var property in data) {
|
|
34130
|
+
if (data.hasOwnProperty(property))
|
|
34131
|
+
(<any>this)[property] = (<any>data)[property];
|
|
34132
|
+
}
|
|
34133
|
+
}
|
|
34134
|
+
}
|
|
34135
|
+
|
|
34136
|
+
init(_data?: any) {
|
|
34137
|
+
if (_data) {
|
|
34138
|
+
if (_data["defaultHoursPerWeekday"]) {
|
|
34139
|
+
this.defaultHoursPerWeekday = {} as any;
|
|
34140
|
+
for (let key in _data["defaultHoursPerWeekday"]) {
|
|
34141
|
+
if (_data["defaultHoursPerWeekday"].hasOwnProperty(key))
|
|
34142
|
+
(<any>this.defaultHoursPerWeekday)![key] = _data["defaultHoursPerWeekday"][key];
|
|
34143
|
+
}
|
|
34144
|
+
}
|
|
34145
|
+
this.halfDayHours = _data["halfDayHours"];
|
|
34146
|
+
this.holidayHours = _data["holidayHours"];
|
|
34147
|
+
}
|
|
34148
|
+
}
|
|
34149
|
+
|
|
34150
|
+
static fromJS(data: any): CalendarSettingsDto {
|
|
34151
|
+
data = typeof data === 'object' ? data : {};
|
|
34152
|
+
let result = new CalendarSettingsDto();
|
|
34153
|
+
result.init(data);
|
|
34154
|
+
return result;
|
|
34155
|
+
}
|
|
34156
|
+
|
|
34157
|
+
toJSON(data?: any) {
|
|
34158
|
+
data = typeof data === 'object' ? data : {};
|
|
34159
|
+
if (this.defaultHoursPerWeekday) {
|
|
34160
|
+
data["defaultHoursPerWeekday"] = {};
|
|
34161
|
+
for (let key in this.defaultHoursPerWeekday) {
|
|
34162
|
+
if (this.defaultHoursPerWeekday.hasOwnProperty(key))
|
|
34163
|
+
(<any>data["defaultHoursPerWeekday"])[key] = (<any>this.defaultHoursPerWeekday)[key];
|
|
34164
|
+
}
|
|
34165
|
+
}
|
|
34166
|
+
data["halfDayHours"] = this.halfDayHours;
|
|
34167
|
+
data["holidayHours"] = this.holidayHours;
|
|
34168
|
+
return data;
|
|
34169
|
+
}
|
|
34170
|
+
}
|
|
34171
|
+
|
|
34172
|
+
export interface ICalendarSettingsDto {
|
|
34173
|
+
defaultHoursPerWeekday?: { [key in DayOfWeek]?: number; };
|
|
34174
|
+
halfDayHours?: number;
|
|
34175
|
+
holidayHours?: number;
|
|
34176
|
+
}
|
|
34177
|
+
|
|
34178
|
+
export type DayOfWeek = 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
34179
|
+
|
|
34180
|
+
export class UpdateCalendarSettingsCommand implements IUpdateCalendarSettingsCommand {
|
|
34181
|
+
defaultHoursPerWeekday?: { [key in DayOfWeek]?: number; };
|
|
34182
|
+
halfDayHours?: number;
|
|
34183
|
+
holidayHours?: number;
|
|
34184
|
+
|
|
34185
|
+
constructor(data?: IUpdateCalendarSettingsCommand) {
|
|
34186
|
+
if (data) {
|
|
34187
|
+
for (var property in data) {
|
|
34188
|
+
if (data.hasOwnProperty(property))
|
|
34189
|
+
(<any>this)[property] = (<any>data)[property];
|
|
34190
|
+
}
|
|
34191
|
+
}
|
|
34192
|
+
}
|
|
34193
|
+
|
|
34194
|
+
init(_data?: any) {
|
|
34195
|
+
if (_data) {
|
|
34196
|
+
if (_data["defaultHoursPerWeekday"]) {
|
|
34197
|
+
this.defaultHoursPerWeekday = {} as any;
|
|
34198
|
+
for (let key in _data["defaultHoursPerWeekday"]) {
|
|
34199
|
+
if (_data["defaultHoursPerWeekday"].hasOwnProperty(key))
|
|
34200
|
+
(<any>this.defaultHoursPerWeekday)![key] = _data["defaultHoursPerWeekday"][key];
|
|
34201
|
+
}
|
|
34202
|
+
}
|
|
34203
|
+
this.halfDayHours = _data["halfDayHours"];
|
|
34204
|
+
this.holidayHours = _data["holidayHours"];
|
|
34205
|
+
}
|
|
34206
|
+
}
|
|
34207
|
+
|
|
34208
|
+
static fromJS(data: any): UpdateCalendarSettingsCommand {
|
|
34209
|
+
data = typeof data === 'object' ? data : {};
|
|
34210
|
+
let result = new UpdateCalendarSettingsCommand();
|
|
34211
|
+
result.init(data);
|
|
34212
|
+
return result;
|
|
34213
|
+
}
|
|
34214
|
+
|
|
34215
|
+
toJSON(data?: any) {
|
|
34216
|
+
data = typeof data === 'object' ? data : {};
|
|
34217
|
+
if (this.defaultHoursPerWeekday) {
|
|
34218
|
+
data["defaultHoursPerWeekday"] = {};
|
|
34219
|
+
for (let key in this.defaultHoursPerWeekday) {
|
|
34220
|
+
if (this.defaultHoursPerWeekday.hasOwnProperty(key))
|
|
34221
|
+
(<any>data["defaultHoursPerWeekday"])[key] = (<any>this.defaultHoursPerWeekday)[key];
|
|
34222
|
+
}
|
|
34223
|
+
}
|
|
34224
|
+
data["halfDayHours"] = this.halfDayHours;
|
|
34225
|
+
data["holidayHours"] = this.holidayHours;
|
|
34226
|
+
return data;
|
|
34227
|
+
}
|
|
34228
|
+
}
|
|
34229
|
+
|
|
34230
|
+
export interface IUpdateCalendarSettingsCommand {
|
|
34231
|
+
defaultHoursPerWeekday?: { [key in DayOfWeek]?: number; };
|
|
34232
|
+
halfDayHours?: number;
|
|
34233
|
+
holidayHours?: number;
|
|
34071
34234
|
}
|
|
34072
34235
|
|
|
34073
34236
|
export class MachineKpiDto implements IMachineKpiDto {
|
|
@@ -51670,6 +51833,7 @@ export class MeasurementFormGroupedElementDto implements IMeasurementFormGrouped
|
|
|
51670
51833
|
machiningDimension?: number | null;
|
|
51671
51834
|
nominalInch?: number | null;
|
|
51672
51835
|
isValid!: boolean;
|
|
51836
|
+
validationErrorMessage?: string | null;
|
|
51673
51837
|
|
|
51674
51838
|
constructor(data?: IMeasurementFormGroupedElementDto) {
|
|
51675
51839
|
if (data) {
|
|
@@ -51721,6 +51885,7 @@ export class MeasurementFormGroupedElementDto implements IMeasurementFormGrouped
|
|
|
51721
51885
|
this.machiningDimension = _data["machiningDimension"];
|
|
51722
51886
|
this.nominalInch = _data["nominalInch"];
|
|
51723
51887
|
this.isValid = _data["isValid"];
|
|
51888
|
+
this.validationErrorMessage = _data["validationErrorMessage"];
|
|
51724
51889
|
}
|
|
51725
51890
|
}
|
|
51726
51891
|
|
|
@@ -51772,6 +51937,7 @@ export class MeasurementFormGroupedElementDto implements IMeasurementFormGrouped
|
|
|
51772
51937
|
data["machiningDimension"] = this.machiningDimension;
|
|
51773
51938
|
data["nominalInch"] = this.nominalInch;
|
|
51774
51939
|
data["isValid"] = this.isValid;
|
|
51940
|
+
data["validationErrorMessage"] = this.validationErrorMessage;
|
|
51775
51941
|
return data;
|
|
51776
51942
|
}
|
|
51777
51943
|
}
|
|
@@ -51816,9 +51982,10 @@ export interface IMeasurementFormGroupedElementDto {
|
|
|
51816
51982
|
machiningDimension?: number | null;
|
|
51817
51983
|
nominalInch?: number | null;
|
|
51818
51984
|
isValid: boolean;
|
|
51985
|
+
validationErrorMessage?: string | null;
|
|
51819
51986
|
}
|
|
51820
51987
|
|
|
51821
|
-
export type MeasurementFrequency = "All" | "FirstArticle" | "NFirst" | "NPercent" | "ISO2859" | "Nth" | "None";
|
|
51988
|
+
export type MeasurementFrequency = "All" | "FirstArticle" | "NFirst" | "NPercent" | "ISO2859" | "Nth" | "FirstAndLast" | "None";
|
|
51822
51989
|
|
|
51823
51990
|
export type MeasurementFormValueType = "None" | "Bool" | "Decimal" | "String";
|
|
51824
51991
|
|
|
@@ -52213,6 +52380,7 @@ export class UpdateSchemaGroupedElementDto implements IUpdateSchemaGroupedElemen
|
|
|
52213
52380
|
includeInCustomerDocumentation!: boolean;
|
|
52214
52381
|
canCopy?: boolean | null;
|
|
52215
52382
|
isDocumentedExternally!: boolean;
|
|
52383
|
+
coatingThickness?: number | null;
|
|
52216
52384
|
|
|
52217
52385
|
constructor(data?: IUpdateSchemaGroupedElementDto) {
|
|
52218
52386
|
if (data) {
|
|
@@ -52231,6 +52399,7 @@ export class UpdateSchemaGroupedElementDto implements IUpdateSchemaGroupedElemen
|
|
|
52231
52399
|
this.includeInCustomerDocumentation = _data["includeInCustomerDocumentation"];
|
|
52232
52400
|
this.canCopy = _data["canCopy"];
|
|
52233
52401
|
this.isDocumentedExternally = _data["isDocumentedExternally"];
|
|
52402
|
+
this.coatingThickness = _data["coatingThickness"];
|
|
52234
52403
|
}
|
|
52235
52404
|
}
|
|
52236
52405
|
|
|
@@ -52249,6 +52418,7 @@ export class UpdateSchemaGroupedElementDto implements IUpdateSchemaGroupedElemen
|
|
|
52249
52418
|
data["includeInCustomerDocumentation"] = this.includeInCustomerDocumentation;
|
|
52250
52419
|
data["canCopy"] = this.canCopy;
|
|
52251
52420
|
data["isDocumentedExternally"] = this.isDocumentedExternally;
|
|
52421
|
+
data["coatingThickness"] = this.coatingThickness;
|
|
52252
52422
|
return data;
|
|
52253
52423
|
}
|
|
52254
52424
|
}
|
|
@@ -52260,6 +52430,7 @@ export interface IUpdateSchemaGroupedElementDto {
|
|
|
52260
52430
|
includeInCustomerDocumentation: boolean;
|
|
52261
52431
|
canCopy?: boolean | null;
|
|
52262
52432
|
isDocumentedExternally: boolean;
|
|
52433
|
+
coatingThickness?: number | null;
|
|
52263
52434
|
}
|
|
52264
52435
|
|
|
52265
52436
|
export class UpdateSchemaGroupedElementRowDto implements IUpdateSchemaGroupedElementRowDto {
|