@ignos/api-client 20250808.0.12338 → 20250822.0.12415-alpha

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -18120,6 +18120,368 @@ export class MesResourceClient extends AuthorizedApiBase implements IMesResource
18120
18120
  }
18121
18121
  }
18122
18122
 
18123
+ export interface IElectricalClient {
18124
+
18125
+ listElectricalSourceTypes(): Promise<IotTypeSourceDto[]>;
18126
+
18127
+ listElectricalDataConfigs(): Promise<ElectricalIotConfigDto[]>;
18128
+
18129
+ createElectricalIotConfig(request: CreateElectricalIotConfig): Promise<ElectricalIotConfigDto>;
18130
+
18131
+ deleteElectricalIotConfig(typeId: string, id: string): Promise<void>;
18132
+ }
18133
+
18134
+ export class ElectricalClient extends AuthorizedApiBase implements IElectricalClient {
18135
+ private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
18136
+ private baseUrl: string;
18137
+ protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;
18138
+
18139
+ constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
18140
+ super(configuration);
18141
+ this.http = http ? http : window as any;
18142
+ this.baseUrl = baseUrl ?? "";
18143
+ }
18144
+
18145
+ listElectricalSourceTypes(): Promise<IotTypeSourceDto[]> {
18146
+ let url_ = this.baseUrl + "/iot/electrical/sourcetypes";
18147
+ url_ = url_.replace(/[?&]$/, "");
18148
+
18149
+ let options_: RequestInit = {
18150
+ method: "GET",
18151
+ headers: {
18152
+ "Accept": "application/json"
18153
+ }
18154
+ };
18155
+
18156
+ return this.transformOptions(options_).then(transformedOptions_ => {
18157
+ return this.http.fetch(url_, transformedOptions_);
18158
+ }).then((_response: Response) => {
18159
+ return this.processListElectricalSourceTypes(_response);
18160
+ });
18161
+ }
18162
+
18163
+ protected processListElectricalSourceTypes(response: Response): Promise<IotTypeSourceDto[]> {
18164
+ const status = response.status;
18165
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
18166
+ if (status === 200) {
18167
+ return response.text().then((_responseText) => {
18168
+ let result200: any = null;
18169
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
18170
+ if (Array.isArray(resultData200)) {
18171
+ result200 = [] as any;
18172
+ for (let item of resultData200)
18173
+ result200!.push(IotTypeSourceDto.fromJS(item));
18174
+ }
18175
+ return result200;
18176
+ });
18177
+ } else if (status !== 200 && status !== 204) {
18178
+ return response.text().then((_responseText) => {
18179
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
18180
+ });
18181
+ }
18182
+ return Promise.resolve<IotTypeSourceDto[]>(null as any);
18183
+ }
18184
+
18185
+ listElectricalDataConfigs(): Promise<ElectricalIotConfigDto[]> {
18186
+ let url_ = this.baseUrl + "/iot/electrical";
18187
+ url_ = url_.replace(/[?&]$/, "");
18188
+
18189
+ let options_: RequestInit = {
18190
+ method: "GET",
18191
+ headers: {
18192
+ "Accept": "application/json"
18193
+ }
18194
+ };
18195
+
18196
+ return this.transformOptions(options_).then(transformedOptions_ => {
18197
+ return this.http.fetch(url_, transformedOptions_);
18198
+ }).then((_response: Response) => {
18199
+ return this.processListElectricalDataConfigs(_response);
18200
+ });
18201
+ }
18202
+
18203
+ protected processListElectricalDataConfigs(response: Response): Promise<ElectricalIotConfigDto[]> {
18204
+ const status = response.status;
18205
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
18206
+ if (status === 200) {
18207
+ return response.text().then((_responseText) => {
18208
+ let result200: any = null;
18209
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
18210
+ if (Array.isArray(resultData200)) {
18211
+ result200 = [] as any;
18212
+ for (let item of resultData200)
18213
+ result200!.push(ElectricalIotConfigDto.fromJS(item));
18214
+ }
18215
+ return result200;
18216
+ });
18217
+ } else if (status !== 200 && status !== 204) {
18218
+ return response.text().then((_responseText) => {
18219
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
18220
+ });
18221
+ }
18222
+ return Promise.resolve<ElectricalIotConfigDto[]>(null as any);
18223
+ }
18224
+
18225
+ createElectricalIotConfig(request: CreateElectricalIotConfig): Promise<ElectricalIotConfigDto> {
18226
+ let url_ = this.baseUrl + "/iot/electrical";
18227
+ url_ = url_.replace(/[?&]$/, "");
18228
+
18229
+ const content_ = JSON.stringify(request);
18230
+
18231
+ let options_: RequestInit = {
18232
+ body: content_,
18233
+ method: "POST",
18234
+ headers: {
18235
+ "Content-Type": "application/json",
18236
+ "Accept": "application/json"
18237
+ }
18238
+ };
18239
+
18240
+ return this.transformOptions(options_).then(transformedOptions_ => {
18241
+ return this.http.fetch(url_, transformedOptions_);
18242
+ }).then((_response: Response) => {
18243
+ return this.processCreateElectricalIotConfig(_response);
18244
+ });
18245
+ }
18246
+
18247
+ protected processCreateElectricalIotConfig(response: Response): Promise<ElectricalIotConfigDto> {
18248
+ const status = response.status;
18249
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
18250
+ if (status === 200) {
18251
+ return response.text().then((_responseText) => {
18252
+ let result200: any = null;
18253
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
18254
+ result200 = ElectricalIotConfigDto.fromJS(resultData200);
18255
+ return result200;
18256
+ });
18257
+ } else if (status !== 200 && status !== 204) {
18258
+ return response.text().then((_responseText) => {
18259
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
18260
+ });
18261
+ }
18262
+ return Promise.resolve<ElectricalIotConfigDto>(null as any);
18263
+ }
18264
+
18265
+ deleteElectricalIotConfig(typeId: string, id: string): Promise<void> {
18266
+ let url_ = this.baseUrl + "/iot/electrical/{typeId}/{id}";
18267
+ if (typeId === undefined || typeId === null)
18268
+ throw new Error("The parameter 'typeId' must be defined.");
18269
+ url_ = url_.replace("{typeId}", encodeURIComponent("" + typeId));
18270
+ if (id === undefined || id === null)
18271
+ throw new Error("The parameter 'id' must be defined.");
18272
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
18273
+ url_ = url_.replace(/[?&]$/, "");
18274
+
18275
+ let options_: RequestInit = {
18276
+ method: "DELETE",
18277
+ headers: {
18278
+ }
18279
+ };
18280
+
18281
+ return this.transformOptions(options_).then(transformedOptions_ => {
18282
+ return this.http.fetch(url_, transformedOptions_);
18283
+ }).then((_response: Response) => {
18284
+ return this.processDeleteElectricalIotConfig(_response);
18285
+ });
18286
+ }
18287
+
18288
+ protected processDeleteElectricalIotConfig(response: Response): Promise<void> {
18289
+ const status = response.status;
18290
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
18291
+ if (status === 204) {
18292
+ return response.text().then((_responseText) => {
18293
+ return;
18294
+ });
18295
+ } else if (status !== 200 && status !== 204) {
18296
+ return response.text().then((_responseText) => {
18297
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
18298
+ });
18299
+ }
18300
+ return Promise.resolve<void>(null as any);
18301
+ }
18302
+ }
18303
+
18304
+ export interface IWeldingClient {
18305
+
18306
+ listWeldingSourceTypes(): Promise<IotTypeSourceDto[]>;
18307
+
18308
+ listElectricalDataConfigs(): Promise<WeldingIotConfigDto[]>;
18309
+
18310
+ createWeldingIotConfig(request: CreateWeldingIotConfig): Promise<WeldingIotConfigDto>;
18311
+
18312
+ deleteWeldingIotConfig(typeId: string, id: string): Promise<void>;
18313
+ }
18314
+
18315
+ export class WeldingClient extends AuthorizedApiBase implements IWeldingClient {
18316
+ private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
18317
+ private baseUrl: string;
18318
+ protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;
18319
+
18320
+ constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
18321
+ super(configuration);
18322
+ this.http = http ? http : window as any;
18323
+ this.baseUrl = baseUrl ?? "";
18324
+ }
18325
+
18326
+ listWeldingSourceTypes(): Promise<IotTypeSourceDto[]> {
18327
+ let url_ = this.baseUrl + "/iot/welding/sourcetypes";
18328
+ url_ = url_.replace(/[?&]$/, "");
18329
+
18330
+ let options_: RequestInit = {
18331
+ method: "GET",
18332
+ headers: {
18333
+ "Accept": "application/json"
18334
+ }
18335
+ };
18336
+
18337
+ return this.transformOptions(options_).then(transformedOptions_ => {
18338
+ return this.http.fetch(url_, transformedOptions_);
18339
+ }).then((_response: Response) => {
18340
+ return this.processListWeldingSourceTypes(_response);
18341
+ });
18342
+ }
18343
+
18344
+ protected processListWeldingSourceTypes(response: Response): Promise<IotTypeSourceDto[]> {
18345
+ const status = response.status;
18346
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
18347
+ if (status === 200) {
18348
+ return response.text().then((_responseText) => {
18349
+ let result200: any = null;
18350
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
18351
+ if (Array.isArray(resultData200)) {
18352
+ result200 = [] as any;
18353
+ for (let item of resultData200)
18354
+ result200!.push(IotTypeSourceDto.fromJS(item));
18355
+ }
18356
+ return result200;
18357
+ });
18358
+ } else if (status !== 200 && status !== 204) {
18359
+ return response.text().then((_responseText) => {
18360
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
18361
+ });
18362
+ }
18363
+ return Promise.resolve<IotTypeSourceDto[]>(null as any);
18364
+ }
18365
+
18366
+ listElectricalDataConfigs(): Promise<WeldingIotConfigDto[]> {
18367
+ let url_ = this.baseUrl + "/iot/welding";
18368
+ url_ = url_.replace(/[?&]$/, "");
18369
+
18370
+ let options_: RequestInit = {
18371
+ method: "GET",
18372
+ headers: {
18373
+ "Accept": "application/json"
18374
+ }
18375
+ };
18376
+
18377
+ return this.transformOptions(options_).then(transformedOptions_ => {
18378
+ return this.http.fetch(url_, transformedOptions_);
18379
+ }).then((_response: Response) => {
18380
+ return this.processListElectricalDataConfigs(_response);
18381
+ });
18382
+ }
18383
+
18384
+ protected processListElectricalDataConfigs(response: Response): Promise<WeldingIotConfigDto[]> {
18385
+ const status = response.status;
18386
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
18387
+ if (status === 200) {
18388
+ return response.text().then((_responseText) => {
18389
+ let result200: any = null;
18390
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
18391
+ if (Array.isArray(resultData200)) {
18392
+ result200 = [] as any;
18393
+ for (let item of resultData200)
18394
+ result200!.push(WeldingIotConfigDto.fromJS(item));
18395
+ }
18396
+ return result200;
18397
+ });
18398
+ } else if (status !== 200 && status !== 204) {
18399
+ return response.text().then((_responseText) => {
18400
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
18401
+ });
18402
+ }
18403
+ return Promise.resolve<WeldingIotConfigDto[]>(null as any);
18404
+ }
18405
+
18406
+ createWeldingIotConfig(request: CreateWeldingIotConfig): Promise<WeldingIotConfigDto> {
18407
+ let url_ = this.baseUrl + "/iot/welding";
18408
+ url_ = url_.replace(/[?&]$/, "");
18409
+
18410
+ const content_ = JSON.stringify(request);
18411
+
18412
+ let options_: RequestInit = {
18413
+ body: content_,
18414
+ method: "POST",
18415
+ headers: {
18416
+ "Content-Type": "application/json",
18417
+ "Accept": "application/json"
18418
+ }
18419
+ };
18420
+
18421
+ return this.transformOptions(options_).then(transformedOptions_ => {
18422
+ return this.http.fetch(url_, transformedOptions_);
18423
+ }).then((_response: Response) => {
18424
+ return this.processCreateWeldingIotConfig(_response);
18425
+ });
18426
+ }
18427
+
18428
+ protected processCreateWeldingIotConfig(response: Response): Promise<WeldingIotConfigDto> {
18429
+ const status = response.status;
18430
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
18431
+ if (status === 200) {
18432
+ return response.text().then((_responseText) => {
18433
+ let result200: any = null;
18434
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
18435
+ result200 = WeldingIotConfigDto.fromJS(resultData200);
18436
+ return result200;
18437
+ });
18438
+ } else if (status !== 200 && status !== 204) {
18439
+ return response.text().then((_responseText) => {
18440
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
18441
+ });
18442
+ }
18443
+ return Promise.resolve<WeldingIotConfigDto>(null as any);
18444
+ }
18445
+
18446
+ deleteWeldingIotConfig(typeId: string, id: string): Promise<void> {
18447
+ let url_ = this.baseUrl + "/iot/welding/{typeId}/{id}";
18448
+ if (typeId === undefined || typeId === null)
18449
+ throw new Error("The parameter 'typeId' must be defined.");
18450
+ url_ = url_.replace("{typeId}", encodeURIComponent("" + typeId));
18451
+ if (id === undefined || id === null)
18452
+ throw new Error("The parameter 'id' must be defined.");
18453
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
18454
+ url_ = url_.replace(/[?&]$/, "");
18455
+
18456
+ let options_: RequestInit = {
18457
+ method: "DELETE",
18458
+ headers: {
18459
+ }
18460
+ };
18461
+
18462
+ return this.transformOptions(options_).then(transformedOptions_ => {
18463
+ return this.http.fetch(url_, transformedOptions_);
18464
+ }).then((_response: Response) => {
18465
+ return this.processDeleteWeldingIotConfig(_response);
18466
+ });
18467
+ }
18468
+
18469
+ protected processDeleteWeldingIotConfig(response: Response): Promise<void> {
18470
+ const status = response.status;
18471
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
18472
+ if (status === 204) {
18473
+ return response.text().then((_responseText) => {
18474
+ return;
18475
+ });
18476
+ } else if (status !== 200 && status !== 204) {
18477
+ return response.text().then((_responseText) => {
18478
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
18479
+ });
18480
+ }
18481
+ return Promise.resolve<void>(null as any);
18482
+ }
18483
+ }
18484
+
18123
18485
  export interface IMeasurementFormSchemasClient {
18124
18486
 
18125
18487
  listMeasurmentFormSchemas(pageSize: number | undefined, customerId: string | null | undefined, customerName: string | null | undefined, partNumber: string | null | undefined, partName: string | null | undefined, partRevision: string | null | undefined, drawing: string | null | undefined, drawingRevision: string | null | undefined, filter: string | null | undefined, continuationToken: string | null | undefined): Promise<PagedResultOfMeasurementFormListDto>;
@@ -18150,8 +18512,6 @@ export interface IMeasurementFormSchemasClient {
18150
18512
 
18151
18513
  uploadSchemaAttachment(id: string, request: UploadRequest): Promise<MeasurementFormSchemaDto>;
18152
18514
 
18153
- getMeasurementFormImportStatus(id: string): Promise<MeasurementFormImportStatusDto>;
18154
-
18155
18515
  listLinkableMeasurementFormSchemas(schemaId: string, pageSize: number | undefined, filter: string | null | undefined, continuationToken: string | null | undefined): Promise<PagedResultOfMeasurementFormListDto>;
18156
18516
 
18157
18517
  postListLinkableMeasurementFormSchemas(request: ListLinkableMeasurementFormSchemasRequest): Promise<PagedResultOfMeasurementFormListDto>;
@@ -18171,12 +18531,12 @@ export interface IMeasurementFormSchemasClient {
18171
18531
  /**
18172
18532
  * @deprecated
18173
18533
  */
18174
- getMeasurementFormSettings(): Promise<MeasurementFormSettingsDto>;
18534
+ getMeasurementFormSettings(): Promise<InspectCompanySettingsDto>;
18175
18535
 
18176
18536
  /**
18177
18537
  * @deprecated
18178
18538
  */
18179
- updateMeasurementFormSettings(request: UpdateMeasurementFormSettings): Promise<MeasurementFormSettingsDto>;
18539
+ updateMeasurementFormSettings(request: UpdateMeasurementFormSettings): Promise<InspectCompanySettingsDto>;
18180
18540
 
18181
18541
  /**
18182
18542
  * @deprecated
@@ -18196,17 +18556,15 @@ export interface IMeasurementFormSchemasClient {
18196
18556
 
18197
18557
  deleteMeasurementFormMapping(id: string): Promise<void>;
18198
18558
 
18199
- setMeasurementFormMappingBalloons(id: string, request: MeasurementFormBalloonMappingRequestDto[]): Promise<MeasurementFormMappingDto>;
18559
+ /**
18560
+ * @deprecated
18561
+ */
18562
+ setMeasurementFormMappingBalloonsV2(id: string, request: SetMeasurementFormReferencesMappingRequest): Promise<MeasurementFormMappingDto>;
18200
18563
 
18201
- setMeasurementFormMappingBalloonsV2(id: string, request: SetMeasurementFormMappingBalloonsRequest): Promise<MeasurementFormMappingDto>;
18564
+ setMeasurementFormReferencesMapping(mappingId: string, request: SetMeasurementFormReferencesMappingRequest): Promise<MeasurementFormMappingDto>;
18202
18565
 
18203
18566
  getMeasurementFormMappingSuggestion(targetId: string | null | undefined, sourceId: string | null | undefined): Promise<MeasurementFormMappingSuggestionDto>;
18204
18567
 
18205
- /**
18206
- * Custom api for initial import. Not to be used more than once per customer.
18207
- */
18208
- importMeasurementFormSchema(request: ImportMeasurementFormSchema): Promise<MeasurementFormDto>;
18209
-
18210
18568
  listMeasurementFormNeeds(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, onlyWithoutDrawingUrl: boolean | null | undefined): Promise<PagedResultOfMeasurementFormNeedDto>;
18211
18569
 
18212
18570
  postListMeasurementFormNeeds(request: ListMeasurementFormNeedsRequest | undefined): Promise<PagedResultOfMeasurementFormNeedDto>;
@@ -18858,45 +19216,6 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
18858
19216
  return Promise.resolve<MeasurementFormSchemaDto>(null as any);
18859
19217
  }
18860
19218
 
18861
- getMeasurementFormImportStatus(id: string): Promise<MeasurementFormImportStatusDto> {
18862
- let url_ = this.baseUrl + "/measurementforms/schemas/{id}/importstatus";
18863
- if (id === undefined || id === null)
18864
- throw new Error("The parameter 'id' must be defined.");
18865
- url_ = url_.replace("{id}", encodeURIComponent("" + id));
18866
- url_ = url_.replace(/[?&]$/, "");
18867
-
18868
- let options_: RequestInit = {
18869
- method: "GET",
18870
- headers: {
18871
- "Accept": "application/json"
18872
- }
18873
- };
18874
-
18875
- return this.transformOptions(options_).then(transformedOptions_ => {
18876
- return this.http.fetch(url_, transformedOptions_);
18877
- }).then((_response: Response) => {
18878
- return this.processGetMeasurementFormImportStatus(_response);
18879
- });
18880
- }
18881
-
18882
- protected processGetMeasurementFormImportStatus(response: Response): Promise<MeasurementFormImportStatusDto> {
18883
- const status = response.status;
18884
- let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
18885
- if (status === 200) {
18886
- return response.text().then((_responseText) => {
18887
- let result200: any = null;
18888
- let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
18889
- result200 = MeasurementFormImportStatusDto.fromJS(resultData200);
18890
- return result200;
18891
- });
18892
- } else if (status !== 200 && status !== 204) {
18893
- return response.text().then((_responseText) => {
18894
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
18895
- });
18896
- }
18897
- return Promise.resolve<MeasurementFormImportStatusDto>(null as any);
18898
- }
18899
-
18900
19219
  listLinkableMeasurementFormSchemas(schemaId: string, pageSize: number | undefined, filter: string | null | undefined, continuationToken: string | null | undefined): Promise<PagedResultOfMeasurementFormListDto> {
18901
19220
  let url_ = this.baseUrl + "/measurementforms/schemas/{schemaId}/listlinkableschemas?";
18902
19221
  if (schemaId === undefined || schemaId === null)
@@ -19225,7 +19544,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
19225
19544
  /**
19226
19545
  * @deprecated
19227
19546
  */
19228
- getMeasurementFormSettings(): Promise<MeasurementFormSettingsDto> {
19547
+ getMeasurementFormSettings(): Promise<InspectCompanySettingsDto> {
19229
19548
  let url_ = this.baseUrl + "/measurementforms/schemas/settings";
19230
19549
  url_ = url_.replace(/[?&]$/, "");
19231
19550
 
@@ -19243,14 +19562,14 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
19243
19562
  });
19244
19563
  }
19245
19564
 
19246
- protected processGetMeasurementFormSettings(response: Response): Promise<MeasurementFormSettingsDto> {
19565
+ protected processGetMeasurementFormSettings(response: Response): Promise<InspectCompanySettingsDto> {
19247
19566
  const status = response.status;
19248
19567
  let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
19249
19568
  if (status === 200) {
19250
19569
  return response.text().then((_responseText) => {
19251
19570
  let result200: any = null;
19252
19571
  let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
19253
- result200 = MeasurementFormSettingsDto.fromJS(resultData200);
19572
+ result200 = InspectCompanySettingsDto.fromJS(resultData200);
19254
19573
  return result200;
19255
19574
  });
19256
19575
  } else if (status !== 200 && status !== 204) {
@@ -19258,13 +19577,13 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
19258
19577
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
19259
19578
  });
19260
19579
  }
19261
- return Promise.resolve<MeasurementFormSettingsDto>(null as any);
19580
+ return Promise.resolve<InspectCompanySettingsDto>(null as any);
19262
19581
  }
19263
19582
 
19264
19583
  /**
19265
19584
  * @deprecated
19266
19585
  */
19267
- updateMeasurementFormSettings(request: UpdateMeasurementFormSettings): Promise<MeasurementFormSettingsDto> {
19586
+ updateMeasurementFormSettings(request: UpdateMeasurementFormSettings): Promise<InspectCompanySettingsDto> {
19268
19587
  let url_ = this.baseUrl + "/measurementforms/schemas/settings";
19269
19588
  url_ = url_.replace(/[?&]$/, "");
19270
19589
 
@@ -19286,14 +19605,14 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
19286
19605
  });
19287
19606
  }
