ember-ebau-gwr 7.4.2 → 7.4.4

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.
Files changed (49) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/README.md +2 -2
  3. package/addon/components/login-modal.js +2 -2
  4. package/addon/components/model-form/field.js +1 -1
  5. package/addon/components/model-form/header/status-selector.js +7 -7
  6. package/addon/components/model-form.js +3 -3
  7. package/addon/components/project-nav.js +3 -3
  8. package/addon/components/quarterly-closure/close-survey-button.js +3 -3
  9. package/addon/components/quarterly-closure/error-list/project-errors.js +7 -3
  10. package/addon/components/quarterly-closure/error-list/survey-department-errors.js +2 -2
  11. package/addon/components/search.js +2 -2
  12. package/addon/components/validated-form-error.js +1 -1
  13. package/addon/controllers/building/edit/dwelling/edit.js +10 -10
  14. package/addon/controllers/building/edit/dwellings.js +4 -4
  15. package/addon/controllers/building/edit/entrance/edit/index.js +7 -7
  16. package/addon/controllers/building/edit/entrance/edit/link-street.js +6 -6
  17. package/addon/controllers/building/edit/entrances.js +4 -4
  18. package/addon/controllers/building/edit/form.js +12 -12
  19. package/addon/controllers/project/errors.js +9 -10
  20. package/addon/controllers/project/form.js +18 -18
  21. package/addon/controllers/project/linked-buildings.js +5 -5
  22. package/addon/controllers/search-building.js +8 -8
  23. package/addon/controllers/search-project.js +3 -3
  24. package/addon/helpers/current-quarter.js +1 -1
  25. package/addon/models/building.js +1 -1
  26. package/addon/models/buildings-list.js +1 -1
  27. package/addon/models/construction-project.js +14 -14
  28. package/addon/models/dwelling.js +8 -5
  29. package/addon/models/xml-model.js +2 -2
  30. package/addon/modifiers/in-viewport.js +2 -2
  31. package/addon/modifiers/inverse-background.js +1 -1
  32. package/addon/resources/import.js +4 -5
  33. package/addon/services/auth-fetch.js +2 -2
  34. package/addon/services/building-entrance.js +10 -10
  35. package/addon/services/building.js +38 -38
  36. package/addon/services/construction-project.js +49 -49
  37. package/addon/services/dwelling.js +16 -16
  38. package/addon/services/gwr.js +6 -6
  39. package/addon/services/quarterly-closure.js +9 -9
  40. package/addon/services/xml.js +1 -1
  41. package/addon/utils.js +2 -2
  42. package/addon/validators/range-state.js +1 -1
  43. package/package.json +54 -50
  44. package/translations/building/fr.yaml +1 -1
  45. package/translations/construction-project/fr.yaml +2 -2
  46. package/translations/dwelling/fr.yaml +2 -2
  47. package/translations/fr.yaml +3 -3
  48. package/tsconfig.declarations.json +10 -0
  49. package/app/mirage-models/gwr-link.js +0 -1
@@ -20,7 +20,7 @@ export default class BuildingService extends GwrService {
20
20
  `/buildings/${EGID}/unbindToConstructionProject/${EPROID}`,
21
21
  {
22
22
  method: "put",
23
- }
23
+ },
24
24
  );
25
25
  if (!response.ok) {
26
26
  const xmlErrors = await response.text();
@@ -45,7 +45,7 @@ export default class BuildingService extends GwrService {
45
45
  {
46
46
  method: "put",
47
47
  body,
48
- }
48
+ },
49
49
  );
50
50
  if (!response.ok) {
51
51
  const xmlErrors = await response.text();
@@ -76,7 +76,7 @@ export default class BuildingService extends GwrService {
76
76
  {
77
77
  errorKey: Building.FORBIDDEN_BUILDING_CLASS_ERROR,
78
78
  errorMessage: this.intl.t(
79
- "ember-gwr.building.forbiddenBuildingClassError"
79
+ "ember-gwr.building.forbiddenBuildingClassError",
80
80
  ),
81
81
  },
82
82
  ]);
