@dnv-plant/typescriptpws 1.0.95 → 1.0.96-alpha.2289077

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 DistancesAndEllipsesToRadiationLevelsCalculationRequestSchemaData {
23
23
  flameResult: Entities.FlameResult;
@@ -43,13 +43,13 @@ class DistancesAndEllipsesToRadiationLevelsCalculationRequest extends Calculatio
43
43
  *
44
44
  */
45
45
  constructor(data: {
46
- flameResult: Entities.FlameResult,
47
- flameRecords: Entities.FlameRecord[],
48
- flameRecordCount: number,
49
- weather: Entities.Weather,
50
- flammableParameters: Entities.FlammableParameters,
51
- flammableOutputConfigs: Entities.FlammableOutputConfig[],
52
- flammableOutputConfigCount: number
46
+ flameResult: Entities.FlameResult;
47
+ flameRecords: Entities.FlameRecord[];
48
+ flameRecordCount: number;
49
+ weather: Entities.Weather;
50
+ flammableParameters: Entities.FlammableParameters;
51
+ flammableOutputConfigs: Entities.FlammableOutputConfig[];
52
+ flammableOutputConfigCount: number;
53
53
  }) {
54
54
  super();
55
55
  this.flameResult = data.flameResult;
@@ -81,20 +81,20 @@ export class DistancesAndEllipsesToRadiationLevelsCalculationRequestSchema {
81
81
  }).unknown(true);
82
82
 
83
83
  this.propertyTypes = {
84
- flameResult: "Entities.FlameResult",
85
- flameRecords: "Entities.FlameRecord[]",
86
- flameRecordCount: "number",
87
- weather: "Entities.Weather",
88
- flammableParameters: "Entities.FlammableParameters",
89
- flammableOutputConfigs: "Entities.FlammableOutputConfig[]",
90
- flammableOutputConfigCount: "number",
84
+ flameResult: 'Entities.FlameResult',
85
+ flameRecords: 'Entities.FlameRecord[]',
86
+ flameRecordCount: 'number',
87
+ weather: 'Entities.Weather',
88
+ flammableParameters: 'Entities.FlammableParameters',
89
+ flammableOutputConfigs: 'Entities.FlammableOutputConfig[]',
90
+ flammableOutputConfigCount: 'number',
91
91
  };
92
92
  }
93
93
 
94
94
  validate(data: DistancesAndEllipsesToRadiationLevelsCalculationRequestSchemaData): DistancesAndEllipsesToRadiationLevelsCalculationRequest {
95
95
  const { error, value } = this.schema.validate(data, { abortEarly: false });
96
96
  if (error) {
97
- throw new Error(`Validation error: ${error.details.map((x) => x.message).join(", ")}`);
97
+ throw new Error(`Validation error: ${error.details.map((x) => x.message).join(', ')}`);
98
98
  }
99
99
  return this.makeCalculationRequest(value);
100
100
  }
@@ -122,13 +122,13 @@ export class DistancesAndEllipsesToRadiationLevelsCalculation extends Calculatio
122
122
  *
123
123
  */
124
124
  constructor(data: {
125
- flameResult: Entities.FlameResult,
126
- flameRecords: Entities.FlameRecord[],
127
- flameRecordCount: number,
128
- weather: Entities.Weather,
129
- flammableParameters: Entities.FlammableParameters,
130
- flammableOutputConfigs: Entities.FlammableOutputConfig[],
131
- flammableOutputConfigCount: number
125
+ flameResult: Entities.FlameResult;
126
+ flameRecords: Entities.FlameRecord[];
127
+ flameRecordCount: number;
128
+ weather: Entities.Weather;
129
+ flammableParameters: Entities.FlammableParameters;
130
+ flammableOutputConfigs: Entities.FlammableOutputConfig[];
131
+ flammableOutputConfigCount: number;
132
132
  controller?: AbortController;
133
133
  }) {
134
134
  super(data.controller);
@@ -150,7 +150,7 @@ export class DistancesAndEllipsesToRadiationLevelsCalculation extends Calculatio
150
150
  weather: this.weather,
151
151
  flammableParameters: this.flammableParameters,
152
152
  flammableOutputConfigs: this.flammableOutputConfigs,
153
- flammableOutputConfigCount: this.flammableOutputConfigCount
153
+ flammableOutputConfigCount: this.flammableOutputConfigCount,
154
154
  });
155
155
 
156
156
  const schema = new DistancesAndEllipsesToRadiationLevelsCalculationRequestSchema();
@@ -194,39 +194,25 @@ export class DistancesAndEllipsesToRadiationLevelsCalculation extends Calculatio
194
194
  }
195
195
 
196
196
  toString() {
197
- const parts = ["* DistancesAndEllipsesToRadiationLevels"];
197
+ const parts = ['* DistancesAndEllipsesToRadiationLevels'];
198
198
 
199
- parts.push("*** distances:");
199
+ parts.push('*** distances:');
200
+ parts.push(this.distances && this.distances.length > 0 ? this.distances.map((point) => `distancesElement: ${point}`).join('\n') : 'distances does not contain any elements');
201
+ parts.push('*** contourPoints:');
202
+ parts.push(this.contourPoints && this.contourPoints.length > 0 ? this.contourPoints.map((point) => `contourPointsElement: ${point}`).join('\n') : 'contourPoints does not contain any elements');
203
+ parts.push('*** nContourPoints:');
200
204
  parts.push(
201
- this.distances && this.distances.length > 0
202
- ? this.distances.map((point) => `distancesElement: ${point}`).join("\n")
203
- : "distances does not contain any elements"
204
- );
205
- parts.push("*** contourPoints:");
206
- parts.push(
207
- this.contourPoints && this.contourPoints.length > 0
208
- ? this.contourPoints.map((point) => `contourPointsElement: ${point}`).join("\n")
209
- : "contourPoints does not contain any elements"
210
- );
211
- parts.push("*** nContourPoints:");
212
- parts.push(
213
- this.nContourPoints && this.nContourPoints.length > 0
214
- ? this.nContourPoints.map((point) => `nContourPointsElement: ${point}`).join("\n")
215
- : "nContourPoints does not contain any elements"
216
- );
217
- parts.push("*** areas:");
218
- parts.push(
219
- this.areas && this.areas.length > 0
220
- ? this.areas.map((point) => `areasElement: ${point}`).join("\n")
221
- : "areas does not contain any elements"
205
+ this.nContourPoints && this.nContourPoints.length > 0 ? this.nContourPoints.map((point) => `nContourPointsElement: ${point}`).join('\n') : 'nContourPoints does not contain any elements',
222
206
  );
207
+ parts.push('*** areas:');
208
+ parts.push(this.areas && this.areas.length > 0 ? this.areas.map((point) => `areasElement: ${point}`).join('\n') : 'areas does not contain any elements');
223
209
  parts.push(`resultCode: ${String(this.resultCode)}`);
224
- parts.push("*** messages:");
225
- parts.push(`messages: ${this.messages !== undefined ? this.messages : "(None)"}`);
226
- parts.push(`calculationElapsedTime: ${this.calculationElapsedTime !== undefined ? this.calculationElapsedTime : "(None)"}`);
227
- parts.push(`operationId: ${this.operationId !== undefined ? this.operationId : "(None)"}`);
210
+ parts.push('*** messages:');
211
+ parts.push(`messages: ${this.messages !== undefined ? this.messages : '(None)'}`);
212
+ parts.push(`calculationElapsedTime: ${this.calculationElapsedTime !== undefined ? this.calculationElapsedTime : '(None)'}`);
213
+ parts.push(`operationId: ${this.operationId !== undefined ? this.operationId : '(None)'}`);
228
214
 
229
- return parts.join("\n");
215
+ return parts.join('\n');
230
216
  }
231
217
  }
232
218
 
@@ -241,14 +227,14 @@ export class DistancesAndEllipsesToRadiationLevelsCalculationResponse extends Ca
241
227
  *
242
228
  */
243
229
  constructor(data: {
244
- distances: number[],
245
- contourPoints: Entities.LocalPosition[],
246
- nContourPoints: number[],
247
- areas: number[],
248
- resultCode: Enums.ResultCode,
249
- messages: string[],
250
- calculationElapsedTime: number,
251
- operationId: string
230
+ distances: number[];
231
+ contourPoints: Entities.LocalPosition[];
232
+ nContourPoints: number[];
233
+ areas: number[];
234
+ resultCode: Enums.ResultCode;
235
+ messages: string[];
236
+ calculationElapsedTime: number;
237
+ operationId: string;
252
238
  }) {
253
239
  super();
254
240
  this.distances = data.distances;
@@ -266,13 +252,11 @@ export class DistancesAndEllipsesToRadiationLevelsCalculationResponse extends Ca
266
252
  this.distances = data.distances.map((item) => parseFloat(item));
267
253
  }
268
254
  if (data.contourPoints && Array.isArray(data.contourPoints)) {
269
- this.contourPoints = data.contourPoints.map(
270
- (item) => {
271
- const record = new Entities.LocalPosition();
272
- record.initialiseFromDictionary(item);
273
- return record;
274
- }
275
- );
255
+ this.contourPoints = data.contourPoints.map((item) => {
256
+ const record = new Entities.LocalPosition();
257
+ record.initialiseFromDictionary(item);
258
+ return record;
259
+ });
276
260
  }
277
261
  if (data.nContourPoints && Array.isArray(data.nContourPoints)) {
278
262
  this.nContourPoints = data.nContourPoints.map((item) => parseInt(item));
@@ -280,17 +264,17 @@ export class DistancesAndEllipsesToRadiationLevelsCalculationResponse extends Ca
280
264
  if (data.areas && Array.isArray(data.areas)) {
281
265
  this.areas = data.areas.map((item) => parseFloat(item));
282
266
  }
283
- if (data.resultCode !== undefined && (typeof data.resultCode === "string" || typeof data.resultCode === "number")) {
267
+ if (data.resultCode !== undefined && (typeof data.resultCode === 'string' || typeof data.resultCode === 'number')) {
284
268
  this.resultCode = data.resultCode as Enums.ResultCode;
285
269
  }
286
270
  this.messages = this.messages ?? [];
287
271
  if (data.messages && Array.isArray(data.messages)) {
288
272
  this.messages.push(...data.messages);
289
273
  }
290
- if (data.calculationElapsedTime !== undefined && typeof data.calculationElapsedTime === "number") {
274
+ if (data.calculationElapsedTime !== undefined && typeof data.calculationElapsedTime === 'number') {
291
275
  this.calculationElapsedTime = data.calculationElapsedTime as number;
292
276
  }
293
- if (data.operationId !== undefined && typeof data.operationId === "string") {
277
+ if (data.operationId !== undefined && typeof data.operationId === 'string') {
294
278
  this.operationId = data.operationId as string;
295
279
  }
296
280
  }
@@ -327,17 +311,17 @@ export class DistancesAndEllipsesToRadiationLevelsCalculationResponseSchema {
327
311
  }).unknown(true);
328
312
 
329
313
  this.propertyTypes = {
330
- distances: "number[]",
331
- contourPoints: "Entities.LocalPosition[]",
332
- nContourPoints: "number[]",
333
- areas: "number[]",
314
+ distances: 'number[]',
315
+ contourPoints: 'Entities.LocalPosition[]',
316
+ nContourPoints: 'number[]',
317
+ areas: 'number[]',
334
318
  };
335
319
  }
336
320
 
337
321
  validate(data: DistancesAndEllipsesToRadiationLevelsCalculationResponseSchemaData): DistancesAndEllipsesToRadiationLevelsCalculationResponse {
338
322
  const { error, value } = this.schema.validate(data, { abortEarly: false });
339
323
  if (error) {
340
- throw new Error(`Validation error: ${error.details.map((x) => x.message).join(", ")}`);
324
+ throw new Error(`Validation error: ${error.details.map((x) => x.message).join(', ')}`);
341
325
  }
342
326
  return this.makeCalculationResponse(value);
343
327
  }
@@ -371,13 +355,13 @@ class DistancesAndEllipsesToRadiationLevelsForPoolFiresCalculationRequest extend
371
355
  *
372
356
  */
373
357
  constructor(data: {
374
- poolFireFlameResult: Entities.PoolFireFlameResult,
375
- flameRecords: Entities.FlameRecord[],
376
- flameRecordCount: number,
377
- weather: Entities.Weather,
378
- flammableParameters: Entities.FlammableParameters,
379
- flammableOutputConfigs: Entities.FlammableOutputConfig[],
380
- flammableOutputConfigCount: number
358
+ poolFireFlameResult: Entities.PoolFireFlameResult;
359
+ flameRecords: Entities.FlameRecord[];
360
+ flameRecordCount: number;
361
+ weather: Entities.Weather;
362
+ flammableParameters: Entities.FlammableParameters;
363
+ flammableOutputConfigs: Entities.FlammableOutputConfig[];
364
+ flammableOutputConfigCount: number;
381
365
  }) {
382
366
  super();
383
367
  this.poolFireFlameResult = data.poolFireFlameResult;
@@ -409,20 +393,20 @@ export class DistancesAndEllipsesToRadiationLevelsForPoolFiresCalculationRequest
409
393
  }).unknown(true);
410
394
 
