@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.
@@ -6016,6 +6016,14 @@ export interface IDowntimeReasonsAdminClient {
6016
6016
  deleteDowntimeReason(id: string): Promise<void>;
6017
6017
 
6018
6018
  listMachineTypes(): Promise<MachineTypeDto[]>;
6019
+
6020
+ listParentTopics(): Promise<ParentTopicDto[]>;
6021
+
6022
+ createParentTopic(request: CreateParentTopicRequest): Promise<ParentTopicDto>;
6023
+
6024
+ updateParentTopic(id: string, request: UpdateParentTopicRequest): Promise<ParentTopicDto>;
6025
+
6026
+ deleteParentTopic(id: string): Promise<void>;
6019
6027
  }
6020
6028
 
6021
6029
  export class DowntimeReasonsAdminClient extends AuthorizedApiBase implements IDowntimeReasonsAdminClient {
@@ -6226,6 +6234,164 @@ export class DowntimeReasonsAdminClient extends AuthorizedApiBase implements IDo
6226
6234
  }
6227
6235
  return Promise.resolve<MachineTypeDto[]>(null as any);
6228
6236
  }
6237
+
6238
+ listParentTopics(): Promise<ParentTopicDto[]> {
6239
+ let url_ = this.baseUrl + "/downtimereasonsadmin/downtimereasons/parents";
6240
+ url_ = url_.replace(/[?&]$/, "");
6241
+
6242
+ let options_: RequestInit = {
6243
+ method: "GET",
6244
+ headers: {
6245
+ "Accept": "application/json"
6246
+ }
6247
+ };
6248
+
6249
+ return this.transformOptions(options_).then(transformedOptions_ => {
6250
+ return this.http.fetch(url_, transformedOptions_);
6251
+ }).then((_response: Response) => {
6252
+ return this.processListParentTopics(_response);
6253
+ });
6254
+ }
6255
+
6256
+ protected processListParentTopics(response: Response): Promise<ParentTopicDto[]> {
6257
+ const status = response.status;
6258
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
6259
+ if (status === 200) {
6260
+ return response.text().then((_responseText) => {
6261
+ let result200: any = null;
6262
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
6263
+ if (Array.isArray(resultData200)) {
6264
+ result200 = [] as any;
6265
+ for (let item of resultData200)
6266
+ result200!.push(ParentTopicDto.fromJS(item));
6267
+ }
6268
+ return result200;
6269
+ });
6270
+ } else if (status !== 200 && status !== 204) {
6271
+ return response.text().then((_responseText) => {
6272
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
6273
+ });
6274
+ }
6275
+ return Promise.resolve<ParentTopicDto[]>(null as any);
6276
+ }
6277
+
6278
+ createParentTopic(request: CreateParentTopicRequest): Promise<ParentTopicDto> {
6279
+ let url_ = this.baseUrl + "/downtimereasonsadmin/downtimereasons/parents";
6280
+ url_ = url_.replace(/[?&]$/, "");
6281
+
6282
+ const content_ = JSON.stringify(request);
6283
+
6284
+ let options_: RequestInit = {
6285
+ body: content_,
6286
+ method: "POST",
6287
+ headers: {
6288
+ "Content-Type": "application/json",
6289
+ "Accept": "application/json"
6290
+ }
6291
+ };
6292
+
6293
+ return this.transformOptions(options_).then(transformedOptions_ => {
6294
+ return this.http.fetch(url_, transformedOptions_);
6295
+ }).then((_response: Response) => {
6296
+ return this.processCreateParentTopic(_response);
6297
+ });
6298
+ }
6299
+
6300
+ protected processCreateParentTopic(response: Response): Promise<ParentTopicDto> {
6301
+ const status = response.status;
6302
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
6303
+ if (status === 200) {
6304
+ return response.text().then((_responseText) => {
6305
+ let result200: any = null;
6306
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
6307
+ result200 = ParentTopicDto.fromJS(resultData200);
6308
+ return result200;
6309
+ });
6310
+ } else if (status !== 200 && status !== 204) {
6311
+ return response.text().then((_responseText) => {
6312
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
6313
+ });
6314
+ }
6315
+ return Promise.resolve<ParentTopicDto>(null as any);
6316
+ }
6317
+
6318
+ updateParentTopic(id: string, request: UpdateParentTopicRequest): Promise<ParentTopicDto> {
6319
+ let url_ = this.baseUrl + "/downtimereasonsadmin/downtimereasons/parents/{id}";
6320
+ if (id === undefined || id === null)
6321
+ throw new Error("The parameter 'id' must be defined.");
6322
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
6323
+ url_ = url_.replace(/[?&]$/, "");
6324
+
6325
+ const content_ = JSON.stringify(request);
6326
+
6327
+ let options_: RequestInit = {
6328
+ body: content_,
6329
+ method: "PUT",
6330
+ headers: {
6331
+ "Content-Type": "application/json",
6332
+ "Accept": "application/json"
6333
+ }
6334
+ };
6335
+
6336
+ return this.transformOptions(options_).then(transformedOptions_ => {
6337
+ return this.http.fetch(url_, transformedOptions_);
6338
+ }).then((_response: Response) => {
6339
+ return this.processUpdateParentTopic(_response);
6340
+ });
6341
+ }
6342
+
6343
+ protected processUpdateParentTopic(response: Response): Promise<ParentTopicDto> {
6344
+ const status = response.status;
6345
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
6346
+ if (status === 200) {
6347
+ return response.text().then((_responseText) => {
6348
+ let result200: any = null;
6349
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
6350
+ result200 = ParentTopicDto.fromJS(resultData200);
6351
+ return result200;
6352
+ });
6353
+ } else if (status !== 200 && status !== 204) {
6354
+ return response.text().then((_responseText) => {
6355
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
6356
+ });
6357
+ }
6358
+ return Promise.resolve<ParentTopicDto>(null as any);
6359
+ }
6360
+
6361
+ deleteParentTopic(id: string): Promise<void> {
6362
+ let url_ = this.baseUrl + "/downtimereasonsadmin/downtimereasons/parents/{id}";
6363
+ if (id === undefined || id === null)
6364
+ throw new Error("The parameter 'id' must be defined.");
6365
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
6366
+ url_ = url_.replace(/[?&]$/, "");
6367
+
6368
+ let options_: RequestInit = {
6369
+ method: "DELETE",
6370
+ headers: {
6371
+ }
6372
+ };
6373
+
6374
+ return this.transformOptions(options_).then(transformedOptions_ => {
6375
+ return this.http.fetch(url_, transformedOptions_);
6376
+ }).then((_response: Response) => {
6377
+ return this.processDeleteParentTopic(_response);
6378
+ });
6379
+ }
6380
+
6381
+ protected processDeleteParentTopic(response: Response): Promise<void> {
6382
+ const status = response.status;
6383
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
6384
+ if (status === 204) {
6385
+ return response.text().then((_responseText) => {
6386
+ return;
6387
+ });
6388
+ } else if (status !== 200 && status !== 204) {
6389
+ return response.text().then((_responseText) => {
6390
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
6391
+ });
6392
+ }
6393
+ return Promise.resolve<void>(null as any);
6394
+ }
6229
6395
  }
6230
6396
 
6231
6397
  export interface IDowntimeReasonsClient {
@@ -18120,6 +18286,368 @@ export class MesResourceClient extends AuthorizedApiBase implements IMesResource
18120
18286
  }
18121
18287
  }
18122
18288
 