19288
19607
 
19289
- protected processUpdateMeasurementFormSettings(response: Response): Promise<MeasurementFormSettingsDto> {
19608
+ protected processUpdateMeasurementFormSettings(response: Response): Promise<InspectCompanySettingsDto> {
19290
19609
  const status = response.status;
19291
19610
  let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
19292
19611
  if (status === 200) {
19293
19612
  return response.text().then((_responseText) => {
19294
19613
  let result200: any = null;
19295
19614
  let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
19296
- result200 = MeasurementFormSettingsDto.fromJS(resultData200);
19615
+ result200 = InspectCompanySettingsDto.fromJS(resultData200);
19297
19616
  return result200;
19298
19617
  });
19299
19618
  } else if (status !== 200 && status !== 204) {
@@ -19301,7 +19620,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
19301
19620
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
19302
19621
  });
19303
19622
  }
19304
- return Promise.resolve<MeasurementFormSettingsDto>(null as any);
19623
+ return Promise.resolve<InspectCompanySettingsDto>(null as any);
19305
19624
  }
19306
19625
 
19307
19626
  /**
@@ -19559,8 +19878,11 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
19559
19878
  return Promise.resolve<void>(null as any);
19560
19879
  }
19561
19880
 
19562
- setMeasurementFormMappingBalloons(id: string, request: MeasurementFormBalloonMappingRequestDto[]): Promise<MeasurementFormMappingDto> {
19563
- let url_ = this.baseUrl + "/measurementforms/schemas/mapping/{id}/balloons";
19881
+ /**
19882
+ * @deprecated
19883
+ */
19884
+ setMeasurementFormMappingBalloonsV2(id: string, request: SetMeasurementFormReferencesMappingRequest): Promise<MeasurementFormMappingDto> {
19885
+ let url_ = this.baseUrl + "/measurementforms/schemas/mapping/{id}/balloons/v2";
19564
19886
  if (id === undefined || id === null)
19565
19887
  throw new Error("The parameter 'id' must be defined.");
19566
19888
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
@@ -19580,11 +19902,11 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
19580
19902
  return this.transformOptions(options_).then(transformedOptions_ => {
19581
19903
  return this.http.fetch(url_, transformedOptions_);
19582
19904
  }).then((_response: Response) => {
19583
- return this.processSetMeasurementFormMappingBalloons(_response);
19905
+ return this.processSetMeasurementFormMappingBalloonsV2(_response);
19584
19906
  });
19585
19907
  }
19586
19908
 