@@ -92,18 +92,18 @@ export default class BuildingService extends GwrService {
92
92
  async create(EPROID, buildingWork) {
93
93
  const work = await this.constructionProject.addWorkToProject(
94
94
  EPROID,
95
- buildingWork
95
+ buildingWork,
96
96
  );
97
97
  const body = this.xml.buildXMLRequest(
98
98
  "addBuildingToConstructionProject",
99
- work.building
99
+ work.building,
100
100
  );
101
101
  const response = await this.authFetch.fetch(
102
102
  `/constructionprojects/${EPROID}/work/${work.ARBID}`,
103
103
  {
104
104
  method: "post",
105
105
  body,
106
- }
106
+ },
107
107
  );
108
108
 
109
109
  if (!response.ok) {
@@ -113,7 +113,7 @@ export default class BuildingService extends GwrService {
113
113
  errorKey: Building.FORBIDDEN_BUILDING_CLASS_ERROR,
114
114
 
115
115
  errorMessage: this.intl.t(
116
- "ember-gwr.building.forbiddenBuildingClassError"
116
+ "ember-gwr.building.forbiddenBuildingClassError",
117
117
  ),
118
118
  },
119
119
 
@@ -123,7 +123,7 @@ export default class BuildingService extends GwrService {
123
123
  "ember-gwr.building.buildingEntrance.localityError",
124
124
  {
125
125
  htmlSafe: true,
126
- }
126
+ },
127
127
  ),
128
128
  },
129
129
  ]);
@@ -169,7 +169,7 @@ export default class BuildingService extends GwrService {
169
169
  transition,
170
170
  cascadeLevel,
171
171
  isDryRun,
172
- buildingWork
172
+ buildingWork,
173
173
  ) {
174
174
  await Promise.all(
175
175
  buildingWork.building.buildingEntrance.map((buildingEntrance) =>
@@ -177,7 +177,7 @@ export default class BuildingService extends GwrService {
177
177
  buildingEntrance.dwelling.map(async (dwelling) => {
178
178
  if (
179
179
  [Dwelling.STATUS_PROJECTED, Dwelling.STATUS_APPROVED].includes(
180
- dwelling.dwellingStatus
180
+ dwelling.dwellingStatus,
181
181
  )
182
182
  ) {
183
183
  await this.dwelling.setToApprovedDwelling(
@@ -185,7 +185,7 @@ export default class BuildingService extends GwrService {
185
185
  cascadeLevel - 1,
186
186
  isDryRun,
187
187
  dwelling,
188
- buildingWork.building.EGID
188
+ buildingWork.building.EGID,
189
189
  );
190
190
  } else {
191
191
  // Display message with link to dwelling with issue
@@ -200,9 +200,9 @@ export default class BuildingService extends GwrService {
200
200
  states,
201
201
  };
202
202
  }
203
- })
204
- )
205
- )
203
+ }),
204
+ ),
205
+ ),
206
206
  );
207
207
 
208
208
  if (
@@ -230,7 +230,7 @@ export default class BuildingService extends GwrService {
230
230
  transition,
231
231
  cascadeLevel,
232
232
  isDryRun,
233
- buildingWork
233
+ buildingWork,
234
234
  ) {
235
235
  await Promise.all(
236
236
  buildingWork.building.buildingEntrance.map((buildingEntrance) =>
@@ -253,9 +253,9 @@ export default class BuildingService extends GwrService {
253
253
  ],
254
254
  };
255
255
  }
256
- })
257
- )
258
- )
256
+ }),
257
+ ),
258
+ ),
259
259
  );
260
260
 
261
261
  if (
@@ -285,7 +285,7 @@ export default class BuildingService extends GwrService {
285
285
  transition,
286
286
  cascadeLevel,
287
287
  isDryRun,
288
- buildingWork
288
+ buildingWork,
289
289
  ) {
290
290
  await Promise.all(
291
291
  buildingWork.building.buildingEntrance.map((buildingEntrance) =>
@@ -310,9 +310,9 @@ export default class BuildingService extends GwrService {
310
310
  ],
311
311
  };
312
312
  }
313
- })
314
- )
315
- )
313
+ }),
314
+ ),
315
+ ),
316
316
  );
