@ignos/api-client 20260513.126.1-alpha → 20260518.128.1-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 +224 -108
- package/lib/ignosportal-api.js +455 -1
- package/package.json +1 -1
- package/src/ignosportal-api.ts +668 -110
package/src/ignosportal-api.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
//----------------------
|
|
2
2
|
// <auto-generated>
|
|
3
|
-
// Generated using the NSwag toolchain v14.
|
|
3
|
+
// Generated using the NSwag toolchain v14.7.1.0 (NJsonSchema v11.6.1.0 (Newtonsoft.Json v13.0.0.0)) (http://NSwag.org)
|
|
4
4
|
// </auto-generated>
|
|
5
5
|
//----------------------
|
|
6
6
|
|
|
@@ -4839,6 +4839,483 @@ export class KpiAdminResourceClient extends AuthorizedApiBase implements IKpiAdm
|
|
|
4839
4839
|
}
|
|
4840
4840
|
}
|
|
4841
4841
|
|
|
4842
|
+
export interface IKpiCalendarClient {
|
|
4843
|
+
|
|
4844
|
+
listCalendarDefinitions(): Promise<CalendarDefinitionDto[]>;
|
|
4845
|
+
|
|
4846
|
+
createCalendarDefinition(request: CreateCalendarDefinition): Promise<CalendarDefinitionDto>;
|
|
4847
|
+
|
|
4848
|
+
updateCalendarDefinition(id: string, request: UpdateCalendarDefinitionRequest): Promise<CalendarDefinitionDto>;
|
|
4849
|
+
|
|
4850
|
+
deleteCalendarDefinition(id: string): Promise<FileResponse>;
|
|
4851
|
+
|
|
4852
|
+
listResourceCalendarPeriods(): Promise<ResourceCalendarPeriodSchedulesDto>;
|
|
4853
|
+
|
|
4854
|
+
addResourceCalendarPeriod(request: AddResourceCalendarPeriod): Promise<ResourceCalendarPeriodDto>;
|
|
4855
|
+
|
|
4856
|
+
deleteResourceCalendarPeriods(request: DeleteResourceCalendarPeriod): Promise<FileResponse>;
|
|
4857
|
+
|
|
4858
|
+
updateResourceCalendarPeriod(resourceExternalId: string, effectiveFrom: string, request: UpdateResourceCalendarPeriodRequest): Promise<ResourceCalendarPeriodDto>;
|
|
4859
|
+
|
|
4860
|
+
bulkAddResourceCalendarPeriods(request: BulkAddResourceCalendarPeriods): Promise<ResourceCalendarPeriodDto[]>;
|
|
4861
|
+
|
|
4862
|
+
copyResourceCalendarPeriod(sourceResourceExternalId: string, sourceEffectiveFrom: string, request: CopyResourceCalendarPeriodRequest): Promise<ResourceCalendarPeriodDto>;
|
|
4863
|
+
|
|
4864
|
+
migrateCapacityToSchedules(): Promise<MigrationResultDto>;
|
|
4865
|
+
}
|
|
4866
|
+
|
|
4867
|
+
export class KpiCalendarClient extends AuthorizedApiBase implements IKpiCalendarClient {
|
|
4868
|
+
private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
|
|
4869
|
+
private baseUrl: string;
|
|
4870
|
+
|
|
4871
|
+
constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
|
|
4872
|
+
super(configuration);
|
|
4873
|
+
this.http = http ? http : window as any;
|
|
4874
|
+
this.baseUrl = baseUrl ?? "";
|
|
4875
|
+
}
|
|
4876
|
+
|
|
4877
|
+
listCalendarDefinitions(): Promise<CalendarDefinitionDto[]> {
|
|
4878
|
+
let url_ = this.baseUrl + "/resources/kpi/calendar-definitions";
|
|
4879
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
4880
|
+
|
|
4881
|
+
let options_: RequestInit = {
|
|
4882
|
+
method: "GET",
|
|
4883
|
+
headers: {
|
|
4884
|
+
"Accept": "application/json"
|
|
4885
|
+
}
|
|
4886
|
+
};
|
|
4887
|
+
|
|
4888
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
4889
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
4890
|
+
}).then((_response: Response) => {
|
|
4891
|
+
return this.processListCalendarDefinitions(_response);
|
|
4892
|
+
});
|
|
4893
|
+
}
|
|
4894
|
+
|
|
4895
|
+
protected processListCalendarDefinitions(response: Response): Promise<CalendarDefinitionDto[]> {
|
|
4896
|
+
const status = response.status;
|
|
4897
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
4898
|
+
if (status === 200) {
|
|
4899
|
+
return response.text().then((_responseText) => {
|
|
4900
|
+
let result200: any = null;
|
|
4901
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as CalendarDefinitionDto[];
|
|
4902
|
+
return result200;
|
|
4903
|
+
});
|
|
4904
|
+
} else if (status !== 200 && status !== 204) {
|
|
4905
|
+
return response.text().then((_responseText) => {
|
|
4906
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
4907
|
+
});
|
|
4908
|
+
}
|
|
4909
|
+
return Promise.resolve<CalendarDefinitionDto[]>(null as any);
|
|
4910
|
+
}
|
|
4911
|
+
|
|
4912
|
+
createCalendarDefinition(request: CreateCalendarDefinition): Promise<CalendarDefinitionDto> {
|
|
4913
|
+
let url_ = this.baseUrl + "/resources/kpi/calendar-definitions";
|
|
4914
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
4915
|
+
|
|
4916
|
+
const content_ = JSON.stringify(request);
|
|
4917
|
+
|
|
4918
|
+
let options_: RequestInit = {
|
|
4919
|
+
body: content_,
|
|
4920
|
+
method: "POST",
|
|
4921
|
+
headers: {
|
|
4922
|
+
"Content-Type": "application/json",
|
|
4923
|
+
"Accept": "application/json"
|
|
4924
|
+
}
|
|
4925
|
+
};
|
|
4926
|
+
|
|
4927
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
4928
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
4929
|
+
}).then((_response: Response) => {
|
|
4930
|
+
return this.processCreateCalendarDefinition(_response);
|
|
4931
|
+
});
|
|
4932
|
+
}
|
|
4933
|
+
|
|
4934
|
+
protected processCreateCalendarDefinition(response: Response): Promise<CalendarDefinitionDto> {
|
|
4935
|
+
const status = response.status;
|
|
4936
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
4937
|
+
if (status === 200) {
|
|
4938
|
+
return response.text().then((_responseText) => {
|
|
4939
|
+
let result200: any = null;
|
|
4940
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as CalendarDefinitionDto;
|
|
4941
|
+
return result200;
|
|
4942
|
+
});
|
|
4943
|
+
} else if (status !== 200 && status !== 204) {
|
|
4944
|
+
return response.text().then((_responseText) => {
|
|
4945
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
4946
|
+
});
|
|
4947
|
+
}
|
|
4948
|
+
return Promise.resolve<CalendarDefinitionDto>(null as any);
|
|
4949
|
+
}
|
|
4950
|
+
|
|
4951
|
+
updateCalendarDefinition(id: string, request: UpdateCalendarDefinitionRequest): Promise<CalendarDefinitionDto> {
|
|
4952
|
+
let url_ = this.baseUrl + "/resources/kpi/calendar-definitions/{id}";
|
|
4953
|
+
if (id === undefined || id === null)
|
|
4954
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
4955
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
4956
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
4957
|
+
|
|
4958
|
+
const content_ = JSON.stringify(request);
|
|
4959
|
+
|
|
4960
|
+
let options_: RequestInit = {
|
|
4961
|
+
body: content_,
|
|
4962
|
+
method: "PUT",
|
|
4963
|
+
headers: {
|
|
4964
|
+
"Content-Type": "application/json",
|
|
4965
|
+
"Accept": "application/json"
|
|
4966
|
+
}
|
|
4967
|
+
};
|
|
4968
|
+
|
|
4969
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
4970
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
4971
|
+
}).then((_response: Response) => {
|
|
4972
|
+
return this.processUpdateCalendarDefinition(_response);
|
|
4973
|
+
});
|
|
4974
|
+
}
|
|
4975
|
+
|
|
4976
|
+
protected processUpdateCalendarDefinition(response: Response): Promise<CalendarDefinitionDto> {
|
|
4977
|
+
const status = response.status;
|
|
4978
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
4979
|
+
if (status === 200) {
|
|
4980
|
+
return response.text().then((_responseText) => {
|
|
4981
|
+
let result200: any = null;
|
|
4982
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as CalendarDefinitionDto;
|
|
4983
|
+
return result200;
|
|
4984
|
+
});
|
|
4985
|
+
} else if (status !== 200 && status !== 204) {
|
|
4986
|
+
return response.text().then((_responseText) => {
|
|
4987
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
4988
|
+
});
|
|
4989
|
+
}
|
|
4990
|
+
return Promise.resolve<CalendarDefinitionDto>(null as any);
|
|
4991
|
+
}
|
|
4992
|
+
|
|
4993
|
+
deleteCalendarDefinition(id: string): Promise<FileResponse> {
|
|
4994
|
+
let url_ = this.baseUrl + "/resources/kpi/calendar-definitions/{id}";
|
|
4995
|
+
if (id === undefined || id === null)
|
|
4996
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
4997
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
4998
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
4999
|
+
|
|
5000
|
+
let options_: RequestInit = {
|
|
5001
|
+
method: "DELETE",
|
|
5002
|
+
headers: {
|
|
5003
|
+
"Accept": "application/octet-stream"
|
|
5004
|
+
}
|
|
5005
|
+
};
|
|
5006
|
+
|
|
5007
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
5008
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
5009
|
+
}).then((_response: Response) => {
|
|
5010
|
+
return this.processDeleteCalendarDefinition(_response);
|
|
5011
|
+
});
|
|
5012
|
+
}
|
|
5013
|
+
|
|
5014
|
+
protected processDeleteCalendarDefinition(response: Response): Promise<FileResponse> {
|
|
5015
|
+
const status = response.status;
|
|
5016
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
5017
|
+
if (status === 200 || status === 206) {
|
|
5018
|
+
const contentDisposition = response.headers ? response.headers.get("content-disposition") : undefined;
|
|
5019
|
+
let fileNameMatch = contentDisposition ? /filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(contentDisposition) : undefined;
|
|
5020
|
+
let fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[3] || fileNameMatch[2] : undefined;
|
|
5021
|
+
if (fileName) {
|
|
5022
|
+
fileName = decodeURIComponent(fileName);
|
|
5023
|
+
} else {
|
|
5024
|
+
fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
|
|
5025
|
+
fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
|
|
5026
|
+
}
|
|
5027
|
+
return response.blob().then(blob => { return { fileName: fileName, data: blob, status: status, headers: _headers }; });
|
|
5028
|
+
} else if (status !== 200 && status !== 204) {
|
|
5029
|
+
return response.text().then((_responseText) => {
|
|
5030
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
5031
|
+
});
|
|
5032
|
+
}
|
|
5033
|
+
return Promise.resolve<FileResponse>(null as any);
|
|
5034
|
+
}
|
|
5035
|
+
|
|
5036
|
+
listResourceCalendarPeriods(): Promise<ResourceCalendarPeriodSchedulesDto> {
|
|
5037
|
+
let url_ = this.baseUrl + "/resources/kpi/calendar-periods";
|
|
5038
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
5039
|
+
|
|
5040
|
+
let options_: RequestInit = {
|
|
5041
|
+
method: "GET",
|
|
5042
|
+
headers: {
|
|
5043
|
+
"Accept": "application/json"
|
|
5044
|
+
}
|
|
5045
|
+
};
|
|
5046
|
+
|
|
5047
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
5048
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
5049
|
+
}).then((_response: Response) => {
|
|
5050
|
+
return this.processListResourceCalendarPeriods(_response);
|
|
5051
|
+
});
|
|
5052
|
+
}
|
|
5053
|
+
|
|
5054
|
+
protected processListResourceCalendarPeriods(response: Response): Promise<ResourceCalendarPeriodSchedulesDto> {
|
|
5055
|
+
const status = response.status;
|
|
5056
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
5057
|
+
if (status === 200) {
|
|
5058
|
+
return response.text().then((_responseText) => {
|
|
5059
|
+
let result200: any = null;
|
|
5060
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as ResourceCalendarPeriodSchedulesDto;
|
|
5061
|
+
return result200;
|
|
5062
|
+
});
|
|
5063
|
+
} else if (status !== 200 && status !== 204) {
|
|
5064
|
+
return response.text().then((_responseText) => {
|
|
5065
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
5066
|
+
});
|
|
5067
|
+
}
|
|
5068
|
+
return Promise.resolve<ResourceCalendarPeriodSchedulesDto>(null as any);
|
|
5069
|
+
}
|
|
5070
|
+
|
|
5071
|
+
addResourceCalendarPeriod(request: AddResourceCalendarPeriod): Promise<ResourceCalendarPeriodDto> {
|
|
5072
|
+
let url_ = this.baseUrl + "/resources/kpi/calendar-periods";
|
|
5073
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
5074
|
+
|
|
5075
|
+
const content_ = JSON.stringify(request);
|
|
5076
|
+
|
|
5077
|
+
let options_: RequestInit = {
|
|
5078
|
+
body: content_,
|
|
5079
|
+
method: "POST",
|
|
5080
|
+
headers: {
|
|
5081
|
+
"Content-Type": "application/json",
|
|
5082
|
+
"Accept": "application/json"
|
|
5083
|
+
}
|
|
5084
|
+
};
|
|
5085
|
+
|
|
5086
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
5087
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
5088
|
+
}).then((_response: Response) => {
|
|
5089
|
+
return this.processAddResourceCalendarPeriod(_response);
|
|
5090
|
+
});
|
|
5091
|
+
}
|
|
5092
|
+
|
|
5093
|
+
protected processAddResourceCalendarPeriod(response: Response): Promise<ResourceCalendarPeriodDto> {
|
|
5094
|
+
const status = response.status;
|
|
5095
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
5096
|
+
if (status === 200) {
|
|
5097
|
+
return response.text().then((_responseText) => {
|
|
5098
|
+
let result200: any = null;
|
|
5099
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as ResourceCalendarPeriodDto;
|
|
5100
|
+
return result200;
|
|
5101
|
+
});
|
|
5102
|
+
} else if (status !== 200 && status !== 204) {
|
|
5103
|
+
return response.text().then((_responseText) => {
|
|
5104
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
5105
|
+
});
|
|
5106
|
+
}
|
|
5107
|
+
return Promise.resolve<ResourceCalendarPeriodDto>(null as any);
|
|
5108
|
+
}
|
|
5109
|
+
|
|
5110
|
+
deleteResourceCalendarPeriods(request: DeleteResourceCalendarPeriod): Promise<FileResponse> {
|
|
5111
|
+
let url_ = this.baseUrl + "/resources/kpi/calendar-periods";
|
|
5112
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
5113
|
+
|
|
5114
|
+
const content_ = JSON.stringify(request);
|
|
5115
|
+
|
|
5116
|
+
let options_: RequestInit = {
|
|
5117
|
+
body: content_,
|
|
5118
|
+
method: "DELETE",
|
|
5119
|
+
headers: {
|
|
5120
|
+
"Content-Type": "application/json",
|
|
5121
|
+
"Accept": "application/octet-stream"
|
|
5122
|
+
}
|
|
5123
|
+
};
|
|
5124
|
+
|
|
5125
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
5126
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
5127
|
+
}).then((_response: Response) => {
|
|
5128
|
+
return this.processDeleteResourceCalendarPeriods(_response);
|
|
5129
|
+
});
|
|
5130
|
+
}
|
|
5131
|
+
|
|
5132
|
+
protected processDeleteResourceCalendarPeriods(response: Response): Promise<FileResponse> {
|
|
5133
|
+
const status = response.status;
|
|
5134
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
5135
|
+
if (status === 200 || status === 206) {
|
|
5136
|
+
const contentDisposition = response.headers ? response.headers.get("content-disposition") : undefined;
|
|
5137
|
+
let fileNameMatch = contentDisposition ? /filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(contentDisposition) : undefined;
|
|
5138
|
+
let fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[3] || fileNameMatch[2] : undefined;
|
|
5139
|
+
if (fileName) {
|
|
5140
|
+
fileName = decodeURIComponent(fileName);
|
|
5141
|
+
} else {
|
|
5142
|
+
fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
|
|
5143
|
+
fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
|
|
5144
|
+
}
|
|
5145
|
+
return response.blob().then(blob => { return { fileName: fileName, data: blob, status: status, headers: _headers }; });
|
|
5146
|
+
} else if (status !== 200 && status !== 204) {
|
|
5147
|
+
return response.text().then((_responseText) => {
|
|
5148
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
5149
|
+
});
|
|
5150
|
+
}
|
|
5151
|
+
return Promise.resolve<FileResponse>(null as any);
|
|
5152
|
+
}
|
|
5153
|
+
|
|
5154
|
+
updateResourceCalendarPeriod(resourceExternalId: string, effectiveFrom: string, request: UpdateResourceCalendarPeriodRequest): Promise<ResourceCalendarPeriodDto> {
|
|
5155
|
+
let url_ = this.baseUrl + "/resources/kpi/calendar-periods/{resourceExternalId}/{effectiveFrom}";
|
|
5156
|
+
if (resourceExternalId === undefined || resourceExternalId === null)
|
|
5157
|
+
throw new globalThis.Error("The parameter 'resourceExternalId' must be defined.");
|
|
5158
|
+
url_ = url_.replace("{resourceExternalId}", encodeURIComponent("" + resourceExternalId));
|
|
5159
|
+
if (effectiveFrom === undefined || effectiveFrom === null)
|
|
5160
|
+
throw new globalThis.Error("The parameter 'effectiveFrom' must be defined.");
|
|
5161
|
+
url_ = url_.replace("{effectiveFrom}", encodeURIComponent("" + effectiveFrom));
|
|
5162
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
5163
|
+
|
|
5164
|
+
const content_ = JSON.stringify(request);
|
|
5165
|
+
|
|
5166
|
+
let options_: RequestInit = {
|
|
5167
|
+
body: content_,
|
|
5168
|
+
method: "PUT",
|
|
5169
|
+
headers: {
|
|
5170
|
+
"Content-Type": "application/json",
|
|
5171
|
+
"Accept": "application/json"
|
|
5172
|
+
}
|
|
5173
|
+
};
|
|
5174
|
+
|
|
5175
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
5176
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
5177
|
+
}).then((_response: Response) => {
|
|
5178
|
+
return this.processUpdateResourceCalendarPeriod(_response);
|
|
5179
|
+
});
|
|
5180
|
+
}
|
|
5181
|
+
|
|
5182
|
+
protected processUpdateResourceCalendarPeriod(response: Response): Promise<ResourceCalendarPeriodDto> {
|
|
5183
|
+
const status = response.status;
|
|
5184
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
5185
|
+
if (status === 200) {
|
|
5186
|
+
return response.text().then((_responseText) => {
|
|
5187
|
+
let result200: any = null;
|
|
5188
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as ResourceCalendarPeriodDto;
|
|
5189
|
+
return result200;
|
|
5190
|
+
});
|
|
5191
|
+
} else if (status !== 200 && status !== 204) {
|
|
5192
|
+
return response.text().then((_responseText) => {
|
|
5193
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
5194
|
+
});
|
|
5195
|
+
}
|
|
5196
|
+
return Promise.resolve<ResourceCalendarPeriodDto>(null as any);
|
|
5197
|
+
}
|
|
5198
|
+
|
|
5199
|
+
bulkAddResourceCalendarPeriods(request: BulkAddResourceCalendarPeriods): Promise<ResourceCalendarPeriodDto[]> {
|
|
5200
|
+
let url_ = this.baseUrl + "/resources/kpi/calendar-periods/bulk";
|
|
5201
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
5202
|
+
|
|
5203
|
+
const content_ = JSON.stringify(request);
|
|
5204
|
+
|
|
5205
|
+
let options_: RequestInit = {
|
|
5206
|
+
body: content_,
|
|
5207
|
+
method: "POST",
|
|
5208
|
+
headers: {
|
|
5209
|
+
"Content-Type": "application/json",
|
|
5210
|
+
"Accept": "application/json"
|
|
5211
|
+
}
|
|
5212
|
+
};
|
|
5213
|
+
|
|
5214
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
5215
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
5216
|
+
}).then((_response: Response) => {
|
|
5217
|
+
return this.processBulkAddResourceCalendarPeriods(_response);
|
|
5218
|
+
});
|
|
5219
|
+
}
|
|
5220
|
+
|
|
5221
|
+
protected processBulkAddResourceCalendarPeriods(response: Response): Promise<ResourceCalendarPeriodDto[]> {
|
|
5222
|
+
const status = response.status;
|
|
5223
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
5224
|
+
if (status === 200) {
|
|
5225
|
+
return response.text().then((_responseText) => {
|
|
5226
|
+
let result200: any = null;
|
|
5227
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as ResourceCalendarPeriodDto[];
|
|
5228
|
+
return result200;
|
|
5229
|
+
});
|
|
5230
|
+
} else if (status !== 200 && status !== 204) {
|
|
5231
|
+
return response.text().then((_responseText) => {
|
|
5232
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
5233
|
+
});
|
|
5234
|
+
}
|
|
5235
|
+
return Promise.resolve<ResourceCalendarPeriodDto[]>(null as any);
|
|
5236
|
+
}
|
|
5237
|
+
|
|
5238
|
+
copyResourceCalendarPeriod(sourceResourceExternalId: string, sourceEffectiveFrom: string, request: CopyResourceCalendarPeriodRequest): Promise<ResourceCalendarPeriodDto> {
|
|
5239
|
+
let url_ = this.baseUrl + "/resources/kpi/calendar-periods/{sourceResourceExternalId}/{sourceEffectiveFrom}/copy";
|
|
5240
|
+
if (sourceResourceExternalId === undefined || sourceResourceExternalId === null)
|
|
5241
|
+
throw new globalThis.Error("The parameter 'sourceResourceExternalId' must be defined.");
|
|
5242
|
+
url_ = url_.replace("{sourceResourceExternalId}", encodeURIComponent("" + sourceResourceExternalId));
|
|
5243
|
+
if (sourceEffectiveFrom === undefined || sourceEffectiveFrom === null)
|
|
5244
|
+
throw new globalThis.Error("The parameter 'sourceEffectiveFrom' must be defined.");
|
|
5245
|
+
url_ = url_.replace("{sourceEffectiveFrom}", encodeURIComponent("" + sourceEffectiveFrom));
|
|
5246
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
5247
|
+
|
|
5248
|
+
const content_ = JSON.stringify(request);
|
|
5249
|
+
|
|
5250
|
+
let options_: RequestInit = {
|
|
5251
|
+
body: content_,
|
|
5252
|
+
method: "POST",
|
|
5253
|
+
headers: {
|
|
5254
|
+
"Content-Type": "application/json",
|
|
5255
|
+
"Accept": "application/json"
|
|
5256
|
+
}
|
|
5257
|
+
};
|
|
5258
|
+
|
|
5259
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
5260
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
5261
|
+
}).then((_response: Response) => {
|
|
5262
|
+
return this.processCopyResourceCalendarPeriod(_response);
|
|
5263
|
+
});
|
|
5264
|
+
}
|
|
5265
|
+
|
|
5266
|
+
protected processCopyResourceCalendarPeriod(response: Response): Promise<ResourceCalendarPeriodDto> {
|
|
5267
|
+
const status = response.status;
|
|
5268
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
5269
|
+
if (status === 200) {
|
|
5270
|
+
return response.text().then((_responseText) => {
|
|
5271
|
+
let result200: any = null;
|
|
5272
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as ResourceCalendarPeriodDto;
|
|
5273
|
+
return result200;
|
|
5274
|
+
});
|
|
5275
|
+
} else if (status !== 200 && status !== 204) {
|
|
5276
|
+
return response.text().then((_responseText) => {
|
|
5277
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
5278
|
+
});
|
|
5279
|
+
}
|
|
5280
|
+
return Promise.resolve<ResourceCalendarPeriodDto>(null as any);
|
|
5281
|
+
}
|
|
5282
|
+
|
|
5283
|
+
migrateCapacityToSchedules(): Promise<MigrationResultDto> {
|
|
5284
|
+
let url_ = this.baseUrl + "/resources/kpi/calendar-periods/migrate-capacity";
|
|
5285
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
5286
|
+
|
|
5287
|
+
let options_: RequestInit = {
|
|
5288
|
+
method: "POST",
|
|
5289
|
+
headers: {
|
|
5290
|
+
"Accept": "application/json"
|
|
5291
|
+
}
|
|
5292
|
+
};
|
|
5293
|
+
|
|
5294
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
5295
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
5296
|
+
}).then((_response: Response) => {
|
|
5297
|
+
return this.processMigrateCapacityToSchedules(_response);
|
|
5298
|
+
});
|
|
5299
|
+
}
|
|
5300
|
+
|
|
5301
|
+
protected processMigrateCapacityToSchedules(response: Response): Promise<MigrationResultDto> {
|
|
5302
|
+
const status = response.status;
|
|
5303
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
5304
|
+
if (status === 200) {
|
|
5305
|
+
return response.text().then((_responseText) => {
|
|
5306
|
+
let result200: any = null;
|
|
5307
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as MigrationResultDto;
|
|
5308
|
+
return result200;
|
|
5309
|
+
});
|
|
5310
|
+
} else if (status !== 200 && status !== 204) {
|
|
5311
|
+
return response.text().then((_responseText) => {
|
|
5312
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
5313
|
+
});
|
|
5314
|
+
}
|
|
5315
|
+
return Promise.resolve<MigrationResultDto>(null as any);
|
|
5316
|
+
}
|
|
5317
|
+
}
|
|
5318
|
+
|
|
4842
5319
|
export interface IKpiResourceClient {
|
|
4843
5320
|
|
|
4844
5321
|
getResourceKpi(resourceExternalId: string | undefined, previousPeriodStartDate: Date | undefined, startDate: Date | undefined, endDate: Date | undefined, utcOffset: number | undefined): Promise<ResourceKpiDto>;
|
|
@@ -29880,15 +30357,15 @@ export interface DowntimePeriodReasonDto {
|
|
|
29880
30357
|
startTime: Date;
|
|
29881
30358
|
endTime?: Date | null;
|
|
29882
30359
|
assetId: number;
|
|
29883
|
-
comment
|
|
29884
|
-
companyId
|
|
30360
|
+
comment: string | null;
|
|
30361
|
+
companyId: string | null;
|
|
29885
30362
|
reasonId: string;
|
|
29886
30363
|
autoCompleteDowntime?: boolean | null;
|
|
29887
30364
|
createdBy?: EmployeeDto | null;
|
|
29888
30365
|
updatedBy?: EmployeeDto | null;
|
|
29889
|
-
workOrderId
|
|
29890
|
-
partNumber
|
|
29891
|
-
partName
|
|
30366
|
+
workOrderId: string | null;
|
|
30367
|
+
partNumber: string | null;
|
|
30368
|
+
partName: string | null;
|
|
29892
30369
|
}
|
|
29893
30370
|
|
|
29894
30371
|
export type DowntimeReasonTypeDto = "Unplanned" | "Planned";
|
|
@@ -29913,8 +30390,8 @@ export interface WorkOrderDatapoint {
|
|
|
29913
30390
|
}
|
|
29914
30391
|
|
|
29915
30392
|
export interface ProgramDatapoint {
|
|
29916
|
-
timestamp
|
|
29917
|
-
programValue
|
|
30393
|
+
timestamp: number;
|
|
30394
|
+
programValue: string;
|
|
29918
30395
|
}
|
|
29919
30396
|
|
|
29920
30397
|
export interface TimelineFilterDto {
|
|
@@ -29946,7 +30423,7 @@ export interface ListMachineUptimesTodayRequest {
|
|
|
29946
30423
|
}
|
|
29947
30424
|
|
|
29948
30425
|
export interface PowerOnUtilizationList {
|
|
29949
|
-
machines
|
|
30426
|
+
machines: Machine[];
|
|
29950
30427
|
}
|
|
29951
30428
|
|
|
29952
30429
|
export interface Machine {
|
|
@@ -30511,6 +30988,92 @@ export interface UpdateCalendarSettingsCommand {
|
|
|
30511
30988
|
defaultPerformancePercent?: number | null;
|
|
30512
30989
|
}
|
|
30513
30990
|
|
|
30991
|
+
export interface CalendarDefinitionDto {
|
|
30992
|
+
id: string;
|
|
30993
|
+
name: string;
|
|
30994
|
+
hoursPerWeekday: { [key in DayOfWeek]?: number; };
|
|
30995
|
+
created?: Date | null;
|
|
30996
|
+
updatedBy?: string | null;
|
|
30997
|
+
}
|
|
30998
|
+
|
|
30999
|
+
export interface CreateCalendarDefinition {
|
|
31000
|
+
name: string;
|
|
31001
|
+
hoursPerWeekday: { [key in DayOfWeek]?: number; };
|
|
31002
|
+
}
|
|
31003
|
+
|
|
31004
|
+
export interface UpdateCalendarDefinitionRequest {
|
|
31005
|
+
name?: string | null;
|
|
31006
|
+
hoursPerWeekday?: { [key in DayOfWeek]?: number; } | null;
|
|
31007
|
+
}
|
|
31008
|
+
|
|
31009
|
+
export interface ResourceCalendarPeriodSchedulesDto {
|
|
31010
|
+
groups: ResourceCalendarPeriodGroupDto[];
|
|
31011
|
+
ungroupedResources: ResourceCalendarPeriodsDto[];
|
|
31012
|
+
}
|
|
31013
|
+
|
|
31014
|
+
export interface ResourceCalendarPeriodGroupDto {
|
|
31015
|
+
resourceGroupName: string;
|
|
31016
|
+
resources: ResourceCalendarPeriodsDto[];
|
|
31017
|
+
}
|
|
31018
|
+
|
|
31019
|
+
export interface ResourceCalendarPeriodsDto {
|
|
31020
|
+
resourceExternalId: string;
|
|
31021
|
+
resourceName: string;
|
|
31022
|
+
periods: ResourceCalendarPeriodDto[];
|
|
31023
|
+
}
|
|
31024
|
+
|
|
31025
|
+
export interface ResourceCalendarPeriodDto {
|
|
31026
|
+
resourceExternalId: string;
|
|
31027
|
+
calendarDefinitionId: string;
|
|
31028
|
+
calendarDefinitionName: string;
|
|
31029
|
+
effectiveFrom: string;
|
|
31030
|
+
effectiveTo?: string | null;
|
|
31031
|
+
targetPercent: number;
|
|
31032
|
+
comment?: string | null;
|
|
31033
|
+
}
|
|
31034
|
+
|
|
31035
|
+
export interface AddResourceCalendarPeriod {
|
|
31036
|
+
resourceExternalId: string;
|
|
31037
|
+
calendarDefinitionId: string;
|
|
31038
|
+
effectiveFrom: string;
|
|
31039
|
+
targetPercent: number;
|
|
31040
|
+
comment?: string | null;
|
|
31041
|
+
}
|
|
31042
|
+
|
|
31043
|
+
export interface UpdateResourceCalendarPeriodRequest {
|
|
31044
|
+
calendarDefinitionId?: string | null;
|
|
31045
|
+
targetPercent?: number | null;
|
|
31046
|
+
newEffectiveFrom?: string | null;
|
|
31047
|
+
comment?: string | null;
|
|
31048
|
+
}
|
|
31049
|
+
|
|
31050
|
+
export interface DeleteResourceCalendarPeriod {
|
|
31051
|
+
periods: PeriodKey[];
|
|
31052
|
+
}
|
|
31053
|
+
|
|
31054
|
+
export interface PeriodKey {
|
|
31055
|
+
resourceExternalId: string;
|
|
31056
|
+
effectiveFrom: string;
|
|
31057
|
+
}
|
|
31058
|
+
|
|
31059
|
+
export interface BulkAddResourceCalendarPeriods {
|
|
31060
|
+
resourceExternalIds: string[];
|
|
31061
|
+
calendarDefinitionId: string;
|
|
31062
|
+
effectiveFrom: string;
|
|
31063
|
+
targetPercent: number;
|
|
31064
|
+
comment?: string | null;
|
|
31065
|
+
}
|
|
31066
|
+
|
|
31067
|
+
export interface CopyResourceCalendarPeriodRequest {
|
|
31068
|
+
targetResourceExternalId: string;
|
|
31069
|
+
effectiveFrom: string;
|
|
31070
|
+
}
|
|
31071
|
+
|
|
31072
|
+
export interface MigrationResultDto {
|
|
31073
|
+
created?: number;
|
|
31074
|
+
skipped?: number;
|
|
31075
|
+
}
|
|
31076
|
+
|
|
30514
31077
|
export interface ResourceKpiDto {
|
|
30515
31078
|
uptimeToNow: number;
|
|
30516
31079
|
uptimeToNowPreviousPeriod: number;
|
|
@@ -30526,14 +31089,14 @@ export interface ResourceDayKpiDto {
|
|
|
30526
31089
|
}
|
|
30527
31090
|
|
|
30528
31091
|
export interface ResourceDailyUptimeDto {
|
|
30529
|
-
date
|
|
31092
|
+
date: Date;
|
|
30530
31093
|
historicUptimeDataPoints?: ResourceDailyUptimePointDto[] | null;
|
|
30531
31094
|
todayUptimeDataPoints?: ResourceDailyUptimePointDto[] | null;
|
|
30532
31095
|
}
|
|
30533
31096
|
|
|
30534
31097
|
export interface ResourceDailyUptimePointDto {
|
|
30535
|
-
date
|
|
30536
|
-
uptime
|
|
31098
|
+
date: Date;
|
|
31099
|
+
uptime: number;
|
|
30537
31100
|
}
|
|
30538
31101
|
|
|
30539
31102
|
export interface UptimeTrendDataPointDto {
|
|
@@ -30557,6 +31120,7 @@ export interface ApplicationResourcesResourceGroupDto {
|
|
|
30557
31120
|
id: string;
|
|
30558
31121
|
name: string;
|
|
30559
31122
|
companyId?: string | null;
|
|
31123
|
+
department?: string | null;
|
|
30560
31124
|
resources: ResourceGroupMemberDto[];
|
|
30561
31125
|
}
|
|
30562
31126
|
|
|
@@ -30672,7 +31236,7 @@ export interface WorkorderOperationEventDto {
|
|
|
30672
31236
|
isSetup: boolean;
|
|
30673
31237
|
employee?: EmployeeDto | null;
|
|
30674
31238
|
resourceId: string;
|
|
30675
|
-
description
|
|
31239
|
+
description: string;
|
|
30676
31240
|
part?: PartDto | null;
|
|
30677
31241
|
workorderDescription?: string | null;
|
|
30678
31242
|
operationDescription?: string | null;
|
|
@@ -30765,7 +31329,7 @@ export interface MachineDto {
|
|
|
30765
31329
|
export interface CreateMachineWithoutResource {
|
|
30766
31330
|
id: string;
|
|
30767
31331
|
name: string;
|
|
30768
|
-
description
|
|
31332
|
+
description: string | null;
|
|
30769
31333
|
type: string;
|
|
30770
31334
|
displayName?: string | null;
|
|
30771
31335
|
manufacturer?: string | null;
|
|
@@ -30790,7 +31354,7 @@ export interface CreateResourceWithMachine {
|
|
|
30790
31354
|
displayName?: string | null;
|
|
30791
31355
|
machineId: string;
|
|
30792
31356
|
machineName: string;
|
|
30793
|
-
machineDescription
|
|
31357
|
+
machineDescription: string | null;
|
|
30794
31358
|
machineType: string;
|
|
30795
31359
|
manufacturer?: string | null;
|
|
30796
31360
|
location?: string | null;
|
|
@@ -30940,14 +31504,14 @@ export interface MachineUtilizationDatapointListDto extends UtilizationDatapoint
|
|
|
30940
31504
|
}
|
|
30941
31505
|
|
|
30942
31506
|
export interface CompanyResourceUtilizationDatapointListDto extends UtilizationDatapointListDto {
|
|
30943
|
-
groups
|
|
30944
|
-
ungroupedResources
|
|
31507
|
+
groups: ResourceGroupUtilizationDatapointListDto[];
|
|
31508
|
+
ungroupedResources: ResourceUtilizationDatapointListDto[];
|
|
30945
31509
|
}
|
|
30946
31510
|
|
|
30947
31511
|
export interface ResourceGroupUtilizationDatapointListDto extends UtilizationDatapointListDto {
|
|
30948
31512
|
groupId: string;
|
|
30949
31513
|
groupName: string;
|
|
30950
|
-
resources
|
|
31514
|
+
resources: ResourceUtilizationDatapointListDto[];
|
|
30951
31515
|
}
|
|
30952
31516
|
|
|
30953
31517
|
export interface ResourceUtilizationDatapointListDto extends UtilizationDatapointListDto {
|
|
@@ -30958,12 +31522,12 @@ export interface ResourceUtilizationDatapointListDto extends UtilizationDatapoin
|
|
|
30958
31522
|
}
|
|
30959
31523
|
|
|
30960
31524
|
export interface CrossCompanyUtilizationDatapointListDto extends UtilizationDatapointListDto {
|
|
30961
|
-
companies
|
|
31525
|
+
companies: NamedCompanyUtilizationDatapointListDto[];
|
|
30962
31526
|
}
|
|
30963
31527
|
|
|
30964
31528
|
export interface CompanyUtilizationDatapointListDto extends UtilizationDatapointListDto {
|
|
30965
|
-
groups
|
|
30966
|
-
ungroupedMachines
|
|
31529
|
+
groups: MachineGroupUtilizationDatapointListDto[];
|
|
31530
|
+
ungroupedMachines: MachineUtilizationDatapointListDto[];
|
|
30967
31531
|
}
|
|
30968
31532
|
|
|
30969
31533
|
export interface NamedCompanyUtilizationDatapointListDto extends CompanyUtilizationDatapointListDto {
|
|
@@ -30974,7 +31538,7 @@ export interface NamedCompanyUtilizationDatapointListDto extends CompanyUtilizat
|
|
|
30974
31538
|
export interface MachineGroupUtilizationDatapointListDto extends UtilizationDatapointListDto {
|
|
30975
31539
|
groupId: string;
|
|
30976
31540
|
groupName: string;
|
|
30977
|
-
machines
|
|
31541
|
+
machines: MachineUtilizationDatapointListDto[];
|
|
30978
31542
|
}
|
|
30979
31543
|
|
|
30980
31544
|
export interface CrossCompanyResourceUtilizationDto {
|
|
@@ -30989,7 +31553,7 @@ export interface NamedCompanyResourceUtilizationDto extends CompanyResourceUtili
|
|
|
30989
31553
|
}
|
|
30990
31554
|
|
|
30991
31555
|
export interface CrossCompanyResourceUtilizationDatapointListDto extends UtilizationDatapointListDto {
|
|
30992
|
-
companies
|
|
31556
|
+
companies: NamedCompanyResourceUtilizationDatapointListDto[];
|
|
30993
31557
|
}
|
|
30994
31558
|
|
|
30995
31559
|
export interface NamedCompanyResourceUtilizationDatapointListDto extends CompanyResourceUtilizationDatapointListDto {
|
|
@@ -31219,8 +31783,8 @@ export interface CreateMrbTemplateRequest {
|
|
|
31219
31783
|
}
|
|
31220
31784
|
|
|
31221
31785
|
export interface UpdateMrbTemplate {
|
|
31222
|
-
id
|
|
31223
|
-
title
|
|
31786
|
+
id: string;
|
|
31787
|
+
title: string;
|
|
31224
31788
|
tableOfContents?: MrbTemplateTableOfContentsDto | null;
|
|
31225
31789
|
elements?: MrbTemplateUpdateElementDto[];
|
|
31226
31790
|
contentIndicator?: string | null;
|
|
@@ -31318,10 +31882,6 @@ export interface TraceListItemDto {
|
|
|
31318
31882
|
}
|
|
31319
31883
|
|
|
31320
31884
|
export interface TraceItemConsumptionDto {
|
|
31321
|
-
updated?: Date | null;
|
|
31322
|
-
updatedBy?: string | null;
|
|
31323
|
-
updatedById?: string | null;
|
|
31324
|
-
updateType?: TraceUpdateType | null;
|
|
31325
31885
|
sourceWorkOrder?: string | null;
|
|
31326
31886
|
sourceSequence?: string | null;
|
|
31327
31887
|
traceNumber?: string | null;
|
|
@@ -31333,8 +31893,6 @@ export interface TraceItemConsumptionDto {
|
|
|
31333
31893
|
label: string;
|
|
31334
31894
|
}
|
|
31335
31895
|
|
|
31336
|
-
export type TraceUpdateType = "None" | "User" | "System";
|
|
31337
|
-
|
|
31338
31896
|
export interface TraceMaterialDetailDto {
|
|
31339
31897
|
materialLine: number;
|
|
31340
31898
|
operation?: number | null;
|
|
@@ -31457,7 +32015,7 @@ export interface TraceWorkOrderListDto {
|
|
|
31457
32015
|
id: string;
|
|
31458
32016
|
part: PartDto;
|
|
31459
32017
|
quantity: number;
|
|
31460
|
-
unit
|
|
32018
|
+
unit: string | null;
|
|
31461
32019
|
status: WorkorderStatus;
|
|
31462
32020
|
plannedStart?: Date | null;
|
|
31463
32021
|
plannedEnd?: Date | null;
|
|
@@ -31929,14 +32487,14 @@ export interface MachineDayKpiDto {
|
|
|
31929
32487
|
}
|
|
31930
32488
|
|
|
31931
32489
|
export interface MachineDailyUptimeDto {
|
|
31932
|
-
date
|
|
32490
|
+
date: Date;
|
|
31933
32491
|
historicUptimeDataPoints?: MachineDailyUptimePointDto[] | null;
|
|
31934
32492
|
todayUptimeDataPoints?: MachineDailyUptimePointDto[] | null;
|
|
31935
32493
|
}
|
|
31936
32494
|
|
|
31937
32495
|
export interface MachineDailyUptimePointDto {
|
|
31938
|
-
date
|
|
31939
|
-
uptime
|
|
32496
|
+
date: Date;
|
|
32497
|
+
uptime: number;
|
|
31940
32498
|
}
|
|
31941
32499
|
|
|
31942
32500
|
export interface MachineGroupDto {
|
|
@@ -32333,8 +32891,8 @@ export interface TransferToMachineRequest {
|
|
|
32333
32891
|
}
|
|
32334
32892
|
|
|
32335
32893
|
export interface ProgramSelectionRequest {
|
|
32336
|
-
id
|
|
32337
|
-
version
|
|
32894
|
+
id: string;
|
|
32895
|
+
version: number;
|
|
32338
32896
|
}
|
|
32339
32897
|
|
|
32340
32898
|
export interface UploadCamFileDto {
|
|
@@ -32726,7 +33284,7 @@ export interface MarkdownNotesDto {
|
|
|
32726
33284
|
|
|
32727
33285
|
export interface SaveMarkdownNotes {
|
|
32728
33286
|
id: string;
|
|
32729
|
-
markdown
|
|
33287
|
+
markdown: string;
|
|
32730
33288
|
}
|
|
32731
33289
|
|
|
32732
33290
|
export interface CncToolTypeDto {
|
|
@@ -32912,7 +33470,7 @@ export interface UpdateKeepSettings {
|
|
|
32912
33470
|
|
|
32913
33471
|
export interface FixtureListDto {
|
|
32914
33472
|
results: FixtureDto[];
|
|
32915
|
-
continuationToken
|
|
33473
|
+
continuationToken: string | null;
|
|
32916
33474
|
}
|
|
32917
33475
|
|
|
32918
33476
|
export interface FixtureDto {
|
|
@@ -33237,7 +33795,7 @@ export interface UpdateMachineInactivitySubscription {
|
|
|
33237
33795
|
export interface IntegrationCredentialDto {
|
|
33238
33796
|
type: CredentialTypeDto;
|
|
33239
33797
|
id: string;
|
|
33240
|
-
name
|
|
33798
|
+
name: string;
|
|
33241
33799
|
clientId?: string | null;
|
|
33242
33800
|
expirationDate?: Date | null;
|
|
33243
33801
|
activationDate?: Date | null;
|
|
@@ -33406,7 +33964,7 @@ export interface BookingParcelDto {
|
|
|
33406
33964
|
materialPartName?: string | null;
|
|
33407
33965
|
materialPartNumber?: string | null;
|
|
33408
33966
|
covered: MaterialCoveredDto;
|
|
33409
|
-
item
|
|
33967
|
+
item: BookingItemDto;
|
|
33410
33968
|
}
|
|
33411
33969
|
|
|
33412
33970
|
export type MaterialCoveredDto = "NotDefined" | "NotCovered" | "Covered";
|
|
@@ -33456,11 +34014,11 @@ export type BookingCreatedByDto = "MyBookings" | "OthersBookings";
|
|
|
33456
34014
|
export type BookingOrderDto = "Ascending" | "Descending";
|
|
33457
34015
|
|
|
33458
34016
|
export interface BookingFilterResultsDto {
|
|
33459
|
-
bookingStatus
|
|
33460
|
-
transportKind
|
|
33461
|
-
parcelKind
|
|
33462
|
-
fromLocations
|
|
33463
|
-
toLocations
|
|
34017
|
+
bookingStatus: BookingStatusResultsDto[];
|
|
34018
|
+
transportKind: TransportKindResultsDto[];
|
|
34019
|
+
parcelKind: ParcelKindResultsDto[];
|
|
34020
|
+
fromLocations: LocationZoneGroupDto[];
|
|
34021
|
+
toLocations: LocationZoneGroupDto[];
|
|
33464
34022
|
}
|
|
33465
34023
|
|
|
33466
34024
|
export interface BookingStatusResultsDto {
|
|
@@ -33558,17 +34116,17 @@ export interface BookingStatusUpdateDto {
|
|
|
33558
34116
|
}
|
|
33559
34117
|
|
|
33560
34118
|
export interface MoveInfoscreenDto {
|
|
33561
|
-
id
|
|
33562
|
-
name
|
|
33563
|
-
slug
|
|
33564
|
-
fromZoneIds
|
|
33565
|
-
fromLocationIds
|
|
33566
|
-
toZoneIds
|
|
33567
|
-
toLocationIds
|
|
34119
|
+
id: string;
|
|
34120
|
+
name: string;
|
|
34121
|
+
slug: string;
|
|
34122
|
+
fromZoneIds: string[];
|
|
34123
|
+
fromLocationIds: string[];
|
|
34124
|
+
toZoneIds: string[];
|
|
34125
|
+
toLocationIds: string[];
|
|
33568
34126
|
}
|
|
33569
34127
|
|
|
33570
34128
|
export interface CreateMoveInfoscreenRequestDto {
|
|
33571
|
-
name
|
|
34129
|
+
name: string;
|
|
33572
34130
|
fromZoneIds?: string[];
|
|
33573
34131
|
fromLocationIds?: string[];
|
|
33574
34132
|
toZoneIds?: string[];
|
|
@@ -33576,7 +34134,7 @@ export interface CreateMoveInfoscreenRequestDto {
|
|
|
33576
34134
|
}
|
|
33577
34135
|
|
|
33578
34136
|
export interface UpdateMoveInfoscreenRequestDto {
|
|
33579
|
-
name
|
|
34137
|
+
name: string;
|
|
33580
34138
|
fromZoneIds?: string[];
|
|
33581
34139
|
fromLocationIds?: string[];
|
|
33582
34140
|
toZoneIds?: string[];
|
|
@@ -33643,16 +34201,16 @@ export interface MoveSubscriptionDto {
|
|
|
33643
34201
|
|
|
33644
34202
|
export interface MoveSubscriptionZoneDto {
|
|
33645
34203
|
zoneId: string;
|
|
33646
|
-
bookingFromLocation
|
|
33647
|
-
bookingToLocation
|
|
33648
|
-
locationChange
|
|
34204
|
+
bookingFromLocation: boolean;
|
|
34205
|
+
bookingToLocation: boolean;
|
|
34206
|
+
locationChange: boolean;
|
|
33649
34207
|
}
|
|
33650
34208
|
|
|
33651
34209
|
export interface MoveSubscriptionLocationDto {
|
|
33652
34210
|
locationId: string;
|
|
33653
|
-
bookingFromLocation
|
|
33654
|
-
bookingToLocation
|
|
33655
|
-
locationChange
|
|
34211
|
+
bookingFromLocation: boolean;
|
|
34212
|
+
bookingToLocation: boolean;
|
|
34213
|
+
locationChange: boolean;
|
|
33656
34214
|
}
|
|
33657
34215
|
|
|
33658
34216
|
export interface UpdateNotifications {
|
|
@@ -33664,16 +34222,16 @@ export interface UpdateNotifications {
|
|
|
33664
34222
|
|
|
33665
34223
|
export interface MoveSubscriptionZoneUpdateDto {
|
|
33666
34224
|
zoneId: string;
|
|
33667
|
-
bookingFromLocation
|
|
33668
|
-
bookingToLocation
|
|
33669
|
-
locationChange
|
|
34225
|
+
bookingFromLocation: boolean;
|
|
34226
|
+
bookingToLocation: boolean;
|
|
34227
|
+
locationChange: boolean;
|
|
33670
34228
|
}
|
|
33671
34229
|
|
|
33672
34230
|
export interface MoveSubscriptionLocationUpdateDto {
|
|
33673
34231
|
locationId: string;
|
|
33674
|
-
bookingFromLocation
|
|
33675
|
-
bookingToLocation
|
|
33676
|
-
locationChange
|
|
34232
|
+
bookingFromLocation: boolean;
|
|
34233
|
+
bookingToLocation: boolean;
|
|
34234
|
+
locationChange: boolean;
|
|
33677
34235
|
}
|
|
33678
34236
|
|
|
33679
34237
|
export interface SearchParcelDto {
|
|
@@ -33721,7 +34279,7 @@ export interface TrackingHistoryDto {
|
|
|
33721
34279
|
materialPartName?: string | null;
|
|
33722
34280
|
materialPartNumber?: string | null;
|
|
33723
34281
|
category?: string | null;
|
|
33724
|
-
currentTracking
|
|
34282
|
+
currentTracking: TrackingEventDto | null;
|
|
33725
34283
|
trackingEvents: TrackingEventDto[];
|
|
33726
34284
|
suggestions?: SuggestionsItemDto | null;
|
|
33727
34285
|
}
|
|
@@ -33774,7 +34332,7 @@ export interface TrackingHistoryFlattenedDto {
|
|
|
33774
34332
|
materialPartName?: string | null;
|
|
33775
34333
|
materialPartNumber?: string | null;
|
|
33776
34334
|
category?: string | null;
|
|
33777
|
-
currentTracking
|
|
34335
|
+
currentTracking: TrackingEventDto | null;
|
|
33778
34336
|
trackingEvents: TrackingEventDto[];
|
|
33779
34337
|
}
|
|
33780
34338
|
|
|
@@ -33844,9 +34402,9 @@ export interface EngineeringChangeOrdersDto {
|
|
|
33844
34402
|
}
|
|
33845
34403
|
|
|
33846
34404
|
export interface AddMesLink {
|
|
33847
|
-
uri
|
|
33848
|
-
name
|
|
33849
|
-
type
|
|
34405
|
+
uri: string;
|
|
34406
|
+
name: string;
|
|
34407
|
+
type: MesLinkTypeDto;
|
|
33850
34408
|
openInNewTab?: boolean;
|
|
33851
34409
|
description?: string | null;
|
|
33852
34410
|
}
|
|
@@ -33854,19 +34412,19 @@ export interface AddMesLink {
|
|
|
33854
34412
|
export type MesLinkTypeDto = "Static" | "Operation" | "WorkOrder";
|
|
33855
34413
|
|
|
33856
34414
|
export interface MesLinkDto {
|
|
33857
|
-
id
|
|
33858
|
-
uri
|
|
33859
|
-
name
|
|
33860
|
-
type
|
|
33861
|
-
openInNewTab
|
|
34415
|
+
id: string;
|
|
34416
|
+
uri: string;
|
|
34417
|
+
name: string;
|
|
34418
|
+
type: MesLinkTypeDto;
|
|
34419
|
+
openInNewTab: boolean;
|
|
33862
34420
|
description?: string | null;
|
|
33863
34421
|
}
|
|
33864
34422
|
|
|
33865
34423
|
export interface UpdateMesLink {
|
|
33866
|
-
id
|
|
33867
|
-
uri
|
|
33868
|
-
name
|
|
33869
|
-
type
|
|
34424
|
+
id: string;
|
|
34425
|
+
uri: string;
|
|
34426
|
+
name: string;
|
|
34427
|
+
type: MesLinkTypeDto;
|
|
33870
34428
|
openInNewTab?: boolean;
|
|
33871
34429
|
description?: string | null;
|
|
33872
34430
|
moveLinkRequest?: MoveLinkRequest | null;
|
|
@@ -33963,7 +34521,7 @@ export interface WorkOrderAttachmentDto {
|
|
|
33963
34521
|
|
|
33964
34522
|
export interface DrawingDto {
|
|
33965
34523
|
drawingNumber: string;
|
|
33966
|
-
revision
|
|
34524
|
+
revision: string;
|
|
33967
34525
|
status: string;
|
|
33968
34526
|
files: DrawingFileDto[];
|
|
33969
34527
|
}
|
|
@@ -33983,20 +34541,20 @@ export interface OrderReferenceDto {
|
|
|
33983
34541
|
export type OrderReferenceTypeDto = "ProductionOrder" | "PurchaseOrder" | "SalesOrder";
|
|
33984
34542
|
|
|
33985
34543
|
export interface ProductionOrderBomDto {
|
|
33986
|
-
position
|
|
34544
|
+
position: string;
|
|
33987
34545
|
lineNumber: number;
|
|
33988
34546
|
part: PartDto;
|
|
33989
|
-
dimension
|
|
34547
|
+
dimension: string;
|
|
33990
34548
|
operation: number;
|
|
33991
|
-
operationName
|
|
34549
|
+
operationName: string;
|
|
33992
34550
|
warehouse?: string | null;
|
|
33993
34551
|
fixedLocation?: string | null;
|
|
33994
|
-
fixedLocations
|
|
33995
|
-
unit
|
|
34552
|
+
fixedLocations: string[];
|
|
34553
|
+
unit: string;
|
|
33996
34554
|
quantityPerPart: number;
|
|
33997
34555
|
totalRequiredQuantity: number;
|
|
33998
34556
|
usedQuantity: number;
|
|
33999
|
-
availableQuantity
|
|
34557
|
+
availableQuantity: number | null;
|
|
34000
34558
|
drawing?: DrawingDto | null;
|
|
34001
34559
|
orderReference?: OrderReferenceDto | null;
|
|
34002
34560
|
status: MaterialStatus;
|
|
@@ -34010,20 +34568,20 @@ export interface InventoryDto {
|
|
|
34010
34568
|
siteId: string;
|
|
34011
34569
|
warehouseId: string;
|
|
34012
34570
|
locationId: string;
|
|
34013
|
-
batchNumber
|
|
34014
|
-
vendorBatch
|
|
34571
|
+
batchNumber: string;
|
|
34572
|
+
vendorBatch: string;
|
|
34015
34573
|
available: number;
|
|
34016
34574
|
}
|
|
34017
34575
|
|
|
34018
34576
|
export interface PickListSuggestionDto {
|
|
34019
|
-
position
|
|
34577
|
+
position: string;
|
|
34020
34578
|
lineNumber: number;
|
|
34021
34579
|
part: PartDto;
|
|
34022
|
-
dimension
|
|
34580
|
+
dimension: string;
|
|
34023
34581
|
operation: number;
|
|
34024
|
-
warehouse
|
|
34025
|
-
fixedLocation
|
|
34026
|
-
unit
|
|
34582
|
+
warehouse: string;
|
|
34583
|
+
fixedLocation: string;
|
|
34584
|
+
unit: string;
|
|
34027
34585
|
orderReference?: OrderReferenceDto | null;
|
|
34028
34586
|
quantityPerPart: number;
|
|
34029
34587
|
totalRequiredQuantity: number;
|
|
@@ -34082,7 +34640,7 @@ export interface NonConformanceAttachmentDto {
|
|
|
34082
34640
|
export interface WorkCenterDto {
|
|
34083
34641
|
id: string;
|
|
34084
34642
|
name: string;
|
|
34085
|
-
workCenterType
|
|
34643
|
+
workCenterType: string;
|
|
34086
34644
|
department?: DepartmentDto | null;
|
|
34087
34645
|
}
|
|
34088
34646
|
|
|
@@ -34209,7 +34767,7 @@ export interface SurroundingOperationDto {
|
|
|
34209
34767
|
|
|
34210
34768
|
export interface OperationPrerequisitesDto {
|
|
34211
34769
|
drawing?: boolean | null;
|
|
34212
|
-
materials
|
|
34770
|
+
materials: MaterialsPrerequisiteDto;
|
|
34213
34771
|
cncProgram?: boolean | null;
|
|
34214
34772
|
}
|
|
34215
34773
|
|
|
@@ -34357,12 +34915,12 @@ export interface ReportOperationProgress {
|
|
|
34357
34915
|
export interface ReportOperationProgressDto {
|
|
34358
34916
|
workOrder: string;
|
|
34359
34917
|
operationNumber: number;
|
|
34360
|
-
resource
|
|
34918
|
+
resource: string;
|
|
34361
34919
|
goodQuantity?: number | null;
|
|
34362
34920
|
errorQuantity?: number | null;
|
|
34363
34921
|
errorCause?: ErrorCauseDto | null;
|
|
34364
|
-
nextStatus
|
|
34365
|
-
workType
|
|
34922
|
+
nextStatus: NextOperationStatusDto;
|
|
34923
|
+
workType: WorkTypeDto;
|
|
34366
34924
|
}
|
|
34367
34925
|
|
|
34368
34926
|
export type ErrorCauseDto = "None" | "Material" | "Machine" | "OperatingStaff";
|
|
@@ -34773,7 +35331,7 @@ export interface ImaMaterialCheckDto {
|
|
|
34773
35331
|
updatedBy: string;
|
|
34774
35332
|
updatedById: string;
|
|
34775
35333
|
updatedByName: string;
|
|
34776
|
-
isDeleted
|
|
35334
|
+
isDeleted: boolean;
|
|
34777
35335
|
certificateTypeResults: ImaCertificateTypeResultsDto;
|
|
34778
35336
|
specificationResults: ImaSpecificationResultsDto;
|
|
34779
35337
|
}
|
|
@@ -35183,7 +35741,7 @@ export interface PurchaseOrderMaterialLineDetailsDto {
|
|
|
35183
35741
|
}
|
|
35184
35742
|
|
|
35185
35743
|
export interface Part {
|
|
35186
|
-
partNumber
|
|
35744
|
+
partNumber: string;
|
|
35187
35745
|
partRevision?: string | null;
|
|
35188
35746
|
partName?: string | null;
|
|
35189
35747
|
customerPartNumber?: string | null;
|
|
@@ -36524,13 +37082,13 @@ export interface CreateWorkOrderMapping {
|
|
|
36524
37082
|
}
|
|
36525
37083
|
|
|
36526
37084
|
export interface WorkorderDiscussionMessageDto {
|
|
36527
|
-
id
|
|
36528
|
-
workorderId
|
|
36529
|
-
companyId
|
|
36530
|
-
content
|
|
37085
|
+
id: string;
|
|
37086
|
+
workorderId: string;
|
|
37087
|
+
companyId: string;
|
|
37088
|
+
content: string;
|
|
36531
37089
|
contentParts?: WorkOrderDiscussionContent[] | null;
|
|
36532
|
-
senderUpn
|
|
36533
|
-
senderName
|
|
37090
|
+
senderUpn: string;
|
|
37091
|
+
senderName: string;
|
|
36534
37092
|
operationId?: string | null;
|
|
36535
37093
|
operationName?: string | null;
|
|
36536
37094
|
resourceId?: string | null;
|
|
@@ -36552,10 +37110,10 @@ export interface AddDiscussionMessageRequest {
|
|
|
36552
37110
|
}
|
|
36553
37111
|
|
|
36554
37112
|
export interface WorkorderDiscussionReadStatusDto {
|
|
36555
|
-
workorderId
|
|
37113
|
+
workorderId: string;
|
|
36556
37114
|
operationId?: string | null;
|
|
36557
37115
|
resourceId?: string | null;
|
|
36558
|
-
userUpn
|
|
37116
|
+
userUpn: string;
|
|
36559
37117
|
lastRead?: Date;
|
|
36560
37118
|
}
|
|
36561
37119
|
|