@ignos/api-client 20260826.244.1-alpha → 20260826.245.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.
@@ -2786,7 +2786,6 @@ export interface IInspectMatchMaterialChecksClient {
2786
2786
  processMaterialCertificate(certificatesRequest: ProcessMaterialCertificate): Promise<void>;
2787
2787
  generateReport(request: ImaMaterialChecksReportRequestDto): Promise<ImaMaterialCheckReportDto>;
2788
2788
  getReportHistory(id: string): Promise<ImaMaterialCheckReportDto[]>;
2789
- downloadReport(id: string): Promise<FileDto>;
2790
2789
  }
2791
2790
  export declare class InspectMatchMaterialChecksClient extends AuthorizedApiBase implements IInspectMatchMaterialChecksClient {
2792
2791
  private http;
@@ -2804,8 +2803,6 @@ export declare class InspectMatchMaterialChecksClient extends AuthorizedApiBase
2804
2803
  protected processGenerateReport(response: Response): Promise<ImaMaterialCheckReportDto>;
2805
2804
  getReportHistory(id: string): Promise<ImaMaterialCheckReportDto[]>;
2806
2805
  protected processGetReportHistory(response: Response): Promise<ImaMaterialCheckReportDto[]>;
2807
- downloadReport(id: string): Promise<FileDto>;
2808
- protected processDownloadReport(response: Response): Promise<FileDto>;
2809
2806
  }
2810
2807
  export interface IInspectMatchPurchaseOrderClient {
2811
2808
  searchPurchaseOrders(input: string | undefined): Promise<PurchaseOrderMaterialSearchResultsDto>;
@@ -23267,45 +23267,6 @@ export class InspectMatchMaterialChecksClient extends AuthorizedApiBase {
23267
23267
  }
23268
23268
  return Promise.resolve(null);
23269
23269
  }
23270
- downloadReport(id) {
23271
- let url_ = this.baseUrl + "/inspect/match/material-checks/{id}/download-report";
23272
- if (id === undefined || id === null)
23273
- throw new globalThis.Error("The parameter 'id' must be defined.");
23274
- url_ = url_.replace("{id}", encodeURIComponent("" + id));
23275
- url_ = url_.replace(/[?&]$/, "");
23276
- let options_ = {
23277
- method: "POST",
23278
- headers: {
23279
- "Accept": "application/json"
23280
- }
23281
- };
23282
- return this.transformOptions(options_).then(transformedOptions_ => {
23283
- return this.http.fetch(url_, transformedOptions_);
23284
- }).then((_response) => {
23285
- return this.processDownloadReport(_response);
23286
- });
23287
- }
23288
- processDownloadReport(response) {
23289
- const status = response.status;
23290
- let _headers = {};
23291
- if (response.headers && response.headers.forEach) {
23292
- response.headers.forEach((v, k) => _headers[k] = v);
23293
- }
23294
- ;
23295
- if (status === 200) {
23296
- return response.text().then((_responseText) => {
23297
- let result200 = null;
23298
- result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
23299
- return result200;
23300
- });
23301
- }
23302
- else if (status !== 200 && status !== 204) {
23303
- return response.text().then((_responseText) => {
23304
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
23305
- });
23306
- }
23307
- return Promise.resolve(null);
23308
- }
23309
23270
  }
23310
23271
  export class InspectMatchPurchaseOrderClient extends AuthorizedApiBase {
23311
23272
  constructor(configuration, baseUrl, http) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ignos/api-client",
3
- "version": "20260826.244.1-alpha",
3
+ "version": "20260826.245.1-alpha",
4
4
  "description": "IGNOS API Client",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -24678,8 +24678,6 @@ export interface IInspectMatchMaterialChecksClient {
24678
24678
  generateReport(request: ImaMaterialChecksReportRequestDto): Promise<ImaMaterialCheckReportDto>;
24679
24679
 
24680
24680
  getReportHistory(id: string): Promise<ImaMaterialCheckReportDto[]>;
24681
-
24682
- downloadReport(id: string): Promise<FileDto>;
24683
24681
  }
24684
24682
 
24685
24683
  export class InspectMatchMaterialChecksClient extends AuthorizedApiBase implements IInspectMatchMaterialChecksClient {
@@ -24881,44 +24879,6 @@ export class InspectMatchMaterialChecksClient extends AuthorizedApiBase implemen
24881
24879
  }
24882
24880
  return Promise.resolve<ImaMaterialCheckReportDto[]>(null as any);
24883
24881
  }
24884
-
24885
- downloadReport(id: string): Promise<FileDto> {
24886
- let url_ = this.baseUrl + "/inspect/match/material-checks/{id}/download-report";
24887
- if (id === undefined || id === null)
24888
- throw new globalThis.Error("The parameter 'id' must be defined.");
24889
- url_ = url_.replace("{id}", encodeURIComponent("" + id));
24890
- url_ = url_.replace(/[?&]$/, "");
24891
-
24892
- let options_: RequestInit = {
24893
- method: "POST",
24894
- headers: {
24895
- "Accept": "application/json"
24896
- }
24897
- };
24898
-
24899
- return this.transformOptions(options_).then(transformedOptions_ => {
24900
- return this.http.fetch(url_, transformedOptions_);
24901
- }).then((_response: Response) => {
24902
- return this.processDownloadReport(_response);
24903
- });
24904
- }
24905
-
24906
- protected processDownloadReport(response: Response): Promise<FileDto> {
24907
- const status = response.status;
24908
- let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
24909
- if (status === 200) {
24910
- return response.text().then((_responseText) => {
24911
- let result200: any = null;
24912
- result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as FileDto;
24913
- return result200;
24914
- });
24915
- } else if (status !== 200 && status !== 204) {
24916
- return response.text().then((_responseText) => {
24917
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
24918
- });
24919
- }
24920
- return Promise.resolve<FileDto>(null as any);
24921
- }
24922
24882
  }
24923
24883
 
24924
24884
  export interface IInspectMatchPurchaseOrderClient {