@ignos/api-client 20260423.118.1 → 20260427.120.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.
@@ -2623,7 +2623,8 @@ export declare class InspectMatchCertificateTypesClient extends AuthorizedApiBas
2623
2623
  }
2624
2624
  export interface IInspectMatchMaterialChecksAdminClient {
2625
2625
  updateMaterialCheckOverrides(id: string, request: ImaOverrideMaterialCheckRequestDto): Promise<ImaMaterialCheckDto>;
2626
- updateMaterialCheckStatus(id: string, status: ImaMaterialCheckStatus | undefined): Promise<FileResponse>;
2626
+ updateMaterialCheckStatus(id: string, status: ImaMaterialCheckStatus | undefined): Promise<ImaMaterialCheckDto>;
2627
+ updateMaterialCheckMetadata(id: string, metadataRequest: ImaUpdateMaterialCheckMetadataRequestDto): Promise<ImaMaterialCheckDto>;
2627
2628
  deleteMaterialCheck(id: string): Promise<void>;
2628
2629
  }
2629
2630
  export declare class InspectMatchMaterialChecksAdminClient extends AuthorizedApiBase implements IInspectMatchMaterialChecksAdminClient {
@@ -2634,8 +2635,10 @@ export declare class InspectMatchMaterialChecksAdminClient extends AuthorizedApi
2634
2635
  });
2635
2636
  updateMaterialCheckOverrides(id: string, request: ImaOverrideMaterialCheckRequestDto): Promise<ImaMaterialCheckDto>;
2636
2637
  protected processUpdateMaterialCheckOverrides(response: Response): Promise<ImaMaterialCheckDto>;
2637
- updateMaterialCheckStatus(id: string, status: ImaMaterialCheckStatus | undefined): Promise<FileResponse>;
2638
- protected processUpdateMaterialCheckStatus(response: Response): Promise<FileResponse>;
2638
+ updateMaterialCheckStatus(id: string, status: ImaMaterialCheckStatus | undefined): Promise<ImaMaterialCheckDto>;
2639
+ protected processUpdateMaterialCheckStatus(response: Response): Promise<ImaMaterialCheckDto>;
2640
+ updateMaterialCheckMetadata(id: string, metadataRequest: ImaUpdateMaterialCheckMetadataRequestDto): Promise<ImaMaterialCheckDto>;
2641
+ protected processUpdateMaterialCheckMetadata(response: Response): Promise<ImaMaterialCheckDto>;
2639
2642
  deleteMaterialCheck(id: string): Promise<void>;
2640
2643
  protected processDeleteMaterialCheck(response: Response): Promise<void>;
2641
2644
  }
