@ignos/api-client 20241126.0.10771 → 20241202.0.10790
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 +6 -8
- package/lib/ignosportal-api.js +2 -8
- package/package.json +1 -1
- package/src/ignosportal-api.ts +8 -16
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -349,10 +349,10 @@ export declare class SustainabilityClient extends AuthorizedApiBase implements I
|
|
|
349
349
|
protected processCreateCustomerOrderLineGhgReport(response: Response): Promise<DownloadDto>;
|
|
350
350
|
}
|
|
351
351
|
export interface IMachineAlarmsClient {
|
|
352
|
-
listMachineAlarms(alarmType: MachineAlarmType | 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>;
|
|
352
|
+
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>;
|
|
353
353
|
listAlarmsPerMachine(startTime: Date | undefined, endTime: Date | null | undefined): Promise<MachineAlarmSummaryDto[]>;
|
|
354
354
|
listAlarmSeverityOccurrences(startTime: Date | undefined, endTime: Date | null | undefined): Promise<MachineAlarmSeverityOccurenceDto[]>;
|
|
355
|
-
countMachineAlarms(alarmType: MachineAlarmType | 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>;
|
|
355
|
+
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>;
|
|
356
356
|
getMachineAlarmDetails(id: number): Promise<MachineAlarmDetailsDto>;
|
|
357
357
|
}
|
|
358
358
|
export declare class MachineAlarmsClient extends AuthorizedApiBase implements IMachineAlarmsClient {
|
|
@@ -362,13 +362,13 @@ export declare class MachineAlarmsClient extends AuthorizedApiBase implements IM
|
|
|
362
362
|
constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: {
|
|
363
363
|
fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
|
|
364
364
|
});
|
|
365
|
-
listMachineAlarms(alarmType: MachineAlarmType | 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>;
|
|
365
|
+
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>;
|
|
366
366
|
protected processListMachineAlarms(response: Response): Promise<PagedResultOfMachineAlarmDto>;
|
|
367
367
|
listAlarmsPerMachine(startTime: Date | undefined, endTime: Date | null | undefined): Promise<MachineAlarmSummaryDto[]>;
|
|
368
368
|
protected processListAlarmsPerMachine(response: Response): Promise<MachineAlarmSummaryDto[]>;
|
|
369
369
|
listAlarmSeverityOccurrences(startTime: Date | undefined, endTime: Date | null | undefined): Promise<MachineAlarmSeverityOccurenceDto[]>;
|
|
370
370
|
protected processListAlarmSeverityOccurrences(response: Response): Promise<MachineAlarmSeverityOccurenceDto[]>;
|
|
371
|
-
countMachineAlarms(alarmType: MachineAlarmType | 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>;
|
|
371
|
+
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>;
|
|
372
372
|
protected processCountMachineAlarms(response: Response): Promise<MachineAlarmCountDto>;
|
|
373
373
|
getMachineAlarmDetails(id: number): Promise<MachineAlarmDetailsDto>;
|
|
374
374
|
protected processGetMachineAlarmDetails(response: Response): Promise<MachineAlarmDetailsDto>;
|
|
@@ -9664,7 +9664,6 @@ export interface IStoppedWorkDto {
|
|
|
9664
9664
|
}
|
|
9665
9665
|
export declare class StartOperations implements IStartOperations {
|
|
9666
9666
|
operations: StartOperationDto[];
|
|
9667
|
-
workType?: WorkTypeDto | null;
|
|
9668
9667
|
constructor(data?: IStartOperations);
|
|
9669
9668
|
init(_data?: any): void;
|
|
9670
9669
|
static fromJS(data: any): StartOperations;
|
|
@@ -9672,14 +9671,13 @@ export declare class StartOperations implements IStartOperations {
|
|
|
9672
9671
|
}
|
|
9673
9672
|
export interface IStartOperations {
|
|
9674
9673
|
operations: StartOperationDto[];
|
|
9675
|
-
workType?: WorkTypeDto | null;
|
|
9676
9674
|
}
|
|
9677
9675
|
export declare class StartOperationDto implements IStartOperationDto {
|
|
9678
9676
|
workOrder: string;
|
|
9679
9677
|
operationNumber: number;
|
|
9680
9678
|
startedQuantity?: number | null;
|
|
9681
9679
|
resource: string;
|
|
9682
|
-
workType
|
|
9680
|
+
workType: WorkTypeDto;
|
|
9683
9681
|
constructor(data?: IStartOperationDto);
|
|
9684
9682
|
init(_data?: any): void;
|
|
9685
9683
|
static fromJS(data: any): StartOperationDto;
|
|
@@ -9690,7 +9688,7 @@ export interface IStartOperationDto {
|
|
|
9690
9688
|
operationNumber: number;
|
|
9691
9689
|
startedQuantity?: number | null;
|
|
9692
9690
|
resource: string;
|
|
9693
|
-
workType
|
|
9691
|
+
workType: WorkTypeDto;
|
|
9694
9692
|
}
|
|
9695
9693
|
export declare class ReportOperationProgress implements IReportOperationProgress {
|
|
9696
9694
|
operations: ReportOperationProgressDto[];
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -1816,9 +1816,7 @@ export class MachineAlarmsClient extends AuthorizedApiBase {
|
|
|
1816
1816
|
}
|
|
1817
1817
|
listMachineAlarms(alarmType, assetId, startTime, endTime, subType, nativeCode, nativeSeverity, name, sequence, limit, continuationToken, orderBy, sortDirection) {
|
|
1818
1818
|
let url_ = this.baseUrl + "/machinealarms?";
|
|
1819
|
-
if (alarmType
|
|
1820
|
-
throw new Error("The parameter 'alarmType' cannot be null.");
|
|
1821
|
-
else if (alarmType !== undefined)
|
|
1819
|
+
if (alarmType !== undefined && alarmType !== null)
|
|
1822
1820
|
url_ += "alarmType=" + encodeURIComponent("" + alarmType) + "&";
|
|
1823
1821
|
if (assetId === null)
|
|
1824
1822
|
throw new Error("The parameter 'assetId' cannot be null.");
|
|
@@ -1981,9 +1979,7 @@ export class MachineAlarmsClient extends AuthorizedApiBase {
|
|
|
1981
1979
|
}
|
|
1982
1980
|
countMachineAlarms(alarmType, assetId, startTime, endTime, subType, nativeCode, nativeSeverity, name, sequence) {
|
|
1983
1981
|
let url_ = this.baseUrl + "/machinealarms/alarmcount?";
|
|
1984
|
-
if (alarmType
|
|
1985
|
-
throw new Error("The parameter 'alarmType' cannot be null.");
|
|
1986
|
-
else if (alarmType !== undefined)
|
|
1982
|
+
if (alarmType !== undefined && alarmType !== null)
|
|
1987
1983
|
url_ += "alarmType=" + encodeURIComponent("" + alarmType) + "&";
|
|
1988
1984
|
if (assetId === null)
|
|
1989
1985
|
throw new Error("The parameter 'assetId' cannot be null.");
|
|
@@ -34726,7 +34722,6 @@ export class StartOperations {
|
|
|
34726
34722
|
for (let item of _data["operations"])
|
|
34727
34723
|
this.operations.push(StartOperationDto.fromJS(item));
|
|
34728
34724
|
}
|
|
34729
|
-
this.workType = _data["workType"];
|
|
34730
34725
|
}
|
|
34731
34726
|
}
|
|
34732
34727
|
static fromJS(data) {
|
|
@@ -34742,7 +34737,6 @@ export class StartOperations {
|
|
|
34742
34737
|
for (let item of this.operations)
|
|
34743
34738
|
data["operations"].push(item.toJSON());
|
|
34744
34739
|
}
|
|
34745
|
-
data["workType"] = this.workType;
|
|
34746
34740
|
return data;
|
|
34747
34741
|
}
|
|
34748
34742
|
}
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -2010,13 +2010,13 @@ export class SustainabilityClient extends AuthorizedApiBase implements ISustaina
|
|
|
2010
2010
|
|
|
2011
2011
|
export interface IMachineAlarmsClient {
|
|
2012
2012
|
|
|
2013
|
-
listMachineAlarms(alarmType: MachineAlarmType | 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>;
|
|
2013
|
+
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>;
|
|
2014
2014
|
|
|
2015
2015
|
listAlarmsPerMachine(startTime: Date | undefined, endTime: Date | null | undefined): Promise<MachineAlarmSummaryDto[]>;
|
|
2016
2016
|
|
|
2017
2017
|
listAlarmSeverityOccurrences(startTime: Date | undefined, endTime: Date | null | undefined): Promise<MachineAlarmSeverityOccurenceDto[]>;
|
|
2018
2018
|
|
|
2019
|
-
countMachineAlarms(alarmType: MachineAlarmType | 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>;
|
|
2019
|
+
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>;
|
|
2020
2020
|
|
|
2021
2021
|
getMachineAlarmDetails(id: number): Promise<MachineAlarmDetailsDto>;
|
|
2022
2022
|
}
|
|
@@ -2032,11 +2032,9 @@ export class MachineAlarmsClient extends AuthorizedApiBase implements IMachineAl
|
|
|
2032
2032
|
this.baseUrl = baseUrl ?? "";
|
|
2033
2033
|
}
|
|
2034
2034
|
|
|
2035
|
-
listMachineAlarms(alarmType: MachineAlarmType | 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> {
|
|
2035
|
+
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> {
|
|
2036
2036
|
let url_ = this.baseUrl + "/machinealarms?";
|
|
2037
|
-
if (alarmType
|
|
2038
|
-
throw new Error("The parameter 'alarmType' cannot be null.");
|
|
2039
|
-
else if (alarmType !== undefined)
|
|
2037
|
+
if (alarmType !== undefined && alarmType !== null)
|
|
2040
2038
|
url_ += "alarmType=" + encodeURIComponent("" + alarmType) + "&";
|
|
2041
2039
|
if (assetId === null)
|
|
2042
2040
|
throw new Error("The parameter 'assetId' cannot be null.");
|
|
@@ -2194,11 +2192,9 @@ export class MachineAlarmsClient extends AuthorizedApiBase implements IMachineAl
|
|
|
2194
2192
|
return Promise.resolve<MachineAlarmSeverityOccurenceDto[]>(null as any);
|
|
2195
2193
|
}
|
|
2196
2194
|
|
|
2197
|
-
countMachineAlarms(alarmType: MachineAlarmType | 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> {
|
|
2195
|
+
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> {
|
|
2198
2196
|
let url_ = this.baseUrl + "/machinealarms/alarmcount?";
|
|
2199
|
-
if (alarmType
|
|
2200
|
-
throw new Error("The parameter 'alarmType' cannot be null.");
|
|
2201
|
-
else if (alarmType !== undefined)
|
|
2197
|
+
if (alarmType !== undefined && alarmType !== null)
|
|
2202
2198
|
url_ += "alarmType=" + encodeURIComponent("" + alarmType) + "&";
|
|
2203
2199
|
if (assetId === null)
|
|
2204
2200
|
throw new Error("The parameter 'assetId' cannot be null.");
|
|
@@ -43336,7 +43332,6 @@ export interface IStoppedWorkDto {
|
|
|
43336
43332
|
|
|
43337
43333
|
export class StartOperations implements IStartOperations {
|
|
43338
43334
|
operations!: StartOperationDto[];
|
|
43339
|
-
workType?: WorkTypeDto | null;
|
|
43340
43335
|
|
|
43341
43336
|
constructor(data?: IStartOperations) {
|
|
43342
43337
|
if (data) {
|
|
@@ -43357,7 +43352,6 @@ export class StartOperations implements IStartOperations {
|
|
|
43357
43352
|
for (let item of _data["operations"])
|
|
43358
43353
|
this.operations!.push(StartOperationDto.fromJS(item));
|
|
43359
43354
|
}
|
|
43360
|
-
this.workType = _data["workType"];
|
|
43361
43355
|
}
|
|
43362
43356
|
}
|
|
43363
43357
|
|
|
@@ -43375,14 +43369,12 @@ export class StartOperations implements IStartOperations {
|
|
|
43375
43369
|
for (let item of this.operations)
|
|
43376
43370
|
data["operations"].push(item.toJSON());
|
|
43377
43371
|
}
|
|
43378
|
-
data["workType"] = this.workType;
|
|
43379
43372
|
return data;
|
|
43380
43373
|
}
|
|
43381
43374
|
}
|
|
43382
43375
|
|
|
43383
43376
|
export interface IStartOperations {
|
|
43384
43377
|
operations: StartOperationDto[];
|
|
43385
|
-
workType?: WorkTypeDto | null;
|
|
43386
43378
|
}
|
|
43387
43379
|
|
|
43388
43380
|
export class StartOperationDto implements IStartOperationDto {
|
|
@@ -43390,7 +43382,7 @@ export class StartOperationDto implements IStartOperationDto {
|
|
|
43390
43382
|
operationNumber!: number;
|
|
43391
43383
|
startedQuantity?: number | null;
|
|
43392
43384
|
resource!: string;
|
|
43393
|
-
workType
|
|
43385
|
+
workType!: WorkTypeDto;
|
|
43394
43386
|
|
|
43395
43387
|
constructor(data?: IStartOperationDto) {
|
|
43396
43388
|
if (data) {
|
|
@@ -43434,7 +43426,7 @@ export interface IStartOperationDto {
|
|
|
43434
43426
|
operationNumber: number;
|
|
43435
43427
|
startedQuantity?: number | null;
|
|
43436
43428
|
resource: string;
|
|
43437
|
-
workType
|
|
43429
|
+
workType: WorkTypeDto;
|
|
43438
43430
|
}
|
|
43439
43431
|
|
|
43440
43432
|
export class ReportOperationProgress implements IReportOperationProgress {
|