@ignos/api-client 20250825.0.12417 → 20250828.0.12452

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.
@@ -754,6 +754,53 @@ export class MachineUtilizationClient extends AuthorizedApiBase {
754
754
  }
755
755
  return Promise.resolve(null);
756
756
  }
757
+ getResourceTimelines(id, startTime, endTime, filter) {
758
+ let url_ = this.baseUrl + "/machineutilization/{id}/resource/timelines?";
759
+ if (id === undefined || id === null)
760
+ throw new Error("The parameter 'id' must be defined.");
761
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
762
+ if (startTime !== undefined && startTime !== null)
763
+ url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
764
+ if (endTime !== undefined && endTime !== null)
765
+ url_ += "endTime=" + encodeURIComponent(endTime ? "" + endTime.toISOString() : "") + "&";
766
+ url_ = url_.replace(/[?&]$/, "");
767
+ const content_ = JSON.stringify(filter);
768
+ let options_ = {
769
+ body: content_,
770
+ method: "POST",
771
+ headers: {
772
+ "Content-Type": "application/json",
773
+ "Accept": "application/json"
774
+ }
775
+ };
776
+ return this.transformOptions(options_).then(transformedOptions_ => {
777
+ return this.http.fetch(url_, transformedOptions_);
778
+ }).then((_response) => {
779
+ return this.processGetResourceTimelines(_response);
780
+ });
781
+ }
782
+ processGetResourceTimelines(response) {
783
+ const status = response.status;
784
+ let _headers = {};
785
+ if (response.headers && response.headers.forEach) {
786
+ response.headers.forEach((v, k) => _headers[k] = v);
787
+ }
788
+ ;
789
+ if (status === 200) {
790
+ return response.text().then((_responseText) => {
791
+ let result200 = null;
792
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
793
+ result200 = TimelinesDto.fromJS(resultData200);
794
+ return result200;
795
+ });
796
+ }
797
+ else if (status !== 200 && status !== 204) {
798
+ return response.text().then((_responseText) => {
799
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
800
+ });
801
+ }
802
+ return Promise.resolve(null);
803
+ }
757
804
  listMachineStates(id, startTime, endTime) {
758
805
  let url_ = this.baseUrl + "/machineutilization/{id}/machine-states?";
759
806
  if (id === undefined || id === null)
@@ -7018,6 +7065,11 @@ export class MachinesClient extends AuthorizedApiBase {
7018
7065
  }
7019
7066
  return Promise.resolve(null);
7020
7067
  }
7068
+ /**
7069
+ * @param startTime (optional)
7070
+ * @param endTime (optional)
7071
+ * @deprecated
7072
+ */
7021
7073
  getWorkOrderTimeline(id, startTime, endTime) {
7022
7074
  let url_ = this.baseUrl + "/machines/{id}/workorder/timeline?";
7023
7075
  if (id === undefined || id === null)
@@ -16969,37 +17021,15 @@ export class MesResourceClient extends AuthorizedApiBase {
16969
17021
  return Promise.resolve(null);
16970
17022
  }
16971
17023
  }
