@ignos/api-client 20261109.354.1 → 20261109.355.1-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.
@@ -1354,8 +1354,9 @@ export class MachineUtilizationClient extends AuthorizedApiBase {
1354
1354
  * @param favorites (optional)
1355
1355
  * @param startTimeToday (optional) UTC offset for start of today's utilization is extracted from this value
1356
1356
  * @param utcOffset (optional) Explicit UTC offset for start of today's utilization
1357
+ * @param assetExternalId (optional)
1357
1358
  */
1358
- getMachineUtilizations(assetId, favorites, startTimeToday, utcOffset) {
1359
+ getMachineUtilizations(assetId, favorites, startTimeToday, utcOffset, assetExternalId) {
1359
1360
  let url_ = this.baseUrl + "/machineutilization?";
1360
1361
  if (assetId !== undefined && assetId !== null)
1361
1362
  url_ += "assetId=" + encodeURIComponent("" + assetId) + "&";
@@ -1367,6 +1368,8 @@ export class MachineUtilizationClient extends AuthorizedApiBase {
1367
1368
  url_ += "startTimeToday=" + encodeURIComponent(startTimeToday ? "" + startTimeToday.toISOString() : "") + "&";
1368
1369
  if (utcOffset !== undefined && utcOffset !== null)
1369
1370
  url_ += "utcOffset=" + encodeURIComponent("" + utcOffset) + "&";
1371
+ if (assetExternalId !== undefined && assetExternalId !== null)
1372
+ url_ += "assetExternalId=" + encodeURIComponent("" + assetExternalId) + "&";
1370
1373
  url_ = url_.replace(/[?&]$/, "");
1371
1374
  let options_ = {
1372
1375
  method: "GET",
@@ -1814,8 +1817,9 @@ export class ResourceUtilizationClient extends AuthorizedApiBase {
1814
1817
  * @param favorites (optional)
1815
1818
  * @param startTimeToday (optional) UTC offset for start of today's utilization is extracted from this value
1816
1819
  * @param utcOffset (optional) Explicit UTC offset for start of today's utilization
1820
+ * @param assetExternalId (optional)
1817
1821
  */
1818
- getResourceUtilizations(assetId, favorites, startTimeToday, utcOffset) {
1822
+ getResourceUtilizations(assetId, favorites, startTimeToday, utcOffset, assetExternalId) {
1819
1823
  let url_ = this.baseUrl + "/resourceutilization?";
1820
1824
  if (assetId !== undefined && assetId !== null)
1821
1825
  url_ += "assetId=" + encodeURIComponent("" + assetId) + "&";
@@ -1827,6 +1831,8 @@ export class ResourceUtilizationClient extends AuthorizedApiBase {
1827
1831
  url_ += "startTimeToday=" + encodeURIComponent(startTimeToday ? "" + startTimeToday.toISOString() : "") + "&";
1828
1832
  if (utcOffset !== undefined && utcOffset !== null)
1829
1833
  url_ += "utcOffset=" + encodeURIComponent("" + utcOffset) + "&";
1834
+ if (assetExternalId !== undefined && assetExternalId !== null)
1835
+ url_ += "assetExternalId=" + encodeURIComponent("" + assetExternalId) + "&";
1830
1836
  url_ = url_.replace(/[?&]$/, "");
1831
1837
  let options_ = {
1832
1838
  method: "GET",
@@ -2911,10 +2917,12 @@ export class SystemHealthDashboardClient extends AuthorizedApiBase {
2911
2917
  this.http = http ? http : window;
2912
2918
  this.baseUrl = baseUrl ?? "";
2913
2919
  }
2914
- getMachineDataHealth(assetId) {
2920
+ getMachineDataHealth(assetId, assetExternalId) {
2915
2921
  let url_ = this.baseUrl + "/systemhealthdashboard?";
2916
2922
  if (assetId !== undefined && assetId !== null)
2917
2923
  url_ += "assetId=" + encodeURIComponent("" + assetId) + "&";
2924
+ if (assetExternalId !== undefined && assetExternalId !== null)
2925
+ url_ += "assetExternalId=" + encodeURIComponent("" + assetExternalId) + "&";
2918
2926
  url_ = url_.replace(/[?&]$/, "");
2919
2927
  let options_ = {
2920
2928
  method: "GET",
@@ -5315,10 +5323,12 @@ export class ResourcesClient extends AuthorizedApiBase {
5315
5323
  }
5316
5324
  return Promise.resolve(null);
5317
5325
  }
5318
- listCurrentMachineStates(assetId) {
5326
+ listCurrentMachineStates(assetId, assetExternalId) {
5319
5327
  let url_ = this.baseUrl + "/resources/states/now?";
5320
5328
  if (assetId !== undefined && assetId !== null)
5321
5329
  url_ += "assetId=" + encodeURIComponent("" + assetId) + "&";
5330
+ if (assetExternalId !== undefined && assetExternalId !== null)
5331
+ url_ += "assetExternalId=" + encodeURIComponent("" + assetExternalId) + "&";
5322
5332
  url_ = url_.replace(/[?&]$/, "");
5323
5333
  let options_ = {
5324
5334
  method: "GET",
@@ -12018,10 +12028,12 @@ export class MachinesClient extends AuthorizedApiBase {
12018
12028
  }
12019
12029
  return Promise.resolve(null);
12020
12030
  }
12021
- listCurrentMachineStates(assetId) {
12031
+ listCurrentMachineStates(assetId, assetExternalId) {
12022
12032
  let url_ = this.baseUrl + "/machines/states/now?";
12023
12033
  if (assetId !== undefined && assetId !== null)
12024
12034
  url_ += "assetId=" + encodeURIComponent("" + assetId) + "&";
12035
+ if (assetExternalId !== undefined && assetExternalId !== null)
12036
+ url_ += "assetExternalId=" + encodeURIComponent("" + assetExternalId) + "&";
12025
12037
  url_ = url_.replace(/[?&]$/, "");
12026
12038
  let options_ = {
12027
12039
  method: "GET",
@@ -26146,44 +26158,6 @@ export class MeasurementFormSchemasAdminClient extends AuthorizedApiBase {
26146
26158
  }
26147
26159
  return Promise.resolve(null);
26148
26160
  }
26149
- deleteMeasurementFormSchemaFile(id, slot) {
26150
- let url_ = this.baseUrl + "/measurementforms/schemas/{id}/files/{slot}";
26151
- if (id === undefined || id === null)
26152
- throw new globalThis.Error("The parameter 'id' must be defined.");
26153
- url_ = url_.replace("{id}", encodeURIComponent("" + id));
26154
- if (slot === undefined || slot === null)
26155
- throw new globalThis.Error("The parameter 'slot' must be defined.");
26156
- url_ = url_.replace("{slot}", encodeURIComponent("" + slot));
26157
- url_ = url_.replace(/[?&]$/, "");
26158
- let options_ = {
26159
- method: "DELETE",
26160
- headers: {}
26161
- };
26162
- return this.transformOptions(options_).then(transformedOptions_ => {
26163
- return this.http.fetch(url_, transformedOptions_);
26164
- }).then((_response) => {
26165
- return this.processDeleteMeasurementFormSchemaFile(_response);
26166
- });
26167
- }
26168
- processDeleteMeasurementFormSchemaFile(response) {
26169
- const status = response.status;
26170
- let _headers = {};
26171
- if (response.headers && response.headers.forEach) {
26172
- response.headers.forEach((v, k) => _headers[k] = v);
26173
- }
26174
- ;
26175
- if (status === 204) {
26176
- return response.text().then((_responseText) => {
26177
- return;
26178
- });
26179
- }
26180
- else if (status !== 200 && status !== 204) {
26181
- return response.text().then((_responseText) => {
26182
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
26183
- });
26184
- }
26185
- return Promise.resolve(null);
26186
- }
26187
26161
  getMeasurementFormImportStatus(id) {
26188
26162
  let url_ = this.baseUrl + "/measurementforms/schemas/{id}/importstatus";
26189
26163
  if (id === undefined || id === null)
@@ -27920,45 +27894,6 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
27920
27894
  }
27921
27895
  return Promise.resolve(null);
27922
27896
  }
27923
- listMeasurementFormSchemaFiles(id) {
27924
- let url_ = this.baseUrl + "/measurementforms/schemas/{id}/files";
27925
- if (id === undefined || id === null)
27926
- throw new globalThis.Error("The parameter 'id' must be defined.");
27927
- url_ = url_.replace("{id}", encodeURIComponent("" + id));
27928
- url_ = url_.replace(/[?&]$/, "");
27929
- let options_ = {
27930
- method: "GET",
27931
- headers: {
27932
- "Accept": "application/json"
27933
- }
27934
- };
27935
- return this.transformOptions(options_).then(transformedOptions_ => {
27936
- return this.http.fetch(url_, transformedOptions_);
27937
- }).then((_response) => {
27938
- return this.processListMeasurementFormSchemaFiles(_response);
27939
- });
27940
- }
27941
- processListMeasurementFormSchemaFiles(response) {
27942
- const status = response.status;
27943
- let _headers = {};
27944
- if (response.headers && response.headers.forEach) {
27945
- response.headers.forEach((v, k) => _headers[k] = v);
27946
- }
27947
- ;
27948
- if (status === 200) {
27949
- return response.text().then((_responseText) => {
27950
- let result200 = null;
27951
- result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
27952
- return result200;
27953
- });
27954
- }
27955
- else if (status !== 200 && status !== 204) {
27956
- return response.text().then((_responseText) => {
27957
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
27958
- });
27959
- }
27960
- return Promise.resolve(null);
27961
- }
27962
27897
  listMeasurementFormSchemaVersions(id) {
27963
27898
  let url_ = this.baseUrl + "/measurementforms/schemas/{id}/versions";
27964
27899
  if (id === undefined || id === null)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ignos/api-client",
3
- "version": "20261109.354.1",
3
+ "version": "20261109.355.1-alpha",
4
4
  "description": "IGNOS API Client",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",