@ignos/api-client 20261110.360.1 → 20261110.362.1-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 +44 -44
- package/lib/ignosportal-api.js +8 -80
- package/package.json +1 -1
- package/src/ignosportal-api.ts +50 -121
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -404,8 +404,6 @@ export interface IUserAppSettingsClient {
|
|
|
404
404
|
setMoveUserSettings(settings: MoveAppSettings): Promise<void>;
|
|
405
405
|
getEngageUserSettings(): Promise<EngageAppSettings>;
|
|
406
406
|
setEngageUserSettings(settings: EngageAppSettings): Promise<void>;
|
|
407
|
-
getFavoriteRoutesUserSettings(): Promise<FavoriteRoutesAppSettings>;
|
|
408
|
-
setFavoriteRoutesUserSettings(settings: FavoriteRoutesAppSettings): Promise<void>;
|
|
409
407
|
}
|
|
410
408
|
export declare class UserAppSettingsClient extends AuthorizedApiBase implements IUserAppSettingsClient {
|
|
411
409
|
private http;
|
|
@@ -425,10 +423,6 @@ export declare class UserAppSettingsClient extends AuthorizedApiBase implements
|
|
|
425
423
|
protected processGetEngageUserSettings(response: Response): Promise<EngageAppSettings>;
|
|
426
424
|
setEngageUserSettings(settings: EngageAppSettings): Promise<void>;
|
|
427
425
|
protected processSetEngageUserSettings(response: Response): Promise<void>;
|
|
428
|
-
getFavoriteRoutesUserSettings(): Promise<FavoriteRoutesAppSettings>;
|
|
429
|
-
protected processGetFavoriteRoutesUserSettings(response: Response): Promise<FavoriteRoutesAppSettings>;
|
|
430
|
-
setFavoriteRoutesUserSettings(settings: FavoriteRoutesAppSettings): Promise<void>;
|
|
431
|
-
protected processSetFavoriteRoutesUserSettings(response: Response): Promise<void>;
|
|
432
426
|
}
|
|
433
427
|
export interface IUploadClient {
|
|
434
428
|
createUploadInfo(): Promise<UploadInfoDto>;
|
|
@@ -500,12 +494,12 @@ export declare class SustainabilityClient extends AuthorizedApiBase implements I
|
|
|
500
494
|
protected processCreateCustomerOrderLineGhgReport(response: Response): Promise<DownloadDto>;
|
|
501
495
|
}
|
|
502
496
|
export interface IMachineAlarmsClient {
|
|
503
|
-
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>;
|
|
497
|
+
listMachineAlarms(alarmType: MachineAlarmType | null | undefined, assetId: number | null | 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, assetExternalId: string | null | undefined): Promise<PagedResultOfMachineAlarmDto>;
|
|
504
498
|
listGroupedMachineIncidents(request: ListGroupedMachineIncidentsRequest): Promise<PagedResultOfGroupedMachineIncidentDto>;
|
|
505
499
|
listAlarmsPerMachine(startTime: Date | undefined, endTime: Date | null | undefined): Promise<MachineAlarmSummaryDto[]>;
|
|
506
500
|
listAlarmSeverityOccurrences(startTime: Date | undefined, endTime: Date | null | undefined): Promise<MachineAlarmSeverityOccurenceDto[]>;
|
|
507
|
-
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>;
|
|
508
|
-
getMachineAlarmDetails(id:
|
|
501
|
+
countMachineAlarms(alarmType: MachineAlarmType | null | undefined, assetId: number | null | 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, assetExternalId: string | null | undefined): Promise<MachineAlarmCountDto>;
|
|
502
|
+
getMachineAlarmDetails(id: string): Promise<MachineAlarmDetailsDto>;
|
|
509
503
|
}
|
|
510
504
|
export declare class MachineAlarmsClient extends AuthorizedApiBase implements IMachineAlarmsClient {
|
|
511
505
|
private http;
|
|
@@ -513,7 +507,7 @@ export declare class MachineAlarmsClient extends AuthorizedApiBase implements IM
|
|
|
513
507
|
constructor(configuration: IApiClientConfig, baseUrl?: string, http?: {
|
|
514
508
|
fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
|
|
515
509
|
});
|
|
516
|
-
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>;
|
|
510
|
+
listMachineAlarms(alarmType: MachineAlarmType | null | undefined, assetId: number | null | 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, assetExternalId: string | null | undefined): Promise<PagedResultOfMachineAlarmDto>;
|
|
517
511
|
protected processListMachineAlarms(response: Response): Promise<PagedResultOfMachineAlarmDto>;
|
|
518
512
|
listGroupedMachineIncidents(request: ListGroupedMachineIncidentsRequest): Promise<PagedResultOfGroupedMachineIncidentDto>;
|
|
519
513
|
protected processListGroupedMachineIncidents(response: Response): Promise<PagedResultOfGroupedMachineIncidentDto>;
|
|
@@ -521,9 +515,9 @@ export declare class MachineAlarmsClient extends AuthorizedApiBase implements IM
|
|
|
521
515
|
protected processListAlarmsPerMachine(response: Response): Promise<MachineAlarmSummaryDto[]>;
|
|
522
516
|
listAlarmSeverityOccurrences(startTime: Date | undefined, endTime: Date | null | undefined): Promise<MachineAlarmSeverityOccurenceDto[]>;
|
|
523
517
|
protected processListAlarmSeverityOccurrences(response: Response): Promise<MachineAlarmSeverityOccurenceDto[]>;
|
|
524
|
-
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>;
|
|
518
|
+
countMachineAlarms(alarmType: MachineAlarmType | null | undefined, assetId: number | null | 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, assetExternalId: string | null | undefined): Promise<MachineAlarmCountDto>;
|
|
525
519
|
protected processCountMachineAlarms(response: Response): Promise<MachineAlarmCountDto>;
|
|
526
|
-
getMachineAlarmDetails(id:
|
|
520
|
+
getMachineAlarmDetails(id: string): Promise<MachineAlarmDetailsDto>;
|
|
527
521
|
protected processGetMachineAlarmDetails(response: Response): Promise<MachineAlarmDetailsDto>;
|
|
528
522
|
}
|
|
529
523
|
export interface IDowntimeReasonsAdminResourceClient {
|
|
@@ -564,11 +558,11 @@ export declare class DowntimeReasonsAdminResourceClient extends AuthorizedApiBas
|
|
|
564
558
|
}
|
|
565
559
|
export interface IDowntimeReasonsResourceClient {
|
|
566
560
|
createDowntimePeriodReason(request: CreateDowntimePeriodReason): Promise<DowntimePeriodReasonDto>;
|
|
567
|
-
updateDowntimePeriodReason(id:
|
|
568
|
-
deleteDowntimeReason(id:
|
|
569
|
-
listDowntimeReasonsForMachine(id:
|
|
570
|
-
listDowntimeReasonsHierarchyForMachine(id:
|
|
571
|
-
listActiveDowntimeReasonsForMachine(id:
|
|
561
|
+
updateDowntimePeriodReason(id: string, request: IgnosPortalControllersResourcesApiModelsUpdateDowntimePeriodReasonRequest): Promise<DowntimePeriodReasonDto>;
|
|
562
|
+
deleteDowntimeReason(id: string): Promise<void>;
|
|
563
|
+
listDowntimeReasonsForMachine(id: string): Promise<DowntimeReasonResourceDto[]>;
|
|
564
|
+
listDowntimeReasonsHierarchyForMachine(id: string): Promise<ParentTopicResourceDto[]>;
|
|
565
|
+
listActiveDowntimeReasonsForMachine(id: string): Promise<DowntimePeriodReasonDto[]>;
|
|
572
566
|
listTopDowntimeReasons(start: Date | null | undefined, end: Date | null | undefined): Promise<TopDowntimeReasonsDto>;
|
|
573
567
|
listTopDowntimeReasonsForResources(request: IgnosPortalControllersResourcesApiModelsListTopDowntimeReasonsForResourcesRequest): Promise<TopDowntimeReasonsDto>;
|
|
574
568
|
createReport(request: IgnosPortalControllersResourcesApiModelsCreateDowntimeReasonsReportRequest | undefined): Promise<DowntimeReasonsReportResourceDto>;
|
|
@@ -582,15 +576,15 @@ export declare class DowntimeReasonsResourceClient extends AuthorizedApiBase imp
|
|
|
582
576
|
});
|
|
583
577
|
createDowntimePeriodReason(request: CreateDowntimePeriodReason): Promise<DowntimePeriodReasonDto>;
|
|
584
578
|
protected processCreateDowntimePeriodReason(response: Response): Promise<DowntimePeriodReasonDto>;
|
|
585
|
-
updateDowntimePeriodReason(id:
|
|
579
|
+
updateDowntimePeriodReason(id: string, request: IgnosPortalControllersResourcesApiModelsUpdateDowntimePeriodReasonRequest): Promise<DowntimePeriodReasonDto>;
|
|
586
580
|
protected processUpdateDowntimePeriodReason(response: Response): Promise<DowntimePeriodReasonDto>;
|
|
587
|
-
deleteDowntimeReason(id:
|
|
581
|
+
deleteDowntimeReason(id: string): Promise<void>;
|
|
588
582
|
protected processDeleteDowntimeReason(response: Response): Promise<void>;
|
|
589
|
-
listDowntimeReasonsForMachine(id:
|
|
583
|
+
listDowntimeReasonsForMachine(id: string): Promise<DowntimeReasonResourceDto[]>;
|
|
590
584
|
protected processListDowntimeReasonsForMachine(response: Response): Promise<DowntimeReasonResourceDto[]>;
|
|
591
|
-
listDowntimeReasonsHierarchyForMachine(id:
|
|
585
|
+
listDowntimeReasonsHierarchyForMachine(id: string): Promise<ParentTopicResourceDto[]>;
|
|
592
586
|
protected processListDowntimeReasonsHierarchyForMachine(response: Response): Promise<ParentTopicResourceDto[]>;
|
|
593
|
-
listActiveDowntimeReasonsForMachine(id:
|
|
587
|
+
listActiveDowntimeReasonsForMachine(id: string): Promise<DowntimePeriodReasonDto[]>;
|
|
594
588
|
protected processListActiveDowntimeReasonsForMachine(response: Response): Promise<DowntimePeriodReasonDto[]>;
|
|
595
589
|
listTopDowntimeReasons(start: Date | null | undefined, end: Date | null | undefined): Promise<TopDowntimeReasonsDto>;
|
|
596
590
|
protected processListTopDowntimeReasons(response: Response): Promise<TopDowntimeReasonsDto>;
|
|
@@ -1334,11 +1328,11 @@ export declare class DowntimeReasonsAdminClient extends AuthorizedApiBase implem
|
|
|
1334
1328
|
}
|
|
1335
1329
|
export interface IDowntimeReasonsClient {
|
|
1336
1330
|
createDowntimePeriodReason(request: CreateDowntimePeriodReason): Promise<DowntimePeriodReasonDto>;
|
|
1337
|
-
updateDowntimePeriodReason(id:
|
|
1338
|
-
deleteDowntimeReason(id:
|
|
1339
|
-
listDowntimeReasonsForMachine(id:
|
|
1340
|
-
listDowntimeReasonsHierarchyForMachine(id:
|
|
1341
|
-
listActiveDowntimeReasonsForMachine(id:
|
|
1331
|
+
updateDowntimePeriodReason(id: string, request: UpdateDowntimePeriodReasonRequest): Promise<DowntimePeriodReasonDto>;
|
|
1332
|
+
deleteDowntimeReason(id: string): Promise<void>;
|
|
1333
|
+
listDowntimeReasonsForMachine(id: string): Promise<DowntimeReasonDto[]>;
|
|
1334
|
+
listDowntimeReasonsHierarchyForMachine(id: string): Promise<ParentTopicDto[]>;
|
|
1335
|
+
listActiveDowntimeReasonsForMachine(id: string): Promise<DowntimePeriodReasonDto[]>;
|
|
1342
1336
|
listTopDowntimeReasons(start: Date | null | undefined, end: Date | null | undefined): Promise<TopDowntimeReasonsDto>;
|
|
1343
1337
|
listTopDowntimeReasonsForResources(request: ListTopDowntimeReasonsForResourcesRequest): Promise<TopDowntimeReasonsDto>;
|
|
1344
1338
|
createReport(request: CreateDowntimeReasonsReportRequest | undefined): Promise<DowntimeReasonsReportDto>;
|
|
@@ -1352,15 +1346,15 @@ export declare class DowntimeReasonsClient extends AuthorizedApiBase implements
|
|
|
1352
1346
|
});
|
|
1353
1347
|
createDowntimePeriodReason(request: CreateDowntimePeriodReason): Promise<DowntimePeriodReasonDto>;
|
|
1354
1348
|
protected processCreateDowntimePeriodReason(response: Response): Promise<DowntimePeriodReasonDto>;
|
|
1355
|
-
updateDowntimePeriodReason(id:
|
|
1349
|
+
updateDowntimePeriodReason(id: string, request: UpdateDowntimePeriodReasonRequest): Promise<DowntimePeriodReasonDto>;
|
|
1356
1350
|
protected processUpdateDowntimePeriodReason(response: Response): Promise<DowntimePeriodReasonDto>;
|
|
1357
|
-
deleteDowntimeReason(id:
|
|
1351
|
+
deleteDowntimeReason(id: string): Promise<void>;
|
|
1358
1352
|
protected processDeleteDowntimeReason(response: Response): Promise<void>;
|
|
1359
|
-
listDowntimeReasonsForMachine(id:
|
|
1353
|
+
listDowntimeReasonsForMachine(id: string): Promise<DowntimeReasonDto[]>;
|
|
1360
1354
|
protected processListDowntimeReasonsForMachine(response: Response): Promise<DowntimeReasonDto[]>;
|
|
1361
|
-
listDowntimeReasonsHierarchyForMachine(id:
|
|
1355
|
+
listDowntimeReasonsHierarchyForMachine(id: string): Promise<ParentTopicDto[]>;
|
|
1362
1356
|
protected processListDowntimeReasonsHierarchyForMachine(response: Response): Promise<ParentTopicDto[]>;
|
|
1363
|
-
listActiveDowntimeReasonsForMachine(id:
|
|
1357
|
+
listActiveDowntimeReasonsForMachine(id: string): Promise<DowntimePeriodReasonDto[]>;
|
|
1364
1358
|
protected processListActiveDowntimeReasonsForMachine(response: Response): Promise<DowntimePeriodReasonDto[]>;
|
|
1365
1359
|
listTopDowntimeReasons(start: Date | null | undefined, end: Date | null | undefined): Promise<TopDowntimeReasonsDto>;
|
|
1366
1360
|
protected processListTopDowntimeReasons(response: Response): Promise<TopDowntimeReasonsDto>;
|
|
@@ -1434,7 +1428,7 @@ export interface IMachinesClient {
|
|
|
1434
1428
|
* @param endTime (optional)
|
|
1435
1429
|
* @deprecated
|
|
1436
1430
|
*/
|
|
1437
|
-
getWorkOrderTimeline(id:
|
|
1431
|
+
getWorkOrderTimeline(id: string, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<WorkOrderDatapoint[]>;
|
|
1438
1432
|
getMachineUtilizationSummary(): Promise<UtilizationSummaryDto>;
|
|
1439
1433
|
getCrossCompanyUtilizationSummary(): Promise<CrossCompanyUtilizationSummaryDto>;
|
|
1440
1434
|
listCurrentMachineOperators(machineExternalId: string | null | undefined, operatorNameQuery: string | null | undefined): Promise<OperatorAndMachineDto[]>;
|
|
@@ -1479,7 +1473,7 @@ export declare class MachinesClient extends AuthorizedApiBase implements IMachin
|
|
|
1479
1473
|
* @param endTime (optional)
|
|
1480
1474
|
* @deprecated
|
|
1481
1475
|
*/
|
|
1482
|
-
getWorkOrderTimeline(id:
|
|
1476
|
+
getWorkOrderTimeline(id: string, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<WorkOrderDatapoint[]>;
|
|
1483
1477
|
protected processGetWorkOrderTimeline(response: Response): Promise<WorkOrderDatapoint[]>;
|
|
1484
1478
|
getMachineUtilizationSummary(): Promise<UtilizationSummaryDto>;
|
|
1485
1479
|
protected processGetMachineUtilizationSummary(response: Response): Promise<UtilizationSummaryDto>;
|
|
@@ -4065,6 +4059,7 @@ export interface MachineStateDatapoint {
|
|
|
4065
4059
|
}
|
|
4066
4060
|
export interface DowntimePeriodReasonDto {
|
|
4067
4061
|
id: number;
|
|
4062
|
+
externalId: string;
|
|
4068
4063
|
reason: string;
|
|
4069
4064
|
parentReasonId?: string | null;
|
|
4070
4065
|
categoryId?: string | null;
|
|
@@ -4074,6 +4069,7 @@ export interface DowntimePeriodReasonDto {
|
|
|
4074
4069
|
startTime: Date;
|
|
4075
4070
|
endTime?: Date | null;
|
|
4076
4071
|
assetId: number;
|
|
4072
|
+
assetExternalId?: string | null;
|
|
4077
4073
|
comment: string | null;
|
|
4078
4074
|
companyId: string | null;
|
|
4079
4075
|
reasonId: string;
|
|
@@ -4243,13 +4239,6 @@ export interface EngageAppSettings {
|
|
|
4243
4239
|
scheduleViewMode?: ScheduleViewMode | null;
|
|
4244
4240
|
}
|
|
4245
4241
|
export type ScheduleViewMode = "Flat" | "Grouped";
|
|
4246
|
-
export interface FavoriteRoutesAppSettings {
|
|
4247
|
-
favorites?: FavoriteRoute[];
|
|
4248
|
-
}
|
|
4249
|
-
export interface FavoriteRoute {
|
|
4250
|
-
appKey: string;
|
|
4251
|
-
route: string;
|
|
4252
|
-
}
|
|
4253
4242
|
export interface UploadInfoDto {
|
|
4254
4243
|
baseUrl?: string | null;
|
|
4255
4244
|
key?: string | null;
|
|
@@ -4257,6 +4246,7 @@ export interface UploadInfoDto {
|
|
|
4257
4246
|
}
|
|
4258
4247
|
export interface UploadInfoCdfDto {
|
|
4259
4248
|
id: number;
|
|
4249
|
+
externalId: string;
|
|
4260
4250
|
url: string;
|
|
4261
4251
|
}
|
|
4262
4252
|
export interface CreateUploadInfoCdf {
|
|
@@ -4384,6 +4374,7 @@ export interface PagedResultOfMachineAlarmDto {
|
|
|
4384
4374
|
export interface MachineAlarmDto {
|
|
4385
4375
|
alarmType: MachineAlarmType;
|
|
4386
4376
|
id: number;
|
|
4377
|
+
externalId: string;
|
|
4387
4378
|
type: string;
|
|
4388
4379
|
subType: string;
|
|
4389
4380
|
description?: string | null;
|
|
@@ -4403,13 +4394,14 @@ export interface GroupedMachineIncidentDto extends MachineAlarmDto {
|
|
|
4403
4394
|
incidents: MachineAlarmDto[];
|
|
4404
4395
|
}
|
|
4405
4396
|
export interface ListGroupedMachineIncidentsRequest {
|
|
4406
|
-
assetId
|
|
4397
|
+
assetId?: number | null;
|
|
4407
4398
|
startTime: Date;
|
|
4408
4399
|
endTime?: Date | null;
|
|
4409
4400
|
nativeCode?: string | null;
|
|
4410
4401
|
alarmType?: MachineAlarmType | null;
|
|
4411
4402
|
limit?: number | null;
|
|
4412
4403
|
continuationToken?: string | null;
|
|
4404
|
+
assetExternalId?: string | null;
|
|
4413
4405
|
}
|
|
4414
4406
|
export interface MachineAlarmSummaryDto {
|
|
4415
4407
|
assetId: number;
|
|
@@ -4433,6 +4425,7 @@ export interface MachineAlarmCountDto {
|
|
|
4433
4425
|
}
|
|
4434
4426
|
export interface MachineAlarmDetailsDto {
|
|
4435
4427
|
id: number;
|
|
4428
|
+
externalId: string;
|
|
4436
4429
|
startTime: Date;
|
|
4437
4430
|
endTime?: Date | null;
|
|
4438
4431
|
nativeCode?: string | null;
|
|
@@ -4516,7 +4509,8 @@ export interface IgnosPortalControllersResourcesApiModelsUpdateParentTopicReques
|
|
|
4516
4509
|
}
|
|
4517
4510
|
export interface CreateDowntimePeriodReason {
|
|
4518
4511
|
reasonId: string;
|
|
4519
|
-
assetId
|
|
4512
|
+
assetId?: number | null;
|
|
4513
|
+
assetExternalId?: string | null;
|
|
4520
4514
|
startTime: Date;
|
|
4521
4515
|
endTime?: Date | null;
|
|
4522
4516
|
autoCompleteDowntime?: boolean | null;
|
|
@@ -4528,6 +4522,7 @@ export interface CreateDowntimePeriodReason {
|
|
|
4528
4522
|
export interface IgnosPortalControllersResourcesApiModelsUpdateDowntimePeriodReasonRequest {
|
|
4529
4523
|
reasonId?: string | null;
|
|
4530
4524
|
assetId?: number | null;
|
|
4525
|
+
assetExternalId?: string | null;
|
|
4531
4526
|
startTime?: Date | null;
|
|
4532
4527
|
endTime?: Date | null;
|
|
4533
4528
|
autoCompleteDowntime?: boolean | null;
|
|
@@ -4920,6 +4915,7 @@ export interface ResourceGroupUtilizationDto {
|
|
|
4920
4915
|
}
|
|
4921
4916
|
export interface ResourceUtilizationV2Dto {
|
|
4922
4917
|
id?: number;
|
|
4918
|
+
externalId: string;
|
|
4923
4919
|
name: string;
|
|
4924
4920
|
description?: string | null;
|
|
4925
4921
|
utilization: UtilizationDto;
|
|
@@ -5174,6 +5170,7 @@ export interface MachineGroupUtilizationV2Dto {
|
|
|
5174
5170
|
}
|
|
5175
5171
|
export interface MachineUtilizationV3Dto {
|
|
5176
5172
|
id?: number;
|
|
5173
|
+
externalId: string;
|
|
5177
5174
|
name: string;
|
|
5178
5175
|
description?: string | null;
|
|
5179
5176
|
utilization: UtilizationDetailsV2Dto;
|
|
@@ -6058,6 +6055,7 @@ export interface UpdateParentTopicRequest {
|
|
|
6058
6055
|
export interface UpdateDowntimePeriodReasonRequest {
|
|
6059
6056
|
reasonId?: string | null;
|
|
6060
6057
|
assetId?: number | null;
|
|
6058
|
+
assetExternalId?: string | null;
|
|
6061
6059
|
startTime?: Date | null;
|
|
6062
6060
|
endTime?: Date | null;
|
|
6063
6061
|
autoCompleteDowntime?: boolean | null;
|
|
@@ -6205,6 +6203,7 @@ export interface MachineGroupUtilizationDto {
|
|
|
6205
6203
|
}
|
|
6206
6204
|
export interface MachineUtilizationV2Dto {
|
|
6207
6205
|
id?: number;
|
|
6206
|
+
externalId: string;
|
|
6208
6207
|
name: string;
|
|
6209
6208
|
description?: string | null;
|
|
6210
6209
|
utilization: UtilizationDto;
|
|
@@ -9426,7 +9425,8 @@ export interface ProcessMaterialCertificate {
|
|
|
9426
9425
|
purchaseOrderLine?: number | null;
|
|
9427
9426
|
}
|
|
9428
9427
|
export interface UploadFileCdfDto {
|
|
9429
|
-
id
|
|
9428
|
+
id?: number | null;
|
|
9429
|
+
externalId?: string | null;
|
|
9430
9430
|
}
|
|
9431
9431
|
export interface ImaMaterialCheckReportDto {
|
|
9432
9432
|
file: FileDto;
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -2824,78 +2824,6 @@ export class UserAppSettingsClient extends AuthorizedApiBase {
|
|
|
2824
2824
|
}
|
|
2825
2825
|
return Promise.resolve(null);
|
|
2826
2826
|
}
|
|
2827
|
-
getFavoriteRoutesUserSettings() {
|
|
2828
|
-
let url_ = this.baseUrl + "/userappsettings/favorite-routes";
|
|
2829
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
2830
|
-
let options_ = {
|
|
2831
|
-
method: "GET",
|
|
2832
|
-
headers: {
|
|
2833
|
-
"Accept": "application/json"
|
|
2834
|
-
}
|
|
2835
|
-
};
|
|
2836
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
2837
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
2838
|
-
}).then((_response) => {
|
|
2839
|
-
return this.processGetFavoriteRoutesUserSettings(_response);
|
|
2840
|
-
});
|
|
2841
|
-
}
|
|
2842
|
-
processGetFavoriteRoutesUserSettings(response) {
|
|
2843
|
-
const status = response.status;
|
|
2844
|
-
let _headers = {};
|
|
2845
|
-
if (response.headers && response.headers.forEach) {
|
|
2846
|
-
response.headers.forEach((v, k) => _headers[k] = v);
|
|
2847
|
-
}
|
|
2848
|
-
;
|
|
2849
|
-
if (status === 200) {
|
|
2850
|
-
return response.text().then((_responseText) => {
|
|
2851
|
-
let result200 = null;
|
|
2852
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
2853
|
-
return result200;
|
|
2854
|
-
});
|
|
2855
|
-
}
|
|
2856
|
-
else if (status !== 200 && status !== 204) {
|
|
2857
|
-
return response.text().then((_responseText) => {
|
|
2858
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
2859
|
-
});
|
|
2860
|
-
}
|
|
2861
|
-
return Promise.resolve(null);
|
|
2862
|
-
}
|
|
2863
|
-
setFavoriteRoutesUserSettings(settings) {
|
|
2864
|
-
let url_ = this.baseUrl + "/userappsettings/favorite-routes";
|
|
2865
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
2866
|
-
const content_ = JSON.stringify(settings);
|
|
2867
|
-
let options_ = {
|
|
2868
|
-
body: content_,
|
|
2869
|
-
method: "PUT",
|
|
2870
|
-
headers: {
|
|
2871
|
-
"Content-Type": "application/json",
|
|
2872
|
-
}
|
|
2873
|
-
};
|
|
2874
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
2875
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
2876
|
-
}).then((_response) => {
|
|
2877
|
-
return this.processSetFavoriteRoutesUserSettings(_response);
|
|
2878
|
-
});
|
|
2879
|
-
}
|
|
2880
|
-
processSetFavoriteRoutesUserSettings(response) {
|
|
2881
|
-
const status = response.status;
|
|
2882
|
-
let _headers = {};
|
|
2883
|
-
if (response.headers && response.headers.forEach) {
|
|
2884
|
-
response.headers.forEach((v, k) => _headers[k] = v);
|
|
2885
|
-
}
|
|
2886
|
-
;
|
|
2887
|
-
if (status === 204) {
|
|
2888
|
-
return response.text().then((_responseText) => {
|
|
2889
|
-
return;
|
|
2890
|
-
});
|
|
2891
|
-
}
|
|
2892
|
-
else if (status !== 200 && status !== 204) {
|
|
2893
|
-
return response.text().then((_responseText) => {
|
|
2894
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
2895
|
-
});
|
|
2896
|
-
}
|
|
2897
|
-
return Promise.resolve(null);
|
|
2898
|
-
}
|
|
2899
2827
|
}
|
|
2900
2828
|
export class UploadClient extends AuthorizedApiBase {
|
|
2901
2829
|
http;
|
|
@@ -3367,13 +3295,11 @@ export class MachineAlarmsClient extends AuthorizedApiBase {
|
|
|
3367
3295
|
this.http = http ? http : window;
|
|
3368
3296
|
this.baseUrl = baseUrl ?? "";
|
|
3369
3297
|
}
|
|
3370
|
-
listMachineAlarms(alarmType, assetId, startTime, endTime, subType, nativeCode, nativeSeverity, name, sequence, limit, continuationToken, orderBy, sortDirection) {
|
|
3298
|
+
listMachineAlarms(alarmType, assetId, startTime, endTime, subType, nativeCode, nativeSeverity, name, sequence, limit, continuationToken, orderBy, sortDirection, assetExternalId) {
|
|
3371
3299
|
let url_ = this.baseUrl + "/machinealarms?";
|
|
3372
3300
|
if (alarmType !== undefined && alarmType !== null)
|
|
3373
3301
|
url_ += "alarmType=" + encodeURIComponent("" + alarmType) + "&";
|
|
3374
|
-
if (assetId
|
|
3375
|
-
throw new globalThis.Error("The parameter 'assetId' cannot be null.");
|
|
3376
|
-
else if (assetId !== undefined)
|
|
3302
|
+
if (assetId !== undefined && assetId !== null)
|
|
3377
3303
|
url_ += "assetId=" + encodeURIComponent("" + assetId) + "&";
|
|
3378
3304
|
if (startTime === null)
|
|
3379
3305
|
throw new globalThis.Error("The parameter 'startTime' cannot be null.");
|
|
@@ -3401,6 +3327,8 @@ export class MachineAlarmsClient extends AuthorizedApiBase {
|
|
|
3401
3327
|
url_ += "orderBy=" + encodeURIComponent("" + orderBy) + "&";
|
|
3402
3328
|
if (sortDirection !== undefined && sortDirection !== null)
|
|
3403
3329
|
url_ += "sortDirection=" + encodeURIComponent("" + sortDirection) + "&";
|
|
3330
|
+
if (assetExternalId !== undefined && assetExternalId !== null)
|
|
3331
|
+
url_ += "assetExternalId=" + encodeURIComponent("" + assetExternalId) + "&";
|
|
3404
3332
|
url_ = url_.replace(/[?&]$/, "");
|
|
3405
3333
|
let options_ = {
|
|
3406
3334
|
method: "GET",
|
|
@@ -3558,13 +3486,11 @@ export class MachineAlarmsClient extends AuthorizedApiBase {
|
|
|
3558
3486
|
}
|
|
3559
3487
|
return Promise.resolve(null);
|
|
3560
3488
|
}
|
|
3561
|
-
countMachineAlarms(alarmType, assetId, startTime, endTime, subType, nativeCode, nativeSeverity, name, sequence) {
|
|
3489
|
+
countMachineAlarms(alarmType, assetId, startTime, endTime, subType, nativeCode, nativeSeverity, name, sequence, assetExternalId) {
|
|
3562
3490
|
let url_ = this.baseUrl + "/machinealarms/alarmcount?";
|
|
3563
3491
|
if (alarmType !== undefined && alarmType !== null)
|
|
3564
3492
|
url_ += "alarmType=" + encodeURIComponent("" + alarmType) + "&";
|
|
3565
|
-
if (assetId
|
|
3566
|
-
throw new globalThis.Error("The parameter 'assetId' cannot be null.");
|
|
3567
|
-
else if (assetId !== undefined)
|
|
3493
|
+
if (assetId !== undefined && assetId !== null)
|
|
3568
3494
|
url_ += "assetId=" + encodeURIComponent("" + assetId) + "&";
|
|
3569
3495
|
if (startTime === null)
|
|
3570
3496
|
throw new globalThis.Error("The parameter 'startTime' cannot be null.");
|
|
@@ -3582,6 +3508,8 @@ export class MachineAlarmsClient extends AuthorizedApiBase {
|
|
|
3582
3508
|
url_ += "name=" + encodeURIComponent("" + name) + "&";
|
|
3583
3509
|
if (sequence !== undefined && sequence !== null)
|
|
3584
3510
|
url_ += "sequence=" + encodeURIComponent("" + sequence) + "&";
|
|
3511
|
+
if (assetExternalId !== undefined && assetExternalId !== null)
|
|
3512
|
+
url_ += "assetExternalId=" + encodeURIComponent("" + assetExternalId) + "&";
|
|
3585
3513
|
url_ = url_.replace(/[?&]$/, "");
|
|
3586
3514
|
let options_ = {
|
|
3587
3515
|
method: "GET",
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -2820,10 +2820,6 @@ export interface IUserAppSettingsClient {
|
|
|
2820
2820
|
getEngageUserSettings(): Promise<EngageAppSettings>;
|
|
2821
2821
|
|
|
2822
2822
|
setEngageUserSettings(settings: EngageAppSettings): Promise<void>;
|
|
2823
|
-
|
|
2824
|
-
getFavoriteRoutesUserSettings(): Promise<FavoriteRoutesAppSettings>;
|
|
2825
|
-
|
|
2826
|
-
setFavoriteRoutesUserSettings(settings: FavoriteRoutesAppSettings): Promise<void>;
|
|
2827
2823
|
}
|
|
2828
2824
|
|
|
2829
2825
|
export class UserAppSettingsClient extends AuthorizedApiBase implements IUserAppSettingsClient {
|
|
@@ -3048,77 +3044,6 @@ export class UserAppSettingsClient extends AuthorizedApiBase implements IUserApp
|
|
|
3048
3044
|
}
|
|
3049
3045
|
return Promise.resolve<void>(null as any);
|
|
3050
3046
|
}
|
|
3051
|
-
|
|
3052
|
-
getFavoriteRoutesUserSettings(): Promise<FavoriteRoutesAppSettings> {
|
|
3053
|
-
let url_ = this.baseUrl + "/userappsettings/favorite-routes";
|
|
3054
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
3055
|
-
|
|
3056
|
-
let options_: RequestInit = {
|
|
3057
|
-
method: "GET",
|
|
3058
|
-
headers: {
|
|
3059
|
-
"Accept": "application/json"
|
|
3060
|
-
}
|
|
3061
|
-
};
|
|
3062
|
-
|
|
3063
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
3064
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
3065
|
-
}).then((_response: Response) => {
|
|
3066
|
-
return this.processGetFavoriteRoutesUserSettings(_response);
|
|
3067
|
-
});
|
|
3068
|
-
}
|
|
3069
|
-
|
|
3070
|
-
protected processGetFavoriteRoutesUserSettings(response: Response): Promise<FavoriteRoutesAppSettings> {
|
|
3071
|
-
const status = response.status;
|
|
3072
|
-
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
3073
|
-
if (status === 200) {
|
|
3074
|
-
return response.text().then((_responseText) => {
|
|
3075
|
-
let result200: any = null;
|
|
3076
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as FavoriteRoutesAppSettings;
|
|
3077
|
-
return result200;
|
|
3078
|
-
});
|
|
3079
|
-
} else if (status !== 200 && status !== 204) {
|
|
3080
|
-
return response.text().then((_responseText) => {
|
|
3081
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
3082
|
-
});
|
|
3083
|
-
}
|
|
3084
|
-
return Promise.resolve<FavoriteRoutesAppSettings>(null as any);
|
|
3085
|
-
}
|
|
3086
|
-
|
|
3087
|
-
setFavoriteRoutesUserSettings(settings: FavoriteRoutesAppSettings): Promise<void> {
|
|
3088
|
-
let url_ = this.baseUrl + "/userappsettings/favorite-routes";
|
|
3089
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
3090
|
-
|
|
3091
|
-
const content_ = JSON.stringify(settings);
|
|
3092
|
-
|
|
3093
|
-
let options_: RequestInit = {
|
|
3094
|
-
body: content_,
|
|
3095
|
-
method: "PUT",
|
|
3096
|
-
headers: {
|
|
3097
|
-
"Content-Type": "application/json",
|
|
3098
|
-
}
|
|
3099
|
-
};
|
|
3100
|
-
|
|
3101
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
3102
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
3103
|
-
}).then((_response: Response) => {
|
|
3104
|
-
return this.processSetFavoriteRoutesUserSettings(_response);
|
|
3105
|
-
});
|
|
3106
|
-
}
|
|
3107
|
-
|
|
3108
|
-
protected processSetFavoriteRoutesUserSettings(response: Response): Promise<void> {
|
|
3109
|
-
const status = response.status;
|
|
3110
|
-
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
3111
|
-
if (status === 204) {
|
|
3112
|
-
return response.text().then((_responseText) => {
|
|
3113
|
-
return;
|
|
3114
|
-
});
|
|
3115
|
-
} else if (status !== 200 && status !== 204) {
|
|
3116
|
-
return response.text().then((_responseText) => {
|
|
3117
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
3118
|
-
});
|
|
3119
|
-
}
|
|
3120
|
-
return Promise.resolve<void>(null as any);
|
|
3121
|
-
}
|
|
3122
3047
|
}
|
|
3123
3048
|
|
|
3124
3049
|
export interface IUploadClient {
|
|
@@ -3621,7 +3546,7 @@ export class SustainabilityClient extends AuthorizedApiBase implements ISustaina
|
|
|
3621
3546
|
|
|
3622
3547
|
export interface IMachineAlarmsClient {
|
|
3623
3548
|
|
|
3624
|
-
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>;
|
|
3549
|
+
listMachineAlarms(alarmType: MachineAlarmType | null | undefined, assetId: number | null | 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, assetExternalId: string | null | undefined): Promise<PagedResultOfMachineAlarmDto>;
|
|
3625
3550
|
|
|
3626
3551
|
listGroupedMachineIncidents(request: ListGroupedMachineIncidentsRequest): Promise<PagedResultOfGroupedMachineIncidentDto>;
|
|
3627
3552
|
|
|
@@ -3629,9 +3554,9 @@ export interface IMachineAlarmsClient {
|
|
|
3629
3554
|
|
|
3630
3555
|
listAlarmSeverityOccurrences(startTime: Date | undefined, endTime: Date | null | undefined): Promise<MachineAlarmSeverityOccurenceDto[]>;
|
|
3631
3556
|
|
|
3632
|
-
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>;
|
|
3557
|
+
countMachineAlarms(alarmType: MachineAlarmType | null | undefined, assetId: number | null | 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, assetExternalId: string | null | undefined): Promise<MachineAlarmCountDto>;
|
|
3633
3558
|
|
|
3634
|
-
getMachineAlarmDetails(id:
|
|
3559
|
+
getMachineAlarmDetails(id: string): Promise<MachineAlarmDetailsDto>;
|
|
3635
3560
|
}
|
|
3636
3561
|
|
|
3637
3562
|
export class MachineAlarmsClient extends AuthorizedApiBase implements IMachineAlarmsClient {
|
|
@@ -3644,13 +3569,11 @@ export class MachineAlarmsClient extends AuthorizedApiBase implements IMachineAl
|
|
|
3644
3569
|
this.baseUrl = baseUrl ?? "";
|
|
3645
3570
|
}
|
|
3646
3571
|
|
|
3647
|
-
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> {
|
|
3572
|
+
listMachineAlarms(alarmType: MachineAlarmType | null | undefined, assetId: number | null | 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, assetExternalId: string | null | undefined): Promise<PagedResultOfMachineAlarmDto> {
|
|
3648
3573
|
let url_ = this.baseUrl + "/machinealarms?";
|
|
3649
3574
|
if (alarmType !== undefined && alarmType !== null)
|
|
3650
3575
|
url_ += "alarmType=" + encodeURIComponent("" + alarmType) + "&";
|
|
3651
|
-
if (assetId
|
|
3652
|
-
throw new globalThis.Error("The parameter 'assetId' cannot be null.");
|
|
3653
|
-
else if (assetId !== undefined)
|
|
3576
|
+
if (assetId !== undefined && assetId !== null)
|
|
3654
3577
|
url_ += "assetId=" + encodeURIComponent("" + assetId) + "&";
|
|
3655
3578
|
if (startTime === null)
|
|
3656
3579
|
throw new globalThis.Error("The parameter 'startTime' cannot be null.");
|
|
@@ -3678,6 +3601,8 @@ export class MachineAlarmsClient extends AuthorizedApiBase implements IMachineAl
|
|
|
3678
3601
|
url_ += "orderBy=" + encodeURIComponent("" + orderBy) + "&";
|
|
3679
3602
|
if (sortDirection !== undefined && sortDirection !== null)
|
|
3680
3603
|
url_ += "sortDirection=" + encodeURIComponent("" + sortDirection) + "&";
|
|
3604
|
+
if (assetExternalId !== undefined && assetExternalId !== null)
|
|
3605
|
+
url_ += "assetExternalId=" + encodeURIComponent("" + assetExternalId) + "&";
|
|
3681
3606
|
url_ = url_.replace(/[?&]$/, "");
|
|
3682
3607
|
|
|
3683
3608
|
let options_: RequestInit = {
|
|
@@ -3832,13 +3757,11 @@ export class MachineAlarmsClient extends AuthorizedApiBase implements IMachineAl
|
|
|
3832
3757
|
return Promise.resolve<MachineAlarmSeverityOccurenceDto[]>(null as any);
|
|
3833
3758
|
}
|
|
3834
3759
|
|
|
3835
|
-
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> {
|
|
3760
|
+
countMachineAlarms(alarmType: MachineAlarmType | null | undefined, assetId: number | null | 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, assetExternalId: string | null | undefined): Promise<MachineAlarmCountDto> {
|
|
3836
3761
|
let url_ = this.baseUrl + "/machinealarms/alarmcount?";
|
|
3837
3762
|
if (alarmType !== undefined && alarmType !== null)
|
|
3838
3763
|
url_ += "alarmType=" + encodeURIComponent("" + alarmType) + "&";
|
|
3839
|
-
if (assetId
|
|
3840
|
-
throw new globalThis.Error("The parameter 'assetId' cannot be null.");
|
|
3841
|
-
else if (assetId !== undefined)
|
|
3764
|
+
if (assetId !== undefined && assetId !== null)
|
|
3842
3765
|
url_ += "assetId=" + encodeURIComponent("" + assetId) + "&";
|
|
3843
3766
|
if (startTime === null)
|
|
3844
3767
|
throw new globalThis.Error("The parameter 'startTime' cannot be null.");
|
|
@@ -3856,6 +3779,8 @@ export class MachineAlarmsClient extends AuthorizedApiBase implements IMachineAl
|
|
|
3856
3779
|
url_ += "name=" + encodeURIComponent("" + name) + "&";
|
|
3857
3780
|
if (sequence !== undefined && sequence !== null)
|
|
3858
3781
|
url_ += "sequence=" + encodeURIComponent("" + sequence) + "&";
|
|
3782
|
+
if (assetExternalId !== undefined && assetExternalId !== null)
|
|
3783
|
+
url_ += "assetExternalId=" + encodeURIComponent("" + assetExternalId) + "&";
|
|
3859
3784
|
url_ = url_.replace(/[?&]$/, "");
|
|
3860
3785
|
|
|
3861
3786
|
let options_: RequestInit = {
|
|
@@ -3889,7 +3814,7 @@ export class MachineAlarmsClient extends AuthorizedApiBase implements IMachineAl
|
|
|
3889
3814
|
return Promise.resolve<MachineAlarmCountDto>(null as any);
|
|
3890
3815
|
}
|
|
3891
3816
|
|
|
3892
|
-
getMachineAlarmDetails(id:
|
|
3817
|
+
getMachineAlarmDetails(id: string): Promise<MachineAlarmDetailsDto> {
|
|
3893
3818
|
let url_ = this.baseUrl + "/machinealarms/alarms/{id}";
|
|
3894
3819
|
if (id === undefined || id === null)
|
|
3895
3820
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -4301,15 +4226,15 @@ export interface IDowntimeReasonsResourceClient {
|
|
|
4301
4226
|
|
|
4302
4227
|
createDowntimePeriodReason(request: CreateDowntimePeriodReason): Promise<DowntimePeriodReasonDto>;
|
|
4303
4228
|
|
|
4304
|
-
updateDowntimePeriodReason(id:
|
|
4229
|
+
updateDowntimePeriodReason(id: string, request: IgnosPortalControllersResourcesApiModelsUpdateDowntimePeriodReasonRequest): Promise<DowntimePeriodReasonDto>;
|
|
4305
4230
|
|
|
4306
|
-
deleteDowntimeReason(id:
|
|
4231
|
+
deleteDowntimeReason(id: string): Promise<void>;
|
|
4307
4232
|
|
|
4308
|
-
listDowntimeReasonsForMachine(id:
|
|
4233
|
+
listDowntimeReasonsForMachine(id: string): Promise<DowntimeReasonResourceDto[]>;
|
|
4309
4234
|
|
|
4310
|
-
listDowntimeReasonsHierarchyForMachine(id:
|
|
4235
|
+
listDowntimeReasonsHierarchyForMachine(id: string): Promise<ParentTopicResourceDto[]>;
|
|
4311
4236
|
|
|
4312
|
-
listActiveDowntimeReasonsForMachine(id:
|
|
4237
|
+
listActiveDowntimeReasonsForMachine(id: string): Promise<DowntimePeriodReasonDto[]>;
|
|
4313
4238
|
|
|
4314
4239
|
listTopDowntimeReasons(start: Date | null | undefined, end: Date | null | undefined): Promise<TopDowntimeReasonsDto>;
|
|
4315
4240
|
|
|
@@ -4369,7 +4294,7 @@ export class DowntimeReasonsResourceClient extends AuthorizedApiBase implements
|
|
|
4369
4294
|
return Promise.resolve<DowntimePeriodReasonDto>(null as any);
|
|
4370
4295
|
}
|
|
4371
4296
|
|
|
4372
|
-
updateDowntimePeriodReason(id:
|
|
4297
|
+
updateDowntimePeriodReason(id: string, request: IgnosPortalControllersResourcesApiModelsUpdateDowntimePeriodReasonRequest): Promise<DowntimePeriodReasonDto> {
|
|
4373
4298
|
let url_ = this.baseUrl + "/downtimereasonsresource/{id}";
|
|
4374
4299
|
if (id === undefined || id === null)
|
|
4375
4300
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -4411,7 +4336,7 @@ export class DowntimeReasonsResourceClient extends AuthorizedApiBase implements
|
|
|
4411
4336
|
return Promise.resolve<DowntimePeriodReasonDto>(null as any);
|
|
4412
4337
|
}
|
|
4413
4338
|
|
|
4414
|
-
deleteDowntimeReason(id:
|
|
4339
|
+
deleteDowntimeReason(id: string): Promise<void> {
|
|
4415
4340
|
let url_ = this.baseUrl + "/downtimereasonsresource/{id}";
|
|
4416
4341
|
if (id === undefined || id === null)
|
|
4417
4342
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -4446,7 +4371,7 @@ export class DowntimeReasonsResourceClient extends AuthorizedApiBase implements
|
|
|
4446
4371
|
return Promise.resolve<void>(null as any);
|
|
4447
4372
|
}
|
|
4448
4373
|
|
|
4449
|
-
listDowntimeReasonsForMachine(id:
|
|
4374
|
+
listDowntimeReasonsForMachine(id: string): Promise<DowntimeReasonResourceDto[]> {
|
|
4450
4375
|
let url_ = this.baseUrl + "/downtimereasonsresource/machine/{id}/downtimereasons";
|
|
4451
4376
|
if (id === undefined || id === null)
|
|
4452
4377
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -4484,7 +4409,7 @@ export class DowntimeReasonsResourceClient extends AuthorizedApiBase implements
|
|
|
4484
4409
|
return Promise.resolve<DowntimeReasonResourceDto[]>(null as any);
|
|
4485
4410
|
}
|
|
4486
4411
|
|
|
4487
|
-
listDowntimeReasonsHierarchyForMachine(id:
|
|
4412
|
+
listDowntimeReasonsHierarchyForMachine(id: string): Promise<ParentTopicResourceDto[]> {
|
|
4488
4413
|
let url_ = this.baseUrl + "/downtimereasonsresource/machine/{id}/downtimereasonshierarchy";
|
|
4489
4414
|
if (id === undefined || id === null)
|
|
4490
4415
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -4522,7 +4447,7 @@ export class DowntimeReasonsResourceClient extends AuthorizedApiBase implements
|
|
|
4522
4447
|
return Promise.resolve<ParentTopicResourceDto[]>(null as any);
|
|
4523
4448
|
}
|
|
4524
4449
|
|
|
4525
|
-
listActiveDowntimeReasonsForMachine(id:
|
|
4450
|
+
listActiveDowntimeReasonsForMachine(id: string): Promise<DowntimePeriodReasonDto[]> {
|
|
4526
4451
|
let url_ = this.baseUrl + "/downtimereasonsresource/machine/{id}/active";
|
|
4527
4452
|
if (id === undefined || id === null)
|
|
4528
4453
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -11796,15 +11721,15 @@ export interface IDowntimeReasonsClient {
|
|
|
11796
11721
|
|
|
11797
11722
|
createDowntimePeriodReason(request: CreateDowntimePeriodReason): Promise<DowntimePeriodReasonDto>;
|
|
11798
11723
|
|
|
11799
|
-
updateDowntimePeriodReason(id:
|
|
11724
|
+
updateDowntimePeriodReason(id: string, request: UpdateDowntimePeriodReasonRequest): Promise<DowntimePeriodReasonDto>;
|
|
11800
11725
|
|
|
11801
|
-
deleteDowntimeReason(id:
|
|
11726
|
+
deleteDowntimeReason(id: string): Promise<void>;
|
|
11802
11727
|
|
|
11803
|
-
listDowntimeReasonsForMachine(id:
|
|
11728
|
+
listDowntimeReasonsForMachine(id: string): Promise<DowntimeReasonDto[]>;
|
|
11804
11729
|
|
|
11805
|
-
listDowntimeReasonsHierarchyForMachine(id:
|
|
11730
|
+
listDowntimeReasonsHierarchyForMachine(id: string): Promise<ParentTopicDto[]>;
|
|
11806
11731
|
|
|
11807
|
-
listActiveDowntimeReasonsForMachine(id:
|
|
11732
|
+
listActiveDowntimeReasonsForMachine(id: string): Promise<DowntimePeriodReasonDto[]>;
|
|
11808
11733
|
|
|
11809
11734
|
listTopDowntimeReasons(start: Date | null | undefined, end: Date | null | undefined): Promise<TopDowntimeReasonsDto>;
|
|
11810
11735
|
|
|
@@ -11864,7 +11789,7 @@ export class DowntimeReasonsClient extends AuthorizedApiBase implements IDowntim
|
|
|
11864
11789
|
return Promise.resolve<DowntimePeriodReasonDto>(null as any);
|
|
11865
11790
|
}
|
|
11866
11791
|
|
|
11867
|
-
updateDowntimePeriodReason(id:
|
|
11792
|
+
updateDowntimePeriodReason(id: string, request: UpdateDowntimePeriodReasonRequest): Promise<DowntimePeriodReasonDto> {
|
|
11868
11793
|
let url_ = this.baseUrl + "/downtimereasons/{id}";
|
|
11869
11794
|
if (id === undefined || id === null)
|
|
11870
11795
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -11906,7 +11831,7 @@ export class DowntimeReasonsClient extends AuthorizedApiBase implements IDowntim
|
|
|
11906
11831
|
return Promise.resolve<DowntimePeriodReasonDto>(null as any);
|
|
11907
11832
|
}
|
|
11908
11833
|
|
|
11909
|
-
deleteDowntimeReason(id:
|
|
11834
|
+
deleteDowntimeReason(id: string): Promise<void> {
|
|
11910
11835
|
let url_ = this.baseUrl + "/downtimereasons/{id}";
|
|
11911
11836
|
if (id === undefined || id === null)
|
|
11912
11837
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -11941,7 +11866,7 @@ export class DowntimeReasonsClient extends AuthorizedApiBase implements IDowntim
|
|
|
11941
11866
|
return Promise.resolve<void>(null as any);
|
|
11942
11867
|
}
|
|
11943
11868
|
|
|
11944
|
-
listDowntimeReasonsForMachine(id:
|
|
11869
|
+
listDowntimeReasonsForMachine(id: string): Promise<DowntimeReasonDto[]> {
|
|
11945
11870
|
let url_ = this.baseUrl + "/downtimereasons/machine/{id}/downtimereasons";
|
|
11946
11871
|
if (id === undefined || id === null)
|
|
11947
11872
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -11979,7 +11904,7 @@ export class DowntimeReasonsClient extends AuthorizedApiBase implements IDowntim
|
|
|
11979
11904
|
return Promise.resolve<DowntimeReasonDto[]>(null as any);
|
|
11980
11905
|
}
|
|
11981
11906
|
|
|
11982
|
-
listDowntimeReasonsHierarchyForMachine(id:
|
|
11907
|
+
listDowntimeReasonsHierarchyForMachine(id: string): Promise<ParentTopicDto[]> {
|
|
11983
11908
|
let url_ = this.baseUrl + "/downtimereasons/machine/{id}/downtimereasonshierarchy";
|
|
11984
11909
|
if (id === undefined || id === null)
|
|
11985
11910
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -12017,7 +11942,7 @@ export class DowntimeReasonsClient extends AuthorizedApiBase implements IDowntim
|
|
|
12017
11942
|
return Promise.resolve<ParentTopicDto[]>(null as any);
|
|
12018
11943
|
}
|
|
12019
11944
|
|
|
12020
|
-
listActiveDowntimeReasonsForMachine(id:
|
|
11945
|
+
listActiveDowntimeReasonsForMachine(id: string): Promise<DowntimePeriodReasonDto[]> {
|
|
12021
11946
|
let url_ = this.baseUrl + "/downtimereasons/machine/{id}/active";
|
|
12022
11947
|
if (id === undefined || id === null)
|
|
12023
11948
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -12664,7 +12589,7 @@ export interface IMachinesClient {
|
|
|
12664
12589
|
* @param endTime (optional)
|
|
12665
12590
|
* @deprecated
|
|
12666
12591
|
*/
|
|
12667
|
-
getWorkOrderTimeline(id:
|
|
12592
|
+
getWorkOrderTimeline(id: string, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<WorkOrderDatapoint[]>;
|
|
12668
12593
|
|
|
12669
12594
|
getMachineUtilizationSummary(): Promise<UtilizationSummaryDto>;
|
|
12670
12595
|
|
|
@@ -13165,7 +13090,7 @@ export class MachinesClient extends AuthorizedApiBase implements IMachinesClient
|
|
|
13165
13090
|
* @param endTime (optional)
|
|
13166
13091
|
* @deprecated
|
|
13167
13092
|
*/
|
|
13168
|
-
getWorkOrderTimeline(id:
|
|
13093
|
+
getWorkOrderTimeline(id: string, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<WorkOrderDatapoint[]> {
|
|
13169
13094
|
let url_ = this.baseUrl + "/machines/{id}/workorder/timeline?";
|
|
13170
13095
|
if (id === undefined || id === null)
|
|
13171
13096
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -34176,6 +34101,7 @@ export interface MachineStateDatapoint {
|
|
|
34176
34101
|
|
|
34177
34102
|
export interface DowntimePeriodReasonDto {
|
|
34178
34103
|
id: number;
|
|
34104
|
+
externalId: string;
|
|
34179
34105
|
reason: string;
|
|
34180
34106
|
parentReasonId?: string | null;
|
|
34181
34107
|
categoryId?: string | null;
|
|
@@ -34185,6 +34111,7 @@ export interface DowntimePeriodReasonDto {
|
|
|
34185
34111
|
startTime: Date;
|
|
34186
34112
|
endTime?: Date | null;
|
|
34187
34113
|
assetId: number;
|
|
34114
|
+
assetExternalId?: string | null;
|
|
34188
34115
|
comment: string | null;
|
|
34189
34116
|
companyId: string | null;
|
|
34190
34117
|
reasonId: string;
|
|
@@ -34383,15 +34310,6 @@ export interface EngageAppSettings {
|
|
|
34383
34310
|
|
|
34384
34311
|
export type ScheduleViewMode = "Flat" | "Grouped";
|
|
34385
34312
|
|
|
34386
|
-
export interface FavoriteRoutesAppSettings {
|
|
34387
|
-
favorites?: FavoriteRoute[];
|
|
34388
|
-
}
|
|
34389
|
-
|
|
34390
|
-
export interface FavoriteRoute {
|
|
34391
|
-
appKey: string;
|
|
34392
|
-
route: string;
|
|
34393
|
-
}
|
|
34394
|
-
|
|
34395
34313
|
export interface UploadInfoDto {
|
|
34396
34314
|
baseUrl?: string | null;
|
|
34397
34315
|
key?: string | null;
|
|
@@ -34400,6 +34318,7 @@ export interface UploadInfoDto {
|
|
|
34400
34318
|
|
|
34401
34319
|
export interface UploadInfoCdfDto {
|
|
34402
34320
|
id: number;
|
|
34321
|
+
externalId: string;
|
|
34403
34322
|
url: string;
|
|
34404
34323
|
}
|
|
34405
34324
|
|
|
@@ -34549,6 +34468,7 @@ export interface PagedResultOfMachineAlarmDto {
|
|
|
34549
34468
|
export interface MachineAlarmDto {
|
|
34550
34469
|
alarmType: MachineAlarmType;
|
|
34551
34470
|
id: number;
|
|
34471
|
+
externalId: string;
|
|
34552
34472
|
type: string;
|
|
34553
34473
|
subType: string;
|
|
34554
34474
|
description?: string | null;
|
|
@@ -34572,13 +34492,14 @@ export interface GroupedMachineIncidentDto extends MachineAlarmDto {
|
|
|
34572
34492
|
}
|
|
34573
34493
|
|
|
34574
34494
|
export interface ListGroupedMachineIncidentsRequest {
|
|
34575
|
-
assetId
|
|
34495
|
+
assetId?: number | null;
|
|
34576
34496
|
startTime: Date;
|
|
34577
34497
|
endTime?: Date | null;
|
|
34578
34498
|
nativeCode?: string | null;
|
|
34579
34499
|
alarmType?: MachineAlarmType | null;
|
|
34580
34500
|
limit?: number | null;
|
|
34581
34501
|
continuationToken?: string | null;
|
|
34502
|
+
assetExternalId?: string | null;
|
|
34582
34503
|
}
|
|
34583
34504
|
|
|
34584
34505
|
export interface MachineAlarmSummaryDto {
|
|
@@ -34606,6 +34527,7 @@ export interface MachineAlarmCountDto {
|
|
|
34606
34527
|
|
|
34607
34528
|
export interface MachineAlarmDetailsDto {
|
|
34608
34529
|
id: number;
|
|
34530
|
+
externalId: string;
|
|
34609
34531
|
startTime: Date;
|
|
34610
34532
|
endTime?: Date | null;
|
|
34611
34533
|
nativeCode?: string | null;
|
|
@@ -34700,7 +34622,8 @@ export interface IgnosPortalControllersResourcesApiModelsUpdateParentTopicReques
|
|
|
34700
34622
|
|
|
34701
34623
|
export interface CreateDowntimePeriodReason {
|
|
34702
34624
|
reasonId: string;
|
|
34703
|
-
assetId
|
|
34625
|
+
assetId?: number | null;
|
|
34626
|
+
assetExternalId?: string | null;
|
|
34704
34627
|
startTime: Date;
|
|
34705
34628
|
endTime?: Date | null;
|
|
34706
34629
|
autoCompleteDowntime?: boolean | null;
|
|
@@ -34713,6 +34636,7 @@ export interface CreateDowntimePeriodReason {
|
|
|
34713
34636
|
export interface IgnosPortalControllersResourcesApiModelsUpdateDowntimePeriodReasonRequest {
|
|
34714
34637
|
reasonId?: string | null;
|
|
34715
34638
|
assetId?: number | null;
|
|
34639
|
+
assetExternalId?: string | null;
|
|
34716
34640
|
startTime?: Date | null;
|
|
34717
34641
|
endTime?: Date | null;
|
|
34718
34642
|
autoCompleteDowntime?: boolean | null;
|
|
@@ -35158,6 +35082,7 @@ export interface ResourceGroupUtilizationDto {
|
|
|
35158
35082
|
|
|
35159
35083
|
export interface ResourceUtilizationV2Dto {
|
|
35160
35084
|
id?: number;
|
|
35085
|
+
externalId: string;
|
|
35161
35086
|
name: string;
|
|
35162
35087
|
description?: string | null;
|
|
35163
35088
|
utilization: UtilizationDto;
|
|
@@ -35456,6 +35381,7 @@ export interface MachineGroupUtilizationV2Dto {
|
|
|
35456
35381
|
|
|
35457
35382
|
export interface MachineUtilizationV3Dto {
|
|
35458
35383
|
id?: number;
|
|
35384
|
+
externalId: string;
|
|
35459
35385
|
name: string;
|
|
35460
35386
|
description?: string | null;
|
|
35461
35387
|
utilization: UtilizationDetailsV2Dto;
|
|
@@ -36471,6 +36397,7 @@ export interface UpdateParentTopicRequest {
|
|
|
36471
36397
|
export interface UpdateDowntimePeriodReasonRequest {
|
|
36472
36398
|
reasonId?: string | null;
|
|
36473
36399
|
assetId?: number | null;
|
|
36400
|
+
assetExternalId?: string | null;
|
|
36474
36401
|
startTime?: Date | null;
|
|
36475
36402
|
endTime?: Date | null;
|
|
36476
36403
|
autoCompleteDowntime?: boolean | null;
|
|
@@ -36642,6 +36569,7 @@ export interface MachineGroupUtilizationDto {
|
|
|
36642
36569
|
|
|
36643
36570
|
export interface MachineUtilizationV2Dto {
|
|
36644
36571
|
id?: number;
|
|
36572
|
+
externalId: string;
|
|
36645
36573
|
name: string;
|
|
36646
36574
|
description?: string | null;
|
|
36647
36575
|
utilization: UtilizationDto;
|
|
@@ -40276,7 +40204,8 @@ export interface ProcessMaterialCertificate {
|
|
|
40276
40204
|
}
|
|
40277
40205
|
|
|
40278
40206
|
export interface UploadFileCdfDto {
|
|
40279
|
-
id
|
|
40207
|
+
id?: number | null;
|
|
40208
|
+
externalId?: string | null;
|
|
40280
40209
|
}
|
|
40281
40210
|
|
|
40282
40211
|
export interface ImaMaterialCheckReportDto {
|