@ignos/api-client 20250825.0.12417 → 20250827.0.12448-alpha

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5805,6 +5805,165 @@ export class DowntimeReasonsAdminClient extends AuthorizedApiBase {
5805
5805
  }
5806
5806
  return Promise.resolve(null);
5807
5807
  }
5808
+ listParentTopics() {
5809
+ let url_ = this.baseUrl + "/downtimereasonsadmin/downtimereasons/parents";
5810
+ url_ = url_.replace(/[?&]$/, "");
5811
+ let options_ = {
5812
+ method: "GET",
5813
+ headers: {
5814
+ "Accept": "application/json"
5815
+ }
5816
+ };
5817
+ return this.transformOptions(options_).then(transformedOptions_ => {
5818
+ return this.http.fetch(url_, transformedOptions_);
5819
+ }).then((_response) => {
5820
+ return this.processListParentTopics(_response);
5821
+ });
5822
+ }
5823
+ processListParentTopics(response) {
5824
+ const status = response.status;
5825
+ let _headers = {};
5826
+ if (response.headers && response.headers.forEach) {
5827
+ response.headers.forEach((v, k) => _headers[k] = v);
5828
+ }
5829
+ ;
5830
+ if (status === 200) {
5831
+ return response.text().then((_responseText) => {
5832
+ let result200 = null;
5833
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
5834
+ if (Array.isArray(resultData200)) {
5835
+ result200 = [];
5836
+ for (let item of resultData200)
5837
+ result200.push(ParentTopicDto.fromJS(item));
5838
+ }
5839
+ return result200;
5840
+ });
5841
+ }
5842
+ else if (status !== 200 && status !== 204) {
5843
+ return response.text().then((_responseText) => {
5844
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
5845
+ });
5846
+ }
5847
+ return Promise.resolve(null);
5848
+ }
5849
+ createParentTopic(request) {
5850
+ let url_ = this.baseUrl + "/downtimereasonsadmin/downtimereasons/parents";
5851
+ url_ = url_.replace(/[?&]$/, "");
5852
+ const content_ = JSON.stringify(request);
5853
+ let options_ = {
5854
+ body: content_,
5855
+ method: "POST",
5856
+ headers: {
5857
+ "Content-Type": "application/json",
5858
+ "Accept": "application/json"
5859
+ }
5860
+ };
5861
+ return this.transformOptions(options_).then(transformedOptions_ => {
5862
+ return this.http.fetch(url_, transformedOptions_);
5863
+ }).then((_response) => {
5864
+ return this.processCreateParentTopic(_response);
5865
+ });
5866
+ }
5867
+ processCreateParentTopic(response) {
5868
+ const status = response.status;
5869
+ let _headers = {};
5870
+ if (response.headers && response.headers.forEach) {
5871
+ response.headers.forEach((v, k) => _headers[k] = v);
5872
+ }
5873
+ ;
5874
+ if (status === 200) {
5875
+ return response.text().then((_responseText) => {
5876
+ let result200 = null;
5877
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
5878
+ result200 = ParentTopicDto.fromJS(resultData200);
5879
+ return result200;
5880
+ });
5881
+ }
5882
+ else if (status !== 200 && status !== 204) {
5883
+ return response.text().then((_responseText) => {
5884
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
5885
+ });
5886
+ }
5887
+ return Promise.resolve(null);
5888
+ }
5889
+ updateParentTopic(id, request) {
5890
+ let url_ = this.baseUrl + "/downtimereasonsadmin/downtimereasons/parents/{id}";
5891
+ if (id === undefined || id === null)
5892
+ throw new Error("The parameter 'id' must be defined.");
5893
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
5894
+ url_ = url_.replace(/[?&]$/, "");
5895
+ const content_ = JSON.stringify(request);
5896
+ let options_ = {
5897
+ body: content_,
5898
+ method: "PUT",
5899
+ headers: {
5900
+ "Content-Type": "application/json",
5901
+ "Accept": "application/json"
5902
+ }
5903
+ };
5904
+ return this.transformOptions(options_).then(transformedOptions_ => {
5905
+ return this.http.fetch(url_, transformedOptions_);
5906
+ }).then((_response) => {
5907
+ return this.processUpdateParentTopic(_response);
5908
+ });
5909
+ }
5910
+ processUpdateParentTopic(response) {
5911
+ const status = response.status;
5912
+ let _headers = {};
5913
+ if (response.headers && response.headers.forEach) {
5914
+ response.headers.forEach((v, k) => _headers[k] = v);
5915
+ }
5916
+ ;
5917
+ if (status === 200) {
5918
+ return response.text().then((_responseText) => {
5919
+ let result200 = null;
5920
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
5921
+ result200 = ParentTopicDto.fromJS(resultData200);
5922
+ return result200;
5923
+ });
5924
+ }
5925
+ else if (status !== 200 && status !== 204) {
5926
+ return response.text().then((_responseText) => {
5927
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
5928
+ });
5929
+ }
5930
+ return Promise.resolve(null);
5931
+ }
5932
+ deleteParentTopic(id) {
5933
+ let url_ = this.baseUrl + "/downtimereasonsadmin/downtimereasons/parents/{id}";
5934
+ if (id === undefined || id === null)
5935
+ throw new Error("The parameter 'id' must be defined.");
5936
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
5937
+ url_ = url_.replace(/[?&]$/, "");
5938
+ let options_ = {
5939
+ method: "DELETE",
5940
+ headers: {}
5941
+ };
5942
+ return this.transformOptions(options_).then(transformedOptions_ => {
5943
+ return this.http.fetch(url_, transformedOptions_);
5944
+ }).then((_response) => {
5945
+ return this.processDeleteParentTopic(_response);
5946
+ });
5947
+ }
5948
+ processDeleteParentTopic(response) {
5949
+ const status = response.status;
5950
+ let _headers = {};
5951
+ if (response.headers && response.headers.forEach) {
5952
+ response.headers.forEach((v, k) => _headers[k] = v);
5953
+ }
5954
+ ;
5955
+ if (status === 204) {
5956
+ return response.text().then((_responseText) => {
5957
+ return;
5958
+ });
5959
+ }
5960
+ else if (status !== 200 && status !== 204) {
5961
+ return response.text().then((_responseText) => {
5962
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
5963
+ });
5964
+ }
5965
+ return Promise.resolve(null);
5966
+ }
5808
5967
  }