411
395
  this.propertyTypes = {
412
- poolFireFlameResult: "Entities.PoolFireFlameResult",
413
- flameRecords: "Entities.FlameRecord[]",
414
- flameRecordCount: "number",
415
- weather: "Entities.Weather",
416
- flammableParameters: "Entities.FlammableParameters",
417
- flammableOutputConfigs: "Entities.FlammableOutputConfig[]",
418
- flammableOutputConfigCount: "number",
396
+ poolFireFlameResult: 'Entities.PoolFireFlameResult',
397
+ flameRecords: 'Entities.FlameRecord[]',
398
+ flameRecordCount: 'number',
399
+ weather: 'Entities.Weather',
400
+ flammableParameters: 'Entities.FlammableParameters',
401
+ flammableOutputConfigs: 'Entities.FlammableOutputConfig[]',
402
+ flammableOutputConfigCount: 'number',
419
403
  };
420
404
  }
421
405
 
422
406
  validate(data: DistancesAndEllipsesToRadiationLevelsForPoolFiresCalculationRequestSchemaData): DistancesAndEllipsesToRadiationLevelsForPoolFiresCalculationRequest {
423
407
  const { error, value } = this.schema.validate(data, { abortEarly: false });
424
408
  if (error) {
425
- throw new Error(`Validation error: ${error.details.map((x) => x.message).join(", ")}`);
409
+ throw new Error(`Validation error: ${error.details.map((x) => x.message).join(', ')}`);
426
410
  }
427
411
  return this.makeCalculationRequest(value);
428
412
  }
@@ -450,13 +434,13 @@ export class DistancesAndEllipsesToRadiationLevelsForPoolFiresCalculation extend
450
434
  *
451
435
  */
452
436
  constructor(data: {
453
- poolFireFlameResult: Entities.PoolFireFlameResult,
454
- flameRecords: Entities.FlameRecord[],
455
- flameRecordCount: number,
456
- weather: Entities.Weather,
457
- flammableParameters: Entities.FlammableParameters,
458
- flammableOutputConfigs: Entities.FlammableOutputConfig[],
459
- flammableOutputConfigCount: number
437
+ poolFireFlameResult: Entities.PoolFireFlameResult;
438
+ flameRecords: Entities.FlameRecord[];
439
+ flameRecordCount: number;
440
+ weather: Entities.Weather;
441
+ flammableParameters: Entities.FlammableParameters;
442
+ flammableOutputConfigs: Entities.FlammableOutputConfig[];
443
+ flammableOutputConfigCount: number;
460
444
  controller?: AbortController;
461
445
  }) {
462
446
  super(data.controller);
@@ -478,7 +462,7 @@ export class DistancesAndEllipsesToRadiationLevelsForPoolFiresCalculation extend
478
462
  weather: this.weather,
479
463
  flammableParameters: this.flammableParameters,
480
464
  flammableOutputConfigs: this.flammableOutputConfigs,
481
- flammableOutputConfigCount: this.flammableOutputConfigCount
465
+ flammableOutputConfigCount: this.flammableOutputConfigCount,
482
466
  });
483
467
 
484
468
  const schema = new DistancesAndEllipsesToRadiationLevelsForPoolFiresCalculationRequestSchema();
@@ -522,39 +506,25 @@ export class DistancesAndEllipsesToRadiationLevelsForPoolFiresCalculation extend
522
506
  }
523
507
 
524
508
  toString() {
525
- const parts = ["* DistancesAndEllipsesToRadiationLevelsForPoolFires"];
509
+ const parts = ['* DistancesAndEllipsesToRadiationLevelsForPoolFires'];
526
510
 
527
- parts.push("*** distances:");
528
- parts.push(
529
- this.distances && this.distances.length > 0
530
- ? this.distances.map((point) => `distancesElement: ${point}`).join("\n")
531
- : "distances does not contain any elements"
532
- );
533
- parts.push("*** contourPoints:");
511
+ parts.push('*** distances:');
512
+ parts.push(this.distances && this.distances.length > 0 ? this.distances.map((point) => `distancesElement: ${point}`).join('\n') : 'distances does not contain any elements');
513
+ parts.push('*** contourPoints:');
514
+ parts.push(this.contourPoints && this.contourPoints.length > 0 ? this.contourPoints.map((point) => `contourPointsElement: ${point}`).join('\n') : 'contourPoints does not contain any elements');
515
+ parts.push('*** nContourPoints:');
534
516
  parts.push(
535
- this.contourPoints && this.contourPoints.length > 0
536
- ? this.contourPoints.map((point) => `contourPointsElement: ${point}`).join("\n")
537
- : "contourPoints does not contain any elements"
538
- );
539
- parts.push("*** nContourPoints:");
540
- parts.push(
541
- this.nContourPoints && this.nContourPoints.length > 0
542
- ? this.nContourPoints.map((point) => `nContourPointsElement: ${point}`).join("\n")
543
- : "nContourPoints does not contain any elements"
544
- );
545
- parts.push("*** areas:");
546
- parts.push(
547
- this.areas && this.areas.length > 0
548
- ? this.areas.map((point) => `areasElement: ${point}`).join("\n")
549
- : "areas does not contain any elements"
517
+ this.nContourPoints && this.nContourPoints.length > 0 ? this.nContourPoints.map((point) => `nContourPointsElement: ${point}`).join('\n') : 'nContourPoints does not contain any elements',
550
518
  );
519
+ parts.push('*** areas:');
520
+ parts.push(this.areas && this.areas.length > 0 ? this.areas.map((point) => `areasElement: ${point}`).join('\n') : 'areas does not contain any elements');
551
521
  parts.push(`resultCode: ${String(this.resultCode)}`);
552
- parts.push("*** messages:");
553
- parts.push(`messages: ${this.messages !== undefined ? this.messages : "(None)"}`);
554
- parts.push(`calculationElapsedTime: ${this.calculationElapsedTime !== undefined ? this.calculationElapsedTime : "(None)"}`);
555
- parts.push(`operationId: ${this.operationId !== undefined ? this.operationId : "(None)"}`);
522
+ parts.push('*** messages:');
523
+ parts.push(`messages: ${this.messages !== undefined ? this.messages : '(None)'}`);
524
+ parts.push(`calculationElapsedTime: ${this.calculationElapsedTime !== undefined ? this.calculationElapsedTime : '(None)'}`);
525
+ parts.push(`operationId: ${this.operationId !== undefined ? this.operationId : '(None)'}`);
556
526
 
557
- return parts.join("\n");
527
+ return parts.join('\n');
558
528
  }
559
529
  }
560
530
 
@@ -569,14 +539,14 @@ export class DistancesAndEllipsesToRadiationLevelsForPoolFiresCalculationRespons
569
539
  *
570
540
  */
571
541
  constructor(data: {
572
- distances: number[],
573
- contourPoints: Entities.LocalPosition[],
574
- nContourPoints: number[],
575
- areas: number[],
576
- resultCode: Enums.ResultCode,
577
- messages: string[],
578
- calculationElapsedTime: number,
579
- operationId: string
542
+ distances: number[];
543
+ contourPoints: Entities.LocalPosition[];
544
+ nContourPoints: number[];
545
+ areas: number[];
546
+ resultCode: Enums.ResultCode;
547
+ messages: string[];
548
+ calculationElapsedTime: number;
549
+ operationId: string;
580
550
  }) {
581
551
  super();
582
552
  this.distances = data.distances;
@@ -594,13 +564,11 @@ export class DistancesAndEllipsesToRadiationLevelsForPoolFiresCalculationRespons
594
564
  this.distances = data.distances.map((item) => parseFloat(item));
595
565
  }
596
566
  if (data.contourPoints && Array.isArray(data.contourPoints)) {
597
- this.contourPoints = data.contourPoints.map(
598
- (item) => {
599
- const record = new Entities.LocalPosition();
600
- record.initialiseFromDictionary(item);
601
- return record;
602
- }
603
- );
567
+ this.contourPoints = data.contourPoints.map((item) => {
568
+ const record = new Entities.LocalPosition();
569
+ record.initialiseFromDictionary(item);
570
+ return record;
571
+ });
604
572
  }
605
573
  if (data.nContourPoints && Array.isArray(data.nContourPoints)) {
606
574
  this.nContourPoints = data.nContourPoints.map((item) => parseInt(item));
@@ -608,17 +576,17 @@ export class DistancesAndEllipsesToRadiationLevelsForPoolFiresCalculationRespons
608
576
  if (data.areas && Array.isArray(data.areas)) {
609
577
  this.areas = data.areas.map((item) => parseFloat(item));
610
578
  }
611
- if (data.resultCode !== undefined && (typeof data.resultCode === "string" || typeof data.resultCode === "number")) {
579
+ if (data.resultCode !== undefined && (typeof data.resultCode === 'string' || typeof data.resultCode === 'number')) {
612
580
  this.resultCode = data.resultCode as Enums.ResultCode;
613
581
  }
614
582
  this.messages = this.messages ?? [];
615
583
  if (data.messages && Array.isArray(data.messages)) {
616
584
  this.messages.push(...data.messages);
617
585
  }
618
- if (data.calculationElapsedTime !== undefined && typeof data.calculationElapsedTime === "number") {
586
+ if (data.calculationElapsedTime !== undefined && typeof data.calculationElapsedTime === 'number') {
619
587
  this.calculationElapsedTime = data.calculationElapsedTime as number;
620
588
  }
621
- if (data.operationId !== undefined && typeof data.operationId === "string") {
589
+ if (data.operationId !== undefined && typeof data.operationId === 'string') {
622
590
  this.operationId = data.operationId as string;
623
591
  }
624
592
  }
@@ -655,17 +623,17 @@ export class DistancesAndEllipsesToRadiationLevelsForPoolFiresCalculationRespons
655
623
  }).unknown(true);
656
624
 
657
625
  this.propertyTypes = {
658
- distances: "number[]",
659
- contourPoints: "Entities.LocalPosition[]",
660
- nContourPoints: "number[]",
661
- areas: "number[]",
626
+ distances: 'number[]',
627
+ contourPoints: 'Entities.LocalPosition[]',
628
+ nContourPoints: 'number[]',
629
+ areas: 'number[]',
662
630
  };
663
631
  }
664
632
 
665
633
  validate(data: DistancesAndEllipsesToRadiationLevelsForPoolFiresCalculationResponseSchemaData): DistancesAndEllipsesToRadiationLevelsForPoolFiresCalculationResponse {
666
634
  const { error, value } = this.schema.validate(data, { abortEarly: false });
667
635
  if (error) {
668
- throw new Error(`Validation error: ${error.details.map((x) => x.message).join(", ")}`);
636
+ throw new Error(`Validation error: ${error.details.map((x) => x.message).join(', ')}`);
669
637
  }
670
638
  return this.makeCalculationResponse(value);
671
639
  }
@@ -699,13 +667,13 @@ class DistancesToRadiationLevelsCalculationRequest extends CalculationRequestBas
699
667
  *
700
668
  */
701
669
  constructor(data: {
702
- flameResult: Entities.FlameResult,
703
- flameRecords: Entities.FlameRecord[],
704
- flameRecordCount: number,
705
- weather: Entities.Weather,
706
- flammableParameters: Entities.FlammableParameters,
707
- flammableOutputConfigs: Entities.FlammableOutputConfig[],
708
- flammableOutputConfigCount: number
670
+ flameResult: Entities.FlameResult;
671
+ flameRecords: Entities.FlameRecord[];
672
+ flameRecordCount: number;
673
+ weather: Entities.Weather;
674
+ flammableParameters: Entities.FlammableParameters;
675
+ flammableOutputConfigs: Entities.FlammableOutputConfig[];
676
+ flammableOutputConfigCount: number;
709
677
  }) {
710
678
  super();
711
679
  this.flameResult = data.flameResult;
@@ -737,20 +705,20 @@ export class DistancesToRadiationLevelsCalculationRequestSchema {
737
705
  }).unknown(true);
738
706
 
739
707
  this.propertyTypes = {
740
- flameResult: "Entities.FlameResult",
741
- flameRecords: "Entities.FlameRecord[]",
742
- flameRecordCount: "number",
743
- weather: "Entities.Weather",
744
- flammableParameters: "Entities.FlammableParameters",
745
- flammableOutputConfigs: "Entities.FlammableOutputConfig[]",
746
- flammableOutputConfigCount: "number",
708
+ flameResult: 'Entities.FlameResult',
709
+ flameRecords: 'Entities.FlameRecord[]',
710
+ flameRecordCount: 'number',
711
+ weather: 'Entities.Weather',
712
+ flammableParameters: 'Entities.FlammableParameters',
713
+ flammableOutputConfigs: 'Entities.FlammableOutputConfig[]',
714
+ flammableOutputConfigCount: 'number',
747
715
  };
748
716
  }
749
717
 
750
718
  validate(data: DistancesToRadiationLevelsCalculationRequestSchemaData): DistancesToRadiationLevelsCalculationRequest {
751
719
  const { error, value } = this.schema.validate(data, { abortEarly: false });
752
720
  if (error) {
753
- throw new Error(`Validation error: ${error.details.map((x) => x.message).join(", ")}`);
721
+ throw new Error(`Validation error: ${error.details.map((x) => x.message).join(', ')}`);
754
722
  }
755
723
  return this.makeCalculationRequest(value);
756
724
  }