18289
+ export interface IElectricalClient {
18290
+
18291
+ listElectricalSourceTypes(): Promise<IotTypeSourceDto[]>;
18292
+
18293
+ listElectricalDataConfigs(): Promise<ElectricalIotConfigDto[]>;
18294
+
18295
+ createElectricalIotConfig(request: CreateElectricalIotConfig): Promise<ElectricalIotConfigDto>;
18296
+
18297
+ deleteElectricalIotConfig(typeId: string, id: string): Promise<void>;
18298
+ }
18299
+
18300
+ export class ElectricalClient extends AuthorizedApiBase implements IElectricalClient {
18301
+ private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
18302
+ private baseUrl: string;
18303
+ protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;
18304
+
18305
+ constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
18306
+ super(configuration);
18307
+ this.http = http ? http : window as any;
18308
+ this.baseUrl = baseUrl ?? "";
18309
+ }
18310
+
18311
+ listElectricalSourceTypes(): Promise<IotTypeSourceDto[]> {
18312
+ let url_ = this.baseUrl + "/iot/electrical/sourcetypes";
18313
+ url_ = url_.replace(/[?&]$/, "");
18314
+
18315
+ let options_: RequestInit = {
18316
+ method: "GET",
18317
+ headers: {
18318
+ "Accept": "application/json"
18319
+ }
18320
+ };
18321
+
18322
+ return this.transformOptions(options_).then(transformedOptions_ => {
18323
+ return this.http.fetch(url_, transformedOptions_);
18324
+ }).then((_response: Response) => {
18325
+ return this.processListElectricalSourceTypes(_response);
18326
+ });
18327
+ }
18328
+
18329
+ protected processListElectricalSourceTypes(response: Response): Promise<IotTypeSourceDto[]> {
18330
+ const status = response.status;
18331
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
18332
+ if (status === 200) {
18333
+ return response.text().then((_responseText) => {
18334
+ let result200: any = null;
18335
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
18336
+ if (Array.isArray(resultData200)) {
18337
+ result200 = [] as any;
18338
+ for (let item of resultData200)
18339
+ result200!.push(IotTypeSourceDto.fromJS(item));
18340
+ }
18341
+ return result200;
18342
+ });
18343
+ } else if (status !== 200 && status !== 204) {
18344
+ return response.text().then((_responseText) => {
18345
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
18346
+ });
18347
+ }
18348
+ return Promise.resolve<IotTypeSourceDto[]>(null as any);
18349
+ }
18350
+
18351
+ listElectricalDataConfigs(): Promise<ElectricalIotConfigDto[]> {
18352
+ let url_ = this.baseUrl + "/iot/electrical";
18353
+ url_ = url_.replace(/[?&]$/, "");
18354
+
18355
+ let options_: RequestInit = {
18356
+ method: "GET",
18357
+ headers: {
18358
+ "Accept": "application/json"
18359
+ }
18360
+ };
18361
+
18362
+ return this.transformOptions(options_).then(transformedOptions_ => {
18363
+ return this.http.fetch(url_, transformedOptions_);
18364
+ }).then((_response: Response) => {
18365
+ return this.processListElectricalDataConfigs(_response);
18366
+ });
18367
+ }
18368
+
18369
+ protected processListElectricalDataConfigs(response: Response): Promise<ElectricalIotConfigDto[]> {
18370
+ const status = response.status;
18371
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
18372
+ if (status === 200) {
18373
+ return response.text().then((_responseText) => {
18374
+ let result200: any = null;
18375
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
18376
+ if (Array.isArray(resultData200)) {
18377
+ result200 = [] as any;
18378
+ for (let item of resultData200)
18379
+ result200!.push(ElectricalIotConfigDto.fromJS(item));
18380
+ }
18381
+ return result200;
18382
+ });
18383
+ } else if (status !== 200 && status !== 204) {
18384
+ return response.text().then((_responseText) => {
18385
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
18386
+ });
18387
+ }
18388
+ return Promise.resolve<ElectricalIotConfigDto[]>(null as any);
18389
+ }
18390
+
18391
+ createElectricalIotConfig(request: CreateElectricalIotConfig): Promise<ElectricalIotConfigDto> {
18392
+ let url_ = this.baseUrl + "/iot/electrical";
18393
+ url_ = url_.replace(/[?&]$/, "");
18394
+
18395
+ const content_ = JSON.stringify(request);
18396
+
18397
+ let options_: RequestInit = {
18398
+ body: content_,
18399
+ method: "POST",
18400
+ headers: {
18401
+ "Content-Type": "application/json",
18402
+ "Accept": "application/json"
18403
+ }
18404
+ };
18405
+
18406
+ return this.transformOptions(options_).then(transformedOptions_ => {
18407
+ return this.http.fetch(url_, transformedOptions_);
18408
+ }).then((_response: Response) => {
18409
+ return this.processCreateElectricalIotConfig(_response);
18410
+ });
18411
+ }
18412
+
18413
+ protected processCreateElectricalIotConfig(response: Response): Promise<ElectricalIotConfigDto> {
18414
+ const status = response.status;
18415
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
18416
+ if (status === 200) {
18417
+ return response.text().then((_responseText) => {
18418
+ let result200: any = null;
18419
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
18420
+ result200 = ElectricalIotConfigDto.fromJS(resultData200);
18421
+ return result200;
18422
+ });
18423
+ } else if (status !== 200 && status !== 204) {
18424
+ return response.text().then((_responseText) => {
18425
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
18426
+ });
18427
+ }
18428
+ return Promise.resolve<ElectricalIotConfigDto>(null as any);
18429
+ }
18430
+
18431
+ deleteElectricalIotConfig(typeId: string, id: string): Promise<void> {
18432
+ let url_ = this.baseUrl + "/iot/electrical/{typeId}/{id}";
18433
+ if (typeId === undefined || typeId === null)
18434
+ throw new Error("The parameter 'typeId' must be defined.");
18435
+ url_ = url_.replace("{typeId}", encodeURIComponent("" + typeId));
18436
+ if (id === undefined || id === null)
18437
+ throw new Error("The parameter 'id' must be defined.");
18438
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
18439
+ url_ = url_.replace(/[?&]$/, "");
18440
+
18441
+ let options_: RequestInit = {
18442
+ method: "DELETE",
18443
+ headers: {
18444
+ }
18445
+ };
18446
+
18447
+ return this.transformOptions(options_).then(transformedOptions_ => {
18448
+ return this.http.fetch(url_, transformedOptions_);
18449
+ }).then((_response: Response) => {
18450
+ return this.processDeleteElectricalIotConfig(_response);
18451
+ });
18452
+ }
18453
+
18454
+ protected processDeleteElectricalIotConfig(response: Response): Promise<void> {
18455
+ const status = response.status;
18456
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
18457
+ if (status === 204) {
18458
+ return response.text().then((_responseText) => {
18459
+ return;
18460
+ });
18461
+ } else if (status !== 200 && status !== 204) {
18462
+ return response.text().then((_responseText) => {
18463
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
18464
+ });
18465
+ }
18466
+ return Promise.resolve<void>(null as any);
18467
+ }
18468
+ }
18469
+
18470
+ export interface IWeldingClient {
18471
+
18472
+ listWeldingSourceTypes(): Promise<IotTypeSourceDto[]>;
18473
+
18474
+ listElectricalDataConfigs(): Promise<WeldingIotConfigDto[]>;
18475
+
18476
+ createWeldingIotConfig(request: CreateWeldingIotConfig): Promise<WeldingIotConfigDto>;
18477
+
18478
+ deleteWeldingIotConfig(typeId: string, id: string): Promise<void>;
18479
+ }
18480
+
18481
+ export class WeldingClient extends AuthorizedApiBase implements IWeldingClient {
18482
+ private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
18483
+ private baseUrl: string;
18484
+ protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;
18485
+
18486
+ constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
18487
+ super(configuration);
18488
+ this.http = http ? http : window as any;
18489
+ this.baseUrl = baseUrl ?? "";
18490
+ }
18491
+
18492
+ listWeldingSourceTypes(): Promise<IotTypeSourceDto[]> {
18493
+ let url_ = this.baseUrl + "/iot/welding/sourcetypes";
18494
+ url_ = url_.replace(/[?&]$/, "");
18495
+
18496
+ let options_: RequestInit = {
18497
+ method: "GET",
18498
+ headers: {
18499
+ "Accept": "application/json"
18500
+ }
18501
+ };
18502
+
18503
+ return this.transformOptions(options_).then(transformedOptions_ => {
18504
+ return this.http.fetch(url_, transformedOptions_);
18505
+ }).then((_response: Response) => {
18506
+ return this.processListWeldingSourceTypes(_response);
18507
+ });
18508
+ }
18509
+
18510
+ protected processListWeldingSourceTypes(response: Response): Promise<IotTypeSourceDto[]> {
18511
+ const status = response.status;
18512
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
18513
+ if (status === 200) {
18514
+ return response.text().then((_responseText) => {
18515
+ let result200: any = null;
18516
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
18517
+ if (Array.isArray(resultData200)) {
18518
+ result200 = [] as any;
18519
+ for (let item of resultData200)
18520
+ result200!.push(IotTypeSourceDto.fromJS(item));
18521
+ }
18522
+ return result200;
18523
+ });
18524
+ } else if (status !== 200 && status !== 204) {
18525
+ return response.text().then((_responseText) => {
18526
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
18527
+ });
18528
+ }
18529
+ return Promise.resolve<IotTypeSourceDto[]>(null as any);
18530
+ }
18531
+
18532
+ listElectricalDataConfigs(): Promise<WeldingIotConfigDto[]> {
18533
+ let url_ = this.baseUrl + "/iot/welding";
18534
+ url_ = url_.replace(/[?&]$/, "");
18535
+
18536
+ let options_: RequestInit = {
18537
+ method: "GET",
18538
+ headers: {
18539
+ "Accept": "application/json"
18540
+ }
18541
+ };
18542
+
18543
+ return this.transformOptions(options_).then(transformedOptions_ => {
18544
+ return this.http.fetch(url_, transformedOptions_);
18545
+ }).then((_response: Response) => {
18546
+ return this.processListElectricalDataConfigs(_response);
18547
+ });
18548
+ }
18549
+
18550
+ protected processListElectricalDataConfigs(response: Response): Promise<WeldingIotConfigDto[]> {
18551
+ const status = response.status;
18552
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
18553
+ if (status === 200) {
18554
+ return response.text().then((_responseText) => {
18555
+ let result200: any = null;
18556
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
18557
+ if (Array.isArray(resultData200)) {
18558
+ result200 = [] as any;
18559
+ for (let item of resultData200)
18560
+ result200!.push(WeldingIotConfigDto.fromJS(item));
18561
+ }
18562
+ return result200;
18563
+ });
18564
+ } else if (status !== 200 && status !== 204) {
18565
+ return response.text().then((_responseText) => {
18566
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
18567
+ });
18568
+ }
18569
+ return Promise.resolve<WeldingIotConfigDto[]>(null as any);
18570
+ }
18571
+
18572
+ createWeldingIotConfig(request: CreateWeldingIotConfig): Promise<WeldingIotConfigDto> {
18573
+ let url_ = this.baseUrl + "/iot/welding";
18574
+ url_ = url_.replace(/[?&]$/, "");
18575
+
18576
+ const content_ = JSON.stringify(request);
18577
+
18578
+ let options_: RequestInit = {
18579
+ body: content_,
18580
+ method: "POST",
18581
+ headers: {
18582
+ "Content-Type": "application/json",
18583
+ "Accept": "application/json"
18584
+ }
18585
+ };
18586
+
18587
+ return this.transformOptions(options_).then(transformedOptions_ => {
18588
+ return this.http.fetch(url_, transformedOptions_);
18589
+ }).then((_response: Response) => {
18590
+ return this.processCreateWeldingIotConfig(_response);
18591
+ });
18592
+ }
18593
+
18594
+ protected processCreateWeldingIotConfig(response: Response): Promise<WeldingIotConfigDto> {
18595
+ const status = response.status;
18596
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
18597
+ if (status === 200) {
18598
+ return response.text().then((_responseText) => {
18599
+ let result200: any = null;
18600
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
18601
+ result200 = WeldingIotConfigDto.fromJS(resultData200);
18602
+ return result200;
18603
+ });
18604
+ } else if (status !== 200 && status !== 204) {
18605
+ return response.text().then((_responseText) => {
18606
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
18607
+ });
18608
+ }
18609
+ return Promise.resolve<WeldingIotConfigDto>(null as any);
18610
+ }
18611
+
18612
+ deleteWeldingIotConfig(typeId: string, id: string): Promise<void> {
18613
+ let url_ = this.baseUrl + "/iot/welding/{typeId}/{id}";
18614
+ if (typeId === undefined || typeId === null)
18615
+ throw new Error("The parameter 'typeId' must be defined.");
18616
+ url_ = url_.replace("{typeId}", encodeURIComponent("" + typeId));
18617
+ if (id === undefined || id === null)
18618
+ throw new Error("The parameter 'id' must be defined.");
18619
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
18620
+ url_ = url_.replace(/[?&]$/, "");
18621
+
18622
+ let options_: RequestInit = {
18623
+ method: "DELETE",
18624
+ headers: {
18625
+ }
18626
+ };
18627
+
18628
+ return this.transformOptions(options_).then(transformedOptions_ => {
18629
+ return this.http.fetch(url_, transformedOptions_);
18630
+ }).then((_response: Response) => {
18631
+ return this.processDeleteWeldingIotConfig(_response);
18632
+ });
18633
+ }
18634
+
18635
+ protected processDeleteWeldingIotConfig(response: Response): Promise<void> {
18636
+ const status = response.status;
18637
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
18638
+ if (status === 204) {
18639
+ return response.text().then((_responseText) => {
18640
+ return;
18641
+ });
18642
+ } else if (status !== 200 && status !== 204) {
18643
+ return response.text().then((_responseText) => {
18644
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
18645
+ });
18646
+ }
18647
+ return Promise.resolve<void>(null as any);
18648
+ }
18649
+ }
18650
+
18123
18651
  export interface IMeasurementFormSchemasClient {
18124
18652
 
18125
18653
  listMeasurmentFormSchemas(pageSize: number | undefined, customerId: string | null | undefined, customerName: string | null | undefined, partNumber: string | null | undefined, partName: string | null | undefined, partRevision: string | null | undefined, drawing: string | null | undefined, drawingRevision: string | null | undefined, filter: string | null | undefined, continuationToken: string | null | undefined): Promise<PagedResultOfMeasurementFormListDto>;
@@ -18171,12 +18699,12 @@ export interface IMeasurementFormSchemasClient {
18171
18699
  /**
18172
18700
  * @deprecated
18173
18701
  */
18174
- getMeasurementFormSettings(): Promise<MeasurementFormSettingsDto>;
18702
+ getMeasurementFormSettings(): Promise<InspectCompanySettingsDto>;
18175
18703
 
18176
18704
  /**
18177
18705
  * @deprecated
18178
18706
  */
18179
- updateMeasurementFormSettings(request: UpdateMeasurementFormSettings): Promise<MeasurementFormSettingsDto>;
18707
+ updateMeasurementFormSettings(request: UpdateMeasurementFormSettings): Promise<InspectCompanySettingsDto>;
18180
18708
 
18181
18709
  /**
18182
18710
  * @deprecated
@@ -18196,9 +18724,12 @@ export interface IMeasurementFormSchemasClient {
18196
18724
 
18197
18725
  deleteMeasurementFormMapping(id: string): Promise<void>;
18198
18726
 
18199
- setMeasurementFormMappingBalloons(id: string, request: MeasurementFormBalloonMappingRequestDto[]): Promise<MeasurementFormMappingDto>;
18727
+ /**
18728
+ * @deprecated
18729
+ */
18730
+ setMeasurementFormMappingBalloonsV2(id: string, request: SetMeasurementFormReferencesMappingRequest): Promise<MeasurementFormMappingDto>;
18200
18731
 
18201
- setMeasurementFormMappingBalloonsV2(id: string, request: SetMeasurementFormMappingBalloonsRequest): Promise<MeasurementFormMappingDto>;
18732
+ setMeasurementFormReferencesMapping(mappingId: string, request: SetMeasurementFormReferencesMappingRequest): Promise<MeasurementFormMappingDto>;
18202
18733
 
18203
18734
  getMeasurementFormMappingSuggestion(targetId: string | null | undefined, sourceId: string | null | undefined): Promise<MeasurementFormMappingSuggestionDto>;
18204
18735
 
@@ -19220,7 +19751,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
19220
19751
  /**
19221
19752
  * @deprecated
19222
19753
  */
19223
- getMeasurementFormSettings(): Promise<MeasurementFormSettingsDto> {
19754
+ getMeasurementFormSettings(): Promise<InspectCompanySettingsDto> {
19224
19755
  let url_ = this.baseUrl + "/measurementforms/schemas/settings";
19225
19756
  url_ = url_.replace(/[?&]$/, "");
19226
19757
 
@@ -19238,14 +19769,14 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
19238
19769
  });
19239
19770
  }
19240
19771
 
19241
- protected processGetMeasurementFormSettings(response: Response): Promise<MeasurementFormSettingsDto> {
19772
+ protected processGetMeasurementFormSettings(response: Response): Promise<InspectCompanySettingsDto> {
19242
19773
  const status = response.status;
19243
19774
  let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
19244
19775
  if (status === 200) {
19245
19776
  return response.text().then((_responseText) => {
19246
19777
  let result200: any = null;
19247
19778
  let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
19248
- result200 = MeasurementFormSettingsDto.fromJS(resultData200);
19779
+ result200 = InspectCompanySettingsDto.fromJS(resultData200);
19249
19780
  return result200;
19250
19781
  });
19251
19782
  } else if (status !== 200 && status !== 204) {
@@ -19253,13 +19784,13 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
19253
19784
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
19254
19785
  });
19255
19786
  }
19256
- return Promise.resolve<MeasurementFormSettingsDto>(null as any);
19787
+ return Promise.resolve<InspectCompanySettingsDto>(null as any);
19257
19788
  }
19258
19789
 
19259
19790
  /**
19260
19791
  * @deprecated
19261
19792
  */
19262
- updateMeasurementFormSettings(request: UpdateMeasurementFormSettings): Promise<MeasurementFormSettingsDto> {
19793
+ updateMeasurementFormSettings(request: UpdateMeasurementFormSettings): Promise<InspectCompanySettingsDto> {
19263
19794
  let url_ = this.baseUrl + "/measurementforms/schemas/settings";
19264
19795
  url_ = url_.replace(/[?&]$/, "");
19265
19796
 
@@ -19281,14 +19812,14 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
19281
19812
  });
19282
19813
  }
19283
19814
 
19284
- protected processUpdateMeasurementFormSettings(response: Response): Promise<MeasurementFormSettingsDto> {
19815
+ protected processUpdateMeasurementFormSettings(response: Response): Promise<InspectCompanySettingsDto> {
19285
19816
  const status = response.status;
19286
19817
  let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
19287
19818
  if (status === 200) {
19288
19819
  return response.text().then((_responseText) => {
19289
19820
  let result200: any = null;
19290
19821
  let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
19291
- result200 = MeasurementFormSettingsDto.fromJS(resultData200);
19822
+ result200 = InspectCompanySettingsDto.fromJS(resultData200);
19292
19823
  return result200;
19293
19824
  });
19294
19825
  } else if (status !== 200 && status !== 204) {
@@ -19296,7 +19827,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
19296
19827
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
19297
19828
  });
19298
19829
  }
19299
- return Promise.resolve<MeasurementFormSettingsDto>(null as any);
19830
+ return Promise.resolve<InspectCompanySettingsDto>(null as any);
19300
19831
  }
19301
19832
 
19302
19833
  /**
@@ -19554,8 +20085,11 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
19554
20085
  return Promise.resolve<void>(null as any);
19555
20086
  }
19556
20087
 
19557
- setMeasurementFormMappingBalloons(id: string, request: MeasurementFormBalloonMappingRequestDto[]): Promise<MeasurementFormMappingDto> {
19558
- let url_ = this.baseUrl + "/measurementforms/schemas/mapping/{id}/balloons";
20088
+ /**
20089
+ * @deprecated
20090
+ */
20091
+ setMeasurementFormMappingBalloonsV2(id: string, request: SetMeasurementFormReferencesMappingRequest): Promise<MeasurementFormMappingDto> {
20092
+ let url_ = this.baseUrl + "/measurementforms/schemas/mapping/{id}/balloons/v2";
19559
20093
  if (id === undefined || id === null)
19560
20094
  throw new Error("The parameter 'id' must be defined.");
19561
20095
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
@@ -19575,11 +20109,11 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
19575
20109
  return this.transformOptions(options_).then(transformedOptions_ => {
19576
20110
  return this.http.fetch(url_, transformedOptions_);
19577
20111
  }).then((_response: Response) => {
19578
- return this.processSetMeasurementFormMappingBalloons(_response);
20112
+ return this.processSetMeasurementFormMappingBalloonsV2(_response);
19579
20113
  });
19580
20114
  }
19581
20115
 
