@ignos/api-client 20250904.0.12514 → 20250910.0.12568
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 +80 -32
- package/lib/ignosportal-api.js +308 -155
- package/package.json +1 -1
- package/src/ignosportal-api.ts +383 -184
package/src/ignosportal-api.ts
CHANGED
|
@@ -6065,6 +6065,14 @@ export interface IDowntimeReasonsAdminClient {
|
|
|
6065
6065
|
deleteDowntimeReason(id: string): Promise<void>;
|
|
6066
6066
|
|
|
6067
6067
|
listMachineTypes(): Promise<MachineTypeDto[]>;
|
|
6068
|
+
|
|
6069
|
+
listParentTopics(): Promise<ParentTopicDto[]>;
|
|
6070
|
+
|
|
6071
|
+
createParentTopic(request: CreateParentTopicRequest): Promise<ParentTopicDto>;
|
|
6072
|
+
|
|
6073
|
+
updateParentTopic(id: string, request: UpdateParentTopicRequest): Promise<ParentTopicDto>;
|
|
6074
|
+
|
|
6075
|
+
deleteParentTopic(id: string): Promise<void>;
|
|
6068
6076
|
}
|
|
6069
6077
|
|
|
6070
6078
|
export class DowntimeReasonsAdminClient extends AuthorizedApiBase implements IDowntimeReasonsAdminClient {
|
|
@@ -6275,6 +6283,164 @@ export class DowntimeReasonsAdminClient extends AuthorizedApiBase implements IDo
|
|
|
6275
6283
|
}
|
|
6276
6284
|
return Promise.resolve<MachineTypeDto[]>(null as any);
|
|
6277
6285
|
}
|
|
6286
|
+
|
|
6287
|
+
listParentTopics(): Promise<ParentTopicDto[]> {
|
|
6288
|
+
let url_ = this.baseUrl + "/downtimereasonsadmin/downtimereasons/parents";
|
|
6289
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
6290
|
+
|
|
6291
|
+
let options_: RequestInit = {
|
|
6292
|
+
method: "GET",
|
|
6293
|
+
headers: {
|
|
6294
|
+
"Accept": "application/json"
|
|
6295
|
+
}
|
|
6296
|
+
};
|
|
6297
|
+
|
|
6298
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
6299
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
6300
|
+
}).then((_response: Response) => {
|
|
6301
|
+
return this.processListParentTopics(_response);
|
|
6302
|
+
});
|
|
6303
|
+
}
|
|
6304
|
+
|
|
6305
|
+
protected processListParentTopics(response: Response): Promise<ParentTopicDto[]> {
|
|
6306
|
+
const status = response.status;
|
|
6307
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
6308
|
+
if (status === 200) {
|
|
6309
|
+
return response.text().then((_responseText) => {
|
|
6310
|
+
let result200: any = null;
|
|
6311
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
6312
|
+
if (Array.isArray(resultData200)) {
|
|
6313
|
+
result200 = [] as any;
|
|
6314
|
+
for (let item of resultData200)
|
|
6315
|
+
result200!.push(ParentTopicDto.fromJS(item));
|
|
6316
|
+
}
|
|
6317
|
+
return result200;
|
|
6318
|
+
});
|
|
6319
|
+
} else if (status !== 200 && status !== 204) {
|
|
6320
|
+
return response.text().then((_responseText) => {
|
|
6321
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
6322
|
+
});
|
|
6323
|
+
}
|
|
6324
|
+
return Promise.resolve<ParentTopicDto[]>(null as any);
|
|
6325
|
+
}
|
|
6326
|
+
|
|
6327
|
+
createParentTopic(request: CreateParentTopicRequest): Promise<ParentTopicDto> {
|
|
6328
|
+
let url_ = this.baseUrl + "/downtimereasonsadmin/downtimereasons/parents";
|
|
6329
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
6330
|
+
|
|
6331
|
+
const content_ = JSON.stringify(request);
|
|
6332
|
+
|
|
6333
|
+
let options_: RequestInit = {
|
|
6334
|
+
body: content_,
|
|
6335
|
+
method: "POST",
|
|
6336
|
+
headers: {
|
|
6337
|
+
"Content-Type": "application/json",
|
|
6338
|
+
"Accept": "application/json"
|
|
6339
|
+
}
|
|
6340
|
+
};
|
|
6341
|
+
|
|
6342
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
6343
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
6344
|
+
}).then((_response: Response) => {
|
|
6345
|
+
return this.processCreateParentTopic(_response);
|
|
6346
|
+
});
|
|
6347
|
+
}
|
|
6348
|
+
|
|
6349
|
+
protected processCreateParentTopic(response: Response): Promise<ParentTopicDto> {
|
|
6350
|
+
const status = response.status;
|
|
6351
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
6352
|
+
if (status === 200) {
|
|
6353
|
+
return response.text().then((_responseText) => {
|
|
6354
|
+
let result200: any = null;
|
|
6355
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
6356
|
+
result200 = ParentTopicDto.fromJS(resultData200);
|
|
6357
|
+
return result200;
|
|
6358
|
+
});
|
|
6359
|
+
} else if (status !== 200 && status !== 204) {
|
|
6360
|
+
return response.text().then((_responseText) => {
|
|
6361
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
6362
|
+
});
|
|
6363
|
+
}
|
|
6364
|
+
return Promise.resolve<ParentTopicDto>(null as any);
|
|
6365
|
+
}
|
|
6366
|
+
|
|
6367
|
+
updateParentTopic(id: string, request: UpdateParentTopicRequest): Promise<ParentTopicDto> {
|
|
6368
|
+
let url_ = this.baseUrl + "/downtimereasonsadmin/downtimereasons/parents/{id}";
|
|
6369
|
+
if (id === undefined || id === null)
|
|
6370
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
6371
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
6372
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
6373
|
+
|
|
6374
|
+
const content_ = JSON.stringify(request);
|
|
6375
|
+
|
|
6376
|
+
let options_: RequestInit = {
|
|
6377
|
+
body: content_,
|
|
6378
|
+
method: "PUT",
|
|
6379
|
+
headers: {
|
|
6380
|
+
"Content-Type": "application/json",
|
|
6381
|
+
"Accept": "application/json"
|
|
6382
|
+
}
|
|
6383
|
+
};
|
|
6384
|
+
|
|
6385
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
6386
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
6387
|
+
}).then((_response: Response) => {
|
|
6388
|
+
return this.processUpdateParentTopic(_response);
|
|
6389
|
+
});
|
|
6390
|
+
}
|
|
6391
|
+
|
|
6392
|
+
protected processUpdateParentTopic(response: Response): Promise<ParentTopicDto> {
|
|
6393
|
+
const status = response.status;
|
|
6394
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
6395
|
+
if (status === 200) {
|
|
6396
|
+
return response.text().then((_responseText) => {
|
|
6397
|
+
let result200: any = null;
|
|
6398
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
6399
|
+
result200 = ParentTopicDto.fromJS(resultData200);
|
|
6400
|
+
return result200;
|
|
6401
|
+
});
|
|
6402
|
+
} else if (status !== 200 && status !== 204) {
|
|
6403
|
+
return response.text().then((_responseText) => {
|
|
6404
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
6405
|
+
});
|
|
6406
|
+
}
|
|
6407
|
+
return Promise.resolve<ParentTopicDto>(null as any);
|
|
6408
|
+
}
|
|
6409
|
+
|
|
6410
|
+
deleteParentTopic(id: string): Promise<void> {
|
|
6411
|
+
let url_ = this.baseUrl + "/downtimereasonsadmin/downtimereasons/parents/{id}";
|
|
6412
|
+
if (id === undefined || id === null)
|
|
6413
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
6414
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
6415
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
6416
|
+
|
|
6417
|
+
let options_: RequestInit = {
|
|
6418
|
+
method: "DELETE",
|
|
6419
|
+
headers: {
|
|
6420
|
+
}
|
|
6421
|
+
};
|
|
6422
|
+
|
|
6423
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
6424
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
6425
|
+
}).then((_response: Response) => {
|
|
6426
|
+
return this.processDeleteParentTopic(_response);
|
|
6427
|
+
});
|
|
6428
|
+
}
|
|
6429
|
+
|
|
6430
|
+
protected processDeleteParentTopic(response: Response): Promise<void> {
|
|
6431
|
+
const status = response.status;
|
|
6432
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
6433
|
+
if (status === 204) {
|
|
6434
|
+
return response.text().then((_responseText) => {
|
|
6435
|
+
return;
|
|
6436
|
+
});
|
|
6437
|
+
} else if (status !== 200 && status !== 204) {
|
|
6438
|
+
return response.text().then((_responseText) => {
|
|
6439
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
6440
|
+
});
|
|
6441
|
+
}
|
|
6442
|
+
return Promise.resolve<void>(null as any);
|
|
6443
|
+
}
|
|
6278
6444
|
}
|
|
6279
6445
|
|
|
6280
6446
|
export interface IDowntimeReasonsClient {
|
|
@@ -21185,10 +21351,6 @@ export interface IMeasurementFormsInstancesClient {
|
|
|
21185
21351
|
|
|
21186
21352
|
exportDimensionReportValues(id: string): Promise<DownloadDto>;
|
|
21187
21353
|
|
|
21188
|
-
updateSchemaInstanceElements(id: string, schemaId: string, request: UpdateSchemaInstanceElementsRequest): Promise<void>;
|
|
21189
|
-
|
|
21190
|
-
getSchemaInstanceElements(id: string, schemaId: string): Promise<SchemaInstanceElementDto[]>;
|
|
21191
|
-
|
|
21192
21354
|
toggleSchemaInstanceElementDocumentedExternallyOverride(id: string, schemaId: string, elementId: string, tenantId: string | null | undefined): Promise<void>;
|
|
21193
21355
|
}
|
|
21194
21356
|
|
|
@@ -22442,94 +22604,6 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase implement
|
|
|
22442
22604
|
return Promise.resolve<DownloadDto>(null as any);
|
|
22443
22605
|
}
|
|
22444
22606
|
|
|
22445
|
-
updateSchemaInstanceElements(id: string, schemaId: string, request: UpdateSchemaInstanceElementsRequest): Promise<void> {
|
|
22446
|
-
let url_ = this.baseUrl + "/measurementforms/instances/{id}/schemas/{schemaId}/elements";
|
|
22447
|
-
if (id === undefined || id === null)
|
|
22448
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
22449
|
-
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
22450
|
-
if (schemaId === undefined || schemaId === null)
|
|
22451
|
-
throw new Error("The parameter 'schemaId' must be defined.");
|
|
22452
|
-
url_ = url_.replace("{schemaId}", encodeURIComponent("" + schemaId));
|
|
22453
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
22454
|
-
|
|
22455
|
-
const content_ = JSON.stringify(request);
|
|
22456
|
-
|
|
22457
|
-
let options_: RequestInit = {
|
|
22458
|
-
body: content_,
|
|
22459
|
-
method: "PUT",
|
|
22460
|
-
headers: {
|
|
22461
|
-
"Content-Type": "application/json",
|
|
22462
|
-
}
|
|
22463
|
-
};
|
|
22464
|
-
|
|
22465
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
22466
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
22467
|
-
}).then((_response: Response) => {
|
|
22468
|
-
return this.processUpdateSchemaInstanceElements(_response);
|
|
22469
|
-
});
|
|
22470
|
-
}
|
|
22471
|
-
|
|
22472
|
-
protected processUpdateSchemaInstanceElements(response: Response): Promise<void> {
|
|
22473
|
-
const status = response.status;
|
|
22474
|
-
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
22475
|
-
if (status === 200) {
|
|
22476
|
-
return response.text().then((_responseText) => {
|
|
22477
|
-
return;
|
|
22478
|
-
});
|
|
22479
|
-
} else if (status !== 200 && status !== 204) {
|
|
22480
|
-
return response.text().then((_responseText) => {
|
|
22481
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
22482
|
-
});
|
|
22483
|
-
}
|
|
22484
|
-
return Promise.resolve<void>(null as any);
|
|
22485
|
-
}
|
|
22486
|
-
|
|
22487
|
-
getSchemaInstanceElements(id: string, schemaId: string): Promise<SchemaInstanceElementDto[]> {
|
|
22488
|
-
let url_ = this.baseUrl + "/measurementforms/instances/{id}/schemas/{schemaId}/elements";
|
|
22489
|
-
if (id === undefined || id === null)
|
|
22490
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
22491
|
-
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
22492
|
-
if (schemaId === undefined || schemaId === null)
|
|
22493
|
-
throw new Error("The parameter 'schemaId' must be defined.");
|
|
22494
|
-
url_ = url_.replace("{schemaId}", encodeURIComponent("" + schemaId));
|
|
22495
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
22496
|
-
|
|
22497
|
-
let options_: RequestInit = {
|
|
22498
|
-
method: "GET",
|
|
22499
|
-
headers: {
|
|
22500
|
-
"Accept": "application/json"
|
|
22501
|
-
}
|
|
22502
|
-
};
|
|
22503
|
-
|
|
22504
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
22505
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
22506
|
-
}).then((_response: Response) => {
|
|
22507
|
-
return this.processGetSchemaInstanceElements(_response);
|
|
22508
|
-
});
|
|
22509
|
-
}
|
|
22510
|
-
|
|
22511
|
-
protected processGetSchemaInstanceElements(response: Response): Promise<SchemaInstanceElementDto[]> {
|
|
22512
|
-
const status = response.status;
|
|
22513
|
-
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
22514
|
-
if (status === 200) {
|
|
22515
|
-
return response.text().then((_responseText) => {
|
|
22516
|
-
let result200: any = null;
|
|
22517
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
22518
|
-
if (Array.isArray(resultData200)) {
|
|
22519
|
-
result200 = [] as any;
|
|
22520
|
-
for (let item of resultData200)
|
|
22521
|
-
result200!.push(SchemaInstanceElementDto.fromJS(item));
|
|
22522
|
-
}
|
|
22523
|
-
return result200;
|
|
22524
|
-
});
|
|
22525
|
-
} else if (status !== 200 && status !== 204) {
|
|
22526
|
-
return response.text().then((_responseText) => {
|
|
22527
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
22528
|
-
});
|
|
22529
|
-
}
|
|
22530
|
-
return Promise.resolve<SchemaInstanceElementDto[]>(null as any);
|
|
22531
|
-
}
|
|
22532
|
-
|
|
22533
22607
|
toggleSchemaInstanceElementDocumentedExternallyOverride(id: string, schemaId: string, elementId: string, tenantId: string | null | undefined): Promise<void> {
|
|
22534
22608
|
let url_ = this.baseUrl + "/measurementforms/instances/{id}/schemas/{schemaId}/elements/{elementId}/toggle-override-documented-externally?";
|
|
22535
22609
|
if (id === undefined || id === null)
|
|
@@ -25645,6 +25719,8 @@ export class WorkOrderDatapoint implements IWorkOrderDatapoint {
|
|
|
25645
25719
|
subType?: string | null;
|
|
25646
25720
|
startTime!: number;
|
|
25647
25721
|
endTime?: number | null;
|
|
25722
|
+
partName?: string | null;
|
|
25723
|
+
partNumber?: string | null;
|
|
25648
25724
|
metaData?: { [key: string]: string; } | null;
|
|
25649
25725
|
|
|
25650
25726
|
constructor(data?: IWorkOrderDatapoint) {
|
|
@@ -25664,6 +25740,8 @@ export class WorkOrderDatapoint implements IWorkOrderDatapoint {
|
|
|
25664
25740
|
this.subType = _data["subType"];
|
|
25665
25741
|
this.startTime = _data["startTime"];
|
|
25666
25742
|
this.endTime = _data["endTime"];
|
|
25743
|
+
this.partName = _data["partName"];
|
|
25744
|
+
this.partNumber = _data["partNumber"];
|
|
25667
25745
|
if (_data["metaData"]) {
|
|
25668
25746
|
this.metaData = {} as any;
|
|
25669
25747
|
for (let key in _data["metaData"]) {
|
|
@@ -25689,6 +25767,8 @@ export class WorkOrderDatapoint implements IWorkOrderDatapoint {
|
|
|
25689
25767
|
data["subType"] = this.subType;
|
|
25690
25768
|
data["startTime"] = this.startTime;
|
|
25691
25769
|
data["endTime"] = this.endTime;
|
|
25770
|
+
data["partName"] = this.partName;
|
|
25771
|
+
data["partNumber"] = this.partNumber;
|
|
25692
25772
|
if (this.metaData) {
|
|
25693
25773
|
data["metaData"] = {};
|
|
25694
25774
|
for (let key in this.metaData) {
|
|
@@ -25707,6 +25787,8 @@ export interface IWorkOrderDatapoint {
|
|
|
25707
25787
|
subType?: string | null;
|
|
25708
25788
|
startTime: number;
|
|
25709
25789
|
endTime?: number | null;
|
|
25790
|
+
partName?: string | null;
|
|
25791
|
+
partNumber?: string | null;
|
|
25710
25792
|
metaData?: { [key: string]: string; } | null;
|
|
25711
25793
|
}
|
|
25712
25794
|
|
|
@@ -33938,8 +34020,11 @@ export class DowntimeReasonDto implements IDowntimeReasonDto {
|
|
|
33938
34020
|
id!: string;
|
|
33939
34021
|
reason!: string;
|
|
33940
34022
|
machineTypes!: string[];
|
|
34023
|
+
machineGroups!: string[];
|
|
33941
34024
|
reasonType!: DowntimeReasonTypeDto;
|
|
33942
34025
|
description?: string | null;
|
|
34026
|
+
parentId?: string | null;
|
|
34027
|
+
displayOrder?: number | null;
|
|
33943
34028
|
|
|
33944
34029
|
constructor(data?: IDowntimeReasonDto) {
|
|
33945
34030
|
if (data) {
|
|
@@ -33950,6 +34035,7 @@ export class DowntimeReasonDto implements IDowntimeReasonDto {
|
|
|
33950
34035
|
}
|
|
33951
34036
|
if (!data) {
|
|
33952
34037
|
this.machineTypes = [];
|
|
34038
|
+
this.machineGroups = [];
|
|
33953
34039
|
}
|
|
33954
34040
|
}
|
|
33955
34041
|
|
|
@@ -33962,8 +34048,15 @@ export class DowntimeReasonDto implements IDowntimeReasonDto {
|
|
|
33962
34048
|
for (let item of _data["machineTypes"])
|
|
33963
34049
|
this.machineTypes!.push(item);
|
|
33964
34050
|
}
|
|
34051
|
+
if (Array.isArray(_data["machineGroups"])) {
|
|
34052
|
+
this.machineGroups = [] as any;
|
|
34053
|
+
for (let item of _data["machineGroups"])
|
|
34054
|
+
this.machineGroups!.push(item);
|
|
34055
|
+
}
|
|
33965
34056
|
this.reasonType = _data["reasonType"];
|
|
33966
34057
|
this.description = _data["description"];
|
|
34058
|
+
this.parentId = _data["parentId"];
|
|
34059
|
+
this.displayOrder = _data["displayOrder"];
|
|
33967
34060
|
}
|
|
33968
34061
|
}
|
|
33969
34062
|
|
|
@@ -33983,8 +34076,15 @@ export class DowntimeReasonDto implements IDowntimeReasonDto {
|
|
|
33983
34076
|
for (let item of this.machineTypes)
|
|
33984
34077
|
data["machineTypes"].push(item);
|
|
33985
34078
|
}
|
|
34079
|
+
if (Array.isArray(this.machineGroups)) {
|
|
34080
|
+
data["machineGroups"] = [];
|
|
34081
|
+
for (let item of this.machineGroups)
|
|
34082
|
+
data["machineGroups"].push(item);
|
|
34083
|
+
}
|
|
33986
34084
|
data["reasonType"] = this.reasonType;
|
|
33987
34085
|
data["description"] = this.description;
|
|
34086
|
+
data["parentId"] = this.parentId;
|
|
34087
|
+
data["displayOrder"] = this.displayOrder;
|
|
33988
34088
|
return data;
|
|
33989
34089
|
}
|
|
33990
34090
|
}
|
|
@@ -33993,15 +34093,21 @@ export interface IDowntimeReasonDto {
|
|
|
33993
34093
|
id: string;
|
|
33994
34094
|
reason: string;
|
|
33995
34095
|
machineTypes: string[];
|
|
34096
|
+
machineGroups: string[];
|
|
33996
34097
|
reasonType: DowntimeReasonTypeDto;
|
|
33997
34098
|
description?: string | null;
|
|
34099
|
+
parentId?: string | null;
|
|
34100
|
+
displayOrder?: number | null;
|
|
33998
34101
|
}
|
|
33999
34102
|
|
|
34000
34103
|
export class CreateDowntimeReason implements ICreateDowntimeReason {
|
|
34001
34104
|
reason!: string;
|
|
34002
34105
|
machineTypes!: string[];
|
|
34106
|
+
machineGroups?: string[] | null;
|
|
34003
34107
|
reasonType!: DowntimeReasonTypeDto;
|
|
34004
34108
|
description?: string | null;
|
|
34109
|
+
parentId?: string | null;
|
|
34110
|
+
displayOrder?: number | null;
|
|
34005
34111
|
|
|
34006
34112
|
constructor(data?: ICreateDowntimeReason) {
|
|
34007
34113
|
if (data) {
|
|
@@ -34023,8 +34129,15 @@ export class CreateDowntimeReason implements ICreateDowntimeReason {
|
|
|
34023
34129
|
for (let item of _data["machineTypes"])
|
|
34024
34130
|
this.machineTypes!.push(item);
|
|
34025
34131
|
}
|
|
34132
|
+
if (Array.isArray(_data["machineGroups"])) {
|
|
34133
|
+
this.machineGroups = [] as any;
|
|
34134
|
+
for (let item of _data["machineGroups"])
|
|
34135
|
+
this.machineGroups!.push(item);
|
|
34136
|
+
}
|
|
34026
34137
|
this.reasonType = _data["reasonType"];
|
|
34027
34138
|
this.description = _data["description"];
|
|
34139
|
+
this.parentId = _data["parentId"];
|
|
34140
|
+
this.displayOrder = _data["displayOrder"];
|
|
34028
34141
|
}
|
|
34029
34142
|
}
|
|
34030
34143
|
|
|
@@ -34043,8 +34156,15 @@ export class CreateDowntimeReason implements ICreateDowntimeReason {
|
|
|
34043
34156
|
for (let item of this.machineTypes)
|
|
34044
34157
|
data["machineTypes"].push(item);
|
|
34045
34158
|
}
|
|
34159
|
+
if (Array.isArray(this.machineGroups)) {
|
|
34160
|
+
data["machineGroups"] = [];
|
|
34161
|
+
for (let item of this.machineGroups)
|
|
34162
|
+
data["machineGroups"].push(item);
|
|
34163
|
+
}
|
|
34046
34164
|
data["reasonType"] = this.reasonType;
|
|
34047
34165
|
data["description"] = this.description;
|
|
34166
|
+
data["parentId"] = this.parentId;
|
|
34167
|
+
data["displayOrder"] = this.displayOrder;
|
|
34048
34168
|
return data;
|
|
34049
34169
|
}
|
|
34050
34170
|
}
|
|
@@ -34052,15 +34172,21 @@ export class CreateDowntimeReason implements ICreateDowntimeReason {
|
|
|
34052
34172
|
export interface ICreateDowntimeReason {
|
|
34053
34173
|
reason: string;
|
|
34054
34174
|
machineTypes: string[];
|
|
34175
|
+
machineGroups?: string[] | null;
|
|
34055
34176
|
reasonType: DowntimeReasonTypeDto;
|
|
34056
34177
|
description?: string | null;
|
|
34178
|
+
parentId?: string | null;
|
|
34179
|
+
displayOrder?: number | null;
|
|
34057
34180
|
}
|
|
34058
34181
|
|
|
34059
34182
|
export class UpdateDowntimeReasonRequest implements IUpdateDowntimeReasonRequest {
|
|
34060
34183
|
reason!: string;
|
|
34061
34184
|
machineTypes!: string[];
|
|
34185
|
+
machineGroups?: string[] | null;
|
|
34062
34186
|
reasonType!: DowntimeReasonTypeDto;
|
|
34063
34187
|
description?: string | null;
|
|
34188
|
+
parentId?: string | null;
|
|
34189
|
+
displayOrder?: number | null;
|
|
34064
34190
|
|
|
34065
34191
|
constructor(data?: IUpdateDowntimeReasonRequest) {
|
|
34066
34192
|
if (data) {
|
|
@@ -34082,8 +34208,15 @@ export class UpdateDowntimeReasonRequest implements IUpdateDowntimeReasonRequest
|
|
|
34082
34208
|
for (let item of _data["machineTypes"])
|
|
34083
34209
|
this.machineTypes!.push(item);
|
|
34084
34210
|
}
|
|
34211
|
+
if (Array.isArray(_data["machineGroups"])) {
|
|
34212
|
+
this.machineGroups = [] as any;
|
|
34213
|
+
for (let item of _data["machineGroups"])
|
|
34214
|
+
this.machineGroups!.push(item);
|
|
34215
|
+
}
|
|
34085
34216
|
this.reasonType = _data["reasonType"];
|
|
34086
34217
|
this.description = _data["description"];
|
|
34218
|
+
this.parentId = _data["parentId"];
|
|
34219
|
+
this.displayOrder = _data["displayOrder"];
|
|
34087
34220
|
}
|
|
34088
34221
|
}
|
|
34089
34222
|
|
|
@@ -34102,8 +34235,15 @@ export class UpdateDowntimeReasonRequest implements IUpdateDowntimeReasonRequest
|
|
|
34102
34235
|
for (let item of this.machineTypes)
|
|
34103
34236
|
data["machineTypes"].push(item);
|
|
34104
34237
|
}
|
|
34238
|
+
if (Array.isArray(this.machineGroups)) {
|
|
34239
|
+
data["machineGroups"] = [];
|
|
34240
|
+
for (let item of this.machineGroups)
|
|
34241
|
+
data["machineGroups"].push(item);
|
|
34242
|
+
}
|
|
34105
34243
|
data["reasonType"] = this.reasonType;
|
|
34106
34244
|
data["description"] = this.description;
|
|
34245
|
+
data["parentId"] = this.parentId;
|
|
34246
|
+
data["displayOrder"] = this.displayOrder;
|
|
34107
34247
|
return data;
|
|
34108
34248
|
}
|
|
34109
34249
|
}
|
|
@@ -34111,8 +34251,11 @@ export class UpdateDowntimeReasonRequest implements IUpdateDowntimeReasonRequest
|
|
|
34111
34251
|
export interface IUpdateDowntimeReasonRequest {
|
|
34112
34252
|
reason: string;
|
|
34113
34253
|
machineTypes: string[];
|
|
34254
|
+
machineGroups?: string[] | null;
|
|
34114
34255
|
reasonType: DowntimeReasonTypeDto;
|
|
34115
34256
|
description?: string | null;
|
|
34257
|
+
parentId?: string | null;
|
|
34258
|
+
displayOrder?: number | null;
|
|
34116
34259
|
}
|
|
34117
34260
|
|
|
34118
34261
|
export class MachineTypeDto implements IMachineTypeDto {
|
|
@@ -34151,6 +34294,154 @@ export interface IMachineTypeDto {
|
|
|
34151
34294
|
machineType: string;
|
|
34152
34295
|
}
|
|
34153
34296
|
|
|
34297
|
+
export class ParentTopicDto implements IParentTopicDto {
|
|
34298
|
+
id!: string;
|
|
34299
|
+
name!: string;
|
|
34300
|
+
description?: string | null;
|
|
34301
|
+
displayOrder?: number;
|
|
34302
|
+
subReasons?: DowntimeReasonDto[];
|
|
34303
|
+
|
|
34304
|
+
constructor(data?: IParentTopicDto) {
|
|
34305
|
+
if (data) {
|
|
34306
|
+
for (var property in data) {
|
|
34307
|
+
if (data.hasOwnProperty(property))
|
|
34308
|
+
(<any>this)[property] = (<any>data)[property];
|
|
34309
|
+
}
|
|
34310
|
+
}
|
|
34311
|
+
}
|
|
34312
|
+
|
|
34313
|
+
init(_data?: any) {
|
|
34314
|
+
if (_data) {
|
|
34315
|
+
this.id = _data["id"];
|
|
34316
|
+
this.name = _data["name"];
|
|
34317
|
+
this.description = _data["description"];
|
|
34318
|
+
this.displayOrder = _data["displayOrder"];
|
|
34319
|
+
if (Array.isArray(_data["subReasons"])) {
|
|
34320
|
+
this.subReasons = [] as any;
|
|
34321
|
+
for (let item of _data["subReasons"])
|
|
34322
|
+
this.subReasons!.push(DowntimeReasonDto.fromJS(item));
|
|
34323
|
+
}
|
|
34324
|
+
}
|
|
34325
|
+
}
|
|
34326
|
+
|
|
34327
|
+
static fromJS(data: any): ParentTopicDto {
|
|
34328
|
+
data = typeof data === 'object' ? data : {};
|
|
34329
|
+
let result = new ParentTopicDto();
|
|
34330
|
+
result.init(data);
|
|
34331
|
+
return result;
|
|
34332
|
+
}
|
|
34333
|
+
|
|
34334
|
+
toJSON(data?: any) {
|
|
34335
|
+
data = typeof data === 'object' ? data : {};
|
|
34336
|
+
data["id"] = this.id;
|
|
34337
|
+
data["name"] = this.name;
|
|
34338
|
+
data["description"] = this.description;
|
|
34339
|
+
data["displayOrder"] = this.displayOrder;
|
|
34340
|
+
if (Array.isArray(this.subReasons)) {
|
|
34341
|
+
data["subReasons"] = [];
|
|
34342
|
+
for (let item of this.subReasons)
|
|
34343
|
+
data["subReasons"].push(item.toJSON());
|
|
34344
|
+
}
|
|
34345
|
+
return data;
|
|
34346
|
+
}
|
|
34347
|
+
}
|
|
34348
|
+
|
|
34349
|
+
export interface IParentTopicDto {
|
|
34350
|
+
id: string;
|
|
34351
|
+
name: string;
|
|
34352
|
+
description?: string | null;
|
|
34353
|
+
displayOrder?: number;
|
|
34354
|
+
subReasons?: DowntimeReasonDto[];
|
|
34355
|
+
}
|
|
34356
|
+
|
|
34357
|
+
export class CreateParentTopicRequest implements ICreateParentTopicRequest {
|
|
34358
|
+
name!: string;
|
|
34359
|
+
description?: string | null;
|
|
34360
|
+
displayOrder?: number | null;
|
|
34361
|
+
|
|
34362
|
+
constructor(data?: ICreateParentTopicRequest) {
|
|
34363
|
+
if (data) {
|
|
34364
|
+
for (var property in data) {
|
|
34365
|
+
if (data.hasOwnProperty(property))
|
|
34366
|
+
(<any>this)[property] = (<any>data)[property];
|
|
34367
|
+
}
|
|
34368
|
+
}
|
|
34369
|
+
}
|
|
34370
|
+
|
|
34371
|
+
init(_data?: any) {
|
|
34372
|
+
if (_data) {
|
|
34373
|
+
this.name = _data["name"];
|
|
34374
|
+
this.description = _data["description"];
|
|
34375
|
+
this.displayOrder = _data["displayOrder"];
|
|
34376
|
+
}
|
|
34377
|
+
}
|
|
34378
|
+
|
|
34379
|
+
static fromJS(data: any): CreateParentTopicRequest {
|
|
34380
|
+
data = typeof data === 'object' ? data : {};
|
|
34381
|
+
let result = new CreateParentTopicRequest();
|
|
34382
|
+
result.init(data);
|
|
34383
|
+
return result;
|
|
34384
|
+
}
|
|
34385
|
+
|
|
34386
|
+
toJSON(data?: any) {
|
|
34387
|
+
data = typeof data === 'object' ? data : {};
|
|
34388
|
+
data["name"] = this.name;
|
|
34389
|
+
data["description"] = this.description;
|
|
34390
|
+
data["displayOrder"] = this.displayOrder;
|
|
34391
|
+
return data;
|
|
34392
|
+
}
|
|
34393
|
+
}
|
|
34394
|
+
|
|
34395
|
+
export interface ICreateParentTopicRequest {
|
|
34396
|
+
name: string;
|
|
34397
|
+
description?: string | null;
|
|
34398
|
+
displayOrder?: number | null;
|
|
34399
|
+
}
|
|
34400
|
+
|
|
34401
|
+
export class UpdateParentTopicRequest implements IUpdateParentTopicRequest {
|
|
34402
|
+
name!: string;
|
|
34403
|
+
description?: string | null;
|
|
34404
|
+
displayOrder?: number | null;
|
|
34405
|
+
|
|
34406
|
+
constructor(data?: IUpdateParentTopicRequest) {
|
|
34407
|
+
if (data) {
|
|
34408
|
+
for (var property in data) {
|
|
34409
|
+
if (data.hasOwnProperty(property))
|
|
34410
|
+
(<any>this)[property] = (<any>data)[property];
|
|
34411
|
+
}
|
|
34412
|
+
}
|
|
34413
|
+
}
|
|
34414
|
+
|
|
34415
|
+
init(_data?: any) {
|
|
34416
|
+
if (_data) {
|
|
34417
|
+
this.name = _data["name"];
|
|
34418
|
+
this.description = _data["description"];
|
|
34419
|
+
this.displayOrder = _data["displayOrder"];
|
|
34420
|
+
}
|
|
34421
|
+
}
|
|
34422
|
+
|
|
34423
|
+
static fromJS(data: any): UpdateParentTopicRequest {
|
|
34424
|
+
data = typeof data === 'object' ? data : {};
|
|
34425
|
+
let result = new UpdateParentTopicRequest();
|
|
34426
|
+
result.init(data);
|
|
34427
|
+
return result;
|
|
34428
|
+
}
|
|
34429
|
+
|
|
34430
|
+
toJSON(data?: any) {
|
|
34431
|
+
data = typeof data === 'object' ? data : {};
|
|
34432
|
+
data["name"] = this.name;
|
|
34433
|
+
data["description"] = this.description;
|
|
34434
|
+
data["displayOrder"] = this.displayOrder;
|
|
34435
|
+
return data;
|
|
34436
|
+
}
|
|
34437
|
+
}
|
|
34438
|
+
|
|
34439
|
+
export interface IUpdateParentTopicRequest {
|
|
34440
|
+
name: string;
|
|
34441
|
+
description?: string | null;
|
|
34442
|
+
displayOrder?: number | null;
|
|
34443
|
+
}
|
|
34444
|
+
|
|
34154
34445
|
export class CreateDowntimePeriodReason implements ICreateDowntimePeriodReason {
|
|
34155
34446
|
reasonId!: string;
|
|
34156
34447
|
assetId!: number;
|
|
@@ -58050,98 +58341,6 @@ export interface IExportDimensionReportRequest {
|
|
|
58050
58341
|
comment?: string | null;
|
|
58051
58342
|
}
|
|
58052
58343
|
|
|
58053
|
-
export class UpdateSchemaInstanceElementsRequest implements IUpdateSchemaInstanceElementsRequest {
|
|
58054
|
-
elements?: SchemaInstanceElementDto[] | null;
|
|
58055
|
-
|
|
58056
|
-
constructor(data?: IUpdateSchemaInstanceElementsRequest) {
|
|
58057
|
-
if (data) {
|
|
58058
|
-
for (var property in data) {
|
|
58059
|
-
if (data.hasOwnProperty(property))
|
|
58060
|
-
(<any>this)[property] = (<any>data)[property];
|
|
58061
|
-
}
|
|
58062
|
-
}
|
|
58063
|
-
}
|
|
58064
|
-
|
|
58065
|
-
init(_data?: any) {
|
|
58066
|
-
if (_data) {
|
|
58067
|
-
if (Array.isArray(_data["elements"])) {
|
|
58068
|
-
this.elements = [] as any;
|
|
58069
|
-
for (let item of _data["elements"])
|
|
58070
|
-
this.elements!.push(SchemaInstanceElementDto.fromJS(item));
|
|
58071
|
-
}
|
|
58072
|
-
}
|
|
58073
|
-
}
|
|
58074
|
-
|
|
58075
|
-
static fromJS(data: any): UpdateSchemaInstanceElementsRequest {
|
|
58076
|
-
data = typeof data === 'object' ? data : {};
|
|
58077
|
-
let result = new UpdateSchemaInstanceElementsRequest();
|
|
58078
|
-
result.init(data);
|
|
58079
|
-
return result;
|
|
58080
|
-
}
|
|
58081
|
-
|
|
58082
|
-
toJSON(data?: any) {
|
|
58083
|
-
data = typeof data === 'object' ? data : {};
|
|
58084
|
-
if (Array.isArray(this.elements)) {
|
|
58085
|
-
data["elements"] = [];
|
|
58086
|
-
for (let item of this.elements)
|
|
58087
|
-
data["elements"].push(item.toJSON());
|
|
58088
|
-
}
|
|
58089
|
-
return data;
|
|
58090
|
-
}
|
|
58091
|
-
}
|
|
58092
|
-
|
|
58093
|
-
export interface IUpdateSchemaInstanceElementsRequest {
|
|
58094
|
-
elements?: SchemaInstanceElementDto[] | null;
|
|
58095
|
-
}
|
|
58096
|
-
|
|
58097
|
-
export class SchemaInstanceElementDto implements ISchemaInstanceElementDto {
|
|
58098
|
-
elementId!: string;
|
|
58099
|
-
balloonId?: string | null;
|
|
58100
|
-
reference!: number;
|
|
58101
|
-
disabled!: boolean;
|
|
58102
|
-
|
|
58103
|
-
constructor(data?: ISchemaInstanceElementDto) {
|
|
58104
|
-
if (data) {
|
|
58105
|
-
for (var property in data) {
|
|
58106
|
-
if (data.hasOwnProperty(property))
|
|
58107
|
-
(<any>this)[property] = (<any>data)[property];
|
|
58108
|
-
}
|
|
58109
|
-
}
|
|
58110
|
-
}
|
|
58111
|
-
|
|
58112
|
-
init(_data?: any) {
|
|
58113
|
-
if (_data) {
|
|
58114
|
-
this.elementId = _data["elementId"];
|
|
58115
|
-
this.balloonId = _data["balloonId"];
|
|
58116
|
-
this.reference = _data["reference"];
|
|
58117
|
-
this.disabled = _data["disabled"];
|
|
58118
|
-
}
|
|
58119
|
-
}
|
|
58120
|
-
|
|
58121
|
-
static fromJS(data: any): SchemaInstanceElementDto {
|
|
58122
|
-
data = typeof data === 'object' ? data : {};
|
|
58123
|
-
let result = new SchemaInstanceElementDto();
|
|
58124
|
-
result.init(data);
|
|
58125
|
-
return result;
|
|
58126
|
-
}
|
|
58127
|
-
|
|
58128
|
-
toJSON(data?: any) {
|
|
58129
|
-
data = typeof data === 'object' ? data : {};
|
|
58130
|
-
data["elementId"] = this.elementId;
|
|
58131
|
-
data["balloonId"] = this.balloonId;
|
|
58132
|
-
data["reference"] = this.reference;
|
|
58133
|
-
data["disabled"] = this.disabled;
|
|
58134
|
-
return data;
|
|
58135
|
-
}
|
|
58136
|
-
}
|
|
58137
|
-
|
|
58138
|
-
export interface ISchemaInstanceElementDto {
|
|
58139
|
-
elementId: string;
|
|
58140
|
-
balloonId?: string | null;
|
|
58141
|
-
reference: number;
|
|
58142
|
-
disabled: boolean;
|
|
58143
|
-
}
|
|
58144
|
-
|
|
58145
58344
|
export class ProductionCompanyDto implements IProductionCompanyDto {
|
|
58146
58345
|
id!: string;
|
|
58147
58346
|
name!: string;
|