@@ -775,13 +743,13 @@ export class DistancesToRadiationLevelsCalculation extends CalculationBase {
775
743
  *
776
744
  */
777
745
  constructor(data: {
778
- flameResult: Entities.FlameResult,
779
- flameRecords: Entities.FlameRecord[],
780
- flameRecordCount: number,
781
- weather: Entities.Weather,
782
- flammableParameters: Entities.FlammableParameters,
783
- flammableOutputConfigs: Entities.FlammableOutputConfig[],
784
- flammableOutputConfigCount: number
746
+ flameResult: Entities.FlameResult;
747
+ flameRecords: Entities.FlameRecord[];
748
+ flameRecordCount: number;
749
+ weather: Entities.Weather;
750
+ flammableParameters: Entities.FlammableParameters;
751
+ flammableOutputConfigs: Entities.FlammableOutputConfig[];
752
+ flammableOutputConfigCount: number;
785
753
  controller?: AbortController;
786
754
  }) {
787
755
  super(data.controller);
@@ -803,7 +771,7 @@ export class DistancesToRadiationLevelsCalculation extends CalculationBase {
803
771
  weather: this.weather,
804
772
  flammableParameters: this.flammableParameters,
805
773
  flammableOutputConfigs: this.flammableOutputConfigs,
806
- flammableOutputConfigCount: this.flammableOutputConfigCount
774
+ flammableOutputConfigCount: this.flammableOutputConfigCount,
807
775
  });
808
776
 
809
777
  const schema = new DistancesToRadiationLevelsCalculationRequestSchema();
@@ -844,21 +812,17 @@ export class DistancesToRadiationLevelsCalculation extends CalculationBase {
844
812
  }
845
813
 
846
814
  toString() {
847
- const parts = ["* DistancesToRadiationLevels"];
815
+ const parts = ['* DistancesToRadiationLevels'];
848
816
 
849
- parts.push("*** distances:");
850
- parts.push(
851
- this.distances && this.distances.length > 0
852
- ? this.distances.map((point) => `distancesElement: ${point}`).join("\n")
853
- : "distances does not contain any elements"
854
- );
817
+ parts.push('*** distances:');
818
+ parts.push(this.distances && this.distances.length > 0 ? this.distances.map((point) => `distancesElement: ${point}`).join('\n') : 'distances does not contain any elements');
855
819
  parts.push(`resultCode: ${String(this.resultCode)}`);
856
- parts.push("*** messages:");
857
- parts.push(`messages: ${this.messages !== undefined ? this.messages : "(None)"}`);
858
- parts.push(`calculationElapsedTime: ${this.calculationElapsedTime !== undefined ? this.calculationElapsedTime : "(None)"}`);
859
- parts.push(`operationId: ${this.operationId !== undefined ? this.operationId : "(None)"}`);
820
+ parts.push('*** messages:');
821
+ parts.push(`messages: ${this.messages !== undefined ? this.messages : '(None)'}`);
822
+ parts.push(`calculationElapsedTime: ${this.calculationElapsedTime !== undefined ? this.calculationElapsedTime : '(None)'}`);
823
+ parts.push(`operationId: ${this.operationId !== undefined ? this.operationId : '(None)'}`);
860
824
 
861
- return parts.join("\n");
825
+ return parts.join('\n');
862
826
  }
863
827
  }
864
828
 
@@ -869,13 +833,7 @@ export class DistancesToRadiationLevelsCalculationResponse extends CalculationRe
869
833
  * DistancesToRadiationLevels calculation response class.
870
834
  *
871
835
  */
