@ignos/api-client 20260505.121.1 → 20260507.123.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 +137 -11
- package/lib/ignosportal-api.js +486 -6
- package/package.json +1 -1
- package/src/ignosportal-api.ts +607 -16
package/src/ignosportal-api.ts
CHANGED
|
@@ -4839,6 +4839,513 @@ 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: UpdateCalendarDefinition): Promise<CalendarDefinitionDto>;
|
|
4849
|
+
|
|
4850
|
+
deleteCalendarDefinition(id: string): Promise<FileResponse>;
|
|
4851
|
+
|
|
4852
|
+
listResourceCalendarPeriods(): Promise<ResourceCalendarPeriodGroupDto[]>;
|
|
4853
|
+
|
|
4854
|
+
addResourceCalendarPeriod(request: AddResourceCalendarPeriod): Promise<ResourceCalendarPeriodDto>;
|
|
4855
|
+
|
|
4856
|
+
updateResourceCalendarPeriod(id: string, request: UpdateResourceCalendarPeriod): Promise<ResourceCalendarPeriodDto>;
|
|
4857
|
+
|
|
4858
|
+
deleteResourceCalendarPeriod(id: string): Promise<FileResponse>;
|
|
4859
|
+
|
|
4860
|
+
bulkAddResourceCalendarPeriods(request: BulkAddResourceCalendarPeriods): Promise<ResourceCalendarPeriodDto[]>;
|
|
4861
|
+
|
|
4862
|
+
copyResourceCalendarPeriod(id: string, request: CopyResourceCalendarPeriod): Promise<ResourceCalendarPeriodDto>;
|
|
4863
|
+
|
|
4864
|
+
migrateResourceCapacity(): Promise<MigrationResultDto>;
|
|
4865
|
+
|
|
4866
|
+
migrateCalendarIds(): Promise<MigrationResultDto>;
|
|
4867
|
+
}
|
|
4868
|
+
|
|
4869
|
+
export class KpiCalendarClient extends AuthorizedApiBase implements IKpiCalendarClient {
|
|
4870
|
+
private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
|
|
4871
|
+
private baseUrl: string;
|
|
4872
|
+
|
|
4873
|
+
constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
|
|
4874
|
+
super(configuration);
|
|
4875
|
+
this.http = http ? http : window as any;
|
|
4876
|
+
this.baseUrl = baseUrl ?? "";
|
|
4877
|
+
}
|
|
4878
|
+
|
|
4879
|
+
listCalendarDefinitions(): Promise<CalendarDefinitionDto[]> {
|
|
4880
|
+
let url_ = this.baseUrl + "/resources/kpi/calendar-definitions";
|
|
4881
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
4882
|
+
|
|
4883
|
+
let options_: RequestInit = {
|
|
4884
|
+
method: "GET",
|
|
4885
|
+
headers: {
|
|
4886
|
+
"Accept": "application/json"
|
|
4887
|
+
}
|
|
4888
|
+
};
|
|
4889
|
+
|
|
4890
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
4891
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
4892
|
+
}).then((_response: Response) => {
|
|
4893
|
+
return this.processListCalendarDefinitions(_response);
|
|
4894
|
+
});
|
|
4895
|
+
}
|
|
4896
|
+
|
|
4897
|
+
protected processListCalendarDefinitions(response: Response): Promise<CalendarDefinitionDto[]> {
|
|
4898
|
+
const status = response.status;
|
|
4899
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
4900
|
+
if (status === 200) {
|
|
4901
|
+
return response.text().then((_responseText) => {
|
|
4902
|
+
let result200: any = null;
|
|
4903
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as CalendarDefinitionDto[];
|
|
4904
|
+
return result200;
|
|
4905
|
+
});
|
|
4906
|
+
} else if (status !== 200 && status !== 204) {
|
|
4907
|
+
return response.text().then((_responseText) => {
|
|
4908
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
4909
|
+
});
|
|
4910
|
+
}
|
|
4911
|
+
return Promise.resolve<CalendarDefinitionDto[]>(null as any);
|
|
4912
|
+
}
|
|
4913
|
+
|
|
4914
|
+
createCalendarDefinition(request: CreateCalendarDefinition): Promise<CalendarDefinitionDto> {
|
|
4915
|
+
let url_ = this.baseUrl + "/resources/kpi/calendar-definitions";
|
|
4916
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
4917
|
+
|
|
4918
|
+
const content_ = JSON.stringify(request);
|
|
4919
|
+
|
|
4920
|
+
let options_: RequestInit = {
|
|
4921
|
+
body: content_,
|
|
4922
|
+
method: "POST",
|
|
4923
|
+
headers: {
|
|
4924
|
+
"Content-Type": "application/json",
|
|
4925
|
+
"Accept": "application/json"
|
|
4926
|
+
}
|
|
4927
|
+
};
|
|
4928
|
+
|
|
4929
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
4930
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
4931
|
+
}).then((_response: Response) => {
|
|
4932
|
+
return this.processCreateCalendarDefinition(_response);
|
|
4933
|
+
});
|
|
4934
|
+
}
|
|
4935
|
+
|
|
4936
|
+
protected processCreateCalendarDefinition(response: Response): Promise<CalendarDefinitionDto> {
|
|
4937
|
+
const status = response.status;
|
|
4938
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
4939
|
+
if (status === 200) {
|
|
4940
|
+
return response.text().then((_responseText) => {
|
|
4941
|
+
let result200: any = null;
|
|
4942
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as CalendarDefinitionDto;
|
|
4943
|
+
return result200;
|
|
4944
|
+
});
|
|
4945
|
+
} else if (status !== 200 && status !== 204) {
|
|
4946
|
+
return response.text().then((_responseText) => {
|
|
4947
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
4948
|
+
});
|
|
4949
|
+
}
|
|
4950
|
+
return Promise.resolve<CalendarDefinitionDto>(null as any);
|
|
4951
|
+
}
|
|
4952
|
+
|
|
4953
|
+
updateCalendarDefinition(id: string, request: UpdateCalendarDefinition): Promise<CalendarDefinitionDto> {
|
|
4954
|
+
let url_ = this.baseUrl + "/resources/kpi/calendar-definitions/{id}";
|
|
4955
|
+
if (id === undefined || id === null)
|
|
4956
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
4957
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
4958
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
4959
|
+
|
|
4960
|
+
const content_ = JSON.stringify(request);
|
|
4961
|
+
|
|
4962
|
+
let options_: RequestInit = {
|
|
4963
|
+
body: content_,
|
|
4964
|
+
method: "PUT",
|
|
4965
|
+
headers: {
|
|
4966
|
+
"Content-Type": "application/json",
|
|
4967
|
+
"Accept": "application/json"
|
|
4968
|
+
}
|
|
4969
|
+
};
|
|
4970
|
+
|
|
4971
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
4972
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
4973
|
+
}).then((_response: Response) => {
|
|
4974
|
+
return this.processUpdateCalendarDefinition(_response);
|
|
4975
|
+
});
|
|
4976
|
+
}
|
|
4977
|
+
|
|
4978
|
+
protected processUpdateCalendarDefinition(response: Response): Promise<CalendarDefinitionDto> {
|
|
4979
|
+
const status = response.status;
|
|
4980
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
4981
|
+
if (status === 200) {
|
|
4982
|
+
return response.text().then((_responseText) => {
|
|
4983
|
+
let result200: any = null;
|
|
4984
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as CalendarDefinitionDto;
|
|
4985
|
+
return result200;
|
|
4986
|
+
});
|
|
4987
|
+
} else if (status !== 200 && status !== 204) {
|
|
4988
|
+
return response.text().then((_responseText) => {
|
|
4989
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
4990
|
+
});
|
|
4991
|
+
}
|
|
4992
|
+
return Promise.resolve<CalendarDefinitionDto>(null as any);
|
|
4993
|
+
}
|
|
4994
|
+
|
|
4995
|
+
deleteCalendarDefinition(id: string): Promise<FileResponse> {
|
|
4996
|
+
let url_ = this.baseUrl + "/resources/kpi/calendar-definitions/{id}";
|
|
4997
|
+
if (id === undefined || id === null)
|
|
4998
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
4999
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
5000
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
5001
|
+
|
|
5002
|
+
let options_: RequestInit = {
|
|
5003
|
+
method: "DELETE",
|
|
5004
|
+
headers: {
|
|
5005
|
+
"Accept": "application/octet-stream"
|
|
5006
|
+
}
|
|
5007
|
+
};
|
|
5008
|
+
|
|
5009
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
5010
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
5011
|
+
}).then((_response: Response) => {
|
|
5012
|
+
return this.processDeleteCalendarDefinition(_response);
|
|
5013
|
+
});
|
|
5014
|
+
}
|
|
5015
|
+
|
|
5016
|
+
protected processDeleteCalendarDefinition(response: Response): Promise<FileResponse> {
|
|
5017
|
+
const status = response.status;
|
|
5018
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
5019
|
+
if (status === 200 || status === 206) {
|
|
5020
|
+
const contentDisposition = response.headers ? response.headers.get("content-disposition") : undefined;
|
|
5021
|
+
let fileNameMatch = contentDisposition ? /filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(contentDisposition) : undefined;
|
|
5022
|
+
let fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[3] || fileNameMatch[2] : undefined;
|
|
5023
|
+
if (fileName) {
|
|
5024
|
+
fileName = decodeURIComponent(fileName);
|
|
5025
|
+
} else {
|
|
5026
|
+
fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
|
|
5027
|
+
fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
|
|
5028
|
+
}
|
|
5029
|
+
return response.blob().then(blob => { return { fileName: fileName, data: blob, status: status, headers: _headers }; });
|
|
5030
|
+
} else if (status !== 200 && status !== 204) {
|
|
5031
|
+
return response.text().then((_responseText) => {
|
|
5032
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
5033
|
+
});
|
|
5034
|
+
}
|
|
5035
|
+
return Promise.resolve<FileResponse>(null as any);
|
|
5036
|
+
}
|
|
5037
|
+
|
|
5038
|
+
listResourceCalendarPeriods(): Promise<ResourceCalendarPeriodGroupDto[]> {
|
|
5039
|
+
let url_ = this.baseUrl + "/resources/kpi/calendar-periods";
|
|
5040
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
5041
|
+
|
|
5042
|
+
let options_: RequestInit = {
|
|
5043
|
+
method: "GET",
|
|
5044
|
+
headers: {
|
|
5045
|
+
"Accept": "application/json"
|
|
5046
|
+
}
|
|
5047
|
+
};
|
|
5048
|
+
|
|
5049
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
5050
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
5051
|
+
}).then((_response: Response) => {
|
|
5052
|
+
return this.processListResourceCalendarPeriods(_response);
|
|
5053
|
+
});
|
|
5054
|
+
}
|
|
5055
|
+
|
|
5056
|
+
protected processListResourceCalendarPeriods(response: Response): Promise<ResourceCalendarPeriodGroupDto[]> {
|
|
5057
|
+
const status = response.status;
|
|
5058
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
5059
|
+
if (status === 200) {
|
|
5060
|
+
return response.text().then((_responseText) => {
|
|
5061
|
+
let result200: any = null;
|
|
5062
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as ResourceCalendarPeriodGroupDto[];
|
|
5063
|
+
return result200;
|
|
5064
|
+
});
|
|
5065
|
+
} else if (status !== 200 && status !== 204) {
|
|
5066
|
+
return response.text().then((_responseText) => {
|
|
5067
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
5068
|
+
});
|
|
5069
|
+
}
|
|
5070
|
+
return Promise.resolve<ResourceCalendarPeriodGroupDto[]>(null as any);
|
|
5071
|
+
}
|
|
5072
|
+
|
|
5073
|
+
addResourceCalendarPeriod(request: AddResourceCalendarPeriod): Promise<ResourceCalendarPeriodDto> {
|
|
5074
|
+
let url_ = this.baseUrl + "/resources/kpi/calendar-periods";
|
|
5075
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
5076
|
+
|
|
5077
|
+
const content_ = JSON.stringify(request);
|
|
5078
|
+
|
|
5079
|
+
let options_: RequestInit = {
|
|
5080
|
+
body: content_,
|
|
5081
|
+
method: "POST",
|
|
5082
|
+
headers: {
|
|
5083
|
+
"Content-Type": "application/json",
|
|
5084
|
+
"Accept": "application/json"
|
|
5085
|
+
}
|
|
5086
|
+
};
|
|
5087
|
+
|
|
5088
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
5089
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
5090
|
+
}).then((_response: Response) => {
|
|
5091
|
+
return this.processAddResourceCalendarPeriod(_response);
|
|
5092
|
+
});
|
|
5093
|
+
}
|
|
5094
|
+
|
|
5095
|
+
protected processAddResourceCalendarPeriod(response: Response): Promise<ResourceCalendarPeriodDto> {
|
|
5096
|
+
const status = response.status;
|
|
5097
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
5098
|
+
if (status === 200) {
|
|
5099
|
+
return response.text().then((_responseText) => {
|
|
5100
|
+
let result200: any = null;
|
|
5101
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as ResourceCalendarPeriodDto;
|
|
5102
|
+
return result200;
|
|
5103
|
+
});
|
|
5104
|
+
} else if (status !== 200 && status !== 204) {
|
|
5105
|
+
return response.text().then((_responseText) => {
|
|
5106
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
5107
|
+
});
|
|
5108
|
+
}
|
|
5109
|
+
return Promise.resolve<ResourceCalendarPeriodDto>(null as any);
|
|
5110
|
+
}
|
|
5111
|
+
|
|
5112
|
+
updateResourceCalendarPeriod(id: string, request: UpdateResourceCalendarPeriod): Promise<ResourceCalendarPeriodDto> {
|
|
5113
|
+
let url_ = this.baseUrl + "/resources/kpi/calendar-periods/{id}";
|
|
5114
|
+
if (id === undefined || id === null)
|
|
5115
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
5116
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
5117
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
5118
|
+
|
|
5119
|
+
const content_ = JSON.stringify(request);
|
|
5120
|
+
|
|
5121
|
+
let options_: RequestInit = {
|
|
5122
|
+
body: content_,
|
|
5123
|
+
method: "PUT",
|
|
5124
|
+
headers: {
|
|
5125
|
+
"Content-Type": "application/json",
|
|
5126
|
+
"Accept": "application/json"
|
|
5127
|
+
}
|
|
5128
|
+
};
|
|
5129
|
+
|
|
5130
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
5131
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
5132
|
+
}).then((_response: Response) => {
|
|
5133
|
+
return this.processUpdateResourceCalendarPeriod(_response);
|
|
5134
|
+
});
|
|
5135
|
+
}
|
|
5136
|
+
|
|
5137
|
+
protected processUpdateResourceCalendarPeriod(response: Response): Promise<ResourceCalendarPeriodDto> {
|
|
5138
|
+
const status = response.status;
|
|
5139
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
5140
|
+
if (status === 200) {
|
|
5141
|
+
return response.text().then((_responseText) => {
|
|
5142
|
+
let result200: any = null;
|
|
5143
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as ResourceCalendarPeriodDto;
|
|
5144
|
+
return result200;
|
|
5145
|
+
});
|
|
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<ResourceCalendarPeriodDto>(null as any);
|
|
5152
|
+
}
|
|
5153
|
+
|
|
5154
|
+
deleteResourceCalendarPeriod(id: string): Promise<FileResponse> {
|
|
5155
|
+
let url_ = this.baseUrl + "/resources/kpi/calendar-periods/{id}";
|
|
5156
|
+
if (id === undefined || id === null)
|
|
5157
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
5158
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
5159
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
5160
|
+
|
|
5161
|
+
let options_: RequestInit = {
|
|
5162
|
+
method: "DELETE",
|
|
5163
|
+
headers: {
|
|
5164
|
+
"Accept": "application/octet-stream"
|
|
5165
|
+
}
|
|
5166
|
+
};
|
|
5167
|
+
|
|
5168
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
5169
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
5170
|
+
}).then((_response: Response) => {
|
|
5171
|
+
return this.processDeleteResourceCalendarPeriod(_response);
|
|
5172
|
+
});
|
|
5173
|
+
}
|
|
5174
|
+
|
|
5175
|
+
protected processDeleteResourceCalendarPeriod(response: Response): Promise<FileResponse> {
|
|
5176
|
+
const status = response.status;
|
|
5177
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
5178
|
+
if (status === 200 || status === 206) {
|
|
5179
|
+
const contentDisposition = response.headers ? response.headers.get("content-disposition") : undefined;
|
|
5180
|
+
let fileNameMatch = contentDisposition ? /filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(contentDisposition) : undefined;
|
|
5181
|
+
let fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[3] || fileNameMatch[2] : undefined;
|
|
5182
|
+
if (fileName) {
|
|
5183
|
+
fileName = decodeURIComponent(fileName);
|
|
5184
|
+
} else {
|
|
5185
|
+
fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
|
|
5186
|
+
fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
|
|
5187
|
+
}
|
|
5188
|
+
return response.blob().then(blob => { return { fileName: fileName, data: blob, status: status, headers: _headers }; });
|
|
5189
|
+
} else if (status !== 200 && status !== 204) {
|
|
5190
|
+
return response.text().then((_responseText) => {
|
|
5191
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
5192
|
+
});
|
|
5193
|
+
}
|
|
5194
|
+
return Promise.resolve<FileResponse>(null as any);
|
|
5195
|
+
}
|
|
5196
|
+
|
|
5197
|
+
bulkAddResourceCalendarPeriods(request: BulkAddResourceCalendarPeriods): Promise<ResourceCalendarPeriodDto[]> {
|
|
5198
|
+
let url_ = this.baseUrl + "/resources/kpi/calendar-periods/bulk";
|
|
5199
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
5200
|
+
|
|
5201
|
+
const content_ = JSON.stringify(request);
|
|
5202
|
+
|
|
5203
|
+
let options_: RequestInit = {
|
|
5204
|
+
body: content_,
|
|
5205
|
+
method: "POST",
|
|
5206
|
+
headers: {
|
|
5207
|
+
"Content-Type": "application/json",
|
|
5208
|
+
"Accept": "application/json"
|
|
5209
|
+
}
|
|
5210
|
+
};
|
|
5211
|
+
|
|
5212
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
5213
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
5214
|
+
}).then((_response: Response) => {
|
|
5215
|
+
return this.processBulkAddResourceCalendarPeriods(_response);
|
|
5216
|
+
});
|
|
5217
|
+
}
|
|
5218
|
+
|
|
5219
|
+
protected processBulkAddResourceCalendarPeriods(response: Response): Promise<ResourceCalendarPeriodDto[]> {
|
|
5220
|
+
const status = response.status;
|
|
5221
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
5222
|
+
if (status === 200) {
|
|
5223
|
+
return response.text().then((_responseText) => {
|
|
5224
|
+
let result200: any = null;
|
|
5225
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as ResourceCalendarPeriodDto[];
|
|
5226
|
+
return result200;
|
|
5227
|
+
});
|
|
5228
|
+
} else if (status !== 200 && status !== 204) {
|
|
5229
|
+
return response.text().then((_responseText) => {
|
|
5230
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
5231
|
+
});
|
|
5232
|
+
}
|
|
5233
|
+
return Promise.resolve<ResourceCalendarPeriodDto[]>(null as any);
|
|
5234
|
+
}
|
|
5235
|
+
|
|
5236
|
+
copyResourceCalendarPeriod(id: string, request: CopyResourceCalendarPeriod): Promise<ResourceCalendarPeriodDto> {
|
|
5237
|
+
let url_ = this.baseUrl + "/resources/kpi/calendar-periods/{id}/copy";
|
|
5238
|
+
if (id === undefined || id === null)
|
|
5239
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
5240
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
5241
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
5242
|
+
|
|
5243
|
+
const content_ = JSON.stringify(request);
|
|
5244
|
+
|
|
5245
|
+
let options_: RequestInit = {
|
|
5246
|
+
body: content_,
|
|
5247
|
+
method: "POST",
|
|
5248
|
+
headers: {
|
|
5249
|
+
"Content-Type": "application/json",
|
|
5250
|
+
"Accept": "application/json"
|
|
5251
|
+
}
|
|
5252
|
+
};
|
|
5253
|
+
|
|
5254
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
5255
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
5256
|
+
}).then((_response: Response) => {
|
|
5257
|
+
return this.processCopyResourceCalendarPeriod(_response);
|
|
5258
|
+
});
|
|
5259
|
+
}
|
|
5260
|
+
|
|
5261
|
+
protected processCopyResourceCalendarPeriod(response: Response): Promise<ResourceCalendarPeriodDto> {
|
|
5262
|
+
const status = response.status;
|
|
5263
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
5264
|
+
if (status === 200) {
|
|
5265
|
+
return response.text().then((_responseText) => {
|
|
5266
|
+
let result200: any = null;
|
|
5267
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as ResourceCalendarPeriodDto;
|
|
5268
|
+
return result200;
|
|
5269
|
+
});
|
|
5270
|
+
} else if (status !== 200 && status !== 204) {
|
|
5271
|
+
return response.text().then((_responseText) => {
|
|
5272
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
5273
|
+
});
|
|
5274
|
+
}
|
|
5275
|
+
return Promise.resolve<ResourceCalendarPeriodDto>(null as any);
|
|
5276
|
+
}
|
|
5277
|
+
|
|
5278
|
+
migrateResourceCapacity(): Promise<MigrationResultDto> {
|
|
5279
|
+
let url_ = this.baseUrl + "/resources/kpi/calendar-periods/migrate";
|
|
5280
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
5281
|
+
|
|
5282
|
+
let options_: RequestInit = {
|
|
5283
|
+
method: "POST",
|
|
5284
|
+
headers: {
|
|
5285
|
+
"Accept": "application/json"
|
|
5286
|
+
}
|
|
5287
|
+
};
|
|
5288
|
+
|
|
5289
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
5290
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
5291
|
+
}).then((_response: Response) => {
|
|
5292
|
+
return this.processMigrateResourceCapacity(_response);
|
|
5293
|
+
});
|
|
5294
|
+
}
|
|
5295
|
+
|
|
5296
|
+
protected processMigrateResourceCapacity(response: Response): Promise<MigrationResultDto> {
|
|
5297
|
+
const status = response.status;
|
|
5298
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
5299
|
+
if (status === 200) {
|
|
5300
|
+
return response.text().then((_responseText) => {
|
|
5301
|
+
let result200: any = null;
|
|
5302
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as MigrationResultDto;
|
|
5303
|
+
return result200;
|
|
5304
|
+
});
|
|
5305
|
+
} else if (status !== 200 && status !== 204) {
|
|
5306
|
+
return response.text().then((_responseText) => {
|
|
5307
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
5308
|
+
});
|
|
5309
|
+
}
|
|
5310
|
+
return Promise.resolve<MigrationResultDto>(null as any);
|
|
5311
|
+
}
|
|
5312
|
+
|
|
5313
|
+
migrateCalendarIds(): Promise<MigrationResultDto> {
|
|
5314
|
+
let url_ = this.baseUrl + "/resources/kpi/calendar-periods/migrate-ids";
|
|
5315
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
5316
|
+
|
|
5317
|
+
let options_: RequestInit = {
|
|
5318
|
+
method: "POST",
|
|
5319
|
+
headers: {
|
|
5320
|
+
"Accept": "application/json"
|
|
5321
|
+
}
|
|
5322
|
+
};
|
|
5323
|
+
|
|
5324
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
5325
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
5326
|
+
}).then((_response: Response) => {
|
|
5327
|
+
return this.processMigrateCalendarIds(_response);
|
|
5328
|
+
});
|
|
5329
|
+
}
|
|
5330
|
+
|
|
5331
|
+
protected processMigrateCalendarIds(response: Response): Promise<MigrationResultDto> {
|
|
5332
|
+
const status = response.status;
|
|
5333
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
5334
|
+
if (status === 200) {
|
|
5335
|
+
return response.text().then((_responseText) => {
|
|
5336
|
+
let result200: any = null;
|
|
5337
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as MigrationResultDto;
|
|
5338
|
+
return result200;
|
|
5339
|
+
});
|
|
5340
|
+
} else if (status !== 200 && status !== 204) {
|
|
5341
|
+
return response.text().then((_responseText) => {
|
|
5342
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
5343
|
+
});
|
|
5344
|
+
}
|
|
5345
|
+
return Promise.resolve<MigrationResultDto>(null as any);
|
|
5346
|
+
}
|
|
5347
|
+
}
|
|
5348
|
+
|
|
4842
5349
|
export interface IKpiResourceClient {
|
|
4843
5350
|
|
|
4844
5351
|
getResourceKpi(resourceExternalId: string | undefined, previousPeriodStartDate: Date | undefined, startDate: Date | undefined, endDate: Date | undefined, utcOffset: number | undefined): Promise<ResourceKpiDto>;
|
|
@@ -23072,7 +23579,7 @@ export interface IInspectMatchMaterialChecksClient {
|
|
|
23072
23579
|
|
|
23073
23580
|
getMaterialCheck(id: string): Promise<ImaMaterialCheckDto>;
|
|
23074
23581
|
|
|
23075
|
-
listMaterialChecks(
|
|
23582
|
+
listMaterialChecks(request: ImaMaterialChecksPageRequestDto): Promise<PagedResultOfImaMaterialCheckLiteDto>;
|
|
23076
23583
|
|
|
23077
23584
|
processMaterialCertificate(certificatesRequest: ProcessMaterialCertificate): Promise<void>;
|
|
23078
23585
|
}
|
|
@@ -23125,12 +23632,8 @@ export class InspectMatchMaterialChecksClient extends AuthorizedApiBase implemen
|
|
|
23125
23632
|
return Promise.resolve<ImaMaterialCheckDto>(null as any);
|
|
23126
23633
|
}
|
|
23127
23634
|
|
|
23128
|
-
listMaterialChecks(
|
|
23129
|
-
let url_ = this.baseUrl + "/inspect/match/material-checks/list
|
|
23130
|
-
if (pageSize !== undefined && pageSize !== null)
|
|
23131
|
-
url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
|
|
23132
|
-
if (continuationToken !== undefined && continuationToken !== null)
|
|
23133
|
-
url_ += "continuationToken=" + encodeURIComponent("" + continuationToken) + "&";
|
|
23635
|
+
listMaterialChecks(request: ImaMaterialChecksPageRequestDto): Promise<PagedResultOfImaMaterialCheckLiteDto> {
|
|
23636
|
+
let url_ = this.baseUrl + "/inspect/match/material-checks/list";
|
|
23134
23637
|
url_ = url_.replace(/[?&]$/, "");
|
|
23135
23638
|
|
|
23136
23639
|
const content_ = JSON.stringify(request);
|
|
@@ -30515,6 +31018,82 @@ export interface UpdateCalendarSettingsCommand {
|
|
|
30515
31018
|
defaultPerformancePercent?: number | null;
|
|
30516
31019
|
}
|
|
30517
31020
|
|
|
31021
|
+
export interface CalendarDefinitionDto {
|
|
31022
|
+
id?: string;
|
|
31023
|
+
name?: string;
|
|
31024
|
+
hoursPerWeekday?: { [key in DayOfWeek]?: number; };
|
|
31025
|
+
created?: Date | null;
|
|
31026
|
+
updatedBy?: string | null;
|
|
31027
|
+
}
|
|
31028
|
+
|
|
31029
|
+
export interface CreateCalendarDefinition {
|
|
31030
|
+
name: string;
|
|
31031
|
+
hoursPerWeekday: { [key in DayOfWeek]?: number; };
|
|
31032
|
+
}
|
|
31033
|
+
|
|
31034
|
+
export interface UpdateCalendarDefinition {
|
|
31035
|
+
id: string;
|
|
31036
|
+
name?: string | null;
|
|
31037
|
+
hoursPerWeekday?: { [key in DayOfWeek]?: number; } | null;
|
|
31038
|
+
}
|
|
31039
|
+
|
|
31040
|
+
export interface ResourceCalendarPeriodGroupDto {
|
|
31041
|
+
department?: string | null;
|
|
31042
|
+
resources?: ResourceCalendarPeriodsDto[];
|
|
31043
|
+
}
|
|
31044
|
+
|
|
31045
|
+
export interface ResourceCalendarPeriodsDto {
|
|
31046
|
+
resourceExternalId?: string;
|
|
31047
|
+
resourceName?: string;
|
|
31048
|
+
periods?: ResourceCalendarPeriodDto[];
|
|
31049
|
+
}
|
|
31050
|
+
|
|
31051
|
+
export interface ResourceCalendarPeriodDto {
|
|
31052
|
+
id?: string;
|
|
31053
|
+
resourceExternalId?: string;
|
|
31054
|
+
calendarDefinitionId?: string;
|
|
31055
|
+
calendarDefinitionName?: string;
|
|
31056
|
+
effectiveFrom?: string;
|
|
31057
|
+
effectiveTo?: string | null;
|
|
31058
|
+
targetPercent?: number;
|
|
31059
|
+
comment?: string | null;
|
|
31060
|
+
}
|
|
31061
|
+
|
|
31062
|
+
export interface AddResourceCalendarPeriod {
|
|
31063
|
+
resourceExternalId: string;
|
|
31064
|
+
calendarDefinitionId: string;
|
|
31065
|
+
effectiveFrom: string;
|
|
31066
|
+
targetPercent: number;
|
|
31067
|
+
comment?: string | null;
|
|
31068
|
+
}
|
|
31069
|
+
|
|
31070
|
+
export interface UpdateResourceCalendarPeriod {
|
|
31071
|
+
id: string;
|
|
31072
|
+
calendarDefinitionId?: string | null;
|
|
31073
|
+
targetPercent?: number | null;
|
|
31074
|
+
effectiveFrom?: string | null;
|
|
31075
|
+
comment?: string | null;
|
|
31076
|
+
}
|
|
31077
|
+
|
|
31078
|
+
export interface BulkAddResourceCalendarPeriods {
|
|
31079
|
+
resourceExternalIds: string[];
|
|
31080
|
+
calendarDefinitionId: string;
|
|
31081
|
+
effectiveFrom: string;
|
|
31082
|
+
targetPercent: number;
|
|
31083
|
+
comment?: string | null;
|
|
31084
|
+
}
|
|
31085
|
+
|
|
31086
|
+
export interface CopyResourceCalendarPeriod {
|
|
31087
|
+
sourcePeriodId: string;
|
|
31088
|
+
targetResourceExternalId: string;
|
|
31089
|
+
effectiveFrom: string;
|
|
31090
|
+
}
|
|
31091
|
+
|
|
31092
|
+
export interface MigrationResultDto {
|
|
31093
|
+
created?: number;
|
|
31094
|
+
skipped?: number;
|
|
31095
|
+
}
|
|
31096
|
+
|
|
30518
31097
|
export interface ResourceKpiDto {
|
|
30519
31098
|
uptimeToNow: number;
|
|
30520
31099
|
uptimeToNowPreviousPeriod: number;
|
|
@@ -30561,6 +31140,7 @@ export interface ApplicationResourcesResourceGroupDto {
|
|
|
30561
31140
|
id: string;
|
|
30562
31141
|
name: string;
|
|
30563
31142
|
companyId?: string | null;
|
|
31143
|
+
department?: string | null;
|
|
30564
31144
|
resources: ResourceGroupMemberDto[];
|
|
30565
31145
|
}
|
|
30566
31146
|
|
|
@@ -34742,6 +35322,7 @@ export interface ImaCertificateTypeLiteDto extends ImaCdfEntityReadBase {
|
|
|
34742
35322
|
|
|
34743
35323
|
export interface ImaMaterialCheckDto {
|
|
34744
35324
|
materialCheckId: string;
|
|
35325
|
+
fileName: string;
|
|
34745
35326
|
originalMaterialCertificate: FileDto;
|
|
34746
35327
|
generatedMaterialCertificate?: FileDto | null;
|
|
34747
35328
|
customerOrder?: string | null;
|
|
@@ -35080,6 +35661,7 @@ export interface PagedResultOfImaMaterialCheckLiteDto {
|
|
|
35080
35661
|
|
|
35081
35662
|
export interface ImaMaterialCheckLiteDto {
|
|
35082
35663
|
materialCheckId: string;
|
|
35664
|
+
fileName: string;
|
|
35083
35665
|
originalMaterialCertificate: FileDto;
|
|
35084
35666
|
generatedMaterialCertificate?: FileDto | null;
|
|
35085
35667
|
customerOrder?: string | null;
|
|
@@ -35113,26 +35695,35 @@ export interface ImaMaterialCheckLiteDto {
|
|
|
35113
35695
|
|
|
35114
35696
|
export interface ImaMaterialChecksPageRequestDto {
|
|
35115
35697
|
pageSize?: number | null;
|
|
35116
|
-
orderBy?:
|
|
35117
|
-
|
|
35118
|
-
|
|
35119
|
-
|
|
35120
|
-
|
|
35698
|
+
orderBy?: ImaMaterialChecksPageOrderRequestDto[] | null;
|
|
35699
|
+
searchQuery?: string | null;
|
|
35700
|
+
fileNameFilter?: string | null;
|
|
35701
|
+
specificationFilter?: string | null;
|
|
35702
|
+
customerOrderFilter?: string | null;
|
|
35121
35703
|
projectFilter?: string | null;
|
|
35122
35704
|
purchaseOrderFilter?: string | null;
|
|
35123
35705
|
workOrderFilter?: string | null;
|
|
35124
35706
|
certificateTypeFilter?: string | null;
|
|
35125
|
-
|
|
35126
|
-
itemFilter?: string | null;
|
|
35707
|
+
purchaseOrderLineFilter?: number | null;
|
|
35127
35708
|
heatFilter?: string | null;
|
|
35128
|
-
|
|
35709
|
+
vendorBatchesFilter?: string[] | null;
|
|
35710
|
+
purchaseOrderPartNameFilter?: string | null;
|
|
35711
|
+
purchaseOrderPartNumberFilter?: string | null;
|
|
35712
|
+
purchaseOrderDrawingFilter?: string | null;
|
|
35129
35713
|
dateFromFilter?: Date | null;
|
|
35130
35714
|
dateToFilter?: Date | null;
|
|
35131
35715
|
statusFilter?: ImaMaterialCheckStatus[] | null;
|
|
35132
35716
|
continuationToken?: string | null;
|
|
35133
35717
|
}
|
|
35134
35718
|
|
|
35135
|
-
export
|
|
35719
|
+
export interface ImaMaterialChecksPageOrderRequestDto {
|
|
35720
|
+
column?: ImaMaterialChecksOrderByColumn;
|
|
35721
|
+
direction?: ImaOrderDirection;
|
|
35722
|
+
}
|
|
35723
|
+
|
|
35724
|
+
export type ImaMaterialChecksOrderByColumn = "FileName" | "PurchaseOrder" | "Line" | "VendorBatch" | "Part" | "Drawing" | "Heat" | "CertificateType" | "Specification" | "GeneratedReport" | "Project" | "CustomerOrder" | "WorkOrder" | "Date" | "Status";
|
|
35725
|
+
|
|
35726
|
+
export type ImaOrderDirection = "Asc" | "Desc";
|
|
35136
35727
|
|
|
35137
35728
|
export interface ProcessMaterialCertificate {
|
|
35138
35729
|
files: UploadFileCdfDto[];
|