16972
- export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17024
+ export class ElectricalClient extends AuthorizedApiBase {
16973
17025
  constructor(configuration, baseUrl, http) {
16974
17026
  super(configuration);
16975
17027
  this.jsonParseReviver = undefined;
16976
17028
  this.http = http ? http : window;
16977
17029
  this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
16978
17030
  }
16979
- listMeasurmentFormSchemas(pageSize, customerId, customerName, partNumber, partName, partRevision, drawing, drawingRevision, filter, continuationToken) {
16980
- let url_ = this.baseUrl + "/measurementforms/schemas?";
16981
- if (pageSize === null)
16982
- throw new Error("The parameter 'pageSize' cannot be null.");
16983
- else if (pageSize !== undefined)
16984
- url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
16985
- if (customerId !== undefined && customerId !== null)
16986
- url_ += "customerId=" + encodeURIComponent("" + customerId) + "&";
16987
- if (customerName !== undefined && customerName !== null)
16988
- url_ += "customerName=" + encodeURIComponent("" + customerName) + "&";
16989
- if (partNumber !== undefined && partNumber !== null)
16990
- url_ += "partNumber=" + encodeURIComponent("" + partNumber) + "&";
16991
- if (partName !== undefined && partName !== null)
16992
- url_ += "partName=" + encodeURIComponent("" + partName) + "&";
16993
- if (partRevision !== undefined && partRevision !== null)
16994
- url_ += "partRevision=" + encodeURIComponent("" + partRevision) + "&";
16995
- if (drawing !== undefined && drawing !== null)
16996
- url_ += "drawing=" + encodeURIComponent("" + drawing) + "&";
16997
- if (drawingRevision !== undefined && drawingRevision !== null)
16998
- url_ += "drawingRevision=" + encodeURIComponent("" + drawingRevision) + "&";
16999
- if (filter !== undefined && filter !== null)
17000
- url_ += "filter=" + encodeURIComponent("" + filter) + "&";
17001
- if (continuationToken !== undefined && continuationToken !== null)
17002
- url_ += "continuationToken=" + encodeURIComponent("" + continuationToken) + "&";
17031
+ listElectricalSourceTypes() {
17032
+ let url_ = this.baseUrl + "/iot/electrical/sourcetypes";
17003
17033
  url_ = url_.replace(/[?&]$/, "");
17004
17034
  let options_ = {
17005
17035
  method: "GET",
@@ -17010,10 +17040,10 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17010
17040
  return this.transformOptions(options_).then(transformedOptions_ => {
17011
17041
  return this.http.fetch(url_, transformedOptions_);
17012
17042
  }).then((_response) => {
17013
- return this.processListMeasurmentFormSchemas(_response);
17043
+ return this.processListElectricalSourceTypes(_response);
17014
17044
  });
17015
17045
  }
17016
- processListMeasurmentFormSchemas(response) {
17046
+ processListElectricalSourceTypes(response) {
17017
17047
  const status = response.status;
17018
17048
  let _headers = {};
17019
17049
  if (response.headers && response.headers.forEach) {
@@ -17024,7 +17054,11 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17024
17054
  return response.text().then((_responseText) => {
17025
17055
  let result200 = null;
17026
17056
  let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
17027
- result200 = PagedResultOfMeasurementFormListDto.fromJS(resultData200);
17057
+ if (Array.isArray(resultData200)) {
17058
+ result200 = [];
17059
+ for (let item of resultData200)
17060
+ result200.push(IotTypeSourceDto.fromJS(item));
17061
+ }
17028
17062
  return result200;
17029
17063
  });
17030
17064
  }
@@ -17035,25 +17069,22 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17035
17069
  }
17036
17070
  return Promise.resolve(null);
17037
17071
  }
17038
- createMeasurementForm(request) {
17039
- let url_ = this.baseUrl + "/measurementforms/schemas";
17072
+ listElectricalDataConfigs() {
17073
+ let url_ = this.baseUrl + "/iot/electrical";
17040
17074
  url_ = url_.replace(/[?&]$/, "");
17041
- const content_ = JSON.stringify(request);
17042
17075
  let options_ = {
17043
- body: content_,
17044
- method: "POST",
17076
+ method: "GET",
17045
17077
  headers: {
17046
- "Content-Type": "application/json",
17047
17078
  "Accept": "application/json"
17048
17079
  }
17049
17080
  };
17050
17081
  return this.transformOptions(options_).then(transformedOptions_ => {
17051
17082
  return this.http.fetch(url_, transformedOptions_);
17052
17083
  }).then((_response) => {
17053
- return this.processCreateMeasurementForm(_response);
17084
+ return this.processListElectricalDataConfigs(_response);
17054
17085
  });
17055
17086
  }
17056
- processCreateMeasurementForm(response) {
17087
+ processListElectricalDataConfigs(response) {
17057
17088
  const status = response.status;
17058
17089
  let _headers = {};
17059
17090
  if (response.headers && response.headers.forEach) {
@@ -17064,7 +17095,11 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17064
17095
  return response.text().then((_responseText) => {
17065
17096
  let result200 = null;
17066
17097
  let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
17067
- result200 = MeasurementFormDto.fromJS(resultData200);
17098
+ if (Array.isArray(resultData200)) {
17099
+ result200 = [];
17100
+ for (let item of resultData200)
17101
+ result200.push(ElectricalIotConfigDto.fromJS(item));
17102
+ }
17068
17103
  return result200;
17069
17104
  });
17070
17105
  }
@@ -17075,8 +17110,8 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17075
17110
  }
17076
17111
  return Promise.resolve(null);
17077
17112
  }
17078
- postListMeasurementFormSchemas(request) {
17079
- let url_ = this.baseUrl + "/measurementforms/schemas/list";
17113
+ createElectricalIotConfig(request) {
17114
+ let url_ = this.baseUrl + "/iot/electrical";
17080
17115
  url_ = url_.replace(/[?&]$/, "");
17081
17116
  const content_ = JSON.stringify(request);
17082
17117
  let options_ = {
@@ -17090,10 +17125,10 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17090
17125
  return this.transformOptions(options_).then(transformedOptions_ => {
17091
17126
  return this.http.fetch(url_, transformedOptions_);
17092
17127
  }).then((_response) => {
17093
- return this.processPostListMeasurementFormSchemas(_response);
17128
+ return this.processCreateElectricalIotConfig(_response);
17094
17129
  });
17095
17130
  }
17096
- processPostListMeasurementFormSchemas(response) {
17131
+ processCreateElectricalIotConfig(response) {
17097
17132
  const status = response.status;
17098
17133
  let _headers = {};
17099
17134
  if (response.headers && response.headers.forEach) {
@@ -17104,7 +17139,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17104
17139
  return response.text().then((_responseText) => {
17105
17140
  let result200 = null;
17106
17141
  let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
17107
- result200 = PagedResultOfMeasurementFormListDto.fromJS(resultData200);
17142
+ result200 = ElectricalIotConfigDto.fromJS(resultData200);
17108
17143
  return result200;
17109
17144
  });
17110
17145
  }
@@ -17115,12 +17150,55 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17115
17150
  }
17116
17151
  return Promise.resolve(null);
17117
17152
  }
17118
- getMeasurementFormSchema(id) {
17119
- let url_ = this.baseUrl + "/measurementforms/schemas/{id}";
17153
+ deleteElectricalIotConfig(typeId, id) {
17154
+ let url_ = this.baseUrl + "/iot/electrical/{typeId}/{id}";
17155
+ if (typeId === undefined || typeId === null)
17156
+ throw new Error("The parameter 'typeId' must be defined.");
17157
+ url_ = url_.replace("{typeId}", encodeURIComponent("" + typeId));
17120
17158
  if (id === undefined || id === null)
17121
17159
  throw new Error("The parameter 'id' must be defined.");
17122
17160
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
17123
17161
  url_ = url_.replace(/[?&]$/, "");
17162
+ let options_ = {
17163
+ method: "DELETE",
17164
+ headers: {}
17165
+ };
17166
+ return this.transformOptions(options_).then(transformedOptions_ => {
17167
+ return this.http.fetch(url_, transformedOptions_);
17168
+ }).then((_response) => {
17169
+ return this.processDeleteElectricalIotConfig(_response);
17170
+ });
17171
+ }
17172
+ processDeleteElectricalIotConfig(response) {
17173
+ const status = response.status;
17174
+ let _headers = {};
17175
+ if (response.headers && response.headers.forEach) {
17176
+ response.headers.forEach((v, k) => _headers[k] = v);
17177
+ }
17178
+ ;
17179
+ if (status === 204) {
17180
+ return response.text().then((_responseText) => {
17181
+ return;
17182
+ });
17183
+ }
17184
+ else if (status !== 200 && status !== 204) {
17185
+ return response.text().then((_responseText) => {
17186
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
17187
+ });
17188
+ }
17189
+ return Promise.resolve(null);
17190
+ }
17191
+ }
17192
+ export class WeldingClient extends AuthorizedApiBase {
17193
+ constructor(configuration, baseUrl, http) {
17194
+ super(configuration);
17195
+ this.jsonParseReviver = undefined;
17196
+ this.http = http ? http : window;
17197
+ this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
17198
+ }
17199
+ listWeldingSourceTypes() {
17200
+ let url_ = this.baseUrl + "/iot/welding/sourcetypes";
17201
+ url_ = url_.replace(/[?&]$/, "");
17124
17202
  let options_ = {
17125
17203
  method: "GET",
17126
17204
  headers: {
@@ -17130,10 +17208,10 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17130
17208
  return this.transformOptions(options_).then(transformedOptions_ => {
17131
17209
  return this.http.fetch(url_, transformedOptions_);
17132
17210
  }).then((_response) => {
17133
- return this.processGetMeasurementFormSchema(_response);
17211
+ return this.processListWeldingSourceTypes(_response);
17134
17212
  });
17135
17213
  }
17136
- processGetMeasurementFormSchema(response) {
17214
+ processListWeldingSourceTypes(response) {
17137
17215
  const status = response.status;
17138
17216
  let _headers = {};
17139
17217
  if (response.headers && response.headers.forEach) {
@@ -17144,7 +17222,11 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17144
17222
  return response.text().then((_responseText) => {
17145
17223
  let result200 = null;
17146
17224
  let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
17147
- result200 = MeasurementFormSchemaDto.fromJS(resultData200);
17225
+ if (Array.isArray(resultData200)) {
17226
+ result200 = [];
17227
+ for (let item of resultData200)
17228
+ result200.push(IotTypeSourceDto.fromJS(item));
17229
+ }
17148
17230
  return result200;
17149
17231
  });
17150
17232
  }
@@ -17155,16 +17237,54 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17155
17237
  }
17156
17238
  return Promise.resolve(null);
17157
17239
  }
17158
- updateMeasurementFormSchema(id, request) {
17159
- let url_ = this.baseUrl + "/measurementforms/schemas/{id}";
17160
- if (id === undefined || id === null)
17161
- throw new Error("The parameter 'id' must be defined.");
17162
- url_ = url_.replace("{id}", encodeURIComponent("" + id));
17240
+ listElectricalDataConfigs() {
17241
+ let url_ = this.baseUrl + "/iot/welding";
17242
+ url_ = url_.replace(/[?&]$/, "");
17243
+ let options_ = {
17244
+ method: "GET",
17245
+ headers: {
17246
+ "Accept": "application/json"
17247
+ }
17248
+ };
17249
+ return this.transformOptions(options_).then(transformedOptions_ => {
17250
+ return this.http.fetch(url_, transformedOptions_);
17251
+ }).then((_response) => {
17252
+ return this.processListElectricalDataConfigs(_response);
17253
+ });
17254
+ }
17255
+ processListElectricalDataConfigs(response) {
17256
+ const status = response.status;
17257
+ let _headers = {};
17258
+ if (response.headers && response.headers.forEach) {
17259
+ response.headers.forEach((v, k) => _headers[k] = v);
17260
+ }
17261
+ ;
17262
+ if (status === 200) {
17263
+ return response.text().then((_responseText) => {
17264
+ let result200 = null;
17265
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
17266
+ if (Array.isArray(resultData200)) {
17267
+ result200 = [];
17268
+ for (let item of resultData200)
17269
+ result200.push(WeldingIotConfigDto.fromJS(item));
17270
+ }
17271
+ return result200;
17272
+ });
17273
+ }
17274
+ else if (status !== 200 && status !== 204) {
17275
+ return response.text().then((_responseText) => {
17276
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
17277
+ });
17278
+ }
17279
+ return Promise.resolve(null);
17280
+ }
17281
+ createWeldingIotConfig(request) {
17282
+ let url_ = this.baseUrl + "/iot/welding";
17163
17283
  url_ = url_.replace(/[?&]$/, "");
17164
17284
  const content_ = JSON.stringify(request);
17165
17285
  let options_ = {
17166
17286
  body: content_,
17167
- method: "PUT",
17287
+ method: "POST",
17168
17288
  headers: {
17169
17289
  "Content-Type": "application/json",
17170
17290
  "Accept": "application/json"
@@ -17173,10 +17293,10 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17173
17293
  return this.transformOptions(options_).then(transformedOptions_ => {
17174
17294
  return this.http.fetch(url_, transformedOptions_);
17175
17295
  }).then((_response) => {
17176
- return this.processUpdateMeasurementFormSchema(_response);
17296
+ return this.processCreateWeldingIotConfig(_response);
17177
17297
  });
17178
17298
  }
17179
- processUpdateMeasurementFormSchema(response) {
17299
+ processCreateWeldingIotConfig(response) {
17180
17300
  const status = response.status;
17181
17301
  let _headers = {};
17182
17302
  if (response.headers && response.headers.forEach) {
@@ -17187,7 +17307,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17187
17307
  return response.text().then((_responseText) => {
17188
17308
  let result200 = null;
17189
17309
  let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
17190
- result200 = MeasurementFormSchemaDto.fromJS(resultData200);
17310
+ result200 = WeldingIotConfigDto.fromJS(resultData200);
17191
17311
  return result200;
17192
17312
  });
17193
17313
  }
@@ -17198,8 +17318,11 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17198
17318
  }
17199
17319
  return Promise.resolve(null);
17200
17320
  }
17201
- deleteMeasurementForm(id) {
17202
- let url_ = this.baseUrl + "/measurementforms/schemas/{id}";
17321
+ deleteWeldingIotConfig(typeId, id) {
17322
+ let url_ = this.baseUrl + "/iot/welding/{typeId}/{id}";
17323
+ if (typeId === undefined || typeId === null)
17324
+ throw new Error("The parameter 'typeId' must be defined.");
17325
+ url_ = url_.replace("{typeId}", encodeURIComponent("" + typeId));
17203
17326
  if (id === undefined || id === null)
17204
17327
  throw new Error("The parameter 'id' must be defined.");
17205
17328
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
@@ -17211,10 +17334,10 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17211
17334
  return this.transformOptions(options_).then(transformedOptions_ => {
17212
17335
  return this.http.fetch(url_, transformedOptions_);
17213
17336
  }).then((_response) => {
17214
- return this.processDeleteMeasurementForm(_response);
17337
+ return this.processDeleteWeldingIotConfig(_response);
17215
17338
  });
17216
17339
  }
17217
- processDeleteMeasurementForm(response) {
17340
+ processDeleteWeldingIotConfig(response) {
17218
17341
  const status = response.status;
17219
17342
  let _headers = {};
17220
17343
  if (response.headers && response.headers.forEach) {
@@ -17233,11 +17356,75 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17233
17356
  }
17234
17357
  return Promise.resolve(null);
17235
17358
  }
17236
- copyMeasurementFormSchema(id, request) {
17237
- let url_ = this.baseUrl + "/measurementforms/schemas/{id}/copy";
17238
- if (id === undefined || id === null)
17239
- throw new Error("The parameter 'id' must be defined.");
17240
- url_ = url_.replace("{id}", encodeURIComponent("" + id));
17359
+ }
17360
+ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17361
+ constructor(configuration, baseUrl, http) {
17362
+ super(configuration);
17363
+ this.jsonParseReviver = undefined;
17364
+ this.http = http ? http : window;
17365
+ this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
17366
+ }
17367
+ listMeasurmentFormSchemas(pageSize, customerId, customerName, partNumber, partName, partRevision, drawing, drawingRevision, filter, continuationToken) {
17368
+ let url_ = this.baseUrl + "/measurementforms/schemas?";
17369
+ if (pageSize === null)
17370
+ throw new Error("The parameter 'pageSize' cannot be null.");
17371
+ else if (pageSize !== undefined)
17372
+ url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
17373
+ if (customerId !== undefined && customerId !== null)
17374
+ url_ += "customerId=" + encodeURIComponent("" + customerId) + "&";
17375
+ if (customerName !== undefined && customerName !== null)
17376
+ url_ += "customerName=" + encodeURIComponent("" + customerName) + "&";
17377
+ if (partNumber !== undefined && partNumber !== null)
17378
+ url_ += "partNumber=" + encodeURIComponent("" + partNumber) + "&";
17379
+ if (partName !== undefined && partName !== null)
17380
+ url_ += "partName=" + encodeURIComponent("" + partName) + "&";
17381
+ if (partRevision !== undefined && partRevision !== null)
17382
+ url_ += "partRevision=" + encodeURIComponent("" + partRevision) + "&";
17383
+ if (drawing !== undefined && drawing !== null)
17384
+ url_ += "drawing=" + encodeURIComponent("" + drawing) + "&";
17385
+ if (drawingRevision !== undefined && drawingRevision !== null)
17386
+ url_ += "drawingRevision=" + encodeURIComponent("" + drawingRevision) + "&";
17387
+ if (filter !== undefined && filter !== null)
17388
+ url_ += "filter=" + encodeURIComponent("" + filter) + "&";
17389
+ if (continuationToken !== undefined && continuationToken !== null)
17390
+ url_ += "continuationToken=" + encodeURIComponent("" + continuationToken) + "&";
17391
+ url_ = url_.replace(/[?&]$/, "");
17392
+ let options_ = {
17393
+ method: "GET",
17394
+ headers: {
17395
+ "Accept": "application/json"
17396
+ }
17397
+ };
17398
+ return this.transformOptions(options_).then(transformedOptions_ => {
17399
+ return this.http.fetch(url_, transformedOptions_);
17400
+ }).then((_response) => {
17401
+ return this.processListMeasurmentFormSchemas(_response);
17402
+ });
17403
+ }
17404
+ processListMeasurmentFormSchemas(response) {
17405
+ const status = response.status;
17406
+ let _headers = {};
17407
+ if (response.headers && response.headers.forEach) {
17408
+ response.headers.forEach((v, k) => _headers[k] = v);
17409
+ }
17410
+ ;
17411
+ if (status === 200) {
17412
+ return response.text().then((_responseText) => {
17413
+ let result200 = null;
17414
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
17415
+ result200 = PagedResultOfMeasurementFormListDto.fromJS(resultData200);
17416
+ return result200;
17417
+ });
17418
+ }
17419
+ else if (status !== 200 && status !== 204) {
17420
+ return response.text().then((_responseText) => {
17421
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
17422
+ });
17423
+ }
17424
+ return Promise.resolve(null);
17425
+ }
17426
+ createMeasurementForm(request) {
17427
+ let url_ = this.baseUrl + "/measurementforms/schemas";
17241
17428
  url_ = url_.replace(/[?&]$/, "");
17242
17429
  const content_ = JSON.stringify(request);
17243
17430
  let options_ = {
@@ -17251,10 +17438,10 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17251
17438
  return this.transformOptions(options_).then(transformedOptions_ => {
17252
17439
  return this.http.fetch(url_, transformedOptions_);
17253
17440
  }).then((_response) => {
17254
- return this.processCopyMeasurementFormSchema(_response);
17441
+ return this.processCreateMeasurementForm(_response);
17255
17442
  });
17256
17443
  }
17257
- processCopyMeasurementFormSchema(response) {
17444
+ processCreateMeasurementForm(response) {
17258
17445
  const status = response.status;
17259
17446
  let _headers = {};
17260
17447
  if (response.headers && response.headers.forEach) {
@@ -17276,16 +17463,13 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17276
17463
  }
17277
17464
  return Promise.resolve(null);
17278
17465
  }
17279
- updateSchemaGroupedElements(id, request) {
17280
- let url_ = this.baseUrl + "/measurementforms/schemas/{id}/groupedelements";
17281
- if (id === undefined || id === null)
17282
- throw new Error("The parameter 'id' must be defined.");
17283
- url_ = url_.replace("{id}", encodeURIComponent("" + id));
17466
+ postListMeasurementFormSchemas(request) {
17467
+ let url_ = this.baseUrl + "/measurementforms/schemas/list";
17284
17468
  url_ = url_.replace(/[?&]$/, "");
17285
17469
  const content_ = JSON.stringify(request);
17286
17470
  let options_ = {
17287
17471
  body: content_,
17288
- method: "PUT",
17472
+ method: "POST",
17289
17473
  headers: {
17290
17474
  "Content-Type": "application/json",
17291
17475
  "Accept": "application/json"
@@ -17294,10 +17478,50 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17294
17478
  return this.transformOptions(options_).then(transformedOptions_ => {
17295
17479
  return this.http.fetch(url_, transformedOptions_);
17296
17480
  }).then((_response) => {
17297
- return this.processUpdateSchemaGroupedElements(_response);
17481
+ return this.processPostListMeasurementFormSchemas(_response);
17298
17482
  });
17299
17483
  }
17300
- processUpdateSchemaGroupedElements(response) {
17484
+ processPostListMeasurementFormSchemas(response) {
17485
+ const status = response.status;
17486
+ let _headers = {};
17487
+ if (response.headers && response.headers.forEach) {
17488
+ response.headers.forEach((v, k) => _headers[k] = v);
17489
+ }
17490
+ ;
17491
+ if (status === 200) {
17492
+ return response.text().then((_responseText) => {
17493
+ let result200 = null;
17494
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
17495
+ result200 = PagedResultOfMeasurementFormListDto.fromJS(resultData200);
17496
+ return result200;
17497
+ });
17498
+ }
17499
+ else if (status !== 200 && status !== 204) {
17500
+ return response.text().then((_responseText) => {
17501
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
17502
+ });
17503
+ }
17504
+ return Promise.resolve(null);
17505
+ }
17506
+ getMeasurementFormSchema(id) {
17507
+ let url_ = this.baseUrl + "/measurementforms/schemas/{id}";
17508
+ if (id === undefined || id === null)
17509
+ throw new Error("The parameter 'id' must be defined.");
17510
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
17511
+ url_ = url_.replace(/[?&]$/, "");
17512
+ let options_ = {
17513
+ method: "GET",
17514
+ headers: {
17515
+ "Accept": "application/json"
17516
+ }
17517
+ };
17518
+ return this.transformOptions(options_).then(transformedOptions_ => {
17519
+ return this.http.fetch(url_, transformedOptions_);
17520
+ }).then((_response) => {
17521
+ return this.processGetMeasurementFormSchema(_response);
17522
+ });
17523
+ }
17524
+ processGetMeasurementFormSchema(response) {
17301
17525
  const status = response.status;
17302
17526
  let _headers = {};
17303
17527
  if (response.headers && response.headers.forEach) {
@@ -17319,8 +17543,8 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17319
17543
  }
17320
17544
  return Promise.resolve(null);
17321
17545
  }
17322
- updateSchemaRow(id, request) {
17323
- let url_ = this.baseUrl + "/measurementforms/schemas/{id}/updaterow";
17546
+ updateMeasurementFormSchema(id, request) {
17547
+ let url_ = this.baseUrl + "/measurementforms/schemas/{id}";
17324
17548
  if (id === undefined || id === null)
17325
17549
  throw new Error("The parameter 'id' must be defined.");
17326
17550
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
@@ -17337,10 +17561,10 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17337
17561
  return this.transformOptions(options_).then(transformedOptions_ => {
17338
17562
  return this.http.fetch(url_, transformedOptions_);
17339
17563
  }).then((_response) => {
17340
- return this.processUpdateSchemaRow(_response);
17564
+ return this.processUpdateMeasurementFormSchema(_response);
17341
17565
  });
17342
17566
  }
17343
- processUpdateSchemaRow(response) {
17567
+ processUpdateMeasurementFormSchema(response) {
17344
17568
  const status = response.status;
17345
17569
  let _headers = {};
17346
17570
  if (response.headers && response.headers.forEach) {
@@ -17362,8 +17586,43 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17362
17586
  }
17363
17587
  return Promise.resolve(null);
17364
17588
  }
17365
- deleteSchemaRows(id, request) {
17366
- let url_ = this.baseUrl + "/measurementforms/schemas/{id}/deleterows";
17589
+ deleteMeasurementForm(id) {
17590
+ let url_ = this.baseUrl + "/measurementforms/schemas/{id}";
17591
+ if (id === undefined || id === null)
17592
+ throw new Error("The parameter 'id' must be defined.");
17593
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
17594
+ url_ = url_.replace(/[?&]$/, "");
17595
+ let options_ = {
17596
+ method: "DELETE",
17597
+ headers: {}
17598
+ };
17599
+ return this.transformOptions(options_).then(transformedOptions_ => {
17600
+ return this.http.fetch(url_, transformedOptions_);
17601
+ }).then((_response) => {
17602
+ return this.processDeleteMeasurementForm(_response);
17603
+ });
17604
+ }
17605
+ processDeleteMeasurementForm(response) {
17606
+ const status = response.status;
17607
+ let _headers = {};
17608
+ if (response.headers && response.headers.forEach) {
17609
+ response.headers.forEach((v, k) => _headers[k] = v);
17610
+ }
17611
+ ;
17612
+ if (status === 204) {
17613
+ return response.text().then((_responseText) => {
17614
+ return;
17615
+ });
17616
+ }
17617
+ else if (status !== 200 && status !== 204) {
17618
+ return response.text().then((_responseText) => {
17619
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
17620
+ });
17621
+ }
17622
+ return Promise.resolve(null);
17623
+ }
17624
+ copyMeasurementFormSchema(id, request) {
17625
+ let url_ = this.baseUrl + "/measurementforms/schemas/{id}/copy";
17367
17626
  if (id === undefined || id === null)
17368
17627
  throw new Error("The parameter 'id' must be defined.");
17369
17628
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
@@ -17371,7 +17630,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17371
17630
  const content_ = JSON.stringify(request);
17372
17631
  let options_ = {
17373
17632
  body: content_,
17374
- method: "DELETE",
17633
+ method: "POST",
17375
17634
  headers: {
17376
17635
  "Content-Type": "application/json",
17377
17636
  "Accept": "application/json"
@@ -17380,10 +17639,10 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17380
17639
  return this.transformOptions(options_).then(transformedOptions_ => {
17381
17640
  return this.http.fetch(url_, transformedOptions_);
17382
17641
  }).then((_response) => {
17383
- return this.processDeleteSchemaRows(_response);
17642
+ return this.processCopyMeasurementFormSchema(_response);
17384
17643
  });
17385
17644
  }
17386
- processDeleteSchemaRows(response) {
17645
+ processCopyMeasurementFormSchema(response) {
17387
17646
  const status = response.status;
17388
17647
  let _headers = {};
17389
17648
  if (response.headers && response.headers.forEach) {
@@ -17394,7 +17653,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17394
17653
  return response.text().then((_responseText) => {
17395
17654
  let result200 = null;
17396
17655
  let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
17397
- result200 = MeasurementFormSchemaDto.fromJS(resultData200);
17656
+ result200 = MeasurementFormDto.fromJS(resultData200);
17398
17657
  return result200;
17399
17658
  });
17400
17659
  }
@@ -17405,8 +17664,8 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17405
17664
  }
17406
17665
  return Promise.resolve(null);
17407
17666
  }
17408
- uploadMeasurementImage(id, request) {
17409
- let url_ = this.baseUrl + "/measurementforms/schemas/{id}/uploadmeasurementimage";
17667
+ updateSchemaGroupedElements(id, request) {
17668
+ let url_ = this.baseUrl + "/measurementforms/schemas/{id}/groupedelements";
17410
17669
  if (id === undefined || id === null)
17411
17670
  throw new Error("The parameter 'id' must be defined.");
17412
17671
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
@@ -17423,10 +17682,10 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17423
17682
  return this.transformOptions(options_).then(transformedOptions_ => {
17424
17683
  return this.http.fetch(url_, transformedOptions_);
17425
17684
  }).then((_response) => {
17426
- return this.processUploadMeasurementImage(_response);
17685
+ return this.processUpdateSchemaGroupedElements(_response);
17427
17686
  });
17428
17687
  }
17429
- processUploadMeasurementImage(response) {
17688
+ processUpdateSchemaGroupedElements(response) {
17430
17689
  const status = response.status;
17431
17690
  let _headers = {};
17432
17691
  if (response.headers && response.headers.forEach) {
@@ -17448,8 +17707,8 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17448
17707
  }
17449
17708
  return Promise.resolve(null);
17450
17709
  }
17451
- updateSchemaSettings(id, request) {
17452
- let url_ = this.baseUrl + "/measurementforms/schemas/{id}/schemasettings";
17710
+ updateSchemaRow(id, request) {
17711
+ let url_ = this.baseUrl + "/measurementforms/schemas/{id}/updaterow";
17453
17712
  if (id === undefined || id === null)
17454
17713
  throw new Error("The parameter 'id' must be defined.");
17455
17714
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
@@ -17466,10 +17725,10 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17466
17725
  return this.transformOptions(options_).then(transformedOptions_ => {
17467
17726
  return this.http.fetch(url_, transformedOptions_);
17468
17727
  }).then((_response) => {
17469
- return this.processUpdateSchemaSettings(_response);
17728
+ return this.processUpdateSchemaRow(_response);
17470
17729
  });
17471
17730
  }
17472
- processUpdateSchemaSettings(response) {
17731
+ processUpdateSchemaRow(response) {
17473
17732
  const status = response.status;
17474
17733
  let _headers = {};
17475
17734
  if (response.headers && response.headers.forEach) {
@@ -17480,7 +17739,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17480
17739
  return response.text().then((_responseText) => {
17481
17740
  let result200 = null;
17482
17741
  let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
17483
- result200 = UpdateSchemaSettingsRequest.fromJS(resultData200);
17742
+ result200 = MeasurementFormSchemaDto.fromJS(resultData200);
17484
17743
  return result200;
17485
17744
  });
17486
17745
  }
@@ -17491,8 +17750,8 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17491
17750
  }
17492
17751
  return Promise.resolve(null);
17493
17752
  }
17494
- uploadSchemaDrawing(id, request) {
17495
- let url_ = this.baseUrl + "/measurementforms/schemas/{id}/uploaddrawing";
17753
+ deleteSchemaRows(id, request) {
17754
+ let url_ = this.baseUrl + "/measurementforms/schemas/{id}/deleterows";
17496
17755
  if (id === undefined || id === null)
17497
17756
  throw new Error("The parameter 'id' must be defined.");
17498
17757
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
@@ -17500,7 +17759,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17500
17759
  const content_ = JSON.stringify(request);
17501
17760
  let options_ = {
17502
17761
  body: content_,
17503
- method: "POST",
17762
+ method: "DELETE",
17504
17763
  headers: {
17505
17764
  "Content-Type": "application/json",
17506
17765
  "Accept": "application/json"
@@ -17509,10 +17768,10 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17509
17768
  return this.transformOptions(options_).then(transformedOptions_ => {
17510
17769
  return this.http.fetch(url_, transformedOptions_);
17511
17770
  }).then((_response) => {
17512
- return this.processUploadSchemaDrawing(_response);
17771
+ return this.processDeleteSchemaRows(_response);
17513
17772
  });
17514
17773
  }
17515
- processUploadSchemaDrawing(response) {
17774
+ processDeleteSchemaRows(response) {
17516
17775
  const status = response.status;
17517
17776
  let _headers = {};
17518
17777
  if (response.headers && response.headers.forEach) {
@@ -17534,8 +17793,8 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17534
17793
  }
17535
17794
  return Promise.resolve(null);
17536
17795
  }
17537
- uploadSchemaAttachment(id, request) {
17538
- let url_ = this.baseUrl + "/measurementforms/schemas/{id}/uploadattachment";
17796
+ uploadMeasurementImage(id, request) {
17797
+ let url_ = this.baseUrl + "/measurementforms/schemas/{id}/uploadmeasurementimage";
17539
17798
  if (id === undefined || id === null)
17540
17799
  throw new Error("The parameter 'id' must be defined.");
17541
17800
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
@@ -17543,7 +17802,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17543
17802
  const content_ = JSON.stringify(request);
17544
17803
  let options_ = {
17545
17804
  body: content_,
17546
- method: "POST",
17805
+ method: "PUT",
17547
17806
  headers: {
17548
17807
  "Content-Type": "application/json",
17549
17808
  "Accept": "application/json"
@@ -17552,10 +17811,10 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17552
17811
  return this.transformOptions(options_).then(transformedOptions_ => {
17553
17812
  return this.http.fetch(url_, transformedOptions_);
17554
17813
  }).then((_response) => {
17555
- return this.processUploadSchemaAttachment(_response);
17814
+ return this.processUploadMeasurementImage(_response);
17556
17815
  });
17557
17816
  }
17558
- processUploadSchemaAttachment(response) {
17817
+ processUploadMeasurementImage(response) {
17559
17818
  const status = response.status;
17560
17819
  let _headers = {};
17561
17820
  if (response.headers && response.headers.forEach) {
@@ -17577,25 +17836,28 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17577
17836
  }
17578
17837
  return Promise.resolve(null);
17579
17838
  }
17580
- getMeasurementFormImportStatus(id) {
17581
- let url_ = this.baseUrl + "/measurementforms/schemas/{id}/importstatus";
17839
+ updateSchemaSettings(id, request) {
17840
+ let url_ = this.baseUrl + "/measurementforms/schemas/{id}/schemasettings";
17582
17841
  if (id === undefined || id === null)
17583
17842
  throw new Error("The parameter 'id' must be defined.");
17584
17843
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
17585
17844
  url_ = url_.replace(/[?&]$/, "");
17845
+ const content_ = JSON.stringify(request);
17586
17846
  let options_ = {
17587
- method: "GET",
17847
+ body: content_,
17848
+ method: "PUT",
17588
17849
  headers: {
17850
+ "Content-Type": "application/json",
17589
17851
  "Accept": "application/json"
17590
17852
  }
17591
17853
  };
17592
17854
  return this.transformOptions(options_).then(transformedOptions_ => {
17593
17855
  return this.http.fetch(url_, transformedOptions_);
17594
17856
  }).then((_response) => {
17595
- return this.processGetMeasurementFormImportStatus(_response);
17857
+ return this.processUpdateSchemaSettings(_response);
17596
17858
  });
17597
17859
  }
17598
- processGetMeasurementFormImportStatus(response) {
17860
+ processUpdateSchemaSettings(response) {
17599
17861
  const status = response.status;
17600
17862
  let _headers = {};
17601
17863
  if (response.headers && response.headers.forEach) {
@@ -17606,7 +17868,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17606
17868
  return response.text().then((_responseText) => {
17607
17869
  let result200 = null;
17608
17870
  let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
17609
- result200 = MeasurementFormImportStatusDto.fromJS(resultData200);
17871
+ result200 = UpdateSchemaSettingsRequest.fromJS(resultData200);
17610
17872
  return result200;
17611
17873
  });
17612
17874
  }
@@ -17617,33 +17879,28 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17617
17879
  }
17618
17880
  return Promise.resolve(null);
17619
17881
  }
17620
- listLinkableMeasurementFormSchemas(schemaId, pageSize, filter, continuationToken) {
17621
- let url_ = this.baseUrl + "/measurementforms/schemas/{schemaId}/listlinkableschemas?";
17622
- if (schemaId === undefined || schemaId === null)
17623
- throw new Error("The parameter 'schemaId' must be defined.");
17624
- url_ = url_.replace("{schemaId}", encodeURIComponent("" + schemaId));
17625
- if (pageSize === null)
17626
- throw new Error("The parameter 'pageSize' cannot be null.");
17627
- else if (pageSize !== undefined)
17628
- url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
17629
- if (filter !== undefined && filter !== null)
17630
- url_ += "filter=" + encodeURIComponent("" + filter) + "&";
17631
- if (continuationToken !== undefined && continuationToken !== null)
17632
- url_ += "continuationToken=" + encodeURIComponent("" + continuationToken) + "&";
17882
+ uploadSchemaDrawing(id, request) {
17883
+ let url_ = this.baseUrl + "/measurementforms/schemas/{id}/uploaddrawing";
17884
+ if (id === undefined || id === null)
17885
+ throw new Error("The parameter 'id' must be defined.");
17886
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
17633
17887
  url_ = url_.replace(/[?&]$/, "");
17888
+ const content_ = JSON.stringify(request);
17634
17889
  let options_ = {
17635
- method: "GET",
17890
+ body: content_,
17891
+ method: "POST",
17636
17892
  headers: {
17893
+ "Content-Type": "application/json",
17637
17894
  "Accept": "application/json"
17638
17895
  }
17639
17896
  };
17640
17897
  return this.transformOptions(options_).then(transformedOptions_ => {
17641
17898
  return this.http.fetch(url_, transformedOptions_);
17642
17899
  }).then((_response) => {
17643
- return this.processListLinkableMeasurementFormSchemas(_response);
17900
+ return this.processUploadSchemaDrawing(_response);
17644
17901
  });
17645
17902
  }
17646
- processListLinkableMeasurementFormSchemas(response) {
17903
+ processUploadSchemaDrawing(response) {
17647
17904
  const status = response.status;
17648
17905
  let _headers = {};
17649
17906
  if (response.headers && response.headers.forEach) {
@@ -17654,7 +17911,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17654
17911
  return response.text().then((_responseText) => {
17655
17912
  let result200 = null;
17656
17913
  let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
17657
- result200 = PagedResultOfMeasurementFormListDto.fromJS(resultData200);
17914
+ result200 = MeasurementFormSchemaDto.fromJS(resultData200);
17658
17915
  return result200;
17659
17916
  });
17660
17917
  }
@@ -17665,8 +17922,11 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17665
17922
  }
17666
17923
  return Promise.resolve(null);
17667
17924
  }
17668
- postListLinkableMeasurementFormSchemas(request) {
17669
- let url_ = this.baseUrl + "/measurementforms/schemas/listlinkableschemas";
17925
+ uploadSchemaAttachment(id, request) {
17926
+ let url_ = this.baseUrl + "/measurementforms/schemas/{id}/uploadattachment";
17927
+ if (id === undefined || id === null)
17928
+ throw new Error("The parameter 'id' must be defined.");
17929
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
17670
17930
  url_ = url_.replace(/[?&]$/, "");
17671
17931
  const content_ = JSON.stringify(request);
17672
17932
  let options_ = {
@@ -17680,10 +17940,10 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17680
17940
  return this.transformOptions(options_).then(transformedOptions_ => {
17681
17941
  return this.http.fetch(url_, transformedOptions_);
17682
17942
  }).then((_response) => {
17683
- return this.processPostListLinkableMeasurementFormSchemas(_response);
17943
+ return this.processUploadSchemaAttachment(_response);
17684
17944
  });
17685
17945
  }
17686
- processPostListLinkableMeasurementFormSchemas(response) {
17946
+ processUploadSchemaAttachment(response) {
17687
17947
  const status = response.status;
17688
17948
  let _headers = {};
17689
17949
  if (response.headers && response.headers.forEach) {
@@ -17694,7 +17954,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17694
17954
  return response.text().then((_responseText) => {
17695
17955
  let result200 = null;
17696
17956
  let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
17697
- result200 = PagedResultOfMeasurementFormListDto.fromJS(resultData200);
17957
+ result200 = MeasurementFormSchemaDto.fromJS(resultData200);
17698
17958
  return result200;
17699
17959
  });
17700
17960
  }
@@ -17705,28 +17965,25 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17705
17965
  }
17706
17966
  return Promise.resolve(null);
17707
17967
  }
17708
- createMeasurementFormSchemaLink(schemaId, request) {
17709
- let url_ = this.baseUrl + "/measurementforms/schemas/{schemaId}/link";
17710
- if (schemaId === undefined || schemaId === null)
17711
- throw new Error("The parameter 'schemaId' must be defined.");
17712
- url_ = url_.replace("{schemaId}", encodeURIComponent("" + schemaId));
17968
+ getMeasurementFormImportStatus(id) {
17969
+ let url_ = this.baseUrl + "/measurementforms/schemas/{id}/importstatus";
17970
+ if (id === undefined || id === null)
17971
+ throw new Error("The parameter 'id' must be defined.");
17972
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
17713
17973
  url_ = url_.replace(/[?&]$/, "");
17714
- const content_ = JSON.stringify(request);
17715
17974
  let options_ = {
17716
- body: content_,
17717
- method: "POST",
17975
+ method: "GET",
17718
17976
  headers: {
17719
- "Content-Type": "application/json",
17720
17977
  "Accept": "application/json"
17721
17978
  }
17722
17979
  };
17723
17980
  return this.transformOptions(options_).then(transformedOptions_ => {
17724
17981
  return this.http.fetch(url_, transformedOptions_);
17725
17982
  }).then((_response) => {
17726
- return this.processCreateMeasurementFormSchemaLink(_response);
17983
+ return this.processGetMeasurementFormImportStatus(_response);
17727
17984
  });
17728
17985
  }
17729
- processCreateMeasurementFormSchemaLink(response) {
17986
+ processGetMeasurementFormImportStatus(response) {
17730
17987
  const status = response.status;
17731
17988
  let _headers = {};
17732
17989
  if (response.headers && response.headers.forEach) {
@@ -17737,7 +17994,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17737
17994
  return response.text().then((_responseText) => {
17738
17995
  let result200 = null;
17739
17996
  let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
17740
- result200 = MeasurementFormDto.fromJS(resultData200);
17997
+ result200 = MeasurementFormImportStatusDto.fromJS(resultData200);
17741
17998
  return result200;
17742
17999
  });
17743
18000
  }
@@ -17748,35 +18005,45 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17748
18005
  }
17749
18006
  return Promise.resolve(null);
17750
18007
  }
17751
- deleteMeasurementFormSchemaLink(schemaId, linkedSchemaId) {
17752
- let url_ = this.baseUrl + "/measurementforms/schemas/{schemaId}/link/{linkedSchemaId}";
18008
+ listLinkableMeasurementFormSchemas(schemaId, pageSize, filter, continuationToken) {
18009
+ let url_ = this.baseUrl + "/measurementforms/schemas/{schemaId}/listlinkableschemas?";
17753
18010
  if (schemaId === undefined || schemaId === null)
17754
18011
  throw new Error("The parameter 'schemaId' must be defined.");
17755
18012
  url_ = url_.replace("{schemaId}", encodeURIComponent("" + schemaId));
17756
- if (linkedSchemaId === undefined || linkedSchemaId === null)
17757
- throw new Error("The parameter 'linkedSchemaId' must be defined.");
17758
- url_ = url_.replace("{linkedSchemaId}", encodeURIComponent("" + linkedSchemaId));
18013
+ if (pageSize === null)
18014
+ throw new Error("The parameter 'pageSize' cannot be null.");
18015
+ else if (pageSize !== undefined)
18016
+ url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
18017
+ if (filter !== undefined && filter !== null)
18018
+ url_ += "filter=" + encodeURIComponent("" + filter) + "&";
18019
+ if (continuationToken !== undefined && continuationToken !== null)
18020
+ url_ += "continuationToken=" + encodeURIComponent("" + continuationToken) + "&";
17759
18021
  url_ = url_.replace(/[?&]$/, "");
17760
18022
  let options_ = {
17761
- method: "DELETE",
17762
- headers: {}
18023
+ method: "GET",
18024
+ headers: {
18025
+ "Accept": "application/json"
18026
+ }
17763
18027
  };
17764
18028
  return this.transformOptions(options_).then(transformedOptions_ => {
17765
18029
  return this.http.fetch(url_, transformedOptions_);
17766
18030
  }).then((_response) => {
17767
- return this.processDeleteMeasurementFormSchemaLink(_response);
18031
+ return this.processListLinkableMeasurementFormSchemas(_response);
17768
18032
  });
17769
18033
  }
17770
- processDeleteMeasurementFormSchemaLink(response) {
18034
+ processListLinkableMeasurementFormSchemas(response) {
17771
18035
  const status = response.status;
17772
18036
  let _headers = {};
17773
18037
  if (response.headers && response.headers.forEach) {
17774
18038
  response.headers.forEach((v, k) => _headers[k] = v);
17775
18039
  }
17776
18040
  ;
17777
- if (status === 204) {
18041
+ if (status === 200) {
17778
18042
  return response.text().then((_responseText) => {
17779
- return;
18043
+ let result200 = null;
18044
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
18045
+ result200 = PagedResultOfMeasurementFormListDto.fromJS(resultData200);
18046
+ return result200;
17780
18047
  });
17781
18048
  }
17782
18049
  else if (status !== 200 && status !== 204) {
@@ -17786,25 +18053,25 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17786
18053
  }
17787
18054
  return Promise.resolve(null);
17788
18055
  }
17789
- releaseSchema(schemaId) {
17790
- let url_ = this.baseUrl + "/measurementforms/schemas/{schemaId}/release";
17791
- if (schemaId === undefined || schemaId === null)
17792
- throw new Error("The parameter 'schemaId' must be defined.");
17793
- url_ = url_.replace("{schemaId}", encodeURIComponent("" + schemaId));
18056
+ postListLinkableMeasurementFormSchemas(request) {
18057
+ let url_ = this.baseUrl + "/measurementforms/schemas/listlinkableschemas";
17794
18058
  url_ = url_.replace(/[?&]$/, "");
18059
+ const content_ = JSON.stringify(request);
17795
18060
  let options_ = {
18061
+ body: content_,
17796
18062
  method: "POST",
17797
18063
  headers: {
18064
+ "Content-Type": "application/json",
17798
18065
  "Accept": "application/json"
17799
18066
  }
17800
18067
  };
17801
18068
  return this.transformOptions(options_).then(transformedOptions_ => {
17802
18069
  return this.http.fetch(url_, transformedOptions_);
17803
18070
  }).then((_response) => {
17804
- return this.processReleaseSchema(_response);
18071
+ return this.processPostListLinkableMeasurementFormSchemas(_response);
17805
18072
  });
17806
18073
  }
17807
- processReleaseSchema(response) {
18074
+ processPostListLinkableMeasurementFormSchemas(response) {
17808
18075
  const status = response.status;
17809
18076
  let _headers = {};
17810
18077
  if (response.headers && response.headers.forEach) {
@@ -17815,7 +18082,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17815
18082
  return response.text().then((_responseText) => {
17816
18083
  let result200 = null;
17817
18084
  let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
17818
- result200 = MeasurementFormDto.fromJS(resultData200);
18085
+ result200 = PagedResultOfMeasurementFormListDto.fromJS(resultData200);
17819
18086
  return result200;
17820
18087
  });
17821
18088
  }
@@ -17826,25 +18093,146 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17826
18093
  }
17827
18094
  return Promise.resolve(null);
17828
18095
  }
17829
- revokeSchema(schemaId) {
17830
- let url_ = this.baseUrl + "/measurementforms/schemas/{schemaId}/revoke";
18096
+ createMeasurementFormSchemaLink(schemaId, request) {
18097
+ let url_ = this.baseUrl + "/measurementforms/schemas/{schemaId}/link";
17831
18098
  if (schemaId === undefined || schemaId === null)
17832
18099
  throw new Error("The parameter 'schemaId' must be defined.");
17833
18100
  url_ = url_.replace("{schemaId}", encodeURIComponent("" + schemaId));
17834
18101
  url_ = url_.replace(/[?&]$/, "");
18102
+ const content_ = JSON.stringify(request);
17835
18103
  let options_ = {
18104
+ body: content_,
17836
18105
  method: "POST",
17837
18106
  headers: {
18107
+ "Content-Type": "application/json",
17838
18108
  "Accept": "application/json"
17839
18109
  }
17840
18110
  };
17841
18111
  return this.transformOptions(options_).then(transformedOptions_ => {
17842
18112
  return this.http.fetch(url_, transformedOptions_);
17843
18113
  }).then((_response) => {
17844
- return this.processRevokeSchema(_response);
18114
+ return this.processCreateMeasurementFormSchemaLink(_response);
17845
18115
  });
17846
18116
  }
17847
- processRevokeSchema(response) {
18117
+ processCreateMeasurementFormSchemaLink(response) {
18118
+ const status = response.status;
18119
+ let _headers = {};
18120
+ if (response.headers && response.headers.forEach) {
18121
+ response.headers.forEach((v, k) => _headers[k] = v);
18122
+ }
18123
+ ;
18124
+ if (status === 200) {
18125
+ return response.text().then((_responseText) => {
18126
+ let result200 = null;
18127
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
18128
+ result200 = MeasurementFormDto.fromJS(resultData200);
18129
+ return result200;
18130
+ });
18131
+ }
18132
+ else if (status !== 200 && status !== 204) {
18133
+ return response.text().then((_responseText) => {
18134
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
18135
+ });
18136
+ }
18137
+ return Promise.resolve(null);
18138
+ }
18139
+ deleteMeasurementFormSchemaLink(schemaId, linkedSchemaId) {
18140
+ let url_ = this.baseUrl + "/measurementforms/schemas/{schemaId}/link/{linkedSchemaId}";
18141
+ if (schemaId === undefined || schemaId === null)
18142
+ throw new Error("The parameter 'schemaId' must be defined.");
18143
+ url_ = url_.replace("{schemaId}", encodeURIComponent("" + schemaId));
18144
+ if (linkedSchemaId === undefined || linkedSchemaId === null)
18145
+ throw new Error("The parameter 'linkedSchemaId' must be defined.");
18146
+ url_ = url_.replace("{linkedSchemaId}", encodeURIComponent("" + linkedSchemaId));
18147
+ url_ = url_.replace(/[?&]$/, "");
18148
+ let options_ = {
18149
+ method: "DELETE",
18150
+ headers: {}
18151
+ };
18152
+ return this.transformOptions(options_).then(transformedOptions_ => {
18153
+ return this.http.fetch(url_, transformedOptions_);
18154
+ }).then((_response) => {
18155
+ return this.processDeleteMeasurementFormSchemaLink(_response);
18156
+ });
18157
+ }
18158
+ processDeleteMeasurementFormSchemaLink(response) {
18159
+ const status = response.status;
18160
+ let _headers = {};
18161
+ if (response.headers && response.headers.forEach) {
18162
+ response.headers.forEach((v, k) => _headers[k] = v);
18163
+ }
18164
+ ;
18165
+ if (status === 204) {
18166
+ return response.text().then((_responseText) => {
18167
+ return;
18168
+ });
18169
+ }
18170
+ else if (status !== 200 && status !== 204) {
18171
+ return response.text().then((_responseText) => {
18172
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
18173
+ });
18174
+ }
18175
+ return Promise.resolve(null);
18176
+ }
18177
+ releaseSchema(schemaId) {
18178
+ let url_ = this.baseUrl + "/measurementforms/schemas/{schemaId}/release";
18179
+ if (schemaId === undefined || schemaId === null)
18180
+ throw new Error("The parameter 'schemaId' must be defined.");
18181
+ url_ = url_.replace("{schemaId}", encodeURIComponent("" + schemaId));
18182
+ url_ = url_.replace(/[?&]$/, "");
18183
+ let options_ = {
18184
+ method: "POST",
18185
+ headers: {
18186
+ "Accept": "application/json"
18187
+ }
18188
+ };
18189
+ return this.transformOptions(options_).then(transformedOptions_ => {
18190
+ return this.http.fetch(url_, transformedOptions_);
18191
+ }).then((_response) => {
18192
+ return this.processReleaseSchema(_response);
18193
+ });
18194
+ }
18195
+ processReleaseSchema(response) {
18196
+ const status = response.status;
18197
+ let _headers = {};
18198
+ if (response.headers && response.headers.forEach) {
18199
+ response.headers.forEach((v, k) => _headers[k] = v);
18200
+ }
18201
+ ;
18202
+ if (status === 200) {
18203
+ return response.text().then((_responseText) => {
18204
+ let result200 = null;
18205
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
18206
+ result200 = MeasurementFormDto.fromJS(resultData200);
18207
+ return result200;
18208
+ });
18209
+ }
18210
+ else if (status !== 200 && status !== 204) {
18211
+ return response.text().then((_responseText) => {
18212
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
18213
+ });
18214
+ }
18215
+ return Promise.resolve(null);
18216
+ }
18217
+ revokeSchema(schemaId) {
18218
+ let url_ = this.baseUrl + "/measurementforms/schemas/{schemaId}/revoke";
18219
+ if (schemaId === undefined || schemaId === null)
18220
+ throw new Error("The parameter 'schemaId' must be defined.");
18221
+ url_ = url_.replace("{schemaId}", encodeURIComponent("" + schemaId));
18222
+ url_ = url_.replace(/[?&]$/, "");
18223
+ let options_ = {
18224
+ method: "POST",
18225
+ headers: {
18226
+ "Accept": "application/json"
18227
+ }
18228
+ };
18229
+ return this.transformOptions(options_).then(transformedOptions_ => {
18230
+ return this.http.fetch(url_, transformedOptions_);
18231
+ }).then((_response) => {
18232
+ return this.processRevokeSchema(_response);
18233
+ });
18234
+ }
18235
+ processRevokeSchema(response) {
17848
18236
  const status = response.status;
17849
18237
  let _headers = {};
17850
18238
  if (response.headers && response.headers.forEach) {
@@ -17975,7 +18363,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17975
18363
  return response.text().then((_responseText) => {
17976
18364
  let result200 = null;
17977
18365
  let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
17978
- result200 = MeasurementFormSettingsDto.fromJS(resultData200);
18366
+ result200 = InspectCompanySettingsDto.fromJS(resultData200);
17979
18367
  return result200;
17980
18368
  });
17981
18369
  }
@@ -18018,7 +18406,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
18018
18406
  return response.text().then((_responseText) => {
18019
18407
  let result200 = null;
18020
18408
  let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
18021
- result200 = MeasurementFormSettingsDto.fromJS(resultData200);
18409
+ result200 = InspectCompanySettingsDto.fromJS(resultData200);
18022
18410
  return result200;
18023
18411
  });
18024
18412
  }
@@ -18289,8 +18677,11 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
18289
18677
  }
18290
18678
  return Promise.resolve(null);
18291
18679
  }
18292
- setMeasurementFormMappingBalloons(id, request) {
18293
- let url_ = this.baseUrl + "/measurementforms/schemas/mapping/{id}/balloons";
18680
+ /**
18681
+ * @deprecated
18682
+ */
18683
+ setMeasurementFormMappingBalloonsV2(id, request) {
18684
+ let url_ = this.baseUrl + "/measurementforms/schemas/mapping/{id}/balloons/v2";
18294
18685
  if (id === undefined || id === null)
18295
18686
  throw new Error("The parameter 'id' must be defined.");
18296
18687
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
@@ -18307,10 +18698,10 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
18307
18698
  return this.transformOptions(options_).then(transformedOptions_ => {
18308
18699
  return this.http.fetch(url_, transformedOptions_);
18309
18700
  }).then((_response) => {
18310
- return this.processSetMeasurementFormMappingBalloons(_response);
18701
+ return this.processSetMeasurementFormMappingBalloonsV2(_response);
18311
18702
  });
18312
18703
  }
18313
- processSetMeasurementFormMappingBalloons(response) {
18704
+ processSetMeasurementFormMappingBalloonsV2(response) {
18314
18705
  const status = response.status;
18315
18706
  let _headers = {};
18316
18707
  if (response.headers && response.headers.forEach) {
@@ -18332,11 +18723,11 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
18332
18723
  }
18333
18724
  return Promise.resolve(null);
18334
18725
  }
18335
- setMeasurementFormMappingBalloonsV2(id, request) {
18336
- let url_ = this.baseUrl + "/measurementforms/schemas/mapping/{id}/balloons/v2";
18337
- if (id === undefined || id === null)
18338
- throw new Error("The parameter 'id' must be defined.");
18339
- url_ = url_.replace("{id}", encodeURIComponent("" + id));
18726
+ setMeasurementFormReferencesMapping(mappingId, request) {
18727
+ let url_ = this.baseUrl + "/measurementforms/schemas/mapping/{mappingId}/references";
18728
+ if (mappingId === undefined || mappingId === null)
18729
+ throw new Error("The parameter 'mappingId' must be defined.");
18730
+ url_ = url_.replace("{mappingId}", encodeURIComponent("" + mappingId));
18340
18731
  url_ = url_.replace(/[?&]$/, "");
18341
18732
  const content_ = JSON.stringify(request);
18342
18733
  let options_ = {
@@ -18350,10 +18741,10 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
18350
18741
  return this.transformOptions(options_).then(transformedOptions_ => {
18351
18742
  return this.http.fetch(url_, transformedOptions_);
18352
18743
  }).then((_response) => {
18353
- return this.processSetMeasurementFormMappingBalloonsV2(_response);
18744
+ return this.processSetMeasurementFormReferencesMapping(_response);
18354
18745
  });
18355
18746
  }
18356
- processSetMeasurementFormMappingBalloonsV2(response) {
18747
+ processSetMeasurementFormReferencesMapping(response) {
18357
18748
  const status = response.status;
18358
18749
  let _headers = {};
18359
18750
  if (response.headers && response.headers.forEach) {
@@ -19301,7 +19692,7 @@ export class MeasurementFormSettingsClient extends AuthorizedApiBase {
19301
19692
  return response.text().then((_responseText) => {
19302
19693
  let result200 = null;
19303
19694
  let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
19304
- result200 = MeasurementFormSettingsDto.fromJS(resultData200);
19695
+ result200 = InspectCompanySettingsDto.fromJS(resultData200);
19305
19696
  return result200;
19306
19697
  });
19307
19698
  }
@@ -19341,7 +19732,7 @@ export class MeasurementFormSettingsClient extends AuthorizedApiBase {
19341
19732
  return response.text().then((_responseText) => {
19342
19733
  let result200 = null;
19343
19734
  let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
19344
- result200 = MeasurementFormSettingsDto.fromJS(resultData200);
19735
+ result200 = InspectCompanySettingsDto.fromJS(resultData200);
19345
19736
  return result200;
19346
19737
  });
19347
19738
  }
@@ -20828,342 +21219,6 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
20828
21219
  return Promise.resolve(null);
20829
21220
  }
20830
21221
  }
20831
- export class ElectricalClient extends AuthorizedApiBase {
20832
- constructor(configuration, baseUrl, http) {
20833
- super(configuration);
20834
- this.jsonParseReviver = undefined;
20835
- this.http = http ? http : window;
20836
- this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
20837
- }
20838
- listElectricalSourceTypes() {
20839
- let url_ = this.baseUrl + "/iot/electrical/sourcetypes";
20840
- url_ = url_.replace(/[?&]$/, "");
20841
- let options_ = {
20842
- method: "GET",
20843
- headers: {
20844
- "Accept": "application/json"
20845
- }
20846
- };
20847
- return this.transformOptions(options_).then(transformedOptions_ => {
20848
- return this.http.fetch(url_, transformedOptions_);
20849
- }).then((_response) => {
20850
- return this.processListElectricalSourceTypes(_response);
20851
- });
20852
- }
20853
- processListElectricalSourceTypes(response) {
20854
- const status = response.status;
20855
- let _headers = {};
20856
- if (response.headers && response.headers.forEach) {
20857
- response.headers.forEach((v, k) => _headers[k] = v);
20858
- }
20859
- ;
20860
- if (status === 200) {
20861
- return response.text().then((_responseText) => {
20862
- let result200 = null;
20863
- let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
20864
- if (Array.isArray(resultData200)) {
20865
- result200 = [];
20866
- for (let item of resultData200)
20867
- result200.push(IotTypeSourceDto.fromJS(item));
20868
- }
20869
- return result200;
20870
- });
20871
- }
20872
- else if (status !== 200 && status !== 204) {
20873
- return response.text().then((_responseText) => {
20874
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
20875
- });
20876
- }
20877
- return Promise.resolve(null);
20878
- }
20879
- listElectricalDataConfigs() {
20880
- let url_ = this.baseUrl + "/iot/electrical";
20881
- url_ = url_.replace(/[?&]$/, "");
20882
- let options_ = {
20883
- method: "GET",
20884
- headers: {
20885
- "Accept": "application/json"
20886
- }
20887
- };
20888
- return this.transformOptions(options_).then(transformedOptions_ => {
20889
- return this.http.fetch(url_, transformedOptions_);
20890
- }).then((_response) => {
20891
- return this.processListElectricalDataConfigs(_response);
20892
- });
20893
- }
20894
- processListElectricalDataConfigs(response) {
20895
- const status = response.status;
20896
- let _headers = {};
20897
- if (response.headers && response.headers.forEach) {
20898
- response.headers.forEach((v, k) => _headers[k] = v);
20899
- }
20900
- ;
20901
- if (status === 200) {
20902
- return response.text().then((_responseText) => {
20903
- let result200 = null;
20904
- let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
20905
- if (Array.isArray(resultData200)) {
20906
- result200 = [];
20907
- for (let item of resultData200)
20908
- result200.push(ElectricalIotConfigDto.fromJS(item));
20909
- }
20910
- return result200;
20911
- });
20912
- }
20913
- else if (status !== 200 && status !== 204) {
20914
- return response.text().then((_responseText) => {
20915
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
20916
- });
20917
- }
20918
- return Promise.resolve(null);
20919
- }
20920
- createElectricalIotConfig(request) {
20921
- let url_ = this.baseUrl + "/iot/electrical";
20922
- url_ = url_.replace(/[?&]$/, "");
20923
- const content_ = JSON.stringify(request);
20924
- let options_ = {
20925
- body: content_,
20926
- method: "POST",
20927
- headers: {
20928
- "Content-Type": "application/json",
20929
- "Accept": "application/json"
20930
- }
20931
- };
20932
- return this.transformOptions(options_).then(transformedOptions_ => {
20933
- return this.http.fetch(url_, transformedOptions_);
20934
- }).then((_response) => {
20935
- return this.processCreateElectricalIotConfig(_response);
20936
- });
20937
- }
20938
- processCreateElectricalIotConfig(response) {
20939
- const status = response.status;
20940
- let _headers = {};
20941
- if (response.headers && response.headers.forEach) {
20942
- response.headers.forEach((v, k) => _headers[k] = v);
20943
- }
20944
- ;
20945
- if (status === 200) {
20946
- return response.text().then((_responseText) => {
20947
- let result200 = null;
20948
- let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
20949
- result200 = ElectricalIotConfigDto.fromJS(resultData200);
20950
- return result200;
20951
- });
20952
- }
20953
- else if (status !== 200 && status !== 204) {
20954
- return response.text().then((_responseText) => {
20955
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
20956
- });
20957
- }
20958
- return Promise.resolve(null);
20959
- }
20960
- deleteElectricalIotConfig(typeId, id) {
20961
- let url_ = this.baseUrl + "/iot/electrical/{typeId}/{id}";
20962
- if (typeId === undefined || typeId === null)
20963
- throw new Error("The parameter 'typeId' must be defined.");
20964
- url_ = url_.replace("{typeId}", encodeURIComponent("" + typeId));
20965
- if (id === undefined || id === null)
20966
- throw new Error("The parameter 'id' must be defined.");
20967
- url_ = url_.replace("{id}", encodeURIComponent("" + id));
20968
- url_ = url_.replace(/[?&]$/, "");
20969
- let options_ = {
20970
- method: "DELETE",
20971
- headers: {}
20972
- };
20973
- return this.transformOptions(options_).then(transformedOptions_ => {
20974
- return this.http.fetch(url_, transformedOptions_);
20975
- }).then((_response) => {
20976
- return this.processDeleteElectricalIotConfig(_response);
20977
- });
20978
- }
20979
- processDeleteElectricalIotConfig(response) {
20980
- const status = response.status;
20981
- let _headers = {};
20982
- if (response.headers && response.headers.forEach) {
20983
- response.headers.forEach((v, k) => _headers[k] = v);
20984
- }
20985
- ;
20986
- if (status === 204) {
20987
- return response.text().then((_responseText) => {
20988
- return;
20989
- });
20990
- }
20991
- else if (status !== 200 && status !== 204) {
20992
- return response.text().then((_responseText) => {
20993
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
20994
- });
20995
- }
20996
- return Promise.resolve(null);
20997
- }
20998
- }
20999
- export class WeldingClient extends AuthorizedApiBase {
21000
- constructor(configuration, baseUrl, http) {
21001
- super(configuration);
21002
- this.jsonParseReviver = undefined;
21003
- this.http = http ? http : window;
21004
- this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
21005
- }
21006
- listWeldingSourceTypes() {
21007
- let url_ = this.baseUrl + "/iot/welding/sourcetypes";
21008
- url_ = url_.replace(/[?&]$/, "");
21009
- let options_ = {
21010
- method: "GET",
21011
- headers: {
21012
- "Accept": "application/json"
21013
- }
21014
- };
21015
- return this.transformOptions(options_).then(transformedOptions_ => {
21016
- return this.http.fetch(url_, transformedOptions_);
21017
- }).then((_response) => {
21018
- return this.processListWeldingSourceTypes(_response);
21019
- });
21020
- }
21021
- processListWeldingSourceTypes(response) {
21022
- const status = response.status;
21023
- let _headers = {};
21024
- if (response.headers && response.headers.forEach) {
21025
- response.headers.forEach((v, k) => _headers[k] = v);
21026
- }
21027
- ;
21028
- if (status === 200) {
21029
- return response.text().then((_responseText) => {
21030
- let result200 = null;
21031
- let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
21032
- if (Array.isArray(resultData200)) {
21033
- result200 = [];
21034
- for (let item of resultData200)
21035
- result200.push(IotTypeSourceDto.fromJS(item));
21036
- }
21037
- return result200;
21038
- });
21039
- }
21040
- else if (status !== 200 && status !== 204) {
21041
- return response.text().then((_responseText) => {
21042
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
21043
- });
21044
- }
21045
- return Promise.resolve(null);
21046
- }
21047
- listElectricalDataConfigs() {
21048
- let url_ = this.baseUrl + "/iot/welding";
21049
- url_ = url_.replace(/[?&]$/, "");
21050
- let options_ = {
21051
- method: "GET",
21052
- headers: {
21053
- "Accept": "application/json"
21054
- }
21055
- };
21056
- return this.transformOptions(options_).then(transformedOptions_ => {
21057
- return this.http.fetch(url_, transformedOptions_);
21058
- }).then((_response) => {
21059
- return this.processListElectricalDataConfigs(_response);
21060
- });
21061
- }
21062
- processListElectricalDataConfigs(response) {
21063
- const status = response.status;
21064
- let _headers = {};
21065
- if (response.headers && response.headers.forEach) {
21066
- response.headers.forEach((v, k) => _headers[k] = v);
21067
- }
21068
- ;
21069
- if (status === 200) {
21070
- return response.text().then((_responseText) => {
21071
- let result200 = null;
21072
- let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
21073
- if (Array.isArray(resultData200)) {
21074
- result200 = [];
21075
- for (let item of resultData200)
21076
- result200.push(WeldingIotConfigDto.fromJS(item));
21077
- }
21078
- return result200;
21079
- });
21080
- }
21081
- else if (status !== 200 && status !== 204) {
21082
- return response.text().then((_responseText) => {
21083
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
21084
- });
21085
- }
21086
- return Promise.resolve(null);
21087
- }
21088
- createWeldingIotConfig(request) {
21089
- let url_ = this.baseUrl + "/iot/welding";
21090
- url_ = url_.replace(/[?&]$/, "");
21091
- const content_ = JSON.stringify(request);
21092
- let options_ = {
21093
- body: content_,
21094
- method: "POST",
21095
- headers: {
21096
- "Content-Type": "application/json",
21097
- "Accept": "application/json"
21098
- }
21099
- };
21100
- return this.transformOptions(options_).then(transformedOptions_ => {
21101
- return this.http.fetch(url_, transformedOptions_);
21102
- }).then((_response) => {
21103
- return this.processCreateWeldingIotConfig(_response);
21104
- });
21105
- }
21106
- processCreateWeldingIotConfig(response) {
21107
- const status = response.status;
21108
- let _headers = {};
21109
- if (response.headers && response.headers.forEach) {
21110
- response.headers.forEach((v, k) => _headers[k] = v);
21111
- }
21112
- ;
21113
- if (status === 200) {
21114
- return response.text().then((_responseText) => {
21115
- let result200 = null;
21116
- let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
21117
- result200 = WeldingIotConfigDto.fromJS(resultData200);
21118
- return result200;
21119
- });
21120
- }
21121
- else if (status !== 200 && status !== 204) {
21122
- return response.text().then((_responseText) => {
21123
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
21124
- });
21125
- }
21126
- return Promise.resolve(null);
21127
- }
21128
- deleteWeldingIotConfig(typeId, id) {
21129
- let url_ = this.baseUrl + "/iot/welding/{typeId}/{id}";
21130
- if (typeId === undefined || typeId === null)
21131
- throw new Error("The parameter 'typeId' must be defined.");
21132
- url_ = url_.replace("{typeId}", encodeURIComponent("" + typeId));
21133
- if (id === undefined || id === null)
21134
- throw new Error("The parameter 'id' must be defined.");
21135
- url_ = url_.replace("{id}", encodeURIComponent("" + id));
21136
- url_ = url_.replace(/[?&]$/, "");
21137
- let options_ = {
21138
- method: "DELETE",
21139
- headers: {}
21140
- };
21141
- return this.transformOptions(options_).then(transformedOptions_ => {
21142
- return this.http.fetch(url_, transformedOptions_);
21143
- }).then((_response) => {
21144
- return this.processDeleteWeldingIotConfig(_response);
21145
- });
21146
- }
21147
- processDeleteWeldingIotConfig(response) {
21148
- const status = response.status;
21149
- let _headers = {};
21150
- if (response.headers && response.headers.forEach) {
21151
- response.headers.forEach((v, k) => _headers[k] = v);
21152
- }
21153
- ;
21154
- if (status === 204) {
21155
- return response.text().then((_responseText) => {
21156
- return;
21157
- });
21158
- }
21159
- else if (status !== 200 && status !== 204) {
21160
- return response.text().then((_responseText) => {
21161
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
21162
- });
21163
- }
21164
- return Promise.resolve(null);
21165
- }
21166
- }
21167
21222
  export class CompaniesClient extends AuthorizedApiBase {
21168
21223
  constructor(configuration, baseUrl, http) {
21169
21224
  super(configuration);
@@ -23535,6 +23590,76 @@ export class StateDto {
23535
23590
  return data;
23536
23591
  }
23537
23592
  }
23593
+ export class TimelinesDto {
23594
+ constructor(data) {
23595
+ if (data) {
23596
+ for (var property in data) {
23597
+ if (data.hasOwnProperty(property))
23598
+ this[property] = data[property];
23599
+ }
23600
+ }
23601
+ if (!data) {
23602
+ this.machineStateTimeline = [];
23603
+ this.workorderTimeline = [];
23604
+ this.downtimeReasonsTimeline = [];
23605
+ this.programTimeline = [];
23606
+ }
23607
+ }
23608
+ init(_data) {
23609
+ if (_data) {
23610
+ if (Array.isArray(_data["machineStateTimeline"])) {
23611
+ this.machineStateTimeline = [];
23612
+ for (let item of _data["machineStateTimeline"])
23613
+ this.machineStateTimeline.push(MachineStateDatapoint.fromJS(item));
23614
+ }
23615
+ if (Array.isArray(_data["workorderTimeline"])) {
23616
+ this.workorderTimeline = [];
23617
+ for (let item of _data["workorderTimeline"])
23618
+ this.workorderTimeline.push(WorkOrderDatapoint.fromJS(item));
23619
+ }
23620
+ if (Array.isArray(_data["downtimeReasonsTimeline"])) {
23621
+ this.downtimeReasonsTimeline = [];
23622
+ for (let item of _data["downtimeReasonsTimeline"])
23623
+ this.downtimeReasonsTimeline.push(DowntimePeriodReasonDto.fromJS(item));
23624
+ }
23625
+ if (Array.isArray(_data["programTimeline"])) {
23626
+ this.programTimeline = [];
23627
+ for (let item of _data["programTimeline"])
23628
+ this.programTimeline.push(ProgramDatapoint.fromJS(item));
23629
+ }
23630
+ }
23631
+ }
23632
+ static fromJS(data) {
23633
+ data = typeof data === 'object' ? data : {};
23634
+ let result = new TimelinesDto();
23635
+ result.init(data);
23636
+ return result;
23637
+ }
23638
+ toJSON(data) {
23639
+ data = typeof data === 'object' ? data : {};
23640
+ if (Array.isArray(this.machineStateTimeline)) {
23641
+ data["machineStateTimeline"] = [];
23642
+ for (let item of this.machineStateTimeline)
23643
+ data["machineStateTimeline"].push(item.toJSON());
23644
+ }
23645
+ if (Array.isArray(this.workorderTimeline)) {
23646
+ data["workorderTimeline"] = [];
23647
+ for (let item of this.workorderTimeline)
23648
+ data["workorderTimeline"].push(item.toJSON());
23649
+ }
23650
+ if (Array.isArray(this.downtimeReasonsTimeline)) {
23651
+ data["downtimeReasonsTimeline"] = [];
23652
+ for (let item of this.downtimeReasonsTimeline)
23653
+ data["downtimeReasonsTimeline"].push(item.toJSON());
23654
+ }
23655
+ if (Array.isArray(this.programTimeline)) {
23656
+ data["programTimeline"] = [];
23657
+ for (let item of this.programTimeline)
23658
+ data["programTimeline"].push(item.toJSON());
23659
+ }
23660
+ return data;
23661
+ }
23662
+ }
23538
23663
  export class MachineStateDatapoint {
23539
23664
  constructor(data) {
23540
23665
  if (data) {
@@ -23658,175 +23783,7 @@ export class EmployeeDto {
23658
23783
  return data;
23659
23784
  }
23660
23785
  }
23661
- export class MachineUptimesAggregateDto {
23662
- constructor(data) {
23663
- if (data) {
23664
- for (var property in data) {
23665
- if (data.hasOwnProperty(property))
23666
- this[property] = data[property];
23667
- }
23668
- }
23669
- if (!data) {
23670
- this.machineUptimes = [];
23671
- this.sum = new MachineUptimeSumDto();
23672
- }
23673
- }
23674
- init(_data) {
23675
- if (_data) {
23676
- if (Array.isArray(_data["machineUptimes"])) {
23677
- this.machineUptimes = [];
23678
- for (let item of _data["machineUptimes"])
23679
- this.machineUptimes.push(MachineUptimeDto.fromJS(item));
23680
- }
23681
- this.sum = _data["sum"] ? MachineUptimeSumDto.fromJS(_data["sum"]) : new MachineUptimeSumDto();
23682
- }
23683
- }
23684
- static fromJS(data) {
23685
- data = typeof data === 'object' ? data : {};
23686
- let result = new MachineUptimesAggregateDto();
23687
- result.init(data);
23688
- return result;
23689
- }
23690
- toJSON(data) {
23691
- data = typeof data === 'object' ? data : {};
23692
- if (Array.isArray(this.machineUptimes)) {
23693
- data["machineUptimes"] = [];
23694
- for (let item of this.machineUptimes)
23695
- data["machineUptimes"].push(item.toJSON());
23696
- }
23697
- data["sum"] = this.sum ? this.sum.toJSON() : undefined;
23698
- return data;
23699
- }
23700
- }
23701
- export class MachineUptimeDto {
23702
- constructor(data) {
23703
- if (data) {
23704
- for (var property in data) {
23705
- if (data.hasOwnProperty(property))
23706
- this[property] = data[property];
23707
- }
23708
- }
23709
- }
23710
- init(_data) {
23711
- if (_data) {
23712
- this.assetExternalId = _data["assetExternalId"];
23713
- this.percent = _data["percent"];
23714
- this.numberOfSeconds = _data["numberOfSeconds"];
23715
- }
23716
- }
23717
- static fromJS(data) {
23718
- data = typeof data === 'object' ? data : {};
23719
- let result = new MachineUptimeDto();
23720
- result.init(data);
23721
- return result;
23722
- }
23723
- toJSON(data) {
23724
- data = typeof data === 'object' ? data : {};
23725
- data["assetExternalId"] = this.assetExternalId;
23726
- data["percent"] = this.percent;
23727
- data["numberOfSeconds"] = this.numberOfSeconds;
23728
- return data;
23729
- }
23730
- }
23731
- export class MachineUptimeSumDto {
23732
- constructor(data) {
23733
- if (data) {
23734
- for (var property in data) {
23735
- if (data.hasOwnProperty(property))
23736
- this[property] = data[property];
23737
- }
23738
- }
23739
- }
23740
- init(_data) {
23741
- if (_data) {
23742
- this.percent = _data["percent"];
23743
- this.numberOfSeconds = _data["numberOfSeconds"];
23744
- }
23745
- }
23746
- static fromJS(data) {
23747
- data = typeof data === 'object' ? data : {};
23748
- let result = new MachineUptimeSumDto();
23749
- result.init(data);
23750
- return result;
23751
- }
23752
- toJSON(data) {
23753
- data = typeof data === 'object' ? data : {};
23754
- data["percent"] = this.percent;
23755
- data["numberOfSeconds"] = this.numberOfSeconds;
23756
- return data;
23757
- }
23758
- }
23759
- export class ListMachineUptimesTodayRequest {
23760
- constructor(data) {
23761
- if (data) {
23762
- for (var property in data) {
23763
- if (data.hasOwnProperty(property))
23764
- this[property] = data[property];
23765
- }
23766
- }
23767
- }
23768
- init(_data) {
23769
- if (_data) {
23770
- if (Array.isArray(_data["machineExternalIds"])) {
23771
- this.machineExternalIds = [];
23772
- for (let item of _data["machineExternalIds"])
23773
- this.machineExternalIds.push(item);
23774
- }
23775
- this.utcOffset = _data["utcOffset"];
23776
- }
23777
- }
23778
- static fromJS(data) {
23779
- data = typeof data === 'object' ? data : {};
23780
- let result = new ListMachineUptimesTodayRequest();
23781
- result.init(data);
23782
- return result;
23783
- }
23784
- toJSON(data) {
23785
- data = typeof data === 'object' ? data : {};
23786
- if (Array.isArray(this.machineExternalIds)) {
23787
- data["machineExternalIds"] = [];
23788
- for (let item of this.machineExternalIds)
23789
- data["machineExternalIds"].push(item);
23790
- }
23791
- data["utcOffset"] = this.utcOffset;
23792
- return data;
23793
- }
23794
- }
23795
- export class PowerOnUtilizationList {
23796
- constructor(data) {
23797
- if (data) {
23798
- for (var property in data) {
23799
- if (data.hasOwnProperty(property))
23800
- this[property] = data[property];
23801
- }
23802
- }
23803
- }
23804
- init(_data) {
23805
- if (_data) {
23806
- if (Array.isArray(_data["machines"])) {
23807
- this.machines = [];
23808
- for (let item of _data["machines"])
23809
- this.machines.push(Machine.fromJS(item));
23810
- }
23811
- }
23812
- }
23813
- static fromJS(data) {
23814
- data = typeof data === 'object' ? data : {};
23815
- let result = new PowerOnUtilizationList();
23816
- result.init(data);
23817
- return result;
23818
- }
23819
- toJSON(data) {
23820
- data = typeof data === 'object' ? data : {};
23821
- if (Array.isArray(this.machines)) {
23822
- data["machines"] = [];
23823
- for (let item of this.machines)
23824
- data["machines"].push(item.toJSON());
23825
- }
23826
- return data;
23827
- }
23828
- }
23829
- export class Machine {
23786
+ export class WorkOrderDatapoint {
23830
23787
  constructor(data) {
23831
23788
  if (data) {
23832
23789
  for (var property in data) {
@@ -23837,62 +23794,42 @@ export class Machine {
23837
23794
  }
23838
23795
  init(_data) {
23839
23796
  if (_data) {
23840
- this.externalId = _data["externalId"];
23797
+ this.workOrder = _data["workOrder"];
23841
23798
  this.id = _data["id"];
23842
- this.name = _data["name"];
23843
- this.description = _data["description"];
23844
- if (Array.isArray(_data["datapoints"])) {
23845
- this.datapoints = [];
23846
- for (let item of _data["datapoints"])
23847
- this.datapoints.push(NumericNullableValueWithTimestamp.fromJS(item));
23799
+ this.externalId = _data["externalId"];
23800
+ this.subType = _data["subType"];
23801
+ this.startTime = _data["startTime"];
23802
+ this.endTime = _data["endTime"];
23803
+ if (_data["metaData"]) {
23804
+ this.metaData = {};
23805
+ for (let key in _data["metaData"]) {
23806
+ if (_data["metaData"].hasOwnProperty(key))
23807
+ this.metaData[key] = _data["metaData"][key];
23808
+ }
23848
23809
  }
23849
23810
  }
23850
23811
  }
23851
23812
  static fromJS(data) {
23852
23813
  data = typeof data === 'object' ? data : {};
23853
- let result = new Machine();
23814
+ let result = new WorkOrderDatapoint();
23854
23815
  result.init(data);
23855
23816
  return result;
23856
23817
  }
23857
23818
  toJSON(data) {
23858
23819
  data = typeof data === 'object' ? data : {};
23859
- data["externalId"] = this.externalId;
23820
+ data["workOrder"] = this.workOrder;
23860
23821
  data["id"] = this.id;
23861
- data["name"] = this.name;
23862
- data["description"] = this.description;
23863
- if (Array.isArray(this.datapoints)) {
23864
- data["datapoints"] = [];
23865
- for (let item of this.datapoints)
23866
- data["datapoints"].push(item.toJSON());
23867
- }
23868
- return data;
23869
- }
23870
- }
23871
- export class NumericNullableValueWithTimestamp {
23872
- constructor(data) {
23873
- if (data) {
23874
- for (var property in data) {
23875
- if (data.hasOwnProperty(property))
23876
- this[property] = data[property];
23822
+ data["externalId"] = this.externalId;
23823
+ data["subType"] = this.subType;
23824
+ data["startTime"] = this.startTime;
23825
+ data["endTime"] = this.endTime;
23826
+ if (this.metaData) {
23827
+ data["metaData"] = {};
23828
+ for (let key in this.metaData) {
23829
+ if (this.metaData.hasOwnProperty(key))
23830
+ data["metaData"][key] = this.metaData[key];
23877
23831
  }
23878
23832
  }
23879
- }
23880
- init(_data) {
23881
- if (_data) {
23882
- this.timestamp = _data["timestamp"];
23883
- this.value = _data["value"];
23884
- }
23885
- }
23886
- static fromJS(data) {
23887
- data = typeof data === 'object' ? data : {};
23888
- let result = new NumericNullableValueWithTimestamp();
23889
- result.init(data);
23890
- return result;
23891
- }
23892
- toJSON(data) {
23893
- data = typeof data === 'object' ? data : {};
23894
- data["timestamp"] = this.timestamp;
23895
- data["value"] = this.value;
23896
23833
  return data;
23897
23834
  }
23898
23835
  }
@@ -23924,6 +23861,276 @@ export class ProgramDatapoint {
23924
23861
  return data;
23925
23862
  }
23926
23863
  }
23864
+ export class TimelineFilterDto {
23865
+ constructor(data) {
23866
+ if (data) {
23867
+ for (var property in data) {
23868
+ if (data.hasOwnProperty(property))
23869
+ this[property] = data[property];
23870
+ }
23871
+ }
23872
+ }
23873
+ init(_data) {
23874
+ if (_data) {
23875
+ this.includeMachineState = _data["includeMachineState"];
23876
+ this.includeWorkorder = _data["includeWorkorder"];
23877
+ this.includeDowntimeReasons = _data["includeDowntimeReasons"];
23878
+ this.includeProgram = _data["includeProgram"];
23879
+ }
23880
+ }
23881
+ static fromJS(data) {
23882
+ data = typeof data === 'object' ? data : {};
23883
+ let result = new TimelineFilterDto();
23884
+ result.init(data);
23885
+ return result;
23886
+ }
23887
+ toJSON(data) {
23888
+ data = typeof data === 'object' ? data : {};
23889
+ data["includeMachineState"] = this.includeMachineState;
23890
+ data["includeWorkorder"] = this.includeWorkorder;
23891
+ data["includeDowntimeReasons"] = this.includeDowntimeReasons;
23892
+ data["includeProgram"] = this.includeProgram;
23893
+ return data;
23894
+ }
23895
+ }
23896
+ export class MachineUptimesAggregateDto {
23897
+ constructor(data) {
23898
+ if (data) {
23899
+ for (var property in data) {
23900
+ if (data.hasOwnProperty(property))
23901
+ this[property] = data[property];
23902
+ }
23903
+ }
23904
+ if (!data) {
23905
+ this.machineUptimes = [];
23906
+ this.sum = new MachineUptimeSumDto();
23907
+ }
23908
+ }
23909
+ init(_data) {
23910
+ if (_data) {
23911
+ if (Array.isArray(_data["machineUptimes"])) {
23912
+ this.machineUptimes = [];
23913
+ for (let item of _data["machineUptimes"])
23914
+ this.machineUptimes.push(MachineUptimeDto.fromJS(item));
23915
+ }
23916
+ this.sum = _data["sum"] ? MachineUptimeSumDto.fromJS(_data["sum"]) : new MachineUptimeSumDto();
23917
+ }
23918
+ }
23919
+ static fromJS(data) {
23920
+ data = typeof data === 'object' ? data : {};
23921
+ let result = new MachineUptimesAggregateDto();
23922
+ result.init(data);
23923
+ return result;
23924
+ }
23925
+ toJSON(data) {
23926
+ data = typeof data === 'object' ? data : {};
23927
+ if (Array.isArray(this.machineUptimes)) {
23928
+ data["machineUptimes"] = [];
23929
+ for (let item of this.machineUptimes)
23930
+ data["machineUptimes"].push(item.toJSON());
23931
+ }
23932
+ data["sum"] = this.sum ? this.sum.toJSON() : undefined;
23933
+ return data;
23934
+ }
23935
+ }
23936
+ export class MachineUptimeDto {
23937
+ constructor(data) {
23938
+ if (data) {
23939
+ for (var property in data) {
23940
+ if (data.hasOwnProperty(property))
23941
+ this[property] = data[property];
23942
+ }
23943
+ }
23944
+ }
23945
+ init(_data) {
23946
+ if (_data) {
23947
+ this.assetExternalId = _data["assetExternalId"];
23948
+ this.percent = _data["percent"];
23949
+ this.numberOfSeconds = _data["numberOfSeconds"];
23950
+ }
23951
+ }
23952
+ static fromJS(data) {
23953
+ data = typeof data === 'object' ? data : {};
23954
+ let result = new MachineUptimeDto();
23955
+ result.init(data);
23956
+ return result;
23957
+ }
23958
+ toJSON(data) {
23959
+ data = typeof data === 'object' ? data : {};
23960
+ data["assetExternalId"] = this.assetExternalId;
23961
+ data["percent"] = this.percent;
23962
+ data["numberOfSeconds"] = this.numberOfSeconds;
23963
+ return data;
23964
+ }
23965
+ }
23966
+ export class MachineUptimeSumDto {
23967
+ constructor(data) {
23968
+ if (data) {
23969
+ for (var property in data) {
23970
+ if (data.hasOwnProperty(property))
23971
+ this[property] = data[property];
23972
+ }
23973
+ }
23974
+ }
23975
+ init(_data) {
23976
+ if (_data) {
23977
+ this.percent = _data["percent"];
23978
+ this.numberOfSeconds = _data["numberOfSeconds"];
23979
+ }
23980
+ }
23981
+ static fromJS(data) {
23982
+ data = typeof data === 'object' ? data : {};
23983
+ let result = new MachineUptimeSumDto();
23984
+ result.init(data);
23985
+ return result;
23986
+ }
23987
+ toJSON(data) {
23988
+ data = typeof data === 'object' ? data : {};
23989
+ data["percent"] = this.percent;
23990
+ data["numberOfSeconds"] = this.numberOfSeconds;
23991
+ return data;
23992
+ }
23993
+ }
23994
+ export class ListMachineUptimesTodayRequest {
23995
+ constructor(data) {
23996
+ if (data) {
23997
+ for (var property in data) {
23998
+ if (data.hasOwnProperty(property))
23999
+ this[property] = data[property];
24000
+ }
24001
+ }
24002
+ }
24003
+ init(_data) {
24004
+ if (_data) {
24005
+ if (Array.isArray(_data["machineExternalIds"])) {
24006
+ this.machineExternalIds = [];
24007
+ for (let item of _data["machineExternalIds"])
24008
+ this.machineExternalIds.push(item);
24009
+ }
24010
+ this.utcOffset = _data["utcOffset"];
24011
+ }
24012
+ }
24013
+ static fromJS(data) {
24014
+ data = typeof data === 'object' ? data : {};
24015
+ let result = new ListMachineUptimesTodayRequest();
24016
+ result.init(data);
24017
+ return result;
24018
+ }
24019
+ toJSON(data) {
24020
+ data = typeof data === 'object' ? data : {};
24021
+ if (Array.isArray(this.machineExternalIds)) {
24022
+ data["machineExternalIds"] = [];
24023
+ for (let item of this.machineExternalIds)
24024
+ data["machineExternalIds"].push(item);
24025
+ }
24026
+ data["utcOffset"] = this.utcOffset;
24027
+ return data;
24028
+ }
24029
+ }
24030
+ export class PowerOnUtilizationList {
24031
+ constructor(data) {
24032
+ if (data) {
24033
+ for (var property in data) {
24034
+ if (data.hasOwnProperty(property))
24035
+ this[property] = data[property];
24036
+ }
24037
+ }
24038
+ }
24039
+ init(_data) {
24040
+ if (_data) {
24041
+ if (Array.isArray(_data["machines"])) {
24042
+ this.machines = [];
24043
+ for (let item of _data["machines"])
24044
+ this.machines.push(Machine.fromJS(item));
24045
+ }
24046
+ }
24047
+ }
24048
+ static fromJS(data) {
24049
+ data = typeof data === 'object' ? data : {};
24050
+ let result = new PowerOnUtilizationList();
24051
+ result.init(data);
24052
+ return result;
24053
+ }
24054
+ toJSON(data) {
24055
+ data = typeof data === 'object' ? data : {};
24056
+ if (Array.isArray(this.machines)) {
24057
+ data["machines"] = [];
24058
+ for (let item of this.machines)
24059
+ data["machines"].push(item.toJSON());
24060
+ }
24061
+ return data;
24062
+ }
24063
+ }
24064
+ export class Machine {
24065
+ constructor(data) {
24066
+ if (data) {
24067
+ for (var property in data) {
24068
+ if (data.hasOwnProperty(property))
24069
+ this[property] = data[property];
24070
+ }
24071
+ }
24072
+ }
24073
+ init(_data) {
24074
+ if (_data) {
24075
+ this.externalId = _data["externalId"];
24076
+ this.id = _data["id"];
24077
+ this.name = _data["name"];
24078
+ this.description = _data["description"];
24079
+ if (Array.isArray(_data["datapoints"])) {
24080
+ this.datapoints = [];
24081
+ for (let item of _data["datapoints"])
24082
+ this.datapoints.push(NumericNullableValueWithTimestamp.fromJS(item));
24083
+ }
24084
+ }
24085
+ }
24086
+ static fromJS(data) {
24087
+ data = typeof data === 'object' ? data : {};
24088
+ let result = new Machine();
24089
+ result.init(data);
24090
+ return result;
24091
+ }
24092
+ toJSON(data) {
24093
+ data = typeof data === 'object' ? data : {};
24094
+ data["externalId"] = this.externalId;
24095
+ data["id"] = this.id;
24096
+ data["name"] = this.name;
24097
+ data["description"] = this.description;
24098
+ if (Array.isArray(this.datapoints)) {
24099
+ data["datapoints"] = [];
24100
+ for (let item of this.datapoints)
24101
+ data["datapoints"].push(item.toJSON());
24102
+ }
24103
+ return data;
24104
+ }
24105
+ }
24106
+ export class NumericNullableValueWithTimestamp {
24107
+ constructor(data) {
24108
+ if (data) {
24109
+ for (var property in data) {
24110
+ if (data.hasOwnProperty(property))
24111
+ this[property] = data[property];
24112
+ }
24113
+ }
24114
+ }
24115
+ init(_data) {
24116
+ if (_data) {
24117
+ this.timestamp = _data["timestamp"];
24118
+ this.value = _data["value"];
24119
+ }
24120
+ }
24121
+ static fromJS(data) {
24122
+ data = typeof data === 'object' ? data : {};
24123
+ let result = new NumericNullableValueWithTimestamp();
24124
+ result.init(data);
24125
+ return result;
24126
+ }
24127
+ toJSON(data) {
24128
+ data = typeof data === 'object' ? data : {};
24129
+ data["timestamp"] = this.timestamp;
24130
+ data["value"] = this.value;
24131
+ return data;
24132
+ }
24133
+ }
23927
24134
  export class UserAppDto {
23928
24135
  constructor(data) {
23929
24136
  if (data) {
@@ -30697,56 +30904,6 @@ export class WorkOrderProjectDto {
30697
30904
  return data;
30698
30905
  }
30699
30906
  }
30700
- export class WorkOrderDatapoint {
30701
- constructor(data) {
30702
- if (data) {
30703
- for (var property in data) {
30704
- if (data.hasOwnProperty(property))
30705
- this[property] = data[property];
30706
- }
30707
- }
30708
- }
30709
- init(_data) {
30710
- if (_data) {
30711
- this.workOrder = _data["workOrder"];
30712
- this.id = _data["id"];
30713
- this.externalId = _data["externalId"];
30714
- this.subType = _data["subType"];
30715
- this.startTime = _data["startTime"];
30716
- this.endTime = _data["endTime"];
30717
- if (_data["metaData"]) {
30718
- this.metaData = {};
30719
- for (let key in _data["metaData"]) {
30720
- if (_data["metaData"].hasOwnProperty(key))
30721
- this.metaData[key] = _data["metaData"][key];
30722
- }
30723
- }
30724
- }
30725
- }
30726
- static fromJS(data) {
30727
- data = typeof data === 'object' ? data : {};
30728
- let result = new WorkOrderDatapoint();
30729
- result.init(data);
30730
- return result;
30731
- }
30732
- toJSON(data) {
30733
- data = typeof data === 'object' ? data : {};
30734
- data["workOrder"] = this.workOrder;
30735
- data["id"] = this.id;
30736
- data["externalId"] = this.externalId;
30737
- data["subType"] = this.subType;
30738
- data["startTime"] = this.startTime;
30739
- data["endTime"] = this.endTime;
30740
- if (this.metaData) {
30741
- data["metaData"] = {};
30742
- for (let key in this.metaData) {
30743
- if (this.metaData.hasOwnProperty(key))
30744
- data["metaData"][key] = this.metaData[key];
30745
- }
30746
- }
30747
- return data;
30748
- }
30749
- }
30750
30907
  export class UtilizationSummaryDto {
30751
30908
  constructor(data) {
30752
30909
  if (data) {
@@ -41560,6 +41717,154 @@ export class ProductionResourceDto {
41560
41717
  return data;
41561
41718
  }
41562
41719
  }
41720
+ export class IotTypeSourceDto {
41721
+ constructor(data) {
41722
+ if (data) {
41723
+ for (var property in data) {
41724
+ if (data.hasOwnProperty(property))
41725
+ this[property] = data[property];
41726
+ }
41727
+ }
41728
+ }
41729
+ init(_data) {
41730
+ if (_data) {
41731
+ this.id = _data["id"];
41732
+ this.name = _data["name"];
41733
+ }
41734
+ }
41735
+ static fromJS(data) {
41736
+ data = typeof data === 'object' ? data : {};
41737
+ let result = new IotTypeSourceDto();
41738
+ result.init(data);
41739
+ return result;
41740
+ }
41741
+ toJSON(data) {
41742
+ data = typeof data === 'object' ? data : {};
41743
+ data["id"] = this.id;
41744
+ data["name"] = this.name;
41745
+ return data;
41746
+ }
41747
+ }
41748
+ export class ElectricalIotConfigDto {
41749
+ constructor(data) {
41750
+ if (data) {
41751
+ for (var property in data) {
41752
+ if (data.hasOwnProperty(property))
41753
+ this[property] = data[property];
41754
+ }
41755
+ }
41756
+ }
41757
+ init(_data) {
41758
+ if (_data) {
41759
+ this.id = _data["id"];
41760
+ this.typeId = _data["typeId"];
41761
+ this.serialNumber = _data["serialNumber"];
41762
+ this.assetId = _data["assetId"];
41763
+ this.assetExternalId = _data["assetExternalId"];
41764
+ this.phases = _data["phases"];
41765
+ this.electricalAssetId = _data["electricalAssetId"];
41766
+ this.electricalAssetExternalId = _data["electricalAssetExternalId"];
41767
+ this.electricalTimeseriesId = _data["electricalTimeseriesId"];
41768
+ this.electricalTimeseriesExternalId = _data["electricalTimeseriesExternalId"];
41769
+ }
41770
+ }
41771
+ static fromJS(data) {
41772
+ data = typeof data === 'object' ? data : {};
41773
+ let result = new ElectricalIotConfigDto();
41774
+ result.init(data);
41775
+ return result;
41776
+ }
41777
+ toJSON(data) {
41778
+ data = typeof data === 'object' ? data : {};
41779
+ data["id"] = this.id;
41780
+ data["typeId"] = this.typeId;
41781
+ data["serialNumber"] = this.serialNumber;
41782
+ data["assetId"] = this.assetId;
41783
+ data["assetExternalId"] = this.assetExternalId;
41784
+ data["phases"] = this.phases;
41785
+ data["electricalAssetId"] = this.electricalAssetId;
41786
+ data["electricalAssetExternalId"] = this.electricalAssetExternalId;
41787
+ data["electricalTimeseriesId"] = this.electricalTimeseriesId;
41788
+ data["electricalTimeseriesExternalId"] = this.electricalTimeseriesExternalId;
41789
+ return data;
41790
+ }
41791
+ }
41792
+ export class CreateElectricalIotConfig {
41793
+ constructor(data) {
41794
+ if (data) {
41795
+ for (var property in data) {
41796
+ if (data.hasOwnProperty(property))
41797
+ this[property] = data[property];
41798
+ }
41799
+ }
41800
+ }
41801
+ init(_data) {
41802
+ if (_data) {
41803
+ this.typeId = _data["typeId"];
41804
+ this.serialNumber = _data["serialNumber"];
41805
+ this.assetId = _data["assetId"];
41806
+ this.assetExternalId = _data["assetExternalId"];
41807
+ }
41808
+ }
41809
+ static fromJS(data) {
41810
+ data = typeof data === 'object' ? data : {};
41811
+ let result = new CreateElectricalIotConfig();
41812
+ result.init(data);
41813
+ return result;
41814
+ }
41815
+ toJSON(data) {
41816
+ data = typeof data === 'object' ? data : {};
41817
+ data["typeId"] = this.typeId;
41818
+ data["serialNumber"] = this.serialNumber;
41819
+ data["assetId"] = this.assetId;
41820
+ data["assetExternalId"] = this.assetExternalId;
41821
+ return data;
41822
+ }
41823
+ }
41824
+ export class WeldingIotConfigDto {
41825
+ constructor(data) {
41826
+ if (data) {
41827
+ for (var property in data) {
41828
+ if (data.hasOwnProperty(property))
41829
+ this[property] = data[property];
41830
+ }
41831
+ }
41832
+ }
41833
+ init(_data) {
41834
+ }
41835
+ static fromJS(data) {
41836
+ data = typeof data === 'object' ? data : {};
41837
+ let result = new WeldingIotConfigDto();
41838
+ result.init(data);
41839
+ return result;
41840
+ }
41841
+ toJSON(data) {
41842
+ data = typeof data === 'object' ? data : {};
41843
+ return data;
41844
+ }
41845
+ }
41846
+ export class CreateWeldingIotConfig {
41847
+ constructor(data) {
41848
+ if (data) {
41849
+ for (var property in data) {
41850
+ if (data.hasOwnProperty(property))
41851
+ this[property] = data[property];
41852
+ }
41853
+ }
41854
+ }
41855
+ init(_data) {
41856
+ }
41857
+ static fromJS(data) {
41858
+ data = typeof data === 'object' ? data : {};
41859
+ let result = new CreateWeldingIotConfig();
41860
+ result.init(data);
41861
+ return result;
41862
+ }
41863
+ toJSON(data) {
41864
+ data = typeof data === 'object' ? data : {};
41865
+ return data;
41866
+ }
41867
+ }
41563
41868
  export class PagedResultOfMeasurementFormListDto {
41564
41869
  constructor(data) {
41565
41870
  if (data) {
@@ -41841,6 +42146,7 @@ export class MeasurementFormGroupedElementDto {
41841
42146
  if (_data) {
41842
42147
  this.id = _data["id"];
41843
42148
  this.balloonId = _data["balloonId"];
42149
+ this.reference = _data["reference"];
41844
42150
  this.imageUrl = _data["imageUrl"];
41845
42151
  this.thumbnailUrl = _data["thumbnailUrl"];
41846
42152
  this.section = _data["section"];
@@ -41867,6 +42173,7 @@ export class MeasurementFormGroupedElementDto {
41867
42173
  this.includeInCustomerDocumentation = _data["includeInCustomerDocumentation"];
41868
42174
  this.isDocumentedExternally = _data["isDocumentedExternally"];
41869
42175
  this.balloonQuantity = _data["balloonQuantity"];
42176
+ this.referenceQuantity = _data["referenceQuantity"];
41870
42177
  this.plusToleranceText = _data["plusToleranceText"];
41871
42178
  this.minusToleranceText = _data["minusToleranceText"];
41872
42179
  this.coatingThickness = _data["coatingThickness"];
@@ -41891,6 +42198,7 @@ export class MeasurementFormGroupedElementDto {
41891
42198
  data = typeof data === 'object' ? data : {};
41892
42199
  data["id"] = this.id;
41893
42200
  data["balloonId"] = this.balloonId;
42201
+ data["reference"] = this.reference;
41894
42202
  data["imageUrl"] = this.imageUrl;
41895
42203
  data["thumbnailUrl"] = this.thumbnailUrl;
41896
42204
  data["section"] = this.section;
@@ -41917,6 +42225,7 @@ export class MeasurementFormGroupedElementDto {
41917
42225
  data["includeInCustomerDocumentation"] = this.includeInCustomerDocumentation;
41918
42226
  data["isDocumentedExternally"] = this.isDocumentedExternally;
41919
42227
  data["balloonQuantity"] = this.balloonQuantity;
42228
+ data["referenceQuantity"] = this.referenceQuantity;
41920
42229
  data["plusToleranceText"] = this.plusToleranceText;
41921
42230
  data["minusToleranceText"] = this.minusToleranceText;
41922
42231
  data["coatingThickness"] = this.coatingThickness;
@@ -42194,6 +42503,7 @@ export class UpdateSchemaGroupedElementDto {
42194
42503
  init(_data) {
42195
42504
  if (_data) {
42196
42505
  this.balloonId = _data["balloonId"];
42506
+ this.reference = _data["reference"];
42197
42507
  this.frequency = _data["frequency"];
42198
42508
  this.frequencyParameter = _data["frequencyParameter"];
42199
42509
  this.includeInCustomerDocumentation = _data["includeInCustomerDocumentation"];
@@ -42211,6 +42521,7 @@ export class UpdateSchemaGroupedElementDto {
42211
42521
  toJSON(data) {
42212
42522
  data = typeof data === 'object' ? data : {};
42213
42523
  data["balloonId"] = this.balloonId;
42524
+ data["reference"] = this.reference;
42214
42525
  data["frequency"] = this.frequency;
42215
42526
  data["frequencyParameter"] = this.frequencyParameter;
42216
42527
  data["includeInCustomerDocumentation"] = this.includeInCustomerDocumentation;
@@ -42233,6 +42544,8 @@ export class UpdateSchemaGroupedElementRowDto {
42233
42544
  if (_data) {
42234
42545
  this.id = _data["id"];
42235
42546
  this.balloonId = _data["balloonId"];
42547
+ this.oldReference = _data["oldReference"];
42548
+ this.newReference = _data["newReference"];
42236
42549
  this.section = _data["section"];
42237
42550
  this.pageNumber = _data["pageNumber"];
42238
42551
  this.measurements = _data["measurements"];
@@ -42262,6 +42575,8 @@ export class UpdateSchemaGroupedElementRowDto {
42262
42575
  data = typeof data === 'object' ? data : {};
42263
42576
  data["id"] = this.id;
42264
42577
  data["balloonId"] = this.balloonId;
42578
+ data["oldReference"] = this.oldReference;
42579
+ data["newReference"] = this.newReference;
42265
42580
  data["section"] = this.section;
42266
42581
  data["pageNumber"] = this.pageNumber;
42267
42582
  data["measurements"] = this.measurements;
@@ -42290,9 +42605,6 @@ export class DeleteSchemaGroupedElementRowsDto {
42290
42605
  this[property] = data[property];
42291
42606
  }
42292
42607
  }
42293
- if (!data) {
42294
- this.balloonIds = [];
42295
- }
42296
42608
  }
42297
42609
  init(_data) {
42298
42610
  if (_data) {
@@ -42301,6 +42613,11 @@ export class DeleteSchemaGroupedElementRowsDto {
42301
42613
  for (let item of _data["balloonIds"])
42302
42614
  this.balloonIds.push(item);
42303
42615
  }
42616
+ if (Array.isArray(_data["references"])) {
42617
+ this.references = [];
42618
+ for (let item of _data["references"])
42619
+ this.references.push(item);
42620
+ }
42304
42621
  }
42305
42622
  }
42306
42623
  static fromJS(data) {
@@ -42316,6 +42633,11 @@ export class DeleteSchemaGroupedElementRowsDto {
42316
42633
  for (let item of this.balloonIds)
42317
42634
  data["balloonIds"].push(item);
42318
42635
  }
42636
+ if (Array.isArray(this.references)) {
42637
+ data["references"] = [];
42638
+ for (let item of this.references)
42639
+ data["references"].push(item);
42640
+ }
42319
42641
  return data;
42320
42642
  }
42321
42643
  }
@@ -42333,6 +42655,7 @@ export class UploadMeasurementImageRequest {
42333
42655
  this.uploadKey = _data["uploadKey"];
42334
42656
  this.filename = _data["filename"];
42335
42657
  this.ballonId = _data["ballonId"];
42658
+ this.reference = _data["reference"];
42336
42659
  }
42337
42660
  }
42338
42661
  static fromJS(data) {
@@ -42346,6 +42669,7 @@ export class UploadMeasurementImageRequest {
42346
42669
  data["uploadKey"] = this.uploadKey;
42347
42670
  data["filename"] = this.filename;
42348
42671
  data["ballonId"] = this.ballonId;
42672
+ data["reference"] = this.reference;
42349
42673
  return data;
42350
42674
  }
42351
42675
  }
@@ -42525,7 +42849,7 @@ export class CreateMeasurementFormSchemaLinkRequest {
42525
42849
  return data;
42526
42850
  }
42527
42851
  }
42528
- export class MeasurementFormSettingsDto {
42852
+ export class InspectCompanySettingsDto {
42529
42853
  constructor(data) {
42530
42854
  if (data) {
42531
42855
  for (var property in data) {
@@ -42558,7 +42882,7 @@ export class MeasurementFormSettingsDto {
42558
42882
  }
42559
42883
  static fromJS(data) {
42560
42884
  data = typeof data === 'object' ? data : {};
42561
- let result = new MeasurementFormSettingsDto();
42885
+ let result = new InspectCompanySettingsDto();
42562
42886
  result.init(data);
42563
42887
  return result;
42564
42888
  }
@@ -42725,8 +43049,8 @@ export class MeasurementFormMappingDto {
42725
43049
  }
42726
43050
  }
42727
43051
  if (!data) {
42728
- this.sourceBalloons = [];
42729
- this.targetBalloons = [];
43052
+ this.sourceReferences = [];
43053
+ this.targetReferences = [];
42730
43054
  }
42731
43055
  }
42732
43056
  init(_data) {
@@ -42737,12 +43061,22 @@ export class MeasurementFormMappingDto {
42737
43061
  if (Array.isArray(_data["sourceBalloons"])) {
42738
43062
  this.sourceBalloons = [];
42739
43063
  for (let item of _data["sourceBalloons"])
42740
- this.sourceBalloons.push(MeasurementFormBalloonMappingDto.fromJS(item));
43064
+ this.sourceBalloons.push(MeasurementFormReferenceMappingDto.fromJS(item));
42741
43065
  }
42742
43066
  if (Array.isArray(_data["targetBalloons"])) {
42743
43067
  this.targetBalloons = [];
42744
43068
  for (let item of _data["targetBalloons"])
42745
- this.targetBalloons.push(MeasurementFormBalloonMappingDto.fromJS(item));
43069
+ this.targetBalloons.push(MeasurementFormReferenceMappingDto.fromJS(item));
43070
+ }
43071
+ if (Array.isArray(_data["sourceReferences"])) {
43072
+ this.sourceReferences = [];
43073
+ for (let item of _data["sourceReferences"])
43074
+ this.sourceReferences.push(MeasurementFormReferenceMappingDto.fromJS(item));
43075
+ }
43076
+ if (Array.isArray(_data["targetReferences"])) {
43077
+ this.targetReferences = [];
43078
+ for (let item of _data["targetReferences"])
43079
+ this.targetReferences.push(MeasurementFormReferenceMappingDto.fromJS(item));
42746
43080
  }
42747
43081
  }
42748
43082
  }
@@ -42767,10 +43101,20 @@ export class MeasurementFormMappingDto {
42767
43101
  for (let item of this.targetBalloons)
42768
43102
  data["targetBalloons"].push(item.toJSON());
42769
43103
  }
43104
+ if (Array.isArray(this.sourceReferences)) {
43105
+ data["sourceReferences"] = [];
43106
+ for (let item of this.sourceReferences)
43107
+ data["sourceReferences"].push(item.toJSON());
43108
+ }
43109
+ if (Array.isArray(this.targetReferences)) {
43110
+ data["targetReferences"] = [];
43111
+ for (let item of this.targetReferences)
43112
+ data["targetReferences"].push(item.toJSON());
43113
+ }
42770
43114
  return data;
42771
43115
  }
42772
43116
  }
42773
- export class MeasurementFormBalloonMappingDto {
43117
+ export class MeasurementFormReferenceMappingDto {
42774
43118
  constructor(data) {
42775
43119
  if (data) {
42776
43120
  for (var property in data) {
@@ -42779,19 +43123,21 @@ export class MeasurementFormBalloonMappingDto {
42779
43123
  }
42780
43124
  }
42781
43125
  if (!data) {
42782
- this.balloon = new MeasurementFormGroupedElementDto();
43126
+ this.reference = new MeasurementFormGroupedElementDto();
42783
43127
  }
42784
43128
  }
42785
43129
  init(_data) {
42786
43130
  if (_data) {
42787
- this.balloon = _data["balloon"] ? MeasurementFormGroupedElementDto.fromJS(_data["balloon"]) : new MeasurementFormGroupedElementDto();
43131
+ this.balloon = _data["balloon"] ? MeasurementFormGroupedElementDto.fromJS(_data["balloon"]) : undefined;
42788
43132
  this.mappedBalloonId = _data["mappedBalloonId"];
43133
+ this.reference = _data["reference"] ? MeasurementFormGroupedElementDto.fromJS(_data["reference"]) : new MeasurementFormGroupedElementDto();
43134
+ this.mappedReference = _data["mappedReference"];
42789
43135
  this.mappingScorePercent = _data["mappingScorePercent"];
42790
43136
  }
42791
43137
  }
42792
43138
  static fromJS(data) {
42793
43139
  data = typeof data === 'object' ? data : {};
42794
- let result = new MeasurementFormBalloonMappingDto();
43140
+ let result = new MeasurementFormReferenceMappingDto();
42795
43141
  result.init(data);
42796
43142
  return result;
42797
43143
  }
@@ -42799,6 +43145,8 @@ export class MeasurementFormBalloonMappingDto {
42799
43145
  data = typeof data === 'object' ? data : {};
42800
43146
  data["balloon"] = this.balloon ? this.balloon.toJSON() : undefined;
42801
43147
  data["mappedBalloonId"] = this.mappedBalloonId;
43148
+ data["reference"] = this.reference ? this.reference.toJSON() : undefined;
43149
+ data["mappedReference"] = this.mappedReference;
42802
43150
  data["mappingScorePercent"] = this.mappingScorePercent;
42803
43151
  return data;
42804
43152
  }
@@ -42831,7 +43179,7 @@ export class CreateMeasurementFormMapping {
42831
43179
  return data;
42832
43180
  }
42833
43181
  }
42834
- export class MeasurementFormBalloonMappingRequestDto {
43182
+ export class SetMeasurementFormReferencesMappingRequest {
42835
43183
  constructor(data) {
42836
43184
  if (data) {
42837
43185
  for (var property in data) {
@@ -42839,29 +43187,36 @@ export class MeasurementFormBalloonMappingRequestDto {
42839
43187
  this[property] = data[property];
42840
43188
  }
42841
43189
  }
43190
+ if (!data) {
43191
+ this.mappings = [];
43192
+ }
42842
43193
  }
42843
43194
  init(_data) {
42844
43195
  if (_data) {
42845
- this.sourceBalloonId = _data["sourceBalloonId"];
42846
- this.targetBalloonId = _data["targetBalloonId"];
42847
- this.mappingScorePercent = _data["mappingScorePercent"];
43196
+ if (Array.isArray(_data["mappings"])) {
43197
+ this.mappings = [];
43198
+ for (let item of _data["mappings"])
43199
+ this.mappings.push(MeasurementFormReferenceMappingRequestDto.fromJS(item));
43200
+ }
42848
43201
  }
42849
43202
  }
42850
43203
  static fromJS(data) {
42851
43204
  data = typeof data === 'object' ? data : {};
42852
- let result = new MeasurementFormBalloonMappingRequestDto();
43205
+ let result = new SetMeasurementFormReferencesMappingRequest();
42853
43206
  result.init(data);
42854
43207
  return result;
42855
43208
  }
42856
43209
  toJSON(data) {
42857
43210
  data = typeof data === 'object' ? data : {};
42858
- data["sourceBalloonId"] = this.sourceBalloonId;
42859
- data["targetBalloonId"] = this.targetBalloonId;
42860
- data["mappingScorePercent"] = this.mappingScorePercent;
43211
+ if (Array.isArray(this.mappings)) {
43212
+ data["mappings"] = [];
43213
+ for (let item of this.mappings)
43214
+ data["mappings"].push(item.toJSON());
43215
+ }
42861
43216
  return data;
42862
43217
  }
42863
43218
  }
42864
- export class SetMeasurementFormMappingBalloonsRequest {
43219
+ export class MeasurementFormReferenceMappingRequestDto {
42865
43220
  constructor(data) {
42866
43221
  if (data) {
42867
43222
  for (var property in data) {
@@ -42869,32 +43224,29 @@ export class SetMeasurementFormMappingBalloonsRequest {
42869
43224
  this[property] = data[property];
42870
43225
  }
42871
43226
  }
42872
- if (!data) {
42873
- this.mappings = [];
42874
- }
42875
43227
  }
42876
43228
  init(_data) {
42877
43229
  if (_data) {
42878
- if (Array.isArray(_data["mappings"])) {
42879
- this.mappings = [];
42880
- for (let item of _data["mappings"])
42881
- this.mappings.push(MeasurementFormBalloonMappingRequestDto.fromJS(item));
42882
- }
43230
+ this.sourceBalloonId = _data["sourceBalloonId"];
43231
+ this.targetBalloonId = _data["targetBalloonId"];
43232
+ this.sourceReference = _data["sourceReference"];
43233
+ this.targetReference = _data["targetReference"];
43234
+ this.mappingScorePercent = _data["mappingScorePercent"];
42883
43235
  }
42884
43236
  }
42885
43237
  static fromJS(data) {
42886
43238
  data = typeof data === 'object' ? data : {};
42887
- let result = new SetMeasurementFormMappingBalloonsRequest();
43239
+ let result = new MeasurementFormReferenceMappingRequestDto();
42888
43240
  result.init(data);
42889
43241
  return result;
42890
43242
  }
42891
43243
  toJSON(data) {
42892
43244
  data = typeof data === 'object' ? data : {};
42893
- if (Array.isArray(this.mappings)) {
42894
- data["mappings"] = [];
42895
- for (let item of this.mappings)
42896
- data["mappings"].push(item.toJSON());
42897
- }
43245
+ data["sourceBalloonId"] = this.sourceBalloonId;
43246
+ data["targetBalloonId"] = this.targetBalloonId;
43247
+ data["sourceReference"] = this.sourceReference;
43248
+ data["targetReference"] = this.targetReference;
43249
+ data["mappingScorePercent"] = this.mappingScorePercent;
42898
43250
  return data;
42899
43251
  }
42900
43252
  }
@@ -42907,8 +43259,8 @@ export class MeasurementFormMappingSuggestionDto {
42907
43259
  }
42908
43260
  }
42909
43261
  if (!data) {
42910
- this.sourceBalloons = [];
42911
- this.targetBalloons = [];
43262
+ this.sourceReferences = [];
43263
+ this.targetReferences = [];
42912
43264
  }
42913
43265
  }
42914
43266
  init(_data) {
@@ -42918,12 +43270,22 @@ export class MeasurementFormMappingSuggestionDto {
42918
43270
  if (Array.isArray(_data["sourceBalloons"])) {
42919
43271
  this.sourceBalloons = [];
42920
43272
  for (let item of _data["sourceBalloons"])
42921
- this.sourceBalloons.push(MeasurementFormBalloonMappingDto.fromJS(item));
43273
+ this.sourceBalloons.push(MeasurementFormReferenceMappingDto.fromJS(item));
42922
43274
  }
42923
43275
  if (Array.isArray(_data["targetBalloons"])) {
42924
43276
  this.targetBalloons = [];
42925
43277
  for (let item of _data["targetBalloons"])
42926
- this.targetBalloons.push(MeasurementFormBalloonMappingDto.fromJS(item));
43278
+ this.targetBalloons.push(MeasurementFormReferenceMappingDto.fromJS(item));
43279
+ }
43280
+ if (Array.isArray(_data["sourceReferences"])) {
43281
+ this.sourceReferences = [];
43282
+ for (let item of _data["sourceReferences"])
43283
+ this.sourceReferences.push(MeasurementFormReferenceMappingDto.fromJS(item));
43284
+ }
43285
+ if (Array.isArray(_data["targetReferences"])) {
43286
+ this.targetReferences = [];
43287
+ for (let item of _data["targetReferences"])
43288
+ this.targetReferences.push(MeasurementFormReferenceMappingDto.fromJS(item));
42927
43289
  }
42928
43290
  }
42929
43291
  }
@@ -42947,6 +43309,16 @@ export class MeasurementFormMappingSuggestionDto {
42947
43309
  for (let item of this.targetBalloons)
42948
43310
  data["targetBalloons"].push(item.toJSON());
42949
43311
  }
43312
+ if (Array.isArray(this.sourceReferences)) {
43313
+ data["sourceReferences"] = [];
43314
+ for (let item of this.sourceReferences)
43315
+ data["sourceReferences"].push(item.toJSON());
43316
+ }
43317
+ if (Array.isArray(this.targetReferences)) {
43318
+ data["targetReferences"] = [];
43319
+ for (let item of this.targetReferences)
43320
+ data["targetReferences"].push(item.toJSON());
43321
+ }
42950
43322
  return data;
42951
43323
  }
42952
43324
  }
@@ -43406,6 +43778,7 @@ export class SchemaFeedbackDto {
43406
43778
  this.versionId = _data["versionId"];
43407
43779
  this.schemaInstanceId = _data["schemaInstanceId"];
43408
43780
  this.balloonId = _data["balloonId"];
43781
+ this.reference = _data["reference"];
43409
43782
  this.feedback = _data["feedback"];
43410
43783
  this.from = _data["from"];
43411
43784
  this.created = _data["created"] ? new Date(_data["created"].toString()) : undefined;
@@ -43433,6 +43806,7 @@ export class SchemaFeedbackDto {
43433
43806
  data["versionId"] = this.versionId;
43434
43807
  data["schemaInstanceId"] = this.schemaInstanceId;
43435
43808
  data["balloonId"] = this.balloonId;
43809
+ data["reference"] = this.reference;
43436
43810
  data["feedback"] = this.feedback;
43437
43811
  data["from"] = this.from;
43438
43812
  data["created"] = this.created ? this.created.toISOString() : undefined;
@@ -44117,6 +44491,7 @@ export class MeasurementFormInstanceFeedbackDto {
44117
44491
  this.versionId = _data["versionId"];
44118
44492
  this.schemaInstanceId = _data["schemaInstanceId"];
44119
44493
  this.balloonId = _data["balloonId"];
44494
+ this.reference = _data["reference"];
44120
44495
  this.feedback = _data["feedback"];
44121
44496
  this.from = _data["from"];
44122
44497
  this.created = _data["created"] ? new Date(_data["created"].toString()) : undefined;
@@ -44136,6 +44511,7 @@ export class MeasurementFormInstanceFeedbackDto {
44136
44511
  data["versionId"] = this.versionId;
44137
44512
  data["schemaInstanceId"] = this.schemaInstanceId;
44138
44513
  data["balloonId"] = this.balloonId;
44514
+ data["reference"] = this.reference;
44139
44515
  data["feedback"] = this.feedback;
44140
44516
  data["from"] = this.from;
44141
44517
  data["created"] = this.created ? this.created.toISOString() : undefined;
@@ -44371,6 +44747,7 @@ export class MeasurementFormInstanceElementDto {
44371
44747
  this.imageUrl = _data["imageUrl"];
44372
44748
  this.thumbnailUrl = _data["thumbnailUrl"];
44373
44749
  this.balloonId = _data["balloonId"];
44750
+ this.reference = _data["reference"];
44374
44751
  this.section = _data["section"];
44375
44752
  this.pageNumber = _data["pageNumber"];
44376
44753
  this.sheetZone = _data["sheetZone"];
@@ -44394,7 +44771,9 @@ export class MeasurementFormInstanceElementDto {
44394
44771
  this.isDocumentedExternally = _data["isDocumentedExternally"];
44395
44772
  this.canOverrideIsDocumentedExternally = _data["canOverrideIsDocumentedExternally"];
44396
44773
  this.balloonSequence = _data["balloonSequence"];
44774
+ this.referenceIndex = _data["referenceIndex"];
44397
44775
  this.balloonQuantity = _data["balloonQuantity"];
44776
+ this.referenceQuantity = _data["referenceQuantity"];
44398
44777
  this.plusTolerance = _data["plusTolerance"];
44399
44778
  this.minusTolerance = _data["minusTolerance"];
44400
44779
  this.coatingThickness = _data["coatingThickness"];
@@ -44426,6 +44805,7 @@ export class MeasurementFormInstanceElementDto {
44426
44805
  data["imageUrl"] = this.imageUrl;
44427
44806
  data["thumbnailUrl"] = this.thumbnailUrl;
44428
44807
  data["balloonId"] = this.balloonId;
44808
+ data["reference"] = this.reference;
44429
44809
  data["section"] = this.section;
44430
44810
  data["pageNumber"] = this.pageNumber;
44431
44811
  data["sheetZone"] = this.sheetZone;
@@ -44449,7 +44829,9 @@ export class MeasurementFormInstanceElementDto {
44449
44829
  data["isDocumentedExternally"] = this.isDocumentedExternally;
44450
44830
  data["canOverrideIsDocumentedExternally"] = this.canOverrideIsDocumentedExternally;
44451
44831
  data["balloonSequence"] = this.balloonSequence;
44832
+ data["referenceIndex"] = this.referenceIndex;
44452
44833
  data["balloonQuantity"] = this.balloonQuantity;
44834
+ data["referenceQuantity"] = this.referenceQuantity;
44453
44835
  data["plusTolerance"] = this.plusTolerance;
44454
44836
  data["minusTolerance"] = this.minusTolerance;
44455
44837
  data["coatingThickness"] = this.coatingThickness;
@@ -44961,6 +45343,7 @@ export class SchemaFeedbackCreatedDto {
44961
45343
  this.versionId = _data["versionId"];
44962
45344
  this.schemaInstanceId = _data["schemaInstanceId"];
44963
45345
  this.balloonId = _data["balloonId"];
45346
+ this.reference = _data["reference"];
44964
45347
  this.feedback = _data["feedback"];
44965
45348
  this.from = _data["from"];
44966
45349
  this.created = _data["created"] ? new Date(_data["created"].toString()) : undefined;
@@ -44980,6 +45363,7 @@ export class SchemaFeedbackCreatedDto {
44980
45363
  data["versionId"] = this.versionId;
44981
45364
  data["schemaInstanceId"] = this.schemaInstanceId;
44982
45365
  data["balloonId"] = this.balloonId;
45366
+ data["reference"] = this.reference;
44983
45367
  data["feedback"] = this.feedback;
44984
45368
  data["from"] = this.from;
44985
45369
  data["created"] = this.created ? this.created.toISOString() : undefined;
@@ -44998,6 +45382,7 @@ export class CreateMeasurementFormSchemaFeedbackRequest {
44998
45382
  init(_data) {
44999
45383
  if (_data) {
45000
45384
  this.balloonId = _data["balloonId"];
45385
+ this.reference = _data["reference"];
45001
45386
  this.feedback = _data["feedback"];
45002
45387
  }
45003
45388
  }
@@ -45010,6 +45395,7 @@ export class CreateMeasurementFormSchemaFeedbackRequest {
45010
45395
  toJSON(data) {
45011
45396
  data = typeof data === 'object' ? data : {};
45012
45397
  data["balloonId"] = this.balloonId;
45398
+ data["reference"] = this.reference;
45013
45399
  data["feedback"] = this.feedback;
45014
45400
  return data;
45015
45401
  }
@@ -45204,6 +45590,7 @@ export class SchemaInstanceElementDto {
45204
45590
  if (_data) {
45205
45591
  this.elementId = _data["elementId"];
45206
45592
  this.balloonId = _data["balloonId"];
45593
+ this.reference = _data["reference"];
45207
45594
  this.disabled = _data["disabled"];
45208
45595
  }
45209
45596
  }
@@ -45217,158 +45604,11 @@ export class SchemaInstanceElementDto {
45217
45604
  data = typeof data === 'object' ? data : {};
45218
45605
  data["elementId"] = this.elementId;
45219
45606
  data["balloonId"] = this.balloonId;
45607
+ data["reference"] = this.reference;
45220
45608
  data["disabled"] = this.disabled;
45221
45609
  return data;
45222
45610
  }
45223
45611
  }
45224
- export class IotTypeSourceDto {
45225
- constructor(data) {
45226
- if (data) {
45227
- for (var property in data) {
45228
- if (data.hasOwnProperty(property))
45229
- this[property] = data[property];
45230
- }
45231
- }
45232
- }
45233
- init(_data) {
45234
- if (_data) {
45235
- this.id = _data["id"];
45236
- this.name = _data["name"];
45237
- }
45238
- }
45239
- static fromJS(data) {
45240
- data = typeof data === 'object' ? data : {};
45241
- let result = new IotTypeSourceDto();
45242
- result.init(data);
45243
- return result;
45244
- }
45245
- toJSON(data) {
45246
- data = typeof data === 'object' ? data : {};
45247
- data["id"] = this.id;
45248
- data["name"] = this.name;
45249
- return data;
45250
- }
45251
- }
45252
- export class ElectricalIotConfigDto {
45253
- constructor(data) {
45254
- if (data) {
45255
- for (var property in data) {
45256
- if (data.hasOwnProperty(property))
45257
- this[property] = data[property];
45258
- }
45259
- }
45260
- }
45261
- init(_data) {
45262
- if (_data) {
45263
- this.id = _data["id"];
45264
- this.typeId = _data["typeId"];
45265
- this.serialNumber = _data["serialNumber"];
45266
- this.assetId = _data["assetId"];
45267
- this.assetExternalId = _data["assetExternalId"];
45268
- this.phases = _data["phases"];
45269
- this.electricalAssetId = _data["electricalAssetId"];
45270
- this.electricalAssetExternalId = _data["electricalAssetExternalId"];
45271
- this.electricalTimeseriesId = _data["electricalTimeseriesId"];
45272
- this.electricalTimeseriesExternalId = _data["electricalTimeseriesExternalId"];
45273
- }
45274
- }
45275
- static fromJS(data) {
45276
- data = typeof data === 'object' ? data : {};
45277
- let result = new ElectricalIotConfigDto();
45278
- result.init(data);
45279
- return result;
45280
- }
45281
- toJSON(data) {
45282
- data = typeof data === 'object' ? data : {};
45283
- data["id"] = this.id;
45284
- data["typeId"] = this.typeId;
45285
- data["serialNumber"] = this.serialNumber;
45286
- data["assetId"] = this.assetId;
45287
- data["assetExternalId"] = this.assetExternalId;
45288
- data["phases"] = this.phases;
45289
- data["electricalAssetId"] = this.electricalAssetId;
45290
- data["electricalAssetExternalId"] = this.electricalAssetExternalId;
45291
- data["electricalTimeseriesId"] = this.electricalTimeseriesId;
45292
- data["electricalTimeseriesExternalId"] = this.electricalTimeseriesExternalId;
45293
- return data;
45294
- }
45295
- }
45296
- export class CreateElectricalIotConfig {
45297
- constructor(data) {
45298
- if (data) {
45299
- for (var property in data) {
45300
- if (data.hasOwnProperty(property))
45301
- this[property] = data[property];
45302
- }
45303
- }
45304
- }
45305
- init(_data) {
45306
- if (_data) {
45307
- this.typeId = _data["typeId"];
45308
- this.serialNumber = _data["serialNumber"];
45309
- this.assetId = _data["assetId"];
45310
- this.assetExternalId = _data["assetExternalId"];
45311
- }
45312
- }
45313
- static fromJS(data) {
45314
- data = typeof data === 'object' ? data : {};
45315
- let result = new CreateElectricalIotConfig();
45316
- result.init(data);
45317
- return result;
45318
- }
45319
- toJSON(data) {
45320
- data = typeof data === 'object' ? data : {};
45321
- data["typeId"] = this.typeId;
45322
- data["serialNumber"] = this.serialNumber;
45323
- data["assetId"] = this.assetId;
45324
- data["assetExternalId"] = this.assetExternalId;
45325
- return data;
45326
- }
45327
- }
45328
- export class WeldingIotConfigDto {
45329
- constructor(data) {
45330
- if (data) {
45331
- for (var property in data) {
45332
- if (data.hasOwnProperty(property))
45333
- this[property] = data[property];
45334
- }
45335
- }
45336
- }
45337
- init(_data) {
45338
- }
45339
- static fromJS(data) {
45340
- data = typeof data === 'object' ? data : {};
45341
- let result = new WeldingIotConfigDto();
45342
- result.init(data);
45343
- return result;
45344
- }
45345
- toJSON(data) {
45346
- data = typeof data === 'object' ? data : {};
45347
- return data;
45348
- }
45349
- }
45350
- export class CreateWeldingIotConfig {
45351
- constructor(data) {
45352
- if (data) {
45353
- for (var property in data) {
45354
- if (data.hasOwnProperty(property))
45355
- this[property] = data[property];
45356
- }
45357
- }
45358
- }
45359
- init(_data) {
45360
- }
45361
- static fromJS(data) {
45362
- data = typeof data === 'object' ? data : {};
45363
- let result = new CreateWeldingIotConfig();
45364
- result.init(data);
45365
- return result;
45366
- }
45367
- toJSON(data) {
45368
- data = typeof data === 'object' ? data : {};
45369
- return data;
45370
- }
45371
- }
45372
45612
  export class ProductionCompanyDto {
45373
45613
  constructor(data) {
45374
45614
  if (data) {