@ignos/api-client 20250708.0.12110 → 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 +50 -30
- package/lib/ignosportal-api.js +159 -73
- package/package.json +1 -1
- package/src/ignosportal-api.ts +203 -103
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -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
|
@@ -15972,6 +15972,46 @@ export class MesProductionOrderClient extends AuthorizedApiBase {
|
|
|
15972
15972
|
}
|
|
15973
15973
|
return Promise.resolve(null);
|
|
15974
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
|
+
}
|
|
15975
16015
|
checkProductionOrderForOpenNonConformances(id) {
|
|
15976
16016
|
let url_ = this.baseUrl + "/mes/productionorders/{id}/any-nonconformances";
|
|
15977
16017
|
if (id === undefined || id === null)
|
|
@@ -22523,6 +22563,44 @@ export class WorkordersClient extends AuthorizedApiBase {
|
|
|
22523
22563
|
}
|
|
22524
22564
|
return Promise.resolve(null);
|
|
22525
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
|
+
}
|
|
22526
22604
|
/**
|
|
22527
22605
|
* Filter work order operation events
|
|
22528
22606
|
*/
|
|
@@ -26729,6 +26807,7 @@ export class PartDto {
|
|
|
26729
26807
|
this.drawing = _data["drawing"];
|
|
26730
26808
|
this.drawingRevision = _data["drawingRevision"];
|
|
26731
26809
|
this.material = _data["material"];
|
|
26810
|
+
this.planner = _data["planner"] ? UserDto.fromJS(_data["planner"]) : undefined;
|
|
26732
26811
|
}
|
|
26733
26812
|
}
|
|
26734
26813
|
static fromJS(data) {
|
|
@@ -26745,6 +26824,7 @@ export class PartDto {
|
|
|
26745
26824
|
data["drawing"] = this.drawing;
|
|
26746
26825
|
data["drawingRevision"] = this.drawingRevision;
|
|
26747
26826
|
data["material"] = this.material;
|
|
26827
|
+
data["planner"] = this.planner ? this.planner.toJSON() : undefined;
|
|
26748
26828
|
return data;
|
|
26749
26829
|
}
|
|
26750
26830
|
}
|
|
@@ -27104,6 +27184,7 @@ export class MaterialConsumptionDto {
|
|
|
27104
27184
|
this.traceType = _data["traceType"];
|
|
27105
27185
|
this.traceNumber = _data["traceNumber"];
|
|
27106
27186
|
this.lot = _data["lot"];
|
|
27187
|
+
this.batchNumber = _data["batchNumber"];
|
|
27107
27188
|
this.vendorBatch = _data["vendorBatch"];
|
|
27108
27189
|
this.supplierId = _data["supplierId"];
|
|
27109
27190
|
this.procurementOrder = _data["procurementOrder"];
|
|
@@ -27112,6 +27193,7 @@ export class MaterialConsumptionDto {
|
|
|
27112
27193
|
this.sourceSequence = _data["sourceSequence"];
|
|
27113
27194
|
this.label = _data["label"];
|
|
27114
27195
|
this.reference = _data["reference"];
|
|
27196
|
+
this.warehouseLocation = _data["warehouseLocation"] ? WarehouseLocationDto.fromJS(_data["warehouseLocation"]) : undefined;
|
|
27115
27197
|
}
|
|
27116
27198
|
}
|
|
27117
27199
|
static fromJS(data) {
|
|
@@ -27130,6 +27212,7 @@ export class MaterialConsumptionDto {
|
|
|
27130
27212
|
data["traceType"] = this.traceType;
|
|
27131
27213
|
data["traceNumber"] = this.traceNumber;
|
|
27132
27214
|
data["lot"] = this.lot;
|
|
27215
|
+
data["batchNumber"] = this.batchNumber;
|
|
27133
27216
|
data["vendorBatch"] = this.vendorBatch;
|
|
27134
27217
|
data["supplierId"] = this.supplierId;
|
|
27135
27218
|
data["procurementOrder"] = this.procurementOrder;
|
|
@@ -27138,6 +27221,39 @@ export class MaterialConsumptionDto {
|
|
|
27138
27221
|
data["sourceSequence"] = this.sourceSequence;
|
|
27139
27222
|
data["label"] = this.label;
|
|
27140
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;
|
|
27141
27257
|
return data;
|
|
27142
27258
|
}
|
|
27143
27259
|
}
|
|
@@ -38685,38 +38801,6 @@ export class ProductionOrderOperationDto {
|
|
|
38685
38801
|
return data;
|
|
38686
38802
|
}
|
|
38687
38803
|
}
|
|
38688
|
-
export class WarehouseLocationDto {
|
|
38689
|
-
constructor(data) {
|
|
38690
|
-
if (data) {
|
|
38691
|
-
for (var property in data) {
|
|
38692
|
-
if (data.hasOwnProperty(property))
|
|
38693
|
-
this[property] = data[property];
|
|
38694
|
-
}
|
|
38695
|
-
}
|
|
38696
|
-
}
|
|
38697
|
-
init(_data) {
|
|
38698
|
-
if (_data) {
|
|
38699
|
-
this.zone = _data["zone"];
|
|
38700
|
-
this.location = _data["location"];
|
|
38701
|
-
this.warehouse = _data["warehouse"];
|
|
38702
|
-
this.site = _data["site"];
|
|
38703
|
-
}
|
|
38704
|
-
}
|
|
38705
|
-
static fromJS(data) {
|
|
38706
|
-
data = typeof data === 'object' ? data : {};
|
|
38707
|
-
let result = new WarehouseLocationDto();
|
|
38708
|
-
result.init(data);
|
|
38709
|
-
return result;
|
|
38710
|
-
}
|
|
38711
|
-
toJSON(data) {
|
|
38712
|
-
data = typeof data === 'object' ? data : {};
|
|
38713
|
-
data["zone"] = this.zone;
|
|
38714
|
-
data["location"] = this.location;
|
|
38715
|
-
data["warehouse"] = this.warehouse;
|
|
38716
|
-
data["site"] = this.site;
|
|
38717
|
-
return data;
|
|
38718
|
-
}
|
|
38719
|
-
}
|
|
38720
38804
|
export class WorkOrderAttachmentDto {
|
|
38721
38805
|
constructor(data) {
|
|
38722
38806
|
if (data) {
|
|
@@ -38901,6 +38985,7 @@ export class ProductionOrderBomDto {
|
|
|
38901
38985
|
}
|
|
38902
38986
|
this.traceType = _data["traceType"];
|
|
38903
38987
|
this.resourceGroupId = _data["resourceGroupId"];
|
|
38988
|
+
this.lot = _data["lot"];
|
|
38904
38989
|
}
|
|
38905
38990
|
}
|
|
38906
38991
|
static fromJS(data) {
|
|
@@ -38939,6 +39024,7 @@ export class ProductionOrderBomDto {
|
|
|
38939
39024
|
}
|
|
38940
39025
|
data["traceType"] = this.traceType;
|
|
38941
39026
|
data["resourceGroupId"] = this.resourceGroupId;
|
|
39027
|
+
data["lot"] = this.lot;
|
|
38942
39028
|
return data;
|
|
38943
39029
|
}
|
|
38944
39030
|
}
|
|
@@ -39069,6 +39155,47 @@ export class PickListSuggestionDto {
|
|
|
39069
39155
|
return data;
|
|
39070
39156
|
}
|
|
39071
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
|
+
}
|
|
39072
39199
|
export class NonConformanceDto {
|
|
39073
39200
|
constructor(data) {
|
|
39074
39201
|
if (data) {
|
|
@@ -45907,47 +46034,6 @@ export class UpsertWorkOrderConsumptionsRequest {
|
|
|
45907
46034
|
return data;
|
|
45908
46035
|
}
|
|
45909
46036
|
}
|
|
45910
|
-
export class WorkOrderConsumptionDto {
|
|
45911
|
-
constructor(data) {
|
|
45912
|
-
if (data) {
|
|
45913
|
-
for (var property in data) {
|
|
45914
|
-
if (data.hasOwnProperty(property))
|
|
45915
|
-
this[property] = data[property];
|
|
45916
|
-
}
|
|
45917
|
-
}
|
|
45918
|
-
if (!data) {
|
|
45919
|
-
this.consumptions = [];
|
|
45920
|
-
}
|
|
45921
|
-
}
|
|
45922
|
-
init(_data) {
|
|
45923
|
-
if (_data) {
|
|
45924
|
-
this.workOrderId = _data["workOrderId"];
|
|
45925
|
-
this.companyId = _data["companyId"];
|
|
45926
|
-
if (Array.isArray(_data["consumptions"])) {
|
|
45927
|
-
this.consumptions = [];
|
|
45928
|
-
for (let item of _data["consumptions"])
|
|
45929
|
-
this.consumptions.push(MaterialConsumptionDto.fromJS(item));
|
|
45930
|
-
}
|
|
45931
|
-
}
|
|
45932
|
-
}
|
|
45933
|
-
static fromJS(data) {
|
|
45934
|
-
data = typeof data === 'object' ? data : {};
|
|
45935
|
-
let result = new WorkOrderConsumptionDto();
|
|
45936
|
-
result.init(data);
|
|
45937
|
-
return result;
|
|
45938
|
-
}
|
|
45939
|
-
toJSON(data) {
|
|
45940
|
-
data = typeof data === 'object' ? data : {};
|
|
45941
|
-
data["workOrderId"] = this.workOrderId;
|
|
45942
|
-
data["companyId"] = this.companyId;
|
|
45943
|
-
if (Array.isArray(this.consumptions)) {
|
|
45944
|
-
data["consumptions"] = [];
|
|
45945
|
-
for (let item of this.consumptions)
|
|
45946
|
-
data["consumptions"].push(item.toJSON());
|
|
45947
|
-
}
|
|
45948
|
-
return data;
|
|
45949
|
-
}
|
|
45950
|
-
}
|
|
45951
46037
|
export class UpsertWorkOrderTracesRequest {
|
|
45952
46038
|
constructor(data) {
|
|
45953
46039
|
if (data) {
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -16919,6 +16919,8 @@ export interface IMesProductionOrderClient {
|
|
|
16919
16919
|
|
|
16920
16920
|
getProductionOrderPickListSuggestion(id: string, operation: number | undefined): Promise<PickListSuggestionDto[]>;
|
|
16921
16921
|
|
|
16922
|
+
getProductionOrderConsumptions(id: string): Promise<WorkOrderConsumptionDto>;
|
|
16923
|
+
|
|
16922
16924
|
checkProductionOrderForOpenNonConformances(id: string): Promise<boolean>;
|
|
16923
16925
|
|
|
16924
16926
|
getProductionOrderOpenNonConformances(id: string, onlyOpen: boolean | undefined): Promise<NonConformanceDto[]>;
|
|
@@ -17072,6 +17074,45 @@ export class MesProductionOrderClient extends AuthorizedApiBase implements IMesP
|
|
|
17072
17074
|
return Promise.resolve<PickListSuggestionDto[]>(null as any);
|
|
17073
17075
|
}
|
|
17074
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
|
+
|
|
17075
17116
|
checkProductionOrderForOpenNonConformances(id: string): Promise<boolean> {
|
|
17076
17117
|
let url_ = this.baseUrl + "/mes/productionorders/{id}/any-nonconformances";
|
|
17077
17118
|
if (id === undefined || id === null)
|
|
@@ -23123,6 +23164,11 @@ export interface IWorkordersClient {
|
|
|
23123
23164
|
*/
|
|
23124
23165
|
deleteWorkorderOperationEventById(eventId: string): Promise<void>;
|
|
23125
23166
|
|
|
23167
|
+
/**
|
|
23168
|
+
* Delete existing work order operation event.
|
|
23169
|
+
*/
|
|
23170
|
+
deleteWorkorderOperationEventByExternalId(eventExternalId: string): Promise<void>;
|
|
23171
|
+
|
|
23126
23172
|
/**
|
|
23127
23173
|
* Filter work order operation events
|
|
23128
23174
|
*/
|
|
@@ -24058,6 +24104,44 @@ export class WorkordersClient extends AuthorizedApiBase implements IWorkordersCl
|
|
|
24058
24104
|
return Promise.resolve<void>(null as any);
|
|
24059
24105
|
}
|
|
24060
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
|
+
|
|
24061
24145
|
/**
|
|
24062
24146
|
* Filter work order operation events
|
|
24063
24147
|
*/
|
|
@@ -30120,6 +30204,7 @@ export class PartDto implements IPartDto {
|
|
|
30120
30204
|
drawing?: string | null;
|
|
30121
30205
|
drawingRevision?: string | null;
|
|
30122
30206
|
material?: string | null;
|
|
30207
|
+
planner?: UserDto | null;
|
|
30123
30208
|
|
|
30124
30209
|
constructor(data?: IPartDto) {
|
|
30125
30210
|
if (data) {
|
|
@@ -30138,6 +30223,7 @@ export class PartDto implements IPartDto {
|
|
|
30138
30223
|
this.drawing = _data["drawing"];
|
|
30139
30224
|
this.drawingRevision = _data["drawingRevision"];
|
|
30140
30225
|
this.material = _data["material"];
|
|
30226
|
+
this.planner = _data["planner"] ? UserDto.fromJS(_data["planner"]) : <any>undefined;
|
|
30141
30227
|
}
|
|
30142
30228
|
}
|
|
30143
30229
|
|
|
@@ -30156,6 +30242,7 @@ export class PartDto implements IPartDto {
|
|
|
30156
30242
|
data["drawing"] = this.drawing;
|
|
30157
30243
|
data["drawingRevision"] = this.drawingRevision;
|
|
30158
30244
|
data["material"] = this.material;
|
|
30245
|
+
data["planner"] = this.planner ? this.planner.toJSON() : <any>undefined;
|
|
30159
30246
|
return data;
|
|
30160
30247
|
}
|
|
30161
30248
|
}
|
|
@@ -30167,6 +30254,7 @@ export interface IPartDto {
|
|
|
30167
30254
|
drawing?: string | null;
|
|
30168
30255
|
drawingRevision?: string | null;
|
|
30169
30256
|
material?: string | null;
|
|
30257
|
+
planner?: UserDto | null;
|
|
30170
30258
|
}
|
|
30171
30259
|
|
|
30172
30260
|
export class TraceItemDto implements ITraceItemDto {
|
|
@@ -30682,6 +30770,7 @@ export class MaterialConsumptionDto implements IMaterialConsumptionDto {
|
|
|
30682
30770
|
traceType!: TraceType;
|
|
30683
30771
|
traceNumber?: string | null;
|
|
30684
30772
|
lot?: string | null;
|
|
30773
|
+
batchNumber?: string | null;
|
|
30685
30774
|
vendorBatch?: string | null;
|
|
30686
30775
|
supplierId?: string | null;
|
|
30687
30776
|
procurementOrder?: string | null;
|
|
@@ -30690,6 +30779,7 @@ export class MaterialConsumptionDto implements IMaterialConsumptionDto {
|
|
|
30690
30779
|
sourceSequence?: string | null;
|
|
30691
30780
|
label!: string;
|
|
30692
30781
|
reference?: string | null;
|
|
30782
|
+
warehouseLocation?: WarehouseLocationDto | null;
|
|
30693
30783
|
|
|
30694
30784
|
constructor(data?: IMaterialConsumptionDto) {
|
|
30695
30785
|
if (data) {
|
|
@@ -30713,6 +30803,7 @@ export class MaterialConsumptionDto implements IMaterialConsumptionDto {
|
|
|
30713
30803
|
this.traceType = _data["traceType"];
|
|
30714
30804
|
this.traceNumber = _data["traceNumber"];
|
|
30715
30805
|
this.lot = _data["lot"];
|
|
30806
|
+
this.batchNumber = _data["batchNumber"];
|
|
30716
30807
|
this.vendorBatch = _data["vendorBatch"];
|
|
30717
30808
|
this.supplierId = _data["supplierId"];
|
|
30718
30809
|
this.procurementOrder = _data["procurementOrder"];
|
|
@@ -30721,6 +30812,7 @@ export class MaterialConsumptionDto implements IMaterialConsumptionDto {
|
|
|
30721
30812
|
this.sourceSequence = _data["sourceSequence"];
|
|
30722
30813
|
this.label = _data["label"];
|
|
30723
30814
|
this.reference = _data["reference"];
|
|
30815
|
+
this.warehouseLocation = _data["warehouseLocation"] ? WarehouseLocationDto.fromJS(_data["warehouseLocation"]) : <any>undefined;
|
|
30724
30816
|
}
|
|
30725
30817
|
}
|
|
30726
30818
|
|
|
@@ -30741,6 +30833,7 @@ export class MaterialConsumptionDto implements IMaterialConsumptionDto {
|
|
|
30741
30833
|
data["traceType"] = this.traceType;
|
|
30742
30834
|
data["traceNumber"] = this.traceNumber;
|
|
30743
30835
|
data["lot"] = this.lot;
|
|
30836
|
+
data["batchNumber"] = this.batchNumber;
|
|
30744
30837
|
data["vendorBatch"] = this.vendorBatch;
|
|
30745
30838
|
data["supplierId"] = this.supplierId;
|
|
30746
30839
|
data["procurementOrder"] = this.procurementOrder;
|
|
@@ -30749,6 +30842,7 @@ export class MaterialConsumptionDto implements IMaterialConsumptionDto {
|
|
|
30749
30842
|
data["sourceSequence"] = this.sourceSequence;
|
|
30750
30843
|
data["label"] = this.label;
|
|
30751
30844
|
data["reference"] = this.reference;
|
|
30845
|
+
data["warehouseLocation"] = this.warehouseLocation ? this.warehouseLocation.toJSON() : <any>undefined;
|
|
30752
30846
|
return data;
|
|
30753
30847
|
}
|
|
30754
30848
|
}
|
|
@@ -30762,6 +30856,7 @@ export interface IMaterialConsumptionDto {
|
|
|
30762
30856
|
traceType: TraceType;
|
|
30763
30857
|
traceNumber?: string | null;
|
|
30764
30858
|
lot?: string | null;
|
|
30859
|
+
batchNumber?: string | null;
|
|
30765
30860
|
vendorBatch?: string | null;
|
|
30766
30861
|
supplierId?: string | null;
|
|
30767
30862
|
procurementOrder?: string | null;
|
|
@@ -30770,6 +30865,55 @@ export interface IMaterialConsumptionDto {
|
|
|
30770
30865
|
sourceSequence?: string | null;
|
|
30771
30866
|
label: string;
|
|
30772
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;
|
|
30773
30917
|
}
|
|
30774
30918
|
|
|
30775
30919
|
export type TraceStatus = "None" | "Unavailable" | "NotNeeded" | "Partial" | "Completed";
|
|
@@ -47970,54 +48114,6 @@ export interface IProductionOrderOperationDto {
|
|
|
47970
48114
|
setupStatus?: OperationStatusDto | null;
|
|
47971
48115
|
}
|
|
47972
48116
|
|
|
47973
|
-
export class WarehouseLocationDto implements IWarehouseLocationDto {
|
|
47974
|
-
zone?: string | null;
|
|
47975
|
-
location!: string;
|
|
47976
|
-
warehouse?: string | null;
|
|
47977
|
-
site?: string | null;
|
|
47978
|
-
|
|
47979
|
-
constructor(data?: IWarehouseLocationDto) {
|
|
47980
|
-
if (data) {
|
|
47981
|
-
for (var property in data) {
|
|
47982
|
-
if (data.hasOwnProperty(property))
|
|
47983
|
-
(<any>this)[property] = (<any>data)[property];
|
|
47984
|
-
}
|
|
47985
|
-
}
|
|
47986
|
-
}
|
|
47987
|
-
|
|
47988
|
-
init(_data?: any) {
|
|
47989
|
-
if (_data) {
|
|
47990
|
-
this.zone = _data["zone"];
|
|
47991
|
-
this.location = _data["location"];
|
|
47992
|
-
this.warehouse = _data["warehouse"];
|
|
47993
|
-
this.site = _data["site"];
|
|
47994
|
-
}
|
|
47995
|
-
}
|
|
47996
|
-
|
|
47997
|
-
static fromJS(data: any): WarehouseLocationDto {
|
|
47998
|
-
data = typeof data === 'object' ? data : {};
|
|
47999
|
-
let result = new WarehouseLocationDto();
|
|
48000
|
-
result.init(data);
|
|
48001
|
-
return result;
|
|
48002
|
-
}
|
|
48003
|
-
|
|
48004
|
-
toJSON(data?: any) {
|
|
48005
|
-
data = typeof data === 'object' ? data : {};
|
|
48006
|
-
data["zone"] = this.zone;
|
|
48007
|
-
data["location"] = this.location;
|
|
48008
|
-
data["warehouse"] = this.warehouse;
|
|
48009
|
-
data["site"] = this.site;
|
|
48010
|
-
return data;
|
|
48011
|
-
}
|
|
48012
|
-
}
|
|
48013
|
-
|
|
48014
|
-
export interface IWarehouseLocationDto {
|
|
48015
|
-
zone?: string | null;
|
|
48016
|
-
location: string;
|
|
48017
|
-
warehouse?: string | null;
|
|
48018
|
-
site?: string | null;
|
|
48019
|
-
}
|
|
48020
|
-
|
|
48021
48117
|
export class WorkOrderAttachmentDto implements IWorkOrderAttachmentDto {
|
|
48022
48118
|
createdBy?: UserDto | null;
|
|
48023
48119
|
created?: Date | null;
|
|
@@ -48248,6 +48344,7 @@ export class ProductionOrderBomDto implements IProductionOrderBomDto {
|
|
|
48248
48344
|
availabilityDetails!: InventoryDto[];
|
|
48249
48345
|
traceType!: TraceType;
|
|
48250
48346
|
resourceGroupId?: string | null;
|
|
48347
|
+
lot?: string | null;
|
|
48251
48348
|
|
|
48252
48349
|
constructor(data?: IProductionOrderBomDto) {
|
|
48253
48350
|
if (data) {
|
|
@@ -48292,6 +48389,7 @@ export class ProductionOrderBomDto implements IProductionOrderBomDto {
|
|
|
48292
48389
|
}
|
|
48293
48390
|
this.traceType = _data["traceType"];
|
|
48294
48391
|
this.resourceGroupId = _data["resourceGroupId"];
|
|
48392
|
+
this.lot = _data["lot"];
|
|
48295
48393
|
}
|
|
48296
48394
|
}
|
|
48297
48395
|
|
|
@@ -48332,6 +48430,7 @@ export class ProductionOrderBomDto implements IProductionOrderBomDto {
|
|
|
48332
48430
|
}
|
|
48333
48431
|
data["traceType"] = this.traceType;
|
|
48334
48432
|
data["resourceGroupId"] = this.resourceGroupId;
|
|
48433
|
+
data["lot"] = this.lot;
|
|
48335
48434
|
return data;
|
|
48336
48435
|
}
|
|
48337
48436
|
}
|
|
@@ -48357,6 +48456,7 @@ export interface IProductionOrderBomDto {
|
|
|
48357
48456
|
availabilityDetails: InventoryDto[];
|
|
48358
48457
|
traceType: TraceType;
|
|
48359
48458
|
resourceGroupId?: string | null;
|
|
48459
|
+
lot?: string | null;
|
|
48360
48460
|
}
|
|
48361
48461
|
|
|
48362
48462
|
export class InventoryDto implements IInventoryDto {
|
|
@@ -48560,6 +48660,61 @@ export interface IPickListSuggestionDto {
|
|
|
48560
48660
|
drawing?: DrawingDto | null;
|
|
48561
48661
|
}
|
|
48562
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
|
+
|
|
48563
48718
|
export class NonConformanceDto implements INonConformanceDto {
|
|
48564
48719
|
nonConformanceId!: string;
|
|
48565
48720
|
companyId?: string | null;
|
|
@@ -58814,61 +58969,6 @@ export interface IUpsertWorkOrderConsumptionsRequest {
|
|
|
58814
58969
|
materialConsumptions: MaterialConsumptionDto[];
|
|
58815
58970
|
}
|
|
58816
58971
|
|
|
58817
|
-
export class WorkOrderConsumptionDto implements IWorkOrderConsumptionDto {
|
|
58818
|
-
workOrderId!: string;
|
|
58819
|
-
companyId?: string | null;
|
|
58820
|
-
consumptions!: MaterialConsumptionDto[];
|
|
58821
|
-
|
|
58822
|
-
constructor(data?: IWorkOrderConsumptionDto) {
|
|
58823
|
-
if (data) {
|
|
58824
|
-
for (var property in data) {
|
|
58825
|
-
if (data.hasOwnProperty(property))
|
|
58826
|
-
(<any>this)[property] = (<any>data)[property];
|
|
58827
|
-
}
|
|
58828
|
-
}
|
|
58829
|
-
if (!data) {
|
|
58830
|
-
this.consumptions = [];
|
|
58831
|
-
}
|
|
58832
|
-
}
|
|
58833
|
-
|
|
58834
|
-
init(_data?: any) {
|
|
58835
|
-
if (_data) {
|
|
58836
|
-
this.workOrderId = _data["workOrderId"];
|
|
58837
|
-
this.companyId = _data["companyId"];
|
|
58838
|
-
if (Array.isArray(_data["consumptions"])) {
|
|
58839
|
-
this.consumptions = [] as any;
|
|
58840
|
-
for (let item of _data["consumptions"])
|
|
58841
|
-
this.consumptions!.push(MaterialConsumptionDto.fromJS(item));
|
|
58842
|
-
}
|
|
58843
|
-
}
|
|
58844
|
-
}
|
|
58845
|
-
|
|
58846
|
-
static fromJS(data: any): WorkOrderConsumptionDto {
|
|
58847
|
-
data = typeof data === 'object' ? data : {};
|
|
58848
|
-
let result = new WorkOrderConsumptionDto();
|
|
58849
|
-
result.init(data);
|
|
58850
|
-
return result;
|
|
58851
|
-
}
|
|
58852
|
-
|
|
58853
|
-
toJSON(data?: any) {
|
|
58854
|
-
data = typeof data === 'object' ? data : {};
|
|
58855
|
-
data["workOrderId"] = this.workOrderId;
|
|
58856
|
-
data["companyId"] = this.companyId;
|
|
58857
|
-
if (Array.isArray(this.consumptions)) {
|
|
58858
|
-
data["consumptions"] = [];
|
|
58859
|
-
for (let item of this.consumptions)
|
|
58860
|
-
data["consumptions"].push(item.toJSON());
|
|
58861
|
-
}
|
|
58862
|
-
return data;
|
|
58863
|
-
}
|
|
58864
|
-
}
|
|
58865
|
-
|
|
58866
|
-
export interface IWorkOrderConsumptionDto {
|
|
58867
|
-
workOrderId: string;
|
|
58868
|
-
companyId?: string | null;
|
|
58869
|
-
consumptions: MaterialConsumptionDto[];
|
|
58870
|
-
}
|
|
58871
|
-
|
|
58872
58972
|
export class UpsertWorkOrderTracesRequest implements IUpsertWorkOrderTracesRequest {
|
|
58873
58973
|
traces!: WorkOrderTraceItemDto[];
|
|
58874
58974
|
|