@ignos/api-client 20250814.0.12365 → 20250822.0.12415-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.
- package/lib/ignosportal-api.d.ts +234 -184
- package/lib/ignosportal-api.js +1460 -1376
- package/package.json +1 -1
- package/src/ignosportal-api.ts +850 -719
package/src/ignosportal-api.ts
CHANGED
|
@@ -18120,6 +18120,368 @@ export class MesResourceClient extends AuthorizedApiBase implements IMesResource
|
|
|
18120
18120
|
}
|
|
18121
18121
|
}
|
|
18122
18122
|
|
|
18123
|
+
export interface IElectricalClient {
|
|
18124
|
+
|
|
18125
|
+
listElectricalSourceTypes(): Promise<IotTypeSourceDto[]>;
|
|
18126
|
+
|
|
18127
|
+
listElectricalDataConfigs(): Promise<ElectricalIotConfigDto[]>;
|
|
18128
|
+
|
|
18129
|
+
createElectricalIotConfig(request: CreateElectricalIotConfig): Promise<ElectricalIotConfigDto>;
|
|
18130
|
+
|
|
18131
|
+
deleteElectricalIotConfig(typeId: string, id: string): Promise<void>;
|
|
18132
|
+
}
|
|
18133
|
+
|
|
18134
|
+
export class ElectricalClient extends AuthorizedApiBase implements IElectricalClient {
|
|
18135
|
+
private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
|
|
18136
|
+
private baseUrl: string;
|
|
18137
|
+
protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;
|
|
18138
|
+
|
|
18139
|
+
constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
|
|
18140
|
+
super(configuration);
|
|
18141
|
+
this.http = http ? http : window as any;
|
|
18142
|
+
this.baseUrl = baseUrl ?? "";
|
|
18143
|
+
}
|
|
18144
|
+
|
|
18145
|
+
listElectricalSourceTypes(): Promise<IotTypeSourceDto[]> {
|
|
18146
|
+
let url_ = this.baseUrl + "/iot/electrical/sourcetypes";
|
|
18147
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
18148
|
+
|
|
18149
|
+
let options_: RequestInit = {
|
|
18150
|
+
method: "GET",
|
|
18151
|
+
headers: {
|
|
18152
|
+
"Accept": "application/json"
|
|
18153
|
+
}
|
|
18154
|
+
};
|
|
18155
|
+
|
|
18156
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
18157
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
18158
|
+
}).then((_response: Response) => {
|
|
18159
|
+
return this.processListElectricalSourceTypes(_response);
|
|
18160
|
+
});
|
|
18161
|
+
}
|
|
18162
|
+
|
|
18163
|
+
protected processListElectricalSourceTypes(response: Response): Promise<IotTypeSourceDto[]> {
|
|
18164
|
+
const status = response.status;
|
|
18165
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
18166
|
+
if (status === 200) {
|
|
18167
|
+
return response.text().then((_responseText) => {
|
|
18168
|
+
let result200: any = null;
|
|
18169
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
18170
|
+
if (Array.isArray(resultData200)) {
|
|
18171
|
+
result200 = [] as any;
|
|
18172
|
+
for (let item of resultData200)
|
|
18173
|
+
result200!.push(IotTypeSourceDto.fromJS(item));
|
|
18174
|
+
}
|
|
18175
|
+
return result200;
|
|
18176
|
+
});
|
|
18177
|
+
} else if (status !== 200 && status !== 204) {
|
|
18178
|
+
return response.text().then((_responseText) => {
|
|
18179
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
18180
|
+
});
|
|
18181
|
+
}
|
|
18182
|
+
return Promise.resolve<IotTypeSourceDto[]>(null as any);
|
|
18183
|
+
}
|
|
18184
|
+
|
|
18185
|
+
listElectricalDataConfigs(): Promise<ElectricalIotConfigDto[]> {
|
|
18186
|
+
let url_ = this.baseUrl + "/iot/electrical";
|
|
18187
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
18188
|
+
|
|
18189
|
+
let options_: RequestInit = {
|
|
18190
|
+
method: "GET",
|
|
18191
|
+
headers: {
|
|
18192
|
+
"Accept": "application/json"
|
|
18193
|
+
}
|
|
18194
|
+
};
|
|
18195
|
+
|
|
18196
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
18197
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
18198
|
+
}).then((_response: Response) => {
|
|
18199
|
+
return this.processListElectricalDataConfigs(_response);
|
|
18200
|
+
});
|
|
18201
|
+
}
|
|
18202
|
+
|
|
18203
|
+
protected processListElectricalDataConfigs(response: Response): Promise<ElectricalIotConfigDto[]> {
|
|
18204
|
+
const status = response.status;
|
|
18205
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
18206
|
+
if (status === 200) {
|
|
18207
|
+
return response.text().then((_responseText) => {
|
|
18208
|
+
let result200: any = null;
|
|
18209
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
18210
|
+
if (Array.isArray(resultData200)) {
|
|
18211
|
+
result200 = [] as any;
|
|
18212
|
+
for (let item of resultData200)
|
|
18213
|
+
result200!.push(ElectricalIotConfigDto.fromJS(item));
|
|
18214
|
+
}
|
|
18215
|
+
return result200;
|
|
18216
|
+
});
|
|
18217
|
+
} else if (status !== 200 && status !== 204) {
|
|
18218
|
+
return response.text().then((_responseText) => {
|
|
18219
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
18220
|
+
});
|
|
18221
|
+
}
|
|
18222
|
+
return Promise.resolve<ElectricalIotConfigDto[]>(null as any);
|
|
18223
|
+
}
|
|
18224
|
+
|
|
18225
|
+
createElectricalIotConfig(request: CreateElectricalIotConfig): Promise<ElectricalIotConfigDto> {
|
|
18226
|
+
let url_ = this.baseUrl + "/iot/electrical";
|
|
18227
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
18228
|
+
|
|
18229
|
+
const content_ = JSON.stringify(request);
|
|
18230
|
+
|
|
18231
|
+
let options_: RequestInit = {
|
|
18232
|
+
body: content_,
|
|
18233
|
+
method: "POST",
|
|
18234
|
+
headers: {
|
|
18235
|
+
"Content-Type": "application/json",
|
|
18236
|
+
"Accept": "application/json"
|
|
18237
|
+
}
|
|
18238
|
+
};
|
|
18239
|
+
|
|
18240
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
18241
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
18242
|
+
}).then((_response: Response) => {
|
|
18243
|
+
return this.processCreateElectricalIotConfig(_response);
|
|
18244
|
+
});
|
|
18245
|
+
}
|
|
18246
|
+
|
|
18247
|
+
protected processCreateElectricalIotConfig(response: Response): Promise<ElectricalIotConfigDto> {
|
|
18248
|
+
const status = response.status;
|
|
18249
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
18250
|
+
if (status === 200) {
|
|
18251
|
+
return response.text().then((_responseText) => {
|
|
18252
|
+
let result200: any = null;
|
|
18253
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
18254
|
+
result200 = ElectricalIotConfigDto.fromJS(resultData200);
|
|
18255
|
+
return result200;
|
|
18256
|
+
});
|
|
18257
|
+
} else if (status !== 200 && status !== 204) {
|
|
18258
|
+
return response.text().then((_responseText) => {
|
|
18259
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
18260
|
+
});
|
|
18261
|
+
}
|
|
18262
|
+
return Promise.resolve<ElectricalIotConfigDto>(null as any);
|
|
18263
|
+
}
|
|
18264
|
+
|
|
18265
|
+
deleteElectricalIotConfig(typeId: string, id: string): Promise<void> {
|
|
18266
|
+
let url_ = this.baseUrl + "/iot/electrical/{typeId}/{id}";
|
|
18267
|
+
if (typeId === undefined || typeId === null)
|
|
18268
|
+
throw new Error("The parameter 'typeId' must be defined.");
|
|
18269
|
+
url_ = url_.replace("{typeId}", encodeURIComponent("" + typeId));
|
|
18270
|
+
if (id === undefined || id === null)
|
|
18271
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
18272
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
18273
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
18274
|
+
|
|
18275
|
+
let options_: RequestInit = {
|
|
18276
|
+
method: "DELETE",
|
|
18277
|
+
headers: {
|
|
18278
|
+
}
|
|
18279
|
+
};
|
|
18280
|
+
|
|
18281
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
18282
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
18283
|
+
}).then((_response: Response) => {
|
|
18284
|
+
return this.processDeleteElectricalIotConfig(_response);
|
|
18285
|
+
});
|
|
18286
|
+
}
|
|
18287
|
+
|
|
18288
|
+
protected processDeleteElectricalIotConfig(response: Response): Promise<void> {
|
|
18289
|
+
const status = response.status;
|
|
18290
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
18291
|
+
if (status === 204) {
|
|
18292
|
+
return response.text().then((_responseText) => {
|
|
18293
|
+
return;
|
|
18294
|
+
});
|
|
18295
|
+
} else if (status !== 200 && status !== 204) {
|
|
18296
|
+
return response.text().then((_responseText) => {
|
|
18297
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
18298
|
+
});
|
|
18299
|
+
}
|
|
18300
|
+
return Promise.resolve<void>(null as any);
|
|
18301
|
+
}
|
|
18302
|
+
}
|
|
18303
|
+
|
|
18304
|
+
export interface IWeldingClient {
|
|
18305
|
+
|
|
18306
|
+
listWeldingSourceTypes(): Promise<IotTypeSourceDto[]>;
|
|
18307
|
+
|
|
18308
|
+
listElectricalDataConfigs(): Promise<WeldingIotConfigDto[]>;
|
|
18309
|
+
|
|
18310
|
+
createWeldingIotConfig(request: CreateWeldingIotConfig): Promise<WeldingIotConfigDto>;
|
|
18311
|
+
|
|
18312
|
+
deleteWeldingIotConfig(typeId: string, id: string): Promise<void>;
|
|
18313
|
+
}
|
|
18314
|
+
|
|
18315
|
+
export class WeldingClient extends AuthorizedApiBase implements IWeldingClient {
|
|
18316
|
+
private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
|
|
18317
|
+
private baseUrl: string;
|
|
18318
|
+
protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;
|
|
18319
|
+
|
|
18320
|
+
constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
|
|
18321
|
+
super(configuration);
|
|
18322
|
+
this.http = http ? http : window as any;
|
|
18323
|
+
this.baseUrl = baseUrl ?? "";
|
|
18324
|
+
}
|
|
18325
|
+
|
|
18326
|
+
listWeldingSourceTypes(): Promise<IotTypeSourceDto[]> {
|
|
18327
|
+
let url_ = this.baseUrl + "/iot/welding/sourcetypes";
|
|
18328
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
18329
|
+
|
|
18330
|
+
let options_: RequestInit = {
|
|
18331
|
+
method: "GET",
|
|
18332
|
+
headers: {
|
|
18333
|
+
"Accept": "application/json"
|
|
18334
|
+
}
|
|
18335
|
+
};
|
|
18336
|
+
|
|
18337
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
18338
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
18339
|
+
}).then((_response: Response) => {
|
|
18340
|
+
return this.processListWeldingSourceTypes(_response);
|
|
18341
|
+
});
|
|
18342
|
+
}
|
|
18343
|
+
|
|
18344
|
+
protected processListWeldingSourceTypes(response: Response): Promise<IotTypeSourceDto[]> {
|
|
18345
|
+
const status = response.status;
|
|
18346
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
18347
|
+
if (status === 200) {
|
|
18348
|
+
return response.text().then((_responseText) => {
|
|
18349
|
+
let result200: any = null;
|
|
18350
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
18351
|
+
if (Array.isArray(resultData200)) {
|
|
18352
|
+
result200 = [] as any;
|
|
18353
|
+
for (let item of resultData200)
|
|
18354
|
+
result200!.push(IotTypeSourceDto.fromJS(item));
|
|
18355
|
+
}
|
|
18356
|
+
return result200;
|
|
18357
|
+
});
|
|
18358
|
+
} else if (status !== 200 && status !== 204) {
|
|
18359
|
+
return response.text().then((_responseText) => {
|
|
18360
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
18361
|
+
});
|
|
18362
|
+
}
|
|
18363
|
+
return Promise.resolve<IotTypeSourceDto[]>(null as any);
|
|
18364
|
+
}
|
|
18365
|
+
|
|
18366
|
+
listElectricalDataConfigs(): Promise<WeldingIotConfigDto[]> {
|
|
18367
|
+
let url_ = this.baseUrl + "/iot/welding";
|
|
18368
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
18369
|
+
|
|
18370
|
+
let options_: RequestInit = {
|
|
18371
|
+
method: "GET",
|
|
18372
|
+
headers: {
|
|
18373
|
+
"Accept": "application/json"
|
|
18374
|
+
}
|
|
18375
|
+
};
|
|
18376
|
+
|
|
18377
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
18378
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
18379
|
+
}).then((_response: Response) => {
|
|
18380
|
+
return this.processListElectricalDataConfigs(_response);
|
|
18381
|
+
});
|
|
18382
|
+
}
|
|
18383
|
+
|
|
18384
|
+
protected processListElectricalDataConfigs(response: Response): Promise<WeldingIotConfigDto[]> {
|
|
18385
|
+
const status = response.status;
|
|
18386
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
18387
|
+
if (status === 200) {
|
|
18388
|
+
return response.text().then((_responseText) => {
|
|
18389
|
+
let result200: any = null;
|
|
18390
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
18391
|
+
if (Array.isArray(resultData200)) {
|
|
18392
|
+
result200 = [] as any;
|
|
18393
|
+
for (let item of resultData200)
|
|
18394
|
+
result200!.push(WeldingIotConfigDto.fromJS(item));
|
|
18395
|
+
}
|
|
18396
|
+
return result200;
|
|
18397
|
+
});
|
|
18398
|
+
} else if (status !== 200 && status !== 204) {
|
|
18399
|
+
return response.text().then((_responseText) => {
|
|
18400
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
18401
|
+
});
|
|
18402
|
+
}
|
|
18403
|
+
return Promise.resolve<WeldingIotConfigDto[]>(null as any);
|
|
18404
|
+
}
|
|
18405
|
+
|
|
18406
|
+
createWeldingIotConfig(request: CreateWeldingIotConfig): Promise<WeldingIotConfigDto> {
|
|
18407
|
+
let url_ = this.baseUrl + "/iot/welding";
|
|
18408
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
18409
|
+
|
|
18410
|
+
const content_ = JSON.stringify(request);
|
|
18411
|
+
|
|
18412
|
+
let options_: RequestInit = {
|
|
18413
|
+
body: content_,
|
|
18414
|
+
method: "POST",
|
|
18415
|
+
headers: {
|
|
18416
|
+
"Content-Type": "application/json",
|
|
18417
|
+
"Accept": "application/json"
|
|
18418
|
+
}
|
|
18419
|
+
};
|
|
18420
|
+
|
|
18421
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
18422
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
18423
|
+
}).then((_response: Response) => {
|
|
18424
|
+
return this.processCreateWeldingIotConfig(_response);
|
|
18425
|
+
});
|
|
18426
|
+
}
|
|
18427
|
+
|
|
18428
|
+
protected processCreateWeldingIotConfig(response: Response): Promise<WeldingIotConfigDto> {
|
|
18429
|
+
const status = response.status;
|
|
18430
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
18431
|
+
if (status === 200) {
|
|
18432
|
+
return response.text().then((_responseText) => {
|
|
18433
|
+
let result200: any = null;
|
|
18434
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
18435
|
+
result200 = WeldingIotConfigDto.fromJS(resultData200);
|
|
18436
|
+
return result200;
|
|
18437
|
+
});
|
|
18438
|
+
} else if (status !== 200 && status !== 204) {
|
|
18439
|
+
return response.text().then((_responseText) => {
|
|
18440
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
18441
|
+
});
|
|
18442
|
+
}
|
|
18443
|
+
return Promise.resolve<WeldingIotConfigDto>(null as any);
|
|
18444
|
+
}
|
|
18445
|
+
|
|
18446
|
+
deleteWeldingIotConfig(typeId: string, id: string): Promise<void> {
|
|
18447
|
+
let url_ = this.baseUrl + "/iot/welding/{typeId}/{id}";
|
|
18448
|
+
if (typeId === undefined || typeId === null)
|
|
18449
|
+
throw new Error("The parameter 'typeId' must be defined.");
|
|
18450
|
+
url_ = url_.replace("{typeId}", encodeURIComponent("" + typeId));
|
|
18451
|
+
if (id === undefined || id === null)
|
|
18452
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
18453
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
18454
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
18455
|
+
|
|
18456
|
+
let options_: RequestInit = {
|
|
18457
|
+
method: "DELETE",
|
|
18458
|
+
headers: {
|
|
18459
|
+
}
|
|
18460
|
+
};
|
|
18461
|
+
|
|
18462
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
18463
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
18464
|
+
}).then((_response: Response) => {
|
|
18465
|
+
return this.processDeleteWeldingIotConfig(_response);
|
|
18466
|
+
});
|
|
18467
|
+
}
|
|
18468
|
+
|
|
18469
|
+
protected processDeleteWeldingIotConfig(response: Response): Promise<void> {
|
|
18470
|
+
const status = response.status;
|
|
18471
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
18472
|
+
if (status === 204) {
|
|
18473
|
+
return response.text().then((_responseText) => {
|
|
18474
|
+
return;
|
|
18475
|
+
});
|
|
18476
|
+
} else if (status !== 200 && status !== 204) {
|
|
18477
|
+
return response.text().then((_responseText) => {
|
|
18478
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
18479
|
+
});
|
|
18480
|
+
}
|
|
18481
|
+
return Promise.resolve<void>(null as any);
|
|
18482
|
+
}
|
|
18483
|
+
}
|
|
18484
|
+
|
|
18123
18485
|
export interface IMeasurementFormSchemasClient {
|
|
18124
18486
|
|
|
18125
18487
|
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>;
|
|
@@ -18169,12 +18531,12 @@ export interface IMeasurementFormSchemasClient {
|
|
|
18169
18531
|
/**
|
|
18170
18532
|
* @deprecated
|
|
18171
18533
|
*/
|
|
18172
|
-
getMeasurementFormSettings(): Promise<
|
|
18534
|
+
getMeasurementFormSettings(): Promise<InspectCompanySettingsDto>;
|
|
18173
18535
|
|
|
18174
18536
|
/**
|
|
18175
18537
|
* @deprecated
|
|
18176
18538
|
*/
|
|
18177
|
-
updateMeasurementFormSettings(request: UpdateMeasurementFormSettings): Promise<
|
|
18539
|
+
updateMeasurementFormSettings(request: UpdateMeasurementFormSettings): Promise<InspectCompanySettingsDto>;
|
|
18178
18540
|
|
|
18179
18541
|
/**
|
|
18180
18542
|
* @deprecated
|
|
@@ -18194,9 +18556,12 @@ export interface IMeasurementFormSchemasClient {
|
|
|
18194
18556
|
|
|
18195
18557
|
deleteMeasurementFormMapping(id: string): Promise<void>;
|
|
18196
18558
|
|
|
18197
|
-
|
|
18559
|
+
/**
|
|
18560
|
+
* @deprecated
|
|
18561
|
+
*/
|
|
18562
|
+
setMeasurementFormMappingBalloonsV2(id: string, request: SetMeasurementFormReferencesMappingRequest): Promise<MeasurementFormMappingDto>;
|
|
18198
18563
|
|
|
18199
|
-
|
|
18564
|
+
setMeasurementFormReferencesMapping(mappingId: string, request: SetMeasurementFormReferencesMappingRequest): Promise<MeasurementFormMappingDto>;
|
|
18200
18565
|
|
|
18201
18566
|
getMeasurementFormMappingSuggestion(targetId: string | null | undefined, sourceId: string | null | undefined): Promise<MeasurementFormMappingSuggestionDto>;
|
|
18202
18567
|
|
|
@@ -19179,7 +19544,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
|
|
|
19179
19544
|
/**
|
|
19180
19545
|
* @deprecated
|
|
19181
19546
|
*/
|
|
19182
|
-
getMeasurementFormSettings(): Promise<
|
|
19547
|
+
getMeasurementFormSettings(): Promise<InspectCompanySettingsDto> {
|
|
19183
19548
|
let url_ = this.baseUrl + "/measurementforms/schemas/settings";
|
|
19184
19549
|
url_ = url_.replace(/[?&]$/, "");
|
|
19185
19550
|
|
|
@@ -19197,14 +19562,14 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
|
|
|
19197
19562
|
});
|
|
19198
19563
|
}
|
|
19199
19564
|
|
|
19200
|
-
protected processGetMeasurementFormSettings(response: Response): Promise<
|
|
19565
|
+
protected processGetMeasurementFormSettings(response: Response): Promise<InspectCompanySettingsDto> {
|
|
19201
19566
|
const status = response.status;
|
|
19202
19567
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
19203
19568
|
if (status === 200) {
|
|
19204
19569
|
return response.text().then((_responseText) => {
|
|
19205
19570
|
let result200: any = null;
|
|
19206
19571
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
19207
|
-
result200 =
|
|
19572
|
+
result200 = InspectCompanySettingsDto.fromJS(resultData200);
|
|
19208
19573
|
return result200;
|
|
19209
19574
|
});
|
|
19210
19575
|
} else if (status !== 200 && status !== 204) {
|
|
@@ -19212,13 +19577,13 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
|
|
|
19212
19577
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
19213
19578
|
});
|
|
19214
19579
|
}
|
|
19215
|
-
return Promise.resolve<
|
|
19580
|
+
return Promise.resolve<InspectCompanySettingsDto>(null as any);
|
|
19216
19581
|
}
|
|
19217
19582
|
|
|
19218
19583
|
/**
|
|
19219
19584
|
* @deprecated
|
|
19220
19585
|
*/
|
|
19221
|
-
updateMeasurementFormSettings(request: UpdateMeasurementFormSettings): Promise<
|
|
19586
|
+
updateMeasurementFormSettings(request: UpdateMeasurementFormSettings): Promise<InspectCompanySettingsDto> {
|
|
19222
19587
|
let url_ = this.baseUrl + "/measurementforms/schemas/settings";
|
|
19223
19588
|
url_ = url_.replace(/[?&]$/, "");
|
|
19224
19589
|
|
|
@@ -19240,14 +19605,14 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
|
|
|
19240
19605
|
});
|
|
19241
19606
|
}
|
|
19242
19607
|
|
|
19243
|
-
protected processUpdateMeasurementFormSettings(response: Response): Promise<
|
|
19608
|
+
protected processUpdateMeasurementFormSettings(response: Response): Promise<InspectCompanySettingsDto> {
|
|
19244
19609
|
const status = response.status;
|
|
19245
19610
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
19246
19611
|
if (status === 200) {
|
|
19247
19612
|
return response.text().then((_responseText) => {
|
|
19248
19613
|
let result200: any = null;
|
|
19249
19614
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
19250
|
-
result200 =
|
|
19615
|
+
result200 = InspectCompanySettingsDto.fromJS(resultData200);
|
|
19251
19616
|
return result200;
|
|
19252
19617
|
});
|
|
19253
19618
|
} else if (status !== 200 && status !== 204) {
|
|
@@ -19255,7 +19620,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
|
|
|
19255
19620
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
19256
19621
|
});
|
|
19257
19622
|
}
|
|
19258
|
-
return Promise.resolve<
|
|
19623
|
+
return Promise.resolve<InspectCompanySettingsDto>(null as any);
|
|
19259
19624
|
}
|
|
19260
19625
|
|
|
19261
19626
|
/**
|
|
@@ -19513,8 +19878,11 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
|
|
|
19513
19878
|
return Promise.resolve<void>(null as any);
|
|
19514
19879
|
}
|
|
19515
19880
|
|
|
19516
|
-
|
|
19517
|
-
|
|
19881
|
+
/**
|
|
19882
|
+
* @deprecated
|
|
19883
|
+
*/
|
|
19884
|
+
setMeasurementFormMappingBalloonsV2(id: string, request: SetMeasurementFormReferencesMappingRequest): Promise<MeasurementFormMappingDto> {
|
|
19885
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/mapping/{id}/balloons/v2";
|
|
19518
19886
|
if (id === undefined || id === null)
|
|
19519
19887
|
throw new Error("The parameter 'id' must be defined.");
|
|
19520
19888
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
@@ -19534,11 +19902,11 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
|
|
|
19534
19902
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
19535
19903
|
return this.http.fetch(url_, transformedOptions_);
|
|
19536
19904
|
}).then((_response: Response) => {
|
|
19537
|
-
return this.
|
|
19905
|
+
return this.processSetMeasurementFormMappingBalloonsV2(_response);
|
|
19538
19906
|
});
|
|
19539
19907
|
}
|
|
19540
19908
|
|
|
19541
|
-
protected
|
|
19909
|
+
protected processSetMeasurementFormMappingBalloonsV2(response: Response): Promise<MeasurementFormMappingDto> {
|
|
19542
19910
|
const status = response.status;
|
|
19543
19911
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
19544
19912
|
if (status === 200) {
|
|
@@ -19556,11 +19924,11 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
|
|
|
19556
19924
|
return Promise.resolve<MeasurementFormMappingDto>(null as any);
|
|
19557
19925
|
}
|
|
19558
19926
|
|
|
19559
|
-
|
|
19560
|
-
let url_ = this.baseUrl + "/measurementforms/schemas/mapping/{
|
|
19561
|
-
if (
|
|
19562
|
-
throw new Error("The parameter '
|
|
19563
|
-
url_ = url_.replace("{
|
|
19927
|
+
setMeasurementFormReferencesMapping(mappingId: string, request: SetMeasurementFormReferencesMappingRequest): Promise<MeasurementFormMappingDto> {
|
|
19928
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/mapping/{mappingId}/references";
|
|
19929
|
+
if (mappingId === undefined || mappingId === null)
|
|
19930
|
+
throw new Error("The parameter 'mappingId' must be defined.");
|
|
19931
|
+
url_ = url_.replace("{mappingId}", encodeURIComponent("" + mappingId));
|
|
19564
19932
|
url_ = url_.replace(/[?&]$/, "");
|
|
19565
19933
|
|
|
19566
19934
|
const content_ = JSON.stringify(request);
|
|
@@ -19577,11 +19945,11 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
|
|
|
19577
19945
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
19578
19946
|
return this.http.fetch(url_, transformedOptions_);
|
|
19579
19947
|
}).then((_response: Response) => {
|
|
19580
|
-
return this.
|
|
19948
|
+
return this.processSetMeasurementFormReferencesMapping(_response);
|
|
19581
19949
|
});
|
|
19582
19950
|
}
|
|
19583
19951
|
|
|
19584
|
-
protected
|
|
19952
|
+
protected processSetMeasurementFormReferencesMapping(response: Response): Promise<MeasurementFormMappingDto> {
|
|
19585
19953
|
const status = response.status;
|
|
19586
19954
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
19587
19955
|
if (status === 200) {
|
|
@@ -20485,9 +20853,9 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
|
|
|
20485
20853
|
|
|
20486
20854
|
export interface IMeasurementFormSettingsClient {
|
|
20487
20855
|
|
|
20488
|
-
getMeasurementFormSettings(): Promise<
|
|
20856
|
+
getMeasurementFormSettings(): Promise<InspectCompanySettingsDto>;
|
|
20489
20857
|
|
|
20490
|
-
updateMeasurementFormSettings(request: UpdateMeasurementFormSettings): Promise<
|
|
20858
|
+
updateMeasurementFormSettings(request: UpdateMeasurementFormSettings): Promise<InspectCompanySettingsDto>;
|
|
20491
20859
|
|
|
20492
20860
|
getMeasurementFormCustomerSettings(id: string): Promise<MeasurementFormCustomerSettingsDto>;
|
|
20493
20861
|
|
|
@@ -20505,7 +20873,7 @@ export class MeasurementFormSettingsClient extends AuthorizedApiBase implements
|
|
|
20505
20873
|
this.baseUrl = baseUrl ?? "";
|
|
20506
20874
|
}
|
|
20507
20875
|
|
|
20508
|
-
getMeasurementFormSettings(): Promise<
|
|
20876
|
+
getMeasurementFormSettings(): Promise<InspectCompanySettingsDto> {
|
|
20509
20877
|
let url_ = this.baseUrl + "/measurementforms/settings";
|
|
20510
20878
|
url_ = url_.replace(/[?&]$/, "");
|
|
20511
20879
|
|
|
@@ -20523,14 +20891,14 @@ export class MeasurementFormSettingsClient extends AuthorizedApiBase implements
|
|
|
20523
20891
|
});
|
|
20524
20892
|
}
|
|
20525
20893
|
|
|
20526
|
-
protected processGetMeasurementFormSettings(response: Response): Promise<
|
|
20894
|
+
protected processGetMeasurementFormSettings(response: Response): Promise<InspectCompanySettingsDto> {
|
|
20527
20895
|
const status = response.status;
|
|
20528
20896
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
20529
20897
|
if (status === 200) {
|
|
20530
20898
|
return response.text().then((_responseText) => {
|
|
20531
20899
|
let result200: any = null;
|
|
20532
20900
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
20533
|
-
result200 =
|
|
20901
|
+
result200 = InspectCompanySettingsDto.fromJS(resultData200);
|
|
20534
20902
|
return result200;
|
|
20535
20903
|
});
|
|
20536
20904
|
} else if (status !== 200 && status !== 204) {
|
|
@@ -20538,10 +20906,10 @@ export class MeasurementFormSettingsClient extends AuthorizedApiBase implements
|
|
|
20538
20906
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
20539
20907
|
});
|
|
20540
20908
|
}
|
|
20541
|
-
return Promise.resolve<
|
|
20909
|
+
return Promise.resolve<InspectCompanySettingsDto>(null as any);
|
|
20542
20910
|
}
|
|
20543
20911
|
|
|
20544
|
-
updateMeasurementFormSettings(request: UpdateMeasurementFormSettings): Promise<
|
|
20912
|
+
updateMeasurementFormSettings(request: UpdateMeasurementFormSettings): Promise<InspectCompanySettingsDto> {
|
|
20545
20913
|
let url_ = this.baseUrl + "/measurementforms/settings";
|
|
20546
20914
|
url_ = url_.replace(/[?&]$/, "");
|
|
20547
20915
|
|
|
@@ -20563,14 +20931,14 @@ export class MeasurementFormSettingsClient extends AuthorizedApiBase implements
|
|
|
20563
20931
|
});
|
|
20564
20932
|
}
|
|
20565
20933
|
|
|
20566
|
-
protected processUpdateMeasurementFormSettings(response: Response): Promise<
|
|
20934
|
+
protected processUpdateMeasurementFormSettings(response: Response): Promise<InspectCompanySettingsDto> {
|
|
20567
20935
|
const status = response.status;
|
|
20568
20936
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
20569
20937
|
if (status === 200) {
|
|
20570
20938
|
return response.text().then((_responseText) => {
|
|
20571
20939
|
let result200: any = null;
|
|
20572
20940
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
20573
|
-
result200 =
|
|
20941
|
+
result200 = InspectCompanySettingsDto.fromJS(resultData200);
|
|
20574
20942
|
return result200;
|
|
20575
20943
|
});
|
|
20576
20944
|
} else if (status !== 200 && status !== 204) {
|
|
@@ -20578,7 +20946,7 @@ export class MeasurementFormSettingsClient extends AuthorizedApiBase implements
|
|
|
20578
20946
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
20579
20947
|
});
|
|
20580
20948
|
}
|
|
20581
|
-
return Promise.resolve<
|
|
20949
|
+
return Promise.resolve<InspectCompanySettingsDto>(null as any);
|
|
20582
20950
|
}
|
|
20583
20951
|
|
|
20584
20952
|
getMeasurementFormCustomerSettings(id: string): Promise<MeasurementFormCustomerSettingsDto> {
|
|
@@ -22110,368 +22478,6 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase implement
|
|
|
22110
22478
|
}
|
|
22111
22479
|
}
|
|
22112
22480
|
|
|
22113
|
-
export interface IElectricalClient {
|
|
22114
|
-
|
|
22115
|
-
listElectricalSourceTypes(): Promise<IotTypeSourceDto[]>;
|
|
22116
|
-
|
|
22117
|
-
listElectricalDataConfigs(): Promise<ElectricalIotConfigDto[]>;
|
|
22118
|
-
|
|
22119
|
-
createElectricalIotConfig(request: CreateElectricalIotConfig): Promise<ElectricalIotConfigDto>;
|
|
22120
|
-
|
|
22121
|
-
deleteElectricalIotConfig(typeId: string, id: string): Promise<void>;
|
|
22122
|
-
}
|
|
22123
|
-
|
|
22124
|
-
export class ElectricalClient extends AuthorizedApiBase implements IElectricalClient {
|
|
22125
|
-
private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
|
|
22126
|
-
private baseUrl: string;
|
|
22127
|
-
protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;
|
|
22128
|
-
|
|
22129
|
-
constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
|
|
22130
|
-
super(configuration);
|
|
22131
|
-
this.http = http ? http : window as any;
|
|
22132
|
-
this.baseUrl = baseUrl ?? "";
|
|
22133
|
-
}
|
|
22134
|
-
|
|
22135
|
-
listElectricalSourceTypes(): Promise<IotTypeSourceDto[]> {
|
|
22136
|
-
let url_ = this.baseUrl + "/iot/electrical/sourcetypes";
|
|
22137
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
22138
|
-
|
|
22139
|
-
let options_: RequestInit = {
|
|
22140
|
-
method: "GET",
|
|
22141
|
-
headers: {
|
|
22142
|
-
"Accept": "application/json"
|
|
22143
|
-
}
|
|
22144
|
-
};
|
|
22145
|
-
|
|
22146
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
22147
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
22148
|
-
}).then((_response: Response) => {
|
|
22149
|
-
return this.processListElectricalSourceTypes(_response);
|
|
22150
|
-
});
|
|
22151
|
-
}
|
|
22152
|
-
|
|
22153
|
-
protected processListElectricalSourceTypes(response: Response): Promise<IotTypeSourceDto[]> {
|
|
22154
|
-
const status = response.status;
|
|
22155
|
-
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
22156
|
-
if (status === 200) {
|
|
22157
|
-
return response.text().then((_responseText) => {
|
|
22158
|
-
let result200: any = null;
|
|
22159
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
22160
|
-
if (Array.isArray(resultData200)) {
|
|
22161
|
-
result200 = [] as any;
|
|
22162
|
-
for (let item of resultData200)
|
|
22163
|
-
result200!.push(IotTypeSourceDto.fromJS(item));
|
|
22164
|
-
}
|
|
22165
|
-
return result200;
|
|
22166
|
-
});
|
|
22167
|
-
} else if (status !== 200 && status !== 204) {
|
|
22168
|
-
return response.text().then((_responseText) => {
|
|
22169
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
22170
|
-
});
|
|
22171
|
-
}
|
|
22172
|
-
return Promise.resolve<IotTypeSourceDto[]>(null as any);
|
|
22173
|
-
}
|
|
22174
|
-
|
|
22175
|
-
listElectricalDataConfigs(): Promise<ElectricalIotConfigDto[]> {
|
|
22176
|
-
let url_ = this.baseUrl + "/iot/electrical";
|
|
22177
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
22178
|
-
|
|
22179
|
-
let options_: RequestInit = {
|
|
22180
|
-
method: "GET",
|
|
22181
|
-
headers: {
|
|
22182
|
-
"Accept": "application/json"
|
|
22183
|
-
}
|
|
22184
|
-
};
|
|
22185
|
-
|
|
22186
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
22187
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
22188
|
-
}).then((_response: Response) => {
|
|
22189
|
-
return this.processListElectricalDataConfigs(_response);
|
|
22190
|
-
});
|
|
22191
|
-
}
|
|
22192
|
-
|
|
22193
|
-
protected processListElectricalDataConfigs(response: Response): Promise<ElectricalIotConfigDto[]> {
|
|
22194
|
-
const status = response.status;
|
|
22195
|
-
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
22196
|
-
if (status === 200) {
|
|
22197
|
-
return response.text().then((_responseText) => {
|
|
22198
|
-
let result200: any = null;
|
|
22199
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
22200
|
-
if (Array.isArray(resultData200)) {
|
|
22201
|
-
result200 = [] as any;
|
|
22202
|
-
for (let item of resultData200)
|
|
22203
|
-
result200!.push(ElectricalIotConfigDto.fromJS(item));
|
|
22204
|
-
}
|
|
22205
|
-
return result200;
|
|
22206
|
-
});
|
|
22207
|
-
} else if (status !== 200 && status !== 204) {
|
|
22208
|
-
return response.text().then((_responseText) => {
|
|
22209
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
22210
|
-
});
|
|
22211
|
-
}
|
|
22212
|
-
return Promise.resolve<ElectricalIotConfigDto[]>(null as any);
|
|
22213
|
-
}
|
|
22214
|
-
|
|
22215
|
-
createElectricalIotConfig(request: CreateElectricalIotConfig): Promise<ElectricalIotConfigDto> {
|
|
22216
|
-
let url_ = this.baseUrl + "/iot/electrical";
|
|
22217
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
22218
|
-
|
|
22219
|
-
const content_ = JSON.stringify(request);
|
|
22220
|
-
|
|
22221
|
-
let options_: RequestInit = {
|
|
22222
|
-
body: content_,
|
|
22223
|
-
method: "POST",
|
|
22224
|
-
headers: {
|
|
22225
|
-
"Content-Type": "application/json",
|
|
22226
|
-
"Accept": "application/json"
|
|
22227
|
-
}
|
|
22228
|
-
};
|
|
22229
|
-
|
|
22230
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
22231
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
22232
|
-
}).then((_response: Response) => {
|
|
22233
|
-
return this.processCreateElectricalIotConfig(_response);
|
|
22234
|
-
});
|
|
22235
|
-
}
|
|
22236
|
-
|
|
22237
|
-
protected processCreateElectricalIotConfig(response: Response): Promise<ElectricalIotConfigDto> {
|
|
22238
|
-
const status = response.status;
|
|
22239
|
-
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
22240
|
-
if (status === 200) {
|
|
22241
|
-
return response.text().then((_responseText) => {
|
|
22242
|
-
let result200: any = null;
|
|
22243
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
22244
|
-
result200 = ElectricalIotConfigDto.fromJS(resultData200);
|
|
22245
|
-
return result200;
|
|
22246
|
-
});
|
|
22247
|
-
} else if (status !== 200 && status !== 204) {
|
|
22248
|
-
return response.text().then((_responseText) => {
|
|
22249
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
22250
|
-
});
|
|
22251
|
-
}
|
|
22252
|
-
return Promise.resolve<ElectricalIotConfigDto>(null as any);
|
|
22253
|
-
}
|
|
22254
|
-
|
|
22255
|
-
deleteElectricalIotConfig(typeId: string, id: string): Promise<void> {
|
|
22256
|
-
let url_ = this.baseUrl + "/iot/electrical/{typeId}/{id}";
|
|
22257
|
-
if (typeId === undefined || typeId === null)
|
|
22258
|
-
throw new Error("The parameter 'typeId' must be defined.");
|
|
22259
|
-
url_ = url_.replace("{typeId}", encodeURIComponent("" + typeId));
|
|
22260
|
-
if (id === undefined || id === null)
|
|
22261
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
22262
|
-
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
22263
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
22264
|
-
|
|
22265
|
-
let options_: RequestInit = {
|
|
22266
|
-
method: "DELETE",
|
|
22267
|
-
headers: {
|
|
22268
|
-
}
|
|
22269
|
-
};
|
|
22270
|
-
|
|
22271
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
22272
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
22273
|
-
}).then((_response: Response) => {
|
|
22274
|
-
return this.processDeleteElectricalIotConfig(_response);
|
|
22275
|
-
});
|
|
22276
|
-
}
|
|
22277
|
-
|
|
22278
|
-
protected processDeleteElectricalIotConfig(response: Response): Promise<void> {
|
|
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 === 204) {
|
|
22282
|
-
return response.text().then((_responseText) => {
|
|
22283
|
-
return;
|
|
22284
|
-
});
|
|
22285
|
-
} else if (status !== 200 && status !== 204) {
|
|
22286
|
-
return response.text().then((_responseText) => {
|
|
22287
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
22288
|
-
});
|
|
22289
|
-
}
|
|
22290
|
-
return Promise.resolve<void>(null as any);
|
|
22291
|
-
}
|
|
22292
|
-
}
|
|
22293
|
-
|
|
22294
|
-
export interface IWeldingClient {
|
|
22295
|
-
|
|
22296
|
-
listWeldingSourceTypes(): Promise<IotTypeSourceDto[]>;
|
|
22297
|
-
|
|
22298
|
-
listElectricalDataConfigs(): Promise<WeldingIotConfigDto[]>;
|
|
22299
|
-
|
|
22300
|
-
createWeldingIotConfig(request: CreateWeldingIotConfig): Promise<WeldingIotConfigDto>;
|
|
22301
|
-
|
|
22302
|
-
deleteWeldingIotConfig(typeId: string, id: string): Promise<void>;
|
|
22303
|
-
}
|
|
22304
|
-
|
|
22305
|
-
export class WeldingClient extends AuthorizedApiBase implements IWeldingClient {
|
|
22306
|
-
private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
|
|
22307
|
-
private baseUrl: string;
|
|
22308
|
-
protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;
|
|
22309
|
-
|
|
22310
|
-
constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
|
|
22311
|
-
super(configuration);
|
|
22312
|
-
this.http = http ? http : window as any;
|
|
22313
|
-
this.baseUrl = baseUrl ?? "";
|
|
22314
|
-
}
|
|
22315
|
-
|
|
22316
|
-
listWeldingSourceTypes(): Promise<IotTypeSourceDto[]> {
|
|
22317
|
-
let url_ = this.baseUrl + "/iot/welding/sourcetypes";
|
|
22318
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
22319
|
-
|
|
22320
|
-
let options_: RequestInit = {
|
|
22321
|
-
method: "GET",
|
|
22322
|
-
headers: {
|
|
22323
|
-
"Accept": "application/json"
|
|
22324
|
-
}
|
|
22325
|
-
};
|
|
22326
|
-
|
|
22327
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
22328
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
22329
|
-
}).then((_response: Response) => {
|
|
22330
|
-
return this.processListWeldingSourceTypes(_response);
|
|
22331
|
-
});
|
|
22332
|
-
}
|
|
22333
|
-
|
|
22334
|
-
protected processListWeldingSourceTypes(response: Response): Promise<IotTypeSourceDto[]> {
|
|
22335
|
-
const status = response.status;
|
|
22336
|
-
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
22337
|
-
if (status === 200) {
|
|
22338
|
-
return response.text().then((_responseText) => {
|
|
22339
|
-
let result200: any = null;
|
|
22340
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
22341
|
-
if (Array.isArray(resultData200)) {
|
|
22342
|
-
result200 = [] as any;
|
|
22343
|
-
for (let item of resultData200)
|
|
22344
|
-
result200!.push(IotTypeSourceDto.fromJS(item));
|
|
22345
|
-
}
|
|
22346
|
-
return result200;
|
|
22347
|
-
});
|
|
22348
|
-
} else if (status !== 200 && status !== 204) {
|
|
22349
|
-
return response.text().then((_responseText) => {
|
|
22350
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
22351
|
-
});
|
|
22352
|
-
}
|
|
22353
|
-
return Promise.resolve<IotTypeSourceDto[]>(null as any);
|
|
22354
|
-
}
|
|
22355
|
-
|
|
22356
|
-
listElectricalDataConfigs(): Promise<WeldingIotConfigDto[]> {
|
|
22357
|
-
let url_ = this.baseUrl + "/iot/welding";
|
|
22358
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
22359
|
-
|
|
22360
|
-
let options_: RequestInit = {
|
|
22361
|
-
method: "GET",
|
|
22362
|
-
headers: {
|
|
22363
|
-
"Accept": "application/json"
|
|
22364
|
-
}
|
|
22365
|
-
};
|
|
22366
|
-
|
|
22367
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
22368
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
22369
|
-
}).then((_response: Response) => {
|
|
22370
|
-
return this.processListElectricalDataConfigs(_response);
|
|
22371
|
-
});
|
|
22372
|
-
}
|
|
22373
|
-
|
|
22374
|
-
protected processListElectricalDataConfigs(response: Response): Promise<WeldingIotConfigDto[]> {
|
|
22375
|
-
const status = response.status;
|
|
22376
|
-
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
22377
|
-
if (status === 200) {
|
|
22378
|
-
return response.text().then((_responseText) => {
|
|
22379
|
-
let result200: any = null;
|
|
22380
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
22381
|
-
if (Array.isArray(resultData200)) {
|
|
22382
|
-
result200 = [] as any;
|
|
22383
|
-
for (let item of resultData200)
|
|
22384
|
-
result200!.push(WeldingIotConfigDto.fromJS(item));
|
|
22385
|
-
}
|
|
22386
|
-
return result200;
|
|
22387
|
-
});
|
|
22388
|
-
} else if (status !== 200 && status !== 204) {
|
|
22389
|
-
return response.text().then((_responseText) => {
|
|
22390
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
22391
|
-
});
|
|
22392
|
-
}
|
|
22393
|
-
return Promise.resolve<WeldingIotConfigDto[]>(null as any);
|
|
22394
|
-
}
|
|
22395
|
-
|
|
22396
|
-
createWeldingIotConfig(request: CreateWeldingIotConfig): Promise<WeldingIotConfigDto> {
|
|
22397
|
-
let url_ = this.baseUrl + "/iot/welding";
|
|
22398
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
22399
|
-
|
|
22400
|
-
const content_ = JSON.stringify(request);
|
|
22401
|
-
|
|
22402
|
-
let options_: RequestInit = {
|
|
22403
|
-
body: content_,
|
|
22404
|
-
method: "POST",
|
|
22405
|
-
headers: {
|
|
22406
|
-
"Content-Type": "application/json",
|
|
22407
|
-
"Accept": "application/json"
|
|
22408
|
-
}
|
|
22409
|
-
};
|
|
22410
|
-
|
|
22411
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
22412
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
22413
|
-
}).then((_response: Response) => {
|
|
22414
|
-
return this.processCreateWeldingIotConfig(_response);
|
|
22415
|
-
});
|
|
22416
|
-
}
|
|
22417
|
-
|
|
22418
|
-
protected processCreateWeldingIotConfig(response: Response): Promise<WeldingIotConfigDto> {
|
|
22419
|
-
const status = response.status;
|
|
22420
|
-
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
22421
|
-
if (status === 200) {
|
|
22422
|
-
return response.text().then((_responseText) => {
|
|
22423
|
-
let result200: any = null;
|
|
22424
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
22425
|
-
result200 = WeldingIotConfigDto.fromJS(resultData200);
|
|
22426
|
-
return result200;
|
|
22427
|
-
});
|
|
22428
|
-
} else if (status !== 200 && status !== 204) {
|
|
22429
|
-
return response.text().then((_responseText) => {
|
|
22430
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
22431
|
-
});
|
|
22432
|
-
}
|
|
22433
|
-
return Promise.resolve<WeldingIotConfigDto>(null as any);
|
|
22434
|
-
}
|
|
22435
|
-
|
|
22436
|
-
deleteWeldingIotConfig(typeId: string, id: string): Promise<void> {
|
|
22437
|
-
let url_ = this.baseUrl + "/iot/welding/{typeId}/{id}";
|
|
22438
|
-
if (typeId === undefined || typeId === null)
|
|
22439
|
-
throw new Error("The parameter 'typeId' must be defined.");
|
|
22440
|
-
url_ = url_.replace("{typeId}", encodeURIComponent("" + typeId));
|
|
22441
|
-
if (id === undefined || id === null)
|
|
22442
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
22443
|
-
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
22444
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
22445
|
-
|
|
22446
|
-
let options_: RequestInit = {
|
|
22447
|
-
method: "DELETE",
|
|
22448
|
-
headers: {
|
|
22449
|
-
}
|
|
22450
|
-
};
|
|
22451
|
-
|
|
22452
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
22453
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
22454
|
-
}).then((_response: Response) => {
|
|
22455
|
-
return this.processDeleteWeldingIotConfig(_response);
|
|
22456
|
-
});
|
|
22457
|
-
}
|
|
22458
|
-
|
|
22459
|
-
protected processDeleteWeldingIotConfig(response: Response): Promise<void> {
|
|
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 === 204) {
|
|
22463
|
-
return response.text().then((_responseText) => {
|
|
22464
|
-
return;
|
|
22465
|
-
});
|
|
22466
|
-
} else if (status !== 200 && status !== 204) {
|
|
22467
|
-
return response.text().then((_responseText) => {
|
|
22468
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
22469
|
-
});
|
|
22470
|
-
}
|
|
22471
|
-
return Promise.resolve<void>(null as any);
|
|
22472
|
-
}
|
|
22473
|
-
}
|
|
22474
|
-
|
|
22475
22481
|
export interface ICompaniesClient {
|
|
22476
22482
|
|
|
22477
22483
|
listProductionCompanies(): Promise<ProductionCompanyDto[]>;
|
|
@@ -34547,6 +34553,7 @@ export class CalendarDayDto implements ICalendarDayDto {
|
|
|
34547
34553
|
date?: Date;
|
|
34548
34554
|
dayCapacity?: CalendarDayCapacityDto;
|
|
34549
34555
|
capacityHours?: number;
|
|
34556
|
+
companyId?: string | null;
|
|
34550
34557
|
|
|
34551
34558
|
constructor(data?: ICalendarDayDto) {
|
|
34552
34559
|
if (data) {
|
|
@@ -34562,6 +34569,7 @@ export class CalendarDayDto implements ICalendarDayDto {
|
|
|
34562
34569
|
this.date = _data["date"] ? new Date(_data["date"].toString()) : <any>undefined;
|
|
34563
34570
|
this.dayCapacity = _data["dayCapacity"];
|
|
34564
34571
|
this.capacityHours = _data["capacityHours"];
|
|
34572
|
+
this.companyId = _data["companyId"];
|
|
34565
34573
|
}
|
|
34566
34574
|
}
|
|
34567
34575
|
|
|
@@ -34577,6 +34585,7 @@ export class CalendarDayDto implements ICalendarDayDto {
|
|
|
34577
34585
|
data["date"] = this.date ? this.date.toISOString() : <any>undefined;
|
|
34578
34586
|
data["dayCapacity"] = this.dayCapacity;
|
|
34579
34587
|
data["capacityHours"] = this.capacityHours;
|
|
34588
|
+
data["companyId"] = this.companyId;
|
|
34580
34589
|
return data;
|
|
34581
34590
|
}
|
|
34582
34591
|
}
|
|
@@ -34585,6 +34594,7 @@ export interface ICalendarDayDto {
|
|
|
34585
34594
|
date?: Date;
|
|
34586
34595
|
dayCapacity?: CalendarDayCapacityDto;
|
|
34587
34596
|
capacityHours?: number;
|
|
34597
|
+
companyId?: string | null;
|
|
34588
34598
|
}
|
|
34589
34599
|
|
|
34590
34600
|
export type CalendarDayCapacityDto = "WorkingDay" | "HalfDay" | "Holiday";
|
|
@@ -52004,6 +52014,226 @@ export interface IProductionResourceDto {
|
|
|
52004
52014
|
department?: DepartmentDto | null;
|
|
52005
52015
|
}
|
|
52006
52016
|
|
|
52017
|
+
export class IotTypeSourceDto implements IIotTypeSourceDto {
|
|
52018
|
+
id!: string;
|
|
52019
|
+
name!: string;
|
|
52020
|
+
|
|
52021
|
+
constructor(data?: IIotTypeSourceDto) {
|
|
52022
|
+
if (data) {
|
|
52023
|
+
for (var property in data) {
|
|
52024
|
+
if (data.hasOwnProperty(property))
|
|
52025
|
+
(<any>this)[property] = (<any>data)[property];
|
|
52026
|
+
}
|
|
52027
|
+
}
|
|
52028
|
+
}
|
|
52029
|
+
|
|
52030
|
+
init(_data?: any) {
|
|
52031
|
+
if (_data) {
|
|
52032
|
+
this.id = _data["id"];
|
|
52033
|
+
this.name = _data["name"];
|
|
52034
|
+
}
|
|
52035
|
+
}
|
|
52036
|
+
|
|
52037
|
+
static fromJS(data: any): IotTypeSourceDto {
|
|
52038
|
+
data = typeof data === 'object' ? data : {};
|
|
52039
|
+
let result = new IotTypeSourceDto();
|
|
52040
|
+
result.init(data);
|
|
52041
|
+
return result;
|
|
52042
|
+
}
|
|
52043
|
+
|
|
52044
|
+
toJSON(data?: any) {
|
|
52045
|
+
data = typeof data === 'object' ? data : {};
|
|
52046
|
+
data["id"] = this.id;
|
|
52047
|
+
data["name"] = this.name;
|
|
52048
|
+
return data;
|
|
52049
|
+
}
|
|
52050
|
+
}
|
|
52051
|
+
|
|
52052
|
+
export interface IIotTypeSourceDto {
|
|
52053
|
+
id: string;
|
|
52054
|
+
name: string;
|
|
52055
|
+
}
|
|
52056
|
+
|
|
52057
|
+
export class ElectricalIotConfigDto implements IElectricalIotConfigDto {
|
|
52058
|
+
id!: string;
|
|
52059
|
+
typeId!: string;
|
|
52060
|
+
serialNumber?: string | null;
|
|
52061
|
+
assetId!: number;
|
|
52062
|
+
assetExternalId?: string | null;
|
|
52063
|
+
phases?: number;
|
|
52064
|
+
electricalAssetId?: number;
|
|
52065
|
+
electricalAssetExternalId?: string | null;
|
|
52066
|
+
electricalTimeseriesId?: number;
|
|
52067
|
+
electricalTimeseriesExternalId?: string | null;
|
|
52068
|
+
|
|
52069
|
+
constructor(data?: IElectricalIotConfigDto) {
|
|
52070
|
+
if (data) {
|
|
52071
|
+
for (var property in data) {
|
|
52072
|
+
if (data.hasOwnProperty(property))
|
|
52073
|
+
(<any>this)[property] = (<any>data)[property];
|
|
52074
|
+
}
|
|
52075
|
+
}
|
|
52076
|
+
}
|
|
52077
|
+
|
|
52078
|
+
init(_data?: any) {
|
|
52079
|
+
if (_data) {
|
|
52080
|
+
this.id = _data["id"];
|
|
52081
|
+
this.typeId = _data["typeId"];
|
|
52082
|
+
this.serialNumber = _data["serialNumber"];
|
|
52083
|
+
this.assetId = _data["assetId"];
|
|
52084
|
+
this.assetExternalId = _data["assetExternalId"];
|
|
52085
|
+
this.phases = _data["phases"];
|
|
52086
|
+
this.electricalAssetId = _data["electricalAssetId"];
|
|
52087
|
+
this.electricalAssetExternalId = _data["electricalAssetExternalId"];
|
|
52088
|
+
this.electricalTimeseriesId = _data["electricalTimeseriesId"];
|
|
52089
|
+
this.electricalTimeseriesExternalId = _data["electricalTimeseriesExternalId"];
|
|
52090
|
+
}
|
|
52091
|
+
}
|
|
52092
|
+
|
|
52093
|
+
static fromJS(data: any): ElectricalIotConfigDto {
|
|
52094
|
+
data = typeof data === 'object' ? data : {};
|
|
52095
|
+
let result = new ElectricalIotConfigDto();
|
|
52096
|
+
result.init(data);
|
|
52097
|
+
return result;
|
|
52098
|
+
}
|
|
52099
|
+
|
|
52100
|
+
toJSON(data?: any) {
|
|
52101
|
+
data = typeof data === 'object' ? data : {};
|
|
52102
|
+
data["id"] = this.id;
|
|
52103
|
+
data["typeId"] = this.typeId;
|
|
52104
|
+
data["serialNumber"] = this.serialNumber;
|
|
52105
|
+
data["assetId"] = this.assetId;
|
|
52106
|
+
data["assetExternalId"] = this.assetExternalId;
|
|
52107
|
+
data["phases"] = this.phases;
|
|
52108
|
+
data["electricalAssetId"] = this.electricalAssetId;
|
|
52109
|
+
data["electricalAssetExternalId"] = this.electricalAssetExternalId;
|
|
52110
|
+
data["electricalTimeseriesId"] = this.electricalTimeseriesId;
|
|
52111
|
+
data["electricalTimeseriesExternalId"] = this.electricalTimeseriesExternalId;
|
|
52112
|
+
return data;
|
|
52113
|
+
}
|
|
52114
|
+
}
|
|
52115
|
+
|
|
52116
|
+
export interface IElectricalIotConfigDto {
|
|
52117
|
+
id: string;
|
|
52118
|
+
typeId: string;
|
|
52119
|
+
serialNumber?: string | null;
|
|
52120
|
+
assetId: number;
|
|
52121
|
+
assetExternalId?: string | null;
|
|
52122
|
+
phases?: number;
|
|
52123
|
+
electricalAssetId?: number;
|
|
52124
|
+
electricalAssetExternalId?: string | null;
|
|
52125
|
+
electricalTimeseriesId?: number;
|
|
52126
|
+
electricalTimeseriesExternalId?: string | null;
|
|
52127
|
+
}
|
|
52128
|
+
|
|
52129
|
+
export class CreateElectricalIotConfig implements ICreateElectricalIotConfig {
|
|
52130
|
+
typeId?: string | null;
|
|
52131
|
+
serialNumber?: string | null;
|
|
52132
|
+
assetId?: number | null;
|
|
52133
|
+
assetExternalId?: string | null;
|
|
52134
|
+
|
|
52135
|
+
constructor(data?: ICreateElectricalIotConfig) {
|
|
52136
|
+
if (data) {
|
|
52137
|
+
for (var property in data) {
|
|
52138
|
+
if (data.hasOwnProperty(property))
|
|
52139
|
+
(<any>this)[property] = (<any>data)[property];
|
|
52140
|
+
}
|
|
52141
|
+
}
|
|
52142
|
+
}
|
|
52143
|
+
|
|
52144
|
+
init(_data?: any) {
|
|
52145
|
+
if (_data) {
|
|
52146
|
+
this.typeId = _data["typeId"];
|
|
52147
|
+
this.serialNumber = _data["serialNumber"];
|
|
52148
|
+
this.assetId = _data["assetId"];
|
|
52149
|
+
this.assetExternalId = _data["assetExternalId"];
|
|
52150
|
+
}
|
|
52151
|
+
}
|
|
52152
|
+
|
|
52153
|
+
static fromJS(data: any): CreateElectricalIotConfig {
|
|
52154
|
+
data = typeof data === 'object' ? data : {};
|
|
52155
|
+
let result = new CreateElectricalIotConfig();
|
|
52156
|
+
result.init(data);
|
|
52157
|
+
return result;
|
|
52158
|
+
}
|
|
52159
|
+
|
|
52160
|
+
toJSON(data?: any) {
|
|
52161
|
+
data = typeof data === 'object' ? data : {};
|
|
52162
|
+
data["typeId"] = this.typeId;
|
|
52163
|
+
data["serialNumber"] = this.serialNumber;
|
|
52164
|
+
data["assetId"] = this.assetId;
|
|
52165
|
+
data["assetExternalId"] = this.assetExternalId;
|
|
52166
|
+
return data;
|
|
52167
|
+
}
|
|
52168
|
+
}
|
|
52169
|
+
|
|
52170
|
+
export interface ICreateElectricalIotConfig {
|
|
52171
|
+
typeId?: string | null;
|
|
52172
|
+
serialNumber?: string | null;
|
|
52173
|
+
assetId?: number | null;
|
|
52174
|
+
assetExternalId?: string | null;
|
|
52175
|
+
}
|
|
52176
|
+
|
|
52177
|
+
export class WeldingIotConfigDto implements IWeldingIotConfigDto {
|
|
52178
|
+
|
|
52179
|
+
constructor(data?: IWeldingIotConfigDto) {
|
|
52180
|
+
if (data) {
|
|
52181
|
+
for (var property in data) {
|
|
52182
|
+
if (data.hasOwnProperty(property))
|
|
52183
|
+
(<any>this)[property] = (<any>data)[property];
|
|
52184
|
+
}
|
|
52185
|
+
}
|
|
52186
|
+
}
|
|
52187
|
+
|
|
52188
|
+
init(_data?: any) {
|
|
52189
|
+
}
|
|
52190
|
+
|
|
52191
|
+
static fromJS(data: any): WeldingIotConfigDto {
|
|
52192
|
+
data = typeof data === 'object' ? data : {};
|
|
52193
|
+
let result = new WeldingIotConfigDto();
|
|
52194
|
+
result.init(data);
|
|
52195
|
+
return result;
|
|
52196
|
+
}
|
|
52197
|
+
|
|
52198
|
+
toJSON(data?: any) {
|
|
52199
|
+
data = typeof data === 'object' ? data : {};
|
|
52200
|
+
return data;
|
|
52201
|
+
}
|
|
52202
|
+
}
|
|
52203
|
+
|
|
52204
|
+
export interface IWeldingIotConfigDto {
|
|
52205
|
+
}
|
|
52206
|
+
|
|
52207
|
+
export class CreateWeldingIotConfig implements ICreateWeldingIotConfig {
|
|
52208
|
+
|
|
52209
|
+
constructor(data?: ICreateWeldingIotConfig) {
|
|
52210
|
+
if (data) {
|
|
52211
|
+
for (var property in data) {
|
|
52212
|
+
if (data.hasOwnProperty(property))
|
|
52213
|
+
(<any>this)[property] = (<any>data)[property];
|
|
52214
|
+
}
|
|
52215
|
+
}
|
|
52216
|
+
}
|
|
52217
|
+
|
|
52218
|
+
init(_data?: any) {
|
|
52219
|
+
}
|
|
52220
|
+
|
|
52221
|
+
static fromJS(data: any): CreateWeldingIotConfig {
|
|
52222
|
+
data = typeof data === 'object' ? data : {};
|
|
52223
|
+
let result = new CreateWeldingIotConfig();
|
|
52224
|
+
result.init(data);
|
|
52225
|
+
return result;
|
|
52226
|
+
}
|
|
52227
|
+
|
|
52228
|
+
toJSON(data?: any) {
|
|
52229
|
+
data = typeof data === 'object' ? data : {};
|
|
52230
|
+
return data;
|
|
52231
|
+
}
|
|
52232
|
+
}
|
|
52233
|
+
|
|
52234
|
+
export interface ICreateWeldingIotConfig {
|
|
52235
|
+
}
|
|
52236
|
+
|
|
52007
52237
|
export class PagedResultOfMeasurementFormListDto implements IPagedResultOfMeasurementFormListDto {
|
|
52008
52238
|
results!: MeasurementFormListDto[];
|
|
52009
52239
|
continuationToken?: string | null;
|
|
@@ -52432,7 +52662,8 @@ export interface IMeasurementFormSchemaAttachmentDto {
|
|
|
52432
52662
|
|
|
52433
52663
|
export class MeasurementFormGroupedElementDto implements IMeasurementFormGroupedElementDto {
|
|
52434
52664
|
id!: string;
|
|
52435
|
-
balloonId
|
|
52665
|
+
balloonId?: string | null;
|
|
52666
|
+
reference!: number;
|
|
52436
52667
|
imageUrl?: string | null;
|
|
52437
52668
|
thumbnailUrl?: string | null;
|
|
52438
52669
|
section?: string | null;
|
|
@@ -52459,6 +52690,7 @@ export class MeasurementFormGroupedElementDto implements IMeasurementFormGrouped
|
|
|
52459
52690
|
includeInCustomerDocumentation!: boolean;
|
|
52460
52691
|
isDocumentedExternally!: boolean;
|
|
52461
52692
|
balloonQuantity?: number | null;
|
|
52693
|
+
referenceQuantity?: number | null;
|
|
52462
52694
|
plusToleranceText?: string | null;
|
|
52463
52695
|
minusToleranceText?: string | null;
|
|
52464
52696
|
coatingThickness?: number | null;
|
|
@@ -52485,6 +52717,7 @@ export class MeasurementFormGroupedElementDto implements IMeasurementFormGrouped
|
|
|
52485
52717
|
if (_data) {
|
|
52486
52718
|
this.id = _data["id"];
|
|
52487
52719
|
this.balloonId = _data["balloonId"];
|
|
52720
|
+
this.reference = _data["reference"];
|
|
52488
52721
|
this.imageUrl = _data["imageUrl"];
|
|
52489
52722
|
this.thumbnailUrl = _data["thumbnailUrl"];
|
|
52490
52723
|
this.section = _data["section"];
|
|
@@ -52511,6 +52744,7 @@ export class MeasurementFormGroupedElementDto implements IMeasurementFormGrouped
|
|
|
52511
52744
|
this.includeInCustomerDocumentation = _data["includeInCustomerDocumentation"];
|
|
52512
52745
|
this.isDocumentedExternally = _data["isDocumentedExternally"];
|
|
52513
52746
|
this.balloonQuantity = _data["balloonQuantity"];
|
|
52747
|
+
this.referenceQuantity = _data["referenceQuantity"];
|
|
52514
52748
|
this.plusToleranceText = _data["plusToleranceText"];
|
|
52515
52749
|
this.minusToleranceText = _data["minusToleranceText"];
|
|
52516
52750
|
this.coatingThickness = _data["coatingThickness"];
|
|
@@ -52537,6 +52771,7 @@ export class MeasurementFormGroupedElementDto implements IMeasurementFormGrouped
|
|
|
52537
52771
|
data = typeof data === 'object' ? data : {};
|
|
52538
52772
|
data["id"] = this.id;
|
|
52539
52773
|
data["balloonId"] = this.balloonId;
|
|
52774
|
+
data["reference"] = this.reference;
|
|
52540
52775
|
data["imageUrl"] = this.imageUrl;
|
|
52541
52776
|
data["thumbnailUrl"] = this.thumbnailUrl;
|
|
52542
52777
|
data["section"] = this.section;
|
|
@@ -52563,6 +52798,7 @@ export class MeasurementFormGroupedElementDto implements IMeasurementFormGrouped
|
|
|
52563
52798
|
data["includeInCustomerDocumentation"] = this.includeInCustomerDocumentation;
|
|
52564
52799
|
data["isDocumentedExternally"] = this.isDocumentedExternally;
|
|
52565
52800
|
data["balloonQuantity"] = this.balloonQuantity;
|
|
52801
|
+
data["referenceQuantity"] = this.referenceQuantity;
|
|
52566
52802
|
data["plusToleranceText"] = this.plusToleranceText;
|
|
52567
52803
|
data["minusToleranceText"] = this.minusToleranceText;
|
|
52568
52804
|
data["coatingThickness"] = this.coatingThickness;
|
|
@@ -52581,7 +52817,8 @@ export class MeasurementFormGroupedElementDto implements IMeasurementFormGrouped
|
|
|
52581
52817
|
|
|
52582
52818
|
export interface IMeasurementFormGroupedElementDto {
|
|
52583
52819
|
id: string;
|
|
52584
|
-
balloonId
|
|
52820
|
+
balloonId?: string | null;
|
|
52821
|
+
reference: number;
|
|
52585
52822
|
imageUrl?: string | null;
|
|
52586
52823
|
thumbnailUrl?: string | null;
|
|
52587
52824
|
section?: string | null;
|
|
@@ -52608,6 +52845,7 @@ export interface IMeasurementFormGroupedElementDto {
|
|
|
52608
52845
|
includeInCustomerDocumentation: boolean;
|
|
52609
52846
|
isDocumentedExternally: boolean;
|
|
52610
52847
|
balloonQuantity?: number | null;
|
|
52848
|
+
referenceQuantity?: number | null;
|
|
52611
52849
|
plusToleranceText?: string | null;
|
|
52612
52850
|
minusToleranceText?: string | null;
|
|
52613
52851
|
coatingThickness?: number | null;
|
|
@@ -53011,7 +53249,8 @@ export interface IUpdateSchemaGroupedElementsRequest {
|
|
|
53011
53249
|
}
|
|
53012
53250
|
|
|
53013
53251
|
export class UpdateSchemaGroupedElementDto implements IUpdateSchemaGroupedElementDto {
|
|
53014
|
-
balloonId
|
|
53252
|
+
balloonId?: string | null;
|
|
53253
|
+
reference!: number;
|
|
53015
53254
|
frequency!: MeasurementFrequency;
|
|
53016
53255
|
frequencyParameter?: number | null;
|
|
53017
53256
|
includeInCustomerDocumentation!: boolean;
|
|
@@ -53031,6 +53270,7 @@ export class UpdateSchemaGroupedElementDto implements IUpdateSchemaGroupedElemen
|
|
|
53031
53270
|
init(_data?: any) {
|
|
53032
53271
|
if (_data) {
|
|
53033
53272
|
this.balloonId = _data["balloonId"];
|
|
53273
|
+
this.reference = _data["reference"];
|
|
53034
53274
|
this.frequency = _data["frequency"];
|
|
53035
53275
|
this.frequencyParameter = _data["frequencyParameter"];
|
|
53036
53276
|
this.includeInCustomerDocumentation = _data["includeInCustomerDocumentation"];
|
|
@@ -53050,6 +53290,7 @@ export class UpdateSchemaGroupedElementDto implements IUpdateSchemaGroupedElemen
|
|
|
53050
53290
|
toJSON(data?: any) {
|
|
53051
53291
|
data = typeof data === 'object' ? data : {};
|
|
53052
53292
|
data["balloonId"] = this.balloonId;
|
|
53293
|
+
data["reference"] = this.reference;
|
|
53053
53294
|
data["frequency"] = this.frequency;
|
|
53054
53295
|
data["frequencyParameter"] = this.frequencyParameter;
|
|
53055
53296
|
data["includeInCustomerDocumentation"] = this.includeInCustomerDocumentation;
|
|
@@ -53061,7 +53302,8 @@ export class UpdateSchemaGroupedElementDto implements IUpdateSchemaGroupedElemen
|
|
|
53061
53302
|
}
|
|
53062
53303
|
|
|
53063
53304
|
export interface IUpdateSchemaGroupedElementDto {
|
|
53064
|
-
balloonId
|
|
53305
|
+
balloonId?: string | null;
|
|
53306
|
+
reference: number;
|
|
53065
53307
|
frequency: MeasurementFrequency;
|
|
53066
53308
|
frequencyParameter?: number | null;
|
|
53067
53309
|
includeInCustomerDocumentation: boolean;
|
|
@@ -53071,8 +53313,10 @@ export interface IUpdateSchemaGroupedElementDto {
|
|
|
53071
53313
|
}
|
|
53072
53314
|
|
|
53073
53315
|
export class UpdateSchemaGroupedElementRowDto implements IUpdateSchemaGroupedElementRowDto {
|
|
53074
|
-
id
|
|
53075
|
-
balloonId
|
|
53316
|
+
id?: string;
|
|
53317
|
+
balloonId?: string;
|
|
53318
|
+
oldReference!: number;
|
|
53319
|
+
newReference!: number;
|
|
53076
53320
|
section?: string | null;
|
|
53077
53321
|
pageNumber?: number | null;
|
|
53078
53322
|
measurements?: number | null;
|
|
@@ -53104,6 +53348,8 @@ export class UpdateSchemaGroupedElementRowDto implements IUpdateSchemaGroupedEle
|
|
|
53104
53348
|
if (_data) {
|
|
53105
53349
|
this.id = _data["id"];
|
|
53106
53350
|
this.balloonId = _data["balloonId"];
|
|
53351
|
+
this.oldReference = _data["oldReference"];
|
|
53352
|
+
this.newReference = _data["newReference"];
|
|
53107
53353
|
this.section = _data["section"];
|
|
53108
53354
|
this.pageNumber = _data["pageNumber"];
|
|
53109
53355
|
this.measurements = _data["measurements"];
|
|
@@ -53135,6 +53381,8 @@ export class UpdateSchemaGroupedElementRowDto implements IUpdateSchemaGroupedEle
|
|
|
53135
53381
|
data = typeof data === 'object' ? data : {};
|
|
53136
53382
|
data["id"] = this.id;
|
|
53137
53383
|
data["balloonId"] = this.balloonId;
|
|
53384
|
+
data["oldReference"] = this.oldReference;
|
|
53385
|
+
data["newReference"] = this.newReference;
|
|
53138
53386
|
data["section"] = this.section;
|
|
53139
53387
|
data["pageNumber"] = this.pageNumber;
|
|
53140
53388
|
data["measurements"] = this.measurements;
|
|
@@ -53157,8 +53405,10 @@ export class UpdateSchemaGroupedElementRowDto implements IUpdateSchemaGroupedEle
|
|
|
53157
53405
|
}
|
|
53158
53406
|
|
|
53159
53407
|
export interface IUpdateSchemaGroupedElementRowDto {
|
|
53160
|
-
id
|
|
53161
|
-
balloonId
|
|
53408
|
+
id?: string;
|
|
53409
|
+
balloonId?: string;
|
|
53410
|
+
oldReference: number;
|
|
53411
|
+
newReference: number;
|
|
53162
53412
|
section?: string | null;
|
|
53163
53413
|
pageNumber?: number | null;
|
|
53164
53414
|
measurements?: number | null;
|
|
@@ -53179,7 +53429,8 @@ export interface IUpdateSchemaGroupedElementRowDto {
|
|
|
53179
53429
|
}
|
|
53180
53430
|
|
|
53181
53431
|
export class DeleteSchemaGroupedElementRowsDto implements IDeleteSchemaGroupedElementRowsDto {
|
|
53182
|
-
balloonIds
|
|
53432
|
+
balloonIds?: string[];
|
|
53433
|
+
references?: number[];
|
|
53183
53434
|
|
|
53184
53435
|
constructor(data?: IDeleteSchemaGroupedElementRowsDto) {
|
|
53185
53436
|
if (data) {
|
|
@@ -53188,9 +53439,6 @@ export class DeleteSchemaGroupedElementRowsDto implements IDeleteSchemaGroupedEl
|
|
|
53188
53439
|
(<any>this)[property] = (<any>data)[property];
|
|
53189
53440
|
}
|
|
53190
53441
|
}
|
|
53191
|
-
if (!data) {
|
|
53192
|
-
this.balloonIds = [];
|
|
53193
|
-
}
|
|
53194
53442
|
}
|
|
53195
53443
|
|
|
53196
53444
|
init(_data?: any) {
|
|
@@ -53200,6 +53448,11 @@ export class DeleteSchemaGroupedElementRowsDto implements IDeleteSchemaGroupedEl
|
|
|
53200
53448
|
for (let item of _data["balloonIds"])
|
|
53201
53449
|
this.balloonIds!.push(item);
|
|
53202
53450
|
}
|
|
53451
|
+
if (Array.isArray(_data["references"])) {
|
|
53452
|
+
this.references = [] as any;
|
|
53453
|
+
for (let item of _data["references"])
|
|
53454
|
+
this.references!.push(item);
|
|
53455
|
+
}
|
|
53203
53456
|
}
|
|
53204
53457
|
}
|
|
53205
53458
|
|
|
@@ -53217,18 +53470,25 @@ export class DeleteSchemaGroupedElementRowsDto implements IDeleteSchemaGroupedEl
|
|
|
53217
53470
|
for (let item of this.balloonIds)
|
|
53218
53471
|
data["balloonIds"].push(item);
|
|
53219
53472
|
}
|
|
53473
|
+
if (Array.isArray(this.references)) {
|
|
53474
|
+
data["references"] = [];
|
|
53475
|
+
for (let item of this.references)
|
|
53476
|
+
data["references"].push(item);
|
|
53477
|
+
}
|
|
53220
53478
|
return data;
|
|
53221
53479
|
}
|
|
53222
53480
|
}
|
|
53223
53481
|
|
|
53224
53482
|
export interface IDeleteSchemaGroupedElementRowsDto {
|
|
53225
|
-
balloonIds
|
|
53483
|
+
balloonIds?: string[];
|
|
53484
|
+
references?: number[];
|
|
53226
53485
|
}
|
|
53227
53486
|
|
|
53228
53487
|
export class UploadMeasurementImageRequest implements IUploadMeasurementImageRequest {
|
|
53229
53488
|
uploadKey!: string;
|
|
53230
53489
|
filename!: string;
|
|
53231
|
-
ballonId
|
|
53490
|
+
ballonId?: string;
|
|
53491
|
+
reference!: number;
|
|
53232
53492
|
|
|
53233
53493
|
constructor(data?: IUploadMeasurementImageRequest) {
|
|
53234
53494
|
if (data) {
|
|
@@ -53244,6 +53504,7 @@ export class UploadMeasurementImageRequest implements IUploadMeasurementImageReq
|
|
|
53244
53504
|
this.uploadKey = _data["uploadKey"];
|
|
53245
53505
|
this.filename = _data["filename"];
|
|
53246
53506
|
this.ballonId = _data["ballonId"];
|
|
53507
|
+
this.reference = _data["reference"];
|
|
53247
53508
|
}
|
|
53248
53509
|
}
|
|
53249
53510
|
|
|
@@ -53259,6 +53520,7 @@ export class UploadMeasurementImageRequest implements IUploadMeasurementImageReq
|
|
|
53259
53520
|
data["uploadKey"] = this.uploadKey;
|
|
53260
53521
|
data["filename"] = this.filename;
|
|
53261
53522
|
data["ballonId"] = this.ballonId;
|
|
53523
|
+
data["reference"] = this.reference;
|
|
53262
53524
|
return data;
|
|
53263
53525
|
}
|
|
53264
53526
|
}
|
|
@@ -53266,7 +53528,8 @@ export class UploadMeasurementImageRequest implements IUploadMeasurementImageReq
|
|
|
53266
53528
|
export interface IUploadMeasurementImageRequest {
|
|
53267
53529
|
uploadKey: string;
|
|
53268
53530
|
filename: string;
|
|
53269
|
-
ballonId
|
|
53531
|
+
ballonId?: string;
|
|
53532
|
+
reference: number;
|
|
53270
53533
|
}
|
|
53271
53534
|
|
|
53272
53535
|
export class UpdateSchemaSettingsRequest implements IUpdateSchemaSettingsRequest {
|
|
@@ -53477,7 +53740,7 @@ export interface ICreateMeasurementFormSchemaLinkRequest {
|
|
|
53477
53740
|
linkSchemaId: string;
|
|
53478
53741
|
}
|
|
53479
53742
|
|
|
53480
|
-
export class
|
|
53743
|
+
export class InspectCompanySettingsDto implements IInspectCompanySettingsDto {
|
|
53481
53744
|
convertInchToMm!: boolean;
|
|
53482
53745
|
convertMicroInchToMicroMeter!: boolean;
|
|
53483
53746
|
validateMeasuringTools!: boolean;
|
|
@@ -53493,7 +53756,7 @@ export class MeasurementFormSettingsDto implements IMeasurementFormSettingsDto {
|
|
|
53493
53756
|
allowCreateInstances!: boolean;
|
|
53494
53757
|
resourceTypesBlockingAutoWorkflow?: string[] | null;
|
|
53495
53758
|
|
|
53496
|
-
constructor(data?:
|
|
53759
|
+
constructor(data?: IInspectCompanySettingsDto) {
|
|
53497
53760
|
if (data) {
|
|
53498
53761
|
for (var property in data) {
|
|
53499
53762
|
if (data.hasOwnProperty(property))
|
|
@@ -53525,9 +53788,9 @@ export class MeasurementFormSettingsDto implements IMeasurementFormSettingsDto {
|
|
|
53525
53788
|
}
|
|
53526
53789
|
}
|
|
53527
53790
|
|
|
53528
|
-
static fromJS(data: any):
|
|
53791
|
+
static fromJS(data: any): InspectCompanySettingsDto {
|
|
53529
53792
|
data = typeof data === 'object' ? data : {};
|
|
53530
|
-
let result = new
|
|
53793
|
+
let result = new InspectCompanySettingsDto();
|
|
53531
53794
|
result.init(data);
|
|
53532
53795
|
return result;
|
|
53533
53796
|
}
|
|
@@ -53556,7 +53819,7 @@ export class MeasurementFormSettingsDto implements IMeasurementFormSettingsDto {
|
|
|
53556
53819
|
}
|
|
53557
53820
|
}
|
|
53558
53821
|
|
|
53559
|
-
export interface
|
|
53822
|
+
export interface IInspectCompanySettingsDto {
|
|
53560
53823
|
convertInchToMm: boolean;
|
|
53561
53824
|
convertMicroInchToMicroMeter: boolean;
|
|
53562
53825
|
validateMeasuringTools: boolean;
|
|
@@ -53780,8 +54043,10 @@ export class MeasurementFormMappingDto implements IMeasurementFormMappingDto {
|
|
|
53780
54043
|
id!: string;
|
|
53781
54044
|
measurementSchemaSourceId!: string;
|
|
53782
54045
|
measurementSchemaTargetId!: string;
|
|
53783
|
-
sourceBalloons
|
|
53784
|
-
targetBalloons
|
|
54046
|
+
sourceBalloons?: MeasurementFormReferenceMappingDto[];
|
|
54047
|
+
targetBalloons?: MeasurementFormReferenceMappingDto[];
|
|
54048
|
+
sourceReferences!: MeasurementFormReferenceMappingDto[];
|
|
54049
|
+
targetReferences!: MeasurementFormReferenceMappingDto[];
|
|
53785
54050
|
|
|
53786
54051
|
constructor(data?: IMeasurementFormMappingDto) {
|
|
53787
54052
|
if (data) {
|
|
@@ -53791,8 +54056,8 @@ export class MeasurementFormMappingDto implements IMeasurementFormMappingDto {
|
|
|
53791
54056
|
}
|
|
53792
54057
|
}
|
|
53793
54058
|
if (!data) {
|
|
53794
|
-
this.
|
|
53795
|
-
this.
|
|
54059
|
+
this.sourceReferences = [];
|
|
54060
|
+
this.targetReferences = [];
|
|
53796
54061
|
}
|
|
53797
54062
|
}
|
|
53798
54063
|
|
|
@@ -53804,12 +54069,22 @@ export class MeasurementFormMappingDto implements IMeasurementFormMappingDto {
|
|
|
53804
54069
|
if (Array.isArray(_data["sourceBalloons"])) {
|
|
53805
54070
|
this.sourceBalloons = [] as any;
|
|
53806
54071
|
for (let item of _data["sourceBalloons"])
|
|
53807
|
-
this.sourceBalloons!.push(
|
|
54072
|
+
this.sourceBalloons!.push(MeasurementFormReferenceMappingDto.fromJS(item));
|
|
53808
54073
|
}
|
|
53809
54074
|
if (Array.isArray(_data["targetBalloons"])) {
|
|
53810
54075
|
this.targetBalloons = [] as any;
|
|
53811
54076
|
for (let item of _data["targetBalloons"])
|
|
53812
|
-
this.targetBalloons!.push(
|
|
54077
|
+
this.targetBalloons!.push(MeasurementFormReferenceMappingDto.fromJS(item));
|
|
54078
|
+
}
|
|
54079
|
+
if (Array.isArray(_data["sourceReferences"])) {
|
|
54080
|
+
this.sourceReferences = [] as any;
|
|
54081
|
+
for (let item of _data["sourceReferences"])
|
|
54082
|
+
this.sourceReferences!.push(MeasurementFormReferenceMappingDto.fromJS(item));
|
|
54083
|
+
}
|
|
54084
|
+
if (Array.isArray(_data["targetReferences"])) {
|
|
54085
|
+
this.targetReferences = [] as any;
|
|
54086
|
+
for (let item of _data["targetReferences"])
|
|
54087
|
+
this.targetReferences!.push(MeasurementFormReferenceMappingDto.fromJS(item));
|
|
53813
54088
|
}
|
|
53814
54089
|
}
|
|
53815
54090
|
}
|
|
@@ -53836,6 +54111,16 @@ export class MeasurementFormMappingDto implements IMeasurementFormMappingDto {
|
|
|
53836
54111
|
for (let item of this.targetBalloons)
|
|
53837
54112
|
data["targetBalloons"].push(item.toJSON());
|
|
53838
54113
|
}
|
|
54114
|
+
if (Array.isArray(this.sourceReferences)) {
|
|
54115
|
+
data["sourceReferences"] = [];
|
|
54116
|
+
for (let item of this.sourceReferences)
|
|
54117
|
+
data["sourceReferences"].push(item.toJSON());
|
|
54118
|
+
}
|
|
54119
|
+
if (Array.isArray(this.targetReferences)) {
|
|
54120
|
+
data["targetReferences"] = [];
|
|
54121
|
+
for (let item of this.targetReferences)
|
|
54122
|
+
data["targetReferences"].push(item.toJSON());
|
|
54123
|
+
}
|
|
53839
54124
|
return data;
|
|
53840
54125
|
}
|
|
53841
54126
|
}
|
|
@@ -53844,16 +54129,18 @@ export interface IMeasurementFormMappingDto {
|
|
|
53844
54129
|
id: string;
|
|
53845
54130
|
measurementSchemaSourceId: string;
|
|
53846
54131
|
measurementSchemaTargetId: string;
|
|
53847
|
-
sourceBalloons
|
|
53848
|
-
targetBalloons
|
|
54132
|
+
sourceBalloons?: MeasurementFormReferenceMappingDto[];
|
|
54133
|
+
targetBalloons?: MeasurementFormReferenceMappingDto[];
|
|
54134
|
+
sourceReferences: MeasurementFormReferenceMappingDto[];
|
|
54135
|
+
targetReferences: MeasurementFormReferenceMappingDto[];
|
|
53849
54136
|
}
|
|
53850
54137
|
|
|
53851
|
-
export class
|
|
53852
|
-
|
|
53853
|
-
|
|
54138
|
+
export class MeasurementFormReferenceMappingDto implements IMeasurementFormReferenceMappingDto {
|
|
54139
|
+
reference!: MeasurementFormGroupedElementDto;
|
|
54140
|
+
mappedReference?: number;
|
|
53854
54141
|
mappingScorePercent?: number | null;
|
|
53855
54142
|
|
|
53856
|
-
constructor(data?:
|
|
54143
|
+
constructor(data?: IMeasurementFormReferenceMappingDto) {
|
|
53857
54144
|
if (data) {
|
|
53858
54145
|
for (var property in data) {
|
|
53859
54146
|
if (data.hasOwnProperty(property))
|
|
@@ -53861,37 +54148,37 @@ export class MeasurementFormBalloonMappingDto implements IMeasurementFormBalloon
|
|
|
53861
54148
|
}
|
|
53862
54149
|
}
|
|
53863
54150
|
if (!data) {
|
|
53864
|
-
this.
|
|
54151
|
+
this.reference = new MeasurementFormGroupedElementDto();
|
|
53865
54152
|
}
|
|
53866
54153
|
}
|
|
53867
54154
|
|
|
53868
54155
|
init(_data?: any) {
|
|
53869
54156
|
if (_data) {
|
|
53870
|
-
this.
|
|
53871
|
-
this.
|
|
54157
|
+
this.reference = _data["reference"] ? MeasurementFormGroupedElementDto.fromJS(_data["reference"]) : new MeasurementFormGroupedElementDto();
|
|
54158
|
+
this.mappedReference = _data["mappedReference"];
|
|
53872
54159
|
this.mappingScorePercent = _data["mappingScorePercent"];
|
|
53873
54160
|
}
|
|
53874
54161
|
}
|
|
53875
54162
|
|
|
53876
|
-
static fromJS(data: any):
|
|
54163
|
+
static fromJS(data: any): MeasurementFormReferenceMappingDto {
|
|
53877
54164
|
data = typeof data === 'object' ? data : {};
|
|
53878
|
-
let result = new
|
|
54165
|
+
let result = new MeasurementFormReferenceMappingDto();
|
|
53879
54166
|
result.init(data);
|
|
53880
54167
|
return result;
|
|
53881
54168
|
}
|
|
53882
54169
|
|
|
53883
54170
|
toJSON(data?: any) {
|
|
53884
54171
|
data = typeof data === 'object' ? data : {};
|
|
53885
|
-
data["
|
|
53886
|
-
data["
|
|
54172
|
+
data["reference"] = this.reference ? this.reference.toJSON() : <any>undefined;
|
|
54173
|
+
data["mappedReference"] = this.mappedReference;
|
|
53887
54174
|
data["mappingScorePercent"] = this.mappingScorePercent;
|
|
53888
54175
|
return data;
|
|
53889
54176
|
}
|
|
53890
54177
|
}
|
|
53891
54178
|
|
|
53892
|
-
export interface
|
|
53893
|
-
|
|
53894
|
-
|
|
54179
|
+
export interface IMeasurementFormReferenceMappingDto {
|
|
54180
|
+
reference: MeasurementFormGroupedElementDto;
|
|
54181
|
+
mappedReference?: number;
|
|
53895
54182
|
mappingScorePercent?: number | null;
|
|
53896
54183
|
}
|
|
53897
54184
|
|
|
@@ -53935,54 +54222,10 @@ export interface ICreateMeasurementFormMapping {
|
|
|
53935
54222
|
targetId: string;
|
|
53936
54223
|
}
|
|
53937
54224
|
|
|
53938
|
-
export class
|
|
53939
|
-
|
|
53940
|
-
targetBalloonId!: string;
|
|
53941
|
-
mappingScorePercent?: number | null;
|
|
53942
|
-
|
|
53943
|
-
constructor(data?: IMeasurementFormBalloonMappingRequestDto) {
|
|
53944
|
-
if (data) {
|
|
53945
|
-
for (var property in data) {
|
|
53946
|
-
if (data.hasOwnProperty(property))
|
|
53947
|
-
(<any>this)[property] = (<any>data)[property];
|
|
53948
|
-
}
|
|
53949
|
-
}
|
|
53950
|
-
}
|
|
53951
|
-
|
|
53952
|
-
init(_data?: any) {
|
|
53953
|
-
if (_data) {
|
|
53954
|
-
this.sourceBalloonId = _data["sourceBalloonId"];
|
|
53955
|
-
this.targetBalloonId = _data["targetBalloonId"];
|
|
53956
|
-
this.mappingScorePercent = _data["mappingScorePercent"];
|
|
53957
|
-
}
|
|
53958
|
-
}
|
|
53959
|
-
|
|
53960
|
-
static fromJS(data: any): MeasurementFormBalloonMappingRequestDto {
|
|
53961
|
-
data = typeof data === 'object' ? data : {};
|
|
53962
|
-
let result = new MeasurementFormBalloonMappingRequestDto();
|
|
53963
|
-
result.init(data);
|
|
53964
|
-
return result;
|
|
53965
|
-
}
|
|
53966
|
-
|
|
53967
|
-
toJSON(data?: any) {
|
|
53968
|
-
data = typeof data === 'object' ? data : {};
|
|
53969
|
-
data["sourceBalloonId"] = this.sourceBalloonId;
|
|
53970
|
-
data["targetBalloonId"] = this.targetBalloonId;
|
|
53971
|
-
data["mappingScorePercent"] = this.mappingScorePercent;
|
|
53972
|
-
return data;
|
|
53973
|
-
}
|
|
53974
|
-
}
|
|
53975
|
-
|
|
53976
|
-
export interface IMeasurementFormBalloonMappingRequestDto {
|
|
53977
|
-
sourceBalloonId: string;
|
|
53978
|
-
targetBalloonId: string;
|
|
53979
|
-
mappingScorePercent?: number | null;
|
|
53980
|
-
}
|
|
53981
|
-
|
|
53982
|
-
export class SetMeasurementFormMappingBalloonsRequest implements ISetMeasurementFormMappingBalloonsRequest {
|
|
53983
|
-
mappings!: MeasurementFormBalloonMappingRequestDto[];
|
|
54225
|
+
export class SetMeasurementFormReferencesMappingRequest implements ISetMeasurementFormReferencesMappingRequest {
|
|
54226
|
+
mappings!: MeasurementFormReferenceMappingRequestDto[];
|
|
53984
54227
|
|
|
53985
|
-
constructor(data?:
|
|
54228
|
+
constructor(data?: ISetMeasurementFormReferencesMappingRequest) {
|
|
53986
54229
|
if (data) {
|
|
53987
54230
|
for (var property in data) {
|
|
53988
54231
|
if (data.hasOwnProperty(property))
|
|
@@ -53999,14 +54242,14 @@ export class SetMeasurementFormMappingBalloonsRequest implements ISetMeasurement
|
|
|
53999
54242
|
if (Array.isArray(_data["mappings"])) {
|
|
54000
54243
|
this.mappings = [] as any;
|
|
54001
54244
|
for (let item of _data["mappings"])
|
|
54002
|
-
this.mappings!.push(
|
|
54245
|
+
this.mappings!.push(MeasurementFormReferenceMappingRequestDto.fromJS(item));
|
|
54003
54246
|
}
|
|
54004
54247
|
}
|
|
54005
54248
|
}
|
|
54006
54249
|
|
|
54007
|
-
static fromJS(data: any):
|
|
54250
|
+
static fromJS(data: any): SetMeasurementFormReferencesMappingRequest {
|
|
54008
54251
|
data = typeof data === 'object' ? data : {};
|
|
54009
|
-
let result = new
|
|
54252
|
+
let result = new SetMeasurementFormReferencesMappingRequest();
|
|
54010
54253
|
result.init(data);
|
|
54011
54254
|
return result;
|
|
54012
54255
|
}
|
|
@@ -54022,15 +54265,69 @@ export class SetMeasurementFormMappingBalloonsRequest implements ISetMeasurement
|
|
|
54022
54265
|
}
|
|
54023
54266
|
}
|
|
54024
54267
|
|
|
54025
|
-
export interface
|
|
54026
|
-
mappings:
|
|
54268
|
+
export interface ISetMeasurementFormReferencesMappingRequest {
|
|
54269
|
+
mappings: MeasurementFormReferenceMappingRequestDto[];
|
|
54270
|
+
}
|
|
54271
|
+
|
|
54272
|
+
export class MeasurementFormReferenceMappingRequestDto implements IMeasurementFormReferenceMappingRequestDto {
|
|
54273
|
+
sourceBalloonId?: string | null;
|
|
54274
|
+
targetBalloonId?: string | null;
|
|
54275
|
+
sourceReference!: number;
|
|
54276
|
+
targetReference!: number;
|
|
54277
|
+
mappingScorePercent?: number | null;
|
|
54278
|
+
|
|
54279
|
+
constructor(data?: IMeasurementFormReferenceMappingRequestDto) {
|
|
54280
|
+
if (data) {
|
|
54281
|
+
for (var property in data) {
|
|
54282
|
+
if (data.hasOwnProperty(property))
|
|
54283
|
+
(<any>this)[property] = (<any>data)[property];
|
|
54284
|
+
}
|
|
54285
|
+
}
|
|
54286
|
+
}
|
|
54287
|
+
|
|
54288
|
+
init(_data?: any) {
|
|
54289
|
+
if (_data) {
|
|
54290
|
+
this.sourceBalloonId = _data["sourceBalloonId"];
|
|
54291
|
+
this.targetBalloonId = _data["targetBalloonId"];
|
|
54292
|
+
this.sourceReference = _data["sourceReference"];
|
|
54293
|
+
this.targetReference = _data["targetReference"];
|
|
54294
|
+
this.mappingScorePercent = _data["mappingScorePercent"];
|
|
54295
|
+
}
|
|
54296
|
+
}
|
|
54297
|
+
|
|
54298
|
+
static fromJS(data: any): MeasurementFormReferenceMappingRequestDto {
|
|
54299
|
+
data = typeof data === 'object' ? data : {};
|
|
54300
|
+
let result = new MeasurementFormReferenceMappingRequestDto();
|
|
54301
|
+
result.init(data);
|
|
54302
|
+
return result;
|
|
54303
|
+
}
|
|
54304
|
+
|
|
54305
|
+
toJSON(data?: any) {
|
|
54306
|
+
data = typeof data === 'object' ? data : {};
|
|
54307
|
+
data["sourceBalloonId"] = this.sourceBalloonId;
|
|
54308
|
+
data["targetBalloonId"] = this.targetBalloonId;
|
|
54309
|
+
data["sourceReference"] = this.sourceReference;
|
|
54310
|
+
data["targetReference"] = this.targetReference;
|
|
54311
|
+
data["mappingScorePercent"] = this.mappingScorePercent;
|
|
54312
|
+
return data;
|
|
54313
|
+
}
|
|
54314
|
+
}
|
|
54315
|
+
|
|
54316
|
+
export interface IMeasurementFormReferenceMappingRequestDto {
|
|
54317
|
+
sourceBalloonId?: string | null;
|
|
54318
|
+
targetBalloonId?: string | null;
|
|
54319
|
+
sourceReference: number;
|
|
54320
|
+
targetReference: number;
|
|
54321
|
+
mappingScorePercent?: number | null;
|
|
54027
54322
|
}
|
|
54028
54323
|
|
|
54029
54324
|
export class MeasurementFormMappingSuggestionDto implements IMeasurementFormMappingSuggestionDto {
|
|
54030
54325
|
measurementSchemaSourceId!: string;
|
|
54031
54326
|
measurementSchemaTargetId!: string;
|
|
54032
|
-
sourceBalloons
|
|
54033
|
-
targetBalloons
|
|
54327
|
+
sourceBalloons?: MeasurementFormReferenceMappingDto[];
|
|
54328
|
+
targetBalloons?: MeasurementFormReferenceMappingDto[];
|
|
54329
|
+
sourceReferences!: MeasurementFormReferenceMappingDto[];
|
|
54330
|
+
targetReferences!: MeasurementFormReferenceMappingDto[];
|
|
54034
54331
|
|
|
54035
54332
|
constructor(data?: IMeasurementFormMappingSuggestionDto) {
|
|
54036
54333
|
if (data) {
|
|
@@ -54040,8 +54337,8 @@ export class MeasurementFormMappingSuggestionDto implements IMeasurementFormMapp
|
|
|
54040
54337
|
}
|
|
54041
54338
|
}
|
|
54042
54339
|
if (!data) {
|
|
54043
|
-
this.
|
|
54044
|
-
this.
|
|
54340
|
+
this.sourceReferences = [];
|
|
54341
|
+
this.targetReferences = [];
|
|
54045
54342
|
}
|
|
54046
54343
|
}
|
|
54047
54344
|
|
|
@@ -54052,12 +54349,22 @@ export class MeasurementFormMappingSuggestionDto implements IMeasurementFormMapp
|
|
|
54052
54349
|
if (Array.isArray(_data["sourceBalloons"])) {
|
|
54053
54350
|
this.sourceBalloons = [] as any;
|
|
54054
54351
|
for (let item of _data["sourceBalloons"])
|
|
54055
|
-
this.sourceBalloons!.push(
|
|
54352
|
+
this.sourceBalloons!.push(MeasurementFormReferenceMappingDto.fromJS(item));
|
|
54056
54353
|
}
|
|
54057
54354
|
if (Array.isArray(_data["targetBalloons"])) {
|
|
54058
54355
|
this.targetBalloons = [] as any;
|
|
54059
54356
|
for (let item of _data["targetBalloons"])
|
|
54060
|
-
this.targetBalloons!.push(
|
|
54357
|
+
this.targetBalloons!.push(MeasurementFormReferenceMappingDto.fromJS(item));
|
|
54358
|
+
}
|
|
54359
|
+
if (Array.isArray(_data["sourceReferences"])) {
|
|
54360
|
+
this.sourceReferences = [] as any;
|
|
54361
|
+
for (let item of _data["sourceReferences"])
|
|
54362
|
+
this.sourceReferences!.push(MeasurementFormReferenceMappingDto.fromJS(item));
|
|
54363
|
+
}
|
|
54364
|
+
if (Array.isArray(_data["targetReferences"])) {
|
|
54365
|
+
this.targetReferences = [] as any;
|
|
54366
|
+
for (let item of _data["targetReferences"])
|
|
54367
|
+
this.targetReferences!.push(MeasurementFormReferenceMappingDto.fromJS(item));
|
|
54061
54368
|
}
|
|
54062
54369
|
}
|
|
54063
54370
|
}
|
|
@@ -54083,6 +54390,16 @@ export class MeasurementFormMappingSuggestionDto implements IMeasurementFormMapp
|
|
|
54083
54390
|
for (let item of this.targetBalloons)
|
|
54084
54391
|
data["targetBalloons"].push(item.toJSON());
|
|
54085
54392
|
}
|
|
54393
|
+
if (Array.isArray(this.sourceReferences)) {
|
|
54394
|
+
data["sourceReferences"] = [];
|
|
54395
|
+
for (let item of this.sourceReferences)
|
|
54396
|
+
data["sourceReferences"].push(item.toJSON());
|
|
54397
|
+
}
|
|
54398
|
+
if (Array.isArray(this.targetReferences)) {
|
|
54399
|
+
data["targetReferences"] = [];
|
|
54400
|
+
for (let item of this.targetReferences)
|
|
54401
|
+
data["targetReferences"].push(item.toJSON());
|
|
54402
|
+
}
|
|
54086
54403
|
return data;
|
|
54087
54404
|
}
|
|
54088
54405
|
}
|
|
@@ -54090,8 +54407,10 @@ export class MeasurementFormMappingSuggestionDto implements IMeasurementFormMapp
|
|
|
54090
54407
|
export interface IMeasurementFormMappingSuggestionDto {
|
|
54091
54408
|
measurementSchemaSourceId: string;
|
|
54092
54409
|
measurementSchemaTargetId: string;
|
|
54093
|
-
sourceBalloons
|
|
54094
|
-
targetBalloons
|
|
54410
|
+
sourceBalloons?: MeasurementFormReferenceMappingDto[];
|
|
54411
|
+
targetBalloons?: MeasurementFormReferenceMappingDto[];
|
|
54412
|
+
sourceReferences: MeasurementFormReferenceMappingDto[];
|
|
54413
|
+
targetReferences: MeasurementFormReferenceMappingDto[];
|
|
54095
54414
|
}
|
|
54096
54415
|
|
|
54097
54416
|
export class PagedResultOfMeasurementFormNeedDto implements IPagedResultOfMeasurementFormNeedDto {
|
|
@@ -54754,6 +55073,7 @@ export class SchemaFeedbackDto implements ISchemaFeedbackDto {
|
|
|
54754
55073
|
versionId?: number;
|
|
54755
55074
|
schemaInstanceId!: string;
|
|
54756
55075
|
balloonId?: string | null;
|
|
55076
|
+
reference?: number;
|
|
54757
55077
|
feedback!: string;
|
|
54758
55078
|
from!: string;
|
|
54759
55079
|
created!: Date;
|
|
@@ -54783,6 +55103,7 @@ export class SchemaFeedbackDto implements ISchemaFeedbackDto {
|
|
|
54783
55103
|
this.versionId = _data["versionId"];
|
|
54784
55104
|
this.schemaInstanceId = _data["schemaInstanceId"];
|
|
54785
55105
|
this.balloonId = _data["balloonId"];
|
|
55106
|
+
this.reference = _data["reference"];
|
|
54786
55107
|
this.feedback = _data["feedback"];
|
|
54787
55108
|
this.from = _data["from"];
|
|
54788
55109
|
this.created = _data["created"] ? new Date(_data["created"].toString()) : <any>undefined;
|
|
@@ -54812,6 +55133,7 @@ export class SchemaFeedbackDto implements ISchemaFeedbackDto {
|
|
|
54812
55133
|
data["versionId"] = this.versionId;
|
|
54813
55134
|
data["schemaInstanceId"] = this.schemaInstanceId;
|
|
54814
55135
|
data["balloonId"] = this.balloonId;
|
|
55136
|
+
data["reference"] = this.reference;
|
|
54815
55137
|
data["feedback"] = this.feedback;
|
|
54816
55138
|
data["from"] = this.from;
|
|
54817
55139
|
data["created"] = this.created ? this.created.toISOString() : <any>undefined;
|
|
@@ -54834,6 +55156,7 @@ export interface ISchemaFeedbackDto {
|
|
|
54834
55156
|
versionId?: number;
|
|
54835
55157
|
schemaInstanceId: string;
|
|
54836
55158
|
balloonId?: string | null;
|
|
55159
|
+
reference?: number;
|
|
54837
55160
|
feedback: string;
|
|
54838
55161
|
from: string;
|
|
54839
55162
|
created: Date;
|
|
@@ -55833,6 +56156,7 @@ export class MeasurementFormInstanceFeedbackDto implements IMeasurementFormInsta
|
|
|
55833
56156
|
versionId?: number;
|
|
55834
56157
|
schemaInstanceId!: string;
|
|
55835
56158
|
balloonId?: string | null;
|
|
56159
|
+
reference?: number;
|
|
55836
56160
|
feedback!: string;
|
|
55837
56161
|
from!: string;
|
|
55838
56162
|
created!: Date;
|
|
@@ -55854,6 +56178,7 @@ export class MeasurementFormInstanceFeedbackDto implements IMeasurementFormInsta
|
|
|
55854
56178
|
this.versionId = _data["versionId"];
|
|
55855
56179
|
this.schemaInstanceId = _data["schemaInstanceId"];
|
|
55856
56180
|
this.balloonId = _data["balloonId"];
|
|
56181
|
+
this.reference = _data["reference"];
|
|
55857
56182
|
this.feedback = _data["feedback"];
|
|
55858
56183
|
this.from = _data["from"];
|
|
55859
56184
|
this.created = _data["created"] ? new Date(_data["created"].toString()) : <any>undefined;
|
|
@@ -55875,6 +56200,7 @@ export class MeasurementFormInstanceFeedbackDto implements IMeasurementFormInsta
|
|
|
55875
56200
|
data["versionId"] = this.versionId;
|
|
55876
56201
|
data["schemaInstanceId"] = this.schemaInstanceId;
|
|
55877
56202
|
data["balloonId"] = this.balloonId;
|
|
56203
|
+
data["reference"] = this.reference;
|
|
55878
56204
|
data["feedback"] = this.feedback;
|
|
55879
56205
|
data["from"] = this.from;
|
|
55880
56206
|
data["created"] = this.created ? this.created.toISOString() : <any>undefined;
|
|
@@ -55889,6 +56215,7 @@ export interface IMeasurementFormInstanceFeedbackDto {
|
|
|
55889
56215
|
versionId?: number;
|
|
55890
56216
|
schemaInstanceId: string;
|
|
55891
56217
|
balloonId?: string | null;
|
|
56218
|
+
reference?: number;
|
|
55892
56219
|
feedback: string;
|
|
55893
56220
|
from: string;
|
|
55894
56221
|
created: Date;
|
|
@@ -56182,6 +56509,7 @@ export class MeasurementFormInstanceElementDto implements IMeasurementFormInstan
|
|
|
56182
56509
|
imageUrl?: string | null;
|
|
56183
56510
|
thumbnailUrl?: string | null;
|
|
56184
56511
|
balloonId?: string | null;
|
|
56512
|
+
reference?: number;
|
|
56185
56513
|
section?: string | null;
|
|
56186
56514
|
pageNumber?: number | null;
|
|
56187
56515
|
sheetZone?: string | null;
|
|
@@ -56205,7 +56533,9 @@ export class MeasurementFormInstanceElementDto implements IMeasurementFormInstan
|
|
|
56205
56533
|
isDocumentedExternally!: boolean;
|
|
56206
56534
|
canOverrideIsDocumentedExternally!: boolean;
|
|
56207
56535
|
balloonSequence?: number | null;
|
|
56536
|
+
referenceSerialNumber?: number | null;
|
|
56208
56537
|
balloonQuantity?: number | null;
|
|
56538
|
+
referenceQuantity?: number | null;
|
|
56209
56539
|
plusTolerance?: string | null;
|
|
56210
56540
|
minusTolerance?: string | null;
|
|
56211
56541
|
coatingThickness?: number | null;
|
|
@@ -56238,6 +56568,7 @@ export class MeasurementFormInstanceElementDto implements IMeasurementFormInstan
|
|
|
56238
56568
|
this.imageUrl = _data["imageUrl"];
|
|
56239
56569
|
this.thumbnailUrl = _data["thumbnailUrl"];
|
|
56240
56570
|
this.balloonId = _data["balloonId"];
|
|
56571
|
+
this.reference = _data["reference"];
|
|
56241
56572
|
this.section = _data["section"];
|
|
56242
56573
|
this.pageNumber = _data["pageNumber"];
|
|
56243
56574
|
this.sheetZone = _data["sheetZone"];
|
|
@@ -56261,7 +56592,9 @@ export class MeasurementFormInstanceElementDto implements IMeasurementFormInstan
|
|
|
56261
56592
|
this.isDocumentedExternally = _data["isDocumentedExternally"];
|
|
56262
56593
|
this.canOverrideIsDocumentedExternally = _data["canOverrideIsDocumentedExternally"];
|
|
56263
56594
|
this.balloonSequence = _data["balloonSequence"];
|
|
56595
|
+
this.referenceSerialNumber = _data["referenceSerialNumber"];
|
|
56264
56596
|
this.balloonQuantity = _data["balloonQuantity"];
|
|
56597
|
+
this.referenceQuantity = _data["referenceQuantity"];
|
|
56265
56598
|
this.plusTolerance = _data["plusTolerance"];
|
|
56266
56599
|
this.minusTolerance = _data["minusTolerance"];
|
|
56267
56600
|
this.coatingThickness = _data["coatingThickness"];
|
|
@@ -56295,6 +56628,7 @@ export class MeasurementFormInstanceElementDto implements IMeasurementFormInstan
|
|
|
56295
56628
|
data["imageUrl"] = this.imageUrl;
|
|
56296
56629
|
data["thumbnailUrl"] = this.thumbnailUrl;
|
|
56297
56630
|
data["balloonId"] = this.balloonId;
|
|
56631
|
+
data["reference"] = this.reference;
|
|
56298
56632
|
data["section"] = this.section;
|
|
56299
56633
|
data["pageNumber"] = this.pageNumber;
|
|
56300
56634
|
data["sheetZone"] = this.sheetZone;
|
|
@@ -56318,7 +56652,9 @@ export class MeasurementFormInstanceElementDto implements IMeasurementFormInstan
|
|
|
56318
56652
|
data["isDocumentedExternally"] = this.isDocumentedExternally;
|
|
56319
56653
|
data["canOverrideIsDocumentedExternally"] = this.canOverrideIsDocumentedExternally;
|
|
56320
56654
|
data["balloonSequence"] = this.balloonSequence;
|
|
56655
|
+
data["referenceSerialNumber"] = this.referenceSerialNumber;
|
|
56321
56656
|
data["balloonQuantity"] = this.balloonQuantity;
|
|
56657
|
+
data["referenceQuantity"] = this.referenceQuantity;
|
|
56322
56658
|
data["plusTolerance"] = this.plusTolerance;
|
|
56323
56659
|
data["minusTolerance"] = this.minusTolerance;
|
|
56324
56660
|
data["coatingThickness"] = this.coatingThickness;
|
|
@@ -56345,6 +56681,7 @@ export interface IMeasurementFormInstanceElementDto {
|
|
|
56345
56681
|
imageUrl?: string | null;
|
|
56346
56682
|
thumbnailUrl?: string | null;
|
|
56347
56683
|
balloonId?: string | null;
|
|
56684
|
+
reference?: number;
|
|
56348
56685
|
section?: string | null;
|
|
56349
56686
|
pageNumber?: number | null;
|
|
56350
56687
|
sheetZone?: string | null;
|
|
@@ -56368,7 +56705,9 @@ export interface IMeasurementFormInstanceElementDto {
|
|
|
56368
56705
|
isDocumentedExternally: boolean;
|
|
56369
56706
|
canOverrideIsDocumentedExternally: boolean;
|
|
56370
56707
|
balloonSequence?: number | null;
|
|
56708
|
+
referenceSerialNumber?: number | null;
|
|
56371
56709
|
balloonQuantity?: number | null;
|
|
56710
|
+
referenceQuantity?: number | null;
|
|
56372
56711
|
plusTolerance?: string | null;
|
|
56373
56712
|
minusTolerance?: string | null;
|
|
56374
56713
|
coatingThickness?: number | null;
|
|
@@ -57087,6 +57426,7 @@ export class SchemaFeedbackCreatedDto implements ISchemaFeedbackCreatedDto {
|
|
|
57087
57426
|
versionId!: number;
|
|
57088
57427
|
schemaInstanceId!: string;
|
|
57089
57428
|
balloonId?: string | null;
|
|
57429
|
+
reference?: number;
|
|
57090
57430
|
feedback!: string;
|
|
57091
57431
|
from!: string;
|
|
57092
57432
|
created!: Date;
|
|
@@ -57108,6 +57448,7 @@ export class SchemaFeedbackCreatedDto implements ISchemaFeedbackCreatedDto {
|
|
|
57108
57448
|
this.versionId = _data["versionId"];
|
|
57109
57449
|
this.schemaInstanceId = _data["schemaInstanceId"];
|
|
57110
57450
|
this.balloonId = _data["balloonId"];
|
|
57451
|
+
this.reference = _data["reference"];
|
|
57111
57452
|
this.feedback = _data["feedback"];
|
|
57112
57453
|
this.from = _data["from"];
|
|
57113
57454
|
this.created = _data["created"] ? new Date(_data["created"].toString()) : <any>undefined;
|
|
@@ -57129,6 +57470,7 @@ export class SchemaFeedbackCreatedDto implements ISchemaFeedbackCreatedDto {
|
|
|
57129
57470
|
data["versionId"] = this.versionId;
|
|
57130
57471
|
data["schemaInstanceId"] = this.schemaInstanceId;
|
|
57131
57472
|
data["balloonId"] = this.balloonId;
|
|
57473
|
+
data["reference"] = this.reference;
|
|
57132
57474
|
data["feedback"] = this.feedback;
|
|
57133
57475
|
data["from"] = this.from;
|
|
57134
57476
|
data["created"] = this.created ? this.created.toISOString() : <any>undefined;
|
|
@@ -57143,6 +57485,7 @@ export interface ISchemaFeedbackCreatedDto {
|
|
|
57143
57485
|
versionId: number;
|
|
57144
57486
|
schemaInstanceId: string;
|
|
57145
57487
|
balloonId?: string | null;
|
|
57488
|
+
reference?: number;
|
|
57146
57489
|
feedback: string;
|
|
57147
57490
|
from: string;
|
|
57148
57491
|
created: Date;
|
|
@@ -57150,6 +57493,7 @@ export interface ISchemaFeedbackCreatedDto {
|
|
|
57150
57493
|
|
|
57151
57494
|
export class CreateMeasurementFormSchemaFeedbackRequest implements ICreateMeasurementFormSchemaFeedbackRequest {
|
|
57152
57495
|
balloonId?: string | null;
|
|
57496
|
+
reference?: number;
|
|
57153
57497
|
feedback!: string;
|
|
57154
57498
|
|
|
57155
57499
|
constructor(data?: ICreateMeasurementFormSchemaFeedbackRequest) {
|
|
@@ -57164,6 +57508,7 @@ export class CreateMeasurementFormSchemaFeedbackRequest implements ICreateMeasur
|
|
|
57164
57508
|
init(_data?: any) {
|
|
57165
57509
|
if (_data) {
|
|
57166
57510
|
this.balloonId = _data["balloonId"];
|
|
57511
|
+
this.reference = _data["reference"];
|
|
57167
57512
|
this.feedback = _data["feedback"];
|
|
57168
57513
|
}
|
|
57169
57514
|
}
|
|
@@ -57178,6 +57523,7 @@ export class CreateMeasurementFormSchemaFeedbackRequest implements ICreateMeasur
|
|
|
57178
57523
|
toJSON(data?: any) {
|
|
57179
57524
|
data = typeof data === 'object' ? data : {};
|
|
57180
57525
|
data["balloonId"] = this.balloonId;
|
|
57526
|
+
data["reference"] = this.reference;
|
|
57181
57527
|
data["feedback"] = this.feedback;
|
|
57182
57528
|
return data;
|
|
57183
57529
|
}
|
|
@@ -57185,6 +57531,7 @@ export class CreateMeasurementFormSchemaFeedbackRequest implements ICreateMeasur
|
|
|
57185
57531
|
|
|
57186
57532
|
export interface ICreateMeasurementFormSchemaFeedbackRequest {
|
|
57187
57533
|
balloonId?: string | null;
|
|
57534
|
+
reference?: number;
|
|
57188
57535
|
feedback: string;
|
|
57189
57536
|
}
|
|
57190
57537
|
|
|
@@ -57445,7 +57792,8 @@ export interface IUpdateSchemaInstanceElementsRequest {
|
|
|
57445
57792
|
|
|
57446
57793
|
export class SchemaInstanceElementDto implements ISchemaInstanceElementDto {
|
|
57447
57794
|
elementId!: string;
|
|
57448
|
-
balloonId
|
|
57795
|
+
balloonId?: string | null;
|
|
57796
|
+
reference!: number;
|
|
57449
57797
|
disabled!: boolean;
|
|
57450
57798
|
|
|
57451
57799
|
constructor(data?: ISchemaInstanceElementDto) {
|
|
@@ -57461,6 +57809,7 @@ export class SchemaInstanceElementDto implements ISchemaInstanceElementDto {
|
|
|
57461
57809
|
if (_data) {
|
|
57462
57810
|
this.elementId = _data["elementId"];
|
|
57463
57811
|
this.balloonId = _data["balloonId"];
|
|
57812
|
+
this.reference = _data["reference"];
|
|
57464
57813
|
this.disabled = _data["disabled"];
|
|
57465
57814
|
}
|
|
57466
57815
|
}
|
|
@@ -57476,6 +57825,7 @@ export class SchemaInstanceElementDto implements ISchemaInstanceElementDto {
|
|
|
57476
57825
|
data = typeof data === 'object' ? data : {};
|
|
57477
57826
|
data["elementId"] = this.elementId;
|
|
57478
57827
|
data["balloonId"] = this.balloonId;
|
|
57828
|
+
data["reference"] = this.reference;
|
|
57479
57829
|
data["disabled"] = this.disabled;
|
|
57480
57830
|
return data;
|
|
57481
57831
|
}
|
|
@@ -57483,230 +57833,11 @@ export class SchemaInstanceElementDto implements ISchemaInstanceElementDto {
|
|
|
57483
57833
|
|
|
57484
57834
|
export interface ISchemaInstanceElementDto {
|
|
57485
57835
|
elementId: string;
|
|
57486
|
-
balloonId
|
|
57836
|
+
balloonId?: string | null;
|
|
57837
|
+
reference: number;
|
|
57487
57838
|
disabled: boolean;
|
|
57488
57839
|
}
|
|
57489
57840
|
|
|
57490
|
-
export class IotTypeSourceDto implements IIotTypeSourceDto {
|
|
57491
|
-
id!: string;
|
|
57492
|
-
name!: string;
|
|
57493
|
-
|
|
57494
|
-
constructor(data?: IIotTypeSourceDto) {
|
|
57495
|
-
if (data) {
|
|
57496
|
-
for (var property in data) {
|
|
57497
|
-
if (data.hasOwnProperty(property))
|
|
57498
|
-
(<any>this)[property] = (<any>data)[property];
|
|
57499
|
-
}
|
|
57500
|
-
}
|
|
57501
|
-
}
|
|
57502
|
-
|
|
57503
|
-
init(_data?: any) {
|
|
57504
|
-
if (_data) {
|
|
57505
|
-
this.id = _data["id"];
|
|
57506
|
-
this.name = _data["name"];
|
|
57507
|
-
}
|
|
57508
|
-
}
|
|
57509
|
-
|
|
57510
|
-
static fromJS(data: any): IotTypeSourceDto {
|
|
57511
|
-
data = typeof data === 'object' ? data : {};
|
|
57512
|
-
let result = new IotTypeSourceDto();
|
|
57513
|
-
result.init(data);
|
|
57514
|
-
return result;
|
|
57515
|
-
}
|
|
57516
|
-
|
|
57517
|
-
toJSON(data?: any) {
|
|
57518
|
-
data = typeof data === 'object' ? data : {};
|
|
57519
|
-
data["id"] = this.id;
|
|
57520
|
-
data["name"] = this.name;
|
|
57521
|
-
return data;
|
|
57522
|
-
}
|
|
57523
|
-
}
|
|
57524
|
-
|
|
57525
|
-
export interface IIotTypeSourceDto {
|
|
57526
|
-
id: string;
|
|
57527
|
-
name: string;
|
|
57528
|
-
}
|
|
57529
|
-
|
|
57530
|
-
export class ElectricalIotConfigDto implements IElectricalIotConfigDto {
|
|
57531
|
-
id!: string;
|
|
57532
|
-
typeId!: string;
|
|
57533
|
-
serialNumber?: string | null;
|
|
57534
|
-
assetId!: number;
|
|
57535
|
-
assetExternalId?: string | null;
|
|
57536
|
-
phases?: number;
|
|
57537
|
-
electricalAssetId?: number;
|
|
57538
|
-
electricalAssetExternalId?: string | null;
|
|
57539
|
-
electricalTimeseriesId?: number;
|
|
57540
|
-
electricalTimeseriesExternalId?: string | null;
|
|
57541
|
-
|
|
57542
|
-
constructor(data?: IElectricalIotConfigDto) {
|
|
57543
|
-
if (data) {
|
|
57544
|
-
for (var property in data) {
|
|
57545
|
-
if (data.hasOwnProperty(property))
|
|
57546
|
-
(<any>this)[property] = (<any>data)[property];
|
|
57547
|
-
}
|
|
57548
|
-
}
|
|
57549
|
-
}
|
|
57550
|
-
|
|
57551
|
-
init(_data?: any) {
|
|
57552
|
-
if (_data) {
|
|
57553
|
-
this.id = _data["id"];
|
|
57554
|
-
this.typeId = _data["typeId"];
|
|
57555
|
-
this.serialNumber = _data["serialNumber"];
|
|
57556
|
-
this.assetId = _data["assetId"];
|
|
57557
|
-
this.assetExternalId = _data["assetExternalId"];
|
|
57558
|
-
this.phases = _data["phases"];
|
|
57559
|
-
this.electricalAssetId = _data["electricalAssetId"];
|
|
57560
|
-
this.electricalAssetExternalId = _data["electricalAssetExternalId"];
|
|
57561
|
-
this.electricalTimeseriesId = _data["electricalTimeseriesId"];
|
|
57562
|
-
this.electricalTimeseriesExternalId = _data["electricalTimeseriesExternalId"];
|
|
57563
|
-
}
|
|
57564
|
-
}
|
|
57565
|
-
|
|
57566
|
-
static fromJS(data: any): ElectricalIotConfigDto {
|
|
57567
|
-
data = typeof data === 'object' ? data : {};
|
|
57568
|
-
let result = new ElectricalIotConfigDto();
|
|
57569
|
-
result.init(data);
|
|
57570
|
-
return result;
|
|
57571
|
-
}
|
|
57572
|
-
|
|
57573
|
-
toJSON(data?: any) {
|
|
57574
|
-
data = typeof data === 'object' ? data : {};
|
|
57575
|
-
data["id"] = this.id;
|
|
57576
|
-
data["typeId"] = this.typeId;
|
|
57577
|
-
data["serialNumber"] = this.serialNumber;
|
|
57578
|
-
data["assetId"] = this.assetId;
|
|
57579
|
-
data["assetExternalId"] = this.assetExternalId;
|
|
57580
|
-
data["phases"] = this.phases;
|
|
57581
|
-
data["electricalAssetId"] = this.electricalAssetId;
|
|
57582
|
-
data["electricalAssetExternalId"] = this.electricalAssetExternalId;
|
|
57583
|
-
data["electricalTimeseriesId"] = this.electricalTimeseriesId;
|
|
57584
|
-
data["electricalTimeseriesExternalId"] = this.electricalTimeseriesExternalId;
|
|
57585
|
-
return data;
|
|
57586
|
-
}
|
|
57587
|
-
}
|
|
57588
|
-
|
|
57589
|
-
export interface IElectricalIotConfigDto {
|
|
57590
|
-
id: string;
|
|
57591
|
-
typeId: string;
|
|
57592
|
-
serialNumber?: string | null;
|
|
57593
|
-
assetId: number;
|
|
57594
|
-
assetExternalId?: string | null;
|
|
57595
|
-
phases?: number;
|
|
57596
|
-
electricalAssetId?: number;
|
|
57597
|
-
electricalAssetExternalId?: string | null;
|
|
57598
|
-
electricalTimeseriesId?: number;
|
|
57599
|
-
electricalTimeseriesExternalId?: string | null;
|
|
57600
|
-
}
|
|
57601
|
-
|
|
57602
|
-
export class CreateElectricalIotConfig implements ICreateElectricalIotConfig {
|
|
57603
|
-
typeId?: string | null;
|
|
57604
|
-
serialNumber?: string | null;
|
|
57605
|
-
assetId?: number | null;
|
|
57606
|
-
assetExternalId?: string | null;
|
|
57607
|
-
|
|
57608
|
-
constructor(data?: ICreateElectricalIotConfig) {
|
|
57609
|
-
if (data) {
|
|
57610
|
-
for (var property in data) {
|
|
57611
|
-
if (data.hasOwnProperty(property))
|
|
57612
|
-
(<any>this)[property] = (<any>data)[property];
|
|
57613
|
-
}
|
|
57614
|
-
}
|
|
57615
|
-
}
|
|
57616
|
-
|
|
57617
|
-
init(_data?: any) {
|
|
57618
|
-
if (_data) {
|
|
57619
|
-
this.typeId = _data["typeId"];
|
|
57620
|
-
this.serialNumber = _data["serialNumber"];
|
|
57621
|
-
this.assetId = _data["assetId"];
|
|
57622
|
-
this.assetExternalId = _data["assetExternalId"];
|
|
57623
|
-
}
|
|
57624
|
-
}
|
|
57625
|
-
|
|
57626
|
-
static fromJS(data: any): CreateElectricalIotConfig {
|
|
57627
|
-
data = typeof data === 'object' ? data : {};
|
|
57628
|
-
let result = new CreateElectricalIotConfig();
|
|
57629
|
-
result.init(data);
|
|
57630
|
-
return result;
|
|
57631
|
-
}
|
|
57632
|
-
|
|
57633
|
-
toJSON(data?: any) {
|
|
57634
|
-
data = typeof data === 'object' ? data : {};
|
|
57635
|
-
data["typeId"] = this.typeId;
|
|
57636
|
-
data["serialNumber"] = this.serialNumber;
|
|
57637
|
-
data["assetId"] = this.assetId;
|
|
57638
|
-
data["assetExternalId"] = this.assetExternalId;
|
|
57639
|
-
return data;
|
|
57640
|
-
}
|
|
57641
|
-
}
|
|
57642
|
-
|
|
57643
|
-
export interface ICreateElectricalIotConfig {
|
|
57644
|
-
typeId?: string | null;
|
|
57645
|
-
serialNumber?: string | null;
|
|
57646
|
-
assetId?: number | null;
|
|
57647
|
-
assetExternalId?: string | null;
|
|
57648
|
-
}
|
|
57649
|
-
|
|
57650
|
-
export class WeldingIotConfigDto implements IWeldingIotConfigDto {
|
|
57651
|
-
|
|
57652
|
-
constructor(data?: IWeldingIotConfigDto) {
|
|
57653
|
-
if (data) {
|
|
57654
|
-
for (var property in data) {
|
|
57655
|
-
if (data.hasOwnProperty(property))
|
|
57656
|
-
(<any>this)[property] = (<any>data)[property];
|
|
57657
|
-
}
|
|
57658
|
-
}
|
|
57659
|
-
}
|
|
57660
|
-
|
|
57661
|
-
init(_data?: any) {
|
|
57662
|
-
}
|
|
57663
|
-
|
|
57664
|
-
static fromJS(data: any): WeldingIotConfigDto {
|
|
57665
|
-
data = typeof data === 'object' ? data : {};
|
|
57666
|
-
let result = new WeldingIotConfigDto();
|
|
57667
|
-
result.init(data);
|
|
57668
|
-
return result;
|
|
57669
|
-
}
|
|
57670
|
-
|
|
57671
|
-
toJSON(data?: any) {
|
|
57672
|
-
data = typeof data === 'object' ? data : {};
|
|
57673
|
-
return data;
|
|
57674
|
-
}
|
|
57675
|
-
}
|
|
57676
|
-
|
|
57677
|
-
export interface IWeldingIotConfigDto {
|
|
57678
|
-
}
|
|
57679
|
-
|
|
57680
|
-
export class CreateWeldingIotConfig implements ICreateWeldingIotConfig {
|
|
57681
|
-
|
|
57682
|
-
constructor(data?: ICreateWeldingIotConfig) {
|
|
57683
|
-
if (data) {
|
|
57684
|
-
for (var property in data) {
|
|
57685
|
-
if (data.hasOwnProperty(property))
|
|
57686
|
-
(<any>this)[property] = (<any>data)[property];
|
|
57687
|
-
}
|
|
57688
|
-
}
|
|
57689
|
-
}
|
|
57690
|
-
|
|
57691
|
-
init(_data?: any) {
|
|
57692
|
-
}
|
|
57693
|
-
|
|
57694
|
-
static fromJS(data: any): CreateWeldingIotConfig {
|
|
57695
|
-
data = typeof data === 'object' ? data : {};
|
|
57696
|
-
let result = new CreateWeldingIotConfig();
|
|
57697
|
-
result.init(data);
|
|
57698
|
-
return result;
|
|
57699
|
-
}
|
|
57700
|
-
|
|
57701
|
-
toJSON(data?: any) {
|
|
57702
|
-
data = typeof data === 'object' ? data : {};
|
|
57703
|
-
return data;
|
|
57704
|
-
}
|
|
57705
|
-
}
|
|
57706
|
-
|
|
57707
|
-
export interface ICreateWeldingIotConfig {
|
|
57708
|
-
}
|
|
57709
|
-
|
|
57710
57841
|
export class ProductionCompanyDto implements IProductionCompanyDto {
|
|
57711
57842
|
id!: string;
|
|
57712
57843
|
name!: string;
|