317
317
 
318
318
  if (
@@ -340,7 +340,7 @@ export default class BuildingService extends GwrService {
340
340
  transition,
341
341
  cascadeLevel,
342
342
  isDryRun,
343
- buildingWork
343
+ buildingWork,
344
344
  ) {
345
345
  await Promise.all(
346
346
  buildingWork.building.buildingEntrance.map((buildingEntrance) =>
@@ -362,7 +362,7 @@ export default class BuildingService extends GwrService {
362
362
  cascadeLevel - 1,
363
363
  isDryRun,
364
364
  dwelling,
365
- buildingWork.building.EGID
365
+ buildingWork.building.EGID,
366
366
  );
367
367
  } else {
368
368
  // Display message with link to dwelling with issue
@@ -381,9 +381,9 @@ export default class BuildingService extends GwrService {
381
381
  states,
382
382
  };
383
383
  }
384
- })
385
- )
386
- )
384
+ }),
385
+ ),
386
+ ),
387
387
  );
388
388
 
389
389
  if (
@@ -411,7 +411,7 @@ export default class BuildingService extends GwrService {
411
411
  transition,
412
412
  cascadeLevel,
413
413
  isDryRun,
414
- buildingWork
414
+ buildingWork,
415
415
  ) {
416
416
  await Promise.all(
417
417
  buildingWork.building.buildingEntrance.map((buildingEntrance) =>
@@ -430,7 +430,7 @@ export default class BuildingService extends GwrService {
430
430
  cascadeLevel - 1,
431
431
  isDryRun,
432
432
  dwelling,
433
- buildingWork.building.EGID
433
+ buildingWork.building.EGID,
434
434
  );
435
435
  } else {
436
436
  // Display message with link to dwelling with issue
@@ -450,9 +450,9 @@ export default class BuildingService extends GwrService {
450
450
  states,
451
451
  };
452
452
  }
453
- })
454
- )
455
- )
453
+ }),
454
+ ),
455
+ ),
456
456
  );
457
457
 
458
458
  if (
@@ -480,7 +480,7 @@ export default class BuildingService extends GwrService {
480
480
  transition,
481
481
  cascadeLevel,
482
482
  isDryRun,
483
- buildingWork
483
+ buildingWork,
484
484
  ) {
485
485
  await Promise.all(
486
486
  buildingWork.building.buildingEntrance.map((buildingEntrance) =>
@@ -497,7 +497,7 @@ export default class BuildingService extends GwrService {
497
497
  cascadeLevel - 1,
498
498
  isDryRun,
499
499
  dwelling,
500
- buildingWork.building.EGID
500
+ buildingWork.building.EGID,
501
501
  );
502
502
  } else {
503
503
  // Display message with link to dwelling with issue
@@ -515,9 +515,9 @@ export default class BuildingService extends GwrService {
515
515
  states,
516
516
  };
517
517
  }
518
- })
519
- )
520
- )
518
+ }),
519
+ ),
520
+ ),
521
521
  );
522
522
 
523
523
  if (
@@ -549,7 +549,7 @@ export default class BuildingService extends GwrService {
549
549
  {
550
550
  method: "put",
551
551
  body,
552
- }
552
+ },
553
553
  );
554
554
 
555
555
  if (!response.ok) {
@@ -22,7 +22,7 @@ export default class ConstructionProjectService extends GwrService {
22
22
  return null;
23
23
  }
24
24
  const response = await this.authFetch.fetch(
25
- `/constructionprojects/${EPROID}`
25
+ `/constructionprojects/${EPROID}`,
26
26
  );
27
27
  const xml = await response.text();
28
28
  const project = this.createAndCache(xml);
@@ -46,7 +46,7 @@ export default class ConstructionProjectService extends GwrService {
46
46
  method: "put",
47
47
 
48
48
  body,
49
- }
49
+ },
50
50
  );
