@ignos/api-client 20240703.0.9731 → 20240704.0.9748

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.
@@ -639,7 +639,7 @@ export declare class MeasuringToolsClient extends AuthorizedApiBase implements I
639
639
  protected processGetMeasuringToolSettings(response: Response): Promise<MeasuringToolSettingsDto>;
640
640
  }
641
641
  export interface IMachinesClient {
642
- listMachines(): Promise<MachineDto[]>;
642
+ listMachines(onlyConnectedMachines: boolean | undefined): Promise<MachineDto[]>;
643
643
  listMachineGroups(): Promise<MachineGroupDto[]>;
644
644
  createMachineGroup(request: CreateMachineGroup): Promise<CreateMachineGroupResponse>;
645
645
  updateMachineGroup(id: string, request: UpdateMachineGroup): Promise<void>;
@@ -662,7 +662,7 @@ export declare class MachinesClient extends AuthorizedApiBase implements IMachin
662
662
  constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: {
663
663
  fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
664
664
  });
665
- listMachines(): Promise<MachineDto[]>;
665
+ listMachines(onlyConnectedMachines: boolean | undefined): Promise<MachineDto[]>;
666
666
  protected processListMachines(response: Response): Promise<MachineDto[]>;
667
667
  listMachineGroups(): Promise<MachineGroupDto[]>;
668
668
  protected processListMachineGroups(response: Response): Promise<MachineGroupDto[]>;
@@ -4838,8 +4838,12 @@ export class MachinesClient extends AuthorizedApiBase {
4838
4838
  this.http = http ? http : window;
4839
4839
  this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
4840
4840
  }
4841
- listMachines() {
4842
- let url_ = this.baseUrl + "/machines";
4841
+ listMachines(onlyConnectedMachines) {
4842
+ let url_ = this.baseUrl + "/machines?";
4843
+ if (onlyConnectedMachines === null)
4844
+ throw new Error("The parameter 'onlyConnectedMachines' cannot be null.");
4845
+ else if (onlyConnectedMachines !== undefined)
4846
+ url_ += "onlyConnectedMachines=" + encodeURIComponent("" + onlyConnectedMachines) + "&";
4843
4847
  url_ = url_.replace(/[?&]$/, "");
4844
4848
  let options_ = {
4845
4849
  method: "GET",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ignos/api-client",
3
- "version": "20240703.0.9731",
3
+ "version": "20240704.0.9748",
4
4
  "description": "IGNOS API Client",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -5183,7 +5183,7 @@ export class MeasuringToolsClient extends AuthorizedApiBase implements IMeasurin
5183
5183
 
5184
5184
  export interface IMachinesClient {
5185
5185
 
5186
- listMachines(): Promise<MachineDto[]>;
5186
+ listMachines(onlyConnectedMachines: boolean | undefined): Promise<MachineDto[]>;
5187
5187
 
5188
5188
  listMachineGroups(): Promise<MachineGroupDto[]>;
5189
5189
 
@@ -5225,8 +5225,12 @@ export class MachinesClient extends AuthorizedApiBase implements IMachinesClient
5225
5225
  this.baseUrl = baseUrl ?? "";
5226
5226
  }
5227
5227
 
5228
- listMachines(): Promise<MachineDto[]> {
5229
- let url_ = this.baseUrl + "/machines";
5228
+ listMachines(onlyConnectedMachines: boolean | undefined): Promise<MachineDto[]> {
5229
+ let url_ = this.baseUrl + "/machines?";
5230
+ if (onlyConnectedMachines === null)
5231
+ throw new Error("The parameter 'onlyConnectedMachines' cannot be null.");
5232
+ else if (onlyConnectedMachines !== undefined)
5233
+ url_ += "onlyConnectedMachines=" + encodeURIComponent("" + onlyConnectedMachines) + "&";
5230
5234
  url_ = url_.replace(/[?&]$/, "");
5231
5235
 
5232
5236
  let options_: RequestInit = {