@ignos/api-client 20260821.235.1 → 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.
@@ -2785,6 +2785,8 @@ 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[]>;
2789
+ downloadReport(id: string): Promise<FileDto>;
2788
2790
  }
2789
2791
  export declare class InspectMatchMaterialChecksClient extends AuthorizedApiBase implements IInspectMatchMaterialChecksClient {
2790
2792
  private http;
@@ -2800,6 +2802,10 @@ export declare class InspectMatchMaterialChecksClient extends AuthorizedApiBase
2800
2802
  protected processProcessMaterialCertificate(response: Response): Promise<void>;
2801
2803
  generateReport(request: ImaMaterialChecksReportRequestDto): Promise<ImaMaterialCheckReportDto>;
2802
2804
  protected processGenerateReport(response: Response): Promise<ImaMaterialCheckReportDto>;
2805
+ getReportHistory(id: string): Promise<ImaMaterialCheckReportDto[]>;
2806
+ protected processGetReportHistory(response: Response): Promise<ImaMaterialCheckReportDto[]>;
2807
+ downloadReport(id: string): Promise<FileDto>;
2808
+ protected processDownloadReport(response: Response): Promise<FileDto>;
2803
2809
  }
2804
2810
  export interface IInspectMatchPurchaseOrderClient {
2805
2811
  searchPurchaseOrders(input: string | undefined): Promise<PurchaseOrderMaterialSearchResultsDto>;
@@ -8297,7 +8303,6 @@ export interface ImaMaterialCheckDto {
8297
8303
  materialCheckId: string;
8298
8304
  fileName: string;
8299
8305
  originalMaterialCertificate: FileDto;
8300
- generatedMaterialCertificate?: FileDto | null;
8301
8306
  customerOrder?: string | null;
8302
8307
  project?: string | null;
8303
8308
  workOrder?: string | null;
@@ -8329,10 +8334,6 @@ export interface ImaMaterialCheckDto {
8329
8334
  updatedById: string;
8330
8335
  updatedByName?: string | null;
8331
8336
  isDeleted: boolean;
8332
- reportCreatedBy?: string | null;
8333
- reportCreatedById?: string | null;
8334
- reportCreatedByName?: string | null;
8335
- reportCreated?: Date | null;
8336
8337
  certificateTypeResults: ImaCertificateTypeResultsDto;
8337
8338
  specificationResults: ImaSpecificationResultsDto;
8338
8339
  }
@@ -8811,7 +8812,6 @@ export interface ImaMaterialCheckLiteDto {
8811
8812
  materialCheckId: string;
8812
8813
  fileName: string;
8813
8814
  originalMaterialCertificate: FileDto;
8814
- generatedMaterialCertificate?: FileDto | null;
8815
8815
  customerOrder?: string | null;
8816
8816
  project?: string | null;
8817
8817
  workOrder?: string | null;
@@ -8843,10 +8843,6 @@ export interface ImaMaterialCheckLiteDto {
8843
8843
  updatedById: string;
8844
8844
  updatedByName?: string | null;
8845
8845
  isDeleted?: boolean;
8846
- reportCreatedBy?: string | null;
8847
- reportCreatedById?: string | null;
8848
- reportCreatedByName?: string | null;
8849
- reportCreated?: Date | null;
8850
8846
  }
8851
8847
  export interface ImaMaterialChecksPageRequestDto {
8852
8848
  pageSize?: number | null;
@@ -8874,7 +8870,7 @@ export interface ImaMaterialChecksPageOrderRequestDto {
8874
8870
  column?: ImaMaterialChecksOrderByColumnDto;
8875
8871
  direction?: ImaOrderDirectionDto;
8876
8872
  }
8877
- export type ImaMaterialChecksOrderByColumnDto = "FileName" | "PurchaseOrder" | "Line" | "VendorBatch" | "Part" | "Drawing" | "Heat" | "CertificateType" | "Specification" | "GeneratedReport" | "Project" | "CustomerOrder" | "WorkOrder" | "Date" | "Status";
8873
+ export type ImaMaterialChecksOrderByColumnDto = "FileName" | "PurchaseOrder" | "Line" | "VendorBatch" | "Part" | "Drawing" | "Heat" | "CertificateType" | "Specification" | "Project" | "CustomerOrder" | "WorkOrder" | "Date" | "Status";
8878
8874
  export type ImaOrderDirectionDto = "Asc" | "Desc";
8879
8875
  export interface ProcessMaterialCertificate {
8880
8876
  files: UploadFileCdfDto[];
@@ -8890,6 +8886,8 @@ export interface UploadFileCdfDto {
8890
8886
  }
8891
8887
  export interface ImaMaterialCheckReportDto {
8892
8888
  file: FileDto;
8889
+ heatNumbers: string[];
8890
+ includesAllHeats: boolean;
8893
8891
  audit: ImaMaterialCheckReportAuditInfo;
8894
8892
  }
8895
8893
  export interface ImaMaterialCheckReportAuditInfo {
@@ -8899,8 +8897,14 @@ export interface ImaMaterialCheckReportAuditInfo {
8899
8897
  created: Date;
8900
8898
  }
8901
8899
  export interface ImaMaterialChecksReportRequestDto {
8902
- materialCheck?: ImaMaterialCheckDto;
8903
- purchaseOrder?: PurchaseOrderMaterialLineDetailsDto | null;
8900
+ materialCheckId?: string;
8901
+ selectedHeatNumbers?: string[] | null;
8902
+ }
8903
+ export interface PurchaseOrderMaterialSearchResultsDto {
8904
+ purchaseOrders: string[];
8905
+ }
8906
+ export interface PurchaseOrderMaterialLinesDto {
8907
+ lines: number[];
8904
8908
  }
8905
8909
  export interface PurchaseOrderMaterialLineDetailsDto {
8906
8910
  companyId: string;
@@ -8934,12 +8938,6 @@ export interface User {
8934
8938
  upn?: string | null;
8935
8939
  email?: string | null;
8936
8940
  }
8937
- export interface PurchaseOrderMaterialSearchResultsDto {
8938
- purchaseOrders: string[];
8939
- }
8940
- export interface PurchaseOrderMaterialLinesDto {
8941
- lines: number[];
8942
- }
8943
8941
  export interface ImaMatchSettingsDto {
8944
8942
  columns: ImaMatchSettingsColumnsDto;
8945
8943
  }
@@ -23228,6 +23228,84 @@ 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
+ }
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
+ }
23231
23309
  }
23232
23310
  export class InspectMatchPurchaseOrderClient extends AuthorizedApiBase {
23233
23311
  constructor(configuration, baseUrl, http) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ignos/api-client",
3
- "version": "20260821.235.1",
3
+ "version": "20260821.237.1-alpha",
4
4
  "description": "IGNOS API Client",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -24676,6 +24676,10 @@ export interface IInspectMatchMaterialChecksClient {
24676
24676
  processMaterialCertificate(certificatesRequest: ProcessMaterialCertificate): Promise<void>;
24677
24677
 
24678
24678
  generateReport(request: ImaMaterialChecksReportRequestDto): Promise<ImaMaterialCheckReportDto>;
24679
+
24680
+ getReportHistory(id: string): Promise<ImaMaterialCheckReportDto[]>;
24681
+
24682
+ downloadReport(id: string): Promise<FileDto>;
24679
24683
  }
24680
24684
 
24681
24685
  export class InspectMatchMaterialChecksClient extends AuthorizedApiBase implements IInspectMatchMaterialChecksClient {
@@ -24839,6 +24843,82 @@ export class InspectMatchMaterialChecksClient extends AuthorizedApiBase implemen
24839
24843
  }
24840
24844
  return Promise.resolve<ImaMaterialCheckReportDto>(null as any);
24841
24845
  }
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
+
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
+ }
24842
24922
  }
24843
24923
 
24844
24924
  export interface IInspectMatchPurchaseOrderClient {
@@ -36788,7 +36868,6 @@ export interface ImaMaterialCheckDto {
36788
36868
  materialCheckId: string;
36789
36869
  fileName: string;
36790
36870
  originalMaterialCertificate: FileDto;
36791
- generatedMaterialCertificate?: FileDto | null;
36792
36871
  customerOrder?: string | null;
36793
36872
  project?: string | null;
36794
36873
  workOrder?: string | null;
@@ -36820,10 +36899,6 @@ export interface ImaMaterialCheckDto {
36820
36899
  updatedById: string;
36821
36900
  updatedByName?: string | null;
36822
36901
  isDeleted: boolean;
36823
- reportCreatedBy?: string | null;
36824
- reportCreatedById?: string | null;
36825
- reportCreatedByName?: string | null;
36826
- reportCreated?: Date | null;
36827
36902
  certificateTypeResults: ImaCertificateTypeResultsDto;
36828
36903
  specificationResults: ImaSpecificationResultsDto;
36829
36904
  }
@@ -37367,7 +37442,6 @@ export interface ImaMaterialCheckLiteDto {
37367
37442
  materialCheckId: string;
37368
37443
  fileName: string;
37369
37444
  originalMaterialCertificate: FileDto;
37370
- generatedMaterialCertificate?: FileDto | null;
37371
37445
  customerOrder?: string | null;
37372
37446
  project?: string | null;
37373
37447
  workOrder?: string | null;
@@ -37399,10 +37473,6 @@ export interface ImaMaterialCheckLiteDto {
37399
37473
  updatedById: string;
37400
37474
  updatedByName?: string | null;
37401
37475
  isDeleted?: boolean;
37402
- reportCreatedBy?: string | null;
37403
- reportCreatedById?: string | null;
37404
- reportCreatedByName?: string | null;
37405
- reportCreated?: Date | null;
37406
37476
  }
37407
37477
 
37408
37478
  export interface ImaMaterialChecksPageRequestDto {
@@ -37433,7 +37503,7 @@ export interface ImaMaterialChecksPageOrderRequestDto {
37433
37503
  direction?: ImaOrderDirectionDto;
37434
37504
  }
37435
37505
 
37436
- export type ImaMaterialChecksOrderByColumnDto = "FileName" | "PurchaseOrder" | "Line" | "VendorBatch" | "Part" | "Drawing" | "Heat" | "CertificateType" | "Specification" | "GeneratedReport" | "Project" | "CustomerOrder" | "WorkOrder" | "Date" | "Status";
37506
+ export type ImaMaterialChecksOrderByColumnDto = "FileName" | "PurchaseOrder" | "Line" | "VendorBatch" | "Part" | "Drawing" | "Heat" | "CertificateType" | "Specification" | "Project" | "CustomerOrder" | "WorkOrder" | "Date" | "Status";
37437
37507
 
37438
37508
  export type ImaOrderDirectionDto = "Asc" | "Desc";
37439
37509
 
@@ -37453,6 +37523,8 @@ export interface UploadFileCdfDto {
37453
37523
 
37454
37524
  export interface ImaMaterialCheckReportDto {
37455
37525
  file: FileDto;
37526
+ heatNumbers: string[];
37527
+ includesAllHeats: boolean;
37456
37528
  audit: ImaMaterialCheckReportAuditInfo;
37457
37529
  }
37458
37530
 
@@ -37464,8 +37536,16 @@ export interface ImaMaterialCheckReportAuditInfo {
37464
37536
  }
37465
37537
 
37466
37538
  export interface ImaMaterialChecksReportRequestDto {
37467
- materialCheck?: ImaMaterialCheckDto;
37468
- purchaseOrder?: PurchaseOrderMaterialLineDetailsDto | null;
37539
+ materialCheckId?: string;
37540
+ selectedHeatNumbers?: string[] | null;
37541
+ }
37542
+
37543
+ export interface PurchaseOrderMaterialSearchResultsDto {
37544
+ purchaseOrders: string[];
37545
+ }
37546
+
37547
+ export interface PurchaseOrderMaterialLinesDto {
37548
+ lines: number[];
37469
37549
  }
37470
37550
 
37471
37551
  export interface PurchaseOrderMaterialLineDetailsDto {
@@ -37503,14 +37583,6 @@ export interface User {
37503
37583
  email?: string | null;
37504
37584
  }
37505
37585
 
37506
- export interface PurchaseOrderMaterialSearchResultsDto {
37507
- purchaseOrders: string[];
37508
- }
37509
-
37510
- export interface PurchaseOrderMaterialLinesDto {
37511
- lines: number[];
37512
- }
37513
-
37514
37586
  export interface ImaMatchSettingsDto {
37515
37587
  columns: ImaMatchSettingsColumnsDto;
37516
37588
  }