@dnv-plant/typescriptpws 1.0.95 → 1.0.96

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.
@@ -1,23 +1,23 @@
1
1
  /***********************************************************************
2
- * This file has been auto-generated by a code generation tool.
3
- *
4
- * DO NOT MODIFY THIS FILE
5
- * This file is maintained by DNV.
6
- * Editing it may lead to inconsistent results and limit DNV's ability to provide support.
7
- * Please contact DNV if you believe changes are required.
8
- *
9
- * Version: 1.0.95
10
- * Date/time: 19 Jan 2026 12:11:52
11
- * Template: templates/typescriptpws/calculations.razor.
12
- ***********************************************************************/
13
-
14
- import * as Enums from "../enums";
15
- import * as Entities from "../entities";
16
- import * as EntitySchemas from "../entity-schemas";
17
- import { getAnalyticsApiTarget, getClientAliasId } from "../utilities";
18
- import { CalculationRequestBase, CalculationBase, CalculationResponseBase } from "./calculationBase"
19
-
20
- import Joi from "joi";
2
+ * This file has been auto-generated by a code generation tool.
3
+ *
4
+ * DO NOT MODIFY THIS FILE
5
+ * This file is maintained by DNV.
6
+ * Editing it may lead to inconsistent results and limit DNV's ability to provide support.
7
+ * Please contact DNV if you believe changes are required.
8
+ *
9
+ * Version: 1.0.96
10
+ * Date/time: 4 Apr 2026 08:17:52
11
+ * Template: templates/typescriptpws/calculations.razor.
12
+ ***********************************************************************/
13
+
14
+ import * as Enums from '../enums';
15
+ import * as Entities from '../entities';
16
+ import * as EntitySchemas from '../entity-schemas';
17
+ import { getAnalyticsApiTarget, getClientAliasId } from '../utilities';
18
+ import { CalculationRequestBase, CalculationBase, CalculationResponseBase } from './calculationBase';
19
+
20
+ import Joi from 'joi';
21
21
 
22
22
  export interface ConcentrationAtPointCalculationRequestSchemaData {
23
23
  scalarUdmOutputs: Entities.ScalarUdmOutputs;
@@ -45,14 +45,14 @@ class ConcentrationAtPointCalculationRequest extends CalculationRequestBase {
45
45
  *
46
46
  */
47
47
  constructor(data: {
48
- scalarUdmOutputs: Entities.ScalarUdmOutputs,
49
- weather: Entities.Weather,
50
- dispersionRecords: Entities.DispersionRecord[],
51
- dispersionRecordCount: number,
52
- substrate: Entities.Substrate,
53
- dispersionOutputConfig: Entities.DispersionOutputConfig,
54
- material: Entities.Material,
55
- dispersionParameters: Entities.DispersionParameters
48
+ scalarUdmOutputs: Entities.ScalarUdmOutputs;
49
+ weather: Entities.Weather;
50
+ dispersionRecords: Entities.DispersionRecord[];
51
+ dispersionRecordCount: number;
52
+ substrate: Entities.Substrate;
53
+ dispersionOutputConfig: Entities.DispersionOutputConfig;
54
+ material: Entities.Material;
55
+ dispersionParameters: Entities.DispersionParameters;
56
56
  }) {
57
57
  super();
58
58
  this.scalarUdmOutputs = data.scalarUdmOutputs;
@@ -86,21 +86,21 @@ export class ConcentrationAtPointCalculationRequestSchema {
86
86
  }).unknown(true);
87
87
 
88
88
  this.propertyTypes = {
89
- scalarUdmOutputs: "Entities.ScalarUdmOutputs",
90
- weather: "Entities.Weather",
91
- dispersionRecords: "Entities.DispersionRecord[]",
92
- dispersionRecordCount: "number",
93
- substrate: "Entities.Substrate",
94
- dispersionOutputConfig: "Entities.DispersionOutputConfig",
95
- material: "Entities.Material",
96
- dispersionParameters: "Entities.DispersionParameters",
89
+ scalarUdmOutputs: 'Entities.ScalarUdmOutputs',
90
+ weather: 'Entities.Weather',
91
+ dispersionRecords: 'Entities.DispersionRecord[]',
92
+ dispersionRecordCount: 'number',
93
+ substrate: 'Entities.Substrate',
94
+ dispersionOutputConfig: 'Entities.DispersionOutputConfig',
95
+ material: 'Entities.Material',
96
+ dispersionParameters: 'Entities.DispersionParameters',
97
97
  };
98
98
  }
99
99
 
100
100
  validate(data: ConcentrationAtPointCalculationRequestSchemaData): ConcentrationAtPointCalculationRequest {
101
101
  const { error, value } = this.schema.validate(data, { abortEarly: false });
102
102
  if (error) {
103
- throw new Error(`Validation error: ${error.details.map((x) => x.message).join(", ")}`);
103
+ throw new Error(`Validation error: ${error.details.map((x) => x.message).join(', ')}`);
104
104
  }
105
105
  return this.makeCalculationRequest(value);
106
106
  }
@@ -126,14 +126,14 @@ export class ConcentrationAtPointCalculation extends CalculationBase {
126
126
  *
127
127
  */
128
128
  constructor(data: {
129
- scalarUdmOutputs: Entities.ScalarUdmOutputs,
130
- weather: Entities.Weather,
131
- dispersionRecords: Entities.DispersionRecord[],
132
- dispersionRecordCount: number,
133
- substrate: Entities.Substrate,
134
- dispersionOutputConfig: Entities.DispersionOutputConfig,
135
- material: Entities.Material,
136
- dispersionParameters: Entities.DispersionParameters
129
+ scalarUdmOutputs: Entities.ScalarUdmOutputs;
130
+ weather: Entities.Weather;
131
+ dispersionRecords: Entities.DispersionRecord[];
132
+ dispersionRecordCount: number;
133
+ substrate: Entities.Substrate;
134
+ dispersionOutputConfig: Entities.DispersionOutputConfig;
135
+ material: Entities.Material;
136
+ dispersionParameters: Entities.DispersionParameters;
137
137
  controller?: AbortController;
138
138
  }) {
139
139
  super(data.controller);
@@ -157,7 +157,7 @@ export class ConcentrationAtPointCalculation extends CalculationBase {
157
157
  substrate: this.substrate,
158
158
  dispersionOutputConfig: this.dispersionOutputConfig,
159
159
  material: this.material,
160
- dispersionParameters: this.dispersionParameters
160
+ dispersionParameters: this.dispersionParameters,
161
161
  });
162
162
 
163
163
  const schema = new ConcentrationAtPointCalculationRequestSchema();
@@ -198,16 +198,16 @@ export class ConcentrationAtPointCalculation extends CalculationBase {
198
198
  }
199
199
 
200
200
  toString() {
201
- const parts = ["* ConcentrationAtPoint"];
201
+ const parts = ['* ConcentrationAtPoint'];
202
202
 
203
203
  parts.push(`concentration: ${String(this.concentration)}`);
204
204
  parts.push(`resultCode: ${String(this.resultCode)}`);
205
- parts.push("*** messages:");
206
- parts.push(`messages: ${this.messages !== undefined ? this.messages : "(None)"}`);
207
- parts.push(`calculationElapsedTime: ${this.calculationElapsedTime !== undefined ? this.calculationElapsedTime : "(None)"}`);
208
- parts.push(`operationId: ${this.operationId !== undefined ? this.operationId : "(None)"}`);
205
+ parts.push('*** messages:');
206
+ parts.push(`messages: ${this.messages !== undefined ? this.messages : '(None)'}`);
207
+ parts.push(`calculationElapsedTime: ${this.calculationElapsedTime !== undefined ? this.calculationElapsedTime : '(None)'}`);
208
+ parts.push(`operationId: ${this.operationId !== undefined ? this.operationId : '(None)'}`);
209
209
 
210
- return parts.join("\n");
210
+ return parts.join('\n');
211
211
  }
212
212
  }
213
213
 
@@ -218,13 +218,7 @@ export class ConcentrationAtPointCalculationResponse extends CalculationResponse
218
218
  * ConcentrationAtPoint calculation response class.
219
219
  *
220
220
  */
221
- constructor(data: {
222
- concentration: number,
223
- resultCode: Enums.ResultCode,
224
- messages: string[],
225
- calculationElapsedTime: number,
226
- operationId: string
227
- }) {
221
+ constructor(data: { concentration: number; resultCode: Enums.ResultCode; messages: string[]; calculationElapsedTime: number; operationId: string }) {
228
222
  super();
229
223
  this.concentration = data.concentration;
230
224
  this.resultCode = data.resultCode;
@@ -234,20 +228,20 @@ export class ConcentrationAtPointCalculationResponse extends CalculationResponse
234
228
  }
235
229
 
236
230
  initialiseFromDictionary(data: { [key: string]: unknown }) {
237
- if (data.concentration !== undefined && typeof data.concentration === "number") {
231
+ if (data.concentration !== undefined && typeof data.concentration === 'number') {
238
232
  this.concentration = data.concentration as number;
239
233
  }
240
- if (data.resultCode !== undefined && (typeof data.resultCode === "string" || typeof data.resultCode === "number")) {
234
+ if (data.resultCode !== undefined && (typeof data.resultCode === 'string' || typeof data.resultCode === 'number')) {
241
235
  this.resultCode = data.resultCode as Enums.ResultCode;
242
236
  }
243
237
  this.messages = this.messages ?? [];
244
238
  if (data.messages && Array.isArray(data.messages)) {
245
239
  this.messages.push(...data.messages);
246
240
  }
247
- if (data.calculationElapsedTime !== undefined && typeof data.calculationElapsedTime === "number") {
241
+ if (data.calculationElapsedTime !== undefined && typeof data.calculationElapsedTime === 'number') {
248
242
  this.calculationElapsedTime = data.calculationElapsedTime as number;
249
243
  }
250
- if (data.operationId !== undefined && typeof data.operationId === "string") {
244
+ if (data.operationId !== undefined && typeof data.operationId === 'string') {
251
245
  this.operationId = data.operationId as string;
252
246
  }
253
247
  }
@@ -278,14 +272,14 @@ export class ConcentrationAtPointCalculationResponseSchema {
278
272
  }).unknown(true);
279
273
 
280
274
  this.propertyTypes = {
281
- concentration: "number",
275
+ concentration: 'number',
282
276
  };
283
277
  }
284
278
 
285
279
  validate(data: ConcentrationAtPointCalculationResponseSchemaData): ConcentrationAtPointCalculationResponse {
286
280
  const { error, value } = this.schema.validate(data, { abortEarly: false });
287
281
  if (error) {
288
- throw new Error(`Validation error: ${error.details.map((x) => x.message).join(", ")}`);
282
+ throw new Error(`Validation error: ${error.details.map((x) => x.message).join(', ')}`);
289
283
  }
290
284
  return this.makeCalculationResponse(value);
291
285
  }
@@ -323,15 +317,15 @@ class DistancesAndFootprintsToConcentrationLevelsCalculationRequest extends Calc
323
317
  *
324
318
  */
325
319
  constructor(data: {
326
- scalarUdmOutputs: Entities.ScalarUdmOutputs,
327
- weather: Entities.Weather,
328
- dispersionRecords: Entities.DispersionRecord[],
329
- dispersionRecordCount: number,
330
- substrate: Entities.Substrate,
331
- dispersionOutputConfigs: Entities.DispersionOutputConfig[],
332
- dispersionOutputConfigCount: number,
333
- dispersionParameters: Entities.DispersionParameters,
334
- material: Entities.Material
320
+ scalarUdmOutputs: Entities.ScalarUdmOutputs;
321
+ weather: Entities.Weather;
322
+ dispersionRecords: Entities.DispersionRecord[];
323
+ dispersionRecordCount: number;
324
+ substrate: Entities.Substrate;
325
+ dispersionOutputConfigs: Entities.DispersionOutputConfig[];
326
+ dispersionOutputConfigCount: number;
327
+ dispersionParameters: Entities.DispersionParameters;
328
+ material: Entities.Material;
335
329
  }) {
336
330
  super();
337
331
  this.scalarUdmOutputs = data.scalarUdmOutputs;
@@ -367,22 +361,22 @@ export class DistancesAndFootprintsToConcentrationLevelsCalculationRequestSchema
367
361
  }).unknown(true);
368
362
 
369
363
  this.propertyTypes = {
370
- scalarUdmOutputs: "Entities.ScalarUdmOutputs",
371
- weather: "Entities.Weather",
372
- dispersionRecords: "Entities.DispersionRecord[]",
373
- dispersionRecordCount: "number",
374
- substrate: "Entities.Substrate",
375
- dispersionOutputConfigs: "Entities.DispersionOutputConfig[]",
376
- dispersionOutputConfigCount: "number",
377
- dispersionParameters: "Entities.DispersionParameters",
378
- material: "Entities.Material",
364
+ scalarUdmOutputs: 'Entities.ScalarUdmOutputs',
365
+ weather: 'Entities.Weather',
366
+ dispersionRecords: 'Entities.DispersionRecord[]',
367
+ dispersionRecordCount: 'number',
368
+ substrate: 'Entities.Substrate',
369
+ dispersionOutputConfigs: 'Entities.DispersionOutputConfig[]',
370
+ dispersionOutputConfigCount: 'number',
371
+ dispersionParameters: 'Entities.DispersionParameters',
372
+ material: 'Entities.Material',
379
373
  };
380
374
  }
381
375
 
382
376
  validate(data: DistancesAndFootprintsToConcentrationLevelsCalculationRequestSchemaData): DistancesAndFootprintsToConcentrationLevelsCalculationRequest {
383
377
  const { error, value } = this.schema.validate(data, { abortEarly: false });
384
378
  if (error) {
385
- throw new Error(`Validation error: ${error.details.map((x) => x.message).join(", ")}`);
379
+ throw new Error(`Validation error: ${error.details.map((x) => x.message).join(', ')}`);
386
380
  }
387
381
  return this.makeCalculationRequest(value);
388
382
  }
@@ -413,15 +407,15 @@ export class DistancesAndFootprintsToConcentrationLevelsCalculation extends Calc
413
407
  *
414
408
  */
415
409
  constructor(data: {
416
- scalarUdmOutputs: Entities.ScalarUdmOutputs,
417
- weather: Entities.Weather,
418
- dispersionRecords: Entities.DispersionRecord[],
419
- dispersionRecordCount: number,
420
- substrate: Entities.Substrate,
421
- dispersionOutputConfigs: Entities.DispersionOutputConfig[],
422
- dispersionOutputConfigCount: number,
423
- dispersionParameters: Entities.DispersionParameters,
424
- material: Entities.Material
410
+ scalarUdmOutputs: Entities.ScalarUdmOutputs;
411
+ weather: Entities.Weather;
412
+ dispersionRecords: Entities.DispersionRecord[];
413
+ dispersionRecordCount: number;
414
+ substrate: Entities.Substrate;
415
+ dispersionOutputConfigs: Entities.DispersionOutputConfig[];
416
+ dispersionOutputConfigCount: number;
417
+ dispersionParameters: Entities.DispersionParameters;
418
+ material: Entities.Material;
425
419
  controller?: AbortController;
426
420
  }) {
427
421
  super(data.controller);
@@ -447,7 +441,7 @@ export class DistancesAndFootprintsToConcentrationLevelsCalculation extends Calc
447
441
  dispersionOutputConfigs: this.dispersionOutputConfigs,
448
442
  dispersionOutputConfigCount: this.dispersionOutputConfigCount,
449
443
  dispersionParameters: this.dispersionParameters,
450
- material: this.material
444
+ material: this.material,
451
445
  });
452
446
 
453
447
  const schema = new DistancesAndFootprintsToConcentrationLevelsCalculationRequestSchema();
@@ -492,45 +486,31 @@ export class DistancesAndFootprintsToConcentrationLevelsCalculation extends Calc
492
486
  }
