@ignos/api-client 20260423.119.1 → 20260505.121.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.
@@ -163,7 +163,7 @@ export interface ISpatialClient {
163
163
  updateResource(externalId: string, request: UpdateResourceRequest): Promise<ApplicationSpatialResourceDto>;
164
164
  deleteResource(externalId: string): Promise<void>;
165
165
  getFactory(): Promise<FactoryDto>;
166
- updateFactory(request: UpdateFactory): Promise<FactoryDto>;
166
+ upsertFactory(request: UpsertFactory): Promise<FactoryDto>;
167
167
  deleteFactory(): Promise<void>;
168
168
  }
169
169
  export declare class SpatialClient extends AuthorizedApiBase implements ISpatialClient {
@@ -204,8 +204,8 @@ export declare class SpatialClient extends AuthorizedApiBase implements ISpatial
204
204
  protected processDeleteResource(response: Response): Promise<void>;
205
205
  getFactory(): Promise<FactoryDto>;
206
206
  protected processGetFactory(response: Response): Promise<FactoryDto>;
207
- updateFactory(request: UpdateFactory): Promise<FactoryDto>;
208
- protected processUpdateFactory(response: Response): Promise<FactoryDto>;
207
+ upsertFactory(request: UpsertFactory): Promise<FactoryDto>;
208
+ protected processUpsertFactory(response: Response): Promise<FactoryDto>;
209
209
  deleteFactory(): Promise<void>;
210
210
  protected processDeleteFactory(response: Response): Promise<void>;
211
211
  }
@@ -748,14 +748,7 @@ export declare class PulseClient extends AuthorizedApiBase implements IPulseClie
748
748
  protected processUpdatePulseSettingsResource(response: Response): Promise<PulseSettingsResourceDto>;
749
749
  }
750
750
  export interface IUtilizationClient {
751
- /**
752
- * @param utilizationType (optional)
753
- * @param startTime (optional)
754
- * @param endTime (optional)
755
- * @param ianaTimeZone (optional)
756
- * @deprecated
757
- */
758
- getCompanyUtilization(utilizationType: UtilizationTypeDto | undefined, startTime: Date | undefined, endTime: Date | null | undefined, ianaTimeZone: string | null | undefined): Promise<CompanyUtilizationDto>;
751
+ getCompanyUtilization(request: UtilizationInputRequest): Promise<CompanyResourceUtilizationDto>;
759
752
  /**
760
753
  * @param utilizationType (optional)
761
754
  * @param startTime (optional)
@@ -774,14 +767,7 @@ export interface IUtilizationClient {
774
767
  * @deprecated
775
768
  */
776
769
  getUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | undefined, endTime: Date | null | undefined, ianaTimeZone: string | null | undefined, assetId: number | null | undefined, assetExternalId: string | null | undefined): Promise<MachineUtilizationDatapointListDto>;
777
- /**
778
- * @param utilizationType (optional)
779
- * @param startTime (optional)
780
- * @param endTime (optional)
781
- * @param ianaTimeZone (optional)
782
- * @deprecated
783
- */
784
- getCompanyUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | undefined, endTime: Date | null | undefined, ianaTimeZone: string | null | undefined): Promise<CompanyUtilizationDatapointListDto>;
770
+ getCompanyUtilizationDatapoints(request: UtilizationInputRequest): Promise<CompanyResourceUtilizationDatapointListDto>;
785
771
  /**
786
772
  * @param utilizationType (optional)
787
773
  * @param startTime (optional)
@@ -802,15 +788,8 @@ export declare class UtilizationClient extends AuthorizedApiBase implements IUti
802
788
  constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: {
803
789
  fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
804
790
  });
805
- /**
806
- * @param utilizationType (optional)
807
- * @param startTime (optional)
808
- * @param endTime (optional)
809
- * @param ianaTimeZone (optional)
810
- * @deprecated
811
- */
812
- getCompanyUtilization(utilizationType: UtilizationTypeDto | undefined, startTime: Date | undefined, endTime: Date | null | undefined, ianaTimeZone: string | null | undefined): Promise<CompanyUtilizationDto>;
813
- protected processGetCompanyUtilization(response: Response): Promise<CompanyUtilizationDto>;
791
+ getCompanyUtilization(request: UtilizationInputRequest): Promise<CompanyResourceUtilizationDto>;
792
+ protected processGetCompanyUtilization(response: Response): Promise<CompanyResourceUtilizationDto>;
814
793
  /**
815
794
  * @param utilizationType (optional)
816
795
  * @param startTime (optional)
@@ -831,15 +810,8 @@ export declare class UtilizationClient extends AuthorizedApiBase implements IUti
831
810
  */
832
811
  getUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | undefined, endTime: Date | null | undefined, ianaTimeZone: string | null | undefined, assetId: number | null | undefined, assetExternalId: string | null | undefined): Promise<MachineUtilizationDatapointListDto>;
833
812
  protected processGetUtilizationDatapoints(response: Response): Promise<MachineUtilizationDatapointListDto>;
