@ignos/api-client 20251006.0.12774-alpha → 20251008.0.12788-alpha
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/ignosportal-api.d.ts +49 -6
- package/lib/ignosportal-api.js +150 -6
- package/package.json +1 -1
- package/src/ignosportal-api.ts +198 -12
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -365,6 +365,7 @@ export declare class SustainabilityClient extends AuthorizedApiBase implements I
|
|
|
365
365
|
}
|
|
366
366
|
export interface IMachineAlarmsClient {
|
|
367
367
|
listMachineAlarms(alarmType: MachineAlarmType | null | undefined, assetId: number | undefined, startTime: Date | undefined, endTime: Date | null | undefined, subType: string | null | undefined, nativeCode: string | null | undefined, nativeSeverity: number | null | undefined, name: string | null | undefined, sequence: string | null | undefined, limit: number | undefined, continuationToken: string | null | undefined, orderBy: string | null | undefined, sortDirection: string | null | undefined): Promise<PagedResultOfMachineAlarmDto>;
|
|
368
|
+
listGroupedMachineIncidents(request: ListGroupedMachineIncidentsRequest): Promise<PagedResultOfGroupedMachineIncidentDto>;
|
|
368
369
|
listAlarmsPerMachine(startTime: Date | undefined, endTime: Date | null | undefined): Promise<MachineAlarmSummaryDto[]>;
|
|
369
370
|
listAlarmSeverityOccurrences(startTime: Date | undefined, endTime: Date | null | undefined): Promise<MachineAlarmSeverityOccurenceDto[]>;
|
|
370
371
|
countMachineAlarms(alarmType: MachineAlarmType | null | undefined, assetId: number | undefined, startTime: Date | undefined, endTime: Date | null | undefined, subType: string | null | undefined, nativeCode: string | null | undefined, nativeSeverity: number | null | undefined, name: string | null | undefined, sequence: string | null | undefined): Promise<MachineAlarmCountDto>;
|
|
@@ -379,6 +380,8 @@ export declare class MachineAlarmsClient extends AuthorizedApiBase implements IM
|
|
|
379
380
|
});
|
|
380
381
|
listMachineAlarms(alarmType: MachineAlarmType | null | undefined, assetId: number | undefined, startTime: Date | undefined, endTime: Date | null | undefined, subType: string | null | undefined, nativeCode: string | null | undefined, nativeSeverity: number | null | undefined, name: string | null | undefined, sequence: string | null | undefined, limit: number | undefined, continuationToken: string | null | undefined, orderBy: string | null | undefined, sortDirection: string | null | undefined): Promise<PagedResultOfMachineAlarmDto>;
|
|
381
382
|
protected processListMachineAlarms(response: Response): Promise<PagedResultOfMachineAlarmDto>;
|
|
383
|
+
listGroupedMachineIncidents(request: ListGroupedMachineIncidentsRequest): Promise<PagedResultOfGroupedMachineIncidentDto>;
|
|
384
|
+
protected processListGroupedMachineIncidents(response: Response): Promise<PagedResultOfGroupedMachineIncidentDto>;
|
|
382
385
|
listAlarmsPerMachine(startTime: Date | undefined, endTime: Date | null | undefined): Promise<MachineAlarmSummaryDto[]>;
|
|
383
386
|
protected processListAlarmsPerMachine(response: Response): Promise<MachineAlarmSummaryDto[]>;
|
|
384
387
|
listAlarmSeverityOccurrences(startTime: Date | undefined, endTime: Date | null | undefined): Promise<MachineAlarmSeverityOccurenceDto[]>;
|
|
@@ -3737,6 +3740,48 @@ export interface IMachineAlarmDto {
|
|
|
3737
3740
|
endTime?: Date | null;
|
|
3738
3741
|
}
|
|
3739
3742
|
export type MachineAlarmType = "Fault" | "Warning";
|
|
3743
|
+
export declare class PagedResultOfGroupedMachineIncidentDto implements IPagedResultOfGroupedMachineIncidentDto {
|
|
3744
|
+
results: GroupedMachineIncidentDto[];
|
|
3745
|
+
continuationToken?: string | null;
|
|
3746
|
+
constructor(data?: IPagedResultOfGroupedMachineIncidentDto);
|
|
3747
|
+
init(_data?: any): void;
|
|
3748
|
+
static fromJS(data: any): PagedResultOfGroupedMachineIncidentDto;
|
|
3749
|
+
toJSON(data?: any): any;
|
|
3750
|
+
}
|
|
3751
|
+
export interface IPagedResultOfGroupedMachineIncidentDto {
|
|
3752
|
+
results: GroupedMachineIncidentDto[];
|
|
3753
|
+
continuationToken?: string | null;
|
|
3754
|
+
}
|
|
3755
|
+
export declare class GroupedMachineIncidentDto extends MachineAlarmDto implements IGroupedMachineIncidentDto {
|
|
3756
|
+
incidents?: MachineAlarmDto[];
|
|
3757
|
+
constructor(data?: IGroupedMachineIncidentDto);
|
|
3758
|
+
init(_data?: any): void;
|
|
3759
|
+
static fromJS(data: any): GroupedMachineIncidentDto;
|
|
3760
|
+
toJSON(data?: any): any;
|
|
3761
|
+
}
|
|
3762
|
+
export interface IGroupedMachineIncidentDto extends IMachineAlarmDto {
|
|
3763
|
+
incidents?: MachineAlarmDto[];
|
|
3764
|
+
}
|
|
3765
|
+
export declare class ListGroupedMachineIncidentsRequest implements IListGroupedMachineIncidentsRequest {
|
|
3766
|
+
assetId: number;
|
|
3767
|
+
startTime: Date;
|
|
3768
|
+
endTime?: Date | null;
|
|
3769
|
+
nativeCode?: string | null;
|
|
3770
|
+
limit?: number | null;
|
|
3771
|
+
continuationToken?: string | null;
|
|
3772
|
+
constructor(data?: IListGroupedMachineIncidentsRequest);
|
|
3773
|
+
init(_data?: any): void;
|
|
3774
|
+
static fromJS(data: any): ListGroupedMachineIncidentsRequest;
|
|
3775
|
+
toJSON(data?: any): any;
|
|
3776
|
+
}
|
|
3777
|
+
export interface IListGroupedMachineIncidentsRequest {
|
|
3778
|
+
assetId: number;
|
|
3779
|
+
startTime: Date;
|
|
3780
|
+
endTime?: Date | null;
|
|
3781
|
+
nativeCode?: string | null;
|
|
3782
|
+
limit?: number | null;
|
|
3783
|
+
continuationToken?: string | null;
|
|
3784
|
+
}
|
|
3740
3785
|
export declare class MachineAlarmSummaryDto implements IMachineAlarmSummaryDto {
|
|
3741
3786
|
assetId: number;
|
|
3742
3787
|
assetName: string;
|
|
@@ -10261,6 +10306,7 @@ export declare class TrackingHistoryDto implements ITrackingHistoryDto {
|
|
|
10261
10306
|
materialLine?: number | null;
|
|
10262
10307
|
materialPartName?: string | null;
|
|
10263
10308
|
materialPartNumber?: string | null;
|
|
10309
|
+
category?: string | null;
|
|
10264
10310
|
currentTracking?: TrackingEventDto | null;
|
|
10265
10311
|
trackingEvents: TrackingEventDto[];
|
|
10266
10312
|
suggestions?: SuggestionsItemDto | null;
|
|
@@ -10277,6 +10323,7 @@ export interface ITrackingHistoryDto {
|
|
|
10277
10323
|
materialLine?: number | null;
|
|
10278
10324
|
materialPartName?: string | null;
|
|
10279
10325
|
materialPartNumber?: string | null;
|
|
10326
|
+
category?: string | null;
|
|
10280
10327
|
currentTracking?: TrackingEventDto | null;
|
|
10281
10328
|
trackingEvents: TrackingEventDto[];
|
|
10282
10329
|
suggestions?: SuggestionsItemDto | null;
|
|
@@ -10357,6 +10404,7 @@ export declare class TrackingHistoryFlattenedDto implements ITrackingHistoryFlat
|
|
|
10357
10404
|
materialLine?: number | null;
|
|
10358
10405
|
materialPartName?: string | null;
|
|
10359
10406
|
materialPartNumber?: string | null;
|
|
10407
|
+
category?: string | null;
|
|
10360
10408
|
currentTracking?: TrackingEventDto | null;
|
|
10361
10409
|
trackingEvents: TrackingEventDto[];
|
|
10362
10410
|
constructor(data?: ITrackingHistoryFlattenedDto);
|
|
@@ -10379,6 +10427,7 @@ export interface ITrackingHistoryFlattenedDto {
|
|
|
10379
10427
|
materialLine?: number | null;
|
|
10380
10428
|
materialPartName?: string | null;
|
|
10381
10429
|
materialPartNumber?: string | null;
|
|
10430
|
+
category?: string | null;
|
|
10382
10431
|
currentTracking?: TrackingEventDto | null;
|
|
10383
10432
|
trackingEvents: TrackingEventDto[];
|
|
10384
10433
|
}
|
|
@@ -10683,7 +10732,6 @@ export declare class ProductionOrderOperationDto implements IProductionOrderOper
|
|
|
10683
10732
|
quantity: number;
|
|
10684
10733
|
startedQuantity?: number | null;
|
|
10685
10734
|
ongoingQuantity?: number | null;
|
|
10686
|
-
earlierOperationsScrappedQuantity: number;
|
|
10687
10735
|
availableToStartQuantity: number;
|
|
10688
10736
|
workInstructions?: string | null;
|
|
10689
10737
|
note?: string | null;
|
|
@@ -10721,7 +10769,6 @@ export interface IProductionOrderOperationDto {
|
|
|
10721
10769
|
quantity: number;
|
|
10722
10770
|
startedQuantity?: number | null;
|
|
10723
10771
|
ongoingQuantity?: number | null;
|
|
10724
|
-
earlierOperationsScrappedQuantity: number;
|
|
10725
10772
|
availableToStartQuantity: number;
|
|
10726
10773
|
workInstructions?: string | null;
|
|
10727
10774
|
note?: string | null;
|
|
@@ -11145,7 +11192,6 @@ export declare class ProductionScheduleOperationDto implements IProductionSchedu
|
|
|
11145
11192
|
producedQuantity: number;
|
|
11146
11193
|
scrappedQuantity: number;
|
|
11147
11194
|
availableToStartQuantity: number;
|
|
11148
|
-
earlierOperationsScrappedQuantity: number;
|
|
11149
11195
|
startedQuantity?: number | null;
|
|
11150
11196
|
ongoingQuantity?: number | null;
|
|
11151
11197
|
project?: WorkOrderProjectDto | null;
|
|
@@ -11200,7 +11246,6 @@ export interface IProductionScheduleOperationDto {
|
|
|
11200
11246
|
producedQuantity: number;
|
|
11201
11247
|
scrappedQuantity: number;
|
|
11202
11248
|
availableToStartQuantity: number;
|
|
11203
|
-
earlierOperationsScrappedQuantity: number;
|
|
11204
11249
|
startedQuantity?: number | null;
|
|
11205
11250
|
ongoingQuantity?: number | null;
|
|
11206
11251
|
project?: WorkOrderProjectDto | null;
|
|
@@ -11247,7 +11292,6 @@ export declare class SurroundingOperationDto implements ISurroundingOperationDto
|
|
|
11247
11292
|
resourceDepartmentName?: string | null;
|
|
11248
11293
|
producedQuantity: number;
|
|
11249
11294
|
scrappedQuantity: number;
|
|
11250
|
-
earlierOperationsScrappedQuantity: number;
|
|
11251
11295
|
startedQuantity?: number | null;
|
|
11252
11296
|
constructor(data?: ISurroundingOperationDto);
|
|
11253
11297
|
init(_data?: any): void;
|
|
@@ -11270,7 +11314,6 @@ export interface ISurroundingOperationDto {
|
|
|
11270
11314
|
resourceDepartmentName?: string | null;
|
|
11271
11315
|
producedQuantity: number;
|
|
11272
11316
|
scrappedQuantity: number;
|
|
11273
|
-
earlierOperationsScrappedQuantity: number;
|
|
11274
11317
|
startedQuantity?: number | null;
|
|
11275
11318
|
}
|
|
11276
11319
|
export declare class OperationPrerequisitesDto implements IOperationPrerequisitesDto {
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -2091,6 +2091,46 @@ export class MachineAlarmsClient extends AuthorizedApiBase {
|
|
|
2091
2091
|
}
|
|
2092
2092
|
return Promise.resolve(null);
|
|
2093
2093
|
}
|
|
2094
|
+
listGroupedMachineIncidents(request) {
|
|
2095
|
+
let url_ = this.baseUrl + "/machinealarms/groupedincidents";
|
|
2096
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
2097
|
+
const content_ = JSON.stringify(request);
|
|
2098
|
+
let options_ = {
|
|
2099
|
+
body: content_,
|
|
2100
|
+
method: "POST",
|
|
2101
|
+
headers: {
|
|
2102
|
+
"Content-Type": "application/json",
|
|
2103
|
+
"Accept": "application/json"
|
|
2104
|
+
}
|
|
2105
|
+
};
|
|
2106
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
2107
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
2108
|
+
}).then((_response) => {
|
|
2109
|
+
return this.processListGroupedMachineIncidents(_response);
|
|
2110
|
+
});
|
|
2111
|
+
}
|
|
2112
|
+
processListGroupedMachineIncidents(response) {
|
|
2113
|
+
const status = response.status;
|
|
2114
|
+
let _headers = {};
|
|
2115
|
+
if (response.headers && response.headers.forEach) {
|
|
2116
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
2117
|
+
}
|
|
2118
|
+
;
|
|
2119
|
+
if (status === 200) {
|
|
2120
|
+
return response.text().then((_responseText) => {
|
|
2121
|
+
let result200 = null;
|
|
2122
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
2123
|
+
result200 = PagedResultOfGroupedMachineIncidentDto.fromJS(resultData200);
|
|
2124
|
+
return result200;
|
|
2125
|
+
});
|
|
2126
|
+
}
|
|
2127
|
+
else if (status !== 200 && status !== 204) {
|
|
2128
|
+
return response.text().then((_responseText) => {
|
|
2129
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
2130
|
+
});
|
|
2131
|
+
}
|
|
2132
|
+
return Promise.resolve(null);
|
|
2133
|
+
}
|
|
2094
2134
|
listAlarmsPerMachine(startTime, endTime) {
|
|
2095
2135
|
let url_ = this.baseUrl + "/machinealarms/alarmspermachine?";
|
|
2096
2136
|
if (startTime === null)
|
|
@@ -25418,6 +25458,112 @@ export class MachineAlarmDto {
|
|
|
25418
25458
|
return data;
|
|
25419
25459
|
}
|
|
25420
25460
|
}
|
|
25461
|
+
export class PagedResultOfGroupedMachineIncidentDto {
|
|
25462
|
+
constructor(data) {
|
|
25463
|
+
if (data) {
|
|
25464
|
+
for (var property in data) {
|
|
25465
|
+
if (data.hasOwnProperty(property))
|
|
25466
|
+
this[property] = data[property];
|
|
25467
|
+
}
|
|
25468
|
+
}
|
|
25469
|
+
if (!data) {
|
|
25470
|
+
this.results = [];
|
|
25471
|
+
}
|
|
25472
|
+
}
|
|
25473
|
+
init(_data) {
|
|
25474
|
+
if (_data) {
|
|
25475
|
+
if (Array.isArray(_data["results"])) {
|
|
25476
|
+
this.results = [];
|
|
25477
|
+
for (let item of _data["results"])
|
|
25478
|
+
this.results.push(GroupedMachineIncidentDto.fromJS(item));
|
|
25479
|
+
}
|
|
25480
|
+
this.continuationToken = _data["continuationToken"];
|
|
25481
|
+
}
|
|
25482
|
+
}
|
|
25483
|
+
static fromJS(data) {
|
|
25484
|
+
data = typeof data === 'object' ? data : {};
|
|
25485
|
+
let result = new PagedResultOfGroupedMachineIncidentDto();
|
|
25486
|
+
result.init(data);
|
|
25487
|
+
return result;
|
|
25488
|
+
}
|
|
25489
|
+
toJSON(data) {
|
|
25490
|
+
data = typeof data === 'object' ? data : {};
|
|
25491
|
+
if (Array.isArray(this.results)) {
|
|
25492
|
+
data["results"] = [];
|
|
25493
|
+
for (let item of this.results)
|
|
25494
|
+
data["results"].push(item.toJSON());
|
|
25495
|
+
}
|
|
25496
|
+
data["continuationToken"] = this.continuationToken;
|
|
25497
|
+
return data;
|
|
25498
|
+
}
|
|
25499
|
+
}
|
|
25500
|
+
export class GroupedMachineIncidentDto extends MachineAlarmDto {
|
|
25501
|
+
constructor(data) {
|
|
25502
|
+
super(data);
|
|
25503
|
+
}
|
|
25504
|
+
init(_data) {
|
|
25505
|
+
super.init(_data);
|
|
25506
|
+
if (_data) {
|
|
25507
|
+
if (Array.isArray(_data["incidents"])) {
|
|
25508
|
+
this.incidents = [];
|
|
25509
|
+
for (let item of _data["incidents"])
|
|
25510
|
+
this.incidents.push(MachineAlarmDto.fromJS(item));
|
|
25511
|
+
}
|
|
25512
|
+
}
|
|
25513
|
+
}
|
|
25514
|
+
static fromJS(data) {
|
|
25515
|
+
data = typeof data === 'object' ? data : {};
|
|
25516
|
+
let result = new GroupedMachineIncidentDto();
|
|
25517
|
+
result.init(data);
|
|
25518
|
+
return result;
|
|
25519
|
+
}
|
|
25520
|
+
toJSON(data) {
|
|
25521
|
+
data = typeof data === 'object' ? data : {};
|
|
25522
|
+
if (Array.isArray(this.incidents)) {
|
|
25523
|
+
data["incidents"] = [];
|
|
25524
|
+
for (let item of this.incidents)
|
|
25525
|
+
data["incidents"].push(item.toJSON());
|
|
25526
|
+
}
|
|
25527
|
+
super.toJSON(data);
|
|
25528
|
+
return data;
|
|
25529
|
+
}
|
|
25530
|
+
}
|
|
25531
|
+
export class ListGroupedMachineIncidentsRequest {
|
|
25532
|
+
constructor(data) {
|
|
25533
|
+
if (data) {
|
|
25534
|
+
for (var property in data) {
|
|
25535
|
+
if (data.hasOwnProperty(property))
|
|
25536
|
+
this[property] = data[property];
|
|
25537
|
+
}
|
|
25538
|
+
}
|
|
25539
|
+
}
|
|
25540
|
+
init(_data) {
|
|
25541
|
+
if (_data) {
|
|
25542
|
+
this.assetId = _data["assetId"];
|
|
25543
|
+
this.startTime = _data["startTime"] ? new Date(_data["startTime"].toString()) : undefined;
|
|
25544
|
+
this.endTime = _data["endTime"] ? new Date(_data["endTime"].toString()) : undefined;
|
|
25545
|
+
this.nativeCode = _data["nativeCode"];
|
|
25546
|
+
this.limit = _data["limit"];
|
|
25547
|
+
this.continuationToken = _data["continuationToken"];
|
|
25548
|
+
}
|
|
25549
|
+
}
|
|
25550
|
+
static fromJS(data) {
|
|
25551
|
+
data = typeof data === 'object' ? data : {};
|
|
25552
|
+
let result = new ListGroupedMachineIncidentsRequest();
|
|
25553
|
+
result.init(data);
|
|
25554
|
+
return result;
|
|
25555
|
+
}
|
|
25556
|
+
toJSON(data) {
|
|
25557
|
+
data = typeof data === 'object' ? data : {};
|
|
25558
|
+
data["assetId"] = this.assetId;
|
|
25559
|
+
data["startTime"] = this.startTime ? this.startTime.toISOString() : undefined;
|
|
25560
|
+
data["endTime"] = this.endTime ? this.endTime.toISOString() : undefined;
|
|
25561
|
+
data["nativeCode"] = this.nativeCode;
|
|
25562
|
+
data["limit"] = this.limit;
|
|
25563
|
+
data["continuationToken"] = this.continuationToken;
|
|
25564
|
+
return data;
|
|
25565
|
+
}
|
|
25566
|
+
}
|
|
25421
25567
|
export class MachineAlarmSummaryDto {
|
|
25422
25568
|
constructor(data) {
|
|
25423
25569
|
if (data) {
|
|
@@ -38849,6 +38995,7 @@ export class TrackingHistoryDto {
|
|
|
38849
38995
|
this.materialLine = _data["materialLine"];
|
|
38850
38996
|
this.materialPartName = _data["materialPartName"];
|
|
38851
38997
|
this.materialPartNumber = _data["materialPartNumber"];
|
|
38998
|
+
this.category = _data["category"];
|
|
38852
38999
|
this.currentTracking = _data["currentTracking"] ? TrackingEventDto.fromJS(_data["currentTracking"]) : undefined;
|
|
38853
39000
|
if (Array.isArray(_data["trackingEvents"])) {
|
|
38854
39001
|
this.trackingEvents = [];
|
|
@@ -38873,6 +39020,7 @@ export class TrackingHistoryDto {
|
|
|
38873
39020
|
data["materialLine"] = this.materialLine;
|
|
38874
39021
|
data["materialPartName"] = this.materialPartName;
|
|
38875
39022
|
data["materialPartNumber"] = this.materialPartNumber;
|
|
39023
|
+
data["category"] = this.category;
|
|
38876
39024
|
data["currentTracking"] = this.currentTracking ? this.currentTracking.toJSON() : undefined;
|
|
38877
39025
|
if (Array.isArray(this.trackingEvents)) {
|
|
38878
39026
|
data["trackingEvents"] = [];
|
|
@@ -39070,6 +39218,7 @@ export class TrackingHistoryFlattenedDto {
|
|
|
39070
39218
|
this.materialLine = _data["materialLine"];
|
|
39071
39219
|
this.materialPartName = _data["materialPartName"];
|
|
39072
39220
|
this.materialPartNumber = _data["materialPartNumber"];
|
|
39221
|
+
this.category = _data["category"];
|
|
39073
39222
|
this.currentTracking = _data["currentTracking"] ? TrackingEventDto.fromJS(_data["currentTracking"]) : undefined;
|
|
39074
39223
|
if (Array.isArray(_data["trackingEvents"])) {
|
|
39075
39224
|
this.trackingEvents = [];
|
|
@@ -39100,6 +39249,7 @@ export class TrackingHistoryFlattenedDto {
|
|
|
39100
39249
|
data["materialLine"] = this.materialLine;
|
|
39101
39250
|
data["materialPartName"] = this.materialPartName;
|
|
39102
39251
|
data["materialPartNumber"] = this.materialPartNumber;
|
|
39252
|
+
data["category"] = this.category;
|
|
39103
39253
|
data["currentTracking"] = this.currentTracking ? this.currentTracking.toJSON() : undefined;
|
|
39104
39254
|
if (Array.isArray(this.trackingEvents)) {
|
|
39105
39255
|
data["trackingEvents"] = [];
|
|
@@ -39767,7 +39917,6 @@ export class ProductionOrderOperationDto {
|
|
|
39767
39917
|
this.quantity = _data["quantity"];
|
|
39768
39918
|
this.startedQuantity = _data["startedQuantity"];
|
|
39769
39919
|
this.ongoingQuantity = _data["ongoingQuantity"];
|
|
39770
|
-
this.earlierOperationsScrappedQuantity = _data["earlierOperationsScrappedQuantity"];
|
|
39771
39920
|
this.availableToStartQuantity = _data["availableToStartQuantity"];
|
|
39772
39921
|
this.workInstructions = _data["workInstructions"];
|
|
39773
39922
|
this.note = _data["note"];
|
|
@@ -39809,7 +39958,6 @@ export class ProductionOrderOperationDto {
|
|
|
39809
39958
|
data["quantity"] = this.quantity;
|
|
39810
39959
|
data["startedQuantity"] = this.startedQuantity;
|
|
39811
39960
|
data["ongoingQuantity"] = this.ongoingQuantity;
|
|
39812
|
-
data["earlierOperationsScrappedQuantity"] = this.earlierOperationsScrappedQuantity;
|
|
39813
39961
|
data["availableToStartQuantity"] = this.availableToStartQuantity;
|
|
39814
39962
|
data["workInstructions"] = this.workInstructions;
|
|
39815
39963
|
data["note"] = this.note;
|
|
@@ -40613,7 +40761,6 @@ export class ProductionScheduleOperationDto {
|
|
|
40613
40761
|
this.producedQuantity = _data["producedQuantity"];
|
|
40614
40762
|
this.scrappedQuantity = _data["scrappedQuantity"];
|
|
40615
40763
|
this.availableToStartQuantity = _data["availableToStartQuantity"];
|
|
40616
|
-
this.earlierOperationsScrappedQuantity = _data["earlierOperationsScrappedQuantity"];
|
|
40617
40764
|
this.startedQuantity = _data["startedQuantity"];
|
|
40618
40765
|
this.ongoingQuantity = _data["ongoingQuantity"];
|
|
40619
40766
|
this.project = _data["project"] ? WorkOrderProjectDto.fromJS(_data["project"]) : undefined;
|
|
@@ -40672,7 +40819,6 @@ export class ProductionScheduleOperationDto {
|
|
|
40672
40819
|
data["producedQuantity"] = this.producedQuantity;
|
|
40673
40820
|
data["scrappedQuantity"] = this.scrappedQuantity;
|
|
40674
40821
|
data["availableToStartQuantity"] = this.availableToStartQuantity;
|
|
40675
|
-
data["earlierOperationsScrappedQuantity"] = this.earlierOperationsScrappedQuantity;
|
|
40676
40822
|
data["startedQuantity"] = this.startedQuantity;
|
|
40677
40823
|
data["ongoingQuantity"] = this.ongoingQuantity;
|
|
40678
40824
|
data["project"] = this.project ? this.project.toJSON() : undefined;
|
|
@@ -40731,7 +40877,6 @@ export class SurroundingOperationDto {
|
|
|
40731
40877
|
this.resourceDepartmentName = _data["resourceDepartmentName"];
|
|
40732
40878
|
this.producedQuantity = _data["producedQuantity"];
|
|
40733
40879
|
this.scrappedQuantity = _data["scrappedQuantity"];
|
|
40734
|
-
this.earlierOperationsScrappedQuantity = _data["earlierOperationsScrappedQuantity"];
|
|
40735
40880
|
this.startedQuantity = _data["startedQuantity"];
|
|
40736
40881
|
}
|
|
40737
40882
|
}
|
|
@@ -40758,7 +40903,6 @@ export class SurroundingOperationDto {
|
|
|
40758
40903
|
data["resourceDepartmentName"] = this.resourceDepartmentName;
|
|
40759
40904
|
data["producedQuantity"] = this.producedQuantity;
|
|
40760
40905
|
data["scrappedQuantity"] = this.scrappedQuantity;
|
|
40761
|
-
data["earlierOperationsScrappedQuantity"] = this.earlierOperationsScrappedQuantity;
|
|
40762
40906
|
data["startedQuantity"] = this.startedQuantity;
|
|
40763
40907
|
return data;
|
|
40764
40908
|
}
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -2228,6 +2228,8 @@ export interface IMachineAlarmsClient {
|
|
|
2228
2228
|
|
|
2229
2229
|
listMachineAlarms(alarmType: MachineAlarmType | null | undefined, assetId: number | undefined, startTime: Date | undefined, endTime: Date | null | undefined, subType: string | null | undefined, nativeCode: string | null | undefined, nativeSeverity: number | null | undefined, name: string | null | undefined, sequence: string | null | undefined, limit: number | undefined, continuationToken: string | null | undefined, orderBy: string | null | undefined, sortDirection: string | null | undefined): Promise<PagedResultOfMachineAlarmDto>;
|
|
2230
2230
|
|
|
2231
|
+
listGroupedMachineIncidents(request: ListGroupedMachineIncidentsRequest): Promise<PagedResultOfGroupedMachineIncidentDto>;
|
|
2232
|
+
|
|
2231
2233
|
listAlarmsPerMachine(startTime: Date | undefined, endTime: Date | null | undefined): Promise<MachineAlarmSummaryDto[]>;
|
|
2232
2234
|
|
|
2233
2235
|
listAlarmSeverityOccurrences(startTime: Date | undefined, endTime: Date | null | undefined): Promise<MachineAlarmSeverityOccurenceDto[]>;
|
|
@@ -2316,6 +2318,46 @@ export class MachineAlarmsClient extends AuthorizedApiBase implements IMachineAl
|
|
|
2316
2318
|
return Promise.resolve<PagedResultOfMachineAlarmDto>(null as any);
|
|
2317
2319
|
}
|
|
2318
2320
|
|
|
2321
|
+
listGroupedMachineIncidents(request: ListGroupedMachineIncidentsRequest): Promise<PagedResultOfGroupedMachineIncidentDto> {
|
|
2322
|
+
let url_ = this.baseUrl + "/machinealarms/groupedincidents";
|
|
2323
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
2324
|
+
|
|
2325
|
+
const content_ = JSON.stringify(request);
|
|
2326
|
+
|
|
2327
|
+
let options_: RequestInit = {
|
|
2328
|
+
body: content_,
|
|
2329
|
+
method: "POST",
|
|
2330
|
+
headers: {
|
|
2331
|
+
"Content-Type": "application/json",
|
|
2332
|
+
"Accept": "application/json"
|
|
2333
|
+
}
|
|
2334
|
+
};
|
|
2335
|
+
|
|
2336
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
2337
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
2338
|
+
}).then((_response: Response) => {
|
|
2339
|
+
return this.processListGroupedMachineIncidents(_response);
|
|
2340
|
+
});
|
|
2341
|
+
}
|
|
2342
|
+
|
|
2343
|
+
protected processListGroupedMachineIncidents(response: Response): Promise<PagedResultOfGroupedMachineIncidentDto> {
|
|
2344
|
+
const status = response.status;
|
|
2345
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
2346
|
+
if (status === 200) {
|
|
2347
|
+
return response.text().then((_responseText) => {
|
|
2348
|
+
let result200: any = null;
|
|
2349
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
2350
|
+
result200 = PagedResultOfGroupedMachineIncidentDto.fromJS(resultData200);
|
|
2351
|
+
return result200;
|
|
2352
|
+
});
|
|
2353
|
+
} else if (status !== 200 && status !== 204) {
|
|
2354
|
+
return response.text().then((_responseText) => {
|
|
2355
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
2356
|
+
});
|
|
2357
|
+
}
|
|
2358
|
+
return Promise.resolve<PagedResultOfGroupedMachineIncidentDto>(null as any);
|
|
2359
|
+
}
|
|
2360
|
+
|
|
2319
2361
|
listAlarmsPerMachine(startTime: Date | undefined, endTime: Date | null | undefined): Promise<MachineAlarmSummaryDto[]> {
|
|
2320
2362
|
let url_ = this.baseUrl + "/machinealarms/alarmspermachine?";
|
|
2321
2363
|
if (startTime === null)
|
|
@@ -27909,6 +27951,154 @@ export interface IMachineAlarmDto {
|
|
|
27909
27951
|
|
|
27910
27952
|
export type MachineAlarmType = "Fault" | "Warning";
|
|
27911
27953
|
|
|
27954
|
+
export class PagedResultOfGroupedMachineIncidentDto implements IPagedResultOfGroupedMachineIncidentDto {
|
|
27955
|
+
results!: GroupedMachineIncidentDto[];
|
|
27956
|
+
continuationToken?: string | null;
|
|
27957
|
+
|
|
27958
|
+
constructor(data?: IPagedResultOfGroupedMachineIncidentDto) {
|
|
27959
|
+
if (data) {
|
|
27960
|
+
for (var property in data) {
|
|
27961
|
+
if (data.hasOwnProperty(property))
|
|
27962
|
+
(<any>this)[property] = (<any>data)[property];
|
|
27963
|
+
}
|
|
27964
|
+
}
|
|
27965
|
+
if (!data) {
|
|
27966
|
+
this.results = [];
|
|
27967
|
+
}
|
|
27968
|
+
}
|
|
27969
|
+
|
|
27970
|
+
init(_data?: any) {
|
|
27971
|
+
if (_data) {
|
|
27972
|
+
if (Array.isArray(_data["results"])) {
|
|
27973
|
+
this.results = [] as any;
|
|
27974
|
+
for (let item of _data["results"])
|
|
27975
|
+
this.results!.push(GroupedMachineIncidentDto.fromJS(item));
|
|
27976
|
+
}
|
|
27977
|
+
this.continuationToken = _data["continuationToken"];
|
|
27978
|
+
}
|
|
27979
|
+
}
|
|
27980
|
+
|
|
27981
|
+
static fromJS(data: any): PagedResultOfGroupedMachineIncidentDto {
|
|
27982
|
+
data = typeof data === 'object' ? data : {};
|
|
27983
|
+
let result = new PagedResultOfGroupedMachineIncidentDto();
|
|
27984
|
+
result.init(data);
|
|
27985
|
+
return result;
|
|
27986
|
+
}
|
|
27987
|
+
|
|
27988
|
+
toJSON(data?: any) {
|
|
27989
|
+
data = typeof data === 'object' ? data : {};
|
|
27990
|
+
if (Array.isArray(this.results)) {
|
|
27991
|
+
data["results"] = [];
|
|
27992
|
+
for (let item of this.results)
|
|
27993
|
+
data["results"].push(item.toJSON());
|
|
27994
|
+
}
|
|
27995
|
+
data["continuationToken"] = this.continuationToken;
|
|
27996
|
+
return data;
|
|
27997
|
+
}
|
|
27998
|
+
}
|
|
27999
|
+
|
|
28000
|
+
export interface IPagedResultOfGroupedMachineIncidentDto {
|
|
28001
|
+
results: GroupedMachineIncidentDto[];
|
|
28002
|
+
continuationToken?: string | null;
|
|
28003
|
+
}
|
|
28004
|
+
|
|
28005
|
+
export class GroupedMachineIncidentDto extends MachineAlarmDto implements IGroupedMachineIncidentDto {
|
|
28006
|
+
incidents?: MachineAlarmDto[];
|
|
28007
|
+
|
|
28008
|
+
constructor(data?: IGroupedMachineIncidentDto) {
|
|
28009
|
+
super(data);
|
|
28010
|
+
}
|
|
28011
|
+
|
|
28012
|
+
override init(_data?: any) {
|
|
28013
|
+
super.init(_data);
|
|
28014
|
+
if (_data) {
|
|
28015
|
+
if (Array.isArray(_data["incidents"])) {
|
|
28016
|
+
this.incidents = [] as any;
|
|
28017
|
+
for (let item of _data["incidents"])
|
|
28018
|
+
this.incidents!.push(MachineAlarmDto.fromJS(item));
|
|
28019
|
+
}
|
|
28020
|
+
}
|
|
28021
|
+
}
|
|
28022
|
+
|
|
28023
|
+
static override fromJS(data: any): GroupedMachineIncidentDto {
|
|
28024
|
+
data = typeof data === 'object' ? data : {};
|
|
28025
|
+
let result = new GroupedMachineIncidentDto();
|
|
28026
|
+
result.init(data);
|
|
28027
|
+
return result;
|
|
28028
|
+
}
|
|
28029
|
+
|
|
28030
|
+
override toJSON(data?: any) {
|
|
28031
|
+
data = typeof data === 'object' ? data : {};
|
|
28032
|
+
if (Array.isArray(this.incidents)) {
|
|
28033
|
+
data["incidents"] = [];
|
|
28034
|
+
for (let item of this.incidents)
|
|
28035
|
+
data["incidents"].push(item.toJSON());
|
|
28036
|
+
}
|
|
28037
|
+
super.toJSON(data);
|
|
28038
|
+
return data;
|
|
28039
|
+
}
|
|
28040
|
+
}
|
|
28041
|
+
|
|
28042
|
+
export interface IGroupedMachineIncidentDto extends IMachineAlarmDto {
|
|
28043
|
+
incidents?: MachineAlarmDto[];
|
|
28044
|
+
}
|
|
28045
|
+
|
|
28046
|
+
export class ListGroupedMachineIncidentsRequest implements IListGroupedMachineIncidentsRequest {
|
|
28047
|
+
assetId!: number;
|
|
28048
|
+
startTime!: Date;
|
|
28049
|
+
endTime?: Date | null;
|
|
28050
|
+
nativeCode?: string | null;
|
|
28051
|
+
limit?: number | null;
|
|
28052
|
+
continuationToken?: string | null;
|
|
28053
|
+
|
|
28054
|
+
constructor(data?: IListGroupedMachineIncidentsRequest) {
|
|
28055
|
+
if (data) {
|
|
28056
|
+
for (var property in data) {
|
|
28057
|
+
if (data.hasOwnProperty(property))
|
|
28058
|
+
(<any>this)[property] = (<any>data)[property];
|
|
28059
|
+
}
|
|
28060
|
+
}
|
|
28061
|
+
}
|
|
28062
|
+
|
|
28063
|
+
init(_data?: any) {
|
|
28064
|
+
if (_data) {
|
|
28065
|
+
this.assetId = _data["assetId"];
|
|
28066
|
+
this.startTime = _data["startTime"] ? new Date(_data["startTime"].toString()) : <any>undefined;
|
|
28067
|
+
this.endTime = _data["endTime"] ? new Date(_data["endTime"].toString()) : <any>undefined;
|
|
28068
|
+
this.nativeCode = _data["nativeCode"];
|
|
28069
|
+
this.limit = _data["limit"];
|
|
28070
|
+
this.continuationToken = _data["continuationToken"];
|
|
28071
|
+
}
|
|
28072
|
+
}
|
|
28073
|
+
|
|
28074
|
+
static fromJS(data: any): ListGroupedMachineIncidentsRequest {
|
|
28075
|
+
data = typeof data === 'object' ? data : {};
|
|
28076
|
+
let result = new ListGroupedMachineIncidentsRequest();
|
|
28077
|
+
result.init(data);
|
|
28078
|
+
return result;
|
|
28079
|
+
}
|
|
28080
|
+
|
|
28081
|
+
toJSON(data?: any) {
|
|
28082
|
+
data = typeof data === 'object' ? data : {};
|
|
28083
|
+
data["assetId"] = this.assetId;
|
|
28084
|
+
data["startTime"] = this.startTime ? this.startTime.toISOString() : <any>undefined;
|
|
28085
|
+
data["endTime"] = this.endTime ? this.endTime.toISOString() : <any>undefined;
|
|
28086
|
+
data["nativeCode"] = this.nativeCode;
|
|
28087
|
+
data["limit"] = this.limit;
|
|
28088
|
+
data["continuationToken"] = this.continuationToken;
|
|
28089
|
+
return data;
|
|
28090
|
+
}
|
|
28091
|
+
}
|
|
28092
|
+
|
|
28093
|
+
export interface IListGroupedMachineIncidentsRequest {
|
|
28094
|
+
assetId: number;
|
|
28095
|
+
startTime: Date;
|
|
28096
|
+
endTime?: Date | null;
|
|
28097
|
+
nativeCode?: string | null;
|
|
28098
|
+
limit?: number | null;
|
|
28099
|
+
continuationToken?: string | null;
|
|
28100
|
+
}
|
|
28101
|
+
|
|
27912
28102
|
export class MachineAlarmSummaryDto implements IMachineAlarmSummaryDto {
|
|
27913
28103
|
assetId!: number;
|
|
27914
28104
|
assetName!: string;
|
|
@@ -47871,6 +48061,7 @@ export class TrackingHistoryDto implements ITrackingHistoryDto {
|
|
|
47871
48061
|
materialLine?: number | null;
|
|
47872
48062
|
materialPartName?: string | null;
|
|
47873
48063
|
materialPartNumber?: string | null;
|
|
48064
|
+
category?: string | null;
|
|
47874
48065
|
currentTracking?: TrackingEventDto | null;
|
|
47875
48066
|
trackingEvents!: TrackingEventDto[];
|
|
47876
48067
|
suggestions?: SuggestionsItemDto | null;
|
|
@@ -47896,6 +48087,7 @@ export class TrackingHistoryDto implements ITrackingHistoryDto {
|
|
|
47896
48087
|
this.materialLine = _data["materialLine"];
|
|
47897
48088
|
this.materialPartName = _data["materialPartName"];
|
|
47898
48089
|
this.materialPartNumber = _data["materialPartNumber"];
|
|
48090
|
+
this.category = _data["category"];
|
|
47899
48091
|
this.currentTracking = _data["currentTracking"] ? TrackingEventDto.fromJS(_data["currentTracking"]) : <any>undefined;
|
|
47900
48092
|
if (Array.isArray(_data["trackingEvents"])) {
|
|
47901
48093
|
this.trackingEvents = [] as any;
|
|
@@ -47922,6 +48114,7 @@ export class TrackingHistoryDto implements ITrackingHistoryDto {
|
|
|
47922
48114
|
data["materialLine"] = this.materialLine;
|
|
47923
48115
|
data["materialPartName"] = this.materialPartName;
|
|
47924
48116
|
data["materialPartNumber"] = this.materialPartNumber;
|
|
48117
|
+
data["category"] = this.category;
|
|
47925
48118
|
data["currentTracking"] = this.currentTracking ? this.currentTracking.toJSON() : <any>undefined;
|
|
47926
48119
|
if (Array.isArray(this.trackingEvents)) {
|
|
47927
48120
|
data["trackingEvents"] = [];
|
|
@@ -47941,6 +48134,7 @@ export interface ITrackingHistoryDto {
|
|
|
47941
48134
|
materialLine?: number | null;
|
|
47942
48135
|
materialPartName?: string | null;
|
|
47943
48136
|
materialPartNumber?: string | null;
|
|
48137
|
+
category?: string | null;
|
|
47944
48138
|
currentTracking?: TrackingEventDto | null;
|
|
47945
48139
|
trackingEvents: TrackingEventDto[];
|
|
47946
48140
|
suggestions?: SuggestionsItemDto | null;
|
|
@@ -48182,6 +48376,7 @@ export class TrackingHistoryFlattenedDto implements ITrackingHistoryFlattenedDto
|
|
|
48182
48376
|
materialLine?: number | null;
|
|
48183
48377
|
materialPartName?: string | null;
|
|
48184
48378
|
materialPartNumber?: string | null;
|
|
48379
|
+
category?: string | null;
|
|
48185
48380
|
currentTracking?: TrackingEventDto | null;
|
|
48186
48381
|
trackingEvents!: TrackingEventDto[];
|
|
48187
48382
|
|
|
@@ -48213,6 +48408,7 @@ export class TrackingHistoryFlattenedDto implements ITrackingHistoryFlattenedDto
|
|
|
48213
48408
|
this.materialLine = _data["materialLine"];
|
|
48214
48409
|
this.materialPartName = _data["materialPartName"];
|
|
48215
48410
|
this.materialPartNumber = _data["materialPartNumber"];
|
|
48411
|
+
this.category = _data["category"];
|
|
48216
48412
|
this.currentTracking = _data["currentTracking"] ? TrackingEventDto.fromJS(_data["currentTracking"]) : <any>undefined;
|
|
48217
48413
|
if (Array.isArray(_data["trackingEvents"])) {
|
|
48218
48414
|
this.trackingEvents = [] as any;
|
|
@@ -48245,6 +48441,7 @@ export class TrackingHistoryFlattenedDto implements ITrackingHistoryFlattenedDto
|
|
|
48245
48441
|
data["materialLine"] = this.materialLine;
|
|
48246
48442
|
data["materialPartName"] = this.materialPartName;
|
|
48247
48443
|
data["materialPartNumber"] = this.materialPartNumber;
|
|
48444
|
+
data["category"] = this.category;
|
|
48248
48445
|
data["currentTracking"] = this.currentTracking ? this.currentTracking.toJSON() : <any>undefined;
|
|
48249
48446
|
if (Array.isArray(this.trackingEvents)) {
|
|
48250
48447
|
data["trackingEvents"] = [];
|
|
@@ -48270,6 +48467,7 @@ export interface ITrackingHistoryFlattenedDto {
|
|
|
48270
48467
|
materialLine?: number | null;
|
|
48271
48468
|
materialPartName?: string | null;
|
|
48272
48469
|
materialPartNumber?: string | null;
|
|
48470
|
+
category?: string | null;
|
|
48273
48471
|
currentTracking?: TrackingEventDto | null;
|
|
48274
48472
|
trackingEvents: TrackingEventDto[];
|
|
48275
48473
|
}
|
|
@@ -49198,7 +49396,6 @@ export class ProductionOrderOperationDto implements IProductionOrderOperationDto
|
|
|
49198
49396
|
quantity!: number;
|
|
49199
49397
|
startedQuantity?: number | null;
|
|
49200
49398
|
ongoingQuantity?: number | null;
|
|
49201
|
-
earlierOperationsScrappedQuantity!: number;
|
|
49202
49399
|
availableToStartQuantity!: number;
|
|
49203
49400
|
workInstructions?: string | null;
|
|
49204
49401
|
note?: string | null;
|
|
@@ -49242,7 +49439,6 @@ export class ProductionOrderOperationDto implements IProductionOrderOperationDto
|
|
|
49242
49439
|
this.quantity = _data["quantity"];
|
|
49243
49440
|
this.startedQuantity = _data["startedQuantity"];
|
|
49244
49441
|
this.ongoingQuantity = _data["ongoingQuantity"];
|
|
49245
|
-
this.earlierOperationsScrappedQuantity = _data["earlierOperationsScrappedQuantity"];
|
|
49246
49442
|
this.availableToStartQuantity = _data["availableToStartQuantity"];
|
|
49247
49443
|
this.workInstructions = _data["workInstructions"];
|
|
49248
49444
|
this.note = _data["note"];
|
|
@@ -49286,7 +49482,6 @@ export class ProductionOrderOperationDto implements IProductionOrderOperationDto
|
|
|
49286
49482
|
data["quantity"] = this.quantity;
|
|
49287
49483
|
data["startedQuantity"] = this.startedQuantity;
|
|
49288
49484
|
data["ongoingQuantity"] = this.ongoingQuantity;
|
|
49289
|
-
data["earlierOperationsScrappedQuantity"] = this.earlierOperationsScrappedQuantity;
|
|
49290
49485
|
data["availableToStartQuantity"] = this.availableToStartQuantity;
|
|
49291
49486
|
data["workInstructions"] = this.workInstructions;
|
|
49292
49487
|
data["note"] = this.note;
|
|
@@ -49323,7 +49518,6 @@ export interface IProductionOrderOperationDto {
|
|
|
49323
49518
|
quantity: number;
|
|
49324
49519
|
startedQuantity?: number | null;
|
|
49325
49520
|
ongoingQuantity?: number | null;
|
|
49326
|
-
earlierOperationsScrappedQuantity: number;
|
|
49327
49521
|
availableToStartQuantity: number;
|
|
49328
49522
|
workInstructions?: string | null;
|
|
49329
49523
|
note?: string | null;
|
|
@@ -50509,7 +50703,6 @@ export class ProductionScheduleOperationDto implements IProductionScheduleOperat
|
|
|
50509
50703
|
producedQuantity!: number;
|
|
50510
50704
|
scrappedQuantity!: number;
|
|
50511
50705
|
availableToStartQuantity!: number;
|
|
50512
|
-
earlierOperationsScrappedQuantity!: number;
|
|
50513
50706
|
startedQuantity?: number | null;
|
|
50514
50707
|
ongoingQuantity?: number | null;
|
|
50515
50708
|
project?: WorkOrderProjectDto | null;
|
|
@@ -50573,7 +50766,6 @@ export class ProductionScheduleOperationDto implements IProductionScheduleOperat
|
|
|
50573
50766
|
this.producedQuantity = _data["producedQuantity"];
|
|
50574
50767
|
this.scrappedQuantity = _data["scrappedQuantity"];
|
|
50575
50768
|
this.availableToStartQuantity = _data["availableToStartQuantity"];
|
|
50576
|
-
this.earlierOperationsScrappedQuantity = _data["earlierOperationsScrappedQuantity"];
|
|
50577
50769
|
this.startedQuantity = _data["startedQuantity"];
|
|
50578
50770
|
this.ongoingQuantity = _data["ongoingQuantity"];
|
|
50579
50771
|
this.project = _data["project"] ? WorkOrderProjectDto.fromJS(_data["project"]) : <any>undefined;
|
|
@@ -50634,7 +50826,6 @@ export class ProductionScheduleOperationDto implements IProductionScheduleOperat
|
|
|
50634
50826
|
data["producedQuantity"] = this.producedQuantity;
|
|
50635
50827
|
data["scrappedQuantity"] = this.scrappedQuantity;
|
|
50636
50828
|
data["availableToStartQuantity"] = this.availableToStartQuantity;
|
|
50637
|
-
data["earlierOperationsScrappedQuantity"] = this.earlierOperationsScrappedQuantity;
|
|
50638
50829
|
data["startedQuantity"] = this.startedQuantity;
|
|
50639
50830
|
data["ongoingQuantity"] = this.ongoingQuantity;
|
|
50640
50831
|
data["project"] = this.project ? this.project.toJSON() : <any>undefined;
|
|
@@ -50688,7 +50879,6 @@ export interface IProductionScheduleOperationDto {
|
|
|
50688
50879
|
producedQuantity: number;
|
|
50689
50880
|
scrappedQuantity: number;
|
|
50690
50881
|
availableToStartQuantity: number;
|
|
50691
|
-
earlierOperationsScrappedQuantity: number;
|
|
50692
50882
|
startedQuantity?: number | null;
|
|
50693
50883
|
ongoingQuantity?: number | null;
|
|
50694
50884
|
project?: WorkOrderProjectDto | null;
|
|
@@ -50736,7 +50926,6 @@ export class SurroundingOperationDto implements ISurroundingOperationDto {
|
|
|
50736
50926
|
resourceDepartmentName?: string | null;
|
|
50737
50927
|
producedQuantity!: number;
|
|
50738
50928
|
scrappedQuantity!: number;
|
|
50739
|
-
earlierOperationsScrappedQuantity!: number;
|
|
50740
50929
|
startedQuantity?: number | null;
|
|
50741
50930
|
|
|
50742
50931
|
constructor(data?: ISurroundingOperationDto) {
|
|
@@ -50765,7 +50954,6 @@ export class SurroundingOperationDto implements ISurroundingOperationDto {
|
|
|
50765
50954
|
this.resourceDepartmentName = _data["resourceDepartmentName"];
|
|
50766
50955
|
this.producedQuantity = _data["producedQuantity"];
|
|
50767
50956
|
this.scrappedQuantity = _data["scrappedQuantity"];
|
|
50768
|
-
this.earlierOperationsScrappedQuantity = _data["earlierOperationsScrappedQuantity"];
|
|
50769
50957
|
this.startedQuantity = _data["startedQuantity"];
|
|
50770
50958
|
}
|
|
50771
50959
|
}
|
|
@@ -50794,7 +50982,6 @@ export class SurroundingOperationDto implements ISurroundingOperationDto {
|
|
|
50794
50982
|
data["resourceDepartmentName"] = this.resourceDepartmentName;
|
|
50795
50983
|
data["producedQuantity"] = this.producedQuantity;
|
|
50796
50984
|
data["scrappedQuantity"] = this.scrappedQuantity;
|
|
50797
|
-
data["earlierOperationsScrappedQuantity"] = this.earlierOperationsScrappedQuantity;
|
|
50798
50985
|
data["startedQuantity"] = this.startedQuantity;
|
|
50799
50986
|
return data;
|
|
50800
50987
|
}
|
|
@@ -50816,7 +51003,6 @@ export interface ISurroundingOperationDto {
|
|
|
50816
51003
|
resourceDepartmentName?: string | null;
|
|
50817
51004
|
producedQuantity: number;
|
|
50818
51005
|
scrappedQuantity: number;
|
|
50819
|
-
earlierOperationsScrappedQuantity: number;
|
|
50820
51006
|
startedQuantity?: number | null;
|
|
50821
51007
|
}
|
|
50822
51008
|
|