@ignos/api-client 20260106.0.13649 → 20260106.0.13658

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>;
@@ -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",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ignos/api-client",
3
- "version": "20260106.0.13649",
3
+ "version": "20260106.0.13658",
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 = {