@ignos/api-client 20240711.0.9780 → 20240719.0.9807
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 +210 -0
- package/lib/ignosportal-api.js +841 -4
- package/package.json +1 -1
- package/src/ignosportal-api.ts +1860 -834
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -638,6 +638,56 @@ export declare class MeasuringToolsClient extends AuthorizedApiBase implements I
|
|
|
638
638
|
getMeasuringToolSettings(): Promise<MeasuringToolSettingsDto>;
|
|
639
639
|
protected processGetMeasuringToolSettings(response: Response): Promise<MeasuringToolSettingsDto>;
|
|
640
640
|
}
|
|
641
|
+
export interface IDowntimeReasonsAdminClient {
|
|
642
|
+
listDowntimeReasons(): Promise<DowntimeReasonDto[]>;
|
|
643
|
+
createDowntimeReason(request: CreateDowntimeReason): Promise<DowntimeReasonDto>;
|
|
644
|
+
updateDowntimeReason(id: string, request: UpdateDowntimeReasonRequest): Promise<DowntimeReasonDto>;
|
|
645
|
+
deleteDowntimeReason(id: string): Promise<void>;
|
|
646
|
+
listMachineTypes(): Promise<MachineTypeDto[]>;
|
|
647
|
+
}
|
|
648
|
+
export declare class DowntimeReasonsAdminClient extends AuthorizedApiBase implements IDowntimeReasonsAdminClient {
|
|
649
|
+
private http;
|
|
650
|
+
private baseUrl;
|
|
651
|
+
protected jsonParseReviver: ((key: string, value: any) => any) | undefined;
|
|
652
|
+
constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: {
|
|
653
|
+
fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
|
|
654
|
+
});
|
|
655
|
+
listDowntimeReasons(): Promise<DowntimeReasonDto[]>;
|
|
656
|
+
protected processListDowntimeReasons(response: Response): Promise<DowntimeReasonDto[]>;
|
|
657
|
+
createDowntimeReason(request: CreateDowntimeReason): Promise<DowntimeReasonDto>;
|
|
658
|
+
protected processCreateDowntimeReason(response: Response): Promise<DowntimeReasonDto>;
|
|
659
|
+
updateDowntimeReason(id: string, request: UpdateDowntimeReasonRequest): Promise<DowntimeReasonDto>;
|
|
660
|
+
protected processUpdateDowntimeReason(response: Response): Promise<DowntimeReasonDto>;
|
|
661
|
+
deleteDowntimeReason(id: string): Promise<void>;
|
|
662
|
+
protected processDeleteDowntimeReason(response: Response): Promise<void>;
|
|
663
|
+
listMachineTypes(): Promise<MachineTypeDto[]>;
|
|
664
|
+
protected processListMachineTypes(response: Response): Promise<MachineTypeDto[]>;
|
|
665
|
+
}
|
|
666
|
+
export interface IDowntimeReasonsClient {
|
|
667
|
+
createDowntimePeriodReason(request: CreateDowntimePeriodReason): Promise<DowntimePeriodReasonDto>;
|
|
668
|
+
updateDowntimePeriodReason(id: number, request: UpdateDowntimePeriodReasonRequest): Promise<DowntimePeriodReasonDto>;
|
|
669
|
+
deleteDowntimeReason(id: number): Promise<void>;
|
|
670
|
+
listDowntimeReasonsForMachine(id: number): Promise<DowntimeReasonDto[]>;
|
|
671
|
+
listTopDowntimeReasons(): Promise<TopDowntimeReasonsDto>;
|
|
672
|
+
}
|
|
673
|
+
export declare class DowntimeReasonsClient extends AuthorizedApiBase implements IDowntimeReasonsClient {
|
|
674
|
+
private http;
|
|
675
|
+
private baseUrl;
|
|
676
|
+
protected jsonParseReviver: ((key: string, value: any) => any) | undefined;
|
|
677
|
+
constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: {
|
|
678
|
+
fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
|
|
679
|
+
});
|
|
680
|
+
createDowntimePeriodReason(request: CreateDowntimePeriodReason): Promise<DowntimePeriodReasonDto>;
|
|
681
|
+
protected processCreateDowntimePeriodReason(response: Response): Promise<DowntimePeriodReasonDto>;
|
|
682
|
+
updateDowntimePeriodReason(id: number, request: UpdateDowntimePeriodReasonRequest): Promise<DowntimePeriodReasonDto>;
|
|
683
|
+
protected processUpdateDowntimePeriodReason(response: Response): Promise<DowntimePeriodReasonDto>;
|
|
684
|
+
deleteDowntimeReason(id: number): Promise<void>;
|
|
685
|
+
protected processDeleteDowntimeReason(response: Response): Promise<void>;
|
|
686
|
+
listDowntimeReasonsForMachine(id: number): Promise<DowntimeReasonDto[]>;
|
|
687
|
+
protected processListDowntimeReasonsForMachine(response: Response): Promise<DowntimeReasonDto[]>;
|
|
688
|
+
listTopDowntimeReasons(): Promise<TopDowntimeReasonsDto>;
|
|
689
|
+
protected processListTopDowntimeReasons(response: Response): Promise<TopDowntimeReasonsDto>;
|
|
690
|
+
}
|
|
641
691
|
export interface IMachinesClient {
|
|
642
692
|
listMachines(onlyConnectedMachines: boolean | undefined): Promise<MachineDto[]>;
|
|
643
693
|
listMachineGroups(): Promise<MachineGroupDto[]>;
|
|
@@ -650,6 +700,7 @@ export interface IMachinesClient {
|
|
|
650
700
|
listMachineErpData(): Promise<MachineErpDataListDto>;
|
|
651
701
|
getMachineErpData(id: number): Promise<MachineErpDataDto>;
|
|
652
702
|
getMachineUtilizationSummary(): Promise<UtilizationSummaryDto>;
|
|
703
|
+
getCrossCompanyUtilizationSummary(): Promise<CrossCompanyUtilizationSummaryDto>;
|
|
653
704
|
listCurrentMachineOperators(machineExternalId: string | null | undefined, operatorNameQuery: string | null | undefined): Promise<OperatorAndMachineDto[]>;
|
|
654
705
|
createMachineWithoutResource(request: CreateMachineWithoutResource): Promise<void>;
|
|
655
706
|
createResourceWithoutMachine(request: CreateResourceWithoutMachine): Promise<void>;
|
|
@@ -684,6 +735,8 @@ export declare class MachinesClient extends AuthorizedApiBase implements IMachin
|
|
|
684
735
|
protected processGetMachineErpData(response: Response): Promise<MachineErpDataDto>;
|
|
685
736
|
getMachineUtilizationSummary(): Promise<UtilizationSummaryDto>;
|
|
686
737
|
protected processGetMachineUtilizationSummary(response: Response): Promise<UtilizationSummaryDto>;
|
|
738
|
+
getCrossCompanyUtilizationSummary(): Promise<CrossCompanyUtilizationSummaryDto>;
|
|
739
|
+
protected processGetCrossCompanyUtilizationSummary(response: Response): Promise<CrossCompanyUtilizationSummaryDto>;
|
|
687
740
|
listCurrentMachineOperators(machineExternalId: string | null | undefined, operatorNameQuery: string | null | undefined): Promise<OperatorAndMachineDto[]>;
|
|
688
741
|
protected processListCurrentMachineOperators(response: Response): Promise<OperatorAndMachineDto[]>;
|
|
689
742
|
createMachineWithoutResource(request: CreateMachineWithoutResource): Promise<void>;
|
|
@@ -2461,6 +2514,8 @@ export declare class MachineStateDatapoint implements IMachineStateDatapoint {
|
|
|
2461
2514
|
machineStateText: string;
|
|
2462
2515
|
machineState: MachineState;
|
|
2463
2516
|
timestamp: number;
|
|
2517
|
+
isDowntime: boolean;
|
|
2518
|
+
downtimePeriodReasons: DowntimePeriodReasonDto[];
|
|
2464
2519
|
constructor(data?: IMachineStateDatapoint);
|
|
2465
2520
|
init(_data?: any): void;
|
|
2466
2521
|
static fromJS(data: any): MachineStateDatapoint;
|
|
@@ -2470,7 +2525,36 @@ export interface IMachineStateDatapoint {
|
|
|
2470
2525
|
machineStateText: string;
|
|
2471
2526
|
machineState: MachineState;
|
|
2472
2527
|
timestamp: number;
|
|
2528
|
+
isDowntime: boolean;
|
|
2529
|
+
downtimePeriodReasons: DowntimePeriodReasonDto[];
|
|
2530
|
+
}
|
|
2531
|
+
export declare class DowntimePeriodReasonDto implements IDowntimePeriodReasonDto {
|
|
2532
|
+
id?: number;
|
|
2533
|
+
reason?: string;
|
|
2534
|
+
reasonType?: DowntimeReasonTypeDto;
|
|
2535
|
+
startTime?: Date;
|
|
2536
|
+
endTime?: Date;
|
|
2537
|
+
assetId?: number;
|
|
2538
|
+
comment?: string | null;
|
|
2539
|
+
companyId?: string | null;
|
|
2540
|
+
reasonId?: string;
|
|
2541
|
+
constructor(data?: IDowntimePeriodReasonDto);
|
|
2542
|
+
init(_data?: any): void;
|
|
2543
|
+
static fromJS(data: any): DowntimePeriodReasonDto;
|
|
2544
|
+
toJSON(data?: any): any;
|
|
2545
|
+
}
|
|
2546
|
+
export interface IDowntimePeriodReasonDto {
|
|
2547
|
+
id?: number;
|
|
2548
|
+
reason?: string;
|
|
2549
|
+
reasonType?: DowntimeReasonTypeDto;
|
|
2550
|
+
startTime?: Date;
|
|
2551
|
+
endTime?: Date;
|
|
2552
|
+
assetId?: number;
|
|
2553
|
+
comment?: string | null;
|
|
2554
|
+
companyId?: string | null;
|
|
2555
|
+
reasonId?: string;
|
|
2473
2556
|
}
|
|
2557
|
+
export type DowntimeReasonTypeDto = "Unplanned" | "Planned";
|
|
2474
2558
|
export declare class MachineUptimesAggregateDto implements IMachineUptimesAggregateDto {
|
|
2475
2559
|
machineUptimes: MachineUptimeDto[];
|
|
2476
2560
|
sum: MachineUptimeSumDto;
|
|
@@ -4783,6 +4867,120 @@ export interface IMeasuringToolSettingsDto {
|
|
|
4783
4867
|
disableUserDefinedIdentifiersForCalibratedTools: boolean;
|
|
4784
4868
|
disableUserDefinedIdentifiersForUncalibratedTools: boolean;
|
|
4785
4869
|
}
|
|
4870
|
+
export declare class DowntimeReasonDto implements IDowntimeReasonDto {
|
|
4871
|
+
id?: string;
|
|
4872
|
+
reason?: string;
|
|
4873
|
+
machineTypes?: string[];
|
|
4874
|
+
reasonType?: DowntimeReasonTypeDto;
|
|
4875
|
+
constructor(data?: IDowntimeReasonDto);
|
|
4876
|
+
init(_data?: any): void;
|
|
4877
|
+
static fromJS(data: any): DowntimeReasonDto;
|
|
4878
|
+
toJSON(data?: any): any;
|
|
4879
|
+
}
|
|
4880
|
+
export interface IDowntimeReasonDto {
|
|
4881
|
+
id?: string;
|
|
4882
|
+
reason?: string;
|
|
4883
|
+
machineTypes?: string[];
|
|
4884
|
+
reasonType?: DowntimeReasonTypeDto;
|
|
4885
|
+
}
|
|
4886
|
+
export declare class CreateDowntimeReason implements ICreateDowntimeReason {
|
|
4887
|
+
reason: string;
|
|
4888
|
+
machineTypes: string[];
|
|
4889
|
+
reasonType?: DowntimeReasonTypeDto;
|
|
4890
|
+
constructor(data?: ICreateDowntimeReason);
|
|
4891
|
+
init(_data?: any): void;
|
|
4892
|
+
static fromJS(data: any): CreateDowntimeReason;
|
|
4893
|
+
toJSON(data?: any): any;
|
|
4894
|
+
}
|
|
4895
|
+
export interface ICreateDowntimeReason {
|
|
4896
|
+
reason: string;
|
|
4897
|
+
machineTypes: string[];
|
|
4898
|
+
reasonType?: DowntimeReasonTypeDto;
|
|
4899
|
+
}
|
|
4900
|
+
export declare class UpdateDowntimeReasonRequest implements IUpdateDowntimeReasonRequest {
|
|
4901
|
+
reason: string;
|
|
4902
|
+
machineTypes: string[];
|
|
4903
|
+
reasonType?: DowntimeReasonTypeDto;
|
|
4904
|
+
constructor(data?: IUpdateDowntimeReasonRequest);
|
|
4905
|
+
init(_data?: any): void;
|
|
4906
|
+
static fromJS(data: any): UpdateDowntimeReasonRequest;
|
|
4907
|
+
toJSON(data?: any): any;
|
|
4908
|
+
}
|
|
4909
|
+
export interface IUpdateDowntimeReasonRequest {
|
|
4910
|
+
reason: string;
|
|
4911
|
+
machineTypes: string[];
|
|
4912
|
+
reasonType?: DowntimeReasonTypeDto;
|
|
4913
|
+
}
|
|
4914
|
+
export declare class MachineTypeDto implements IMachineTypeDto {
|
|
4915
|
+
machineType?: string;
|
|
4916
|
+
constructor(data?: IMachineTypeDto);
|
|
4917
|
+
init(_data?: any): void;
|
|
4918
|
+
static fromJS(data: any): MachineTypeDto;
|
|
4919
|
+
toJSON(data?: any): any;
|
|
4920
|
+
}
|
|
4921
|
+
export interface IMachineTypeDto {
|
|
4922
|
+
machineType?: string;
|
|
4923
|
+
}
|
|
4924
|
+
export declare class CreateDowntimePeriodReason implements ICreateDowntimePeriodReason {
|
|
4925
|
+
reasonId: string;
|
|
4926
|
+
assetId?: number;
|
|
4927
|
+
startTime?: Date;
|
|
4928
|
+
endTime?: Date;
|
|
4929
|
+
comment?: string | null;
|
|
4930
|
+
constructor(data?: ICreateDowntimePeriodReason);
|
|
4931
|
+
init(_data?: any): void;
|
|
4932
|
+
static fromJS(data: any): CreateDowntimePeriodReason;
|
|
4933
|
+
toJSON(data?: any): any;
|
|
4934
|
+
}
|
|
4935
|
+
export interface ICreateDowntimePeriodReason {
|
|
4936
|
+
reasonId: string;
|
|
4937
|
+
assetId?: number;
|
|
4938
|
+
startTime?: Date;
|
|
4939
|
+
endTime?: Date;
|
|
4940
|
+
comment?: string | null;
|
|
4941
|
+
}
|
|
4942
|
+
export declare class UpdateDowntimePeriodReasonRequest implements IUpdateDowntimePeriodReasonRequest {
|
|
4943
|
+
reasonId?: string | null;
|
|
4944
|
+
assetId?: number | null;
|
|
4945
|
+
startTime?: Date | null;
|
|
4946
|
+
endTime?: Date | null;
|
|
4947
|
+
comment?: string | null;
|
|
4948
|
+
constructor(data?: IUpdateDowntimePeriodReasonRequest);
|
|
4949
|
+
init(_data?: any): void;
|
|
4950
|
+
static fromJS(data: any): UpdateDowntimePeriodReasonRequest;
|
|
4951
|
+
toJSON(data?: any): any;
|
|
4952
|
+
}
|
|
4953
|
+
export interface IUpdateDowntimePeriodReasonRequest {
|
|
4954
|
+
reasonId?: string | null;
|
|
4955
|
+
assetId?: number | null;
|
|
4956
|
+
startTime?: Date | null;
|
|
4957
|
+
endTime?: Date | null;
|
|
4958
|
+
comment?: string | null;
|
|
4959
|
+
}
|
|
4960
|
+
export declare class TopDowntimeReasonsDto implements ITopDowntimeReasonsDto {
|
|
4961
|
+
planned?: DowntimeReasonCountDto[];
|
|
4962
|
+
unplanned?: DowntimeReasonCountDto[];
|
|
4963
|
+
constructor(data?: ITopDowntimeReasonsDto);
|
|
4964
|
+
init(_data?: any): void;
|
|
4965
|
+
static fromJS(data: any): TopDowntimeReasonsDto;
|
|
4966
|
+
toJSON(data?: any): any;
|
|
4967
|
+
}
|
|
4968
|
+
export interface ITopDowntimeReasonsDto {
|
|
4969
|
+
planned?: DowntimeReasonCountDto[];
|
|
4970
|
+
unplanned?: DowntimeReasonCountDto[];
|
|
4971
|
+
}
|
|
4972
|
+
export declare class DowntimeReasonCountDto implements IDowntimeReasonCountDto {
|
|
4973
|
+
count?: number;
|
|
4974
|
+
downtimeReason?: DowntimeReasonDto;
|
|
4975
|
+
constructor(data?: IDowntimeReasonCountDto);
|
|
4976
|
+
init(_data?: any): void;
|
|
4977
|
+
static fromJS(data: any): DowntimeReasonCountDto;
|
|
4978
|
+
toJSON(data?: any): any;
|
|
4979
|
+
}
|
|
4980
|
+
export interface IDowntimeReasonCountDto {
|
|
4981
|
+
count?: number;
|
|
4982
|
+
downtimeReason?: DowntimeReasonDto;
|
|
4983
|
+
}
|
|
4786
4984
|
export declare class MachineDto implements IMachineDto {
|
|
4787
4985
|
id: number;
|
|
4788
4986
|
externalId: string;
|
|
@@ -5121,6 +5319,18 @@ export interface IMachineUtilizationV2Dto {
|
|
|
5121
5319
|
description?: string | null;
|
|
5122
5320
|
utilization: UtilizationDto;
|
|
5123
5321
|
}
|
|
5322
|
+
export declare class CrossCompanyUtilizationSummaryDto implements ICrossCompanyUtilizationSummaryDto {
|
|
5323
|
+
crossCompany: FactoryUtilizationDto;
|
|
5324
|
+
companies: MachineGroupUtilizationDto[];
|
|
5325
|
+
constructor(data?: ICrossCompanyUtilizationSummaryDto);
|
|
5326
|
+
init(_data?: any): void;
|
|
5327
|
+
static fromJS(data: any): CrossCompanyUtilizationSummaryDto;
|
|
5328
|
+
toJSON(data?: any): any;
|
|
5329
|
+
}
|
|
5330
|
+
export interface ICrossCompanyUtilizationSummaryDto {
|
|
5331
|
+
crossCompany: FactoryUtilizationDto;
|
|
5332
|
+
companies: MachineGroupUtilizationDto[];
|
|
5333
|
+
}
|
|
5124
5334
|
export declare class OperatorAndMachineDto implements IOperatorAndMachineDto {
|
|
5125
5335
|
operator?: EmployeeDto | null;
|
|
5126
5336
|
lastWorkOrderEventStartTime?: Date;
|