493
487
 
494
488
  toString() {
495
- const parts = ["* DistancesAndFootprintsToConcentrationLevels"];
489
+ const parts = ['* DistancesAndFootprintsToConcentrationLevels'];
496
490
 
497
- parts.push("*** concsUsed:");
498
- parts.push(
499
- this.concsUsed && this.concsUsed.length > 0
500
- ? this.concsUsed.map((point) => `concsUsedElement: ${point}`).join("\n")
501
- : "concsUsed does not contain any elements"
502
- );
503
- parts.push("*** nContourPoints:");
491
+ parts.push('*** concsUsed:');
492
+ parts.push(this.concsUsed && this.concsUsed.length > 0 ? this.concsUsed.map((point) => `concsUsedElement: ${point}`).join('\n') : 'concsUsed does not contain any elements');
493
+ parts.push('*** nContourPoints:');
504
494
  parts.push(
505
- this.nContourPoints && this.nContourPoints.length > 0
506
- ? this.nContourPoints.map((point) => `nContourPointsElement: ${point}`).join("\n")
507
- : "nContourPoints does not contain any elements"
495
+ this.nContourPoints && this.nContourPoints.length > 0 ? this.nContourPoints.map((point) => `nContourPointsElement: ${point}`).join('\n') : 'nContourPoints does not contain any elements',
508
496
  );
509
- parts.push("*** areasContour:");
510
- parts.push(
511
- this.areasContour && this.areasContour.length > 0
512
- ? this.areasContour.map((point) => `areasContourElement: ${point}`).join("\n")
513
- : "areasContour does not contain any elements"
514
- );
515
- parts.push("*** distancesConcentration:");
497
+ parts.push('*** areasContour:');
498
+ parts.push(this.areasContour && this.areasContour.length > 0 ? this.areasContour.map((point) => `areasContourElement: ${point}`).join('\n') : 'areasContour does not contain any elements');
499
+ parts.push('*** distancesConcentration:');
516
500
  parts.push(
517
501
  this.distancesConcentration && this.distancesConcentration.length > 0
518
- ? this.distancesConcentration.map((point) => `distancesConcentrationElement: ${point}`).join("\n")
519
- : "distancesConcentration does not contain any elements"
520
- );
521
- parts.push("*** contourPoints:");
522
- parts.push(
523
- this.contourPoints && this.contourPoints.length > 0
524
- ? this.contourPoints.map((point) => `contourPointsElement: ${point}`).join("\n")
525
- : "contourPoints does not contain any elements"
502
+ ? this.distancesConcentration.map((point) => `distancesConcentrationElement: ${point}`).join('\n')
503
+ : 'distancesConcentration does not contain any elements',
526
504
  );
505
+ parts.push('*** contourPoints:');
506
+ parts.push(this.contourPoints && this.contourPoints.length > 0 ? this.contourPoints.map((point) => `contourPointsElement: ${point}`).join('\n') : 'contourPoints does not contain any elements');
527
507
  parts.push(`resultCode: ${String(this.resultCode)}`);
528
- parts.push("*** messages:");
529
- parts.push(`messages: ${this.messages !== undefined ? this.messages : "(None)"}`);
530
- parts.push(`calculationElapsedTime: ${this.calculationElapsedTime !== undefined ? this.calculationElapsedTime : "(None)"}`);
531
- parts.push(`operationId: ${this.operationId !== undefined ? this.operationId : "(None)"}`);
508
+ parts.push('*** messages:');
509
+ parts.push(`messages: ${this.messages !== undefined ? this.messages : '(None)'}`);
510
+ parts.push(`calculationElapsedTime: ${this.calculationElapsedTime !== undefined ? this.calculationElapsedTime : '(None)'}`);
511
+ parts.push(`operationId: ${this.operationId !== undefined ? this.operationId : '(None)'}`);
532
512
 
533
- return parts.join("\n");
513
+ return parts.join('\n');
534
514
  }
