@ignos/api-client 20250213.0.11144 → 20250214.0.11147

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.
@@ -807,8 +807,8 @@ export declare class KpiAdminClient extends AuthorizedApiBase implements IKpiAdm
807
807
  protected processUpdateCalenderCapacityAdmin(response: Response): Promise<CalenderCapacityDto>;
808
808
  }
809
809
  export interface IKpiClient {
810
- getMachineKpi(machineExternalId: string | undefined, startDate: Date | undefined, endDate: Date | undefined): Promise<MachineKpiDto[]>;
811
- getMachineDailyUptime(machineExternalId: string | undefined, date: Date | undefined): Promise<MachineDailyUptimeDto>;
810
+ getMachineKpi(machineExternalId: string | undefined, startDate: Date | undefined, endDate: Date | undefined, utcOffset: number | undefined): Promise<MachineKpiDto[]>;
811
+ getMachineDailyUptime(machineExternalId: string | undefined, date: Date | undefined, utcOffset: number | undefined): Promise<MachineDailyUptimeDto>;
812
812
  }
813
813
  export declare class KpiClient extends AuthorizedApiBase implements IKpiClient {
814
814
  private http;
@@ -817,9 +817,9 @@ export declare class KpiClient extends AuthorizedApiBase implements IKpiClient {
817
817
  constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: {
818
818
  fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
819
819
  });
820
- getMachineKpi(machineExternalId: string | undefined, startDate: Date | undefined, endDate: Date | undefined): Promise<MachineKpiDto[]>;
820
+ getMachineKpi(machineExternalId: string | undefined, startDate: Date | undefined, endDate: Date | undefined, utcOffset: number | undefined): Promise<MachineKpiDto[]>;
821
821
  protected processGetMachineKpi(response: Response): Promise<MachineKpiDto[]>;
822
- getMachineDailyUptime(machineExternalId: string | undefined, date: Date | undefined): Promise<MachineDailyUptimeDto>;
822
+ getMachineDailyUptime(machineExternalId: string | undefined, date: Date | undefined, utcOffset: number | undefined): Promise<MachineDailyUptimeDto>;
823
823
  protected processGetMachineDailyUptime(response: Response): Promise<MachineDailyUptimeDto>;
824
824
  }