19582
- protected processSetMeasurementFormMappingBalloons(response: Response): Promise<MeasurementFormMappingDto> {
20116
+ protected processSetMeasurementFormMappingBalloonsV2(response: Response): Promise<MeasurementFormMappingDto> {
19583
20117
  const status = response.status;
19584
20118
  let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
19585
20119
  if (status === 200) {
@@ -19597,11 +20131,11 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
19597
20131
  return Promise.resolve<MeasurementFormMappingDto>(null as any);
19598
20132
  }
19599
20133
 
19600
- setMeasurementFormMappingBalloonsV2(id: string, request: SetMeasurementFormMappingBalloonsRequest): Promise<MeasurementFormMappingDto> {
19601
- let url_ = this.baseUrl + "/measurementforms/schemas/mapping/{id}/balloons/v2";
19602
- if (id === undefined || id === null)
19603
- throw new Error("The parameter 'id' must be defined.");
19604
- url_ = url_.replace("{id}", encodeURIComponent("" + id));
20134
+ setMeasurementFormReferencesMapping(mappingId: string, request: SetMeasurementFormReferencesMappingRequest): Promise<MeasurementFormMappingDto> {
20135
+ let url_ = this.baseUrl + "/measurementforms/schemas/mapping/{mappingId}/references";
20136
+ if (mappingId === undefined || mappingId === null)
20137
+ throw new Error("The parameter 'mappingId' must be defined.");
20138
+ url_ = url_.replace("{mappingId}", encodeURIComponent("" + mappingId));
19605
20139
  url_ = url_.replace(/[?&]$/, "");
19606
20140
 
19607
20141
  const content_ = JSON.stringify(request);
@@ -19618,11 +20152,11 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
19618
20152
  return this.transformOptions(options_).then(transformedOptions_ => {
19619
20153
  return this.http.fetch(url_, transformedOptions_);
19620
20154
  }).then((_response: Response) => {
19621
- return this.processSetMeasurementFormMappingBalloonsV2(_response);
20155
+ return this.processSetMeasurementFormReferencesMapping(_response);
19622
20156
  });
19623
20157
  }
19624
20158
 
19625
- protected processSetMeasurementFormMappingBalloonsV2(response: Response): Promise<MeasurementFormMappingDto> {
20159
+ protected processSetMeasurementFormReferencesMapping(response: Response): Promise<MeasurementFormMappingDto> {
19626
20160
  const status = response.status;
19627
20161
  let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
19628
20162
  if (status === 200) {
@@ -20526,9 +21060,9 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
20526
21060
 
20527
21061
  export interface IMeasurementFormSettingsClient {
20528
21062
 
20529
- getMeasurementFormSettings(): Promise<MeasurementFormSettingsDto>;
21063
+ getMeasurementFormSettings(): Promise<InspectCompanySettingsDto>;
20530
21064
 
20531
- updateMeasurementFormSettings(request: UpdateMeasurementFormSettings): Promise<MeasurementFormSettingsDto>;
21065
+ updateMeasurementFormSettings(request: UpdateMeasurementFormSettings): Promise<InspectCompanySettingsDto>;
20532
21066
 
20533
21067
  getMeasurementFormCustomerSettings(id: string): Promise<MeasurementFormCustomerSettingsDto>;
20534
21068
 
@@ -20546,7 +21080,7 @@ export class MeasurementFormSettingsClient extends AuthorizedApiBase implements
20546
21080
  this.baseUrl = baseUrl ?? "";
20547
21081
  }
20548
21082
 
20549
- getMeasurementFormSettings(): Promise<MeasurementFormSettingsDto> {
21083
+ getMeasurementFormSettings(): Promise<InspectCompanySettingsDto> {
20550
21084
  let url_ = this.baseUrl + "/measurementforms/settings";
20551
21085
  url_ = url_.replace(/[?&]$/, "");
20552
21086
 
@@ -20564,14 +21098,14 @@ export class MeasurementFormSettingsClient extends AuthorizedApiBase implements
20564
21098
  });
20565
21099
  }
20566
21100
 
20567
- protected processGetMeasurementFormSettings(response: Response): Promise<MeasurementFormSettingsDto> {
21101
+ protected processGetMeasurementFormSettings(response: Response): Promise<InspectCompanySettingsDto> {
20568
21102
  const status = response.status;
20569
21103
  let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
20570
21104
  if (status === 200) {
20571
21105
  return response.text().then((_responseText) => {
20572
21106
  let result200: any = null;
20573
21107
  let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
20574
- result200 = MeasurementFormSettingsDto.fromJS(resultData200);
21108
+ result200 = InspectCompanySettingsDto.fromJS(resultData200);
20575
21109
  return result200;
20576
21110
  });
20577
21111
  } else if (status !== 200 && status !== 204) {
@@ -20579,10 +21113,10 @@ export class MeasurementFormSettingsClient extends AuthorizedApiBase implements
20579
21113
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
20580
21114
  });
20581
21115
  }
20582
- return Promise.resolve<MeasurementFormSettingsDto>(null as any);
21116
+ return Promise.resolve<InspectCompanySettingsDto>(null as any);
20583
21117
  }
20584
21118
 
20585
- updateMeasurementFormSettings(request: UpdateMeasurementFormSettings): Promise<MeasurementFormSettingsDto> {
21119
+ updateMeasurementFormSettings(request: UpdateMeasurementFormSettings): Promise<InspectCompanySettingsDto> {
20586
21120
  let url_ = this.baseUrl + "/measurementforms/settings";
20587
21121
  url_ = url_.replace(/[?&]$/, "");
20588
21122
 
@@ -20604,14 +21138,14 @@ export class MeasurementFormSettingsClient extends AuthorizedApiBase implements
20604
21138
  });
20605
21139
  }
20606
21140
 
20607
- protected processUpdateMeasurementFormSettings(response: Response): Promise<MeasurementFormSettingsDto> {
21141
+ protected processUpdateMeasurementFormSettings(response: Response): Promise<InspectCompanySettingsDto> {
20608
21142
  const status = response.status;
20609
21143
  let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
20610
21144
  if (status === 200) {
20611
21145
  return response.text().then((_responseText) => {
20612
21146
  let result200: any = null;
20613
21147
  let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
20614
- result200 = MeasurementFormSettingsDto.fromJS(resultData200);
21148
+ result200 = InspectCompanySettingsDto.fromJS(resultData200);
20615
21149
  return result200;
20616
21150
  });
20617
21151
  } else if (status !== 200 && status !== 204) {
@@ -20619,7 +21153,7 @@ export class MeasurementFormSettingsClient extends AuthorizedApiBase implements
20619
21153
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
20620
21154
  });
20621
21155
  }
20622
- return Promise.resolve<MeasurementFormSettingsDto>(null as any);
21156
+ return Promise.resolve<InspectCompanySettingsDto>(null as any);
20623
21157
  }
20624
21158
 
20625
21159
  getMeasurementFormCustomerSettings(id: string): Promise<MeasurementFormCustomerSettingsDto> {
@@ -22151,368 +22685,6 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase implement
22151
22685
  }
22152
22686
  }
22153
22687
 
22154
- export interface IElectricalClient {
22155
-
22156
- listElectricalSourceTypes(): Promise<IotTypeSourceDto[]>;
22157
-
22158
- listElectricalDataConfigs(): Promise<ElectricalIotConfigDto[]>;
22159
-
22160
- createElectricalIotConfig(request: CreateElectricalIotConfig): Promise<ElectricalIotConfigDto>;
22161
-
22162
- deleteElectricalIotConfig(typeId: string, id: string): Promise<void>;
22163
- }
22164
-
22165
- export class ElectricalClient extends AuthorizedApiBase implements IElectricalClient {
22166
- private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
22167
- private baseUrl: string;
22168
- protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;
22169
-
22170
- constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
22171
- super(configuration);
22172
- this.http = http ? http : window as any;
22173
- this.baseUrl = baseUrl ?? "";
22174
- }
22175
-
22176
- listElectricalSourceTypes(): Promise<IotTypeSourceDto[]> {
22177
- let url_ = this.baseUrl + "/iot/electrical/sourcetypes";
22178
- url_ = url_.replace(/[?&]$/, "");
22179
-
22180
- let options_: RequestInit = {
22181
- method: "GET",
22182
- headers: {
22183
- "Accept": "application/json"
22184
- }
22185
- };
22186
-
22187
- return this.transformOptions(options_).then(transformedOptions_ => {
22188
- return this.http.fetch(url_, transformedOptions_);
22189
- }).then((_response: Response) => {
22190
- return this.processListElectricalSourceTypes(_response);
22191
- });
22192
- }
22193
-
22194
- protected processListElectricalSourceTypes(response: Response): Promise<IotTypeSourceDto[]> {
22195
- const status = response.status;
22196
- let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
22197
- if (status === 200) {
22198
- return response.text().then((_responseText) => {
22199
- let result200: any = null;
22200
- let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
22201
- if (Array.isArray(resultData200)) {
22202
- result200 = [] as any;
22203
- for (let item of resultData200)
22204
- result200!.push(IotTypeSourceDto.fromJS(item));
22205
- }
22206
- return result200;
22207
- });
22208
- } else if (status !== 200 && status !== 204) {
22209
- return response.text().then((_responseText) => {
22210
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
22211
- });
22212
- }
22213
- return Promise.resolve<IotTypeSourceDto[]>(null as any);
22214
- }
22215
-
22216
- listElectricalDataConfigs(): Promise<ElectricalIotConfigDto[]> {
22217
- let url_ = this.baseUrl + "/iot/electrical";
22218
- url_ = url_.replace(/[?&]$/, "");
22219
-
22220
- let options_: RequestInit = {
22221
- method: "GET",
22222
- headers: {
22223
- "Accept": "application/json"
22224
- }
22225
- };
22226
-
22227
- return this.transformOptions(options_).then(transformedOptions_ => {
22228
- return this.http.fetch(url_, transformedOptions_);
22229
- }).then((_response: Response) => {
22230
- return this.processListElectricalDataConfigs(_response);
22231
- });
22232
- }
22233
-
22234
- protected processListElectricalDataConfigs(response: Response): Promise<ElectricalIotConfigDto[]> {
22235
- const status = response.status;
22236
- let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
22237
- if (status === 200) {
22238
- return response.text().then((_responseText) => {
22239
- let result200: any = null;
22240
- let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
22241
- if (Array.isArray(resultData200)) {
22242
- result200 = [] as any;
22243
- for (let item of resultData200)
22244
- result200!.push(ElectricalIotConfigDto.fromJS(item));
22245
- }
22246
- return result200;
22247
- });
22248
- } else if (status !== 200 && status !== 204) {
22249
- return response.text().then((_responseText) => {
22250
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
22251
- });
22252
- }
22253
- return Promise.resolve<ElectricalIotConfigDto[]>(null as any);
22254
- }
22255
-
22256
- createElectricalIotConfig(request: CreateElectricalIotConfig): Promise<ElectricalIotConfigDto> {
22257
- let url_ = this.baseUrl + "/iot/electrical";
22258
- url_ = url_.replace(/[?&]$/, "");
22259
-
22260
- const content_ = JSON.stringify(request);
22261
-
22262
- let options_: RequestInit = {
22263
- body: content_,
22264
- method: "POST",
22265
- headers: {
22266
- "Content-Type": "application/json",
22267
- "Accept": "application/json"
22268
- }
22269
- };
22270
-
22271
- return this.transformOptions(options_).then(transformedOptions_ => {
22272
- return this.http.fetch(url_, transformedOptions_);
22273
- }).then((_response: Response) => {
22274
- return this.processCreateElectricalIotConfig(_response);
22275
- });
22276
- }
22277
-
22278
- protected processCreateElectricalIotConfig(response: Response): Promise<ElectricalIotConfigDto> {
22279
- const status = response.status;
22280
- let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
22281
- if (status === 200) {
22282
- return response.text().then((_responseText) => {
22283
- let result200: any = null;
22284
- let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
22285
- result200 = ElectricalIotConfigDto.fromJS(resultData200);
22286
- return result200;
22287
- });
22288
- } else if (status !== 200 && status !== 204) {
22289
- return response.text().then((_responseText) => {
22290
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
22291
- });
22292
- }
22293
- return Promise.resolve<ElectricalIotConfigDto>(null as any);
22294
- }
22295
-
22296
- deleteElectricalIotConfig(typeId: string, id: string): Promise<void> {
22297
- let url_ = this.baseUrl + "/iot/electrical/{typeId}/{id}";
22298
- if (typeId === undefined || typeId === null)
22299
- throw new Error("The parameter 'typeId' must be defined.");
22300
- url_ = url_.replace("{typeId}", encodeURIComponent("" + typeId));
22301
- if (id === undefined || id === null)
22302
- throw new Error("The parameter 'id' must be defined.");
22303
- url_ = url_.replace("{id}", encodeURIComponent("" + id));
22304
- url_ = url_.replace(/[?&]$/, "");
22305
-
22306
- let options_: RequestInit = {
22307
- method: "DELETE",
22308
- headers: {
22309
- }
22310
- };
22311
-
22312
- return this.transformOptions(options_).then(transformedOptions_ => {
22313
- return this.http.fetch(url_, transformedOptions_);
22314
- }).then((_response: Response) => {
22315
- return this.processDeleteElectricalIotConfig(_response);
22316
- });
22317
- }
22318
-
22319
- protected processDeleteElectricalIotConfig(response: Response): Promise<void> {
22320
- const status = response.status;
22321
- let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
22322
- if (status === 204) {
22323
- return response.text().then((_responseText) => {
22324
- return;
22325
- });
22326
- } else if (status !== 200 && status !== 204) {
22327
- return response.text().then((_responseText) => {
22328
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
22329
- });
22330
- }
22331
- return Promise.resolve<void>(null as any);
22332
- }
22333
- }
22334
-
22335
- export interface IWeldingClient {
22336
-
22337
- listWeldingSourceTypes(): Promise<IotTypeSourceDto[]>;
22338
-
22339
- listElectricalDataConfigs(): Promise<WeldingIotConfigDto[]>;
22340
-
22341
- createWeldingIotConfig(request: CreateWeldingIotConfig): Promise<WeldingIotConfigDto>;
22342
-
22343
- deleteWeldingIotConfig(typeId: string, id: string): Promise<void>;
22344
- }
22345
-
22346
- export class WeldingClient extends AuthorizedApiBase implements IWeldingClient {
22347
- private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
22348
- private baseUrl: string;
22349
- protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;
22350
-
22351
- constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
22352
- super(configuration);
22353
- this.http = http ? http : window as any;
22354
- this.baseUrl = baseUrl ?? "";
22355
- }
22356
-
22357
- listWeldingSourceTypes(): Promise<IotTypeSourceDto[]> {
22358
- let url_ = this.baseUrl + "/iot/welding/sourcetypes";
22359
- url_ = url_.replace(/[?&]$/, "");
22360
-
22361
- let options_: RequestInit = {
22362
- method: "GET",
22363
- headers: {
22364
- "Accept": "application/json"
22365
- }
22366
- };
22367
-
22368
- return this.transformOptions(options_).then(transformedOptions_ => {
22369
- return this.http.fetch(url_, transformedOptions_);
22370
- }).then((_response: Response) => {
22371
- return this.processListWeldingSourceTypes(_response);
22372
- });
22373
- }
22374
-
22375
- protected processListWeldingSourceTypes(response: Response): Promise<IotTypeSourceDto[]> {
22376
- const status = response.status;
22377
- let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
22378
- if (status === 200) {
22379
- return response.text().then((_responseText) => {
22380
- let result200: any = null;
22381
- let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
22382
- if (Array.isArray(resultData200)) {
22383
- result200 = [] as any;
22384
- for (let item of resultData200)
22385
- result200!.push(IotTypeSourceDto.fromJS(item));
22386
- }
22387
- return result200;
22388
- });
22389
- } else if (status !== 200 && status !== 204) {
22390
- return response.text().then((_responseText) => {
22391
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
22392
- });
22393
- }
22394
- return Promise.resolve<IotTypeSourceDto[]>(null as any);
22395
- }
22396
-
22397
- listElectricalDataConfigs(): Promise<WeldingIotConfigDto[]> {
22398
- let url_ = this.baseUrl + "/iot/welding";
22399
- url_ = url_.replace(/[?&]$/, "");
22400
-
22401
- let options_: RequestInit = {
22402
- method: "GET",
22403
- headers: {
22404
- "Accept": "application/json"
22405
- }
22406
- };
22407
-
22408
- return this.transformOptions(options_).then(transformedOptions_ => {
22409
- return this.http.fetch(url_, transformedOptions_);
22410
- }).then((_response: Response) => {
22411
- return this.processListElectricalDataConfigs(_response);
22412
- });
22413
- }
22414
-
22415
- protected processListElectricalDataConfigs(response: Response): Promise<WeldingIotConfigDto[]> {
22416
- const status = response.status;
22417
- let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
22418
- if (status === 200) {
22419
- return response.text().then((_responseText) => {
22420
- let result200: any = null;
22421
- let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
22422
- if (Array.isArray(resultData200)) {
22423
- result200 = [] as any;
22424
- for (let item of resultData200)
22425
- result200!.push(WeldingIotConfigDto.fromJS(item));
22426
- }
22427
- return result200;
22428
- });
22429
- } else if (status !== 200 && status !== 204) {
22430
- return response.text().then((_responseText) => {
22431
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
22432
- });
22433
- }
22434
- return Promise.resolve<WeldingIotConfigDto[]>(null as any);
22435
- }
22436
-
22437
- createWeldingIotConfig(request: CreateWeldingIotConfig): Promise<WeldingIotConfigDto> {
22438
- let url_ = this.baseUrl + "/iot/welding";
22439
- url_ = url_.replace(/[?&]$/, "");
22440
-
22441
- const content_ = JSON.stringify(request);
22442
-
22443
- let options_: RequestInit = {
22444
- body: content_,
22445
- method: "POST",
22446
- headers: {
22447
- "Content-Type": "application/json",
22448
- "Accept": "application/json"
22449
- }
22450
- };
22451
-
22452
- return this.transformOptions(options_).then(transformedOptions_ => {
22453
- return this.http.fetch(url_, transformedOptions_);
22454
- }).then((_response: Response) => {
22455
- return this.processCreateWeldingIotConfig(_response);
22456
- });
22457
- }
22458
-
22459
- protected processCreateWeldingIotConfig(response: Response): Promise<WeldingIotConfigDto> {
22460
- const status = response.status;
22461
- let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
22462
- if (status === 200) {
22463
- return response.text().then((_responseText) => {
22464
- let result200: any = null;
22465
- let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
22466
- result200 = WeldingIotConfigDto.fromJS(resultData200);
22467
- return result200;
22468
- });
22469
- } else if (status !== 200 && status !== 204) {
22470
- return response.text().then((_responseText) => {
22471
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
22472
- });
22473
- }
22474
- return Promise.resolve<WeldingIotConfigDto>(null as any);
22475
- }
22476
-
22477
- deleteWeldingIotConfig(typeId: string, id: string): Promise<void> {
22478
- let url_ = this.baseUrl + "/iot/welding/{typeId}/{id}";
22479
- if (typeId === undefined || typeId === null)
22480
- throw new Error("The parameter 'typeId' must be defined.");
22481
- url_ = url_.replace("{typeId}", encodeURIComponent("" + typeId));
22482
- if (id === undefined || id === null)
22483
- throw new Error("The parameter 'id' must be defined.");
22484
- url_ = url_.replace("{id}", encodeURIComponent("" + id));
22485
- url_ = url_.replace(/[?&]$/, "");
22486
-
22487
- let options_: RequestInit = {
22488
- method: "DELETE",
22489
- headers: {
22490
- }
22491
- };
22492
-
22493
- return this.transformOptions(options_).then(transformedOptions_ => {
22494
- return this.http.fetch(url_, transformedOptions_);
22495
- }).then((_response: Response) => {
22496
- return this.processDeleteWeldingIotConfig(_response);
22497
- });
22498
- }
22499
-
22500
- protected processDeleteWeldingIotConfig(response: Response): Promise<void> {
22501
- const status = response.status;
22502
- let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
22503
- if (status === 204) {
22504
- return response.text().then((_responseText) => {
22505
- return;
22506
- });
22507
- } else if (status !== 200 && status !== 204) {
22508
- return response.text().then((_responseText) => {
22509
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
22510
- });
22511
- }
22512
- return Promise.resolve<void>(null as any);
22513
- }
22514
- }
22515
-
22516
22688
  export interface ICompaniesClient {
22517
22689
 
22518
22690
  listProductionCompanies(): Promise<ProductionCompanyDto[]>;
@@ -33673,6 +33845,8 @@ export class DowntimeReasonDto implements IDowntimeReasonDto {
33673
33845
  machineTypes!: string[];
33674
33846
  reasonType!: DowntimeReasonTypeDto;
33675
33847
  description?: string | null;
33848
+ parentId?: string | null;
33849
+ displayOrder?: number | null;
33676
33850
 
33677
33851
  constructor(data?: IDowntimeReasonDto) {
33678
33852
  if (data) {
@@ -33697,6 +33871,8 @@ export class DowntimeReasonDto implements IDowntimeReasonDto {
33697
33871
  }
33698
33872
  this.reasonType = _data["reasonType"];
33699
33873
  this.description = _data["description"];
33874
+ this.parentId = _data["parentId"];
33875
+ this.displayOrder = _data["displayOrder"];
33700
33876
  }
33701
33877
  }
33702
33878
 
@@ -33718,6 +33894,8 @@ export class DowntimeReasonDto implements IDowntimeReasonDto {
33718
33894
  }
33719
33895
  data["reasonType"] = this.reasonType;
33720
33896
  data["description"] = this.description;
33897
+ data["parentId"] = this.parentId;
33898
+ data["displayOrder"] = this.displayOrder;
33721
33899
  return data;
33722
33900
  }
33723
33901
  }
