@ignos/api-client 20260106.0.13649 → 20260107.0.13673-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.
@@ -869,7 +869,7 @@ export interface IDowntimeReasonsClient {
869
869
  listDowntimeReasonsForMachine(id: number): Promise<DowntimeReasonDto[]>;
870
870
  listDowntimeReasonsHierarchyForMachine(id: number): Promise<ParentTopicDto[]>;
871
871
  listActiveDowntimeReasonsForMachine(id: number): Promise<DowntimePeriodReasonDto[]>;
872
- listTopDowntimeReasons(): Promise<TopDowntimeReasonsDto>;
872
+ listTopDowntimeReasons(start: Date | null | undefined, end: Date | null | undefined): Promise<TopDowntimeReasonsDto>;
873
873
  createReport(request: CreateDowntimeReasonsReportRequest | undefined): Promise<DowntimeReasonsReportDto>;
874
874
  exportReportToCsv(request: CreateDowntimeReasonsReportRequest | undefined): Promise<DowntimeReasonsReportCsvDto>;
875
875
  }
@@ -892,7 +892,7 @@ export declare class DowntimeReasonsClient extends AuthorizedApiBase implements
892
892
  protected processListDowntimeReasonsHierarchyForMachine(response: Response): Promise<ParentTopicDto[]>;
893
893
  listActiveDowntimeReasonsForMachine(id: number): Promise<DowntimePeriodReasonDto[]>;
894
894
  protected processListActiveDowntimeReasonsForMachine(response: Response): Promise<DowntimePeriodReasonDto[]>;
895
- listTopDowntimeReasons(): Promise<TopDowntimeReasonsDto>;
895
+ listTopDowntimeReasons(start: Date | null | undefined, end: Date | null | undefined): Promise<TopDowntimeReasonsDto>;
896
896
  protected processListTopDowntimeReasons(response: Response): Promise<TopDowntimeReasonsDto>;
897
897
  createReport(request: CreateDowntimeReasonsReportRequest | undefined): Promise<DowntimeReasonsReportDto>;
898
898
  protected processCreateReport(response: Response): Promise<DowntimeReasonsReportDto>;
