@ignos/api-client 20260821.236.1-alpha → 20260821.237.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 +5 -0
- package/lib/ignosportal-api.js +39 -0
- package/package.json +1 -1
- package/src/ignosportal-api.ts +42 -0
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -2785,6 +2785,7 @@ export interface IInspectMatchMaterialChecksClient {
|
|
|
2785
2785
|
listMaterialChecks(request: ImaMaterialChecksPageRequestDto): Promise<PagedResultOfImaMaterialCheckLiteDto>;
|
|
2786
2786
|
processMaterialCertificate(certificatesRequest: ProcessMaterialCertificate): Promise<void>;
|
|
2787
2787
|
generateReport(request: ImaMaterialChecksReportRequestDto): Promise<ImaMaterialCheckReportDto>;
|
|
2788
|
+
getReportHistory(id: string): Promise<ImaMaterialCheckReportDto[]>;
|
|
2788
2789
|
downloadReport(id: string): Promise<FileDto>;
|
|
2789
2790
|
}
|
|
2790
2791
|
export declare class InspectMatchMaterialChecksClient extends AuthorizedApiBase implements IInspectMatchMaterialChecksClient {
|
|
@@ -2801,6 +2802,8 @@ export declare class InspectMatchMaterialChecksClient extends AuthorizedApiBase
|
|
|
2801
2802
|
protected processProcessMaterialCertificate(response: Response): Promise<void>;
|
|
2802
2803
|
generateReport(request: ImaMaterialChecksReportRequestDto): Promise<ImaMaterialCheckReportDto>;
|
|
2803
2804
|
protected processGenerateReport(response: Response): Promise<ImaMaterialCheckReportDto>;
|
|
2805
|
+
getReportHistory(id: string): Promise<ImaMaterialCheckReportDto[]>;
|
|
2806
|
+
protected processGetReportHistory(response: Response): Promise<ImaMaterialCheckReportDto[]>;
|
|
2804
2807
|
downloadReport(id: string): Promise<FileDto>;
|
|
2805
2808
|
protected processDownloadReport(response: Response): Promise<FileDto>;
|
|
2806
2809
|
}
|
|
@@ -8883,6 +8886,8 @@ export interface UploadFileCdfDto {
|
|
|
8883
8886
|
}
|
|
8884
8887
|
export interface ImaMaterialCheckReportDto {
|
|
8885
8888
|
file: FileDto;
|
|
8889
|
+
heatNumbers: string[];
|
|
8890
|
+
includesAllHeats: boolean;
|
|
8886
8891
|
audit: ImaMaterialCheckReportAuditInfo;
|
|
8887
8892
|
}
|
|
8888
8893
|
export interface ImaMaterialCheckReportAuditInfo {
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -23228,6 +23228,45 @@ export class InspectMatchMaterialChecksClient extends AuthorizedApiBase {
|
|
|
23228
23228
|
}
|
|
23229
23229
|
return Promise.resolve(null);
|
|
23230
23230
|
}
|
|
23231
|
+
getReportHistory(id) {
|
|
23232
|
+
let url_ = this.baseUrl + "/inspect/match/material-checks/{id}/report-history";
|
|
23233
|
+
if (id === undefined || id === null)
|
|
23234
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
23235
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
23236
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
23237
|
+
let options_ = {
|
|
23238
|
+
method: "GET",
|
|
23239
|
+
headers: {
|
|
23240
|
+
"Accept": "application/json"
|
|
23241
|
+
}
|
|
23242
|
+
};
|
|
23243
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
23244
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
23245
|
+
}).then((_response) => {
|
|
23246
|
+
return this.processGetReportHistory(_response);
|
|
23247
|
+
});
|
|
23248
|
+
}
|
|
23249
|
+
processGetReportHistory(response) {
|
|
23250
|
+
const status = response.status;
|
|
23251
|
+
let _headers = {};
|
|
23252
|
+
if (response.headers && response.headers.forEach) {
|
|
23253
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
23254
|
+
}
|
|
23255
|
+
;
|
|
23256
|
+
if (status === 200) {
|
|
23257
|
+
return response.text().then((_responseText) => {
|
|
23258
|
+
let result200 = null;
|
|
23259
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
23260
|
+
return result200;
|
|
23261
|
+
});
|
|
23262
|
+
}
|
|
23263
|
+
else if (status !== 200 && status !== 204) {
|
|
23264
|
+
return response.text().then((_responseText) => {
|
|
23265
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
23266
|
+
});
|
|
23267
|
+
}
|
|
23268
|
+
return Promise.resolve(null);
|
|
23269
|
+
}
|
|
23231
23270
|
downloadReport(id) {
|
|
23232
23271
|
let url_ = this.baseUrl + "/inspect/match/material-checks/{id}/download-report";
|
|
23233
23272
|
if (id === undefined || id === null)
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -24677,6 +24677,8 @@ export interface IInspectMatchMaterialChecksClient {
|
|
|
24677
24677
|
|
|
24678
24678
|
generateReport(request: ImaMaterialChecksReportRequestDto): Promise<ImaMaterialCheckReportDto>;
|
|
24679
24679
|
|
|
24680
|
+
getReportHistory(id: string): Promise<ImaMaterialCheckReportDto[]>;
|
|
24681
|
+
|
|
24680
24682
|
downloadReport(id: string): Promise<FileDto>;
|
|
24681
24683
|
}
|
|
24682
24684
|
|
|
@@ -24842,6 +24844,44 @@ export class InspectMatchMaterialChecksClient extends AuthorizedApiBase implemen
|
|
|
24842
24844
|
return Promise.resolve<ImaMaterialCheckReportDto>(null as any);
|
|
24843
24845
|
}
|
|
24844
24846
|
|
|
24847
|
+
getReportHistory(id: string): Promise<ImaMaterialCheckReportDto[]> {
|
|
24848
|
+
let url_ = this.baseUrl + "/inspect/match/material-checks/{id}/report-history";
|
|
24849
|
+
if (id === undefined || id === null)
|
|
24850
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
24851
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
24852
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
24853
|
+
|
|
24854
|
+
let options_: RequestInit = {
|
|
24855
|
+
method: "GET",
|
|
24856
|
+
headers: {
|
|
24857
|
+
"Accept": "application/json"
|
|
24858
|
+
}
|
|
24859
|
+
};
|
|
24860
|
+
|
|
24861
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
24862
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
24863
|
+
}).then((_response: Response) => {
|
|
24864
|
+
return this.processGetReportHistory(_response);
|
|
24865
|
+
});
|
|
24866
|
+
}
|
|
24867
|
+
|
|
24868
|
+
protected processGetReportHistory(response: Response): Promise<ImaMaterialCheckReportDto[]> {
|
|
24869
|
+
const status = response.status;
|
|
24870
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
24871
|
+
if (status === 200) {
|
|
24872
|
+
return response.text().then((_responseText) => {
|
|
24873
|
+
let result200: any = null;
|
|
24874
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as ImaMaterialCheckReportDto[];
|
|
24875
|
+
return result200;
|
|
24876
|
+
});
|
|
24877
|
+
} else if (status !== 200 && status !== 204) {
|
|
24878
|
+
return response.text().then((_responseText) => {
|
|
24879
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
24880
|
+
});
|
|
24881
|
+
}
|
|
24882
|
+
return Promise.resolve<ImaMaterialCheckReportDto[]>(null as any);
|
|
24883
|
+
}
|
|
24884
|
+
|
|
24845
24885
|
downloadReport(id: string): Promise<FileDto> {
|
|
24846
24886
|
let url_ = this.baseUrl + "/inspect/match/material-checks/{id}/download-report";
|
|
24847
24887
|
if (id === undefined || id === null)
|
|
@@ -37483,6 +37523,8 @@ export interface UploadFileCdfDto {
|
|
|
37483
37523
|
|
|
37484
37524
|
export interface ImaMaterialCheckReportDto {
|
|
37485
37525
|
file: FileDto;
|
|
37526
|
+
heatNumbers: string[];
|
|
37527
|
+
includesAllHeats: boolean;
|
|
37486
37528
|
audit: ImaMaterialCheckReportAuditInfo;
|
|
37487
37529
|
}
|
|
37488
37530
|
|