@@ -33728,6 +33906,8 @@ export interface IDowntimeReasonDto {
33728
33906
  machineTypes: string[];
33729
33907
  reasonType: DowntimeReasonTypeDto;
33730
33908
  description?: string | null;
33909
+ parentId?: string | null;
33910
+ displayOrder?: number | null;
33731
33911
  }
33732
33912
 
33733
33913
  export class CreateDowntimeReason implements ICreateDowntimeReason {
@@ -33794,6 +33974,8 @@ export class UpdateDowntimeReasonRequest implements IUpdateDowntimeReasonRequest
33794
33974
  machineTypes!: string[];
33795
33975
  reasonType!: DowntimeReasonTypeDto;
33796
33976
  description?: string | null;
33977
+ parentId?: string | null;
33978
+ displayOrder?: number | null;
33797
33979
 
33798
33980
  constructor(data?: IUpdateDowntimeReasonRequest) {
33799
33981
  if (data) {
@@ -33817,6 +33999,8 @@ export class UpdateDowntimeReasonRequest implements IUpdateDowntimeReasonRequest
33817
33999
  }
33818
34000
  this.reasonType = _data["reasonType"];
33819
34001
  this.description = _data["description"];
34002
+ this.parentId = _data["parentId"];
34003
+ this.displayOrder = _data["displayOrder"];
33820
34004
  }
33821
34005
  }
33822
34006
 
@@ -33837,6 +34021,8 @@ export class UpdateDowntimeReasonRequest implements IUpdateDowntimeReasonRequest
33837
34021
  }
33838
34022
  data["reasonType"] = this.reasonType;
33839
34023
  data["description"] = this.description;
34024
+ data["parentId"] = this.parentId;
34025
+ data["displayOrder"] = this.displayOrder;
33840
34026
  return data;
33841
34027
  }
33842
34028
  }
@@ -33846,6 +34032,8 @@ export interface IUpdateDowntimeReasonRequest {
33846
34032
  machineTypes: string[];
33847
34033
  reasonType: DowntimeReasonTypeDto;
33848
34034
  description?: string | null;
34035
+ parentId?: string | null;
34036
+ displayOrder?: number | null;
33849
34037
  }
33850
34038
 