@@ -2468,7 +2468,7 @@ export interface IMeasurementFormsInstancesClient {
2468
2468
  postListMeasurementForms(request: ListMeasurementFormsRequest | undefined): Promise<PagedResultOfMeasurementFormInstanceOverviewDto>;
2469
2469
  getMeasurementFormInstance(id: string, tenantId: string | null | undefined): Promise<MeasurementFormInstanceDto>;
2470
2470
  listMeasurementFormInstanceFeedback(id: string): Promise<MeasurementFormInstanceFeedbackDto[]>;
2471
- completeMeasurementFormInstance(id: string, tenantId: string | null | undefined): Promise<MeasurementFormInstanceDto>;
2471
+ completeMeasurementFormInstance(id: string, tenantId: string | null | undefined): Promise<CompleteMeasurementFormInstanceResult>;
2472
2472
  getMeasurementFormInstanceSchema(id: string, schemaId: string, serialNumber: string | null | undefined, tenantId: string | null | undefined): Promise<MeasurementFormInstanceSchemaDto>;
2473
2473
  getWorkorderMeasurementFormProgress(id: string, tenantId: string | null | undefined): Promise<MeasurementFormInstanceProgressDto>;
2474
2474
  getAuditLog(id: string, tenantId: string | null | undefined, schemaId: string | null | undefined, serialNumber: string | null | undefined, elementId: string | null | undefined): Promise<MeasurementFormElementValueAuditDto[]>;
@@ -2503,8 +2503,8 @@ export declare class MeasurementFormsInstancesClient extends AuthorizedApiBase i
2503
2503
  protected processGetMeasurementFormInstance(response: Response): Promise<MeasurementFormInstanceDto>;
2504
2504
  listMeasurementFormInstanceFeedback(id: string): Promise<MeasurementFormInstanceFeedbackDto[]>;
2505
2505
  protected processListMeasurementFormInstanceFeedback(response: Response): Promise<MeasurementFormInstanceFeedbackDto[]>;
2506
- completeMeasurementFormInstance(id: string, tenantId: string | null | undefined): Promise<MeasurementFormInstanceDto>;
2507
- protected processCompleteMeasurementFormInstance(response: Response): Promise<MeasurementFormInstanceDto>;
2506
+ completeMeasurementFormInstance(id: string, tenantId: string | null | undefined): Promise<CompleteMeasurementFormInstanceResult>;
2507
+ protected processCompleteMeasurementFormInstance(response: Response): Promise<CompleteMeasurementFormInstanceResult>;
2508
2508
  getMeasurementFormInstanceSchema(id: string, schemaId: string, serialNumber: string | null | undefined, tenantId: string | null | undefined): Promise<MeasurementFormInstanceSchemaDto>;
2509
2509
  protected processGetMeasurementFormInstanceSchema(response: Response): Promise<MeasurementFormInstanceSchemaDto>;
2510
2510
  getWorkorderMeasurementFormProgress(id: string, tenantId: string | null | undefined): Promise<MeasurementFormInstanceProgressDto>;
@@ -13790,6 +13790,20 @@ export interface IMeasurementFormInstanceFeedbackDto {
13790
13790
  from: string;
13791
13791
  created: Date;
13792
13792
  }
13793
+ export declare class CompleteMeasurementFormInstanceResult implements ICompleteMeasurementFormInstanceResult {
13794
+ hasWarning?: boolean;
13795
+ warningMessage?: string | null;
13796
+ result?: MeasurementFormInstanceDto | null;
13797
+ constructor(data?: ICompleteMeasurementFormInstanceResult);
13798
+ init(_data?: any): void;
13799
+ static fromJS(data: any): CompleteMeasurementFormInstanceResult;
13800
+ toJSON(data?: any): any;
13801
+ }
13802
+ export interface ICompleteMeasurementFormInstanceResult {
13803
+ hasWarning?: boolean;
13804
+ warningMessage?: string | null;
13805
+ result?: MeasurementFormInstanceDto | null;
13806
+ }
13793
13807
  export declare class MeasurementFormInstanceSchemaDto implements IMeasurementFormInstanceSchemaDto {
13794
13808
  elements: MeasurementFormInstanceElementDto[];
13795
13809
  isCompleted: boolean;
@@ -7248,8 +7248,12 @@ export class DowntimeReasonsClient extends AuthorizedApiBase {
7248
7248
  }
7249
7249
  return Promise.resolve(null);
7250
7250
  }
7251
- listTopDowntimeReasons() {
7252
- let url_ = this.baseUrl + "/downtimereasons/topreasons";
7251
+ listTopDowntimeReasons(start, end) {
7252
+ let url_ = this.baseUrl + "/downtimereasons/topreasons?";
7253
+ if (start !== undefined && start !== null)
7254
+ url_ += "start=" + encodeURIComponent(start ? "" + start.toISOString() : "") + "&";
7255
+ if (end !== undefined && end !== null)
7256
+ url_ += "end=" + encodeURIComponent(end ? "" + end.toISOString() : "") + "&";
7253
7257
  url_ = url_.replace(/[?&]$/, "");
7254
7258
  let options_ = {
7255
7259
  method: "GET",
@@ -21569,7 +21573,7 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
21569
21573
  return response.text().then((_responseText) => {
21570
21574
  let result200 = null;
21571
21575
  let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
21572
- result200 = MeasurementFormInstanceDto.fromJS(resultData200);
21576
+ result200 = CompleteMeasurementFormInstanceResult.fromJS(resultData200);
21573
21577
  return result200;
21574
21578
  });
21575
21579
  }
@@ -46855,6 +46859,36 @@ export class MeasurementFormInstanceFeedbackDto {
46855
46859
  return data;
46856
46860
  }
46857
46861
  }
46862
+ export class CompleteMeasurementFormInstanceResult {
46863
+ constructor(data) {
46864
+ if (data) {
46865
+ for (var property in data) {
46866
+ if (data.hasOwnProperty(property))
46867
+ this[property] = data[property];
46868
+ }
46869
+ }
46870
+ }
46871
+ init(_data) {
46872
+ if (_data) {
46873
+ this.hasWarning = _data["hasWarning"];
46874
+ this.warningMessage = _data["warningMessage"];
46875
+ this.result = _data["result"] ? MeasurementFormInstanceDto.fromJS(_data["result"]) : undefined;
46876
+ }
46877
+ }
46878
+ static fromJS(data) {
46879
+ data = typeof data === 'object' ? data : {};
46880
+ let result = new CompleteMeasurementFormInstanceResult();
46881
+ result.init(data);
46882
+ return result;
46883
+ }
46884
+ toJSON(data) {
46885
+ data = typeof data === 'object' ? data : {};
46886
+ data["hasWarning"] = this.hasWarning;
46887
+ data["warningMessage"] = this.warningMessage;
46888
+ data["result"] = this.result ? this.result.toJSON() : undefined;
46889
+ return data;
46890
+ }
46891
+ }
46858
46892
  export class MeasurementFormInstanceSchemaDto {
46859
46893
  constructor(data) {
46860
46894
  if (data) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ignos/api-client",
3
- "version": "20260106.0.13649",
3
+ "version": "20260107.0.13673-alpha",
4
4
  "description": "IGNOS API Client",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -7477,7 +7477,7 @@ export interface IDowntimeReasonsClient {
7477
7477
 
7478
7478
  listActiveDowntimeReasonsForMachine(id: number): Promise<DowntimePeriodReasonDto[]>;
7479
7479
 
7480
- listTopDowntimeReasons(): Promise<TopDowntimeReasonsDto>;
7480
+ listTopDowntimeReasons(start: Date | null | undefined, end: Date | null | undefined): Promise<TopDowntimeReasonsDto>;
7481
7481
 
7482
7482
  createReport(request: CreateDowntimeReasonsReportRequest | undefined): Promise<DowntimeReasonsReportDto>;
7483
7483
 
@@ -7742,8 +7742,12 @@ export class DowntimeReasonsClient extends AuthorizedApiBase implements IDowntim
7742
7742
  return Promise.resolve<DowntimePeriodReasonDto[]>(null as any);
7743
7743
  }
7744
7744
 
7745
- listTopDowntimeReasons(): Promise<TopDowntimeReasonsDto> {
7746
- let url_ = this.baseUrl + "/downtimereasons/topreasons";
7745
+ listTopDowntimeReasons(start: Date | null | undefined, end: Date | null | undefined): Promise<TopDowntimeReasonsDto> {
7746
+ let url_ = this.baseUrl + "/downtimereasons/topreasons?";
7747
+ if (start !== undefined && start !== null)
7748
+ url_ += "start=" + encodeURIComponent(start ? "" + start.toISOString() : "") + "&";
7749
+ if (end !== undefined && end !== null)
7750
+ url_ += "end=" + encodeURIComponent(end ? "" + end.toISOString() : "") + "&";
7747
7751
  url_ = url_.replace(/[?&]$/, "");
7748
7752
 
7749
7753
  let options_: RequestInit = {
@@ -22744,7 +22748,7 @@ export interface IMeasurementFormsInstancesClient {
22744
22748
 
22745
22749
  listMeasurementFormInstanceFeedback(id: string): Promise<MeasurementFormInstanceFeedbackDto[]>;
22746
22750
 
22747
- completeMeasurementFormInstance(id: string, tenantId: string | null | undefined): Promise<MeasurementFormInstanceDto>;
22751
+ completeMeasurementFormInstance(id: string, tenantId: string | null | undefined): Promise<CompleteMeasurementFormInstanceResult>;
22748
22752
 
22749
22753
  getMeasurementFormInstanceSchema(id: string, schemaId: string, serialNumber: string | null | undefined, tenantId: string | null | undefined): Promise<MeasurementFormInstanceSchemaDto>;
22750
22754
 
@@ -22965,7 +22969,7 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase implement
22965
22969
  return Promise.resolve<MeasurementFormInstanceFeedbackDto[]>(null as any);
22966
22970
  }
22967
22971
 
22968
- completeMeasurementFormInstance(id: string, tenantId: string | null | undefined): Promise<MeasurementFormInstanceDto> {
22972
+ completeMeasurementFormInstance(id: string, tenantId: string | null | undefined): Promise<CompleteMeasurementFormInstanceResult> {
22969
22973
  let url_ = this.baseUrl + "/measurementforms/instances/{id}/complete?";
22970
22974
  if (id === undefined || id === null)
22971
22975
  throw new globalThis.Error("The parameter 'id' must be defined.");
@@ -22988,14 +22992,14 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase implement
22988
22992
  });
22989
22993
  }
22990
22994
 
22991
- protected processCompleteMeasurementFormInstance(response: Response): Promise<MeasurementFormInstanceDto> {
22995
+ protected processCompleteMeasurementFormInstance(response: Response): Promise<CompleteMeasurementFormInstanceResult> {
22992
22996
  const status = response.status;
22993
22997
  let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
22994
22998
  if (status === 200) {
22995
22999
  return response.text().then((_responseText) => {
22996
23000
  let result200: any = null;
22997
23001
  let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
22998
- result200 = MeasurementFormInstanceDto.fromJS(resultData200);
23002
+ result200 = CompleteMeasurementFormInstanceResult.fromJS(resultData200);
22999
23003
  return result200;
23000
23004
  });
23001
23005
  } else if (status !== 200 && status !== 204) {
@@ -23003,7 +23007,7 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase implement
23003
23007
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
23004
23008
  });
23005
23009
  }
23006
- return Promise.resolve<MeasurementFormInstanceDto>(null as any);
23010
+ return Promise.resolve<CompleteMeasurementFormInstanceResult>(null as any);
23007
23011
  }
23008
23012
 
23009
23013
  getMeasurementFormInstanceSchema(id: string, schemaId: string, serialNumber: string | null | undefined, tenantId: string | null | undefined): Promise<MeasurementFormInstanceSchemaDto> {
@@ -59401,6 +59405,50 @@ export interface IMeasurementFormInstanceFeedbackDto {
59401
59405
  created: Date;
59402
59406
  }
59403
59407
 
59408
+ export class CompleteMeasurementFormInstanceResult implements ICompleteMeasurementFormInstanceResult {
59409
+ hasWarning?: boolean;
59410
+ warningMessage?: string | null;
59411
+ result?: MeasurementFormInstanceDto | null;
59412
+
59413
+ constructor(data?: ICompleteMeasurementFormInstanceResult) {
59414
+ if (data) {
59415
+ for (var property in data) {
59416
+ if (data.hasOwnProperty(property))
59417
+ (this as any)[property] = (data as any)[property];
59418
+ }
59419
+ }
59420
+ }
59421
+
59422
+ init(_data?: any) {
59423
+ if (_data) {
59424
+ this.hasWarning = _data["hasWarning"];
59425
+ this.warningMessage = _data["warningMessage"];
59426
+ this.result = _data["result"] ? MeasurementFormInstanceDto.fromJS(_data["result"]) : undefined as any;
59427
+ }
59428
+ }
59429
+
59430
+ static fromJS(data: any): CompleteMeasurementFormInstanceResult {
59431
+ data = typeof data === 'object' ? data : {};
59432
+ let result = new CompleteMeasurementFormInstanceResult();
59433
+ result.init(data);
59434
+ return result;
59435
+ }
59436
+
59437
+ toJSON(data?: any) {
59438
+ data = typeof data === 'object' ? data : {};
59439
+ data["hasWarning"] = this.hasWarning;
59440
+ data["warningMessage"] = this.warningMessage;
59441
+ data["result"] = this.result ? this.result.toJSON() : undefined as any;
59442
+ return data;
59443
+ }
59444
+ }
59445
+
59446
+ export interface ICompleteMeasurementFormInstanceResult {
59447
+ hasWarning?: boolean;
59448
+ warningMessage?: string | null;
59449
+ result?: MeasurementFormInstanceDto | null;
59450
+ }
59451
+
59404
59452
  export class MeasurementFormInstanceSchemaDto implements IMeasurementFormInstanceSchemaDto {
59405
59453
  elements!: MeasurementFormInstanceElementDto[];
59406
59454
  isCompleted!: boolean;