834
- /**
835
- * @param utilizationType (optional)
836
- * @param startTime (optional)
837
- * @param endTime (optional)
838
- * @param ianaTimeZone (optional)
839
- * @deprecated
840
- */
841
- getCompanyUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | undefined, endTime: Date | null | undefined, ianaTimeZone: string | null | undefined): Promise<CompanyUtilizationDatapointListDto>;
842
- protected processGetCompanyUtilizationDatapoints(response: Response): Promise<CompanyUtilizationDatapointListDto>;
813
+ getCompanyUtilizationDatapoints(request: UtilizationInputRequest): Promise<CompanyResourceUtilizationDatapointListDto>;
814
+ protected processGetCompanyUtilizationDatapoints(response: Response): Promise<CompanyResourceUtilizationDatapointListDto>;
843
815
  /**
844
816
  * @param utilizationType (optional)
845
817
  * @param startTime (optional)
@@ -2623,7 +2595,8 @@ export declare class InspectMatchCertificateTypesClient extends AuthorizedApiBas
2623
2595
  }
2624
2596
  export interface IInspectMatchMaterialChecksAdminClient {
2625
2597
  updateMaterialCheckOverrides(id: string, request: ImaOverrideMaterialCheckRequestDto): Promise<ImaMaterialCheckDto>;
2626
- updateMaterialCheckStatus(id: string, status: ImaMaterialCheckStatus | undefined): Promise<FileResponse>;
2598
+ updateMaterialCheckStatus(id: string, status: ImaMaterialCheckStatus | undefined): Promise<ImaMaterialCheckDto>;
2599
+ updateMaterialCheckMetadata(id: string, metadataRequest: ImaUpdateMaterialCheckMetadataRequestDto): Promise<ImaMaterialCheckDto>;
2627
2600
  deleteMaterialCheck(id: string): Promise<void>;
2628
2601
  }
2629
2602
  export declare class InspectMatchMaterialChecksAdminClient extends AuthorizedApiBase implements IInspectMatchMaterialChecksAdminClient {
@@ -2634,8 +2607,10 @@ export declare class InspectMatchMaterialChecksAdminClient extends AuthorizedApi
2634
2607
  });
2635
2608
  updateMaterialCheckOverrides(id: string, request: ImaOverrideMaterialCheckRequestDto): Promise<ImaMaterialCheckDto>;
2636
2609
  protected processUpdateMaterialCheckOverrides(response: Response): Promise<ImaMaterialCheckDto>;
2637
- updateMaterialCheckStatus(id: string, status: ImaMaterialCheckStatus | undefined): Promise<FileResponse>;
2638
- protected processUpdateMaterialCheckStatus(response: Response): Promise<FileResponse>;
2610
+ updateMaterialCheckStatus(id: string, status: ImaMaterialCheckStatus | undefined): Promise<ImaMaterialCheckDto>;
2611
+ protected processUpdateMaterialCheckStatus(response: Response): Promise<ImaMaterialCheckDto>;
2612
+ updateMaterialCheckMetadata(id: string, metadataRequest: ImaUpdateMaterialCheckMetadataRequestDto): Promise<ImaMaterialCheckDto>;
2613
+ protected processUpdateMaterialCheckMetadata(response: Response): Promise<ImaMaterialCheckDto>;
2639
2614
  deleteMaterialCheck(id: string): Promise<void>;
2640
2615
  protected processDeleteMaterialCheck(response: Response): Promise<void>;
2641
2616
  }
@@ -3506,7 +3481,7 @@ export interface Point {
3506
3481
  bbox?: number[];
3507
3482
  [key: string]: any;
3508
3483
  }
3509
- export interface UpdateFactory {
3484
+ export interface UpsertFactory {
3510
3485
  centerPoint?: Point;
3511
3486
  }
3512
3487
  export interface UtilizationListDto {
@@ -4435,11 +4410,11 @@ export interface UpdatePulseSettingsResource {
4435
4410
  resourceCalendarEnabled: boolean;
4436
4411
  factoryCalendarEnabled: boolean;
4437
4412
  }
4438
- export interface CompanyUtilizationDto {
4439
- utilizationType: UtilizationTypeDto;
4413
+ export interface CompanyResourceUtilizationDto {
4414
+ utilizationType: ResourceUtilizationTypeDto;
4440
4415
  companyUtilization: UtilizationDetailsV2Dto;
4441
- groups: MachineGroupUtilizationV2Dto[];
4442
- ungroupedMachines: MachineUtilizationV3Dto[];
4416
+ groups: ResourceGroupUtilizationV2Dto[];
4417
+ ungroupedResources: ResourceUtilizationV3Dto[];
4443
4418
  }
4444
4419
  export interface UtilizationDetailsV2Dto {
4445
4420
  utilizationPercent?: number | null;
@@ -4452,26 +4427,51 @@ export interface UtilizationDetailsV2Dto {
4452
4427
  totalTimeInMilliseconds?: number | null;
4453
4428
  performancePercent?: number | null;
4454
4429
  }
4455
- export interface MachineGroupUtilizationV2Dto {
4430
+ export interface ResourceGroupUtilizationV2Dto {
4456
4431
  name: string;
4457
4432
  utilization: UtilizationDetailsV2Dto;
4458
- machines: MachineUtilizationV3Dto[];
4433
+ resources: ResourceUtilizationV3Dto[];
4459
4434
  }
4460
- export interface MachineUtilizationV3Dto {
4435
+ export interface ResourceUtilizationV3Dto {
4461
4436
  id?: number;
4462
4437
  name: string;
4463
4438
  description?: string | null;
4464
4439
  utilization: UtilizationDetailsV2Dto;
4465
4440
  }
4441
+ export interface UtilizationInputRequest {
4442
+ utilizationType?: ResourceUtilizationTypeDto;
4443
+ startTime: Date;
4444
+ endTime?: Date | null;
4445
+ ianaTimeZone?: string | null;
4446
+ resourceExternalIds?: string[] | null;
4447
+ resourceGroupNames?: string[] | null;
4448
+ }
4466
4449
  export interface CrossCompanyUtilizationDto {
4467
4450
  utilizationType: UtilizationTypeDto;
4468
4451
  crossCompanyUtilization: UtilizationDetailsV2Dto;
4469
4452
  companies: NamedCompanyUtilizationDto[];
4470
4453
  }
4454
+ export interface CompanyUtilizationDto {
4455
+ utilizationType: UtilizationTypeDto;
4456
+ companyUtilization: UtilizationDetailsV2Dto;
4457
+ groups: MachineGroupUtilizationV2Dto[];
4458
+ ungroupedMachines: MachineUtilizationV3Dto[];
4459
+ }
4471
4460
  export interface NamedCompanyUtilizationDto extends CompanyUtilizationDto {
4472
4461
  companyId: string;
4473
4462
  companyName: string;
4474
4463
  }
4464
+ export interface MachineGroupUtilizationV2Dto {
4465
+ name: string;
4466
+ utilization: UtilizationDetailsV2Dto;
4467
+ machines: MachineUtilizationV3Dto[];
4468
+ }
4469
+ export interface MachineUtilizationV3Dto {
4470
+ id?: number;
4471
+ name: string;
4472
+ description?: string | null;
4473
+ utilization: UtilizationDetailsV2Dto;
4474
+ }
4475
4475
  export interface UtilizationDatapointListDto {
4476
4476
  datapoints?: NumericNullableValueWithTimestamp[];
4477
4477
  trendDatapoints?: NumericNullableValueWithTimestamp[];
@@ -4483,38 +4483,36 @@ export interface MachineUtilizationDatapointListDto extends UtilizationDatapoint
4483
4483
  name: string;
4484
4484
  description?: string | null;
4485
4485
  }
4486
- export interface CompanyUtilizationDatapointListDto extends UtilizationDatapointListDto {
4487
- groups?: MachineGroupUtilizationDatapointListDto[];
4488
- ungroupedMachines?: MachineUtilizationDatapointListDto[];
4486
+ export interface CompanyResourceUtilizationDatapointListDto extends UtilizationDatapointListDto {
4487
+ groups?: ResourceGroupUtilizationDatapointListDto[];
4488
+ ungroupedResources?: ResourceUtilizationDatapointListDto[];
4489
4489
  }
4490
- export interface MachineGroupUtilizationDatapointListDto extends UtilizationDatapointListDto {
4490
+ export interface ResourceGroupUtilizationDatapointListDto extends UtilizationDatapointListDto {
4491
4491
  groupId: string;
4492
4492
  groupName: string;
4493
- machines?: MachineUtilizationDatapointListDto[];
4493
+ resources?: ResourceUtilizationDatapointListDto[];
4494
+ }
4495
+ export interface ResourceUtilizationDatapointListDto extends UtilizationDatapointListDto {
4496
+ externalId: string;
4497
+ id: number;
4498
+ name: string;
4499
+ description?: string | null;
4494
4500
  }
4495
4501
  export interface CrossCompanyUtilizationDatapointListDto extends UtilizationDatapointListDto {
4496
4502
  companies?: NamedCompanyUtilizationDatapointListDto[];
4497
4503
  }
4504
+ export interface CompanyUtilizationDatapointListDto extends UtilizationDatapointListDto {
4505
+ groups?: MachineGroupUtilizationDatapointListDto[];
4506
+ ungroupedMachines?: MachineUtilizationDatapointListDto[];
4507
+ }
4498
4508
  export interface NamedCompanyUtilizationDatapointListDto extends CompanyUtilizationDatapointListDto {
4499
4509
  companyId: string;
4500
4510
  companyName: string;
4501
4511
  }
4502
- export interface CompanyResourceUtilizationDto {
4503
- utilizationType: ResourceUtilizationTypeDto;
4504
- companyUtilization: UtilizationDetailsV2Dto;
4505
- groups: ResourceGroupUtilizationV2Dto[];
4506
- ungroupedResources: ResourceUtilizationV3Dto[];
4507
- }
4508
- export interface ResourceGroupUtilizationV2Dto {
4509
- name: string;
4510
- utilization: UtilizationDetailsV2Dto;
4511
- resources: ResourceUtilizationV3Dto[];
4512
- }
4513
- export interface ResourceUtilizationV3Dto {
4514
- id?: number;
4515
- name: string;
4516
- description?: string | null;
4517
- utilization: UtilizationDetailsV2Dto;
4512
+ export interface MachineGroupUtilizationDatapointListDto extends UtilizationDatapointListDto {
4513
+ groupId: string;
4514
+ groupName: string;
4515
+ machines?: MachineUtilizationDatapointListDto[];
4518
4516
  }
4519
4517
  export interface CrossCompanyResourceUtilizationDto {
4520
4518
  utilizationType: ResourceUtilizationTypeDto;
@@ -4525,21 +4523,6 @@ export interface NamedCompanyResourceUtilizationDto extends CompanyResourceUtili
4525
4523
  companyId: string;
4526
4524
  companyName: string;
4527
4525
  }
4528
- export interface ResourceUtilizationDatapointListDto extends UtilizationDatapointListDto {
4529
- externalId: string;
4530
- id: number;
4531
- name: string;
4532
- description?: string | null;
4533
- }
4534
- export interface CompanyResourceUtilizationDatapointListDto extends UtilizationDatapointListDto {
4535
- groups?: ResourceGroupUtilizationDatapointListDto[];
4536
- ungroupedResources?: ResourceUtilizationDatapointListDto[];
4537
- }
4538
- export interface ResourceGroupUtilizationDatapointListDto extends UtilizationDatapointListDto {
4539
- groupId: string;
4540
- groupName: string;
4541
- resources?: ResourceUtilizationDatapointListDto[];
4542
- }
4543
4526
  export interface CrossCompanyResourceUtilizationDatapointListDto extends UtilizationDatapointListDto {
4544
4527
  companies?: NamedCompanyResourceUtilizationDatapointListDto[];
4545
4528
  }
@@ -7847,7 +7830,7 @@ export interface ImaMaterialCheckDto {
7847
7830
  materialCheckId: string;
7848
7831
  originalMaterialCertificate: FileDto;
7849
7832
  generatedMaterialCertificate?: FileDto | null;
7850
- customer?: string | null;
7833
+ customerOrder?: string | null;
7851
7834
  project?: string | null;
7852
7835
  workOrder?: string | null;
7853
7836
  certificateTypeId?: string | null;
@@ -7857,6 +7840,7 @@ export interface ImaMaterialCheckDto {
7857
7840
  specificationVersion: number;
7858
7841
  specificationName: string;
7859
7842
  specificationStatus: ImaSpecificationStatus;
7843
+ certificateTypeStatus: ImaCertificateTypeStatus;
7860
7844
  purchaseOrder?: string | null;
7861
7845
  purchaseOrderLine?: number | null;
7862
7846
  purchaseOrderVendorBatches?: string[] | null;
@@ -7877,7 +7861,7 @@ export interface ImaMaterialCheckDto {
7877
7861
  specificationResults: ImaSpecificationResultsDto;
7878
7862
  }
7879
7863
  export type ImaSpecificationStatus = "Draft" | "Released" | "Expired" | "Rejected" | "NotSet";
7880
- export type ImaMaterialCheckStatus = "Processing" | "Draft" | "Approved" | "Rejected" | "NotSet";
7864
+ export type ImaMaterialCheckStatus = "Processing" | "Draft" | "Approved" | "Rejected" | "Failed" | "NotSet";
7881
7865
  export interface ImaCertificateTypeResultsDto extends ImaCdfEntityReadBase {
7882
7866
  manufacturer: ImaCertificateTypeManufacturerResultsDto;
7883
7867
  signature: ImaCertificateTypeSignatureResultsDto;
@@ -7999,11 +7983,9 @@ export interface ImaSpecificationMechanicalResultsDto extends ImaCdfEntityReadBa
7999
7983
  export interface ImaSpecificationFerriteResultsDto extends ImaCdfEntityReadBase {
8000
7984
  ferriteContent?: ImaSpecificationFerriteResultLineDto | null;
8001
7985
  }
8002
- export interface ImaSpecificationFerriteResultLineDto {
8003
- specificationOperator?: string | null;
8004
- specificationValue1?: string | null;
8005
- specificationValue2?: string | null;
8006
- specificationSymbol?: string | null;
7986
+ export interface ImaSpecificationFerriteResultLineDto extends ImaCdfEntityReadBase {
7987
+ specificationMin?: number | null;
7988
+ specificationMax?: number | null;
8007
7989
  readValue?: string | null;
8008
7990
  status: ImaSpecificationResultLineStatus;
8009
7991
  override?: ImaResultLineOverrideDto | null;
@@ -8132,6 +8114,11 @@ export interface ImaOverrideSpecificationFerriteResultsDto {
8132
8114
  export interface ImaOverrideSpecificationHeatTreatmentResultsDto {
8133
8115
  heatTreatmentOverrides?: ImaOverrideUpdateMaterialCheckResultLineDto[] | null;
8134
8116
  }
8117
+ export interface ImaUpdateMaterialCheckMetadataRequestDto {
8118
+ customerOrder?: string;
8119
+ workorder?: string;
8120
+ project?: string;
8121
+ }
8135
8122
  export interface PagedResultOfImaMaterialCheckLiteDto {
8136
8123
  results: ImaMaterialCheckLiteDto[];
8137
8124
  continuationToken?: string | null;
@@ -8140,7 +8127,7 @@ export interface ImaMaterialCheckLiteDto {
8140
8127
  materialCheckId: string;
8141
8128
  originalMaterialCertificate: FileDto;
8142
8129
  generatedMaterialCertificate?: FileDto | null;
8143
- customer?: string | null;
8130
+ customerOrder?: string | null;
8144
8131
  project?: string | null;
8145
8132
  workOrder?: string | null;
8146
8133
  certificateTypeId?: string | null;
@@ -8157,6 +8144,8 @@ export interface ImaMaterialCheckLiteDto {
8157
8144
  purchaseOrderDrawing?: string | null;
8158
8145
  heatNumber?: string | null;
8159
8146
  status: ImaMaterialCheckStatus;
8147
+ specificationStatus: ImaSpecificationStatus;
8148
+ certificateTypeStatus: ImaCertificateTypeStatus;
8160
8149
  created: Date;
8161
8150
  createdBy: string;
8162
8151
  createdById: string;
@@ -8306,13 +8295,13 @@ export interface ImaHeatTreatmentSpecificationCoolingDto extends ImaCdfEntityRea
8306
8295
  temperature?: ImaSpecificationLineDto | null;
8307
8296
  duration?: ImaSpecificationLineDto | null;
8308
8297
  }
8309
- export type ImaHeatTreatmentCoolingMethod = "AirCooling" | "OilQuenching" | "WaterQuenching" | "FurnaceCooling" | "AirBlastCooling" | "PolymerQuenching" | "NotSet";
8298
+ export type ImaHeatTreatmentCoolingMethod = "NoCoolingMethod" | "AirCooling" | "FurnaceCooling" | "OilQuenching" | "PolymerQuenching" | "WaterQuenching" | "NotSet";
8310
8299
  export interface ImaHeatTreatmentSpecificationHeatingDto extends ImaCdfEntityReadBase {
8311
8300
  heatingMethod: ImaHeatTreatmentHeatingMethod;
8312
8301
  temperature?: ImaSpecificationLineDto | null;
8313
8302
  duration?: ImaSpecificationLineDto | null;
8314
8303
  }
8315
- export type ImaHeatTreatmentHeatingMethod = "Annealing" | "Normalizing" | "Quenching" | "Tempering" | "StressRelieving" | "SolutionTreating" | "Aging" | "Austempering" | "Martempering" | "NotSet";
8304
+ export type ImaHeatTreatmentHeatingMethod = "Annealing" | "Austenitizing" | "Hardening" | "Normalizing" | "SolutionAnnealing" | "StressRelieving" | "Tempering" | "NotSet";
8316
8305
  export interface ImaCreateSpecificationRequestDto {
8317
8306
  name: string;
8318
8307
  number: string;
@@ -1203,13 +1203,13 @@ export class SpatialClient extends AuthorizedApiBase {
1203
1203
  }
1204
1204
  return Promise.resolve(null);
1205
1205
  }
1206
- updateFactory(request) {
1206
+ upsertFactory(request) {
1207
1207
  let url_ = this.baseUrl + "/spatial/factory";
1208
1208
  url_ = url_.replace(/[?&]$/, "");
1209
1209
  const content_ = JSON.stringify(request);
1210
1210
  let options_ = {
1211
1211
  body: content_,
1212
- method: "PUT",
1212
+ method: "POST",
1213
1213
  headers: {
1214
1214
  "Content-Type": "application/json",
1215
1215
  "Accept": "application/json"
@@ -1218,10 +1218,10 @@ export class SpatialClient extends AuthorizedApiBase {
1218
1218
  return this.transformOptions(options_).then(transformedOptions_ => {
1219
1219
  return this.http.fetch(url_, transformedOptions_);
1220
1220
  }).then((_response) => {
1221
- return this.processUpdateFactory(_response);
1221
+ return this.processUpsertFactory(_response);
1222
1222
  });
1223
1223
  }
1224
- processUpdateFactory(response) {
1224
+ processUpsertFactory(response) {
1225
1225
  const status = response.status;
1226
1226
  let _headers = {};
1227
1227
  if (response.headers && response.headers.forEach) {
@@ -5651,31 +5651,15 @@ export class UtilizationClient extends AuthorizedApiBase {
5651
5651
  this.http = http ? http : window;
5652
5652
  this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
5653
5653
  }
5654
- /**
5655
- * @param utilizationType (optional)
5656
- * @param startTime (optional)
5657
- * @param endTime (optional)
5658
- * @param ianaTimeZone (optional)
5659
- * @deprecated
5660
- */
5661
- getCompanyUtilization(utilizationType, startTime, endTime, ianaTimeZone) {
5662
- let url_ = this.baseUrl + "/utilization?";
5663
- if (utilizationType === null)
5664
- throw new globalThis.Error("The parameter 'utilizationType' cannot be null.");
5665
- else if (utilizationType !== undefined)
5666
- url_ += "utilizationType=" + encodeURIComponent("" + utilizationType) + "&";
5667
- if (startTime === null)
5668
- throw new globalThis.Error("The parameter 'startTime' cannot be null.");
5669
- else if (startTime !== undefined)
5670
- url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
5671
- if (endTime !== undefined && endTime !== null)
5672
- url_ += "endTime=" + encodeURIComponent(endTime ? "" + endTime.toISOString() : "") + "&";
5673
- if (ianaTimeZone !== undefined && ianaTimeZone !== null)
5674
- url_ += "ianaTimeZone=" + encodeURIComponent("" + ianaTimeZone) + "&";
5654
+ getCompanyUtilization(request) {
5655
+ let url_ = this.baseUrl + "/utilization";
5675
5656
  url_ = url_.replace(/[?&]$/, "");
5657
+ const content_ = JSON.stringify(request);
5676
5658
  let options_ = {
5677
- method: "GET",
5659
+ body: content_,
5660
+ method: "POST",
5678
5661
  headers: {
5662
+ "Content-Type": "application/json",
5679
5663
  "Accept": "application/json"
5680
5664
  }
5681
5665
  };
@@ -5822,31 +5806,15 @@ export class UtilizationClient extends AuthorizedApiBase {
5822
5806
  }
5823
5807
  return Promise.resolve(null);
5824
5808
  }
5825
- /**
5826
- * @param utilizationType (optional)
5827
- * @param startTime (optional)
5828
- * @param endTime (optional)
5829
- * @param ianaTimeZone (optional)
5830
- * @deprecated
5831
- */
5832
- getCompanyUtilizationDatapoints(utilizationType, startTime, endTime, ianaTimeZone) {
5833
- let url_ = this.baseUrl + "/utilization/datapoints/company?";
5834
- if (utilizationType === null)
5835
- throw new globalThis.Error("The parameter 'utilizationType' cannot be null.");
5836
- else if (utilizationType !== undefined)
5837
- url_ += "utilizationType=" + encodeURIComponent("" + utilizationType) + "&";
5838
- if (startTime === null)
5839
- throw new globalThis.Error("The parameter 'startTime' cannot be null.");
5840
- else if (startTime !== undefined)
5841
- url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
5842
- if (endTime !== undefined && endTime !== null)
5843
- url_ += "endTime=" + encodeURIComponent(endTime ? "" + endTime.toISOString() : "") + "&";
5844
- if (ianaTimeZone !== undefined && ianaTimeZone !== null)
5845
- url_ += "ianaTimeZone=" + encodeURIComponent("" + ianaTimeZone) + "&";
5809
+ getCompanyUtilizationDatapoints(request) {
5810
+ let url_ = this.baseUrl + "/utilization/datapoints/company";
5846
5811
  url_ = url_.replace(/[?&]$/, "");
5812
+ const content_ = JSON.stringify(request);
5847
5813
  let options_ = {
5848
- method: "GET",
5814
+ body: content_,
5815
+ method: "POST",
5849
5816
  headers: {
5817
+ "Content-Type": "application/json",
5850
5818
  "Accept": "application/json"
5851
5819
  }
5852
5820
  };
@@ -21487,7 +21455,7 @@ export class InspectMatchMaterialChecksAdminClient extends AuthorizedApiBase {
21487
21455
  let options_ = {
21488
21456
  method: "PUT",
21489
21457
  headers: {
21490
- "Accept": "application/octet-stream"
21458
+ "Accept": "application/json"
21491
21459
  }
21492
21460
  };
21493
21461
  return this.transformOptions(options_).then(transformedOptions_ => {
@@ -21503,18 +21471,54 @@ export class InspectMatchMaterialChecksAdminClient extends AuthorizedApiBase {
21503
21471
  response.headers.forEach((v, k) => _headers[k] = v);
21504
21472
  }
21505
21473
  ;
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;
21474
+ if (status === 200) {
21475
+ return response.text().then((_responseText) => {
21476
+ let result200 = null;
21477
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
21478
+ return result200;
21479
+ });
21480
+ }
21481
+ else if (status !== 200 && status !== 204) {
21482
+ return response.text().then((_responseText) => {
21483
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
21484
+ });
21485
+ }
21486
+ return Promise.resolve(null);
21487
+ }
21488
+ updateMaterialCheckMetadata(id, metadataRequest) {
21489
+ let url_ = this.baseUrl + "/inspect/match/material-checks/metadata/{id}";
21490
+ if (id === undefined || id === null)
21491
+ throw new globalThis.Error("The parameter 'id' must be defined.");
21492
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
21493
+ url_ = url_.replace(/[?&]$/, "");
21494
+ const content_ = JSON.stringify(metadataRequest);
21495
+ let options_ = {
21496
+ body: content_,
21497
+ method: "PUT",
21498
+ headers: {
21499
+ "Content-Type": "application/json",
21500
+ "Accept": "application/json"
21516
21501
  }
21517
- return response.blob().then(blob => { return { fileName: fileName, data: blob, status: status, headers: _headers }; });
21502
+ };
21503
+ return this.transformOptions(options_).then(transformedOptions_ => {
21504
+ return this.http.fetch(url_, transformedOptions_);
21505
+ }).then((_response) => {
21506
+ return this.processUpdateMaterialCheckMetadata(_response);
21507
+ });
21508
+ }
21509
+ processUpdateMaterialCheckMetadata(response) {
21510
+ const status = response.status;
21511
+ let _headers = {};
21512
+ if (response.headers && response.headers.forEach) {
21513
+ response.headers.forEach((v, k) => _headers[k] = v);
21514
+ }
21515
+ ;
21516
+ if (status === 200) {
21517
+ return response.text().then((_responseText) => {
21518
+ let result200 = null;
21519
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
21520
+ return result200;
21521
+ });
21518
21522
  }
21519
21523
  else if (status !== 200 && status !== 204) {
21520
21524
  return response.text().then((_responseText) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ignos/api-client",
3
- "version": "20260423.119.1",
3
+ "version": "20260505.121.1",
4
4
  "description": "IGNOS API Client",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -701,7 +701,7 @@ export interface ISpatialClient {
701
701
 
702
702
  getFactory(): Promise<FactoryDto>;
703
703
 
704
- updateFactory(request: UpdateFactory): Promise<FactoryDto>;
704
+ upsertFactory(request: UpsertFactory): Promise<FactoryDto>;
705
705
 
706
706
  deleteFactory(): Promise<void>;
707
707
  }
@@ -1331,7 +1331,7 @@ export class SpatialClient extends AuthorizedApiBase implements ISpatialClient {
1331
1331
  return Promise.resolve<FactoryDto>(null as any);
1332
1332
  }
1333
1333
 
1334
- updateFactory(request: UpdateFactory): Promise<FactoryDto> {
1334
+ upsertFactory(request: UpsertFactory): Promise<FactoryDto> {
1335
1335
  let url_ = this.baseUrl + "/spatial/factory";
1336
1336
  url_ = url_.replace(/[?&]$/, "");
1337
1337
 
@@ -1339,7 +1339,7 @@ export class SpatialClient extends AuthorizedApiBase implements ISpatialClient {
1339
1339
 
1340
1340
  let options_: RequestInit = {
1341
1341
  body: content_,
1342
- method: "PUT",
1342
+ method: "POST",
1343
1343
  headers: {
1344
1344
  "Content-Type": "application/json",
1345
1345
  "Accept": "application/json"
@@ -1349,11 +1349,11 @@ export class SpatialClient extends AuthorizedApiBase implements ISpatialClient {
1349
1349
  return this.transformOptions(options_).then(transformedOptions_ => {
1350
1350
  return this.http.fetch(url_, transformedOptions_);
1351
1351
  }).then((_response: Response) => {
1352
- return this.processUpdateFactory(_response);
1352
+ return this.processUpsertFactory(_response);
1353
1353
  });
1354
1354
  }
1355
1355
 
1356
- protected processUpdateFactory(response: Response): Promise<FactoryDto> {
1356
+ protected processUpsertFactory(response: Response): Promise<FactoryDto> {
1357
1357
  const status = response.status;
1358
1358
  let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
1359
1359
  if (status === 200) {
@@ -6075,14 +6075,7 @@ export class PulseClient extends AuthorizedApiBase implements IPulseClient {
6075
6075
 
6076
6076
  export interface IUtilizationClient {
6077
6077
 
6078
- /**
6079
- * @param utilizationType (optional)
6080
- * @param startTime (optional)
6081
- * @param endTime (optional)
6082
- * @param ianaTimeZone (optional)
6083
- * @deprecated
6084
- */
6085
- getCompanyUtilization(utilizationType: UtilizationTypeDto | undefined, startTime: Date | undefined, endTime: Date | null | undefined, ianaTimeZone: string | null | undefined): Promise<CompanyUtilizationDto>;
6078
+ getCompanyUtilization(request: UtilizationInputRequest): Promise<CompanyResourceUtilizationDto>;
6086
6079
 
6087
6080
  /**
6088
6081
  * @param utilizationType (optional)
@@ -6104,14 +6097,7 @@ export interface IUtilizationClient {
6104
6097
  */
6105
6098
  getUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | undefined, endTime: Date | null | undefined, ianaTimeZone: string | null | undefined, assetId: number | null | undefined, assetExternalId: string | null | undefined): Promise<MachineUtilizationDatapointListDto>;
6106
6099
 
6107
- /**
6108
- * @param utilizationType (optional)
6109
- * @param startTime (optional)
6110
- * @param endTime (optional)
6111
- * @param ianaTimeZone (optional)
6112
- * @deprecated
6113
- */
6114
- getCompanyUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | undefined, endTime: Date | null | undefined, ianaTimeZone: string | null | undefined): Promise<CompanyUtilizationDatapointListDto>;
6100
+ getCompanyUtilizationDatapoints(request: UtilizationInputRequest): Promise<CompanyResourceUtilizationDatapointListDto>;
6115
6101
 
6116
6102
  /**
6117
6103
  * @param utilizationType (optional)
@@ -6143,32 +6129,17 @@ export class UtilizationClient extends AuthorizedApiBase implements IUtilization
6143
6129
  this.baseUrl = baseUrl ?? "";
6144
6130
  }
6145
6131
 
6146
- /**
6147
- * @param utilizationType (optional)
6148
- * @param startTime (optional)
6149
- * @param endTime (optional)
6150
- * @param ianaTimeZone (optional)
6151
- * @deprecated
6152
- */
6153
- getCompanyUtilization(utilizationType: UtilizationTypeDto | undefined, startTime: Date | undefined, endTime: Date | null | undefined, ianaTimeZone: string | null | undefined): Promise<CompanyUtilizationDto> {
6154
- let url_ = this.baseUrl + "/utilization?";
6155
- if (utilizationType === null)
6156
- throw new globalThis.Error("The parameter 'utilizationType' cannot be null.");
6157
- else if (utilizationType !== undefined)
6158
- url_ += "utilizationType=" + encodeURIComponent("" + utilizationType) + "&";
6159
- if (startTime === null)
6160
- throw new globalThis.Error("The parameter 'startTime' cannot be null.");
6161
- else if (startTime !== undefined)
6162
- url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
6163
- if (endTime !== undefined && endTime !== null)
6164
- url_ += "endTime=" + encodeURIComponent(endTime ? "" + endTime.toISOString() : "") + "&";
6165
- if (ianaTimeZone !== undefined && ianaTimeZone !== null)
6166
- url_ += "ianaTimeZone=" + encodeURIComponent("" + ianaTimeZone) + "&";
6132
+ getCompanyUtilization(request: UtilizationInputRequest): Promise<CompanyResourceUtilizationDto> {
6133
+ let url_ = this.baseUrl + "/utilization";
6167
6134
  url_ = url_.replace(/[?&]$/, "");
6168
6135
 
6136
+ const content_ = JSON.stringify(request);
6137
+
6169
6138
  let options_: RequestInit = {
6170
- method: "GET",
6139
+ body: content_,
6140
+ method: "POST",
6171
6141
  headers: {
6142
+ "Content-Type": "application/json",
6172
6143
  "Accept": "application/json"
6173
6144
  }
6174
6145
  };
@@ -6180,13 +6151,13 @@ export class UtilizationClient extends AuthorizedApiBase implements IUtilization
6180
6151
  });
6181
6152
  }
6182
6153
 
6183
- protected processGetCompanyUtilization(response: Response): Promise<CompanyUtilizationDto> {
6154
+ protected processGetCompanyUtilization(response: Response): Promise<CompanyResourceUtilizationDto> {
6184
6155
  const status = response.status;
6185
6156
  let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
6186
6157
  if (status === 200) {
6187
6158
  return response.text().then((_responseText) => {
6188
6159
  let result200: any = null;
6189
- result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as CompanyUtilizationDto;
6160
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as CompanyResourceUtilizationDto;
6190
6161
  return result200;
6191
6162
  });
6192
6163
  } else if (status !== 200 && status !== 204) {
@@ -6194,7 +6165,7 @@ export class UtilizationClient extends AuthorizedApiBase implements IUtilization
6194
6165
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
6195
6166
  });
6196
6167
  }
6197
- return Promise.resolve<CompanyUtilizationDto>(null as any);
6168
+ return Promise.resolve<CompanyResourceUtilizationDto>(null as any);
6198
6169
  }
6199
6170
 
6200
6171
  /**
@@ -6311,32 +6282,17 @@ export class UtilizationClient extends AuthorizedApiBase implements IUtilization
6311
6282
  return Promise.resolve<MachineUtilizationDatapointListDto>(null as any);
6312
6283
  }
6313
6284
 
6314
- /**
6315
- * @param utilizationType (optional)
6316
- * @param startTime (optional)
6317
- * @param endTime (optional)
6318
- * @param ianaTimeZone (optional)
6319
- * @deprecated
6320
- */
6321
- getCompanyUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | undefined, endTime: Date | null | undefined, ianaTimeZone: string | null | undefined): Promise<CompanyUtilizationDatapointListDto> {
6322
- let url_ = this.baseUrl + "/utilization/datapoints/company?";
6323
- if (utilizationType === null)
6324
- throw new globalThis.Error("The parameter 'utilizationType' cannot be null.");
6325
- else if (utilizationType !== undefined)
6326
- url_ += "utilizationType=" + encodeURIComponent("" + utilizationType) + "&";
6327
- if (startTime === null)
6328
- throw new globalThis.Error("The parameter 'startTime' cannot be null.");
6329
- else if (startTime !== undefined)
6330
- url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
6331
- if (endTime !== undefined && endTime !== null)
6332
- url_ += "endTime=" + encodeURIComponent(endTime ? "" + endTime.toISOString() : "") + "&";
6333
- if (ianaTimeZone !== undefined && ianaTimeZone !== null)
6334
- url_ += "ianaTimeZone=" + encodeURIComponent("" + ianaTimeZone) + "&";
6285
+ getCompanyUtilizationDatapoints(request: UtilizationInputRequest): Promise<CompanyResourceUtilizationDatapointListDto> {
6286
+ let url_ = this.baseUrl + "/utilization/datapoints/company";
6335
6287
  url_ = url_.replace(/[?&]$/, "");
6336
6288
 
6289
+ const content_ = JSON.stringify(request);
6290
+
6337
6291
  let options_: RequestInit = {
6338
- method: "GET",
6292
+ body: content_,
6293
+ method: "POST",
6339
6294
  headers: {
6295
+ "Content-Type": "application/json",
6340
6296
  "Accept": "application/json"
6341
6297
  }
6342
6298
  };
@@ -6348,13 +6304,13 @@ export class UtilizationClient extends AuthorizedApiBase implements IUtilization
6348
6304
  });
6349
6305
  }
6350
6306
 
6351
- protected processGetCompanyUtilizationDatapoints(response: Response): Promise<CompanyUtilizationDatapointListDto> {
6307
+ protected processGetCompanyUtilizationDatapoints(response: Response): Promise<CompanyResourceUtilizationDatapointListDto> {
6352
6308
  const status = response.status;
6353
6309
  let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
6354
6310
  if (status === 200) {
6355
6311
  return response.text().then((_responseText) => {
6356
6312
  let result200: any = null;
6357
- result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as CompanyUtilizationDatapointListDto;
6313
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as CompanyResourceUtilizationDatapointListDto;
6358
6314
  return result200;
6359
6315
  });
6360
6316
  } else if (status !== 200 && status !== 204) {
@@ -6362,7 +6318,7 @@ export class UtilizationClient extends AuthorizedApiBase implements IUtilization
6362
6318
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
6363
6319
  });
6364
6320
  }
6365
- return Promise.resolve<CompanyUtilizationDatapointListDto>(null as any);
6321
+ return Promise.resolve<CompanyResourceUtilizationDatapointListDto>(null as any);
6366
6322
  }
6367
6323
 
6368
6324
  /**
@@ -22933,7 +22889,9 @@ export interface IInspectMatchMaterialChecksAdminClient {
22933
22889
 
22934
22890
  updateMaterialCheckOverrides(id: string, request: ImaOverrideMaterialCheckRequestDto): Promise<ImaMaterialCheckDto>;
22935
22891
 
22936
- updateMaterialCheckStatus(id: string, status: ImaMaterialCheckStatus | undefined): Promise<FileResponse>;
22892
+ updateMaterialCheckStatus(id: string, status: ImaMaterialCheckStatus | undefined): Promise<ImaMaterialCheckDto>;
22893
+
22894
+ updateMaterialCheckMetadata(id: string, metadataRequest: ImaUpdateMaterialCheckMetadataRequestDto): Promise<ImaMaterialCheckDto>;
22937
22895
 
22938
22896
  deleteMaterialCheck(id: string): Promise<void>;
22939
22897
  }
@@ -22990,7 +22948,7 @@ export class InspectMatchMaterialChecksAdminClient extends AuthorizedApiBase imp
22990
22948
  return Promise.resolve<ImaMaterialCheckDto>(null as any);
22991
22949
  }
22992
22950
 
22993
- updateMaterialCheckStatus(id: string, status: ImaMaterialCheckStatus | undefined): Promise<FileResponse> {
22951
+ updateMaterialCheckStatus(id: string, status: ImaMaterialCheckStatus | undefined): Promise<ImaMaterialCheckDto> {
22994
22952
  let url_ = this.baseUrl + "/inspect/match/material-checks/status/{id}?";
22995
22953
  if (id === undefined || id === null)
22996
22954
  throw new globalThis.Error("The parameter 'id' must be defined.");
@@ -23004,7 +22962,7 @@ export class InspectMatchMaterialChecksAdminClient extends AuthorizedApiBase imp
23004
22962
  let options_: RequestInit = {
23005
22963
  method: "PUT",
23006
22964
  headers: {
23007
- "Accept": "application/octet-stream"
22965
+ "Accept": "application/json"
23008
22966
  }
23009
22967
  };
23010
22968
 
@@ -23015,26 +22973,63 @@ export class InspectMatchMaterialChecksAdminClient extends AuthorizedApiBase imp
23015
22973
  });
23016
22974
  }
23017
22975
 
23018
- protected processUpdateMaterialCheckStatus(response: Response): Promise<FileResponse> {
22976
+ protected processUpdateMaterialCheckStatus(response: Response): Promise<ImaMaterialCheckDto> {
23019
22977
  const status = response.status;
23020
22978
  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;
22979
+ if (status === 200) {
22980
+ return response.text().then((_responseText) => {
22981
+ let result200: any = null;
22982
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as ImaMaterialCheckDto;
22983
+ return result200;
22984
+ });
22985
+ } else if (status !== 200 && status !== 204) {
22986
+ return response.text().then((_responseText) => {
22987
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
22988
+ });
22989
+ }
22990
+ return Promise.resolve<ImaMaterialCheckDto>(null as any);
22991
+ }
22992
+
22993
+ updateMaterialCheckMetadata(id: string, metadataRequest: ImaUpdateMaterialCheckMetadataRequestDto): Promise<ImaMaterialCheckDto> {
22994
+ let url_ = this.baseUrl + "/inspect/match/material-checks/metadata/{id}";
22995
+ if (id === undefined || id === null)
22996
+ throw new globalThis.Error("The parameter 'id' must be defined.");
22997
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
22998
+ url_ = url_.replace(/[?&]$/, "");
22999
+
23000
+ const content_ = JSON.stringify(metadataRequest);
23001
+
23002
+ let options_: RequestInit = {
23003
+ body: content_,
23004
+ method: "PUT",
23005
+ headers: {
23006
+ "Content-Type": "application/json",
23007
+ "Accept": "application/json"
23030
23008
  }
23031
- return response.blob().then(blob => { return { fileName: fileName, data: blob, status: status, headers: _headers }; });
23009
+ };
23010
+
23011
+ return this.transformOptions(options_).then(transformedOptions_ => {
23012
+ return this.http.fetch(url_, transformedOptions_);
23013
+ }).then((_response: Response) => {
23014
+ return this.processUpdateMaterialCheckMetadata(_response);
23015
+ });
23016
+ }
23017
+
23018
+ protected processUpdateMaterialCheckMetadata(response: Response): Promise<ImaMaterialCheckDto> {
23019
+ const status = response.status;
23020
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
23021
+ if (status === 200) {
23022
+ return response.text().then((_responseText) => {
23023
+ let result200: any = null;
23024
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as ImaMaterialCheckDto;
23025
+ return result200;
23026
+ });
23032
23027
  } else if (status !== 200 && status !== 204) {
23033
23028
  return response.text().then((_responseText) => {
23034
23029
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
23035
23030
  });
23036
23031
  }
23037
- return Promise.resolve<FileResponse>(null as any);
23032
+ return Promise.resolve<ImaMaterialCheckDto>(null as any);
23038
23033
  }
23039
23034
 
23040
23035
  deleteMaterialCheck(id: string): Promise<void> {
@@ -29789,7 +29784,7 @@ export interface Point {
29789
29784
  [key: string]: any;
29790
29785
  }
29791
29786
 
29792
- export interface UpdateFactory {
29787
+ export interface UpsertFactory {
29793
29788
  centerPoint?: Point;
29794
29789
  }
29795
29790
 
@@ -30863,11 +30858,11 @@ export interface UpdatePulseSettingsResource {
30863
30858
  factoryCalendarEnabled: boolean;
30864
30859
  }
30865
30860
 
30866
- export interface CompanyUtilizationDto {
30867
- utilizationType: UtilizationTypeDto;
30861
+ export interface CompanyResourceUtilizationDto {
30862
+ utilizationType: ResourceUtilizationTypeDto;
30868
30863
  companyUtilization: UtilizationDetailsV2Dto;
30869
- groups: MachineGroupUtilizationV2Dto[];
30870
- ungroupedMachines: MachineUtilizationV3Dto[];
30864
+ groups: ResourceGroupUtilizationV2Dto[];
30865
+ ungroupedResources: ResourceUtilizationV3Dto[];
30871
30866
  }
30872
30867
 
30873
30868
  export interface UtilizationDetailsV2Dto {
@@ -30882,30 +30877,59 @@ export interface UtilizationDetailsV2Dto {
30882
30877
  performancePercent?: number | null;
30883
30878
  }
30884
30879
 
30885
- export interface MachineGroupUtilizationV2Dto {
30880
+ export interface ResourceGroupUtilizationV2Dto {
30886
30881
  name: string;
30887
30882
  utilization: UtilizationDetailsV2Dto;
30888
- machines: MachineUtilizationV3Dto[];
30883
+ resources: ResourceUtilizationV3Dto[];
30889
30884
  }
30890
30885
 
30891
- export interface MachineUtilizationV3Dto {
30886
+ export interface ResourceUtilizationV3Dto {
30892
30887
  id?: number;
30893
30888
  name: string;
30894
30889
  description?: string | null;
30895
30890
  utilization: UtilizationDetailsV2Dto;
30896
30891
  }
30897
30892
 
30893
+ export interface UtilizationInputRequest {
30894
+ utilizationType?: ResourceUtilizationTypeDto;
30895
+ startTime: Date;
30896
+ endTime?: Date | null;
30897
+ ianaTimeZone?: string | null;
30898
+ resourceExternalIds?: string[] | null;
30899
+ resourceGroupNames?: string[] | null;
30900
+ }
30901
+
30898
30902
  export interface CrossCompanyUtilizationDto {
30899
30903
  utilizationType: UtilizationTypeDto;
30900
30904
  crossCompanyUtilization: UtilizationDetailsV2Dto;
30901
30905
  companies: NamedCompanyUtilizationDto[];
30902
30906
  }
30903
30907
 
30908
+ export interface CompanyUtilizationDto {
30909
+ utilizationType: UtilizationTypeDto;
30910
+ companyUtilization: UtilizationDetailsV2Dto;
30911
+ groups: MachineGroupUtilizationV2Dto[];
30912
+ ungroupedMachines: MachineUtilizationV3Dto[];
30913
+ }
30914
+
30904
30915
  export interface NamedCompanyUtilizationDto extends CompanyUtilizationDto {
30905
30916
  companyId: string;
30906
30917
  companyName: string;
30907
30918
  }
30908
30919
 
30920
+ export interface MachineGroupUtilizationV2Dto {
30921
+ name: string;
30922
+ utilization: UtilizationDetailsV2Dto;
30923
+ machines: MachineUtilizationV3Dto[];
30924
+ }
30925
+
30926
+ export interface MachineUtilizationV3Dto {
30927
+ id?: number;
30928
+ name: string;
30929
+ description?: string | null;
30930
+ utilization: UtilizationDetailsV2Dto;
30931
+ }
30932
+
30909
30933
  export interface UtilizationDatapointListDto {
30910
30934
  datapoints?: NumericNullableValueWithTimestamp[];
30911
30935
  trendDatapoints?: NumericNullableValueWithTimestamp[];
@@ -30919,44 +30943,42 @@ export interface MachineUtilizationDatapointListDto extends UtilizationDatapoint
30919
30943
  description?: string | null;
30920
30944
  }
30921
30945
 
30922
- export interface CompanyUtilizationDatapointListDto extends UtilizationDatapointListDto {
30923
- groups?: MachineGroupUtilizationDatapointListDto[];
30924
- ungroupedMachines?: MachineUtilizationDatapointListDto[];
30946
+ export interface CompanyResourceUtilizationDatapointListDto extends UtilizationDatapointListDto {
30947
+ groups?: ResourceGroupUtilizationDatapointListDto[];
30948
+ ungroupedResources?: ResourceUtilizationDatapointListDto[];
30925
30949
  }
30926
30950
 
30927
- export interface MachineGroupUtilizationDatapointListDto extends UtilizationDatapointListDto {
30951
+ export interface ResourceGroupUtilizationDatapointListDto extends UtilizationDatapointListDto {
30928
30952
  groupId: string;
30929
30953
  groupName: string;
30930
- machines?: MachineUtilizationDatapointListDto[];
30954
+ resources?: ResourceUtilizationDatapointListDto[];
30955
+ }
30956
+
30957
+ export interface ResourceUtilizationDatapointListDto extends UtilizationDatapointListDto {
30958
+ externalId: string;
30959
+ id: number;
30960
+ name: string;
30961
+ description?: string | null;
30931
30962
  }
30932
30963
 
30933
30964
  export interface CrossCompanyUtilizationDatapointListDto extends UtilizationDatapointListDto {
30934
30965
  companies?: NamedCompanyUtilizationDatapointListDto[];
30935
30966
  }
30936
30967
 
30968
+ export interface CompanyUtilizationDatapointListDto extends UtilizationDatapointListDto {
30969
+ groups?: MachineGroupUtilizationDatapointListDto[];
30970
+ ungroupedMachines?: MachineUtilizationDatapointListDto[];
30971
+ }
30972
+
30937
30973
  export interface NamedCompanyUtilizationDatapointListDto extends CompanyUtilizationDatapointListDto {
30938
30974
  companyId: string;
30939
30975
  companyName: string;
30940
30976
  }
30941
30977
 
30942
- export interface CompanyResourceUtilizationDto {
30943
- utilizationType: ResourceUtilizationTypeDto;
30944
- companyUtilization: UtilizationDetailsV2Dto;
30945
- groups: ResourceGroupUtilizationV2Dto[];
30946
- ungroupedResources: ResourceUtilizationV3Dto[];
30947
- }
30948
-
30949
- export interface ResourceGroupUtilizationV2Dto {
30950
- name: string;
30951
- utilization: UtilizationDetailsV2Dto;
30952
- resources: ResourceUtilizationV3Dto[];
30953
- }
30954
-
30955
- export interface ResourceUtilizationV3Dto {
30956
- id?: number;
30957
- name: string;
30958
- description?: string | null;
30959
- utilization: UtilizationDetailsV2Dto;
30978
+ export interface MachineGroupUtilizationDatapointListDto extends UtilizationDatapointListDto {
30979
+ groupId: string;
30980
+ groupName: string;
30981
+ machines?: MachineUtilizationDatapointListDto[];
30960
30982
  }
30961
30983
 
30962
30984
  export interface CrossCompanyResourceUtilizationDto {
@@ -30970,24 +30992,6 @@ export interface NamedCompanyResourceUtilizationDto extends CompanyResourceUtili
30970
30992
  companyName: string;
30971
30993
  }
30972
30994
 
30973
- export interface ResourceUtilizationDatapointListDto extends UtilizationDatapointListDto {
30974
- externalId: string;
30975
- id: number;
30976
- name: string;
30977
- description?: string | null;
30978
- }
30979
-
30980
- export interface CompanyResourceUtilizationDatapointListDto extends UtilizationDatapointListDto {
30981
- groups?: ResourceGroupUtilizationDatapointListDto[];
30982
- ungroupedResources?: ResourceUtilizationDatapointListDto[];
30983
- }
30984
-
30985
- export interface ResourceGroupUtilizationDatapointListDto extends UtilizationDatapointListDto {
30986
- groupId: string;
30987
- groupName: string;
30988
- resources?: ResourceUtilizationDatapointListDto[];
30989
- }
30990
-
30991
30995
  export interface CrossCompanyResourceUtilizationDatapointListDto extends UtilizationDatapointListDto {
30992
30996
  companies?: NamedCompanyResourceUtilizationDatapointListDto[];
30993
30997
  }
@@ -34740,7 +34744,7 @@ export interface ImaMaterialCheckDto {
34740
34744
  materialCheckId: string;
34741
34745
  originalMaterialCertificate: FileDto;
34742
34746
  generatedMaterialCertificate?: FileDto | null;
34743
- customer?: string | null;
34747
+ customerOrder?: string | null;
34744
34748
  project?: string | null;
34745
34749
  workOrder?: string | null;
34746
34750
  certificateTypeId?: string | null;
@@ -34750,6 +34754,7 @@ export interface ImaMaterialCheckDto {
34750
34754
  specificationVersion: number;
34751
34755
  specificationName: string;
34752
34756
  specificationStatus: ImaSpecificationStatus;
34757
+ certificateTypeStatus: ImaCertificateTypeStatus;
34753
34758
  purchaseOrder?: string | null;
34754
34759
  purchaseOrderLine?: number | null;
34755
34760
  purchaseOrderVendorBatches?: string[] | null;
@@ -34772,7 +34777,7 @@ export interface ImaMaterialCheckDto {
34772
34777
 
34773
34778
  export type ImaSpecificationStatus = "Draft" | "Released" | "Expired" | "Rejected" | "NotSet";
34774
34779
 
34775
- export type ImaMaterialCheckStatus = "Processing" | "Draft" | "Approved" | "Rejected" | "NotSet";
34780
+ export type ImaMaterialCheckStatus = "Processing" | "Draft" | "Approved" | "Rejected" | "Failed" | "NotSet";
34776
34781
 
34777
34782
  export interface ImaCertificateTypeResultsDto extends ImaCdfEntityReadBase {
34778
34783
  manufacturer: ImaCertificateTypeManufacturerResultsDto;
@@ -34912,11 +34917,9 @@ export interface ImaSpecificationFerriteResultsDto extends ImaCdfEntityReadBase
34912
34917
  ferriteContent?: ImaSpecificationFerriteResultLineDto | null;
34913
34918
  }
34914
34919
 
34915
- export interface ImaSpecificationFerriteResultLineDto {
34916
- specificationOperator?: string | null;
34917
- specificationValue1?: string | null;
34918
- specificationValue2?: string | null;
34919
- specificationSymbol?: string | null;
34920
+ export interface ImaSpecificationFerriteResultLineDto extends ImaCdfEntityReadBase {
34921
+ specificationMin?: number | null;
34922
+ specificationMax?: number | null;
34920
34923
  readValue?: string | null;
34921
34924
  status: ImaSpecificationResultLineStatus;
34922
34925
  override?: ImaResultLineOverrideDto | null;
@@ -35064,6 +35067,12 @@ export interface ImaOverrideSpecificationHeatTreatmentResultsDto {
35064
35067
  heatTreatmentOverrides?: ImaOverrideUpdateMaterialCheckResultLineDto[] | null;
35065
35068
  }
35066
35069
 
35070
+ export interface ImaUpdateMaterialCheckMetadataRequestDto {
35071
+ customerOrder?: string;
35072
+ workorder?: string;
35073
+ project?: string;
35074
+ }
35075
+
35067
35076
  export interface PagedResultOfImaMaterialCheckLiteDto {
35068
35077
  results: ImaMaterialCheckLiteDto[];
35069
35078
  continuationToken?: string | null;
@@ -35073,7 +35082,7 @@ export interface ImaMaterialCheckLiteDto {
35073
35082
  materialCheckId: string;
35074
35083
  originalMaterialCertificate: FileDto;
35075
35084
  generatedMaterialCertificate?: FileDto | null;
35076
- customer?: string | null;
35085
+ customerOrder?: string | null;
35077
35086
  project?: string | null;
35078
35087
  workOrder?: string | null;
35079
35088
  certificateTypeId?: string | null;
@@ -35090,6 +35099,8 @@ export interface ImaMaterialCheckLiteDto {
35090
35099
  purchaseOrderDrawing?: string | null;
35091
35100
  heatNumber?: string | null;
35092
35101
  status: ImaMaterialCheckStatus;
35102
+ specificationStatus: ImaSpecificationStatus;
35103
+ certificateTypeStatus: ImaCertificateTypeStatus;
35093
35104
  created: Date;
35094
35105
  createdBy: string;
35095
35106
  createdById: string;
@@ -35257,7 +35268,7 @@ export interface ImaHeatTreatmentSpecificationCoolingDto extends ImaCdfEntityRea
35257
35268
  duration?: ImaSpecificationLineDto | null;
35258
35269
  }
35259
35270
 
35260
- export type ImaHeatTreatmentCoolingMethod = "AirCooling" | "OilQuenching" | "WaterQuenching" | "FurnaceCooling" | "AirBlastCooling" | "PolymerQuenching" | "NotSet";
35271
+ export type ImaHeatTreatmentCoolingMethod = "NoCoolingMethod" | "AirCooling" | "FurnaceCooling" | "OilQuenching" | "PolymerQuenching" | "WaterQuenching" | "NotSet";
35261
35272
 
35262
35273
  export interface ImaHeatTreatmentSpecificationHeatingDto extends ImaCdfEntityReadBase {
35263
35274
  heatingMethod: ImaHeatTreatmentHeatingMethod;
@@ -35265,7 +35276,7 @@ export interface ImaHeatTreatmentSpecificationHeatingDto extends ImaCdfEntityRea
35265
35276
  duration?: ImaSpecificationLineDto | null;
35266
35277
  }
35267
35278
 
35268
- export type ImaHeatTreatmentHeatingMethod = "Annealing" | "Normalizing" | "Quenching" | "Tempering" | "StressRelieving" | "SolutionTreating" | "Aging" | "Austempering" | "Martempering" | "NotSet";
35279
+ export type ImaHeatTreatmentHeatingMethod = "Annealing" | "Austenitizing" | "Hardening" | "Normalizing" | "SolutionAnnealing" | "StressRelieving" | "Tempering" | "NotSet";
35269
35280
 
35270
35281
  export interface ImaCreateSpecificationRequestDto {
35271
35282
  name: string;