33851
34039
  export class MachineTypeDto implements IMachineTypeDto {
@@ -33884,6 +34072,154 @@ export interface IMachineTypeDto {
33884
34072
  machineType: string;
33885
34073
  }
33886
34074
 
34075
+ export class ParentTopicDto implements IParentTopicDto {
34076
+ id!: string;
34077
+ name!: string;
34078
+ reasonType!: DowntimeReasonTypeDto;
34079
+ description?: string | null;
34080
+ displayOrder?: number;
34081
+
34082
+ constructor(data?: IParentTopicDto) {
34083
+ if (data) {
34084
+ for (var property in data) {
34085
+ if (data.hasOwnProperty(property))
34086
+ (<any>this)[property] = (<any>data)[property];
34087
+ }
34088
+ }
34089
+ }
34090
+
34091
+ init(_data?: any) {
34092
+ if (_data) {
34093
+ this.id = _data["id"];
34094
+ this.name = _data["name"];
34095
+ this.reasonType = _data["reasonType"];
34096
+ this.description = _data["description"];
34097
+ this.displayOrder = _data["displayOrder"];
34098
+ }
34099
+ }
34100
+
34101
+ static fromJS(data: any): ParentTopicDto {
34102
+ data = typeof data === 'object' ? data : {};
34103
+ let result = new ParentTopicDto();
34104
+ result.init(data);
34105
+ return result;
34106
+ }
34107
+
34108
+ toJSON(data?: any) {
34109
+ data = typeof data === 'object' ? data : {};
34110
+ data["id"] = this.id;
34111
+ data["name"] = this.name;
34112
+ data["reasonType"] = this.reasonType;
34113
+ data["description"] = this.description;
34114
+ data["displayOrder"] = this.displayOrder;
34115
+ return data;
34116
+ }
34117
+ }
34118
+
34119
+ export interface IParentTopicDto {
34120
+ id: string;
34121
+ name: string;
34122
+ reasonType: DowntimeReasonTypeDto;
34123
+ description?: string | null;
34124
+ displayOrder?: number;
34125
+ }
34126
+
34127
+ export class CreateParentTopicRequest implements ICreateParentTopicRequest {
34128
+ name!: string;
34129
+ reasonType!: DowntimeReasonTypeDto;
34130
+ description?: string | null;
34131
+ displayOrder?: number | null;
34132
+
34133
+ constructor(data?: ICreateParentTopicRequest) {
34134
+ if (data) {
34135
+ for (var property in data) {
34136
+ if (data.hasOwnProperty(property))
34137
+ (<any>this)[property] = (<any>data)[property];
34138
+ }
34139
+ }
34140
+ }
34141
+
34142
+ init(_data?: any) {
34143
+ if (_data) {
34144
+ this.name = _data["name"];
34145
+ this.reasonType = _data["reasonType"];
34146
+ this.description = _data["description"];
34147
+ this.displayOrder = _data["displayOrder"];
34148
+ }
34149
+ }
34150
+
34151
+ static fromJS(data: any): CreateParentTopicRequest {
34152
+ data = typeof data === 'object' ? data : {};
34153
+ let result = new CreateParentTopicRequest();
34154
+ result.init(data);
34155
+ return result;
34156
+ }
34157
+
34158
+ toJSON(data?: any) {
34159
+ data = typeof data === 'object' ? data : {};
34160
+ data["name"] = this.name;
34161
+ data["reasonType"] = this.reasonType;
34162
+ data["description"] = this.description;
34163
+ data["displayOrder"] = this.displayOrder;
34164
+ return data;
34165
+ }
34166
+ }
34167
+
34168
+ export interface ICreateParentTopicRequest {
34169
+ name: string;
34170
+ reasonType: DowntimeReasonTypeDto;
34171
+ description?: string | null;
34172
+ displayOrder?: number | null;
34173
+ }
34174
+
34175
+ export class UpdateParentTopicRequest implements IUpdateParentTopicRequest {
34176
+ name!: string;
34177
+ reasonType!: DowntimeReasonTypeDto;
34178
+ description?: string | null;
34179
+ displayOrder?: number | null;
34180
+
34181
+ constructor(data?: IUpdateParentTopicRequest) {
34182
+ if (data) {
34183
+ for (var property in data) {
34184
+ if (data.hasOwnProperty(property))
34185
+ (<any>this)[property] = (<any>data)[property];
34186
+ }
34187
+ }
34188
+ }
34189
+
34190
+ init(_data?: any) {
34191
+ if (_data) {
34192
+ this.name = _data["name"];
34193
+ this.reasonType = _data["reasonType"];
34194
+ this.description = _data["description"];
34195
+ this.displayOrder = _data["displayOrder"];
34196
+ }
34197
+ }
34198
+
34199
+ static fromJS(data: any): UpdateParentTopicRequest {
34200
+ data = typeof data === 'object' ? data : {};
34201
+ let result = new UpdateParentTopicRequest();
34202
+ result.init(data);
34203
+ return result;
34204
+ }
34205
+
34206
+ toJSON(data?: any) {
34207
+ data = typeof data === 'object' ? data : {};
34208
+ data["name"] = this.name;
34209
+ data["reasonType"] = this.reasonType;
34210
+ data["description"] = this.description;
34211
+ data["displayOrder"] = this.displayOrder;
34212
+ return data;
34213
+ }
34214
+ }
34215
+
34216
+ export interface IUpdateParentTopicRequest {
34217
+ name: string;
34218
+ reasonType: DowntimeReasonTypeDto;
34219
+ description?: string | null;
34220
+ displayOrder?: number | null;
34221
+ }
34222
+
33887
34223
  export class CreateDowntimePeriodReason implements ICreateDowntimePeriodReason {
33888
34224
  reasonId!: string;
33889
34225
  assetId!: number;
@@ -52049,6 +52385,226 @@ export interface IProductionResourceDto {
52049
52385
  department?: DepartmentDto | null;
52050
52386
  }
52051
52387
 
52388
+ export class IotTypeSourceDto implements IIotTypeSourceDto {
52389
+ id!: string;
52390
+ name!: string;
52391
+
52392
+ constructor(data?: IIotTypeSourceDto) {
52393
+ if (data) {
52394
+ for (var property in data) {
52395
+ if (data.hasOwnProperty(property))
52396
+ (<any>this)[property] = (<any>data)[property];
52397
+ }
52398
+ }
52399
+ }
52400
+
52401
+ init(_data?: any) {
52402
+ if (_data) {
52403
+ this.id = _data["id"];
52404
+ this.name = _data["name"];
52405
+ }
52406
+ }
52407
+
52408
+ static fromJS(data: any): IotTypeSourceDto {
52409
+ data = typeof data === 'object' ? data : {};
52410
+ let result = new IotTypeSourceDto();
52411
+ result.init(data);
52412
+ return result;
52413
+ }
52414
+
52415
+ toJSON(data?: any) {
52416
+ data = typeof data === 'object' ? data : {};
52417
+ data["id"] = this.id;
52418
+ data["name"] = this.name;
52419
+ return data;
52420
+ }
52421
+ }
52422
+
52423
+ export interface IIotTypeSourceDto {
52424
+ id: string;
52425
+ name: string;
52426
+ }
52427
+
52428
+ export class ElectricalIotConfigDto implements IElectricalIotConfigDto {
52429
+ id!: string;
52430
+ typeId!: string;
52431
+ serialNumber?: string | null;
52432
+ assetId!: number;
52433
+ assetExternalId?: string | null;
52434
+ phases?: number;
52435
+ electricalAssetId?: number;
52436
+ electricalAssetExternalId?: string | null;
52437
+ electricalTimeseriesId?: number;
52438
+ electricalTimeseriesExternalId?: string | null;
52439
+
52440
+ constructor(data?: IElectricalIotConfigDto) {
52441
+ if (data) {
52442
+ for (var property in data) {
52443
+ if (data.hasOwnProperty(property))
52444
+ (<any>this)[property] = (<any>data)[property];
52445
+ }
52446
+ }
52447
+ }
52448
+
52449
+ init(_data?: any) {
52450
+ if (_data) {
52451
+ this.id = _data["id"];
52452
+ this.typeId = _data["typeId"];
52453
+ this.serialNumber = _data["serialNumber"];
52454
+ this.assetId = _data["assetId"];
52455
+ this.assetExternalId = _data["assetExternalId"];
52456
+ this.phases = _data["phases"];
52457
+ this.electricalAssetId = _data["electricalAssetId"];
52458
+ this.electricalAssetExternalId = _data["electricalAssetExternalId"];
52459
+ this.electricalTimeseriesId = _data["electricalTimeseriesId"];
52460
+ this.electricalTimeseriesExternalId = _data["electricalTimeseriesExternalId"];
52461
+ }
52462
+ }
52463
+
52464
+ static fromJS(data: any): ElectricalIotConfigDto {
52465
+ data = typeof data === 'object' ? data : {};
52466
+ let result = new ElectricalIotConfigDto();
52467
+ result.init(data);
52468
+ return result;
52469
+ }
52470
+
52471
+ toJSON(data?: any) {
52472
+ data = typeof data === 'object' ? data : {};
52473
+ data["id"] = this.id;
52474
+ data["typeId"] = this.typeId;
52475
+ data["serialNumber"] = this.serialNumber;
52476
+ data["assetId"] = this.assetId;
52477
+ data["assetExternalId"] = this.assetExternalId;
52478
+ data["phases"] = this.phases;
52479
+ data["electricalAssetId"] = this.electricalAssetId;
52480
+ data["electricalAssetExternalId"] = this.electricalAssetExternalId;
52481
+ data["electricalTimeseriesId"] = this.electricalTimeseriesId;
52482
+ data["electricalTimeseriesExternalId"] = this.electricalTimeseriesExternalId;
52483
+ return data;
52484
+ }
52485
+ }
52486
+
52487
+ export interface IElectricalIotConfigDto {
52488
+ id: string;
52489
+ typeId: string;
52490
+ serialNumber?: string | null;
52491
+ assetId: number;
52492
+ assetExternalId?: string | null;
52493
+ phases?: number;
52494
+ electricalAssetId?: number;
52495
+ electricalAssetExternalId?: string | null;
52496
+ electricalTimeseriesId?: number;
52497
+ electricalTimeseriesExternalId?: string | null;
52498
+ }
52499
+
52500
+ export class CreateElectricalIotConfig implements ICreateElectricalIotConfig {
52501
+ typeId?: string | null;
52502
+ serialNumber?: string | null;
52503
+ assetId?: number | null;
52504
+ assetExternalId?: string | null;
52505
+
52506
+ constructor(data?: ICreateElectricalIotConfig) {
52507
+ if (data) {
52508
+ for (var property in data) {
52509
+ if (data.hasOwnProperty(property))
52510
+ (<any>this)[property] = (<any>data)[property];
52511
+ }
52512
+ }
52513
+ }
52514
+
52515
+ init(_data?: any) {
52516
+ if (_data) {
52517
+ this.typeId = _data["typeId"];
52518
+ this.serialNumber = _data["serialNumber"];
52519
+ this.assetId = _data["assetId"];
52520
+ this.assetExternalId = _data["assetExternalId"];
52521
+ }
52522
+ }
52523
+
52524
+ static fromJS(data: any): CreateElectricalIotConfig {
52525
+ data = typeof data === 'object' ? data : {};
52526
+ let result = new CreateElectricalIotConfig();
52527
+ result.init(data);
52528
+ return result;
52529
+ }
52530
+
52531
+ toJSON(data?: any) {
52532
+ data = typeof data === 'object' ? data : {};
52533
+ data["typeId"] = this.typeId;
52534
+ data["serialNumber"] = this.serialNumber;
52535
+ data["assetId"] = this.assetId;
52536
+ data["assetExternalId"] = this.assetExternalId;
52537
+ return data;
52538
+ }
52539
+ }
52540
+
52541
+ export interface ICreateElectricalIotConfig {
52542
+ typeId?: string | null;
52543
+ serialNumber?: string | null;
52544
+ assetId?: number | null;
52545
+ assetExternalId?: string | null;
52546
+ }
52547
+
52548
+ export class WeldingIotConfigDto implements IWeldingIotConfigDto {
52549
+
52550
+ constructor(data?: IWeldingIotConfigDto) {
52551
+ if (data) {
52552
+ for (var property in data) {
52553
+ if (data.hasOwnProperty(property))
52554
+ (<any>this)[property] = (<any>data)[property];
52555
+ }
52556
+ }
52557
+ }
52558
+
52559
+ init(_data?: any) {
52560
+ }
52561
+
52562
+ static fromJS(data: any): WeldingIotConfigDto {
52563
+ data = typeof data === 'object' ? data : {};
52564
+ let result = new WeldingIotConfigDto();
52565
+ result.init(data);
52566
+ return result;
52567
+ }
52568
+
52569
+ toJSON(data?: any) {
52570
+ data = typeof data === 'object' ? data : {};
52571
+ return data;
52572
+ }
52573
+ }
52574
+
52575
+ export interface IWeldingIotConfigDto {
52576
+ }
52577
+
52578
+ export class CreateWeldingIotConfig implements ICreateWeldingIotConfig {
52579
+
52580
+ constructor(data?: ICreateWeldingIotConfig) {
52581
+ if (data) {
52582
+ for (var property in data) {
52583
+ if (data.hasOwnProperty(property))
52584
+ (<any>this)[property] = (<any>data)[property];
52585
+ }
52586
+ }
52587
+ }
52588
+
52589
+ init(_data?: any) {
52590
+ }
52591
+
52592
+ static fromJS(data: any): CreateWeldingIotConfig {
52593
+ data = typeof data === 'object' ? data : {};
52594
+ let result = new CreateWeldingIotConfig();
52595
+ result.init(data);
52596
+ return result;
52597
+ }
52598
+
52599
+ toJSON(data?: any) {
52600
+ data = typeof data === 'object' ? data : {};
52601
+ return data;
52602
+ }
52603
+ }
52604
+
52605
+ export interface ICreateWeldingIotConfig {
52606
+ }
52607
+
52052
52608
  export class PagedResultOfMeasurementFormListDto implements IPagedResultOfMeasurementFormListDto {
52053
52609
  results!: MeasurementFormListDto[];
52054
52610
  continuationToken?: string | null;
@@ -52477,7 +53033,8 @@ export interface IMeasurementFormSchemaAttachmentDto {
52477
53033
 
52478
53034
  export class MeasurementFormGroupedElementDto implements IMeasurementFormGroupedElementDto {
52479
53035
  id!: string;
52480
- balloonId!: string;
53036
+ balloonId?: string | null;
53037
+ reference!: number;
52481
53038
  imageUrl?: string | null;
52482
53039
  thumbnailUrl?: string | null;
52483
53040
  section?: string | null;
@@ -52504,6 +53061,7 @@ export class MeasurementFormGroupedElementDto implements IMeasurementFormGrouped
52504
53061
  includeInCustomerDocumentation!: boolean;
52505
53062
  isDocumentedExternally!: boolean;
52506
53063
  balloonQuantity?: number | null;
53064
+ referenceQuantity?: number | null;
52507
53065
  plusToleranceText?: string | null;
52508
53066
  minusToleranceText?: string | null;
52509
53067
  coatingThickness?: number | null;
@@ -52530,6 +53088,7 @@ export class MeasurementFormGroupedElementDto implements IMeasurementFormGrouped
52530
53088
  if (_data) {
52531
53089
  this.id = _data["id"];
52532
53090
  this.balloonId = _data["balloonId"];
53091
+ this.reference = _data["reference"];
52533
53092
  this.imageUrl = _data["imageUrl"];
52534
53093
  this.thumbnailUrl = _data["thumbnailUrl"];
52535
53094
  this.section = _data["section"];
@@ -52556,6 +53115,7 @@ export class MeasurementFormGroupedElementDto implements IMeasurementFormGrouped
52556
53115
  this.includeInCustomerDocumentation = _data["includeInCustomerDocumentation"];
52557
53116
  this.isDocumentedExternally = _data["isDocumentedExternally"];
52558
53117
  this.balloonQuantity = _data["balloonQuantity"];
53118
+ this.referenceQuantity = _data["referenceQuantity"];
52559
53119
  this.plusToleranceText = _data["plusToleranceText"];
52560
53120
  this.minusToleranceText = _data["minusToleranceText"];
52561
53121
  this.coatingThickness = _data["coatingThickness"];
@@ -52582,6 +53142,7 @@ export class MeasurementFormGroupedElementDto implements IMeasurementFormGrouped
52582
53142
  data = typeof data === 'object' ? data : {};
52583
53143
  data["id"] = this.id;
52584
53144
  data["balloonId"] = this.balloonId;
53145
+ data["reference"] = this.reference;
52585
53146
  data["imageUrl"] = this.imageUrl;
52586
53147
  data["thumbnailUrl"] = this.thumbnailUrl;
52587
53148
  data["section"] = this.section;
@@ -52608,6 +53169,7 @@ export class MeasurementFormGroupedElementDto implements IMeasurementFormGrouped
52608
53169
  data["includeInCustomerDocumentation"] = this.includeInCustomerDocumentation;
52609
53170
  data["isDocumentedExternally"] = this.isDocumentedExternally;
52610
53171
  data["balloonQuantity"] = this.balloonQuantity;
53172
+ data["referenceQuantity"] = this.referenceQuantity;
52611
53173
  data["plusToleranceText"] = this.plusToleranceText;
52612
53174
  data["minusToleranceText"] = this.minusToleranceText;
52613
53175
  data["coatingThickness"] = this.coatingThickness;
@@ -52626,7 +53188,8 @@ export class MeasurementFormGroupedElementDto implements IMeasurementFormGrouped
52626
53188
 
52627
53189
  export interface IMeasurementFormGroupedElementDto {
52628
53190
  id: string;
52629
- balloonId: string;
53191
+ balloonId?: string | null;
53192
+ reference: number;
52630
53193
  imageUrl?: string | null;
52631
53194
  thumbnailUrl?: string | null;
52632
53195
  section?: string | null;
@@ -52653,6 +53216,7 @@ export interface IMeasurementFormGroupedElementDto {
52653
53216
  includeInCustomerDocumentation: boolean;
52654
53217
  isDocumentedExternally: boolean;
52655
53218
  balloonQuantity?: number | null;
53219
+ referenceQuantity?: number | null;
52656
53220
  plusToleranceText?: string | null;
52657
53221
  minusToleranceText?: string | null;
52658
53222
  coatingThickness?: number | null;
@@ -53056,7 +53620,8 @@ export interface IUpdateSchemaGroupedElementsRequest {
53056
53620
  }
53057
53621
 
53058
53622
  export class UpdateSchemaGroupedElementDto implements IUpdateSchemaGroupedElementDto {
53059
- balloonId!: string;
53623
+ balloonId?: string | null;
53624
+ reference!: number;
53060
53625
  frequency!: MeasurementFrequency;
53061
53626
  frequencyParameter?: number | null;
53062
53627
  includeInCustomerDocumentation!: boolean;
@@ -53076,6 +53641,7 @@ export class UpdateSchemaGroupedElementDto implements IUpdateSchemaGroupedElemen
53076
53641
  init(_data?: any) {
53077
53642
  if (_data) {
53078
53643
  this.balloonId = _data["balloonId"];
53644
+ this.reference = _data["reference"];
53079
53645
  this.frequency = _data["frequency"];
53080
53646
  this.frequencyParameter = _data["frequencyParameter"];
53081
53647
  this.includeInCustomerDocumentation = _data["includeInCustomerDocumentation"];
@@ -53095,6 +53661,7 @@ export class UpdateSchemaGroupedElementDto implements IUpdateSchemaGroupedElemen
53095
53661
  toJSON(data?: any) {
53096
53662
  data = typeof data === 'object' ? data : {};
53097
53663
  data["balloonId"] = this.balloonId;
53664
+ data["reference"] = this.reference;
53098
53665
  data["frequency"] = this.frequency;
53099
53666
  data["frequencyParameter"] = this.frequencyParameter;
53100
53667
  data["includeInCustomerDocumentation"] = this.includeInCustomerDocumentation;
@@ -53106,7 +53673,8 @@ export class UpdateSchemaGroupedElementDto implements IUpdateSchemaGroupedElemen
53106
53673
  }
53107
53674
 
53108
53675
  export interface IUpdateSchemaGroupedElementDto {
53109
- balloonId: string;
53676
+ balloonId?: string | null;
53677
+ reference: number;
53110
53678
  frequency: MeasurementFrequency;
53111
53679
  frequencyParameter?: number | null;
53112
53680
  includeInCustomerDocumentation: boolean;
@@ -53116,8 +53684,10 @@ export interface IUpdateSchemaGroupedElementDto {
53116
53684
  }
53117
53685
 
53118
53686
  export class UpdateSchemaGroupedElementRowDto implements IUpdateSchemaGroupedElementRowDto {
53119
- id!: string;
53120
- balloonId!: string;
53687
+ id?: string;
53688
+ balloonId?: string;
53689
+ oldReference!: number;
53690
+ newReference!: number;
53121
53691
  section?: string | null;
53122
53692
  pageNumber?: number | null;
53123
53693
  measurements?: number | null;
@@ -53149,6 +53719,8 @@ export class UpdateSchemaGroupedElementRowDto implements IUpdateSchemaGroupedEle
53149
53719
  if (_data) {
53150
53720
  this.id = _data["id"];
53151
53721
  this.balloonId = _data["balloonId"];
53722
+ this.oldReference = _data["oldReference"];
53723
+ this.newReference = _data["newReference"];
53152
53724
  this.section = _data["section"];
53153
53725
  this.pageNumber = _data["pageNumber"];
53154
53726
  this.measurements = _data["measurements"];
@@ -53180,6 +53752,8 @@ export class UpdateSchemaGroupedElementRowDto implements IUpdateSchemaGroupedEle
53180
53752
  data = typeof data === 'object' ? data : {};
53181
53753
  data["id"] = this.id;
53182
53754
  data["balloonId"] = this.balloonId;
53755
+ data["oldReference"] = this.oldReference;
53756
+ data["newReference"] = this.newReference;
53183
53757
  data["section"] = this.section;
53184
53758
  data["pageNumber"] = this.pageNumber;
53185
53759
  data["measurements"] = this.measurements;
@@ -53202,8 +53776,10 @@ export class UpdateSchemaGroupedElementRowDto implements IUpdateSchemaGroupedEle
53202
53776
  }
53203
53777
 
53204
53778
  export interface IUpdateSchemaGroupedElementRowDto {
53205
- id: string;
53206
- balloonId: string;
53779
+ id?: string;
53780
+ balloonId?: string;
53781
+ oldReference: number;
53782
+ newReference: number;
53207
53783
  section?: string | null;
53208
53784
  pageNumber?: number | null;
53209
53785
  measurements?: number | null;
@@ -53224,7 +53800,8 @@ export interface IUpdateSchemaGroupedElementRowDto {
53224
53800
  }
53225
53801
 
53226
53802
  export class DeleteSchemaGroupedElementRowsDto implements IDeleteSchemaGroupedElementRowsDto {
53227
- balloonIds!: string[];
53803
+ balloonIds?: string[];
53804
+ references?: number[];
53228
53805
 
53229
53806
  constructor(data?: IDeleteSchemaGroupedElementRowsDto) {
53230
53807
  if (data) {
@@ -53233,9 +53810,6 @@ export class DeleteSchemaGroupedElementRowsDto implements IDeleteSchemaGroupedEl
53233
53810
  (<any>this)[property] = (<any>data)[property];
53234
53811
  }
53235
53812
  }
53236
- if (!data) {
53237
- this.balloonIds = [];
53238
- }
53239
53813
  }
53240
53814
 
53241
53815
  init(_data?: any) {
@@ -53245,6 +53819,11 @@ export class DeleteSchemaGroupedElementRowsDto implements IDeleteSchemaGroupedEl
53245
53819
  for (let item of _data["balloonIds"])
53246
53820
  this.balloonIds!.push(item);
53247
53821
  }
53822
+ if (Array.isArray(_data["references"])) {
53823
+ this.references = [] as any;
53824
+ for (let item of _data["references"])
53825
+ this.references!.push(item);
53826
+ }
53248
53827
  }
53249
53828
  }
53250
53829
 
@@ -53262,18 +53841,25 @@ export class DeleteSchemaGroupedElementRowsDto implements IDeleteSchemaGroupedEl
53262
53841
  for (let item of this.balloonIds)
53263
53842
  data["balloonIds"].push(item);
53264
53843
  }
53844
+ if (Array.isArray(this.references)) {
53845
+ data["references"] = [];
53846
+ for (let item of this.references)
53847
+ data["references"].push(item);
53848
+ }
53265
53849
  return data;
53266
53850
  }
53267
53851
  }
53268
53852
 
53269
53853
  export interface IDeleteSchemaGroupedElementRowsDto {
53270
- balloonIds: string[];
53854
+ balloonIds?: string[];
53855
+ references?: number[];
53271
53856
  }
53272
53857
 
53273
53858
  export class UploadMeasurementImageRequest implements IUploadMeasurementImageRequest {
53274
53859
  uploadKey!: string;
53275
53860
  filename!: string;
53276
- ballonId!: string;
53861
+ ballonId?: string;
53862
+ reference!: number;
53277
53863
 
53278
53864
  constructor(data?: IUploadMeasurementImageRequest) {
53279
53865
  if (data) {
@@ -53289,6 +53875,7 @@ export class UploadMeasurementImageRequest implements IUploadMeasurementImageReq
53289
53875
  this.uploadKey = _data["uploadKey"];
53290
53876
  this.filename = _data["filename"];
53291
53877
  this.ballonId = _data["ballonId"];
53878
+ this.reference = _data["reference"];
53292
53879
  }
53293
53880
  }
53294
53881
 
@@ -53304,6 +53891,7 @@ export class UploadMeasurementImageRequest implements IUploadMeasurementImageReq
53304
53891
  data["uploadKey"] = this.uploadKey;
53305
53892
  data["filename"] = this.filename;
53306
53893
  data["ballonId"] = this.ballonId;
53894
+ data["reference"] = this.reference;
53307
53895
  return data;
53308
53896
  }
53309
53897
  }
@@ -53311,7 +53899,8 @@ export class UploadMeasurementImageRequest implements IUploadMeasurementImageReq
53311
53899
  export interface IUploadMeasurementImageRequest {
53312
53900
  uploadKey: string;
53313
53901
  filename: string;
53314
- ballonId: string;
53902
+ ballonId?: string;
53903
+ reference: number;
53315
53904
  }
53316
53905
 
53317
53906
  export class UpdateSchemaSettingsRequest implements IUpdateSchemaSettingsRequest {
@@ -53570,7 +54159,7 @@ export interface ICreateMeasurementFormSchemaLinkRequest {
53570
54159
  linkSchemaId: string;
53571
54160
  }
53572
54161
 
53573
- export class MeasurementFormSettingsDto implements IMeasurementFormSettingsDto {
54162
+ export class InspectCompanySettingsDto implements IInspectCompanySettingsDto {
53574
54163
  convertInchToMm!: boolean;
53575
54164
  convertMicroInchToMicroMeter!: boolean;
53576
54165
  validateMeasuringTools!: boolean;
@@ -53586,7 +54175,7 @@ export class MeasurementFormSettingsDto implements IMeasurementFormSettingsDto {
53586
54175
  allowCreateInstances!: boolean;
53587
54176
  resourceTypesBlockingAutoWorkflow?: string[] | null;
53588
54177
 
53589
- constructor(data?: IMeasurementFormSettingsDto) {
54178
+ constructor(data?: IInspectCompanySettingsDto) {
53590
54179
  if (data) {
53591
54180
  for (var property in data) {
53592
54181
  if (data.hasOwnProperty(property))
@@ -53618,9 +54207,9 @@ export class MeasurementFormSettingsDto implements IMeasurementFormSettingsDto {
53618
54207
  }
53619
54208
  }
53620
54209
 
53621
- static fromJS(data: any): MeasurementFormSettingsDto {
54210
+ static fromJS(data: any): InspectCompanySettingsDto {
53622
54211
  data = typeof data === 'object' ? data : {};
53623
- let result = new MeasurementFormSettingsDto();
54212
+ let result = new InspectCompanySettingsDto();
53624
54213
  result.init(data);
53625
54214
  return result;
53626
54215
  }
@@ -53649,7 +54238,7 @@ export class MeasurementFormSettingsDto implements IMeasurementFormSettingsDto {
53649
54238
  }
53650
54239
  }
53651
54240
 
53652
- export interface IMeasurementFormSettingsDto {
54241
+ export interface IInspectCompanySettingsDto {
53653
54242
  convertInchToMm: boolean;
53654
54243
  convertMicroInchToMicroMeter: boolean;
53655
54244
  validateMeasuringTools: boolean;
@@ -53873,8 +54462,10 @@ export class MeasurementFormMappingDto implements IMeasurementFormMappingDto {
53873
54462
  id!: string;
53874
54463
  measurementSchemaSourceId!: string;
53875
54464
  measurementSchemaTargetId!: string;
53876
- sourceBalloons!: MeasurementFormBalloonMappingDto[];
53877
- targetBalloons!: MeasurementFormBalloonMappingDto[];
54465
+ sourceBalloons?: MeasurementFormReferenceMappingDto[];
54466
+ targetBalloons?: MeasurementFormReferenceMappingDto[];
54467
+ sourceReferences!: MeasurementFormReferenceMappingDto[];
54468
+ targetReferences!: MeasurementFormReferenceMappingDto[];
53878
54469
 
53879
54470
  constructor(data?: IMeasurementFormMappingDto) {
53880
54471
  if (data) {
@@ -53884,8 +54475,8 @@ export class MeasurementFormMappingDto implements IMeasurementFormMappingDto {
53884
54475
  }
53885
54476
  }
53886
54477
  if (!data) {
53887
- this.sourceBalloons = [];
53888
- this.targetBalloons = [];
54478
+ this.sourceReferences = [];
54479
+ this.targetReferences = [];
53889
54480
  }
53890
54481
  }
53891
54482
 
@@ -53897,12 +54488,22 @@ export class MeasurementFormMappingDto implements IMeasurementFormMappingDto {
53897
54488
  if (Array.isArray(_data["sourceBalloons"])) {
53898
54489
  this.sourceBalloons = [] as any;
53899
54490
  for (let item of _data["sourceBalloons"])
53900
- this.sourceBalloons!.push(MeasurementFormBalloonMappingDto.fromJS(item));
54491
+ this.sourceBalloons!.push(MeasurementFormReferenceMappingDto.fromJS(item));
53901
54492
  }
53902
54493
  if (Array.isArray(_data["targetBalloons"])) {
53903
54494
  this.targetBalloons = [] as any;
53904
54495
  for (let item of _data["targetBalloons"])
53905
- this.targetBalloons!.push(MeasurementFormBalloonMappingDto.fromJS(item));
54496
+ this.targetBalloons!.push(MeasurementFormReferenceMappingDto.fromJS(item));
54497
+ }
54498
+ if (Array.isArray(_data["sourceReferences"])) {
54499
+ this.sourceReferences = [] as any;
54500
+ for (let item of _data["sourceReferences"])
54501
+ this.sourceReferences!.push(MeasurementFormReferenceMappingDto.fromJS(item));
54502
+ }
54503
+ if (Array.isArray(_data["targetReferences"])) {
54504
+ this.targetReferences = [] as any;
54505
+ for (let item of _data["targetReferences"])
54506
+ this.targetReferences!.push(MeasurementFormReferenceMappingDto.fromJS(item));
53906
54507
  }
53907
54508
  }
53908
54509
  }
@@ -53929,6 +54530,16 @@ export class MeasurementFormMappingDto implements IMeasurementFormMappingDto {
53929
54530
  for (let item of this.targetBalloons)
53930
54531
  data["targetBalloons"].push(item.toJSON());
53931
54532
  }
54533
+ if (Array.isArray(this.sourceReferences)) {
54534
+ data["sourceReferences"] = [];
54535
+ for (let item of this.sourceReferences)
54536
+ data["sourceReferences"].push(item.toJSON());
54537
+ }
54538
+ if (Array.isArray(this.targetReferences)) {
54539
+ data["targetReferences"] = [];
54540
+ for (let item of this.targetReferences)
54541
+ data["targetReferences"].push(item.toJSON());
54542
+ }
53932
54543
  return data;
53933
54544
  }
53934
54545
  }
@@ -53937,16 +54548,20 @@ export interface IMeasurementFormMappingDto {
53937
54548
  id: string;
53938
54549
  measurementSchemaSourceId: string;
53939
54550
  measurementSchemaTargetId: string;
53940
- sourceBalloons: MeasurementFormBalloonMappingDto[];
53941
- targetBalloons: MeasurementFormBalloonMappingDto[];
54551
+ sourceBalloons?: MeasurementFormReferenceMappingDto[];
54552
+ targetBalloons?: MeasurementFormReferenceMappingDto[];
54553
+ sourceReferences: MeasurementFormReferenceMappingDto[];
54554
+ targetReferences: MeasurementFormReferenceMappingDto[];
53942
54555
  }
53943
54556
 
53944
- export class MeasurementFormBalloonMappingDto implements IMeasurementFormBalloonMappingDto {
53945
- balloon!: MeasurementFormGroupedElementDto;
54557
+ export class MeasurementFormReferenceMappingDto implements IMeasurementFormReferenceMappingDto {
54558
+ balloon?: MeasurementFormGroupedElementDto | null;
53946
54559
  mappedBalloonId?: string | null;
54560
+ reference!: MeasurementFormGroupedElementDto;
54561
+ mappedReference?: number;
53947
54562
  mappingScorePercent?: number | null;
53948
54563
 
53949
- constructor(data?: IMeasurementFormBalloonMappingDto) {
54564
+ constructor(data?: IMeasurementFormReferenceMappingDto) {
53950
54565
  if (data) {
53951
54566
  for (var property in data) {
53952
54567
  if (data.hasOwnProperty(property))
@@ -53954,21 +54569,23 @@ export class MeasurementFormBalloonMappingDto implements IMeasurementFormBalloon
53954
54569
  }
53955
54570
  }
53956
54571
  if (!data) {
53957
- this.balloon = new MeasurementFormGroupedElementDto();
54572
+ this.reference = new MeasurementFormGroupedElementDto();
53958
54573
  }
53959
54574
  }
53960
54575
 
53961
54576
  init(_data?: any) {
53962
54577
  if (_data) {
53963
- this.balloon = _data["balloon"] ? MeasurementFormGroupedElementDto.fromJS(_data["balloon"]) : new MeasurementFormGroupedElementDto();
54578
+ this.balloon = _data["balloon"] ? MeasurementFormGroupedElementDto.fromJS(_data["balloon"]) : <any>undefined;
53964
54579
  this.mappedBalloonId = _data["mappedBalloonId"];
54580
+ this.reference = _data["reference"] ? MeasurementFormGroupedElementDto.fromJS(_data["reference"]) : new MeasurementFormGroupedElementDto();
54581
+ this.mappedReference = _data["mappedReference"];
53965
54582
  this.mappingScorePercent = _data["mappingScorePercent"];
53966
54583
  }
53967
54584
  }
53968
54585
 
53969
- static fromJS(data: any): MeasurementFormBalloonMappingDto {
54586
+ static fromJS(data: any): MeasurementFormReferenceMappingDto {
53970
54587
  data = typeof data === 'object' ? data : {};
53971
- let result = new MeasurementFormBalloonMappingDto();
54588
+ let result = new MeasurementFormReferenceMappingDto();
53972
54589
  result.init(data);
53973
54590
  return result;
53974
54591
  }
@@ -53977,14 +54594,18 @@ export class MeasurementFormBalloonMappingDto implements IMeasurementFormBalloon
53977
54594
  data = typeof data === 'object' ? data : {};
53978
54595
  data["balloon"] = this.balloon ? this.balloon.toJSON() : <any>undefined;
53979
54596
  data["mappedBalloonId"] = this.mappedBalloonId;
54597
+ data["reference"] = this.reference ? this.reference.toJSON() : <any>undefined;
54598
+ data["mappedReference"] = this.mappedReference;
53980
54599
  data["mappingScorePercent"] = this.mappingScorePercent;
53981
54600
  return data;
53982
54601
  }
53983
54602
  }
53984
54603
 
53985
- export interface IMeasurementFormBalloonMappingDto {
53986
- balloon: MeasurementFormGroupedElementDto;
54604
+ export interface IMeasurementFormReferenceMappingDto {
54605
+ balloon?: MeasurementFormGroupedElementDto | null;
53987
54606
  mappedBalloonId?: string | null;
54607
+ reference: MeasurementFormGroupedElementDto;
54608
+ mappedReference?: number;
53988
54609
  mappingScorePercent?: number | null;
53989
54610
  }
53990
54611
 
@@ -54028,54 +54649,10 @@ export interface ICreateMeasurementFormMapping {
54028
54649
  targetId: string;
54029
54650
  }
54030
54651
 
54031
- export class MeasurementFormBalloonMappingRequestDto implements IMeasurementFormBalloonMappingRequestDto {
54032
- sourceBalloonId!: string;
54033
- targetBalloonId!: string;
54034
- mappingScorePercent?: number | null;
54035
-
54036
- constructor(data?: IMeasurementFormBalloonMappingRequestDto) {
54037
- if (data) {
54038
- for (var property in data) {
54039
- if (data.hasOwnProperty(property))
54040
- (<any>this)[property] = (<any>data)[property];
54041
- }
54042
- }
54043
- }
54044
-
54045
- init(_data?: any) {
54046
- if (_data) {
54047
- this.sourceBalloonId = _data["sourceBalloonId"];
54048
- this.targetBalloonId = _data["targetBalloonId"];
54049
- this.mappingScorePercent = _data["mappingScorePercent"];
54050
- }
54051
- }
54052
-
54053
- static fromJS(data: any): MeasurementFormBalloonMappingRequestDto {
54054
- data = typeof data === 'object' ? data : {};
54055
- let result = new MeasurementFormBalloonMappingRequestDto();
54056
- result.init(data);
54057
- return result;
54058
- }
54059
-
54060
- toJSON(data?: any) {
54061
- data = typeof data === 'object' ? data : {};
54062
- data["sourceBalloonId"] = this.sourceBalloonId;
54063
- data["targetBalloonId"] = this.targetBalloonId;
54064
- data["mappingScorePercent"] = this.mappingScorePercent;
54065
- return data;
54066
- }
54067
- }
54068
-
54069
- export interface IMeasurementFormBalloonMappingRequestDto {
54070
- sourceBalloonId: string;
54071
- targetBalloonId: string;
54072
- mappingScorePercent?: number | null;
54073
- }
54074
-
54075
- export class SetMeasurementFormMappingBalloonsRequest implements ISetMeasurementFormMappingBalloonsRequest {
54076
- mappings!: MeasurementFormBalloonMappingRequestDto[];
54652
+ export class SetMeasurementFormReferencesMappingRequest implements ISetMeasurementFormReferencesMappingRequest {
54653
+ mappings!: MeasurementFormReferenceMappingRequestDto[];
54077
54654
 
54078
- constructor(data?: ISetMeasurementFormMappingBalloonsRequest) {
54655
+ constructor(data?: ISetMeasurementFormReferencesMappingRequest) {
54079
54656
  if (data) {
54080
54657
  for (var property in data) {
54081
54658
  if (data.hasOwnProperty(property))
@@ -54092,14 +54669,14 @@ export class SetMeasurementFormMappingBalloonsRequest implements ISetMeasurement
54092
54669
  if (Array.isArray(_data["mappings"])) {
54093
54670
  this.mappings = [] as any;
54094
54671
  for (let item of _data["mappings"])
54095
- this.mappings!.push(MeasurementFormBalloonMappingRequestDto.fromJS(item));
54672
+ this.mappings!.push(MeasurementFormReferenceMappingRequestDto.fromJS(item));
54096
54673
  }
54097
54674
  }
54098
54675
  }
54099
54676
 
54100
- static fromJS(data: any): SetMeasurementFormMappingBalloonsRequest {
54677
+ static fromJS(data: any): SetMeasurementFormReferencesMappingRequest {
54101
54678
  data = typeof data === 'object' ? data : {};
54102
- let result = new SetMeasurementFormMappingBalloonsRequest();
54679
+ let result = new SetMeasurementFormReferencesMappingRequest();
54103
54680
  result.init(data);
54104
54681
  return result;
54105
54682
  }
@@ -54115,15 +54692,69 @@ export class SetMeasurementFormMappingBalloonsRequest implements ISetMeasurement
54115
54692
  }
54116
54693
  }
54117
54694
 
54118
- export interface ISetMeasurementFormMappingBalloonsRequest {
54119
- mappings: MeasurementFormBalloonMappingRequestDto[];
54695
+ export interface ISetMeasurementFormReferencesMappingRequest {
54696
+ mappings: MeasurementFormReferenceMappingRequestDto[];
54697
+ }
54698
+
54699
+ export class MeasurementFormReferenceMappingRequestDto implements IMeasurementFormReferenceMappingRequestDto {
54700
+ sourceBalloonId?: string | null;
54701
+ targetBalloonId?: string | null;
54702
+ sourceReference!: number;
54703
+ targetReference!: number;
54704
+ mappingScorePercent?: number | null;
54705
+
54706
+ constructor(data?: IMeasurementFormReferenceMappingRequestDto) {
54707
+ if (data) {
54708
+ for (var property in data) {
54709
+ if (data.hasOwnProperty(property))
54710
+ (<any>this)[property] = (<any>data)[property];
54711
+ }
54712
+ }
54713
+ }
54714
+
54715
+ init(_data?: any) {
54716
+ if (_data) {
54717
+ this.sourceBalloonId = _data["sourceBalloonId"];
54718
+ this.targetBalloonId = _data["targetBalloonId"];
54719
+ this.sourceReference = _data["sourceReference"];
54720
+ this.targetReference = _data["targetReference"];
54721
+ this.mappingScorePercent = _data["mappingScorePercent"];
54722
+ }
54723
+ }
54724
+
54725
+ static fromJS(data: any): MeasurementFormReferenceMappingRequestDto {
54726
+ data = typeof data === 'object' ? data : {};
54727
+ let result = new MeasurementFormReferenceMappingRequestDto();
54728
+ result.init(data);
54729
+ return result;
54730
+ }
54731
+
54732
+ toJSON(data?: any) {
54733
+ data = typeof data === 'object' ? data : {};
54734
+ data["sourceBalloonId"] = this.sourceBalloonId;
54735
+ data["targetBalloonId"] = this.targetBalloonId;
54736
+ data["sourceReference"] = this.sourceReference;
54737
+ data["targetReference"] = this.targetReference;
54738
+ data["mappingScorePercent"] = this.mappingScorePercent;
54739
+ return data;
54740
+ }
54741
+ }
54742
+
54743
+ export interface IMeasurementFormReferenceMappingRequestDto {
54744
+ sourceBalloonId?: string | null;
54745
+ targetBalloonId?: string | null;
54746
+ sourceReference: number;
54747
+ targetReference: number;
54748
+ mappingScorePercent?: number | null;
54120
54749
  }
54121
54750
 
54122
54751
  export class MeasurementFormMappingSuggestionDto implements IMeasurementFormMappingSuggestionDto {
54123
54752
  measurementSchemaSourceId!: string;
54124
54753
  measurementSchemaTargetId!: string;
54125
- sourceBalloons!: MeasurementFormBalloonMappingDto[];
54126
- targetBalloons!: MeasurementFormBalloonMappingDto[];
54754
+ sourceBalloons?: MeasurementFormReferenceMappingDto[];
54755
+ targetBalloons?: MeasurementFormReferenceMappingDto[];
54756
+ sourceReferences!: MeasurementFormReferenceMappingDto[];
54757
+ targetReferences!: MeasurementFormReferenceMappingDto[];
54127
54758
 
54128
54759
  constructor(data?: IMeasurementFormMappingSuggestionDto) {
54129
54760
  if (data) {
@@ -54133,8 +54764,8 @@ export class MeasurementFormMappingSuggestionDto implements IMeasurementFormMapp
54133
54764
  }
54134
54765
  }
54135
54766
  if (!data) {
54136
- this.sourceBalloons = [];
54137
- this.targetBalloons = [];
54767
+ this.sourceReferences = [];
54768
+ this.targetReferences = [];
54138
54769
  }
54139
54770
  }
54140
54771
 
@@ -54145,12 +54776,22 @@ export class MeasurementFormMappingSuggestionDto implements IMeasurementFormMapp
54145
54776
  if (Array.isArray(_data["sourceBalloons"])) {
54146
54777
  this.sourceBalloons = [] as any;
54147
54778
  for (let item of _data["sourceBalloons"])
54148
- this.sourceBalloons!.push(MeasurementFormBalloonMappingDto.fromJS(item));
54779
+ this.sourceBalloons!.push(MeasurementFormReferenceMappingDto.fromJS(item));
54149
54780
  }
54150
54781
  if (Array.isArray(_data["targetBalloons"])) {
54151
54782
  this.targetBalloons = [] as any;
54152
54783
  for (let item of _data["targetBalloons"])
54153
- this.targetBalloons!.push(MeasurementFormBalloonMappingDto.fromJS(item));
54784
+ this.targetBalloons!.push(MeasurementFormReferenceMappingDto.fromJS(item));
54785
+ }
54786
+ if (Array.isArray(_data["sourceReferences"])) {
54787
+ this.sourceReferences = [] as any;
54788
+ for (let item of _data["sourceReferences"])
54789
+ this.sourceReferences!.push(MeasurementFormReferenceMappingDto.fromJS(item));
54790
+ }
54791
+ if (Array.isArray(_data["targetReferences"])) {
54792
+ this.targetReferences = [] as any;
54793
+ for (let item of _data["targetReferences"])
54794
+ this.targetReferences!.push(MeasurementFormReferenceMappingDto.fromJS(item));
54154
54795
  }
54155
54796
  }
54156
54797
  }
@@ -54176,6 +54817,16 @@ export class MeasurementFormMappingSuggestionDto implements IMeasurementFormMapp
54176
54817
  for (let item of this.targetBalloons)
54177
54818
  data["targetBalloons"].push(item.toJSON());
54178
54819
  }
54820
+ if (Array.isArray(this.sourceReferences)) {
54821
+ data["sourceReferences"] = [];
54822
+ for (let item of this.sourceReferences)
54823
+ data["sourceReferences"].push(item.toJSON());
54824
+ }
54825
+ if (Array.isArray(this.targetReferences)) {
54826
+ data["targetReferences"] = [];
54827
+ for (let item of this.targetReferences)
54828
+ data["targetReferences"].push(item.toJSON());
54829
+ }
54179
54830
  return data;
54180
54831
  }
54181
54832
  }
@@ -54183,8 +54834,10 @@ export class MeasurementFormMappingSuggestionDto implements IMeasurementFormMapp
54183
54834
  export interface IMeasurementFormMappingSuggestionDto {
54184
54835
  measurementSchemaSourceId: string;
54185
54836
  measurementSchemaTargetId: string;
54186
- sourceBalloons: MeasurementFormBalloonMappingDto[];
54187
- targetBalloons: MeasurementFormBalloonMappingDto[];
54837
+ sourceBalloons?: MeasurementFormReferenceMappingDto[];
54838
+ targetBalloons?: MeasurementFormReferenceMappingDto[];
54839
+ sourceReferences: MeasurementFormReferenceMappingDto[];
54840
+ targetReferences: MeasurementFormReferenceMappingDto[];
54188
54841
  }
54189
54842
 
54190
54843
  export class PagedResultOfMeasurementFormNeedDto implements IPagedResultOfMeasurementFormNeedDto {
@@ -54847,6 +55500,7 @@ export class SchemaFeedbackDto implements ISchemaFeedbackDto {
54847
55500
  versionId?: number;
54848
55501
  schemaInstanceId!: string;
54849
55502
  balloonId?: string | null;
55503
+ reference?: number;
54850
55504
  feedback!: string;
54851
55505
  from!: string;
54852
55506
  created!: Date;
@@ -54876,6 +55530,7 @@ export class SchemaFeedbackDto implements ISchemaFeedbackDto {
54876
55530
  this.versionId = _data["versionId"];
54877
55531
  this.schemaInstanceId = _data["schemaInstanceId"];
54878
55532
  this.balloonId = _data["balloonId"];
55533
+ this.reference = _data["reference"];
54879
55534
  this.feedback = _data["feedback"];
54880
55535
  this.from = _data["from"];
54881
55536
  this.created = _data["created"] ? new Date(_data["created"].toString()) : <any>undefined;
@@ -54905,6 +55560,7 @@ export class SchemaFeedbackDto implements ISchemaFeedbackDto {
54905
55560
  data["versionId"] = this.versionId;
54906
55561
  data["schemaInstanceId"] = this.schemaInstanceId;
54907
55562
  data["balloonId"] = this.balloonId;
55563
+ data["reference"] = this.reference;
54908
55564
  data["feedback"] = this.feedback;
54909
55565
  data["from"] = this.from;
54910
55566
  data["created"] = this.created ? this.created.toISOString() : <any>undefined;
@@ -54927,6 +55583,7 @@ export interface ISchemaFeedbackDto {
54927
55583
  versionId?: number;
54928
55584
  schemaInstanceId: string;
54929
55585
  balloonId?: string | null;
55586
+ reference?: number;
54930
55587
  feedback: string;
54931
55588
  from: string;
54932
55589
  created: Date;
@@ -55926,6 +56583,7 @@ export class MeasurementFormInstanceFeedbackDto implements IMeasurementFormInsta
55926
56583
  versionId?: number;
55927
56584
  schemaInstanceId!: string;
55928
56585
  balloonId?: string | null;
56586
+ reference?: number;
55929
56587
  feedback!: string;
55930
56588
  from!: string;
55931
56589
  created!: Date;
@@ -55947,6 +56605,7 @@ export class MeasurementFormInstanceFeedbackDto implements IMeasurementFormInsta
55947
56605
  this.versionId = _data["versionId"];
55948
56606
  this.schemaInstanceId = _data["schemaInstanceId"];
55949
56607
  this.balloonId = _data["balloonId"];
56608
+ this.reference = _data["reference"];
55950
56609
  this.feedback = _data["feedback"];
55951
56610
  this.from = _data["from"];
55952
56611
  this.created = _data["created"] ? new Date(_data["created"].toString()) : <any>undefined;
@@ -55968,6 +56627,7 @@ export class MeasurementFormInstanceFeedbackDto implements IMeasurementFormInsta
55968
56627
  data["versionId"] = this.versionId;
55969
56628
  data["schemaInstanceId"] = this.schemaInstanceId;
55970
56629
  data["balloonId"] = this.balloonId;
56630
+ data["reference"] = this.reference;
55971
56631
  data["feedback"] = this.feedback;
55972
56632
  data["from"] = this.from;
55973
56633
  data["created"] = this.created ? this.created.toISOString() : <any>undefined;
@@ -55982,6 +56642,7 @@ export interface IMeasurementFormInstanceFeedbackDto {
55982
56642
  versionId?: number;
55983
56643
  schemaInstanceId: string;
55984
56644
  balloonId?: string | null;
56645
+ reference?: number;
55985
56646
  feedback: string;
55986
56647
  from: string;
55987
56648
  created: Date;
@@ -56275,6 +56936,7 @@ export class MeasurementFormInstanceElementDto implements IMeasurementFormInstan
56275
56936
  imageUrl?: string | null;
56276
56937
  thumbnailUrl?: string | null;
56277
56938
  balloonId?: string | null;
56939
+ reference?: number;
56278
56940
  section?: string | null;
56279
56941
  pageNumber?: number | null;
56280
56942
  sheetZone?: string | null;
@@ -56298,7 +56960,9 @@ export class MeasurementFormInstanceElementDto implements IMeasurementFormInstan
56298
56960
  isDocumentedExternally!: boolean;
56299
56961
  canOverrideIsDocumentedExternally!: boolean;
56300
56962
  balloonSequence?: number | null;
56963
+ referenceIndex?: number | null;
56301
56964
  balloonQuantity?: number | null;
56965
+ referenceQuantity?: number | null;
56302
56966
  plusTolerance?: string | null;
56303
56967
  minusTolerance?: string | null;
56304
56968
  coatingThickness?: number | null;
@@ -56331,6 +56995,7 @@ export class MeasurementFormInstanceElementDto implements IMeasurementFormInstan
56331
56995
  this.imageUrl = _data["imageUrl"];
56332
56996
  this.thumbnailUrl = _data["thumbnailUrl"];
56333
56997
  this.balloonId = _data["balloonId"];
56998
+ this.reference = _data["reference"];
56334
56999
  this.section = _data["section"];
56335
57000
  this.pageNumber = _data["pageNumber"];
56336
57001
  this.sheetZone = _data["sheetZone"];
@@ -56354,7 +57019,9 @@ export class MeasurementFormInstanceElementDto implements IMeasurementFormInstan
56354
57019
  this.isDocumentedExternally = _data["isDocumentedExternally"];
56355
57020
  this.canOverrideIsDocumentedExternally = _data["canOverrideIsDocumentedExternally"];
56356
57021
  this.balloonSequence = _data["balloonSequence"];
57022
+ this.referenceIndex = _data["referenceIndex"];
56357
57023
  this.balloonQuantity = _data["balloonQuantity"];
57024
+ this.referenceQuantity = _data["referenceQuantity"];
56358
57025
  this.plusTolerance = _data["plusTolerance"];
56359
57026
  this.minusTolerance = _data["minusTolerance"];
56360
57027
  this.coatingThickness = _data["coatingThickness"];
@@ -56388,6 +57055,7 @@ export class MeasurementFormInstanceElementDto implements IMeasurementFormInstan
56388
57055
  data["imageUrl"] = this.imageUrl;
56389
57056
  data["thumbnailUrl"] = this.thumbnailUrl;
56390
57057
  data["balloonId"] = this.balloonId;
57058
+ data["reference"] = this.reference;
56391
57059
  data["section"] = this.section;
56392
57060
  data["pageNumber"] = this.pageNumber;
56393
57061
  data["sheetZone"] = this.sheetZone;
@@ -56411,7 +57079,9 @@ export class MeasurementFormInstanceElementDto implements IMeasurementFormInstan
56411
57079
  data["isDocumentedExternally"] = this.isDocumentedExternally;
56412
57080
  data["canOverrideIsDocumentedExternally"] = this.canOverrideIsDocumentedExternally;
56413
57081
  data["balloonSequence"] = this.balloonSequence;
57082
+ data["referenceIndex"] = this.referenceIndex;
56414
57083
  data["balloonQuantity"] = this.balloonQuantity;
57084
+ data["referenceQuantity"] = this.referenceQuantity;
56415
57085
  data["plusTolerance"] = this.plusTolerance;
56416
57086
  data["minusTolerance"] = this.minusTolerance;
56417
57087
  data["coatingThickness"] = this.coatingThickness;
@@ -56438,6 +57108,7 @@ export interface IMeasurementFormInstanceElementDto {
56438
57108
  imageUrl?: string | null;
56439
57109
  thumbnailUrl?: string | null;
56440
57110
  balloonId?: string | null;
57111
+ reference?: number;
56441
57112
  section?: string | null;
56442
57113
  pageNumber?: number | null;
56443
57114
  sheetZone?: string | null;
@@ -56461,7 +57132,9 @@ export interface IMeasurementFormInstanceElementDto {
56461
57132
  isDocumentedExternally: boolean;
56462
57133
  canOverrideIsDocumentedExternally: boolean;
56463
57134
  balloonSequence?: number | null;
57135
+ referenceIndex?: number | null;
56464
57136
  balloonQuantity?: number | null;
57137
+ referenceQuantity?: number | null;
56465
57138
  plusTolerance?: string | null;
56466
57139
  minusTolerance?: string | null;
56467
57140
  coatingThickness?: number | null;
@@ -57180,6 +57853,7 @@ export class SchemaFeedbackCreatedDto implements ISchemaFeedbackCreatedDto {
57180
57853
  versionId!: number;
57181
57854
  schemaInstanceId!: string;
57182
57855
  balloonId?: string | null;
57856
+ reference?: number;
57183
57857
  feedback!: string;
57184
57858
  from!: string;
57185
57859
  created!: Date;
@@ -57201,6 +57875,7 @@ export class SchemaFeedbackCreatedDto implements ISchemaFeedbackCreatedDto {
57201
57875
  this.versionId = _data["versionId"];
57202
57876
  this.schemaInstanceId = _data["schemaInstanceId"];
57203
57877
  this.balloonId = _data["balloonId"];
57878
+ this.reference = _data["reference"];
57204
57879
  this.feedback = _data["feedback"];
57205
57880
  this.from = _data["from"];
57206
57881
  this.created = _data["created"] ? new Date(_data["created"].toString()) : <any>undefined;
@@ -57222,6 +57897,7 @@ export class SchemaFeedbackCreatedDto implements ISchemaFeedbackCreatedDto {
57222
57897
  data["versionId"] = this.versionId;
57223
57898
  data["schemaInstanceId"] = this.schemaInstanceId;
57224
57899
  data["balloonId"] = this.balloonId;
57900
+ data["reference"] = this.reference;
57225
57901
  data["feedback"] = this.feedback;
57226
57902
  data["from"] = this.from;
57227
57903
  data["created"] = this.created ? this.created.toISOString() : <any>undefined;
@@ -57236,6 +57912,7 @@ export interface ISchemaFeedbackCreatedDto {
57236
57912
  versionId: number;
57237
57913
  schemaInstanceId: string;
57238
57914
  balloonId?: string | null;
57915
+ reference?: number;
57239
57916
  feedback: string;
57240
57917
  from: string;
57241
57918
  created: Date;
@@ -57243,6 +57920,7 @@ export interface ISchemaFeedbackCreatedDto {
57243
57920
 
57244
57921
  export class CreateMeasurementFormSchemaFeedbackRequest implements ICreateMeasurementFormSchemaFeedbackRequest {
57245
57922
  balloonId?: string | null;
57923
+ reference?: number;
57246
57924
  feedback!: string;
57247
57925
 
57248
57926
  constructor(data?: ICreateMeasurementFormSchemaFeedbackRequest) {
@@ -57257,6 +57935,7 @@ export class CreateMeasurementFormSchemaFeedbackRequest implements ICreateMeasur
57257
57935
  init(_data?: any) {
57258
57936
  if (_data) {
57259
57937
  this.balloonId = _data["balloonId"];
57938
+ this.reference = _data["reference"];
57260
57939
  this.feedback = _data["feedback"];
57261
57940
  }
57262
57941
  }
@@ -57271,6 +57950,7 @@ export class CreateMeasurementFormSchemaFeedbackRequest implements ICreateMeasur
57271
57950
  toJSON(data?: any) {
57272
57951
  data = typeof data === 'object' ? data : {};
57273
57952
  data["balloonId"] = this.balloonId;
57953
+ data["reference"] = this.reference;
57274
57954
  data["feedback"] = this.feedback;
57275
57955
  return data;
57276
57956
  }
@@ -57278,6 +57958,7 @@ export class CreateMeasurementFormSchemaFeedbackRequest implements ICreateMeasur
57278
57958
 
57279
57959
  export interface ICreateMeasurementFormSchemaFeedbackRequest {
57280
57960
  balloonId?: string | null;
57961
+ reference?: number;
57281
57962
  feedback: string;
57282
57963
  }
57283
57964
 
@@ -57538,7 +58219,8 @@ export interface IUpdateSchemaInstanceElementsRequest {
57538
58219
 
57539
58220
  export class SchemaInstanceElementDto implements ISchemaInstanceElementDto {
57540
58221
  elementId!: string;
57541
- balloonId!: string;
58222
+ balloonId?: string | null;
58223
+ reference!: number;
57542
58224
  disabled!: boolean;
57543
58225
 
57544
58226
  constructor(data?: ISchemaInstanceElementDto) {
@@ -57554,6 +58236,7 @@ export class SchemaInstanceElementDto implements ISchemaInstanceElementDto {
57554
58236
  if (_data) {
57555
58237
  this.elementId = _data["elementId"];
57556
58238
  this.balloonId = _data["balloonId"];
58239
+ this.reference = _data["reference"];
57557
58240
  this.disabled = _data["disabled"];
57558
58241
  }
57559
58242
  }
@@ -57569,6 +58252,7 @@ export class SchemaInstanceElementDto implements ISchemaInstanceElementDto {
57569
58252
  data = typeof data === 'object' ? data : {};
57570
58253
  data["elementId"] = this.elementId;
57571
58254
  data["balloonId"] = this.balloonId;
58255
+ data["reference"] = this.reference;
57572
58256
  data["disabled"] = this.disabled;
57573
58257
  return data;
57574
58258
  }
@@ -57576,230 +58260,11 @@ export class SchemaInstanceElementDto implements ISchemaInstanceElementDto {
57576
58260
 
57577
58261
  export interface ISchemaInstanceElementDto {
57578
58262
  elementId: string;
57579
- balloonId: string;
58263
+ balloonId?: string | null;
58264
+ reference: number;
57580
58265
  disabled: boolean;
57581
58266
  }
57582
58267
 
57583
- export class IotTypeSourceDto implements IIotTypeSourceDto {
57584
- id!: string;
57585
- name!: string;
57586
-
57587
- constructor(data?: IIotTypeSourceDto) {
57588
- if (data) {
57589
- for (var property in data) {
57590
- if (data.hasOwnProperty(property))
57591
- (<any>this)[property] = (<any>data)[property];
57592
- }
57593
- }
57594
- }
57595
-
57596
- init(_data?: any) {
57597
- if (_data) {
57598
- this.id = _data["id"];
57599
- this.name = _data["name"];
57600
- }
57601
- }
57602
-
57603
- static fromJS(data: any): IotTypeSourceDto {
57604
- data = typeof data === 'object' ? data : {};
57605
- let result = new IotTypeSourceDto();
57606
- result.init(data);
57607
- return result;
57608
- }
57609
-
57610
- toJSON(data?: any) {
57611
- data = typeof data === 'object' ? data : {};
57612
- data["id"] = this.id;
57613
- data["name"] = this.name;
57614
- return data;
57615
- }
57616
- }
57617
-
57618
- export interface IIotTypeSourceDto {
57619
- id: string;
57620
- name: string;
57621
- }
57622
-
57623
- export class ElectricalIotConfigDto implements IElectricalIotConfigDto {
57624
- id!: string;
57625
- typeId!: string;
57626
- serialNumber?: string | null;
57627
- assetId!: number;
57628
- assetExternalId?: string | null;
57629
- phases?: number;
57630
- electricalAssetId?: number;
57631
- electricalAssetExternalId?: string | null;
57632
- electricalTimeseriesId?: number;
57633
- electricalTimeseriesExternalId?: string | null;
57634
-
57635
- constructor(data?: IElectricalIotConfigDto) {
57636
- if (data) {
57637
- for (var property in data) {
57638
- if (data.hasOwnProperty(property))
57639
- (<any>this)[property] = (<any>data)[property];
57640
- }
57641
- }
57642
- }
57643
-
57644
- init(_data?: any) {
57645
- if (_data) {
57646
- this.id = _data["id"];
57647
- this.typeId = _data["typeId"];
57648
- this.serialNumber = _data["serialNumber"];
57649
- this.assetId = _data["assetId"];
57650
- this.assetExternalId = _data["assetExternalId"];
57651
- this.phases = _data["phases"];
57652
- this.electricalAssetId = _data["electricalAssetId"];
57653
- this.electricalAssetExternalId = _data["electricalAssetExternalId"];
57654
- this.electricalTimeseriesId = _data["electricalTimeseriesId"];
57655
- this.electricalTimeseriesExternalId = _data["electricalTimeseriesExternalId"];
57656
- }
57657
- }
57658
-
57659
- static fromJS(data: any): ElectricalIotConfigDto {
57660
- data = typeof data === 'object' ? data : {};
57661
- let result = new ElectricalIotConfigDto();
57662
- result.init(data);
57663
- return result;
57664
- }
57665
-
57666
- toJSON(data?: any) {
57667
- data = typeof data === 'object' ? data : {};
57668
- data["id"] = this.id;
57669
- data["typeId"] = this.typeId;
57670
- data["serialNumber"] = this.serialNumber;
57671
- data["assetId"] = this.assetId;
57672
- data["assetExternalId"] = this.assetExternalId;
57673
- data["phases"] = this.phases;
57674
- data["electricalAssetId"] = this.electricalAssetId;
57675
- data["electricalAssetExternalId"] = this.electricalAssetExternalId;
57676
- data["electricalTimeseriesId"] = this.electricalTimeseriesId;
57677
- data["electricalTimeseriesExternalId"] = this.electricalTimeseriesExternalId;
57678
- return data;
57679
- }
57680
- }
57681
-
57682
- export interface IElectricalIotConfigDto {
57683
- id: string;
57684
- typeId: string;
57685
- serialNumber?: string | null;
57686
- assetId: number;
57687
- assetExternalId?: string | null;
57688
- phases?: number;
57689
- electricalAssetId?: number;
57690
- electricalAssetExternalId?: string | null;
57691
- electricalTimeseriesId?: number;
57692
- electricalTimeseriesExternalId?: string | null;
57693
- }
57694
-
57695
- export class CreateElectricalIotConfig implements ICreateElectricalIotConfig {
57696
- typeId?: string | null;
57697
- serialNumber?: string | null;
57698
- assetId?: number | null;
57699
- assetExternalId?: string | null;
57700
-
57701
- constructor(data?: ICreateElectricalIotConfig) {
57702
- if (data) {
57703
- for (var property in data) {
57704
- if (data.hasOwnProperty(property))
57705
- (<any>this)[property] = (<any>data)[property];
57706
- }
57707
- }
57708
- }
57709
-
57710
- init(_data?: any) {
57711
- if (_data) {
57712
- this.typeId = _data["typeId"];
57713
- this.serialNumber = _data["serialNumber"];
57714
- this.assetId = _data["assetId"];
57715
- this.assetExternalId = _data["assetExternalId"];
57716
- }
57717
- }
57718
-
57719
- static fromJS(data: any): CreateElectricalIotConfig {
57720
- data = typeof data === 'object' ? data : {};
57721
- let result = new CreateElectricalIotConfig();
57722
- result.init(data);
57723
- return result;
57724
- }
57725
-
57726
- toJSON(data?: any) {
57727
- data = typeof data === 'object' ? data : {};
57728
- data["typeId"] = this.typeId;
57729
- data["serialNumber"] = this.serialNumber;
57730
- data["assetId"] = this.assetId;
57731
- data["assetExternalId"] = this.assetExternalId;
57732
- return data;
57733
- }
57734
- }
57735
-
57736
- export interface ICreateElectricalIotConfig {
57737
- typeId?: string | null;
57738
- serialNumber?: string | null;
57739
- assetId?: number | null;
57740
- assetExternalId?: string | null;
57741
- }
57742
-
57743
- export class WeldingIotConfigDto implements IWeldingIotConfigDto {
57744
-
57745
- constructor(data?: IWeldingIotConfigDto) {
57746
- if (data) {
57747
- for (var property in data) {
57748
- if (data.hasOwnProperty(property))
57749
- (<any>this)[property] = (<any>data)[property];
57750
- }
57751
- }
57752
- }
57753
-
57754
- init(_data?: any) {
57755
- }
57756
-
57757
- static fromJS(data: any): WeldingIotConfigDto {
57758
- data = typeof data === 'object' ? data : {};
57759
- let result = new WeldingIotConfigDto();
57760
- result.init(data);
57761
- return result;
57762
- }
57763
-
57764
- toJSON(data?: any) {
57765
- data = typeof data === 'object' ? data : {};
57766
- return data;
57767
- }
57768
- }
57769
-
57770
- export interface IWeldingIotConfigDto {
57771
- }
57772
-
57773
- export class CreateWeldingIotConfig implements ICreateWeldingIotConfig {
57774
-
57775
- constructor(data?: ICreateWeldingIotConfig) {
57776
- if (data) {
57777
- for (var property in data) {
57778
- if (data.hasOwnProperty(property))
57779
- (<any>this)[property] = (<any>data)[property];
57780
- }
57781
- }
57782
- }
57783
-
57784
- init(_data?: any) {
57785
- }
57786
-
57787
- static fromJS(data: any): CreateWeldingIotConfig {
57788
- data = typeof data === 'object' ? data : {};
57789
- let result = new CreateWeldingIotConfig();
57790
- result.init(data);
57791
- return result;
57792
- }
57793
-
57794
- toJSON(data?: any) {
57795
- data = typeof data === 'object' ? data : {};
57796
- return data;
57797
- }
57798
- }
57799
-
57800
- export interface ICreateWeldingIotConfig {
57801
- }
57802
-
57803
58268
  export class ProductionCompanyDto implements IProductionCompanyDto {
57804
58269
  id!: string;
57805
58270
  name!: string;