@ignos/api-client 20250708.0.12121-alpha → 20250710.0.12146
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.
- package/lib/ignosportal-api.d.ts +52 -32
- package/lib/ignosportal-api.js +162 -74
- package/package.json +1 -1
- package/src/ignosportal-api.ts +207 -105
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -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;
|
|
@@ -14062,20 +14096,6 @@ export declare class UpsertWorkOrderConsumptionsRequest implements IUpsertWorkOr
|
|
|
14062
14096
|
export interface IUpsertWorkOrderConsumptionsRequest {
|
|
14063
14097
|
materialConsumptions: MaterialConsumptionDto[];
|
|
14064
14098
|
}
|
|
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
14099
|
export declare class UpsertWorkOrderTracesRequest implements IUpsertWorkOrderTracesRequest {
|
|
14080
14100
|
traces: WorkOrderTraceItemDto[];
|
|
14081
14101
|
constructor(data?: IUpsertWorkOrderTracesRequest);
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -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) {
|
|
@@ -45905,47 +46034,6 @@ export class UpsertWorkOrderConsumptionsRequest {
|
|
|
45905
46034
|
return data;
|
|
45906
46035
|
}
|
|
45907
46036
|
}
|
|
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
46037
|
export class UpsertWorkOrderTracesRequest {
|
|
45950
46038
|
constructor(data) {
|
|
45951
46039
|
if (data) {
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -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;
|
|
@@ -58812,61 +58969,6 @@ export interface IUpsertWorkOrderConsumptionsRequest {
|
|
|
58812
58969
|
materialConsumptions: MaterialConsumptionDto[];
|
|
58813
58970
|
}
|
|
58814
58971
|
|
|
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
58972
|
export class UpsertWorkOrderTracesRequest implements IUpsertWorkOrderTracesRequest {
|
|
58871
58973
|
traces!: WorkOrderTraceItemDto[];
|
|
58872
58974
|
|