@ignos/api-client 20240327.0.9055 → 20240408.0.9087
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 +61 -0
- package/lib/ignosportal-api.js +136 -0
- package/package.json +1 -1
- package/src/ignosportal-api.ts +195 -0
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -1388,6 +1388,7 @@ export interface IMesProductionOrderClient {
|
|
|
1388
1388
|
checkProductionOrderForOpenNonConformances(id: string): Promise<boolean>;
|
|
1389
1389
|
getProductionOrderOpenNonConformances(id: string, onlyOpen: boolean | undefined): Promise<NonConformanceDto[]>;
|
|
1390
1390
|
postMaterialPickList(id: string, operationNumber: number, request: PostMaterialPickListRequest): Promise<MaterialPickListResultDto>;
|
|
1391
|
+
listProductionOrderActivities(id: string, operation: number | null | undefined): Promise<ProductionOrderOperationActivityDto[]>;
|
|
1391
1392
|
}
|
|
1392
1393
|
export declare class MesProductionOrderClient extends AuthorizedApiBase implements IMesProductionOrderClient {
|
|
1393
1394
|
private http;
|
|
@@ -1408,6 +1409,8 @@ export declare class MesProductionOrderClient extends AuthorizedApiBase implemen
|
|
|
1408
1409
|
protected processGetProductionOrderOpenNonConformances(response: Response): Promise<NonConformanceDto[]>;
|
|
1409
1410
|
postMaterialPickList(id: string, operationNumber: number, request: PostMaterialPickListRequest): Promise<MaterialPickListResultDto>;
|
|
1410
1411
|
protected processPostMaterialPickList(response: Response): Promise<MaterialPickListResultDto>;
|
|
1412
|
+
listProductionOrderActivities(id: string, operation: number | null | undefined): Promise<ProductionOrderOperationActivityDto[]>;
|
|
1413
|
+
protected processListProductionOrderActivities(response: Response): Promise<ProductionOrderOperationActivityDto[]>;
|
|
1411
1414
|
}
|
|
1412
1415
|
export interface IMesProductionScheduleClient {
|
|
1413
1416
|
listProductionScheduleOperations(resourceGroup: string | null | undefined, resourceId: string | null | undefined, pageSize: number | undefined, continuationToken: string | null | undefined, workOrderId: string | null | undefined, projectId: string | null | undefined, partNumber: string | null | undefined, partName: string | null | undefined, material: string | null | undefined): Promise<PagedResultOfProductionScheduleOperationDto>;
|
|
@@ -3727,6 +3730,7 @@ export declare class ResourceDto implements IResourceDto {
|
|
|
3727
3730
|
description?: string | null;
|
|
3728
3731
|
resourceType?: string | null;
|
|
3729
3732
|
resourceGroupId?: string | null;
|
|
3733
|
+
department?: DepartmentDto | null;
|
|
3730
3734
|
constructor(data?: IResourceDto);
|
|
3731
3735
|
init(_data?: any): void;
|
|
3732
3736
|
static fromJS(data: any): ResourceDto;
|
|
@@ -3739,6 +3743,19 @@ export interface IResourceDto {
|
|
|
3739
3743
|
description?: string | null;
|
|
3740
3744
|
resourceType?: string | null;
|
|
3741
3745
|
resourceGroupId?: string | null;
|
|
3746
|
+
department?: DepartmentDto | null;
|
|
3747
|
+
}
|
|
3748
|
+
export declare class DepartmentDto implements IDepartmentDto {
|
|
3749
|
+
number: string;
|
|
3750
|
+
name: string;
|
|
3751
|
+
constructor(data?: IDepartmentDto);
|
|
3752
|
+
init(_data?: any): void;
|
|
3753
|
+
static fromJS(data: any): DepartmentDto;
|
|
3754
|
+
toJSON(data?: any): any;
|
|
3755
|
+
}
|
|
3756
|
+
export interface IDepartmentDto {
|
|
3757
|
+
number: string;
|
|
3758
|
+
name: string;
|
|
3742
3759
|
}
|
|
3743
3760
|
export type OperationStatusDto = "NotReady" | "Ready" | "Ongoing" | "Completed" | "Stopped";
|
|
3744
3761
|
export declare class WorkOrderTraceMaterialDto implements IWorkOrderTraceMaterialDto {
|
|
@@ -7711,6 +7728,38 @@ export interface IPickListMaterialLineDto {
|
|
|
7711
7728
|
quantity: number;
|
|
7712
7729
|
batch?: string | null;
|
|
7713
7730
|
}
|
|
7731
|
+
export declare class ProductionOrderOperationActivityDto implements IProductionOrderOperationActivityDto {
|
|
7732
|
+
operation: number;
|
|
7733
|
+
operationId: string;
|
|
7734
|
+
description?: string | null;
|
|
7735
|
+
resource?: ResourceDto | null;
|
|
7736
|
+
user?: UserDto | null;
|
|
7737
|
+
startTime: Date;
|
|
7738
|
+
endTime?: Date | null;
|
|
7739
|
+
status: OperationStatusDto;
|
|
7740
|
+
active: boolean;
|
|
7741
|
+
startedQuantity?: number | null;
|
|
7742
|
+
producedQuantity?: number | null;
|
|
7743
|
+
scrappedQuantity?: number | null;
|
|
7744
|
+
constructor(data?: IProductionOrderOperationActivityDto);
|
|
7745
|
+
init(_data?: any): void;
|
|
7746
|
+
static fromJS(data: any): ProductionOrderOperationActivityDto;
|
|
7747
|
+
toJSON(data?: any): any;
|
|
7748
|
+
}
|
|
7749
|
+
export interface IProductionOrderOperationActivityDto {
|
|
7750
|
+
operation: number;
|
|
7751
|
+
operationId: string;
|
|
7752
|
+
description?: string | null;
|
|
7753
|
+
resource?: ResourceDto | null;
|
|
7754
|
+
user?: UserDto | null;
|
|
7755
|
+
startTime: Date;
|
|
7756
|
+
endTime?: Date | null;
|
|
7757
|
+
status: OperationStatusDto;
|
|
7758
|
+
active: boolean;
|
|
7759
|
+
startedQuantity?: number | null;
|
|
7760
|
+
producedQuantity?: number | null;
|
|
7761
|
+
scrappedQuantity?: number | null;
|
|
7762
|
+
}
|
|
7714
7763
|
export declare class PagedResultOfProductionScheduleOperationDto implements IPagedResultOfProductionScheduleOperationDto {
|
|
7715
7764
|
results: ProductionScheduleOperationDto[];
|
|
7716
7765
|
continuationToken?: string | null;
|
|
@@ -7752,6 +7801,8 @@ export declare class ProductionScheduleOperationDto implements IProductionSchedu
|
|
|
7752
7801
|
partMaterial?: string | null;
|
|
7753
7802
|
resourceId: string;
|
|
7754
7803
|
resourceName: string;
|
|
7804
|
+
resourceDepartmentNumber?: string | null;
|
|
7805
|
+
resourceDepartmentName?: string | null;
|
|
7755
7806
|
bomPosition?: string | null;
|
|
7756
7807
|
customerName?: string | null;
|
|
7757
7808
|
previousOperation?: SurroundingOperationDto | null;
|
|
@@ -7802,6 +7853,8 @@ export interface IProductionScheduleOperationDto {
|
|
|
7802
7853
|
partMaterial?: string | null;
|
|
7803
7854
|
resourceId: string;
|
|
7804
7855
|
resourceName: string;
|
|
7856
|
+
resourceDepartmentNumber?: string | null;
|
|
7857
|
+
resourceDepartmentName?: string | null;
|
|
7805
7858
|
bomPosition?: string | null;
|
|
7806
7859
|
customerName?: string | null;
|
|
7807
7860
|
previousOperation?: SurroundingOperationDto | null;
|
|
@@ -7831,6 +7884,8 @@ export declare class SurroundingOperationDto implements ISurroundingOperationDto
|
|
|
7831
7884
|
resourceGroupId?: string | null;
|
|
7832
7885
|
resourceId?: string | null;
|
|
7833
7886
|
resourceName?: string | null;
|
|
7887
|
+
resourceDepartmentNumber?: string | null;
|
|
7888
|
+
resourceDepartmentName?: string | null;
|
|
7834
7889
|
producedQuantity: number;
|
|
7835
7890
|
scrappedQuantity: number;
|
|
7836
7891
|
startedQuantity?: number | null;
|
|
@@ -7851,6 +7906,8 @@ export interface ISurroundingOperationDto {
|
|
|
7851
7906
|
resourceGroupId?: string | null;
|
|
7852
7907
|
resourceId?: string | null;
|
|
7853
7908
|
resourceName?: string | null;
|
|
7909
|
+
resourceDepartmentNumber?: string | null;
|
|
7910
|
+
resourceDepartmentName?: string | null;
|
|
7854
7911
|
producedQuantity: number;
|
|
7855
7912
|
scrappedQuantity: number;
|
|
7856
7913
|
startedQuantity?: number | null;
|
|
@@ -8328,6 +8385,7 @@ export declare class ResourceGroupDto implements IResourceGroupDto {
|
|
|
8328
8385
|
id?: string;
|
|
8329
8386
|
name?: string;
|
|
8330
8387
|
resources: ProductionResourceDto[];
|
|
8388
|
+
department?: DepartmentDto | null;
|
|
8331
8389
|
constructor(data?: IResourceGroupDto);
|
|
8332
8390
|
init(_data?: any): void;
|
|
8333
8391
|
static fromJS(data: any): ResourceGroupDto;
|
|
@@ -8337,10 +8395,12 @@ export interface IResourceGroupDto {
|
|
|
8337
8395
|
id?: string;
|
|
8338
8396
|
name?: string;
|
|
8339
8397
|
resources: ProductionResourceDto[];
|
|
8398
|
+
department?: DepartmentDto | null;
|
|
8340
8399
|
}
|
|
8341
8400
|
export declare class ProductionResourceDto implements IProductionResourceDto {
|
|
8342
8401
|
id?: string;
|
|
8343
8402
|
name?: string;
|
|
8403
|
+
department?: DepartmentDto | null;
|
|
8344
8404
|
constructor(data?: IProductionResourceDto);
|
|
8345
8405
|
init(_data?: any): void;
|
|
8346
8406
|
static fromJS(data: any): ProductionResourceDto;
|
|
@@ -8349,6 +8409,7 @@ export declare class ProductionResourceDto implements IProductionResourceDto {
|
|
|
8349
8409
|
export interface IProductionResourceDto {
|
|
8350
8410
|
id?: string;
|
|
8351
8411
|
name?: string;
|
|
8412
|
+
department?: DepartmentDto | null;
|
|
8352
8413
|
}
|
|
8353
8414
|
export declare class PagedResultOfMeasurementFormListDto implements IPagedResultOfMeasurementFormListDto {
|
|
8354
8415
|
results: MeasurementFormListDto[];
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -11533,6 +11533,52 @@ export class MesProductionOrderClient extends AuthorizedApiBase {
|
|
|
11533
11533
|
}
|
|
11534
11534
|
return Promise.resolve(null);
|
|
11535
11535
|
}
|
|
11536
|
+
listProductionOrderActivities(id, operation) {
|
|
11537
|
+
let url_ = this.baseUrl + "/mes/productionorders/{id}/activities?";
|
|
11538
|
+
if (id === undefined || id === null)
|
|
11539
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
11540
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
11541
|
+
if (operation !== undefined && operation !== null)
|
|
11542
|
+
url_ += "operation=" + encodeURIComponent("" + operation) + "&";
|
|
11543
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
11544
|
+
let options_ = {
|
|
11545
|
+
method: "GET",
|
|
11546
|
+
headers: {
|
|
11547
|
+
"Accept": "application/json"
|
|
11548
|
+
}
|
|
11549
|
+
};
|
|
11550
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
11551
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
11552
|
+
}).then((_response) => {
|
|
11553
|
+
return this.processListProductionOrderActivities(_response);
|
|
11554
|
+
});
|
|
11555
|
+
}
|
|
11556
|
+
processListProductionOrderActivities(response) {
|
|
11557
|
+
const status = response.status;
|
|
11558
|
+
let _headers = {};
|
|
11559
|
+
if (response.headers && response.headers.forEach) {
|
|
11560
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
11561
|
+
}
|
|
11562
|
+
;
|
|
11563
|
+
if (status === 200) {
|
|
11564
|
+
return response.text().then((_responseText) => {
|
|
11565
|
+
let result200 = null;
|
|
11566
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
11567
|
+
if (Array.isArray(resultData200)) {
|
|
11568
|
+
result200 = [];
|
|
11569
|
+
for (let item of resultData200)
|
|
11570
|
+
result200.push(ProductionOrderOperationActivityDto.fromJS(item));
|
|
11571
|
+
}
|
|
11572
|
+
return result200;
|
|
11573
|
+
});
|
|
11574
|
+
}
|
|
11575
|
+
else if (status !== 200 && status !== 204) {
|
|
11576
|
+
return response.text().then((_responseText) => {
|
|
11577
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
11578
|
+
});
|
|
11579
|
+
}
|
|
11580
|
+
return Promise.resolve(null);
|
|
11581
|
+
}
|
|
11536
11582
|
}
|
|
11537
11583
|
export class MesProductionScheduleClient extends AuthorizedApiBase {
|
|
11538
11584
|
constructor(configuration, baseUrl, http) {
|
|
@@ -20783,6 +20829,7 @@ export class ResourceDto {
|
|
|
20783
20829
|
this.description = _data["description"];
|
|
20784
20830
|
this.resourceType = _data["resourceType"];
|
|
20785
20831
|
this.resourceGroupId = _data["resourceGroupId"];
|
|
20832
|
+
this.department = _data["department"] ? DepartmentDto.fromJS(_data["department"]) : undefined;
|
|
20786
20833
|
}
|
|
20787
20834
|
}
|
|
20788
20835
|
static fromJS(data) {
|
|
@@ -20799,6 +20846,35 @@ export class ResourceDto {
|
|
|
20799
20846
|
data["description"] = this.description;
|
|
20800
20847
|
data["resourceType"] = this.resourceType;
|
|
20801
20848
|
data["resourceGroupId"] = this.resourceGroupId;
|
|
20849
|
+
data["department"] = this.department ? this.department.toJSON() : undefined;
|
|
20850
|
+
return data;
|
|
20851
|
+
}
|
|
20852
|
+
}
|
|
20853
|
+
export class DepartmentDto {
|
|
20854
|
+
constructor(data) {
|
|
20855
|
+
if (data) {
|
|
20856
|
+
for (var property in data) {
|
|
20857
|
+
if (data.hasOwnProperty(property))
|
|
20858
|
+
this[property] = data[property];
|
|
20859
|
+
}
|
|
20860
|
+
}
|
|
20861
|
+
}
|
|
20862
|
+
init(_data) {
|
|
20863
|
+
if (_data) {
|
|
20864
|
+
this.number = _data["number"];
|
|
20865
|
+
this.name = _data["name"];
|
|
20866
|
+
}
|
|
20867
|
+
}
|
|
20868
|
+
static fromJS(data) {
|
|
20869
|
+
data = typeof data === 'object' ? data : {};
|
|
20870
|
+
let result = new DepartmentDto();
|
|
20871
|
+
result.init(data);
|
|
20872
|
+
return result;
|
|
20873
|
+
}
|
|
20874
|
+
toJSON(data) {
|
|
20875
|
+
data = typeof data === 'object' ? data : {};
|
|
20876
|
+
data["number"] = this.number;
|
|
20877
|
+
data["name"] = this.name;
|
|
20802
20878
|
return data;
|
|
20803
20879
|
}
|
|
20804
20880
|
}
|
|
@@ -28528,6 +28604,54 @@ export class PickListMaterialLineDto {
|
|
|
28528
28604
|
return data;
|
|
28529
28605
|
}
|
|
28530
28606
|
}
|
|
28607
|
+
export class ProductionOrderOperationActivityDto {
|
|
28608
|
+
constructor(data) {
|
|
28609
|
+
if (data) {
|
|
28610
|
+
for (var property in data) {
|
|
28611
|
+
if (data.hasOwnProperty(property))
|
|
28612
|
+
this[property] = data[property];
|
|
28613
|
+
}
|
|
28614
|
+
}
|
|
28615
|
+
}
|
|
28616
|
+
init(_data) {
|
|
28617
|
+
if (_data) {
|
|
28618
|
+
this.operation = _data["operation"];
|
|
28619
|
+
this.operationId = _data["operationId"];
|
|
28620
|
+
this.description = _data["description"];
|
|
28621
|
+
this.resource = _data["resource"] ? ResourceDto.fromJS(_data["resource"]) : undefined;
|
|
28622
|
+
this.user = _data["user"] ? UserDto.fromJS(_data["user"]) : undefined;
|
|
28623
|
+
this.startTime = _data["startTime"] ? new Date(_data["startTime"].toString()) : undefined;
|
|
28624
|
+
this.endTime = _data["endTime"] ? new Date(_data["endTime"].toString()) : undefined;
|
|
28625
|
+
this.status = _data["status"];
|
|
28626
|
+
this.active = _data["active"];
|
|
28627
|
+
this.startedQuantity = _data["startedQuantity"];
|
|
28628
|
+
this.producedQuantity = _data["producedQuantity"];
|
|
28629
|
+
this.scrappedQuantity = _data["scrappedQuantity"];
|
|
28630
|
+
}
|
|
28631
|
+
}
|
|
28632
|
+
static fromJS(data) {
|
|
28633
|
+
data = typeof data === 'object' ? data : {};
|
|
28634
|
+
let result = new ProductionOrderOperationActivityDto();
|
|
28635
|
+
result.init(data);
|
|
28636
|
+
return result;
|
|
28637
|
+
}
|
|
28638
|
+
toJSON(data) {
|
|
28639
|
+
data = typeof data === 'object' ? data : {};
|
|
28640
|
+
data["operation"] = this.operation;
|
|
28641
|
+
data["operationId"] = this.operationId;
|
|
28642
|
+
data["description"] = this.description;
|
|
28643
|
+
data["resource"] = this.resource ? this.resource.toJSON() : undefined;
|
|
28644
|
+
data["user"] = this.user ? this.user.toJSON() : undefined;
|
|
28645
|
+
data["startTime"] = this.startTime ? this.startTime.toISOString() : undefined;
|
|
28646
|
+
data["endTime"] = this.endTime ? this.endTime.toISOString() : undefined;
|
|
28647
|
+
data["status"] = this.status;
|
|
28648
|
+
data["active"] = this.active;
|
|
28649
|
+
data["startedQuantity"] = this.startedQuantity;
|
|
28650
|
+
data["producedQuantity"] = this.producedQuantity;
|
|
28651
|
+
data["scrappedQuantity"] = this.scrappedQuantity;
|
|
28652
|
+
return data;
|
|
28653
|
+
}
|
|
28654
|
+
}
|
|
28531
28655
|
export class PagedResultOfProductionScheduleOperationDto {
|
|
28532
28656
|
constructor(data) {
|
|
28533
28657
|
if (data) {
|
|
@@ -28609,6 +28733,8 @@ export class ProductionScheduleOperationDto {
|
|
|
28609
28733
|
this.partMaterial = _data["partMaterial"];
|
|
28610
28734
|
this.resourceId = _data["resourceId"];
|
|
28611
28735
|
this.resourceName = _data["resourceName"];
|
|
28736
|
+
this.resourceDepartmentNumber = _data["resourceDepartmentNumber"];
|
|
28737
|
+
this.resourceDepartmentName = _data["resourceDepartmentName"];
|
|
28612
28738
|
this.bomPosition = _data["bomPosition"];
|
|
28613
28739
|
this.customerName = _data["customerName"];
|
|
28614
28740
|
this.previousOperation = _data["previousOperation"] ? SurroundingOperationDto.fromJS(_data["previousOperation"]) : undefined;
|
|
@@ -28663,6 +28789,8 @@ export class ProductionScheduleOperationDto {
|
|
|
28663
28789
|
data["partMaterial"] = this.partMaterial;
|
|
28664
28790
|
data["resourceId"] = this.resourceId;
|
|
28665
28791
|
data["resourceName"] = this.resourceName;
|
|
28792
|
+
data["resourceDepartmentNumber"] = this.resourceDepartmentNumber;
|
|
28793
|
+
data["resourceDepartmentName"] = this.resourceDepartmentName;
|
|
28666
28794
|
data["bomPosition"] = this.bomPosition;
|
|
28667
28795
|
data["customerName"] = this.customerName;
|
|
28668
28796
|
data["previousOperation"] = this.previousOperation ? this.previousOperation.toJSON() : undefined;
|
|
@@ -28704,6 +28832,8 @@ export class SurroundingOperationDto {
|
|
|
28704
28832
|
this.resourceGroupId = _data["resourceGroupId"];
|
|
28705
28833
|
this.resourceId = _data["resourceId"];
|
|
28706
28834
|
this.resourceName = _data["resourceName"];
|
|
28835
|
+
this.resourceDepartmentNumber = _data["resourceDepartmentNumber"];
|
|
28836
|
+
this.resourceDepartmentName = _data["resourceDepartmentName"];
|
|
28707
28837
|
this.producedQuantity = _data["producedQuantity"];
|
|
28708
28838
|
this.scrappedQuantity = _data["scrappedQuantity"];
|
|
28709
28839
|
this.startedQuantity = _data["startedQuantity"];
|
|
@@ -28728,6 +28858,8 @@ export class SurroundingOperationDto {
|
|
|
28728
28858
|
data["resourceGroupId"] = this.resourceGroupId;
|
|
28729
28859
|
data["resourceId"] = this.resourceId;
|
|
28730
28860
|
data["resourceName"] = this.resourceName;
|
|
28861
|
+
data["resourceDepartmentNumber"] = this.resourceDepartmentNumber;
|
|
28862
|
+
data["resourceDepartmentName"] = this.resourceDepartmentName;
|
|
28731
28863
|
data["producedQuantity"] = this.producedQuantity;
|
|
28732
28864
|
data["scrappedQuantity"] = this.scrappedQuantity;
|
|
28733
28865
|
data["startedQuantity"] = this.startedQuantity;
|
|
@@ -29878,6 +30010,7 @@ export class ResourceGroupDto {
|
|
|
29878
30010
|
for (let item of _data["resources"])
|
|
29879
30011
|
this.resources.push(ProductionResourceDto.fromJS(item));
|
|
29880
30012
|
}
|
|
30013
|
+
this.department = _data["department"] ? DepartmentDto.fromJS(_data["department"]) : undefined;
|
|
29881
30014
|
}
|
|
29882
30015
|
}
|
|
29883
30016
|
static fromJS(data) {
|
|
@@ -29895,6 +30028,7 @@ export class ResourceGroupDto {
|
|
|
29895
30028
|
for (let item of this.resources)
|
|
29896
30029
|
data["resources"].push(item.toJSON());
|
|
29897
30030
|
}
|
|
30031
|
+
data["department"] = this.department ? this.department.toJSON() : undefined;
|
|
29898
30032
|
return data;
|
|
29899
30033
|
}
|
|
29900
30034
|
}
|
|
@@ -29911,6 +30045,7 @@ export class ProductionResourceDto {
|
|
|
29911
30045
|
if (_data) {
|
|
29912
30046
|
this.id = _data["id"];
|
|
29913
30047
|
this.name = _data["name"];
|
|
30048
|
+
this.department = _data["department"] ? DepartmentDto.fromJS(_data["department"]) : undefined;
|
|
29914
30049
|
}
|
|
29915
30050
|
}
|
|
29916
30051
|
static fromJS(data) {
|
|
@@ -29923,6 +30058,7 @@ export class ProductionResourceDto {
|
|
|
29923
30058
|
data = typeof data === 'object' ? data : {};
|
|
29924
30059
|
data["id"] = this.id;
|
|
29925
30060
|
data["name"] = this.name;
|
|
30061
|
+
data["department"] = this.department ? this.department.toJSON() : undefined;
|
|
29926
30062
|
return data;
|
|
29927
30063
|
}
|
|
29928
30064
|
}
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -12043,6 +12043,8 @@ export interface IMesProductionOrderClient {
|
|
|
12043
12043
|
getProductionOrderOpenNonConformances(id: string, onlyOpen: boolean | undefined): Promise<NonConformanceDto[]>;
|
|
12044
12044
|
|
|
12045
12045
|
postMaterialPickList(id: string, operationNumber: number, request: PostMaterialPickListRequest): Promise<MaterialPickListResultDto>;
|
|
12046
|
+
|
|
12047
|
+
listProductionOrderActivities(id: string, operation: number | null | undefined): Promise<ProductionOrderOperationActivityDto[]>;
|
|
12046
12048
|
}
|
|
12047
12049
|
|
|
12048
12050
|
export class MesProductionOrderClient extends AuthorizedApiBase implements IMesProductionOrderClient {
|
|
@@ -12319,6 +12321,51 @@ export class MesProductionOrderClient extends AuthorizedApiBase implements IMesP
|
|
|
12319
12321
|
}
|
|
12320
12322
|
return Promise.resolve<MaterialPickListResultDto>(null as any);
|
|
12321
12323
|
}
|
|
12324
|
+
|
|
12325
|
+
listProductionOrderActivities(id: string, operation: number | null | undefined): Promise<ProductionOrderOperationActivityDto[]> {
|
|
12326
|
+
let url_ = this.baseUrl + "/mes/productionorders/{id}/activities?";
|
|
12327
|
+
if (id === undefined || id === null)
|
|
12328
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
12329
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
12330
|
+
if (operation !== undefined && operation !== null)
|
|
12331
|
+
url_ += "operation=" + encodeURIComponent("" + operation) + "&";
|
|
12332
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
12333
|
+
|
|
12334
|
+
let options_: RequestInit = {
|
|
12335
|
+
method: "GET",
|
|
12336
|
+
headers: {
|
|
12337
|
+
"Accept": "application/json"
|
|
12338
|
+
}
|
|
12339
|
+
};
|
|
12340
|
+
|
|
12341
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
12342
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
12343
|
+
}).then((_response: Response) => {
|
|
12344
|
+
return this.processListProductionOrderActivities(_response);
|
|
12345
|
+
});
|
|
12346
|
+
}
|
|
12347
|
+
|
|
12348
|
+
protected processListProductionOrderActivities(response: Response): Promise<ProductionOrderOperationActivityDto[]> {
|
|
12349
|
+
const status = response.status;
|
|
12350
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
12351
|
+
if (status === 200) {
|
|
12352
|
+
return response.text().then((_responseText) => {
|
|
12353
|
+
let result200: any = null;
|
|
12354
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
12355
|
+
if (Array.isArray(resultData200)) {
|
|
12356
|
+
result200 = [] as any;
|
|
12357
|
+
for (let item of resultData200)
|
|
12358
|
+
result200!.push(ProductionOrderOperationActivityDto.fromJS(item));
|
|
12359
|
+
}
|
|
12360
|
+
return result200;
|
|
12361
|
+
});
|
|
12362
|
+
} else if (status !== 200 && status !== 204) {
|
|
12363
|
+
return response.text().then((_responseText) => {
|
|
12364
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
12365
|
+
});
|
|
12366
|
+
}
|
|
12367
|
+
return Promise.resolve<ProductionOrderOperationActivityDto[]>(null as any);
|
|
12368
|
+
}
|
|
12322
12369
|
}
|
|
12323
12370
|
|
|
12324
12371
|
export interface IMesProductionScheduleClient {
|
|
@@ -23570,6 +23617,7 @@ export class ResourceDto implements IResourceDto {
|
|
|
23570
23617
|
description?: string | null;
|
|
23571
23618
|
resourceType?: string | null;
|
|
23572
23619
|
resourceGroupId?: string | null;
|
|
23620
|
+
department?: DepartmentDto | null;
|
|
23573
23621
|
|
|
23574
23622
|
constructor(data?: IResourceDto) {
|
|
23575
23623
|
if (data) {
|
|
@@ -23588,6 +23636,7 @@ export class ResourceDto implements IResourceDto {
|
|
|
23588
23636
|
this.description = _data["description"];
|
|
23589
23637
|
this.resourceType = _data["resourceType"];
|
|
23590
23638
|
this.resourceGroupId = _data["resourceGroupId"];
|
|
23639
|
+
this.department = _data["department"] ? DepartmentDto.fromJS(_data["department"]) : <any>undefined;
|
|
23591
23640
|
}
|
|
23592
23641
|
}
|
|
23593
23642
|
|
|
@@ -23606,6 +23655,7 @@ export class ResourceDto implements IResourceDto {
|
|
|
23606
23655
|
data["description"] = this.description;
|
|
23607
23656
|
data["resourceType"] = this.resourceType;
|
|
23608
23657
|
data["resourceGroupId"] = this.resourceGroupId;
|
|
23658
|
+
data["department"] = this.department ? this.department.toJSON() : <any>undefined;
|
|
23609
23659
|
return data;
|
|
23610
23660
|
}
|
|
23611
23661
|
}
|
|
@@ -23617,6 +23667,47 @@ export interface IResourceDto {
|
|
|
23617
23667
|
description?: string | null;
|
|
23618
23668
|
resourceType?: string | null;
|
|
23619
23669
|
resourceGroupId?: string | null;
|
|
23670
|
+
department?: DepartmentDto | null;
|
|
23671
|
+
}
|
|
23672
|
+
|
|
23673
|
+
export class DepartmentDto implements IDepartmentDto {
|
|
23674
|
+
number!: string;
|
|
23675
|
+
name!: string;
|
|
23676
|
+
|
|
23677
|
+
constructor(data?: IDepartmentDto) {
|
|
23678
|
+
if (data) {
|
|
23679
|
+
for (var property in data) {
|
|
23680
|
+
if (data.hasOwnProperty(property))
|
|
23681
|
+
(<any>this)[property] = (<any>data)[property];
|
|
23682
|
+
}
|
|
23683
|
+
}
|
|
23684
|
+
}
|
|
23685
|
+
|
|
23686
|
+
init(_data?: any) {
|
|
23687
|
+
if (_data) {
|
|
23688
|
+
this.number = _data["number"];
|
|
23689
|
+
this.name = _data["name"];
|
|
23690
|
+
}
|
|
23691
|
+
}
|
|
23692
|
+
|
|
23693
|
+
static fromJS(data: any): DepartmentDto {
|
|
23694
|
+
data = typeof data === 'object' ? data : {};
|
|
23695
|
+
let result = new DepartmentDto();
|
|
23696
|
+
result.init(data);
|
|
23697
|
+
return result;
|
|
23698
|
+
}
|
|
23699
|
+
|
|
23700
|
+
toJSON(data?: any) {
|
|
23701
|
+
data = typeof data === 'object' ? data : {};
|
|
23702
|
+
data["number"] = this.number;
|
|
23703
|
+
data["name"] = this.name;
|
|
23704
|
+
return data;
|
|
23705
|
+
}
|
|
23706
|
+
}
|
|
23707
|
+
|
|
23708
|
+
export interface IDepartmentDto {
|
|
23709
|
+
number: string;
|
|
23710
|
+
name: string;
|
|
23620
23711
|
}
|
|
23621
23712
|
|
|
23622
23713
|
export type OperationStatusDto = "NotReady" | "Ready" | "Ongoing" | "Completed" | "Stopped";
|
|
@@ -35329,6 +35420,86 @@ export interface IPickListMaterialLineDto {
|
|
|
35329
35420
|
batch?: string | null;
|
|
35330
35421
|
}
|
|
35331
35422
|
|
|
35423
|
+
export class ProductionOrderOperationActivityDto implements IProductionOrderOperationActivityDto {
|
|
35424
|
+
operation!: number;
|
|
35425
|
+
operationId!: string;
|
|
35426
|
+
description?: string | null;
|
|
35427
|
+
resource?: ResourceDto | null;
|
|
35428
|
+
user?: UserDto | null;
|
|
35429
|
+
startTime!: Date;
|
|
35430
|
+
endTime?: Date | null;
|
|
35431
|
+
status!: OperationStatusDto;
|
|
35432
|
+
active!: boolean;
|
|
35433
|
+
startedQuantity?: number | null;
|
|
35434
|
+
producedQuantity?: number | null;
|
|
35435
|
+
scrappedQuantity?: number | null;
|
|
35436
|
+
|
|
35437
|
+
constructor(data?: IProductionOrderOperationActivityDto) {
|
|
35438
|
+
if (data) {
|
|
35439
|
+
for (var property in data) {
|
|
35440
|
+
if (data.hasOwnProperty(property))
|
|
35441
|
+
(<any>this)[property] = (<any>data)[property];
|
|
35442
|
+
}
|
|
35443
|
+
}
|
|
35444
|
+
}
|
|
35445
|
+
|
|
35446
|
+
init(_data?: any) {
|
|
35447
|
+
if (_data) {
|
|
35448
|
+
this.operation = _data["operation"];
|
|
35449
|
+
this.operationId = _data["operationId"];
|
|
35450
|
+
this.description = _data["description"];
|
|
35451
|
+
this.resource = _data["resource"] ? ResourceDto.fromJS(_data["resource"]) : <any>undefined;
|
|
35452
|
+
this.user = _data["user"] ? UserDto.fromJS(_data["user"]) : <any>undefined;
|
|
35453
|
+
this.startTime = _data["startTime"] ? new Date(_data["startTime"].toString()) : <any>undefined;
|
|
35454
|
+
this.endTime = _data["endTime"] ? new Date(_data["endTime"].toString()) : <any>undefined;
|
|
35455
|
+
this.status = _data["status"];
|
|
35456
|
+
this.active = _data["active"];
|
|
35457
|
+
this.startedQuantity = _data["startedQuantity"];
|
|
35458
|
+
this.producedQuantity = _data["producedQuantity"];
|
|
35459
|
+
this.scrappedQuantity = _data["scrappedQuantity"];
|
|
35460
|
+
}
|
|
35461
|
+
}
|
|
35462
|
+
|
|
35463
|
+
static fromJS(data: any): ProductionOrderOperationActivityDto {
|
|
35464
|
+
data = typeof data === 'object' ? data : {};
|
|
35465
|
+
let result = new ProductionOrderOperationActivityDto();
|
|
35466
|
+
result.init(data);
|
|
35467
|
+
return result;
|
|
35468
|
+
}
|
|
35469
|
+
|
|
35470
|
+
toJSON(data?: any) {
|
|
35471
|
+
data = typeof data === 'object' ? data : {};
|
|
35472
|
+
data["operation"] = this.operation;
|
|
35473
|
+
data["operationId"] = this.operationId;
|
|
35474
|
+
data["description"] = this.description;
|
|
35475
|
+
data["resource"] = this.resource ? this.resource.toJSON() : <any>undefined;
|
|
35476
|
+
data["user"] = this.user ? this.user.toJSON() : <any>undefined;
|
|
35477
|
+
data["startTime"] = this.startTime ? this.startTime.toISOString() : <any>undefined;
|
|
35478
|
+
data["endTime"] = this.endTime ? this.endTime.toISOString() : <any>undefined;
|
|
35479
|
+
data["status"] = this.status;
|
|
35480
|
+
data["active"] = this.active;
|
|
35481
|
+
data["startedQuantity"] = this.startedQuantity;
|
|
35482
|
+
data["producedQuantity"] = this.producedQuantity;
|
|
35483
|
+
data["scrappedQuantity"] = this.scrappedQuantity;
|
|
35484
|
+
return data;
|
|
35485
|
+
}
|
|
35486
|
+
}
|
|
35487
|
+
|
|
35488
|
+
export interface IProductionOrderOperationActivityDto {
|
|
35489
|
+
operation: number;
|
|
35490
|
+
operationId: string;
|
|
35491
|
+
description?: string | null;
|
|
35492
|
+
resource?: ResourceDto | null;
|
|
35493
|
+
user?: UserDto | null;
|
|
35494
|
+
startTime: Date;
|
|
35495
|
+
endTime?: Date | null;
|
|
35496
|
+
status: OperationStatusDto;
|
|
35497
|
+
active: boolean;
|
|
35498
|
+
startedQuantity?: number | null;
|
|
35499
|
+
producedQuantity?: number | null;
|
|
35500
|
+
scrappedQuantity?: number | null;
|
|
35501
|
+
}
|
|
35502
|
+
|
|
35332
35503
|
export class PagedResultOfProductionScheduleOperationDto implements IPagedResultOfProductionScheduleOperationDto {
|
|
35333
35504
|
results!: ProductionScheduleOperationDto[];
|
|
35334
35505
|
continuationToken?: string | null;
|
|
@@ -35409,6 +35580,8 @@ export class ProductionScheduleOperationDto implements IProductionScheduleOperat
|
|
|
35409
35580
|
partMaterial?: string | null;
|
|
35410
35581
|
resourceId!: string;
|
|
35411
35582
|
resourceName!: string;
|
|
35583
|
+
resourceDepartmentNumber?: string | null;
|
|
35584
|
+
resourceDepartmentName?: string | null;
|
|
35412
35585
|
bomPosition?: string | null;
|
|
35413
35586
|
customerName?: string | null;
|
|
35414
35587
|
previousOperation?: SurroundingOperationDto | null;
|
|
@@ -35468,6 +35641,8 @@ export class ProductionScheduleOperationDto implements IProductionScheduleOperat
|
|
|
35468
35641
|
this.partMaterial = _data["partMaterial"];
|
|
35469
35642
|
this.resourceId = _data["resourceId"];
|
|
35470
35643
|
this.resourceName = _data["resourceName"];
|
|
35644
|
+
this.resourceDepartmentNumber = _data["resourceDepartmentNumber"];
|
|
35645
|
+
this.resourceDepartmentName = _data["resourceDepartmentName"];
|
|
35471
35646
|
this.bomPosition = _data["bomPosition"];
|
|
35472
35647
|
this.customerName = _data["customerName"];
|
|
35473
35648
|
this.previousOperation = _data["previousOperation"] ? SurroundingOperationDto.fromJS(_data["previousOperation"]) : <any>undefined;
|
|
@@ -35524,6 +35699,8 @@ export class ProductionScheduleOperationDto implements IProductionScheduleOperat
|
|
|
35524
35699
|
data["partMaterial"] = this.partMaterial;
|
|
35525
35700
|
data["resourceId"] = this.resourceId;
|
|
35526
35701
|
data["resourceName"] = this.resourceName;
|
|
35702
|
+
data["resourceDepartmentNumber"] = this.resourceDepartmentNumber;
|
|
35703
|
+
data["resourceDepartmentName"] = this.resourceDepartmentName;
|
|
35527
35704
|
data["bomPosition"] = this.bomPosition;
|
|
35528
35705
|
data["customerName"] = this.customerName;
|
|
35529
35706
|
data["previousOperation"] = this.previousOperation ? this.previousOperation.toJSON() : <any>undefined;
|
|
@@ -35573,6 +35750,8 @@ export interface IProductionScheduleOperationDto {
|
|
|
35573
35750
|
partMaterial?: string | null;
|
|
35574
35751
|
resourceId: string;
|
|
35575
35752
|
resourceName: string;
|
|
35753
|
+
resourceDepartmentNumber?: string | null;
|
|
35754
|
+
resourceDepartmentName?: string | null;
|
|
35576
35755
|
bomPosition?: string | null;
|
|
35577
35756
|
customerName?: string | null;
|
|
35578
35757
|
previousOperation?: SurroundingOperationDto | null;
|
|
@@ -35603,6 +35782,8 @@ export class SurroundingOperationDto implements ISurroundingOperationDto {
|
|
|
35603
35782
|
resourceGroupId?: string | null;
|
|
35604
35783
|
resourceId?: string | null;
|
|
35605
35784
|
resourceName?: string | null;
|
|
35785
|
+
resourceDepartmentNumber?: string | null;
|
|
35786
|
+
resourceDepartmentName?: string | null;
|
|
35606
35787
|
producedQuantity!: number;
|
|
35607
35788
|
scrappedQuantity!: number;
|
|
35608
35789
|
startedQuantity?: number | null;
|
|
@@ -35629,6 +35810,8 @@ export class SurroundingOperationDto implements ISurroundingOperationDto {
|
|
|
35629
35810
|
this.resourceGroupId = _data["resourceGroupId"];
|
|
35630
35811
|
this.resourceId = _data["resourceId"];
|
|
35631
35812
|
this.resourceName = _data["resourceName"];
|
|
35813
|
+
this.resourceDepartmentNumber = _data["resourceDepartmentNumber"];
|
|
35814
|
+
this.resourceDepartmentName = _data["resourceDepartmentName"];
|
|
35632
35815
|
this.producedQuantity = _data["producedQuantity"];
|
|
35633
35816
|
this.scrappedQuantity = _data["scrappedQuantity"];
|
|
35634
35817
|
this.startedQuantity = _data["startedQuantity"];
|
|
@@ -35655,6 +35838,8 @@ export class SurroundingOperationDto implements ISurroundingOperationDto {
|
|
|
35655
35838
|
data["resourceGroupId"] = this.resourceGroupId;
|
|
35656
35839
|
data["resourceId"] = this.resourceId;
|
|
35657
35840
|
data["resourceName"] = this.resourceName;
|
|
35841
|
+
data["resourceDepartmentNumber"] = this.resourceDepartmentNumber;
|
|
35842
|
+
data["resourceDepartmentName"] = this.resourceDepartmentName;
|
|
35658
35843
|
data["producedQuantity"] = this.producedQuantity;
|
|
35659
35844
|
data["scrappedQuantity"] = this.scrappedQuantity;
|
|
35660
35845
|
data["startedQuantity"] = this.startedQuantity;
|
|
@@ -35674,6 +35859,8 @@ export interface ISurroundingOperationDto {
|
|
|
35674
35859
|
resourceGroupId?: string | null;
|
|
35675
35860
|
resourceId?: string | null;
|
|
35676
35861
|
resourceName?: string | null;
|
|
35862
|
+
resourceDepartmentNumber?: string | null;
|
|
35863
|
+
resourceDepartmentName?: string | null;
|
|
35677
35864
|
producedQuantity: number;
|
|
35678
35865
|
scrappedQuantity: number;
|
|
35679
35866
|
startedQuantity?: number | null;
|
|
@@ -37280,6 +37467,7 @@ export class ResourceGroupDto implements IResourceGroupDto {
|
|
|
37280
37467
|
id?: string;
|
|
37281
37468
|
name?: string;
|
|
37282
37469
|
resources!: ProductionResourceDto[];
|
|
37470
|
+
department?: DepartmentDto | null;
|
|
37283
37471
|
|
|
37284
37472
|
constructor(data?: IResourceGroupDto) {
|
|
37285
37473
|
if (data) {
|
|
@@ -37302,6 +37490,7 @@ export class ResourceGroupDto implements IResourceGroupDto {
|
|
|
37302
37490
|
for (let item of _data["resources"])
|
|
37303
37491
|
this.resources!.push(ProductionResourceDto.fromJS(item));
|
|
37304
37492
|
}
|
|
37493
|
+
this.department = _data["department"] ? DepartmentDto.fromJS(_data["department"]) : <any>undefined;
|
|
37305
37494
|
}
|
|
37306
37495
|
}
|
|
37307
37496
|
|
|
@@ -37321,6 +37510,7 @@ export class ResourceGroupDto implements IResourceGroupDto {
|
|
|
37321
37510
|
for (let item of this.resources)
|
|
37322
37511
|
data["resources"].push(item.toJSON());
|
|
37323
37512
|
}
|
|
37513
|
+
data["department"] = this.department ? this.department.toJSON() : <any>undefined;
|
|
37324
37514
|
return data;
|
|
37325
37515
|
}
|
|
37326
37516
|
}
|
|
@@ -37329,11 +37519,13 @@ export interface IResourceGroupDto {
|
|
|
37329
37519
|
id?: string;
|
|
37330
37520
|
name?: string;
|
|
37331
37521
|
resources: ProductionResourceDto[];
|
|
37522
|
+
department?: DepartmentDto | null;
|
|
37332
37523
|
}
|
|
37333
37524
|
|
|
37334
37525
|
export class ProductionResourceDto implements IProductionResourceDto {
|
|
37335
37526
|
id?: string;
|
|
37336
37527
|
name?: string;
|
|
37528
|
+
department?: DepartmentDto | null;
|
|
37337
37529
|
|
|
37338
37530
|
constructor(data?: IProductionResourceDto) {
|
|
37339
37531
|
if (data) {
|
|
@@ -37348,6 +37540,7 @@ export class ProductionResourceDto implements IProductionResourceDto {
|
|
|
37348
37540
|
if (_data) {
|
|
37349
37541
|
this.id = _data["id"];
|
|
37350
37542
|
this.name = _data["name"];
|
|
37543
|
+
this.department = _data["department"] ? DepartmentDto.fromJS(_data["department"]) : <any>undefined;
|
|
37351
37544
|
}
|
|
37352
37545
|
}
|
|
37353
37546
|
|
|
@@ -37362,6 +37555,7 @@ export class ProductionResourceDto implements IProductionResourceDto {
|
|
|
37362
37555
|
data = typeof data === 'object' ? data : {};
|
|
37363
37556
|
data["id"] = this.id;
|
|
37364
37557
|
data["name"] = this.name;
|
|
37558
|
+
data["department"] = this.department ? this.department.toJSON() : <any>undefined;
|
|
37365
37559
|
return data;
|
|
37366
37560
|
}
|
|
37367
37561
|
}
|
|
@@ -37369,6 +37563,7 @@ export class ProductionResourceDto implements IProductionResourceDto {
|
|
|
37369
37563
|
export interface IProductionResourceDto {
|
|
37370
37564
|
id?: string;
|
|
37371
37565
|
name?: string;
|
|
37566
|
+
department?: DepartmentDto | null;
|
|
37372
37567
|
}
|
|
37373
37568
|
|
|
37374
37569
|
export class PagedResultOfMeasurementFormListDto implements IPagedResultOfMeasurementFormListDto {
|