@ignos/api-client 20251107.0.13168-alpha → 20251112.0.13205

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.
@@ -899,6 +899,7 @@ export interface IMachinesClient {
899
899
  createResourceWithoutMachine(request: CreateResourceWithoutMachine): Promise<void>;
900
900
  createResourceWithMachine(request: CreateResourceWithMachine): Promise<void>;
901
901
  createResourceInResourceGroup(request: CreateResourceInResourceGroup): Promise<void>;
902
+ deleteMachine(id: number): Promise<void>;
902
903
  }
903
904
  export declare class MachinesClient extends AuthorizedApiBase implements IMachinesClient {
904
905
  private http;
@@ -952,6 +953,8 @@ export declare class MachinesClient extends AuthorizedApiBase implements IMachin
952
953
  protected processCreateResourceWithMachine(response: Response): Promise<void>;
953
954
  createResourceInResourceGroup(request: CreateResourceInResourceGroup): Promise<void>;
954
955
  protected processCreateResourceInResourceGroup(response: Response): Promise<void>;
956
+ deleteMachine(id: number): Promise<void>;
957
+ protected processDeleteMachine(response: Response): Promise<void>;
955
958
  }
956
959
  export interface ILinksClient {
957
960
  getAllLinks(scope: string | null | undefined): Promise<LinkDto[]>;
@@ -5253,6 +5256,8 @@ export declare class MeasuringToolDto implements IMeasuringToolDto {
5253
5256
  unit?: string | null;
5254
5257
  min?: number | null;
5255
5258
  max?: number | null;
5259
+ lastUsedBy?: MeasuringToolLastUsedByDto | null;
5260
+ lastUsedDate?: Date | null;
5256
5261
  lastCalibrationDate?: Date | null;
5257
5262
  nextCalibrationDate?: Date | null;
5258
5263
  calibrationInterval?: number | null;
@@ -5280,6 +5285,8 @@ export interface IMeasuringToolDto {
5280
5285
  unit?: string | null;
5281
5286
  min?: number | null;
5282
5287
  max?: number | null;
5288
+ lastUsedBy?: MeasuringToolLastUsedByDto | null;
5289
+ lastUsedDate?: Date | null;
5283
5290
  lastCalibrationDate?: Date | null;
5284
5291
  nextCalibrationDate?: Date | null;
5285
5292
  calibrationInterval?: number | null;
@@ -5291,6 +5298,20 @@ export interface IMeasuringToolDto {
5291
5298
  usageSinceLastCalibration?: number | null;
5292
5299
  calibrationStatus: CalibrationStatusDto;
5293
5300
  }
5301
+ export declare class MeasuringToolLastUsedByDto implements IMeasuringToolLastUsedByDto {
5302
+ objectId?: string;
5303
+ userId?: string;
5304
+ displayName?: string | null;
5305
+ constructor(data?: IMeasuringToolLastUsedByDto);
5306
+ init(_data?: any): void;
5307
+ static fromJS(data: any): MeasuringToolLastUsedByDto;
5308
+ toJSON(data?: any): any;
5309
+ }
5310
+ export interface IMeasuringToolLastUsedByDto {
5311
+ objectId?: string;
5312
+ userId?: string;
5313
+ displayName?: string | null;
5314
+ }
5294
5315
  export type CalibrationStatusDto = "Uncalibrated" | "Deprecated" | "Expired" | "SoonDue" | "Valid";
5295
5316
  export declare class MeasuringToolDetailDto implements IMeasuringToolDetailDto {
5296
5317
  id: string;
@@ -5303,6 +5324,8 @@ export declare class MeasuringToolDetailDto implements IMeasuringToolDetailDto {
5303
5324
  defaultLocation?: string | null;
5304
5325
  min?: number | null;
5305
5326
  max?: number | null;
5327
+ lastUsedBy?: MeasuringToolLastUsedByDto | null;
5328
+ lastUsedDate?: Date | null;
5306
5329
  calibrationInterval?: number | null;
5307
5330
  overriddenCalibrationInterval?: number | null;
5308
5331
  serialNumber?: string | null;
@@ -5330,6 +5353,8 @@ export interface IMeasuringToolDetailDto {
5330
5353
  defaultLocation?: string | null;
5331
5354
  min?: number | null;
5332
5355
  max?: number | null;
5356
+ lastUsedBy?: MeasuringToolLastUsedByDto | null;
5357
+ lastUsedDate?: Date | null;
5333
5358
  calibrationInterval?: number | null;
5334
5359
  overriddenCalibrationInterval?: number | null;
5335
5360
  serialNumber?: string | null;
@@ -7760,6 +7760,41 @@ export class MachinesClient extends AuthorizedApiBase {
7760
7760
  }
7761
7761
  return Promise.resolve(null);
7762
7762
  }
7763
+ deleteMachine(id) {
7764
+ let url_ = this.baseUrl + "/machines/{id}";
7765
+ if (id === undefined || id === null)
7766
+ throw new globalThis.Error("The parameter 'id' must be defined.");
7767
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
7768
+ url_ = url_.replace(/[?&]$/, "");
7769
+ let options_ = {
7770
+ method: "DELETE",
7771
+ headers: {}
7772
+ };
7773
+ return this.transformOptions(options_).then(transformedOptions_ => {
7774
+ return this.http.fetch(url_, transformedOptions_);
7775
+ }).then((_response) => {
7776
+ return this.processDeleteMachine(_response);
7777
+ });
7778
+ }
7779
+ processDeleteMachine(response) {
7780
+ const status = response.status;
7781
+ let _headers = {};
7782
+ if (response.headers && response.headers.forEach) {
7783
+ response.headers.forEach((v, k) => _headers[k] = v);
7784
+ }
7785
+ ;
7786
+ if (status === 204) {
7787
+ return response.text().then((_responseText) => {
7788
+ return;
7789
+ });
7790
+ }
7791
+ else if (status !== 200 && status !== 204) {
7792
+ return response.text().then((_responseText) => {
7793
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
7794
+ });
7795
+ }
7796
+ return Promise.resolve(null);
7797
+ }
7763
7798
  }
7764
7799
  export class LinksClient extends AuthorizedApiBase {
7765
7800
  constructor(configuration, baseUrl, http) {
@@ -28927,6 +28962,8 @@ export class MeasuringToolDto {
28927
28962
  this.unit = _data["unit"];
28928
28963
  this.min = _data["min"];
28929
28964
  this.max = _data["max"];
28965
+ this.lastUsedBy = _data["lastUsedBy"] ? MeasuringToolLastUsedByDto.fromJS(_data["lastUsedBy"]) : undefined;
28966
+ this.lastUsedDate = _data["lastUsedDate"] ? new Date(_data["lastUsedDate"].toString()) : undefined;
28930
28967
  this.lastCalibrationDate = _data["lastCalibrationDate"] ? new Date(_data["lastCalibrationDate"].toString()) : undefined;
28931
28968
  this.nextCalibrationDate = _data["nextCalibrationDate"] ? new Date(_data["nextCalibrationDate"].toString()) : undefined;
28932
28969
  this.calibrationInterval = _data["calibrationInterval"];
@@ -28958,6 +28995,8 @@ export class MeasuringToolDto {
28958
28995
  data["unit"] = this.unit;
28959
28996
  data["min"] = this.min;
28960
28997
  data["max"] = this.max;
28998
+ data["lastUsedBy"] = this.lastUsedBy ? this.lastUsedBy.toJSON() : undefined;
28999
+ data["lastUsedDate"] = this.lastUsedDate ? this.lastUsedDate.toISOString() : undefined;
28961
29000
  data["lastCalibrationDate"] = this.lastCalibrationDate ? this.lastCalibrationDate.toISOString() : undefined;
28962
29001
  data["nextCalibrationDate"] = this.nextCalibrationDate ? this.nextCalibrationDate.toISOString() : undefined;
28963
29002
  data["calibrationInterval"] = this.calibrationInterval;
@@ -28971,6 +29010,36 @@ export class MeasuringToolDto {
28971
29010
  return data;
28972
29011
  }
28973
29012
  }
29013
+ export class MeasuringToolLastUsedByDto {
29014
+ constructor(data) {
29015
+ if (data) {
29016
+ for (var property in data) {
29017
+ if (data.hasOwnProperty(property))
29018
+ this[property] = data[property];
29019
+ }
29020
+ }
29021
+ }
29022
+ init(_data) {
29023
+ if (_data) {
29024
+ this.objectId = _data["objectId"];
29025
+ this.userId = _data["userId"];
29026
+ this.displayName = _data["displayName"];
29027
+ }
29028
+ }
29029
+ static fromJS(data) {
29030
+ data = typeof data === 'object' ? data : {};
29031
+ let result = new MeasuringToolLastUsedByDto();
29032
+ result.init(data);
29033
+ return result;
29034
+ }
29035
+ toJSON(data) {
29036
+ data = typeof data === 'object' ? data : {};
29037
+ data["objectId"] = this.objectId;
29038
+ data["userId"] = this.userId;
29039
+ data["displayName"] = this.displayName;
29040
+ return data;
29041
+ }
29042
+ }
28974
29043
  export class MeasuringToolDetailDto {
28975
29044
  constructor(data) {
28976
29045
  if (data) {
@@ -28996,6 +29065,8 @@ export class MeasuringToolDetailDto {
28996
29065
  this.defaultLocation = _data["defaultLocation"];
28997
29066
  this.min = _data["min"];
28998
29067
  this.max = _data["max"];
29068
+ this.lastUsedBy = _data["lastUsedBy"] ? MeasuringToolLastUsedByDto.fromJS(_data["lastUsedBy"]) : undefined;
29069
+ this.lastUsedDate = _data["lastUsedDate"] ? new Date(_data["lastUsedDate"].toString()) : undefined;
28999
29070
  this.calibrationInterval = _data["calibrationInterval"];
29000
29071
  this.overriddenCalibrationInterval = _data["overriddenCalibrationInterval"];
29001
29072
  this.serialNumber = _data["serialNumber"];
@@ -29027,6 +29098,8 @@ export class MeasuringToolDetailDto {
29027
29098
  data["defaultLocation"] = this.defaultLocation;
29028
29099
  data["min"] = this.min;
29029
29100
  data["max"] = this.max;
29101
+ data["lastUsedBy"] = this.lastUsedBy ? this.lastUsedBy.toJSON() : undefined;
29102
+ data["lastUsedDate"] = this.lastUsedDate ? this.lastUsedDate.toISOString() : undefined;
29030
29103
  data["calibrationInterval"] = this.calibrationInterval;
29031
29104
  data["overriddenCalibrationInterval"] = this.overriddenCalibrationInterval;
29032
29105
  data["serialNumber"] = this.serialNumber;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ignos/api-client",
3
- "version": "20251107.0.13168-alpha",
3
+ "version": "20251112.0.13205",
4
4
  "description": "IGNOS API Client",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -7466,6 +7466,8 @@ export interface IMachinesClient {
7466
7466
  createResourceWithMachine(request: CreateResourceWithMachine): Promise<void>;
7467
7467
 
7468
7468
  createResourceInResourceGroup(request: CreateResourceInResourceGroup): Promise<void>;
7469
+
7470
+ deleteMachine(id: number): Promise<void>;
7469
7471
  }
7470
7472
 
7471
7473
  export class MachinesClient extends AuthorizedApiBase implements IMachinesClient {
@@ -8281,6 +8283,41 @@ export class MachinesClient extends AuthorizedApiBase implements IMachinesClient
8281
8283
  }
8282
8284
  return Promise.resolve<void>(null as any);
8283
8285
  }
8286
+
8287
+ deleteMachine(id: number): Promise<void> {
8288
+ let url_ = this.baseUrl + "/machines/{id}";
8289
+ if (id === undefined || id === null)
8290
+ throw new globalThis.Error("The parameter 'id' must be defined.");
8291
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
8292
+ url_ = url_.replace(/[?&]$/, "");
8293
+
8294
+ let options_: RequestInit = {
8295
+ method: "DELETE",
8296
+ headers: {
8297
+ }
8298
+ };
8299
+
8300
+ return this.transformOptions(options_).then(transformedOptions_ => {
8301
+ return this.http.fetch(url_, transformedOptions_);
8302
+ }).then((_response: Response) => {
8303
+ return this.processDeleteMachine(_response);
8304
+ });
8305
+ }
8306
+
8307
+ protected processDeleteMachine(response: Response): Promise<void> {
8308
+ const status = response.status;
8309
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
8310
+ if (status === 204) {
8311
+ return response.text().then((_responseText) => {
8312
+ return;
8313
+ });
8314
+ } else if (status !== 200 && status !== 204) {
8315
+ return response.text().then((_responseText) => {
8316
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
8317
+ });
8318
+ }
8319
+ return Promise.resolve<void>(null as any);
8320
+ }
8284
8321
  }
8285
8322
 
8286
8323
  export interface ILinksClient {
@@ -32912,6 +32949,8 @@ export class MeasuringToolDto implements IMeasuringToolDto {
32912
32949
  unit?: string | null;
32913
32950
  min?: number | null;
32914
32951
  max?: number | null;
32952
+ lastUsedBy?: MeasuringToolLastUsedByDto | null;
32953
+ lastUsedDate?: Date | null;
32915
32954
  lastCalibrationDate?: Date | null;
32916
32955
  nextCalibrationDate?: Date | null;
32917
32956
  calibrationInterval?: number | null;
@@ -32945,6 +32984,8 @@ export class MeasuringToolDto implements IMeasuringToolDto {
32945
32984
  this.unit = _data["unit"];
32946
32985
  this.min = _data["min"];
32947
32986
  this.max = _data["max"];
32987
+ this.lastUsedBy = _data["lastUsedBy"] ? MeasuringToolLastUsedByDto.fromJS(_data["lastUsedBy"]) : undefined as any;
32988
+ this.lastUsedDate = _data["lastUsedDate"] ? new Date(_data["lastUsedDate"].toString()) : undefined as any;
32948
32989
  this.lastCalibrationDate = _data["lastCalibrationDate"] ? new Date(_data["lastCalibrationDate"].toString()) : undefined as any;
32949
32990
  this.nextCalibrationDate = _data["nextCalibrationDate"] ? new Date(_data["nextCalibrationDate"].toString()) : undefined as any;
32950
32991
  this.calibrationInterval = _data["calibrationInterval"];
@@ -32978,6 +33019,8 @@ export class MeasuringToolDto implements IMeasuringToolDto {
32978
33019
  data["unit"] = this.unit;
32979
33020
  data["min"] = this.min;
32980
33021
  data["max"] = this.max;
33022
+ data["lastUsedBy"] = this.lastUsedBy ? this.lastUsedBy.toJSON() : undefined as any;
33023
+ data["lastUsedDate"] = this.lastUsedDate ? this.lastUsedDate.toISOString() : undefined as any;
32981
33024
  data["lastCalibrationDate"] = this.lastCalibrationDate ? this.lastCalibrationDate.toISOString() : undefined as any;
32982
33025
  data["nextCalibrationDate"] = this.nextCalibrationDate ? this.nextCalibrationDate.toISOString() : undefined as any;
32983
33026
  data["calibrationInterval"] = this.calibrationInterval;
@@ -33004,6 +33047,8 @@ export interface IMeasuringToolDto {
33004
33047
  unit?: string | null;
33005
33048
  min?: number | null;
33006
33049
  max?: number | null;
33050
+ lastUsedBy?: MeasuringToolLastUsedByDto | null;
33051
+ lastUsedDate?: Date | null;
33007
33052
  lastCalibrationDate?: Date | null;
33008
33053
  nextCalibrationDate?: Date | null;
33009
33054
  calibrationInterval?: number | null;
@@ -33016,6 +33061,50 @@ export interface IMeasuringToolDto {
33016
33061
  calibrationStatus: CalibrationStatusDto;
33017
33062
  }
33018
33063
 
33064
+ export class MeasuringToolLastUsedByDto implements IMeasuringToolLastUsedByDto {
33065
+ objectId?: string;
33066
+ userId?: string;
33067
+ displayName?: string | null;
33068
+
33069
+ constructor(data?: IMeasuringToolLastUsedByDto) {
33070
+ if (data) {
33071
+ for (var property in data) {
33072
+ if (data.hasOwnProperty(property))
33073
+ (this as any)[property] = (data as any)[property];
33074
+ }
33075
+ }
33076
+ }
33077
+
33078
+ init(_data?: any) {
33079
+ if (_data) {
33080
+ this.objectId = _data["objectId"];
33081
+ this.userId = _data["userId"];
33082
+ this.displayName = _data["displayName"];
33083
+ }
33084
+ }
33085
+
33086
+ static fromJS(data: any): MeasuringToolLastUsedByDto {
33087
+ data = typeof data === 'object' ? data : {};
33088
+ let result = new MeasuringToolLastUsedByDto();
33089
+ result.init(data);
33090
+ return result;
33091
+ }
33092
+
33093
+ toJSON(data?: any) {
33094
+ data = typeof data === 'object' ? data : {};
33095
+ data["objectId"] = this.objectId;
33096
+ data["userId"] = this.userId;
33097
+ data["displayName"] = this.displayName;
33098
+ return data;
33099
+ }
33100
+ }
33101
+
33102
+ export interface IMeasuringToolLastUsedByDto {
33103
+ objectId?: string;
33104
+ userId?: string;
33105
+ displayName?: string | null;
33106
+ }
33107
+
33019
33108
  export type CalibrationStatusDto = "Uncalibrated" | "Deprecated" | "Expired" | "SoonDue" | "Valid";
33020
33109
 
33021
33110
  export class MeasuringToolDetailDto implements IMeasuringToolDetailDto {
@@ -33029,6 +33118,8 @@ export class MeasuringToolDetailDto implements IMeasuringToolDetailDto {
33029
33118
  defaultLocation?: string | null;
33030
33119
  min?: number | null;
33031
33120
  max?: number | null;
33121
+ lastUsedBy?: MeasuringToolLastUsedByDto | null;
33122
+ lastUsedDate?: Date | null;
33032
33123
  calibrationInterval?: number | null;
33033
33124
  overriddenCalibrationInterval?: number | null;
33034
33125
  serialNumber?: string | null;
@@ -33066,6 +33157,8 @@ export class MeasuringToolDetailDto implements IMeasuringToolDetailDto {
33066
33157
  this.defaultLocation = _data["defaultLocation"];
33067
33158
  this.min = _data["min"];
33068
33159
  this.max = _data["max"];
33160
+ this.lastUsedBy = _data["lastUsedBy"] ? MeasuringToolLastUsedByDto.fromJS(_data["lastUsedBy"]) : undefined as any;
33161
+ this.lastUsedDate = _data["lastUsedDate"] ? new Date(_data["lastUsedDate"].toString()) : undefined as any;
33069
33162
  this.calibrationInterval = _data["calibrationInterval"];
33070
33163
  this.overriddenCalibrationInterval = _data["overriddenCalibrationInterval"];
33071
33164
  this.serialNumber = _data["serialNumber"];
@@ -33099,6 +33192,8 @@ export class MeasuringToolDetailDto implements IMeasuringToolDetailDto {
33099
33192
  data["defaultLocation"] = this.defaultLocation;
33100
33193
  data["min"] = this.min;
33101
33194
  data["max"] = this.max;
33195
+ data["lastUsedBy"] = this.lastUsedBy ? this.lastUsedBy.toJSON() : undefined as any;
33196
+ data["lastUsedDate"] = this.lastUsedDate ? this.lastUsedDate.toISOString() : undefined as any;
33102
33197
  data["calibrationInterval"] = this.calibrationInterval;
33103
33198
  data["overriddenCalibrationInterval"] = this.overriddenCalibrationInterval;
33104
33199
  data["serialNumber"] = this.serialNumber;
@@ -33125,6 +33220,8 @@ export interface IMeasuringToolDetailDto {
33125
33220
  defaultLocation?: string | null;
33126
33221
  min?: number | null;
33127
33222
  max?: number | null;
33223
+ lastUsedBy?: MeasuringToolLastUsedByDto | null;
33224
+ lastUsedDate?: Date | null;
33128
33225
  calibrationInterval?: number | null;
33129
33226
  overriddenCalibrationInterval?: number | null;
33130
33227
  serialNumber?: string | null;