@ignos/api-client 20250825.0.12417 → 20250828.0.12452
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/ignosportal-api.d.ts +316 -219
- package/lib/ignosportal-api.js +1207 -967
- package/package.json +1 -1
- package/src/ignosportal-api.ts +1154 -826
package/src/ignosportal-api.ts
CHANGED
|
@@ -707,6 +707,8 @@ export interface IMachineUtilizationClient {
|
|
|
707
707
|
*/
|
|
708
708
|
getUtilizationDetailsForMachine(id: number, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStatesSummaryDto>;
|
|
709
709
|
|
|
710
|
+
getResourceTimelines(id: number, startTime: Date | null | undefined, endTime: Date | null | undefined, filter: TimelineFilterDto | undefined): Promise<TimelinesDto>;
|
|
711
|
+
|
|
710
712
|
listMachineStates(id: number, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStateDatapoint[]>;
|
|
711
713
|
|
|
712
714
|
getMachineStatesSummary(id: number, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStatesSummaryDto>;
|
|
@@ -882,6 +884,53 @@ export class MachineUtilizationClient extends AuthorizedApiBase implements IMach
|
|
|
882
884
|
return Promise.resolve<MachineStatesSummaryDto>(null as any);
|
|
883
885
|
}
|
|
884
886
|
|
|
887
|
+
getResourceTimelines(id: number, startTime: Date | null | undefined, endTime: Date | null | undefined, filter: TimelineFilterDto | undefined): Promise<TimelinesDto> {
|
|
888
|
+
let url_ = this.baseUrl + "/machineutilization/{id}/resource/timelines?";
|
|
889
|
+
if (id === undefined || id === null)
|
|
890
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
891
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
892
|
+
if (startTime !== undefined && startTime !== null)
|
|
893
|
+
url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
|
|
894
|
+
if (endTime !== undefined && endTime !== null)
|
|
895
|
+
url_ += "endTime=" + encodeURIComponent(endTime ? "" + endTime.toISOString() : "") + "&";
|
|
896
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
897
|
+
|
|
898
|
+
const content_ = JSON.stringify(filter);
|
|
899
|
+
|
|
900
|
+
let options_: RequestInit = {
|
|
901
|
+
body: content_,
|
|
902
|
+
method: "POST",
|
|
903
|
+
headers: {
|
|
904
|
+
"Content-Type": "application/json",
|
|
905
|
+
"Accept": "application/json"
|
|
906
|
+
}
|
|
907
|
+
};
|
|
908
|
+
|
|
909
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
910
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
911
|
+
}).then((_response: Response) => {
|
|
912
|
+
return this.processGetResourceTimelines(_response);
|
|
913
|
+
});
|
|
914
|
+
}
|
|
915
|
+
|
|
916
|
+
protected processGetResourceTimelines(response: Response): Promise<TimelinesDto> {
|
|
917
|
+
const status = response.status;
|
|
918
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
919
|
+
if (status === 200) {
|
|
920
|
+
return response.text().then((_responseText) => {
|
|
921
|
+
let result200: any = null;
|
|
922
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
923
|
+
result200 = TimelinesDto.fromJS(resultData200);
|
|
924
|
+
return result200;
|
|
925
|
+
});
|
|
926
|
+
} else if (status !== 200 && status !== 204) {
|
|
927
|
+
return response.text().then((_responseText) => {
|
|
928
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
929
|
+
});
|
|
930
|
+
}
|
|
931
|
+
return Promise.resolve<TimelinesDto>(null as any);
|
|
932
|
+
}
|
|
933
|
+
|
|
885
934
|
listMachineStates(id: number, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<MachineStateDatapoint[]> {
|
|
886
935
|
let url_ = this.baseUrl + "/machineutilization/{id}/machine-states?";
|
|
887
936
|
if (id === undefined || id === null)
|
|
@@ -7004,6 +7053,11 @@ export interface IMachinesClient {
|
|
|
7004
7053
|
|
|
7005
7054
|
getMachineErpData(id: number): Promise<MachineErpDataDto>;
|
|
7006
7055
|
|
|
7056
|
+
/**
|
|
7057
|
+
* @param startTime (optional)
|
|
7058
|
+
* @param endTime (optional)
|
|
7059
|
+
* @deprecated
|
|
7060
|
+
*/
|
|
7007
7061
|
getWorkOrderTimeline(id: number, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<WorkOrderDatapoint[]>;
|
|
7008
7062
|
|
|
7009
7063
|
getMachineUtilizationSummary(): Promise<UtilizationSummaryDto>;
|
|
@@ -7523,6 +7577,11 @@ export class MachinesClient extends AuthorizedApiBase implements IMachinesClient
|
|
|
7523
7577
|
return Promise.resolve<MachineErpDataDto>(null as any);
|
|
7524
7578
|
}
|
|
7525
7579
|
|
|
7580
|
+
/**
|
|
7581
|
+
* @param startTime (optional)
|
|
7582
|
+
* @param endTime (optional)
|
|
7583
|
+
* @deprecated
|
|
7584
|
+
*/
|
|
7526
7585
|
getWorkOrderTimeline(id: number, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<WorkOrderDatapoint[]> {
|
|
7527
7586
|
let url_ = this.baseUrl + "/machines/{id}/workorder/timeline?";
|
|
7528
7587
|
if (id === undefined || id === null)
|
|
@@ -18120,6 +18179,368 @@ export class MesResourceClient extends AuthorizedApiBase implements IMesResource
|
|
|
18120
18179
|
}
|
|
18121
18180
|
}
|
|
18122
18181
|
|
|
18182
|
+
export interface IElectricalClient {
|
|
18183
|
+
|
|
18184
|
+
listElectricalSourceTypes(): Promise<IotTypeSourceDto[]>;
|
|
18185
|
+
|
|
18186
|
+
listElectricalDataConfigs(): Promise<ElectricalIotConfigDto[]>;
|
|
18187
|
+
|
|
18188
|
+
createElectricalIotConfig(request: CreateElectricalIotConfig): Promise<ElectricalIotConfigDto>;
|
|
18189
|
+
|
|
18190
|
+
deleteElectricalIotConfig(typeId: string, id: string): Promise<void>;
|
|
18191
|
+
}
|
|
18192
|
+
|
|
18193
|
+
export class ElectricalClient extends AuthorizedApiBase implements IElectricalClient {
|
|
18194
|
+
private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
|
|
18195
|
+
private baseUrl: string;
|
|
18196
|
+
protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;
|
|
18197
|
+
|
|
18198
|
+
constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
|
|
18199
|
+
super(configuration);
|
|
18200
|
+
this.http = http ? http : window as any;
|
|
18201
|
+
this.baseUrl = baseUrl ?? "";
|
|
18202
|
+
}
|
|
18203
|
+
|
|
18204
|
+
listElectricalSourceTypes(): Promise<IotTypeSourceDto[]> {
|
|
18205
|
+
let url_ = this.baseUrl + "/iot/electrical/sourcetypes";
|
|
18206
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
18207
|
+
|
|
18208
|
+
let options_: RequestInit = {
|
|
18209
|
+
method: "GET",
|
|
18210
|
+
headers: {
|
|
18211
|
+
"Accept": "application/json"
|
|
18212
|
+
}
|
|
18213
|
+
};
|
|
18214
|
+
|
|
18215
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
18216
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
18217
|
+
}).then((_response: Response) => {
|
|
18218
|
+
return this.processListElectricalSourceTypes(_response);
|
|
18219
|
+
});
|
|
18220
|
+
}
|
|
18221
|
+
|
|
18222
|
+
protected processListElectricalSourceTypes(response: Response): Promise<IotTypeSourceDto[]> {
|
|
18223
|
+
const status = response.status;
|
|
18224
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
18225
|
+
if (status === 200) {
|
|
18226
|
+
return response.text().then((_responseText) => {
|
|
18227
|
+
let result200: any = null;
|
|
18228
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
18229
|
+
if (Array.isArray(resultData200)) {
|
|
18230
|
+
result200 = [] as any;
|
|
18231
|
+
for (let item of resultData200)
|
|
18232
|
+
result200!.push(IotTypeSourceDto.fromJS(item));
|
|
18233
|
+
}
|
|
18234
|
+
return result200;
|
|
18235
|
+
});
|
|
18236
|
+
} else if (status !== 200 && status !== 204) {
|
|
18237
|
+
return response.text().then((_responseText) => {
|
|
18238
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
18239
|
+
});
|
|
18240
|
+
}
|
|
18241
|
+
return Promise.resolve<IotTypeSourceDto[]>(null as any);
|
|
18242
|
+
}
|
|
18243
|
+
|
|
18244
|
+
listElectricalDataConfigs(): Promise<ElectricalIotConfigDto[]> {
|
|
18245
|
+
let url_ = this.baseUrl + "/iot/electrical";
|
|
18246
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
18247
|
+
|
|
18248
|
+
let options_: RequestInit = {
|
|
18249
|
+
method: "GET",
|
|
18250
|
+
headers: {
|
|
18251
|
+
"Accept": "application/json"
|
|
18252
|
+
}
|
|
18253
|
+
};
|
|
18254
|
+
|
|
18255
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
18256
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
18257
|
+
}).then((_response: Response) => {
|
|
18258
|
+
return this.processListElectricalDataConfigs(_response);
|
|
18259
|
+
});
|
|
18260
|
+
}
|
|
18261
|
+
|
|
18262
|
+
protected processListElectricalDataConfigs(response: Response): Promise<ElectricalIotConfigDto[]> {
|
|
18263
|
+
const status = response.status;
|
|
18264
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
18265
|
+
if (status === 200) {
|
|
18266
|
+
return response.text().then((_responseText) => {
|
|
18267
|
+
let result200: any = null;
|
|
18268
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
18269
|
+
if (Array.isArray(resultData200)) {
|
|
18270
|
+
result200 = [] as any;
|
|
18271
|
+
for (let item of resultData200)
|
|
18272
|
+
result200!.push(ElectricalIotConfigDto.fromJS(item));
|
|
18273
|
+
}
|
|
18274
|
+
return result200;
|
|
18275
|
+
});
|
|
18276
|
+
} else if (status !== 200 && status !== 204) {
|
|
18277
|
+
return response.text().then((_responseText) => {
|
|
18278
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
18279
|
+
});
|
|
18280
|
+
}
|
|
18281
|
+
return Promise.resolve<ElectricalIotConfigDto[]>(null as any);
|
|
18282
|
+
}
|
|
18283
|
+
|
|
18284
|
+
createElectricalIotConfig(request: CreateElectricalIotConfig): Promise<ElectricalIotConfigDto> {
|
|
18285
|
+
let url_ = this.baseUrl + "/iot/electrical";
|
|
18286
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
18287
|
+
|
|
18288
|
+
const content_ = JSON.stringify(request);
|
|
18289
|
+
|
|
18290
|
+
let options_: RequestInit = {
|
|
18291
|
+
body: content_,
|
|
18292
|
+
method: "POST",
|
|
18293
|
+
headers: {
|
|
18294
|
+
"Content-Type": "application/json",
|
|
18295
|
+
"Accept": "application/json"
|
|
18296
|
+
}
|
|
18297
|
+
};
|
|
18298
|
+
|
|
18299
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
18300
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
18301
|
+
}).then((_response: Response) => {
|
|
18302
|
+
return this.processCreateElectricalIotConfig(_response);
|
|
18303
|
+
});
|
|
18304
|
+
}
|
|
18305
|
+
|
|
18306
|
+
protected processCreateElectricalIotConfig(response: Response): Promise<ElectricalIotConfigDto> {
|
|
18307
|
+
const status = response.status;
|
|
18308
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
18309
|
+
if (status === 200) {
|
|
18310
|
+
return response.text().then((_responseText) => {
|
|
18311
|
+
let result200: any = null;
|
|
18312
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
18313
|
+
result200 = ElectricalIotConfigDto.fromJS(resultData200);
|
|
18314
|
+
return result200;
|
|
18315
|
+
});
|
|
18316
|
+
} else if (status !== 200 && status !== 204) {
|
|
18317
|
+
return response.text().then((_responseText) => {
|
|
18318
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
18319
|
+
});
|
|
18320
|
+
}
|
|
18321
|
+
return Promise.resolve<ElectricalIotConfigDto>(null as any);
|
|
18322
|
+
}
|
|
18323
|
+
|
|
18324
|
+
deleteElectricalIotConfig(typeId: string, id: string): Promise<void> {
|
|
18325
|
+
let url_ = this.baseUrl + "/iot/electrical/{typeId}/{id}";
|
|
18326
|
+
if (typeId === undefined || typeId === null)
|
|
18327
|
+
throw new Error("The parameter 'typeId' must be defined.");
|
|
18328
|
+
url_ = url_.replace("{typeId}", encodeURIComponent("" + typeId));
|
|
18329
|
+
if (id === undefined || id === null)
|
|
18330
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
18331
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
18332
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
18333
|
+
|
|
18334
|
+
let options_: RequestInit = {
|
|
18335
|
+
method: "DELETE",
|
|
18336
|
+
headers: {
|
|
18337
|
+
}
|
|
18338
|
+
};
|
|
18339
|
+
|
|
18340
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
18341
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
18342
|
+
}).then((_response: Response) => {
|
|
18343
|
+
return this.processDeleteElectricalIotConfig(_response);
|
|
18344
|
+
});
|
|
18345
|
+
}
|
|
18346
|
+
|
|
18347
|
+
protected processDeleteElectricalIotConfig(response: Response): Promise<void> {
|
|
18348
|
+
const status = response.status;
|
|
18349
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
18350
|
+
if (status === 204) {
|
|
18351
|
+
return response.text().then((_responseText) => {
|
|
18352
|
+
return;
|
|
18353
|
+
});
|
|
18354
|
+
} else if (status !== 200 && status !== 204) {
|
|
18355
|
+
return response.text().then((_responseText) => {
|
|
18356
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
18357
|
+
});
|
|
18358
|
+
}
|
|
18359
|
+
return Promise.resolve<void>(null as any);
|
|
18360
|
+
}
|
|
18361
|
+
}
|
|
18362
|
+
|
|
18363
|
+
export interface IWeldingClient {
|
|
18364
|
+
|
|
18365
|
+
listWeldingSourceTypes(): Promise<IotTypeSourceDto[]>;
|
|
18366
|
+
|
|
18367
|
+
listElectricalDataConfigs(): Promise<WeldingIotConfigDto[]>;
|
|
18368
|
+
|
|
18369
|
+
createWeldingIotConfig(request: CreateWeldingIotConfig): Promise<WeldingIotConfigDto>;
|
|
18370
|
+
|
|
18371
|
+
deleteWeldingIotConfig(typeId: string, id: string): Promise<void>;
|
|
18372
|
+
}
|
|
18373
|
+
|
|
18374
|
+
export class WeldingClient extends AuthorizedApiBase implements IWeldingClient {
|
|
18375
|
+
private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
|
|
18376
|
+
private baseUrl: string;
|
|
18377
|
+
protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;
|
|
18378
|
+
|
|
18379
|
+
constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
|
|
18380
|
+
super(configuration);
|
|
18381
|
+
this.http = http ? http : window as any;
|
|
18382
|
+
this.baseUrl = baseUrl ?? "";
|
|
18383
|
+
}
|
|
18384
|
+
|
|
18385
|
+
listWeldingSourceTypes(): Promise<IotTypeSourceDto[]> {
|
|
18386
|
+
let url_ = this.baseUrl + "/iot/welding/sourcetypes";
|
|
18387
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
18388
|
+
|
|
18389
|
+
let options_: RequestInit = {
|
|
18390
|
+
method: "GET",
|
|
18391
|
+
headers: {
|
|
18392
|
+
"Accept": "application/json"
|
|
18393
|
+
}
|
|
18394
|
+
};
|
|
18395
|
+
|
|
18396
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
18397
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
18398
|
+
}).then((_response: Response) => {
|
|
18399
|
+
return this.processListWeldingSourceTypes(_response);
|
|
18400
|
+
});
|
|
18401
|
+
}
|
|
18402
|
+
|
|
18403
|
+
protected processListWeldingSourceTypes(response: Response): Promise<IotTypeSourceDto[]> {
|
|
18404
|
+
const status = response.status;
|
|
18405
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
18406
|
+
if (status === 200) {
|
|
18407
|
+
return response.text().then((_responseText) => {
|
|
18408
|
+
let result200: any = null;
|
|
18409
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
18410
|
+
if (Array.isArray(resultData200)) {
|
|
18411
|
+
result200 = [] as any;
|
|
18412
|
+
for (let item of resultData200)
|
|
18413
|
+
result200!.push(IotTypeSourceDto.fromJS(item));
|
|
18414
|
+
}
|
|
18415
|
+
return result200;
|
|
18416
|
+
});
|
|
18417
|
+
} else if (status !== 200 && status !== 204) {
|
|
18418
|
+
return response.text().then((_responseText) => {
|
|
18419
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
18420
|
+
});
|
|
18421
|
+
}
|
|
18422
|
+
return Promise.resolve<IotTypeSourceDto[]>(null as any);
|
|
18423
|
+
}
|
|
18424
|
+
|
|
18425
|
+
listElectricalDataConfigs(): Promise<WeldingIotConfigDto[]> {
|
|
18426
|
+
let url_ = this.baseUrl + "/iot/welding";
|
|
18427
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
18428
|
+
|
|
18429
|
+
let options_: RequestInit = {
|
|
18430
|
+
method: "GET",
|
|
18431
|
+
headers: {
|
|
18432
|
+
"Accept": "application/json"
|
|
18433
|
+
}
|
|
18434
|
+
};
|
|
18435
|
+
|
|
18436
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
18437
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
18438
|
+
}).then((_response: Response) => {
|
|
18439
|
+
return this.processListElectricalDataConfigs(_response);
|
|
18440
|
+
});
|
|
18441
|
+
}
|
|
18442
|
+
|
|
18443
|
+
protected processListElectricalDataConfigs(response: Response): Promise<WeldingIotConfigDto[]> {
|
|
18444
|
+
const status = response.status;
|
|
18445
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
18446
|
+
if (status === 200) {
|
|
18447
|
+
return response.text().then((_responseText) => {
|
|
18448
|
+
let result200: any = null;
|
|
18449
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
18450
|
+
if (Array.isArray(resultData200)) {
|
|
18451
|
+
result200 = [] as any;
|
|
18452
|
+
for (let item of resultData200)
|
|
18453
|
+
result200!.push(WeldingIotConfigDto.fromJS(item));
|
|
18454
|
+
}
|
|
18455
|
+
return result200;
|
|
18456
|
+
});
|
|
18457
|
+
} else if (status !== 200 && status !== 204) {
|
|
18458
|
+
return response.text().then((_responseText) => {
|
|
18459
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
18460
|
+
});
|
|
18461
|
+
}
|
|
18462
|
+
return Promise.resolve<WeldingIotConfigDto[]>(null as any);
|
|
18463
|
+
}
|
|
18464
|
+
|
|
18465
|
+
createWeldingIotConfig(request: CreateWeldingIotConfig): Promise<WeldingIotConfigDto> {
|
|
18466
|
+
let url_ = this.baseUrl + "/iot/welding";
|
|
18467
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
18468
|
+
|
|
18469
|
+
const content_ = JSON.stringify(request);
|
|
18470
|
+
|
|
18471
|
+
let options_: RequestInit = {
|
|
18472
|
+
body: content_,
|
|
18473
|
+
method: "POST",
|
|
18474
|
+
headers: {
|
|
18475
|
+
"Content-Type": "application/json",
|
|
18476
|
+
"Accept": "application/json"
|
|
18477
|
+
}
|
|
18478
|
+
};
|
|
18479
|
+
|
|
18480
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
18481
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
18482
|
+
}).then((_response: Response) => {
|
|
18483
|
+
return this.processCreateWeldingIotConfig(_response);
|
|
18484
|
+
});
|
|
18485
|
+
}
|
|
18486
|
+
|
|
18487
|
+
protected processCreateWeldingIotConfig(response: Response): Promise<WeldingIotConfigDto> {
|
|
18488
|
+
const status = response.status;
|
|
18489
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
18490
|
+
if (status === 200) {
|
|
18491
|
+
return response.text().then((_responseText) => {
|
|
18492
|
+
let result200: any = null;
|
|
18493
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
18494
|
+
result200 = WeldingIotConfigDto.fromJS(resultData200);
|
|
18495
|
+
return result200;
|
|
18496
|
+
});
|
|
18497
|
+
} else if (status !== 200 && status !== 204) {
|
|
18498
|
+
return response.text().then((_responseText) => {
|
|
18499
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
18500
|
+
});
|
|
18501
|
+
}
|
|
18502
|
+
return Promise.resolve<WeldingIotConfigDto>(null as any);
|
|
18503
|
+
}
|
|
18504
|
+
|
|
18505
|
+
deleteWeldingIotConfig(typeId: string, id: string): Promise<void> {
|
|
18506
|
+
let url_ = this.baseUrl + "/iot/welding/{typeId}/{id}";
|
|
18507
|
+
if (typeId === undefined || typeId === null)
|
|
18508
|
+
throw new Error("The parameter 'typeId' must be defined.");
|
|
18509
|
+
url_ = url_.replace("{typeId}", encodeURIComponent("" + typeId));
|
|
18510
|
+
if (id === undefined || id === null)
|
|
18511
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
18512
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
18513
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
18514
|
+
|
|
18515
|
+
let options_: RequestInit = {
|
|
18516
|
+
method: "DELETE",
|
|
18517
|
+
headers: {
|
|
18518
|
+
}
|
|
18519
|
+
};
|
|
18520
|
+
|
|
18521
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
18522
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
18523
|
+
}).then((_response: Response) => {
|
|
18524
|
+
return this.processDeleteWeldingIotConfig(_response);
|
|
18525
|
+
});
|
|
18526
|
+
}
|
|
18527
|
+
|
|
18528
|
+
protected processDeleteWeldingIotConfig(response: Response): Promise<void> {
|
|
18529
|
+
const status = response.status;
|
|
18530
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
18531
|
+
if (status === 204) {
|
|
18532
|
+
return response.text().then((_responseText) => {
|
|
18533
|
+
return;
|
|
18534
|
+
});
|
|
18535
|
+
} else if (status !== 200 && status !== 204) {
|
|
18536
|
+
return response.text().then((_responseText) => {
|
|
18537
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
18538
|
+
});
|
|
18539
|
+
}
|
|
18540
|
+
return Promise.resolve<void>(null as any);
|
|
18541
|
+
}
|
|
18542
|
+
}
|
|
18543
|
+
|
|
18123
18544
|
export interface IMeasurementFormSchemasClient {
|
|
18124
18545
|
|
|
18125
18546
|
listMeasurmentFormSchemas(pageSize: number | undefined, customerId: string | null | undefined, customerName: string | null | undefined, partNumber: string | null | undefined, partName: string | null | undefined, partRevision: string | null | undefined, drawing: string | null | undefined, drawingRevision: string | null | undefined, filter: string | null | undefined, continuationToken: string | null | undefined): Promise<PagedResultOfMeasurementFormListDto>;
|
|
@@ -18171,12 +18592,12 @@ export interface IMeasurementFormSchemasClient {
|
|
|
18171
18592
|
/**
|
|
18172
18593
|
* @deprecated
|
|
18173
18594
|
*/
|
|
18174
|
-
getMeasurementFormSettings(): Promise<
|
|
18595
|
+
getMeasurementFormSettings(): Promise<InspectCompanySettingsDto>;
|
|
18175
18596
|
|
|
18176
18597
|
/**
|
|
18177
18598
|
* @deprecated
|
|
18178
18599
|
*/
|
|
18179
|
-
updateMeasurementFormSettings(request: UpdateMeasurementFormSettings): Promise<
|
|
18600
|
+
updateMeasurementFormSettings(request: UpdateMeasurementFormSettings): Promise<InspectCompanySettingsDto>;
|
|
18180
18601
|
|
|
18181
18602
|
/**
|
|
18182
18603
|
* @deprecated
|
|
@@ -18196,9 +18617,12 @@ export interface IMeasurementFormSchemasClient {
|
|
|
18196
18617
|
|
|
18197
18618
|
deleteMeasurementFormMapping(id: string): Promise<void>;
|
|
18198
18619
|
|
|
18199
|
-
|
|
18620
|
+
/**
|
|
18621
|
+
* @deprecated
|
|
18622
|
+
*/
|
|
18623
|
+
setMeasurementFormMappingBalloonsV2(id: string, request: SetMeasurementFormReferencesMappingRequest): Promise<MeasurementFormMappingDto>;
|
|
18200
18624
|
|
|
18201
|
-
|
|
18625
|
+
setMeasurementFormReferencesMapping(mappingId: string, request: SetMeasurementFormReferencesMappingRequest): Promise<MeasurementFormMappingDto>;
|
|
18202
18626
|
|
|
18203
18627
|
getMeasurementFormMappingSuggestion(targetId: string | null | undefined, sourceId: string | null | undefined): Promise<MeasurementFormMappingSuggestionDto>;
|
|
18204
18628
|
|
|
@@ -19220,7 +19644,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
|
|
|
19220
19644
|
/**
|
|
19221
19645
|
* @deprecated
|
|
19222
19646
|
*/
|
|
19223
|
-
getMeasurementFormSettings(): Promise<
|
|
19647
|
+
getMeasurementFormSettings(): Promise<InspectCompanySettingsDto> {
|
|
19224
19648
|
let url_ = this.baseUrl + "/measurementforms/schemas/settings";
|
|
19225
19649
|
url_ = url_.replace(/[?&]$/, "");
|
|
19226
19650
|
|
|
@@ -19238,14 +19662,14 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
|
|
|
19238
19662
|
});
|
|
19239
19663
|
}
|
|
19240
19664
|
|
|
19241
|
-
protected processGetMeasurementFormSettings(response: Response): Promise<
|
|
19665
|
+
protected processGetMeasurementFormSettings(response: Response): Promise<InspectCompanySettingsDto> {
|
|
19242
19666
|
const status = response.status;
|
|
19243
19667
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
19244
19668
|
if (status === 200) {
|
|
19245
19669
|
return response.text().then((_responseText) => {
|
|
19246
19670
|
let result200: any = null;
|
|
19247
19671
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
19248
|
-
result200 =
|
|
19672
|
+
result200 = InspectCompanySettingsDto.fromJS(resultData200);
|
|
19249
19673
|
return result200;
|
|
19250
19674
|
});
|
|
19251
19675
|
} else if (status !== 200 && status !== 204) {
|
|
@@ -19253,13 +19677,13 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
|
|
|
19253
19677
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
19254
19678
|
});
|
|
19255
19679
|
}
|
|
19256
|
-
return Promise.resolve<
|
|
19680
|
+
return Promise.resolve<InspectCompanySettingsDto>(null as any);
|
|
19257
19681
|
}
|
|
19258
19682
|
|
|
19259
19683
|
/**
|
|
19260
19684
|
* @deprecated
|
|
19261
19685
|
*/
|
|
19262
|
-
updateMeasurementFormSettings(request: UpdateMeasurementFormSettings): Promise<
|
|
19686
|
+
updateMeasurementFormSettings(request: UpdateMeasurementFormSettings): Promise<InspectCompanySettingsDto> {
|
|
19263
19687
|
let url_ = this.baseUrl + "/measurementforms/schemas/settings";
|
|
19264
19688
|
url_ = url_.replace(/[?&]$/, "");
|
|
19265
19689
|
|
|
@@ -19281,14 +19705,14 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
|
|
|
19281
19705
|
});
|
|
19282
19706
|
}
|
|
19283
19707
|
|
|
19284
|
-
protected processUpdateMeasurementFormSettings(response: Response): Promise<
|
|
19708
|
+
protected processUpdateMeasurementFormSettings(response: Response): Promise<InspectCompanySettingsDto> {
|
|
19285
19709
|
const status = response.status;
|
|
19286
19710
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
19287
19711
|
if (status === 200) {
|
|
19288
19712
|
return response.text().then((_responseText) => {
|
|
19289
19713
|
let result200: any = null;
|
|
19290
19714
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
19291
|
-
result200 =
|
|
19715
|
+
result200 = InspectCompanySettingsDto.fromJS(resultData200);
|
|
19292
19716
|
return result200;
|
|
19293
19717
|
});
|
|
19294
19718
|
} else if (status !== 200 && status !== 204) {
|
|
@@ -19296,7 +19720,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
|
|
|
19296
19720
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
19297
19721
|
});
|
|
19298
19722
|
}
|
|
19299
|
-
return Promise.resolve<
|
|
19723
|
+
return Promise.resolve<InspectCompanySettingsDto>(null as any);
|
|
19300
19724
|
}
|
|
19301
19725
|
|
|
19302
19726
|
/**
|
|
@@ -19554,8 +19978,11 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
|
|
|
19554
19978
|
return Promise.resolve<void>(null as any);
|
|
19555
19979
|
}
|
|
19556
19980
|
|
|
19557
|
-
|
|
19558
|
-
|
|
19981
|
+
/**
|
|
19982
|
+
* @deprecated
|
|
19983
|
+
*/
|
|
19984
|
+
setMeasurementFormMappingBalloonsV2(id: string, request: SetMeasurementFormReferencesMappingRequest): Promise<MeasurementFormMappingDto> {
|
|
19985
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/mapping/{id}/balloons/v2";
|
|
19559
19986
|
if (id === undefined || id === null)
|
|
19560
19987
|
throw new Error("The parameter 'id' must be defined.");
|
|
19561
19988
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
@@ -19575,11 +20002,11 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
|
|
|
19575
20002
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
19576
20003
|
return this.http.fetch(url_, transformedOptions_);
|
|
19577
20004
|
}).then((_response: Response) => {
|
|
19578
|
-
return this.
|
|
20005
|
+
return this.processSetMeasurementFormMappingBalloonsV2(_response);
|
|
19579
20006
|
});
|
|
19580
20007
|
}
|
|
19581
20008
|
|
|
19582
|
-
protected
|
|
20009
|
+
protected processSetMeasurementFormMappingBalloonsV2(response: Response): Promise<MeasurementFormMappingDto> {
|
|
19583
20010
|
const status = response.status;
|
|
19584
20011
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
19585
20012
|
if (status === 200) {
|
|
@@ -19597,11 +20024,11 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
|
|
|
19597
20024
|
return Promise.resolve<MeasurementFormMappingDto>(null as any);
|
|
19598
20025
|
}
|
|
19599
20026
|
|
|
19600
|
-
|
|
19601
|
-
let url_ = this.baseUrl + "/measurementforms/schemas/mapping/{
|
|
19602
|
-
if (
|
|
19603
|
-
throw new Error("The parameter '
|
|
19604
|
-
url_ = url_.replace("{
|
|
20027
|
+
setMeasurementFormReferencesMapping(mappingId: string, request: SetMeasurementFormReferencesMappingRequest): Promise<MeasurementFormMappingDto> {
|
|
20028
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/mapping/{mappingId}/references";
|
|
20029
|
+
if (mappingId === undefined || mappingId === null)
|
|
20030
|
+
throw new Error("The parameter 'mappingId' must be defined.");
|
|
20031
|
+
url_ = url_.replace("{mappingId}", encodeURIComponent("" + mappingId));
|
|
19605
20032
|
url_ = url_.replace(/[?&]$/, "");
|
|
19606
20033
|
|
|
19607
20034
|
const content_ = JSON.stringify(request);
|
|
@@ -19618,11 +20045,11 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
|
|
|
19618
20045
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
19619
20046
|
return this.http.fetch(url_, transformedOptions_);
|
|
19620
20047
|
}).then((_response: Response) => {
|
|
19621
|
-
return this.
|
|
20048
|
+
return this.processSetMeasurementFormReferencesMapping(_response);
|
|
19622
20049
|
});
|
|
19623
20050
|
}
|
|
19624
20051
|
|
|
19625
|
-
protected
|
|
20052
|
+
protected processSetMeasurementFormReferencesMapping(response: Response): Promise<MeasurementFormMappingDto> {
|
|
19626
20053
|
const status = response.status;
|
|
19627
20054
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
19628
20055
|
if (status === 200) {
|
|
@@ -20526,9 +20953,9 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
|
|
|
20526
20953
|
|
|
20527
20954
|
export interface IMeasurementFormSettingsClient {
|
|
20528
20955
|
|
|
20529
|
-
getMeasurementFormSettings(): Promise<
|
|
20956
|
+
getMeasurementFormSettings(): Promise<InspectCompanySettingsDto>;
|
|
20530
20957
|
|
|
20531
|
-
updateMeasurementFormSettings(request: UpdateMeasurementFormSettings): Promise<
|
|
20958
|
+
updateMeasurementFormSettings(request: UpdateMeasurementFormSettings): Promise<InspectCompanySettingsDto>;
|
|
20532
20959
|
|
|
20533
20960
|
getMeasurementFormCustomerSettings(id: string): Promise<MeasurementFormCustomerSettingsDto>;
|
|
20534
20961
|
|
|
@@ -20546,7 +20973,7 @@ export class MeasurementFormSettingsClient extends AuthorizedApiBase implements
|
|
|
20546
20973
|
this.baseUrl = baseUrl ?? "";
|
|
20547
20974
|
}
|
|
20548
20975
|
|
|
20549
|
-
getMeasurementFormSettings(): Promise<
|
|
20976
|
+
getMeasurementFormSettings(): Promise<InspectCompanySettingsDto> {
|
|
20550
20977
|
let url_ = this.baseUrl + "/measurementforms/settings";
|
|
20551
20978
|
url_ = url_.replace(/[?&]$/, "");
|
|
20552
20979
|
|
|
@@ -20564,14 +20991,14 @@ export class MeasurementFormSettingsClient extends AuthorizedApiBase implements
|
|
|
20564
20991
|
});
|
|
20565
20992
|
}
|
|
20566
20993
|
|
|
20567
|
-
protected processGetMeasurementFormSettings(response: Response): Promise<
|
|
20994
|
+
protected processGetMeasurementFormSettings(response: Response): Promise<InspectCompanySettingsDto> {
|
|
20568
20995
|
const status = response.status;
|
|
20569
20996
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
20570
20997
|
if (status === 200) {
|
|
20571
20998
|
return response.text().then((_responseText) => {
|
|
20572
20999
|
let result200: any = null;
|
|
20573
21000
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
20574
|
-
result200 =
|
|
21001
|
+
result200 = InspectCompanySettingsDto.fromJS(resultData200);
|
|
20575
21002
|
return result200;
|
|
20576
21003
|
});
|
|
20577
21004
|
} else if (status !== 200 && status !== 204) {
|
|
@@ -20579,10 +21006,10 @@ export class MeasurementFormSettingsClient extends AuthorizedApiBase implements
|
|
|
20579
21006
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
20580
21007
|
});
|
|
20581
21008
|
}
|
|
20582
|
-
return Promise.resolve<
|
|
21009
|
+
return Promise.resolve<InspectCompanySettingsDto>(null as any);
|
|
20583
21010
|
}
|
|
20584
21011
|
|
|
20585
|
-
updateMeasurementFormSettings(request: UpdateMeasurementFormSettings): Promise<
|
|
21012
|
+
updateMeasurementFormSettings(request: UpdateMeasurementFormSettings): Promise<InspectCompanySettingsDto> {
|
|
20586
21013
|
let url_ = this.baseUrl + "/measurementforms/settings";
|
|
20587
21014
|
url_ = url_.replace(/[?&]$/, "");
|
|
20588
21015
|
|
|
@@ -20604,14 +21031,14 @@ export class MeasurementFormSettingsClient extends AuthorizedApiBase implements
|
|
|
20604
21031
|
});
|
|
20605
21032
|
}
|
|
20606
21033
|
|
|
20607
|
-
protected processUpdateMeasurementFormSettings(response: Response): Promise<
|
|
21034
|
+
protected processUpdateMeasurementFormSettings(response: Response): Promise<InspectCompanySettingsDto> {
|
|
20608
21035
|
const status = response.status;
|
|
20609
21036
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
20610
21037
|
if (status === 200) {
|
|
20611
21038
|
return response.text().then((_responseText) => {
|
|
20612
21039
|
let result200: any = null;
|
|
20613
21040
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
20614
|
-
result200 =
|
|
21041
|
+
result200 = InspectCompanySettingsDto.fromJS(resultData200);
|
|
20615
21042
|
return result200;
|
|
20616
21043
|
});
|
|
20617
21044
|
} else if (status !== 200 && status !== 204) {
|
|
@@ -20619,7 +21046,7 @@ export class MeasurementFormSettingsClient extends AuthorizedApiBase implements
|
|
|
20619
21046
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
20620
21047
|
});
|
|
20621
21048
|
}
|
|
20622
|
-
return Promise.resolve<
|
|
21049
|
+
return Promise.resolve<InspectCompanySettingsDto>(null as any);
|
|
20623
21050
|
}
|
|
20624
21051
|
|
|
20625
21052
|
getMeasurementFormCustomerSettings(id: string): Promise<MeasurementFormCustomerSettingsDto> {
|
|
@@ -22151,368 +22578,6 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase implement
|
|
|
22151
22578
|
}
|
|
22152
22579
|
}
|
|
22153
22580
|
|
|
22154
|
-
export interface IElectricalClient {
|
|
22155
|
-
|
|
22156
|
-
listElectricalSourceTypes(): Promise<IotTypeSourceDto[]>;
|
|
22157
|
-
|
|
22158
|
-
listElectricalDataConfigs(): Promise<ElectricalIotConfigDto[]>;
|
|
22159
|
-
|
|
22160
|
-
createElectricalIotConfig(request: CreateElectricalIotConfig): Promise<ElectricalIotConfigDto>;
|
|
22161
|
-
|
|
22162
|
-
deleteElectricalIotConfig(typeId: string, id: string): Promise<void>;
|
|
22163
|
-
}
|
|
22164
|
-
|
|
22165
|
-
export class ElectricalClient extends AuthorizedApiBase implements IElectricalClient {
|
|
22166
|
-
private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
|
|
22167
|
-
private baseUrl: string;
|
|
22168
|
-
protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;
|
|
22169
|
-
|
|
22170
|
-
constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
|
|
22171
|
-
super(configuration);
|
|
22172
|
-
this.http = http ? http : window as any;
|
|
22173
|
-
this.baseUrl = baseUrl ?? "";
|
|
22174
|
-
}
|
|
22175
|
-
|
|
22176
|
-
listElectricalSourceTypes(): Promise<IotTypeSourceDto[]> {
|
|
22177
|
-
let url_ = this.baseUrl + "/iot/electrical/sourcetypes";
|
|
22178
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
22179
|
-
|
|
22180
|
-
let options_: RequestInit = {
|
|
22181
|
-
method: "GET",
|
|
22182
|
-
headers: {
|
|
22183
|
-
"Accept": "application/json"
|
|
22184
|
-
}
|
|
22185
|
-
};
|
|
22186
|
-
|
|
22187
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
22188
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
22189
|
-
}).then((_response: Response) => {
|
|
22190
|
-
return this.processListElectricalSourceTypes(_response);
|
|
22191
|
-
});
|
|
22192
|
-
}
|
|
22193
|
-
|
|
22194
|
-
protected processListElectricalSourceTypes(response: Response): Promise<IotTypeSourceDto[]> {
|
|
22195
|
-
const status = response.status;
|
|
22196
|
-
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
22197
|
-
if (status === 200) {
|
|
22198
|
-
return response.text().then((_responseText) => {
|
|
22199
|
-
let result200: any = null;
|
|
22200
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
22201
|
-
if (Array.isArray(resultData200)) {
|
|
22202
|
-
result200 = [] as any;
|
|
22203
|
-
for (let item of resultData200)
|
|
22204
|
-
result200!.push(IotTypeSourceDto.fromJS(item));
|
|
22205
|
-
}
|
|
22206
|
-
return result200;
|
|
22207
|
-
});
|
|
22208
|
-
} else if (status !== 200 && status !== 204) {
|
|
22209
|
-
return response.text().then((_responseText) => {
|
|
22210
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
22211
|
-
});
|
|
22212
|
-
}
|
|
22213
|
-
return Promise.resolve<IotTypeSourceDto[]>(null as any);
|
|
22214
|
-
}
|
|
22215
|
-
|
|
22216
|
-
listElectricalDataConfigs(): Promise<ElectricalIotConfigDto[]> {
|
|
22217
|
-
let url_ = this.baseUrl + "/iot/electrical";
|
|
22218
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
22219
|
-
|
|
22220
|
-
let options_: RequestInit = {
|
|
22221
|
-
method: "GET",
|
|
22222
|
-
headers: {
|
|
22223
|
-
"Accept": "application/json"
|
|
22224
|
-
}
|
|
22225
|
-
};
|
|
22226
|
-
|
|
22227
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
22228
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
22229
|
-
}).then((_response: Response) => {
|
|
22230
|
-
return this.processListElectricalDataConfigs(_response);
|
|
22231
|
-
});
|
|
22232
|
-
}
|
|
22233
|
-
|
|
22234
|
-
protected processListElectricalDataConfigs(response: Response): Promise<ElectricalIotConfigDto[]> {
|
|
22235
|
-
const status = response.status;
|
|
22236
|
-
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
22237
|
-
if (status === 200) {
|
|
22238
|
-
return response.text().then((_responseText) => {
|
|
22239
|
-
let result200: any = null;
|
|
22240
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
22241
|
-
if (Array.isArray(resultData200)) {
|
|
22242
|
-
result200 = [] as any;
|
|
22243
|
-
for (let item of resultData200)
|
|
22244
|
-
result200!.push(ElectricalIotConfigDto.fromJS(item));
|
|
22245
|
-
}
|
|
22246
|
-
return result200;
|
|
22247
|
-
});
|
|
22248
|
-
} else if (status !== 200 && status !== 204) {
|
|
22249
|
-
return response.text().then((_responseText) => {
|
|
22250
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
22251
|
-
});
|
|
22252
|
-
}
|
|
22253
|
-
return Promise.resolve<ElectricalIotConfigDto[]>(null as any);
|
|
22254
|
-
}
|
|
22255
|
-
|
|
22256
|
-
createElectricalIotConfig(request: CreateElectricalIotConfig): Promise<ElectricalIotConfigDto> {
|
|
22257
|
-
let url_ = this.baseUrl + "/iot/electrical";
|
|
22258
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
22259
|
-
|
|
22260
|
-
const content_ = JSON.stringify(request);
|
|
22261
|
-
|
|
22262
|
-
let options_: RequestInit = {
|
|
22263
|
-
body: content_,
|
|
22264
|
-
method: "POST",
|
|
22265
|
-
headers: {
|
|
22266
|
-
"Content-Type": "application/json",
|
|
22267
|
-
"Accept": "application/json"
|
|
22268
|
-
}
|
|
22269
|
-
};
|
|
22270
|
-
|
|
22271
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
22272
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
22273
|
-
}).then((_response: Response) => {
|
|
22274
|
-
return this.processCreateElectricalIotConfig(_response);
|
|
22275
|
-
});
|
|
22276
|
-
}
|
|
22277
|
-
|
|
22278
|
-
protected processCreateElectricalIotConfig(response: Response): Promise<ElectricalIotConfigDto> {
|
|
22279
|
-
const status = response.status;
|
|
22280
|
-
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
22281
|
-
if (status === 200) {
|
|
22282
|
-
return response.text().then((_responseText) => {
|
|
22283
|
-
let result200: any = null;
|
|
22284
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
22285
|
-
result200 = ElectricalIotConfigDto.fromJS(resultData200);
|
|
22286
|
-
return result200;
|
|
22287
|
-
});
|
|
22288
|
-
} else if (status !== 200 && status !== 204) {
|
|
22289
|
-
return response.text().then((_responseText) => {
|
|
22290
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
22291
|
-
});
|
|
22292
|
-
}
|
|
22293
|
-
return Promise.resolve<ElectricalIotConfigDto>(null as any);
|
|
22294
|
-
}
|
|
22295
|
-
|
|
22296
|
-
deleteElectricalIotConfig(typeId: string, id: string): Promise<void> {
|
|
22297
|
-
let url_ = this.baseUrl + "/iot/electrical/{typeId}/{id}";
|
|
22298
|
-
if (typeId === undefined || typeId === null)
|
|
22299
|
-
throw new Error("The parameter 'typeId' must be defined.");
|
|
22300
|
-
url_ = url_.replace("{typeId}", encodeURIComponent("" + typeId));
|
|
22301
|
-
if (id === undefined || id === null)
|
|
22302
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
22303
|
-
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
22304
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
22305
|
-
|
|
22306
|
-
let options_: RequestInit = {
|
|
22307
|
-
method: "DELETE",
|
|
22308
|
-
headers: {
|
|
22309
|
-
}
|
|
22310
|
-
};
|
|
22311
|
-
|
|
22312
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
22313
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
22314
|
-
}).then((_response: Response) => {
|
|
22315
|
-
return this.processDeleteElectricalIotConfig(_response);
|
|
22316
|
-
});
|
|
22317
|
-
}
|
|
22318
|
-
|
|
22319
|
-
protected processDeleteElectricalIotConfig(response: Response): Promise<void> {
|
|
22320
|
-
const status = response.status;
|
|
22321
|
-
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
22322
|
-
if (status === 204) {
|
|
22323
|
-
return response.text().then((_responseText) => {
|
|
22324
|
-
return;
|
|
22325
|
-
});
|
|
22326
|
-
} else if (status !== 200 && status !== 204) {
|
|
22327
|
-
return response.text().then((_responseText) => {
|
|
22328
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
22329
|
-
});
|
|
22330
|
-
}
|
|
22331
|
-
return Promise.resolve<void>(null as any);
|
|
22332
|
-
}
|
|
22333
|
-
}
|
|
22334
|
-
|
|
22335
|
-
export interface IWeldingClient {
|
|
22336
|
-
|
|
22337
|
-
listWeldingSourceTypes(): Promise<IotTypeSourceDto[]>;
|
|
22338
|
-
|
|
22339
|
-
listElectricalDataConfigs(): Promise<WeldingIotConfigDto[]>;
|
|
22340
|
-
|
|
22341
|
-
createWeldingIotConfig(request: CreateWeldingIotConfig): Promise<WeldingIotConfigDto>;
|
|
22342
|
-
|
|
22343
|
-
deleteWeldingIotConfig(typeId: string, id: string): Promise<void>;
|
|
22344
|
-
}
|
|
22345
|
-
|
|
22346
|
-
export class WeldingClient extends AuthorizedApiBase implements IWeldingClient {
|
|
22347
|
-
private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
|
|
22348
|
-
private baseUrl: string;
|
|
22349
|
-
protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;
|
|
22350
|
-
|
|
22351
|
-
constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
|
|
22352
|
-
super(configuration);
|
|
22353
|
-
this.http = http ? http : window as any;
|
|
22354
|
-
this.baseUrl = baseUrl ?? "";
|
|
22355
|
-
}
|
|
22356
|
-
|
|
22357
|
-
listWeldingSourceTypes(): Promise<IotTypeSourceDto[]> {
|
|
22358
|
-
let url_ = this.baseUrl + "/iot/welding/sourcetypes";
|
|
22359
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
22360
|
-
|
|
22361
|
-
let options_: RequestInit = {
|
|
22362
|
-
method: "GET",
|
|
22363
|
-
headers: {
|
|
22364
|
-
"Accept": "application/json"
|
|
22365
|
-
}
|
|
22366
|
-
};
|
|
22367
|
-
|
|
22368
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
22369
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
22370
|
-
}).then((_response: Response) => {
|
|
22371
|
-
return this.processListWeldingSourceTypes(_response);
|
|
22372
|
-
});
|
|
22373
|
-
}
|
|
22374
|
-
|
|
22375
|
-
protected processListWeldingSourceTypes(response: Response): Promise<IotTypeSourceDto[]> {
|
|
22376
|
-
const status = response.status;
|
|
22377
|
-
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
22378
|
-
if (status === 200) {
|
|
22379
|
-
return response.text().then((_responseText) => {
|
|
22380
|
-
let result200: any = null;
|
|
22381
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
22382
|
-
if (Array.isArray(resultData200)) {
|
|
22383
|
-
result200 = [] as any;
|
|
22384
|
-
for (let item of resultData200)
|
|
22385
|
-
result200!.push(IotTypeSourceDto.fromJS(item));
|
|
22386
|
-
}
|
|
22387
|
-
return result200;
|
|
22388
|
-
});
|
|
22389
|
-
} else if (status !== 200 && status !== 204) {
|
|
22390
|
-
return response.text().then((_responseText) => {
|
|
22391
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
22392
|
-
});
|
|
22393
|
-
}
|
|
22394
|
-
return Promise.resolve<IotTypeSourceDto[]>(null as any);
|
|
22395
|
-
}
|
|
22396
|
-
|
|
22397
|
-
listElectricalDataConfigs(): Promise<WeldingIotConfigDto[]> {
|
|
22398
|
-
let url_ = this.baseUrl + "/iot/welding";
|
|
22399
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
22400
|
-
|
|
22401
|
-
let options_: RequestInit = {
|
|
22402
|
-
method: "GET",
|
|
22403
|
-
headers: {
|
|
22404
|
-
"Accept": "application/json"
|
|
22405
|
-
}
|
|
22406
|
-
};
|
|
22407
|
-
|
|
22408
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
22409
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
22410
|
-
}).then((_response: Response) => {
|
|
22411
|
-
return this.processListElectricalDataConfigs(_response);
|
|
22412
|
-
});
|
|
22413
|
-
}
|
|
22414
|
-
|
|
22415
|
-
protected processListElectricalDataConfigs(response: Response): Promise<WeldingIotConfigDto[]> {
|
|
22416
|
-
const status = response.status;
|
|
22417
|
-
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
22418
|
-
if (status === 200) {
|
|
22419
|
-
return response.text().then((_responseText) => {
|
|
22420
|
-
let result200: any = null;
|
|
22421
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
22422
|
-
if (Array.isArray(resultData200)) {
|
|
22423
|
-
result200 = [] as any;
|
|
22424
|
-
for (let item of resultData200)
|
|
22425
|
-
result200!.push(WeldingIotConfigDto.fromJS(item));
|
|
22426
|
-
}
|
|
22427
|
-
return result200;
|
|
22428
|
-
});
|
|
22429
|
-
} else if (status !== 200 && status !== 204) {
|
|
22430
|
-
return response.text().then((_responseText) => {
|
|
22431
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
22432
|
-
});
|
|
22433
|
-
}
|
|
22434
|
-
return Promise.resolve<WeldingIotConfigDto[]>(null as any);
|
|
22435
|
-
}
|
|
22436
|
-
|
|
22437
|
-
createWeldingIotConfig(request: CreateWeldingIotConfig): Promise<WeldingIotConfigDto> {
|
|
22438
|
-
let url_ = this.baseUrl + "/iot/welding";
|
|
22439
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
22440
|
-
|
|
22441
|
-
const content_ = JSON.stringify(request);
|
|
22442
|
-
|
|
22443
|
-
let options_: RequestInit = {
|
|
22444
|
-
body: content_,
|
|
22445
|
-
method: "POST",
|
|
22446
|
-
headers: {
|
|
22447
|
-
"Content-Type": "application/json",
|
|
22448
|
-
"Accept": "application/json"
|
|
22449
|
-
}
|
|
22450
|
-
};
|
|
22451
|
-
|
|
22452
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
22453
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
22454
|
-
}).then((_response: Response) => {
|
|
22455
|
-
return this.processCreateWeldingIotConfig(_response);
|
|
22456
|
-
});
|
|
22457
|
-
}
|
|
22458
|
-
|
|
22459
|
-
protected processCreateWeldingIotConfig(response: Response): Promise<WeldingIotConfigDto> {
|
|
22460
|
-
const status = response.status;
|
|
22461
|
-
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
22462
|
-
if (status === 200) {
|
|
22463
|
-
return response.text().then((_responseText) => {
|
|
22464
|
-
let result200: any = null;
|
|
22465
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
22466
|
-
result200 = WeldingIotConfigDto.fromJS(resultData200);
|
|
22467
|
-
return result200;
|
|
22468
|
-
});
|
|
22469
|
-
} else if (status !== 200 && status !== 204) {
|
|
22470
|
-
return response.text().then((_responseText) => {
|
|
22471
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
22472
|
-
});
|
|
22473
|
-
}
|
|
22474
|
-
return Promise.resolve<WeldingIotConfigDto>(null as any);
|
|
22475
|
-
}
|
|
22476
|
-
|
|
22477
|
-
deleteWeldingIotConfig(typeId: string, id: string): Promise<void> {
|
|
22478
|
-
let url_ = this.baseUrl + "/iot/welding/{typeId}/{id}";
|
|
22479
|
-
if (typeId === undefined || typeId === null)
|
|
22480
|
-
throw new Error("The parameter 'typeId' must be defined.");
|
|
22481
|
-
url_ = url_.replace("{typeId}", encodeURIComponent("" + typeId));
|
|
22482
|
-
if (id === undefined || id === null)
|
|
22483
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
22484
|
-
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
22485
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
22486
|
-
|
|
22487
|
-
let options_: RequestInit = {
|
|
22488
|
-
method: "DELETE",
|
|
22489
|
-
headers: {
|
|
22490
|
-
}
|
|
22491
|
-
};
|
|
22492
|
-
|
|
22493
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
22494
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
22495
|
-
}).then((_response: Response) => {
|
|
22496
|
-
return this.processDeleteWeldingIotConfig(_response);
|
|
22497
|
-
});
|
|
22498
|
-
}
|
|
22499
|
-
|
|
22500
|
-
protected processDeleteWeldingIotConfig(response: Response): Promise<void> {
|
|
22501
|
-
const status = response.status;
|
|
22502
|
-
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
22503
|
-
if (status === 204) {
|
|
22504
|
-
return response.text().then((_responseText) => {
|
|
22505
|
-
return;
|
|
22506
|
-
});
|
|
22507
|
-
} else if (status !== 200 && status !== 204) {
|
|
22508
|
-
return response.text().then((_responseText) => {
|
|
22509
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
22510
|
-
});
|
|
22511
|
-
}
|
|
22512
|
-
return Promise.resolve<void>(null as any);
|
|
22513
|
-
}
|
|
22514
|
-
}
|
|
22515
|
-
|
|
22516
22581
|
export interface ICompaniesClient {
|
|
22517
22582
|
|
|
22518
22583
|
listProductionCompanies(): Promise<ProductionCompanyDto[]>;
|
|
@@ -25302,6 +25367,92 @@ export interface IStateDto {
|
|
|
25302
25367
|
seconds: number;
|
|
25303
25368
|
}
|
|
25304
25369
|
|
|
25370
|
+
export class TimelinesDto implements ITimelinesDto {
|
|
25371
|
+
machineStateTimeline!: MachineStateDatapoint[];
|
|
25372
|
+
workorderTimeline!: WorkOrderDatapoint[];
|
|
25373
|
+
downtimeReasonsTimeline!: DowntimePeriodReasonDto[];
|
|
25374
|
+
programTimeline!: ProgramDatapoint[];
|
|
25375
|
+
|
|
25376
|
+
constructor(data?: ITimelinesDto) {
|
|
25377
|
+
if (data) {
|
|
25378
|
+
for (var property in data) {
|
|
25379
|
+
if (data.hasOwnProperty(property))
|
|
25380
|
+
(<any>this)[property] = (<any>data)[property];
|
|
25381
|
+
}
|
|
25382
|
+
}
|
|
25383
|
+
if (!data) {
|
|
25384
|
+
this.machineStateTimeline = [];
|
|
25385
|
+
this.workorderTimeline = [];
|
|
25386
|
+
this.downtimeReasonsTimeline = [];
|
|
25387
|
+
this.programTimeline = [];
|
|
25388
|
+
}
|
|
25389
|
+
}
|
|
25390
|
+
|
|
25391
|
+
init(_data?: any) {
|
|
25392
|
+
if (_data) {
|
|
25393
|
+
if (Array.isArray(_data["machineStateTimeline"])) {
|
|
25394
|
+
this.machineStateTimeline = [] as any;
|
|
25395
|
+
for (let item of _data["machineStateTimeline"])
|
|
25396
|
+
this.machineStateTimeline!.push(MachineStateDatapoint.fromJS(item));
|
|
25397
|
+
}
|
|
25398
|
+
if (Array.isArray(_data["workorderTimeline"])) {
|
|
25399
|
+
this.workorderTimeline = [] as any;
|
|
25400
|
+
for (let item of _data["workorderTimeline"])
|
|
25401
|
+
this.workorderTimeline!.push(WorkOrderDatapoint.fromJS(item));
|
|
25402
|
+
}
|
|
25403
|
+
if (Array.isArray(_data["downtimeReasonsTimeline"])) {
|
|
25404
|
+
this.downtimeReasonsTimeline = [] as any;
|
|
25405
|
+
for (let item of _data["downtimeReasonsTimeline"])
|
|
25406
|
+
this.downtimeReasonsTimeline!.push(DowntimePeriodReasonDto.fromJS(item));
|
|
25407
|
+
}
|
|
25408
|
+
if (Array.isArray(_data["programTimeline"])) {
|
|
25409
|
+
this.programTimeline = [] as any;
|
|
25410
|
+
for (let item of _data["programTimeline"])
|
|
25411
|
+
this.programTimeline!.push(ProgramDatapoint.fromJS(item));
|
|
25412
|
+
}
|
|
25413
|
+
}
|
|
25414
|
+
}
|
|
25415
|
+
|
|
25416
|
+
static fromJS(data: any): TimelinesDto {
|
|
25417
|
+
data = typeof data === 'object' ? data : {};
|
|
25418
|
+
let result = new TimelinesDto();
|
|
25419
|
+
result.init(data);
|
|
25420
|
+
return result;
|
|
25421
|
+
}
|
|
25422
|
+
|
|
25423
|
+
toJSON(data?: any) {
|
|
25424
|
+
data = typeof data === 'object' ? data : {};
|
|
25425
|
+
if (Array.isArray(this.machineStateTimeline)) {
|
|
25426
|
+
data["machineStateTimeline"] = [];
|
|
25427
|
+
for (let item of this.machineStateTimeline)
|
|
25428
|
+
data["machineStateTimeline"].push(item.toJSON());
|
|
25429
|
+
}
|
|
25430
|
+
if (Array.isArray(this.workorderTimeline)) {
|
|
25431
|
+
data["workorderTimeline"] = [];
|
|
25432
|
+
for (let item of this.workorderTimeline)
|
|
25433
|
+
data["workorderTimeline"].push(item.toJSON());
|
|
25434
|
+
}
|
|
25435
|
+
if (Array.isArray(this.downtimeReasonsTimeline)) {
|
|
25436
|
+
data["downtimeReasonsTimeline"] = [];
|
|
25437
|
+
for (let item of this.downtimeReasonsTimeline)
|
|
25438
|
+
data["downtimeReasonsTimeline"].push(item.toJSON());
|
|
25439
|
+
}
|
|
25440
|
+
if (Array.isArray(this.programTimeline)) {
|
|
25441
|
+
data["programTimeline"] = [];
|
|
25442
|
+
for (let item of this.programTimeline)
|
|
25443
|
+
data["programTimeline"].push(item.toJSON());
|
|
25444
|
+
}
|
|
25445
|
+
return data;
|
|
25446
|
+
}
|
|
25447
|
+
}
|
|
25448
|
+
|
|
25449
|
+
export interface ITimelinesDto {
|
|
25450
|
+
machineStateTimeline: MachineStateDatapoint[];
|
|
25451
|
+
workorderTimeline: WorkOrderDatapoint[];
|
|
25452
|
+
downtimeReasonsTimeline: DowntimePeriodReasonDto[];
|
|
25453
|
+
programTimeline: ProgramDatapoint[];
|
|
25454
|
+
}
|
|
25455
|
+
|
|
25305
25456
|
export class MachineStateDatapoint implements IMachineStateDatapoint {
|
|
25306
25457
|
machineStateText!: string;
|
|
25307
25458
|
machineState!: MachineState;
|
|
@@ -25491,6 +25642,166 @@ export interface IEmployeeDto {
|
|
|
25491
25642
|
azureAdObjectId?: string | null;
|
|
25492
25643
|
}
|
|
25493
25644
|
|
|
25645
|
+
export class WorkOrderDatapoint implements IWorkOrderDatapoint {
|
|
25646
|
+
workOrder!: string;
|
|
25647
|
+
id!: number;
|
|
25648
|
+
externalId!: string;
|
|
25649
|
+
subType?: string | null;
|
|
25650
|
+
startTime!: number;
|
|
25651
|
+
endTime?: number | null;
|
|
25652
|
+
metaData?: { [key: string]: string; } | null;
|
|
25653
|
+
|
|
25654
|
+
constructor(data?: IWorkOrderDatapoint) {
|
|
25655
|
+
if (data) {
|
|
25656
|
+
for (var property in data) {
|
|
25657
|
+
if (data.hasOwnProperty(property))
|
|
25658
|
+
(<any>this)[property] = (<any>data)[property];
|
|
25659
|
+
}
|
|
25660
|
+
}
|
|
25661
|
+
}
|
|
25662
|
+
|
|
25663
|
+
init(_data?: any) {
|
|
25664
|
+
if (_data) {
|
|
25665
|
+
this.workOrder = _data["workOrder"];
|
|
25666
|
+
this.id = _data["id"];
|
|
25667
|
+
this.externalId = _data["externalId"];
|
|
25668
|
+
this.subType = _data["subType"];
|
|
25669
|
+
this.startTime = _data["startTime"];
|
|
25670
|
+
this.endTime = _data["endTime"];
|
|
25671
|
+
if (_data["metaData"]) {
|
|
25672
|
+
this.metaData = {} as any;
|
|
25673
|
+
for (let key in _data["metaData"]) {
|
|
25674
|
+
if (_data["metaData"].hasOwnProperty(key))
|
|
25675
|
+
(<any>this.metaData)![key] = _data["metaData"][key];
|
|
25676
|
+
}
|
|
25677
|
+
}
|
|
25678
|
+
}
|
|
25679
|
+
}
|
|
25680
|
+
|
|
25681
|
+
static fromJS(data: any): WorkOrderDatapoint {
|
|
25682
|
+
data = typeof data === 'object' ? data : {};
|
|
25683
|
+
let result = new WorkOrderDatapoint();
|
|
25684
|
+
result.init(data);
|
|
25685
|
+
return result;
|
|
25686
|
+
}
|
|
25687
|
+
|
|
25688
|
+
toJSON(data?: any) {
|
|
25689
|
+
data = typeof data === 'object' ? data : {};
|
|
25690
|
+
data["workOrder"] = this.workOrder;
|
|
25691
|
+
data["id"] = this.id;
|
|
25692
|
+
data["externalId"] = this.externalId;
|
|
25693
|
+
data["subType"] = this.subType;
|
|
25694
|
+
data["startTime"] = this.startTime;
|
|
25695
|
+
data["endTime"] = this.endTime;
|
|
25696
|
+
if (this.metaData) {
|
|
25697
|
+
data["metaData"] = {};
|
|
25698
|
+
for (let key in this.metaData) {
|
|
25699
|
+
if (this.metaData.hasOwnProperty(key))
|
|
25700
|
+
(<any>data["metaData"])[key] = (<any>this.metaData)[key];
|
|
25701
|
+
}
|
|
25702
|
+
}
|
|
25703
|
+
return data;
|
|
25704
|
+
}
|
|
25705
|
+
}
|
|
25706
|
+
|
|
25707
|
+
export interface IWorkOrderDatapoint {
|
|
25708
|
+
workOrder: string;
|
|
25709
|
+
id: number;
|
|
25710
|
+
externalId: string;
|
|
25711
|
+
subType?: string | null;
|
|
25712
|
+
startTime: number;
|
|
25713
|
+
endTime?: number | null;
|
|
25714
|
+
metaData?: { [key: string]: string; } | null;
|
|
25715
|
+
}
|
|
25716
|
+
|
|
25717
|
+
export class ProgramDatapoint implements IProgramDatapoint {
|
|
25718
|
+
timestamp?: number;
|
|
25719
|
+
programValue?: string;
|
|
25720
|
+
|
|
25721
|
+
constructor(data?: IProgramDatapoint) {
|
|
25722
|
+
if (data) {
|
|
25723
|
+
for (var property in data) {
|
|
25724
|
+
if (data.hasOwnProperty(property))
|
|
25725
|
+
(<any>this)[property] = (<any>data)[property];
|
|
25726
|
+
}
|
|
25727
|
+
}
|
|
25728
|
+
}
|
|
25729
|
+
|
|
25730
|
+
init(_data?: any) {
|
|
25731
|
+
if (_data) {
|
|
25732
|
+
this.timestamp = _data["timestamp"];
|
|
25733
|
+
this.programValue = _data["programValue"];
|
|
25734
|
+
}
|
|
25735
|
+
}
|
|
25736
|
+
|
|
25737
|
+
static fromJS(data: any): ProgramDatapoint {
|
|
25738
|
+
data = typeof data === 'object' ? data : {};
|
|
25739
|
+
let result = new ProgramDatapoint();
|
|
25740
|
+
result.init(data);
|
|
25741
|
+
return result;
|
|
25742
|
+
}
|
|
25743
|
+
|
|
25744
|
+
toJSON(data?: any) {
|
|
25745
|
+
data = typeof data === 'object' ? data : {};
|
|
25746
|
+
data["timestamp"] = this.timestamp;
|
|
25747
|
+
data["programValue"] = this.programValue;
|
|
25748
|
+
return data;
|
|
25749
|
+
}
|
|
25750
|
+
}
|
|
25751
|
+
|
|
25752
|
+
export interface IProgramDatapoint {
|
|
25753
|
+
timestamp?: number;
|
|
25754
|
+
programValue?: string;
|
|
25755
|
+
}
|
|
25756
|
+
|
|
25757
|
+
export class TimelineFilterDto implements ITimelineFilterDto {
|
|
25758
|
+
includeMachineState?: boolean | null;
|
|
25759
|
+
includeWorkorder?: boolean | null;
|
|
25760
|
+
includeDowntimeReasons?: boolean | null;
|
|
25761
|
+
includeProgram?: boolean | null;
|
|
25762
|
+
|
|
25763
|
+
constructor(data?: ITimelineFilterDto) {
|
|
25764
|
+
if (data) {
|
|
25765
|
+
for (var property in data) {
|
|
25766
|
+
if (data.hasOwnProperty(property))
|
|
25767
|
+
(<any>this)[property] = (<any>data)[property];
|
|
25768
|
+
}
|
|
25769
|
+
}
|
|
25770
|
+
}
|
|
25771
|
+
|
|
25772
|
+
init(_data?: any) {
|
|
25773
|
+
if (_data) {
|
|
25774
|
+
this.includeMachineState = _data["includeMachineState"];
|
|
25775
|
+
this.includeWorkorder = _data["includeWorkorder"];
|
|
25776
|
+
this.includeDowntimeReasons = _data["includeDowntimeReasons"];
|
|
25777
|
+
this.includeProgram = _data["includeProgram"];
|
|
25778
|
+
}
|
|
25779
|
+
}
|
|
25780
|
+
|
|
25781
|
+
static fromJS(data: any): TimelineFilterDto {
|
|
25782
|
+
data = typeof data === 'object' ? data : {};
|
|
25783
|
+
let result = new TimelineFilterDto();
|
|
25784
|
+
result.init(data);
|
|
25785
|
+
return result;
|
|
25786
|
+
}
|
|
25787
|
+
|
|
25788
|
+
toJSON(data?: any) {
|
|
25789
|
+
data = typeof data === 'object' ? data : {};
|
|
25790
|
+
data["includeMachineState"] = this.includeMachineState;
|
|
25791
|
+
data["includeWorkorder"] = this.includeWorkorder;
|
|
25792
|
+
data["includeDowntimeReasons"] = this.includeDowntimeReasons;
|
|
25793
|
+
data["includeProgram"] = this.includeProgram;
|
|
25794
|
+
return data;
|
|
25795
|
+
}
|
|
25796
|
+
}
|
|
25797
|
+
|
|
25798
|
+
export interface ITimelineFilterDto {
|
|
25799
|
+
includeMachineState?: boolean | null;
|
|
25800
|
+
includeWorkorder?: boolean | null;
|
|
25801
|
+
includeDowntimeReasons?: boolean | null;
|
|
25802
|
+
includeProgram?: boolean | null;
|
|
25803
|
+
}
|
|
25804
|
+
|
|
25494
25805
|
export class MachineUptimesAggregateDto implements IMachineUptimesAggregateDto {
|
|
25495
25806
|
machineUptimes!: MachineUptimeDto[];
|
|
25496
25807
|
sum!: MachineUptimeSumDto;
|
|
@@ -25819,46 +26130,6 @@ export interface INumericNullableValueWithTimestamp {
|
|
|
25819
26130
|
value?: number | null;
|
|
25820
26131
|
}
|
|
25821
26132
|
|
|
25822
|
-
export class ProgramDatapoint implements IProgramDatapoint {
|
|
25823
|
-
timestamp?: number;
|
|
25824
|
-
programValue?: string;
|
|
25825
|
-
|
|
25826
|
-
constructor(data?: IProgramDatapoint) {
|
|
25827
|
-
if (data) {
|
|
25828
|
-
for (var property in data) {
|
|
25829
|
-
if (data.hasOwnProperty(property))
|
|
25830
|
-
(<any>this)[property] = (<any>data)[property];
|
|
25831
|
-
}
|
|
25832
|
-
}
|
|
25833
|
-
}
|
|
25834
|
-
|
|
25835
|
-
init(_data?: any) {
|
|
25836
|
-
if (_data) {
|
|
25837
|
-
this.timestamp = _data["timestamp"];
|
|
25838
|
-
this.programValue = _data["programValue"];
|
|
25839
|
-
}
|
|
25840
|
-
}
|
|
25841
|
-
|
|
25842
|
-
static fromJS(data: any): ProgramDatapoint {
|
|
25843
|
-
data = typeof data === 'object' ? data : {};
|
|
25844
|
-
let result = new ProgramDatapoint();
|
|
25845
|
-
result.init(data);
|
|
25846
|
-
return result;
|
|
25847
|
-
}
|
|
25848
|
-
|
|
25849
|
-
toJSON(data?: any) {
|
|
25850
|
-
data = typeof data === 'object' ? data : {};
|
|
25851
|
-
data["timestamp"] = this.timestamp;
|
|
25852
|
-
data["programValue"] = this.programValue;
|
|
25853
|
-
return data;
|
|
25854
|
-
}
|
|
25855
|
-
}
|
|
25856
|
-
|
|
25857
|
-
export interface IProgramDatapoint {
|
|
25858
|
-
timestamp?: number;
|
|
25859
|
-
programValue?: string;
|
|
25860
|
-
}
|
|
25861
|
-
|
|
25862
26133
|
export class UserAppDto implements IUserAppDto {
|
|
25863
26134
|
key!: string;
|
|
25864
26135
|
name!: string;
|
|
@@ -35788,78 +36059,6 @@ export interface IWorkOrderProjectDto {
|
|
|
35788
36059
|
projectManager?: string | null;
|
|
35789
36060
|
}
|
|
35790
36061
|
|
|
35791
|
-
export class WorkOrderDatapoint implements IWorkOrderDatapoint {
|
|
35792
|
-
workOrder!: string;
|
|
35793
|
-
id!: number;
|
|
35794
|
-
externalId!: string;
|
|
35795
|
-
subType?: string | null;
|
|
35796
|
-
startTime!: number;
|
|
35797
|
-
endTime?: number | null;
|
|
35798
|
-
metaData?: { [key: string]: string; } | null;
|
|
35799
|
-
|
|
35800
|
-
constructor(data?: IWorkOrderDatapoint) {
|
|
35801
|
-
if (data) {
|
|
35802
|
-
for (var property in data) {
|
|
35803
|
-
if (data.hasOwnProperty(property))
|
|
35804
|
-
(<any>this)[property] = (<any>data)[property];
|
|
35805
|
-
}
|
|
35806
|
-
}
|
|
35807
|
-
}
|
|
35808
|
-
|
|
35809
|
-
init(_data?: any) {
|
|
35810
|
-
if (_data) {
|
|
35811
|
-
this.workOrder = _data["workOrder"];
|
|
35812
|
-
this.id = _data["id"];
|
|
35813
|
-
this.externalId = _data["externalId"];
|
|
35814
|
-
this.subType = _data["subType"];
|
|
35815
|
-
this.startTime = _data["startTime"];
|
|
35816
|
-
this.endTime = _data["endTime"];
|
|
35817
|
-
if (_data["metaData"]) {
|
|
35818
|
-
this.metaData = {} as any;
|
|
35819
|
-
for (let key in _data["metaData"]) {
|
|
35820
|
-
if (_data["metaData"].hasOwnProperty(key))
|
|
35821
|
-
(<any>this.metaData)![key] = _data["metaData"][key];
|
|
35822
|
-
}
|
|
35823
|
-
}
|
|
35824
|
-
}
|
|
35825
|
-
}
|
|
35826
|
-
|
|
35827
|
-
static fromJS(data: any): WorkOrderDatapoint {
|
|
35828
|
-
data = typeof data === 'object' ? data : {};
|
|
35829
|
-
let result = new WorkOrderDatapoint();
|
|
35830
|
-
result.init(data);
|
|
35831
|
-
return result;
|
|
35832
|
-
}
|
|
35833
|
-
|
|
35834
|
-
toJSON(data?: any) {
|
|
35835
|
-
data = typeof data === 'object' ? data : {};
|
|
35836
|
-
data["workOrder"] = this.workOrder;
|
|
35837
|
-
data["id"] = this.id;
|
|
35838
|
-
data["externalId"] = this.externalId;
|
|
35839
|
-
data["subType"] = this.subType;
|
|
35840
|
-
data["startTime"] = this.startTime;
|
|
35841
|
-
data["endTime"] = this.endTime;
|
|
35842
|
-
if (this.metaData) {
|
|
35843
|
-
data["metaData"] = {};
|
|
35844
|
-
for (let key in this.metaData) {
|
|
35845
|
-
if (this.metaData.hasOwnProperty(key))
|
|
35846
|
-
(<any>data["metaData"])[key] = (<any>this.metaData)[key];
|
|
35847
|
-
}
|
|
35848
|
-
}
|
|
35849
|
-
return data;
|
|
35850
|
-
}
|
|
35851
|
-
}
|
|
35852
|
-
|
|
35853
|
-
export interface IWorkOrderDatapoint {
|
|
35854
|
-
workOrder: string;
|
|
35855
|
-
id: number;
|
|
35856
|
-
externalId: string;
|
|
35857
|
-
subType?: string | null;
|
|
35858
|
-
startTime: number;
|
|
35859
|
-
endTime?: number | null;
|
|
35860
|
-
metaData?: { [key: string]: string; } | null;
|
|
35861
|
-
}
|
|
35862
|
-
|
|
35863
36062
|
export class UtilizationSummaryDto implements IUtilizationSummaryDto {
|
|
35864
36063
|
factory!: FactoryUtilizationDto;
|
|
35865
36064
|
groups!: MachineGroupUtilizationDto[];
|
|
@@ -52049,6 +52248,226 @@ export interface IProductionResourceDto {
|
|
|
52049
52248
|
department?: DepartmentDto | null;
|
|
52050
52249
|
}
|
|
52051
52250
|
|
|
52251
|
+
export class IotTypeSourceDto implements IIotTypeSourceDto {
|
|
52252
|
+
id!: string;
|
|
52253
|
+
name!: string;
|
|
52254
|
+
|
|
52255
|
+
constructor(data?: IIotTypeSourceDto) {
|
|
52256
|
+
if (data) {
|
|
52257
|
+
for (var property in data) {
|
|
52258
|
+
if (data.hasOwnProperty(property))
|
|
52259
|
+
(<any>this)[property] = (<any>data)[property];
|
|
52260
|
+
}
|
|
52261
|
+
}
|
|
52262
|
+
}
|
|
52263
|
+
|
|
52264
|
+
init(_data?: any) {
|
|
52265
|
+
if (_data) {
|
|
52266
|
+
this.id = _data["id"];
|
|
52267
|
+
this.name = _data["name"];
|
|
52268
|
+
}
|
|
52269
|
+
}
|
|
52270
|
+
|
|
52271
|
+
static fromJS(data: any): IotTypeSourceDto {
|
|
52272
|
+
data = typeof data === 'object' ? data : {};
|
|
52273
|
+
let result = new IotTypeSourceDto();
|
|
52274
|
+
result.init(data);
|
|
52275
|
+
return result;
|
|
52276
|
+
}
|
|
52277
|
+
|
|
52278
|
+
toJSON(data?: any) {
|
|
52279
|
+
data = typeof data === 'object' ? data : {};
|
|
52280
|
+
data["id"] = this.id;
|
|
52281
|
+
data["name"] = this.name;
|
|
52282
|
+
return data;
|
|
52283
|
+
}
|
|
52284
|
+
}
|
|
52285
|
+
|
|
52286
|
+
export interface IIotTypeSourceDto {
|
|
52287
|
+
id: string;
|
|
52288
|
+
name: string;
|
|
52289
|
+
}
|
|
52290
|
+
|
|
52291
|
+
export class ElectricalIotConfigDto implements IElectricalIotConfigDto {
|
|
52292
|
+
id!: string;
|
|
52293
|
+
typeId!: string;
|
|
52294
|
+
serialNumber?: string | null;
|
|
52295
|
+
assetId!: number;
|
|
52296
|
+
assetExternalId?: string | null;
|
|
52297
|
+
phases?: number;
|
|
52298
|
+
electricalAssetId?: number;
|
|
52299
|
+
electricalAssetExternalId?: string | null;
|
|
52300
|
+
electricalTimeseriesId?: number;
|
|
52301
|
+
electricalTimeseriesExternalId?: string | null;
|
|
52302
|
+
|
|
52303
|
+
constructor(data?: IElectricalIotConfigDto) {
|
|
52304
|
+
if (data) {
|
|
52305
|
+
for (var property in data) {
|
|
52306
|
+
if (data.hasOwnProperty(property))
|
|
52307
|
+
(<any>this)[property] = (<any>data)[property];
|
|
52308
|
+
}
|
|
52309
|
+
}
|
|
52310
|
+
}
|
|
52311
|
+
|
|
52312
|
+
init(_data?: any) {
|
|
52313
|
+
if (_data) {
|
|
52314
|
+
this.id = _data["id"];
|
|
52315
|
+
this.typeId = _data["typeId"];
|
|
52316
|
+
this.serialNumber = _data["serialNumber"];
|
|
52317
|
+
this.assetId = _data["assetId"];
|
|
52318
|
+
this.assetExternalId = _data["assetExternalId"];
|
|
52319
|
+
this.phases = _data["phases"];
|
|
52320
|
+
this.electricalAssetId = _data["electricalAssetId"];
|
|
52321
|
+
this.electricalAssetExternalId = _data["electricalAssetExternalId"];
|
|
52322
|
+
this.electricalTimeseriesId = _data["electricalTimeseriesId"];
|
|
52323
|
+
this.electricalTimeseriesExternalId = _data["electricalTimeseriesExternalId"];
|
|
52324
|
+
}
|
|
52325
|
+
}
|
|
52326
|
+
|
|
52327
|
+
static fromJS(data: any): ElectricalIotConfigDto {
|
|
52328
|
+
data = typeof data === 'object' ? data : {};
|
|
52329
|
+
let result = new ElectricalIotConfigDto();
|
|
52330
|
+
result.init(data);
|
|
52331
|
+
return result;
|
|
52332
|
+
}
|
|
52333
|
+
|
|
52334
|
+
toJSON(data?: any) {
|
|
52335
|
+
data = typeof data === 'object' ? data : {};
|
|
52336
|
+
data["id"] = this.id;
|
|
52337
|
+
data["typeId"] = this.typeId;
|
|
52338
|
+
data["serialNumber"] = this.serialNumber;
|
|
52339
|
+
data["assetId"] = this.assetId;
|
|
52340
|
+
data["assetExternalId"] = this.assetExternalId;
|
|
52341
|
+
data["phases"] = this.phases;
|
|
52342
|
+
data["electricalAssetId"] = this.electricalAssetId;
|
|
52343
|
+
data["electricalAssetExternalId"] = this.electricalAssetExternalId;
|
|
52344
|
+
data["electricalTimeseriesId"] = this.electricalTimeseriesId;
|
|
52345
|
+
data["electricalTimeseriesExternalId"] = this.electricalTimeseriesExternalId;
|
|
52346
|
+
return data;
|
|
52347
|
+
}
|
|
52348
|
+
}
|
|
52349
|
+
|
|
52350
|
+
export interface IElectricalIotConfigDto {
|
|
52351
|
+
id: string;
|
|
52352
|
+
typeId: string;
|
|
52353
|
+
serialNumber?: string | null;
|
|
52354
|
+
assetId: number;
|
|
52355
|
+
assetExternalId?: string | null;
|
|
52356
|
+
phases?: number;
|
|
52357
|
+
electricalAssetId?: number;
|
|
52358
|
+
electricalAssetExternalId?: string | null;
|
|
52359
|
+
electricalTimeseriesId?: number;
|
|
52360
|
+
electricalTimeseriesExternalId?: string | null;
|
|
52361
|
+
}
|
|
52362
|
+
|
|
52363
|
+
export class CreateElectricalIotConfig implements ICreateElectricalIotConfig {
|
|
52364
|
+
typeId?: string | null;
|
|
52365
|
+
serialNumber?: string | null;
|
|
52366
|
+
assetId?: number | null;
|
|
52367
|
+
assetExternalId?: string | null;
|
|
52368
|
+
|
|
52369
|
+
constructor(data?: ICreateElectricalIotConfig) {
|
|
52370
|
+
if (data) {
|
|
52371
|
+
for (var property in data) {
|
|
52372
|
+
if (data.hasOwnProperty(property))
|
|
52373
|
+
(<any>this)[property] = (<any>data)[property];
|
|
52374
|
+
}
|
|
52375
|
+
}
|
|
52376
|
+
}
|
|
52377
|
+
|
|
52378
|
+
init(_data?: any) {
|
|
52379
|
+
if (_data) {
|
|
52380
|
+
this.typeId = _data["typeId"];
|
|
52381
|
+
this.serialNumber = _data["serialNumber"];
|
|
52382
|
+
this.assetId = _data["assetId"];
|
|
52383
|
+
this.assetExternalId = _data["assetExternalId"];
|
|
52384
|
+
}
|
|
52385
|
+
}
|
|
52386
|
+
|
|
52387
|
+
static fromJS(data: any): CreateElectricalIotConfig {
|
|
52388
|
+
data = typeof data === 'object' ? data : {};
|
|
52389
|
+
let result = new CreateElectricalIotConfig();
|
|
52390
|
+
result.init(data);
|
|
52391
|
+
return result;
|
|
52392
|
+
}
|
|
52393
|
+
|
|
52394
|
+
toJSON(data?: any) {
|
|
52395
|
+
data = typeof data === 'object' ? data : {};
|
|
52396
|
+
data["typeId"] = this.typeId;
|
|
52397
|
+
data["serialNumber"] = this.serialNumber;
|
|
52398
|
+
data["assetId"] = this.assetId;
|
|
52399
|
+
data["assetExternalId"] = this.assetExternalId;
|
|
52400
|
+
return data;
|
|
52401
|
+
}
|
|
52402
|
+
}
|
|
52403
|
+
|
|
52404
|
+
export interface ICreateElectricalIotConfig {
|
|
52405
|
+
typeId?: string | null;
|
|
52406
|
+
serialNumber?: string | null;
|
|
52407
|
+
assetId?: number | null;
|
|
52408
|
+
assetExternalId?: string | null;
|
|
52409
|
+
}
|
|
52410
|
+
|
|
52411
|
+
export class WeldingIotConfigDto implements IWeldingIotConfigDto {
|
|
52412
|
+
|
|
52413
|
+
constructor(data?: IWeldingIotConfigDto) {
|
|
52414
|
+
if (data) {
|
|
52415
|
+
for (var property in data) {
|
|
52416
|
+
if (data.hasOwnProperty(property))
|
|
52417
|
+
(<any>this)[property] = (<any>data)[property];
|
|
52418
|
+
}
|
|
52419
|
+
}
|
|
52420
|
+
}
|
|
52421
|
+
|
|
52422
|
+
init(_data?: any) {
|
|
52423
|
+
}
|
|
52424
|
+
|
|
52425
|
+
static fromJS(data: any): WeldingIotConfigDto {
|
|
52426
|
+
data = typeof data === 'object' ? data : {};
|
|
52427
|
+
let result = new WeldingIotConfigDto();
|
|
52428
|
+
result.init(data);
|
|
52429
|
+
return result;
|
|
52430
|
+
}
|
|
52431
|
+
|
|
52432
|
+
toJSON(data?: any) {
|
|
52433
|
+
data = typeof data === 'object' ? data : {};
|
|
52434
|
+
return data;
|
|
52435
|
+
}
|
|
52436
|
+
}
|
|
52437
|
+
|
|
52438
|
+
export interface IWeldingIotConfigDto {
|
|
52439
|
+
}
|
|
52440
|
+
|
|
52441
|
+
export class CreateWeldingIotConfig implements ICreateWeldingIotConfig {
|
|
52442
|
+
|
|
52443
|
+
constructor(data?: ICreateWeldingIotConfig) {
|
|
52444
|
+
if (data) {
|
|
52445
|
+
for (var property in data) {
|
|
52446
|
+
if (data.hasOwnProperty(property))
|
|
52447
|
+
(<any>this)[property] = (<any>data)[property];
|
|
52448
|
+
}
|
|
52449
|
+
}
|
|
52450
|
+
}
|
|
52451
|
+
|
|
52452
|
+
init(_data?: any) {
|
|
52453
|
+
}
|
|
52454
|
+
|
|
52455
|
+
static fromJS(data: any): CreateWeldingIotConfig {
|
|
52456
|
+
data = typeof data === 'object' ? data : {};
|
|
52457
|
+
let result = new CreateWeldingIotConfig();
|
|
52458
|
+
result.init(data);
|
|
52459
|
+
return result;
|
|
52460
|
+
}
|
|
52461
|
+
|
|
52462
|
+
toJSON(data?: any) {
|
|
52463
|
+
data = typeof data === 'object' ? data : {};
|
|
52464
|
+
return data;
|
|
52465
|
+
}
|
|
52466
|
+
}
|
|
52467
|
+
|
|
52468
|
+
export interface ICreateWeldingIotConfig {
|
|
52469
|
+
}
|
|
52470
|
+
|
|
52052
52471
|
export class PagedResultOfMeasurementFormListDto implements IPagedResultOfMeasurementFormListDto {
|
|
52053
52472
|
results!: MeasurementFormListDto[];
|
|
52054
52473
|
continuationToken?: string | null;
|
|
@@ -52477,7 +52896,8 @@ export interface IMeasurementFormSchemaAttachmentDto {
|
|
|
52477
52896
|
|
|
52478
52897
|
export class MeasurementFormGroupedElementDto implements IMeasurementFormGroupedElementDto {
|
|
52479
52898
|
id!: string;
|
|
52480
|
-
balloonId
|
|
52899
|
+
balloonId?: string | null;
|
|
52900
|
+
reference!: number;
|
|
52481
52901
|
imageUrl?: string | null;
|
|
52482
52902
|
thumbnailUrl?: string | null;
|
|
52483
52903
|
section?: string | null;
|
|
@@ -52504,6 +52924,7 @@ export class MeasurementFormGroupedElementDto implements IMeasurementFormGrouped
|
|
|
52504
52924
|
includeInCustomerDocumentation!: boolean;
|
|
52505
52925
|
isDocumentedExternally!: boolean;
|
|
52506
52926
|
balloonQuantity?: number | null;
|
|
52927
|
+
referenceQuantity?: number | null;
|
|
52507
52928
|
plusToleranceText?: string | null;
|
|
52508
52929
|
minusToleranceText?: string | null;
|
|
52509
52930
|
coatingThickness?: number | null;
|
|
@@ -52530,6 +52951,7 @@ export class MeasurementFormGroupedElementDto implements IMeasurementFormGrouped
|
|
|
52530
52951
|
if (_data) {
|
|
52531
52952
|
this.id = _data["id"];
|
|
52532
52953
|
this.balloonId = _data["balloonId"];
|
|
52954
|
+
this.reference = _data["reference"];
|
|
52533
52955
|
this.imageUrl = _data["imageUrl"];
|
|
52534
52956
|
this.thumbnailUrl = _data["thumbnailUrl"];
|
|
52535
52957
|
this.section = _data["section"];
|
|
@@ -52556,6 +52978,7 @@ export class MeasurementFormGroupedElementDto implements IMeasurementFormGrouped
|
|
|
52556
52978
|
this.includeInCustomerDocumentation = _data["includeInCustomerDocumentation"];
|
|
52557
52979
|
this.isDocumentedExternally = _data["isDocumentedExternally"];
|
|
52558
52980
|
this.balloonQuantity = _data["balloonQuantity"];
|
|
52981
|
+
this.referenceQuantity = _data["referenceQuantity"];
|
|
52559
52982
|
this.plusToleranceText = _data["plusToleranceText"];
|
|
52560
52983
|
this.minusToleranceText = _data["minusToleranceText"];
|
|
52561
52984
|
this.coatingThickness = _data["coatingThickness"];
|
|
@@ -52582,6 +53005,7 @@ export class MeasurementFormGroupedElementDto implements IMeasurementFormGrouped
|
|
|
52582
53005
|
data = typeof data === 'object' ? data : {};
|
|
52583
53006
|
data["id"] = this.id;
|
|
52584
53007
|
data["balloonId"] = this.balloonId;
|
|
53008
|
+
data["reference"] = this.reference;
|
|
52585
53009
|
data["imageUrl"] = this.imageUrl;
|
|
52586
53010
|
data["thumbnailUrl"] = this.thumbnailUrl;
|
|
52587
53011
|
data["section"] = this.section;
|
|
@@ -52608,6 +53032,7 @@ export class MeasurementFormGroupedElementDto implements IMeasurementFormGrouped
|
|
|
52608
53032
|
data["includeInCustomerDocumentation"] = this.includeInCustomerDocumentation;
|
|
52609
53033
|
data["isDocumentedExternally"] = this.isDocumentedExternally;
|
|
52610
53034
|
data["balloonQuantity"] = this.balloonQuantity;
|
|
53035
|
+
data["referenceQuantity"] = this.referenceQuantity;
|
|
52611
53036
|
data["plusToleranceText"] = this.plusToleranceText;
|
|
52612
53037
|
data["minusToleranceText"] = this.minusToleranceText;
|
|
52613
53038
|
data["coatingThickness"] = this.coatingThickness;
|
|
@@ -52626,7 +53051,8 @@ export class MeasurementFormGroupedElementDto implements IMeasurementFormGrouped
|
|
|
52626
53051
|
|
|
52627
53052
|
export interface IMeasurementFormGroupedElementDto {
|
|
52628
53053
|
id: string;
|
|
52629
|
-
balloonId
|
|
53054
|
+
balloonId?: string | null;
|
|
53055
|
+
reference: number;
|
|
52630
53056
|
imageUrl?: string | null;
|
|
52631
53057
|
thumbnailUrl?: string | null;
|
|
52632
53058
|
section?: string | null;
|
|
@@ -52653,6 +53079,7 @@ export interface IMeasurementFormGroupedElementDto {
|
|
|
52653
53079
|
includeInCustomerDocumentation: boolean;
|
|
52654
53080
|
isDocumentedExternally: boolean;
|
|
52655
53081
|
balloonQuantity?: number | null;
|
|
53082
|
+
referenceQuantity?: number | null;
|
|
52656
53083
|
plusToleranceText?: string | null;
|
|
52657
53084
|
minusToleranceText?: string | null;
|
|
52658
53085
|
coatingThickness?: number | null;
|
|
@@ -53056,7 +53483,8 @@ export interface IUpdateSchemaGroupedElementsRequest {
|
|
|
53056
53483
|
}
|
|
53057
53484
|
|
|
53058
53485
|
export class UpdateSchemaGroupedElementDto implements IUpdateSchemaGroupedElementDto {
|
|
53059
|
-
balloonId
|
|
53486
|
+
balloonId?: string | null;
|
|
53487
|
+
reference!: number;
|
|
53060
53488
|
frequency!: MeasurementFrequency;
|
|
53061
53489
|
frequencyParameter?: number | null;
|
|
53062
53490
|
includeInCustomerDocumentation!: boolean;
|
|
@@ -53076,6 +53504,7 @@ export class UpdateSchemaGroupedElementDto implements IUpdateSchemaGroupedElemen
|
|
|
53076
53504
|
init(_data?: any) {
|
|
53077
53505
|
if (_data) {
|
|
53078
53506
|
this.balloonId = _data["balloonId"];
|
|
53507
|
+
this.reference = _data["reference"];
|
|
53079
53508
|
this.frequency = _data["frequency"];
|
|
53080
53509
|
this.frequencyParameter = _data["frequencyParameter"];
|
|
53081
53510
|
this.includeInCustomerDocumentation = _data["includeInCustomerDocumentation"];
|
|
@@ -53095,6 +53524,7 @@ export class UpdateSchemaGroupedElementDto implements IUpdateSchemaGroupedElemen
|
|
|
53095
53524
|
toJSON(data?: any) {
|
|
53096
53525
|
data = typeof data === 'object' ? data : {};
|
|
53097
53526
|
data["balloonId"] = this.balloonId;
|
|
53527
|
+
data["reference"] = this.reference;
|
|
53098
53528
|
data["frequency"] = this.frequency;
|
|
53099
53529
|
data["frequencyParameter"] = this.frequencyParameter;
|
|
53100
53530
|
data["includeInCustomerDocumentation"] = this.includeInCustomerDocumentation;
|
|
@@ -53106,7 +53536,8 @@ export class UpdateSchemaGroupedElementDto implements IUpdateSchemaGroupedElemen
|
|
|
53106
53536
|
}
|
|
53107
53537
|
|
|
53108
53538
|
export interface IUpdateSchemaGroupedElementDto {
|
|
53109
|
-
balloonId
|
|
53539
|
+
balloonId?: string | null;
|
|
53540
|
+
reference: number;
|
|
53110
53541
|
frequency: MeasurementFrequency;
|
|
53111
53542
|
frequencyParameter?: number | null;
|
|
53112
53543
|
includeInCustomerDocumentation: boolean;
|
|
@@ -53116,8 +53547,10 @@ export interface IUpdateSchemaGroupedElementDto {
|
|
|
53116
53547
|
}
|
|
53117
53548
|
|
|
53118
53549
|
export class UpdateSchemaGroupedElementRowDto implements IUpdateSchemaGroupedElementRowDto {
|
|
53119
|
-
id
|
|
53120
|
-
balloonId
|
|
53550
|
+
id?: string;
|
|
53551
|
+
balloonId?: string;
|
|
53552
|
+
oldReference!: number;
|
|
53553
|
+
newReference!: number;
|
|
53121
53554
|
section?: string | null;
|
|
53122
53555
|
pageNumber?: number | null;
|
|
53123
53556
|
measurements?: number | null;
|
|
@@ -53149,6 +53582,8 @@ export class UpdateSchemaGroupedElementRowDto implements IUpdateSchemaGroupedEle
|
|
|
53149
53582
|
if (_data) {
|
|
53150
53583
|
this.id = _data["id"];
|
|
53151
53584
|
this.balloonId = _data["balloonId"];
|
|
53585
|
+
this.oldReference = _data["oldReference"];
|
|
53586
|
+
this.newReference = _data["newReference"];
|
|
53152
53587
|
this.section = _data["section"];
|
|
53153
53588
|
this.pageNumber = _data["pageNumber"];
|
|
53154
53589
|
this.measurements = _data["measurements"];
|
|
@@ -53180,6 +53615,8 @@ export class UpdateSchemaGroupedElementRowDto implements IUpdateSchemaGroupedEle
|
|
|
53180
53615
|
data = typeof data === 'object' ? data : {};
|
|
53181
53616
|
data["id"] = this.id;
|
|
53182
53617
|
data["balloonId"] = this.balloonId;
|
|
53618
|
+
data["oldReference"] = this.oldReference;
|
|
53619
|
+
data["newReference"] = this.newReference;
|
|
53183
53620
|
data["section"] = this.section;
|
|
53184
53621
|
data["pageNumber"] = this.pageNumber;
|
|
53185
53622
|
data["measurements"] = this.measurements;
|
|
@@ -53202,8 +53639,10 @@ export class UpdateSchemaGroupedElementRowDto implements IUpdateSchemaGroupedEle
|
|
|
53202
53639
|
}
|
|
53203
53640
|
|
|
53204
53641
|
export interface IUpdateSchemaGroupedElementRowDto {
|
|
53205
|
-
id
|
|
53206
|
-
balloonId
|
|
53642
|
+
id?: string;
|
|
53643
|
+
balloonId?: string;
|
|
53644
|
+
oldReference: number;
|
|
53645
|
+
newReference: number;
|
|
53207
53646
|
section?: string | null;
|
|
53208
53647
|
pageNumber?: number | null;
|
|
53209
53648
|
measurements?: number | null;
|
|
@@ -53224,7 +53663,8 @@ export interface IUpdateSchemaGroupedElementRowDto {
|
|
|
53224
53663
|
}
|
|
53225
53664
|
|
|
53226
53665
|
export class DeleteSchemaGroupedElementRowsDto implements IDeleteSchemaGroupedElementRowsDto {
|
|
53227
|
-
balloonIds
|
|
53666
|
+
balloonIds?: string[];
|
|
53667
|
+
references?: number[];
|
|
53228
53668
|
|
|
53229
53669
|
constructor(data?: IDeleteSchemaGroupedElementRowsDto) {
|
|
53230
53670
|
if (data) {
|
|
@@ -53233,9 +53673,6 @@ export class DeleteSchemaGroupedElementRowsDto implements IDeleteSchemaGroupedEl
|
|
|
53233
53673
|
(<any>this)[property] = (<any>data)[property];
|
|
53234
53674
|
}
|
|
53235
53675
|
}
|
|
53236
|
-
if (!data) {
|
|
53237
|
-
this.balloonIds = [];
|
|
53238
|
-
}
|
|
53239
53676
|
}
|
|
53240
53677
|
|
|
53241
53678
|
init(_data?: any) {
|
|
@@ -53245,6 +53682,11 @@ export class DeleteSchemaGroupedElementRowsDto implements IDeleteSchemaGroupedEl
|
|
|
53245
53682
|
for (let item of _data["balloonIds"])
|
|
53246
53683
|
this.balloonIds!.push(item);
|
|
53247
53684
|
}
|
|
53685
|
+
if (Array.isArray(_data["references"])) {
|
|
53686
|
+
this.references = [] as any;
|
|
53687
|
+
for (let item of _data["references"])
|
|
53688
|
+
this.references!.push(item);
|
|
53689
|
+
}
|
|
53248
53690
|
}
|
|
53249
53691
|
}
|
|
53250
53692
|
|
|
@@ -53262,18 +53704,25 @@ export class DeleteSchemaGroupedElementRowsDto implements IDeleteSchemaGroupedEl
|
|
|
53262
53704
|
for (let item of this.balloonIds)
|
|
53263
53705
|
data["balloonIds"].push(item);
|
|
53264
53706
|
}
|
|
53707
|
+
if (Array.isArray(this.references)) {
|
|
53708
|
+
data["references"] = [];
|
|
53709
|
+
for (let item of this.references)
|
|
53710
|
+
data["references"].push(item);
|
|
53711
|
+
}
|
|
53265
53712
|
return data;
|
|
53266
53713
|
}
|
|
53267
53714
|
}
|
|
53268
53715
|
|
|
53269
53716
|
export interface IDeleteSchemaGroupedElementRowsDto {
|
|
53270
|
-
balloonIds
|
|
53717
|
+
balloonIds?: string[];
|
|
53718
|
+
references?: number[];
|
|
53271
53719
|
}
|
|
53272
53720
|
|
|
53273
53721
|
export class UploadMeasurementImageRequest implements IUploadMeasurementImageRequest {
|
|
53274
53722
|
uploadKey!: string;
|
|
53275
53723
|
filename!: string;
|
|
53276
|
-
ballonId
|
|
53724
|
+
ballonId?: string;
|
|
53725
|
+
reference!: number;
|
|
53277
53726
|
|
|
53278
53727
|
constructor(data?: IUploadMeasurementImageRequest) {
|
|
53279
53728
|
if (data) {
|
|
@@ -53289,6 +53738,7 @@ export class UploadMeasurementImageRequest implements IUploadMeasurementImageReq
|
|
|
53289
53738
|
this.uploadKey = _data["uploadKey"];
|
|
53290
53739
|
this.filename = _data["filename"];
|
|
53291
53740
|
this.ballonId = _data["ballonId"];
|
|
53741
|
+
this.reference = _data["reference"];
|
|
53292
53742
|
}
|
|
53293
53743
|
}
|
|
53294
53744
|
|
|
@@ -53304,6 +53754,7 @@ export class UploadMeasurementImageRequest implements IUploadMeasurementImageReq
|
|
|
53304
53754
|
data["uploadKey"] = this.uploadKey;
|
|
53305
53755
|
data["filename"] = this.filename;
|
|
53306
53756
|
data["ballonId"] = this.ballonId;
|
|
53757
|
+
data["reference"] = this.reference;
|
|
53307
53758
|
return data;
|
|
53308
53759
|
}
|
|
53309
53760
|
}
|
|
@@ -53311,7 +53762,8 @@ export class UploadMeasurementImageRequest implements IUploadMeasurementImageReq
|
|
|
53311
53762
|
export interface IUploadMeasurementImageRequest {
|
|
53312
53763
|
uploadKey: string;
|
|
53313
53764
|
filename: string;
|
|
53314
|
-
ballonId
|
|
53765
|
+
ballonId?: string;
|
|
53766
|
+
reference: number;
|
|
53315
53767
|
}
|
|
53316
53768
|
|
|
53317
53769
|
export class UpdateSchemaSettingsRequest implements IUpdateSchemaSettingsRequest {
|
|
@@ -53570,7 +54022,7 @@ export interface ICreateMeasurementFormSchemaLinkRequest {
|
|
|
53570
54022
|
linkSchemaId: string;
|
|
53571
54023
|
}
|
|
53572
54024
|
|
|
53573
|
-
export class
|
|
54025
|
+
export class InspectCompanySettingsDto implements IInspectCompanySettingsDto {
|
|
53574
54026
|
convertInchToMm!: boolean;
|
|
53575
54027
|
convertMicroInchToMicroMeter!: boolean;
|
|
53576
54028
|
validateMeasuringTools!: boolean;
|
|
@@ -53586,7 +54038,7 @@ export class MeasurementFormSettingsDto implements IMeasurementFormSettingsDto {
|
|
|
53586
54038
|
allowCreateInstances!: boolean;
|
|
53587
54039
|
resourceTypesBlockingAutoWorkflow?: string[] | null;
|
|
53588
54040
|
|
|
53589
|
-
constructor(data?:
|
|
54041
|
+
constructor(data?: IInspectCompanySettingsDto) {
|
|
53590
54042
|
if (data) {
|
|
53591
54043
|
for (var property in data) {
|
|
53592
54044
|
if (data.hasOwnProperty(property))
|
|
@@ -53618,9 +54070,9 @@ export class MeasurementFormSettingsDto implements IMeasurementFormSettingsDto {
|
|
|
53618
54070
|
}
|
|
53619
54071
|
}
|
|
53620
54072
|
|
|
53621
|
-
static fromJS(data: any):
|
|
54073
|
+
static fromJS(data: any): InspectCompanySettingsDto {
|
|
53622
54074
|
data = typeof data === 'object' ? data : {};
|
|
53623
|
-
let result = new
|
|
54075
|
+
let result = new InspectCompanySettingsDto();
|
|
53624
54076
|
result.init(data);
|
|
53625
54077
|
return result;
|
|
53626
54078
|
}
|
|
@@ -53649,7 +54101,7 @@ export class MeasurementFormSettingsDto implements IMeasurementFormSettingsDto {
|
|
|
53649
54101
|
}
|
|
53650
54102
|
}
|
|
53651
54103
|
|
|
53652
|
-
export interface
|
|
54104
|
+
export interface IInspectCompanySettingsDto {
|
|
53653
54105
|
convertInchToMm: boolean;
|
|
53654
54106
|
convertMicroInchToMicroMeter: boolean;
|
|
53655
54107
|
validateMeasuringTools: boolean;
|
|
@@ -53873,8 +54325,10 @@ export class MeasurementFormMappingDto implements IMeasurementFormMappingDto {
|
|
|
53873
54325
|
id!: string;
|
|
53874
54326
|
measurementSchemaSourceId!: string;
|
|
53875
54327
|
measurementSchemaTargetId!: string;
|
|
53876
|
-
sourceBalloons
|
|
53877
|
-
targetBalloons
|
|
54328
|
+
sourceBalloons?: MeasurementFormReferenceMappingDto[];
|
|
54329
|
+
targetBalloons?: MeasurementFormReferenceMappingDto[];
|
|
54330
|
+
sourceReferences!: MeasurementFormReferenceMappingDto[];
|
|
54331
|
+
targetReferences!: MeasurementFormReferenceMappingDto[];
|
|
53878
54332
|
|
|
53879
54333
|
constructor(data?: IMeasurementFormMappingDto) {
|
|
53880
54334
|
if (data) {
|
|
@@ -53884,8 +54338,8 @@ export class MeasurementFormMappingDto implements IMeasurementFormMappingDto {
|
|
|
53884
54338
|
}
|
|
53885
54339
|
}
|
|
53886
54340
|
if (!data) {
|
|
53887
|
-
this.
|
|
53888
|
-
this.
|
|
54341
|
+
this.sourceReferences = [];
|
|
54342
|
+
this.targetReferences = [];
|
|
53889
54343
|
}
|
|
53890
54344
|
}
|
|
53891
54345
|
|
|
@@ -53897,12 +54351,22 @@ export class MeasurementFormMappingDto implements IMeasurementFormMappingDto {
|
|
|
53897
54351
|
if (Array.isArray(_data["sourceBalloons"])) {
|
|
53898
54352
|
this.sourceBalloons = [] as any;
|
|
53899
54353
|
for (let item of _data["sourceBalloons"])
|
|
53900
|
-
this.sourceBalloons!.push(
|
|
54354
|
+
this.sourceBalloons!.push(MeasurementFormReferenceMappingDto.fromJS(item));
|
|
53901
54355
|
}
|
|
53902
54356
|
if (Array.isArray(_data["targetBalloons"])) {
|
|
53903
54357
|
this.targetBalloons = [] as any;
|
|
53904
54358
|
for (let item of _data["targetBalloons"])
|
|
53905
|
-
this.targetBalloons!.push(
|
|
54359
|
+
this.targetBalloons!.push(MeasurementFormReferenceMappingDto.fromJS(item));
|
|
54360
|
+
}
|
|
54361
|
+
if (Array.isArray(_data["sourceReferences"])) {
|
|
54362
|
+
this.sourceReferences = [] as any;
|
|
54363
|
+
for (let item of _data["sourceReferences"])
|
|
54364
|
+
this.sourceReferences!.push(MeasurementFormReferenceMappingDto.fromJS(item));
|
|
54365
|
+
}
|
|
54366
|
+
if (Array.isArray(_data["targetReferences"])) {
|
|
54367
|
+
this.targetReferences = [] as any;
|
|
54368
|
+
for (let item of _data["targetReferences"])
|
|
54369
|
+
this.targetReferences!.push(MeasurementFormReferenceMappingDto.fromJS(item));
|
|
53906
54370
|
}
|
|
53907
54371
|
}
|
|
53908
54372
|
}
|
|
@@ -53929,6 +54393,16 @@ export class MeasurementFormMappingDto implements IMeasurementFormMappingDto {
|
|
|
53929
54393
|
for (let item of this.targetBalloons)
|
|
53930
54394
|
data["targetBalloons"].push(item.toJSON());
|
|
53931
54395
|
}
|
|
54396
|
+
if (Array.isArray(this.sourceReferences)) {
|
|
54397
|
+
data["sourceReferences"] = [];
|
|
54398
|
+
for (let item of this.sourceReferences)
|
|
54399
|
+
data["sourceReferences"].push(item.toJSON());
|
|
54400
|
+
}
|
|
54401
|
+
if (Array.isArray(this.targetReferences)) {
|
|
54402
|
+
data["targetReferences"] = [];
|
|
54403
|
+
for (let item of this.targetReferences)
|
|
54404
|
+
data["targetReferences"].push(item.toJSON());
|
|
54405
|
+
}
|
|
53932
54406
|
return data;
|
|
53933
54407
|
}
|
|
53934
54408
|
}
|
|
@@ -53937,16 +54411,20 @@ export interface IMeasurementFormMappingDto {
|
|
|
53937
54411
|
id: string;
|
|
53938
54412
|
measurementSchemaSourceId: string;
|
|
53939
54413
|
measurementSchemaTargetId: string;
|
|
53940
|
-
sourceBalloons
|
|
53941
|
-
targetBalloons
|
|
54414
|
+
sourceBalloons?: MeasurementFormReferenceMappingDto[];
|
|
54415
|
+
targetBalloons?: MeasurementFormReferenceMappingDto[];
|
|
54416
|
+
sourceReferences: MeasurementFormReferenceMappingDto[];
|
|
54417
|
+
targetReferences: MeasurementFormReferenceMappingDto[];
|
|
53942
54418
|
}
|
|
53943
54419
|
|
|
53944
|
-
export class
|
|
53945
|
-
balloon
|
|
54420
|
+
export class MeasurementFormReferenceMappingDto implements IMeasurementFormReferenceMappingDto {
|
|
54421
|
+
balloon?: MeasurementFormGroupedElementDto | null;
|
|
53946
54422
|
mappedBalloonId?: string | null;
|
|
54423
|
+
reference!: MeasurementFormGroupedElementDto;
|
|
54424
|
+
mappedReference?: number;
|
|
53947
54425
|
mappingScorePercent?: number | null;
|
|
53948
54426
|
|
|
53949
|
-
constructor(data?:
|
|
54427
|
+
constructor(data?: IMeasurementFormReferenceMappingDto) {
|
|
53950
54428
|
if (data) {
|
|
53951
54429
|
for (var property in data) {
|
|
53952
54430
|
if (data.hasOwnProperty(property))
|
|
@@ -53954,21 +54432,23 @@ export class MeasurementFormBalloonMappingDto implements IMeasurementFormBalloon
|
|
|
53954
54432
|
}
|
|
53955
54433
|
}
|
|
53956
54434
|
if (!data) {
|
|
53957
|
-
this.
|
|
54435
|
+
this.reference = new MeasurementFormGroupedElementDto();
|
|
53958
54436
|
}
|
|
53959
54437
|
}
|
|
53960
54438
|
|
|
53961
54439
|
init(_data?: any) {
|
|
53962
54440
|
if (_data) {
|
|
53963
|
-
this.balloon = _data["balloon"] ? MeasurementFormGroupedElementDto.fromJS(_data["balloon"]) :
|
|
54441
|
+
this.balloon = _data["balloon"] ? MeasurementFormGroupedElementDto.fromJS(_data["balloon"]) : <any>undefined;
|
|
53964
54442
|
this.mappedBalloonId = _data["mappedBalloonId"];
|
|
54443
|
+
this.reference = _data["reference"] ? MeasurementFormGroupedElementDto.fromJS(_data["reference"]) : new MeasurementFormGroupedElementDto();
|
|
54444
|
+
this.mappedReference = _data["mappedReference"];
|
|
53965
54445
|
this.mappingScorePercent = _data["mappingScorePercent"];
|
|
53966
54446
|
}
|
|
53967
54447
|
}
|
|
53968
54448
|
|
|
53969
|
-
static fromJS(data: any):
|
|
54449
|
+
static fromJS(data: any): MeasurementFormReferenceMappingDto {
|
|
53970
54450
|
data = typeof data === 'object' ? data : {};
|
|
53971
|
-
let result = new
|
|
54451
|
+
let result = new MeasurementFormReferenceMappingDto();
|
|
53972
54452
|
result.init(data);
|
|
53973
54453
|
return result;
|
|
53974
54454
|
}
|
|
@@ -53977,14 +54457,18 @@ export class MeasurementFormBalloonMappingDto implements IMeasurementFormBalloon
|
|
|
53977
54457
|
data = typeof data === 'object' ? data : {};
|
|
53978
54458
|
data["balloon"] = this.balloon ? this.balloon.toJSON() : <any>undefined;
|
|
53979
54459
|
data["mappedBalloonId"] = this.mappedBalloonId;
|
|
54460
|
+
data["reference"] = this.reference ? this.reference.toJSON() : <any>undefined;
|
|
54461
|
+
data["mappedReference"] = this.mappedReference;
|
|
53980
54462
|
data["mappingScorePercent"] = this.mappingScorePercent;
|
|
53981
54463
|
return data;
|
|
53982
54464
|
}
|
|
53983
54465
|
}
|
|
53984
54466
|
|
|
53985
|
-
export interface
|
|
53986
|
-
balloon
|
|
54467
|
+
export interface IMeasurementFormReferenceMappingDto {
|
|
54468
|
+
balloon?: MeasurementFormGroupedElementDto | null;
|
|
53987
54469
|
mappedBalloonId?: string | null;
|
|
54470
|
+
reference: MeasurementFormGroupedElementDto;
|
|
54471
|
+
mappedReference?: number;
|
|
53988
54472
|
mappingScorePercent?: number | null;
|
|
53989
54473
|
}
|
|
53990
54474
|
|
|
@@ -54028,54 +54512,10 @@ export interface ICreateMeasurementFormMapping {
|
|
|
54028
54512
|
targetId: string;
|
|
54029
54513
|
}
|
|
54030
54514
|
|
|
54031
|
-
export class
|
|
54032
|
-
|
|
54033
|
-
targetBalloonId!: string;
|
|
54034
|
-
mappingScorePercent?: number | null;
|
|
54035
|
-
|
|
54036
|
-
constructor(data?: IMeasurementFormBalloonMappingRequestDto) {
|
|
54037
|
-
if (data) {
|
|
54038
|
-
for (var property in data) {
|
|
54039
|
-
if (data.hasOwnProperty(property))
|
|
54040
|
-
(<any>this)[property] = (<any>data)[property];
|
|
54041
|
-
}
|
|
54042
|
-
}
|
|
54043
|
-
}
|
|
54044
|
-
|
|
54045
|
-
init(_data?: any) {
|
|
54046
|
-
if (_data) {
|
|
54047
|
-
this.sourceBalloonId = _data["sourceBalloonId"];
|
|
54048
|
-
this.targetBalloonId = _data["targetBalloonId"];
|
|
54049
|
-
this.mappingScorePercent = _data["mappingScorePercent"];
|
|
54050
|
-
}
|
|
54051
|
-
}
|
|
54052
|
-
|
|
54053
|
-
static fromJS(data: any): MeasurementFormBalloonMappingRequestDto {
|
|
54054
|
-
data = typeof data === 'object' ? data : {};
|
|
54055
|
-
let result = new MeasurementFormBalloonMappingRequestDto();
|
|
54056
|
-
result.init(data);
|
|
54057
|
-
return result;
|
|
54058
|
-
}
|
|
54059
|
-
|
|
54060
|
-
toJSON(data?: any) {
|
|
54061
|
-
data = typeof data === 'object' ? data : {};
|
|
54062
|
-
data["sourceBalloonId"] = this.sourceBalloonId;
|
|
54063
|
-
data["targetBalloonId"] = this.targetBalloonId;
|
|
54064
|
-
data["mappingScorePercent"] = this.mappingScorePercent;
|
|
54065
|
-
return data;
|
|
54066
|
-
}
|
|
54067
|
-
}
|
|
54068
|
-
|
|
54069
|
-
export interface IMeasurementFormBalloonMappingRequestDto {
|
|
54070
|
-
sourceBalloonId: string;
|
|
54071
|
-
targetBalloonId: string;
|
|
54072
|
-
mappingScorePercent?: number | null;
|
|
54073
|
-
}
|
|
54074
|
-
|
|
54075
|
-
export class SetMeasurementFormMappingBalloonsRequest implements ISetMeasurementFormMappingBalloonsRequest {
|
|
54076
|
-
mappings!: MeasurementFormBalloonMappingRequestDto[];
|
|
54515
|
+
export class SetMeasurementFormReferencesMappingRequest implements ISetMeasurementFormReferencesMappingRequest {
|
|
54516
|
+
mappings!: MeasurementFormReferenceMappingRequestDto[];
|
|
54077
54517
|
|
|
54078
|
-
constructor(data?:
|
|
54518
|
+
constructor(data?: ISetMeasurementFormReferencesMappingRequest) {
|
|
54079
54519
|
if (data) {
|
|
54080
54520
|
for (var property in data) {
|
|
54081
54521
|
if (data.hasOwnProperty(property))
|
|
@@ -54092,14 +54532,14 @@ export class SetMeasurementFormMappingBalloonsRequest implements ISetMeasurement
|
|
|
54092
54532
|
if (Array.isArray(_data["mappings"])) {
|
|
54093
54533
|
this.mappings = [] as any;
|
|
54094
54534
|
for (let item of _data["mappings"])
|
|
54095
|
-
this.mappings!.push(
|
|
54535
|
+
this.mappings!.push(MeasurementFormReferenceMappingRequestDto.fromJS(item));
|
|
54096
54536
|
}
|
|
54097
54537
|
}
|
|
54098
54538
|
}
|
|
54099
54539
|
|
|
54100
|
-
static fromJS(data: any):
|
|
54540
|
+
static fromJS(data: any): SetMeasurementFormReferencesMappingRequest {
|
|
54101
54541
|
data = typeof data === 'object' ? data : {};
|
|
54102
|
-
let result = new
|
|
54542
|
+
let result = new SetMeasurementFormReferencesMappingRequest();
|
|
54103
54543
|
result.init(data);
|
|
54104
54544
|
return result;
|
|
54105
54545
|
}
|
|
@@ -54115,15 +54555,69 @@ export class SetMeasurementFormMappingBalloonsRequest implements ISetMeasurement
|
|
|
54115
54555
|
}
|
|
54116
54556
|
}
|
|
54117
54557
|
|
|
54118
|
-
export interface
|
|
54119
|
-
mappings:
|
|
54558
|
+
export interface ISetMeasurementFormReferencesMappingRequest {
|
|
54559
|
+
mappings: MeasurementFormReferenceMappingRequestDto[];
|
|
54560
|
+
}
|
|
54561
|
+
|
|
54562
|
+
export class MeasurementFormReferenceMappingRequestDto implements IMeasurementFormReferenceMappingRequestDto {
|
|
54563
|
+
sourceBalloonId?: string | null;
|
|
54564
|
+
targetBalloonId?: string | null;
|
|
54565
|
+
sourceReference!: number;
|
|
54566
|
+
targetReference!: number;
|
|
54567
|
+
mappingScorePercent?: number | null;
|
|
54568
|
+
|
|
54569
|
+
constructor(data?: IMeasurementFormReferenceMappingRequestDto) {
|
|
54570
|
+
if (data) {
|
|
54571
|
+
for (var property in data) {
|
|
54572
|
+
if (data.hasOwnProperty(property))
|
|
54573
|
+
(<any>this)[property] = (<any>data)[property];
|
|
54574
|
+
}
|
|
54575
|
+
}
|
|
54576
|
+
}
|
|
54577
|
+
|
|
54578
|
+
init(_data?: any) {
|
|
54579
|
+
if (_data) {
|
|
54580
|
+
this.sourceBalloonId = _data["sourceBalloonId"];
|
|
54581
|
+
this.targetBalloonId = _data["targetBalloonId"];
|
|
54582
|
+
this.sourceReference = _data["sourceReference"];
|
|
54583
|
+
this.targetReference = _data["targetReference"];
|
|
54584
|
+
this.mappingScorePercent = _data["mappingScorePercent"];
|
|
54585
|
+
}
|
|
54586
|
+
}
|
|
54587
|
+
|
|
54588
|
+
static fromJS(data: any): MeasurementFormReferenceMappingRequestDto {
|
|
54589
|
+
data = typeof data === 'object' ? data : {};
|
|
54590
|
+
let result = new MeasurementFormReferenceMappingRequestDto();
|
|
54591
|
+
result.init(data);
|
|
54592
|
+
return result;
|
|
54593
|
+
}
|
|
54594
|
+
|
|
54595
|
+
toJSON(data?: any) {
|
|
54596
|
+
data = typeof data === 'object' ? data : {};
|
|
54597
|
+
data["sourceBalloonId"] = this.sourceBalloonId;
|
|
54598
|
+
data["targetBalloonId"] = this.targetBalloonId;
|
|
54599
|
+
data["sourceReference"] = this.sourceReference;
|
|
54600
|
+
data["targetReference"] = this.targetReference;
|
|
54601
|
+
data["mappingScorePercent"] = this.mappingScorePercent;
|
|
54602
|
+
return data;
|
|
54603
|
+
}
|
|
54604
|
+
}
|
|
54605
|
+
|
|
54606
|
+
export interface IMeasurementFormReferenceMappingRequestDto {
|
|
54607
|
+
sourceBalloonId?: string | null;
|
|
54608
|
+
targetBalloonId?: string | null;
|
|
54609
|
+
sourceReference: number;
|
|
54610
|
+
targetReference: number;
|
|
54611
|
+
mappingScorePercent?: number | null;
|
|
54120
54612
|
}
|
|
54121
54613
|
|
|
54122
54614
|
export class MeasurementFormMappingSuggestionDto implements IMeasurementFormMappingSuggestionDto {
|
|
54123
54615
|
measurementSchemaSourceId!: string;
|
|
54124
54616
|
measurementSchemaTargetId!: string;
|
|
54125
|
-
sourceBalloons
|
|
54126
|
-
targetBalloons
|
|
54617
|
+
sourceBalloons?: MeasurementFormReferenceMappingDto[];
|
|
54618
|
+
targetBalloons?: MeasurementFormReferenceMappingDto[];
|
|
54619
|
+
sourceReferences!: MeasurementFormReferenceMappingDto[];
|
|
54620
|
+
targetReferences!: MeasurementFormReferenceMappingDto[];
|
|
54127
54621
|
|
|
54128
54622
|
constructor(data?: IMeasurementFormMappingSuggestionDto) {
|
|
54129
54623
|
if (data) {
|
|
@@ -54133,8 +54627,8 @@ export class MeasurementFormMappingSuggestionDto implements IMeasurementFormMapp
|
|
|
54133
54627
|
}
|
|
54134
54628
|
}
|
|
54135
54629
|
if (!data) {
|
|
54136
|
-
this.
|
|
54137
|
-
this.
|
|
54630
|
+
this.sourceReferences = [];
|
|
54631
|
+
this.targetReferences = [];
|
|
54138
54632
|
}
|
|
54139
54633
|
}
|
|
54140
54634
|
|
|
@@ -54145,12 +54639,22 @@ export class MeasurementFormMappingSuggestionDto implements IMeasurementFormMapp
|
|
|
54145
54639
|
if (Array.isArray(_data["sourceBalloons"])) {
|
|
54146
54640
|
this.sourceBalloons = [] as any;
|
|
54147
54641
|
for (let item of _data["sourceBalloons"])
|
|
54148
|
-
this.sourceBalloons!.push(
|
|
54642
|
+
this.sourceBalloons!.push(MeasurementFormReferenceMappingDto.fromJS(item));
|
|
54149
54643
|
}
|
|
54150
54644
|
if (Array.isArray(_data["targetBalloons"])) {
|
|
54151
54645
|
this.targetBalloons = [] as any;
|
|
54152
54646
|
for (let item of _data["targetBalloons"])
|
|
54153
|
-
this.targetBalloons!.push(
|
|
54647
|
+
this.targetBalloons!.push(MeasurementFormReferenceMappingDto.fromJS(item));
|
|
54648
|
+
}
|
|
54649
|
+
if (Array.isArray(_data["sourceReferences"])) {
|
|
54650
|
+
this.sourceReferences = [] as any;
|
|
54651
|
+
for (let item of _data["sourceReferences"])
|
|
54652
|
+
this.sourceReferences!.push(MeasurementFormReferenceMappingDto.fromJS(item));
|
|
54653
|
+
}
|
|
54654
|
+
if (Array.isArray(_data["targetReferences"])) {
|
|
54655
|
+
this.targetReferences = [] as any;
|
|
54656
|
+
for (let item of _data["targetReferences"])
|
|
54657
|
+
this.targetReferences!.push(MeasurementFormReferenceMappingDto.fromJS(item));
|
|
54154
54658
|
}
|
|
54155
54659
|
}
|
|
54156
54660
|
}
|
|
@@ -54176,6 +54680,16 @@ export class MeasurementFormMappingSuggestionDto implements IMeasurementFormMapp
|
|
|
54176
54680
|
for (let item of this.targetBalloons)
|
|
54177
54681
|
data["targetBalloons"].push(item.toJSON());
|
|
54178
54682
|
}
|
|
54683
|
+
if (Array.isArray(this.sourceReferences)) {
|
|
54684
|
+
data["sourceReferences"] = [];
|
|
54685
|
+
for (let item of this.sourceReferences)
|
|
54686
|
+
data["sourceReferences"].push(item.toJSON());
|
|
54687
|
+
}
|
|
54688
|
+
if (Array.isArray(this.targetReferences)) {
|
|
54689
|
+
data["targetReferences"] = [];
|
|
54690
|
+
for (let item of this.targetReferences)
|
|
54691
|
+
data["targetReferences"].push(item.toJSON());
|
|
54692
|
+
}
|
|
54179
54693
|
return data;
|
|
54180
54694
|
}
|
|
54181
54695
|
}
|
|
@@ -54183,8 +54697,10 @@ export class MeasurementFormMappingSuggestionDto implements IMeasurementFormMapp
|
|
|
54183
54697
|
export interface IMeasurementFormMappingSuggestionDto {
|
|
54184
54698
|
measurementSchemaSourceId: string;
|
|
54185
54699
|
measurementSchemaTargetId: string;
|
|
54186
|
-
sourceBalloons
|
|
54187
|
-
targetBalloons
|
|
54700
|
+
sourceBalloons?: MeasurementFormReferenceMappingDto[];
|
|
54701
|
+
targetBalloons?: MeasurementFormReferenceMappingDto[];
|
|
54702
|
+
sourceReferences: MeasurementFormReferenceMappingDto[];
|
|
54703
|
+
targetReferences: MeasurementFormReferenceMappingDto[];
|
|
54188
54704
|
}
|
|
54189
54705
|
|
|
54190
54706
|
export class PagedResultOfMeasurementFormNeedDto implements IPagedResultOfMeasurementFormNeedDto {
|
|
@@ -54847,6 +55363,7 @@ export class SchemaFeedbackDto implements ISchemaFeedbackDto {
|
|
|
54847
55363
|
versionId?: number;
|
|
54848
55364
|
schemaInstanceId!: string;
|
|
54849
55365
|
balloonId?: string | null;
|
|
55366
|
+
reference?: number;
|
|
54850
55367
|
feedback!: string;
|
|
54851
55368
|
from!: string;
|
|
54852
55369
|
created!: Date;
|
|
@@ -54876,6 +55393,7 @@ export class SchemaFeedbackDto implements ISchemaFeedbackDto {
|
|
|
54876
55393
|
this.versionId = _data["versionId"];
|
|
54877
55394
|
this.schemaInstanceId = _data["schemaInstanceId"];
|
|
54878
55395
|
this.balloonId = _data["balloonId"];
|
|
55396
|
+
this.reference = _data["reference"];
|
|
54879
55397
|
this.feedback = _data["feedback"];
|
|
54880
55398
|
this.from = _data["from"];
|
|
54881
55399
|
this.created = _data["created"] ? new Date(_data["created"].toString()) : <any>undefined;
|
|
@@ -54905,6 +55423,7 @@ export class SchemaFeedbackDto implements ISchemaFeedbackDto {
|
|
|
54905
55423
|
data["versionId"] = this.versionId;
|
|
54906
55424
|
data["schemaInstanceId"] = this.schemaInstanceId;
|
|
54907
55425
|
data["balloonId"] = this.balloonId;
|
|
55426
|
+
data["reference"] = this.reference;
|
|
54908
55427
|
data["feedback"] = this.feedback;
|
|
54909
55428
|
data["from"] = this.from;
|
|
54910
55429
|
data["created"] = this.created ? this.created.toISOString() : <any>undefined;
|
|
@@ -54927,6 +55446,7 @@ export interface ISchemaFeedbackDto {
|
|
|
54927
55446
|
versionId?: number;
|
|
54928
55447
|
schemaInstanceId: string;
|
|
54929
55448
|
balloonId?: string | null;
|
|
55449
|
+
reference?: number;
|
|
54930
55450
|
feedback: string;
|
|
54931
55451
|
from: string;
|
|
54932
55452
|
created: Date;
|
|
@@ -55926,6 +56446,7 @@ export class MeasurementFormInstanceFeedbackDto implements IMeasurementFormInsta
|
|
|
55926
56446
|
versionId?: number;
|
|
55927
56447
|
schemaInstanceId!: string;
|
|
55928
56448
|
balloonId?: string | null;
|
|
56449
|
+
reference?: number;
|
|
55929
56450
|
feedback!: string;
|
|
55930
56451
|
from!: string;
|
|
55931
56452
|
created!: Date;
|
|
@@ -55947,6 +56468,7 @@ export class MeasurementFormInstanceFeedbackDto implements IMeasurementFormInsta
|
|
|
55947
56468
|
this.versionId = _data["versionId"];
|
|
55948
56469
|
this.schemaInstanceId = _data["schemaInstanceId"];
|
|
55949
56470
|
this.balloonId = _data["balloonId"];
|
|
56471
|
+
this.reference = _data["reference"];
|
|
55950
56472
|
this.feedback = _data["feedback"];
|
|
55951
56473
|
this.from = _data["from"];
|
|
55952
56474
|
this.created = _data["created"] ? new Date(_data["created"].toString()) : <any>undefined;
|
|
@@ -55968,6 +56490,7 @@ export class MeasurementFormInstanceFeedbackDto implements IMeasurementFormInsta
|
|
|
55968
56490
|
data["versionId"] = this.versionId;
|
|
55969
56491
|
data["schemaInstanceId"] = this.schemaInstanceId;
|
|
55970
56492
|
data["balloonId"] = this.balloonId;
|
|
56493
|
+
data["reference"] = this.reference;
|
|
55971
56494
|
data["feedback"] = this.feedback;
|
|
55972
56495
|
data["from"] = this.from;
|
|
55973
56496
|
data["created"] = this.created ? this.created.toISOString() : <any>undefined;
|
|
@@ -55982,6 +56505,7 @@ export interface IMeasurementFormInstanceFeedbackDto {
|
|
|
55982
56505
|
versionId?: number;
|
|
55983
56506
|
schemaInstanceId: string;
|
|
55984
56507
|
balloonId?: string | null;
|
|
56508
|
+
reference?: number;
|
|
55985
56509
|
feedback: string;
|
|
55986
56510
|
from: string;
|
|
55987
56511
|
created: Date;
|
|
@@ -56275,6 +56799,7 @@ export class MeasurementFormInstanceElementDto implements IMeasurementFormInstan
|
|
|
56275
56799
|
imageUrl?: string | null;
|
|
56276
56800
|
thumbnailUrl?: string | null;
|
|
56277
56801
|
balloonId?: string | null;
|
|
56802
|
+
reference?: number;
|
|
56278
56803
|
section?: string | null;
|
|
56279
56804
|
pageNumber?: number | null;
|
|
56280
56805
|
sheetZone?: string | null;
|
|
@@ -56298,7 +56823,9 @@ export class MeasurementFormInstanceElementDto implements IMeasurementFormInstan
|
|
|
56298
56823
|
isDocumentedExternally!: boolean;
|
|
56299
56824
|
canOverrideIsDocumentedExternally!: boolean;
|
|
56300
56825
|
balloonSequence?: number | null;
|
|
56826
|
+
referenceIndex?: number | null;
|
|
56301
56827
|
balloonQuantity?: number | null;
|
|
56828
|
+
referenceQuantity?: number | null;
|
|
56302
56829
|
plusTolerance?: string | null;
|
|
56303
56830
|
minusTolerance?: string | null;
|
|
56304
56831
|
coatingThickness?: number | null;
|
|
@@ -56331,6 +56858,7 @@ export class MeasurementFormInstanceElementDto implements IMeasurementFormInstan
|
|
|
56331
56858
|
this.imageUrl = _data["imageUrl"];
|
|
56332
56859
|
this.thumbnailUrl = _data["thumbnailUrl"];
|
|
56333
56860
|
this.balloonId = _data["balloonId"];
|
|
56861
|
+
this.reference = _data["reference"];
|
|
56334
56862
|
this.section = _data["section"];
|
|
56335
56863
|
this.pageNumber = _data["pageNumber"];
|
|
56336
56864
|
this.sheetZone = _data["sheetZone"];
|
|
@@ -56354,7 +56882,9 @@ export class MeasurementFormInstanceElementDto implements IMeasurementFormInstan
|
|
|
56354
56882
|
this.isDocumentedExternally = _data["isDocumentedExternally"];
|
|
56355
56883
|
this.canOverrideIsDocumentedExternally = _data["canOverrideIsDocumentedExternally"];
|
|
56356
56884
|
this.balloonSequence = _data["balloonSequence"];
|
|
56885
|
+
this.referenceIndex = _data["referenceIndex"];
|
|
56357
56886
|
this.balloonQuantity = _data["balloonQuantity"];
|
|
56887
|
+
this.referenceQuantity = _data["referenceQuantity"];
|
|
56358
56888
|
this.plusTolerance = _data["plusTolerance"];
|
|
56359
56889
|
this.minusTolerance = _data["minusTolerance"];
|
|
56360
56890
|
this.coatingThickness = _data["coatingThickness"];
|
|
@@ -56388,6 +56918,7 @@ export class MeasurementFormInstanceElementDto implements IMeasurementFormInstan
|
|
|
56388
56918
|
data["imageUrl"] = this.imageUrl;
|
|
56389
56919
|
data["thumbnailUrl"] = this.thumbnailUrl;
|
|
56390
56920
|
data["balloonId"] = this.balloonId;
|
|
56921
|
+
data["reference"] = this.reference;
|
|
56391
56922
|
data["section"] = this.section;
|
|
56392
56923
|
data["pageNumber"] = this.pageNumber;
|
|
56393
56924
|
data["sheetZone"] = this.sheetZone;
|
|
@@ -56411,7 +56942,9 @@ export class MeasurementFormInstanceElementDto implements IMeasurementFormInstan
|
|
|
56411
56942
|
data["isDocumentedExternally"] = this.isDocumentedExternally;
|
|
56412
56943
|
data["canOverrideIsDocumentedExternally"] = this.canOverrideIsDocumentedExternally;
|
|
56413
56944
|
data["balloonSequence"] = this.balloonSequence;
|
|
56945
|
+
data["referenceIndex"] = this.referenceIndex;
|
|
56414
56946
|
data["balloonQuantity"] = this.balloonQuantity;
|
|
56947
|
+
data["referenceQuantity"] = this.referenceQuantity;
|
|
56415
56948
|
data["plusTolerance"] = this.plusTolerance;
|
|
56416
56949
|
data["minusTolerance"] = this.minusTolerance;
|
|
56417
56950
|
data["coatingThickness"] = this.coatingThickness;
|
|
@@ -56438,6 +56971,7 @@ export interface IMeasurementFormInstanceElementDto {
|
|
|
56438
56971
|
imageUrl?: string | null;
|
|
56439
56972
|
thumbnailUrl?: string | null;
|
|
56440
56973
|
balloonId?: string | null;
|
|
56974
|
+
reference?: number;
|
|
56441
56975
|
section?: string | null;
|
|
56442
56976
|
pageNumber?: number | null;
|
|
56443
56977
|
sheetZone?: string | null;
|
|
@@ -56461,7 +56995,9 @@ export interface IMeasurementFormInstanceElementDto {
|
|
|
56461
56995
|
isDocumentedExternally: boolean;
|
|
56462
56996
|
canOverrideIsDocumentedExternally: boolean;
|
|
56463
56997
|
balloonSequence?: number | null;
|
|
56998
|
+
referenceIndex?: number | null;
|
|
56464
56999
|
balloonQuantity?: number | null;
|
|
57000
|
+
referenceQuantity?: number | null;
|
|
56465
57001
|
plusTolerance?: string | null;
|
|
56466
57002
|
minusTolerance?: string | null;
|
|
56467
57003
|
coatingThickness?: number | null;
|
|
@@ -57180,6 +57716,7 @@ export class SchemaFeedbackCreatedDto implements ISchemaFeedbackCreatedDto {
|
|
|
57180
57716
|
versionId!: number;
|
|
57181
57717
|
schemaInstanceId!: string;
|
|
57182
57718
|
balloonId?: string | null;
|
|
57719
|
+
reference?: number;
|
|
57183
57720
|
feedback!: string;
|
|
57184
57721
|
from!: string;
|
|
57185
57722
|
created!: Date;
|
|
@@ -57201,6 +57738,7 @@ export class SchemaFeedbackCreatedDto implements ISchemaFeedbackCreatedDto {
|
|
|
57201
57738
|
this.versionId = _data["versionId"];
|
|
57202
57739
|
this.schemaInstanceId = _data["schemaInstanceId"];
|
|
57203
57740
|
this.balloonId = _data["balloonId"];
|
|
57741
|
+
this.reference = _data["reference"];
|
|
57204
57742
|
this.feedback = _data["feedback"];
|
|
57205
57743
|
this.from = _data["from"];
|
|
57206
57744
|
this.created = _data["created"] ? new Date(_data["created"].toString()) : <any>undefined;
|
|
@@ -57222,6 +57760,7 @@ export class SchemaFeedbackCreatedDto implements ISchemaFeedbackCreatedDto {
|
|
|
57222
57760
|
data["versionId"] = this.versionId;
|
|
57223
57761
|
data["schemaInstanceId"] = this.schemaInstanceId;
|
|
57224
57762
|
data["balloonId"] = this.balloonId;
|
|
57763
|
+
data["reference"] = this.reference;
|
|
57225
57764
|
data["feedback"] = this.feedback;
|
|
57226
57765
|
data["from"] = this.from;
|
|
57227
57766
|
data["created"] = this.created ? this.created.toISOString() : <any>undefined;
|
|
@@ -57236,6 +57775,7 @@ export interface ISchemaFeedbackCreatedDto {
|
|
|
57236
57775
|
versionId: number;
|
|
57237
57776
|
schemaInstanceId: string;
|
|
57238
57777
|
balloonId?: string | null;
|
|
57778
|
+
reference?: number;
|
|
57239
57779
|
feedback: string;
|
|
57240
57780
|
from: string;
|
|
57241
57781
|
created: Date;
|
|
@@ -57243,6 +57783,7 @@ export interface ISchemaFeedbackCreatedDto {
|
|
|
57243
57783
|
|
|
57244
57784
|
export class CreateMeasurementFormSchemaFeedbackRequest implements ICreateMeasurementFormSchemaFeedbackRequest {
|
|
57245
57785
|
balloonId?: string | null;
|
|
57786
|
+
reference?: number;
|
|
57246
57787
|
feedback!: string;
|
|
57247
57788
|
|
|
57248
57789
|
constructor(data?: ICreateMeasurementFormSchemaFeedbackRequest) {
|
|
@@ -57257,6 +57798,7 @@ export class CreateMeasurementFormSchemaFeedbackRequest implements ICreateMeasur
|
|
|
57257
57798
|
init(_data?: any) {
|
|
57258
57799
|
if (_data) {
|
|
57259
57800
|
this.balloonId = _data["balloonId"];
|
|
57801
|
+
this.reference = _data["reference"];
|
|
57260
57802
|
this.feedback = _data["feedback"];
|
|
57261
57803
|
}
|
|
57262
57804
|
}
|
|
@@ -57271,6 +57813,7 @@ export class CreateMeasurementFormSchemaFeedbackRequest implements ICreateMeasur
|
|
|
57271
57813
|
toJSON(data?: any) {
|
|
57272
57814
|
data = typeof data === 'object' ? data : {};
|
|
57273
57815
|
data["balloonId"] = this.balloonId;
|
|
57816
|
+
data["reference"] = this.reference;
|
|
57274
57817
|
data["feedback"] = this.feedback;
|
|
57275
57818
|
return data;
|
|
57276
57819
|
}
|
|
@@ -57278,6 +57821,7 @@ export class CreateMeasurementFormSchemaFeedbackRequest implements ICreateMeasur
|
|
|
57278
57821
|
|
|
57279
57822
|
export interface ICreateMeasurementFormSchemaFeedbackRequest {
|
|
57280
57823
|
balloonId?: string | null;
|
|
57824
|
+
reference?: number;
|
|
57281
57825
|
feedback: string;
|
|
57282
57826
|
}
|
|
57283
57827
|
|
|
@@ -57538,7 +58082,8 @@ export interface IUpdateSchemaInstanceElementsRequest {
|
|
|
57538
58082
|
|
|
57539
58083
|
export class SchemaInstanceElementDto implements ISchemaInstanceElementDto {
|
|
57540
58084
|
elementId!: string;
|
|
57541
|
-
balloonId
|
|
58085
|
+
balloonId?: string | null;
|
|
58086
|
+
reference!: number;
|
|
57542
58087
|
disabled!: boolean;
|
|
57543
58088
|
|
|
57544
58089
|
constructor(data?: ISchemaInstanceElementDto) {
|
|
@@ -57554,6 +58099,7 @@ export class SchemaInstanceElementDto implements ISchemaInstanceElementDto {
|
|
|
57554
58099
|
if (_data) {
|
|
57555
58100
|
this.elementId = _data["elementId"];
|
|
57556
58101
|
this.balloonId = _data["balloonId"];
|
|
58102
|
+
this.reference = _data["reference"];
|
|
57557
58103
|
this.disabled = _data["disabled"];
|
|
57558
58104
|
}
|
|
57559
58105
|
}
|
|
@@ -57569,6 +58115,7 @@ export class SchemaInstanceElementDto implements ISchemaInstanceElementDto {
|
|
|
57569
58115
|
data = typeof data === 'object' ? data : {};
|
|
57570
58116
|
data["elementId"] = this.elementId;
|
|
57571
58117
|
data["balloonId"] = this.balloonId;
|
|
58118
|
+
data["reference"] = this.reference;
|
|
57572
58119
|
data["disabled"] = this.disabled;
|
|
57573
58120
|
return data;
|
|
57574
58121
|
}
|
|
@@ -57576,230 +58123,11 @@ export class SchemaInstanceElementDto implements ISchemaInstanceElementDto {
|
|
|
57576
58123
|
|
|
57577
58124
|
export interface ISchemaInstanceElementDto {
|
|
57578
58125
|
elementId: string;
|
|
57579
|
-
balloonId
|
|
58126
|
+
balloonId?: string | null;
|
|
58127
|
+
reference: number;
|
|
57580
58128
|
disabled: boolean;
|
|
57581
58129
|
}
|
|
57582
58130
|
|
|
57583
|
-
export class IotTypeSourceDto implements IIotTypeSourceDto {
|
|
57584
|
-
id!: string;
|
|
57585
|
-
name!: string;
|
|
57586
|
-
|
|
57587
|
-
constructor(data?: IIotTypeSourceDto) {
|
|
57588
|
-
if (data) {
|
|
57589
|
-
for (var property in data) {
|
|
57590
|
-
if (data.hasOwnProperty(property))
|
|
57591
|
-
(<any>this)[property] = (<any>data)[property];
|
|
57592
|
-
}
|
|
57593
|
-
}
|
|
57594
|
-
}
|
|
57595
|
-
|
|
57596
|
-
init(_data?: any) {
|
|
57597
|
-
if (_data) {
|
|
57598
|
-
this.id = _data["id"];
|
|
57599
|
-
this.name = _data["name"];
|
|
57600
|
-
}
|
|
57601
|
-
}
|
|
57602
|
-
|
|
57603
|
-
static fromJS(data: any): IotTypeSourceDto {
|
|
57604
|
-
data = typeof data === 'object' ? data : {};
|
|
57605
|
-
let result = new IotTypeSourceDto();
|
|
57606
|
-
result.init(data);
|
|
57607
|
-
return result;
|
|
57608
|
-
}
|
|
57609
|
-
|
|
57610
|
-
toJSON(data?: any) {
|
|
57611
|
-
data = typeof data === 'object' ? data : {};
|
|
57612
|
-
data["id"] = this.id;
|
|
57613
|
-
data["name"] = this.name;
|
|
57614
|
-
return data;
|
|
57615
|
-
}
|
|
57616
|
-
}
|
|
57617
|
-
|
|
57618
|
-
export interface IIotTypeSourceDto {
|
|
57619
|
-
id: string;
|
|
57620
|
-
name: string;
|
|
57621
|
-
}
|
|
57622
|
-
|
|
57623
|
-
export class ElectricalIotConfigDto implements IElectricalIotConfigDto {
|
|
57624
|
-
id!: string;
|
|
57625
|
-
typeId!: string;
|
|
57626
|
-
serialNumber?: string | null;
|
|
57627
|
-
assetId!: number;
|
|
57628
|
-
assetExternalId?: string | null;
|
|
57629
|
-
phases?: number;
|
|
57630
|
-
electricalAssetId?: number;
|
|
57631
|
-
electricalAssetExternalId?: string | null;
|
|
57632
|
-
electricalTimeseriesId?: number;
|
|
57633
|
-
electricalTimeseriesExternalId?: string | null;
|
|
57634
|
-
|
|
57635
|
-
constructor(data?: IElectricalIotConfigDto) {
|
|
57636
|
-
if (data) {
|
|
57637
|
-
for (var property in data) {
|
|
57638
|
-
if (data.hasOwnProperty(property))
|
|
57639
|
-
(<any>this)[property] = (<any>data)[property];
|
|
57640
|
-
}
|
|
57641
|
-
}
|
|
57642
|
-
}
|
|
57643
|
-
|
|
57644
|
-
init(_data?: any) {
|
|
57645
|
-
if (_data) {
|
|
57646
|
-
this.id = _data["id"];
|
|
57647
|
-
this.typeId = _data["typeId"];
|
|
57648
|
-
this.serialNumber = _data["serialNumber"];
|
|
57649
|
-
this.assetId = _data["assetId"];
|
|
57650
|
-
this.assetExternalId = _data["assetExternalId"];
|
|
57651
|
-
this.phases = _data["phases"];
|
|
57652
|
-
this.electricalAssetId = _data["electricalAssetId"];
|
|
57653
|
-
this.electricalAssetExternalId = _data["electricalAssetExternalId"];
|
|
57654
|
-
this.electricalTimeseriesId = _data["electricalTimeseriesId"];
|
|
57655
|
-
this.electricalTimeseriesExternalId = _data["electricalTimeseriesExternalId"];
|
|
57656
|
-
}
|
|
57657
|
-
}
|
|
57658
|
-
|
|
57659
|
-
static fromJS(data: any): ElectricalIotConfigDto {
|
|
57660
|
-
data = typeof data === 'object' ? data : {};
|
|
57661
|
-
let result = new ElectricalIotConfigDto();
|
|
57662
|
-
result.init(data);
|
|
57663
|
-
return result;
|
|
57664
|
-
}
|
|
57665
|
-
|
|
57666
|
-
toJSON(data?: any) {
|
|
57667
|
-
data = typeof data === 'object' ? data : {};
|
|
57668
|
-
data["id"] = this.id;
|
|
57669
|
-
data["typeId"] = this.typeId;
|
|
57670
|
-
data["serialNumber"] = this.serialNumber;
|
|
57671
|
-
data["assetId"] = this.assetId;
|
|
57672
|
-
data["assetExternalId"] = this.assetExternalId;
|
|
57673
|
-
data["phases"] = this.phases;
|
|
57674
|
-
data["electricalAssetId"] = this.electricalAssetId;
|
|
57675
|
-
data["electricalAssetExternalId"] = this.electricalAssetExternalId;
|
|
57676
|
-
data["electricalTimeseriesId"] = this.electricalTimeseriesId;
|
|
57677
|
-
data["electricalTimeseriesExternalId"] = this.electricalTimeseriesExternalId;
|
|
57678
|
-
return data;
|
|
57679
|
-
}
|
|
57680
|
-
}
|
|
57681
|
-
|
|
57682
|
-
export interface IElectricalIotConfigDto {
|
|
57683
|
-
id: string;
|
|
57684
|
-
typeId: string;
|
|
57685
|
-
serialNumber?: string | null;
|
|
57686
|
-
assetId: number;
|
|
57687
|
-
assetExternalId?: string | null;
|
|
57688
|
-
phases?: number;
|
|
57689
|
-
electricalAssetId?: number;
|
|
57690
|
-
electricalAssetExternalId?: string | null;
|
|
57691
|
-
electricalTimeseriesId?: number;
|
|
57692
|
-
electricalTimeseriesExternalId?: string | null;
|
|
57693
|
-
}
|
|
57694
|
-
|
|
57695
|
-
export class CreateElectricalIotConfig implements ICreateElectricalIotConfig {
|
|
57696
|
-
typeId?: string | null;
|
|
57697
|
-
serialNumber?: string | null;
|
|
57698
|
-
assetId?: number | null;
|
|
57699
|
-
assetExternalId?: string | null;
|
|
57700
|
-
|
|
57701
|
-
constructor(data?: ICreateElectricalIotConfig) {
|
|
57702
|
-
if (data) {
|
|
57703
|
-
for (var property in data) {
|
|
57704
|
-
if (data.hasOwnProperty(property))
|
|
57705
|
-
(<any>this)[property] = (<any>data)[property];
|
|
57706
|
-
}
|
|
57707
|
-
}
|
|
57708
|
-
}
|
|
57709
|
-
|
|
57710
|
-
init(_data?: any) {
|
|
57711
|
-
if (_data) {
|
|
57712
|
-
this.typeId = _data["typeId"];
|
|
57713
|
-
this.serialNumber = _data["serialNumber"];
|
|
57714
|
-
this.assetId = _data["assetId"];
|
|
57715
|
-
this.assetExternalId = _data["assetExternalId"];
|
|
57716
|
-
}
|
|
57717
|
-
}
|
|
57718
|
-
|
|
57719
|
-
static fromJS(data: any): CreateElectricalIotConfig {
|
|
57720
|
-
data = typeof data === 'object' ? data : {};
|
|
57721
|
-
let result = new CreateElectricalIotConfig();
|
|
57722
|
-
result.init(data);
|
|
57723
|
-
return result;
|
|
57724
|
-
}
|
|
57725
|
-
|
|
57726
|
-
toJSON(data?: any) {
|
|
57727
|
-
data = typeof data === 'object' ? data : {};
|
|
57728
|
-
data["typeId"] = this.typeId;
|
|
57729
|
-
data["serialNumber"] = this.serialNumber;
|
|
57730
|
-
data["assetId"] = this.assetId;
|
|
57731
|
-
data["assetExternalId"] = this.assetExternalId;
|
|
57732
|
-
return data;
|
|
57733
|
-
}
|
|
57734
|
-
}
|
|
57735
|
-
|
|
57736
|
-
export interface ICreateElectricalIotConfig {
|
|
57737
|
-
typeId?: string | null;
|
|
57738
|
-
serialNumber?: string | null;
|
|
57739
|
-
assetId?: number | null;
|
|
57740
|
-
assetExternalId?: string | null;
|
|
57741
|
-
}
|
|
57742
|
-
|
|
57743
|
-
export class WeldingIotConfigDto implements IWeldingIotConfigDto {
|
|
57744
|
-
|
|
57745
|
-
constructor(data?: IWeldingIotConfigDto) {
|
|
57746
|
-
if (data) {
|
|
57747
|
-
for (var property in data) {
|
|
57748
|
-
if (data.hasOwnProperty(property))
|
|
57749
|
-
(<any>this)[property] = (<any>data)[property];
|
|
57750
|
-
}
|
|
57751
|
-
}
|
|
57752
|
-
}
|
|
57753
|
-
|
|
57754
|
-
init(_data?: any) {
|
|
57755
|
-
}
|
|
57756
|
-
|
|
57757
|
-
static fromJS(data: any): WeldingIotConfigDto {
|
|
57758
|
-
data = typeof data === 'object' ? data : {};
|
|
57759
|
-
let result = new WeldingIotConfigDto();
|
|
57760
|
-
result.init(data);
|
|
57761
|
-
return result;
|
|
57762
|
-
}
|
|
57763
|
-
|
|
57764
|
-
toJSON(data?: any) {
|
|
57765
|
-
data = typeof data === 'object' ? data : {};
|
|
57766
|
-
return data;
|
|
57767
|
-
}
|
|
57768
|
-
}
|
|
57769
|
-
|
|
57770
|
-
export interface IWeldingIotConfigDto {
|
|
57771
|
-
}
|
|
57772
|
-
|
|
57773
|
-
export class CreateWeldingIotConfig implements ICreateWeldingIotConfig {
|
|
57774
|
-
|
|
57775
|
-
constructor(data?: ICreateWeldingIotConfig) {
|
|
57776
|
-
if (data) {
|
|
57777
|
-
for (var property in data) {
|
|
57778
|
-
if (data.hasOwnProperty(property))
|
|
57779
|
-
(<any>this)[property] = (<any>data)[property];
|
|
57780
|
-
}
|
|
57781
|
-
}
|
|
57782
|
-
}
|
|
57783
|
-
|
|
57784
|
-
init(_data?: any) {
|
|
57785
|
-
}
|
|
57786
|
-
|
|
57787
|
-
static fromJS(data: any): CreateWeldingIotConfig {
|
|
57788
|
-
data = typeof data === 'object' ? data : {};
|
|
57789
|
-
let result = new CreateWeldingIotConfig();
|
|
57790
|
-
result.init(data);
|
|
57791
|
-
return result;
|
|
57792
|
-
}
|
|
57793
|
-
|
|
57794
|
-
toJSON(data?: any) {
|
|
57795
|
-
data = typeof data === 'object' ? data : {};
|
|
57796
|
-
return data;
|
|
57797
|
-
}
|
|
57798
|
-
}
|
|
57799
|
-
|
|
57800
|
-
export interface ICreateWeldingIotConfig {
|
|
57801
|
-
}
|
|
57802
|
-
|
|
57803
58131
|
export class ProductionCompanyDto implements IProductionCompanyDto {
|
|
57804
58132
|
id!: string;
|
|
57805
58133
|
name!: string;
|