@ignos/api-client 20240315.0.8964 → 20240315.0.8969

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.
@@ -644,7 +644,7 @@ export interface IMachinesClient {
644
644
  listMachineErpData(): Promise<MachineErpDataListDto>;
645
645
  getMachineErpData(id: number): Promise<MachineErpDataDto>;
646
646
  getMachineUtilizationSummary(): Promise<UtilizationSummaryDto>;
647
- listCurrentMachineOperators(machineExternalId: string | undefined, operatorNameQuery: string | undefined): Promise<OperatorAndMachineDto[]>;
647
+ listCurrentMachineOperators(machineExternalId: string | null | undefined, operatorNameQuery: string | null | undefined): Promise<OperatorAndMachineDto[]>;
648
648
  }
649
649
  export declare class MachinesClient extends AuthorizedApiBase implements IMachinesClient {
650
650
  private http;
@@ -675,7 +675,7 @@ export declare class MachinesClient extends AuthorizedApiBase implements IMachin
675
675
  protected processGetMachineErpData(response: Response): Promise<MachineErpDataDto>;
676
676
  getMachineUtilizationSummary(): Promise<UtilizationSummaryDto>;
677
677
  protected processGetMachineUtilizationSummary(response: Response): Promise<UtilizationSummaryDto>;
678
- listCurrentMachineOperators(machineExternalId: string | undefined, operatorNameQuery: string | undefined): Promise<OperatorAndMachineDto[]>;
678
+ listCurrentMachineOperators(machineExternalId: string | null | undefined, operatorNameQuery: string | null | undefined): Promise<OperatorAndMachineDto[]>;
679
679
  protected processListCurrentMachineOperators(response: Response): Promise<OperatorAndMachineDto[]>;
680
680
  }
681
681
  export interface ILinksClient {
@@ -5207,13 +5207,9 @@ export class MachinesClient extends AuthorizedApiBase {
5207
5207
  }
5208
5208
  listCurrentMachineOperators(machineExternalId, operatorNameQuery) {
5209
5209
  let url_ = this.baseUrl + "/machines/operators?";
5210
- if (machineExternalId === null)
5211
- throw new Error("The parameter 'machineExternalId' cannot be null.");
5212
- else if (machineExternalId !== undefined)
5210
+ if (machineExternalId !== undefined && machineExternalId !== null)
5213
5211
  url_ += "machineExternalId=" + encodeURIComponent("" + machineExternalId) + "&";
5214
- if (operatorNameQuery === null)
5215
- throw new Error("The parameter 'operatorNameQuery' cannot be null.");
5216
- else if (operatorNameQuery !== undefined)
5212
+ if (operatorNameQuery !== undefined && operatorNameQuery !== null)
5217
5213
  url_ += "operatorNameQuery=" + encodeURIComponent("" + operatorNameQuery) + "&";
5218
5214
  url_ = url_.replace(/[?&]$/, "");
5219
5215
  let options_ = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ignos/api-client",
3
- "version": "20240315.0.8964",
3
+ "version": "20240315.0.8969",
4
4
  "description": "IGNOS API Client",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -5127,7 +5127,7 @@ export interface IMachinesClient {
5127
5127
 
5128
5128
  getMachineUtilizationSummary(): Promise<UtilizationSummaryDto>;
5129
5129
 
5130
- listCurrentMachineOperators(machineExternalId: string | undefined, operatorNameQuery: string | undefined): Promise<OperatorAndMachineDto[]>;
5130
+ listCurrentMachineOperators(machineExternalId: string | null | undefined, operatorNameQuery: string | null | undefined): Promise<OperatorAndMachineDto[]>;
5131
5131
  }
5132
5132
 
5133
5133
  export class MachinesClient extends AuthorizedApiBase implements IMachinesClient {
@@ -5574,15 +5574,11 @@ export class MachinesClient extends AuthorizedApiBase implements IMachinesClient
5574
5574
  return Promise.resolve<UtilizationSummaryDto>(null as any);
5575
5575
  }
5576
5576
 
5577
- listCurrentMachineOperators(machineExternalId: string | undefined, operatorNameQuery: string | undefined): Promise<OperatorAndMachineDto[]> {
5577
+ listCurrentMachineOperators(machineExternalId: string | null | undefined, operatorNameQuery: string | null | undefined): Promise<OperatorAndMachineDto[]> {
5578
5578
  let url_ = this.baseUrl + "/machines/operators?";
5579
- if (machineExternalId === null)
5580
- throw new Error("The parameter 'machineExternalId' cannot be null.");
5581
- else if (machineExternalId !== undefined)
5579
+ if (machineExternalId !== undefined && machineExternalId !== null)
5582
5580
  url_ += "machineExternalId=" + encodeURIComponent("" + machineExternalId) + "&";
5583
- if (operatorNameQuery === null)
5584
- throw new Error("The parameter 'operatorNameQuery' cannot be null.");
5585
- else if (operatorNameQuery !== undefined)
5581
+ if (operatorNameQuery !== undefined && operatorNameQuery !== null)
5586
5582
  url_ += "operatorNameQuery=" + encodeURIComponent("" + operatorNameQuery) + "&";
5587
5583
  url_ = url_.replace(/[?&]$/, "");
5588
5584