19587
- protected processSetMeasurementFormMappingBalloons(response: Response): Promise<MeasurementFormMappingDto> {
19909
+ protected processSetMeasurementFormMappingBalloonsV2(response: Response): Promise<MeasurementFormMappingDto> {
19588
19910
  const status = response.status;
19589
19911
  let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
19590
19912
  if (status === 200) {
@@ -19602,11 +19924,11 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
19602
19924
  return Promise.resolve<MeasurementFormMappingDto>(null as any);
19603
19925
  }
19604
19926
 
19605
- setMeasurementFormMappingBalloonsV2(id: string, request: SetMeasurementFormMappingBalloonsRequest): Promise<MeasurementFormMappingDto> {
19606
- let url_ = this.baseUrl + "/measurementforms/schemas/mapping/{id}/balloons/v2";
19607
- if (id === undefined || id === null)
19608
- throw new Error("The parameter 'id' must be defined.");
19609
- url_ = url_.replace("{id}", encodeURIComponent("" + id));
19927
+ setMeasurementFormReferencesMapping(mappingId: string, request: SetMeasurementFormReferencesMappingRequest): Promise<MeasurementFormMappingDto> {
19928
+ let url_ = this.baseUrl + "/measurementforms/schemas/mapping/{mappingId}/references";
19929
+ if (mappingId === undefined || mappingId === null)
19930
+ throw new Error("The parameter 'mappingId' must be defined.");
19931
+ url_ = url_.replace("{mappingId}", encodeURIComponent("" + mappingId));
19610
19932
  url_ = url_.replace(/[?&]$/, "");
19611
19933
 
19612
19934
  const content_ = JSON.stringify(request);
@@ -19623,11 +19945,11 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
19623
19945
  return this.transformOptions(options_).then(transformedOptions_ => {
19624
19946
  return this.http.fetch(url_, transformedOptions_);
19625
19947
  }).then((_response: Response) => {
19626
- return this.processSetMeasurementFormMappingBalloonsV2(_response);
19948
+ return this.processSetMeasurementFormReferencesMapping(_response);
19627
19949
  });
19628
19950
  }
19629
19951
 
19630
- protected processSetMeasurementFormMappingBalloonsV2(response: Response): Promise<MeasurementFormMappingDto> {
19952
+ protected processSetMeasurementFormReferencesMapping(response: Response): Promise<MeasurementFormMappingDto> {
19631
19953
  const status = response.status;
19632
19954
  let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
19633
19955
  if (status === 200) {
@@ -19685,49 +20007,6 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
19685
20007
  return Promise.resolve<MeasurementFormMappingSuggestionDto>(null as any);
19686
20008
  }
19687
20009
 
19688
- /**
19689
- * Custom api for initial import. Not to be used more than once per customer.
19690
- */
19691
- importMeasurementFormSchema(request: ImportMeasurementFormSchema): Promise<MeasurementFormDto> {
19692
- let url_ = this.baseUrl + "/measurementforms/schemas/import";
19693
- url_ = url_.replace(/[?&]$/, "");
19694
-
19695
- const content_ = JSON.stringify(request);
19696
-
19697
- let options_: RequestInit = {
19698
- body: content_,
19699
- method: "POST",
19700
- headers: {
19701
- "Content-Type": "application/json",
19702
- "Accept": "application/json"
19703
- }
19704
- };
19705
-
19706
- return this.transformOptions(options_).then(transformedOptions_ => {
19707
- return this.http.fetch(url_, transformedOptions_);
19708
- }).then((_response: Response) => {
19709
- return this.processImportMeasurementFormSchema(_response);
19710
- });
19711
- }
19712
-
19713
- protected processImportMeasurementFormSchema(response: Response): Promise<MeasurementFormDto> {
19714
- const status = response.status;
19715
- let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
19716
- if (status === 200) {
19717
- return response.text().then((_responseText) => {
19718
- let result200: any = null;
19719
- let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
19720
- result200 = MeasurementFormDto.fromJS(resultData200);
19721
- return result200;
19722
- });
19723
- } else if (status !== 200 && status !== 204) {
19724
- return response.text().then((_responseText) => {
19725
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
19726
- });
19727
- }
19728
- return Promise.resolve<MeasurementFormDto>(null as any);
19729
- }
19730
-
19731
20010
  listMeasurementFormNeeds(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, onlyWithoutDrawingUrl: boolean | null | undefined): Promise<PagedResultOfMeasurementFormNeedDto> {
19732
20011
  let url_ = this.baseUrl + "/measurementforms/schemas/needs?";
19733
20012
  if (pageSize === null)
@@ -20574,9 +20853,9 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
20574
20853
 
20575
20854
  export interface IMeasurementFormSettingsClient {
20576
20855
 
20577
- getMeasurementFormSettings(): Promise<MeasurementFormSettingsDto>;
20856
+ getMeasurementFormSettings(): Promise<InspectCompanySettingsDto>;
20578
20857
 
20579
- updateMeasurementFormSettings(request: UpdateMeasurementFormSettings): Promise<MeasurementFormSettingsDto>;
20858
+ updateMeasurementFormSettings(request: UpdateMeasurementFormSettings): Promise<InspectCompanySettingsDto>;
20580
20859
 
20581
20860
  getMeasurementFormCustomerSettings(id: string): Promise<MeasurementFormCustomerSettingsDto>;
20582
20861
 
@@ -20594,7 +20873,7 @@ export class MeasurementFormSettingsClient extends AuthorizedApiBase implements
20594
20873
  this.baseUrl = baseUrl ?? "";
20595
20874
  }
20596
20875
 
20597
- getMeasurementFormSettings(): Promise<MeasurementFormSettingsDto> {
20876
+ getMeasurementFormSettings(): Promise<InspectCompanySettingsDto> {
20598
20877
  let url_ = this.baseUrl + "/measurementforms/settings";
20599
20878
  url_ = url_.replace(/[?&]$/, "");
20600
20879
 
@@ -20612,14 +20891,14 @@ export class MeasurementFormSettingsClient extends AuthorizedApiBase implements
20612
20891
  });
20613
20892
  }
20614
20893
 
20615
- protected processGetMeasurementFormSettings(response: Response): Promise<MeasurementFormSettingsDto> {
20894
+ protected processGetMeasurementFormSettings(response: Response): Promise<InspectCompanySettingsDto> {
20616
20895
  const status = response.status;
20617
20896
  let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
20618
20897
  if (status === 200) {
20619
20898
  return response.text().then((_responseText) => {
20620
20899
  let result200: any = null;
20621
20900
  let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
20622
- result200 = MeasurementFormSettingsDto.fromJS(resultData200);
20901
+ result200 = InspectCompanySettingsDto.fromJS(resultData200);
20623
20902
  return result200;
20624
20903
  });
20625
20904
  } else if (status !== 200 && status !== 204) {
@@ -20627,10 +20906,10 @@ export class MeasurementFormSettingsClient extends AuthorizedApiBase implements
20627
20906
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
20628
20907
  });
20629
20908
  }
20630
- return Promise.resolve<MeasurementFormSettingsDto>(null as any);
20909
+ return Promise.resolve<InspectCompanySettingsDto>(null as any);
20631
20910
  }
20632
20911
 
20633
- updateMeasurementFormSettings(request: UpdateMeasurementFormSettings): Promise<MeasurementFormSettingsDto> {
20912
+ updateMeasurementFormSettings(request: UpdateMeasurementFormSettings): Promise<InspectCompanySettingsDto> {
20634
20913
  let url_ = this.baseUrl + "/measurementforms/settings";
20635
20914
  url_ = url_.replace(/[?&]$/, "");
20636
20915
 
@@ -20652,14 +20931,14 @@ export class MeasurementFormSettingsClient extends AuthorizedApiBase implements
20652
20931
  });
20653
20932
  }
20654
20933
 
20655
- protected processUpdateMeasurementFormSettings(response: Response): Promise<MeasurementFormSettingsDto> {
20934
+ protected processUpdateMeasurementFormSettings(response: Response): Promise<InspectCompanySettingsDto> {
20656
20935
  const status = response.status;
20657
20936
  let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
20658
20937
  if (status === 200) {
20659
20938
  return response.text().then((_responseText) => {
20660
20939
  let result200: any = null;
20661
20940
  let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
20662
- result200 = MeasurementFormSettingsDto.fromJS(resultData200);
20941
+ result200 = InspectCompanySettingsDto.fromJS(resultData200);
20663
20942
  return result200;
20664
20943
  });
20665
20944
  } else if (status !== 200 && status !== 204) {
@@ -20667,7 +20946,7 @@ export class MeasurementFormSettingsClient extends AuthorizedApiBase implements
20667
20946
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
20668
20947
  });
20669
20948
  }
20670
- return Promise.resolve<MeasurementFormSettingsDto>(null as any);
20949
+ return Promise.resolve<InspectCompanySettingsDto>(null as any);
20671
20950
  }
20672
20951
 
20673
20952
  getMeasurementFormCustomerSettings(id: string): Promise<MeasurementFormCustomerSettingsDto> {
@@ -20780,11 +21059,11 @@ export interface IMeasurementFormsInstancesClient {
20780
21059
 
20781
21060
  cancelMeasurementFormInstance(id: string): Promise<MeasurementFormInstanceDto>;
20782
21061
 
20783
- getMeasurementFormInstanceSchema(id: string, schemaId: string, sequence: string | null | undefined, tenantId: string | null | undefined): Promise<MeasurementFormInstanceSchemaDto>;
21062
+ getMeasurementFormInstanceSchema(id: string, schemaId: string, serialNumber: string | null | undefined, tenantId: string | null | undefined): Promise<MeasurementFormInstanceSchemaDto>;
20784
21063
 
20785
21064
  getWorkorderMeasurementFormProgress(id: string, tenantId: string | null | undefined): Promise<MeasurementFormInstanceProgressDto>;
20786
21065
 
20787
- getAuditLog(id: string, tenantId: string | null | undefined, schemaId: string | null | undefined, sequence: string | null | undefined, elementId: string | null | undefined): Promise<MeasurementFormElementValueAuditDto[]>;
21066
+ getAuditLog(id: string, tenantId: string | null | undefined, schemaId: string | null | undefined, serialNumber: string | null | undefined, elementId: string | null | undefined): Promise<MeasurementFormElementValueAuditDto[]>;
20788
21067
 
20789
21068
  getValidationRules(): Promise<ValidationRuleDto[]>;
20790
21069
 
@@ -20815,8 +21094,6 @@ export interface IMeasurementFormsInstancesClient {
20815
21094
  getSchemaInstanceElements(id: string, schemaId: string): Promise<SchemaInstanceElementDto[]>;
20816
21095
 
20817
21096
  toggleSchemaInstanceElementDocumentedExternallyOverride(id: string, schemaId: string, elementId: string, tenantId: string | null | undefined): Promise<void>;
20818
-
20819
- importMeasurementFormInstance(id: string, request: ImportMeasurementFormInstanceRequest): Promise<MeasurementFormInstanceDto>;
20820
21097
  }
20821
21098
 
20822
21099
  export class MeasurementFormsInstancesClient extends AuthorizedApiBase implements IMeasurementFormsInstancesClient {
@@ -21418,7 +21695,7 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase implement
21418
21695
  return Promise.resolve<MeasurementFormInstanceDto>(null as any);
21419
21696
  }
21420
21697
 
21421
- getMeasurementFormInstanceSchema(id: string, schemaId: string, sequence: string | null | undefined, tenantId: string | null | undefined): Promise<MeasurementFormInstanceSchemaDto> {
21698
+ getMeasurementFormInstanceSchema(id: string, schemaId: string, serialNumber: string | null | undefined, tenantId: string | null | undefined): Promise<MeasurementFormInstanceSchemaDto> {
21422
21699
  let url_ = this.baseUrl + "/measurementforms/instances/{id}/schemas/{schemaId}?";
21423
21700
  if (id === undefined || id === null)
21424
21701
  throw new Error("The parameter 'id' must be defined.");
@@ -21426,8 +21703,8 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase implement
21426
21703
  if (schemaId === undefined || schemaId === null)
21427
21704
  throw new Error("The parameter 'schemaId' must be defined.");
21428
21705
  url_ = url_.replace("{schemaId}", encodeURIComponent("" + schemaId));
21429
- if (sequence !== undefined && sequence !== null)
21430
- url_ += "sequence=" + encodeURIComponent("" + sequence) + "&";
21706
+ if (serialNumber !== undefined && serialNumber !== null)
21707
+ url_ += "serialNumber=" + encodeURIComponent("" + serialNumber) + "&";
21431
21708
  if (tenantId !== undefined && tenantId !== null)
21432
21709
  url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
21433
21710
  url_ = url_.replace(/[?&]$/, "");
@@ -21505,7 +21782,7 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase implement
21505
21782
  return Promise.resolve<MeasurementFormInstanceProgressDto>(null as any);
21506
21783
  }
21507
21784
 
21508
- getAuditLog(id: string, tenantId: string | null | undefined, schemaId: string | null | undefined, sequence: string | null | undefined, elementId: string | null | undefined): Promise<MeasurementFormElementValueAuditDto[]> {
21785
+ getAuditLog(id: string, tenantId: string | null | undefined, schemaId: string | null | undefined, serialNumber: string | null | undefined, elementId: string | null | undefined): Promise<MeasurementFormElementValueAuditDto[]> {
21509
21786
  let url_ = this.baseUrl + "/measurementforms/instances/{id}/auditlog?";
21510
21787
  if (id === undefined || id === null)
21511
21788
  throw new Error("The parameter 'id' must be defined.");
@@ -21514,8 +21791,8 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase implement
21514
21791
  url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
21515
21792
  if (schemaId !== undefined && schemaId !== null)
21516
21793
  url_ += "schemaId=" + encodeURIComponent("" + schemaId) + "&";
21517
- if (sequence !== undefined && sequence !== null)
21518
- url_ += "sequence=" + encodeURIComponent("" + sequence) + "&";
21794
+ if (serialNumber !== undefined && serialNumber !== null)
21795
+ url_ += "serialNumber=" + encodeURIComponent("" + serialNumber) + "&";
21519
21796
  if (elementId !== undefined && elementId !== null)
21520
21797
  url_ += "elementId=" + encodeURIComponent("" + elementId) + "&";
21521
21798
  url_ = url_.replace(/[?&]$/, "");
@@ -22199,411 +22476,6 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase implement
22199
22476
  }
22200
22477
  return Promise.resolve<void>(null as any);
22201
22478
  }
22202
-
22203
- importMeasurementFormInstance(id: string, request: ImportMeasurementFormInstanceRequest): Promise<MeasurementFormInstanceDto> {
22204
- let url_ = this.baseUrl + "/measurementforms/instances/{id}/import";
22205
- if (id === undefined || id === null)
22206
- throw new Error("The parameter 'id' must be defined.");
22207
- url_ = url_.replace("{id}", encodeURIComponent("" + id));
22208
- url_ = url_.replace(/[?&]$/, "");
22209
-
22210
- const content_ = JSON.stringify(request);
22211
-
22212
- let options_: RequestInit = {
22213
- body: content_,
22214
- method: "POST",
22215
- headers: {
22216
- "Content-Type": "application/json",
22217
- "Accept": "application/json"
22218
- }
22219
- };
22220
-
22221
- return this.transformOptions(options_).then(transformedOptions_ => {
22222
- return this.http.fetch(url_, transformedOptions_);
22223
- }).then((_response: Response) => {
22224
- return this.processImportMeasurementFormInstance(_response);
22225
- });
22226
- }
22227
-
22228
- protected processImportMeasurementFormInstance(response: Response): Promise<MeasurementFormInstanceDto> {
22229
- const status = response.status;
22230
- let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
22231
- if (status === 200) {
22232
- return response.text().then((_responseText) => {
22233
- let result200: any = null;
22234
- let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
22235
- result200 = MeasurementFormInstanceDto.fromJS(resultData200);
22236
- return result200;
22237
- });
22238
- } else if (status !== 200 && status !== 204) {
22239
- return response.text().then((_responseText) => {
22240
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
22241
- });
22242
- }
22243
- return Promise.resolve<MeasurementFormInstanceDto>(null as any);
22244
- }
22245
- }
22246
-
22247
- export interface IElectricalClient {
22248
-
22249
- listElectricalSourceTypes(): Promise<IotTypeSourceDto[]>;
22250
-
22251
- listElectricalDataConfigs(): Promise<ElectricalIotConfigDto[]>;
22252
-
22253
- createElectricalIotConfig(request: CreateElectricalIotConfig): Promise<ElectricalIotConfigDto>;
22254
-
22255
- deleteElectricalIotConfig(typeId: string, id: string): Promise<void>;
22256
- }
22257
-
22258
- export class ElectricalClient extends AuthorizedApiBase implements IElectricalClient {
22259
- private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
22260
- private baseUrl: string;
22261
- protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;
22262
-
22263
- constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
22264
- super(configuration);
22265
- this.http = http ? http : window as any;
22266
- this.baseUrl = baseUrl ?? "";
22267
- }
22268
-
22269
- listElectricalSourceTypes(): Promise<IotTypeSourceDto[]> {
22270
- let url_ = this.baseUrl + "/iot/electrical/sourcetypes";
22271
- url_ = url_.replace(/[?&]$/, "");
22272
-
22273
- let options_: RequestInit = {
22274
- method: "GET",
22275
- headers: {
22276
- "Accept": "application/json"
22277
- }
22278
- };
22279
-
22280
- return this.transformOptions(options_).then(transformedOptions_ => {
22281
- return this.http.fetch(url_, transformedOptions_);
22282
- }).then((_response: Response) => {
22283
- return this.processListElectricalSourceTypes(_response);
22284
- });
22285
- }
22286
-
22287
- protected processListElectricalSourceTypes(response: Response): Promise<IotTypeSourceDto[]> {
22288
- const status = response.status;
22289
- let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
22290
- if (status === 200) {
22291
- return response.text().then((_responseText) => {
22292
- let result200: any = null;
22293
- let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
22294
- if (Array.isArray(resultData200)) {
22295
- result200 = [] as any;
22296
- for (let item of resultData200)
22297
- result200!.push(IotTypeSourceDto.fromJS(item));
22298
- }
22299
- return result200;
22300
- });
22301
- } else if (status !== 200 && status !== 204) {
22302
- return response.text().then((_responseText) => {
22303
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
22304
- });
22305
- }
22306
- return Promise.resolve<IotTypeSourceDto[]>(null as any);
22307
- }
22308
-
22309
- listElectricalDataConfigs(): Promise<ElectricalIotConfigDto[]> {
22310
- let url_ = this.baseUrl + "/iot/electrical";
22311
- url_ = url_.replace(/[?&]$/, "");
22312
-
22313
- let options_: RequestInit = {
22314
- method: "GET",
22315
- headers: {
22316
- "Accept": "application/json"
22317
- }
22318
- };
22319
-
22320
- return this.transformOptions(options_).then(transformedOptions_ => {
22321
- return this.http.fetch(url_, transformedOptions_);
22322
- }).then((_response: Response) => {
22323
- return this.processListElectricalDataConfigs(_response);
22324
- });
22325
- }
22326
-
22327
- protected processListElectricalDataConfigs(response: Response): Promise<ElectricalIotConfigDto[]> {
22328
- const status = response.status;
22329
- let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
22330
- if (status === 200) {
22331
- return response.text().then((_responseText) => {
22332
- let result200: any = null;
22333
- let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
22334
- if (Array.isArray(resultData200)) {
22335
- result200 = [] as any;
22336
- for (let item of resultData200)
22337
- result200!.push(ElectricalIotConfigDto.fromJS(item));
22338
- }
22339
- return result200;
22340
- });
22341
- } else if (status !== 200 && status !== 204) {
22342
- return response.text().then((_responseText) => {
22343
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
22344
- });
22345
- }
22346
- return Promise.resolve<ElectricalIotConfigDto[]>(null as any);
22347
- }
22348
-
22349
- createElectricalIotConfig(request: CreateElectricalIotConfig): Promise<ElectricalIotConfigDto> {
22350
- let url_ = this.baseUrl + "/iot/electrical";
22351
- url_ = url_.replace(/[?&]$/, "");
22352
-
22353
- const content_ = JSON.stringify(request);
22354
-
22355
- let options_: RequestInit = {
22356
- body: content_,
22357
- method: "POST",
22358
- headers: {
22359
- "Content-Type": "application/json",
22360
- "Accept": "application/json"
22361
- }
22362
- };
22363
-
22364
- return this.transformOptions(options_).then(transformedOptions_ => {
22365
- return this.http.fetch(url_, transformedOptions_);
22366
- }).then((_response: Response) => {
22367
- return this.processCreateElectricalIotConfig(_response);
22368
- });
22369
- }
22370
-
22371
- protected processCreateElectricalIotConfig(response: Response): Promise<ElectricalIotConfigDto> {
22372
- const status = response.status;
22373
- let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
22374
- if (status === 200) {
22375
- return response.text().then((_responseText) => {
22376
- let result200: any = null;
22377
- let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
22378
- result200 = ElectricalIotConfigDto.fromJS(resultData200);
22379
- return result200;
22380
- });
22381
- } else if (status !== 200 && status !== 204) {
22382
- return response.text().then((_responseText) => {
22383
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
22384
- });
22385
- }
22386
- return Promise.resolve<ElectricalIotConfigDto>(null as any);
22387
- }
22388
-
22389
- deleteElectricalIotConfig(typeId: string, id: string): Promise<void> {
22390
- let url_ = this.baseUrl + "/iot/electrical/{typeId}/{id}";
22391
- if (typeId === undefined || typeId === null)
22392
- throw new Error("The parameter 'typeId' must be defined.");
22393
- url_ = url_.replace("{typeId}", encodeURIComponent("" + typeId));
22394
- if (id === undefined || id === null)
22395
- throw new Error("The parameter 'id' must be defined.");
22396
- url_ = url_.replace("{id}", encodeURIComponent("" + id));
22397
- url_ = url_.replace(/[?&]$/, "");
22398
-
22399
- let options_: RequestInit = {
22400
- method: "DELETE",
22401
- headers: {
22402
- }
22403
- };
22404
-
22405
- return this.transformOptions(options_).then(transformedOptions_ => {
22406
- return this.http.fetch(url_, transformedOptions_);
22407
- }).then((_response: Response) => {
22408
- return this.processDeleteElectricalIotConfig(_response);
22409
- });
22410
- }
22411
-
22412
- protected processDeleteElectricalIotConfig(response: Response): Promise<void> {
22413
- const status = response.status;
22414
- let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
22415
- if (status === 204) {
22416
- return response.text().then((_responseText) => {
22417
- return;
22418
- });
22419
- } else if (status !== 200 && status !== 204) {
22420
- return response.text().then((_responseText) => {
22421
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
22422
- });
22423
- }
22424
- return Promise.resolve<void>(null as any);
22425
- }
22426
- }
22427
-
22428
- export interface IWeldingClient {
22429
-
22430
- listWeldingSourceTypes(): Promise<IotTypeSourceDto[]>;
22431
-
22432
- listElectricalDataConfigs(): Promise<WeldingIotConfigDto[]>;
22433
-
22434
- createWeldingIotConfig(request: CreateWeldingIotConfig): Promise<WeldingIotConfigDto>;
22435
-
22436
- deleteWeldingIotConfig(typeId: string, id: string): Promise<void>;
22437
- }
22438
-
22439
- export class WeldingClient extends AuthorizedApiBase implements IWeldingClient {
22440
- private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
22441
- private baseUrl: string;
22442
- protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;
22443
-
22444
- constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
22445
- super(configuration);
22446
- this.http = http ? http : window as any;
22447
- this.baseUrl = baseUrl ?? "";
22448
- }
22449
-
22450
- listWeldingSourceTypes(): Promise<IotTypeSourceDto[]> {
22451
- let url_ = this.baseUrl + "/iot/welding/sourcetypes";
22452
- url_ = url_.replace(/[?&]$/, "");
22453
-
22454
- let options_: RequestInit = {
22455
- method: "GET",
22456
- headers: {
22457
- "Accept": "application/json"
22458
- }
22459
- };
22460
-
22461
- return this.transformOptions(options_).then(transformedOptions_ => {
22462
- return this.http.fetch(url_, transformedOptions_);
22463
- }).then((_response: Response) => {
22464
- return this.processListWeldingSourceTypes(_response);
22465
- });
22466
- }
22467
-
22468
- protected processListWeldingSourceTypes(response: Response): Promise<IotTypeSourceDto[]> {
22469
- const status = response.status;
22470
- let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
22471
- if (status === 200) {
22472
- return response.text().then((_responseText) => {
22473
- let result200: any = null;
22474
- let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
22475
- if (Array.isArray(resultData200)) {
22476
- result200 = [] as any;
22477
- for (let item of resultData200)
22478
- result200!.push(IotTypeSourceDto.fromJS(item));
22479
- }
22480
- return result200;
22481
- });
22482
- } else if (status !== 200 && status !== 204) {
22483
- return response.text().then((_responseText) => {
22484
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
22485
- });
22486
- }
22487
- return Promise.resolve<IotTypeSourceDto[]>(null as any);
22488
- }
22489
-
22490
- listElectricalDataConfigs(): Promise<WeldingIotConfigDto[]> {
22491
- let url_ = this.baseUrl + "/iot/welding";
22492
- url_ = url_.replace(/[?&]$/, "");
22493
-
22494
- let options_: RequestInit = {
22495
- method: "GET",
22496
- headers: {
22497
- "Accept": "application/json"
22498
- }
22499
- };
22500
-
22501
- return this.transformOptions(options_).then(transformedOptions_ => {
22502
- return this.http.fetch(url_, transformedOptions_);
22503
- }).then((_response: Response) => {
22504
- return this.processListElectricalDataConfigs(_response);
22505
- });
22506
- }
22507
-
22508
- protected processListElectricalDataConfigs(response: Response): Promise<WeldingIotConfigDto[]> {
22509
- const status = response.status;
22510
- let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
22511
- if (status === 200) {
22512
- return response.text().then((_responseText) => {
22513
- let result200: any = null;
22514
- let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
22515
- if (Array.isArray(resultData200)) {
22516
- result200 = [] as any;
22517
- for (let item of resultData200)
22518
- result200!.push(WeldingIotConfigDto.fromJS(item));
22519
- }
22520
- return result200;
22521
- });
22522
- } else if (status !== 200 && status !== 204) {
22523
- return response.text().then((_responseText) => {
22524
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
22525
- });
22526
- }
22527
- return Promise.resolve<WeldingIotConfigDto[]>(null as any);
22528
- }
22529
-
22530
- createWeldingIotConfig(request: CreateWeldingIotConfig): Promise<WeldingIotConfigDto> {
22531
- let url_ = this.baseUrl + "/iot/welding";
22532
- url_ = url_.replace(/[?&]$/, "");
22533
-
22534
- const content_ = JSON.stringify(request);
22535
-
22536
- let options_: RequestInit = {
22537
- body: content_,
22538
- method: "POST",
22539
- headers: {
22540
- "Content-Type": "application/json",
22541
- "Accept": "application/json"
22542
- }
22543
- };
22544
-
22545
- return this.transformOptions(options_).then(transformedOptions_ => {
22546
- return this.http.fetch(url_, transformedOptions_);
22547
- }).then((_response: Response) => {
22548
- return this.processCreateWeldingIotConfig(_response);
22549
- });
22550
- }
22551
-
22552
- protected processCreateWeldingIotConfig(response: Response): Promise<WeldingIotConfigDto> {
22553
- const status = response.status;
22554
- let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
22555
- if (status === 200) {
22556
- return response.text().then((_responseText) => {
22557
- let result200: any = null;
22558
- let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
22559
- result200 = WeldingIotConfigDto.fromJS(resultData200);
22560
- return result200;
22561
- });
22562
- } else if (status !== 200 && status !== 204) {
22563
- return response.text().then((_responseText) => {
22564
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
22565
- });
22566
- }
22567
- return Promise.resolve<WeldingIotConfigDto>(null as any);
22568
- }
22569
-
22570
- deleteWeldingIotConfig(typeId: string, id: string): Promise<void> {
22571
- let url_ = this.baseUrl + "/iot/welding/{typeId}/{id}";
22572
- if (typeId === undefined || typeId === null)
22573
- throw new Error("The parameter 'typeId' must be defined.");
22574
- url_ = url_.replace("{typeId}", encodeURIComponent("" + typeId));
22575
- if (id === undefined || id === null)
22576
- throw new Error("The parameter 'id' must be defined.");
22577
- url_ = url_.replace("{id}", encodeURIComponent("" + id));
22578
- url_ = url_.replace(/[?&]$/, "");
22579
-
22580
- let options_: RequestInit = {
22581
- method: "DELETE",
22582
- headers: {
22583
- }
22584
- };
22585
-
22586
- return this.transformOptions(options_).then(transformedOptions_ => {
22587
- return this.http.fetch(url_, transformedOptions_);
22588
- }).then((_response: Response) => {
22589
- return this.processDeleteWeldingIotConfig(_response);
22590
- });
22591
- }
22592
-
22593
- protected processDeleteWeldingIotConfig(response: Response): Promise<void> {
22594
- const status = response.status;
22595
- let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
22596
- if (status === 204) {
22597
- return response.text().then((_responseText) => {
22598
- return;
22599
- });
22600
- } else if (status !== 200 && status !== 204) {
22601
- return response.text().then((_responseText) => {
22602
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
22603
- });
22604
- }
22605
- return Promise.resolve<void>(null as any);
22606
- }
22607
22479
  }
22608
22480
 
22609
22481
  export interface ICompaniesClient {
@@ -34681,6 +34553,7 @@ export class CalendarDayDto implements ICalendarDayDto {
34681
34553
  date?: Date;
34682
34554
  dayCapacity?: CalendarDayCapacityDto;
34683
34555
  capacityHours?: number;
34556
+ companyId?: string | null;
34684
34557
 
34685
34558
  constructor(data?: ICalendarDayDto) {
34686
34559
  if (data) {
@@ -34696,6 +34569,7 @@ export class CalendarDayDto implements ICalendarDayDto {
34696
34569
  this.date = _data["date"] ? new Date(_data["date"].toString()) : <any>undefined;
34697
34570
  this.dayCapacity = _data["dayCapacity"];
34698
34571
  this.capacityHours = _data["capacityHours"];
34572
+ this.companyId = _data["companyId"];
34699
34573
  }
34700
34574
  }
34701
34575
 
@@ -34711,6 +34585,7 @@ export class CalendarDayDto implements ICalendarDayDto {
34711
34585
  data["date"] = this.date ? this.date.toISOString() : <any>undefined;
34712
34586
  data["dayCapacity"] = this.dayCapacity;
34713
34587
  data["capacityHours"] = this.capacityHours;
34588
+ data["companyId"] = this.companyId;
34714
34589
  return data;
34715
34590
  }
34716
34591
  }
@@ -34719,6 +34594,7 @@ export interface ICalendarDayDto {
34719
34594
  date?: Date;
34720
34595
  dayCapacity?: CalendarDayCapacityDto;
34721
34596
  capacityHours?: number;
34597
+ companyId?: string | null;
34722
34598
  }
34723
34599
 
34724
34600
  export type CalendarDayCapacityDto = "WorkingDay" | "HalfDay" | "Holiday";
@@ -52138,6 +52014,226 @@ export interface IProductionResourceDto {
52138
52014
  department?: DepartmentDto | null;
52139
52015
  }
52140
52016
 
52017
+ export class IotTypeSourceDto implements IIotTypeSourceDto {
52018
+ id!: string;
52019
+ name!: string;
52020
+
52021
+ constructor(data?: IIotTypeSourceDto) {
52022
+ if (data) {
52023
+ for (var property in data) {
52024
+ if (data.hasOwnProperty(property))
52025
+ (<any>this)[property] = (<any>data)[property];
52026
+ }
52027
+ }
52028
+ }
52029
+
52030
+ init(_data?: any) {
52031
+ if (_data) {
52032
+ this.id = _data["id"];
52033
+ this.name = _data["name"];
52034
+ }
52035
+ }
52036
+
52037
+ static fromJS(data: any): IotTypeSourceDto {
52038
+ data = typeof data === 'object' ? data : {};
52039
+ let result = new IotTypeSourceDto();
52040
+ result.init(data);
52041
+ return result;
52042
+ }
52043
+
52044
+ toJSON(data?: any) {
52045
+ data = typeof data === 'object' ? data : {};
52046
+ data["id"] = this.id;
52047
+ data["name"] = this.name;
52048
+ return data;
52049
+ }
52050
+ }
52051
+
52052
+ export interface IIotTypeSourceDto {
52053
+ id: string;
52054
+ name: string;
52055
+ }
52056
+
52057
+ export class ElectricalIotConfigDto implements IElectricalIotConfigDto {
52058
+ id!: string;
52059
+ typeId!: string;
52060
+ serialNumber?: string | null;
52061
+ assetId!: number;
52062
+ assetExternalId?: string | null;
52063
+ phases?: number;
52064
+ electricalAssetId?: number;
52065
+ electricalAssetExternalId?: string | null;
52066
+ electricalTimeseriesId?: number;
52067
+ electricalTimeseriesExternalId?: string | null;
52068
+
52069
+ constructor(data?: IElectricalIotConfigDto) {
52070
+ if (data) {
52071
+ for (var property in data) {
52072
+ if (data.hasOwnProperty(property))
52073
+ (<any>this)[property] = (<any>data)[property];
52074
+ }
52075
+ }
52076
+ }
52077
+
52078
+ init(_data?: any) {
52079
+ if (_data) {
52080
+ this.id = _data["id"];
52081
+ this.typeId = _data["typeId"];
52082
+ this.serialNumber = _data["serialNumber"];
52083
+ this.assetId = _data["assetId"];
52084
+ this.assetExternalId = _data["assetExternalId"];
52085
+ this.phases = _data["phases"];
52086
+ this.electricalAssetId = _data["electricalAssetId"];
52087
+ this.electricalAssetExternalId = _data["electricalAssetExternalId"];
52088
+ this.electricalTimeseriesId = _data["electricalTimeseriesId"];
52089
+ this.electricalTimeseriesExternalId = _data["electricalTimeseriesExternalId"];
52090
+ }
52091
+ }
52092
+
52093
+ static fromJS(data: any): ElectricalIotConfigDto {
52094
+ data = typeof data === 'object' ? data : {};
52095
+ let result = new ElectricalIotConfigDto();
52096
+ result.init(data);
52097
+ return result;
52098
+ }
52099
+
52100
+ toJSON(data?: any) {
52101
+ data = typeof data === 'object' ? data : {};
52102
+ data["id"] = this.id;
52103
+ data["typeId"] = this.typeId;
52104
+ data["serialNumber"] = this.serialNumber;
52105
+ data["assetId"] = this.assetId;
52106
+ data["assetExternalId"] = this.assetExternalId;
52107
+ data["phases"] = this.phases;
52108
+ data["electricalAssetId"] = this.electricalAssetId;
52109
+ data["electricalAssetExternalId"] = this.electricalAssetExternalId;
52110
+ data["electricalTimeseriesId"] = this.electricalTimeseriesId;
52111
+ data["electricalTimeseriesExternalId"] = this.electricalTimeseriesExternalId;
52112
+ return data;
52113
+ }
52114
+ }
52115
+
52116
+ export interface IElectricalIotConfigDto {
52117
+ id: string;
52118
+ typeId: string;
52119
+ serialNumber?: string | null;
52120
+ assetId: number;
52121
+ assetExternalId?: string | null;
52122
+ phases?: number;
52123
+ electricalAssetId?: number;
52124
+ electricalAssetExternalId?: string | null;
52125
+ electricalTimeseriesId?: number;
52126
+ electricalTimeseriesExternalId?: string | null;
52127
+ }
52128
+
52129
+ export class CreateElectricalIotConfig implements ICreateElectricalIotConfig {
52130
+ typeId?: string | null;
52131
+ serialNumber?: string | null;
52132
+ assetId?: number | null;
52133
+ assetExternalId?: string | null;
52134
+
52135
+ constructor(data?: ICreateElectricalIotConfig) {
52136
+ if (data) {
52137
+ for (var property in data) {
52138
+ if (data.hasOwnProperty(property))
52139
+ (<any>this)[property] = (<any>data)[property];
52140
+ }
52141
+ }
52142
+ }
52143
+
52144
+ init(_data?: any) {
52145
+ if (_data) {
52146
+ this.typeId = _data["typeId"];
52147
+ this.serialNumber = _data["serialNumber"];
52148
+ this.assetId = _data["assetId"];
52149
+ this.assetExternalId = _data["assetExternalId"];
52150
+ }
52151
+ }
52152
+
52153
+ static fromJS(data: any): CreateElectricalIotConfig {
52154
+ data = typeof data === 'object' ? data : {};
52155
+ let result = new CreateElectricalIotConfig();
52156
+ result.init(data);
52157
+ return result;
52158
+ }
52159
+
52160
+ toJSON(data?: any) {
52161
+ data = typeof data === 'object' ? data : {};
52162
+ data["typeId"] = this.typeId;
52163
+ data["serialNumber"] = this.serialNumber;
52164
+ data["assetId"] = this.assetId;
52165
+ data["assetExternalId"] = this.assetExternalId;
52166
+ return data;
52167
+ }
52168
+ }
52169
+
52170
+ export interface ICreateElectricalIotConfig {
52171
+ typeId?: string | null;
52172
+ serialNumber?: string | null;
52173
+ assetId?: number | null;
52174
+ assetExternalId?: string | null;
52175
+ }
52176
+
52177
+ export class WeldingIotConfigDto implements IWeldingIotConfigDto {
52178
+
52179
+ constructor(data?: IWeldingIotConfigDto) {
52180
+ if (data) {
52181
+ for (var property in data) {
52182
+ if (data.hasOwnProperty(property))
52183
+ (<any>this)[property] = (<any>data)[property];
52184
+ }
52185
+ }
52186
+ }
52187
+
52188
+ init(_data?: any) {
52189
+ }
52190
+
52191
+ static fromJS(data: any): WeldingIotConfigDto {
52192
+ data = typeof data === 'object' ? data : {};
52193
+ let result = new WeldingIotConfigDto();
52194
+ result.init(data);
52195
+ return result;
52196
+ }
52197
+
52198
+ toJSON(data?: any) {
52199
+ data = typeof data === 'object' ? data : {};
52200
+ return data;
52201
+ }
52202
+ }
52203
+
52204
+ export interface IWeldingIotConfigDto {
52205
+ }
52206
+
52207
+ export class CreateWeldingIotConfig implements ICreateWeldingIotConfig {
52208
+
52209
+ constructor(data?: ICreateWeldingIotConfig) {
52210
+ if (data) {
52211
+ for (var property in data) {
52212
+ if (data.hasOwnProperty(property))
52213
+ (<any>this)[property] = (<any>data)[property];
52214
+ }
52215
+ }
52216
+ }
52217
+
52218
+ init(_data?: any) {
52219
+ }
52220
+
52221
+ static fromJS(data: any): CreateWeldingIotConfig {
52222
+ data = typeof data === 'object' ? data : {};
52223
+ let result = new CreateWeldingIotConfig();
52224
+ result.init(data);
52225
+ return result;
52226
+ }
52227
+
52228
+ toJSON(data?: any) {
52229
+ data = typeof data === 'object' ? data : {};
52230
+ return data;
52231
+ }
52232
+ }
52233
+
52234
+ export interface ICreateWeldingIotConfig {
52235
+ }
52236
+
52141
52237
  export class PagedResultOfMeasurementFormListDto implements IPagedResultOfMeasurementFormListDto {
52142
52238
  results!: MeasurementFormListDto[];
52143
52239
  continuationToken?: string | null;
@@ -52566,7 +52662,8 @@ export interface IMeasurementFormSchemaAttachmentDto {
52566
52662
 
52567
52663
  export class MeasurementFormGroupedElementDto implements IMeasurementFormGroupedElementDto {
52568
52664
  id!: string;
52569
- balloonId!: string;
52665
+ balloonId?: string | null;
52666
+ reference!: number;
52570
52667
  imageUrl?: string | null;
52571
52668
  thumbnailUrl?: string | null;
52572
52669
  section?: string | null;
@@ -52593,6 +52690,7 @@ export class MeasurementFormGroupedElementDto implements IMeasurementFormGrouped
52593
52690
  includeInCustomerDocumentation!: boolean;
52594
52691
  isDocumentedExternally!: boolean;
52595
52692
  balloonQuantity?: number | null;
52693
+ referenceQuantity?: number | null;
52596
52694
  plusToleranceText?: string | null;
52597
52695
  minusToleranceText?: string | null;
52598
52696
  coatingThickness?: number | null;
@@ -52619,6 +52717,7 @@ export class MeasurementFormGroupedElementDto implements IMeasurementFormGrouped
52619
52717
  if (_data) {
52620
52718
  this.id = _data["id"];
52621
52719
  this.balloonId = _data["balloonId"];
52720
+ this.reference = _data["reference"];
52622
52721
  this.imageUrl = _data["imageUrl"];
52623
52722
  this.thumbnailUrl = _data["thumbnailUrl"];
52624
52723
  this.section = _data["section"];
@@ -52645,6 +52744,7 @@ export class MeasurementFormGroupedElementDto implements IMeasurementFormGrouped
52645
52744
  this.includeInCustomerDocumentation = _data["includeInCustomerDocumentation"];
52646
52745
  this.isDocumentedExternally = _data["isDocumentedExternally"];
52647
52746
  this.balloonQuantity = _data["balloonQuantity"];
52747
+ this.referenceQuantity = _data["referenceQuantity"];
52648
52748
  this.plusToleranceText = _data["plusToleranceText"];
52649
52749
  this.minusToleranceText = _data["minusToleranceText"];
52650
52750
  this.coatingThickness = _data["coatingThickness"];
@@ -52671,6 +52771,7 @@ export class MeasurementFormGroupedElementDto implements IMeasurementFormGrouped
52671
52771
  data = typeof data === 'object' ? data : {};
52672
52772
  data["id"] = this.id;
52673
52773
  data["balloonId"] = this.balloonId;
52774
+ data["reference"] = this.reference;
52674
52775
  data["imageUrl"] = this.imageUrl;
52675
52776
  data["thumbnailUrl"] = this.thumbnailUrl;
52676
52777
  data["section"] = this.section;
@@ -52697,6 +52798,7 @@ export class MeasurementFormGroupedElementDto implements IMeasurementFormGrouped
52697
52798
  data["includeInCustomerDocumentation"] = this.includeInCustomerDocumentation;
52698
52799
  data["isDocumentedExternally"] = this.isDocumentedExternally;
52699
52800
  data["balloonQuantity"] = this.balloonQuantity;
52801
+ data["referenceQuantity"] = this.referenceQuantity;
52700
52802
  data["plusToleranceText"] = this.plusToleranceText;
52701
52803
  data["minusToleranceText"] = this.minusToleranceText;
52702
52804
  data["coatingThickness"] = this.coatingThickness;
@@ -52715,7 +52817,8 @@ export class MeasurementFormGroupedElementDto implements IMeasurementFormGrouped
52715
52817
 
52716
52818
  export interface IMeasurementFormGroupedElementDto {
52717
52819
  id: string;
52718
- balloonId: string;
52820
+ balloonId?: string | null;
52821
+ reference: number;
52719
52822
  imageUrl?: string | null;
52720
52823
  thumbnailUrl?: string | null;
52721
52824
  section?: string | null;
@@ -52742,6 +52845,7 @@ export interface IMeasurementFormGroupedElementDto {
52742
52845
  includeInCustomerDocumentation: boolean;
52743
52846
  isDocumentedExternally: boolean;
52744
52847
  balloonQuantity?: number | null;
52848
+ referenceQuantity?: number | null;
52745
52849
  plusToleranceText?: string | null;
52746
52850
  minusToleranceText?: string | null;
52747
52851
  coatingThickness?: number | null;
@@ -53145,7 +53249,8 @@ export interface IUpdateSchemaGroupedElementsRequest {
53145
53249
  }
53146
53250
 
53147
53251
  export class UpdateSchemaGroupedElementDto implements IUpdateSchemaGroupedElementDto {
53148
- balloonId!: string;
53252
+ balloonId?: string | null;
53253
+ reference!: number;
53149
53254
  frequency!: MeasurementFrequency;
53150
53255
  frequencyParameter?: number | null;
53151
53256
  includeInCustomerDocumentation!: boolean;
@@ -53165,6 +53270,7 @@ export class UpdateSchemaGroupedElementDto implements IUpdateSchemaGroupedElemen
53165
53270
  init(_data?: any) {
53166
53271
  if (_data) {
53167
53272
  this.balloonId = _data["balloonId"];
53273
+ this.reference = _data["reference"];
53168
53274
  this.frequency = _data["frequency"];
53169
53275
  this.frequencyParameter = _data["frequencyParameter"];
53170
53276
  this.includeInCustomerDocumentation = _data["includeInCustomerDocumentation"];
@@ -53184,6 +53290,7 @@ export class UpdateSchemaGroupedElementDto implements IUpdateSchemaGroupedElemen
53184
53290
  toJSON(data?: any) {
53185
53291
  data = typeof data === 'object' ? data : {};
53186
53292
  data["balloonId"] = this.balloonId;
53293
+ data["reference"] = this.reference;
53187
53294
  data["frequency"] = this.frequency;
53188
53295
  data["frequencyParameter"] = this.frequencyParameter;
53189
53296
  data["includeInCustomerDocumentation"] = this.includeInCustomerDocumentation;
@@ -53195,7 +53302,8 @@ export class UpdateSchemaGroupedElementDto implements IUpdateSchemaGroupedElemen
53195
53302
  }
53196
53303
 
53197
53304
  export interface IUpdateSchemaGroupedElementDto {
53198
- balloonId: string;
53305
+ balloonId?: string | null;
53306
+ reference: number;
53199
53307
  frequency: MeasurementFrequency;
53200
53308
  frequencyParameter?: number | null;
53201
53309
  includeInCustomerDocumentation: boolean;
@@ -53205,8 +53313,10 @@ export interface IUpdateSchemaGroupedElementDto {
53205
53313
  }
53206
53314
 
53207
53315
  export class UpdateSchemaGroupedElementRowDto implements IUpdateSchemaGroupedElementRowDto {
53208
- id!: string;
53209
- balloonId!: string;
53316
+ id?: string;
53317
+ balloonId?: string;
53318
+ oldReference!: number;
53319
+ newReference!: number;
53210
53320
  section?: string | null;
53211
53321
  pageNumber?: number | null;
53212
53322
  measurements?: number | null;
@@ -53238,6 +53348,8 @@ export class UpdateSchemaGroupedElementRowDto implements IUpdateSchemaGroupedEle
53238
53348
  if (_data) {
53239
53349
  this.id = _data["id"];
53240
53350
  this.balloonId = _data["balloonId"];
53351
+ this.oldReference = _data["oldReference"];
53352
+ this.newReference = _data["newReference"];
53241
53353
  this.section = _data["section"];
53242
53354
  this.pageNumber = _data["pageNumber"];
53243
53355
  this.measurements = _data["measurements"];
@@ -53269,6 +53381,8 @@ export class UpdateSchemaGroupedElementRowDto implements IUpdateSchemaGroupedEle
53269
53381
  data = typeof data === 'object' ? data : {};
53270
53382
  data["id"] = this.id;
53271
53383
  data["balloonId"] = this.balloonId;
53384
+ data["oldReference"] = this.oldReference;
53385
+ data["newReference"] = this.newReference;
53272
53386
  data["section"] = this.section;
53273
53387
  data["pageNumber"] = this.pageNumber;
53274
53388
  data["measurements"] = this.measurements;
@@ -53291,8 +53405,10 @@ export class UpdateSchemaGroupedElementRowDto implements IUpdateSchemaGroupedEle
53291
53405
  }
53292
53406
 
53293
53407
  export interface IUpdateSchemaGroupedElementRowDto {
53294
- id: string;
53295
- balloonId: string;
53408
+ id?: string;
53409
+ balloonId?: string;
53410
+ oldReference: number;
53411
+ newReference: number;
53296
53412
  section?: string | null;
53297
53413
  pageNumber?: number | null;
53298
53414
  measurements?: number | null;
@@ -53313,7 +53429,8 @@ export interface IUpdateSchemaGroupedElementRowDto {
53313
53429
  }
53314
53430
 
53315
53431
  export class DeleteSchemaGroupedElementRowsDto implements IDeleteSchemaGroupedElementRowsDto {
53316
- balloonIds!: string[];
53432
+ balloonIds?: string[];
53433
+ references?: number[];
53317
53434
 
53318
53435
  constructor(data?: IDeleteSchemaGroupedElementRowsDto) {
53319
53436
  if (data) {
@@ -53322,9 +53439,6 @@ export class DeleteSchemaGroupedElementRowsDto implements IDeleteSchemaGroupedEl
53322
53439
  (<any>this)[property] = (<any>data)[property];
53323
53440
  }
53324
53441
  }
53325
- if (!data) {
53326
- this.balloonIds = [];
53327
- }
53328
53442
  }
53329
53443
 
53330
53444
  init(_data?: any) {
@@ -53334,6 +53448,11 @@ export class DeleteSchemaGroupedElementRowsDto implements IDeleteSchemaGroupedEl
53334
53448
  for (let item of _data["balloonIds"])
53335
53449
  this.balloonIds!.push(item);
53336
53450
  }
53451
+ if (Array.isArray(_data["references"])) {
53452
+ this.references = [] as any;
53453
+ for (let item of _data["references"])
53454
+ this.references!.push(item);
53455
+ }
53337
53456
  }
53338
53457
  }
53339
53458
 
@@ -53351,18 +53470,25 @@ export class DeleteSchemaGroupedElementRowsDto implements IDeleteSchemaGroupedEl
53351
53470
  for (let item of this.balloonIds)
53352
53471
  data["balloonIds"].push(item);
53353
53472
  }
53473
+ if (Array.isArray(this.references)) {
53474
+ data["references"] = [];
53475
+ for (let item of this.references)
53476
+ data["references"].push(item);
53477
+ }
53354
53478
  return data;
53355
53479
  }
53356
53480
  }
53357
53481
 
53358
53482
  export interface IDeleteSchemaGroupedElementRowsDto {
53359
- balloonIds: string[];
53483
+ balloonIds?: string[];
53484
+ references?: number[];
53360
53485
  }
53361
53486
 
53362
53487
  export class UploadMeasurementImageRequest implements IUploadMeasurementImageRequest {
53363
53488
  uploadKey!: string;
53364
53489
  filename!: string;
53365
- ballonId!: string;
53490
+ ballonId?: string;
53491
+ reference!: number;
53366
53492
 
53367
53493
  constructor(data?: IUploadMeasurementImageRequest) {
53368
53494
  if (data) {
@@ -53378,6 +53504,7 @@ export class UploadMeasurementImageRequest implements IUploadMeasurementImageReq
53378
53504
  this.uploadKey = _data["uploadKey"];
53379
53505
  this.filename = _data["filename"];
53380
53506
  this.ballonId = _data["ballonId"];
53507
+ this.reference = _data["reference"];
53381
53508
  }
53382
53509
  }
53383
53510
 
@@ -53393,6 +53520,7 @@ export class UploadMeasurementImageRequest implements IUploadMeasurementImageReq
53393
53520
  data["uploadKey"] = this.uploadKey;
53394
53521
  data["filename"] = this.filename;
53395
53522
  data["ballonId"] = this.ballonId;
53523
+ data["reference"] = this.reference;
53396
53524
  return data;
53397
53525
  }
53398
53526
  }
@@ -53400,7 +53528,8 @@ export class UploadMeasurementImageRequest implements IUploadMeasurementImageReq
53400
53528
  export interface IUploadMeasurementImageRequest {
53401
53529
  uploadKey: string;
53402
53530
  filename: string;
53403
- ballonId: string;
53531
+ ballonId?: string;
53532
+ reference: number;
53404
53533
  }
53405
53534
 
53406
53535
  export class UpdateSchemaSettingsRequest implements IUpdateSchemaSettingsRequest {
@@ -53527,54 +53656,6 @@ export interface IUploadRequest {
53527
53656
  filename: string;
53528
53657
  }
53529
53658
 
53530
- export class MeasurementFormImportStatusDto implements IMeasurementFormImportStatusDto {
53531
- progress!: number;
53532
- totalElements!: number;
53533
- errorMessage!: string;
53534
- timestamp!: Date;
53535
-
53536
- constructor(data?: IMeasurementFormImportStatusDto) {
53537
- if (data) {
53538
- for (var property in data) {
53539
- if (data.hasOwnProperty(property))
53540
- (<any>this)[property] = (<any>data)[property];
53541
- }
53542
- }
53543
- }
53544
-
53545
- init(_data?: any) {
53546
- if (_data) {
53547
- this.progress = _data["progress"];
53548
- this.totalElements = _data["totalElements"];
53549
- this.errorMessage = _data["errorMessage"];
53550
- this.timestamp = _data["timestamp"] ? new Date(_data["timestamp"].toString()) : <any>undefined;
53551
- }
53552
- }
53553
-
53554
- static fromJS(data: any): MeasurementFormImportStatusDto {
53555
- data = typeof data === 'object' ? data : {};
53556
- let result = new MeasurementFormImportStatusDto();
53557
- result.init(data);
53558
- return result;
53559
- }
53560
-
53561
- toJSON(data?: any) {
53562
- data = typeof data === 'object' ? data : {};
53563
- data["progress"] = this.progress;
53564
- data["totalElements"] = this.totalElements;
53565
- data["errorMessage"] = this.errorMessage;
53566
- data["timestamp"] = this.timestamp ? this.timestamp.toISOString() : <any>undefined;
53567
- return data;
53568
- }
53569
- }
53570
-
53571
- export interface IMeasurementFormImportStatusDto {
53572
- progress: number;
53573
- totalElements: number;
53574
- errorMessage: string;
53575
- timestamp: Date;
53576
- }
53577
-
53578
53659
  export class ListLinkableMeasurementFormSchemasRequest implements IListLinkableMeasurementFormSchemasRequest {
53579
53660
  schemaId!: string;
53580
53661
  pageSize?: number | null;
@@ -53659,7 +53740,7 @@ export interface ICreateMeasurementFormSchemaLinkRequest {
53659
53740
  linkSchemaId: string;
53660
53741
  }
53661
53742
 
53662
- export class MeasurementFormSettingsDto implements IMeasurementFormSettingsDto {
53743
+ export class InspectCompanySettingsDto implements IInspectCompanySettingsDto {
53663
53744
  convertInchToMm!: boolean;
53664
53745
  convertMicroInchToMicroMeter!: boolean;
53665
53746
  validateMeasuringTools!: boolean;
@@ -53675,7 +53756,7 @@ export class MeasurementFormSettingsDto implements IMeasurementFormSettingsDto {
53675
53756
  allowCreateInstances!: boolean;
53676
53757
  resourceTypesBlockingAutoWorkflow?: string[] | null;
53677
53758
 
53678
- constructor(data?: IMeasurementFormSettingsDto) {
53759
+ constructor(data?: IInspectCompanySettingsDto) {
53679
53760
  if (data) {
53680
53761
  for (var property in data) {
53681
53762
  if (data.hasOwnProperty(property))
@@ -53707,9 +53788,9 @@ export class MeasurementFormSettingsDto implements IMeasurementFormSettingsDto {
53707
53788
  }
53708
53789
  }
53709
53790
 
53710
- static fromJS(data: any): MeasurementFormSettingsDto {
53791
+ static fromJS(data: any): InspectCompanySettingsDto {
53711
53792
  data = typeof data === 'object' ? data : {};
53712
- let result = new MeasurementFormSettingsDto();
53793
+ let result = new InspectCompanySettingsDto();
53713
53794
  result.init(data);
53714
53795
  return result;
53715
53796
  }
@@ -53738,7 +53819,7 @@ export class MeasurementFormSettingsDto implements IMeasurementFormSettingsDto {
53738
53819
  }
53739
53820
  }
53740
53821
 
53741
- export interface IMeasurementFormSettingsDto {
53822
+ export interface IInspectCompanySettingsDto {
53742
53823
  convertInchToMm: boolean;
53743
53824
  convertMicroInchToMicroMeter: boolean;
53744
53825
  validateMeasuringTools: boolean;
@@ -53962,8 +54043,10 @@ export class MeasurementFormMappingDto implements IMeasurementFormMappingDto {
53962
54043
  id!: string;
53963
54044
  measurementSchemaSourceId!: string;
53964
54045
  measurementSchemaTargetId!: string;
53965
- sourceBalloons!: MeasurementFormBalloonMappingDto[];
53966
- targetBalloons!: MeasurementFormBalloonMappingDto[];
54046
+ sourceBalloons?: MeasurementFormReferenceMappingDto[];
54047
+ targetBalloons?: MeasurementFormReferenceMappingDto[];
54048
+ sourceReferences!: MeasurementFormReferenceMappingDto[];
54049
+ targetReferences!: MeasurementFormReferenceMappingDto[];
53967
54050
 
53968
54051
  constructor(data?: IMeasurementFormMappingDto) {
53969
54052
  if (data) {
@@ -53973,8 +54056,8 @@ export class MeasurementFormMappingDto implements IMeasurementFormMappingDto {
53973
54056
  }
53974
54057
  }
53975
54058
  if (!data) {
53976
- this.sourceBalloons = [];
53977
- this.targetBalloons = [];
54059
+ this.sourceReferences = [];
54060
+ this.targetReferences = [];
53978
54061
  }
53979
54062
  }
53980
54063
 
@@ -53986,12 +54069,22 @@ export class MeasurementFormMappingDto implements IMeasurementFormMappingDto {
53986
54069
  if (Array.isArray(_data["sourceBalloons"])) {
53987
54070
  this.sourceBalloons = [] as any;
53988
54071
  for (let item of _data["sourceBalloons"])
53989
- this.sourceBalloons!.push(MeasurementFormBalloonMappingDto.fromJS(item));
54072
+ this.sourceBalloons!.push(MeasurementFormReferenceMappingDto.fromJS(item));
53990
54073
  }
53991
54074
  if (Array.isArray(_data["targetBalloons"])) {
53992
54075
  this.targetBalloons = [] as any;
53993
54076
  for (let item of _data["targetBalloons"])
53994
- this.targetBalloons!.push(MeasurementFormBalloonMappingDto.fromJS(item));
54077
+ this.targetBalloons!.push(MeasurementFormReferenceMappingDto.fromJS(item));
54078
+ }
54079
+ if (Array.isArray(_data["sourceReferences"])) {
54080
+ this.sourceReferences = [] as any;
54081
+ for (let item of _data["sourceReferences"])
54082
+ this.sourceReferences!.push(MeasurementFormReferenceMappingDto.fromJS(item));
54083
+ }
54084
+ if (Array.isArray(_data["targetReferences"])) {
54085
+ this.targetReferences = [] as any;
54086
+ for (let item of _data["targetReferences"])
54087
+ this.targetReferences!.push(MeasurementFormReferenceMappingDto.fromJS(item));
53995
54088
  }
53996
54089
  }
53997
54090
  }
@@ -54018,6 +54111,16 @@ export class MeasurementFormMappingDto implements IMeasurementFormMappingDto {
54018
54111
  for (let item of this.targetBalloons)
54019
54112
  data["targetBalloons"].push(item.toJSON());
54020
54113
  }
54114
+ if (Array.isArray(this.sourceReferences)) {
54115
+ data["sourceReferences"] = [];
54116
+ for (let item of this.sourceReferences)
54117
+ data["sourceReferences"].push(item.toJSON());
54118
+ }
54119
+ if (Array.isArray(this.targetReferences)) {
54120
+ data["targetReferences"] = [];
54121
+ for (let item of this.targetReferences)
54122
+ data["targetReferences"].push(item.toJSON());
54123
+ }
54021
54124
  return data;
54022
54125
  }
54023
54126
  }
@@ -54026,16 +54129,18 @@ export interface IMeasurementFormMappingDto {
54026
54129
  id: string;
54027
54130
  measurementSchemaSourceId: string;
54028
54131
  measurementSchemaTargetId: string;
54029
- sourceBalloons: MeasurementFormBalloonMappingDto[];
54030
- targetBalloons: MeasurementFormBalloonMappingDto[];
54132
+ sourceBalloons?: MeasurementFormReferenceMappingDto[];
54133
+ targetBalloons?: MeasurementFormReferenceMappingDto[];
54134
+ sourceReferences: MeasurementFormReferenceMappingDto[];
54135
+ targetReferences: MeasurementFormReferenceMappingDto[];
54031
54136
  }
54032
54137
 
54033
- export class MeasurementFormBalloonMappingDto implements IMeasurementFormBalloonMappingDto {
54034
- balloon!: MeasurementFormGroupedElementDto;
54035
- mappedBalloonId?: string | null;
54138
+ export class MeasurementFormReferenceMappingDto implements IMeasurementFormReferenceMappingDto {
54139
+ reference!: MeasurementFormGroupedElementDto;
54140
+ mappedReference?: number;
54036
54141
  mappingScorePercent?: number | null;
54037
54142
 
54038
- constructor(data?: IMeasurementFormBalloonMappingDto) {
54143
+ constructor(data?: IMeasurementFormReferenceMappingDto) {
54039
54144
  if (data) {
54040
54145
  for (var property in data) {
54041
54146
  if (data.hasOwnProperty(property))
@@ -54043,37 +54148,37 @@ export class MeasurementFormBalloonMappingDto implements IMeasurementFormBalloon
54043
54148
  }
54044
54149
  }
54045
54150
  if (!data) {
54046
- this.balloon = new MeasurementFormGroupedElementDto();
54151
+ this.reference = new MeasurementFormGroupedElementDto();
54047
54152
  }
54048
54153
  }
54049
54154
 
54050
54155
  init(_data?: any) {
54051
54156
  if (_data) {
54052
- this.balloon = _data["balloon"] ? MeasurementFormGroupedElementDto.fromJS(_data["balloon"]) : new MeasurementFormGroupedElementDto();
54053
- this.mappedBalloonId = _data["mappedBalloonId"];
54157
+ this.reference = _data["reference"] ? MeasurementFormGroupedElementDto.fromJS(_data["reference"]) : new MeasurementFormGroupedElementDto();
54158
+ this.mappedReference = _data["mappedReference"];
54054
54159
  this.mappingScorePercent = _data["mappingScorePercent"];
54055
54160
  }
54056
54161
  }
54057
54162
 
54058
- static fromJS(data: any): MeasurementFormBalloonMappingDto {
54163
+ static fromJS(data: any): MeasurementFormReferenceMappingDto {
54059
54164
  data = typeof data === 'object' ? data : {};
54060
- let result = new MeasurementFormBalloonMappingDto();
54165
+ let result = new MeasurementFormReferenceMappingDto();
54061
54166
  result.init(data);
54062
54167
  return result;
54063
54168
  }
54064
54169
 
54065
54170
  toJSON(data?: any) {
54066
54171
  data = typeof data === 'object' ? data : {};
54067
- data["balloon"] = this.balloon ? this.balloon.toJSON() : <any>undefined;
54068
- data["mappedBalloonId"] = this.mappedBalloonId;
54172
+ data["reference"] = this.reference ? this.reference.toJSON() : <any>undefined;
54173
+ data["mappedReference"] = this.mappedReference;
54069
54174
  data["mappingScorePercent"] = this.mappingScorePercent;
54070
54175
  return data;
54071
54176
  }
54072
54177
  }
54073
54178
 
54074
- export interface IMeasurementFormBalloonMappingDto {
54075
- balloon: MeasurementFormGroupedElementDto;
54076
- mappedBalloonId?: string | null;
54179
+ export interface IMeasurementFormReferenceMappingDto {
54180
+ reference: MeasurementFormGroupedElementDto;
54181
+ mappedReference?: number;
54077
54182
  mappingScorePercent?: number | null;
54078
54183
  }
54079
54184
 
@@ -54117,102 +54222,112 @@ export interface ICreateMeasurementFormMapping {
54117
54222
  targetId: string;
54118
54223
  }
54119
54224
 
54120
- export class MeasurementFormBalloonMappingRequestDto implements IMeasurementFormBalloonMappingRequestDto {
54121
- sourceBalloonId!: string;
54122
- targetBalloonId!: string;
54123
- mappingScorePercent?: number | null;
54225
+ export class SetMeasurementFormReferencesMappingRequest implements ISetMeasurementFormReferencesMappingRequest {
54226
+ mappings!: MeasurementFormReferenceMappingRequestDto[];
54124
54227
 
54125
- constructor(data?: IMeasurementFormBalloonMappingRequestDto) {
54228
+ constructor(data?: ISetMeasurementFormReferencesMappingRequest) {
54126
54229
  if (data) {
54127
54230
  for (var property in data) {
54128
54231
  if (data.hasOwnProperty(property))
54129
54232
  (<any>this)[property] = (<any>data)[property];
54130
54233
  }
54131
54234
  }
54235
+ if (!data) {
54236
+ this.mappings = [];
54237
+ }
54132
54238
  }
54133
54239
 
54134
54240
  init(_data?: any) {
54135
54241
  if (_data) {
54136
- this.sourceBalloonId = _data["sourceBalloonId"];
54137
- this.targetBalloonId = _data["targetBalloonId"];
54138
- this.mappingScorePercent = _data["mappingScorePercent"];
54242
+ if (Array.isArray(_data["mappings"])) {
54243
+ this.mappings = [] as any;
54244
+ for (let item of _data["mappings"])
54245
+ this.mappings!.push(MeasurementFormReferenceMappingRequestDto.fromJS(item));
54246
+ }
54139
54247
  }
54140
54248
  }
54141
54249
 
54142
- static fromJS(data: any): MeasurementFormBalloonMappingRequestDto {
54250
+ static fromJS(data: any): SetMeasurementFormReferencesMappingRequest {
54143
54251
  data = typeof data === 'object' ? data : {};
54144
- let result = new MeasurementFormBalloonMappingRequestDto();
54252
+ let result = new SetMeasurementFormReferencesMappingRequest();
54145
54253
  result.init(data);
54146
54254
  return result;
54147
54255
  }
54148
54256
 
54149
54257
  toJSON(data?: any) {
54150
54258
  data = typeof data === 'object' ? data : {};
54151
- data["sourceBalloonId"] = this.sourceBalloonId;
54152
- data["targetBalloonId"] = this.targetBalloonId;
54153
- data["mappingScorePercent"] = this.mappingScorePercent;
54259
+ if (Array.isArray(this.mappings)) {
54260
+ data["mappings"] = [];
54261
+ for (let item of this.mappings)
54262
+ data["mappings"].push(item.toJSON());
54263
+ }
54154
54264
  return data;
54155
54265
  }
54156
54266
  }
54157
54267
 
54158
- export interface IMeasurementFormBalloonMappingRequestDto {
54159
- sourceBalloonId: string;
54160
- targetBalloonId: string;
54161
- mappingScorePercent?: number | null;
54268
+ export interface ISetMeasurementFormReferencesMappingRequest {
54269
+ mappings: MeasurementFormReferenceMappingRequestDto[];
54162
54270
  }
54163
54271
 
54164
- export class SetMeasurementFormMappingBalloonsRequest implements ISetMeasurementFormMappingBalloonsRequest {
54165
- mappings!: MeasurementFormBalloonMappingRequestDto[];
54272
+ export class MeasurementFormReferenceMappingRequestDto implements IMeasurementFormReferenceMappingRequestDto {
54273
+ sourceBalloonId?: string | null;
54274
+ targetBalloonId?: string | null;
54275
+ sourceReference!: number;
54276
+ targetReference!: number;
54277
+ mappingScorePercent?: number | null;
54166
54278
 
54167
- constructor(data?: ISetMeasurementFormMappingBalloonsRequest) {
54279
+ constructor(data?: IMeasurementFormReferenceMappingRequestDto) {
54168
54280
  if (data) {
54169
54281
  for (var property in data) {
54170
54282
  if (data.hasOwnProperty(property))
54171
54283
  (<any>this)[property] = (<any>data)[property];
54172
54284
  }
54173
54285
  }
54174
- if (!data) {
54175
- this.mappings = [];
54176
- }
54177
54286
  }
54178
54287
 
54179
54288
  init(_data?: any) {
54180
54289
  if (_data) {
54181
- if (Array.isArray(_data["mappings"])) {
54182
- this.mappings = [] as any;
54183
- for (let item of _data["mappings"])
54184
- this.mappings!.push(MeasurementFormBalloonMappingRequestDto.fromJS(item));
54185
- }
54290
+ this.sourceBalloonId = _data["sourceBalloonId"];
54291
+ this.targetBalloonId = _data["targetBalloonId"];
54292
+ this.sourceReference = _data["sourceReference"];
54293
+ this.targetReference = _data["targetReference"];
54294
+ this.mappingScorePercent = _data["mappingScorePercent"];
54186
54295
  }
54187
54296
  }
54188
54297
 
54189
- static fromJS(data: any): SetMeasurementFormMappingBalloonsRequest {
54298
+ static fromJS(data: any): MeasurementFormReferenceMappingRequestDto {
54190
54299
  data = typeof data === 'object' ? data : {};
54191
- let result = new SetMeasurementFormMappingBalloonsRequest();
54300
+ let result = new MeasurementFormReferenceMappingRequestDto();
54192
54301
  result.init(data);
54193
54302
  return result;
54194
54303
  }
54195
54304
 
54196
54305
  toJSON(data?: any) {
54197
54306
  data = typeof data === 'object' ? data : {};
54198
- if (Array.isArray(this.mappings)) {
54199
- data["mappings"] = [];
54200
- for (let item of this.mappings)
54201
- data["mappings"].push(item.toJSON());
54202
- }
54307
+ data["sourceBalloonId"] = this.sourceBalloonId;
54308
+ data["targetBalloonId"] = this.targetBalloonId;
54309
+ data["sourceReference"] = this.sourceReference;
54310
+ data["targetReference"] = this.targetReference;
54311
+ data["mappingScorePercent"] = this.mappingScorePercent;
54203
54312
  return data;
54204
54313
  }
54205
54314
  }
54206
54315
 
54207
- export interface ISetMeasurementFormMappingBalloonsRequest {
54208
- mappings: MeasurementFormBalloonMappingRequestDto[];
54316
+ export interface IMeasurementFormReferenceMappingRequestDto {
54317
+ sourceBalloonId?: string | null;
54318
+ targetBalloonId?: string | null;
54319
+ sourceReference: number;
54320
+ targetReference: number;
54321
+ mappingScorePercent?: number | null;
54209
54322
  }
54210
54323
 
54211
54324
  export class MeasurementFormMappingSuggestionDto implements IMeasurementFormMappingSuggestionDto {
54212
54325
  measurementSchemaSourceId!: string;
54213
54326
  measurementSchemaTargetId!: string;
54214
- sourceBalloons!: MeasurementFormBalloonMappingDto[];
54215
- targetBalloons!: MeasurementFormBalloonMappingDto[];
54327
+ sourceBalloons?: MeasurementFormReferenceMappingDto[];
54328
+ targetBalloons?: MeasurementFormReferenceMappingDto[];
54329
+ sourceReferences!: MeasurementFormReferenceMappingDto[];
54330
+ targetReferences!: MeasurementFormReferenceMappingDto[];
54216
54331
 
54217
54332
  constructor(data?: IMeasurementFormMappingSuggestionDto) {
54218
54333
  if (data) {
@@ -54222,8 +54337,8 @@ export class MeasurementFormMappingSuggestionDto implements IMeasurementFormMapp
54222
54337
  }
54223
54338
  }
54224
54339
  if (!data) {
54225
- this.sourceBalloons = [];
54226
- this.targetBalloons = [];
54340
+ this.sourceReferences = [];
54341
+ this.targetReferences = [];
54227
54342
  }
54228
54343
  }
54229
54344
 
@@ -54234,12 +54349,22 @@ export class MeasurementFormMappingSuggestionDto implements IMeasurementFormMapp
54234
54349
  if (Array.isArray(_data["sourceBalloons"])) {
54235
54350
  this.sourceBalloons = [] as any;
54236
54351
  for (let item of _data["sourceBalloons"])
54237
- this.sourceBalloons!.push(MeasurementFormBalloonMappingDto.fromJS(item));
54352
+ this.sourceBalloons!.push(MeasurementFormReferenceMappingDto.fromJS(item));
54238
54353
  }
54239
54354
  if (Array.isArray(_data["targetBalloons"])) {
54240
54355
  this.targetBalloons = [] as any;
54241
54356
  for (let item of _data["targetBalloons"])
54242
- this.targetBalloons!.push(MeasurementFormBalloonMappingDto.fromJS(item));
54357
+ this.targetBalloons!.push(MeasurementFormReferenceMappingDto.fromJS(item));
54358
+ }
54359
+ if (Array.isArray(_data["sourceReferences"])) {
54360
+ this.sourceReferences = [] as any;
54361
+ for (let item of _data["sourceReferences"])
54362
+ this.sourceReferences!.push(MeasurementFormReferenceMappingDto.fromJS(item));
54363
+ }
54364
+ if (Array.isArray(_data["targetReferences"])) {
54365
+ this.targetReferences = [] as any;
54366
+ for (let item of _data["targetReferences"])
54367
+ this.targetReferences!.push(MeasurementFormReferenceMappingDto.fromJS(item));
54243
54368
  }
54244
54369
  }
54245
54370
  }
@@ -54265,6 +54390,16 @@ export class MeasurementFormMappingSuggestionDto implements IMeasurementFormMapp
54265
54390
  for (let item of this.targetBalloons)
54266
54391
  data["targetBalloons"].push(item.toJSON());
54267
54392
  }
54393
+ if (Array.isArray(this.sourceReferences)) {
54394
+ data["sourceReferences"] = [];
54395
+ for (let item of this.sourceReferences)
54396
+ data["sourceReferences"].push(item.toJSON());
54397
+ }
54398
+ if (Array.isArray(this.targetReferences)) {
54399
+ data["targetReferences"] = [];
54400
+ for (let item of this.targetReferences)
54401
+ data["targetReferences"].push(item.toJSON());
54402
+ }
54268
54403
  return data;
54269
54404
  }
54270
54405
  }
@@ -54272,458 +54407,10 @@ export class MeasurementFormMappingSuggestionDto implements IMeasurementFormMapp
54272
54407
  export interface IMeasurementFormMappingSuggestionDto {
54273
54408
  measurementSchemaSourceId: string;
54274
54409
  measurementSchemaTargetId: string;
54275
- sourceBalloons: MeasurementFormBalloonMappingDto[];
54276
- targetBalloons: MeasurementFormBalloonMappingDto[];
54277
- }
54278
-
54279
- export class ImportMeasurementFormSchema implements IImportMeasurementFormSchema {
54280
- customerId?: string | null;
54281
- customerName?: string | null;
54282
- partNumber!: string;
54283
- partName?: string | null;
54284
- partRevision?: string | null;
54285
- drawing?: string | null;
54286
- drawingRevision?: string | null;
54287
- includeToolsInReport!: boolean;
54288
- created?: Date;
54289
- createdBy?: string | null;
54290
- updatedBy?: string | null;
54291
- excludeFromCustomerDocumentation!: boolean;
54292
- source!: MeasurementFormSource;
54293
- extraSchemas?: MeasurementFormImportLinkedSchemaDto[] | null;
54294
- versions!: MeasurementFormVersionImportDto[];
54295
-
54296
- constructor(data?: IImportMeasurementFormSchema) {
54297
- if (data) {
54298
- for (var property in data) {
54299
- if (data.hasOwnProperty(property))
54300
- (<any>this)[property] = (<any>data)[property];
54301
- }
54302
- }
54303
- if (!data) {
54304
- this.versions = [];
54305
- }
54306
- }
54307
-
54308
- init(_data?: any) {
54309
- if (_data) {
54310
- this.customerId = _data["customerId"];
54311
- this.customerName = _data["customerName"];
54312
- this.partNumber = _data["partNumber"];
54313
- this.partName = _data["partName"];
54314
- this.partRevision = _data["partRevision"];
54315
- this.drawing = _data["drawing"];
54316
- this.drawingRevision = _data["drawingRevision"];
54317
- this.includeToolsInReport = _data["includeToolsInReport"];
54318
- this.created = _data["created"] ? new Date(_data["created"].toString()) : <any>undefined;
54319
- this.createdBy = _data["createdBy"];
54320
- this.updatedBy = _data["updatedBy"];
54321
- this.excludeFromCustomerDocumentation = _data["excludeFromCustomerDocumentation"];
54322
- this.source = _data["source"];
54323
- if (Array.isArray(_data["extraSchemas"])) {
54324
- this.extraSchemas = [] as any;
54325
- for (let item of _data["extraSchemas"])
54326
- this.extraSchemas!.push(MeasurementFormImportLinkedSchemaDto.fromJS(item));
54327
- }
54328
- if (Array.isArray(_data["versions"])) {
54329
- this.versions = [] as any;
54330
- for (let item of _data["versions"])
54331
- this.versions!.push(MeasurementFormVersionImportDto.fromJS(item));
54332
- }
54333
- }
54334
- }
54335
-
54336
- static fromJS(data: any): ImportMeasurementFormSchema {
54337
- data = typeof data === 'object' ? data : {};
54338
- let result = new ImportMeasurementFormSchema();
54339
- result.init(data);
54340
- return result;
54341
- }
54342
-
54343
- toJSON(data?: any) {
54344
- data = typeof data === 'object' ? data : {};
54345
- data["customerId"] = this.customerId;
54346
- data["customerName"] = this.customerName;
54347
- data["partNumber"] = this.partNumber;
54348
- data["partName"] = this.partName;
54349
- data["partRevision"] = this.partRevision;
54350
- data["drawing"] = this.drawing;
54351
- data["drawingRevision"] = this.drawingRevision;
54352
- data["includeToolsInReport"] = this.includeToolsInReport;
54353
- data["created"] = this.created ? this.created.toISOString() : <any>undefined;
54354
- data["createdBy"] = this.createdBy;
54355
- data["updatedBy"] = this.updatedBy;
54356
- data["excludeFromCustomerDocumentation"] = this.excludeFromCustomerDocumentation;
54357
- data["source"] = this.source;
54358
- if (Array.isArray(this.extraSchemas)) {
54359
- data["extraSchemas"] = [];
54360
- for (let item of this.extraSchemas)
54361
- data["extraSchemas"].push(item.toJSON());
54362
- }
54363
- if (Array.isArray(this.versions)) {
54364
- data["versions"] = [];
54365
- for (let item of this.versions)
54366
- data["versions"].push(item.toJSON());
54367
- }
54368
- return data;
54369
- }
54370
- }
54371
-
54372
- export interface IImportMeasurementFormSchema {
54373
- customerId?: string | null;
54374
- customerName?: string | null;
54375
- partNumber: string;
54376
- partName?: string | null;
54377
- partRevision?: string | null;
54378
- drawing?: string | null;
54379
- drawingRevision?: string | null;
54380
- includeToolsInReport: boolean;
54381
- created?: Date;
54382
- createdBy?: string | null;
54383
- updatedBy?: string | null;
54384
- excludeFromCustomerDocumentation: boolean;
54385
- source: MeasurementFormSource;
54386
- extraSchemas?: MeasurementFormImportLinkedSchemaDto[] | null;
54387
- versions: MeasurementFormVersionImportDto[];
54388
- }
54389
-
54390
- export class MeasurementFormImportLinkedSchemaDto implements IMeasurementFormImportLinkedSchemaDto {
54391
- customerId?: string | null;
54392
- partNumber?: string | null;
54393
- partName?: string | null;
54394
- partRevision?: string | null;
54395
- drawing!: string;
54396
- drawingRevision?: string | null;
54397
- schemaId?: string | null;
54398
-
54399
- constructor(data?: IMeasurementFormImportLinkedSchemaDto) {
54400
- if (data) {
54401
- for (var property in data) {
54402
- if (data.hasOwnProperty(property))
54403
- (<any>this)[property] = (<any>data)[property];
54404
- }
54405
- }
54406
- }
54407
-
54408
- init(_data?: any) {
54409
- if (_data) {
54410
- this.customerId = _data["customerId"];
54411
- this.partNumber = _data["partNumber"];
54412
- this.partName = _data["partName"];
54413
- this.partRevision = _data["partRevision"];
54414
- this.drawing = _data["drawing"];
54415
- this.drawingRevision = _data["drawingRevision"];
54416
- this.schemaId = _data["schemaId"];
54417
- }
54418
- }
54419
-
54420
- static fromJS(data: any): MeasurementFormImportLinkedSchemaDto {
54421
- data = typeof data === 'object' ? data : {};
54422
- let result = new MeasurementFormImportLinkedSchemaDto();
54423
- result.init(data);
54424
- return result;
54425
- }
54426
-
54427
- toJSON(data?: any) {
54428
- data = typeof data === 'object' ? data : {};
54429
- data["customerId"] = this.customerId;
54430
- data["partNumber"] = this.partNumber;
54431
- data["partName"] = this.partName;
54432
- data["partRevision"] = this.partRevision;
54433
- data["drawing"] = this.drawing;
54434
- data["drawingRevision"] = this.drawingRevision;
54435
- data["schemaId"] = this.schemaId;
54436
- return data;
54437
- }
54438
- }
54439
-
54440
- export interface IMeasurementFormImportLinkedSchemaDto {
54441
- customerId?: string | null;
54442
- partNumber?: string | null;
54443
- partName?: string | null;
54444
- partRevision?: string | null;
54445
- drawing: string;
54446
- drawingRevision?: string | null;
54447
- schemaId?: string | null;
54448
- }
54449
-
54450
- export class MeasurementFormVersionImportDto implements IMeasurementFormVersionImportDto {
54451
- version!: number;
54452
- specification?: string | null;
54453
- drawingUrl?: string | null;
54454
- markedDrawingUrl?: string | null;
54455
- xmlUrl?: string | null;
54456
- inspectionXpertProjectUrl?: string | null;
54457
- created!: Date;
54458
- createdBy!: string;
54459
- updated?: Date | null;
54460
- updatedBy?: string | null;
54461
- elements!: MeasurementFormElementImportDto[];
54462
- isUsed!: boolean;
54463
-
54464
- constructor(data?: IMeasurementFormVersionImportDto) {
54465
- if (data) {
54466
- for (var property in data) {
54467
- if (data.hasOwnProperty(property))
54468
- (<any>this)[property] = (<any>data)[property];
54469
- }
54470
- }
54471
- if (!data) {
54472
- this.elements = [];
54473
- }
54474
- }
54475
-
54476
- init(_data?: any) {
54477
- if (_data) {
54478
- this.version = _data["version"];
54479
- this.specification = _data["specification"];
54480
- this.drawingUrl = _data["drawingUrl"];
54481
- this.markedDrawingUrl = _data["markedDrawingUrl"];
54482
- this.xmlUrl = _data["xmlUrl"];
54483
- this.inspectionXpertProjectUrl = _data["inspectionXpertProjectUrl"];
54484
- this.created = _data["created"] ? new Date(_data["created"].toString()) : <any>undefined;
54485
- this.createdBy = _data["createdBy"];
54486
- this.updated = _data["updated"] ? new Date(_data["updated"].toString()) : <any>undefined;
54487
- this.updatedBy = _data["updatedBy"];
54488
- if (Array.isArray(_data["elements"])) {
54489
- this.elements = [] as any;
54490
- for (let item of _data["elements"])
54491
- this.elements!.push(MeasurementFormElementImportDto.fromJS(item));
54492
- }
54493
- this.isUsed = _data["isUsed"];
54494
- }
54495
- }
54496
-
54497
- static fromJS(data: any): MeasurementFormVersionImportDto {
54498
- data = typeof data === 'object' ? data : {};
54499
- let result = new MeasurementFormVersionImportDto();
54500
- result.init(data);
54501
- return result;
54502
- }
54503
-
54504
- toJSON(data?: any) {
54505
- data = typeof data === 'object' ? data : {};
54506
- data["version"] = this.version;
54507
- data["specification"] = this.specification;
54508
- data["drawingUrl"] = this.drawingUrl;
54509
- data["markedDrawingUrl"] = this.markedDrawingUrl;
54510
- data["xmlUrl"] = this.xmlUrl;
54511
- data["inspectionXpertProjectUrl"] = this.inspectionXpertProjectUrl;
54512
- data["created"] = this.created ? this.created.toISOString() : <any>undefined;
54513
- data["createdBy"] = this.createdBy;
54514
- data["updated"] = this.updated ? this.updated.toISOString() : <any>undefined;
54515
- data["updatedBy"] = this.updatedBy;
54516
- if (Array.isArray(this.elements)) {
54517
- data["elements"] = [];
54518
- for (let item of this.elements)
54519
- data["elements"].push(item.toJSON());
54520
- }
54521
- data["isUsed"] = this.isUsed;
54522
- return data;
54523
- }
54524
- }
54525
-
54526
- export interface IMeasurementFormVersionImportDto {
54527
- version: number;
54528
- specification?: string | null;
54529
- drawingUrl?: string | null;
54530
- markedDrawingUrl?: string | null;
54531
- xmlUrl?: string | null;
54532
- inspectionXpertProjectUrl?: string | null;
54533
- created: Date;
54534
- createdBy: string;
54535
- updated?: Date | null;
54536
- updatedBy?: string | null;
54537
- elements: MeasurementFormElementImportDto[];
54538
- isUsed: boolean;
54539
- }
54540
-
54541
- export class MeasurementFormElementImportDto implements IMeasurementFormElementImportDto {
54542
- id?: string | null;
54543
- imageUrl?: string | null;
54544
- thumbnailUrl?: string | null;
54545
- balloonId?: string | null;
54546
- section?: string | null;
54547
- pageNumber?: number;
54548
- sheetZone?: string | null;
54549
- places?: number | null;
54550
- nominal?: number | null;
54551
- nominalText?: string | null;
54552
- type?: string | null;
54553
- subType?: string | null;
54554
- unitOfMeasure?: string | null;
54555
- typeCharacter?: string | null;
54556
- plusTolerance?: number | null;
54557
- minusTolerance?: number | null;
54558
- upperLimit?: number | null;
54559
- lowerLimit?: number | null;
54560
- comments?: string | null;
54561
- updatedByUser?: string | null;
54562
- updatedDate?: Date | null;
54563
- createdByUser?: string | null;
54564
- createdDate?: Date;
54565
- frequency?: MeasurementFrequency;
54566
- frequencyParameter?: number | null;
54567
- includeInCustomerDocumentation?: boolean;
54568
- balloonSequence?: number | null;
54569
- balloonQuantity?: number | null;
54570
- plusToleranceText?: string | null;
54571
- minusToleranceText?: string | null;
54572
- coatingThickness?: number | null;
54573
- canCopy?: boolean;
54574
- valueType?: MeasurementFormValueType;
54575
- inspectionMethod?: string | null;
54576
- process?: string | null;
54577
- classification?: string | null;
54578
- fitGrade?: string | null;
54579
- fitType?: number | null;
54580
- forReference?: boolean;
54581
-
54582
- constructor(data?: IMeasurementFormElementImportDto) {
54583
- if (data) {
54584
- for (var property in data) {
54585
- if (data.hasOwnProperty(property))
54586
- (<any>this)[property] = (<any>data)[property];
54587
- }
54588
- }
54589
- }
54590
-
54591
- init(_data?: any) {
54592
- if (_data) {
54593
- this.id = _data["id"];
54594
- this.imageUrl = _data["imageUrl"];
54595
- this.thumbnailUrl = _data["thumbnailUrl"];
54596
- this.balloonId = _data["balloonId"];
54597
- this.section = _data["section"];
54598
- this.pageNumber = _data["pageNumber"];
54599
- this.sheetZone = _data["sheetZone"];
54600
- this.places = _data["places"];
54601
- this.nominal = _data["nominal"];
54602
- this.nominalText = _data["nominalText"];
54603
- this.type = _data["type"];
54604
- this.subType = _data["subType"];
54605
- this.unitOfMeasure = _data["unitOfMeasure"];
54606
- this.typeCharacter = _data["typeCharacter"];
54607
- this.plusTolerance = _data["plusTolerance"];
54608
- this.minusTolerance = _data["minusTolerance"];
54609
- this.upperLimit = _data["upperLimit"];
54610
- this.lowerLimit = _data["lowerLimit"];
54611
- this.comments = _data["comments"];
54612
- this.updatedByUser = _data["updatedByUser"];
54613
- this.updatedDate = _data["updatedDate"] ? new Date(_data["updatedDate"].toString()) : <any>undefined;
54614
- this.createdByUser = _data["createdByUser"];
54615
- this.createdDate = _data["createdDate"] ? new Date(_data["createdDate"].toString()) : <any>undefined;
54616
- this.frequency = _data["frequency"];
54617
- this.frequencyParameter = _data["frequencyParameter"];
54618
- this.includeInCustomerDocumentation = _data["includeInCustomerDocumentation"];
54619
- this.balloonSequence = _data["balloonSequence"];
54620
- this.balloonQuantity = _data["balloonQuantity"];
54621
- this.plusToleranceText = _data["plusToleranceText"];
54622
- this.minusToleranceText = _data["minusToleranceText"];
54623
- this.coatingThickness = _data["coatingThickness"];
54624
- this.canCopy = _data["canCopy"];
54625
- this.valueType = _data["valueType"];
54626
- this.inspectionMethod = _data["inspectionMethod"];
54627
- this.process = _data["process"];
54628
- this.classification = _data["classification"];
54629
- this.fitGrade = _data["fitGrade"];
54630
- this.fitType = _data["fitType"];
54631
- this.forReference = _data["forReference"];
54632
- }
54633
- }
54634
-
54635
- static fromJS(data: any): MeasurementFormElementImportDto {
54636
- data = typeof data === 'object' ? data : {};
54637
- let result = new MeasurementFormElementImportDto();
54638
- result.init(data);
54639
- return result;
54640
- }
54641
-
54642
- toJSON(data?: any) {
54643
- data = typeof data === 'object' ? data : {};
54644
- data["id"] = this.id;
54645
- data["imageUrl"] = this.imageUrl;
54646
- data["thumbnailUrl"] = this.thumbnailUrl;
54647
- data["balloonId"] = this.balloonId;
54648
- data["section"] = this.section;
54649
- data["pageNumber"] = this.pageNumber;
54650
- data["sheetZone"] = this.sheetZone;
54651
- data["places"] = this.places;
54652
- data["nominal"] = this.nominal;
54653
- data["nominalText"] = this.nominalText;
54654
- data["type"] = this.type;
54655
- data["subType"] = this.subType;
54656
- data["unitOfMeasure"] = this.unitOfMeasure;
54657
- data["typeCharacter"] = this.typeCharacter;
54658
- data["plusTolerance"] = this.plusTolerance;
54659
- data["minusTolerance"] = this.minusTolerance;
54660
- data["upperLimit"] = this.upperLimit;
54661
- data["lowerLimit"] = this.lowerLimit;
54662
- data["comments"] = this.comments;
54663
- data["updatedByUser"] = this.updatedByUser;
54664
- data["updatedDate"] = this.updatedDate ? this.updatedDate.toISOString() : <any>undefined;
54665
- data["createdByUser"] = this.createdByUser;
54666
- data["createdDate"] = this.createdDate ? this.createdDate.toISOString() : <any>undefined;
54667
- data["frequency"] = this.frequency;
54668
- data["frequencyParameter"] = this.frequencyParameter;
54669
- data["includeInCustomerDocumentation"] = this.includeInCustomerDocumentation;
54670
- data["balloonSequence"] = this.balloonSequence;
54671
- data["balloonQuantity"] = this.balloonQuantity;
54672
- data["plusToleranceText"] = this.plusToleranceText;
54673
- data["minusToleranceText"] = this.minusToleranceText;
54674
- data["coatingThickness"] = this.coatingThickness;
54675
- data["canCopy"] = this.canCopy;
54676
- data["valueType"] = this.valueType;
54677
- data["inspectionMethod"] = this.inspectionMethod;
54678
- data["process"] = this.process;
54679
- data["classification"] = this.classification;
54680
- data["fitGrade"] = this.fitGrade;
54681
- data["fitType"] = this.fitType;
54682
- data["forReference"] = this.forReference;
54683
- return data;
54684
- }
54685
- }
54686
-
54687
- export interface IMeasurementFormElementImportDto {
54688
- id?: string | null;
54689
- imageUrl?: string | null;
54690
- thumbnailUrl?: string | null;
54691
- balloonId?: string | null;
54692
- section?: string | null;
54693
- pageNumber?: number;
54694
- sheetZone?: string | null;
54695
- places?: number | null;
54696
- nominal?: number | null;
54697
- nominalText?: string | null;
54698
- type?: string | null;
54699
- subType?: string | null;
54700
- unitOfMeasure?: string | null;
54701
- typeCharacter?: string | null;
54702
- plusTolerance?: number | null;
54703
- minusTolerance?: number | null;
54704
- upperLimit?: number | null;
54705
- lowerLimit?: number | null;
54706
- comments?: string | null;
54707
- updatedByUser?: string | null;
54708
- updatedDate?: Date | null;
54709
- createdByUser?: string | null;
54710
- createdDate?: Date;
54711
- frequency?: MeasurementFrequency;
54712
- frequencyParameter?: number | null;
54713
- includeInCustomerDocumentation?: boolean;
54714
- balloonSequence?: number | null;
54715
- balloonQuantity?: number | null;
54716
- plusToleranceText?: string | null;
54717
- minusToleranceText?: string | null;
54718
- coatingThickness?: number | null;
54719
- canCopy?: boolean;
54720
- valueType?: MeasurementFormValueType;
54721
- inspectionMethod?: string | null;
54722
- process?: string | null;
54723
- classification?: string | null;
54724
- fitGrade?: string | null;
54725
- fitType?: number | null;
54726
- forReference?: boolean;
54410
+ sourceBalloons?: MeasurementFormReferenceMappingDto[];
54411
+ targetBalloons?: MeasurementFormReferenceMappingDto[];
54412
+ sourceReferences: MeasurementFormReferenceMappingDto[];
54413
+ targetReferences: MeasurementFormReferenceMappingDto[];
54727
54414
  }
54728
54415
 
54729
54416
  export class PagedResultOfMeasurementFormNeedDto implements IPagedResultOfMeasurementFormNeedDto {
@@ -55386,6 +55073,7 @@ export class SchemaFeedbackDto implements ISchemaFeedbackDto {
55386
55073
  versionId?: number;
55387
55074
  schemaInstanceId!: string;
55388
55075
  balloonId?: string | null;
55076
+ reference?: number;
55389
55077
  feedback!: string;
55390
55078
  from!: string;
55391
55079
  created!: Date;
@@ -55415,6 +55103,7 @@ export class SchemaFeedbackDto implements ISchemaFeedbackDto {
55415
55103
  this.versionId = _data["versionId"];
55416
55104
  this.schemaInstanceId = _data["schemaInstanceId"];
55417
55105
  this.balloonId = _data["balloonId"];
55106
+ this.reference = _data["reference"];
55418
55107
  this.feedback = _data["feedback"];
55419
55108
  this.from = _data["from"];
55420
55109
  this.created = _data["created"] ? new Date(_data["created"].toString()) : <any>undefined;
@@ -55444,6 +55133,7 @@ export class SchemaFeedbackDto implements ISchemaFeedbackDto {
55444
55133
  data["versionId"] = this.versionId;
55445
55134
  data["schemaInstanceId"] = this.schemaInstanceId;
55446
55135
  data["balloonId"] = this.balloonId;
55136
+ data["reference"] = this.reference;
55447
55137
  data["feedback"] = this.feedback;
55448
55138
  data["from"] = this.from;
55449
55139
  data["created"] = this.created ? this.created.toISOString() : <any>undefined;
@@ -55466,6 +55156,7 @@ export interface ISchemaFeedbackDto {
55466
55156
  versionId?: number;
55467
55157
  schemaInstanceId: string;
55468
55158
  balloonId?: string | null;
55159
+ reference?: number;
55469
55160
  feedback: string;
55470
55161
  from: string;
55471
55162
  created: Date;
@@ -56043,7 +55734,8 @@ export class MeasurementFormInstanceDto implements IMeasurementFormInstanceDto {
56043
55734
  status!: MeasurementFormInstanceStatus;
56044
55735
  statusChangedDate?: Date | null;
56045
55736
  schemas!: MeasurementFormWorkorderSchemaDto[];
56046
- sequences!: MeasurementFormWorkorderSequenceDto[];
55737
+ sequences?: MeasurementFormWorkorderSequenceDto[] | null;
55738
+ serialNumbers!: MeasurementFormWorkorderSerialNumberDto[];
56047
55739
  suppliers!: MeasurementFormWorkorderSupplierDto[];
56048
55740
  progress!: MeasurementFormProgressDto;
56049
55741
  approvedReportUrl?: string | null;
@@ -56058,7 +55750,7 @@ export class MeasurementFormInstanceDto implements IMeasurementFormInstanceDto {
56058
55750
  }
56059
55751
  if (!data) {
56060
55752
  this.schemas = [];
56061
- this.sequences = [];
55753
+ this.serialNumbers = [];
56062
55754
  this.suppliers = [];
56063
55755
  this.progress = new MeasurementFormProgressDto();
56064
55756
  }
@@ -56088,6 +55780,11 @@ export class MeasurementFormInstanceDto implements IMeasurementFormInstanceDto {
56088
55780
  for (let item of _data["sequences"])
56089
55781
  this.sequences!.push(MeasurementFormWorkorderSequenceDto.fromJS(item));
56090
55782
  }
55783
+ if (Array.isArray(_data["serialNumbers"])) {
55784
+ this.serialNumbers = [] as any;
55785
+ for (let item of _data["serialNumbers"])
55786
+ this.serialNumbers!.push(MeasurementFormWorkorderSerialNumberDto.fromJS(item));
55787
+ }
56091
55788
  if (Array.isArray(_data["suppliers"])) {
56092
55789
  this.suppliers = [] as any;
56093
55790
  for (let item of _data["suppliers"])
@@ -56130,6 +55827,11 @@ export class MeasurementFormInstanceDto implements IMeasurementFormInstanceDto {
56130
55827
  for (let item of this.sequences)
56131
55828
  data["sequences"].push(item.toJSON());
56132
55829
  }
55830
+ if (Array.isArray(this.serialNumbers)) {
55831
+ data["serialNumbers"] = [];
55832
+ for (let item of this.serialNumbers)
55833
+ data["serialNumbers"].push(item.toJSON());
55834
+ }
56133
55835
  if (Array.isArray(this.suppliers)) {
56134
55836
  data["suppliers"] = [];
56135
55837
  for (let item of this.suppliers)
@@ -56156,7 +55858,8 @@ export interface IMeasurementFormInstanceDto {
56156
55858
  status: MeasurementFormInstanceStatus;
56157
55859
  statusChangedDate?: Date | null;
56158
55860
  schemas: MeasurementFormWorkorderSchemaDto[];
56159
- sequences: MeasurementFormWorkorderSequenceDto[];
55861
+ sequences?: MeasurementFormWorkorderSequenceDto[] | null;
55862
+ serialNumbers: MeasurementFormWorkorderSerialNumberDto[];
56160
55863
  suppliers: MeasurementFormWorkorderSupplierDto[];
56161
55864
  progress: MeasurementFormProgressDto;
56162
55865
  approvedReportUrl?: string | null;
@@ -56290,6 +55993,50 @@ export interface IMeasurementFormWorkorderSequenceDto {
56290
55993
  serialNumber?: string | null;
56291
55994
  }
56292
55995
 
55996
+ export class MeasurementFormWorkorderSerialNumberDto implements IMeasurementFormWorkorderSerialNumberDto {
55997
+ lot?: string | null;
55998
+ serialNumber!: string;
55999
+ customerSerialNumber?: string | null;
56000
+
56001
+ constructor(data?: IMeasurementFormWorkorderSerialNumberDto) {
56002
+ if (data) {
56003
+ for (var property in data) {
56004
+ if (data.hasOwnProperty(property))
56005
+ (<any>this)[property] = (<any>data)[property];
56006
+ }
56007
+ }
56008
+ }
56009
+
56010
+ init(_data?: any) {
56011
+ if (_data) {
56012
+ this.lot = _data["lot"];
56013
+ this.serialNumber = _data["serialNumber"];
56014
+ this.customerSerialNumber = _data["customerSerialNumber"];
56015
+ }
56016
+ }
56017
+
56018
+ static fromJS(data: any): MeasurementFormWorkorderSerialNumberDto {
56019
+ data = typeof data === 'object' ? data : {};
56020
+ let result = new MeasurementFormWorkorderSerialNumberDto();
56021
+ result.init(data);
56022
+ return result;
56023
+ }
56024
+
56025
+ toJSON(data?: any) {
56026
+ data = typeof data === 'object' ? data : {};
56027
+ data["lot"] = this.lot;
56028
+ data["serialNumber"] = this.serialNumber;
56029
+ data["customerSerialNumber"] = this.customerSerialNumber;
56030
+ return data;
56031
+ }
56032
+ }
56033
+
56034
+ export interface IMeasurementFormWorkorderSerialNumberDto {
56035
+ lot?: string | null;
56036
+ serialNumber: string;
56037
+ customerSerialNumber?: string | null;
56038
+ }
56039
+
56293
56040
  export class MeasurementFormWorkorderSupplierDto implements IMeasurementFormWorkorderSupplierDto {
56294
56041
  supplierId!: string;
56295
56042
  supplierName?: string | null;
@@ -56409,6 +56156,7 @@ export class MeasurementFormInstanceFeedbackDto implements IMeasurementFormInsta
56409
56156
  versionId?: number;
56410
56157
  schemaInstanceId!: string;
56411
56158
  balloonId?: string | null;
56159
+ reference?: number;
56412
56160
  feedback!: string;
56413
56161
  from!: string;
56414
56162
  created!: Date;
@@ -56430,6 +56178,7 @@ export class MeasurementFormInstanceFeedbackDto implements IMeasurementFormInsta
56430
56178
  this.versionId = _data["versionId"];
56431
56179
  this.schemaInstanceId = _data["schemaInstanceId"];
56432
56180
  this.balloonId = _data["balloonId"];
56181
+ this.reference = _data["reference"];
56433
56182
  this.feedback = _data["feedback"];
56434
56183
  this.from = _data["from"];
56435
56184
  this.created = _data["created"] ? new Date(_data["created"].toString()) : <any>undefined;
@@ -56451,6 +56200,7 @@ export class MeasurementFormInstanceFeedbackDto implements IMeasurementFormInsta
56451
56200
  data["versionId"] = this.versionId;
56452
56201
  data["schemaInstanceId"] = this.schemaInstanceId;
56453
56202
  data["balloonId"] = this.balloonId;
56203
+ data["reference"] = this.reference;
56454
56204
  data["feedback"] = this.feedback;
56455
56205
  data["from"] = this.from;
56456
56206
  data["created"] = this.created ? this.created.toISOString() : <any>undefined;
@@ -56465,6 +56215,7 @@ export interface IMeasurementFormInstanceFeedbackDto {
56465
56215
  versionId?: number;
56466
56216
  schemaInstanceId: string;
56467
56217
  balloonId?: string | null;
56218
+ reference?: number;
56468
56219
  feedback: string;
56469
56220
  from: string;
56470
56221
  created: Date;
@@ -56476,6 +56227,7 @@ export class CreateMeasurementFormInstanceRequest implements ICreateMeasurementF
56476
56227
  customerName?: string | null;
56477
56228
  purchaseOrder?: string | null;
56478
56229
  sequences!: CreateMeasurementFormInstanceRequestSequence[];
56230
+ serialNumbers!: CreateMeasurementFormInstanceRequestSerialNumber[];
56479
56231
 
56480
56232
  constructor(data?: ICreateMeasurementFormInstanceRequest) {
56481
56233
  if (data) {
@@ -56486,6 +56238,7 @@ export class CreateMeasurementFormInstanceRequest implements ICreateMeasurementF
56486
56238
  }
56487
56239
  if (!data) {
56488
56240
  this.sequences = [];
56241
+ this.serialNumbers = [];
56489
56242
  }
56490
56243
  }
56491
56244
 
@@ -56500,6 +56253,11 @@ export class CreateMeasurementFormInstanceRequest implements ICreateMeasurementF
56500
56253
  for (let item of _data["sequences"])
56501
56254
  this.sequences!.push(CreateMeasurementFormInstanceRequestSequence.fromJS(item));
56502
56255
  }
56256
+ if (Array.isArray(_data["serialNumbers"])) {
56257
+ this.serialNumbers = [] as any;
56258
+ for (let item of _data["serialNumbers"])
56259
+ this.serialNumbers!.push(CreateMeasurementFormInstanceRequestSerialNumber.fromJS(item));
56260
+ }
56503
56261
  }
56504
56262
  }
56505
56263
 
@@ -56521,6 +56279,11 @@ export class CreateMeasurementFormInstanceRequest implements ICreateMeasurementF
56521
56279
  for (let item of this.sequences)
56522
56280
  data["sequences"].push(item.toJSON());
56523
56281
  }
56282
+ if (Array.isArray(this.serialNumbers)) {
56283
+ data["serialNumbers"] = [];
56284
+ for (let item of this.serialNumbers)
56285
+ data["serialNumbers"].push(item.toJSON());
56286
+ }
56524
56287
  return data;
56525
56288
  }
56526
56289
  }
@@ -56531,6 +56294,7 @@ export interface ICreateMeasurementFormInstanceRequest {
56531
56294
  customerName?: string | null;
56532
56295
  purchaseOrder?: string | null;
56533
56296
  sequences: CreateMeasurementFormInstanceRequestSequence[];
56297
+ serialNumbers: CreateMeasurementFormInstanceRequestSerialNumber[];
56534
56298
  }
56535
56299
 
56536
56300
  export class CreateMeasurementFormInstanceRequestSequence implements ICreateMeasurementFormInstanceRequestSequence {
@@ -56573,8 +56337,49 @@ export interface ICreateMeasurementFormInstanceRequestSequence {
56573
56337
  serialNumber?: string | null;
56574
56338
  }
56575
56339
 
56340
+ export class CreateMeasurementFormInstanceRequestSerialNumber implements ICreateMeasurementFormInstanceRequestSerialNumber {
56341
+ serialNumber!: string;
56342
+ customerSerialNumber?: string | null;
56343
+
56344
+ constructor(data?: ICreateMeasurementFormInstanceRequestSerialNumber) {
56345
+ if (data) {
56346
+ for (var property in data) {
56347
+ if (data.hasOwnProperty(property))
56348
+ (<any>this)[property] = (<any>data)[property];
56349
+ }
56350
+ }
56351
+ }
56352
+
56353
+ init(_data?: any) {
56354
+ if (_data) {
56355
+ this.serialNumber = _data["serialNumber"];
56356
+ this.customerSerialNumber = _data["customerSerialNumber"];
56357
+ }
56358
+ }
56359
+
56360
+ static fromJS(data: any): CreateMeasurementFormInstanceRequestSerialNumber {
56361
+ data = typeof data === 'object' ? data : {};
56362
+ let result = new CreateMeasurementFormInstanceRequestSerialNumber();
56363
+ result.init(data);
56364
+ return result;
56365
+ }
56366
+
56367
+ toJSON(data?: any) {
56368
+ data = typeof data === 'object' ? data : {};
56369
+ data["serialNumber"] = this.serialNumber;
56370
+ data["customerSerialNumber"] = this.customerSerialNumber;
56371
+ return data;
56372
+ }
56373
+ }
56374
+
56375
+ export interface ICreateMeasurementFormInstanceRequestSerialNumber {
56376
+ serialNumber: string;
56377
+ customerSerialNumber?: string | null;
56378
+ }
56379
+
56576
56380
  export class UpdateMeasurementFormInstanceRequest implements IUpdateMeasurementFormInstanceRequest {
56577
- sequences!: MeasurementFormWorkorderSequenceDto[];
56381
+ sequences?: MeasurementFormWorkorderSequenceDto[] | null;
56382
+ serialNumbers!: MeasurementFormWorkorderSerialNumberDto[];
56578
56383
  suppliers!: MeasurementFormWorkorderSupplierDto[];
56579
56384
 
56580
56385
  constructor(data?: IUpdateMeasurementFormInstanceRequest) {
@@ -56585,7 +56390,7 @@ export class UpdateMeasurementFormInstanceRequest implements IUpdateMeasurementF
56585
56390
  }
56586
56391
  }
56587
56392
  if (!data) {
56588
- this.sequences = [];
56393
+ this.serialNumbers = [];
56589
56394
  this.suppliers = [];
56590
56395
  }
56591
56396
  }
@@ -56597,6 +56402,11 @@ export class UpdateMeasurementFormInstanceRequest implements IUpdateMeasurementF
56597
56402
  for (let item of _data["sequences"])
56598
56403
  this.sequences!.push(MeasurementFormWorkorderSequenceDto.fromJS(item));
56599
56404
  }
56405
+ if (Array.isArray(_data["serialNumbers"])) {
56406
+ this.serialNumbers = [] as any;
56407
+ for (let item of _data["serialNumbers"])
56408
+ this.serialNumbers!.push(MeasurementFormWorkorderSerialNumberDto.fromJS(item));
56409
+ }
56600
56410
  if (Array.isArray(_data["suppliers"])) {
56601
56411
  this.suppliers = [] as any;
56602
56412
  for (let item of _data["suppliers"])
@@ -56619,6 +56429,11 @@ export class UpdateMeasurementFormInstanceRequest implements IUpdateMeasurementF
56619
56429
  for (let item of this.sequences)
56620
56430
  data["sequences"].push(item.toJSON());
56621
56431
  }
56432
+ if (Array.isArray(this.serialNumbers)) {
56433
+ data["serialNumbers"] = [];
56434
+ for (let item of this.serialNumbers)
56435
+ data["serialNumbers"].push(item.toJSON());
56436
+ }
56622
56437
  if (Array.isArray(this.suppliers)) {
56623
56438
  data["suppliers"] = [];
56624
56439
  for (let item of this.suppliers)
@@ -56629,7 +56444,8 @@ export class UpdateMeasurementFormInstanceRequest implements IUpdateMeasurementF
56629
56444
  }
56630
56445
 
56631
56446
  export interface IUpdateMeasurementFormInstanceRequest {
56632
- sequences: MeasurementFormWorkorderSequenceDto[];
56447
+ sequences?: MeasurementFormWorkorderSequenceDto[] | null;
56448
+ serialNumbers: MeasurementFormWorkorderSerialNumberDto[];
56633
56449
  suppliers: MeasurementFormWorkorderSupplierDto[];
56634
56450
  }
56635
56451
 
@@ -56693,6 +56509,7 @@ export class MeasurementFormInstanceElementDto implements IMeasurementFormInstan
56693
56509
  imageUrl?: string | null;
56694
56510
  thumbnailUrl?: string | null;
56695
56511
  balloonId?: string | null;
56512
+ reference?: number;
56696
56513
  section?: string | null;
56697
56514
  pageNumber?: number | null;
56698
56515
  sheetZone?: string | null;
@@ -56716,7 +56533,9 @@ export class MeasurementFormInstanceElementDto implements IMeasurementFormInstan
56716
56533
  isDocumentedExternally!: boolean;
56717
56534
  canOverrideIsDocumentedExternally!: boolean;
56718
56535
  balloonSequence?: number | null;
56536
+ referenceSerialNumber?: number | null;
56719
56537
  balloonQuantity?: number | null;
56538
+ referenceQuantity?: number | null;
56720
56539
  plusTolerance?: string | null;
56721
56540
  minusTolerance?: string | null;
56722
56541
  coatingThickness?: number | null;
@@ -56749,6 +56568,7 @@ export class MeasurementFormInstanceElementDto implements IMeasurementFormInstan
56749
56568
  this.imageUrl = _data["imageUrl"];
56750
56569
  this.thumbnailUrl = _data["thumbnailUrl"];
56751
56570
  this.balloonId = _data["balloonId"];
56571
+ this.reference = _data["reference"];
56752
56572
  this.section = _data["section"];
56753
56573
  this.pageNumber = _data["pageNumber"];
56754
56574
  this.sheetZone = _data["sheetZone"];
@@ -56772,7 +56592,9 @@ export class MeasurementFormInstanceElementDto implements IMeasurementFormInstan
56772
56592
  this.isDocumentedExternally = _data["isDocumentedExternally"];
56773
56593
  this.canOverrideIsDocumentedExternally = _data["canOverrideIsDocumentedExternally"];
56774
56594
  this.balloonSequence = _data["balloonSequence"];
56595
+ this.referenceSerialNumber = _data["referenceSerialNumber"];
56775
56596
  this.balloonQuantity = _data["balloonQuantity"];
56597
+ this.referenceQuantity = _data["referenceQuantity"];
56776
56598
  this.plusTolerance = _data["plusTolerance"];
56777
56599
  this.minusTolerance = _data["minusTolerance"];
56778
56600
  this.coatingThickness = _data["coatingThickness"];
@@ -56806,6 +56628,7 @@ export class MeasurementFormInstanceElementDto implements IMeasurementFormInstan
56806
56628
  data["imageUrl"] = this.imageUrl;
56807
56629
  data["thumbnailUrl"] = this.thumbnailUrl;
56808
56630
  data["balloonId"] = this.balloonId;
56631
+ data["reference"] = this.reference;
56809
56632
  data["section"] = this.section;
56810
56633
  data["pageNumber"] = this.pageNumber;
56811
56634
  data["sheetZone"] = this.sheetZone;
@@ -56829,7 +56652,9 @@ export class MeasurementFormInstanceElementDto implements IMeasurementFormInstan
56829
56652
  data["isDocumentedExternally"] = this.isDocumentedExternally;
56830
56653
  data["canOverrideIsDocumentedExternally"] = this.canOverrideIsDocumentedExternally;
56831
56654
  data["balloonSequence"] = this.balloonSequence;
56655
+ data["referenceSerialNumber"] = this.referenceSerialNumber;
56832
56656
  data["balloonQuantity"] = this.balloonQuantity;
56657
+ data["referenceQuantity"] = this.referenceQuantity;
56833
56658
  data["plusTolerance"] = this.plusTolerance;
56834
56659
  data["minusTolerance"] = this.minusTolerance;
56835
56660
  data["coatingThickness"] = this.coatingThickness;
@@ -56856,6 +56681,7 @@ export interface IMeasurementFormInstanceElementDto {
56856
56681
  imageUrl?: string | null;
56857
56682
  thumbnailUrl?: string | null;
56858
56683
  balloonId?: string | null;
56684
+ reference?: number;
56859
56685
  section?: string | null;
56860
56686
  pageNumber?: number | null;
56861
56687
  sheetZone?: string | null;
@@ -56879,7 +56705,9 @@ export interface IMeasurementFormInstanceElementDto {
56879
56705
  isDocumentedExternally: boolean;
56880
56706
  canOverrideIsDocumentedExternally: boolean;
56881
56707
  balloonSequence?: number | null;
56708
+ referenceSerialNumber?: number | null;
56882
56709
  balloonQuantity?: number | null;
56710
+ referenceQuantity?: number | null;
56883
56711
  plusTolerance?: string | null;
56884
56712
  minusTolerance?: string | null;
56885
56713
  coatingThickness?: number | null;
@@ -56898,7 +56726,8 @@ export interface IMeasurementFormInstanceElementDto {
56898
56726
  export class MeasurementFormElementValueDto implements IMeasurementFormElementValueDto {
56899
56727
  bonus?: string | null;
56900
56728
  completed!: boolean;
56901
- sequence!: string;
56729
+ sequence?: string | null;
56730
+ serialNumber!: string;
56902
56731
  value?: string | null;
56903
56732
  updatedByUser!: string;
56904
56733
  updatedDate!: Date;
@@ -56924,6 +56753,7 @@ export class MeasurementFormElementValueDto implements IMeasurementFormElementVa
56924
56753
  this.bonus = _data["bonus"];
56925
56754
  this.completed = _data["completed"];
56926
56755
  this.sequence = _data["sequence"];
56756
+ this.serialNumber = _data["serialNumber"];
56927
56757
  this.value = _data["value"];
56928
56758
  this.updatedByUser = _data["updatedByUser"];
56929
56759
  this.updatedDate = _data["updatedDate"] ? new Date(_data["updatedDate"].toString()) : <any>undefined;
@@ -56950,6 +56780,7 @@ export class MeasurementFormElementValueDto implements IMeasurementFormElementVa
56950
56780
  data["bonus"] = this.bonus;
56951
56781
  data["completed"] = this.completed;
56952
56782
  data["sequence"] = this.sequence;
56783
+ data["serialNumber"] = this.serialNumber;
56953
56784
  data["value"] = this.value;
56954
56785
  data["updatedByUser"] = this.updatedByUser;
56955
56786
  data["updatedDate"] = this.updatedDate ? this.updatedDate.toISOString() : <any>undefined;
@@ -56968,7 +56799,8 @@ export class MeasurementFormElementValueDto implements IMeasurementFormElementVa
56968
56799
  export interface IMeasurementFormElementValueDto {
56969
56800
  bonus?: string | null;
56970
56801
  completed: boolean;
56971
- sequence: string;
56802
+ sequence?: string | null;
56803
+ serialNumber: string;
56972
56804
  value?: string | null;
56973
56805
  updatedByUser: string;
56974
56806
  updatedDate: Date;
@@ -57077,7 +56909,8 @@ export class MeasurementFormElementValueAuditDto implements IMeasurementFormElem
57077
56909
  schemaId!: string;
57078
56910
  value?: string | null;
57079
56911
  bonus?: number | null;
57080
- sequence!: string;
56912
+ sequence?: string | null;
56913
+ serialNumber!: string;
57081
56914
  elementId!: string;
57082
56915
  updatedByUser!: string;
57083
56916
  updatedDate!: Date;
@@ -57104,6 +56937,7 @@ export class MeasurementFormElementValueAuditDto implements IMeasurementFormElem
57104
56937
  this.value = _data["value"];
57105
56938
  this.bonus = _data["bonus"];
57106
56939
  this.sequence = _data["sequence"];
56940
+ this.serialNumber = _data["serialNumber"];
57107
56941
  this.elementId = _data["elementId"];
57108
56942
  this.updatedByUser = _data["updatedByUser"];
57109
56943
  this.updatedDate = _data["updatedDate"] ? new Date(_data["updatedDate"].toString()) : <any>undefined;
@@ -57131,6 +56965,7 @@ export class MeasurementFormElementValueAuditDto implements IMeasurementFormElem
57131
56965
  data["value"] = this.value;
57132
56966
  data["bonus"] = this.bonus;
57133
56967
  data["sequence"] = this.sequence;
56968
+ data["serialNumber"] = this.serialNumber;
57134
56969
  data["elementId"] = this.elementId;
57135
56970
  data["updatedByUser"] = this.updatedByUser;
57136
56971
  data["updatedDate"] = this.updatedDate ? this.updatedDate.toISOString() : <any>undefined;
@@ -57150,7 +56985,8 @@ export interface IMeasurementFormElementValueAuditDto {
57150
56985
  schemaId: string;
57151
56986
  value?: string | null;
57152
56987
  bonus?: number | null;
57153
- sequence: string;
56988
+ sequence?: string | null;
56989
+ serialNumber: string;
57154
56990
  elementId: string;
57155
56991
  updatedByUser: string;
57156
56992
  updatedDate: Date;
@@ -57265,7 +57101,8 @@ export class SaveValueRequest implements ISaveValueRequest {
57265
57101
  resourceName?: string | null;
57266
57102
  schemaId!: string;
57267
57103
  elementId!: string;
57268
- sequence!: string;
57104
+ sequence?: string | null;
57105
+ serialNumber!: string;
57269
57106
  value?: string | null;
57270
57107
  bonus?: string | null;
57271
57108
 
@@ -57285,6 +57122,7 @@ export class SaveValueRequest implements ISaveValueRequest {
57285
57122
  this.schemaId = _data["schemaId"];
57286
57123
  this.elementId = _data["elementId"];
57287
57124
  this.sequence = _data["sequence"];
57125
+ this.serialNumber = _data["serialNumber"];
57288
57126
  this.value = _data["value"];
57289
57127
  this.bonus = _data["bonus"];
57290
57128
  }
@@ -57304,6 +57142,7 @@ export class SaveValueRequest implements ISaveValueRequest {
57304
57142
  data["schemaId"] = this.schemaId;
57305
57143
  data["elementId"] = this.elementId;
57306
57144
  data["sequence"] = this.sequence;
57145
+ data["serialNumber"] = this.serialNumber;
57307
57146
  data["value"] = this.value;
57308
57147
  data["bonus"] = this.bonus;
57309
57148
  return data;
@@ -57315,7 +57154,8 @@ export interface ISaveValueRequest {
57315
57154
  resourceName?: string | null;
57316
57155
  schemaId: string;
57317
57156
  elementId: string;
57318
- sequence: string;
57157
+ sequence?: string | null;
57158
+ serialNumber: string;
57319
57159
  value?: string | null;
57320
57160
  bonus?: string | null;
57321
57161
  }
@@ -57323,7 +57163,8 @@ export interface ISaveValueRequest {
57323
57163
  export class SaveToolRequest implements ISaveToolRequest {
57324
57164
  schemaId!: string;
57325
57165
  elementId!: string;
57326
- sequence!: string;
57166
+ sequence?: string | null;
57167
+ serialNumber!: string;
57327
57168
  tools?: string[] | null;
57328
57169
  force?: boolean;
57329
57170
 
@@ -57341,6 +57182,7 @@ export class SaveToolRequest implements ISaveToolRequest {
57341
57182
  this.schemaId = _data["schemaId"];
57342
57183
  this.elementId = _data["elementId"];
57343
57184
  this.sequence = _data["sequence"];
57185
+ this.serialNumber = _data["serialNumber"];
57344
57186
  if (Array.isArray(_data["tools"])) {
57345
57187
  this.tools = [] as any;
57346
57188
  for (let item of _data["tools"])
@@ -57362,6 +57204,7 @@ export class SaveToolRequest implements ISaveToolRequest {
57362
57204
  data["schemaId"] = this.schemaId;
57363
57205
  data["elementId"] = this.elementId;
57364
57206
  data["sequence"] = this.sequence;
57207
+ data["serialNumber"] = this.serialNumber;
57365
57208
  if (Array.isArray(this.tools)) {
57366
57209
  data["tools"] = [];
57367
57210
  for (let item of this.tools)
@@ -57375,7 +57218,8 @@ export class SaveToolRequest implements ISaveToolRequest {
57375
57218
  export interface ISaveToolRequest {
57376
57219
  schemaId: string;
57377
57220
  elementId: string;
57378
- sequence: string;
57221
+ sequence?: string | null;
57222
+ serialNumber: string;
57379
57223
  tools?: string[] | null;
57380
57224
  force?: boolean;
57381
57225
  }
@@ -57383,7 +57227,8 @@ export interface ISaveToolRequest {
57383
57227
  export class SaveCommentRequest implements ISaveCommentRequest {
57384
57228
  schemaId!: string;
57385
57229
  elementId!: string;
57386
- sequence!: string;
57230
+ sequence?: string | null;
57231
+ serialNumber!: string;
57387
57232
  comment?: string | null;
57388
57233
 
57389
57234
  constructor(data?: ISaveCommentRequest) {
@@ -57400,6 +57245,7 @@ export class SaveCommentRequest implements ISaveCommentRequest {
57400
57245
  this.schemaId = _data["schemaId"];
57401
57246
  this.elementId = _data["elementId"];
57402
57247
  this.sequence = _data["sequence"];
57248
+ this.serialNumber = _data["serialNumber"];
57403
57249
  this.comment = _data["comment"];
57404
57250
  }
57405
57251
  }
@@ -57416,6 +57262,7 @@ export class SaveCommentRequest implements ISaveCommentRequest {
57416
57262
  data["schemaId"] = this.schemaId;
57417
57263
  data["elementId"] = this.elementId;
57418
57264
  data["sequence"] = this.sequence;
57265
+ data["serialNumber"] = this.serialNumber;
57419
57266
  data["comment"] = this.comment;
57420
57267
  return data;
57421
57268
  }
@@ -57424,7 +57271,8 @@ export class SaveCommentRequest implements ISaveCommentRequest {
57424
57271
  export interface ISaveCommentRequest {
57425
57272
  schemaId: string;
57426
57273
  elementId: string;
57427
- sequence: string;
57274
+ sequence?: string | null;
57275
+ serialNumber: string;
57428
57276
  comment?: string | null;
57429
57277
  }
57430
57278
 
@@ -57578,6 +57426,7 @@ export class SchemaFeedbackCreatedDto implements ISchemaFeedbackCreatedDto {
57578
57426
  versionId!: number;
57579
57427
  schemaInstanceId!: string;
57580
57428
  balloonId?: string | null;
57429
+ reference?: number;
57581
57430
  feedback!: string;
57582
57431
  from!: string;
57583
57432
  created!: Date;
@@ -57599,6 +57448,7 @@ export class SchemaFeedbackCreatedDto implements ISchemaFeedbackCreatedDto {
57599
57448
  this.versionId = _data["versionId"];
57600
57449
  this.schemaInstanceId = _data["schemaInstanceId"];
57601
57450
  this.balloonId = _data["balloonId"];
57451
+ this.reference = _data["reference"];
57602
57452
  this.feedback = _data["feedback"];
57603
57453
  this.from = _data["from"];
57604
57454
  this.created = _data["created"] ? new Date(_data["created"].toString()) : <any>undefined;
@@ -57620,6 +57470,7 @@ export class SchemaFeedbackCreatedDto implements ISchemaFeedbackCreatedDto {
57620
57470
  data["versionId"] = this.versionId;
57621
57471
  data["schemaInstanceId"] = this.schemaInstanceId;
57622
57472
  data["balloonId"] = this.balloonId;
57473
+ data["reference"] = this.reference;
57623
57474
  data["feedback"] = this.feedback;
57624
57475
  data["from"] = this.from;
57625
57476
  data["created"] = this.created ? this.created.toISOString() : <any>undefined;
@@ -57634,6 +57485,7 @@ export interface ISchemaFeedbackCreatedDto {
57634
57485
  versionId: number;
57635
57486
  schemaInstanceId: string;
57636
57487
  balloonId?: string | null;
57488
+ reference?: number;
57637
57489
  feedback: string;
57638
57490
  from: string;
57639
57491
  created: Date;
@@ -57641,6 +57493,7 @@ export interface ISchemaFeedbackCreatedDto {
57641
57493
 
57642
57494
  export class CreateMeasurementFormSchemaFeedbackRequest implements ICreateMeasurementFormSchemaFeedbackRequest {
57643
57495
  balloonId?: string | null;
57496
+ reference?: number;
57644
57497
  feedback!: string;
57645
57498
 
57646
57499
  constructor(data?: ICreateMeasurementFormSchemaFeedbackRequest) {
@@ -57655,6 +57508,7 @@ export class CreateMeasurementFormSchemaFeedbackRequest implements ICreateMeasur
57655
57508
  init(_data?: any) {
57656
57509
  if (_data) {
57657
57510
  this.balloonId = _data["balloonId"];
57511
+ this.reference = _data["reference"];
57658
57512
  this.feedback = _data["feedback"];
57659
57513
  }
57660
57514
  }
@@ -57669,6 +57523,7 @@ export class CreateMeasurementFormSchemaFeedbackRequest implements ICreateMeasur
57669
57523
  toJSON(data?: any) {
57670
57524
  data = typeof data === 'object' ? data : {};
57671
57525
  data["balloonId"] = this.balloonId;
57526
+ data["reference"] = this.reference;
57672
57527
  data["feedback"] = this.feedback;
57673
57528
  return data;
57674
57529
  }
@@ -57676,6 +57531,7 @@ export class CreateMeasurementFormSchemaFeedbackRequest implements ICreateMeasur
57676
57531
 
57677
57532
  export interface ICreateMeasurementFormSchemaFeedbackRequest {
57678
57533
  balloonId?: string | null;
57534
+ reference?: number;
57679
57535
  feedback: string;
57680
57536
  }
57681
57537
 
@@ -57812,6 +57668,7 @@ export class ExportDimensionReportRequest implements IExportDimensionReportReque
57812
57668
  includeAllSchemasAndElements?: boolean | null;
57813
57669
  createBlankReport?: boolean | null;
57814
57670
  sequences?: string[] | null;
57671
+ serialNumbers?: string[] | null;
57815
57672
  customerPO?: string | null;
57816
57673
  workOrder?: string | null;
57817
57674
  comment?: string | null;
@@ -57836,6 +57693,11 @@ export class ExportDimensionReportRequest implements IExportDimensionReportReque
57836
57693
  for (let item of _data["sequences"])
57837
57694
  this.sequences!.push(item);
57838
57695
  }
57696
+ if (Array.isArray(_data["serialNumbers"])) {
57697
+ this.serialNumbers = [] as any;
57698
+ for (let item of _data["serialNumbers"])
57699
+ this.serialNumbers!.push(item);
57700
+ }
57839
57701
  this.customerPO = _data["customerPO"];
57840
57702
  this.workOrder = _data["workOrder"];
57841
57703
  this.comment = _data["comment"];
@@ -57860,6 +57722,11 @@ export class ExportDimensionReportRequest implements IExportDimensionReportReque
57860
57722
  for (let item of this.sequences)
57861
57723
  data["sequences"].push(item);
57862
57724
  }
57725
+ if (Array.isArray(this.serialNumbers)) {
57726
+ data["serialNumbers"] = [];
57727
+ for (let item of this.serialNumbers)
57728
+ data["serialNumbers"].push(item);
57729
+ }
57863
57730
  data["customerPO"] = this.customerPO;
57864
57731
  data["workOrder"] = this.workOrder;
57865
57732
  data["comment"] = this.comment;
@@ -57873,6 +57740,7 @@ export interface IExportDimensionReportRequest {
57873
57740
  includeAllSchemasAndElements?: boolean | null;
57874
57741
  createBlankReport?: boolean | null;
57875
57742
  sequences?: string[] | null;
57743
+ serialNumbers?: string[] | null;
57876
57744
  customerPO?: string | null;
57877
57745
  workOrder?: string | null;
57878
57746
  comment?: string | null;
@@ -57924,7 +57792,8 @@ export interface IUpdateSchemaInstanceElementsRequest {
57924
57792
 
57925
57793
  export class SchemaInstanceElementDto implements ISchemaInstanceElementDto {
57926
57794
  elementId!: string;
57927
- balloonId!: string;
57795
+ balloonId?: string | null;
57796
+ reference!: number;
57928
57797
  disabled!: boolean;
57929
57798
 
57930
57799
  constructor(data?: ISchemaInstanceElementDto) {
@@ -57940,6 +57809,7 @@ export class SchemaInstanceElementDto implements ISchemaInstanceElementDto {
57940
57809
  if (_data) {
57941
57810
  this.elementId = _data["elementId"];
57942
57811
  this.balloonId = _data["balloonId"];
57812
+ this.reference = _data["reference"];
57943
57813
  this.disabled = _data["disabled"];
57944
57814
  }
57945
57815
  }
@@ -57955,6 +57825,7 @@ export class SchemaInstanceElementDto implements ISchemaInstanceElementDto {
57955
57825
  data = typeof data === 'object' ? data : {};
57956
57826
  data["elementId"] = this.elementId;
57957
57827
  data["balloonId"] = this.balloonId;
57828
+ data["reference"] = this.reference;
57958
57829
  data["disabled"] = this.disabled;
57959
57830
  return data;
57960
57831
  }
@@ -57962,479 +57833,11 @@ export class SchemaInstanceElementDto implements ISchemaInstanceElementDto {
57962
57833
 
57963
57834
  export interface ISchemaInstanceElementDto {
57964
57835
  elementId: string;
57965
- balloonId: string;
57836
+ balloonId?: string | null;
57837
+ reference: number;
57966
57838
  disabled: boolean;
57967
57839
  }
57968
57840
 
57969
- export class ImportMeasurementFormInstanceRequest implements IImportMeasurementFormInstanceRequest {
57970
- partInfo!: ImportMeasurementFormPartDto;
57971
- customerId?: string | null;
57972
- customerGroupId?: string | null;
57973
- customerName?: string | null;
57974
- externalOrderNumber?: string | null;
57975
- quantity!: number;
57976
- sequences!: WorkorderImportTraceItemDto[];
57977
- status!: MeasurementFormInstanceStatus;
57978
- statusChangedBy?: string | null;
57979
- statusChangedDate?: Date | null;
57980
- created!: Date;
57981
- createdBy?: string | null;
57982
- updatedBy?: string | null;
57983
- schemas!: ImportMeasurementSchemaInstanceDto[];
57984
-
57985
- constructor(data?: IImportMeasurementFormInstanceRequest) {
57986
- if (data) {
57987
- for (var property in data) {
57988
- if (data.hasOwnProperty(property))
57989
- (<any>this)[property] = (<any>data)[property];
57990
- }
57991
- }
57992
- if (!data) {
57993
- this.partInfo = new ImportMeasurementFormPartDto();
57994
- this.sequences = [];
57995
- this.schemas = [];
57996
- }
57997
- }
57998
-
57999
- init(_data?: any) {
58000
- if (_data) {
58001
- this.partInfo = _data["partInfo"] ? ImportMeasurementFormPartDto.fromJS(_data["partInfo"]) : new ImportMeasurementFormPartDto();
58002
- this.customerId = _data["customerId"];
58003
- this.customerGroupId = _data["customerGroupId"];
58004
- this.customerName = _data["customerName"];
58005
- this.externalOrderNumber = _data["externalOrderNumber"];
58006
- this.quantity = _data["quantity"];
58007
- if (Array.isArray(_data["sequences"])) {
58008
- this.sequences = [] as any;
58009
- for (let item of _data["sequences"])
58010
- this.sequences!.push(WorkorderImportTraceItemDto.fromJS(item));
58011
- }
58012
- this.status = _data["status"];
58013
- this.statusChangedBy = _data["statusChangedBy"];
58014
- this.statusChangedDate = _data["statusChangedDate"] ? new Date(_data["statusChangedDate"].toString()) : <any>undefined;
58015
- this.created = _data["created"] ? new Date(_data["created"].toString()) : <any>undefined;
58016
- this.createdBy = _data["createdBy"];
58017
- this.updatedBy = _data["updatedBy"];
58018
- if (Array.isArray(_data["schemas"])) {
58019
- this.schemas = [] as any;
58020
- for (let item of _data["schemas"])
58021
- this.schemas!.push(ImportMeasurementSchemaInstanceDto.fromJS(item));
58022
- }
58023
- }
58024
- }
58025
-
58026
- static fromJS(data: any): ImportMeasurementFormInstanceRequest {
58027
- data = typeof data === 'object' ? data : {};
58028
- let result = new ImportMeasurementFormInstanceRequest();
58029
- result.init(data);
58030
- return result;
58031
- }
58032
-
58033
- toJSON(data?: any) {
58034
- data = typeof data === 'object' ? data : {};
58035
- data["partInfo"] = this.partInfo ? this.partInfo.toJSON() : <any>undefined;
58036
- data["customerId"] = this.customerId;
58037
- data["customerGroupId"] = this.customerGroupId;
58038
- data["customerName"] = this.customerName;
58039
- data["externalOrderNumber"] = this.externalOrderNumber;
58040
- data["quantity"] = this.quantity;
58041
- if (Array.isArray(this.sequences)) {
58042
- data["sequences"] = [];
58043
- for (let item of this.sequences)
58044
- data["sequences"].push(item.toJSON());
58045
- }
58046
- data["status"] = this.status;
58047
- data["statusChangedBy"] = this.statusChangedBy;
58048
- data["statusChangedDate"] = this.statusChangedDate ? this.statusChangedDate.toISOString() : <any>undefined;
58049
- data["created"] = this.created ? this.created.toISOString() : <any>undefined;
58050
- data["createdBy"] = this.createdBy;
58051
- data["updatedBy"] = this.updatedBy;
58052
- if (Array.isArray(this.schemas)) {
58053
- data["schemas"] = [];
58054
- for (let item of this.schemas)
58055
- data["schemas"].push(item.toJSON());
58056
- }
58057
- return data;
58058
- }
58059
- }
58060
-
58061
- export interface IImportMeasurementFormInstanceRequest {
58062
- partInfo: ImportMeasurementFormPartDto;
58063
- customerId?: string | null;
58064
- customerGroupId?: string | null;
58065
- customerName?: string | null;
58066
- externalOrderNumber?: string | null;
58067
- quantity: number;
58068
- sequences: WorkorderImportTraceItemDto[];
58069
- status: MeasurementFormInstanceStatus;
58070
- statusChangedBy?: string | null;
58071
- statusChangedDate?: Date | null;
58072
- created: Date;
58073
- createdBy?: string | null;
58074
- updatedBy?: string | null;
58075
- schemas: ImportMeasurementSchemaInstanceDto[];
58076
- }
58077
-
58078
- export class ImportMeasurementFormPartDto implements IImportMeasurementFormPartDto {
58079
- partNumber?: string | null;
58080
- partName?: string | null;
58081
- partRevision?: string | null;
58082
- drawing!: string;
58083
- drawingRevision?: string | null;
58084
-
58085
- constructor(data?: IImportMeasurementFormPartDto) {
58086
- if (data) {
58087
- for (var property in data) {
58088
- if (data.hasOwnProperty(property))
58089
- (<any>this)[property] = (<any>data)[property];
58090
- }
58091
- }
58092
- }
58093
-
58094
- init(_data?: any) {
58095
- if (_data) {
58096
- this.partNumber = _data["partNumber"];
58097
- this.partName = _data["partName"];
58098
- this.partRevision = _data["partRevision"];
58099
- this.drawing = _data["drawing"];
58100
- this.drawingRevision = _data["drawingRevision"];
58101
- }
58102
- }
58103
-
58104
- static fromJS(data: any): ImportMeasurementFormPartDto {
58105
- data = typeof data === 'object' ? data : {};
58106
- let result = new ImportMeasurementFormPartDto();
58107
- result.init(data);
58108
- return result;
58109
- }
58110
-
58111
- toJSON(data?: any) {
58112
- data = typeof data === 'object' ? data : {};
58113
- data["partNumber"] = this.partNumber;
58114
- data["partName"] = this.partName;
58115
- data["partRevision"] = this.partRevision;
58116
- data["drawing"] = this.drawing;
58117
- data["drawingRevision"] = this.drawingRevision;
58118
- return data;
58119
- }
58120
- }
58121
-
58122
- export interface IImportMeasurementFormPartDto {
58123
- partNumber?: string | null;
58124
- partName?: string | null;
58125
- partRevision?: string | null;
58126
- drawing: string;
58127
- drawingRevision?: string | null;
58128
- }
58129
-
58130
- export class WorkorderImportTraceItemDto implements IWorkorderImportTraceItemDto {
58131
- sequence!: string;
58132
- serialNumber?: string | null;
58133
- lot?: string | null;
58134
- active!: boolean;
58135
-
58136
- constructor(data?: IWorkorderImportTraceItemDto) {
58137
- if (data) {
58138
- for (var property in data) {
58139
- if (data.hasOwnProperty(property))
58140
- (<any>this)[property] = (<any>data)[property];
58141
- }
58142
- }
58143
- }
58144
-
58145
- init(_data?: any) {
58146
- if (_data) {
58147
- this.sequence = _data["sequence"];
58148
- this.serialNumber = _data["serialNumber"];
58149
- this.lot = _data["lot"];
58150
- this.active = _data["active"];
58151
- }
58152
- }
58153
-
58154
- static fromJS(data: any): WorkorderImportTraceItemDto {
58155
- data = typeof data === 'object' ? data : {};
58156
- let result = new WorkorderImportTraceItemDto();
58157
- result.init(data);
58158
- return result;
58159
- }
58160
-
58161
- toJSON(data?: any) {
58162
- data = typeof data === 'object' ? data : {};
58163
- data["sequence"] = this.sequence;
58164
- data["serialNumber"] = this.serialNumber;
58165
- data["lot"] = this.lot;
58166
- data["active"] = this.active;
58167
- return data;
58168
- }
58169
- }
58170
-
58171
- export interface IWorkorderImportTraceItemDto {
58172
- sequence: string;
58173
- serialNumber?: string | null;
58174
- lot?: string | null;
58175
- active: boolean;
58176
- }
58177
-
58178
- export class ImportMeasurementSchemaInstanceDto implements IImportMeasurementSchemaInstanceDto {
58179
- id!: string;
58180
- version!: number;
58181
-
58182
- constructor(data?: IImportMeasurementSchemaInstanceDto) {
58183
- if (data) {
58184
- for (var property in data) {
58185
- if (data.hasOwnProperty(property))
58186
- (<any>this)[property] = (<any>data)[property];
58187
- }
58188
- }
58189
- }
58190
-
58191
- init(_data?: any) {
58192
- if (_data) {
58193
- this.id = _data["id"];
58194
- this.version = _data["version"];
58195
- }
58196
- }
58197
-
58198
- static fromJS(data: any): ImportMeasurementSchemaInstanceDto {
58199
- data = typeof data === 'object' ? data : {};
58200
- let result = new ImportMeasurementSchemaInstanceDto();
58201
- result.init(data);
58202
- return result;
58203
- }
58204
-
58205
- toJSON(data?: any) {
58206
- data = typeof data === 'object' ? data : {};
58207
- data["id"] = this.id;
58208
- data["version"] = this.version;
58209
- return data;
58210
- }
58211
- }
58212
-
58213
- export interface IImportMeasurementSchemaInstanceDto {
58214
- id: string;
58215
- version: number;
58216
- }
58217
-
58218
- export class IotTypeSourceDto implements IIotTypeSourceDto {
58219
- id!: string;
58220
- name!: string;
58221
-
58222
- constructor(data?: IIotTypeSourceDto) {
58223
- if (data) {
58224
- for (var property in data) {
58225
- if (data.hasOwnProperty(property))
58226
- (<any>this)[property] = (<any>data)[property];
58227
- }
58228
- }
58229
- }
58230
-
58231
- init(_data?: any) {
58232
- if (_data) {
58233
- this.id = _data["id"];
58234
- this.name = _data["name"];
58235
- }
58236
- }
58237
-
58238
- static fromJS(data: any): IotTypeSourceDto {
58239
- data = typeof data === 'object' ? data : {};
58240
- let result = new IotTypeSourceDto();
58241
- result.init(data);
58242
- return result;
58243
- }
58244
-
58245
- toJSON(data?: any) {
58246
- data = typeof data === 'object' ? data : {};
58247
- data["id"] = this.id;
58248
- data["name"] = this.name;
58249
- return data;
58250
- }
58251
- }
58252
-
58253
- export interface IIotTypeSourceDto {
58254
- id: string;
58255
- name: string;
58256
- }
58257
-
58258
- export class ElectricalIotConfigDto implements IElectricalIotConfigDto {
58259
- id!: string;
58260
- typeId!: string;
58261
- serialNumber?: string | null;
58262
- assetId!: number;
58263
- assetExternalId?: string | null;
58264
- phases?: number;
58265
- electricalAssetId?: number;
58266
- electricalAssetExternalId?: string | null;
58267
- electricalTimeseriesId?: number;
58268
- electricalTimeseriesExternalId?: string | null;
58269
-
58270
- constructor(data?: IElectricalIotConfigDto) {
58271
- if (data) {
58272
- for (var property in data) {
58273
- if (data.hasOwnProperty(property))
58274
- (<any>this)[property] = (<any>data)[property];
58275
- }
58276
- }
58277
- }
58278
-
58279
- init(_data?: any) {
58280
- if (_data) {
58281
- this.id = _data["id"];
58282
- this.typeId = _data["typeId"];
58283
- this.serialNumber = _data["serialNumber"];
58284
- this.assetId = _data["assetId"];
58285
- this.assetExternalId = _data["assetExternalId"];
58286
- this.phases = _data["phases"];
58287
- this.electricalAssetId = _data["electricalAssetId"];
58288
- this.electricalAssetExternalId = _data["electricalAssetExternalId"];
58289
- this.electricalTimeseriesId = _data["electricalTimeseriesId"];
58290
- this.electricalTimeseriesExternalId = _data["electricalTimeseriesExternalId"];
58291
- }
58292
- }
58293
-
58294
- static fromJS(data: any): ElectricalIotConfigDto {
58295
- data = typeof data === 'object' ? data : {};
58296
- let result = new ElectricalIotConfigDto();
58297
- result.init(data);
58298
- return result;
58299
- }
58300
-
58301
- toJSON(data?: any) {
58302
- data = typeof data === 'object' ? data : {};
58303
- data["id"] = this.id;
58304
- data["typeId"] = this.typeId;
58305
- data["serialNumber"] = this.serialNumber;
58306
- data["assetId"] = this.assetId;
58307
- data["assetExternalId"] = this.assetExternalId;
58308
- data["phases"] = this.phases;
58309
- data["electricalAssetId"] = this.electricalAssetId;
58310
- data["electricalAssetExternalId"] = this.electricalAssetExternalId;
58311
- data["electricalTimeseriesId"] = this.electricalTimeseriesId;
58312
- data["electricalTimeseriesExternalId"] = this.electricalTimeseriesExternalId;
58313
- return data;
58314
- }
58315
- }
58316
-
58317
- export interface IElectricalIotConfigDto {
58318
- id: string;
58319
- typeId: string;
58320
- serialNumber?: string | null;
58321
- assetId: number;
58322
- assetExternalId?: string | null;
58323
- phases?: number;
58324
- electricalAssetId?: number;
58325
- electricalAssetExternalId?: string | null;
58326
- electricalTimeseriesId?: number;
58327
- electricalTimeseriesExternalId?: string | null;
58328
- }
58329
-
58330
- export class CreateElectricalIotConfig implements ICreateElectricalIotConfig {
58331
- typeId?: string | null;
58332
- serialNumber?: string | null;
58333
- assetId?: number | null;
58334
- assetExternalId?: string | null;
58335
-
58336
- constructor(data?: ICreateElectricalIotConfig) {
58337
- if (data) {
58338
- for (var property in data) {
58339
- if (data.hasOwnProperty(property))
58340
- (<any>this)[property] = (<any>data)[property];
58341
- }
58342
- }
58343
- }
58344
-
58345
- init(_data?: any) {
58346
- if (_data) {
58347
- this.typeId = _data["typeId"];
58348
- this.serialNumber = _data["serialNumber"];
58349
- this.assetId = _data["assetId"];
58350
- this.assetExternalId = _data["assetExternalId"];
58351
- }
58352
- }
58353
-
58354
- static fromJS(data: any): CreateElectricalIotConfig {
58355
- data = typeof data === 'object' ? data : {};
58356
- let result = new CreateElectricalIotConfig();
58357
- result.init(data);
58358
- return result;
58359
- }
58360
-
58361
- toJSON(data?: any) {
58362
- data = typeof data === 'object' ? data : {};
58363
- data["typeId"] = this.typeId;
58364
- data["serialNumber"] = this.serialNumber;
58365
- data["assetId"] = this.assetId;
58366
- data["assetExternalId"] = this.assetExternalId;
58367
- return data;
58368
- }
58369
- }
58370
-
58371
- export interface ICreateElectricalIotConfig {
58372
- typeId?: string | null;
58373
- serialNumber?: string | null;
58374
- assetId?: number | null;
58375
- assetExternalId?: string | null;
58376
- }
58377
-
58378
- export class WeldingIotConfigDto implements IWeldingIotConfigDto {
58379
-
58380
- constructor(data?: IWeldingIotConfigDto) {
58381
- if (data) {
58382
- for (var property in data) {
58383
- if (data.hasOwnProperty(property))
58384
- (<any>this)[property] = (<any>data)[property];
58385
- }
58386
- }
58387
- }
58388
-
58389
- init(_data?: any) {
58390
- }
58391
-
58392
- static fromJS(data: any): WeldingIotConfigDto {
58393
- data = typeof data === 'object' ? data : {};
58394
- let result = new WeldingIotConfigDto();
58395
- result.init(data);
58396
- return result;
58397
- }
58398
-
58399
- toJSON(data?: any) {
58400
- data = typeof data === 'object' ? data : {};
58401
- return data;
58402
- }
58403
- }
58404
-
58405
- export interface IWeldingIotConfigDto {
58406
- }
58407
-
58408
- export class CreateWeldingIotConfig implements ICreateWeldingIotConfig {
58409
-
58410
- constructor(data?: ICreateWeldingIotConfig) {
58411
- if (data) {
58412
- for (var property in data) {
58413
- if (data.hasOwnProperty(property))
58414
- (<any>this)[property] = (<any>data)[property];
58415
- }
58416
- }
58417
- }
58418
-
58419
- init(_data?: any) {
58420
- }
58421
-
58422
- static fromJS(data: any): CreateWeldingIotConfig {
58423
- data = typeof data === 'object' ? data : {};
58424
- let result = new CreateWeldingIotConfig();
58425
- result.init(data);
58426
- return result;
58427
- }
58428
-
58429
- toJSON(data?: any) {
58430
- data = typeof data === 'object' ? data : {};
58431
- return data;
58432
- }
58433
- }
58434
-
58435
- export interface ICreateWeldingIotConfig {
58436
- }
58437
-
58438
57841
  export class ProductionCompanyDto implements IProductionCompanyDto {
58439
57842
  id!: string;
58440
57843
  name!: string;