535
515
  }
536
516
 
@@ -546,15 +526,15 @@ export class DistancesAndFootprintsToConcentrationLevelsCalculationResponse exte
546
526
  *
547
527
  */
548
528
  constructor(data: {
549
- concsUsed: number[],
550
- nContourPoints: number[],
551
- areasContour: number[],
552
- distancesConcentration: number[],
553
- contourPoints: Entities.LocalPosition[],
554
- resultCode: Enums.ResultCode,
555
- messages: string[],
556
- calculationElapsedTime: number,
557
- operationId: string
529
+ concsUsed: number[];
530
+ nContourPoints: number[];
531
+ areasContour: number[];
532
+ distancesConcentration: number[];
533
+ contourPoints: Entities.LocalPosition[];
534
+ resultCode: Enums.ResultCode;
535
+ messages: string[];
536
+ calculationElapsedTime: number;
537
+ operationId: string;
558
538
  }) {
559
539
  super();
560
540
  this.concsUsed = data.concsUsed;
@@ -582,25 +562,23 @@ export class DistancesAndFootprintsToConcentrationLevelsCalculationResponse exte
582
562
  this.distancesConcentration = data.distancesConcentration.map((item) => parseFloat(item));
583
563
  }
584
564
  if (data.contourPoints && Array.isArray(data.contourPoints)) {
585
- this.contourPoints = data.contourPoints.map(
586
- (item) => {
587
- const record = new Entities.LocalPosition();
588
- record.initialiseFromDictionary(item);
589
- return record;
590
- }
591
- );
592
- }
593
- if (data.resultCode !== undefined && (typeof data.resultCode === "string" || typeof data.resultCode === "number")) {
565
+ this.contourPoints = data.contourPoints.map((item) => {
566
+ const record = new Entities.LocalPosition();
567
+ record.initialiseFromDictionary(item);
568
+ return record;
569
+ });
570
+ }
571
+ if (data.resultCode !== undefined && (typeof data.resultCode === 'string' || typeof data.resultCode === 'number')) {
594
572
  this.resultCode = data.resultCode as Enums.ResultCode;
595
573
  }
596
574
  this.messages = this.messages ?? [];
597
575
  if (data.messages && Array.isArray(data.messages)) {
598
576
  this.messages.push(...data.messages);
599
577
  }
600
- if (data.calculationElapsedTime !== undefined && typeof data.calculationElapsedTime === "number") {
578
+ if (data.calculationElapsedTime !== undefined && typeof data.calculationElapsedTime === 'number') {
601
579
  this.calculationElapsedTime = data.calculationElapsedTime as number;
602
580
  }
603
- if (data.operationId !== undefined && typeof data.operationId === "string") {
581
+ if (data.operationId !== undefined && typeof data.operationId === 'string') {
604
582
  this.operationId = data.operationId as string;
605
583
  }
606
584
  }
@@ -639,18 +617,18 @@ export class DistancesAndFootprintsToConcentrationLevelsCalculationResponseSchem
639
617
  }).unknown(true);
640
618
 
641
619
  this.propertyTypes = {
642
- concsUsed: "number[]",
643
- nContourPoints: "number[]",
644
- areasContour: "number[]",
645
- distancesConcentration: "number[]",
646
- contourPoints: "Entities.LocalPosition[]",
620
+ concsUsed: 'number[]',
621
+ nContourPoints: 'number[]',
622
+ areasContour: 'number[]',
623
+ distancesConcentration: 'number[]',
624
+ contourPoints: 'Entities.LocalPosition[]',
647
625
  };
648
626
  }
649
627
 
650
628
  validate(data: DistancesAndFootprintsToConcentrationLevelsCalculationResponseSchemaData): DistancesAndFootprintsToConcentrationLevelsCalculationResponse {
651
629
  const { error, value } = this.schema.validate(data, { abortEarly: false });
652
630
  if (error) {
653
- throw new Error(`Validation error: ${error.details.map((x) => x.message).join(", ")}`);
631
+ throw new Error(`Validation error: ${error.details.map((x) => x.message).join(', ')}`);
654
632
  }
655
633
  return this.makeCalculationResponse(value);
656
634
  }
@@ -688,15 +666,15 @@ class DistancesToConcLevelsCalculationRequest extends CalculationRequestBase {
688
666
  *
689
667
  */
690
668
  constructor(data: {
691
- scalarUdmOutputs: Entities.ScalarUdmOutputs,
692
- weather: Entities.Weather,
693
- dispersionRecords: Entities.DispersionRecord[],
694
- dispersionRecordCount: number,
695
- substrate: Entities.Substrate,
696
- dispersionOutputConfigs: Entities.DispersionOutputConfig[],
697
- dispersionOutputConfigCount: number,
698
- material: Entities.Material,
699
- dispersionParameters: Entities.DispersionParameters
669
+ scalarUdmOutputs: Entities.ScalarUdmOutputs;
670
+ weather: Entities.Weather;
671
+ dispersionRecords: Entities.DispersionRecord[];
672
+ dispersionRecordCount: number;
673
+ substrate: Entities.Substrate;
674
+ dispersionOutputConfigs: Entities.DispersionOutputConfig[];
675
+ dispersionOutputConfigCount: number;
676
+ material: Entities.Material;
677
+ dispersionParameters: Entities.DispersionParameters;
700
678
  }) {
701
679
  super();
702
680
  this.scalarUdmOutputs = data.scalarUdmOutputs;
@@ -732,22 +710,22 @@ export class DistancesToConcLevelsCalculationRequestSchema {
732
710
  }).unknown(true);
733
711
 
734
712
  this.propertyTypes = {
735
- scalarUdmOutputs: "Entities.ScalarUdmOutputs",
736
- weather: "Entities.Weather",
737
- dispersionRecords: "Entities.DispersionRecord[]",
738
- dispersionRecordCount: "number",
739
- substrate: "Entities.Substrate",
740
- dispersionOutputConfigs: "Entities.DispersionOutputConfig[]",
741
- dispersionOutputConfigCount: "number",
742
- material: "Entities.Material",
743
- dispersionParameters: "Entities.DispersionParameters",
713
+ scalarUdmOutputs: 'Entities.ScalarUdmOutputs',
714
+ weather: 'Entities.Weather',
715
+ dispersionRecords: 'Entities.DispersionRecord[]',
716
+ dispersionRecordCount: 'number',
717
+ substrate: 'Entities.Substrate',
718
+ dispersionOutputConfigs: 'Entities.DispersionOutputConfig[]',
719
+ dispersionOutputConfigCount: 'number',
720
+ material: 'Entities.Material',
721
+ dispersionParameters: 'Entities.DispersionParameters',
744
722
  };
745
723
  }
746
724
 
747
725
  validate(data: DistancesToConcLevelsCalculationRequestSchemaData): DistancesToConcLevelsCalculationRequest {
748
726
  const { error, value } = this.schema.validate(data, { abortEarly: false });
749
727
  if (error) {
750
- throw new Error(`Validation error: ${error.details.map((x) => x.message).join(", ")}`);
728
+ throw new Error(`Validation error: ${error.details.map((x) => x.message).join(', ')}`);
751
729
  }
752
730
  return this.makeCalculationRequest(value);
753
731
  }
