@ignos/api-client 20260529.142.1 → 20260529.143.1

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.
@@ -2651,6 +2651,7 @@ export interface IInspectMatchMaterialChecksClient {
2651
2651
  getMaterialCheck(id: string): Promise<ImaMaterialCheckDto>;
2652
2652
  listMaterialChecks(request: ImaMaterialChecksPageRequestDto): Promise<PagedResultOfImaMaterialCheckLiteDto>;
2653
2653
  processMaterialCertificate(certificatesRequest: ProcessMaterialCertificate): Promise<void>;
2654
+ generateReport(request: ImaMaterialChecksReportRequestDto): Promise<ImaMaterialCheckReportDto>;
2654
2655
  }
2655
2656
  export declare class InspectMatchMaterialChecksClient extends AuthorizedApiBase implements IInspectMatchMaterialChecksClient {
2656
2657
  private http;
@@ -2664,6 +2665,8 @@ export declare class InspectMatchMaterialChecksClient extends AuthorizedApiBase
2664
2665
  protected processListMaterialChecks(response: Response): Promise<PagedResultOfImaMaterialCheckLiteDto>;
2665
2666
  processMaterialCertificate(certificatesRequest: ProcessMaterialCertificate): Promise<void>;
2666
2667
  protected processProcessMaterialCertificate(response: Response): Promise<void>;
2668
+ generateReport(request: ImaMaterialChecksReportRequestDto): Promise<ImaMaterialCheckReportDto>;
2669
+ protected processGenerateReport(response: Response): Promise<ImaMaterialCheckReportDto>;
2667
2670
  }
