@ignos/api-client 20240926.0.10453 → 20241004.0.10504
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 +4 -3
- package/lib/ignosportal-api.js +4 -37
- package/package.json +1 -1
- package/src/ignosportal-api.ts +8 -38
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -1699,7 +1699,6 @@ export interface IMesProductionScheduleClient {
|
|
|
1699
1699
|
postListProductionScheduleOperations(request: ListProductionScheduleOperationsRequest | undefined): Promise<PagedResultOfProductionScheduleOperationDto>;
|
|
1700
1700
|
getAvailableProductionScheduleFilters(request: GetAvailableProductionScheduleFiltersRequest | undefined): Promise<ProductionScheduleFiltersDto>;
|
|
1701
1701
|
listMyCurrentWorkActivities(): Promise<CurrentWorkActivityDto>;
|
|
1702
|
-
listMyCurrentWorkActivitiesV2(): Promise<CurrentWorkActivityDto>;
|
|
1703
1702
|
startOperations(request: StartOperations): Promise<void>;
|
|
1704
1703
|
reportOperationProgress(request: ReportOperationProgress): Promise<void>;
|
|
1705
1704
|
getScheduledWorkSummary(resourceGroup: string | null | undefined, resourceId: string | null | undefined): Promise<ScheduledWorkSummaryDto>;
|
|
@@ -1719,8 +1718,6 @@ export declare class MesProductionScheduleClient extends AuthorizedApiBase imple
|
|
|
1719
1718
|
protected processGetAvailableProductionScheduleFilters(response: Response): Promise<ProductionScheduleFiltersDto>;
|
|
1720
1719
|
listMyCurrentWorkActivities(): Promise<CurrentWorkActivityDto>;
|
|
1721
1720
|
protected processListMyCurrentWorkActivities(response: Response): Promise<CurrentWorkActivityDto>;
|
|
1722
|
-
listMyCurrentWorkActivitiesV2(): Promise<CurrentWorkActivityDto>;
|
|
1723
|
-
protected processListMyCurrentWorkActivitiesV2(response: Response): Promise<CurrentWorkActivityDto>;
|
|
1724
1721
|
startOperations(request: StartOperations): Promise<void>;
|
|
1725
1722
|
protected processStartOperations(response: Response): Promise<void>;
|
|
1726
1723
|
reportOperationProgress(request: ReportOperationProgress): Promise<void>;
|
|
@@ -5297,6 +5294,8 @@ export declare class MachineErpDataDto implements IMachineErpDataDto {
|
|
|
5297
5294
|
workOrderId: string;
|
|
5298
5295
|
part: PartDto;
|
|
5299
5296
|
quantity: number;
|
|
5297
|
+
producedQuantity: number;
|
|
5298
|
+
scrappedQuantity: number;
|
|
5300
5299
|
operation: number;
|
|
5301
5300
|
plannedTime: number;
|
|
5302
5301
|
usedTime: number;
|
|
@@ -5315,6 +5314,8 @@ export interface IMachineErpDataDto {
|
|
|
5315
5314
|
workOrderId: string;
|
|
5316
5315
|
part: PartDto;
|
|
5317
5316
|
quantity: number;
|
|
5317
|
+
producedQuantity: number;
|
|
5318
|
+
scrappedQuantity: number;
|
|
5318
5319
|
operation: number;
|
|
5319
5320
|
plannedTime: number;
|
|
5320
5321
|
usedTime: number;
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -13926,43 +13926,6 @@ export class MesProductionScheduleClient extends AuthorizedApiBase {
|
|
|
13926
13926
|
}
|
|
13927
13927
|
return Promise.resolve(null);
|
|
13928
13928
|
}
|
|
13929
|
-
listMyCurrentWorkActivitiesV2() {
|
|
13930
|
-
let url_ = this.baseUrl + "/mes/myactivework/v2";
|
|
13931
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
13932
|
-
let options_ = {
|
|
13933
|
-
method: "GET",
|
|
13934
|
-
headers: {
|
|
13935
|
-
"Accept": "application/json"
|
|
13936
|
-
}
|
|
13937
|
-
};
|
|
13938
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
13939
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
13940
|
-
}).then((_response) => {
|
|
13941
|
-
return this.processListMyCurrentWorkActivitiesV2(_response);
|
|
13942
|
-
});
|
|
13943
|
-
}
|
|
13944
|
-
processListMyCurrentWorkActivitiesV2(response) {
|
|
13945
|
-
const status = response.status;
|
|
13946
|
-
let _headers = {};
|
|
13947
|
-
if (response.headers && response.headers.forEach) {
|
|
13948
|
-
response.headers.forEach((v, k) => _headers[k] = v);
|
|
13949
|
-
}
|
|
13950
|
-
;
|
|
13951
|
-
if (status === 200) {
|
|
13952
|
-
return response.text().then((_responseText) => {
|
|
13953
|
-
let result200 = null;
|
|
13954
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
13955
|
-
result200 = CurrentWorkActivityDto.fromJS(resultData200);
|
|
13956
|
-
return result200;
|
|
13957
|
-
});
|
|
13958
|
-
}
|
|
13959
|
-
else if (status !== 200 && status !== 204) {
|
|
13960
|
-
return response.text().then((_responseText) => {
|
|
13961
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
13962
|
-
});
|
|
13963
|
-
}
|
|
13964
|
-
return Promise.resolve(null);
|
|
13965
|
-
}
|
|
13966
13929
|
startOperations(request) {
|
|
13967
13930
|
let url_ = this.baseUrl + "/mes/start-operations";
|
|
13968
13931
|
url_ = url_.replace(/[?&]$/, "");
|
|
@@ -25822,6 +25785,8 @@ export class MachineErpDataDto {
|
|
|
25822
25785
|
this.workOrderId = _data["workOrderId"];
|
|
25823
25786
|
this.part = _data["part"] ? PartDto.fromJS(_data["part"]) : new PartDto();
|
|
25824
25787
|
this.quantity = _data["quantity"];
|
|
25788
|
+
this.producedQuantity = _data["producedQuantity"];
|
|
25789
|
+
this.scrappedQuantity = _data["scrappedQuantity"];
|
|
25825
25790
|
this.operation = _data["operation"];
|
|
25826
25791
|
this.plannedTime = _data["plannedTime"];
|
|
25827
25792
|
this.usedTime = _data["usedTime"];
|
|
@@ -25844,6 +25809,8 @@ export class MachineErpDataDto {
|
|
|
25844
25809
|
data["workOrderId"] = this.workOrderId;
|
|
25845
25810
|
data["part"] = this.part ? this.part.toJSON() : undefined;
|
|
25846
25811
|
data["quantity"] = this.quantity;
|
|
25812
|
+
data["producedQuantity"] = this.producedQuantity;
|
|
25813
|
+
data["scrappedQuantity"] = this.scrappedQuantity;
|
|
25847
25814
|
data["operation"] = this.operation;
|
|
25848
25815
|
data["plannedTime"] = this.plannedTime;
|
|
25849
25816
|
data["usedTime"] = this.usedTime;
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -14715,8 +14715,6 @@ export interface IMesProductionScheduleClient {
|
|
|
14715
14715
|
|
|
14716
14716
|
listMyCurrentWorkActivities(): Promise<CurrentWorkActivityDto>;
|
|
14717
14717
|
|
|
14718
|
-
listMyCurrentWorkActivitiesV2(): Promise<CurrentWorkActivityDto>;
|
|
14719
|
-
|
|
14720
14718
|
startOperations(request: StartOperations): Promise<void>;
|
|
14721
14719
|
|
|
14722
14720
|
reportOperationProgress(request: ReportOperationProgress): Promise<void>;
|
|
@@ -14907,42 +14905,6 @@ export class MesProductionScheduleClient extends AuthorizedApiBase implements IM
|
|
|
14907
14905
|
return Promise.resolve<CurrentWorkActivityDto>(null as any);
|
|
14908
14906
|
}
|
|
14909
14907
|
|
|
14910
|
-
listMyCurrentWorkActivitiesV2(): Promise<CurrentWorkActivityDto> {
|
|
14911
|
-
let url_ = this.baseUrl + "/mes/myactivework/v2";
|
|
14912
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
14913
|
-
|
|
14914
|
-
let options_: RequestInit = {
|
|
14915
|
-
method: "GET",
|
|
14916
|
-
headers: {
|
|
14917
|
-
"Accept": "application/json"
|
|
14918
|
-
}
|
|
14919
|
-
};
|
|
14920
|
-
|
|
14921
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
14922
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
14923
|
-
}).then((_response: Response) => {
|
|
14924
|
-
return this.processListMyCurrentWorkActivitiesV2(_response);
|
|
14925
|
-
});
|
|
14926
|
-
}
|
|
14927
|
-
|
|
14928
|
-
protected processListMyCurrentWorkActivitiesV2(response: Response): Promise<CurrentWorkActivityDto> {
|
|
14929
|
-
const status = response.status;
|
|
14930
|
-
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
14931
|
-
if (status === 200) {
|
|
14932
|
-
return response.text().then((_responseText) => {
|
|
14933
|
-
let result200: any = null;
|
|
14934
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
14935
|
-
result200 = CurrentWorkActivityDto.fromJS(resultData200);
|
|
14936
|
-
return result200;
|
|
14937
|
-
});
|
|
14938
|
-
} else if (status !== 200 && status !== 204) {
|
|
14939
|
-
return response.text().then((_responseText) => {
|
|
14940
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
14941
|
-
});
|
|
14942
|
-
}
|
|
14943
|
-
return Promise.resolve<CurrentWorkActivityDto>(null as any);
|
|
14944
|
-
}
|
|
14945
|
-
|
|
14946
14908
|
startOperations(request: StartOperations): Promise<void> {
|
|
14947
14909
|
let url_ = this.baseUrl + "/mes/start-operations";
|
|
14948
14910
|
url_ = url_.replace(/[?&]$/, "");
|
|
@@ -30061,6 +30023,8 @@ export class MachineErpDataDto implements IMachineErpDataDto {
|
|
|
30061
30023
|
workOrderId!: string;
|
|
30062
30024
|
part!: PartDto;
|
|
30063
30025
|
quantity!: number;
|
|
30026
|
+
producedQuantity!: number;
|
|
30027
|
+
scrappedQuantity!: number;
|
|
30064
30028
|
operation!: number;
|
|
30065
30029
|
plannedTime!: number;
|
|
30066
30030
|
usedTime!: number;
|
|
@@ -30088,6 +30052,8 @@ export class MachineErpDataDto implements IMachineErpDataDto {
|
|
|
30088
30052
|
this.workOrderId = _data["workOrderId"];
|
|
30089
30053
|
this.part = _data["part"] ? PartDto.fromJS(_data["part"]) : new PartDto();
|
|
30090
30054
|
this.quantity = _data["quantity"];
|
|
30055
|
+
this.producedQuantity = _data["producedQuantity"];
|
|
30056
|
+
this.scrappedQuantity = _data["scrappedQuantity"];
|
|
30091
30057
|
this.operation = _data["operation"];
|
|
30092
30058
|
this.plannedTime = _data["plannedTime"];
|
|
30093
30059
|
this.usedTime = _data["usedTime"];
|
|
@@ -30112,6 +30078,8 @@ export class MachineErpDataDto implements IMachineErpDataDto {
|
|
|
30112
30078
|
data["workOrderId"] = this.workOrderId;
|
|
30113
30079
|
data["part"] = this.part ? this.part.toJSON() : <any>undefined;
|
|
30114
30080
|
data["quantity"] = this.quantity;
|
|
30081
|
+
data["producedQuantity"] = this.producedQuantity;
|
|
30082
|
+
data["scrappedQuantity"] = this.scrappedQuantity;
|
|
30115
30083
|
data["operation"] = this.operation;
|
|
30116
30084
|
data["plannedTime"] = this.plannedTime;
|
|
30117
30085
|
data["usedTime"] = this.usedTime;
|
|
@@ -30129,6 +30097,8 @@ export interface IMachineErpDataDto {
|
|
|
30129
30097
|
workOrderId: string;
|
|
30130
30098
|
part: PartDto;
|
|
30131
30099
|
quantity: number;
|
|
30100
|
+
producedQuantity: number;
|
|
30101
|
+
scrappedQuantity: number;
|
|
30132
30102
|
operation: number;
|
|
30133
30103
|
plannedTime: number;
|
|
30134
30104
|
usedTime: number;
|