@ignos/api-client 20240719.0.9807 → 20240722.0.9823
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 +42 -42
- package/lib/ignosportal-api.js +11 -1
- package/package.json +1 -1
- package/src/ignosportal-api.ts +53 -43
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -2529,30 +2529,30 @@ export interface IMachineStateDatapoint {
|
|
|
2529
2529
|
downtimePeriodReasons: DowntimePeriodReasonDto[];
|
|
2530
2530
|
}
|
|
2531
2531
|
export declare class DowntimePeriodReasonDto implements IDowntimePeriodReasonDto {
|
|
2532
|
-
id
|
|
2533
|
-
reason
|
|
2534
|
-
reasonType
|
|
2535
|
-
startTime
|
|
2536
|
-
endTime
|
|
2537
|
-
assetId
|
|
2532
|
+
id: number;
|
|
2533
|
+
reason: string;
|
|
2534
|
+
reasonType: DowntimeReasonTypeDto;
|
|
2535
|
+
startTime: Date;
|
|
2536
|
+
endTime: Date;
|
|
2537
|
+
assetId: number;
|
|
2538
2538
|
comment?: string | null;
|
|
2539
2539
|
companyId?: string | null;
|
|
2540
|
-
reasonId
|
|
2540
|
+
reasonId: string;
|
|
2541
2541
|
constructor(data?: IDowntimePeriodReasonDto);
|
|
2542
2542
|
init(_data?: any): void;
|
|
2543
2543
|
static fromJS(data: any): DowntimePeriodReasonDto;
|
|
2544
2544
|
toJSON(data?: any): any;
|
|
2545
2545
|
}
|
|
2546
2546
|
export interface IDowntimePeriodReasonDto {
|
|
2547
|
-
id
|
|
2548
|
-
reason
|
|
2549
|
-
reasonType
|
|
2550
|
-
startTime
|
|
2551
|
-
endTime
|
|
2552
|
-
assetId
|
|
2547
|
+
id: number;
|
|
2548
|
+
reason: string;
|
|
2549
|
+
reasonType: DowntimeReasonTypeDto;
|
|
2550
|
+
startTime: Date;
|
|
2551
|
+
endTime: Date;
|
|
2552
|
+
assetId: number;
|
|
2553
2553
|
comment?: string | null;
|
|
2554
2554
|
companyId?: string | null;
|
|
2555
|
-
reasonId
|
|
2555
|
+
reasonId: string;
|
|
2556
2556
|
}
|
|
2557
2557
|
export type DowntimeReasonTypeDto = "Unplanned" | "Planned";
|
|
2558
2558
|
export declare class MachineUptimesAggregateDto implements IMachineUptimesAggregateDto {
|
|
@@ -4868,25 +4868,25 @@ export interface IMeasuringToolSettingsDto {
|
|
|
4868
4868
|
disableUserDefinedIdentifiersForUncalibratedTools: boolean;
|
|
4869
4869
|
}
|
|
4870
4870
|
export declare class DowntimeReasonDto implements IDowntimeReasonDto {
|
|
4871
|
-
id
|
|
4872
|
-
reason
|
|
4873
|
-
machineTypes
|
|
4874
|
-
reasonType
|
|
4871
|
+
id: string;
|
|
4872
|
+
reason: string;
|
|
4873
|
+
machineTypes: string[];
|
|
4874
|
+
reasonType: DowntimeReasonTypeDto;
|
|
4875
4875
|
constructor(data?: IDowntimeReasonDto);
|
|
4876
4876
|
init(_data?: any): void;
|
|
4877
4877
|
static fromJS(data: any): DowntimeReasonDto;
|
|
4878
4878
|
toJSON(data?: any): any;
|
|
4879
4879
|
}
|
|
4880
4880
|
export interface IDowntimeReasonDto {
|
|
4881
|
-
id
|
|
4882
|
-
reason
|
|
4883
|
-
machineTypes
|
|
4884
|
-
reasonType
|
|
4881
|
+
id: string;
|
|
4882
|
+
reason: string;
|
|
4883
|
+
machineTypes: string[];
|
|
4884
|
+
reasonType: DowntimeReasonTypeDto;
|
|
4885
4885
|
}
|
|
4886
4886
|
export declare class CreateDowntimeReason implements ICreateDowntimeReason {
|
|
4887
4887
|
reason: string;
|
|
4888
4888
|
machineTypes: string[];
|
|
4889
|
-
reasonType
|
|
4889
|
+
reasonType: DowntimeReasonTypeDto;
|
|
4890
4890
|
constructor(data?: ICreateDowntimeReason);
|
|
4891
4891
|
init(_data?: any): void;
|
|
4892
4892
|
static fromJS(data: any): CreateDowntimeReason;
|
|
@@ -4895,12 +4895,12 @@ export declare class CreateDowntimeReason implements ICreateDowntimeReason {
|
|
|
4895
4895
|
export interface ICreateDowntimeReason {
|
|
4896
4896
|
reason: string;
|
|
4897
4897
|
machineTypes: string[];
|
|
4898
|
-
reasonType
|
|
4898
|
+
reasonType: DowntimeReasonTypeDto;
|
|
4899
4899
|
}
|
|
4900
4900
|
export declare class UpdateDowntimeReasonRequest implements IUpdateDowntimeReasonRequest {
|
|
4901
4901
|
reason: string;
|
|
4902
4902
|
machineTypes: string[];
|
|
4903
|
-
reasonType
|
|
4903
|
+
reasonType: DowntimeReasonTypeDto;
|
|
4904
4904
|
constructor(data?: IUpdateDowntimeReasonRequest);
|
|
4905
4905
|
init(_data?: any): void;
|
|
4906
4906
|
static fromJS(data: any): UpdateDowntimeReasonRequest;
|
|
@@ -4909,23 +4909,23 @@ export declare class UpdateDowntimeReasonRequest implements IUpdateDowntimeReaso
|
|
|
4909
4909
|
export interface IUpdateDowntimeReasonRequest {
|
|
4910
4910
|
reason: string;
|
|
4911
4911
|
machineTypes: string[];
|
|
4912
|
-
reasonType
|
|
4912
|
+
reasonType: DowntimeReasonTypeDto;
|
|
4913
4913
|
}
|
|
4914
4914
|
export declare class MachineTypeDto implements IMachineTypeDto {
|
|
4915
|
-
machineType
|
|
4915
|
+
machineType: string;
|
|
4916
4916
|
constructor(data?: IMachineTypeDto);
|
|
4917
4917
|
init(_data?: any): void;
|
|
4918
4918
|
static fromJS(data: any): MachineTypeDto;
|
|
4919
4919
|
toJSON(data?: any): any;
|
|
4920
4920
|
}
|
|
4921
4921
|
export interface IMachineTypeDto {
|
|
4922
|
-
machineType
|
|
4922
|
+
machineType: string;
|
|
4923
4923
|
}
|
|
4924
4924
|
export declare class CreateDowntimePeriodReason implements ICreateDowntimePeriodReason {
|
|
4925
4925
|
reasonId: string;
|
|
4926
|
-
assetId
|
|
4927
|
-
startTime
|
|
4928
|
-
endTime
|
|
4926
|
+
assetId: number;
|
|
4927
|
+
startTime: Date;
|
|
4928
|
+
endTime: Date;
|
|
4929
4929
|
comment?: string | null;
|
|
4930
4930
|
constructor(data?: ICreateDowntimePeriodReason);
|
|
4931
4931
|
init(_data?: any): void;
|
|
@@ -4934,9 +4934,9 @@ export declare class CreateDowntimePeriodReason implements ICreateDowntimePeriod
|
|
|
4934
4934
|
}
|
|
4935
4935
|
export interface ICreateDowntimePeriodReason {
|
|
4936
4936
|
reasonId: string;
|
|
4937
|
-
assetId
|
|
4938
|
-
startTime
|
|
4939
|
-
endTime
|
|
4937
|
+
assetId: number;
|
|
4938
|
+
startTime: Date;
|
|
4939
|
+
endTime: Date;
|
|
4940
4940
|
comment?: string | null;
|
|
4941
4941
|
}
|
|
4942
4942
|
export declare class UpdateDowntimePeriodReasonRequest implements IUpdateDowntimePeriodReasonRequest {
|
|
@@ -4958,28 +4958,28 @@ export interface IUpdateDowntimePeriodReasonRequest {
|
|
|
4958
4958
|
comment?: string | null;
|
|
4959
4959
|
}
|
|
4960
4960
|
export declare class TopDowntimeReasonsDto implements ITopDowntimeReasonsDto {
|
|
4961
|
-
planned
|
|
4962
|
-
unplanned
|
|
4961
|
+
planned: DowntimeReasonCountDto[];
|
|
4962
|
+
unplanned: DowntimeReasonCountDto[];
|
|
4963
4963
|
constructor(data?: ITopDowntimeReasonsDto);
|
|
4964
4964
|
init(_data?: any): void;
|
|
4965
4965
|
static fromJS(data: any): TopDowntimeReasonsDto;
|
|
4966
4966
|
toJSON(data?: any): any;
|
|
4967
4967
|
}
|
|
4968
4968
|
export interface ITopDowntimeReasonsDto {
|
|
4969
|
-
planned
|
|
4970
|
-
unplanned
|
|
4969
|
+
planned: DowntimeReasonCountDto[];
|
|
4970
|
+
unplanned: DowntimeReasonCountDto[];
|
|
4971
4971
|
}
|
|
4972
4972
|
export declare class DowntimeReasonCountDto implements IDowntimeReasonCountDto {
|
|
4973
|
-
count
|
|
4974
|
-
downtimeReason
|
|
4973
|
+
count: number;
|
|
4974
|
+
downtimeReason: DowntimeReasonDto;
|
|
4975
4975
|
constructor(data?: IDowntimeReasonCountDto);
|
|
4976
4976
|
init(_data?: any): void;
|
|
4977
4977
|
static fromJS(data: any): DowntimeReasonCountDto;
|
|
4978
4978
|
toJSON(data?: any): any;
|
|
4979
4979
|
}
|
|
4980
4980
|
export interface IDowntimeReasonCountDto {
|
|
4981
|
-
count
|
|
4982
|
-
downtimeReason
|
|
4981
|
+
count: number;
|
|
4982
|
+
downtimeReason: DowntimeReasonDto;
|
|
4983
4983
|
}
|
|
4984
4984
|
export declare class MachineDto implements IMachineDto {
|
|
4985
4985
|
id: number;
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -24526,6 +24526,9 @@ export class DowntimeReasonDto {
|
|
|
24526
24526
|
this[property] = data[property];
|
|
24527
24527
|
}
|
|
24528
24528
|
}
|
|
24529
|
+
if (!data) {
|
|
24530
|
+
this.machineTypes = [];
|
|
24531
|
+
}
|
|
24529
24532
|
}
|
|
24530
24533
|
init(_data) {
|
|
24531
24534
|
if (_data) {
|
|
@@ -24742,6 +24745,10 @@ export class TopDowntimeReasonsDto {
|
|
|
24742
24745
|
this[property] = data[property];
|
|
24743
24746
|
}
|
|
24744
24747
|
}
|
|
24748
|
+
if (!data) {
|
|
24749
|
+
this.planned = [];
|
|
24750
|
+
this.unplanned = [];
|
|
24751
|
+
}
|
|
24745
24752
|
}
|
|
24746
24753
|
init(_data) {
|
|
24747
24754
|
if (_data) {
|
|
@@ -24786,11 +24793,14 @@ export class DowntimeReasonCountDto {
|
|
|
24786
24793
|
this[property] = data[property];
|
|
24787
24794
|
}
|
|
24788
24795
|
}
|
|
24796
|
+
if (!data) {
|
|
24797
|
+
this.downtimeReason = new DowntimeReasonDto();
|
|
24798
|
+
}
|
|
24789
24799
|
}
|
|
24790
24800
|
init(_data) {
|
|
24791
24801
|
if (_data) {
|
|
24792
24802
|
this.count = _data["count"];
|
|
24793
|
-
this.downtimeReason = _data["downtimeReason"] ? DowntimeReasonDto.fromJS(_data["downtimeReason"]) :
|
|
24803
|
+
this.downtimeReason = _data["downtimeReason"] ? DowntimeReasonDto.fromJS(_data["downtimeReason"]) : new DowntimeReasonDto();
|
|
24794
24804
|
}
|
|
24795
24805
|
}
|
|
24796
24806
|
static fromJS(data) {
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -21161,15 +21161,15 @@ export interface IMachineStateDatapoint {
|
|
|
21161
21161
|
}
|
|
21162
21162
|
|
|
21163
21163
|
export class DowntimePeriodReasonDto implements IDowntimePeriodReasonDto {
|
|
21164
|
-
id
|
|
21165
|
-
reason
|
|
21166
|
-
reasonType
|
|
21167
|
-
startTime
|
|
21168
|
-
endTime
|
|
21169
|
-
assetId
|
|
21164
|
+
id!: number;
|
|
21165
|
+
reason!: string;
|
|
21166
|
+
reasonType!: DowntimeReasonTypeDto;
|
|
21167
|
+
startTime!: Date;
|
|
21168
|
+
endTime!: Date;
|
|
21169
|
+
assetId!: number;
|
|
21170
21170
|
comment?: string | null;
|
|
21171
21171
|
companyId?: string | null;
|
|
21172
|
-
reasonId
|
|
21172
|
+
reasonId!: string;
|
|
21173
21173
|
|
|
21174
21174
|
constructor(data?: IDowntimePeriodReasonDto) {
|
|
21175
21175
|
if (data) {
|
|
@@ -21217,15 +21217,15 @@ export class DowntimePeriodReasonDto implements IDowntimePeriodReasonDto {
|
|
|
21217
21217
|
}
|
|
21218
21218
|
|
|
21219
21219
|
export interface IDowntimePeriodReasonDto {
|
|
21220
|
-
id
|
|
21221
|
-
reason
|
|
21222
|
-
reasonType
|
|
21223
|
-
startTime
|
|
21224
|
-
endTime
|
|
21225
|
-
assetId
|
|
21220
|
+
id: number;
|
|
21221
|
+
reason: string;
|
|
21222
|
+
reasonType: DowntimeReasonTypeDto;
|
|
21223
|
+
startTime: Date;
|
|
21224
|
+
endTime: Date;
|
|
21225
|
+
assetId: number;
|
|
21226
21226
|
comment?: string | null;
|
|
21227
21227
|
companyId?: string | null;
|
|
21228
|
-
reasonId
|
|
21228
|
+
reasonId: string;
|
|
21229
21229
|
}
|
|
21230
21230
|
|
|
21231
21231
|
export type DowntimeReasonTypeDto = "Unplanned" | "Planned";
|
|
@@ -28388,10 +28388,10 @@ export interface IMeasuringToolSettingsDto {
|
|
|
28388
28388
|
}
|
|
28389
28389
|
|
|
28390
28390
|
export class DowntimeReasonDto implements IDowntimeReasonDto {
|
|
28391
|
-
id
|
|
28392
|
-
reason
|
|
28393
|
-
machineTypes
|
|
28394
|
-
reasonType
|
|
28391
|
+
id!: string;
|
|
28392
|
+
reason!: string;
|
|
28393
|
+
machineTypes!: string[];
|
|
28394
|
+
reasonType!: DowntimeReasonTypeDto;
|
|
28395
28395
|
|
|
28396
28396
|
constructor(data?: IDowntimeReasonDto) {
|
|
28397
28397
|
if (data) {
|
|
@@ -28400,6 +28400,9 @@ export class DowntimeReasonDto implements IDowntimeReasonDto {
|
|
|
28400
28400
|
(<any>this)[property] = (<any>data)[property];
|
|
28401
28401
|
}
|
|
28402
28402
|
}
|
|
28403
|
+
if (!data) {
|
|
28404
|
+
this.machineTypes = [];
|
|
28405
|
+
}
|
|
28403
28406
|
}
|
|
28404
28407
|
|
|
28405
28408
|
init(_data?: any) {
|
|
@@ -28437,16 +28440,16 @@ export class DowntimeReasonDto implements IDowntimeReasonDto {
|
|
|
28437
28440
|
}
|
|
28438
28441
|
|
|
28439
28442
|
export interface IDowntimeReasonDto {
|
|
28440
|
-
id
|
|
28441
|
-
reason
|
|
28442
|
-
machineTypes
|
|
28443
|
-
reasonType
|
|
28443
|
+
id: string;
|
|
28444
|
+
reason: string;
|
|
28445
|
+
machineTypes: string[];
|
|
28446
|
+
reasonType: DowntimeReasonTypeDto;
|
|
28444
28447
|
}
|
|
28445
28448
|
|
|
28446
28449
|
export class CreateDowntimeReason implements ICreateDowntimeReason {
|
|
28447
28450
|
reason!: string;
|
|
28448
28451
|
machineTypes!: string[];
|
|
28449
|
-
reasonType
|
|
28452
|
+
reasonType!: DowntimeReasonTypeDto;
|
|
28450
28453
|
|
|
28451
28454
|
constructor(data?: ICreateDowntimeReason) {
|
|
28452
28455
|
if (data) {
|
|
@@ -28495,13 +28498,13 @@ export class CreateDowntimeReason implements ICreateDowntimeReason {
|
|
|
28495
28498
|
export interface ICreateDowntimeReason {
|
|
28496
28499
|
reason: string;
|
|
28497
28500
|
machineTypes: string[];
|
|
28498
|
-
reasonType
|
|
28501
|
+
reasonType: DowntimeReasonTypeDto;
|
|
28499
28502
|
}
|
|
28500
28503
|
|
|
28501
28504
|
export class UpdateDowntimeReasonRequest implements IUpdateDowntimeReasonRequest {
|
|
28502
28505
|
reason!: string;
|
|
28503
28506
|
machineTypes!: string[];
|
|
28504
|
-
reasonType
|
|
28507
|
+
reasonType!: DowntimeReasonTypeDto;
|
|
28505
28508
|
|
|
28506
28509
|
constructor(data?: IUpdateDowntimeReasonRequest) {
|
|
28507
28510
|
if (data) {
|
|
@@ -28550,11 +28553,11 @@ export class UpdateDowntimeReasonRequest implements IUpdateDowntimeReasonRequest
|
|
|
28550
28553
|
export interface IUpdateDowntimeReasonRequest {
|
|
28551
28554
|
reason: string;
|
|
28552
28555
|
machineTypes: string[];
|
|
28553
|
-
reasonType
|
|
28556
|
+
reasonType: DowntimeReasonTypeDto;
|
|
28554
28557
|
}
|
|
28555
28558
|
|
|
28556
28559
|
export class MachineTypeDto implements IMachineTypeDto {
|
|
28557
|
-
machineType
|
|
28560
|
+
machineType!: string;
|
|
28558
28561
|
|
|
28559
28562
|
constructor(data?: IMachineTypeDto) {
|
|
28560
28563
|
if (data) {
|
|
@@ -28586,14 +28589,14 @@ export class MachineTypeDto implements IMachineTypeDto {
|
|
|
28586
28589
|
}
|
|
28587
28590
|
|
|
28588
28591
|
export interface IMachineTypeDto {
|
|
28589
|
-
machineType
|
|
28592
|
+
machineType: string;
|
|
28590
28593
|
}
|
|
28591
28594
|
|
|
28592
28595
|
export class CreateDowntimePeriodReason implements ICreateDowntimePeriodReason {
|
|
28593
28596
|
reasonId!: string;
|
|
28594
|
-
assetId
|
|
28595
|
-
startTime
|
|
28596
|
-
endTime
|
|
28597
|
+
assetId!: number;
|
|
28598
|
+
startTime!: Date;
|
|
28599
|
+
endTime!: Date;
|
|
28597
28600
|
comment?: string | null;
|
|
28598
28601
|
|
|
28599
28602
|
constructor(data?: ICreateDowntimePeriodReason) {
|
|
@@ -28635,9 +28638,9 @@ export class CreateDowntimePeriodReason implements ICreateDowntimePeriodReason {
|
|
|
28635
28638
|
|
|
28636
28639
|
export interface ICreateDowntimePeriodReason {
|
|
28637
28640
|
reasonId: string;
|
|
28638
|
-
assetId
|
|
28639
|
-
startTime
|
|
28640
|
-
endTime
|
|
28641
|
+
assetId: number;
|
|
28642
|
+
startTime: Date;
|
|
28643
|
+
endTime: Date;
|
|
28641
28644
|
comment?: string | null;
|
|
28642
28645
|
}
|
|
28643
28646
|
|
|
@@ -28694,8 +28697,8 @@ export interface IUpdateDowntimePeriodReasonRequest {
|
|
|
28694
28697
|
}
|
|
28695
28698
|
|
|
28696
28699
|
export class TopDowntimeReasonsDto implements ITopDowntimeReasonsDto {
|
|
28697
|
-
planned
|
|
28698
|
-
unplanned
|
|
28700
|
+
planned!: DowntimeReasonCountDto[];
|
|
28701
|
+
unplanned!: DowntimeReasonCountDto[];
|
|
28699
28702
|
|
|
28700
28703
|
constructor(data?: ITopDowntimeReasonsDto) {
|
|
28701
28704
|
if (data) {
|
|
@@ -28704,6 +28707,10 @@ export class TopDowntimeReasonsDto implements ITopDowntimeReasonsDto {
|
|
|
28704
28707
|
(<any>this)[property] = (<any>data)[property];
|
|
28705
28708
|
}
|
|
28706
28709
|
}
|
|
28710
|
+
if (!data) {
|
|
28711
|
+
this.planned = [];
|
|
28712
|
+
this.unplanned = [];
|
|
28713
|
+
}
|
|
28707
28714
|
}
|
|
28708
28715
|
|
|
28709
28716
|
init(_data?: any) {
|
|
@@ -28745,13 +28752,13 @@ export class TopDowntimeReasonsDto implements ITopDowntimeReasonsDto {
|
|
|
28745
28752
|
}
|
|
28746
28753
|
|
|
28747
28754
|
export interface ITopDowntimeReasonsDto {
|
|
28748
|
-
planned
|
|
28749
|
-
unplanned
|
|
28755
|
+
planned: DowntimeReasonCountDto[];
|
|
28756
|
+
unplanned: DowntimeReasonCountDto[];
|
|
28750
28757
|
}
|
|
28751
28758
|
|
|
28752
28759
|
export class DowntimeReasonCountDto implements IDowntimeReasonCountDto {
|
|
28753
|
-
count
|
|
28754
|
-
downtimeReason
|
|
28760
|
+
count!: number;
|
|
28761
|
+
downtimeReason!: DowntimeReasonDto;
|
|
28755
28762
|
|
|
28756
28763
|
constructor(data?: IDowntimeReasonCountDto) {
|
|
28757
28764
|
if (data) {
|
|
@@ -28760,12 +28767,15 @@ export class DowntimeReasonCountDto implements IDowntimeReasonCountDto {
|
|
|
28760
28767
|
(<any>this)[property] = (<any>data)[property];
|
|
28761
28768
|
}
|
|
28762
28769
|
}
|
|
28770
|
+
if (!data) {
|
|
28771
|
+
this.downtimeReason = new DowntimeReasonDto();
|
|
28772
|
+
}
|
|
28763
28773
|
}
|
|
28764
28774
|
|
|
28765
28775
|
init(_data?: any) {
|
|
28766
28776
|
if (_data) {
|
|
28767
28777
|
this.count = _data["count"];
|
|
28768
|
-
this.downtimeReason = _data["downtimeReason"] ? DowntimeReasonDto.fromJS(_data["downtimeReason"]) :
|
|
28778
|
+
this.downtimeReason = _data["downtimeReason"] ? DowntimeReasonDto.fromJS(_data["downtimeReason"]) : new DowntimeReasonDto();
|
|
28769
28779
|
}
|
|
28770
28780
|
}
|
|
28771
28781
|
|
|
@@ -28785,8 +28795,8 @@ export class DowntimeReasonCountDto implements IDowntimeReasonCountDto {
|
|
|
28785
28795
|
}
|
|
28786
28796
|
|
|
28787
28797
|
export interface IDowntimeReasonCountDto {
|
|
28788
|
-
count
|
|
28789
|
-
downtimeReason
|
|
28798
|
+
count: number;
|
|
28799
|
+
downtimeReason: DowntimeReasonDto;
|
|
28790
28800
|
}
|
|
28791
28801
|
|
|
28792
28802
|
export class MachineDto implements IMachineDto {
|