@@ -775,15 +753,15 @@ export class DistancesToConcLevelsCalculation extends CalculationBase {
775
753
  *
776
754
  */
777
755
  constructor(data: {
778
- scalarUdmOutputs: Entities.ScalarUdmOutputs,
779
- weather: Entities.Weather,
780
- dispersionRecords: Entities.DispersionRecord[],
781
- dispersionRecordCount: number,
782
- substrate: Entities.Substrate,
783
- dispersionOutputConfigs: Entities.DispersionOutputConfig[],
784
- dispersionOutputConfigCount: number,
785
- material: Entities.Material,
786
- dispersionParameters: Entities.DispersionParameters
756
+ scalarUdmOutputs: Entities.ScalarUdmOutputs;
757
+ weather: Entities.Weather;
758
+ dispersionRecords: Entities.DispersionRecord[];
759
+ dispersionRecordCount: number;
760
+ substrate: Entities.Substrate;
761
+ dispersionOutputConfigs: Entities.DispersionOutputConfig[];
762
+ dispersionOutputConfigCount: number;
763
+ material: Entities.Material;
764
+ dispersionParameters: Entities.DispersionParameters;
787
765
  controller?: AbortController;
788
766
  }) {
789
767
  super(data.controller);
@@ -809,7 +787,7 @@ export class DistancesToConcLevelsCalculation extends CalculationBase {
809
787
  dispersionOutputConfigs: this.dispersionOutputConfigs,
810
788
  dispersionOutputConfigCount: this.dispersionOutputConfigCount,
811
789
  material: this.material,
812
- dispersionParameters: this.dispersionParameters
790
+ dispersionParameters: this.dispersionParameters,
813
791
  });
814
792
 
815
793
  const schema = new DistancesToConcLevelsCalculationRequestSchema();
@@ -851,27 +829,19 @@ export class DistancesToConcLevelsCalculation extends CalculationBase {
851
829
  }
852
830
 
853
831
  toString() {
854
- const parts = ["* DistancesToConcLevels"];
832
+ const parts = ['* DistancesToConcLevels'];
855
833
 
856
- parts.push("*** concUsed:");
857
- parts.push(
858
- this.concUsed && this.concUsed.length > 0
859
- ? this.concUsed.map((point) => `concUsedElement: ${point}`).join("\n")
860
- : "concUsed does not contain any elements"
861
- );
862
- parts.push("*** distances:");
863
- parts.push(
864
- this.distances && this.distances.length > 0
865
- ? this.distances.map((point) => `distancesElement: ${point}`).join("\n")
866
- : "distances does not contain any elements"
867
- );
834
+ parts.push('*** concUsed:');
835
+ parts.push(this.concUsed && this.concUsed.length > 0 ? this.concUsed.map((point) => `concUsedElement: ${point}`).join('\n') : 'concUsed does not contain any elements');
836
+ parts.push('*** distances:');
837
+ parts.push(this.distances && this.distances.length > 0 ? this.distances.map((point) => `distancesElement: ${point}`).join('\n') : 'distances does not contain any elements');
868
838
  parts.push(`resultCode: ${String(this.resultCode)}`);
869
- parts.push("*** messages:");
870
- parts.push(`messages: ${this.messages !== undefined ? this.messages : "(None)"}`);
871
- parts.push(`calculationElapsedTime: ${this.calculationElapsedTime !== undefined ? this.calculationElapsedTime : "(None)"}`);
872
- parts.push(`operationId: ${this.operationId !== undefined ? this.operationId : "(None)"}`);
839
+ parts.push('*** messages:');
840
+ parts.push(`messages: ${this.messages !== undefined ? this.messages : '(None)'}`);
841
+ parts.push(`calculationElapsedTime: ${this.calculationElapsedTime !== undefined ? this.calculationElapsedTime : '(None)'}`);
842
+ parts.push(`operationId: ${this.operationId !== undefined ? this.operationId : '(None)'}`);
873
843
 
874
- return parts.join("\n");
844
+ return parts.join('\n');
875
845
  }
876
846
  }
877
847
 
@@ -883,14 +853,7 @@ export class DistancesToConcLevelsCalculationResponse extends CalculationRespons
883
853
  * DistancesToConcLevels calculation response class.
884
854
  *
885
855
  */
