@ignos/api-client 20250704.0.12076-alpha → 20250704.0.12089-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.
- package/lib/ignosportal-api.d.ts +34 -76
- package/lib/ignosportal-api.js +94 -205
- package/package.json +1 -1
- package/src/ignosportal-api.ts +122 -267
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -176,6 +176,7 @@ export interface IMachineUtilizationClient {
|
|
|
176
176
|
listMachineUptimesToday(request: ListMachineUptimesTodayRequest): Promise<MachineUptimesAggregateDto>;
|
|
177
177
|
listPowerOnUtilizationDatapoints(id: number | null | undefined, externalId: string | null | undefined, nDays: number | null | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<PowerOnUtilizationList>;
|
|
178
178
|
getFactoryUtilization(): Promise<PowerOnUtilizationDto>;
|
|
179
|
+
getProgramTimeline(id: string, startTime: Date | undefined, endTime: Date | undefined): Promise<ProgramDatapoint[]>;
|
|
179
180
|
}
|
|
180
181
|
export declare class MachineUtilizationClient extends AuthorizedApiBase implements IMachineUtilizationClient {
|
|
181
182
|
private http;
|
|
@@ -217,6 +218,8 @@ export declare class MachineUtilizationClient extends AuthorizedApiBase implemen
|
|
|
217
218
|
protected processListPowerOnUtilizationDatapoints(response: Response): Promise<PowerOnUtilizationList>;
|
|
218
219
|
getFactoryUtilization(): Promise<PowerOnUtilizationDto>;
|
|
219
220
|
protected processGetFactoryUtilization(response: Response): Promise<PowerOnUtilizationDto>;
|
|
221
|
+
getProgramTimeline(id: string, startTime: Date | undefined, endTime: Date | undefined): Promise<ProgramDatapoint[]>;
|
|
222
|
+
protected processGetProgramTimeline(response: Response): Promise<ProgramDatapoint[]>;
|
|
220
223
|
}
|
|
221
224
|
export interface IMeClient {
|
|
222
225
|
getMyApps(): Promise<UserAppDto[]>;
|
|
@@ -787,10 +790,8 @@ export declare class DowntimeReasonsClient extends AuthorizedApiBase implements
|
|
|
787
790
|
export interface IKpiAdminClient {
|
|
788
791
|
getMachineCapacityAdmin(): Promise<MachineGroupCapacityDto[]>;
|
|
789
792
|
updateMachineCapacityAdmin(request: UpdateMachinesCapacity): Promise<MachineCapacityDto>;
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
getCalendarSettings(): Promise<CalendarSettingsDto>;
|
|
793
|
-
updateCalendarSettings(cmd: UpdateCalendarSettingsCommand): Promise<CalendarSettingsDto>;
|
|
793
|
+
getCalenderCapacityAdmin(startDate: Date | undefined, endDate: Date | undefined): Promise<CalenderCapacityDto[]>;
|
|
794
|
+
updateCalenderCapacityAdmin(request: UpdateCalenderCapacity): Promise<CalenderCapacityDto>;
|
|
794
795
|
}
|
|
795
796
|
export declare class KpiAdminClient extends AuthorizedApiBase implements IKpiAdminClient {
|
|
796
797
|
private http;
|
|
@@ -803,14 +804,10 @@ export declare class KpiAdminClient extends AuthorizedApiBase implements IKpiAdm
|
|
|
803
804
|
protected processGetMachineCapacityAdmin(response: Response): Promise<MachineGroupCapacityDto[]>;
|
|
804
805
|
updateMachineCapacityAdmin(request: UpdateMachinesCapacity): Promise<MachineCapacityDto>;
|
|
805
806
|
protected processUpdateMachineCapacityAdmin(response: Response): Promise<MachineCapacityDto>;
|
|
806
|
-
|
|
807
|
-
protected
|
|
808
|
-
|
|
809
|
-
protected
|
|
810
|
-
getCalendarSettings(): Promise<CalendarSettingsDto>;
|
|
811
|
-
protected processGetCalendarSettings(response: Response): Promise<CalendarSettingsDto>;
|
|
812
|
-
updateCalendarSettings(cmd: UpdateCalendarSettingsCommand): Promise<CalendarSettingsDto>;
|
|
813
|
-
protected processUpdateCalendarSettings(response: Response): Promise<CalendarSettingsDto>;
|
|
807
|
+
getCalenderCapacityAdmin(startDate: Date | undefined, endDate: Date | undefined): Promise<CalenderCapacityDto[]>;
|
|
808
|
+
protected processGetCalenderCapacityAdmin(response: Response): Promise<CalenderCapacityDto[]>;
|
|
809
|
+
updateCalenderCapacityAdmin(request: UpdateCalenderCapacity): Promise<CalenderCapacityDto>;
|
|
810
|
+
protected processUpdateCalenderCapacityAdmin(response: Response): Promise<CalenderCapacityDto>;
|
|
814
811
|
}
|
|
815
812
|
export interface IKpiClient {
|
|
816
813
|
getMachineKpi(machineExternalId: string | undefined, previousPeriodStartDate: Date | undefined, startDate: Date | undefined, endDate: Date | undefined, utcOffset: number | undefined): Promise<MachineKpiDto>;
|
|
@@ -3112,6 +3109,18 @@ export interface INumericNullableValueWithTimestamp {
|
|
|
3112
3109
|
timestamp?: number;
|
|
3113
3110
|
value?: number | null;
|
|
3114
3111
|
}
|
|
3112
|
+
export declare class ProgramDatapoint implements IProgramDatapoint {
|
|
3113
|
+
timestamp?: number;
|
|
3114
|
+
programValue?: string;
|
|
3115
|
+
constructor(data?: IProgramDatapoint);
|
|
3116
|
+
init(_data?: any): void;
|
|
3117
|
+
static fromJS(data: any): ProgramDatapoint;
|
|
3118
|
+
toJSON(data?: any): any;
|
|
3119
|
+
}
|
|
3120
|
+
export interface IProgramDatapoint {
|
|
3121
|
+
timestamp?: number;
|
|
3122
|
+
programValue?: string;
|
|
3123
|
+
}
|
|
3115
3124
|
export declare class UserAppDto implements IUserAppDto {
|
|
3116
3125
|
key: string;
|
|
3117
3126
|
name: string;
|
|
@@ -5857,81 +5866,30 @@ export interface IUpdateMachinesCapacity {
|
|
|
5857
5866
|
utilizationPercent?: number | null;
|
|
5858
5867
|
capacity?: MachineCapacitySettingsDto[] | null;
|
|
5859
5868
|
}
|
|
5860
|
-
export declare class
|
|
5861
|
-
date?: Date;
|
|
5862
|
-
dayCapacity?: CalendarDayCapacityDto;
|
|
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?: CalendarDayCapacityDto;
|
|
5872
|
-
capacityHours?: number;
|
|
5873
|
-
}
|
|
5874
|
-
export type CalendarDayCapacityDto = "WorkingDay" | "HalfDay" | "Holiday";
|
|
5875
|
-
export declare class CalendarCapacityDto implements ICalendarCapacityDto {
|
|
5869
|
+
export declare class CalenderCapacityDto implements ICalenderCapacityDto {
|
|
5876
5870
|
date?: Date;
|
|
5877
|
-
dayCapacity?:
|
|
5878
|
-
constructor(data?:
|
|
5871
|
+
dayCapacity?: CalenderDayCapacityDto;
|
|
5872
|
+
constructor(data?: ICalenderCapacityDto);
|
|
5879
5873
|
init(_data?: any): void;
|
|
5880
|
-
static fromJS(data: any):
|
|
5874
|
+
static fromJS(data: any): CalenderCapacityDto;
|
|
5881
5875
|
toJSON(data?: any): any;
|
|
5882
5876
|
}
|
|
5883
|
-
export interface
|
|
5877
|
+
export interface ICalenderCapacityDto {
|
|
5884
5878
|
date?: Date;
|
|
5885
|
-
dayCapacity?:
|
|
5879
|
+
dayCapacity?: CalenderDayCapacityDto;
|
|
5886
5880
|
}
|
|
5887
|
-
export
|
|
5881
|
+
export type CalenderDayCapacityDto = "WorkingDay" | "HalfDay" | "Holiday";
|
|
5882
|
+
export declare class UpdateCalenderCapacity implements IUpdateCalenderCapacity {
|
|
5888
5883
|
date?: Date;
|
|
5889
|
-
dayCapacity?:
|
|
5890
|
-
constructor(data?:
|
|
5884
|
+
dayCapacity?: CalenderDayCapacityDto;
|
|
5885
|
+
constructor(data?: IUpdateCalenderCapacity);
|
|
5891
5886
|
init(_data?: any): void;
|
|
5892
|
-
static fromJS(data: any):
|
|
5887
|
+
static fromJS(data: any): UpdateCalenderCapacity;
|
|
5893
5888
|
toJSON(data?: any): any;
|
|
5894
5889
|
}
|
|
5895
|
-
export interface
|
|
5890
|
+
export interface IUpdateCalenderCapacity {
|
|
5896
5891
|
date?: Date;
|
|
5897
|
-
dayCapacity?:
|
|
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;
|
|
5892
|
+
dayCapacity?: CalenderDayCapacityDto;
|
|
5935
5893
|
}
|
|
5936
5894
|
export declare class MachineKpiDto implements IMachineKpiDto {
|
|
5937
5895
|
uptimeToNow: number;
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -970,6 +970,58 @@ export class MachineUtilizationClient extends AuthorizedApiBase {
|
|
|
970
970
|
}
|
|
971
971
|
return Promise.resolve(null);
|
|
972
972
|
}
|
|
973
|
+
getProgramTimeline(id, startTime, endTime) {
|
|
974
|
+
let url_ = this.baseUrl + "/machineutilization/{id}/program-timeline?";
|
|
975
|
+
if (id === undefined || id === null)
|
|
976
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
977
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
978
|
+
if (startTime === null)
|
|
979
|
+
throw new Error("The parameter 'startTime' cannot be null.");
|
|
980
|
+
else if (startTime !== undefined)
|
|
981
|
+
url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
|
|
982
|
+
if (endTime === null)
|
|
983
|
+
throw new Error("The parameter 'endTime' cannot be null.");
|
|
984
|
+
else if (endTime !== undefined)
|
|
985
|
+
url_ += "endTime=" + encodeURIComponent(endTime ? "" + endTime.toISOString() : "") + "&";
|
|
986
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
987
|
+
let options_ = {
|
|
988
|
+
method: "GET",
|
|
989
|
+
headers: {
|
|
990
|
+
"Accept": "application/json"
|
|
991
|
+
}
|
|
992
|
+
};
|
|
993
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
994
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
995
|
+
}).then((_response) => {
|
|
996
|
+
return this.processGetProgramTimeline(_response);
|
|
997
|
+
});
|
|
998
|
+
}
|
|
999
|
+
processGetProgramTimeline(response) {
|
|
1000
|
+
const status = response.status;
|
|
1001
|
+
let _headers = {};
|
|
1002
|
+
if (response.headers && response.headers.forEach) {
|
|
1003
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
1004
|
+
}
|
|
1005
|
+
;
|
|
1006
|
+
if (status === 200) {
|
|
1007
|
+
return response.text().then((_responseText) => {
|
|
1008
|
+
let result200 = null;
|
|
1009
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
1010
|
+
if (Array.isArray(resultData200)) {
|
|
1011
|
+
result200 = [];
|
|
1012
|
+
for (let item of resultData200)
|
|
1013
|
+
result200.push(ProgramDatapoint.fromJS(item));
|
|
1014
|
+
}
|
|
1015
|
+
return result200;
|
|
1016
|
+
});
|
|
1017
|
+
}
|
|
1018
|
+
else if (status !== 200 && status !== 204) {
|
|
1019
|
+
return response.text().then((_responseText) => {
|
|
1020
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
1021
|
+
});
|
|
1022
|
+
}
|
|
1023
|
+
return Promise.resolve(null);
|
|
1024
|
+
}
|
|
973
1025
|
}
|
|
974
1026
|
export class MeClient extends AuthorizedApiBase {
|
|
975
1027
|
constructor(configuration, baseUrl, http) {
|
|
@@ -6020,8 +6072,8 @@ export class KpiAdminClient extends AuthorizedApiBase {
|
|
|
6020
6072
|
}
|
|
6021
6073
|
return Promise.resolve(null);
|
|
6022
6074
|
}
|
|
6023
|
-
|
|
6024
|
-
let url_ = this.baseUrl + "/kpiadmin/
|
|
6075
|
+
getCalenderCapacityAdmin(startDate, endDate) {
|
|
6076
|
+
let url_ = this.baseUrl + "/kpiadmin/calender?";
|
|
6025
6077
|
if (startDate === null)
|
|
6026
6078
|
throw new Error("The parameter 'startDate' cannot be null.");
|
|
6027
6079
|
else if (startDate !== undefined)
|
|
@@ -6040,10 +6092,10 @@ export class KpiAdminClient extends AuthorizedApiBase {
|
|
|
6040
6092
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
6041
6093
|
return this.http.fetch(url_, transformedOptions_);
|
|
6042
6094
|
}).then((_response) => {
|
|
6043
|
-
return this.
|
|
6095
|
+
return this.processGetCalenderCapacityAdmin(_response);
|
|
6044
6096
|
});
|
|
6045
6097
|
}
|
|
6046
|
-
|
|
6098
|
+
processGetCalenderCapacityAdmin(response) {
|
|
6047
6099
|
const status = response.status;
|
|
6048
6100
|
let _headers = {};
|
|
6049
6101
|
if (response.headers && response.headers.forEach) {
|
|
@@ -6057,7 +6109,7 @@ export class KpiAdminClient extends AuthorizedApiBase {
|
|
|
6057
6109
|
if (Array.isArray(resultData200)) {
|
|
6058
6110
|
result200 = [];
|
|
6059
6111
|
for (let item of resultData200)
|
|
6060
|
-
result200.push(
|
|
6112
|
+
result200.push(CalenderCapacityDto.fromJS(item));
|
|
6061
6113
|
}
|
|
6062
6114
|
return result200;
|
|
6063
6115
|
});
|
|
@@ -6069,8 +6121,8 @@ export class KpiAdminClient extends AuthorizedApiBase {
|
|
|
6069
6121
|
}
|
|
6070
6122
|
return Promise.resolve(null);
|
|
6071
6123
|
}
|
|
6072
|
-
|
|
6073
|
-
let url_ = this.baseUrl + "/kpiadmin/
|
|
6124
|
+
updateCalenderCapacityAdmin(request) {
|
|
6125
|
+
let url_ = this.baseUrl + "/kpiadmin/calender";
|
|
6074
6126
|
url_ = url_.replace(/[?&]$/, "");
|
|
6075
6127
|
const content_ = JSON.stringify(request);
|
|
6076
6128
|
let options_ = {
|
|
@@ -6084,47 +6136,10 @@ export class KpiAdminClient extends AuthorizedApiBase {
|
|
|
6084
6136
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
6085
6137
|
return this.http.fetch(url_, transformedOptions_);
|
|
6086
6138
|
}).then((_response) => {
|
|
6087
|
-
return this.
|
|
6088
|
-
});
|
|
6089
|
-
}
|
|
6090
|
-
processUpdateCalendarCapacityAdmin(response) {
|
|
6091
|
-
const status = response.status;
|
|
6092
|
-
let _headers = {};
|
|
6093
|
-
if (response.headers && response.headers.forEach) {
|
|
6094
|
-
response.headers.forEach((v, k) => _headers[k] = v);
|
|
6095
|
-
}
|
|
6096
|
-
;
|
|
6097
|
-
if (status === 200) {
|
|
6098
|
-
return response.text().then((_responseText) => {
|
|
6099
|
-
let result200 = null;
|
|
6100
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
6101
|
-
result200 = CalendarCapacityDto.fromJS(resultData200);
|
|
6102
|
-
return result200;
|
|
6103
|
-
});
|
|
6104
|
-
}
|
|
6105
|
-
else if (status !== 200 && status !== 204) {
|
|
6106
|
-
return response.text().then((_responseText) => {
|
|
6107
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
6108
|
-
});
|
|
6109
|
-
}
|
|
6110
|
-
return Promise.resolve(null);
|
|
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);
|
|
6139
|
+
return this.processUpdateCalenderCapacityAdmin(_response);
|
|
6125
6140
|
});
|
|
6126
6141
|
}
|
|
6127
|
-
|
|
6142
|
+
processUpdateCalenderCapacityAdmin(response) {
|
|
6128
6143
|
const status = response.status;
|
|
6129
6144
|
let _headers = {};
|
|
6130
6145
|
if (response.headers && response.headers.forEach) {
|
|
@@ -6135,47 +6150,7 @@ export class KpiAdminClient extends AuthorizedApiBase {
|
|
|
6135
6150
|
return response.text().then((_responseText) => {
|
|
6136
6151
|
let result200 = null;
|
|
6137
6152
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
6138
|
-
result200 =
|
|
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);
|
|
6153
|
+
result200 = CalenderCapacityDto.fromJS(resultData200);
|
|
6179
6154
|
return result200;
|
|
6180
6155
|
});
|
|
6181
6156
|
}
|
|
@@ -23420,6 +23395,34 @@ export class NumericNullableValueWithTimestamp {
|
|
|
23420
23395
|
return data;
|
|
23421
23396
|
}
|
|
23422
23397
|
}
|
|
23398
|
+
export class ProgramDatapoint {
|
|
23399
|
+
constructor(data) {
|
|
23400
|
+
if (data) {
|
|
23401
|
+
for (var property in data) {
|
|
23402
|
+
if (data.hasOwnProperty(property))
|
|
23403
|
+
this[property] = data[property];
|
|
23404
|
+
}
|
|
23405
|
+
}
|
|
23406
|
+
}
|
|
23407
|
+
init(_data) {
|
|
23408
|
+
if (_data) {
|
|
23409
|
+
this.timestamp = _data["timestamp"];
|
|
23410
|
+
this.programValue = _data["programValue"];
|
|
23411
|
+
}
|
|
23412
|
+
}
|
|
23413
|
+
static fromJS(data) {
|
|
23414
|
+
data = typeof data === 'object' ? data : {};
|
|
23415
|
+
let result = new ProgramDatapoint();
|
|
23416
|
+
result.init(data);
|
|
23417
|
+
return result;
|
|
23418
|
+
}
|
|
23419
|
+
toJSON(data) {
|
|
23420
|
+
data = typeof data === 'object' ? data : {};
|
|
23421
|
+
data["timestamp"] = this.timestamp;
|
|
23422
|
+
data["programValue"] = this.programValue;
|
|
23423
|
+
return data;
|
|
23424
|
+
}
|
|
23425
|
+
}
|
|
23423
23426
|
export class UserAppDto {
|
|
23424
23427
|
constructor(data) {
|
|
23425
23428
|
if (data) {
|
|
@@ -29301,7 +29304,7 @@ export class UpdateMachinesCapacity {
|
|
|
29301
29304
|
return data;
|
|
29302
29305
|
}
|
|
29303
29306
|
}
|
|
29304
|
-
export class
|
|
29307
|
+
export class CalenderCapacityDto {
|
|
29305
29308
|
constructor(data) {
|
|
29306
29309
|
if (data) {
|
|
29307
29310
|
for (var property in data) {
|
|
@@ -29314,12 +29317,11 @@ export class CalendarDayDto {
|
|
|
29314
29317
|
if (_data) {
|
|
29315
29318
|
this.date = _data["date"] ? new Date(_data["date"].toString()) : undefined;
|
|
29316
29319
|
this.dayCapacity = _data["dayCapacity"];
|
|
29317
|
-
this.capacityHours = _data["capacityHours"];
|
|
29318
29320
|
}
|
|
29319
29321
|
}
|
|
29320
29322
|
static fromJS(data) {
|
|
29321
29323
|
data = typeof data === 'object' ? data : {};
|
|
29322
|
-
let result = new
|
|
29324
|
+
let result = new CalenderCapacityDto();
|
|
29323
29325
|
result.init(data);
|
|
29324
29326
|
return result;
|
|
29325
29327
|
}
|
|
@@ -29327,11 +29329,10 @@ export class CalendarDayDto {
|
|
|
29327
29329
|
data = typeof data === 'object' ? data : {};
|
|
29328
29330
|
data["date"] = this.date ? this.date.toISOString() : undefined;
|
|
29329
29331
|
data["dayCapacity"] = this.dayCapacity;
|
|
29330
|
-
data["capacityHours"] = this.capacityHours;
|
|
29331
29332
|
return data;
|
|
29332
29333
|
}
|
|
29333
29334
|
}
|
|
29334
|
-
export class
|
|
29335
|
+
export class UpdateCalenderCapacity {
|
|
29335
29336
|
constructor(data) {
|
|
29336
29337
|
if (data) {
|
|
29337
29338
|
for (var property in data) {
|
|
@@ -29348,7 +29349,7 @@ export class CalendarCapacityDto {
|
|
|
29348
29349
|
}
|
|
29349
29350
|
static fromJS(data) {
|
|
29350
29351
|
data = typeof data === 'object' ? data : {};
|
|
29351
|
-
let result = new
|
|
29352
|
+
let result = new UpdateCalenderCapacity();
|
|
29352
29353
|
result.init(data);
|
|
29353
29354
|
return result;
|
|
29354
29355
|
}
|
|
@@ -29359,118 +29360,6 @@ export class CalendarCapacityDto {
|
|
|
29359
29360
|
return data;
|
|
29360
29361
|
}
|
|
29361
29362
|
}
|
|
29362
|
-
export class UpdateCalendarCapacity {
|
|
29363
|
-
constructor(data) {
|
|
29364
|
-
if (data) {
|
|
29365
|
-
for (var property in data) {
|
|
29366
|
-
if (data.hasOwnProperty(property))
|
|
29367
|
-
this[property] = data[property];
|
|
29368
|
-
}
|
|
29369
|
-
}
|
|
29370
|
-
}
|
|
29371
|
-
init(_data) {
|
|
29372
|
-
if (_data) {
|
|
29373
|
-
this.date = _data["date"] ? new Date(_data["date"].toString()) : undefined;
|
|
29374
|
-
this.dayCapacity = _data["dayCapacity"];
|
|
29375
|
-
}
|
|
29376
|
-
}
|
|
29377
|
-
static fromJS(data) {
|
|
29378
|
-
data = typeof data === 'object' ? data : {};
|
|
29379
|
-
let result = new UpdateCalendarCapacity();
|
|
29380
|
-
result.init(data);
|
|
29381
|
-
return result;
|
|
29382
|
-
}
|
|
29383
|
-
toJSON(data) {
|
|
29384
|
-
data = typeof data === 'object' ? data : {};
|
|
29385
|
-
data["date"] = this.date ? this.date.toISOString() : undefined;
|
|
29386
|
-
data["dayCapacity"] = this.dayCapacity;
|
|
29387
|
-
return data;
|
|
29388
|
-
}
|
|
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
|
-
}
|
|
29474
29363
|
export class MachineKpiDto {
|
|
29475
29364
|
constructor(data) {
|
|
29476
29365
|
if (data) {
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -716,6 +716,8 @@ 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[]>;
|
|
719
721
|
}
|
|
720
722
|
|
|
721
723
|
export class MachineUtilizationClient extends AuthorizedApiBase implements IMachineUtilizationClient {
|
|
@@ -1091,6 +1093,57 @@ export class MachineUtilizationClient extends AuthorizedApiBase implements IMach
|
|
|
1091
1093
|
}
|
|
1092
1094
|
return Promise.resolve<PowerOnUtilizationDto>(null as any);
|
|
1093
1095
|
}
|
|
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
|
+
}
|
|
1094
1147
|
}
|
|
1095
1148
|
|
|
1096
1149
|
export interface IMeClient {
|
|
@@ -6373,13 +6426,9 @@ export interface IKpiAdminClient {
|
|
|
6373
6426
|
|
|
6374
6427
|
updateMachineCapacityAdmin(request: UpdateMachinesCapacity): Promise<MachineCapacityDto>;
|
|
6375
6428
|
|
|
6376
|
-
|
|
6377
|
-
|
|
6378
|
-
updateCalendarCapacityAdmin(request: UpdateCalendarCapacity): Promise<CalendarCapacityDto>;
|
|
6379
|
-
|
|
6380
|
-
getCalendarSettings(): Promise<CalendarSettingsDto>;
|
|
6429
|
+
getCalenderCapacityAdmin(startDate: Date | undefined, endDate: Date | undefined): Promise<CalenderCapacityDto[]>;
|
|
6381
6430
|
|
|
6382
|
-
|
|
6431
|
+
updateCalenderCapacityAdmin(request: UpdateCalenderCapacity): Promise<CalenderCapacityDto>;
|
|
6383
6432
|
}
|
|
6384
6433
|
|
|
6385
6434
|
export class KpiAdminClient extends AuthorizedApiBase implements IKpiAdminClient {
|
|
@@ -6473,8 +6522,8 @@ export class KpiAdminClient extends AuthorizedApiBase implements IKpiAdminClient
|
|
|
6473
6522
|
return Promise.resolve<MachineCapacityDto>(null as any);
|
|
6474
6523
|
}
|
|
6475
6524
|
|
|
6476
|
-
|
|
6477
|
-
let url_ = this.baseUrl + "/kpiadmin/
|
|
6525
|
+
getCalenderCapacityAdmin(startDate: Date | undefined, endDate: Date | undefined): Promise<CalenderCapacityDto[]> {
|
|
6526
|
+
let url_ = this.baseUrl + "/kpiadmin/calender?";
|
|
6478
6527
|
if (startDate === null)
|
|
6479
6528
|
throw new Error("The parameter 'startDate' cannot be null.");
|
|
6480
6529
|
else if (startDate !== undefined)
|
|
@@ -6495,11 +6544,11 @@ export class KpiAdminClient extends AuthorizedApiBase implements IKpiAdminClient
|
|
|
6495
6544
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
6496
6545
|
return this.http.fetch(url_, transformedOptions_);
|
|
6497
6546
|
}).then((_response: Response) => {
|
|
6498
|
-
return this.
|
|
6547
|
+
return this.processGetCalenderCapacityAdmin(_response);
|
|
6499
6548
|
});
|
|
6500
6549
|
}
|
|
6501
6550
|
|
|
6502
|
-
protected
|
|
6551
|
+
protected processGetCalenderCapacityAdmin(response: Response): Promise<CalenderCapacityDto[]> {
|
|
6503
6552
|
const status = response.status;
|
|
6504
6553
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
6505
6554
|
if (status === 200) {
|
|
@@ -6509,7 +6558,7 @@ export class KpiAdminClient extends AuthorizedApiBase implements IKpiAdminClient
|
|
|
6509
6558
|
if (Array.isArray(resultData200)) {
|
|
6510
6559
|
result200 = [] as any;
|
|
6511
6560
|
for (let item of resultData200)
|
|
6512
|
-
result200!.push(
|
|
6561
|
+
result200!.push(CalenderCapacityDto.fromJS(item));
|
|
6513
6562
|
}
|
|
6514
6563
|
return result200;
|
|
6515
6564
|
});
|
|
@@ -6518,11 +6567,11 @@ export class KpiAdminClient extends AuthorizedApiBase implements IKpiAdminClient
|
|
|
6518
6567
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
6519
6568
|
});
|
|
6520
6569
|
}
|
|
6521
|
-
return Promise.resolve<
|
|
6570
|
+
return Promise.resolve<CalenderCapacityDto[]>(null as any);
|
|
6522
6571
|
}
|
|
6523
6572
|
|
|
6524
|
-
|
|
6525
|
-
let url_ = this.baseUrl + "/kpiadmin/
|
|
6573
|
+
updateCalenderCapacityAdmin(request: UpdateCalenderCapacity): Promise<CalenderCapacityDto> {
|
|
6574
|
+
let url_ = this.baseUrl + "/kpiadmin/calender";
|
|
6526
6575
|
url_ = url_.replace(/[?&]$/, "");
|
|
6527
6576
|
|
|
6528
6577
|
const content_ = JSON.stringify(request);
|
|
@@ -6539,18 +6588,18 @@ export class KpiAdminClient extends AuthorizedApiBase implements IKpiAdminClient
|
|
|
6539
6588
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
6540
6589
|
return this.http.fetch(url_, transformedOptions_);
|
|
6541
6590
|
}).then((_response: Response) => {
|
|
6542
|
-
return this.
|
|
6591
|
+
return this.processUpdateCalenderCapacityAdmin(_response);
|
|
6543
6592
|
});
|
|
6544
6593
|
}
|
|
6545
6594
|
|
|
6546
|
-
protected
|
|
6595
|
+
protected processUpdateCalenderCapacityAdmin(response: Response): Promise<CalenderCapacityDto> {
|
|
6547
6596
|
const status = response.status;
|
|
6548
6597
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
6549
6598
|
if (status === 200) {
|
|
6550
6599
|
return response.text().then((_responseText) => {
|
|
6551
6600
|
let result200: any = null;
|
|
6552
6601
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
6553
|
-
result200 =
|
|
6602
|
+
result200 = CalenderCapacityDto.fromJS(resultData200);
|
|
6554
6603
|
return result200;
|
|
6555
6604
|
});
|
|
6556
6605
|
} else if (status !== 200 && status !== 204) {
|
|
@@ -6558,83 +6607,7 @@ export class KpiAdminClient extends AuthorizedApiBase implements IKpiAdminClient
|
|
|
6558
6607
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
6559
6608
|
});
|
|
6560
6609
|
}
|
|
6561
|
-
return Promise.resolve<
|
|
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);
|
|
6610
|
+
return Promise.resolve<CalenderCapacityDto>(null as any);
|
|
6638
6611
|
}
|
|
6639
6612
|
}
|
|
6640
6613
|
|
|
@@ -25330,6 +25303,46 @@ export interface INumericNullableValueWithTimestamp {
|
|
|
25330
25303
|
value?: number | null;
|
|
25331
25304
|
}
|
|
25332
25305
|
|
|
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
|
+
|
|
25333
25346
|
export class UserAppDto implements IUserAppDto {
|
|
25334
25347
|
key!: string;
|
|
25335
25348
|
name!: string;
|
|
@@ -33975,12 +33988,11 @@ export interface IUpdateMachinesCapacity {
|
|
|
33975
33988
|
capacity?: MachineCapacitySettingsDto[] | null;
|
|
33976
33989
|
}
|
|
33977
33990
|
|
|
33978
|
-
export class
|
|
33991
|
+
export class CalenderCapacityDto implements ICalenderCapacityDto {
|
|
33979
33992
|
date?: Date;
|
|
33980
|
-
dayCapacity?:
|
|
33981
|
-
capacityHours?: number;
|
|
33993
|
+
dayCapacity?: CalenderDayCapacityDto;
|
|
33982
33994
|
|
|
33983
|
-
constructor(data?:
|
|
33995
|
+
constructor(data?: ICalenderCapacityDto) {
|
|
33984
33996
|
if (data) {
|
|
33985
33997
|
for (var property in data) {
|
|
33986
33998
|
if (data.hasOwnProperty(property))
|
|
@@ -33993,13 +34005,12 @@ export class CalendarDayDto implements ICalendarDayDto {
|
|
|
33993
34005
|
if (_data) {
|
|
33994
34006
|
this.date = _data["date"] ? new Date(_data["date"].toString()) : <any>undefined;
|
|
33995
34007
|
this.dayCapacity = _data["dayCapacity"];
|
|
33996
|
-
this.capacityHours = _data["capacityHours"];
|
|
33997
34008
|
}
|
|
33998
34009
|
}
|
|
33999
34010
|
|
|
34000
|
-
static fromJS(data: any):
|
|
34011
|
+
static fromJS(data: any): CalenderCapacityDto {
|
|
34001
34012
|
data = typeof data === 'object' ? data : {};
|
|
34002
|
-
let result = new
|
|
34013
|
+
let result = new CalenderCapacityDto();
|
|
34003
34014
|
result.init(data);
|
|
34004
34015
|
return result;
|
|
34005
34016
|
}
|
|
@@ -34008,64 +34019,22 @@ export class CalendarDayDto implements ICalendarDayDto {
|
|
|
34008
34019
|
data = typeof data === 'object' ? data : {};
|
|
34009
34020
|
data["date"] = this.date ? this.date.toISOString() : <any>undefined;
|
|
34010
34021
|
data["dayCapacity"] = this.dayCapacity;
|
|
34011
|
-
data["capacityHours"] = this.capacityHours;
|
|
34012
34022
|
return data;
|
|
34013
34023
|
}
|
|
34014
34024
|
}
|
|
34015
34025
|
|
|
34016
|
-
export interface
|
|
34026
|
+
export interface ICalenderCapacityDto {
|
|
34017
34027
|
date?: Date;
|
|
34018
|
-
dayCapacity?:
|
|
34019
|
-
capacityHours?: number;
|
|
34020
|
-
}
|
|
34021
|
-
|
|
34022
|
-
export type CalendarDayCapacityDto = "WorkingDay" | "HalfDay" | "Holiday";
|
|
34023
|
-
|
|
34024
|
-
export class CalendarCapacityDto implements ICalendarCapacityDto {
|
|
34025
|
-
date?: Date;
|
|
34026
|
-
dayCapacity?: CalendarDayCapacityDto;
|
|
34027
|
-
|
|
34028
|
-
constructor(data?: ICalendarCapacityDto) {
|
|
34029
|
-
if (data) {
|
|
34030
|
-
for (var property in data) {
|
|
34031
|
-
if (data.hasOwnProperty(property))
|
|
34032
|
-
(<any>this)[property] = (<any>data)[property];
|
|
34033
|
-
}
|
|
34034
|
-
}
|
|
34035
|
-
}
|
|
34036
|
-
|
|
34037
|
-
init(_data?: any) {
|
|
34038
|
-
if (_data) {
|
|
34039
|
-
this.date = _data["date"] ? new Date(_data["date"].toString()) : <any>undefined;
|
|
34040
|
-
this.dayCapacity = _data["dayCapacity"];
|
|
34041
|
-
}
|
|
34042
|
-
}
|
|
34043
|
-
|
|
34044
|
-
static fromJS(data: any): CalendarCapacityDto {
|
|
34045
|
-
data = typeof data === 'object' ? data : {};
|
|
34046
|
-
let result = new CalendarCapacityDto();
|
|
34047
|
-
result.init(data);
|
|
34048
|
-
return result;
|
|
34049
|
-
}
|
|
34050
|
-
|
|
34051
|
-
toJSON(data?: any) {
|
|
34052
|
-
data = typeof data === 'object' ? data : {};
|
|
34053
|
-
data["date"] = this.date ? this.date.toISOString() : <any>undefined;
|
|
34054
|
-
data["dayCapacity"] = this.dayCapacity;
|
|
34055
|
-
return data;
|
|
34056
|
-
}
|
|
34028
|
+
dayCapacity?: CalenderDayCapacityDto;
|
|
34057
34029
|
}
|
|
34058
34030
|
|
|
34059
|
-
export
|
|
34060
|
-
date?: Date;
|
|
34061
|
-
dayCapacity?: CalendarDayCapacityDto;
|
|
34062
|
-
}
|
|
34031
|
+
export type CalenderDayCapacityDto = "WorkingDay" | "HalfDay" | "Holiday";
|
|
34063
34032
|
|
|
34064
|
-
export class
|
|
34033
|
+
export class UpdateCalenderCapacity implements IUpdateCalenderCapacity {
|
|
34065
34034
|
date?: Date;
|
|
34066
|
-
dayCapacity?:
|
|
34035
|
+
dayCapacity?: CalenderDayCapacityDto;
|
|
34067
34036
|
|
|
34068
|
-
constructor(data?:
|
|
34037
|
+
constructor(data?: IUpdateCalenderCapacity) {
|
|
34069
34038
|
if (data) {
|
|
34070
34039
|
for (var property in data) {
|
|
34071
34040
|
if (data.hasOwnProperty(property))
|
|
@@ -34081,9 +34050,9 @@ export class UpdateCalendarCapacity implements IUpdateCalendarCapacity {
|
|
|
34081
34050
|
}
|
|
34082
34051
|
}
|
|
34083
34052
|
|
|
34084
|
-
static fromJS(data: any):
|
|
34053
|
+
static fromJS(data: any): UpdateCalenderCapacity {
|
|
34085
34054
|
data = typeof data === 'object' ? data : {};
|
|
34086
|
-
let result = new
|
|
34055
|
+
let result = new UpdateCalenderCapacity();
|
|
34087
34056
|
result.init(data);
|
|
34088
34057
|
return result;
|
|
34089
34058
|
}
|
|
@@ -34096,123 +34065,9 @@ export class UpdateCalendarCapacity implements IUpdateCalendarCapacity {
|
|
|
34096
34065
|
}
|
|
34097
34066
|
}
|
|
34098
34067
|
|
|
34099
|
-
export interface
|
|
34068
|
+
export interface IUpdateCalenderCapacity {
|
|
34100
34069
|
date?: Date;
|
|
34101
|
-
dayCapacity?:
|
|
34102
|
-
}
|
|
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;
|
|
34070
|
+
dayCapacity?: CalenderDayCapacityDto;
|
|
34216
34071
|
}
|
|
34217
34072
|
|
|
34218
34073
|
export class MachineKpiDto implements IMachineKpiDto {
|