51
51
 
52
52
  if (!response.ok) {
@@ -88,7 +88,7 @@ export default class ConstructionProjectService extends GwrService {
88
88
  {
89
89
  method: "post",
90
90
  body,
91
- }
91
+ },
92
92
  );
93
93
 
94
94
  if (!response.ok) {
@@ -104,7 +104,7 @@ export default class ConstructionProjectService extends GwrService {
104
104
  const ARBID = model.getFieldFromXML(
105
105
  "ARBID",
106
106
  Number,
107
- "addWorkToProjectResponse"
107
+ "addWorkToProjectResponse",
108
108
  );
109
109
 
110
110
  buildingWork.ARBID = ARBID;
@@ -119,7 +119,7 @@ export default class ConstructionProjectService extends GwrService {
119
119
  {
120
120
  method: "put",
121
121
  body,
122
- }
122
+ },
123
123
  );
124
124
 
125
125
  if (!response.ok) {
@@ -139,7 +139,7 @@ export default class ConstructionProjectService extends GwrService {
139
139
  `/constructionprojects/${projectId}/work/${workId}`,
140
140
  {
141
141
  method: "delete",
142
- }
142
+ },
143
143
  );
144
144
 
145
145
  if (!response.ok) {
@@ -165,7 +165,7 @@ export default class ConstructionProjectService extends GwrService {
165
165
  // should be okay. Would be a future pain point if this requirement
166
166
  // would change.
167
167
  const projects = yield Promise.all(
168
- links.map(({ eproid }) => this.getFromCacheOrApi(eproid))
168
+ links.map(({ eproid }) => this.getFromCacheOrApi(eproid)),
169
169
  );
170
170
 
171
171
  // Remove no longer available projects
@@ -178,7 +178,7 @@ export default class ConstructionProjectService extends GwrService {
178
178
  .find(({ eproid }) => Number(eproid) === projectId);
179
179
  await link.destroyRecord();
180
180
  this.all.lastSuccessful.value = this.all.lastSuccessful.value.filter(
181
- (project) => project.EPROID !== projectId
181
+ (project) => project.EPROID !== projectId,
182
182
  );
183
183
  }
184
184
 
@@ -202,7 +202,7 @@ export default class ConstructionProjectService extends GwrService {
202
202
  transition,
203
203
  cascadeLevel,
204
204
  isDryRun,
205
- project
205
+ project,
206
206
  ) {
207
207
  await Promise.all(
208
208
  project.work.map(async (buildingWork) => {
@@ -214,14 +214,14 @@ export default class ConstructionProjectService extends GwrService {
214
214
  if (buildingWork.kindOfWork === 6001) {
215
215
  if (
216
216
  [Building.STATUS_PROJECTED, Building.STATUS_APPROVED].includes(
217
- buildingWork.building.buildingStatus
217
+ buildingWork.building.buildingStatus,
218
218
  )
219
219
  ) {
220
220
  await this.building.setToApprovedBuilding(
221
221
  "setToApprovedBuilding",
222
222
  cascadeLevel - 1,
223
223
  isDryRun,
224
- buildingWork
224
+ buildingWork,
225
225
  );
226
226
  } else {
227
227
  // Display message with link to building with issue
@@ -252,15 +252,15 @@ export default class ConstructionProjectService extends GwrService {
252
252
  cascadeLevel - 1,
253
253
  isDryRun,
254
254
  dwelling,
255
- buildingWork.building.EGID
255
+ buildingWork.building.EGID,
256
256
  );
257
257
  }
258
- })
259
- )
260
- )
258
+ }),
259
+ ),
260
+ ),
261
261
  );
262
262
  }
263
- })
263
+ }),
264
264
  );
265
265
 