886
- constructor(data: {
887
- concUsed: number[],
888
- distances: number[],
889
- resultCode: Enums.ResultCode,
890
- messages: string[],
891
- calculationElapsedTime: number,
892
- operationId: string
893
- }) {
856
+ constructor(data: { concUsed: number[]; distances: number[]; resultCode: Enums.ResultCode; messages: string[]; calculationElapsedTime: number; operationId: string }) {
894
857
  super();
895
858
  this.concUsed = data.concUsed;
896
859
  this.distances = data.distances;
@@ -907,17 +870,17 @@ export class DistancesToConcLevelsCalculationResponse extends CalculationRespons
907
870
  if (data.distances && Array.isArray(data.distances)) {
908
871
  this.distances = data.distances.map((item) => parseFloat(item));
909
872
  }
910
- if (data.resultCode !== undefined && (typeof data.resultCode === "string" || typeof data.resultCode === "number")) {
873
+ if (data.resultCode !== undefined && (typeof data.resultCode === 'string' || typeof data.resultCode === 'number')) {
911
874
  this.resultCode = data.resultCode as Enums.ResultCode;
912
875
  }
913
876
  this.messages = this.messages ?? [];
914
877
  if (data.messages && Array.isArray(data.messages)) {
915
878
  this.messages.push(...data.messages);
916
879
  }
917
- if (data.calculationElapsedTime !== undefined && typeof data.calculationElapsedTime === "number") {
880
+ if (data.calculationElapsedTime !== undefined && typeof data.calculationElapsedTime === 'number') {
918
881
  this.calculationElapsedTime = data.calculationElapsedTime as number;
919
882
  }
920
- if (data.operationId !== undefined && typeof data.operationId === "string") {
883
+ if (data.operationId !== undefined && typeof data.operationId === 'string') {
921
884
  this.operationId = data.operationId as string;
922
885
  }
923
886
  }
@@ -950,15 +913,15 @@ export class DistancesToConcLevelsCalculationResponseSchema {
950
913
  }).unknown(true);
951
914
 
952
915
  this.propertyTypes = {
953
- concUsed: "number[]",
954
- distances: "number[]",
916
+ concUsed: 'number[]',
917
+ distances: 'number[]',
955
918
  };
956
919
  }
957
920
 
958
921
  validate(data: DistancesToConcLevelsCalculationResponseSchemaData): DistancesToConcLevelsCalculationResponse {
959
922
  const { error, value } = this.schema.validate(data, { abortEarly: false });
960
923
  if (error) {
961
- throw new Error(`Validation error: ${error.details.map((x) => x.message).join(", ")}`);
924
+ throw new Error(`Validation error: ${error.details.map((x) => x.message).join(', ')}`);
962
925
  }
963
926
  return this.makeCalculationResponse(value);
964
927
  }
@@ -994,14 +957,14 @@ class MaxConcDistanceCalculationRequest extends CalculationRequestBase {
994
957
  *
995
958
  */
996
959
  constructor(data: {
997
- scalarUdmOutputs: Entities.ScalarUdmOutputs,
998
- weather: Entities.Weather,
999
- dispersionRecords: Entities.DispersionRecord[],
1000
- dispersionRecordCount: number,
1001
- substrate: Entities.Substrate,
1002
- dispersionOutputConfig: Entities.DispersionOutputConfig,
1003
- material: Entities.Material,
1004
- dispersionParameters: Entities.DispersionParameters
960
+ scalarUdmOutputs: Entities.ScalarUdmOutputs;
961
+ weather: Entities.Weather;
962
+ dispersionRecords: Entities.DispersionRecord[];
963
+ dispersionRecordCount: number;
964
+ substrate: Entities.Substrate;
965
+ dispersionOutputConfig: Entities.DispersionOutputConfig;
966
+ material: Entities.Material;
967
+ dispersionParameters: Entities.DispersionParameters;
1005
968
  }) {
1006
969
  super();
1007
970
  this.scalarUdmOutputs = data.scalarUdmOutputs;
@@ -1035,21 +998,21 @@ export class MaxConcDistanceCalculationRequestSchema {
1035
998
  }).unknown(true);
1036
999
 
1037
1000
  this.propertyTypes = {
1038
- scalarUdmOutputs: "Entities.ScalarUdmOutputs",
1039
- weather: "Entities.Weather",
1040
- dispersionRecords: "Entities.DispersionRecord[]",
1041
- dispersionRecordCount: "number",
1042
- substrate: "Entities.Substrate",
1043
- dispersionOutputConfig: "Entities.DispersionOutputConfig",
1044
- material: "Entities.Material",
1045
- dispersionParameters: "Entities.DispersionParameters",
1001
+ scalarUdmOutputs: 'Entities.ScalarUdmOutputs',
1002
+ weather: 'Entities.Weather',
1003
+ dispersionRecords: 'Entities.DispersionRecord[]',
1004
+ dispersionRecordCount: 'number',
1005
+ substrate: 'Entities.Substrate',
1006
+ dispersionOutputConfig: 'Entities.DispersionOutputConfig',
1007
+ material: 'Entities.Material',
1008
+ dispersionParameters: 'Entities.DispersionParameters',
1046
1009
  };
1047
1010
  }
1048
1011
 
1049
1012
  validate(data: MaxConcDistanceCalculationRequestSchemaData): MaxConcDistanceCalculationRequest {
1050
1013
  const { error, value } = this.schema.validate(data, { abortEarly: false });
1051
1014
  if (error) {
1052
- throw new Error(`Validation error: ${error.details.map((x) => x.message).join(", ")}`);
1015
+ throw new Error(`Validation error: ${error.details.map((x) => x.message).join(', ')}`);
1053
1016
  }
1054
1017
  return this.makeCalculationRequest(value);
1055
1018
  }
@@ -1076,14 +1039,14 @@ export class MaxConcDistanceCalculation extends CalculationBase {
1076
1039
  *
1077
1040
  */
1078
1041
  constructor(data: {
1079
- scalarUdmOutputs: Entities.ScalarUdmOutputs,
1080
- weather: Entities.Weather,
1081
- dispersionRecords: Entities.DispersionRecord[],
1082
- dispersionRecordCount: number,
1083
- substrate: Entities.Substrate,
1084
- dispersionOutputConfig: Entities.DispersionOutputConfig,
1085
- material: Entities.Material,
1086
- dispersionParameters: Entities.DispersionParameters
1042
+ scalarUdmOutputs: Entities.ScalarUdmOutputs;
1043
+ weather: Entities.Weather;
1044
+ dispersionRecords: Entities.DispersionRecord[];
1045
+ dispersionRecordCount: number;
1046
+ substrate: Entities.Substrate;
1047
+ dispersionOutputConfig: Entities.DispersionOutputConfig;
1048
+ material: Entities.Material;
1049
+ dispersionParameters: Entities.DispersionParameters;
1087
1050
  controller?: AbortController;
1088
1051
  }) {
1089
1052
  super(data.controller);
@@ -1107,7 +1070,7 @@ export class MaxConcDistanceCalculation extends CalculationBase {
1107
1070
  substrate: this.substrate,
1108
1071
  dispersionOutputConfig: this.dispersionOutputConfig,
1109
1072
  material: this.material,
1110
- dispersionParameters: this.dispersionParameters
1073
+ dispersionParameters: this.dispersionParameters,
1111
1074
  });
1112
1075
 
1113
1076
  const schema = new MaxConcDistanceCalculationRequestSchema();
@@ -1149,22 +1112,22 @@ export class MaxConcDistanceCalculation extends CalculationBase {
1149
1112
  }
1150
1113
 
1151
1114
  toString() {
1152
- const parts = ["* MaxConcDistance"];
1115
+ const parts = ['* MaxConcDistance'];
1153
1116
 
1154
1117
  parts.push(`concUsed: ${String(this.concUsed)}`);
1155
- parts.push("*** concentrationRecords:");
1118
+ parts.push('*** concentrationRecords:');
1156
1119
  parts.push(
1157
1120
  this.concentrationRecords && this.concentrationRecords.length > 0
1158
- ? this.concentrationRecords.map((point) => `concentrationRecordsElement: ${point}`).join("\n")
1159
- : "concentrationRecords does not contain any elements"
1121
+ ? this.concentrationRecords.map((point) => `concentrationRecordsElement: ${point}`).join('\n')
1122
+ : 'concentrationRecords does not contain any elements',
1160
1123
  );
1161
1124
  parts.push(`resultCode: ${String(this.resultCode)}`);
1162
- parts.push("*** messages:");
1163
- parts.push(`messages: ${this.messages !== undefined ? this.messages : "(None)"}`);
1164
- parts.push(`calculationElapsedTime: ${this.calculationElapsedTime !== undefined ? this.calculationElapsedTime : "(None)"}`);
1165
- parts.push(`operationId: ${this.operationId !== undefined ? this.operationId : "(None)"}`);
1125
+ parts.push('*** messages:');
1126
+ parts.push(`messages: ${this.messages !== undefined ? this.messages : '(None)'}`);
1127
+ parts.push(`calculationElapsedTime: ${this.calculationElapsedTime !== undefined ? this.calculationElapsedTime : '(None)'}`);
1128
+ parts.push(`operationId: ${this.operationId !== undefined ? this.operationId : '(None)'}`);
1166
1129
 
1167
- return parts.join("\n");
1130
+ return parts.join('\n');
1168
1131
  }
1169
1132
  }
1170
1133
 
@@ -1176,14 +1139,7 @@ export class MaxConcDistanceCalculationResponse extends CalculationResponseBase
1176
1139
  * MaxConcDistance calculation response class.
1177
1140
  *
1178
1141
  */
1179
- constructor(data: {
1180
- concUsed: number,
1181
- concentrationRecords: Entities.ConcentrationRecord[],
1182
- resultCode: Enums.ResultCode,
1183
- messages: string[],
1184
- calculationElapsedTime: number,
1185
- operationId: string
1186
- }) {
1142
+ constructor(data: { concUsed: number; concentrationRecords: Entities.ConcentrationRecord[]; resultCode: Enums.ResultCode; messages: string[]; calculationElapsedTime: number; operationId: string }) {
1187
1143
  super();
1188
1144
  this.concUsed = data.concUsed;
1189
1145
  this.concentrationRecords = data.concentrationRecords;
@@ -1194,29 +1150,27 @@ export class MaxConcDistanceCalculationResponse extends CalculationResponseBase
1194
1150
  }
1195
1151
 
1196
1152
  initialiseFromDictionary(data: { [key: string]: unknown }) {
1197
- if (data.concUsed !== undefined && typeof data.concUsed === "number") {
1153
+ if (data.concUsed !== undefined && typeof data.concUsed === 'number') {
1198
1154
  this.concUsed = data.concUsed as number;
1199
1155
  }
1200
1156
  if (data.concentrationRecords && Array.isArray(data.concentrationRecords)) {
1201
- this.concentrationRecords = data.concentrationRecords.map(
1202
- (item) => {
1203
- const record = new Entities.ConcentrationRecord();
1204
- record.initialiseFromDictionary(item);
1205
- return record;
1206
- }
1207
- );
1208
- }
1209
- if (data.resultCode !== undefined && (typeof data.resultCode === "string" || typeof data.resultCode === "number")) {
1157
+ this.concentrationRecords = data.concentrationRecords.map((item) => {
1158
+ const record = new Entities.ConcentrationRecord();
1159
+ record.initialiseFromDictionary(item);
1160
+ return record;
1161
+ });
1162
+ }
1163
+ if (data.resultCode !== undefined && (typeof data.resultCode === 'string' || typeof data.resultCode === 'number')) {
1210
1164
  this.resultCode = data.resultCode as Enums.ResultCode;
1211
1165
  }
1212
1166
  this.messages = this.messages ?? [];
1213
1167
  if (data.messages && Array.isArray(data.messages)) {
1214
1168
  this.messages.push(...data.messages);
1215
1169
  }
1216
- if (data.calculationElapsedTime !== undefined && typeof data.calculationElapsedTime === "number") {
1170
+ if (data.calculationElapsedTime !== undefined && typeof data.calculationElapsedTime === 'number') {
1217
1171
  this.calculationElapsedTime = data.calculationElapsedTime as number;
1218
1172
  }
1219
- if (data.operationId !== undefined && typeof data.operationId === "string") {
1173
+ if (data.operationId !== undefined && typeof data.operationId === 'string') {
1220
1174
  this.operationId = data.operationId as string;
1221
1175
  }
1222
1176
  }
@@ -1249,15 +1203,15 @@ export class MaxConcDistanceCalculationResponseSchema {
1249
1203
  }).unknown(true);
1250
1204
 
1251
1205
  this.propertyTypes = {
1252
- concUsed: "number",
1253
- concentrationRecords: "Entities.ConcentrationRecord[]",
1206
+ concUsed: 'number',
1207
+ concentrationRecords: 'Entities.ConcentrationRecord[]',
1254
1208
  };
1255
1209
  }
1256
1210
 
1257
1211
  validate(data: MaxConcDistanceCalculationResponseSchemaData): MaxConcDistanceCalculationResponse {
1258
1212
  const { error, value } = this.schema.validate(data, { abortEarly: false });
1259
1213
  if (error) {
1260
- throw new Error(`Validation error: ${error.details.map((x) => x.message).join(", ")}`);
1214
+ throw new Error(`Validation error: ${error.details.map((x) => x.message).join(', ')}`);
1261
1215
  }
1262
1216
  return this.makeCalculationResponse(value);
1263
1217
  }
@@ -1293,14 +1247,14 @@ class MaxConcFootprintCalculationRequest extends CalculationRequestBase {
1293
1247
  *
1294
1248
  */
1295
1249
  constructor(data: {
1296
- scalarUdmOutputs: Entities.ScalarUdmOutputs,
1297
- weather: Entities.Weather,
1298
- dispersionRecords: Entities.DispersionRecord[],
1299
- dispersionRecordCount: number,
1300
- substrate: Entities.Substrate,
1301
- dispersionOutputConfig: Entities.DispersionOutputConfig,
1302
- material: Entities.Material,
1303
- dispersionParameters: Entities.DispersionParameters
1250
+ scalarUdmOutputs: Entities.ScalarUdmOutputs;
1251
+ weather: Entities.Weather;
1252
+ dispersionRecords: Entities.DispersionRecord[];
1253
+ dispersionRecordCount: number;
1254
+ substrate: Entities.Substrate;
1255
+ dispersionOutputConfig: Entities.DispersionOutputConfig;
1256
+ material: Entities.Material;
1257
+ dispersionParameters: Entities.DispersionParameters;
1304
1258
  }) {
1305
1259
  super();
1306
1260
  this.scalarUdmOutputs = data.scalarUdmOutputs;
@@ -1334,21 +1288,21 @@ export class MaxConcFootprintCalculationRequestSchema {
1334
1288
  }).unknown(true);
1335
1289
 
1336
1290
  this.propertyTypes = {
1337
- scalarUdmOutputs: "Entities.ScalarUdmOutputs",
1338
- weather: "Entities.Weather",
1339
- dispersionRecords: "Entities.DispersionRecord[]",
1340
- dispersionRecordCount: "number",
1341
- substrate: "Entities.Substrate",
1342
- dispersionOutputConfig: "Entities.DispersionOutputConfig",
1343
- material: "Entities.Material",
1344
- dispersionParameters: "Entities.DispersionParameters",
1291
+ scalarUdmOutputs: 'Entities.ScalarUdmOutputs',
1292
+ weather: 'Entities.Weather',
1293
+ dispersionRecords: 'Entities.DispersionRecord[]',
1294
+ dispersionRecordCount: 'number',
1295
+ substrate: 'Entities.Substrate',
1296
+ dispersionOutputConfig: 'Entities.DispersionOutputConfig',
1297
+ material: 'Entities.Material',
1298
+ dispersionParameters: 'Entities.DispersionParameters',
1345
1299
  };
1346
1300
  }
1347
1301
 
1348
1302
  validate(data: MaxConcFootprintCalculationRequestSchemaData): MaxConcFootprintCalculationRequest {
1349
1303
  const { error, value } = this.schema.validate(data, { abortEarly: false });
1350
1304
  if (error) {
1351
- throw new Error(`Validation error: ${error.details.map((x) => x.message).join(", ")}`);
1305
+ throw new Error(`Validation error: ${error.details.map((x) => x.message).join(', ')}`);
1352
1306
  }
1353
1307
  return this.makeCalculationRequest(value);
1354
1308
  }
@@ -1375,14 +1329,14 @@ export class MaxConcFootprintCalculation extends CalculationBase {
1375
1329
  *
1376
1330
  */
1377
1331
  constructor(data: {
1378
- scalarUdmOutputs: Entities.ScalarUdmOutputs,
1379
- weather: Entities.Weather,
1380
- dispersionRecords: Entities.DispersionRecord[],
1381
- dispersionRecordCount: number,
1382
- substrate: Entities.Substrate,
1383
- dispersionOutputConfig: Entities.DispersionOutputConfig,
1384
- material: Entities.Material,
1385
- dispersionParameters: Entities.DispersionParameters
1332
+ scalarUdmOutputs: Entities.ScalarUdmOutputs;
1333
+ weather: Entities.Weather;
1334
+ dispersionRecords: Entities.DispersionRecord[];
1335
+ dispersionRecordCount: number;
1336
+ substrate: Entities.Substrate;
1337
+ dispersionOutputConfig: Entities.DispersionOutputConfig;
1338
+ material: Entities.Material;
1339
+ dispersionParameters: Entities.DispersionParameters;
1386
1340
  controller?: AbortController;
1387
1341
  }) {
1388
1342
  super(data.controller);
@@ -1406,7 +1360,7 @@ export class MaxConcFootprintCalculation extends CalculationBase {
1406
1360
  substrate: this.substrate,
1407
1361
  dispersionOutputConfig: this.dispersionOutputConfig,
1408
1362
  material: this.material,
1409
- dispersionParameters: this.dispersionParameters
1363
+ dispersionParameters: this.dispersionParameters,
1410
1364
  });
1411
1365
 
1412
1366
  const schema = new MaxConcFootprintCalculationRequestSchema();
@@ -1448,22 +1402,18 @@ export class MaxConcFootprintCalculation extends CalculationBase {
1448
1402
  }
1449
1403
 
1450
1404
  toString() {
1451
- const parts = ["* MaxConcFootprint"];
1405
+ const parts = ['* MaxConcFootprint'];
1452
1406
 
1453
1407
  parts.push(`concUsed: ${String(this.concUsed)}`);
1454
- parts.push("*** contourPoints:");
1455
- parts.push(
1456
- this.contourPoints && this.contourPoints.length > 0
1457
- ? this.contourPoints.map((point) => `contourPointsElement: ${point}`).join("\n")
1458
- : "contourPoints does not contain any elements"
1459
- );
1408
+ parts.push('*** contourPoints:');
1409
+ parts.push(this.contourPoints && this.contourPoints.length > 0 ? this.contourPoints.map((point) => `contourPointsElement: ${point}`).join('\n') : 'contourPoints does not contain any elements');
1460
1410
  parts.push(`resultCode: ${String(this.resultCode)}`);
1461
- parts.push("*** messages:");
1462
- parts.push(`messages: ${this.messages !== undefined ? this.messages : "(None)"}`);
1463
- parts.push(`calculationElapsedTime: ${this.calculationElapsedTime !== undefined ? this.calculationElapsedTime : "(None)"}`);
1464
- parts.push(`operationId: ${this.operationId !== undefined ? this.operationId : "(None)"}`);
1411
+ parts.push('*** messages:');
1412
+ parts.push(`messages: ${this.messages !== undefined ? this.messages : '(None)'}`);
1413
+ parts.push(`calculationElapsedTime: ${this.calculationElapsedTime !== undefined ? this.calculationElapsedTime : '(None)'}`);
1414
+ parts.push(`operationId: ${this.operationId !== undefined ? this.operationId : '(None)'}`);
1465
1415
 
1466
- return parts.join("\n");
1416
+ return parts.join('\n');
1467
1417
  }
1468
1418
  }
1469
1419
 
@@ -1475,14 +1425,7 @@ export class MaxConcFootprintCalculationResponse extends CalculationResponseBase
1475
1425
  * MaxConcFootprint calculation response class.
1476
1426
  *
1477
1427
  */
1478
- constructor(data: {
1479
- concUsed: number,
1480
- contourPoints: Entities.LocalPosition[],
1481
- resultCode: Enums.ResultCode,
1482
- messages: string[],
1483
- calculationElapsedTime: number,
1484
- operationId: string
1485
- }) {
1428
+ constructor(data: { concUsed: number; contourPoints: Entities.LocalPosition[]; resultCode: Enums.ResultCode; messages: string[]; calculationElapsedTime: number; operationId: string }) {
1486
1429
  super();
1487
1430
  this.concUsed = data.concUsed;
1488
1431
  this.contourPoints = data.contourPoints;
@@ -1493,29 +1436,27 @@ export class MaxConcFootprintCalculationResponse extends CalculationResponseBase
1493
1436
  }
1494
1437
 
1495
1438
  initialiseFromDictionary(data: { [key: string]: unknown }) {
1496
- if (data.concUsed !== undefined && typeof data.concUsed === "number") {
1439
+ if (data.concUsed !== undefined && typeof data.concUsed === 'number') {
1497
1440
  this.concUsed = data.concUsed as number;
1498
1441
  }
1499
1442
  if (data.contourPoints && Array.isArray(data.contourPoints)) {
1500
- this.contourPoints = data.contourPoints.map(
1501
- (item) => {
1502
- const record = new Entities.LocalPosition();
1503
- record.initialiseFromDictionary(item);
1504
- return record;
1505
- }
1506
- );
1507
- }
1508
- if (data.resultCode !== undefined && (typeof data.resultCode === "string" || typeof data.resultCode === "number")) {
1443
+ this.contourPoints = data.contourPoints.map((item) => {
1444
+ const record = new Entities.LocalPosition();
1445
+ record.initialiseFromDictionary(item);
1446
+ return record;
1447
+ });
1448
+ }
1449
+ if (data.resultCode !== undefined && (typeof data.resultCode === 'string' || typeof data.resultCode === 'number')) {
1509
1450
  this.resultCode = data.resultCode as Enums.ResultCode;
1510
1451
  }
1511
1452
  this.messages = this.messages ?? [];
1512
1453
  if (data.messages && Array.isArray(data.messages)) {
1513
1454
  this.messages.push(...data.messages);
1514
1455
  }
1515
- if (data.calculationElapsedTime !== undefined && typeof data.calculationElapsedTime === "number") {
1456
+ if (data.calculationElapsedTime !== undefined && typeof data.calculationElapsedTime === 'number') {
1516
1457
  this.calculationElapsedTime = data.calculationElapsedTime as number;
1517
1458
  }
1518
- if (data.operationId !== undefined && typeof data.operationId === "string") {
1459
+ if (data.operationId !== undefined && typeof data.operationId === 'string') {
1519
1460
  this.operationId = data.operationId as string;
1520
1461
  }
1521
1462
  }
@@ -1548,15 +1489,15 @@ export class MaxConcFootprintCalculationResponseSchema {
1548
1489
  }).unknown(true);
1549
1490
 
1550
1491
  this.propertyTypes = {
1551
- concUsed: "number",
1552
- contourPoints: "Entities.LocalPosition[]",
1492
+ concUsed: 'number',
1493
+ contourPoints: 'Entities.LocalPosition[]',
1553
1494
  };
1554
1495
  }
1555
1496
 
1556
1497
  validate(data: MaxConcFootprintCalculationResponseSchemaData): MaxConcFootprintCalculationResponse {
1557
1498
  const { error, value } = this.schema.validate(data, { abortEarly: false });
1558
1499
  if (error) {
1559
- throw new Error(`Validation error: ${error.details.map((x) => x.message).join(", ")}`);
1500
+ throw new Error(`Validation error: ${error.details.map((x) => x.message).join(', ')}`);
1560
1501
  }
1561
1502
  return this.makeCalculationResponse(value);
1562
1503
  }
@@ -1592,14 +1533,14 @@ class MaxDistanceToConcCalculationRequest extends CalculationRequestBase {
1592
1533
  *
1593
1534
  */
1594
1535
  constructor(data: {
1595
- scalarUdmOutputs: Entities.ScalarUdmOutputs,
1596
- weather: Entities.Weather,
1597
- dispersionRecords: Entities.DispersionRecord[],
1598
- dispersionRecordCount: number,
1599
- substrate: Entities.Substrate,
1600
- dispersionOutputConfig: Entities.DispersionOutputConfig,
1601
- dispersionParameters: Entities.DispersionParameters,
1602
- material: Entities.Material
1536
+ scalarUdmOutputs: Entities.ScalarUdmOutputs;
1537
+ weather: Entities.Weather;
1538
+ dispersionRecords: Entities.DispersionRecord[];
1539
+ dispersionRecordCount: number;
1540
+ substrate: Entities.Substrate;
1541
+ dispersionOutputConfig: Entities.DispersionOutputConfig;
1542
+ dispersionParameters: Entities.DispersionParameters;
1543
+ material: Entities.Material;
1603
1544
  }) {
1604
1545
  super();
1605
1546
  this.scalarUdmOutputs = data.scalarUdmOutputs;
@@ -1633,21 +1574,21 @@ export class MaxDistanceToConcCalculationRequestSchema {
1633
1574
  }).unknown(true);
1634
1575
 
1635
1576
  this.propertyTypes = {
1636
- scalarUdmOutputs: "Entities.ScalarUdmOutputs",
1637
- weather: "Entities.Weather",
1638
- dispersionRecords: "Entities.DispersionRecord[]",
1639
- dispersionRecordCount: "number",
1640
- substrate: "Entities.Substrate",
1641
- dispersionOutputConfig: "Entities.DispersionOutputConfig",
1642
- dispersionParameters: "Entities.DispersionParameters",
1643
- material: "Entities.Material",
1577
+ scalarUdmOutputs: 'Entities.ScalarUdmOutputs',
1578
+ weather: 'Entities.Weather',
1579
+ dispersionRecords: 'Entities.DispersionRecord[]',
1580
+ dispersionRecordCount: 'number',
1581
+ substrate: 'Entities.Substrate',
1582
+ dispersionOutputConfig: 'Entities.DispersionOutputConfig',
1583
+ dispersionParameters: 'Entities.DispersionParameters',
1584
+ material: 'Entities.Material',
1644
1585
  };
1645
1586
  }
1646
1587
 
1647
1588
  validate(data: MaxDistanceToConcCalculationRequestSchemaData): MaxDistanceToConcCalculationRequest {
1648
1589
  const { error, value } = this.schema.validate(data, { abortEarly: false });
1649
1590
  if (error) {
1650
- throw new Error(`Validation error: ${error.details.map((x) => x.message).join(", ")}`);
1591
+ throw new Error(`Validation error: ${error.details.map((x) => x.message).join(', ')}`);
1651
1592
  }
1652
1593
  return this.makeCalculationRequest(value);
1653
1594
  }
@@ -1674,14 +1615,14 @@ export class MaxDistanceToConcCalculation extends CalculationBase {
1674
1615
  *
1675
1616
  */
1676
1617
  constructor(data: {
1677
- scalarUdmOutputs: Entities.ScalarUdmOutputs,
1678
- weather: Entities.Weather,
1679
- dispersionRecords: Entities.DispersionRecord[],
1680
- dispersionRecordCount: number,
1681
- substrate: Entities.Substrate,
1682
- dispersionOutputConfig: Entities.DispersionOutputConfig,
1683
- dispersionParameters: Entities.DispersionParameters,
1684
- material: Entities.Material
1618
+ scalarUdmOutputs: Entities.ScalarUdmOutputs;
1619
+ weather: Entities.Weather;
1620
+ dispersionRecords: Entities.DispersionRecord[];
1621
+ dispersionRecordCount: number;
1622
+ substrate: Entities.Substrate;
1623
+ dispersionOutputConfig: Entities.DispersionOutputConfig;
1624
+ dispersionParameters: Entities.DispersionParameters;
1625
+ material: Entities.Material;
1685
1626
  controller?: AbortController;
1686
1627
  }) {
1687
1628
  super(data.controller);
@@ -1705,7 +1646,7 @@ export class MaxDistanceToConcCalculation extends CalculationBase {
1705
1646
  substrate: this.substrate,
1706
1647
  dispersionOutputConfig: this.dispersionOutputConfig,
1707
1648
  dispersionParameters: this.dispersionParameters,
1708
- material: this.material
1649
+ material: this.material,
1709
1650
  });
1710
1651
 
1711
1652
  const schema = new MaxDistanceToConcCalculationRequestSchema();
@@ -1747,17 +1688,17 @@ export class MaxDistanceToConcCalculation extends CalculationBase {
1747
1688
  }
1748
1689
 
1749
1690
  toString() {
1750
- const parts = ["* MaxDistanceToConc"];
1691
+ const parts = ['* MaxDistanceToConc'];
1751
1692
 
1752
1693
  parts.push(`concUsed: ${String(this.concUsed)}`);
1753
1694
  parts.push(`distance: ${String(this.distance)}`);
1754
1695
  parts.push(`resultCode: ${String(this.resultCode)}`);
1755
- parts.push("*** messages:");
1756
- parts.push(`messages: ${this.messages !== undefined ? this.messages : "(None)"}`);
1757
- parts.push(`calculationElapsedTime: ${this.calculationElapsedTime !== undefined ? this.calculationElapsedTime : "(None)"}`);
1758
- parts.push(`operationId: ${this.operationId !== undefined ? this.operationId : "(None)"}`);
1696
+ parts.push('*** messages:');
1697
+ parts.push(`messages: ${this.messages !== undefined ? this.messages : '(None)'}`);
1698
+ parts.push(`calculationElapsedTime: ${this.calculationElapsedTime !== undefined ? this.calculationElapsedTime : '(None)'}`);
1699
+ parts.push(`operationId: ${this.operationId !== undefined ? this.operationId : '(None)'}`);
1759
1700
 
1760
- return parts.join("\n");
1701
+ return parts.join('\n');
1761
1702
  }
1762
1703
  }
1763
1704
 
@@ -1769,14 +1710,7 @@ export class MaxDistanceToConcCalculationResponse extends CalculationResponseBas
1769
1710
  * MaxDistanceToConc calculation response class.
1770
1711
  *
1771
1712
  */
1772
- constructor(data: {
1773
- concUsed: number,
1774
- distance: number,
1775
- resultCode: Enums.ResultCode,
1776
- messages: string[],
1777
- calculationElapsedTime: number,
1778
- operationId: string
1779
- }) {
1713
+ constructor(data: { concUsed: number; distance: number; resultCode: Enums.ResultCode; messages: string[]; calculationElapsedTime: number; operationId: string }) {
1780
1714
  super();
1781
1715
  this.concUsed = data.concUsed;
1782
1716
  this.distance = data.distance;
@@ -1787,23 +1721,23 @@ export class MaxDistanceToConcCalculationResponse extends CalculationResponseBas
1787
1721
  }
1788
1722
 
1789
1723
  initialiseFromDictionary(data: { [key: string]: unknown }) {
1790
- if (data.concUsed !== undefined && typeof data.concUsed === "number") {
1724
+ if (data.concUsed !== undefined && typeof data.concUsed === 'number') {
1791
1725
  this.concUsed = data.concUsed as number;
1792
1726
  }
1793
- if (data.distance !== undefined && typeof data.distance === "number") {
1727
+ if (data.distance !== undefined && typeof data.distance === 'number') {
1794
1728
  this.distance = data.distance as number;
1795
1729
  }
1796
- if (data.resultCode !== undefined && (typeof data.resultCode === "string" || typeof data.resultCode === "number")) {
1730
+ if (data.resultCode !== undefined && (typeof data.resultCode === 'string' || typeof data.resultCode === 'number')) {
1797
1731
  this.resultCode = data.resultCode as Enums.ResultCode;
1798
1732
  }
1799
1733
  this.messages = this.messages ?? [];
1800
1734
  if (data.messages && Array.isArray(data.messages)) {
1801
1735
  this.messages.push(...data.messages);
1802
1736
  }
1803
- if (data.calculationElapsedTime !== undefined && typeof data.calculationElapsedTime === "number") {
1737
+ if (data.calculationElapsedTime !== undefined && typeof data.calculationElapsedTime === 'number') {
1804
1738
  this.calculationElapsedTime = data.calculationElapsedTime as number;
1805
1739
  }
1806
- if (data.operationId !== undefined && typeof data.operationId === "string") {
1740
+ if (data.operationId !== undefined && typeof data.operationId === 'string') {
1807
1741
  this.operationId = data.operationId as string;
1808
1742
  }
1809
1743
  }
@@ -1836,15 +1770,15 @@ export class MaxDistanceToConcCalculationResponseSchema {
1836
1770
  }).unknown(true);
1837
1771
 
1838
1772
  this.propertyTypes = {
1839
- concUsed: "number",
1840
- distance: "number",
1773
+ concUsed: 'number',
1774
+ distance: 'number',
1841
1775
  };
1842
1776
  }
1843
1777
 
1844
1778
  validate(data: MaxDistanceToConcCalculationResponseSchemaData): MaxDistanceToConcCalculationResponse {
1845
1779
  const { error, value } = this.schema.validate(data, { abortEarly: false });
1846
1780
  if (error) {
1847
- throw new Error(`Validation error: ${error.details.map((x) => x.message).join(", ")}`);
1781
+ throw new Error(`Validation error: ${error.details.map((x) => x.message).join(', ')}`);
1848
1782
  }
1849
1783
  return this.makeCalculationResponse(value);
1850
1784
  }
@@ -1880,14 +1814,14 @@ class SideviewAtTimeCalculationRequest extends CalculationRequestBase {
1880
1814
  *
1881
1815
  */
1882
1816
  constructor(data: {
1883
- scalarUdmOutputs: Entities.ScalarUdmOutputs,
1884
- weather: Entities.Weather,
1885
- dispersionRecords: Entities.DispersionRecord[],
1886
- dispersionRecordCount: number,
1887
- substrate: Entities.Substrate,
1888
- dispersionOutputConfig: Entities.DispersionOutputConfig,
1889
- material: Entities.Material,
1890
- dispersionParameters: Entities.DispersionParameters
1817
+ scalarUdmOutputs: Entities.ScalarUdmOutputs;
1818
+ weather: Entities.Weather;
1819
+ dispersionRecords: Entities.DispersionRecord[];
1820
+ dispersionRecordCount: number;
1821
+ substrate: Entities.Substrate;
1822
+ dispersionOutputConfig: Entities.DispersionOutputConfig;
1823
+ material: Entities.Material;
1824
+ dispersionParameters: Entities.DispersionParameters;
1891
1825
  }) {
1892
1826
  super();
1893
1827
  this.scalarUdmOutputs = data.scalarUdmOutputs;
@@ -1921,21 +1855,21 @@ export class SideviewAtTimeCalculationRequestSchema {
1921
1855
  }).unknown(true);
1922
1856
 
1923
1857
  this.propertyTypes = {
1924
- scalarUdmOutputs: "Entities.ScalarUdmOutputs",
1925
- weather: "Entities.Weather",
1926
- dispersionRecords: "Entities.DispersionRecord[]",
1927
- dispersionRecordCount: "number",
1928
- substrate: "Entities.Substrate",
1929
- dispersionOutputConfig: "Entities.DispersionOutputConfig",
1930
- material: "Entities.Material",
1931
- dispersionParameters: "Entities.DispersionParameters",
1858
+ scalarUdmOutputs: 'Entities.ScalarUdmOutputs',
1859
+ weather: 'Entities.Weather',
1860
+ dispersionRecords: 'Entities.DispersionRecord[]',
1861
+ dispersionRecordCount: 'number',
1862
+ substrate: 'Entities.Substrate',
1863
+ dispersionOutputConfig: 'Entities.DispersionOutputConfig',
1864
+ material: 'Entities.Material',
1865
+ dispersionParameters: 'Entities.DispersionParameters',
1932
1866
  };
1933
1867
  }
1934
1868
 
1935
1869
  validate(data: SideviewAtTimeCalculationRequestSchemaData): SideviewAtTimeCalculationRequest {
1936
1870
  const { error, value } = this.schema.validate(data, { abortEarly: false });
1937
1871
  if (error) {
1938
- throw new Error(`Validation error: ${error.details.map((x) => x.message).join(", ")}`);
1872
+ throw new Error(`Validation error: ${error.details.map((x) => x.message).join(', ')}`);
1939
1873
  }
1940
1874
  return this.makeCalculationRequest(value);
1941
1875
  }
@@ -1962,14 +1896,14 @@ export class SideviewAtTimeCalculation extends CalculationBase {
1962
1896
  *
1963
1897
  */
1964
1898
  constructor(data: {
1965
- scalarUdmOutputs: Entities.ScalarUdmOutputs,
1966
- weather: Entities.Weather,
1967
- dispersionRecords: Entities.DispersionRecord[],
1968
- dispersionRecordCount: number,
1969
- substrate: Entities.Substrate,
1970
- dispersionOutputConfig: Entities.DispersionOutputConfig,
1971
- material: Entities.Material,
1972
- dispersionParameters: Entities.DispersionParameters
1899
+ scalarUdmOutputs: Entities.ScalarUdmOutputs;
1900
+ weather: Entities.Weather;
1901
+ dispersionRecords: Entities.DispersionRecord[];
1902
+ dispersionRecordCount: number;
1903
+ substrate: Entities.Substrate;
1904
+ dispersionOutputConfig: Entities.DispersionOutputConfig;
1905
+ material: Entities.Material;
1906
+ dispersionParameters: Entities.DispersionParameters;
1973
1907
  controller?: AbortController;
1974
1908
  }) {
1975
1909
  super(data.controller);
@@ -1993,7 +1927,7 @@ export class SideviewAtTimeCalculation extends CalculationBase {
1993
1927
  substrate: this.substrate,
1994
1928
  dispersionOutputConfig: this.dispersionOutputConfig,
1995
1929
  material: this.material,
1996
- dispersionParameters: this.dispersionParameters
1930
+ dispersionParameters: this.dispersionParameters,
1997
1931
  });
1998
1932
 
1999
1933
  const schema = new SideviewAtTimeCalculationRequestSchema();
@@ -2035,22 +1969,18 @@ export class SideviewAtTimeCalculation extends CalculationBase {
2035
1969
  }
2036
1970
 
2037
1971
  toString() {
2038
- const parts = ["* SideviewAtTime"];
1972
+ const parts = ['* SideviewAtTime'];
2039
1973
 
2040
1974
  parts.push(`concUsed: ${String(this.concUsed)}`);
2041
- parts.push("*** contourPoints:");
2042
- parts.push(
2043
- this.contourPoints && this.contourPoints.length > 0
2044
- ? this.contourPoints.map((point) => `contourPointsElement: ${point}`).join("\n")
2045
- : "contourPoints does not contain any elements"
2046
- );
1975
+ parts.push('*** contourPoints:');
1976
+ parts.push(this.contourPoints && this.contourPoints.length > 0 ? this.contourPoints.map((point) => `contourPointsElement: ${point}`).join('\n') : 'contourPoints does not contain any elements');
2047
1977
  parts.push(`resultCode: ${String(this.resultCode)}`);
2048
- parts.push("*** messages:");
2049
- parts.push(`messages: ${this.messages !== undefined ? this.messages : "(None)"}`);
2050
- parts.push(`calculationElapsedTime: ${this.calculationElapsedTime !== undefined ? this.calculationElapsedTime : "(None)"}`);
2051
- parts.push(`operationId: ${this.operationId !== undefined ? this.operationId : "(None)"}`);
1978
+ parts.push('*** messages:');
1979
+ parts.push(`messages: ${this.messages !== undefined ? this.messages : '(None)'}`);
1980
+ parts.push(`calculationElapsedTime: ${this.calculationElapsedTime !== undefined ? this.calculationElapsedTime : '(None)'}`);
1981
+ parts.push(`operationId: ${this.operationId !== undefined ? this.operationId : '(None)'}`);
2052
1982
 
2053
- return parts.join("\n");
1983
+ return parts.join('\n');
2054
1984
  }
2055
1985
  }
2056
1986
 
@@ -2062,14 +1992,7 @@ export class SideviewAtTimeCalculationResponse extends CalculationResponseBase {
2062
1992
  * SideviewAtTime calculation response class.
2063
1993
  *
2064
1994
  */
2065
- constructor(data: {
2066
- concUsed: number,
2067
- contourPoints: Entities.LocalPosition[],
2068
- resultCode: Enums.ResultCode,
2069
- messages: string[],
2070
- calculationElapsedTime: number,
2071
- operationId: string
2072
- }) {
1995
+ constructor(data: { concUsed: number; contourPoints: Entities.LocalPosition[]; resultCode: Enums.ResultCode; messages: string[]; calculationElapsedTime: number; operationId: string }) {
2073
1996
  super();
2074
1997
  this.concUsed = data.concUsed;
2075
1998
  this.contourPoints = data.contourPoints;
@@ -2080,29 +2003,27 @@ export class SideviewAtTimeCalculationResponse extends CalculationResponseBase {
2080
2003
  }
2081
2004
 
2082
2005
  initialiseFromDictionary(data: { [key: string]: unknown }) {
2083
- if (data.concUsed !== undefined && typeof data.concUsed === "number") {
2006
+ if (data.concUsed !== undefined && typeof data.concUsed === 'number') {
2084
2007
  this.concUsed = data.concUsed as number;
2085
2008
  }
2086
2009
  if (data.contourPoints && Array.isArray(data.contourPoints)) {
2087
- this.contourPoints = data.contourPoints.map(
2088
- (item) => {
2089
- const record = new Entities.LocalPosition();
2090
- record.initialiseFromDictionary(item);
2091
- return record;
2092
- }
2093
- );
2094
- }
2095
- if (data.resultCode !== undefined && (typeof data.resultCode === "string" || typeof data.resultCode === "number")) {
2010
+ this.contourPoints = data.contourPoints.map((item) => {
2011
+ const record = new Entities.LocalPosition();
2012
+ record.initialiseFromDictionary(item);
2013
+ return record;
2014
+ });
2015
+ }
2016
+ if (data.resultCode !== undefined && (typeof data.resultCode === 'string' || typeof data.resultCode === 'number')) {
2096
2017
  this.resultCode = data.resultCode as Enums.ResultCode;
2097
2018
  }
2098
2019
  this.messages = this.messages ?? [];
2099
2020
  if (data.messages && Array.isArray(data.messages)) {
2100
2021
  this.messages.push(...data.messages);
2101
2022
  }
2102
- if (data.calculationElapsedTime !== undefined && typeof data.calculationElapsedTime === "number") {
2023
+ if (data.calculationElapsedTime !== undefined && typeof data.calculationElapsedTime === 'number') {
2103
2024
  this.calculationElapsedTime = data.calculationElapsedTime as number;
2104
2025
  }
2105
- if (data.operationId !== undefined && typeof data.operationId === "string") {
2026
+ if (data.operationId !== undefined && typeof data.operationId === 'string') {
2106
2027
  this.operationId = data.operationId as string;
2107
2028
  }
2108
2029
  }
@@ -2135,15 +2056,15 @@ export class SideviewAtTimeCalculationResponseSchema {
2135
2056
  }).unknown(true);
2136
2057
 
2137
2058
  this.propertyTypes = {
2138
- concUsed: "number",
2139
- contourPoints: "Entities.LocalPosition[]",
2059
+ concUsed: 'number',
2060
+ contourPoints: 'Entities.LocalPosition[]',
2140
2061
  };
2141
2062
  }
2142
2063
 
2143
2064
  validate(data: SideviewAtTimeCalculationResponseSchemaData): SideviewAtTimeCalculationResponse {
2144
2065
  const { error, value } = this.schema.validate(data, { abortEarly: false });
2145
2066
  if (error) {
2146
- throw new Error(`Validation error: ${error.details.map((x) => x.message).join(", ")}`);
2067
+ throw new Error(`Validation error: ${error.details.map((x) => x.message).join(', ')}`);
2147
2068
  }
2148
2069
  return this.makeCalculationResponse(value);
2149
2070
  }