@@ -7847,7 +7850,7 @@ export interface ImaMaterialCheckDto {
7847
7850
  materialCheckId: string;
7848
7851
  originalMaterialCertificate: FileDto;
7849
7852
  generatedMaterialCertificate?: FileDto | null;
7850
- customer?: string | null;
7853
+ customerOrder?: string | null;
7851
7854
  project?: string | null;
7852
7855
  workOrder?: string | null;
7853
7856
  certificateTypeId?: string | null;
@@ -7857,6 +7860,7 @@ export interface ImaMaterialCheckDto {
7857
7860
  specificationVersion: number;
7858
7861
  specificationName: string;
7859
7862
  specificationStatus: ImaSpecificationStatus;
7863
+ certificateTypeStatus: ImaCertificateTypeStatus;
7860
7864
  purchaseOrder?: string | null;
7861
7865
  purchaseOrderLine?: number | null;
7862
7866
  purchaseOrderVendorBatches?: string[] | null;
@@ -8132,6 +8136,11 @@ export interface ImaOverrideSpecificationFerriteResultsDto {
8132
8136
  export interface ImaOverrideSpecificationHeatTreatmentResultsDto {
8133
8137
  heatTreatmentOverrides?: ImaOverrideUpdateMaterialCheckResultLineDto[] | null;
8134
8138
  }
8139
+ export interface ImaUpdateMaterialCheckMetadataRequestDto {
8140
+ customerOrder?: string;
8141
+ workorder?: string;
8142
+ project?: string;
8143
+ }
8135
8144
  export interface PagedResultOfImaMaterialCheckLiteDto {
8136
8145
  results: ImaMaterialCheckLiteDto[];
8137
8146
  continuationToken?: string | null;
@@ -8140,7 +8149,7 @@ export interface ImaMaterialCheckLiteDto {
8140
8149
  materialCheckId: string;
8141
8150
  originalMaterialCertificate: FileDto;
8142
8151
  generatedMaterialCertificate?: FileDto | null;
8143
- customer?: string | null;
8152
+ customerOrder?: string | null;
8144
8153
  project?: string | null;
8145
8154
  workOrder?: string | null;
8146
8155
  certificateTypeId?: string | null;
@@ -8157,6 +8166,8 @@ export interface ImaMaterialCheckLiteDto {
8157
8166
  purchaseOrderDrawing?: string | null;
8158
8167
  heatNumber?: string | null;
8159
8168
  status: ImaMaterialCheckStatus;
8169
+ specificationStatus: ImaSpecificationStatus;
8170
+ certificateTypeStatus: ImaCertificateTypeStatus;
8160
8171
  created: Date;
8161
8172
  createdBy: string;
8162
8173
  createdById: string;
@@ -8306,13 +8317,13 @@ export interface ImaHeatTreatmentSpecificationCoolingDto extends ImaCdfEntityRea
8306
8317
  temperature?: ImaSpecificationLineDto | null;
8307
8318
  duration?: ImaSpecificationLineDto | null;
8308
8319
  }
8309
- export type ImaHeatTreatmentCoolingMethod = "AirCooling" | "OilQuenching" | "WaterQuenching" | "FurnaceCooling" | "AirBlastCooling" | "PolymerQuenching" | "NotSet";
8320
+ export type ImaHeatTreatmentCoolingMethod = "NoCoolingMethod" | "AirCooling" | "FurnaceCooling" | "OilQuenching" | "PolymerQuenching" | "WaterQuenching" | "NotSet";
8310
8321
  export interface ImaHeatTreatmentSpecificationHeatingDto extends ImaCdfEntityReadBase {
8311
8322
  heatingMethod: ImaHeatTreatmentHeatingMethod;
8312
8323
  temperature?: ImaSpecificationLineDto | null;
8313
8324
  duration?: ImaSpecificationLineDto | null;
8314
8325
  }
8315
- export type ImaHeatTreatmentHeatingMethod = "Annealing" | "Normalizing" | "Quenching" | "Tempering" | "StressRelieving" | "SolutionTreating" | "Aging" | "Austempering" | "Martempering" | "NotSet";
8326
+ export type ImaHeatTreatmentHeatingMethod = "Annealing" | "Austenitizing" | "Hardening" | "Normalizing" | "SolutionAnnealing" | "StressRelieving" | "Tempering" | "NotSet";
8316
8327
  export interface ImaCreateSpecificationRequestDto {
8317
8328
  name: string;
8318
8329
  number: string;
@@ -21487,7 +21487,7 @@ export class InspectMatchMaterialChecksAdminClient extends AuthorizedApiBase {
21487
21487
  let options_ = {
21488
21488
  method: "PUT",
21489
21489
  headers: {
21490
- "Accept": "application/octet-stream"
21490
+ "Accept": "application/json"
21491
21491
  }
21492
21492
  };
21493
21493
  return this.transformOptions(options_).then(transformedOptions_ => {
@@ -21503,18 +21503,54 @@ export class InspectMatchMaterialChecksAdminClient extends AuthorizedApiBase {
21503
21503
  response.headers.forEach((v, k) => _headers[k] = v);
21504
21504
  }
21505
21505
  ;
21506
- if (status === 200 || status === 206) {
21507
- const contentDisposition = response.headers ? response.headers.get("content-disposition") : undefined;
21508
- let fileNameMatch = contentDisposition ? /filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(contentDisposition) : undefined;
21509
- let fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[3] || fileNameMatch[2] : undefined;
21510
- if (fileName) {
21511
- fileName = decodeURIComponent(fileName);
21512
- }
21513
- else {
21514
- fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
21515
- fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
21506
+ if (status === 200) {
21507
+ return response.text().then((_responseText) => {
21508
+ let result200 = null;
21509
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
21510
+ return result200;
21511
+ });
21512
+ }
21513
+ else if (status !== 200 && status !== 204) {
21514
+ return response.text().then((_responseText) => {
21515
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
21516
+ });
21517
+ }
21518
+ return Promise.resolve(null);
21519
+ }
21520
+ updateMaterialCheckMetadata(id, metadataRequest) {
21521
+ let url_ = this.baseUrl + "/inspect/match/material-checks/metadata/{id}";
21522
+ if (id === undefined || id === null)
21523
+ throw new globalThis.Error("The parameter 'id' must be defined.");
21524
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
21525
+ url_ = url_.replace(/[?&]$/, "");
21526
+ const content_ = JSON.stringify(metadataRequest);
21527
+ let options_ = {
21528
+ body: content_,
21529
+ method: "PUT",
21530
+ headers: {
21531
+ "Content-Type": "application/json",
21532
+ "Accept": "application/json"
21516
21533
  }
21517
- return response.blob().then(blob => { return { fileName: fileName, data: blob, status: status, headers: _headers }; });
21534
+ };
21535
+ return this.transformOptions(options_).then(transformedOptions_ => {
21536
+ return this.http.fetch(url_, transformedOptions_);
21537
+ }).then((_response) => {
21538
+ return this.processUpdateMaterialCheckMetadata(_response);
21539
+ });
21540
+ }
21541
+ processUpdateMaterialCheckMetadata(response) {
21542
+ const status = response.status;
21543
+ let _headers = {};
21544
+ if (response.headers && response.headers.forEach) {
21545
+ response.headers.forEach((v, k) => _headers[k] = v);
21546
+ }
21547
+ ;
21548
+ if (status === 200) {
21549
+ return response.text().then((_responseText) => {
21550
+ let result200 = null;
21551
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
21552
+ return result200;
21553
+ });
21518
21554
  }
21519
21555
  else if (status !== 200 && status !== 204) {
21520
21556
  return response.text().then((_responseText) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ignos/api-client",
3
- "version": "20260423.118.1",
3
+ "version": "20260427.120.1",
4
4
  "description": "IGNOS API Client",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -22933,7 +22933,9 @@ export interface IInspectMatchMaterialChecksAdminClient {
22933
22933
 
22934
22934
  updateMaterialCheckOverrides(id: string, request: ImaOverrideMaterialCheckRequestDto): Promise<ImaMaterialCheckDto>;
22935
22935
 
22936
- updateMaterialCheckStatus(id: string, status: ImaMaterialCheckStatus | undefined): Promise<FileResponse>;
22936
+ updateMaterialCheckStatus(id: string, status: ImaMaterialCheckStatus | undefined): Promise<ImaMaterialCheckDto>;
22937
+
22938
+ updateMaterialCheckMetadata(id: string, metadataRequest: ImaUpdateMaterialCheckMetadataRequestDto): Promise<ImaMaterialCheckDto>;
22937
22939
 
22938
22940
  deleteMaterialCheck(id: string): Promise<void>;
22939
22941
  }
@@ -22990,7 +22992,7 @@ export class InspectMatchMaterialChecksAdminClient extends AuthorizedApiBase imp
22990
22992
  return Promise.resolve<ImaMaterialCheckDto>(null as any);
22991
22993
  }
22992
22994
 
22993
- updateMaterialCheckStatus(id: string, status: ImaMaterialCheckStatus | undefined): Promise<FileResponse> {
22995
+ updateMaterialCheckStatus(id: string, status: ImaMaterialCheckStatus | undefined): Promise<ImaMaterialCheckDto> {
22994
22996
  let url_ = this.baseUrl + "/inspect/match/material-checks/status/{id}?";
22995
22997
  if (id === undefined || id === null)
22996
22998
  throw new globalThis.Error("The parameter 'id' must be defined.");
@@ -23004,7 +23006,7 @@ export class InspectMatchMaterialChecksAdminClient extends AuthorizedApiBase imp
23004
23006
  let options_: RequestInit = {
23005
23007
  method: "PUT",
23006
23008
  headers: {
23007
- "Accept": "application/octet-stream"
23009
+ "Accept": "application/json"
23008
23010
  }
23009
23011
  };
23010
23012
 
@@ -23015,26 +23017,63 @@ export class InspectMatchMaterialChecksAdminClient extends AuthorizedApiBase imp
23015
23017
  });
23016
23018
  }
23017
23019
 
23018
- protected processUpdateMaterialCheckStatus(response: Response): Promise<FileResponse> {
23020
+ protected processUpdateMaterialCheckStatus(response: Response): Promise<ImaMaterialCheckDto> {
23019
23021
  const status = response.status;
23020
23022
  let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
23021
- if (status === 200 || status === 206) {
23022
- const contentDisposition = response.headers ? response.headers.get("content-disposition") : undefined;
23023
- let fileNameMatch = contentDisposition ? /filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(contentDisposition) : undefined;
23024
- let fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[3] || fileNameMatch[2] : undefined;
23025
- if (fileName) {
23026
- fileName = decodeURIComponent(fileName);
23027
- } else {
23028
- fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
23029
- fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
23023
+ if (status === 200) {
23024
+ return response.text().then((_responseText) => {
23025
+ let result200: any = null;
23026
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as ImaMaterialCheckDto;
23027
+ return result200;
23028
+ });
23029
+ } else if (status !== 200 && status !== 204) {
23030
+ return response.text().then((_responseText) => {
23031
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
23032
+ });
23033
+ }
23034
+ return Promise.resolve<ImaMaterialCheckDto>(null as any);
23035
+ }
23036
+
23037
+ updateMaterialCheckMetadata(id: string, metadataRequest: ImaUpdateMaterialCheckMetadataRequestDto): Promise<ImaMaterialCheckDto> {
23038
+ let url_ = this.baseUrl + "/inspect/match/material-checks/metadata/{id}";
23039
+ if (id === undefined || id === null)
23040
+ throw new globalThis.Error("The parameter 'id' must be defined.");
23041
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
23042
+ url_ = url_.replace(/[?&]$/, "");
23043
+
23044
+ const content_ = JSON.stringify(metadataRequest);
23045
+
23046
+ let options_: RequestInit = {
23047
+ body: content_,
23048
+ method: "PUT",
23049
+ headers: {
23050
+ "Content-Type": "application/json",
23051
+ "Accept": "application/json"
23030
23052
  }
23031
- return response.blob().then(blob => { return { fileName: fileName, data: blob, status: status, headers: _headers }; });
23053
+ };
23054
+
23055
+ return this.transformOptions(options_).then(transformedOptions_ => {
23056
+ return this.http.fetch(url_, transformedOptions_);
23057
+ }).then((_response: Response) => {
23058
+ return this.processUpdateMaterialCheckMetadata(_response);
23059
+ });
23060
+ }
23061
+
23062
+ protected processUpdateMaterialCheckMetadata(response: Response): Promise<ImaMaterialCheckDto> {
23063
+ const status = response.status;
23064
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
23065
+ if (status === 200) {
23066
+ return response.text().then((_responseText) => {
23067
+ let result200: any = null;
23068
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as ImaMaterialCheckDto;
23069
+ return result200;
23070
+ });
23032
23071
  } else if (status !== 200 && status !== 204) {
23033
23072
  return response.text().then((_responseText) => {
23034
23073
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
23035
23074
  });
23036
23075
  }
23037
- return Promise.resolve<FileResponse>(null as any);
23076
+ return Promise.resolve<ImaMaterialCheckDto>(null as any);
23038
23077
  }
23039
23078
 
23040
23079
  deleteMaterialCheck(id: string): Promise<void> {
@@ -34740,7 +34779,7 @@ export interface ImaMaterialCheckDto {
34740
34779
  materialCheckId: string;
34741
34780
  originalMaterialCertificate: FileDto;
34742
34781
  generatedMaterialCertificate?: FileDto | null;
34743
- customer?: string | null;
34782
+ customerOrder?: string | null;
34744
34783
  project?: string | null;
34745
34784
  workOrder?: string | null;
34746
34785
  certificateTypeId?: string | null;
@@ -34750,6 +34789,7 @@ export interface ImaMaterialCheckDto {
34750
34789
  specificationVersion: number;
34751
34790
  specificationName: string;
34752
34791
  specificationStatus: ImaSpecificationStatus;
34792
+ certificateTypeStatus: ImaCertificateTypeStatus;
34753
34793
  purchaseOrder?: string | null;
34754
34794
  purchaseOrderLine?: number | null;
34755
34795
  purchaseOrderVendorBatches?: string[] | null;
@@ -35064,6 +35104,12 @@ export interface ImaOverrideSpecificationHeatTreatmentResultsDto {
35064
35104
  heatTreatmentOverrides?: ImaOverrideUpdateMaterialCheckResultLineDto[] | null;
35065
35105
  }
35066
35106
 
35107
+ export interface ImaUpdateMaterialCheckMetadataRequestDto {
35108
+ customerOrder?: string;
35109
+ workorder?: string;
35110
+ project?: string;
35111
+ }
35112
+
35067
35113
  export interface PagedResultOfImaMaterialCheckLiteDto {
35068
35114
  results: ImaMaterialCheckLiteDto[];
35069
35115
  continuationToken?: string | null;
@@ -35073,7 +35119,7 @@ export interface ImaMaterialCheckLiteDto {
35073
35119
  materialCheckId: string;
35074
35120
  originalMaterialCertificate: FileDto;
35075
35121
  generatedMaterialCertificate?: FileDto | null;
35076
- customer?: string | null;
35122
+ customerOrder?: string | null;
35077
35123
  project?: string | null;
35078
35124
  workOrder?: string | null;
35079
35125
  certificateTypeId?: string | null;
@@ -35090,6 +35136,8 @@ export interface ImaMaterialCheckLiteDto {
35090
35136
  purchaseOrderDrawing?: string | null;
35091
35137
  heatNumber?: string | null;
35092
35138
  status: ImaMaterialCheckStatus;
35139
+ specificationStatus: ImaSpecificationStatus;
35140
+ certificateTypeStatus: ImaCertificateTypeStatus;
35093
35141
  created: Date;
35094
35142
  createdBy: string;
35095
35143
  createdById: string;
@@ -35257,7 +35305,7 @@ export interface ImaHeatTreatmentSpecificationCoolingDto extends ImaCdfEntityRea
35257
35305
  duration?: ImaSpecificationLineDto | null;
35258
35306
  }
35259
35307
 
35260
- export type ImaHeatTreatmentCoolingMethod = "AirCooling" | "OilQuenching" | "WaterQuenching" | "FurnaceCooling" | "AirBlastCooling" | "PolymerQuenching" | "NotSet";
35308
+ export type ImaHeatTreatmentCoolingMethod = "NoCoolingMethod" | "AirCooling" | "FurnaceCooling" | "OilQuenching" | "PolymerQuenching" | "WaterQuenching" | "NotSet";
35261
35309
 
35262
35310
  export interface ImaHeatTreatmentSpecificationHeatingDto extends ImaCdfEntityReadBase {
35263
35311
  heatingMethod: ImaHeatTreatmentHeatingMethod;
@@ -35265,7 +35313,7 @@ export interface ImaHeatTreatmentSpecificationHeatingDto extends ImaCdfEntityRea
35265
35313
  duration?: ImaSpecificationLineDto | null;
35266
35314
  }
35267
35315
 
35268
- export type ImaHeatTreatmentHeatingMethod = "Annealing" | "Normalizing" | "Quenching" | "Tempering" | "StressRelieving" | "SolutionTreating" | "Aging" | "Austempering" | "Martempering" | "NotSet";
35316
+ export type ImaHeatTreatmentHeatingMethod = "Annealing" | "Austenitizing" | "Hardening" | "Normalizing" | "SolutionAnnealing" | "StressRelieving" | "Tempering" | "NotSet";
35269
35317
 
35270
35318
  export interface ImaCreateSpecificationRequestDto {
35271
35319
  name: string;