2668
2671
  export interface IInspectMatchPurchaseOrderClient {
2669
2672
  searchPurchaseOrders(input: string | undefined): Promise<PurchaseOrderMaterialSearchResultsDto>;
@@ -7970,9 +7973,11 @@ export interface ImaMaterialCheckDto {
7970
7973
  certificateTypeId?: string | null;
7971
7974
  certificateTypeVersion?: number | null;
7972
7975
  certificateTypeName?: string | null;
7976
+ certificateTypeRevision?: string | null;
7973
7977
  specificationId: string;
7974
7978
  specificationVersion: number;
7975
7979
  specificationName: string;
7980
+ specificationRevision: string;
7976
7981
  specificationStatus: ImaSpecificationStatus;
7977
7982
  certificateTypeStatus: ImaCertificateTypeStatus;
7978
7983
  purchaseOrder?: string | null;
@@ -7991,6 +7996,10 @@ export interface ImaMaterialCheckDto {
7991
7996
  updatedById: string;
7992
7997
  updatedByName: string;
7993
7998
  isDeleted: boolean;
7999
+ reportCreatedBy?: string | null;
8000
+ reportCreatedById?: string | null;
8001
+ reportCreatedByName?: string | null;
8002
+ reportCreated?: Date | null;
7994
8003
  certificateTypeResults: ImaCertificateTypeResultsDto;
7995
8004
  specificationResults: ImaSpecificationResultsDto;
7996
8005
  }
@@ -8268,9 +8277,11 @@ export interface ImaMaterialCheckLiteDto {
8268
8277
  certificateTypeId?: string | null;
8269
8278
  certificateTypeVersion?: number | null;
8270
8279
  certificateTypeName?: string | null;
8280
+ certificateTypeRevision?: string | null;
8271
8281
  specificationId: string;
8272
8282
  specificationVersion: number;
8273
8283
  specificationName: string;
8284
+ specificationRevision: string;
8274
8285
  purchaseOrder?: string | null;
8275
8286
  purchaseOrderLine?: number | null;
8276
8287
  purchaseOrderVendorBatches?: string[] | null;
@@ -8289,6 +8300,10 @@ export interface ImaMaterialCheckLiteDto {
8289
8300
  updatedById: string;
8290
8301
  updatedByName: string;
8291
8302
  isDeleted?: boolean;
8303
+ reportCreatedBy?: string | null;
8304
+ reportCreatedById?: string | null;
8305
+ reportCreatedByName?: string | null;
8306
+ reportCreated?: Date | null;
8292
8307
  }
8293
8308
  export interface ImaMaterialChecksPageRequestDto {
8294
8309
  pageSize?: number | null;
@@ -8330,11 +8345,16 @@ export interface ProcessMaterialCertificate {
8330
8345
  export interface UploadFileCdfDto {
8331
8346
  id: number;
8332
8347
  }
8333
- export interface PurchaseOrderMaterialSearchResultsDto {
8334
- purchaseOrders: string[];
8348
+ export interface ImaMaterialCheckReportDto {
8349
+ file: FileDto;
8350
+ createdBy: string;
8351
+ createdById: string;
8352
+ createdByName: string;
8353
+ created: Date;
8335
8354
  }
8336
- export interface PurchaseOrderMaterialLinesDto {
8337
- lines: number[];
8355
+ export interface ImaMaterialChecksReportRequestDto {
8356
+ materialCheck?: ImaMaterialCheckDto;
8357
+ purchaseOrder?: PurchaseOrderMaterialLineDetailsDto | null;
8338
8358
  }
8339
8359
  export interface PurchaseOrderMaterialLineDetailsDto {
8340
8360
  companyId: string;
@@ -8369,6 +8389,12 @@ export interface User {
8369
8389
  upn?: string | null;
8370
8390
  email?: string | null;
8371
8391
  }
8392
+ export interface PurchaseOrderMaterialSearchResultsDto {
8393
+ purchaseOrders: string[];
8394
+ }
8395
+ export interface PurchaseOrderMaterialLinesDto {
8396
+ lines: number[];
8397
+ }
8372
8398
  export interface ImaSpecificationDto extends ImaCdfEntityReadBase {
8373
8399
  specificationId: string;
8374
8400
  version: number;
@@ -22117,6 +22117,45 @@ export class InspectMatchMaterialChecksClient extends AuthorizedApiBase {
22117
22117
  }
22118
22118
  return Promise.resolve(null);
22119
22119
  }
22120
+ generateReport(request) {
22121
+ let url_ = this.baseUrl + "/inspect/match/material-checks/generate-report";
22122
+ url_ = url_.replace(/[?&]$/, "");
22123
+ const content_ = JSON.stringify(request);
22124
+ let options_ = {
22125
+ body: content_,
22126
+ method: "POST",
22127
+ headers: {
22128
+ "Content-Type": "application/json",
22129
+ "Accept": "application/json"
22130
+ }
22131
+ };
22132
+ return this.transformOptions(options_).then(transformedOptions_ => {
22133
+ return this.http.fetch(url_, transformedOptions_);
22134
+ }).then((_response) => {
22135
+ return this.processGenerateReport(_response);
22136
+ });
22137
+ }
22138
+ processGenerateReport(response) {
22139
+ const status = response.status;
22140
+ let _headers = {};
22141
+ if (response.headers && response.headers.forEach) {
22142
+ response.headers.forEach((v, k) => _headers[k] = v);
22143
+ }
22144
+ ;
22145
+ if (status === 200) {
22146
+ return response.text().then((_responseText) => {
22147
+ let result200 = null;
22148
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
22149
+ return result200;
22150
+ });
22151
+ }
22152
+ else if (status !== 200 && status !== 204) {
22153
+ return response.text().then((_responseText) => {
22154
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
22155
+ });
22156
+ }
22157
+ return Promise.resolve(null);
22158
+ }
22120
22159
  }
22121
22160
  export class InspectMatchPurchaseOrderClient extends AuthorizedApiBase {
22122
22161
  constructor(configuration, baseUrl, http) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ignos/api-client",
3
- "version": "20260529.142.1",
3
+ "version": "20260529.143.1",
4
4
  "description": "IGNOS API Client",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -23526,6 +23526,8 @@ export interface IInspectMatchMaterialChecksClient {
23526
23526
  listMaterialChecks(request: ImaMaterialChecksPageRequestDto): Promise<PagedResultOfImaMaterialCheckLiteDto>;
23527
23527
 
23528
23528
  processMaterialCertificate(certificatesRequest: ProcessMaterialCertificate): Promise<void>;
23529
+
23530
+ generateReport(request: ImaMaterialChecksReportRequestDto): Promise<ImaMaterialCheckReportDto>;
23529
23531
  }
23530
23532
 
23531
23533
  export class InspectMatchMaterialChecksClient extends AuthorizedApiBase implements IInspectMatchMaterialChecksClient {
@@ -23650,6 +23652,45 @@ export class InspectMatchMaterialChecksClient extends AuthorizedApiBase implemen
23650
23652
  }
23651
23653
  return Promise.resolve<void>(null as any);
23652
23654
  }
23655
+
23656
+ generateReport(request: ImaMaterialChecksReportRequestDto): Promise<ImaMaterialCheckReportDto> {
23657
+ let url_ = this.baseUrl + "/inspect/match/material-checks/generate-report";
23658
+ url_ = url_.replace(/[?&]$/, "");
23659
+
23660
+ const content_ = JSON.stringify(request);
23661
+
23662
+ let options_: RequestInit = {
23663
+ body: content_,
23664
+ method: "POST",
23665
+ headers: {
23666
+ "Content-Type": "application/json",
23667
+ "Accept": "application/json"
23668
+ }
23669
+ };
23670
+
23671
+ return this.transformOptions(options_).then(transformedOptions_ => {
23672
+ return this.http.fetch(url_, transformedOptions_);
23673
+ }).then((_response: Response) => {
23674
+ return this.processGenerateReport(_response);
23675
+ });
23676
+ }
23677
+
23678
+ protected processGenerateReport(response: Response): Promise<ImaMaterialCheckReportDto> {
23679
+ const status = response.status;
23680
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
23681
+ if (status === 200) {
23682
+ return response.text().then((_responseText) => {
23683
+ let result200: any = null;
23684
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as ImaMaterialCheckReportDto;
23685
+ return result200;
23686
+ });
23687
+ } else if (status !== 200 && status !== 204) {
23688
+ return response.text().then((_responseText) => {
23689
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
23690
+ });
23691
+ }
23692
+ return Promise.resolve<ImaMaterialCheckReportDto>(null as any);
23693
+ }
23653
23694
  }
23654
23695
 
23655
23696
  export interface IInspectMatchPurchaseOrderClient {
@@ -35310,9 +35351,11 @@ export interface ImaMaterialCheckDto {
35310
35351
  certificateTypeId?: string | null;
35311
35352
  certificateTypeVersion?: number | null;
35312
35353
  certificateTypeName?: string | null;
35354
+ certificateTypeRevision?: string | null;
35313
35355
  specificationId: string;
35314
35356
  specificationVersion: number;
35315
35357
  specificationName: string;
35358
+ specificationRevision: string;
35316
35359
  specificationStatus: ImaSpecificationStatus;
35317
35360
  certificateTypeStatus: ImaCertificateTypeStatus;
35318
35361
  purchaseOrder?: string | null;
@@ -35331,6 +35374,10 @@ export interface ImaMaterialCheckDto {
35331
35374
  updatedById: string;
35332
35375
  updatedByName: string;
35333
35376
  isDeleted: boolean;
35377
+ reportCreatedBy?: string | null;
35378
+ reportCreatedById?: string | null;
35379
+ reportCreatedByName?: string | null;
35380
+ reportCreated?: Date | null;
35334
35381
  certificateTypeResults: ImaCertificateTypeResultsDto;
35335
35382
  specificationResults: ImaSpecificationResultsDto;
35336
35383
  }
@@ -35649,9 +35696,11 @@ export interface ImaMaterialCheckLiteDto {
35649
35696
  certificateTypeId?: string | null;
35650
35697
  certificateTypeVersion?: number | null;
35651
35698
  certificateTypeName?: string | null;
35699
+ certificateTypeRevision?: string | null;
35652
35700
  specificationId: string;
35653
35701
  specificationVersion: number;
35654
35702
  specificationName: string;
35703
+ specificationRevision: string;
35655
35704
  purchaseOrder?: string | null;
35656
35705
  purchaseOrderLine?: number | null;
35657
35706
  purchaseOrderVendorBatches?: string[] | null;
@@ -35670,6 +35719,10 @@ export interface ImaMaterialCheckLiteDto {
35670
35719
  updatedById: string;
35671
35720
  updatedByName: string;
35672
35721
  isDeleted?: boolean;
35722
+ reportCreatedBy?: string | null;
35723
+ reportCreatedById?: string | null;
35724
+ reportCreatedByName?: string | null;
35725
+ reportCreated?: Date | null;
35673
35726
  }
35674
35727
 
35675
35728
  export interface ImaMaterialChecksPageRequestDto {
@@ -35718,12 +35771,17 @@ export interface UploadFileCdfDto {
35718
35771
  id: number;
35719
35772
  }
35720
35773
 
35721
- export interface PurchaseOrderMaterialSearchResultsDto {
35722
- purchaseOrders: string[];
35774
+ export interface ImaMaterialCheckReportDto {
35775
+ file: FileDto;
35776
+ createdBy: string;
35777
+ createdById: string;
35778
+ createdByName: string;
35779
+ created: Date;
35723
35780
  }
35724
35781
 
35725
- export interface PurchaseOrderMaterialLinesDto {
35726
- lines: number[];
35782
+ export interface ImaMaterialChecksReportRequestDto {
35783
+ materialCheck?: ImaMaterialCheckDto;
35784
+ purchaseOrder?: PurchaseOrderMaterialLineDetailsDto | null;
35727
35785
  }
35728
35786
 
35729
35787
  export interface PurchaseOrderMaterialLineDetailsDto {
@@ -35762,6 +35820,14 @@ export interface User {
35762
35820
  email?: string | null;
35763
35821
  }
35764
35822
 
35823
+ export interface PurchaseOrderMaterialSearchResultsDto {
35824
+ purchaseOrders: string[];
35825
+ }
35826
+
35827
+ export interface PurchaseOrderMaterialLinesDto {
35828
+ lines: number[];
35829
+ }
35830
+
35765
35831
  export interface ImaSpecificationDto extends ImaCdfEntityReadBase {
35766
35832
  specificationId: string;
35767
35833
  version: number;