@ignos/api-client 20250708.0.12121-alpha → 20250710.0.12165-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.
@@ -395,7 +395,7 @@ export declare class PulseClient extends AuthorizedApiBase implements IPulseClie
395
395
  export interface IUtilizationClient {
396
396
  getCompanyUtilization(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<CompanyUtilizationDto>;
397
397
  getCrossCompanyUtilization(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<CrossCompanyUtilizationDto>;
398
- getUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined, assetExternalId: string | null | undefined): Promise<MachineUtilizationDatapointListDto>;
398
+ getUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined, assetId: number | null | undefined, assetExternalId: string | null | undefined): Promise<MachineUtilizationDatapointListDto>;
399
399
  getCompanyUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<CompanyUtilizationDatapointListDto>;
400
400
  getCrossCompanyUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<CrossCompanyUtilizationDatapointListDto>;
401
401
  }
@@ -410,7 +410,7 @@ export declare class UtilizationClient extends AuthorizedApiBase implements IUti
410
410
  protected processGetCompanyUtilization(response: Response): Promise<CompanyUtilizationDto>;
411
411
  getCrossCompanyUtilization(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<CrossCompanyUtilizationDto>;
412
412
  protected processGetCrossCompanyUtilization(response: Response): Promise<CrossCompanyUtilizationDto>;
413
- getUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined, assetExternalId: string | null | undefined): Promise<MachineUtilizationDatapointListDto>;
413
+ getUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined, assetId: number | null | undefined, assetExternalId: string | null | undefined): Promise<MachineUtilizationDatapointListDto>;
414
414
  protected processGetUtilizationDatapoints(response: Response): Promise<MachineUtilizationDatapointListDto>;
415
415
  getCompanyUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<CompanyUtilizationDatapointListDto>;
416
416
  protected processGetCompanyUtilizationDatapoints(response: Response): Promise<CompanyUtilizationDatapointListDto>;