872
- constructor(data: {
873
- distances: number[],
874
- resultCode: Enums.ResultCode,
875
- messages: string[],
876
- calculationElapsedTime: number,
877
- operationId: string
878
- }) {
836
+ constructor(data: { distances: number[]; resultCode: Enums.ResultCode; messages: string[]; calculationElapsedTime: number; operationId: string }) {
879
837
  super();
880
838
  this.distances = data.distances;
881
839
  this.resultCode = data.resultCode;
@@ -888,17 +846,17 @@ export class DistancesToRadiationLevelsCalculationResponse extends CalculationRe
888
846
  if (data.distances && Array.isArray(data.distances)) {
889
847
  this.distances = data.distances.map((item) => parseFloat(item));
890
848
  }
891
- if (data.resultCode !== undefined && (typeof data.resultCode === "string" || typeof data.resultCode === "number")) {
849
+ if (data.resultCode !== undefined && (typeof data.resultCode === 'string' || typeof data.resultCode === 'number')) {
892
850
  this.resultCode = data.resultCode as Enums.ResultCode;
893
851
  }
894
852
  this.messages = this.messages ?? [];
895
853
  if (data.messages && Array.isArray(data.messages)) {
896
854
  this.messages.push(...data.messages);
897
855
  }
898
- if (data.calculationElapsedTime !== undefined && typeof data.calculationElapsedTime === "number") {
856
+ if (data.calculationElapsedTime !== undefined && typeof data.calculationElapsedTime === 'number') {
899
857
  this.calculationElapsedTime = data.calculationElapsedTime as number;
900
858
  }
901
- if (data.operationId !== undefined && typeof data.operationId === "string") {
859
+ if (data.operationId !== undefined && typeof data.operationId === 'string') {
902
860
  this.operationId = data.operationId as string;
903
861
  }
904
862
  }
@@ -929,14 +887,14 @@ export class DistancesToRadiationLevelsCalculationResponseSchema {
929
887
  }).unknown(true);
930
888
 
931
889
  this.propertyTypes = {
932
- distances: "number[]",
890
+ distances: 'number[]',
933
891
  };
934
892
  }
935
893
 
936
894
  validate(data: DistancesToRadiationLevelsCalculationResponseSchemaData): DistancesToRadiationLevelsCalculationResponse {
937
895
  const { error, value } = this.schema.validate(data, { abortEarly: false });
938
896
  if (error) {
939
- throw new Error(`Validation error: ${error.details.map((x) => x.message).join(", ")}`);
897
+ throw new Error(`Validation error: ${error.details.map((x) => x.message).join(', ')}`);
940
898
  }
941
899
  return this.makeCalculationResponse(value);
942
900
  }
@@ -968,12 +926,12 @@ class DistanceToRadiationCalculationRequest extends CalculationRequestBase {
968
926
  *
969
927
  */
970
928
  constructor(data: {
971
- flameResult: Entities.FlameResult,
972
- flameRecords: Entities.FlameRecord[],
973
- flameRecordCount: number,
974
- weather: Entities.Weather,
975
- flammableParameters: Entities.FlammableParameters,
976
- flammableOutputConfig: Entities.FlammableOutputConfig
929
+ flameResult: Entities.FlameResult;
930
+ flameRecords: Entities.FlameRecord[];
931
+ flameRecordCount: number;
932
+ weather: Entities.Weather;
933
+ flammableParameters: Entities.FlammableParameters;
934
+ flammableOutputConfig: Entities.FlammableOutputConfig;
977
935
  }) {
978
936
  super();
979
937
  this.flameResult = data.flameResult;
@@ -1003,19 +961,19 @@ export class DistanceToRadiationCalculationRequestSchema {
1003
961
  }).unknown(true);
1004
962
 
1005
963
  this.propertyTypes = {
1006
- flameResult: "Entities.FlameResult",
1007
- flameRecords: "Entities.FlameRecord[]",
1008
- flameRecordCount: "number",
1009
- weather: "Entities.Weather",
1010
- flammableParameters: "Entities.FlammableParameters",
1011
- flammableOutputConfig: "Entities.FlammableOutputConfig",
964
+ flameResult: 'Entities.FlameResult',
965
+ flameRecords: 'Entities.FlameRecord[]',
966
+ flameRecordCount: 'number',
967
+ weather: 'Entities.Weather',
968
+ flammableParameters: 'Entities.FlammableParameters',
969
+ flammableOutputConfig: 'Entities.FlammableOutputConfig',
1012
970
  };
1013
971
  }
1014
972
 
1015
973
  validate(data: DistanceToRadiationCalculationRequestSchemaData): DistanceToRadiationCalculationRequest {
1016
974
  const { error, value } = this.schema.validate(data, { abortEarly: false });
1017
975
  if (error) {
1018
- throw new Error(`Validation error: ${error.details.map((x) => x.message).join(", ")}`);
976
+ throw new Error(`Validation error: ${error.details.map((x) => x.message).join(', ')}`);
1019
977
  }
1020
978
  return this.makeCalculationRequest(value);
1021
979
  }
@@ -1039,12 +997,12 @@ export class DistanceToRadiationCalculation extends CalculationBase {
1039
997
  *
1040
998
  */
1041
999
  constructor(data: {
1042
- flameResult: Entities.FlameResult,
1043
- flameRecords: Entities.FlameRecord[],
1044
- flameRecordCount: number,
1045
- weather: Entities.Weather,
1046
- flammableParameters: Entities.FlammableParameters,
1047
- flammableOutputConfig: Entities.FlammableOutputConfig
1000
+ flameResult: Entities.FlameResult;
1001
+ flameRecords: Entities.FlameRecord[];
1002
+ flameRecordCount: number;
1003
+ weather: Entities.Weather;
1004
+ flammableParameters: Entities.FlammableParameters;
1005
+ flammableOutputConfig: Entities.FlammableOutputConfig;
1048
1006
  controller?: AbortController;
1049
1007
  }) {
1050
1008
  super(data.controller);
@@ -1064,7 +1022,7 @@ export class DistanceToRadiationCalculation extends CalculationBase {
1064
1022
  flameRecordCount: this.flameRecordCount,
1065
1023
  weather: this.weather,
1066
1024
  flammableParameters: this.flammableParameters,
1067
- flammableOutputConfig: this.flammableOutputConfig
1025
+ flammableOutputConfig: this.flammableOutputConfig,
1068
1026
  });
1069
1027
 
1070
1028
  const schema = new DistanceToRadiationCalculationRequestSchema();
@@ -1105,16 +1063,16 @@ export class DistanceToRadiationCalculation extends CalculationBase {
1105
1063
  }
1106
1064
 
1107
1065
  toString() {
1108
- const parts = ["* DistanceToRadiation"];
1066
+ const parts = ['* DistanceToRadiation'];
1109
1067
 
1110
1068
  parts.push(`distance: ${String(this.distance)}`);
1111
1069
  parts.push(`resultCode: ${String(this.resultCode)}`);
1112
- parts.push("*** messages:");
1113
- parts.push(`messages: ${this.messages !== undefined ? this.messages : "(None)"}`);
1114
- parts.push(`calculationElapsedTime: ${this.calculationElapsedTime !== undefined ? this.calculationElapsedTime : "(None)"}`);
1115
- parts.push(`operationId: ${this.operationId !== undefined ? this.operationId : "(None)"}`);
1070
+ parts.push('*** messages:');
1071
+ parts.push(`messages: ${this.messages !== undefined ? this.messages : '(None)'}`);
1072
+ parts.push(`calculationElapsedTime: ${this.calculationElapsedTime !== undefined ? this.calculationElapsedTime : '(None)'}`);
1073
+ parts.push(`operationId: ${this.operationId !== undefined ? this.operationId : '(None)'}`);
1116
1074
 
1117
- return parts.join("\n");
1075
+ return parts.join('\n');
1118
1076
  }
1119
1077
  }
1120
1078
 
@@ -1125,13 +1083,7 @@ export class DistanceToRadiationCalculationResponse extends CalculationResponseB
1125
1083
  * DistanceToRadiation calculation response class.
1126
1084
  *
1127
1085
  */
1128
- constructor(data: {
1129
- distance: number,
1130
- resultCode: Enums.ResultCode,
1131
- messages: string[],
1132
- calculationElapsedTime: number,
1133
- operationId: string
1134
- }) {
1086
+ constructor(data: { distance: number; resultCode: Enums.ResultCode; messages: string[]; calculationElapsedTime: number; operationId: string }) {
1135
1087
  super();
1136
1088
  this.distance = data.distance;
1137
1089
  this.resultCode = data.resultCode;
@@ -1141,20 +1093,20 @@ export class DistanceToRadiationCalculationResponse extends CalculationResponseB
1141
1093
  }
1142
1094
 
1143
1095
  initialiseFromDictionary(data: { [key: string]: unknown }) {
1144
- if (data.distance !== undefined && typeof data.distance === "number") {
1096
+ if (data.distance !== undefined && typeof data.distance === 'number') {
1145
1097
  this.distance = data.distance as number;
1146
1098
  }
1147
- if (data.resultCode !== undefined && (typeof data.resultCode === "string" || typeof data.resultCode === "number")) {
1099
+ if (data.resultCode !== undefined && (typeof data.resultCode === 'string' || typeof data.resultCode === 'number')) {
1148
1100
  this.resultCode = data.resultCode as Enums.ResultCode;
1149
1101
  }
1150
1102
  this.messages = this.messages ?? [];
1151
1103
  if (data.messages && Array.isArray(data.messages)) {
1152
1104
  this.messages.push(...data.messages);
1153
1105
  }
1154
- if (data.calculationElapsedTime !== undefined && typeof data.calculationElapsedTime === "number") {
1106
+ if (data.calculationElapsedTime !== undefined && typeof data.calculationElapsedTime === 'number') {
1155
1107
  this.calculationElapsedTime = data.calculationElapsedTime as number;
1156
1108
  }
1157
- if (data.operationId !== undefined && typeof data.operationId === "string") {
1109
+ if (data.operationId !== undefined && typeof data.operationId === 'string') {
1158
1110
  this.operationId = data.operationId as string;
1159
1111
  }
1160
1112
  }
@@ -1185,14 +1137,14 @@ export class DistanceToRadiationCalculationResponseSchema {
1185
1137
  }).unknown(true);
1186
1138
 
1187
1139
  this.propertyTypes = {
1188
- distance: "number",
1140
+ distance: 'number',
1189
1141
  };
1190
1142
  }
1191
1143
 
1192
1144
  validate(data: DistanceToRadiationCalculationResponseSchemaData): DistanceToRadiationCalculationResponse {
1193
1145
  const { error, value } = this.schema.validate(data, { abortEarly: false });
1194
1146
  if (error) {
1195
- throw new Error(`Validation error: ${error.details.map((x) => x.message).join(", ")}`);
1147
+ throw new Error(`Validation error: ${error.details.map((x) => x.message).join(', ')}`);
1196
1148
  }
1197
1149
  return this.makeCalculationResponse(value);
1198
1150
  }
@@ -1224,12 +1176,12 @@ class RadiationAtAPointCalculationRequest extends CalculationRequestBase {
1224
1176
  *
1225
1177
  */
1226
1178
  constructor(data: {
1227
- flameResult: Entities.FlameResult,
1228
- flameRecords: Entities.FlameRecord[],
1229
- flameRecordCount: number,
1230
- weather: Entities.Weather,
1231
- flammableParameters: Entities.FlammableParameters,
1232
- flammableOutputConfig: Entities.FlammableOutputConfig
1179
+ flameResult: Entities.FlameResult;
1180
+ flameRecords: Entities.FlameRecord[];
1181
+ flameRecordCount: number;
1182
+ weather: Entities.Weather;
1183
+ flammableParameters: Entities.FlammableParameters;
1184
+ flammableOutputConfig: Entities.FlammableOutputConfig;
1233
1185
  }) {
1234
1186
  super();
1235
1187
  this.flameResult = data.flameResult;
@@ -1259,19 +1211,19 @@ export class RadiationAtAPointCalculationRequestSchema {
1259
1211
  }).unknown(true);
1260
1212
 
1261
1213
  this.propertyTypes = {
1262
- flameResult: "Entities.FlameResult",
1263
- flameRecords: "Entities.FlameRecord[]",
1264
- flameRecordCount: "number",
1265
- weather: "Entities.Weather",
1266
- flammableParameters: "Entities.FlammableParameters",
1267
- flammableOutputConfig: "Entities.FlammableOutputConfig",
1214
+ flameResult: 'Entities.FlameResult',
1215
+ flameRecords: 'Entities.FlameRecord[]',
1216
+ flameRecordCount: 'number',
1217
+ weather: 'Entities.Weather',
1218
+ flammableParameters: 'Entities.FlammableParameters',
1219
+ flammableOutputConfig: 'Entities.FlammableOutputConfig',
1268
1220
  };
1269
1221
  }
1270
1222
 
1271
1223
  validate(data: RadiationAtAPointCalculationRequestSchemaData): RadiationAtAPointCalculationRequest {
1272
1224
  const { error, value } = this.schema.validate(data, { abortEarly: false });
1273
1225
  if (error) {
1274
- throw new Error(`Validation error: ${error.details.map((x) => x.message).join(", ")}`);
1226
+ throw new Error(`Validation error: ${error.details.map((x) => x.message).join(', ')}`);
1275
1227
  }
1276
1228
  return this.makeCalculationRequest(value);
1277
1229
  }
@@ -1295,12 +1247,12 @@ export class RadiationAtAPointCalculation extends CalculationBase {
1295
1247
  *
1296
1248
  */
1297
1249
  constructor(data: {
1298
- flameResult: Entities.FlameResult,
1299
- flameRecords: Entities.FlameRecord[],
1300
- flameRecordCount: number,
1301
- weather: Entities.Weather,
1302
- flammableParameters: Entities.FlammableParameters,
1303
- flammableOutputConfig: Entities.FlammableOutputConfig
1250
+ flameResult: Entities.FlameResult;
1251
+ flameRecords: Entities.FlameRecord[];
1252
+ flameRecordCount: number;
1253
+ weather: Entities.Weather;
1254
+ flammableParameters: Entities.FlammableParameters;
1255
+ flammableOutputConfig: Entities.FlammableOutputConfig;
1304
1256
  controller?: AbortController;
1305
1257
  }) {
1306
1258
  super(data.controller);
@@ -1320,7 +1272,7 @@ export class RadiationAtAPointCalculation extends CalculationBase {
1320
1272
  flameRecordCount: this.flameRecordCount,
1321
1273
  weather: this.weather,
1322
1274
  flammableParameters: this.flammableParameters,
1323
- flammableOutputConfig: this.flammableOutputConfig
1275
+ flammableOutputConfig: this.flammableOutputConfig,
1324
1276
  });
1325
1277
 
1326
1278
  const schema = new RadiationAtAPointCalculationRequestSchema();
@@ -1361,16 +1313,16 @@ export class RadiationAtAPointCalculation extends CalculationBase {
1361
1313
  }
1362
1314
 
1363
1315
  toString() {
1364
- const parts = ["* RadiationAtAPoint"];
1316
+ const parts = ['* RadiationAtAPoint'];
1365
1317
 
1366
1318
  parts.push(`radiation: ${String(this.radiation)}`);
1367
1319
  parts.push(`resultCode: ${String(this.resultCode)}`);
1368
- parts.push("*** messages:");
1369
- parts.push(`messages: ${this.messages !== undefined ? this.messages : "(None)"}`);
1370
- parts.push(`calculationElapsedTime: ${this.calculationElapsedTime !== undefined ? this.calculationElapsedTime : "(None)"}`);
1371
- parts.push(`operationId: ${this.operationId !== undefined ? this.operationId : "(None)"}`);
1320
+ parts.push('*** messages:');
1321
+ parts.push(`messages: ${this.messages !== undefined ? this.messages : '(None)'}`);
1322
+ parts.push(`calculationElapsedTime: ${this.calculationElapsedTime !== undefined ? this.calculationElapsedTime : '(None)'}`);
1323
+ parts.push(`operationId: ${this.operationId !== undefined ? this.operationId : '(None)'}`);
1372
1324
 
1373
- return parts.join("\n");
1325
+ return parts.join('\n');
1374
1326
  }
1375
1327
  }
1376
1328
 
@@ -1381,13 +1333,7 @@ export class RadiationAtAPointCalculationResponse extends CalculationResponseBas
1381
1333
  * RadiationAtAPoint calculation response class.
1382
1334
  *
1383
1335
  */
1384
- constructor(data: {
1385
- radiation: number,
1386
- resultCode: Enums.ResultCode,
1387
- messages: string[],
1388
- calculationElapsedTime: number,
1389
- operationId: string
1390
- }) {
1336
+ constructor(data: { radiation: number; resultCode: Enums.ResultCode; messages: string[]; calculationElapsedTime: number; operationId: string }) {
1391
1337
  super();
1392
1338
  this.radiation = data.radiation;
1393
1339
  this.resultCode = data.resultCode;
@@ -1397,20 +1343,20 @@ export class RadiationAtAPointCalculationResponse extends CalculationResponseBas
1397
1343
  }
1398
1344
 
1399
1345
  initialiseFromDictionary(data: { [key: string]: unknown }) {
1400
- if (data.radiation !== undefined && typeof data.radiation === "number") {
1346
+ if (data.radiation !== undefined && typeof data.radiation === 'number') {
1401
1347
  this.radiation = data.radiation as number;
1402
1348
  }
1403
- if (data.resultCode !== undefined && (typeof data.resultCode === "string" || typeof data.resultCode === "number")) {
1349
+ if (data.resultCode !== undefined && (typeof data.resultCode === 'string' || typeof data.resultCode === 'number')) {
1404
1350
  this.resultCode = data.resultCode as Enums.ResultCode;
1405
1351
  }
1406
1352
  this.messages = this.messages ?? [];
1407
1353
  if (data.messages && Array.isArray(data.messages)) {
1408
1354
  this.messages.push(...data.messages);
1409
1355
  }
1410
- if (data.calculationElapsedTime !== undefined && typeof data.calculationElapsedTime === "number") {
1356
+ if (data.calculationElapsedTime !== undefined && typeof data.calculationElapsedTime === 'number') {
1411
1357
  this.calculationElapsedTime = data.calculationElapsedTime as number;
1412
1358
  }
1413
- if (data.operationId !== undefined && typeof data.operationId === "string") {
1359
+ if (data.operationId !== undefined && typeof data.operationId === 'string') {
1414
1360
  this.operationId = data.operationId as string;
1415
1361
  }
1416
1362
  }
@@ -1441,14 +1387,14 @@ export class RadiationAtAPointCalculationResponseSchema {
1441
1387
  }).unknown(true);
1442
1388
 
1443
1389
  this.propertyTypes = {
1444
- radiation: "number",
1390
+ radiation: 'number',
1445
1391
  };
1446
1392
  }
1447
1393
 
1448
1394
  validate(data: RadiationAtAPointCalculationResponseSchemaData): RadiationAtAPointCalculationResponse {
1449
1395
  const { error, value } = this.schema.validate(data, { abortEarly: false });
1450
1396
  if (error) {
1451
- throw new Error(`Validation error: ${error.details.map((x) => x.message).join(", ")}`);
1397
+ throw new Error(`Validation error: ${error.details.map((x) => x.message).join(', ')}`);
1452
1398
  }
1453
1399
  return this.makeCalculationResponse(value);
1454
1400
  }
@@ -1480,12 +1426,12 @@ class RadiationAtAPointForPoolFiresCalculationRequest extends CalculationRequest
1480
1426
  *
1481
1427
  */
1482
1428
  constructor(data: {
1483
- poolFireFlameResult: Entities.PoolFireFlameResult,
1484
- flameRecords: Entities.FlameRecord[],
1485
- flameRecordCount: number,
1486
- weather: Entities.Weather,
1487
- flammableParameters: Entities.FlammableParameters,
1488
- flammableOutputConfig: Entities.FlammableOutputConfig
1429
+ poolFireFlameResult: Entities.PoolFireFlameResult;
1430
+ flameRecords: Entities.FlameRecord[];
1431
+ flameRecordCount: number;
1432
+ weather: Entities.Weather;
1433
+ flammableParameters: Entities.FlammableParameters;
1434
+ flammableOutputConfig: Entities.FlammableOutputConfig;
1489
1435
  }) {
1490
1436
  super();
1491
1437
  this.poolFireFlameResult = data.poolFireFlameResult;
@@ -1515,19 +1461,19 @@ export class RadiationAtAPointForPoolFiresCalculationRequestSchema {
1515
1461
  }).unknown(true);
1516
1462
 
1517
1463
  this.propertyTypes = {
1518
- poolFireFlameResult: "Entities.PoolFireFlameResult",
1519
- flameRecords: "Entities.FlameRecord[]",
1520
- flameRecordCount: "number",
1521
- weather: "Entities.Weather",
1522
- flammableParameters: "Entities.FlammableParameters",
1523
- flammableOutputConfig: "Entities.FlammableOutputConfig",
1464
+ poolFireFlameResult: 'Entities.PoolFireFlameResult',
1465
+ flameRecords: 'Entities.FlameRecord[]',
1466
+ flameRecordCount: 'number',
1467
+ weather: 'Entities.Weather',
1468
+ flammableParameters: 'Entities.FlammableParameters',
1469
+ flammableOutputConfig: 'Entities.FlammableOutputConfig',
1524
1470
  };
1525
1471
  }
1526
1472
 
1527
1473
  validate(data: RadiationAtAPointForPoolFiresCalculationRequestSchemaData): RadiationAtAPointForPoolFiresCalculationRequest {
1528
1474
  const { error, value } = this.schema.validate(data, { abortEarly: false });
1529
1475
  if (error) {
1530
- throw new Error(`Validation error: ${error.details.map((x) => x.message).join(", ")}`);
1476
+ throw new Error(`Validation error: ${error.details.map((x) => x.message).join(', ')}`);
1531
1477
  }
1532
1478
  return this.makeCalculationRequest(value);
1533
1479
  }
@@ -1551,12 +1497,12 @@ export class RadiationAtAPointForPoolFiresCalculation extends CalculationBase {
1551
1497
  *
1552
1498
  */
1553
1499
  constructor(data: {
1554
- poolFireFlameResult: Entities.PoolFireFlameResult,
1555
- flameRecords: Entities.FlameRecord[],
1556
- flameRecordCount: number,
1557
- weather: Entities.Weather,
1558
- flammableParameters: Entities.FlammableParameters,
1559
- flammableOutputConfig: Entities.FlammableOutputConfig
1500
+ poolFireFlameResult: Entities.PoolFireFlameResult;
1501
+ flameRecords: Entities.FlameRecord[];
1502
+ flameRecordCount: number;
1503
+ weather: Entities.Weather;
1504
+ flammableParameters: Entities.FlammableParameters;
1505
+ flammableOutputConfig: Entities.FlammableOutputConfig;
1560
1506
  controller?: AbortController;
1561
1507
  }) {
1562
1508
  super(data.controller);
@@ -1576,7 +1522,7 @@ export class RadiationAtAPointForPoolFiresCalculation extends CalculationBase {
1576
1522
  flameRecordCount: this.flameRecordCount,
1577
1523
  weather: this.weather,
1578
1524
  flammableParameters: this.flammableParameters,
1579
- flammableOutputConfig: this.flammableOutputConfig
1525
+ flammableOutputConfig: this.flammableOutputConfig,
1580
1526
  });
1581
1527
 
1582
1528
  const schema = new RadiationAtAPointForPoolFiresCalculationRequestSchema();
@@ -1617,16 +1563,16 @@ export class RadiationAtAPointForPoolFiresCalculation extends CalculationBase {
1617
1563
  }
1618
1564
 
1619
1565
  toString() {
1620
- const parts = ["* RadiationAtAPointForPoolFires"];
1566
+ const parts = ['* RadiationAtAPointForPoolFires'];
1621
1567
 
1622
1568
  parts.push(`radiation: ${String(this.radiation)}`);
1623
1569
  parts.push(`resultCode: ${String(this.resultCode)}`);
1624
- parts.push("*** messages:");
1625
- parts.push(`messages: ${this.messages !== undefined ? this.messages : "(None)"}`);
1626
- parts.push(`calculationElapsedTime: ${this.calculationElapsedTime !== undefined ? this.calculationElapsedTime : "(None)"}`);
1627
- parts.push(`operationId: ${this.operationId !== undefined ? this.operationId : "(None)"}`);
1570
+ parts.push('*** messages:');
1571
+ parts.push(`messages: ${this.messages !== undefined ? this.messages : '(None)'}`);
1572
+ parts.push(`calculationElapsedTime: ${this.calculationElapsedTime !== undefined ? this.calculationElapsedTime : '(None)'}`);
1573
+ parts.push(`operationId: ${this.operationId !== undefined ? this.operationId : '(None)'}`);
1628
1574
 
1629
- return parts.join("\n");
1575
+ return parts.join('\n');
1630
1576
  }
1631
1577
  }
1632
1578
 
@@ -1637,13 +1583,7 @@ export class RadiationAtAPointForPoolFiresCalculationResponse extends Calculatio
1637
1583
  * RadiationAtAPointForPoolFires calculation response class.
1638
1584
  *
1639
1585
  */
1640
- constructor(data: {
1641
- radiation: number,
1642
- resultCode: Enums.ResultCode,
1643
- messages: string[],
1644
- calculationElapsedTime: number,
1645
- operationId: string
1646
- }) {
1586
+ constructor(data: { radiation: number; resultCode: Enums.ResultCode; messages: string[]; calculationElapsedTime: number; operationId: string }) {
1647
1587
  super();
1648
1588
  this.radiation = data.radiation;
1649
1589
  this.resultCode = data.resultCode;
@@ -1653,20 +1593,20 @@ export class RadiationAtAPointForPoolFiresCalculationResponse extends Calculatio
1653
1593
  }
1654
1594
 
1655
1595
  initialiseFromDictionary(data: { [key: string]: unknown }) {
1656
- if (data.radiation !== undefined && typeof data.radiation === "number") {
1596
+ if (data.radiation !== undefined && typeof data.radiation === 'number') {
1657
1597
  this.radiation = data.radiation as number;
1658
1598
  }
1659
- if (data.resultCode !== undefined && (typeof data.resultCode === "string" || typeof data.resultCode === "number")) {
1599
+ if (data.resultCode !== undefined && (typeof data.resultCode === 'string' || typeof data.resultCode === 'number')) {
1660
1600
  this.resultCode = data.resultCode as Enums.ResultCode;
1661
1601
  }
1662
1602
  this.messages = this.messages ?? [];
1663
1603
  if (data.messages && Array.isArray(data.messages)) {
1664
1604
  this.messages.push(...data.messages);
1665
1605
  }
1666
- if (data.calculationElapsedTime !== undefined && typeof data.calculationElapsedTime === "number") {
1606
+ if (data.calculationElapsedTime !== undefined && typeof data.calculationElapsedTime === 'number') {
1667
1607
  this.calculationElapsedTime = data.calculationElapsedTime as number;
1668
1608
  }
1669
- if (data.operationId !== undefined && typeof data.operationId === "string") {
1609
+ if (data.operationId !== undefined && typeof data.operationId === 'string') {
1670
1610
  this.operationId = data.operationId as string;
1671
1611
  }
1672
1612
  }
@@ -1697,14 +1637,14 @@ export class RadiationAtAPointForPoolFiresCalculationResponseSchema {
1697
1637
  }).unknown(true);
1698
1638
 
1699
1639
  this.propertyTypes = {
1700
- radiation: "number",
1640
+ radiation: 'number',
1701
1641
  };
1702
1642
  }
1703
1643
 
1704
1644
  validate(data: RadiationAtAPointForPoolFiresCalculationResponseSchemaData): RadiationAtAPointForPoolFiresCalculationResponse {
1705
1645
  const { error, value } = this.schema.validate(data, { abortEarly: false });
1706
1646
  if (error) {
1707
- throw new Error(`Validation error: ${error.details.map((x) => x.message).join(", ")}`);
1647
+ throw new Error(`Validation error: ${error.details.map((x) => x.message).join(', ')}`);
1708
1648
  }
1709
1649
  return this.makeCalculationResponse(value);
1710
1650
  }
@@ -1738,13 +1678,13 @@ class RadiationAtPointsCalculationRequest extends CalculationRequestBase {
1738
1678
  *
1739
1679
  */
1740
1680
  constructor(data: {
1741
- flameResult: Entities.FlameResult,
1742
- flameRecords: Entities.FlameRecord[],
1743
- flameRecordCount: number,
1744
- weather: Entities.Weather,
1745
- flammableParameters: Entities.FlammableParameters,
1746
- flammableOutputConfigs: Entities.FlammableOutputConfig[],
1747
- flammableOutputConfigCount: number
1681
+ flameResult: Entities.FlameResult;
1682
+ flameRecords: Entities.FlameRecord[];
1683
+ flameRecordCount: number;
1684
+ weather: Entities.Weather;
1685
+ flammableParameters: Entities.FlammableParameters;
1686
+ flammableOutputConfigs: Entities.FlammableOutputConfig[];
1687
+ flammableOutputConfigCount: number;
1748
1688
  }) {
1749
1689
  super();
1750
1690
  this.flameResult = data.flameResult;
@@ -1776,20 +1716,20 @@ export class RadiationAtPointsCalculationRequestSchema {
1776
1716
  }).unknown(true);
1777
1717
 
1778
1718
  this.propertyTypes = {
1779
- flameResult: "Entities.FlameResult",
1780
- flameRecords: "Entities.FlameRecord[]",
1781
- flameRecordCount: "number",
1782
- weather: "Entities.Weather",
1783
- flammableParameters: "Entities.FlammableParameters",
1784
- flammableOutputConfigs: "Entities.FlammableOutputConfig[]",
1785
- flammableOutputConfigCount: "number",
1719
+ flameResult: 'Entities.FlameResult',
1720
+ flameRecords: 'Entities.FlameRecord[]',
1721
+ flameRecordCount: 'number',
1722
+ weather: 'Entities.Weather',
1723
+ flammableParameters: 'Entities.FlammableParameters',
1724
+ flammableOutputConfigs: 'Entities.FlammableOutputConfig[]',
1725
+ flammableOutputConfigCount: 'number',
1786
1726
  };
1787
1727
  }
1788
1728
 
1789
1729
  validate(data: RadiationAtPointsCalculationRequestSchemaData): RadiationAtPointsCalculationRequest {
1790
1730
  const { error, value } = this.schema.validate(data, { abortEarly: false });
1791
1731
  if (error) {
1792
- throw new Error(`Validation error: ${error.details.map((x) => x.message).join(", ")}`);
1732
+ throw new Error(`Validation error: ${error.details.map((x) => x.message).join(', ')}`);
1793
1733
  }
1794
1734
  return this.makeCalculationRequest(value);
1795
1735
  }
@@ -1814,13 +1754,13 @@ export class RadiationAtPointsCalculation extends CalculationBase {
1814
1754
  *
1815
1755
  */
1816
1756
  constructor(data: {
1817
- flameResult: Entities.FlameResult,
1818
- flameRecords: Entities.FlameRecord[],
1819
- flameRecordCount: number,
1820
- weather: Entities.Weather,
1821
- flammableParameters: Entities.FlammableParameters,
1822
- flammableOutputConfigs: Entities.FlammableOutputConfig[],
1823
- flammableOutputConfigCount: number
1757
+ flameResult: Entities.FlameResult;
1758
+ flameRecords: Entities.FlameRecord[];
1759
+ flameRecordCount: number;
1760
+ weather: Entities.Weather;
1761
+ flammableParameters: Entities.FlammableParameters;
1762
+ flammableOutputConfigs: Entities.FlammableOutputConfig[];
1763
+ flammableOutputConfigCount: number;
1824
1764
  controller?: AbortController;
1825
1765
  }) {
1826
1766
  super(data.controller);
@@ -1842,7 +1782,7 @@ export class RadiationAtPointsCalculation extends CalculationBase {
1842
1782
  weather: this.weather,
1843
1783
  flammableParameters: this.flammableParameters,
1844
1784
  flammableOutputConfigs: this.flammableOutputConfigs,
1845
- flammableOutputConfigCount: this.flammableOutputConfigCount
1785
+ flammableOutputConfigCount: this.flammableOutputConfigCount,
1846
1786
  });
1847
1787
 
1848
1788
  const schema = new RadiationAtPointsCalculationRequestSchema();
@@ -1883,21 +1823,17 @@ export class RadiationAtPointsCalculation extends CalculationBase {
1883
1823
  }
1884
1824
 
1885
1825
  toString() {
1886
- const parts = ["* RadiationAtPoints"];
1826
+ const parts = ['* RadiationAtPoints'];
1887
1827
 
1888
- parts.push("*** radiation:");
1889
- parts.push(
1890
- this.radiation && this.radiation.length > 0
1891
- ? this.radiation.map((point) => `radiationElement: ${point}`).join("\n")
1892
- : "radiation does not contain any elements"
1893
- );
1828
+ parts.push('*** radiation:');
1829
+ parts.push(this.radiation && this.radiation.length > 0 ? this.radiation.map((point) => `radiationElement: ${point}`).join('\n') : 'radiation does not contain any elements');
1894
1830
  parts.push(`resultCode: ${String(this.resultCode)}`);
1895
- parts.push("*** messages:");
1896
- parts.push(`messages: ${this.messages !== undefined ? this.messages : "(None)"}`);
1897
- parts.push(`calculationElapsedTime: ${this.calculationElapsedTime !== undefined ? this.calculationElapsedTime : "(None)"}`);
1898
- parts.push(`operationId: ${this.operationId !== undefined ? this.operationId : "(None)"}`);
1831
+ parts.push('*** messages:');
1832
+ parts.push(`messages: ${this.messages !== undefined ? this.messages : '(None)'}`);
1833
+ parts.push(`calculationElapsedTime: ${this.calculationElapsedTime !== undefined ? this.calculationElapsedTime : '(None)'}`);
1834
+ parts.push(`operationId: ${this.operationId !== undefined ? this.operationId : '(None)'}`);
1899
1835
 
1900
- return parts.join("\n");
1836
+ return parts.join('\n');
1901
1837
  }
1902
1838
  }
1903
1839
 
@@ -1908,13 +1844,7 @@ export class RadiationAtPointsCalculationResponse extends CalculationResponseBas
1908
1844
  * RadiationAtPoints calculation response class.
1909
1845
  *
1910
1846
  */
1911
- constructor(data: {
1912
- radiation: number[],
1913
- resultCode: Enums.ResultCode,
1914
- messages: string[],
1915
- calculationElapsedTime: number,
1916
- operationId: string
1917
- }) {
1847
+ constructor(data: { radiation: number[]; resultCode: Enums.ResultCode; messages: string[]; calculationElapsedTime: number; operationId: string }) {
1918
1848
  super();
1919
1849
  this.radiation = data.radiation;
1920
1850
  this.resultCode = data.resultCode;
@@ -1927,17 +1857,17 @@ export class RadiationAtPointsCalculationResponse extends CalculationResponseBas
1927
1857
  if (data.radiation && Array.isArray(data.radiation)) {
1928
1858
  this.radiation = data.radiation.map((item) => parseFloat(item));
1929
1859
  }
1930
- if (data.resultCode !== undefined && (typeof data.resultCode === "string" || typeof data.resultCode === "number")) {
1860
+ if (data.resultCode !== undefined && (typeof data.resultCode === 'string' || typeof data.resultCode === 'number')) {
1931
1861
  this.resultCode = data.resultCode as Enums.ResultCode;
1932
1862
  }
1933
1863
  this.messages = this.messages ?? [];
1934
1864
  if (data.messages && Array.isArray(data.messages)) {
1935
1865
  this.messages.push(...data.messages);
1936
1866
  }
1937
- if (data.calculationElapsedTime !== undefined && typeof data.calculationElapsedTime === "number") {
1867
+ if (data.calculationElapsedTime !== undefined && typeof data.calculationElapsedTime === 'number') {
1938
1868
  this.calculationElapsedTime = data.calculationElapsedTime as number;
1939
1869
  }
1940
- if (data.operationId !== undefined && typeof data.operationId === "string") {
1870
+ if (data.operationId !== undefined && typeof data.operationId === 'string') {
1941
1871
  this.operationId = data.operationId as string;
1942
1872
  }
1943
1873
  }
@@ -1968,14 +1898,14 @@ export class RadiationAtPointsCalculationResponseSchema {
1968
1898
  }).unknown(true);
1969
1899
 
1970
1900
  this.propertyTypes = {
1971
- radiation: "number[]",
1901
+ radiation: 'number[]',
1972
1902
  };
1973
1903
  }
1974
1904
 
1975
1905
  validate(data: RadiationAtPointsCalculationResponseSchemaData): RadiationAtPointsCalculationResponse {
1976
1906
  const { error, value } = this.schema.validate(data, { abortEarly: false });
1977
1907
  if (error) {
1978
- throw new Error(`Validation error: ${error.details.map((x) => x.message).join(", ")}`);
1908
+ throw new Error(`Validation error: ${error.details.map((x) => x.message).join(', ')}`);
1979
1909
  }
1980
1910
  return this.makeCalculationResponse(value);
1981
1911
  }
@@ -2009,13 +1939,13 @@ class RadiationAtPointsForPoolFiresCalculationRequest extends CalculationRequest
2009
1939
  *
2010
1940
  */
2011
1941
  constructor(data: {
2012
- poolFireFlameResult: Entities.PoolFireFlameResult,
2013
- flameRecords: Entities.FlameRecord[],
2014
- flameRecordCount: number,
2015
- weather: Entities.Weather,
2016
- flammableParameters: Entities.FlammableParameters,
2017
- flammableOutputConfigs: Entities.FlammableOutputConfig[],
2018
- flammableOutputConfigCount: number
1942
+ poolFireFlameResult: Entities.PoolFireFlameResult;
1943
+ flameRecords: Entities.FlameRecord[];
1944
+ flameRecordCount: number;
1945
+ weather: Entities.Weather;
1946
+ flammableParameters: Entities.FlammableParameters;
1947
+ flammableOutputConfigs: Entities.FlammableOutputConfig[];
1948
+ flammableOutputConfigCount: number;
2019
1949
  }) {
2020
1950
  super();
2021
1951
  this.poolFireFlameResult = data.poolFireFlameResult;
@@ -2047,20 +1977,20 @@ export class RadiationAtPointsForPoolFiresCalculationRequestSchema {
2047
1977
  }).unknown(true);
2048
1978
 
2049
1979
  this.propertyTypes = {
2050
- poolFireFlameResult: "Entities.PoolFireFlameResult",
2051
- flameRecords: "Entities.FlameRecord[]",
2052
- flameRecordCount: "number",
2053
- weather: "Entities.Weather",
2054
- flammableParameters: "Entities.FlammableParameters",
2055
- flammableOutputConfigs: "Entities.FlammableOutputConfig[]",
2056
- flammableOutputConfigCount: "number",
1980
+ poolFireFlameResult: 'Entities.PoolFireFlameResult',
1981
+ flameRecords: 'Entities.FlameRecord[]',
1982
+ flameRecordCount: 'number',
1983
+ weather: 'Entities.Weather',
1984
+ flammableParameters: 'Entities.FlammableParameters',
1985
+ flammableOutputConfigs: 'Entities.FlammableOutputConfig[]',
1986
+ flammableOutputConfigCount: 'number',
2057
1987
  };
2058
1988
  }
2059
1989
 
2060
1990
  validate(data: RadiationAtPointsForPoolFiresCalculationRequestSchemaData): RadiationAtPointsForPoolFiresCalculationRequest {
2061
1991
  const { error, value } = this.schema.validate(data, { abortEarly: false });
2062
1992
  if (error) {
2063
- throw new Error(`Validation error: ${error.details.map((x) => x.message).join(", ")}`);
1993
+ throw new Error(`Validation error: ${error.details.map((x) => x.message).join(', ')}`);
2064
1994
  }
2065
1995
  return this.makeCalculationRequest(value);
2066
1996
  }
@@ -2085,13 +2015,13 @@ export class RadiationAtPointsForPoolFiresCalculation extends CalculationBase {
2085
2015
  *
2086
2016
  */
2087
2017
  constructor(data: {
2088
- poolFireFlameResult: Entities.PoolFireFlameResult,
2089
- flameRecords: Entities.FlameRecord[],
2090
- flameRecordCount: number,
2091
- weather: Entities.Weather,
2092
- flammableParameters: Entities.FlammableParameters,
2093
- flammableOutputConfigs: Entities.FlammableOutputConfig[],
2094
- flammableOutputConfigCount: number
2018
+ poolFireFlameResult: Entities.PoolFireFlameResult;
2019
+ flameRecords: Entities.FlameRecord[];
2020
+ flameRecordCount: number;
2021
+ weather: Entities.Weather;
2022
+ flammableParameters: Entities.FlammableParameters;
2023
+ flammableOutputConfigs: Entities.FlammableOutputConfig[];
2024
+ flammableOutputConfigCount: number;
2095
2025
  controller?: AbortController;
2096
2026
  }) {
2097
2027
  super(data.controller);
@@ -2113,7 +2043,7 @@ export class RadiationAtPointsForPoolFiresCalculation extends CalculationBase {
2113
2043
  weather: this.weather,
2114
2044
  flammableParameters: this.flammableParameters,
2115
2045
  flammableOutputConfigs: this.flammableOutputConfigs,
2116
- flammableOutputConfigCount: this.flammableOutputConfigCount
2046
+ flammableOutputConfigCount: this.flammableOutputConfigCount,
2117
2047
  });
2118
2048
 
2119
2049
  const schema = new RadiationAtPointsForPoolFiresCalculationRequestSchema();
@@ -2154,21 +2084,17 @@ export class RadiationAtPointsForPoolFiresCalculation extends CalculationBase {
2154
2084
  }
2155
2085
 
2156
2086
  toString() {
2157
- const parts = ["* RadiationAtPointsForPoolFires"];
2087
+ const parts = ['* RadiationAtPointsForPoolFires'];
2158
2088
 
2159
- parts.push("*** radiation:");
2160
- parts.push(
2161
- this.radiation && this.radiation.length > 0
2162
- ? this.radiation.map((point) => `radiationElement: ${point}`).join("\n")
2163
- : "radiation does not contain any elements"
2164
- );
2089
+ parts.push('*** radiation:');
2090
+ parts.push(this.radiation && this.radiation.length > 0 ? this.radiation.map((point) => `radiationElement: ${point}`).join('\n') : 'radiation does not contain any elements');
2165
2091
  parts.push(`resultCode: ${String(this.resultCode)}`);
2166
- parts.push("*** messages:");
2167
- parts.push(`messages: ${this.messages !== undefined ? this.messages : "(None)"}`);
2168
- parts.push(`calculationElapsedTime: ${this.calculationElapsedTime !== undefined ? this.calculationElapsedTime : "(None)"}`);
2169
- parts.push(`operationId: ${this.operationId !== undefined ? this.operationId : "(None)"}`);
2092
+ parts.push('*** messages:');
2093
+ parts.push(`messages: ${this.messages !== undefined ? this.messages : '(None)'}`);
2094
+ parts.push(`calculationElapsedTime: ${this.calculationElapsedTime !== undefined ? this.calculationElapsedTime : '(None)'}`);
2095
+ parts.push(`operationId: ${this.operationId !== undefined ? this.operationId : '(None)'}`);
2170
2096
 
2171
- return parts.join("\n");
2097
+ return parts.join('\n');
2172
2098
  }
2173
2099
  }
2174
2100
 
@@ -2179,13 +2105,7 @@ export class RadiationAtPointsForPoolFiresCalculationResponse extends Calculatio
2179
2105
  * RadiationAtPointsForPoolFires calculation response class.
2180
2106
  *
2181
2107
  */
2182
- constructor(data: {
2183
- radiation: number[],
2184
- resultCode: Enums.ResultCode,
2185
- messages: string[],
2186
- calculationElapsedTime: number,
2187
- operationId: string
2188
- }) {
2108
+ constructor(data: { radiation: number[]; resultCode: Enums.ResultCode; messages: string[]; calculationElapsedTime: number; operationId: string }) {
2189
2109
  super();
2190
2110
  this.radiation = data.radiation;
2191
2111
  this.resultCode = data.resultCode;
@@ -2198,17 +2118,17 @@ export class RadiationAtPointsForPoolFiresCalculationResponse extends Calculatio
2198
2118
  if (data.radiation && Array.isArray(data.radiation)) {
2199
2119
  this.radiation = data.radiation.map((item) => parseFloat(item));
2200
2120
  }
2201
- if (data.resultCode !== undefined && (typeof data.resultCode === "string" || typeof data.resultCode === "number")) {
2121
+ if (data.resultCode !== undefined && (typeof data.resultCode === 'string' || typeof data.resultCode === 'number')) {
2202
2122
  this.resultCode = data.resultCode as Enums.ResultCode;
2203
2123
  }
2204
2124
  this.messages = this.messages ?? [];
2205
2125
  if (data.messages && Array.isArray(data.messages)) {
2206
2126
  this.messages.push(...data.messages);
2207
2127
  }
2208
- if (data.calculationElapsedTime !== undefined && typeof data.calculationElapsedTime === "number") {
2128
+ if (data.calculationElapsedTime !== undefined && typeof data.calculationElapsedTime === 'number') {
2209
2129
  this.calculationElapsedTime = data.calculationElapsedTime as number;
2210
2130
  }
2211
- if (data.operationId !== undefined && typeof data.operationId === "string") {
2131
+ if (data.operationId !== undefined && typeof data.operationId === 'string') {
2212
2132
  this.operationId = data.operationId as string;
2213
2133
  }
2214
2134
  }
@@ -2239,14 +2159,14 @@ export class RadiationAtPointsForPoolFiresCalculationResponseSchema {
2239
2159
  }).unknown(true);
2240
2160
 
2241
2161
  this.propertyTypes = {
2242
- radiation: "number[]",
2162
+ radiation: 'number[]',
2243
2163
  };
2244
2164
  }
2245
2165
 
2246
2166
  validate(data: RadiationAtPointsForPoolFiresCalculationResponseSchemaData): RadiationAtPointsForPoolFiresCalculationResponse {
2247
2167
  const { error, value } = this.schema.validate(data, { abortEarly: false });
2248
2168
  if (error) {
2249
- throw new Error(`Validation error: ${error.details.map((x) => x.message).join(", ")}`);
2169
+ throw new Error(`Validation error: ${error.details.map((x) => x.message).join(', ')}`);
2250
2170
  }
2251
2171
  return this.makeCalculationResponse(value);
2252
2172
  }
@@ -2278,12 +2198,12 @@ class RadiationContourCalculationRequest extends CalculationRequestBase {
2278
2198
  *
2279
2199
  */
2280
2200
  constructor(data: {
2281
- flameResult: Entities.FlameResult,
2282
- flameRecords: Entities.FlameRecord[],
2283
- flameRecordCount: number,
2284
- weather: Entities.Weather,
2285
- flammableParameters: Entities.FlammableParameters,
2286
- flammableOutputConfig: Entities.FlammableOutputConfig
2201
+ flameResult: Entities.FlameResult;
2202
+ flameRecords: Entities.FlameRecord[];
2203
+ flameRecordCount: number;
2204
+ weather: Entities.Weather;
2205
+ flammableParameters: Entities.FlammableParameters;
2206
+ flammableOutputConfig: Entities.FlammableOutputConfig;
2287
2207
  }) {
2288
2208
  super();
2289
2209
  this.flameResult = data.flameResult;
@@ -2313,19 +2233,19 @@ export class RadiationContourCalculationRequestSchema {
2313
2233
  }).unknown(true);
2314
2234
 
2315
2235
  this.propertyTypes = {
2316
- flameResult: "Entities.FlameResult",
2317
- flameRecords: "Entities.FlameRecord[]",
2318
- flameRecordCount: "number",
2319
- weather: "Entities.Weather",
2320
- flammableParameters: "Entities.FlammableParameters",
2321
- flammableOutputConfig: "Entities.FlammableOutputConfig",
2236
+ flameResult: 'Entities.FlameResult',
2237
+ flameRecords: 'Entities.FlameRecord[]',
2238
+ flameRecordCount: 'number',
2239
+ weather: 'Entities.Weather',
2240
+ flammableParameters: 'Entities.FlammableParameters',
2241
+ flammableOutputConfig: 'Entities.FlammableOutputConfig',
2322
2242
  };
2323
2243
  }
2324
2244
 
2325
2245
  validate(data: RadiationContourCalculationRequestSchemaData): RadiationContourCalculationRequest {
2326
2246
  const { error, value } = this.schema.validate(data, { abortEarly: false });
2327
2247
  if (error) {
2328
- throw new Error(`Validation error: ${error.details.map((x) => x.message).join(", ")}`);
2248
+ throw new Error(`Validation error: ${error.details.map((x) => x.message).join(', ')}`);
2329
2249
  }
2330
2250
  return this.makeCalculationRequest(value);
2331
2251
  }
@@ -2349,12 +2269,12 @@ export class RadiationContourCalculation extends CalculationBase {
2349
2269
  *
2350
2270
  */
2351
2271
  constructor(data: {
2352
- flameResult: Entities.FlameResult,
2353
- flameRecords: Entities.FlameRecord[],
2354
- flameRecordCount: number,
2355
- weather: Entities.Weather,
2356
- flammableParameters: Entities.FlammableParameters,
2357
- flammableOutputConfig: Entities.FlammableOutputConfig
2272
+ flameResult: Entities.FlameResult;
2273
+ flameRecords: Entities.FlameRecord[];
2274
+ flameRecordCount: number;
2275
+ weather: Entities.Weather;
2276
+ flammableParameters: Entities.FlammableParameters;
2277
+ flammableOutputConfig: Entities.FlammableOutputConfig;
2358
2278
  controller?: AbortController;
2359
2279
  }) {
2360
2280
  super(data.controller);
@@ -2374,7 +2294,7 @@ export class RadiationContourCalculation extends CalculationBase {
2374
2294
  flameRecordCount: this.flameRecordCount,
2375
2295
  weather: this.weather,
2376
2296
  flammableParameters: this.flammableParameters,
2377
- flammableOutputConfig: this.flammableOutputConfig
2297
+ flammableOutputConfig: this.flammableOutputConfig,
2378
2298
  });
2379
2299
 
2380
2300
  const schema = new RadiationContourCalculationRequestSchema();
@@ -2415,21 +2335,17 @@ export class RadiationContourCalculation extends CalculationBase {
2415
2335
  }
2416
2336
 
2417
2337
  toString() {
2418
- const parts = ["* RadiationContour"];
2338
+ const parts = ['* RadiationContour'];
2419
2339
 
2420
- parts.push("*** contourPoints:");
2421
- parts.push(
2422
- this.contourPoints && this.contourPoints.length > 0
2423
- ? this.contourPoints.map((point) => `contourPointsElement: ${point}`).join("\n")
2424
- : "contourPoints does not contain any elements"
2425
- );
2340
+ parts.push('*** contourPoints:');
2341
+ parts.push(this.contourPoints && this.contourPoints.length > 0 ? this.contourPoints.map((point) => `contourPointsElement: ${point}`).join('\n') : 'contourPoints does not contain any elements');
2426
2342
  parts.push(`resultCode: ${String(this.resultCode)}`);
2427
- parts.push("*** messages:");
2428
- parts.push(`messages: ${this.messages !== undefined ? this.messages : "(None)"}`);
2429
- parts.push(`calculationElapsedTime: ${this.calculationElapsedTime !== undefined ? this.calculationElapsedTime : "(None)"}`);
2430
- parts.push(`operationId: ${this.operationId !== undefined ? this.operationId : "(None)"}`);
2343
+ parts.push('*** messages:');
2344
+ parts.push(`messages: ${this.messages !== undefined ? this.messages : '(None)'}`);
2345
+ parts.push(`calculationElapsedTime: ${this.calculationElapsedTime !== undefined ? this.calculationElapsedTime : '(None)'}`);
2346
+ parts.push(`operationId: ${this.operationId !== undefined ? this.operationId : '(None)'}`);
2431
2347
 
2432
- return parts.join("\n");
2348
+ return parts.join('\n');
2433
2349
  }
2434
2350
  }
2435
2351
 
@@ -2440,13 +2356,7 @@ export class RadiationContourCalculationResponse extends CalculationResponseBase
2440
2356
  * RadiationContour calculation response class.
2441
2357
  *
2442
2358
  */
2443
- constructor(data: {
2444
- contourPoints: Entities.LocalPosition[],
2445
- resultCode: Enums.ResultCode,
2446
- messages: string[],
2447
- calculationElapsedTime: number,
2448
- operationId: string
2449
- }) {
2359
+ constructor(data: { contourPoints: Entities.LocalPosition[]; resultCode: Enums.ResultCode; messages: string[]; calculationElapsedTime: number; operationId: string }) {
2450
2360
  super();
2451
2361
  this.contourPoints = data.contourPoints;
2452
2362
  this.resultCode = data.resultCode;
@@ -2457,25 +2367,23 @@ export class RadiationContourCalculationResponse extends CalculationResponseBase
2457
2367
 
2458
2368
  initialiseFromDictionary(data: { [key: string]: unknown }) {
2459
2369
  if (data.contourPoints && Array.isArray(data.contourPoints)) {
2460
- this.contourPoints = data.contourPoints.map(
2461
- (item) => {
2462
- const record = new Entities.LocalPosition();
2463
- record.initialiseFromDictionary(item);
2464
- return record;
2465
- }
2466
- );
2467
- }
2468
- if (data.resultCode !== undefined && (typeof data.resultCode === "string" || typeof data.resultCode === "number")) {
2370
+ this.contourPoints = data.contourPoints.map((item) => {
2371
+ const record = new Entities.LocalPosition();
2372
+ record.initialiseFromDictionary(item);
2373
+ return record;
2374
+ });
2375
+ }
2376
+ if (data.resultCode !== undefined && (typeof data.resultCode === 'string' || typeof data.resultCode === 'number')) {
2469
2377
  this.resultCode = data.resultCode as Enums.ResultCode;
2470
2378
  }
2471
2379
  this.messages = this.messages ?? [];
2472
2380
  if (data.messages && Array.isArray(data.messages)) {
2473
2381
  this.messages.push(...data.messages);
2474
2382
  }
2475
- if (data.calculationElapsedTime !== undefined && typeof data.calculationElapsedTime === "number") {
2383
+ if (data.calculationElapsedTime !== undefined && typeof data.calculationElapsedTime === 'number') {
2476
2384
  this.calculationElapsedTime = data.calculationElapsedTime as number;
2477
2385
  }
2478
- if (data.operationId !== undefined && typeof data.operationId === "string") {
2386
+ if (data.operationId !== undefined && typeof data.operationId === 'string') {
2479
2387
  this.operationId = data.operationId as string;
2480
2388
  }
2481
2389
  }
@@ -2506,14 +2414,14 @@ export class RadiationContourCalculationResponseSchema {
2506
2414
  }).unknown(true);
2507
2415
 
2508
2416
  this.propertyTypes = {
2509
- contourPoints: "Entities.LocalPosition[]",
2417
+ contourPoints: 'Entities.LocalPosition[]',
2510
2418
  };
2511
2419
  }
2512
2420
 
2513
2421
  validate(data: RadiationContourCalculationResponseSchemaData): RadiationContourCalculationResponse {
2514
2422
  const { error, value } = this.schema.validate(data, { abortEarly: false });
2515
2423
  if (error) {
2516
- throw new Error(`Validation error: ${error.details.map((x) => x.message).join(", ")}`);
2424
+ throw new Error(`Validation error: ${error.details.map((x) => x.message).join(', ')}`);
2517
2425
  }
2518
2426
  return this.makeCalculationResponse(value);
2519
2427
  }
@@ -2545,12 +2453,12 @@ class RadiationTransectCalculationRequest extends CalculationRequestBase {
2545
2453
  *
2546
2454
  */
2547
2455
  constructor(data: {
2548
- flameResult: Entities.FlameResult,
2549
- flameRecords: Entities.FlameRecord[],
2550
- flameRecordCount: number,
2551
- weather: Entities.Weather,
2552
- flammableParameters: Entities.FlammableParameters,
2553
- flammableOutputConfig: Entities.FlammableOutputConfig
2456
+ flameResult: Entities.FlameResult;
2457
+ flameRecords: Entities.FlameRecord[];
2458
+ flameRecordCount: number;
2459
+ weather: Entities.Weather;
2460
+ flammableParameters: Entities.FlammableParameters;
2461
+ flammableOutputConfig: Entities.FlammableOutputConfig;
2554
2462
  }) {
2555
2463
  super();
2556
2464
  this.flameResult = data.flameResult;
@@ -2580,19 +2488,19 @@ export class RadiationTransectCalculationRequestSchema {
2580
2488
  }).unknown(true);
2581
2489
 
2582
2490
  this.propertyTypes = {
2583
- flameResult: "Entities.FlameResult",
2584
- flameRecords: "Entities.FlameRecord[]",
2585
- flameRecordCount: "number",
2586
- weather: "Entities.Weather",
2587
- flammableParameters: "Entities.FlammableParameters",
2588
- flammableOutputConfig: "Entities.FlammableOutputConfig",
2491
+ flameResult: 'Entities.FlameResult',
2492
+ flameRecords: 'Entities.FlameRecord[]',
2493
+ flameRecordCount: 'number',
2494
+ weather: 'Entities.Weather',
2495
+ flammableParameters: 'Entities.FlammableParameters',
2496
+ flammableOutputConfig: 'Entities.FlammableOutputConfig',
2589
2497
  };
2590
2498
  }
2591
2499
 
2592
2500
  validate(data: RadiationTransectCalculationRequestSchemaData): RadiationTransectCalculationRequest {
2593
2501
  const { error, value } = this.schema.validate(data, { abortEarly: false });
2594
2502
  if (error) {
2595
- throw new Error(`Validation error: ${error.details.map((x) => x.message).join(", ")}`);
2503
+ throw new Error(`Validation error: ${error.details.map((x) => x.message).join(', ')}`);
2596
2504
  }
2597
2505
  return this.makeCalculationRequest(value);
2598
2506
  }
@@ -2616,12 +2524,12 @@ export class RadiationTransectCalculation extends CalculationBase {
2616
2524
  *
2617
2525
  */
2618
2526
  constructor(data: {
2619
- flameResult: Entities.FlameResult,
2620
- flameRecords: Entities.FlameRecord[],
2621
- flameRecordCount: number,
2622
- weather: Entities.Weather,
2623
- flammableParameters: Entities.FlammableParameters,
2624
- flammableOutputConfig: Entities.FlammableOutputConfig
2527
+ flameResult: Entities.FlameResult;
2528
+ flameRecords: Entities.FlameRecord[];
2529
+ flameRecordCount: number;
2530
+ weather: Entities.Weather;
2531
+ flammableParameters: Entities.FlammableParameters;
2532
+ flammableOutputConfig: Entities.FlammableOutputConfig;
2625
2533
  controller?: AbortController;
2626
2534
  }) {
2627
2535
  super(data.controller);
@@ -2641,7 +2549,7 @@ export class RadiationTransectCalculation extends CalculationBase {
2641
2549
  flameRecordCount: this.flameRecordCount,
2642
2550
  weather: this.weather,
2643
2551
  flammableParameters: this.flammableParameters,
2644
- flammableOutputConfig: this.flammableOutputConfig
2552
+ flammableOutputConfig: this.flammableOutputConfig,
2645
2553
  });
2646
2554
 
2647
2555
  const schema = new RadiationTransectCalculationRequestSchema();
@@ -2682,21 +2590,21 @@ export class RadiationTransectCalculation extends CalculationBase {
2682
2590
  }
2683
2591
 
2684
2592
  toString() {
2685
- const parts = ["* RadiationTransect"];
2593
+ const parts = ['* RadiationTransect'];
2686
2594
 
2687
- parts.push("*** radiationRecords:");
2595
+ parts.push('*** radiationRecords:');
2688
2596
  parts.push(
2689
2597
  this.radiationRecords && this.radiationRecords.length > 0
2690
- ? this.radiationRecords.map((point) => `radiationRecordsElement: ${point}`).join("\n")
2691
- : "radiationRecords does not contain any elements"
2598
+ ? this.radiationRecords.map((point) => `radiationRecordsElement: ${point}`).join('\n')
2599
+ : 'radiationRecords does not contain any elements',
2692
2600
  );
2693
2601
  parts.push(`resultCode: ${String(this.resultCode)}`);
2694
- parts.push("*** messages:");
2695
- parts.push(`messages: ${this.messages !== undefined ? this.messages : "(None)"}`);
2696
- parts.push(`calculationElapsedTime: ${this.calculationElapsedTime !== undefined ? this.calculationElapsedTime : "(None)"}`);
2697
- parts.push(`operationId: ${this.operationId !== undefined ? this.operationId : "(None)"}`);
2602
+ parts.push('*** messages:');
2603
+ parts.push(`messages: ${this.messages !== undefined ? this.messages : '(None)'}`);
2604
+ parts.push(`calculationElapsedTime: ${this.calculationElapsedTime !== undefined ? this.calculationElapsedTime : '(None)'}`);
2605
+ parts.push(`operationId: ${this.operationId !== undefined ? this.operationId : '(None)'}`);
2698
2606
 
2699
- return parts.join("\n");
2607
+ return parts.join('\n');
2700
2608
  }
2701
2609
  }
2702
2610
 
@@ -2707,13 +2615,7 @@ export class RadiationTransectCalculationResponse extends CalculationResponseBas
2707
2615
  * RadiationTransect calculation response class.
2708
2616
  *
2709
2617
  */
2710
- constructor(data: {
2711
- radiationRecords: Entities.RadiationRecord[],
2712
- resultCode: Enums.ResultCode,
2713
- messages: string[],
2714
- calculationElapsedTime: number,
2715
- operationId: string
2716
- }) {
2618
+ constructor(data: { radiationRecords: Entities.RadiationRecord[]; resultCode: Enums.ResultCode; messages: string[]; calculationElapsedTime: number; operationId: string }) {
2717
2619
  super();
2718
2620
  this.radiationRecords = data.radiationRecords;
2719
2621
  this.resultCode = data.resultCode;
@@ -2724,25 +2626,23 @@ export class RadiationTransectCalculationResponse extends CalculationResponseBas
2724
2626
 
2725
2627
  initialiseFromDictionary(data: { [key: string]: unknown }) {
2726
2628
  if (data.radiationRecords && Array.isArray(data.radiationRecords)) {
2727
- this.radiationRecords = data.radiationRecords.map(
2728
- (item) => {
2729
- const record = new Entities.RadiationRecord();
2730
- record.initialiseFromDictionary(item);
2731
- return record;
2732
- }
2733
- );
2734
- }
2735
- if (data.resultCode !== undefined && (typeof data.resultCode === "string" || typeof data.resultCode === "number")) {
2629
+ this.radiationRecords = data.radiationRecords.map((item) => {
2630
+ const record = new Entities.RadiationRecord();
2631
+ record.initialiseFromDictionary(item);
2632
+ return record;
2633
+ });
2634
+ }
2635
+ if (data.resultCode !== undefined && (typeof data.resultCode === 'string' || typeof data.resultCode === 'number')) {
2736
2636
  this.resultCode = data.resultCode as Enums.ResultCode;
2737
2637
  }
2738
2638
  this.messages = this.messages ?? [];
2739
2639
  if (data.messages && Array.isArray(data.messages)) {
2740
2640
  this.messages.push(...data.messages);
2741
2641
  }
2742
- if (data.calculationElapsedTime !== undefined && typeof data.calculationElapsedTime === "number") {
2642
+ if (data.calculationElapsedTime !== undefined && typeof data.calculationElapsedTime === 'number') {
2743
2643
  this.calculationElapsedTime = data.calculationElapsedTime as number;
2744
2644
  }
2745
- if (data.operationId !== undefined && typeof data.operationId === "string") {
2645
+ if (data.operationId !== undefined && typeof data.operationId === 'string') {
2746
2646
  this.operationId = data.operationId as string;
2747
2647
  }
2748
2648
  }
@@ -2773,14 +2673,14 @@ export class RadiationTransectCalculationResponseSchema {
2773
2673
  }).unknown(true);
2774
2674
 
2775
2675
  this.propertyTypes = {
2776
- radiationRecords: "Entities.RadiationRecord[]",
2676
+ radiationRecords: 'Entities.RadiationRecord[]',
2777
2677
  };
2778
2678
  }
2779
2679
 
2780
2680
  validate(data: RadiationTransectCalculationResponseSchemaData): RadiationTransectCalculationResponse {
2781
2681
  const { error, value } = this.schema.validate(data, { abortEarly: false });
2782
2682
  if (error) {
2783
- throw new Error(`Validation error: ${error.details.map((x) => x.message).join(", ")}`);
2683
+ throw new Error(`Validation error: ${error.details.map((x) => x.message).join(', ')}`);
2784
2684
  }
2785
2685
  return this.makeCalculationResponse(value);
2786
2686
  }
@@ -2812,12 +2712,12 @@ class RadiationTransectForPoolFiresCalculationRequest extends CalculationRequest
2812
2712
  *
2813
2713
  */
2814
2714
  constructor(data: {
2815
- poolFireFlameResult: Entities.PoolFireFlameResult,
2816
- flameRecords: Entities.FlameRecord[],
2817
- flameRecordCount: number,
2818
- weather: Entities.Weather,
2819
- flammableParameters: Entities.FlammableParameters,
2820
- flammableOutputConfig: Entities.FlammableOutputConfig
2715
+ poolFireFlameResult: Entities.PoolFireFlameResult;
2716
+ flameRecords: Entities.FlameRecord[];
2717
+ flameRecordCount: number;
2718
+ weather: Entities.Weather;
2719
+ flammableParameters: Entities.FlammableParameters;
2720
+ flammableOutputConfig: Entities.FlammableOutputConfig;
2821
2721
  }) {
2822
2722
  super();
2823
2723
  this.poolFireFlameResult = data.poolFireFlameResult;
@@ -2847,19 +2747,19 @@ export class RadiationTransectForPoolFiresCalculationRequestSchema {
2847
2747
  }).unknown(true);
2848
2748
 
2849
2749
  this.propertyTypes = {
2850
- poolFireFlameResult: "Entities.PoolFireFlameResult",
2851
- flameRecords: "Entities.FlameRecord[]",
2852
- flameRecordCount: "number",
2853
- weather: "Entities.Weather",
2854
- flammableParameters: "Entities.FlammableParameters",
2855
- flammableOutputConfig: "Entities.FlammableOutputConfig",
2750
+ poolFireFlameResult: 'Entities.PoolFireFlameResult',
2751
+ flameRecords: 'Entities.FlameRecord[]',
2752
+ flameRecordCount: 'number',
2753
+ weather: 'Entities.Weather',
2754
+ flammableParameters: 'Entities.FlammableParameters',
2755
+ flammableOutputConfig: 'Entities.FlammableOutputConfig',
2856
2756
  };
2857
2757
  }
2858
2758
 
2859
2759
  validate(data: RadiationTransectForPoolFiresCalculationRequestSchemaData): RadiationTransectForPoolFiresCalculationRequest {
2860
2760
  const { error, value } = this.schema.validate(data, { abortEarly: false });
2861
2761
  if (error) {
2862
- throw new Error(`Validation error: ${error.details.map((x) => x.message).join(", ")}`);
2762
+ throw new Error(`Validation error: ${error.details.map((x) => x.message).join(', ')}`);
2863
2763
  }
2864
2764
  return this.makeCalculationRequest(value);
2865
2765
  }
@@ -2883,12 +2783,12 @@ export class RadiationTransectForPoolFiresCalculation extends CalculationBase {
2883
2783
  *
2884
2784
  */
2885
2785
  constructor(data: {
2886
- poolFireFlameResult: Entities.PoolFireFlameResult,
2887
- flameRecords: Entities.FlameRecord[],
2888
- flameRecordCount: number,
2889
- weather: Entities.Weather,
2890
- flammableParameters: Entities.FlammableParameters,
2891
- flammableOutputConfig: Entities.FlammableOutputConfig
2786
+ poolFireFlameResult: Entities.PoolFireFlameResult;
2787
+ flameRecords: Entities.FlameRecord[];
2788
+ flameRecordCount: number;
2789
+ weather: Entities.Weather;
2790
+ flammableParameters: Entities.FlammableParameters;
2791
+ flammableOutputConfig: Entities.FlammableOutputConfig;
2892
2792
  controller?: AbortController;
2893
2793
  }) {
2894
2794
  super(data.controller);
@@ -2908,7 +2808,7 @@ export class RadiationTransectForPoolFiresCalculation extends CalculationBase {
2908
2808
  flameRecordCount: this.flameRecordCount,
2909
2809
  weather: this.weather,
2910
2810
  flammableParameters: this.flammableParameters,
2911
- flammableOutputConfig: this.flammableOutputConfig
2811
+ flammableOutputConfig: this.flammableOutputConfig,
2912
2812
  });
2913
2813
 
2914
2814
  const schema = new RadiationTransectForPoolFiresCalculationRequestSchema();
@@ -2949,21 +2849,21 @@ export class RadiationTransectForPoolFiresCalculation extends CalculationBase {
2949
2849
  }
2950
2850
 
2951
2851
  toString() {
2952
- const parts = ["* RadiationTransectForPoolFires"];
2852
+ const parts = ['* RadiationTransectForPoolFires'];
2953
2853
 
2954
- parts.push("*** radiationRecords:");
2854
+ parts.push('*** radiationRecords:');
2955
2855
  parts.push(
2956
2856
  this.radiationRecords && this.radiationRecords.length > 0
2957
- ? this.radiationRecords.map((point) => `radiationRecordsElement: ${point}`).join("\n")
2958
- : "radiationRecords does not contain any elements"
2857
+ ? this.radiationRecords.map((point) => `radiationRecordsElement: ${point}`).join('\n')
2858
+ : 'radiationRecords does not contain any elements',
2959
2859
  );
2960
2860
  parts.push(`resultCode: ${String(this.resultCode)}`);
2961
- parts.push("*** messages:");
2962
- parts.push(`messages: ${this.messages !== undefined ? this.messages : "(None)"}`);
2963
- parts.push(`calculationElapsedTime: ${this.calculationElapsedTime !== undefined ? this.calculationElapsedTime : "(None)"}`);
2964
- parts.push(`operationId: ${this.operationId !== undefined ? this.operationId : "(None)"}`);
2861
+ parts.push('*** messages:');
2862
+ parts.push(`messages: ${this.messages !== undefined ? this.messages : '(None)'}`);
2863
+ parts.push(`calculationElapsedTime: ${this.calculationElapsedTime !== undefined ? this.calculationElapsedTime : '(None)'}`);
2864
+ parts.push(`operationId: ${this.operationId !== undefined ? this.operationId : '(None)'}`);
2965
2865
 
2966
- return parts.join("\n");
2866
+ return parts.join('\n');
2967
2867
  }
2968
2868
  }
2969
2869
 
@@ -2974,13 +2874,7 @@ export class RadiationTransectForPoolFiresCalculationResponse extends Calculatio
2974
2874
  * RadiationTransectForPoolFires calculation response class.
2975
2875
  *
2976
2876
  */
2977
- constructor(data: {
2978
- radiationRecords: Entities.RadiationRecord[],
2979
- resultCode: Enums.ResultCode,
2980
- messages: string[],
2981
- calculationElapsedTime: number,
2982
- operationId: string
2983
- }) {
2877
+ constructor(data: { radiationRecords: Entities.RadiationRecord[]; resultCode: Enums.ResultCode; messages: string[]; calculationElapsedTime: number; operationId: string }) {
2984
2878
  super();
2985
2879
  this.radiationRecords = data.radiationRecords;
2986
2880
  this.resultCode = data.resultCode;
@@ -2991,25 +2885,23 @@ export class RadiationTransectForPoolFiresCalculationResponse extends Calculatio
2991
2885
 
2992
2886
  initialiseFromDictionary(data: { [key: string]: unknown }) {
2993
2887
  if (data.radiationRecords && Array.isArray(data.radiationRecords)) {
2994
- this.radiationRecords = data.radiationRecords.map(
2995
- (item) => {
2996
- const record = new Entities.RadiationRecord();
2997
- record.initialiseFromDictionary(item);
2998
- return record;
2999
- }
3000
- );
3001
- }
3002
- if (data.resultCode !== undefined && (typeof data.resultCode === "string" || typeof data.resultCode === "number")) {
2888
+ this.radiationRecords = data.radiationRecords.map((item) => {
2889
+ const record = new Entities.RadiationRecord();
2890
+ record.initialiseFromDictionary(item);
2891
+ return record;
2892
+ });
2893
+ }
2894
+ if (data.resultCode !== undefined && (typeof data.resultCode === 'string' || typeof data.resultCode === 'number')) {
3003
2895
  this.resultCode = data.resultCode as Enums.ResultCode;
3004
2896
  }
3005
2897
  this.messages = this.messages ?? [];
3006
2898
  if (data.messages && Array.isArray(data.messages)) {
3007
2899
  this.messages.push(...data.messages);
3008
2900
  }
3009
- if (data.calculationElapsedTime !== undefined && typeof data.calculationElapsedTime === "number") {
2901
+ if (data.calculationElapsedTime !== undefined && typeof data.calculationElapsedTime === 'number') {
3010
2902
  this.calculationElapsedTime = data.calculationElapsedTime as number;
3011
2903
  }
3012
- if (data.operationId !== undefined && typeof data.operationId === "string") {
2904
+ if (data.operationId !== undefined && typeof data.operationId === 'string') {
3013
2905
  this.operationId = data.operationId as string;
3014
2906
  }
3015
2907
  }
@@ -3040,14 +2932,14 @@ export class RadiationTransectForPoolFiresCalculationResponseSchema {
3040
2932
  }).unknown(true);
3041
2933
 
3042
2934
  this.propertyTypes = {
3043
- radiationRecords: "Entities.RadiationRecord[]",
2935
+ radiationRecords: 'Entities.RadiationRecord[]',
3044
2936
  };
3045
2937
  }
3046
2938
 
3047
2939
  validate(data: RadiationTransectForPoolFiresCalculationResponseSchemaData): RadiationTransectForPoolFiresCalculationResponse {
3048
2940
  const { error, value } = this.schema.validate(data, { abortEarly: false });
3049
2941
  if (error) {
3050
- throw new Error(`Validation error: ${error.details.map((x) => x.message).join(", ")}`);
2942
+ throw new Error(`Validation error: ${error.details.map((x) => x.message).join(', ')}`);
3051
2943
  }
3052
2944
  return this.makeCalculationResponse(value);
3053
2945
  }