5809
5968
  export class DowntimeReasonsClient extends AuthorizedApiBase {
5810
5969
  constructor(configuration, baseUrl, http) {
@@ -16969,37 +17128,15 @@ export class MesResourceClient extends AuthorizedApiBase {
16969
17128
  return Promise.resolve(null);
16970
17129
  }
16971
17130
  }
16972
- export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17131
+ export class ElectricalClient extends AuthorizedApiBase {
16973
17132
  constructor(configuration, baseUrl, http) {
16974
17133
  super(configuration);
16975
17134
  this.jsonParseReviver = undefined;
16976
17135
  this.http = http ? http : window;
16977
17136
  this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
16978
17137
  }
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) + "&";
17138
+ listElectricalSourceTypes() {
17139
+ let url_ = this.baseUrl + "/iot/electrical/sourcetypes";
17003
17140
  url_ = url_.replace(/[?&]$/, "");
17004
17141
  let options_ = {
17005
17142
  method: "GET",
@@ -17010,10 +17147,10 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17010
17147
  return this.transformOptions(options_).then(transformedOptions_ => {
17011
17148
  return this.http.fetch(url_, transformedOptions_);
17012
17149
  }).then((_response) => {
17013
- return this.processListMeasurmentFormSchemas(_response);
17150
+ return this.processListElectricalSourceTypes(_response);
17014
17151
  });
17015
17152
  }
17016
- processListMeasurmentFormSchemas(response) {
17153
+ processListElectricalSourceTypes(response) {
17017
17154
  const status = response.status;
17018
17155
  let _headers = {};
17019
17156
  if (response.headers && response.headers.forEach) {
@@ -17024,7 +17161,11 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17024
17161
  return response.text().then((_responseText) => {
17025
17162
  let result200 = null;
17026
17163
  let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
17027
- result200 = PagedResultOfMeasurementFormListDto.fromJS(resultData200);
17164
+ if (Array.isArray(resultData200)) {
17165
+ result200 = [];
17166
+ for (let item of resultData200)
17167
+ result200.push(IotTypeSourceDto.fromJS(item));
17168
+ }
17028
17169
  return result200;
17029
17170
  });
17030
17171
  }
@@ -17035,25 +17176,22 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17035
17176
  }
17036
17177
  return Promise.resolve(null);
17037
17178
  }
17038
- createMeasurementForm(request) {
17039
- let url_ = this.baseUrl + "/measurementforms/schemas";
17179
+ listElectricalDataConfigs() {
17180
+ let url_ = this.baseUrl + "/iot/electrical";
17040
17181
  url_ = url_.replace(/[?&]$/, "");
17041
- const content_ = JSON.stringify(request);
17042
17182
  let options_ = {
17043
- body: content_,
17044
- method: "POST",
17183
+ method: "GET",
17045
17184
  headers: {
17046
- "Content-Type": "application/json",
17047
17185
  "Accept": "application/json"
17048
17186
  }
17049
17187
  };
17050
17188
  return this.transformOptions(options_).then(transformedOptions_ => {
17051
17189
  return this.http.fetch(url_, transformedOptions_);
17052
17190
  }).then((_response) => {
17053
- return this.processCreateMeasurementForm(_response);
17191
+ return this.processListElectricalDataConfigs(_response);
17054
17192
  });
17055
17193
  }
17056
- processCreateMeasurementForm(response) {
17194
+ processListElectricalDataConfigs(response) {
17057
17195
  const status = response.status;
17058
17196
  let _headers = {};
17059
17197
  if (response.headers && response.headers.forEach) {
@@ -17064,7 +17202,11 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17064
17202
  return response.text().then((_responseText) => {
17065
17203
  let result200 = null;
17066
17204
  let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
17067
- result200 = MeasurementFormDto.fromJS(resultData200);
17205
+ if (Array.isArray(resultData200)) {
17206
+ result200 = [];
17207
+ for (let item of resultData200)
17208
+ result200.push(ElectricalIotConfigDto.fromJS(item));
17209
+ }
17068
17210
  return result200;
17069
17211
  });
17070
17212
  }
@@ -17075,8 +17217,8 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17075
17217
  }
17076
17218
  return Promise.resolve(null);
17077
17219
  }
17078
- postListMeasurementFormSchemas(request) {
17079
- let url_ = this.baseUrl + "/measurementforms/schemas/list";
17220
+ createElectricalIotConfig(request) {
17221
+ let url_ = this.baseUrl + "/iot/electrical";
17080
17222
  url_ = url_.replace(/[?&]$/, "");
17081
17223
  const content_ = JSON.stringify(request);
17082
17224
  let options_ = {
@@ -17090,10 +17232,10 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17090
17232
  return this.transformOptions(options_).then(transformedOptions_ => {
17091
17233
  return this.http.fetch(url_, transformedOptions_);
17092
17234
  }).then((_response) => {
17093
- return this.processPostListMeasurementFormSchemas(_response);
17235
+ return this.processCreateElectricalIotConfig(_response);
17094
17236
  });
17095
17237
  }
17096
- processPostListMeasurementFormSchemas(response) {
17238
+ processCreateElectricalIotConfig(response) {
17097
17239
  const status = response.status;
17098
17240
  let _headers = {};
17099
17241
  if (response.headers && response.headers.forEach) {
@@ -17104,7 +17246,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17104
17246
  return response.text().then((_responseText) => {
17105
17247
  let result200 = null;
17106
17248
  let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
17107
- result200 = PagedResultOfMeasurementFormListDto.fromJS(resultData200);
17249
+ result200 = ElectricalIotConfigDto.fromJS(resultData200);
17108
17250
  return result200;
17109
17251
  });
17110
17252
  }
@@ -17115,12 +17257,55 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17115
17257
  }
17116
17258
  return Promise.resolve(null);
17117
17259
  }
17118
- getMeasurementFormSchema(id) {
17119
- let url_ = this.baseUrl + "/measurementforms/schemas/{id}";
17260
+ deleteElectricalIotConfig(typeId, id) {
17261
+ let url_ = this.baseUrl + "/iot/electrical/{typeId}/{id}";
17262
+ if (typeId === undefined || typeId === null)
17263
+ throw new Error("The parameter 'typeId' must be defined.");
17264
+ url_ = url_.replace("{typeId}", encodeURIComponent("" + typeId));
17120
17265
  if (id === undefined || id === null)
17121
17266
  throw new Error("The parameter 'id' must be defined.");
17122
17267
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
17123
17268
  url_ = url_.replace(/[?&]$/, "");
17269
+ let options_ = {
17270
+ method: "DELETE",
17271
+ headers: {}
17272
+ };
17273
+ return this.transformOptions(options_).then(transformedOptions_ => {
17274
+ return this.http.fetch(url_, transformedOptions_);
17275
+ }).then((_response) => {
17276
+ return this.processDeleteElectricalIotConfig(_response);
17277
+ });
17278
+ }
17279
+ processDeleteElectricalIotConfig(response) {
17280
+ const status = response.status;
17281
+ let _headers = {};
17282
+ if (response.headers && response.headers.forEach) {
17283
+ response.headers.forEach((v, k) => _headers[k] = v);
17284
+ }
17285
+ ;
17286
+ if (status === 204) {
17287
+ return response.text().then((_responseText) => {
17288
+ return;
17289
+ });
17290
+ }
17291
+ else if (status !== 200 && status !== 204) {
17292
+ return response.text().then((_responseText) => {
17293
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
17294
+ });
17295
+ }
17296
+ return Promise.resolve(null);
17297
+ }
17298
+ }
17299
+ export class WeldingClient extends AuthorizedApiBase {
17300
+ constructor(configuration, baseUrl, http) {
17301
+ super(configuration);
17302
+ this.jsonParseReviver = undefined;
17303
+ this.http = http ? http : window;
17304
+ this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
17305
+ }
17306
+ listWeldingSourceTypes() {
17307
+ let url_ = this.baseUrl + "/iot/welding/sourcetypes";
17308
+ url_ = url_.replace(/[?&]$/, "");
17124
17309
  let options_ = {
17125
17310
  method: "GET",
17126
17311
  headers: {
@@ -17130,10 +17315,10 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17130
17315
  return this.transformOptions(options_).then(transformedOptions_ => {
17131
17316
  return this.http.fetch(url_, transformedOptions_);
17132
17317
  }).then((_response) => {
17133
- return this.processGetMeasurementFormSchema(_response);
17318
+ return this.processListWeldingSourceTypes(_response);
17134
17319
  });
17135
17320
  }
17136
- processGetMeasurementFormSchema(response) {
17321
+ processListWeldingSourceTypes(response) {
17137
17322
  const status = response.status;
17138
17323
  let _headers = {};
17139
17324
  if (response.headers && response.headers.forEach) {
@@ -17144,7 +17329,11 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17144
17329
  return response.text().then((_responseText) => {
17145
17330
  let result200 = null;
17146
17331
  let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
17147
- result200 = MeasurementFormSchemaDto.fromJS(resultData200);
17332
+ if (Array.isArray(resultData200)) {
17333
+ result200 = [];
17334
+ for (let item of resultData200)
17335
+ result200.push(IotTypeSourceDto.fromJS(item));
17336
+ }
17148
17337
  return result200;
17149
17338
  });
17150
17339
  }
@@ -17155,16 +17344,54 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17155
17344
  }
17156
17345
  return Promise.resolve(null);
17157
17346
  }
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));
17347
+ listElectricalDataConfigs() {
17348
+ let url_ = this.baseUrl + "/iot/welding";
17349
+ url_ = url_.replace(/[?&]$/, "");
17350
+ let options_ = {
17351
+ method: "GET",
17352
+ headers: {
17353
+ "Accept": "application/json"
17354
+ }
17355
+ };
17356
+ return this.transformOptions(options_).then(transformedOptions_ => {
17357
+ return this.http.fetch(url_, transformedOptions_);
17358
+ }).then((_response) => {
17359
+ return this.processListElectricalDataConfigs(_response);
17360
+ });
17361
+ }
17362
+ processListElectricalDataConfigs(response) {
17363
+ const status = response.status;
17364
+ let _headers = {};
17365
+ if (response.headers && response.headers.forEach) {
17366
+ response.headers.forEach((v, k) => _headers[k] = v);
17367
+ }
17368
+ ;
17369
+ if (status === 200) {
17370
+ return response.text().then((_responseText) => {
17371
+ let result200 = null;
17372
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
17373
+ if (Array.isArray(resultData200)) {
17374
+ result200 = [];
17375
+ for (let item of resultData200)
17376
+ result200.push(WeldingIotConfigDto.fromJS(item));
17377
+ }
17378
+ return result200;
17379
+ });
17380
+ }
17381
+ else if (status !== 200 && status !== 204) {
17382
+ return response.text().then((_responseText) => {
17383
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
17384
+ });
17385
+ }
17386
+ return Promise.resolve(null);
17387
+ }
17388
+ createWeldingIotConfig(request) {
17389
+ let url_ = this.baseUrl + "/iot/welding";
17163
17390
  url_ = url_.replace(/[?&]$/, "");
17164
17391
  const content_ = JSON.stringify(request);
17165
17392
  let options_ = {
17166
17393
  body: content_,
17167
- method: "PUT",
17394
+ method: "POST",
17168
17395
  headers: {
17169
17396
  "Content-Type": "application/json",
17170
17397
  "Accept": "application/json"
@@ -17173,10 +17400,10 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17173
17400
  return this.transformOptions(options_).then(transformedOptions_ => {
17174
17401
  return this.http.fetch(url_, transformedOptions_);
17175
17402
  }).then((_response) => {
17176
- return this.processUpdateMeasurementFormSchema(_response);
17403
+ return this.processCreateWeldingIotConfig(_response);
17177
17404
  });
17178
17405
  }
17179
- processUpdateMeasurementFormSchema(response) {
17406
+ processCreateWeldingIotConfig(response) {
17180
17407
  const status = response.status;
17181
17408
  let _headers = {};
17182
17409
  if (response.headers && response.headers.forEach) {
@@ -17187,7 +17414,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17187
17414
  return response.text().then((_responseText) => {
17188
17415
  let result200 = null;
17189
17416
  let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
17190
- result200 = MeasurementFormSchemaDto.fromJS(resultData200);
17417
+ result200 = WeldingIotConfigDto.fromJS(resultData200);
17191
17418
  return result200;
17192
17419
  });
17193
17420
  }
@@ -17198,8 +17425,11 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17198
17425
  }
17199
17426
  return Promise.resolve(null);
17200
17427
  }
17201
- deleteMeasurementForm(id) {
17202
- let url_ = this.baseUrl + "/measurementforms/schemas/{id}";
17428
+ deleteWeldingIotConfig(typeId, id) {
17429
+ let url_ = this.baseUrl + "/iot/welding/{typeId}/{id}";
17430
+ if (typeId === undefined || typeId === null)
17431
+ throw new Error("The parameter 'typeId' must be defined.");
17432
+ url_ = url_.replace("{typeId}", encodeURIComponent("" + typeId));
17203
17433
  if (id === undefined || id === null)
17204
17434
  throw new Error("The parameter 'id' must be defined.");
17205
17435
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
@@ -17211,10 +17441,10 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17211
17441
  return this.transformOptions(options_).then(transformedOptions_ => {
17212
17442
  return this.http.fetch(url_, transformedOptions_);
17213
17443
  }).then((_response) => {
17214
- return this.processDeleteMeasurementForm(_response);
17444
+ return this.processDeleteWeldingIotConfig(_response);
17215
17445
  });
17216
17446
  }
17217
- processDeleteMeasurementForm(response) {
17447
+ processDeleteWeldingIotConfig(response) {
17218
17448
  const status = response.status;
17219
17449
  let _headers = {};
17220
17450
  if (response.headers && response.headers.forEach) {
@@ -17233,11 +17463,75 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17233
17463
  }
17234
17464
  return Promise.resolve(null);
17235
17465
  }
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));
17466
+ }
17467
+ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17468
+ constructor(configuration, baseUrl, http) {
17469
+ super(configuration);
17470
+ this.jsonParseReviver = undefined;
17471
+ this.http = http ? http : window;
17472
+ this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
17473
+ }
17474
+ listMeasurmentFormSchemas(pageSize, customerId, customerName, partNumber, partName, partRevision, drawing, drawingRevision, filter, continuationToken) {
17475
+ let url_ = this.baseUrl + "/measurementforms/schemas?";
17476
+ if (pageSize === null)
17477
+ throw new Error("The parameter 'pageSize' cannot be null.");
17478
+ else if (pageSize !== undefined)
17479
+ url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
17480
+ if (customerId !== undefined && customerId !== null)
17481
+ url_ += "customerId=" + encodeURIComponent("" + customerId) + "&";
17482
+ if (customerName !== undefined && customerName !== null)
17483
+ url_ += "customerName=" + encodeURIComponent("" + customerName) + "&";
17484
+ if (partNumber !== undefined && partNumber !== null)
17485
+ url_ += "partNumber=" + encodeURIComponent("" + partNumber) + "&";
17486
+ if (partName !== undefined && partName !== null)
17487
+ url_ += "partName=" + encodeURIComponent("" + partName) + "&";
17488
+ if (partRevision !== undefined && partRevision !== null)
17489
+ url_ += "partRevision=" + encodeURIComponent("" + partRevision) + "&";
17490
+ if (drawing !== undefined && drawing !== null)
17491
+ url_ += "drawing=" + encodeURIComponent("" + drawing) + "&";
17492
+ if (drawingRevision !== undefined && drawingRevision !== null)
17493
+ url_ += "drawingRevision=" + encodeURIComponent("" + drawingRevision) + "&";
17494
+ if (filter !== undefined && filter !== null)
17495
+ url_ += "filter=" + encodeURIComponent("" + filter) + "&";
17496
+ if (continuationToken !== undefined && continuationToken !== null)
17497
+ url_ += "continuationToken=" + encodeURIComponent("" + continuationToken) + "&";
17498
+ url_ = url_.replace(/[?&]$/, "");
17499
+ let options_ = {
17500
+ method: "GET",
17501
+ headers: {
17502
+ "Accept": "application/json"
17503
+ }
17504
+ };
17505
+ return this.transformOptions(options_).then(transformedOptions_ => {
17506
+ return this.http.fetch(url_, transformedOptions_);
17507
+ }).then((_response) => {
17508
+ return this.processListMeasurmentFormSchemas(_response);
17509
+ });
17510
+ }
17511
+ processListMeasurmentFormSchemas(response) {
17512
+ const status = response.status;
17513
+ let _headers = {};
17514
+ if (response.headers && response.headers.forEach) {
17515
+ response.headers.forEach((v, k) => _headers[k] = v);
17516
+ }
17517
+ ;
17518
+ if (status === 200) {
17519
+ return response.text().then((_responseText) => {
17520
+ let result200 = null;
17521
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
17522
+ result200 = PagedResultOfMeasurementFormListDto.fromJS(resultData200);
17523
+ return result200;
17524
+ });
17525
+ }
17526
+ else if (status !== 200 && status !== 204) {
17527
+ return response.text().then((_responseText) => {
17528
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
17529
+ });
17530
+ }
17531
+ return Promise.resolve(null);
17532
+ }
17533
+ createMeasurementForm(request) {
17534
+ let url_ = this.baseUrl + "/measurementforms/schemas";
17241
17535
  url_ = url_.replace(/[?&]$/, "");
17242
17536
  const content_ = JSON.stringify(request);
17243
17537
  let options_ = {
@@ -17251,10 +17545,10 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17251
17545
  return this.transformOptions(options_).then(transformedOptions_ => {
17252
17546
  return this.http.fetch(url_, transformedOptions_);
17253
17547
  }).then((_response) => {
17254
- return this.processCopyMeasurementFormSchema(_response);
17548
+ return this.processCreateMeasurementForm(_response);
17255
17549
  });
17256
17550
  }
17257
- processCopyMeasurementFormSchema(response) {
17551
+ processCreateMeasurementForm(response) {
17258
17552
  const status = response.status;
17259
17553
  let _headers = {};
17260
17554
  if (response.headers && response.headers.forEach) {
@@ -17276,16 +17570,13 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17276
17570
  }
17277
17571
  return Promise.resolve(null);
17278
17572
  }
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));
17573
+ postListMeasurementFormSchemas(request) {
17574
+ let url_ = this.baseUrl + "/measurementforms/schemas/list";
17284
17575
  url_ = url_.replace(/[?&]$/, "");
17285
17576
  const content_ = JSON.stringify(request);
17286
17577
  let options_ = {
17287
17578
  body: content_,
17288
- method: "PUT",
17579
+ method: "POST",
17289
17580
  headers: {
17290
17581
  "Content-Type": "application/json",
17291
17582
  "Accept": "application/json"
@@ -17294,10 +17585,50 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17294
17585
  return this.transformOptions(options_).then(transformedOptions_ => {
17295
17586
  return this.http.fetch(url_, transformedOptions_);
17296
17587
  }).then((_response) => {
17297
- return this.processUpdateSchemaGroupedElements(_response);
17588
+ return this.processPostListMeasurementFormSchemas(_response);
17298
17589
  });
17299
17590
  }
17300
- processUpdateSchemaGroupedElements(response) {
17591
+ processPostListMeasurementFormSchemas(response) {
17592
+ const status = response.status;
17593
+ let _headers = {};
17594
+ if (response.headers && response.headers.forEach) {
17595
+ response.headers.forEach((v, k) => _headers[k] = v);
17596
+ }
17597
+ ;
17598
+ if (status === 200) {
17599
+ return response.text().then((_responseText) => {
17600
+ let result200 = null;
17601
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
17602
+ result200 = PagedResultOfMeasurementFormListDto.fromJS(resultData200);
17603
+ return result200;
17604
+ });
17605
+ }
17606
+ else if (status !== 200 && status !== 204) {
17607
+ return response.text().then((_responseText) => {
17608
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
17609
+ });
17610
+ }
17611
+ return Promise.resolve(null);
17612
+ }
17613
+ getMeasurementFormSchema(id) {
17614
+ let url_ = this.baseUrl + "/measurementforms/schemas/{id}";
17615
+ if (id === undefined || id === null)
17616
+ throw new Error("The parameter 'id' must be defined.");
17617
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
17618
+ url_ = url_.replace(/[?&]$/, "");
17619
+ let options_ = {
17620
+ method: "GET",
17621
+ headers: {
17622
+ "Accept": "application/json"
17623
+ }
17624
+ };
17625
+ return this.transformOptions(options_).then(transformedOptions_ => {
17626
+ return this.http.fetch(url_, transformedOptions_);
17627
+ }).then((_response) => {
17628
+ return this.processGetMeasurementFormSchema(_response);
17629
+ });
17630
+ }
17631
+ processGetMeasurementFormSchema(response) {
17301
17632
  const status = response.status;
17302
17633
  let _headers = {};
17303
17634
  if (response.headers && response.headers.forEach) {
@@ -17319,8 +17650,8 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17319
17650
  }
17320
17651
  return Promise.resolve(null);
17321
17652
  }
17322
- updateSchemaRow(id, request) {
17323
- let url_ = this.baseUrl + "/measurementforms/schemas/{id}/updaterow";
17653
+ updateMeasurementFormSchema(id, request) {
17654
+ let url_ = this.baseUrl + "/measurementforms/schemas/{id}";
17324
17655
  if (id === undefined || id === null)
17325
17656
  throw new Error("The parameter 'id' must be defined.");
17326
17657
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
@@ -17337,10 +17668,10 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17337
17668
  return this.transformOptions(options_).then(transformedOptions_ => {
17338
17669
  return this.http.fetch(url_, transformedOptions_);
17339
17670
  }).then((_response) => {
17340
- return this.processUpdateSchemaRow(_response);
17671
+ return this.processUpdateMeasurementFormSchema(_response);
17341
17672
  });
17342
17673
  }
17343
- processUpdateSchemaRow(response) {
17674
+ processUpdateMeasurementFormSchema(response) {
17344
17675
  const status = response.status;
17345
17676
  let _headers = {};
17346
17677
  if (response.headers && response.headers.forEach) {
@@ -17362,8 +17693,43 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17362
17693
  }
17363
17694
  return Promise.resolve(null);
17364
17695
  }
17365
- deleteSchemaRows(id, request) {
17366
- let url_ = this.baseUrl + "/measurementforms/schemas/{id}/deleterows";
17696
+ deleteMeasurementForm(id) {
17697
+ let url_ = this.baseUrl + "/measurementforms/schemas/{id}";
17698
+ if (id === undefined || id === null)
17699
+ throw new Error("The parameter 'id' must be defined.");
17700
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
17701
+ url_ = url_.replace(/[?&]$/, "");
17702
+ let options_ = {
17703
+ method: "DELETE",
17704
+ headers: {}
17705
+ };
17706
+ return this.transformOptions(options_).then(transformedOptions_ => {
17707
+ return this.http.fetch(url_, transformedOptions_);
17708
+ }).then((_response) => {
17709
+ return this.processDeleteMeasurementForm(_response);
17710
+ });
17711
+ }
17712
+ processDeleteMeasurementForm(response) {
17713
+ const status = response.status;
17714
+ let _headers = {};
17715
+ if (response.headers && response.headers.forEach) {
17716
+ response.headers.forEach((v, k) => _headers[k] = v);
17717
+ }
17718
+ ;
17719
+ if (status === 204) {
17720
+ return response.text().then((_responseText) => {
17721
+ return;
17722
+ });
17723
+ }
17724
+ else if (status !== 200 && status !== 204) {
17725
+ return response.text().then((_responseText) => {
17726
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
17727
+ });
17728
+ }
17729
+ return Promise.resolve(null);
17730
+ }
17731
+ copyMeasurementFormSchema(id, request) {
17732
+ let url_ = this.baseUrl + "/measurementforms/schemas/{id}/copy";
17367
17733
  if (id === undefined || id === null)
17368
17734
  throw new Error("The parameter 'id' must be defined.");
17369
17735
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
@@ -17371,7 +17737,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17371
17737
  const content_ = JSON.stringify(request);
17372
17738
  let options_ = {
17373
17739
  body: content_,
17374
- method: "DELETE",
17740
+ method: "POST",
17375
17741
  headers: {
17376
17742
  "Content-Type": "application/json",
17377
17743
  "Accept": "application/json"
@@ -17380,10 +17746,10 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17380
17746
  return this.transformOptions(options_).then(transformedOptions_ => {
17381
17747
  return this.http.fetch(url_, transformedOptions_);
17382
17748
  }).then((_response) => {
17383
- return this.processDeleteSchemaRows(_response);
17749
+ return this.processCopyMeasurementFormSchema(_response);
17384
17750
  });
17385
17751
  }
17386
- processDeleteSchemaRows(response) {
17752
+ processCopyMeasurementFormSchema(response) {
17387
17753
  const status = response.status;
17388
17754
  let _headers = {};
17389
17755
  if (response.headers && response.headers.forEach) {
@@ -17394,7 +17760,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17394
17760
  return response.text().then((_responseText) => {
17395
17761
  let result200 = null;
17396
17762
  let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
17397
- result200 = MeasurementFormSchemaDto.fromJS(resultData200);
17763
+ result200 = MeasurementFormDto.fromJS(resultData200);
17398
17764
  return result200;
17399
17765
  });
17400
17766
  }
@@ -17405,8 +17771,8 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17405
17771
  }
17406
17772
  return Promise.resolve(null);
17407
17773
  }
17408
- uploadMeasurementImage(id, request) {
17409
- let url_ = this.baseUrl + "/measurementforms/schemas/{id}/uploadmeasurementimage";
17774
+ updateSchemaGroupedElements(id, request) {
17775
+ let url_ = this.baseUrl + "/measurementforms/schemas/{id}/groupedelements";
17410
17776
  if (id === undefined || id === null)
17411
17777
  throw new Error("The parameter 'id' must be defined.");
17412
17778
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
@@ -17423,10 +17789,10 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17423
17789
  return this.transformOptions(options_).then(transformedOptions_ => {
17424
17790
  return this.http.fetch(url_, transformedOptions_);
17425
17791
  }).then((_response) => {
17426
- return this.processUploadMeasurementImage(_response);
17792
+ return this.processUpdateSchemaGroupedElements(_response);
17427
17793
  });
17428
17794
  }
17429
- processUploadMeasurementImage(response) {
17795
+ processUpdateSchemaGroupedElements(response) {
17430
17796
  const status = response.status;
17431
17797
  let _headers = {};
17432
17798
  if (response.headers && response.headers.forEach) {
@@ -17448,8 +17814,8 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17448
17814
  }
17449
17815
  return Promise.resolve(null);
17450
17816
  }
17451
- updateSchemaSettings(id, request) {
17452
- let url_ = this.baseUrl + "/measurementforms/schemas/{id}/schemasettings";
17817
+ updateSchemaRow(id, request) {
17818
+ let url_ = this.baseUrl + "/measurementforms/schemas/{id}/updaterow";
17453
17819
  if (id === undefined || id === null)
17454
17820
  throw new Error("The parameter 'id' must be defined.");
17455
17821
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
@@ -17466,10 +17832,10 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17466
17832
  return this.transformOptions(options_).then(transformedOptions_ => {
17467
17833
  return this.http.fetch(url_, transformedOptions_);
17468
17834
  }).then((_response) => {
17469
- return this.processUpdateSchemaSettings(_response);
17835
+ return this.processUpdateSchemaRow(_response);
17470
17836
  });
17471
17837
  }
17472
- processUpdateSchemaSettings(response) {
17838
+ processUpdateSchemaRow(response) {
17473
17839
  const status = response.status;
17474
17840
  let _headers = {};
17475
17841
  if (response.headers && response.headers.forEach) {
@@ -17480,7 +17846,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17480
17846
  return response.text().then((_responseText) => {
17481
17847
  let result200 = null;
17482
17848
  let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
17483
- result200 = UpdateSchemaSettingsRequest.fromJS(resultData200);
17849
+ result200 = MeasurementFormSchemaDto.fromJS(resultData200);
17484
17850
  return result200;
17485
17851
  });
17486
17852
  }
@@ -17491,8 +17857,8 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17491
17857
  }
17492
17858
  return Promise.resolve(null);
17493
17859
  }
17494
- uploadSchemaDrawing(id, request) {
17495
- let url_ = this.baseUrl + "/measurementforms/schemas/{id}/uploaddrawing";
17860
+ deleteSchemaRows(id, request) {
17861
+ let url_ = this.baseUrl + "/measurementforms/schemas/{id}/deleterows";
17496
17862
  if (id === undefined || id === null)
17497
17863
  throw new Error("The parameter 'id' must be defined.");
17498
17864
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
@@ -17500,7 +17866,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17500
17866
  const content_ = JSON.stringify(request);
17501
17867
  let options_ = {
17502
17868
  body: content_,
17503
- method: "POST",
17869
+ method: "DELETE",
17504
17870
  headers: {
17505
17871
  "Content-Type": "application/json",
17506
17872
  "Accept": "application/json"
@@ -17509,10 +17875,10 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17509
17875
  return this.transformOptions(options_).then(transformedOptions_ => {
17510
17876
  return this.http.fetch(url_, transformedOptions_);
17511
17877
  }).then((_response) => {
17512
- return this.processUploadSchemaDrawing(_response);
17878
+ return this.processDeleteSchemaRows(_response);
17513
17879
  });
17514
17880
  }
17515
- processUploadSchemaDrawing(response) {
17881
+ processDeleteSchemaRows(response) {
17516
17882
  const status = response.status;
17517
17883
  let _headers = {};
17518
17884
  if (response.headers && response.headers.forEach) {
@@ -17534,8 +17900,8 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17534
17900
  }
17535
17901
  return Promise.resolve(null);
17536
17902
  }
17537
- uploadSchemaAttachment(id, request) {
17538
- let url_ = this.baseUrl + "/measurementforms/schemas/{id}/uploadattachment";
17903
+ uploadMeasurementImage(id, request) {
17904
+ let url_ = this.baseUrl + "/measurementforms/schemas/{id}/uploadmeasurementimage";
17539
17905
  if (id === undefined || id === null)
17540
17906
  throw new Error("The parameter 'id' must be defined.");
17541
17907
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
@@ -17543,7 +17909,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17543
17909
  const content_ = JSON.stringify(request);
17544
17910
  let options_ = {
17545
17911
  body: content_,
17546
- method: "POST",
17912
+ method: "PUT",
17547
17913
  headers: {
17548
17914
  "Content-Type": "application/json",
17549
17915
  "Accept": "application/json"
@@ -17552,10 +17918,10 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17552
17918
  return this.transformOptions(options_).then(transformedOptions_ => {
17553
17919
  return this.http.fetch(url_, transformedOptions_);
17554
17920
  }).then((_response) => {
17555
- return this.processUploadSchemaAttachment(_response);
17921
+ return this.processUploadMeasurementImage(_response);
17556
17922
  });
17557
17923
  }
17558
- processUploadSchemaAttachment(response) {
17924
+ processUploadMeasurementImage(response) {
17559
17925
  const status = response.status;
17560
17926
  let _headers = {};
17561
17927
  if (response.headers && response.headers.forEach) {
@@ -17577,25 +17943,28 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17577
17943
  }
17578
17944
  return Promise.resolve(null);
17579
17945
  }
17580
- getMeasurementFormImportStatus(id) {
17581
- let url_ = this.baseUrl + "/measurementforms/schemas/{id}/importstatus";
17946
+ updateSchemaSettings(id, request) {
17947
+ let url_ = this.baseUrl + "/measurementforms/schemas/{id}/schemasettings";
17582
17948
  if (id === undefined || id === null)
17583
17949
  throw new Error("The parameter 'id' must be defined.");
17584
17950
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
17585
17951
  url_ = url_.replace(/[?&]$/, "");
17952
+ const content_ = JSON.stringify(request);
17586
17953
  let options_ = {
17587
- method: "GET",
17954
+ body: content_,
17955
+ method: "PUT",
17588
17956
  headers: {
17957
+ "Content-Type": "application/json",
17589
17958
  "Accept": "application/json"
17590
17959
  }
17591
17960
  };
17592
17961
  return this.transformOptions(options_).then(transformedOptions_ => {
17593
17962
  return this.http.fetch(url_, transformedOptions_);
17594
17963
  }).then((_response) => {
17595
- return this.processGetMeasurementFormImportStatus(_response);
17964
+ return this.processUpdateSchemaSettings(_response);
17596
17965
  });
17597
17966
  }
17598
- processGetMeasurementFormImportStatus(response) {
17967
+ processUpdateSchemaSettings(response) {
17599
17968
  const status = response.status;
17600
17969
  let _headers = {};
17601
17970
  if (response.headers && response.headers.forEach) {
@@ -17606,7 +17975,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17606
17975
  return response.text().then((_responseText) => {
17607
17976
  let result200 = null;
17608
17977
  let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
17609
- result200 = MeasurementFormImportStatusDto.fromJS(resultData200);
17978
+ result200 = UpdateSchemaSettingsRequest.fromJS(resultData200);
17610
17979
  return result200;
17611
17980
  });
17612
17981
  }
@@ -17617,33 +17986,28 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17617
17986
  }
17618
17987
  return Promise.resolve(null);
17619
17988
  }
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) + "&";
17989
+ uploadSchemaDrawing(id, request) {
17990
+ let url_ = this.baseUrl + "/measurementforms/schemas/{id}/uploaddrawing";
17991
+ if (id === undefined || id === null)
17992
+ throw new Error("The parameter 'id' must be defined.");
17993
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
17633
17994
  url_ = url_.replace(/[?&]$/, "");
17995
+ const content_ = JSON.stringify(request);
17634
17996
  let options_ = {
17635
- method: "GET",
17997
+ body: content_,
17998
+ method: "POST",
17636
17999
  headers: {
18000
+ "Content-Type": "application/json",
17637
18001
  "Accept": "application/json"
17638
18002
  }
17639
18003
  };
17640
18004
  return this.transformOptions(options_).then(transformedOptions_ => {
17641
18005
  return this.http.fetch(url_, transformedOptions_);
17642
18006
  }).then((_response) => {
17643
- return this.processListLinkableMeasurementFormSchemas(_response);
18007
+ return this.processUploadSchemaDrawing(_response);
17644
18008
  });
17645
18009
  }
17646
- processListLinkableMeasurementFormSchemas(response) {
18010
+ processUploadSchemaDrawing(response) {
17647
18011
  const status = response.status;
17648
18012
  let _headers = {};
17649
18013
  if (response.headers && response.headers.forEach) {
@@ -17654,7 +18018,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17654
18018
  return response.text().then((_responseText) => {
17655
18019
  let result200 = null;
17656
18020
  let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
17657
- result200 = PagedResultOfMeasurementFormListDto.fromJS(resultData200);
18021
+ result200 = MeasurementFormSchemaDto.fromJS(resultData200);
17658
18022
  return result200;
17659
18023
  });
17660
18024
  }
@@ -17665,8 +18029,11 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17665
18029
  }
17666
18030
  return Promise.resolve(null);
17667
18031
  }
17668
- postListLinkableMeasurementFormSchemas(request) {
17669
- let url_ = this.baseUrl + "/measurementforms/schemas/listlinkableschemas";
18032
+ uploadSchemaAttachment(id, request) {
18033
+ let url_ = this.baseUrl + "/measurementforms/schemas/{id}/uploadattachment";
18034
+ if (id === undefined || id === null)
18035
+ throw new Error("The parameter 'id' must be defined.");
18036
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
17670
18037
  url_ = url_.replace(/[?&]$/, "");
17671
18038
  const content_ = JSON.stringify(request);
17672
18039
  let options_ = {
@@ -17680,10 +18047,10 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17680
18047
  return this.transformOptions(options_).then(transformedOptions_ => {
17681
18048
  return this.http.fetch(url_, transformedOptions_);
17682
18049
  }).then((_response) => {
17683
- return this.processPostListLinkableMeasurementFormSchemas(_response);
18050
+ return this.processUploadSchemaAttachment(_response);
17684
18051
  });
17685
18052
  }
17686
- processPostListLinkableMeasurementFormSchemas(response) {
18053
+ processUploadSchemaAttachment(response) {
17687
18054
  const status = response.status;
17688
18055
  let _headers = {};
17689
18056
  if (response.headers && response.headers.forEach) {
@@ -17694,7 +18061,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17694
18061
  return response.text().then((_responseText) => {
17695
18062
  let result200 = null;
17696
18063
  let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
17697
- result200 = PagedResultOfMeasurementFormListDto.fromJS(resultData200);
18064
+ result200 = MeasurementFormSchemaDto.fromJS(resultData200);
17698
18065
  return result200;
17699
18066
  });
17700
18067
  }
@@ -17705,28 +18072,25 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17705
18072
  }
17706
18073
  return Promise.resolve(null);
17707
18074
  }
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));
18075
+ getMeasurementFormImportStatus(id) {
18076
+ let url_ = this.baseUrl + "/measurementforms/schemas/{id}/importstatus";
18077
+ if (id === undefined || id === null)
18078
+ throw new Error("The parameter 'id' must be defined.");
18079
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
17713
18080
  url_ = url_.replace(/[?&]$/, "");
17714
- const content_ = JSON.stringify(request);
17715
18081
  let options_ = {
17716
- body: content_,
17717
- method: "POST",
18082
+ method: "GET",
17718
18083
  headers: {
17719
- "Content-Type": "application/json",
17720
18084
  "Accept": "application/json"
17721
18085
  }
17722
18086
  };
17723
18087
  return this.transformOptions(options_).then(transformedOptions_ => {
17724
18088
  return this.http.fetch(url_, transformedOptions_);
17725
18089
  }).then((_response) => {
17726
- return this.processCreateMeasurementFormSchemaLink(_response);
18090
+ return this.processGetMeasurementFormImportStatus(_response);
17727
18091
  });
17728
18092
  }
17729
- processCreateMeasurementFormSchemaLink(response) {
18093
+ processGetMeasurementFormImportStatus(response) {
17730
18094
  const status = response.status;
17731
18095
  let _headers = {};
17732
18096
  if (response.headers && response.headers.forEach) {
@@ -17737,7 +18101,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17737
18101
  return response.text().then((_responseText) => {
17738
18102
  let result200 = null;
17739
18103
  let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
17740
- result200 = MeasurementFormDto.fromJS(resultData200);
18104
+ result200 = MeasurementFormImportStatusDto.fromJS(resultData200);
17741
18105
  return result200;
17742
18106
  });
17743
18107
  }
@@ -17748,35 +18112,45 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17748
18112
  }
17749
18113
  return Promise.resolve(null);
17750
18114
  }
17751
- deleteMeasurementFormSchemaLink(schemaId, linkedSchemaId) {
17752
- let url_ = this.baseUrl + "/measurementforms/schemas/{schemaId}/link/{linkedSchemaId}";
18115
+ listLinkableMeasurementFormSchemas(schemaId, pageSize, filter, continuationToken) {
18116
+ let url_ = this.baseUrl + "/measurementforms/schemas/{schemaId}/listlinkableschemas?";
17753
18117
  if (schemaId === undefined || schemaId === null)
17754
18118
  throw new Error("The parameter 'schemaId' must be defined.");
17755
18119
  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));
18120
+ if (pageSize === null)
18121
+ throw new Error("The parameter 'pageSize' cannot be null.");
18122
+ else if (pageSize !== undefined)
18123
+ url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
18124
+ if (filter !== undefined && filter !== null)
18125
+ url_ += "filter=" + encodeURIComponent("" + filter) + "&";
18126
+ if (continuationToken !== undefined && continuationToken !== null)
18127
+ url_ += "continuationToken=" + encodeURIComponent("" + continuationToken) + "&";
17759
18128
  url_ = url_.replace(/[?&]$/, "");
17760
18129
  let options_ = {
17761
- method: "DELETE",
17762
- headers: {}
18130
+ method: "GET",
18131
+ headers: {
18132
+ "Accept": "application/json"
18133
+ }
17763
18134
  };
17764
18135
  return this.transformOptions(options_).then(transformedOptions_ => {
17765
18136
  return this.http.fetch(url_, transformedOptions_);
17766
18137
  }).then((_response) => {
17767
- return this.processDeleteMeasurementFormSchemaLink(_response);
18138
+ return this.processListLinkableMeasurementFormSchemas(_response);
17768
18139
  });
17769
18140
  }
17770
- processDeleteMeasurementFormSchemaLink(response) {
18141
+ processListLinkableMeasurementFormSchemas(response) {
17771
18142
  const status = response.status;
17772
18143
  let _headers = {};
17773
18144
  if (response.headers && response.headers.forEach) {
17774
18145
  response.headers.forEach((v, k) => _headers[k] = v);
17775
18146
  }
17776
18147
  ;
17777
- if (status === 204) {
18148
+ if (status === 200) {
17778
18149
  return response.text().then((_responseText) => {
17779
- return;
18150
+ let result200 = null;
18151
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
18152
+ result200 = PagedResultOfMeasurementFormListDto.fromJS(resultData200);
18153
+ return result200;
17780
18154
  });
17781
18155
  }
17782
18156
  else if (status !== 200 && status !== 204) {
@@ -17786,25 +18160,25 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17786
18160
  }
17787
18161
  return Promise.resolve(null);
17788
18162
  }
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));
18163
+ postListLinkableMeasurementFormSchemas(request) {
18164
+ let url_ = this.baseUrl + "/measurementforms/schemas/listlinkableschemas";
17794
18165
  url_ = url_.replace(/[?&]$/, "");
18166
+ const content_ = JSON.stringify(request);
17795
18167
  let options_ = {
18168
+ body: content_,
17796
18169
  method: "POST",
17797
18170
  headers: {
18171
+ "Content-Type": "application/json",
17798
18172
  "Accept": "application/json"
17799
18173
  }
17800
18174
  };
17801
18175
  return this.transformOptions(options_).then(transformedOptions_ => {
17802
18176
  return this.http.fetch(url_, transformedOptions_);
17803
18177
  }).then((_response) => {
17804
- return this.processReleaseSchema(_response);
18178
+ return this.processPostListLinkableMeasurementFormSchemas(_response);
17805
18179
  });
17806
18180
  }
17807
- processReleaseSchema(response) {
18181
+ processPostListLinkableMeasurementFormSchemas(response) {
17808
18182
  const status = response.status;
17809
18183
  let _headers = {};
17810
18184
  if (response.headers && response.headers.forEach) {
@@ -17815,7 +18189,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17815
18189
  return response.text().then((_responseText) => {
17816
18190
  let result200 = null;
17817
18191
  let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
17818
- result200 = MeasurementFormDto.fromJS(resultData200);
18192
+ result200 = PagedResultOfMeasurementFormListDto.fromJS(resultData200);
17819
18193
  return result200;
17820
18194
  });
17821
18195
  }
@@ -17826,25 +18200,146 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17826
18200
  }
17827
18201
  return Promise.resolve(null);
17828
18202
  }
17829
- revokeSchema(schemaId) {
17830
- let url_ = this.baseUrl + "/measurementforms/schemas/{schemaId}/revoke";
18203
+ createMeasurementFormSchemaLink(schemaId, request) {
18204
+ let url_ = this.baseUrl + "/measurementforms/schemas/{schemaId}/link";
17831
18205
  if (schemaId === undefined || schemaId === null)
17832
18206
  throw new Error("The parameter 'schemaId' must be defined.");
17833
18207
  url_ = url_.replace("{schemaId}", encodeURIComponent("" + schemaId));
17834
18208
  url_ = url_.replace(/[?&]$/, "");
18209
+ const content_ = JSON.stringify(request);
17835
18210
  let options_ = {
18211
+ body: content_,
17836
18212
  method: "POST",
17837
18213
  headers: {
18214
+ "Content-Type": "application/json",
17838
18215
  "Accept": "application/json"
17839
18216
  }
17840
18217
  };
17841
18218
  return this.transformOptions(options_).then(transformedOptions_ => {
17842
18219
  return this.http.fetch(url_, transformedOptions_);
17843
18220
  }).then((_response) => {
17844
- return this.processRevokeSchema(_response);
18221
+ return this.processCreateMeasurementFormSchemaLink(_response);
17845
18222
  });
17846
18223
  }
17847
- processRevokeSchema(response) {
18224
+ processCreateMeasurementFormSchemaLink(response) {
18225
+ const status = response.status;
18226
+ let _headers = {};
18227
+ if (response.headers && response.headers.forEach) {
18228
+ response.headers.forEach((v, k) => _headers[k] = v);
18229
+ }
18230
+ ;
18231
+ if (status === 200) {
18232
+ return response.text().then((_responseText) => {
18233
+ let result200 = null;
18234
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
18235
+ result200 = MeasurementFormDto.fromJS(resultData200);
18236
+ return result200;
18237
+ });
18238
+ }
18239
+ else if (status !== 200 && status !== 204) {
18240
+ return response.text().then((_responseText) => {
18241
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
18242
+ });
18243
+ }
18244
+ return Promise.resolve(null);
18245
+ }
18246
+ deleteMeasurementFormSchemaLink(schemaId, linkedSchemaId) {
18247
+ let url_ = this.baseUrl + "/measurementforms/schemas/{schemaId}/link/{linkedSchemaId}";
18248
+ if (schemaId === undefined || schemaId === null)
18249
+ throw new Error("The parameter 'schemaId' must be defined.");
18250
+ url_ = url_.replace("{schemaId}", encodeURIComponent("" + schemaId));
18251
+ if (linkedSchemaId === undefined || linkedSchemaId === null)
18252
+ throw new Error("The parameter 'linkedSchemaId' must be defined.");
18253
+ url_ = url_.replace("{linkedSchemaId}", encodeURIComponent("" + linkedSchemaId));
18254
+ url_ = url_.replace(/[?&]$/, "");
18255
+ let options_ = {
18256
+ method: "DELETE",
18257
+ headers: {}
18258
+ };
18259
+ return this.transformOptions(options_).then(transformedOptions_ => {
18260
+ return this.http.fetch(url_, transformedOptions_);
18261
+ }).then((_response) => {
18262
+ return this.processDeleteMeasurementFormSchemaLink(_response);
18263
+ });
18264
+ }
18265
+ processDeleteMeasurementFormSchemaLink(response) {
18266
+ const status = response.status;
18267
+ let _headers = {};
18268
+ if (response.headers && response.headers.forEach) {
18269
+ response.headers.forEach((v, k) => _headers[k] = v);
18270
+ }
18271
+ ;
18272
+ if (status === 204) {
18273
+ return response.text().then((_responseText) => {
18274
+ return;
18275
+ });
18276
+ }
18277
+ else if (status !== 200 && status !== 204) {
18278
+ return response.text().then((_responseText) => {
18279
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
18280
+ });
18281
+ }
18282
+ return Promise.resolve(null);
18283
+ }
18284
+ releaseSchema(schemaId) {
18285
+ let url_ = this.baseUrl + "/measurementforms/schemas/{schemaId}/release";
18286
+ if (schemaId === undefined || schemaId === null)
18287
+ throw new Error("The parameter 'schemaId' must be defined.");
18288
+ url_ = url_.replace("{schemaId}", encodeURIComponent("" + schemaId));
18289
+ url_ = url_.replace(/[?&]$/, "");
18290
+ let options_ = {
18291
+ method: "POST",
18292
+ headers: {
18293
+ "Accept": "application/json"
18294
+ }
18295
+ };
18296
+ return this.transformOptions(options_).then(transformedOptions_ => {
18297
+ return this.http.fetch(url_, transformedOptions_);
18298
+ }).then((_response) => {
18299
+ return this.processReleaseSchema(_response);
18300
+ });
18301
+ }
18302
+ processReleaseSchema(response) {
18303
+ const status = response.status;
18304
+ let _headers = {};
18305
+ if (response.headers && response.headers.forEach) {
18306
+ response.headers.forEach((v, k) => _headers[k] = v);
18307
+ }
18308
+ ;
18309
+ if (status === 200) {
18310
+ return response.text().then((_responseText) => {
18311
+ let result200 = null;
18312
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
18313
+ result200 = MeasurementFormDto.fromJS(resultData200);
18314
+ return result200;
18315
+ });
18316
+ }
18317
+ else if (status !== 200 && status !== 204) {
18318
+ return response.text().then((_responseText) => {
18319
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
18320
+ });
18321
+ }
18322
+ return Promise.resolve(null);
18323
+ }
18324
+ revokeSchema(schemaId) {
18325
+ let url_ = this.baseUrl + "/measurementforms/schemas/{schemaId}/revoke";
18326
+ if (schemaId === undefined || schemaId === null)
18327
+ throw new Error("The parameter 'schemaId' must be defined.");
18328
+ url_ = url_.replace("{schemaId}", encodeURIComponent("" + schemaId));
18329
+ url_ = url_.replace(/[?&]$/, "");
18330
+ let options_ = {
18331
+ method: "POST",
18332
+ headers: {
18333
+ "Accept": "application/json"
18334
+ }
18335
+ };
18336
+ return this.transformOptions(options_).then(transformedOptions_ => {
18337
+ return this.http.fetch(url_, transformedOptions_);
18338
+ }).then((_response) => {
18339
+ return this.processRevokeSchema(_response);
18340
+ });
18341
+ }
18342
+ processRevokeSchema(response) {
17848
18343
  const status = response.status;
17849
18344
  let _headers = {};
17850
18345
  if (response.headers && response.headers.forEach) {
@@ -17975,7 +18470,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17975
18470
  return response.text().then((_responseText) => {
17976
18471
  let result200 = null;
17977
18472
  let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
17978
- result200 = MeasurementFormSettingsDto.fromJS(resultData200);
18473
+ result200 = InspectCompanySettingsDto.fromJS(resultData200);
17979
18474
  return result200;
17980
18475
  });
17981
18476
  }
@@ -18018,7 +18513,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
18018
18513
  return response.text().then((_responseText) => {
18019
18514
  let result200 = null;
18020
18515
  let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
18021
- result200 = MeasurementFormSettingsDto.fromJS(resultData200);
18516
+ result200 = InspectCompanySettingsDto.fromJS(resultData200);
18022
18517
  return result200;
18023
18518
  });
18024
18519
  }
@@ -18289,8 +18784,11 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
18289
18784
  }
18290
18785
  return Promise.resolve(null);
18291
18786
  }
18292
- setMeasurementFormMappingBalloons(id, request) {
18293
- let url_ = this.baseUrl + "/measurementforms/schemas/mapping/{id}/balloons";
18787
+ /**
18788
+ * @deprecated
18789
+ */
18790
+ setMeasurementFormMappingBalloonsV2(id, request) {
18791
+ let url_ = this.baseUrl + "/measurementforms/schemas/mapping/{id}/balloons/v2";
18294
18792
  if (id === undefined || id === null)
18295
18793
  throw new Error("The parameter 'id' must be defined.");
18296
18794
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
@@ -18307,10 +18805,10 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
18307
18805
  return this.transformOptions(options_).then(transformedOptions_ => {
18308
18806
  return this.http.fetch(url_, transformedOptions_);
18309
18807
  }).then((_response) => {
18310
- return this.processSetMeasurementFormMappingBalloons(_response);
18808
+ return this.processSetMeasurementFormMappingBalloonsV2(_response);
18311
18809
  });
18312
18810
  }
18313
- processSetMeasurementFormMappingBalloons(response) {
18811
+ processSetMeasurementFormMappingBalloonsV2(response) {
18314
18812
  const status = response.status;
18315
18813
  let _headers = {};
18316
18814
  if (response.headers && response.headers.forEach) {
@@ -18332,11 +18830,11 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
18332
18830
  }
18333
18831
  return Promise.resolve(null);
18334
18832
  }
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));
18833
+ setMeasurementFormReferencesMapping(mappingId, request) {
18834
+ let url_ = this.baseUrl + "/measurementforms/schemas/mapping/{mappingId}/references";
18835
+ if (mappingId === undefined || mappingId === null)
18836
+ throw new Error("The parameter 'mappingId' must be defined.");
18837
+ url_ = url_.replace("{mappingId}", encodeURIComponent("" + mappingId));
18340
18838
  url_ = url_.replace(/[?&]$/, "");
18341
18839
  const content_ = JSON.stringify(request);
18342
18840
  let options_ = {
@@ -18350,10 +18848,10 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
18350
18848
  return this.transformOptions(options_).then(transformedOptions_ => {
18351
18849
  return this.http.fetch(url_, transformedOptions_);
18352
18850
  }).then((_response) => {
18353
- return this.processSetMeasurementFormMappingBalloonsV2(_response);
18851
+ return this.processSetMeasurementFormReferencesMapping(_response);
18354
18852
  });
18355
18853
  }
18356
- processSetMeasurementFormMappingBalloonsV2(response) {
18854
+ processSetMeasurementFormReferencesMapping(response) {
18357
18855
  const status = response.status;
18358
18856
  let _headers = {};
18359
18857
  if (response.headers && response.headers.forEach) {
@@ -19301,7 +19799,7 @@ export class MeasurementFormSettingsClient extends AuthorizedApiBase {
19301
19799
  return response.text().then((_responseText) => {
19302
19800
  let result200 = null;
19303
19801
  let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
19304
- result200 = MeasurementFormSettingsDto.fromJS(resultData200);
19802
+ result200 = InspectCompanySettingsDto.fromJS(resultData200);
19305
19803
  return result200;
19306
19804
  });
19307
19805
  }
@@ -19341,7 +19839,7 @@ export class MeasurementFormSettingsClient extends AuthorizedApiBase {
19341
19839
  return response.text().then((_responseText) => {
19342
19840
  let result200 = null;
19343
19841
  let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
19344
- result200 = MeasurementFormSettingsDto.fromJS(resultData200);
19842
+ result200 = InspectCompanySettingsDto.fromJS(resultData200);
19345
19843
  return result200;
19346
19844
  });
19347
19845
  }
@@ -20828,342 +21326,6 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
20828
21326
  return Promise.resolve(null);
20829
21327
  }
20830
21328
  }
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
21329
  export class CompaniesClient extends AuthorizedApiBase {
21168
21330
  constructor(configuration, baseUrl, http) {
21169
21331
  super(configuration);
@@ -29221,6 +29383,8 @@ export class DowntimeReasonDto {
29221
29383
  }
29222
29384
  this.reasonType = _data["reasonType"];
29223
29385
  this.description = _data["description"];
29386
+ this.parentId = _data["parentId"];
29387
+ this.displayOrder = _data["displayOrder"];
29224
29388
  }
29225
29389
  }
29226
29390
  static fromJS(data) {
@@ -29240,6 +29404,8 @@ export class DowntimeReasonDto {
29240
29404
  }
29241
29405
  data["reasonType"] = this.reasonType;
29242
29406
  data["description"] = this.description;
29407
+ data["parentId"] = this.parentId;
29408
+ data["displayOrder"] = this.displayOrder;
29243
29409
  return data;
29244
29410
  }
29245
29411
  }
@@ -29308,6 +29474,8 @@ export class UpdateDowntimeReasonRequest {
29308
29474
  }
29309
29475
  this.reasonType = _data["reasonType"];
29310
29476
  this.description = _data["description"];
29477
+ this.parentId = _data["parentId"];
29478
+ this.displayOrder = _data["displayOrder"];
29311
29479
  }
29312
29480
  }
29313
29481
  static fromJS(data) {
@@ -29326,6 +29494,8 @@ export class UpdateDowntimeReasonRequest {
29326
29494
  }
29327
29495
  data["reasonType"] = this.reasonType;
29328
29496
  data["description"] = this.description;
29497
+ data["parentId"] = this.parentId;
29498
+ data["displayOrder"] = this.displayOrder;
29329
29499
  return data;
29330
29500
  }
29331
29501
  }
@@ -29355,6 +29525,104 @@ export class MachineTypeDto {
29355
29525
  return data;
29356
29526
  }
29357
29527
  }
29528
+ export class ParentTopicDto {
29529
+ constructor(data) {
29530
+ if (data) {
29531
+ for (var property in data) {
29532
+ if (data.hasOwnProperty(property))
29533
+ this[property] = data[property];
29534
+ }
29535
+ }
29536
+ }
29537
+ init(_data) {
29538
+ if (_data) {
29539
+ this.id = _data["id"];
29540
+ this.name = _data["name"];
29541
+ this.reasonType = _data["reasonType"];
29542
+ this.description = _data["description"];
29543
+ this.displayOrder = _data["displayOrder"];
29544
+ }
29545
+ }
29546
+ static fromJS(data) {
29547
+ data = typeof data === 'object' ? data : {};
29548
+ let result = new ParentTopicDto();
29549
+ result.init(data);
29550
+ return result;
29551
+ }
29552
+ toJSON(data) {
29553
+ data = typeof data === 'object' ? data : {};
29554
+ data["id"] = this.id;
29555
+ data["name"] = this.name;
29556
+ data["reasonType"] = this.reasonType;
29557
+ data["description"] = this.description;
29558
+ data["displayOrder"] = this.displayOrder;
29559
+ return data;
29560
+ }
29561
+ }
29562
+ export class CreateParentTopicRequest {
29563
+ constructor(data) {
29564
+ if (data) {
29565
+ for (var property in data) {
29566
+ if (data.hasOwnProperty(property))
29567
+ this[property] = data[property];
29568
+ }
29569
+ }
29570
+ }
29571
+ init(_data) {
29572
+ if (_data) {
29573
+ this.name = _data["name"];
29574
+ this.reasonType = _data["reasonType"];
29575
+ this.description = _data["description"];
29576
+ this.displayOrder = _data["displayOrder"];
29577
+ }
29578
+ }
29579
+ static fromJS(data) {
29580
+ data = typeof data === 'object' ? data : {};
29581
+ let result = new CreateParentTopicRequest();
29582
+ result.init(data);
29583
+ return result;
29584
+ }
29585
+ toJSON(data) {
29586
+ data = typeof data === 'object' ? data : {};
29587
+ data["name"] = this.name;
29588
+ data["reasonType"] = this.reasonType;
29589
+ data["description"] = this.description;
29590
+ data["displayOrder"] = this.displayOrder;
29591
+ return data;
29592
+ }
29593
+ }
29594
+ export class UpdateParentTopicRequest {
29595
+ constructor(data) {
29596
+ if (data) {
29597
+ for (var property in data) {
29598
+ if (data.hasOwnProperty(property))
29599
+ this[property] = data[property];
29600
+ }
29601
+ }
29602
+ }
29603
+ init(_data) {
29604
+ if (_data) {
29605
+ this.name = _data["name"];
29606
+ this.reasonType = _data["reasonType"];
29607
+ this.description = _data["description"];
29608
+ this.displayOrder = _data["displayOrder"];
29609
+ }
29610
+ }
29611
+ static fromJS(data) {
29612
+ data = typeof data === 'object' ? data : {};
29613
+ let result = new UpdateParentTopicRequest();
29614
+ result.init(data);
29615
+ return result;
29616
+ }
29617
+ toJSON(data) {
29618
+ data = typeof data === 'object' ? data : {};
29619
+ data["name"] = this.name;
29620
+ data["reasonType"] = this.reasonType;
29621
+ data["description"] = this.description;
29622
+ data["displayOrder"] = this.displayOrder;
29623
+ return data;
29624
+ }
29625
+ }
29358
29626
  export class CreateDowntimePeriodReason {
29359
29627
  constructor(data) {
29360
29628
  if (data) {
@@ -41560,6 +41828,154 @@ export class ProductionResourceDto {
41560
41828
  return data;
41561
41829
  }
41562
41830
  }
41831
+ export class IotTypeSourceDto {
41832
+ constructor(data) {
41833
+ if (data) {
41834
+ for (var property in data) {
41835
+ if (data.hasOwnProperty(property))
41836
+ this[property] = data[property];
41837
+ }
41838
+ }
41839
+ }
41840
+ init(_data) {
41841
+ if (_data) {
41842
+ this.id = _data["id"];
41843
+ this.name = _data["name"];
41844
+ }
41845
+ }
41846
+ static fromJS(data) {
41847
+ data = typeof data === 'object' ? data : {};
41848
+ let result = new IotTypeSourceDto();
41849
+ result.init(data);
41850
+ return result;
41851
+ }
41852
+ toJSON(data) {
41853
+ data = typeof data === 'object' ? data : {};
41854
+ data["id"] = this.id;
41855
+ data["name"] = this.name;
41856
+ return data;
41857
+ }
41858
+ }
41859
+ export class ElectricalIotConfigDto {
41860
+ constructor(data) {
41861
+ if (data) {
41862
+ for (var property in data) {
41863
+ if (data.hasOwnProperty(property))
41864
+ this[property] = data[property];
41865
+ }
41866
+ }
41867
+ }
41868
+ init(_data) {
41869
+ if (_data) {
41870
+ this.id = _data["id"];
41871
+ this.typeId = _data["typeId"];
41872
+ this.serialNumber = _data["serialNumber"];
41873
+ this.assetId = _data["assetId"];
41874
+ this.assetExternalId = _data["assetExternalId"];
41875
+ this.phases = _data["phases"];
41876
+ this.electricalAssetId = _data["electricalAssetId"];
41877
+ this.electricalAssetExternalId = _data["electricalAssetExternalId"];
41878
+ this.electricalTimeseriesId = _data["electricalTimeseriesId"];
41879
+ this.electricalTimeseriesExternalId = _data["electricalTimeseriesExternalId"];
41880
+ }
41881
+ }
41882
+ static fromJS(data) {
41883
+ data = typeof data === 'object' ? data : {};
41884
+ let result = new ElectricalIotConfigDto();
41885
+ result.init(data);
41886
+ return result;
41887
+ }
41888
+ toJSON(data) {
41889
+ data = typeof data === 'object' ? data : {};
41890
+ data["id"] = this.id;
41891
+ data["typeId"] = this.typeId;
41892
+ data["serialNumber"] = this.serialNumber;
41893
+ data["assetId"] = this.assetId;
41894
+ data["assetExternalId"] = this.assetExternalId;
41895
+ data["phases"] = this.phases;
41896
+ data["electricalAssetId"] = this.electricalAssetId;
41897
+ data["electricalAssetExternalId"] = this.electricalAssetExternalId;
41898
+ data["electricalTimeseriesId"] = this.electricalTimeseriesId;
41899
+ data["electricalTimeseriesExternalId"] = this.electricalTimeseriesExternalId;
41900
+ return data;
41901
+ }
41902
+ }
41903
+ export class CreateElectricalIotConfig {
41904
+ constructor(data) {
41905
+ if (data) {
41906
+ for (var property in data) {
41907
+ if (data.hasOwnProperty(property))
41908
+ this[property] = data[property];
41909
+ }
41910
+ }
41911
+ }
41912
+ init(_data) {
41913
+ if (_data) {
41914
+ this.typeId = _data["typeId"];
41915
+ this.serialNumber = _data["serialNumber"];
41916
+ this.assetId = _data["assetId"];
41917
+ this.assetExternalId = _data["assetExternalId"];
41918
+ }
41919
+ }
41920
+ static fromJS(data) {
41921
+ data = typeof data === 'object' ? data : {};
41922
+ let result = new CreateElectricalIotConfig();
41923
+ result.init(data);
41924
+ return result;
41925
+ }
41926
+ toJSON(data) {
41927
+ data = typeof data === 'object' ? data : {};
41928
+ data["typeId"] = this.typeId;
41929
+ data["serialNumber"] = this.serialNumber;
41930
+ data["assetId"] = this.assetId;
41931
+ data["assetExternalId"] = this.assetExternalId;
41932
+ return data;
41933
+ }
41934
+ }
41935
+ export class WeldingIotConfigDto {
41936
+ constructor(data) {
41937
+ if (data) {
41938
+ for (var property in data) {
41939
+ if (data.hasOwnProperty(property))
41940
+ this[property] = data[property];
41941
+ }
41942
+ }
41943
+ }
41944
+ init(_data) {
41945
+ }
41946
+ static fromJS(data) {
41947
+ data = typeof data === 'object' ? data : {};
41948
+ let result = new WeldingIotConfigDto();
41949
+ result.init(data);
41950
+ return result;
41951
+ }
41952
+ toJSON(data) {
41953
+ data = typeof data === 'object' ? data : {};
41954
+ return data;
41955
+ }
41956
+ }
41957
+ export class CreateWeldingIotConfig {
41958
+ constructor(data) {
41959
+ if (data) {
41960
+ for (var property in data) {
41961
+ if (data.hasOwnProperty(property))
41962
+ this[property] = data[property];
41963
+ }
41964
+ }
41965
+ }
41966
+ init(_data) {
41967
+ }
41968
+ static fromJS(data) {
41969
+ data = typeof data === 'object' ? data : {};
41970
+ let result = new CreateWeldingIotConfig();
41971
+ result.init(data);
41972
+ return result;
41973
+ }
41974
+ toJSON(data) {
41975
+ data = typeof data === 'object' ? data : {};
41976
+ return data;
41977
+ }
41978
+ }
41563
41979
  export class PagedResultOfMeasurementFormListDto {
41564
41980
  constructor(data) {
41565
41981
  if (data) {
@@ -41841,6 +42257,7 @@ export class MeasurementFormGroupedElementDto {
41841
42257
  if (_data) {
41842
42258
  this.id = _data["id"];
41843
42259
  this.balloonId = _data["balloonId"];
42260
+ this.reference = _data["reference"];
41844
42261
  this.imageUrl = _data["imageUrl"];
41845
42262
  this.thumbnailUrl = _data["thumbnailUrl"];
41846
42263
  this.section = _data["section"];
@@ -41867,6 +42284,7 @@ export class MeasurementFormGroupedElementDto {
41867
42284
  this.includeInCustomerDocumentation = _data["includeInCustomerDocumentation"];
41868
42285
  this.isDocumentedExternally = _data["isDocumentedExternally"];
41869
42286
  this.balloonQuantity = _data["balloonQuantity"];
42287
+ this.referenceQuantity = _data["referenceQuantity"];
41870
42288
  this.plusToleranceText = _data["plusToleranceText"];
41871
42289
  this.minusToleranceText = _data["minusToleranceText"];
41872
42290
  this.coatingThickness = _data["coatingThickness"];
@@ -41891,6 +42309,7 @@ export class MeasurementFormGroupedElementDto {
41891
42309
  data = typeof data === 'object' ? data : {};
41892
42310
  data["id"] = this.id;
41893
42311
  data["balloonId"] = this.balloonId;
42312
+ data["reference"] = this.reference;
41894
42313
  data["imageUrl"] = this.imageUrl;
41895
42314
  data["thumbnailUrl"] = this.thumbnailUrl;
41896
42315
  data["section"] = this.section;
@@ -41917,6 +42336,7 @@ export class MeasurementFormGroupedElementDto {
41917
42336
  data["includeInCustomerDocumentation"] = this.includeInCustomerDocumentation;
41918
42337
  data["isDocumentedExternally"] = this.isDocumentedExternally;
41919
42338
  data["balloonQuantity"] = this.balloonQuantity;
42339
+ data["referenceQuantity"] = this.referenceQuantity;
41920
42340
  data["plusToleranceText"] = this.plusToleranceText;
41921
42341
  data["minusToleranceText"] = this.minusToleranceText;
41922
42342
  data["coatingThickness"] = this.coatingThickness;
@@ -42194,6 +42614,7 @@ export class UpdateSchemaGroupedElementDto {
42194
42614
  init(_data) {
42195
42615
  if (_data) {
42196
42616
  this.balloonId = _data["balloonId"];
42617
+ this.reference = _data["reference"];
42197
42618
  this.frequency = _data["frequency"];
42198
42619
  this.frequencyParameter = _data["frequencyParameter"];
42199
42620
  this.includeInCustomerDocumentation = _data["includeInCustomerDocumentation"];
@@ -42211,6 +42632,7 @@ export class UpdateSchemaGroupedElementDto {
42211
42632
  toJSON(data) {
42212
42633
  data = typeof data === 'object' ? data : {};
42213
42634
  data["balloonId"] = this.balloonId;
42635
+ data["reference"] = this.reference;
42214
42636
  data["frequency"] = this.frequency;
42215
42637
  data["frequencyParameter"] = this.frequencyParameter;
42216
42638
  data["includeInCustomerDocumentation"] = this.includeInCustomerDocumentation;
@@ -42233,6 +42655,8 @@ export class UpdateSchemaGroupedElementRowDto {
42233
42655
  if (_data) {
42234
42656
  this.id = _data["id"];
42235
42657
  this.balloonId = _data["balloonId"];
42658
+ this.oldReference = _data["oldReference"];
42659
+ this.newReference = _data["newReference"];
42236
42660
  this.section = _data["section"];
42237
42661
  this.pageNumber = _data["pageNumber"];
42238
42662
  this.measurements = _data["measurements"];
@@ -42262,6 +42686,8 @@ export class UpdateSchemaGroupedElementRowDto {
42262
42686
  data = typeof data === 'object' ? data : {};
42263
42687
  data["id"] = this.id;
42264
42688
  data["balloonId"] = this.balloonId;
42689
+ data["oldReference"] = this.oldReference;
42690
+ data["newReference"] = this.newReference;
42265
42691
  data["section"] = this.section;
42266
42692
  data["pageNumber"] = this.pageNumber;
42267
42693
  data["measurements"] = this.measurements;
@@ -42290,9 +42716,6 @@ export class DeleteSchemaGroupedElementRowsDto {
42290
42716
  this[property] = data[property];
42291
42717
  }
42292
42718
  }
42293
- if (!data) {
42294
- this.balloonIds = [];
42295
- }
42296
42719
  }
42297
42720
  init(_data) {
42298
42721
  if (_data) {
@@ -42301,6 +42724,11 @@ export class DeleteSchemaGroupedElementRowsDto {
42301
42724
  for (let item of _data["balloonIds"])
42302
42725
  this.balloonIds.push(item);
42303
42726
  }
42727
+ if (Array.isArray(_data["references"])) {
42728
+ this.references = [];
42729
+ for (let item of _data["references"])
42730
+ this.references.push(item);
42731
+ }
42304
42732
  }
42305
42733
  }
42306
42734
  static fromJS(data) {
@@ -42316,6 +42744,11 @@ export class DeleteSchemaGroupedElementRowsDto {
42316
42744
  for (let item of this.balloonIds)
42317
42745
  data["balloonIds"].push(item);
42318
42746
  }
42747
+ if (Array.isArray(this.references)) {
42748
+ data["references"] = [];
42749
+ for (let item of this.references)
42750
+ data["references"].push(item);
42751
+ }
42319
42752
  return data;
42320
42753
  }
42321
42754
  }
@@ -42333,6 +42766,7 @@ export class UploadMeasurementImageRequest {
42333
42766
  this.uploadKey = _data["uploadKey"];
42334
42767
  this.filename = _data["filename"];
42335
42768
  this.ballonId = _data["ballonId"];
42769
+ this.reference = _data["reference"];
42336
42770
  }
42337
42771
  }
42338
42772
  static fromJS(data) {
@@ -42346,6 +42780,7 @@ export class UploadMeasurementImageRequest {
42346
42780
  data["uploadKey"] = this.uploadKey;
42347
42781
  data["filename"] = this.filename;
42348
42782
  data["ballonId"] = this.ballonId;
42783
+ data["reference"] = this.reference;
42349
42784
  return data;
42350
42785
  }
42351
42786
  }
@@ -42525,7 +42960,7 @@ export class CreateMeasurementFormSchemaLinkRequest {
42525
42960
  return data;
42526
42961
  }
42527
42962
  }
42528
- export class MeasurementFormSettingsDto {
42963
+ export class InspectCompanySettingsDto {
42529
42964
  constructor(data) {
42530
42965
  if (data) {
42531
42966
  for (var property in data) {
@@ -42558,7 +42993,7 @@ export class MeasurementFormSettingsDto {
42558
42993
  }
42559
42994
  static fromJS(data) {
42560
42995
  data = typeof data === 'object' ? data : {};
42561
- let result = new MeasurementFormSettingsDto();
42996
+ let result = new InspectCompanySettingsDto();
42562
42997
  result.init(data);
42563
42998
  return result;
42564
42999
  }
@@ -42725,8 +43160,8 @@ export class MeasurementFormMappingDto {
42725
43160
  }
42726
43161
  }
42727
43162
  if (!data) {
42728
- this.sourceBalloons = [];
42729
- this.targetBalloons = [];
43163
+ this.sourceReferences = [];
43164
+ this.targetReferences = [];
42730
43165
  }
42731
43166
  }
42732
43167
  init(_data) {
@@ -42737,12 +43172,22 @@ export class MeasurementFormMappingDto {
42737
43172
  if (Array.isArray(_data["sourceBalloons"])) {
42738
43173
  this.sourceBalloons = [];
42739
43174
  for (let item of _data["sourceBalloons"])
42740
- this.sourceBalloons.push(MeasurementFormBalloonMappingDto.fromJS(item));
43175
+ this.sourceBalloons.push(MeasurementFormReferenceMappingDto.fromJS(item));
42741
43176
  }
42742
43177
  if (Array.isArray(_data["targetBalloons"])) {
42743
43178
  this.targetBalloons = [];
42744
43179
  for (let item of _data["targetBalloons"])
42745
- this.targetBalloons.push(MeasurementFormBalloonMappingDto.fromJS(item));
43180
+ this.targetBalloons.push(MeasurementFormReferenceMappingDto.fromJS(item));
43181
+ }
43182
+ if (Array.isArray(_data["sourceReferences"])) {
43183
+ this.sourceReferences = [];
43184
+ for (let item of _data["sourceReferences"])
43185
+ this.sourceReferences.push(MeasurementFormReferenceMappingDto.fromJS(item));
43186
+ }
43187
+ if (Array.isArray(_data["targetReferences"])) {
43188
+ this.targetReferences = [];
43189
+ for (let item of _data["targetReferences"])
43190
+ this.targetReferences.push(MeasurementFormReferenceMappingDto.fromJS(item));
42746
43191
  }
42747
43192
  }
42748
43193
  }
@@ -42767,10 +43212,20 @@ export class MeasurementFormMappingDto {
42767
43212
  for (let item of this.targetBalloons)
42768
43213
  data["targetBalloons"].push(item.toJSON());
42769
43214
  }
43215
+ if (Array.isArray(this.sourceReferences)) {
43216
+ data["sourceReferences"] = [];
43217
+ for (let item of this.sourceReferences)
43218
+ data["sourceReferences"].push(item.toJSON());
43219
+ }
43220
+ if (Array.isArray(this.targetReferences)) {
43221
+ data["targetReferences"] = [];
43222
+ for (let item of this.targetReferences)
43223
+ data["targetReferences"].push(item.toJSON());
43224
+ }
42770
43225
  return data;
42771
43226
  }
42772
43227
  }
42773
- export class MeasurementFormBalloonMappingDto {
43228
+ export class MeasurementFormReferenceMappingDto {
42774
43229
  constructor(data) {
42775
43230
  if (data) {
42776
43231
  for (var property in data) {
@@ -42779,19 +43234,21 @@ export class MeasurementFormBalloonMappingDto {
42779
43234
  }
42780
43235
  }
42781
43236
  if (!data) {
42782
- this.balloon = new MeasurementFormGroupedElementDto();
43237
+ this.reference = new MeasurementFormGroupedElementDto();
42783
43238
  }
42784
43239
  }
42785
43240
  init(_data) {
42786
43241
  if (_data) {
42787
- this.balloon = _data["balloon"] ? MeasurementFormGroupedElementDto.fromJS(_data["balloon"]) : new MeasurementFormGroupedElementDto();
43242
+ this.balloon = _data["balloon"] ? MeasurementFormGroupedElementDto.fromJS(_data["balloon"]) : undefined;
42788
43243
  this.mappedBalloonId = _data["mappedBalloonId"];
43244
+ this.reference = _data["reference"] ? MeasurementFormGroupedElementDto.fromJS(_data["reference"]) : new MeasurementFormGroupedElementDto();
43245
+ this.mappedReference = _data["mappedReference"];
42789
43246
  this.mappingScorePercent = _data["mappingScorePercent"];
42790
43247
  }
42791
43248
  }
42792
43249
  static fromJS(data) {
42793
43250
  data = typeof data === 'object' ? data : {};
42794
- let result = new MeasurementFormBalloonMappingDto();
43251
+ let result = new MeasurementFormReferenceMappingDto();
42795
43252
  result.init(data);
42796
43253
  return result;
42797
43254
  }
@@ -42799,6 +43256,8 @@ export class MeasurementFormBalloonMappingDto {
42799
43256
  data = typeof data === 'object' ? data : {};
42800
43257
  data["balloon"] = this.balloon ? this.balloon.toJSON() : undefined;
42801
43258
  data["mappedBalloonId"] = this.mappedBalloonId;
43259
+ data["reference"] = this.reference ? this.reference.toJSON() : undefined;
43260
+ data["mappedReference"] = this.mappedReference;
42802
43261
  data["mappingScorePercent"] = this.mappingScorePercent;
42803
43262
  return data;
42804
43263
  }
@@ -42831,7 +43290,7 @@ export class CreateMeasurementFormMapping {
42831
43290
  return data;
42832
43291
  }
42833
43292
  }
42834
- export class MeasurementFormBalloonMappingRequestDto {
43293
+ export class SetMeasurementFormReferencesMappingRequest {
42835
43294
  constructor(data) {
42836
43295
  if (data) {
42837
43296
  for (var property in data) {
@@ -42839,29 +43298,36 @@ export class MeasurementFormBalloonMappingRequestDto {
42839
43298
  this[property] = data[property];
42840
43299
  }
42841
43300
  }
43301
+ if (!data) {
43302
+ this.mappings = [];
43303
+ }
42842
43304
  }
42843
43305
  init(_data) {
42844
43306
  if (_data) {
42845
- this.sourceBalloonId = _data["sourceBalloonId"];
42846
- this.targetBalloonId = _data["targetBalloonId"];
42847
- this.mappingScorePercent = _data["mappingScorePercent"];
43307
+ if (Array.isArray(_data["mappings"])) {
43308
+ this.mappings = [];
43309
+ for (let item of _data["mappings"])
43310
+ this.mappings.push(MeasurementFormReferenceMappingRequestDto.fromJS(item));
43311
+ }
42848
43312
  }
42849
43313
  }
42850
43314
  static fromJS(data) {
42851
43315
  data = typeof data === 'object' ? data : {};
42852
- let result = new MeasurementFormBalloonMappingRequestDto();
43316
+ let result = new SetMeasurementFormReferencesMappingRequest();
42853
43317
  result.init(data);
42854
43318
  return result;
42855
43319
  }
42856
43320
  toJSON(data) {
42857
43321
  data = typeof data === 'object' ? data : {};
42858
- data["sourceBalloonId"] = this.sourceBalloonId;
42859
- data["targetBalloonId"] = this.targetBalloonId;
42860
- data["mappingScorePercent"] = this.mappingScorePercent;
43322
+ if (Array.isArray(this.mappings)) {
43323
+ data["mappings"] = [];
43324
+ for (let item of this.mappings)
43325
+ data["mappings"].push(item.toJSON());
43326
+ }
42861
43327
  return data;
42862
43328
  }
42863
43329
  }
42864
- export class SetMeasurementFormMappingBalloonsRequest {
43330
+ export class MeasurementFormReferenceMappingRequestDto {
42865
43331
  constructor(data) {
42866
43332
  if (data) {
42867
43333
  for (var property in data) {
@@ -42869,32 +43335,29 @@ export class SetMeasurementFormMappingBalloonsRequest {
42869
43335
  this[property] = data[property];
42870
43336
  }
42871
43337
  }
42872
- if (!data) {
42873
- this.mappings = [];
42874
- }
42875
43338
  }
42876
43339
  init(_data) {
42877
43340
  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
- }
43341
+ this.sourceBalloonId = _data["sourceBalloonId"];
43342
+ this.targetBalloonId = _data["targetBalloonId"];
43343
+ this.sourceReference = _data["sourceReference"];
43344
+ this.targetReference = _data["targetReference"];
43345
+ this.mappingScorePercent = _data["mappingScorePercent"];
42883
43346
  }
42884
43347
  }
42885
43348
  static fromJS(data) {
42886
43349
  data = typeof data === 'object' ? data : {};
42887
- let result = new SetMeasurementFormMappingBalloonsRequest();
43350
+ let result = new MeasurementFormReferenceMappingRequestDto();
42888
43351
  result.init(data);
42889
43352
  return result;
42890
43353
  }
42891
43354
  toJSON(data) {
42892
43355
  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
- }
43356
+ data["sourceBalloonId"] = this.sourceBalloonId;
43357
+ data["targetBalloonId"] = this.targetBalloonId;
43358
+ data["sourceReference"] = this.sourceReference;
43359
+ data["targetReference"] = this.targetReference;
43360
+ data["mappingScorePercent"] = this.mappingScorePercent;
42898
43361
  return data;
42899
43362
  }
42900
43363
  }
@@ -42907,8 +43370,8 @@ export class MeasurementFormMappingSuggestionDto {
42907
43370
  }
42908
43371
  }
42909
43372
  if (!data) {
42910
- this.sourceBalloons = [];
42911
- this.targetBalloons = [];
43373
+ this.sourceReferences = [];
43374
+ this.targetReferences = [];
42912
43375
  }
42913
43376
  }
42914
43377
  init(_data) {
@@ -42918,12 +43381,22 @@ export class MeasurementFormMappingSuggestionDto {
42918
43381
  if (Array.isArray(_data["sourceBalloons"])) {
42919
43382
  this.sourceBalloons = [];
42920
43383
  for (let item of _data["sourceBalloons"])
42921
- this.sourceBalloons.push(MeasurementFormBalloonMappingDto.fromJS(item));
43384
+ this.sourceBalloons.push(MeasurementFormReferenceMappingDto.fromJS(item));
42922
43385
  }
42923
43386
  if (Array.isArray(_data["targetBalloons"])) {
42924
43387
  this.targetBalloons = [];
42925
43388
  for (let item of _data["targetBalloons"])
42926
- this.targetBalloons.push(MeasurementFormBalloonMappingDto.fromJS(item));
43389
+ this.targetBalloons.push(MeasurementFormReferenceMappingDto.fromJS(item));
43390
+ }
43391
+ if (Array.isArray(_data["sourceReferences"])) {
43392
+ this.sourceReferences = [];
43393
+ for (let item of _data["sourceReferences"])
43394
+ this.sourceReferences.push(MeasurementFormReferenceMappingDto.fromJS(item));
43395
+ }
43396
+ if (Array.isArray(_data["targetReferences"])) {
43397
+ this.targetReferences = [];
43398
+ for (let item of _data["targetReferences"])
43399
+ this.targetReferences.push(MeasurementFormReferenceMappingDto.fromJS(item));
42927
43400
  }
42928
43401
  }
42929
43402
  }
@@ -42947,6 +43420,16 @@ export class MeasurementFormMappingSuggestionDto {
42947
43420
  for (let item of this.targetBalloons)
42948
43421
  data["targetBalloons"].push(item.toJSON());
42949
43422
  }
43423
+ if (Array.isArray(this.sourceReferences)) {
43424
+ data["sourceReferences"] = [];
43425
+ for (let item of this.sourceReferences)
43426
+ data["sourceReferences"].push(item.toJSON());
43427
+ }
43428
+ if (Array.isArray(this.targetReferences)) {
43429
+ data["targetReferences"] = [];
43430
+ for (let item of this.targetReferences)
43431
+ data["targetReferences"].push(item.toJSON());
43432
+ }
42950
43433
  return data;
42951
43434
  }
42952
43435
  }
@@ -43406,6 +43889,7 @@ export class SchemaFeedbackDto {
43406
43889
  this.versionId = _data["versionId"];
43407
43890
  this.schemaInstanceId = _data["schemaInstanceId"];
43408
43891
  this.balloonId = _data["balloonId"];
43892
+ this.reference = _data["reference"];
43409
43893
  this.feedback = _data["feedback"];
43410
43894
  this.from = _data["from"];
43411
43895
  this.created = _data["created"] ? new Date(_data["created"].toString()) : undefined;
@@ -43433,6 +43917,7 @@ export class SchemaFeedbackDto {
43433
43917
  data["versionId"] = this.versionId;
43434
43918
  data["schemaInstanceId"] = this.schemaInstanceId;
43435
43919
  data["balloonId"] = this.balloonId;
43920
+ data["reference"] = this.reference;
43436
43921
  data["feedback"] = this.feedback;
43437
43922
  data["from"] = this.from;
43438
43923
  data["created"] = this.created ? this.created.toISOString() : undefined;
@@ -44117,6 +44602,7 @@ export class MeasurementFormInstanceFeedbackDto {
44117
44602
  this.versionId = _data["versionId"];
44118
44603
  this.schemaInstanceId = _data["schemaInstanceId"];
44119
44604
  this.balloonId = _data["balloonId"];
44605
+ this.reference = _data["reference"];
44120
44606
  this.feedback = _data["feedback"];
44121
44607
  this.from = _data["from"];
44122
44608
  this.created = _data["created"] ? new Date(_data["created"].toString()) : undefined;
@@ -44136,6 +44622,7 @@ export class MeasurementFormInstanceFeedbackDto {
44136
44622
  data["versionId"] = this.versionId;
44137
44623
  data["schemaInstanceId"] = this.schemaInstanceId;
44138
44624
  data["balloonId"] = this.balloonId;
44625
+ data["reference"] = this.reference;
44139
44626
  data["feedback"] = this.feedback;
44140
44627
  data["from"] = this.from;
44141
44628
  data["created"] = this.created ? this.created.toISOString() : undefined;
@@ -44371,6 +44858,7 @@ export class MeasurementFormInstanceElementDto {
44371
44858
  this.imageUrl = _data["imageUrl"];
44372
44859
  this.thumbnailUrl = _data["thumbnailUrl"];
44373
44860
  this.balloonId = _data["balloonId"];
44861
+ this.reference = _data["reference"];
44374
44862
  this.section = _data["section"];
44375
44863
  this.pageNumber = _data["pageNumber"];
44376
44864
  this.sheetZone = _data["sheetZone"];
@@ -44394,7 +44882,9 @@ export class MeasurementFormInstanceElementDto {
44394
44882
  this.isDocumentedExternally = _data["isDocumentedExternally"];
44395
44883
  this.canOverrideIsDocumentedExternally = _data["canOverrideIsDocumentedExternally"];
44396
44884
  this.balloonSequence = _data["balloonSequence"];
44885
+ this.referenceIndex = _data["referenceIndex"];
44397
44886
  this.balloonQuantity = _data["balloonQuantity"];
44887
+ this.referenceQuantity = _data["referenceQuantity"];
44398
44888
  this.plusTolerance = _data["plusTolerance"];
44399
44889
  this.minusTolerance = _data["minusTolerance"];
44400
44890
  this.coatingThickness = _data["coatingThickness"];
@@ -44426,6 +44916,7 @@ export class MeasurementFormInstanceElementDto {
44426
44916
  data["imageUrl"] = this.imageUrl;
44427
44917
  data["thumbnailUrl"] = this.thumbnailUrl;
44428
44918
  data["balloonId"] = this.balloonId;
44919
+ data["reference"] = this.reference;
44429
44920
  data["section"] = this.section;
44430
44921
  data["pageNumber"] = this.pageNumber;
44431
44922
  data["sheetZone"] = this.sheetZone;
@@ -44449,7 +44940,9 @@ export class MeasurementFormInstanceElementDto {
44449
44940
  data["isDocumentedExternally"] = this.isDocumentedExternally;
44450
44941
  data["canOverrideIsDocumentedExternally"] = this.canOverrideIsDocumentedExternally;
44451
44942
  data["balloonSequence"] = this.balloonSequence;
44943
+ data["referenceIndex"] = this.referenceIndex;
44452
44944
  data["balloonQuantity"] = this.balloonQuantity;
44945
+ data["referenceQuantity"] = this.referenceQuantity;
44453
44946
  data["plusTolerance"] = this.plusTolerance;
44454
44947
  data["minusTolerance"] = this.minusTolerance;
44455
44948
  data["coatingThickness"] = this.coatingThickness;
@@ -44961,6 +45454,7 @@ export class SchemaFeedbackCreatedDto {
44961
45454
  this.versionId = _data["versionId"];
44962
45455
  this.schemaInstanceId = _data["schemaInstanceId"];
44963
45456
  this.balloonId = _data["balloonId"];
45457
+ this.reference = _data["reference"];
44964
45458
  this.feedback = _data["feedback"];
44965
45459
  this.from = _data["from"];
44966
45460
  this.created = _data["created"] ? new Date(_data["created"].toString()) : undefined;
@@ -44980,6 +45474,7 @@ export class SchemaFeedbackCreatedDto {
44980
45474
  data["versionId"] = this.versionId;
44981
45475
  data["schemaInstanceId"] = this.schemaInstanceId;
44982
45476
  data["balloonId"] = this.balloonId;
45477
+ data["reference"] = this.reference;
44983
45478
  data["feedback"] = this.feedback;
44984
45479
  data["from"] = this.from;
44985
45480
  data["created"] = this.created ? this.created.toISOString() : undefined;
@@ -44998,6 +45493,7 @@ export class CreateMeasurementFormSchemaFeedbackRequest {
44998
45493
  init(_data) {
44999
45494
  if (_data) {
45000
45495
  this.balloonId = _data["balloonId"];
45496
+ this.reference = _data["reference"];
45001
45497
  this.feedback = _data["feedback"];
45002
45498
  }
45003
45499
  }
@@ -45010,6 +45506,7 @@ export class CreateMeasurementFormSchemaFeedbackRequest {
45010
45506
  toJSON(data) {
45011
45507
  data = typeof data === 'object' ? data : {};
45012
45508
  data["balloonId"] = this.balloonId;
45509
+ data["reference"] = this.reference;
45013
45510
  data["feedback"] = this.feedback;
45014
45511
  return data;
45015
45512
  }
@@ -45204,6 +45701,7 @@ export class SchemaInstanceElementDto {
45204
45701
  if (_data) {
45205
45702
  this.elementId = _data["elementId"];
45206
45703
  this.balloonId = _data["balloonId"];
45704
+ this.reference = _data["reference"];
45207
45705
  this.disabled = _data["disabled"];
45208
45706
  }
45209
45707
  }
@@ -45217,158 +45715,11 @@ export class SchemaInstanceElementDto {
45217
45715
  data = typeof data === 'object' ? data : {};
45218
45716
  data["elementId"] = this.elementId;
45219
45717
  data["balloonId"] = this.balloonId;
45718
+ data["reference"] = this.reference;
45220
45719
  data["disabled"] = this.disabled;
45221
45720
  return data;
45222
45721
  }
45223
45722
  }
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
45723
  export class ProductionCompanyDto {
45373
45724
  constructor(data) {
45374
45725
  if (data) {