266
266
  if (
@@ -279,7 +279,7 @@ export default class ConstructionProjectService extends GwrService {
279
279
  transition,
280
280
  cascadeLevel,
281
281
  isDryRun,
282
- project
282
+ project,
283
283
  ) {
284
284
  await Promise.all(
285
285
  project.work.map(async (buildingWork) => {
@@ -300,7 +300,7 @@ export default class ConstructionProjectService extends GwrService {
300
300
  "setToNotRealizedBuilding",
301
301
  cascadeLevel - 1,
302
302
  isDryRun,
303
- buildingWork
303
+ buildingWork,
304
304
  );
305
305
  } else {
306
306
  // Display message with link to building with issue
@@ -335,15 +335,15 @@ export default class ConstructionProjectService extends GwrService {
335
335
  cascadeLevel - 1,
336
336
  isDryRun,
337
337
  dwelling,
338
- buildingWork.building.EGID
338
+ buildingWork.building.EGID,
339
339
  );
340
340
  }
341
- })
342
- )
343
- )
341
+ }),
342
+ ),
343
+ ),
344
344
  );
345
345
  }
346
- })
346
+ }),
347
347
  );
348
348
 
349
349
  if (
@@ -362,7 +362,7 @@ export default class ConstructionProjectService extends GwrService {
362
362
  transition,
363
363
  cascadeLevel,
364
364
  isDryRun,
365
- project
365
+ project,
366
366
  ) {
367
367
  if (
368
368
  !isDryRun &&
@@ -380,7 +380,7 @@ export default class ConstructionProjectService extends GwrService {
380
380
  transition,
381
381
  cascadeLevel,
382
382
  isDryRun,
383
- project
383
+ project,
384
384
  ) {
385
385
  /** TODO: throws error for any kind of project (Tiefbau / Hochbau)
386
386
  *<ns2:errorList>
@@ -442,11 +442,11 @@ export default class ConstructionProjectService extends GwrService {
442
442
  };
443
443
  }
444
444
  }
445
- })
446
- )
447
- )
445
+ }),
446
+ ),
447
+ ),
448
448
  );
449
- })
449
+ }),
450
450
  );
451
451
 
452
452
  if (
@@ -465,7 +465,7 @@ export default class ConstructionProjectService extends GwrService {
465
465
  transition,
466
466
  cascadeLevel,
467
467
  isDryRun,
468
- project
468
+ project,
469
469
  ) {
470
470
  await Promise.all(
471
471
  project.work.map(async (buildingWork) => {
@@ -486,7 +486,7 @@ export default class ConstructionProjectService extends GwrService {
486
486
  "setToNotRealizedBuilding",
487
487
  cascadeLevel - 1,
488
488
  isDryRun,
489
- buildingWork
489
+ buildingWork,
490
490
  );
491
491
  } else {
492
492
  // Display message with link to building with issue
@@ -521,7 +521,7 @@ export default class ConstructionProjectService extends GwrService {
521
521
  cascadeLevel - 1,
522
522
  isDryRun,
523
523
  dwelling,
524
- buildingWork.building.EGID
524
+ buildingWork.building.EGID,
525
525
  );
526
526
  } else {
527
527
  // Display message with link to dwelling with issue
@@ -540,12 +540,12 @@ export default class ConstructionProjectService extends GwrService {
540
540
  states,
541
541
  };
542
542
  }
543
- })
544
- )
545
- )
543
+ }),
544
+ ),
545
+ ),
546
546
  );
547
547
  }
548
- })
548
+ }),
549
549
  );
550
550
 
551
551
  if (
@@ -564,7 +564,7 @@ export default class ConstructionProjectService extends GwrService {
564
564
  transition,
565
565
  cascadeLevel,
566
566
  isDryRun,
567
- project
567
+ project,
568
568
  ) {
569
569
  await Promise.all(
570
570
  project.work.map(async (buildingWork) => {
@@ -589,7 +589,7 @@ export default class ConstructionProjectService extends GwrService {
589
589
  "setToNotUsableBuilding",
590
590
  cascadeLevel - 1,
591
591
  isDryRun,
592
- buildingWork
592
+ buildingWork,
593
593
  );
594
594
  } else {
595
595
  // Display message with link to building with issue
@@ -618,7 +618,7 @@ export default class ConstructionProjectService extends GwrService {
618
618
  "setToNotRealizedBuilding",
619
619
  cascadeLevel - 1,
620
620
  isDryRun,
621
- buildingWork
621
+ buildingWork,
622
622
  );
623
623
  } else {
624
624
  // Display message with link to building with issue
@@ -654,7 +654,7 @@ export default class ConstructionProjectService extends GwrService {
654
654
  cascadeLevel - 1,
655
655
  isDryRun,
656
656
  dwelling,
657
- buildingWork.building.EGID
657
+ buildingWork.building.EGID,
658
658
  );
659
659
  } else {
660
660
  // Display message with link to dwelling with issue
@@ -673,12 +673,12 @@ export default class ConstructionProjectService extends GwrService {
673
673
  states,
674
674
  };
675
675
  }
676
- })
677
- )
678
- )
676
+ }),
677
+ ),
678
+ ),
679
679
  );
680
680
  }
681
- })
681
+ }),
682
682
  );
683
683
 
684
684
  if (
@@ -697,7 +697,7 @@ export default class ConstructionProjectService extends GwrService {
697
697
  transition,
698
698
  cascadeLevel,
699
699
  isDryRun,
700
- project
700
+ project,
701
701
  ) {
702
702
  if (
703
703
  !isDryRun &&
@@ -715,7 +715,7 @@ export default class ConstructionProjectService extends GwrService {
715
715
  transition,
716
716
  cascadeLevel,
717
717
  isDryRun,
718
- project
718
+ project,
719
719
  ) {
720
720
  if (
721
721
  !isDryRun &&
@@ -737,7 +737,7 @@ export default class ConstructionProjectService extends GwrService {
737
737
  {
738
738
  method: "put",
739
739
  body,
740
- }
740
+ },
741
741
  );
742
742
 
743
743
  if (!response.ok) {
@@ -746,7 +746,7 @@ export default class ConstructionProjectService extends GwrService {
746
746
  {
747
747
  errorKey: this.ConstructionProject.MISSING_BUILDING_ERROR,
748
748
  errorMessage: this.intl.t(
749
- "ember-gwr.constructionProject.missingBuildingError"
749
+ "ember-gwr.constructionProject.missingBuildingError",
750
750
  ),
751
751
  },
752
752
  ]);
@@ -777,7 +777,7 @@ export default class ConstructionProjectService extends GwrService {
777
777
  correctStatus(project, newStatus) {
778
778
  const necessaryParameters =
779
779
  ConstructionProject.projectTransitionParametersMapping[newStatus].map(
780
- (param) => param.field
780
+ (param) => param.field,
781
781
  );
782
782
  ConstructionProject.statusParameters.forEach((parameter) => {
783
783
  if (project[parameter] && !necessaryParameters.includes(parameter)) {
@@ -18,7 +18,7 @@ export default class DwellingService extends GwrService {
18
18
  return null;
19
19
  }
20
20
  const response = await this.authFetch.fetch(
21
- `/buildings/${EGID}/dwellings/${EWID}`
21
+ `/buildings/${EGID}/dwellings/${EWID}`,
22
22
  );
23
23
  const xml = await response.text();
24
24
  const dwellingComplete = new DwellingComplete(xml);
@@ -33,14 +33,14 @@ export default class DwellingService extends GwrService {
33
33
  const body = this.xml.buildXMLRequest(
34
34
  "modifyDwelling",
35
35
  dwelling,
36
- "Update dwelling"
36
+ "Update dwelling",
37
37
  );
38
38
  const response = await this.authFetch.fetch(
39
39
  `/buildings/${EGID}/dwellings/${dwelling.EWID}`,
40
40
  {
41
41
  method: "put",
42
42
  body,
43
- }
43
+ },
44
44
  );
45
45
 
46
46
  if (!response.ok) {
@@ -59,14 +59,14 @@ export default class DwellingService extends GwrService {
59
59
  const body = this.xml.buildXMLRequest(
60
60
  "reallocateDwelling",
61
61
  { newEDID: dwelling.EDID, oldEDID: dwelling.oldEDID },
62
- "Reallocate dwelling"
62
+ "Reallocate dwelling",
63
63
  );
64
64
  const response = await this.authFetch.fetch(
65
65
  `/buildings/${EGID}/dwellings/${dwelling.EWID}/reallocate`,
66
66
  {
67
67
  method: "put",
68
68
  body,
69
- }
69
+ },
70
70
  );
71
71
 
72
72
  if (!response.ok) {
@@ -82,14 +82,14 @@ export default class DwellingService extends GwrService {
82
82
  const body = this.xml.buildXMLRequest(
83
83
  "addDwelling",
84
84
  dwelling,
85
- "Add dwelling"
85
+ "Add dwelling",
86
86
  );
87
87
  const response = await this.authFetch.fetch(
88
88
  `/buildings/${EGID}/entrance/${dwelling.EDID}/dwellings/work`,
89
89
  {
90
90
  method: "post",
91
91
  body,
92
- }
92
+ },
93
93
  );
94
94
 
95
95
  if (!response.ok) {
@@ -112,14 +112,14 @@ export default class DwellingService extends GwrService {
112
112
  const body = this.xml.buildXMLRequest(
113
113
  "deactivateDwelling",
114
114
  null,
115
- "Remove Dwelling"
115
+ "Remove Dwelling",
116
116
  );
117
117
  const response = await this.authFetch.fetch(
118
118
  `/buildings/${EGID}/dwellings/${EWID}`,
119
119
  {
120
120
  method: "delete",
121
121
  body,
122
- }
122
+ },
123
123
  );
124
124
  if (!response.ok) {
125
125
  const xmlErrors = await response.text();
@@ -144,7 +144,7 @@ export default class DwellingService extends GwrService {
144
144
  cascadeLevel,
145
145
  isDryRun,
146
146
  dwelling,
147
- EGID
147
+ EGID,
148
148
  ) {
149
149
  if (
150
150
  !isDryRun &&
@@ -171,7 +171,7 @@ export default class DwellingService extends GwrService {
171
171
  cascadeLevel,
172
172
  isDryRun,
173
173
  dwelling,
174
- EGID
174
+ EGID,
175
175
  ) {
176
176
  const building = await this.building.getFromCacheOrApi(EGID);
177
177
  if (
@@ -214,7 +214,7 @@ export default class DwellingService extends GwrService {
214
214
  cascadeLevel,
215
215
  isDryRun,
216
216
  dwelling,
217
- EGID
217
+ EGID,
218
218
  ) {
219
219
  if (
220
220
  !isDryRun &&
@@ -241,7 +241,7 @@ export default class DwellingService extends GwrService {
241
241
  cascadeLevel,
242
242
  isDryRun,
243
243
  dwelling,
244
- EGID
244
+ EGID,
245
245
  ) {
246
246
  const building = await this.building.getFromCacheOrApi(EGID);
247
247
  if (
@@ -284,7 +284,7 @@ export default class DwellingService extends GwrService {
284
284
  cascadeLevel,
285
285
  isDryRun,
286
286
  dwelling,
287
- EGID
287
+ EGID,
288
288
  ) {
289
289
  const building = await this.building.getFromCacheOrApi(EGID);
290
290
  if (
@@ -331,7 +331,7 @@ export default class DwellingService extends GwrService {
331
331
  cascadeLevel,
332
332
  isDryRun,
333
333
  dwelling,
334
- EGID
334
+ EGID,
335
335
  ) {
336
336
  const building = await this.building.getFromCacheOrApi(EGID);
337
337
  if (
@@ -377,7 +377,7 @@ export default class DwellingService extends GwrService {
377
377
  {
378
378
  method: "put",
379
379
  body,
380
- }
380
+ },
381
381
  );
382
382
 
383
383
  if (!response.ok) {