@@ -1914,6 +1914,7 @@ export interface IMesProductionOrderClient {
1914
1914
  getProductionOrder(id: string): Promise<ProductionOrderDto>;
1915
1915
  getProductionOrderBom(id: string, operation: number | null | undefined): Promise<ProductionOrderBomDto[]>;
1916
1916
  getProductionOrderPickListSuggestion(id: string, operation: number | undefined): Promise<PickListSuggestionDto[]>;
1917
+ getProductionOrderConsumptions(id: string): Promise<WorkOrderConsumptionDto>;
1917
1918
  checkProductionOrderForOpenNonConformances(id: string): Promise<boolean>;
1918
1919
  getProductionOrderOpenNonConformances(id: string, onlyOpen: boolean | undefined): Promise<NonConformanceDto[]>;
1919
1920
  getProductionOrderBomNonConformances(id: string): Promise<NonConformanceDto[]>;
@@ -1933,6 +1934,8 @@ export declare class MesProductionOrderClient extends AuthorizedApiBase implemen
1933
1934
  protected processGetProductionOrderBom(response: Response): Promise<ProductionOrderBomDto[]>;
1934
1935
  getProductionOrderPickListSuggestion(id: string, operation: number | undefined): Promise<PickListSuggestionDto[]>;
1935
1936
  protected processGetProductionOrderPickListSuggestion(response: Response): Promise<PickListSuggestionDto[]>;
1937
+ getProductionOrderConsumptions(id: string): Promise<WorkOrderConsumptionDto>;
1938
+ protected processGetProductionOrderConsumptions(response: Response): Promise<WorkOrderConsumptionDto>;
1936
1939
  checkProductionOrderForOpenNonConformances(id: string): Promise<boolean>;
1937
1940
  protected processCheckProductionOrderForOpenNonConformances(response: Response): Promise<boolean>;
1938
1941
  getProductionOrderOpenNonConformances(id: string, onlyOpen: boolean | undefined): Promise<NonConformanceDto[]>;
@@ -2604,6 +2607,10 @@ export interface IWorkordersClient {
2604
2607
  * Delete existing work order operation event.
2605
2608
  */
2606
2609
  deleteWorkorderOperationEventById(eventId: string): Promise<void>;
2610
+ /**
2611
+ * Delete existing work order operation event.
2612
+ */
2613
+ deleteWorkorderOperationEventByExternalId(eventExternalId: string): Promise<void>;
2607
2614
  /**
2608
2615
  * Filter work order operation events
2609
2616
  */
@@ -2725,6 +2732,11 @@ export declare class WorkordersClient extends AuthorizedApiBase implements IWork
2725
2732
  */
2726
2733
  deleteWorkorderOperationEventById(eventId: string): Promise<void>;
2727
2734
  protected processDeleteWorkorderOperationEventById(response: Response): Promise<void>;
2735
+ /**
2736
+ * Delete existing work order operation event.
2737
+ */
2738
+ deleteWorkorderOperationEventByExternalId(eventExternalId: string): Promise<void>;
2739
+ protected processDeleteWorkorderOperationEventByExternalId(response: Response): Promise<void>;
2728
2740
  /**
2729
2741
  * Filter work order operation events
2730
2742
  */
@@ -4605,6 +4617,7 @@ export declare class PartDto implements IPartDto {
4605
4617
  drawing?: string | null;
4606
4618
  drawingRevision?: string | null;
4607
4619
  material?: string | null;
4620
+ planner?: UserDto | null;
4608
4621
  constructor(data?: IPartDto);
4609
4622
  init(_data?: any): void;
4610
4623
  static fromJS(data: any): PartDto;
@@ -4617,6 +4630,7 @@ export interface IPartDto {
4617
4630
  drawing?: string | null;
4618
4631
  drawingRevision?: string | null;
4619
4632
  material?: string | null;
4633
+ planner?: UserDto | null;
4620
4634
  }
4621
4635
  export declare class TraceItemDto implements ITraceItemDto {
4622
4636
  sequence: string;
@@ -4792,6 +4806,7 @@ export declare class MaterialConsumptionDto implements IMaterialConsumptionDto {
4792
4806
  traceType: TraceType;
4793
4807
  traceNumber?: string | null;
4794
4808
  lot?: string | null;
4809
+ batchNumber?: string | null;
4795
4810
  vendorBatch?: string | null;
4796
4811
  supplierId?: string | null;
4797
4812
  procurementOrder?: string | null;
@@ -4800,6 +4815,7 @@ export declare class MaterialConsumptionDto implements IMaterialConsumptionDto {
4800
4815
  sourceSequence?: string | null;
4801
4816
  label: string;
4802
4817
  reference?: string | null;
4818
+ warehouseLocation?: WarehouseLocationDto | null;
4803
4819
  constructor(data?: IMaterialConsumptionDto);
4804
4820
  init(_data?: any): void;
4805
4821
  static fromJS(data: any): MaterialConsumptionDto;
@@ -4814,6 +4830,7 @@ export interface IMaterialConsumptionDto {
4814
4830
  traceType: TraceType;
4815
4831
  traceNumber?: string | null;
4816
4832
  lot?: string | null;
4833
+ batchNumber?: string | null;
4817
4834
  vendorBatch?: string | null;
4818
4835
  supplierId?: string | null;
4819
4836
  procurementOrder?: string | null;
@@ -4822,6 +4839,23 @@ export interface IMaterialConsumptionDto {
4822
4839
  sourceSequence?: string | null;
4823
4840
  label: string;
4824
4841
  reference?: string | null;
4842
+ warehouseLocation?: WarehouseLocationDto | null;
4843
+ }
4844
+ export declare class WarehouseLocationDto implements IWarehouseLocationDto {
4845
+ zone?: string | null;
4846
+ location: string;
4847
+ warehouse?: string | null;
4848
+ site?: string | null;
4849
+ constructor(data?: IWarehouseLocationDto);
4850
+ init(_data?: any): void;
4851
+ static fromJS(data: any): WarehouseLocationDto;
4852
+ toJSON(data?: any): any;
4853
+ }
4854
+ export interface IWarehouseLocationDto {
4855
+ zone?: string | null;
4856
+ location: string;
4857
+ warehouse?: string | null;
4858
+ site?: string | null;
4825
4859
  }
4826
4860
  export type TraceStatus = "None" | "Unavailable" | "NotNeeded" | "Partial" | "Completed";
4827
4861
  export declare class UpdateTraceRequest implements IUpdateTraceRequest {
@@ -10461,22 +10495,6 @@ export interface IProductionOrderOperationDto {
10461
10495
  productionStatus: OperationStatusDto;
10462
10496
  setupStatus?: OperationStatusDto | null;
10463
10497
  }
10464
- export declare class WarehouseLocationDto implements IWarehouseLocationDto {
10465
- zone?: string | null;
10466
- location: string;
10467
- warehouse?: string | null;
10468
- site?: string | null;
10469
- constructor(data?: IWarehouseLocationDto);
10470
- init(_data?: any): void;
10471
- static fromJS(data: any): WarehouseLocationDto;
10472
- toJSON(data?: any): any;
10473
- }
10474
- export interface IWarehouseLocationDto {
10475
- zone?: string | null;
10476
- location: string;
10477
- warehouse?: string | null;
10478
- site?: string | null;
10479
- }
10480
10498
  export declare class WorkOrderAttachmentDto implements IWorkOrderAttachmentDto {
10481
10499
  createdBy?: UserDto | null;
10482
10500
  created?: Date | null;
@@ -10565,6 +10583,7 @@ export declare class ProductionOrderBomDto implements IProductionOrderBomDto {
10565
10583
  availabilityDetails: InventoryDto[];
10566
10584
  traceType: TraceType;
10567
10585
  resourceGroupId?: string | null;
10586
+ lot?: string | null;
10568
10587
  constructor(data?: IProductionOrderBomDto);
10569
10588
  init(_data?: any): void;
10570
10589
  static fromJS(data: any): ProductionOrderBomDto;
@@ -10591,6 +10610,7 @@ export interface IProductionOrderBomDto {
10591
10610
  availabilityDetails: InventoryDto[];
10592
10611
  traceType: TraceType;
10593
10612
  resourceGroupId?: string | null;
10613
+ lot?: string | null;
10594
10614
  }
10595
10615
  export declare class InventoryDto implements IInventoryDto {
10596
10616
  siteId: string;
@@ -10666,6 +10686,20 @@ export interface IPickListSuggestionDto {
10666
10686
  fixedLocations: string[];
10667
10687
  drawing?: DrawingDto | null;
10668
10688
  }
10689
+ export declare class WorkOrderConsumptionDto implements IWorkOrderConsumptionDto {
10690
+ workOrderId: string;
10691
+ companyId?: string | null;
10692
+ consumptions: MaterialConsumptionDto[];
10693
+ constructor(data?: IWorkOrderConsumptionDto);
10694
+ init(_data?: any): void;
10695
+ static fromJS(data: any): WorkOrderConsumptionDto;
10696
+ toJSON(data?: any): any;
10697
+ }
10698
+ export interface IWorkOrderConsumptionDto {
10699
+ workOrderId: string;
10700
+ companyId?: string | null;
10701
+ consumptions: MaterialConsumptionDto[];
10702
+ }
10669
10703
  export declare class NonConformanceDto implements INonConformanceDto {
10670
10704
  nonConformanceId: string;
10671
10705
  companyId?: string | null;
@@ -12948,6 +12982,7 @@ export declare class MeasurementFormInstanceDto implements IMeasurementFormInsta
12948
12982
  statusChangedDate?: Date | null;
12949
12983
  schemas: MeasurementFormWorkorderSchemaDto[];
12950
12984
  sequences: MeasurementFormWorkorderSequenceDto[];
12985
+ serialNumbers?: MeasurementFormWorkorderSequenceDto[] | null;
12951
12986
  suppliers: MeasurementFormWorkorderSupplierDto[];
12952
12987
  progress: MeasurementFormProgressDto;
12953
12988
  approvedReportUrl?: string | null;
@@ -12971,6 +13006,7 @@ export interface IMeasurementFormInstanceDto {
12971
13006
  statusChangedDate?: Date | null;
12972
13007
  schemas: MeasurementFormWorkorderSchemaDto[];
12973
13008
  sequences: MeasurementFormWorkorderSequenceDto[];
13009
+ serialNumbers?: MeasurementFormWorkorderSequenceDto[] | null;
12974
13010
  suppliers: MeasurementFormWorkorderSupplierDto[];
12975
13011
  progress: MeasurementFormProgressDto;
12976
13012
  approvedReportUrl?: string | null;
@@ -13120,6 +13156,7 @@ export interface ICreateMeasurementFormInstanceRequestSequence {
13120
13156
  }
13121
13157
  export declare class UpdateMeasurementFormInstanceRequest implements IUpdateMeasurementFormInstanceRequest {
13122
13158
  sequences: MeasurementFormWorkorderSequenceDto[];
13159
+ serialNumbers?: MeasurementFormWorkorderSerialNumberDto[] | null;
13123
13160
  suppliers: MeasurementFormWorkorderSupplierDto[];
13124
13161
  constructor(data?: IUpdateMeasurementFormInstanceRequest);
13125
13162
  init(_data?: any): void;
@@ -13128,8 +13165,23 @@ export declare class UpdateMeasurementFormInstanceRequest implements IUpdateMeas
13128
13165
  }
13129
13166
  export interface IUpdateMeasurementFormInstanceRequest {
13130
13167
  sequences: MeasurementFormWorkorderSequenceDto[];
13168
+ serialNumbers?: MeasurementFormWorkorderSerialNumberDto[] | null;
13131
13169
  suppliers: MeasurementFormWorkorderSupplierDto[];
13132
13170
  }
13171
+ export declare class MeasurementFormWorkorderSerialNumberDto implements IMeasurementFormWorkorderSerialNumberDto {
13172
+ lot?: string | null;
13173
+ serialNumber: string;
13174
+ customerSerialNumber?: string | null;
13175
+ constructor(data?: IMeasurementFormWorkorderSerialNumberDto);
13176
+ init(_data?: any): void;
13177
+ static fromJS(data: any): MeasurementFormWorkorderSerialNumberDto;
13178
+ toJSON(data?: any): any;
13179
+ }
13180
+ export interface IMeasurementFormWorkorderSerialNumberDto {
13181
+ lot?: string | null;
13182
+ serialNumber: string;
13183
+ customerSerialNumber?: string | null;
13184
+ }
13133
13185
  export declare class MeasurementFormInstanceSchemaDto implements IMeasurementFormInstanceSchemaDto {
13134
13186
  elements: MeasurementFormInstanceElementDto[];
13135
13187
  isCompleted: boolean;
@@ -14062,20 +14114,6 @@ export declare class UpsertWorkOrderConsumptionsRequest implements IUpsertWorkOr
14062
14114
  export interface IUpsertWorkOrderConsumptionsRequest {
14063
14115
  materialConsumptions: MaterialConsumptionDto[];
14064
14116
  }
14065
- export declare class WorkOrderConsumptionDto implements IWorkOrderConsumptionDto {
14066
- workOrderId: string;
14067
- companyId?: string | null;
14068
- consumptions: MaterialConsumptionDto[];
14069
- constructor(data?: IWorkOrderConsumptionDto);
14070
- init(_data?: any): void;
14071
- static fromJS(data: any): WorkOrderConsumptionDto;
14072
- toJSON(data?: any): any;
14073
- }
14074
- export interface IWorkOrderConsumptionDto {
14075
- workOrderId: string;
14076
- companyId?: string | null;
14077
- consumptions: MaterialConsumptionDto[];
14078
- }
14079
14117
  export declare class UpsertWorkOrderTracesRequest implements IUpsertWorkOrderTracesRequest {
14080
14118
  traces: WorkOrderTraceItemDto[];
14081
14119
  constructor(data?: IUpsertWorkOrderTracesRequest);
@@ -14089,8 +14127,10 @@ export interface IUpsertWorkOrderTracesRequest {
14089
14127
  export declare class WorkOrderTraceItemDto implements IWorkOrderTraceItemDto {
14090
14128
  sequence: string;
14091
14129
  serialNumber?: string | null;
14130
+ customerSerialNumber?: string | null;
14092
14131
  lot?: string | null;
14093
14132
  active: boolean;
14133
+ isLegacy?: boolean;
14094
14134
  constructor(data?: IWorkOrderTraceItemDto);
14095
14135
  init(_data?: any): void;
14096
14136
  static fromJS(data: any): WorkOrderTraceItemDto;
@@ -14099,8 +14139,10 @@ export declare class WorkOrderTraceItemDto implements IWorkOrderTraceItemDto {
14099
14139
  export interface IWorkOrderTraceItemDto {
14100
14140
  sequence: string;
14101
14141
  serialNumber?: string | null;
14142
+ customerSerialNumber?: string | null;
14102
14143
  lot?: string | null;
14103
14144
  active: boolean;
14145
+ isLegacy?: boolean;
14104
14146
  }
14105
14147
  export declare class ResourceExistDto implements IResourceExistDto {
14106
14148
  exists: boolean;
@@ -2311,7 +2311,7 @@ export class UtilizationClient extends AuthorizedApiBase {
2311
2311
  }
2312
2312
  return Promise.resolve(null);
2313
2313
  }
2314
- getUtilizationDatapoints(utilizationType, startTime, endTime, assetExternalId) {
2314
+ getUtilizationDatapoints(utilizationType, startTime, endTime, assetId, assetExternalId) {
2315
2315
  let url_ = this.baseUrl + "/utilization/datapoints?";
2316
2316
  if (utilizationType === null)
2317
2317
  throw new Error("The parameter 'utilizationType' cannot be null.");
@@ -2321,6 +2321,8 @@ export class UtilizationClient extends AuthorizedApiBase {
2321
2321
  url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
2322
2322
  if (endTime !== undefined && endTime !== null)
2323
2323
  url_ += "endTime=" + encodeURIComponent(endTime ? "" + endTime.toISOString() : "") + "&";
2324
+ if (assetId !== undefined && assetId !== null)
2325
+ url_ += "assetId=" + encodeURIComponent("" + assetId) + "&";
2324
2326
  if (assetExternalId !== undefined && assetExternalId !== null)
2325
2327
  url_ += "assetExternalId=" + encodeURIComponent("" + assetExternalId) + "&";
2326
2328
  url_ = url_.replace(/[?&]$/, "");
@@ -15970,6 +15972,46 @@ export class MesProductionOrderClient extends AuthorizedApiBase {
15970
15972
  }
15971
15973
  return Promise.resolve(null);
15972
15974
  }
15975
+ getProductionOrderConsumptions(id) {
15976
+ let url_ = this.baseUrl + "/mes/productionorders/{id}/consumptions";
15977
+ if (id === undefined || id === null)
15978
+ throw new Error("The parameter 'id' must be defined.");
15979
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
15980
+ url_ = url_.replace(/[?&]$/, "");
15981
+ let options_ = {
15982
+ method: "GET",
15983
+ headers: {
15984
+ "Accept": "application/json"
15985
+ }
15986
+ };
15987
+ return this.transformOptions(options_).then(transformedOptions_ => {
15988
+ return this.http.fetch(url_, transformedOptions_);
15989
+ }).then((_response) => {
15990
+ return this.processGetProductionOrderConsumptions(_response);
15991
+ });
15992
+ }
15993
+ processGetProductionOrderConsumptions(response) {
15994
+ const status = response.status;
15995
+ let _headers = {};
15996
+ if (response.headers && response.headers.forEach) {
15997
+ response.headers.forEach((v, k) => _headers[k] = v);
15998
+ }
15999
+ ;
16000
+ if (status === 200) {
16001
+ return response.text().then((_responseText) => {
16002
+ let result200 = null;
16003
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
16004
+ result200 = WorkOrderConsumptionDto.fromJS(resultData200);
16005
+ return result200;
16006
+ });
16007
+ }
16008
+ else if (status !== 200 && status !== 204) {
16009
+ return response.text().then((_responseText) => {
16010
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
16011
+ });
16012
+ }
16013
+ return Promise.resolve(null);
16014
+ }
15973
16015
  checkProductionOrderForOpenNonConformances(id) {
15974
16016
  let url_ = this.baseUrl + "/mes/productionorders/{id}/any-nonconformances";
15975
16017
  if (id === undefined || id === null)
@@ -22521,6 +22563,44 @@ export class WorkordersClient extends AuthorizedApiBase {
22521
22563
  }
22522
22564
  return Promise.resolve(null);
22523
22565
  }
22566
+ /**
22567
+ * Delete existing work order operation event.
22568
+ */
22569
+ deleteWorkorderOperationEventByExternalId(eventExternalId) {
22570
+ let url_ = this.baseUrl + "/erp/workorders/operations/events/byexternalid/{eventExternalId}";
22571
+ if (eventExternalId === undefined || eventExternalId === null)
22572
+ throw new Error("The parameter 'eventExternalId' must be defined.");
22573
+ url_ = url_.replace("{eventExternalId}", encodeURIComponent("" + eventExternalId));
22574
+ url_ = url_.replace(/[?&]$/, "");
22575
+ let options_ = {
22576
+ method: "DELETE",
22577
+ headers: {}
22578
+ };
22579
+ return this.transformOptions(options_).then(transformedOptions_ => {
22580
+ return this.http.fetch(url_, transformedOptions_);
22581
+ }).then((_response) => {
22582
+ return this.processDeleteWorkorderOperationEventByExternalId(_response);
22583
+ });
22584
+ }
22585
+ processDeleteWorkorderOperationEventByExternalId(response) {
22586
+ const status = response.status;
22587
+ let _headers = {};
22588
+ if (response.headers && response.headers.forEach) {
22589
+ response.headers.forEach((v, k) => _headers[k] = v);
22590
+ }
22591
+ ;
22592
+ if (status === 204) {
22593
+ return response.text().then((_responseText) => {
22594
+ return;
22595
+ });
22596
+ }
22597
+ else if (status !== 200 && status !== 204) {
22598
+ return response.text().then((_responseText) => {
22599
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
22600
+ });
22601
+ }
22602
+ return Promise.resolve(null);
22603
+ }
22524
22604
  /**
22525
22605
  * Filter work order operation events
22526
22606
  */
@@ -26727,6 +26807,7 @@ export class PartDto {
26727
26807
  this.drawing = _data["drawing"];
26728
26808
  this.drawingRevision = _data["drawingRevision"];
26729
26809
  this.material = _data["material"];
26810
+ this.planner = _data["planner"] ? UserDto.fromJS(_data["planner"]) : undefined;
26730
26811
  }
26731
26812
  }
26732
26813
  static fromJS(data) {
@@ -26743,6 +26824,7 @@ export class PartDto {
26743
26824
  data["drawing"] = this.drawing;
26744
26825
  data["drawingRevision"] = this.drawingRevision;
26745
26826
  data["material"] = this.material;
26827
+ data["planner"] = this.planner ? this.planner.toJSON() : undefined;
26746
26828
  return data;
26747
26829
  }
26748
26830
  }
@@ -27102,6 +27184,7 @@ export class MaterialConsumptionDto {
27102
27184
  this.traceType = _data["traceType"];
27103
27185
  this.traceNumber = _data["traceNumber"];
27104
27186
  this.lot = _data["lot"];
27187
+ this.batchNumber = _data["batchNumber"];
27105
27188
  this.vendorBatch = _data["vendorBatch"];
27106
27189
  this.supplierId = _data["supplierId"];
27107
27190
  this.procurementOrder = _data["procurementOrder"];
@@ -27110,6 +27193,7 @@ export class MaterialConsumptionDto {
27110
27193
  this.sourceSequence = _data["sourceSequence"];
27111
27194
  this.label = _data["label"];
27112
27195
  this.reference = _data["reference"];
27196
+ this.warehouseLocation = _data["warehouseLocation"] ? WarehouseLocationDto.fromJS(_data["warehouseLocation"]) : undefined;
27113
27197
  }
27114
27198
  }
27115
27199
  static fromJS(data) {
@@ -27128,6 +27212,7 @@ export class MaterialConsumptionDto {
27128
27212
  data["traceType"] = this.traceType;
27129
27213
  data["traceNumber"] = this.traceNumber;
27130
27214
  data["lot"] = this.lot;
27215
+ data["batchNumber"] = this.batchNumber;
27131
27216
  data["vendorBatch"] = this.vendorBatch;
27132
27217
  data["supplierId"] = this.supplierId;
27133
27218
  data["procurementOrder"] = this.procurementOrder;
@@ -27136,6 +27221,39 @@ export class MaterialConsumptionDto {
27136
27221
  data["sourceSequence"] = this.sourceSequence;
27137
27222
  data["label"] = this.label;
27138
27223
  data["reference"] = this.reference;
27224
+ data["warehouseLocation"] = this.warehouseLocation ? this.warehouseLocation.toJSON() : undefined;
27225
+ return data;
27226
+ }
27227
+ }
27228
+ export class WarehouseLocationDto {
27229
+ constructor(data) {
27230
+ if (data) {
27231
+ for (var property in data) {
27232
+ if (data.hasOwnProperty(property))
27233
+ this[property] = data[property];
27234
+ }
27235
+ }
27236
+ }
27237
+ init(_data) {
27238
+ if (_data) {
27239
+ this.zone = _data["zone"];
27240
+ this.location = _data["location"];
27241
+ this.warehouse = _data["warehouse"];
27242
+ this.site = _data["site"];
27243
+ }
27244
+ }
27245
+ static fromJS(data) {
27246
+ data = typeof data === 'object' ? data : {};
27247
+ let result = new WarehouseLocationDto();
27248
+ result.init(data);
27249
+ return result;
27250
+ }
27251
+ toJSON(data) {
27252
+ data = typeof data === 'object' ? data : {};
27253
+ data["zone"] = this.zone;
27254
+ data["location"] = this.location;
27255
+ data["warehouse"] = this.warehouse;
27256
+ data["site"] = this.site;
27139
27257
  return data;
27140
27258
  }
27141
27259
  }
@@ -38683,38 +38801,6 @@ export class ProductionOrderOperationDto {
38683
38801
  return data;
38684
38802
  }
38685
38803
  }
38686
- export class WarehouseLocationDto {
38687
- constructor(data) {
38688
- if (data) {
38689
- for (var property in data) {
38690
- if (data.hasOwnProperty(property))
38691
- this[property] = data[property];
38692
- }
38693
- }
38694
- }
38695
- init(_data) {
38696
- if (_data) {
38697
- this.zone = _data["zone"];
38698
- this.location = _data["location"];
38699
- this.warehouse = _data["warehouse"];
38700
- this.site = _data["site"];
38701
- }
38702
- }
38703
- static fromJS(data) {
38704
- data = typeof data === 'object' ? data : {};
38705
- let result = new WarehouseLocationDto();
38706
- result.init(data);
38707
- return result;
38708
- }
38709
- toJSON(data) {
38710
- data = typeof data === 'object' ? data : {};
38711
- data["zone"] = this.zone;
38712
- data["location"] = this.location;
38713
- data["warehouse"] = this.warehouse;
38714
- data["site"] = this.site;
38715
- return data;
38716
- }
38717
- }
38718
38804
  export class WorkOrderAttachmentDto {
38719
38805
  constructor(data) {
38720
38806
  if (data) {
@@ -38899,6 +38985,7 @@ export class ProductionOrderBomDto {
38899
38985
  }
38900
38986
  this.traceType = _data["traceType"];
38901
38987
  this.resourceGroupId = _data["resourceGroupId"];
38988
+ this.lot = _data["lot"];
38902
38989
  }
38903
38990
  }
38904
38991
  static fromJS(data) {
@@ -38937,6 +39024,7 @@ export class ProductionOrderBomDto {
38937
39024
  }
38938
39025
  data["traceType"] = this.traceType;
38939
39026
  data["resourceGroupId"] = this.resourceGroupId;
39027
+ data["lot"] = this.lot;
38940
39028
  return data;
38941
39029
  }
38942
39030
  }
@@ -39067,6 +39155,47 @@ export class PickListSuggestionDto {
39067
39155
  return data;
39068
39156
  }
39069
39157
  }
39158
+ export class WorkOrderConsumptionDto {
39159
+ constructor(data) {
39160
+ if (data) {
39161
+ for (var property in data) {
39162
+ if (data.hasOwnProperty(property))
39163
+ this[property] = data[property];
39164
+ }
39165
+ }
39166
+ if (!data) {
39167
+ this.consumptions = [];
39168
+ }
39169
+ }
39170
+ init(_data) {
39171
+ if (_data) {
39172
+ this.workOrderId = _data["workOrderId"];
39173
+ this.companyId = _data["companyId"];
39174
+ if (Array.isArray(_data["consumptions"])) {
39175
+ this.consumptions = [];
39176
+ for (let item of _data["consumptions"])
39177
+ this.consumptions.push(MaterialConsumptionDto.fromJS(item));
39178
+ }
39179
+ }
39180
+ }
39181
+ static fromJS(data) {
39182
+ data = typeof data === 'object' ? data : {};
39183
+ let result = new WorkOrderConsumptionDto();
39184
+ result.init(data);
39185
+ return result;
39186
+ }
39187
+ toJSON(data) {
39188
+ data = typeof data === 'object' ? data : {};
39189
+ data["workOrderId"] = this.workOrderId;
39190
+ data["companyId"] = this.companyId;
39191
+ if (Array.isArray(this.consumptions)) {
39192
+ data["consumptions"] = [];
39193
+ for (let item of this.consumptions)
39194
+ data["consumptions"].push(item.toJSON());
39195
+ }
39196
+ return data;
39197
+ }
39198
+ }
39070
39199
  export class NonConformanceDto {
39071
39200
  constructor(data) {
39072
39201
  if (data) {
@@ -43584,6 +43713,11 @@ export class MeasurementFormInstanceDto {
43584
43713
  for (let item of _data["sequences"])
43585
43714
  this.sequences.push(MeasurementFormWorkorderSequenceDto.fromJS(item));
43586
43715
  }
43716
+ if (Array.isArray(_data["serialNumbers"])) {
43717
+ this.serialNumbers = [];
43718
+ for (let item of _data["serialNumbers"])
43719
+ this.serialNumbers.push(MeasurementFormWorkorderSequenceDto.fromJS(item));
43720
+ }
43587
43721
  if (Array.isArray(_data["suppliers"])) {
43588
43722
  this.suppliers = [];
43589
43723
  for (let item of _data["suppliers"])
@@ -43623,6 +43757,11 @@ export class MeasurementFormInstanceDto {
43623
43757
  for (let item of this.sequences)
43624
43758
  data["sequences"].push(item.toJSON());
43625
43759
  }
43760
+ if (Array.isArray(this.serialNumbers)) {
43761
+ data["serialNumbers"] = [];
43762
+ for (let item of this.serialNumbers)
43763
+ data["serialNumbers"].push(item.toJSON());
43764
+ }
43626
43765
  if (Array.isArray(this.suppliers)) {
43627
43766
  data["suppliers"] = [];
43628
43767
  for (let item of this.suppliers)
@@ -43922,6 +44061,11 @@ export class UpdateMeasurementFormInstanceRequest {
43922
44061
  for (let item of _data["sequences"])
43923
44062
  this.sequences.push(MeasurementFormWorkorderSequenceDto.fromJS(item));
43924
44063
  }
44064
+ if (Array.isArray(_data["serialNumbers"])) {
44065
+ this.serialNumbers = [];
44066
+ for (let item of _data["serialNumbers"])
44067
+ this.serialNumbers.push(MeasurementFormWorkorderSerialNumberDto.fromJS(item));
44068
+ }
43925
44069
  if (Array.isArray(_data["suppliers"])) {
43926
44070
  this.suppliers = [];
43927
44071
  for (let item of _data["suppliers"])
@@ -43942,6 +44086,11 @@ export class UpdateMeasurementFormInstanceRequest {
43942
44086
  for (let item of this.sequences)
43943
44087
  data["sequences"].push(item.toJSON());
43944
44088
  }
44089
+ if (Array.isArray(this.serialNumbers)) {
44090
+ data["serialNumbers"] = [];
44091
+ for (let item of this.serialNumbers)
44092
+ data["serialNumbers"].push(item.toJSON());
44093
+ }
43945
44094
  if (Array.isArray(this.suppliers)) {
43946
44095
  data["suppliers"] = [];
43947
44096
  for (let item of this.suppliers)
@@ -43950,6 +44099,36 @@ export class UpdateMeasurementFormInstanceRequest {
43950
44099
  return data;
43951
44100
  }
43952
44101
  }
44102
+ export class MeasurementFormWorkorderSerialNumberDto {
44103
+ constructor(data) {
44104
+ if (data) {
44105
+ for (var property in data) {
44106
+ if (data.hasOwnProperty(property))
44107
+ this[property] = data[property];
44108
+ }
44109
+ }
44110
+ }
44111
+ init(_data) {
44112
+ if (_data) {
44113
+ this.lot = _data["lot"];
44114
+ this.serialNumber = _data["serialNumber"];
44115
+ this.customerSerialNumber = _data["customerSerialNumber"];
44116
+ }
44117
+ }
44118
+ static fromJS(data) {
44119
+ data = typeof data === 'object' ? data : {};
44120
+ let result = new MeasurementFormWorkorderSerialNumberDto();
44121
+ result.init(data);
44122
+ return result;
44123
+ }
44124
+ toJSON(data) {
44125
+ data = typeof data === 'object' ? data : {};
44126
+ data["lot"] = this.lot;
44127
+ data["serialNumber"] = this.serialNumber;
44128
+ data["customerSerialNumber"] = this.customerSerialNumber;
44129
+ return data;
44130
+ }
44131
+ }
43953
44132
  export class MeasurementFormInstanceSchemaDto {
43954
44133
  constructor(data) {
43955
44134
  if (data) {
@@ -45905,47 +46084,6 @@ export class UpsertWorkOrderConsumptionsRequest {
45905
46084
  return data;
45906
46085
  }
45907
46086
  }
45908
- export class WorkOrderConsumptionDto {
45909
- constructor(data) {
45910
- if (data) {
45911
- for (var property in data) {
45912
- if (data.hasOwnProperty(property))
45913
- this[property] = data[property];
45914
- }
45915
- }
45916
- if (!data) {
45917
- this.consumptions = [];
45918
- }
45919
- }
45920
- init(_data) {
45921
- if (_data) {
45922
- this.workOrderId = _data["workOrderId"];
45923
- this.companyId = _data["companyId"];
45924
- if (Array.isArray(_data["consumptions"])) {
45925
- this.consumptions = [];
45926
- for (let item of _data["consumptions"])
45927
- this.consumptions.push(MaterialConsumptionDto.fromJS(item));
45928
- }
45929
- }
45930
- }
45931
- static fromJS(data) {
45932
- data = typeof data === 'object' ? data : {};
45933
- let result = new WorkOrderConsumptionDto();
45934
- result.init(data);
45935
- return result;
45936
- }
45937
- toJSON(data) {
45938
- data = typeof data === 'object' ? data : {};
45939
- data["workOrderId"] = this.workOrderId;
45940
- data["companyId"] = this.companyId;
45941
- if (Array.isArray(this.consumptions)) {
45942
- data["consumptions"] = [];
45943
- for (let item of this.consumptions)
45944
- data["consumptions"].push(item.toJSON());
45945
- }
45946
- return data;
45947
- }
45948
- }
45949
46087
  export class UpsertWorkOrderTracesRequest {
45950
46088
  constructor(data) {
45951
46089
  if (data) {
@@ -45996,8 +46134,10 @@ export class WorkOrderTraceItemDto {
45996
46134
  if (_data) {
45997
46135
  this.sequence = _data["sequence"];
45998
46136
  this.serialNumber = _data["serialNumber"];
46137
+ this.customerSerialNumber = _data["customerSerialNumber"];
45999
46138
  this.lot = _data["lot"];
46000
46139
  this.active = _data["active"];
46140
+ this.isLegacy = _data["isLegacy"];
46001
46141
  }
46002
46142
  }
46003
46143
  static fromJS(data) {
@@ -46010,8 +46150,10 @@ export class WorkOrderTraceItemDto {
46010
46150
  data = typeof data === 'object' ? data : {};
46011
46151
  data["sequence"] = this.sequence;
46012
46152
  data["serialNumber"] = this.serialNumber;
46153
+ data["customerSerialNumber"] = this.customerSerialNumber;
46013
46154
  data["lot"] = this.lot;
46014
46155
  data["active"] = this.active;
46156
+ data["isLegacy"] = this.isLegacy;
46015
46157
  return data;
46016
46158
  }
46017
46159
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ignos/api-client",
3
- "version": "20250708.0.12121-alpha",
3
+ "version": "20250710.0.12165-alpha",
4
4
  "description": "IGNOS API Client",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -2444,7 +2444,7 @@ export interface IUtilizationClient {
2444
2444
 
2445
2445
  getCrossCompanyUtilization(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<CrossCompanyUtilizationDto>;
2446
2446
 
2447
- getUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined, assetExternalId: string | null | undefined): Promise<MachineUtilizationDatapointListDto>;
2447
+ getUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined, assetId: number | null | undefined, assetExternalId: string | null | undefined): Promise<MachineUtilizationDatapointListDto>;
2448
2448
 
2449
2449
  getCompanyUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<CompanyUtilizationDatapointListDto>;
2450
2450
 
@@ -2550,7 +2550,7 @@ export class UtilizationClient extends AuthorizedApiBase implements IUtilization
2550
2550
  return Promise.resolve<CrossCompanyUtilizationDto>(null as any);
2551
2551
  }
2552
2552
 
2553
- getUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined, assetExternalId: string | null | undefined): Promise<MachineUtilizationDatapointListDto> {
2553
+ getUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined, assetId: number | null | undefined, assetExternalId: string | null | undefined): Promise<MachineUtilizationDatapointListDto> {
2554
2554
  let url_ = this.baseUrl + "/utilization/datapoints?";
2555
2555
  if (utilizationType === null)
2556
2556
  throw new Error("The parameter 'utilizationType' cannot be null.");
@@ -2560,6 +2560,8 @@ export class UtilizationClient extends AuthorizedApiBase implements IUtilization
2560
2560
  url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
2561
2561
  if (endTime !== undefined && endTime !== null)
2562
2562
  url_ += "endTime=" + encodeURIComponent(endTime ? "" + endTime.toISOString() : "") + "&";
2563
+ if (assetId !== undefined && assetId !== null)
2564
+ url_ += "assetId=" + encodeURIComponent("" + assetId) + "&";
2563
2565
  if (assetExternalId !== undefined && assetExternalId !== null)
2564
2566
  url_ += "assetExternalId=" + encodeURIComponent("" + assetExternalId) + "&";
2565
2567
  url_ = url_.replace(/[?&]$/, "");
@@ -16917,6 +16919,8 @@ export interface IMesProductionOrderClient {
16917
16919
 
16918
16920
  getProductionOrderPickListSuggestion(id: string, operation: number | undefined): Promise<PickListSuggestionDto[]>;
16919
16921
 
16922
+ getProductionOrderConsumptions(id: string): Promise<WorkOrderConsumptionDto>;
16923
+
16920
16924
  checkProductionOrderForOpenNonConformances(id: string): Promise<boolean>;
16921
16925
 
16922
16926
  getProductionOrderOpenNonConformances(id: string, onlyOpen: boolean | undefined): Promise<NonConformanceDto[]>;
@@ -17070,6 +17074,45 @@ export class MesProductionOrderClient extends AuthorizedApiBase implements IMesP
17070
17074
  return Promise.resolve<PickListSuggestionDto[]>(null as any);
17071
17075
  }
17072
17076
 
17077
+ getProductionOrderConsumptions(id: string): Promise<WorkOrderConsumptionDto> {
17078
+ let url_ = this.baseUrl + "/mes/productionorders/{id}/consumptions";
17079
+ if (id === undefined || id === null)
17080
+ throw new Error("The parameter 'id' must be defined.");
17081
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
17082
+ url_ = url_.replace(/[?&]$/, "");
17083
+
17084
+ let options_: RequestInit = {
17085
+ method: "GET",
17086
+ headers: {
17087
+ "Accept": "application/json"
17088
+ }
17089
+ };
17090
+
17091
+ return this.transformOptions(options_).then(transformedOptions_ => {
17092
+ return this.http.fetch(url_, transformedOptions_);
17093
+ }).then((_response: Response) => {
17094
+ return this.processGetProductionOrderConsumptions(_response);
17095
+ });
17096
+ }
17097
+
17098
+ protected processGetProductionOrderConsumptions(response: Response): Promise<WorkOrderConsumptionDto> {
17099
+ const status = response.status;
17100
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
17101
+ if (status === 200) {
17102
+ return response.text().then((_responseText) => {
17103
+ let result200: any = null;
17104
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
17105
+ result200 = WorkOrderConsumptionDto.fromJS(resultData200);
17106
+ return result200;
17107
+ });
17108
+ } else if (status !== 200 && status !== 204) {
17109
+ return response.text().then((_responseText) => {
17110
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
17111
+ });
17112
+ }
17113
+ return Promise.resolve<WorkOrderConsumptionDto>(null as any);
17114
+ }
17115
+
17073
17116
  checkProductionOrderForOpenNonConformances(id: string): Promise<boolean> {
17074
17117
  let url_ = this.baseUrl + "/mes/productionorders/{id}/any-nonconformances";
17075
17118
  if (id === undefined || id === null)
@@ -23121,6 +23164,11 @@ export interface IWorkordersClient {
23121
23164
  */
23122
23165
  deleteWorkorderOperationEventById(eventId: string): Promise<void>;
23123
23166
 
23167
+ /**
23168
+ * Delete existing work order operation event.
23169
+ */
23170
+ deleteWorkorderOperationEventByExternalId(eventExternalId: string): Promise<void>;
23171
+
23124
23172
  /**
23125
23173
  * Filter work order operation events
23126
23174
  */
@@ -24056,6 +24104,44 @@ export class WorkordersClient extends AuthorizedApiBase implements IWorkordersCl
24056
24104
  return Promise.resolve<void>(null as any);
24057
24105
  }
24058
24106
 
24107
+ /**
24108
+ * Delete existing work order operation event.
24109
+ */
24110
+ deleteWorkorderOperationEventByExternalId(eventExternalId: string): Promise<void> {
24111
+ let url_ = this.baseUrl + "/erp/workorders/operations/events/byexternalid/{eventExternalId}";
24112
+ if (eventExternalId === undefined || eventExternalId === null)
24113
+ throw new Error("The parameter 'eventExternalId' must be defined.");
24114
+ url_ = url_.replace("{eventExternalId}", encodeURIComponent("" + eventExternalId));
24115
+ url_ = url_.replace(/[?&]$/, "");
24116
+
24117
+ let options_: RequestInit = {
24118
+ method: "DELETE",
24119
+ headers: {
24120
+ }
24121
+ };
24122
+
24123
+ return this.transformOptions(options_).then(transformedOptions_ => {
24124
+ return this.http.fetch(url_, transformedOptions_);
24125
+ }).then((_response: Response) => {
24126
+ return this.processDeleteWorkorderOperationEventByExternalId(_response);
24127
+ });
24128
+ }
24129
+
24130
+ protected processDeleteWorkorderOperationEventByExternalId(response: Response): Promise<void> {
24131
+ const status = response.status;
24132
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
24133
+ if (status === 204) {
24134
+ return response.text().then((_responseText) => {
24135
+ return;
24136
+ });
24137
+ } else if (status !== 200 && status !== 204) {
24138
+ return response.text().then((_responseText) => {
24139
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
24140
+ });
24141
+ }
24142
+ return Promise.resolve<void>(null as any);
24143
+ }
24144
+
24059
24145
  /**
24060
24146
  * Filter work order operation events
24061
24147
  */
@@ -30118,6 +30204,7 @@ export class PartDto implements IPartDto {
30118
30204
  drawing?: string | null;
30119
30205
  drawingRevision?: string | null;
30120
30206
  material?: string | null;
30207
+ planner?: UserDto | null;
30121
30208
 
30122
30209
  constructor(data?: IPartDto) {
30123
30210
  if (data) {
@@ -30136,6 +30223,7 @@ export class PartDto implements IPartDto {
30136
30223
  this.drawing = _data["drawing"];
30137
30224
  this.drawingRevision = _data["drawingRevision"];
30138
30225
  this.material = _data["material"];
30226
+ this.planner = _data["planner"] ? UserDto.fromJS(_data["planner"]) : <any>undefined;
30139
30227
  }
30140
30228
  }
30141
30229
 
@@ -30154,6 +30242,7 @@ export class PartDto implements IPartDto {
30154
30242
  data["drawing"] = this.drawing;
30155
30243
  data["drawingRevision"] = this.drawingRevision;
30156
30244
  data["material"] = this.material;
30245
+ data["planner"] = this.planner ? this.planner.toJSON() : <any>undefined;
30157
30246
  return data;
30158
30247
  }
30159
30248
  }
@@ -30165,6 +30254,7 @@ export interface IPartDto {
30165
30254
  drawing?: string | null;
30166
30255
  drawingRevision?: string | null;
30167
30256
  material?: string | null;
30257
+ planner?: UserDto | null;
30168
30258
  }
30169
30259
 
30170
30260
  export class TraceItemDto implements ITraceItemDto {
@@ -30680,6 +30770,7 @@ export class MaterialConsumptionDto implements IMaterialConsumptionDto {
30680
30770
  traceType!: TraceType;
30681
30771
  traceNumber?: string | null;
30682
30772
  lot?: string | null;
30773
+ batchNumber?: string | null;
30683
30774
  vendorBatch?: string | null;
30684
30775
  supplierId?: string | null;
30685
30776
  procurementOrder?: string | null;
@@ -30688,6 +30779,7 @@ export class MaterialConsumptionDto implements IMaterialConsumptionDto {
30688
30779
  sourceSequence?: string | null;
30689
30780
  label!: string;
30690
30781
  reference?: string | null;
30782
+ warehouseLocation?: WarehouseLocationDto | null;
30691
30783
 
30692
30784
  constructor(data?: IMaterialConsumptionDto) {
30693
30785
  if (data) {
@@ -30711,6 +30803,7 @@ export class MaterialConsumptionDto implements IMaterialConsumptionDto {
30711
30803
  this.traceType = _data["traceType"];
30712
30804
  this.traceNumber = _data["traceNumber"];
30713
30805
  this.lot = _data["lot"];
30806
+ this.batchNumber = _data["batchNumber"];
30714
30807
  this.vendorBatch = _data["vendorBatch"];
30715
30808
  this.supplierId = _data["supplierId"];
30716
30809
  this.procurementOrder = _data["procurementOrder"];
@@ -30719,6 +30812,7 @@ export class MaterialConsumptionDto implements IMaterialConsumptionDto {
30719
30812
  this.sourceSequence = _data["sourceSequence"];
30720
30813
  this.label = _data["label"];
30721
30814
  this.reference = _data["reference"];
30815
+ this.warehouseLocation = _data["warehouseLocation"] ? WarehouseLocationDto.fromJS(_data["warehouseLocation"]) : <any>undefined;
30722
30816
  }
30723
30817
  }
30724
30818
 
@@ -30739,6 +30833,7 @@ export class MaterialConsumptionDto implements IMaterialConsumptionDto {
30739
30833
  data["traceType"] = this.traceType;
30740
30834
  data["traceNumber"] = this.traceNumber;
30741
30835
  data["lot"] = this.lot;
30836
+ data["batchNumber"] = this.batchNumber;
30742
30837
  data["vendorBatch"] = this.vendorBatch;
30743
30838
  data["supplierId"] = this.supplierId;
30744
30839
  data["procurementOrder"] = this.procurementOrder;
@@ -30747,6 +30842,7 @@ export class MaterialConsumptionDto implements IMaterialConsumptionDto {
30747
30842
  data["sourceSequence"] = this.sourceSequence;
30748
30843
  data["label"] = this.label;
30749
30844
  data["reference"] = this.reference;
30845
+ data["warehouseLocation"] = this.warehouseLocation ? this.warehouseLocation.toJSON() : <any>undefined;
30750
30846
  return data;
30751
30847
  }
30752
30848
  }
@@ -30760,6 +30856,7 @@ export interface IMaterialConsumptionDto {
30760
30856
  traceType: TraceType;
30761
30857
  traceNumber?: string | null;
30762
30858
  lot?: string | null;
30859
+ batchNumber?: string | null;
30763
30860
  vendorBatch?: string | null;
30764
30861
  supplierId?: string | null;
30765
30862
  procurementOrder?: string | null;
@@ -30768,6 +30865,55 @@ export interface IMaterialConsumptionDto {
30768
30865
  sourceSequence?: string | null;
30769
30866
  label: string;
30770
30867
  reference?: string | null;
30868
+ warehouseLocation?: WarehouseLocationDto | null;
30869
+ }
30870
+
30871
+ export class WarehouseLocationDto implements IWarehouseLocationDto {
30872
+ zone?: string | null;
30873
+ location!: string;
30874
+ warehouse?: string | null;
30875
+ site?: string | null;
30876
+
30877
+ constructor(data?: IWarehouseLocationDto) {
30878
+ if (data) {
30879
+ for (var property in data) {
30880
+ if (data.hasOwnProperty(property))
30881
+ (<any>this)[property] = (<any>data)[property];
30882
+ }
30883
+ }
30884
+ }
30885
+
30886
+ init(_data?: any) {
30887
+ if (_data) {
30888
+ this.zone = _data["zone"];
30889
+ this.location = _data["location"];
30890
+ this.warehouse = _data["warehouse"];
30891
+ this.site = _data["site"];
30892
+ }
30893
+ }
30894
+
30895
+ static fromJS(data: any): WarehouseLocationDto {
30896
+ data = typeof data === 'object' ? data : {};
30897
+ let result = new WarehouseLocationDto();
30898
+ result.init(data);
30899
+ return result;
30900
+ }
30901
+
30902
+ toJSON(data?: any) {
30903
+ data = typeof data === 'object' ? data : {};
30904
+ data["zone"] = this.zone;
30905
+ data["location"] = this.location;
30906
+ data["warehouse"] = this.warehouse;
30907
+ data["site"] = this.site;
30908
+ return data;
30909
+ }
30910
+ }
30911
+
30912
+ export interface IWarehouseLocationDto {
30913
+ zone?: string | null;
30914
+ location: string;
30915
+ warehouse?: string | null;
30916
+ site?: string | null;
30771
30917
  }
30772
30918
 
30773
30919
  export type TraceStatus = "None" | "Unavailable" | "NotNeeded" | "Partial" | "Completed";
@@ -47968,54 +48114,6 @@ export interface IProductionOrderOperationDto {
47968
48114
  setupStatus?: OperationStatusDto | null;
47969
48115
  }
47970
48116
 
47971
- export class WarehouseLocationDto implements IWarehouseLocationDto {
47972
- zone?: string | null;
47973
- location!: string;
47974
- warehouse?: string | null;
47975
- site?: string | null;
47976
-
47977
- constructor(data?: IWarehouseLocationDto) {
47978
- if (data) {
47979
- for (var property in data) {
47980
- if (data.hasOwnProperty(property))
47981
- (<any>this)[property] = (<any>data)[property];
47982
- }
47983
- }
47984
- }
47985
-
47986
- init(_data?: any) {
47987
- if (_data) {
47988
- this.zone = _data["zone"];
47989
- this.location = _data["location"];
47990
- this.warehouse = _data["warehouse"];
47991
- this.site = _data["site"];
47992
- }
47993
- }
47994
-
47995
- static fromJS(data: any): WarehouseLocationDto {
47996
- data = typeof data === 'object' ? data : {};
47997
- let result = new WarehouseLocationDto();
47998
- result.init(data);
47999
- return result;
48000
- }
48001
-
48002
- toJSON(data?: any) {
48003
- data = typeof data === 'object' ? data : {};
48004
- data["zone"] = this.zone;
48005
- data["location"] = this.location;
48006
- data["warehouse"] = this.warehouse;
48007
- data["site"] = this.site;
48008
- return data;
48009
- }
48010
- }
48011
-
48012
- export interface IWarehouseLocationDto {
48013
- zone?: string | null;
48014
- location: string;
48015
- warehouse?: string | null;
48016
- site?: string | null;
48017
- }
48018
-
48019
48117
  export class WorkOrderAttachmentDto implements IWorkOrderAttachmentDto {
48020
48118
  createdBy?: UserDto | null;
48021
48119
  created?: Date | null;
@@ -48246,6 +48344,7 @@ export class ProductionOrderBomDto implements IProductionOrderBomDto {
48246
48344
  availabilityDetails!: InventoryDto[];
48247
48345
  traceType!: TraceType;
48248
48346
  resourceGroupId?: string | null;
48347
+ lot?: string | null;
48249
48348
 
48250
48349
  constructor(data?: IProductionOrderBomDto) {
48251
48350
  if (data) {
@@ -48290,6 +48389,7 @@ export class ProductionOrderBomDto implements IProductionOrderBomDto {
48290
48389
  }
48291
48390
  this.traceType = _data["traceType"];
48292
48391
  this.resourceGroupId = _data["resourceGroupId"];
48392
+ this.lot = _data["lot"];
48293
48393
  }
48294
48394
  }
48295
48395
 
@@ -48330,6 +48430,7 @@ export class ProductionOrderBomDto implements IProductionOrderBomDto {
48330
48430
  }
48331
48431
  data["traceType"] = this.traceType;
48332
48432
  data["resourceGroupId"] = this.resourceGroupId;
48433
+ data["lot"] = this.lot;
48333
48434
  return data;
48334
48435
  }
48335
48436
  }
@@ -48355,6 +48456,7 @@ export interface IProductionOrderBomDto {
48355
48456
  availabilityDetails: InventoryDto[];
48356
48457
  traceType: TraceType;
48357
48458
  resourceGroupId?: string | null;
48459
+ lot?: string | null;
48358
48460
  }
48359
48461
 
48360
48462
  export class InventoryDto implements IInventoryDto {
@@ -48558,6 +48660,61 @@ export interface IPickListSuggestionDto {
48558
48660
  drawing?: DrawingDto | null;
48559
48661
  }
48560
48662
 
48663
+ export class WorkOrderConsumptionDto implements IWorkOrderConsumptionDto {
48664
+ workOrderId!: string;
48665
+ companyId?: string | null;
48666
+ consumptions!: MaterialConsumptionDto[];
48667
+
48668
+ constructor(data?: IWorkOrderConsumptionDto) {
48669
+ if (data) {
48670
+ for (var property in data) {
48671
+ if (data.hasOwnProperty(property))
48672
+ (<any>this)[property] = (<any>data)[property];
48673
+ }
48674
+ }
48675
+ if (!data) {
48676
+ this.consumptions = [];
48677
+ }
48678
+ }
48679
+
48680
+ init(_data?: any) {
48681
+ if (_data) {
48682
+ this.workOrderId = _data["workOrderId"];
48683
+ this.companyId = _data["companyId"];
48684
+ if (Array.isArray(_data["consumptions"])) {
48685
+ this.consumptions = [] as any;
48686
+ for (let item of _data["consumptions"])
48687
+ this.consumptions!.push(MaterialConsumptionDto.fromJS(item));
48688
+ }
48689
+ }
48690
+ }
48691
+
48692
+ static fromJS(data: any): WorkOrderConsumptionDto {
48693
+ data = typeof data === 'object' ? data : {};
48694
+ let result = new WorkOrderConsumptionDto();
48695
+ result.init(data);
48696
+ return result;
48697
+ }
48698
+
48699
+ toJSON(data?: any) {
48700
+ data = typeof data === 'object' ? data : {};
48701
+ data["workOrderId"] = this.workOrderId;
48702
+ data["companyId"] = this.companyId;
48703
+ if (Array.isArray(this.consumptions)) {
48704
+ data["consumptions"] = [];
48705
+ for (let item of this.consumptions)
48706
+ data["consumptions"].push(item.toJSON());
48707
+ }
48708
+ return data;
48709
+ }
48710
+ }
48711
+
48712
+ export interface IWorkOrderConsumptionDto {
48713
+ workOrderId: string;
48714
+ companyId?: string | null;
48715
+ consumptions: MaterialConsumptionDto[];
48716
+ }
48717
+
48561
48718
  export class NonConformanceDto implements INonConformanceDto {
48562
48719
  nonConformanceId!: string;
48563
48720
  companyId?: string | null;
@@ -55337,6 +55494,7 @@ export class MeasurementFormInstanceDto implements IMeasurementFormInstanceDto {
55337
55494
  statusChangedDate?: Date | null;
55338
55495
  schemas!: MeasurementFormWorkorderSchemaDto[];
55339
55496
  sequences!: MeasurementFormWorkorderSequenceDto[];
55497
+ serialNumbers?: MeasurementFormWorkorderSequenceDto[] | null;
55340
55498
  suppliers!: MeasurementFormWorkorderSupplierDto[];
55341
55499
  progress!: MeasurementFormProgressDto;
55342
55500
  approvedReportUrl?: string | null;
@@ -55380,6 +55538,11 @@ export class MeasurementFormInstanceDto implements IMeasurementFormInstanceDto {
55380
55538
  for (let item of _data["sequences"])
55381
55539
  this.sequences!.push(MeasurementFormWorkorderSequenceDto.fromJS(item));
55382
55540
  }
55541
+ if (Array.isArray(_data["serialNumbers"])) {
55542
+ this.serialNumbers = [] as any;
55543
+ for (let item of _data["serialNumbers"])
55544
+ this.serialNumbers!.push(MeasurementFormWorkorderSequenceDto.fromJS(item));
55545
+ }
55383
55546
  if (Array.isArray(_data["suppliers"])) {
55384
55547
  this.suppliers = [] as any;
55385
55548
  for (let item of _data["suppliers"])
@@ -55421,6 +55584,11 @@ export class MeasurementFormInstanceDto implements IMeasurementFormInstanceDto {
55421
55584
  for (let item of this.sequences)
55422
55585
  data["sequences"].push(item.toJSON());
55423
55586
  }
55587
+ if (Array.isArray(this.serialNumbers)) {
55588
+ data["serialNumbers"] = [];
55589
+ for (let item of this.serialNumbers)
55590
+ data["serialNumbers"].push(item.toJSON());
55591
+ }
55424
55592
  if (Array.isArray(this.suppliers)) {
55425
55593
  data["suppliers"] = [];
55426
55594
  for (let item of this.suppliers)
@@ -55447,6 +55615,7 @@ export interface IMeasurementFormInstanceDto {
55447
55615
  statusChangedDate?: Date | null;
55448
55616
  schemas: MeasurementFormWorkorderSchemaDto[];
55449
55617
  sequences: MeasurementFormWorkorderSequenceDto[];
55618
+ serialNumbers?: MeasurementFormWorkorderSequenceDto[] | null;
55450
55619
  suppliers: MeasurementFormWorkorderSupplierDto[];
55451
55620
  progress: MeasurementFormProgressDto;
55452
55621
  approvedReportUrl?: string | null;
@@ -55865,6 +56034,7 @@ export interface ICreateMeasurementFormInstanceRequestSequence {
55865
56034
 
55866
56035
  export class UpdateMeasurementFormInstanceRequest implements IUpdateMeasurementFormInstanceRequest {
55867
56036
  sequences!: MeasurementFormWorkorderSequenceDto[];
56037
+ serialNumbers?: MeasurementFormWorkorderSerialNumberDto[] | null;
55868
56038
  suppliers!: MeasurementFormWorkorderSupplierDto[];
55869
56039
 
55870
56040
  constructor(data?: IUpdateMeasurementFormInstanceRequest) {
@@ -55887,6 +56057,11 @@ export class UpdateMeasurementFormInstanceRequest implements IUpdateMeasurementF
55887
56057
  for (let item of _data["sequences"])
55888
56058
  this.sequences!.push(MeasurementFormWorkorderSequenceDto.fromJS(item));
55889
56059
  }
56060
+ if (Array.isArray(_data["serialNumbers"])) {
56061
+ this.serialNumbers = [] as any;
56062
+ for (let item of _data["serialNumbers"])
56063
+ this.serialNumbers!.push(MeasurementFormWorkorderSerialNumberDto.fromJS(item));
56064
+ }
55890
56065
  if (Array.isArray(_data["suppliers"])) {
55891
56066
  this.suppliers = [] as any;
55892
56067
  for (let item of _data["suppliers"])
@@ -55909,6 +56084,11 @@ export class UpdateMeasurementFormInstanceRequest implements IUpdateMeasurementF
55909
56084
  for (let item of this.sequences)
55910
56085
  data["sequences"].push(item.toJSON());
55911
56086
  }
56087
+ if (Array.isArray(this.serialNumbers)) {
56088
+ data["serialNumbers"] = [];
56089
+ for (let item of this.serialNumbers)
56090
+ data["serialNumbers"].push(item.toJSON());
56091
+ }
55912
56092
  if (Array.isArray(this.suppliers)) {
55913
56093
  data["suppliers"] = [];
55914
56094
  for (let item of this.suppliers)
@@ -55920,9 +56100,54 @@ export class UpdateMeasurementFormInstanceRequest implements IUpdateMeasurementF
55920
56100
 
55921
56101
  export interface IUpdateMeasurementFormInstanceRequest {
55922
56102
  sequences: MeasurementFormWorkorderSequenceDto[];
56103
+ serialNumbers?: MeasurementFormWorkorderSerialNumberDto[] | null;
55923
56104
  suppliers: MeasurementFormWorkorderSupplierDto[];
55924
56105
  }
55925
56106
 
56107
+ export class MeasurementFormWorkorderSerialNumberDto implements IMeasurementFormWorkorderSerialNumberDto {
56108
+ lot?: string | null;
56109
+ serialNumber!: string;
56110
+ customerSerialNumber?: string | null;
56111
+
56112
+ constructor(data?: IMeasurementFormWorkorderSerialNumberDto) {
56113
+ if (data) {
56114
+ for (var property in data) {
56115
+ if (data.hasOwnProperty(property))
56116
+ (<any>this)[property] = (<any>data)[property];
56117
+ }
56118
+ }
56119
+ }
56120
+
56121
+ init(_data?: any) {
56122
+ if (_data) {
56123
+ this.lot = _data["lot"];
56124
+ this.serialNumber = _data["serialNumber"];
56125
+ this.customerSerialNumber = _data["customerSerialNumber"];
56126
+ }
56127
+ }
56128
+
56129
+ static fromJS(data: any): MeasurementFormWorkorderSerialNumberDto {
56130
+ data = typeof data === 'object' ? data : {};
56131
+ let result = new MeasurementFormWorkorderSerialNumberDto();
56132
+ result.init(data);
56133
+ return result;
56134
+ }
56135
+
56136
+ toJSON(data?: any) {
56137
+ data = typeof data === 'object' ? data : {};
56138
+ data["lot"] = this.lot;
56139
+ data["serialNumber"] = this.serialNumber;
56140
+ data["customerSerialNumber"] = this.customerSerialNumber;
56141
+ return data;
56142
+ }
56143
+ }
56144
+
56145
+ export interface IMeasurementFormWorkorderSerialNumberDto {
56146
+ lot?: string | null;
56147
+ serialNumber: string;
56148
+ customerSerialNumber?: string | null;
56149
+ }
56150
+
55926
56151
  export class MeasurementFormInstanceSchemaDto implements IMeasurementFormInstanceSchemaDto {
55927
56152
  elements!: MeasurementFormInstanceElementDto[];
55928
56153
  isCompleted!: boolean;
@@ -58812,61 +59037,6 @@ export interface IUpsertWorkOrderConsumptionsRequest {
58812
59037
  materialConsumptions: MaterialConsumptionDto[];
58813
59038
  }
58814
59039
 
58815
- export class WorkOrderConsumptionDto implements IWorkOrderConsumptionDto {
58816
- workOrderId!: string;
58817
- companyId?: string | null;
58818
- consumptions!: MaterialConsumptionDto[];
58819
-
58820
- constructor(data?: IWorkOrderConsumptionDto) {
58821
- if (data) {
58822
- for (var property in data) {
58823
- if (data.hasOwnProperty(property))
58824
- (<any>this)[property] = (<any>data)[property];
58825
- }
58826
- }
58827
- if (!data) {
58828
- this.consumptions = [];
58829
- }
58830
- }
58831
-
58832
- init(_data?: any) {
58833
- if (_data) {
58834
- this.workOrderId = _data["workOrderId"];
58835
- this.companyId = _data["companyId"];
58836
- if (Array.isArray(_data["consumptions"])) {
58837
- this.consumptions = [] as any;
58838
- for (let item of _data["consumptions"])
58839
- this.consumptions!.push(MaterialConsumptionDto.fromJS(item));
58840
- }
58841
- }
58842
- }
58843
-
58844
- static fromJS(data: any): WorkOrderConsumptionDto {
58845
- data = typeof data === 'object' ? data : {};
58846
- let result = new WorkOrderConsumptionDto();
58847
- result.init(data);
58848
- return result;
58849
- }
58850
-
58851
- toJSON(data?: any) {
58852
- data = typeof data === 'object' ? data : {};
58853
- data["workOrderId"] = this.workOrderId;
58854
- data["companyId"] = this.companyId;
58855
- if (Array.isArray(this.consumptions)) {
58856
- data["consumptions"] = [];
58857
- for (let item of this.consumptions)
58858
- data["consumptions"].push(item.toJSON());
58859
- }
58860
- return data;
58861
- }
58862
- }
58863
-
58864
- export interface IWorkOrderConsumptionDto {
58865
- workOrderId: string;
58866
- companyId?: string | null;
58867
- consumptions: MaterialConsumptionDto[];
58868
- }
58869
-
58870
59040
  export class UpsertWorkOrderTracesRequest implements IUpsertWorkOrderTracesRequest {
58871
59041
  traces!: WorkOrderTraceItemDto[];
58872
59042
 
@@ -58917,8 +59087,10 @@ export interface IUpsertWorkOrderTracesRequest {
58917
59087
  export class WorkOrderTraceItemDto implements IWorkOrderTraceItemDto {
58918
59088
  sequence!: string;
58919
59089
  serialNumber?: string | null;
59090
+ customerSerialNumber?: string | null;
58920
59091
  lot?: string | null;
58921
59092
  active!: boolean;
59093
+ isLegacy?: boolean;
58922
59094
 
58923
59095
  constructor(data?: IWorkOrderTraceItemDto) {
58924
59096
  if (data) {
@@ -58933,8 +59105,10 @@ export class WorkOrderTraceItemDto implements IWorkOrderTraceItemDto {
58933
59105
  if (_data) {
58934
59106
  this.sequence = _data["sequence"];
58935
59107
  this.serialNumber = _data["serialNumber"];
59108
+ this.customerSerialNumber = _data["customerSerialNumber"];
58936
59109
  this.lot = _data["lot"];
58937
59110
  this.active = _data["active"];
59111
+ this.isLegacy = _data["isLegacy"];
58938
59112
  }
58939
59113
  }
58940
59114
 
@@ -58949,8 +59123,10 @@ export class WorkOrderTraceItemDto implements IWorkOrderTraceItemDto {
58949
59123
  data = typeof data === 'object' ? data : {};
58950
59124
  data["sequence"] = this.sequence;
58951
59125
  data["serialNumber"] = this.serialNumber;
59126
+ data["customerSerialNumber"] = this.customerSerialNumber;
58952
59127
  data["lot"] = this.lot;
58953
59128
  data["active"] = this.active;
59129
+ data["isLegacy"] = this.isLegacy;
58954
59130
  return data;
58955
59131
  }
58956
59132
  }
@@ -58958,8 +59134,10 @@ export class WorkOrderTraceItemDto implements IWorkOrderTraceItemDto {
58958
59134
  export interface IWorkOrderTraceItemDto {
58959
59135
  sequence: string;
58960
59136
  serialNumber?: string | null;
59137
+ customerSerialNumber?: string | null;
58961
59138
  lot?: string | null;
58962
59139
  active: boolean;
59140
+ isLegacy?: boolean;
58963
59141
  }
58964
59142
 
58965
59143
  export class ResourceExistDto implements IResourceExistDto {