@ignos/api-client 20250904.0.12514 → 20250910.0.12573-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 +108 -24
- package/lib/ignosportal-api.js +344 -79
- package/package.json +1 -1
- package/src/ignosportal-api.ts +444 -100
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 {
|
|
@@ -21181,13 +21347,14 @@ export interface IMeasurementFormsInstancesClient {
|
|
|
21181
21347
|
|
|
21182
21348
|
removeSupplierFromMeasurmentFormInstance(id: string, supplierId: string): Promise<void>;
|
|
21183
21349
|
|
|
21350
|
+
/**
|
|
21351
|
+
* @deprecated
|
|
21352
|
+
*/
|
|
21184
21353
|
exportDimensionReport(id: string, request: ExportDimensionReportRequest): Promise<DownloadDto>;
|
|
21185
21354
|
|
|
21186
|
-
|
|
21187
|
-
|
|
21188
|
-
updateSchemaInstanceElements(id: string, schemaId: string, request: UpdateSchemaInstanceElementsRequest): Promise<void>;
|
|
21355
|
+
exportDimensionReportV2(id: string, request: ExportDimensionReportV2Request): Promise<DownloadDto>;
|
|
21189
21356
|
|
|
21190
|
-
|
|
21357
|
+
exportDimensionReportValues(id: string): Promise<DownloadDto>;
|
|
21191
21358
|
|
|
21192
21359
|
toggleSchemaInstanceElementDocumentedExternallyOverride(id: string, schemaId: string, elementId: string, tenantId: string | null | undefined): Promise<void>;
|
|
21193
21360
|
}
|
|
@@ -22360,6 +22527,9 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase implement
|
|
|
22360
22527
|
return Promise.resolve<void>(null as any);
|
|
22361
22528
|
}
|
|
22362
22529
|
|
|
22530
|
+
/**
|
|
22531
|
+
* @deprecated
|
|
22532
|
+
*/
|
|
22363
22533
|
exportDimensionReport(id: string, request: ExportDimensionReportRequest): Promise<DownloadDto> {
|
|
22364
22534
|
let url_ = this.baseUrl + "/measurementforms/instances/{id}/report";
|
|
22365
22535
|
if (id === undefined || id === null)
|
|
@@ -22403,16 +22573,20 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase implement
|
|
|
22403
22573
|
return Promise.resolve<DownloadDto>(null as any);
|
|
22404
22574
|
}
|
|
22405
22575
|
|
|
22406
|
-
|
|
22407
|
-
let url_ = this.baseUrl + "/measurementforms/instances/{id}/
|
|
22576
|
+
exportDimensionReportV2(id: string, request: ExportDimensionReportV2Request): Promise<DownloadDto> {
|
|
22577
|
+
let url_ = this.baseUrl + "/measurementforms/instances/{id}/reportv2";
|
|
22408
22578
|
if (id === undefined || id === null)
|
|
22409
22579
|
throw new Error("The parameter 'id' must be defined.");
|
|
22410
22580
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
22411
22581
|
url_ = url_.replace(/[?&]$/, "");
|
|
22412
22582
|
|
|
22583
|
+
const content_ = JSON.stringify(request);
|
|
22584
|
+
|
|
22413
22585
|
let options_: RequestInit = {
|
|
22586
|
+
body: content_,
|
|
22414
22587
|
method: "POST",
|
|
22415
22588
|
headers: {
|
|
22589
|
+
"Content-Type": "application/json",
|
|
22416
22590
|
"Accept": "application/json"
|
|
22417
22591
|
}
|
|
22418
22592
|
};
|
|
@@ -22420,11 +22594,11 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase implement
|
|
|
22420
22594
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
22421
22595
|
return this.http.fetch(url_, transformedOptions_);
|
|
22422
22596
|
}).then((_response: Response) => {
|
|
22423
|
-
return this.
|
|
22597
|
+
return this.processExportDimensionReportV2(_response);
|
|
22424
22598
|
});
|
|
22425
22599
|
}
|
|
22426
22600
|
|
|
22427
|
-
protected
|
|
22601
|
+
protected processExportDimensionReportV2(response: Response): Promise<DownloadDto> {
|
|
22428
22602
|
const status = response.status;
|
|
22429
22603
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
22430
22604
|
if (status === 200) {
|
|
@@ -22442,60 +22616,15 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase implement
|
|
|
22442
22616
|
return Promise.resolve<DownloadDto>(null as any);
|
|
22443
22617
|
}
|
|
22444
22618
|
|
|
22445
|
-
|
|
22446
|
-
let url_ = this.baseUrl + "/measurementforms/instances/{id}/
|
|
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";
|
|
22619
|
+
exportDimensionReportValues(id: string): Promise<DownloadDto> {
|
|
22620
|
+
let url_ = this.baseUrl + "/measurementforms/instances/{id}/exportvalues";
|
|
22489
22621
|
if (id === undefined || id === null)
|
|
22490
22622
|
throw new Error("The parameter 'id' must be defined.");
|
|
22491
22623
|
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
22624
|
url_ = url_.replace(/[?&]$/, "");
|
|
22496
22625
|
|
|
22497
22626
|
let options_: RequestInit = {
|
|
22498
|
-
method: "
|
|
22627
|
+
method: "POST",
|
|
22499
22628
|
headers: {
|
|
22500
22629
|
"Accept": "application/json"
|
|
22501
22630
|
}
|
|
@@ -22504,22 +22633,18 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase implement
|
|
|
22504
22633
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
22505
22634
|
return this.http.fetch(url_, transformedOptions_);
|
|
22506
22635
|
}).then((_response: Response) => {
|
|
22507
|
-
return this.
|
|
22636
|
+
return this.processExportDimensionReportValues(_response);
|
|
22508
22637
|
});
|
|
22509
22638
|
}
|
|
22510
22639
|
|
|
22511
|
-
protected
|
|
22640
|
+
protected processExportDimensionReportValues(response: Response): Promise<DownloadDto> {
|
|
22512
22641
|
const status = response.status;
|
|
22513
22642
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
22514
22643
|
if (status === 200) {
|
|
22515
22644
|
return response.text().then((_responseText) => {
|
|
22516
22645
|
let result200: any = null;
|
|
22517
22646
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
22518
|
-
|
|
22519
|
-
result200 = [] as any;
|
|
22520
|
-
for (let item of resultData200)
|
|
22521
|
-
result200!.push(SchemaInstanceElementDto.fromJS(item));
|
|
22522
|
-
}
|
|
22647
|
+
result200 = DownloadDto.fromJS(resultData200);
|
|
22523
22648
|
return result200;
|
|
22524
22649
|
});
|
|
22525
22650
|
} else if (status !== 200 && status !== 204) {
|
|
@@ -22527,7 +22652,7 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase implement
|
|
|
22527
22652
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
22528
22653
|
});
|
|
22529
22654
|
}
|
|
22530
|
-
return Promise.resolve<
|
|
22655
|
+
return Promise.resolve<DownloadDto>(null as any);
|
|
22531
22656
|
}
|
|
22532
22657
|
|
|
22533
22658
|
toggleSchemaInstanceElementDocumentedExternallyOverride(id: string, schemaId: string, elementId: string, tenantId: string | null | undefined): Promise<void> {
|
|
@@ -33938,8 +34063,11 @@ export class DowntimeReasonDto implements IDowntimeReasonDto {
|
|
|
33938
34063
|
id!: string;
|
|
33939
34064
|
reason!: string;
|
|
33940
34065
|
machineTypes!: string[];
|
|
34066
|
+
machineGroups!: string[];
|
|
33941
34067
|
reasonType!: DowntimeReasonTypeDto;
|
|
33942
34068
|
description?: string | null;
|
|
34069
|
+
parentId?: string | null;
|
|
34070
|
+
displayOrder?: number | null;
|
|
33943
34071
|
|
|
33944
34072
|
constructor(data?: IDowntimeReasonDto) {
|
|
33945
34073
|
if (data) {
|
|
@@ -33950,6 +34078,7 @@ export class DowntimeReasonDto implements IDowntimeReasonDto {
|
|
|
33950
34078
|
}
|
|
33951
34079
|
if (!data) {
|
|
33952
34080
|
this.machineTypes = [];
|
|
34081
|
+
this.machineGroups = [];
|
|
33953
34082
|
}
|
|
33954
34083
|
}
|
|
33955
34084
|
|
|
@@ -33962,8 +34091,15 @@ export class DowntimeReasonDto implements IDowntimeReasonDto {
|
|
|
33962
34091
|
for (let item of _data["machineTypes"])
|
|
33963
34092
|
this.machineTypes!.push(item);
|
|
33964
34093
|
}
|
|
34094
|
+
if (Array.isArray(_data["machineGroups"])) {
|
|
34095
|
+
this.machineGroups = [] as any;
|
|
34096
|
+
for (let item of _data["machineGroups"])
|
|
34097
|
+
this.machineGroups!.push(item);
|
|
34098
|
+
}
|
|
33965
34099
|
this.reasonType = _data["reasonType"];
|
|
33966
34100
|
this.description = _data["description"];
|
|
34101
|
+
this.parentId = _data["parentId"];
|
|
34102
|
+
this.displayOrder = _data["displayOrder"];
|
|
33967
34103
|
}
|
|
33968
34104
|
}
|
|
33969
34105
|
|
|
@@ -33983,8 +34119,15 @@ export class DowntimeReasonDto implements IDowntimeReasonDto {
|
|
|
33983
34119
|
for (let item of this.machineTypes)
|
|
33984
34120
|
data["machineTypes"].push(item);
|
|
33985
34121
|
}
|
|
34122
|
+
if (Array.isArray(this.machineGroups)) {
|
|
34123
|
+
data["machineGroups"] = [];
|
|
34124
|
+
for (let item of this.machineGroups)
|
|
34125
|
+
data["machineGroups"].push(item);
|
|
34126
|
+
}
|
|
33986
34127
|
data["reasonType"] = this.reasonType;
|
|
33987
34128
|
data["description"] = this.description;
|
|
34129
|
+
data["parentId"] = this.parentId;
|
|
34130
|
+
data["displayOrder"] = this.displayOrder;
|
|
33988
34131
|
return data;
|
|
33989
34132
|
}
|
|
33990
34133
|
}
|
|
@@ -33993,15 +34136,21 @@ export interface IDowntimeReasonDto {
|
|
|
33993
34136
|
id: string;
|
|
33994
34137
|
reason: string;
|
|
33995
34138
|
machineTypes: string[];
|
|
34139
|
+
machineGroups: string[];
|
|
33996
34140
|
reasonType: DowntimeReasonTypeDto;
|
|
33997
34141
|
description?: string | null;
|
|
34142
|
+
parentId?: string | null;
|
|
34143
|
+
displayOrder?: number | null;
|
|
33998
34144
|
}
|
|
33999
34145
|
|
|
34000
34146
|
export class CreateDowntimeReason implements ICreateDowntimeReason {
|
|
34001
34147
|
reason!: string;
|
|
34002
34148
|
machineTypes!: string[];
|
|
34149
|
+
machineGroups?: string[] | null;
|
|
34003
34150
|
reasonType!: DowntimeReasonTypeDto;
|
|
34004
34151
|
description?: string | null;
|
|
34152
|
+
parentId?: string | null;
|
|
34153
|
+
displayOrder?: number | null;
|
|
34005
34154
|
|
|
34006
34155
|
constructor(data?: ICreateDowntimeReason) {
|
|
34007
34156
|
if (data) {
|
|
@@ -34023,8 +34172,15 @@ export class CreateDowntimeReason implements ICreateDowntimeReason {
|
|
|
34023
34172
|
for (let item of _data["machineTypes"])
|
|
34024
34173
|
this.machineTypes!.push(item);
|
|
34025
34174
|
}
|
|
34175
|
+
if (Array.isArray(_data["machineGroups"])) {
|
|
34176
|
+
this.machineGroups = [] as any;
|
|
34177
|
+
for (let item of _data["machineGroups"])
|
|
34178
|
+
this.machineGroups!.push(item);
|
|
34179
|
+
}
|
|
34026
34180
|
this.reasonType = _data["reasonType"];
|
|
34027
34181
|
this.description = _data["description"];
|
|
34182
|
+
this.parentId = _data["parentId"];
|
|
34183
|
+
this.displayOrder = _data["displayOrder"];
|
|
34028
34184
|
}
|
|
34029
34185
|
}
|
|
34030
34186
|
|
|
@@ -34043,8 +34199,15 @@ export class CreateDowntimeReason implements ICreateDowntimeReason {
|
|
|
34043
34199
|
for (let item of this.machineTypes)
|
|
34044
34200
|
data["machineTypes"].push(item);
|
|
34045
34201
|
}
|
|
34202
|
+
if (Array.isArray(this.machineGroups)) {
|
|
34203
|
+
data["machineGroups"] = [];
|
|
34204
|
+
for (let item of this.machineGroups)
|
|
34205
|
+
data["machineGroups"].push(item);
|
|
34206
|
+
}
|
|
34046
34207
|
data["reasonType"] = this.reasonType;
|
|
34047
34208
|
data["description"] = this.description;
|
|
34209
|
+
data["parentId"] = this.parentId;
|
|
34210
|
+
data["displayOrder"] = this.displayOrder;
|
|
34048
34211
|
return data;
|
|
34049
34212
|
}
|
|
34050
34213
|
}
|
|
@@ -34052,15 +34215,21 @@ export class CreateDowntimeReason implements ICreateDowntimeReason {
|
|
|
34052
34215
|
export interface ICreateDowntimeReason {
|
|
34053
34216
|
reason: string;
|
|
34054
34217
|
machineTypes: string[];
|
|
34218
|
+
machineGroups?: string[] | null;
|
|
34055
34219
|
reasonType: DowntimeReasonTypeDto;
|
|
34056
34220
|
description?: string | null;
|
|
34221
|
+
parentId?: string | null;
|
|
34222
|
+
displayOrder?: number | null;
|
|
34057
34223
|
}
|
|
34058
34224
|
|
|
34059
34225
|
export class UpdateDowntimeReasonRequest implements IUpdateDowntimeReasonRequest {
|
|
34060
34226
|
reason!: string;
|
|
34061
34227
|
machineTypes!: string[];
|
|
34228
|
+
machineGroups?: string[] | null;
|
|
34062
34229
|
reasonType!: DowntimeReasonTypeDto;
|
|
34063
34230
|
description?: string | null;
|
|
34231
|
+
parentId?: string | null;
|
|
34232
|
+
displayOrder?: number | null;
|
|
34064
34233
|
|
|
34065
34234
|
constructor(data?: IUpdateDowntimeReasonRequest) {
|
|
34066
34235
|
if (data) {
|
|
@@ -34082,8 +34251,15 @@ export class UpdateDowntimeReasonRequest implements IUpdateDowntimeReasonRequest
|
|
|
34082
34251
|
for (let item of _data["machineTypes"])
|
|
34083
34252
|
this.machineTypes!.push(item);
|
|
34084
34253
|
}
|
|
34254
|
+
if (Array.isArray(_data["machineGroups"])) {
|
|
34255
|
+
this.machineGroups = [] as any;
|
|
34256
|
+
for (let item of _data["machineGroups"])
|
|
34257
|
+
this.machineGroups!.push(item);
|
|
34258
|
+
}
|
|
34085
34259
|
this.reasonType = _data["reasonType"];
|
|
34086
34260
|
this.description = _data["description"];
|
|
34261
|
+
this.parentId = _data["parentId"];
|
|
34262
|
+
this.displayOrder = _data["displayOrder"];
|
|
34087
34263
|
}
|
|
34088
34264
|
}
|
|
34089
34265
|
|
|
@@ -34102,8 +34278,15 @@ export class UpdateDowntimeReasonRequest implements IUpdateDowntimeReasonRequest
|
|
|
34102
34278
|
for (let item of this.machineTypes)
|
|
34103
34279
|
data["machineTypes"].push(item);
|
|
34104
34280
|
}
|
|
34281
|
+
if (Array.isArray(this.machineGroups)) {
|
|
34282
|
+
data["machineGroups"] = [];
|
|
34283
|
+
for (let item of this.machineGroups)
|
|
34284
|
+
data["machineGroups"].push(item);
|
|
34285
|
+
}
|
|
34105
34286
|
data["reasonType"] = this.reasonType;
|
|
34106
34287
|
data["description"] = this.description;
|
|
34288
|
+
data["parentId"] = this.parentId;
|
|
34289
|
+
data["displayOrder"] = this.displayOrder;
|
|
34107
34290
|
return data;
|
|
34108
34291
|
}
|
|
34109
34292
|
}
|
|
@@ -34111,8 +34294,11 @@ export class UpdateDowntimeReasonRequest implements IUpdateDowntimeReasonRequest
|
|
|
34111
34294
|
export interface IUpdateDowntimeReasonRequest {
|
|
34112
34295
|
reason: string;
|
|
34113
34296
|
machineTypes: string[];
|
|
34297
|
+
machineGroups?: string[] | null;
|
|
34114
34298
|
reasonType: DowntimeReasonTypeDto;
|
|
34115
34299
|
description?: string | null;
|
|
34300
|
+
parentId?: string | null;
|
|
34301
|
+
displayOrder?: number | null;
|
|
34116
34302
|
}
|
|
34117
34303
|
|
|
34118
34304
|
export class MachineTypeDto implements IMachineTypeDto {
|
|
@@ -34151,6 +34337,154 @@ export interface IMachineTypeDto {
|
|
|
34151
34337
|
machineType: string;
|
|
34152
34338
|
}
|
|
34153
34339
|
|
|
34340
|
+
export class ParentTopicDto implements IParentTopicDto {
|
|
34341
|
+
id!: string;
|
|
34342
|
+
name!: string;
|
|
34343
|
+
description?: string | null;
|
|
34344
|
+
displayOrder?: number;
|
|
34345
|
+
subReasons?: DowntimeReasonDto[];
|
|
34346
|
+
|
|
34347
|
+
constructor(data?: IParentTopicDto) {
|
|
34348
|
+
if (data) {
|
|
34349
|
+
for (var property in data) {
|
|
34350
|
+
if (data.hasOwnProperty(property))
|
|
34351
|
+
(<any>this)[property] = (<any>data)[property];
|
|
34352
|
+
}
|
|
34353
|
+
}
|
|
34354
|
+
}
|
|
34355
|
+
|
|
34356
|
+
init(_data?: any) {
|
|
34357
|
+
if (_data) {
|
|
34358
|
+
this.id = _data["id"];
|
|
34359
|
+
this.name = _data["name"];
|
|
34360
|
+
this.description = _data["description"];
|
|
34361
|
+
this.displayOrder = _data["displayOrder"];
|
|
34362
|
+
if (Array.isArray(_data["subReasons"])) {
|
|
34363
|
+
this.subReasons = [] as any;
|
|
34364
|
+
for (let item of _data["subReasons"])
|
|
34365
|
+
this.subReasons!.push(DowntimeReasonDto.fromJS(item));
|
|
34366
|
+
}
|
|
34367
|
+
}
|
|
34368
|
+
}
|
|
34369
|
+
|
|
34370
|
+
static fromJS(data: any): ParentTopicDto {
|
|
34371
|
+
data = typeof data === 'object' ? data : {};
|
|
34372
|
+
let result = new ParentTopicDto();
|
|
34373
|
+
result.init(data);
|
|
34374
|
+
return result;
|
|
34375
|
+
}
|
|
34376
|
+
|
|
34377
|
+
toJSON(data?: any) {
|
|
34378
|
+
data = typeof data === 'object' ? data : {};
|
|
34379
|
+
data["id"] = this.id;
|
|
34380
|
+
data["name"] = this.name;
|
|
34381
|
+
data["description"] = this.description;
|
|
34382
|
+
data["displayOrder"] = this.displayOrder;
|
|
34383
|
+
if (Array.isArray(this.subReasons)) {
|
|
34384
|
+
data["subReasons"] = [];
|
|
34385
|
+
for (let item of this.subReasons)
|
|
34386
|
+
data["subReasons"].push(item.toJSON());
|
|
34387
|
+
}
|
|
34388
|
+
return data;
|
|
34389
|
+
}
|
|
34390
|
+
}
|
|
34391
|
+
|
|
34392
|
+
export interface IParentTopicDto {
|
|
34393
|
+
id: string;
|
|
34394
|
+
name: string;
|
|
34395
|
+
description?: string | null;
|
|
34396
|
+
displayOrder?: number;
|
|
34397
|
+
subReasons?: DowntimeReasonDto[];
|
|
34398
|
+
}
|
|
34399
|
+
|
|
34400
|
+
export class CreateParentTopicRequest implements ICreateParentTopicRequest {
|
|
34401
|
+
name!: string;
|
|
34402
|
+
description?: string | null;
|
|
34403
|
+
displayOrder?: number | null;
|
|
34404
|
+
|
|
34405
|
+
constructor(data?: ICreateParentTopicRequest) {
|
|
34406
|
+
if (data) {
|
|
34407
|
+
for (var property in data) {
|
|
34408
|
+
if (data.hasOwnProperty(property))
|
|
34409
|
+
(<any>this)[property] = (<any>data)[property];
|
|
34410
|
+
}
|
|
34411
|
+
}
|
|
34412
|
+
}
|
|
34413
|
+
|
|
34414
|
+
init(_data?: any) {
|
|
34415
|
+
if (_data) {
|
|
34416
|
+
this.name = _data["name"];
|
|
34417
|
+
this.description = _data["description"];
|
|
34418
|
+
this.displayOrder = _data["displayOrder"];
|
|
34419
|
+
}
|
|
34420
|
+
}
|
|
34421
|
+
|
|
34422
|
+
static fromJS(data: any): CreateParentTopicRequest {
|
|
34423
|
+
data = typeof data === 'object' ? data : {};
|
|
34424
|
+
let result = new CreateParentTopicRequest();
|
|
34425
|
+
result.init(data);
|
|
34426
|
+
return result;
|
|
34427
|
+
}
|
|
34428
|
+
|
|
34429
|
+
toJSON(data?: any) {
|
|
34430
|
+
data = typeof data === 'object' ? data : {};
|
|
34431
|
+
data["name"] = this.name;
|
|
34432
|
+
data["description"] = this.description;
|
|
34433
|
+
data["displayOrder"] = this.displayOrder;
|
|
34434
|
+
return data;
|
|
34435
|
+
}
|
|
34436
|
+
}
|
|
34437
|
+
|
|
34438
|
+
export interface ICreateParentTopicRequest {
|
|
34439
|
+
name: string;
|
|
34440
|
+
description?: string | null;
|
|
34441
|
+
displayOrder?: number | null;
|
|
34442
|
+
}
|
|
34443
|
+
|
|
34444
|
+
export class UpdateParentTopicRequest implements IUpdateParentTopicRequest {
|
|
34445
|
+
name!: string;
|
|
34446
|
+
description?: string | null;
|
|
34447
|
+
displayOrder?: number | null;
|
|
34448
|
+
|
|
34449
|
+
constructor(data?: IUpdateParentTopicRequest) {
|
|
34450
|
+
if (data) {
|
|
34451
|
+
for (var property in data) {
|
|
34452
|
+
if (data.hasOwnProperty(property))
|
|
34453
|
+
(<any>this)[property] = (<any>data)[property];
|
|
34454
|
+
}
|
|
34455
|
+
}
|
|
34456
|
+
}
|
|
34457
|
+
|
|
34458
|
+
init(_data?: any) {
|
|
34459
|
+
if (_data) {
|
|
34460
|
+
this.name = _data["name"];
|
|
34461
|
+
this.description = _data["description"];
|
|
34462
|
+
this.displayOrder = _data["displayOrder"];
|
|
34463
|
+
}
|
|
34464
|
+
}
|
|
34465
|
+
|
|
34466
|
+
static fromJS(data: any): UpdateParentTopicRequest {
|
|
34467
|
+
data = typeof data === 'object' ? data : {};
|
|
34468
|
+
let result = new UpdateParentTopicRequest();
|
|
34469
|
+
result.init(data);
|
|
34470
|
+
return result;
|
|
34471
|
+
}
|
|
34472
|
+
|
|
34473
|
+
toJSON(data?: any) {
|
|
34474
|
+
data = typeof data === 'object' ? data : {};
|
|
34475
|
+
data["name"] = this.name;
|
|
34476
|
+
data["description"] = this.description;
|
|
34477
|
+
data["displayOrder"] = this.displayOrder;
|
|
34478
|
+
return data;
|
|
34479
|
+
}
|
|
34480
|
+
}
|
|
34481
|
+
|
|
34482
|
+
export interface IUpdateParentTopicRequest {
|
|
34483
|
+
name: string;
|
|
34484
|
+
description?: string | null;
|
|
34485
|
+
displayOrder?: number | null;
|
|
34486
|
+
}
|
|
34487
|
+
|
|
34154
34488
|
export class CreateDowntimePeriodReason implements ICreateDowntimePeriodReason {
|
|
34155
34489
|
reasonId!: string;
|
|
34156
34490
|
assetId!: number;
|
|
@@ -58050,10 +58384,13 @@ export interface IExportDimensionReportRequest {
|
|
|
58050
58384
|
comment?: string | null;
|
|
58051
58385
|
}
|
|
58052
58386
|
|
|
58053
|
-
export class
|
|
58054
|
-
|
|
58387
|
+
export class ExportDimensionReportV2Request implements IExportDimensionReportV2Request {
|
|
58388
|
+
tenantId?: string;
|
|
58389
|
+
type?: DimensionReportType;
|
|
58390
|
+
extras?: DimensionReportExtras | null;
|
|
58391
|
+
specificSerialNumbers?: string[] | null;
|
|
58055
58392
|
|
|
58056
|
-
constructor(data?:
|
|
58393
|
+
constructor(data?: IExportDimensionReportV2Request) {
|
|
58057
58394
|
if (data) {
|
|
58058
58395
|
for (var property in data) {
|
|
58059
58396
|
if (data.hasOwnProperty(property))
|
|
@@ -58064,43 +58401,53 @@ export class UpdateSchemaInstanceElementsRequest implements IUpdateSchemaInstanc
|
|
|
58064
58401
|
|
|
58065
58402
|
init(_data?: any) {
|
|
58066
58403
|
if (_data) {
|
|
58067
|
-
|
|
58068
|
-
|
|
58069
|
-
|
|
58070
|
-
|
|
58404
|
+
this.tenantId = _data["tenantId"];
|
|
58405
|
+
this.type = _data["type"];
|
|
58406
|
+
this.extras = _data["extras"] ? DimensionReportExtras.fromJS(_data["extras"]) : <any>undefined;
|
|
58407
|
+
if (Array.isArray(_data["specificSerialNumbers"])) {
|
|
58408
|
+
this.specificSerialNumbers = [] as any;
|
|
58409
|
+
for (let item of _data["specificSerialNumbers"])
|
|
58410
|
+
this.specificSerialNumbers!.push(item);
|
|
58071
58411
|
}
|
|
58072
58412
|
}
|
|
58073
58413
|
}
|
|
58074
58414
|
|
|
58075
|
-
static fromJS(data: any):
|
|
58415
|
+
static fromJS(data: any): ExportDimensionReportV2Request {
|
|
58076
58416
|
data = typeof data === 'object' ? data : {};
|
|
58077
|
-
let result = new
|
|
58417
|
+
let result = new ExportDimensionReportV2Request();
|
|
58078
58418
|
result.init(data);
|
|
58079
58419
|
return result;
|
|
58080
58420
|
}
|
|
58081
58421
|
|
|
58082
58422
|
toJSON(data?: any) {
|
|
58083
58423
|
data = typeof data === 'object' ? data : {};
|
|
58084
|
-
|
|
58085
|
-
|
|
58086
|
-
|
|
58087
|
-
|
|
58424
|
+
data["tenantId"] = this.tenantId;
|
|
58425
|
+
data["type"] = this.type;
|
|
58426
|
+
data["extras"] = this.extras ? this.extras.toJSON() : <any>undefined;
|
|
58427
|
+
if (Array.isArray(this.specificSerialNumbers)) {
|
|
58428
|
+
data["specificSerialNumbers"] = [];
|
|
58429
|
+
for (let item of this.specificSerialNumbers)
|
|
58430
|
+
data["specificSerialNumbers"].push(item);
|
|
58088
58431
|
}
|
|
58089
58432
|
return data;
|
|
58090
58433
|
}
|
|
58091
58434
|
}
|
|
58092
58435
|
|
|
58093
|
-
export interface
|
|
58094
|
-
|
|
58436
|
+
export interface IExportDimensionReportV2Request {
|
|
58437
|
+
tenantId?: string;
|
|
58438
|
+
type?: DimensionReportType;
|
|
58439
|
+
extras?: DimensionReportExtras | null;
|
|
58440
|
+
specificSerialNumbers?: string[] | null;
|
|
58095
58441
|
}
|
|
58096
58442
|
|
|
58097
|
-
export
|
|
58098
|
-
elementId!: string;
|
|
58099
|
-
balloonId?: string | null;
|
|
58100
|
-
reference!: number;
|
|
58101
|
-
disabled!: boolean;
|
|
58443
|
+
export type DimensionReportType = 0 | 1 | 2 | 3;
|
|
58102
58444
|
|
|
58103
|
-
|
|
58445
|
+
export class DimensionReportExtras implements IDimensionReportExtras {
|
|
58446
|
+
customerPO?: string | null;
|
|
58447
|
+
workOrderNumber?: string | null;
|
|
58448
|
+
comment?: string | null;
|
|
58449
|
+
|
|
58450
|
+
constructor(data?: IDimensionReportExtras) {
|
|
58104
58451
|
if (data) {
|
|
58105
58452
|
for (var property in data) {
|
|
58106
58453
|
if (data.hasOwnProperty(property))
|
|
@@ -58111,35 +58458,32 @@ export class SchemaInstanceElementDto implements ISchemaInstanceElementDto {
|
|
|
58111
58458
|
|
|
58112
58459
|
init(_data?: any) {
|
|
58113
58460
|
if (_data) {
|
|
58114
|
-
this.
|
|
58115
|
-
this.
|
|
58116
|
-
this.
|
|
58117
|
-
this.disabled = _data["disabled"];
|
|
58461
|
+
this.customerPO = _data["customerPO"];
|
|
58462
|
+
this.workOrderNumber = _data["workOrderNumber"];
|
|
58463
|
+
this.comment = _data["comment"];
|
|
58118
58464
|
}
|
|
58119
58465
|
}
|
|
58120
58466
|
|
|
58121
|
-
static fromJS(data: any):
|
|
58467
|
+
static fromJS(data: any): DimensionReportExtras {
|
|
58122
58468
|
data = typeof data === 'object' ? data : {};
|
|
58123
|
-
let result = new
|
|
58469
|
+
let result = new DimensionReportExtras();
|
|
58124
58470
|
result.init(data);
|
|
58125
58471
|
return result;
|
|
58126
58472
|
}
|
|
58127
58473
|
|
|
58128
58474
|
toJSON(data?: any) {
|
|
58129
58475
|
data = typeof data === 'object' ? data : {};
|
|
58130
|
-
data["
|
|
58131
|
-
data["
|
|
58132
|
-
data["
|
|
58133
|
-
data["disabled"] = this.disabled;
|
|
58476
|
+
data["customerPO"] = this.customerPO;
|
|
58477
|
+
data["workOrderNumber"] = this.workOrderNumber;
|
|
58478
|
+
data["comment"] = this.comment;
|
|
58134
58479
|
return data;
|
|
58135
58480
|
}
|
|
58136
58481
|
}
|
|
58137
58482
|
|
|
58138
|
-
export interface
|
|
58139
|
-
|
|
58140
|
-
|
|
58141
|
-
|
|
58142
|
-
disabled: boolean;
|
|
58483
|
+
export interface IDimensionReportExtras {
|
|
58484
|
+
customerPO?: string | null;
|
|
58485
|
+
workOrderNumber?: string | null;
|
|
58486
|
+
comment?: string | null;
|
|
58143
58487
|
}
|
|
58144
58488
|
|
|
58145
58489
|
export class ProductionCompanyDto implements IProductionCompanyDto {
|