825
825
  export interface IMachinesClient {
@@ -6117,7 +6117,7 @@ export class KpiClient extends AuthorizedApiBase {
6117
6117
  this.http = http ? http : window;
6118
6118
  this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
6119
6119
  }
6120
- getMachineKpi(machineExternalId, startDate, endDate) {
6120
+ getMachineKpi(machineExternalId, startDate, endDate, utcOffset) {
6121
6121
  let url_ = this.baseUrl + "/kpi/capacity?";
6122
6122
  if (machineExternalId === null)
6123
6123
  throw new Error("The parameter 'machineExternalId' cannot be null.");
@@ -6131,6 +6131,10 @@ export class KpiClient extends AuthorizedApiBase {
6131
6131
  throw new Error("The parameter 'endDate' cannot be null.");
6132
6132
  else if (endDate !== undefined)
6133
6133
  url_ += "endDate=" + encodeURIComponent(endDate ? "" + endDate.toISOString() : "") + "&";
6134
+ if (utcOffset === null)
6135
+ throw new Error("The parameter 'utcOffset' cannot be null.");
6136
+ else if (utcOffset !== undefined)
6137
+ url_ += "utcOffset=" + encodeURIComponent("" + utcOffset) + "&";
6134
6138
  url_ = url_.replace(/[?&]$/, "");
6135
6139
  let options_ = {
6136
6140
  method: "GET",
@@ -6170,7 +6174,7 @@ export class KpiClient extends AuthorizedApiBase {
6170
6174
  }
6171
6175
  return Promise.resolve(null);
6172
6176
  }
6173
- getMachineDailyUptime(machineExternalId, date) {
6177
+ getMachineDailyUptime(machineExternalId, date, utcOffset) {
6174
6178
  let url_ = this.baseUrl + "/kpi/daily-uptime?";
6175
6179
  if (machineExternalId === null)
6176
6180
  throw new Error("The parameter 'machineExternalId' cannot be null.");
@@ -6180,6 +6184,10 @@ export class KpiClient extends AuthorizedApiBase {
6180
6184
  throw new Error("The parameter 'date' cannot be null.");
6181
6185
  else if (date !== undefined)
6182
6186
  url_ += "date=" + encodeURIComponent(date ? "" + date.toISOString() : "") + "&";
6187
+ if (utcOffset === null)
6188
+ throw new Error("The parameter 'utcOffset' cannot be null.");
6189
+ else if (utcOffset !== undefined)
6190
+ url_ += "utcOffset=" + encodeURIComponent("" + utcOffset) + "&";
6183
6191
  url_ = url_.replace(/[?&]$/, "");
6184
6192
  let options_ = {
6185
6193
  method: "GET",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ignos/api-client",
3
- "version": "20250213.0.11144",
3
+ "version": "20250214.0.11147",
4
4
  "description": "IGNOS API Client",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -6560,9 +6560,9 @@ export class KpiAdminClient extends AuthorizedApiBase implements IKpiAdminClient
6560
6560
 
6561
6561
  export interface IKpiClient {
6562
6562
 
6563
- getMachineKpi(machineExternalId: string | undefined, startDate: Date | undefined, endDate: Date | undefined): Promise<MachineKpiDto[]>;
6563
+ getMachineKpi(machineExternalId: string | undefined, startDate: Date | undefined, endDate: Date | undefined, utcOffset: number | undefined): Promise<MachineKpiDto[]>;
6564
6564
 
6565
- getMachineDailyUptime(machineExternalId: string | undefined, date: Date | undefined): Promise<MachineDailyUptimeDto>;
6565
+ getMachineDailyUptime(machineExternalId: string | undefined, date: Date | undefined, utcOffset: number | undefined): Promise<MachineDailyUptimeDto>;
6566
6566
  }
6567
6567
 
6568
6568
  export class KpiClient extends AuthorizedApiBase implements IKpiClient {
@@ -6576,7 +6576,7 @@ export class KpiClient extends AuthorizedApiBase implements IKpiClient {
6576
6576
  this.baseUrl = baseUrl ?? "";
6577
6577
  }
6578
6578
 
6579
- getMachineKpi(machineExternalId: string | undefined, startDate: Date | undefined, endDate: Date | undefined): Promise<MachineKpiDto[]> {
6579
+ getMachineKpi(machineExternalId: string | undefined, startDate: Date | undefined, endDate: Date | undefined, utcOffset: number | undefined): Promise<MachineKpiDto[]> {
6580
6580
  let url_ = this.baseUrl + "/kpi/capacity?";
6581
6581
  if (machineExternalId === null)
6582
6582
  throw new Error("The parameter 'machineExternalId' cannot be null.");
@@ -6590,6 +6590,10 @@ export class KpiClient extends AuthorizedApiBase implements IKpiClient {
6590
6590
  throw new Error("The parameter 'endDate' cannot be null.");
6591
6591
  else if (endDate !== undefined)
6592
6592
  url_ += "endDate=" + encodeURIComponent(endDate ? "" + endDate.toISOString() : "") + "&";
6593
+ if (utcOffset === null)
6594
+ throw new Error("The parameter 'utcOffset' cannot be null.");
6595
+ else if (utcOffset !== undefined)
6596
+ url_ += "utcOffset=" + encodeURIComponent("" + utcOffset) + "&";
6593
6597
  url_ = url_.replace(/[?&]$/, "");
6594
6598
 
6595
6599
  let options_: RequestInit = {
@@ -6628,7 +6632,7 @@ export class KpiClient extends AuthorizedApiBase implements IKpiClient {
6628
6632
  return Promise.resolve<MachineKpiDto[]>(null as any);
6629
6633
  }
6630
6634
 
6631
- getMachineDailyUptime(machineExternalId: string | undefined, date: Date | undefined): Promise<MachineDailyUptimeDto> {
6635
+ getMachineDailyUptime(machineExternalId: string | undefined, date: Date | undefined, utcOffset: number | undefined): Promise<MachineDailyUptimeDto> {
6632
6636
  let url_ = this.baseUrl + "/kpi/daily-uptime?";
6633
6637
  if (machineExternalId === null)
6634
6638
  throw new Error("The parameter 'machineExternalId' cannot be null.");
@@ -6638,6 +6642,10 @@ export class KpiClient extends AuthorizedApiBase implements IKpiClient {
6638
6642
  throw new Error("The parameter 'date' cannot be null.");
6639
6643
  else if (date !== undefined)
6640
6644
  url_ += "date=" + encodeURIComponent(date ? "" + date.toISOString() : "") + "&";
6645
+ if (utcOffset === null)
6646
+ throw new Error("The parameter 'utcOffset' cannot be null.");
6647
+ else if (utcOffset !== undefined)
6648
+ url_ += "utcOffset=" + encodeURIComponent("" + utcOffset) + "&";
6641
6649
  url_ = url_.replace(/[?&]$/, "");
6642
6650
 
6643
6651
  let options_: RequestInit = {