@loxia/mst-viewer 8.1.3-202511121541 → 8.1.3-202511121625

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 (151) hide show
  1. package/esm2022/lib/atomic-components/message/message.component.mjs +3 -3
  2. package/esm2022/lib/model/ritdeel.mjs +4 -4
  3. package/esm2022/lib/mst-viewer.module.mjs +1 -2
  4. package/esm2022/lib/resources/mstlogging.resource.mjs +145 -12
  5. package/esm2022/lib/services/viewer-control.service.mjs +4 -3
  6. package/esm2022/lib/state/actions/actions.mjs +1 -1
  7. package/esm2022/lib/state/effect/bepaal-ongeplande-acties.effect.mjs +2 -2
  8. package/esm2022/lib/state/effect/bepaal-sb-infos.effect.mjs +2 -2
  9. package/esm2022/lib/state/effect/ritdelen.effect.mjs +22 -22
  10. package/esm2022/lib/state/mst-editor-state.mjs +3 -2
  11. package/esm2022/lib/util/actie-helper.mjs +5 -5
  12. package/esm2022/lib/util/logging-helper.mjs +12 -9
  13. package/esm2022/lib/util/zone-util.mjs +1 -2
  14. package/fesm2022/loxia-mst-viewer.mjs +204 -1405
  15. package/fesm2022/loxia-mst-viewer.mjs.map +1 -1
  16. package/lib/atomic-components/message/message.component.d.ts +2 -2
  17. package/lib/model/ritdeel.d.ts +5 -6
  18. package/lib/resources/mstlogging.resource.d.ts +95 -6
  19. package/lib/state/actions/actions.d.ts +4 -4
  20. package/lib/state/effect/ritdelen.effect.d.ts +3 -4
  21. package/lib/state/mst-editor-state.d.ts +4 -4
  22. package/lib/util/logging-helper.d.ts +6 -4
  23. package/package.json +1 -7
  24. package/esm2022/generated/openapi/api/api.mjs +0 -23
  25. package/esm2022/generated/openapi/api/appConfigController.service.mjs +0 -140
  26. package/esm2022/generated/openapi/api/appConfigController.serviceInterface.mjs +0 -2
  27. package/esm2022/generated/openapi/api/bewegingController.service.mjs +0 -155
  28. package/esm2022/generated/openapi/api/bewegingController.serviceInterface.mjs +0 -2
  29. package/esm2022/generated/openapi/api/class0BuildProperties.service.mjs +0 -140
  30. package/esm2022/generated/openapi/api/class0BuildProperties.serviceInterface.mjs +0 -2
  31. package/esm2022/generated/openapi/api/connectorController.service.mjs +0 -146
  32. package/esm2022/generated/openapi/api/connectorController.serviceInterface.mjs +0 -2
  33. package/esm2022/generated/openapi/api/logController.service.mjs +0 -150
  34. package/esm2022/generated/openapi/api/logController.serviceInterface.mjs +0 -2
  35. package/esm2022/generated/openapi/api/p21Controller.service.mjs +0 -236
  36. package/esm2022/generated/openapi/api/p21Controller.serviceInterface.mjs +0 -2
  37. package/esm2022/generated/openapi/api/sbController.service.mjs +0 -202
  38. package/esm2022/generated/openapi/api/sbController.serviceInterface.mjs +0 -2
  39. package/esm2022/generated/openapi/api.module.mjs +0 -40
  40. package/esm2022/generated/openapi/configuration.mjs +0 -99
  41. package/esm2022/generated/openapi/encoder.mjs +0 -19
  42. package/esm2022/generated/openapi/index.mjs +0 -7
  43. package/esm2022/generated/openapi/model/actieDto.mjs +0 -13
  44. package/esm2022/generated/openapi/model/algemeneRitDto.mjs +0 -13
  45. package/esm2022/generated/openapi/model/bewegingDto.mjs +0 -2
  46. package/esm2022/generated/openapi/model/frontendKeycloakConfig.mjs +0 -13
  47. package/esm2022/generated/openapi/model/frontendProperties.mjs +0 -2
  48. package/esm2022/generated/openapi/model/logDto.mjs +0 -2
  49. package/esm2022/generated/openapi/model/models.mjs +0 -10
  50. package/esm2022/generated/openapi/model/ritRequestDto.mjs +0 -2
  51. package/esm2022/generated/openapi/model/signaleringsbeeldDto.mjs +0 -13
  52. package/esm2022/generated/openapi/model/signaleringsbeeldRequestDto.mjs +0 -13
  53. package/esm2022/generated/openapi/param.mjs +0 -2
  54. package/esm2022/generated/openapi/variables.mjs +0 -9
  55. package/esm2022/src/generated/openapi/api/api.mjs +0 -23
  56. package/esm2022/src/generated/openapi/api/appConfigController.service.mjs +0 -140
  57. package/esm2022/src/generated/openapi/api/appConfigController.serviceInterface.mjs +0 -2
  58. package/esm2022/src/generated/openapi/api/bewegingController.service.mjs +0 -155
  59. package/esm2022/src/generated/openapi/api/bewegingController.serviceInterface.mjs +0 -2
  60. package/esm2022/src/generated/openapi/api/class0BuildProperties.service.mjs +0 -140
  61. package/esm2022/src/generated/openapi/api/class0BuildProperties.serviceInterface.mjs +0 -2
  62. package/esm2022/src/generated/openapi/api/connectorController.service.mjs +0 -146
  63. package/esm2022/src/generated/openapi/api/connectorController.serviceInterface.mjs +0 -2
  64. package/esm2022/src/generated/openapi/api/logController.service.mjs +0 -150
  65. package/esm2022/src/generated/openapi/api/logController.serviceInterface.mjs +0 -2
  66. package/esm2022/src/generated/openapi/api/p21Controller.service.mjs +0 -236
  67. package/esm2022/src/generated/openapi/api/p21Controller.serviceInterface.mjs +0 -2
  68. package/esm2022/src/generated/openapi/api/sbController.service.mjs +0 -202
  69. package/esm2022/src/generated/openapi/api/sbController.serviceInterface.mjs +0 -2
  70. package/esm2022/src/generated/openapi/api.module.mjs +0 -40
  71. package/esm2022/src/generated/openapi/configuration.mjs +0 -99
  72. package/esm2022/src/generated/openapi/encoder.mjs +0 -19
  73. package/esm2022/src/generated/openapi/index.mjs +0 -7
  74. package/esm2022/src/generated/openapi/loxia-mst-viewer-src-generated-openapi.mjs +0 -5
  75. package/esm2022/src/generated/openapi/model/actieDto.mjs +0 -13
  76. package/esm2022/src/generated/openapi/model/algemeneRitDto.mjs +0 -13
  77. package/esm2022/src/generated/openapi/model/bewegingDto.mjs +0 -2
  78. package/esm2022/src/generated/openapi/model/frontendKeycloakConfig.mjs +0 -13
  79. package/esm2022/src/generated/openapi/model/frontendProperties.mjs +0 -2
  80. package/esm2022/src/generated/openapi/model/logDto.mjs +0 -2
  81. package/esm2022/src/generated/openapi/model/models.mjs +0 -10
  82. package/esm2022/src/generated/openapi/model/ritRequestDto.mjs +0 -2
  83. package/esm2022/src/generated/openapi/model/signaleringsbeeldDto.mjs +0 -13
  84. package/esm2022/src/generated/openapi/model/signaleringsbeeldRequestDto.mjs +0 -13
  85. package/esm2022/src/generated/openapi/param.mjs +0 -2
  86. package/esm2022/src/generated/openapi/variables.mjs +0 -9
  87. package/fesm2022/loxia-mst-viewer-src-generated-openapi.mjs +0 -1341
  88. package/fesm2022/loxia-mst-viewer-src-generated-openapi.mjs.map +0 -1
  89. package/generated/openapi/api/api.d.ts +0 -22
  90. package/generated/openapi/api/appConfigController.service.d.ts +0 -38
  91. package/generated/openapi/api/appConfigController.serviceInterface.d.ts +0 -24
  92. package/generated/openapi/api/bewegingController.service.d.ts +0 -40
  93. package/generated/openapi/api/bewegingController.serviceInterface.d.ts +0 -27
  94. package/generated/openapi/api/class0BuildProperties.service.d.ts +0 -36
  95. package/generated/openapi/api/class0BuildProperties.serviceInterface.d.ts +0 -23
  96. package/generated/openapi/api/connectorController.service.d.ts +0 -38
  97. package/generated/openapi/api/connectorController.serviceInterface.d.ts +0 -25
  98. package/generated/openapi/api/logController.service.d.ts +0 -38
  99. package/generated/openapi/api/logController.serviceInterface.d.ts +0 -25
  100. package/generated/openapi/api/p21Controller.service.d.ts +0 -62
  101. package/generated/openapi/api/p21Controller.serviceInterface.d.ts +0 -30
  102. package/generated/openapi/api/sbController.service.d.ts +0 -60
  103. package/generated/openapi/api/sbController.serviceInterface.d.ts +0 -32
  104. package/generated/openapi/api.module.d.ts +0 -11
  105. package/generated/openapi/configuration.d.ts +0 -104
  106. package/generated/openapi/encoder.d.ts +0 -11
  107. package/generated/openapi/index.d.ts +0 -6
  108. package/generated/openapi/model/actieDto.d.ts +0 -35
  109. package/generated/openapi/model/algemeneRitDto.d.ts +0 -28
  110. package/generated/openapi/model/bewegingDto.d.ts +0 -37
  111. package/generated/openapi/model/frontendKeycloakConfig.d.ts +0 -16
  112. package/generated/openapi/model/frontendProperties.d.ts +0 -15
  113. package/generated/openapi/model/logDto.d.ts +0 -22
  114. package/generated/openapi/model/models.d.ts +0 -9
  115. package/generated/openapi/model/ritRequestDto.d.ts +0 -17
  116. package/generated/openapi/model/signaleringsbeeldDto.d.ts +0 -16
  117. package/generated/openapi/model/signaleringsbeeldRequestDto.d.ts +0 -16
  118. package/generated/openapi/param.d.ts +0 -37
  119. package/generated/openapi/variables.d.ts +0 -8
  120. package/src/generated/openapi/README.md +0 -226
  121. package/src/generated/openapi/api/api.d.ts +0 -22
  122. package/src/generated/openapi/api/appConfigController.service.d.ts +0 -38
  123. package/src/generated/openapi/api/appConfigController.serviceInterface.d.ts +0 -24
  124. package/src/generated/openapi/api/bewegingController.service.d.ts +0 -40
  125. package/src/generated/openapi/api/bewegingController.serviceInterface.d.ts +0 -27
  126. package/src/generated/openapi/api/class0BuildProperties.service.d.ts +0 -36
  127. package/src/generated/openapi/api/class0BuildProperties.serviceInterface.d.ts +0 -23
  128. package/src/generated/openapi/api/connectorController.service.d.ts +0 -38
  129. package/src/generated/openapi/api/connectorController.serviceInterface.d.ts +0 -25
  130. package/src/generated/openapi/api/logController.service.d.ts +0 -38
  131. package/src/generated/openapi/api/logController.serviceInterface.d.ts +0 -25
  132. package/src/generated/openapi/api/p21Controller.service.d.ts +0 -62
  133. package/src/generated/openapi/api/p21Controller.serviceInterface.d.ts +0 -30
  134. package/src/generated/openapi/api/sbController.service.d.ts +0 -60
  135. package/src/generated/openapi/api/sbController.serviceInterface.d.ts +0 -32
  136. package/src/generated/openapi/api.module.d.ts +0 -11
  137. package/src/generated/openapi/configuration.d.ts +0 -104
  138. package/src/generated/openapi/encoder.d.ts +0 -11
  139. package/src/generated/openapi/index.d.ts +0 -6
  140. package/src/generated/openapi/model/actieDto.d.ts +0 -35
  141. package/src/generated/openapi/model/algemeneRitDto.d.ts +0 -28
  142. package/src/generated/openapi/model/bewegingDto.d.ts +0 -37
  143. package/src/generated/openapi/model/frontendKeycloakConfig.d.ts +0 -16
  144. package/src/generated/openapi/model/frontendProperties.d.ts +0 -15
  145. package/src/generated/openapi/model/logDto.d.ts +0 -22
  146. package/src/generated/openapi/model/models.d.ts +0 -9
  147. package/src/generated/openapi/model/ritRequestDto.d.ts +0 -17
  148. package/src/generated/openapi/model/signaleringsbeeldDto.d.ts +0 -16
  149. package/src/generated/openapi/model/signaleringsbeeldRequestDto.d.ts +0 -16
  150. package/src/generated/openapi/param.d.ts +0 -37
  151. package/src/generated/openapi/variables.d.ts +0 -8
@@ -1,7 +1,7 @@
1
1
  import * as i2 from '@angular/common';
2
2
  import { CommonModule } from '@angular/common';
3
3
  import * as i0 from '@angular/core';
4
- import { EventEmitter, Output, Input, Component, Injectable, ChangeDetectionStrategy, ViewChild, InjectionToken, Optional, Inject, SkipSelf, NgModule, HostListener } from '@angular/core';
4
+ import { EventEmitter, Output, Input, Component, Injectable, ChangeDetectionStrategy, ViewChild, HostListener, NgModule } from '@angular/core';
5
5
  import * as i7 from '@loxia/imx-viewer';
6
6
  import { SelectieInfo, PopoverInfo, Point, SvgInfo, ImxViewerComponent, ImxViewerModule } from '@loxia/imx-viewer';
7
7
  import * as i4 from '@loxia/rijwegen';
@@ -11,13 +11,13 @@ import { createEffect, ofType, EffectsModule } from '@ngrx/effects';
11
11
  import * as i2$1 from '@ngrx/store';
12
12
  import { createAction, union, select, createReducer, on, StoreModule } from '@ngrx/store';
13
13
  import { ResourceModule } from '@ngx-resource/handler-ngx-http';
14
- import { BehaviorSubject, from, Subscription, combineLatest, of, throwError } from 'rxjs';
15
- import { take, filter, map, catchError, withLatestFrom, switchMap, tap } from 'rxjs/operators';
16
- import * as i1 from '@angular/common/http';
17
- import { HttpHeaders, HttpContext, HttpParams } from '@angular/common/http';
14
+ import { BehaviorSubject, Subscription, from, combineLatest, of, throwError } from 'rxjs';
18
15
  import { __decorate } from 'tslib';
19
- import * as i1$1 from '@ngx-resource/core';
16
+ import * as i1 from '@ngx-resource/core';
20
17
  import { Resource, ResourceAction, ResourceRequestMethod, ResourceParams, ResourceModel } from '@ngx-resource/core';
18
+ import { take, filter, map, catchError, withLatestFrom, switchMap, tap } from 'rxjs/operators';
19
+ import * as i1$1 from '@angular/common/http';
20
+ import { HttpHeaders } from '@angular/common/http';
21
21
 
22
22
  class Message {
23
23
  constructor(severity, text, timeout = 0) {
@@ -41,7 +41,7 @@ class MessageComponent {
41
41
  this.onClearMessage = new EventEmitter();
42
42
  }
43
43
  ngOnInit() {
44
- if (this.message && this.message.timeout > 0) {
44
+ if (this.message.timeout > 0) {
45
45
  setTimeout(() => {
46
46
  this.closeMessage({ stopPropagation: () => null });
47
47
  }, this.message.timeout);
@@ -53,7 +53,7 @@ class MessageComponent {
53
53
  this.message = undefined;
54
54
  }
55
55
  get severity() {
56
- return this.message?.severity ?? '?';
56
+ return this.message.severity;
57
57
  }
58
58
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: MessageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
59
59
  static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.7", type: MessageComponent, selector: "loxia-message", inputs: { message: "message" }, outputs: { onClearMessage: "onClearMessage" }, ngImport: i0, template: "<div id=\"alert-1\" *ngIf=\"message\"\n [ngClass]=\"severity\"\n class=\" loxia-message flex items-center p-4 text-white\" role=\"alert\">\n <svg class=\"flex-shrink-0 size-4 mt-0.5\" xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n <path d=\"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z\"></path>\n <path d=\"M12 9v4\"></path>\n <path d=\"M12 17h.01\"></path>\n </svg>\n <span class=\"sr-only\">Info</span>\n <div class=\"ms-3 text-sm font-medium\">\n {{message.text}}\n </div>\n <button type=\"button\"\n (click)=\"closeMessage($event)\"\n class=\"ms-auto -mx-1.5 -my-1.5 rounded-lg inline-flex items-center justify-center h-8 w-8\" data-dismiss-target=\"#alert-1\" aria-label=\"Close\">\n <span class=\"sr-only\">Close</span>\n <svg class=\"w-3 h-3\" aria-hidden=\"true\" xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 14 14\">\n <path stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6\"/>\n </svg>\n </button>\n</div>\n", styles: ["svg{background-color:transparent;stroke-width:unset}.loxia-message.information{background-color:#0288d1}.loxia-message.warning{background-color:#ff6a00}.loxia-message.notification{background-color:#f3ed38}.loxia-message.error{background-color:#b5061b}.loxia-message.success{background-color:#297d03}\n"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); }
@@ -299,6 +299,156 @@ const ritdeelActions = union({
299
299
  ritdeelInvoegen
300
300
  });
301
301
 
302
+ let MstLoggingResource = class MstLoggingResource extends Resource {
303
+ constructor(restHandler, store) {
304
+ super(restHandler);
305
+ this.store = store;
306
+ this.subscriptions = new Subscription();
307
+ this.subscriptions.add(this.store.select('baseUrl').subscribe(baseUrl => this.$setUrl(baseUrl)));
308
+ }
309
+ ngOnDestroy() {
310
+ this.subscriptions.unsubscribe();
311
+ }
312
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: MstLoggingResource, deps: [{ token: i1.ResourceHandler }, { token: i2$1.Store }], target: i0.ɵɵFactoryTarget.Injectable }); }
313
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: MstLoggingResource }); }
314
+ };
315
+ __decorate([
316
+ ResourceAction({
317
+ path: '/',
318
+ method: ResourceRequestMethod.Post
319
+ })
320
+ ], MstLoggingResource.prototype, "logErrorMessages", void 0);
321
+ MstLoggingResource = __decorate([
322
+ ResourceParams({
323
+ pathPrefix: '/mst/services/rest/logging'
324
+ })
325
+ ], MstLoggingResource);
326
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: MstLoggingResource, decorators: [{
327
+ type: Injectable
328
+ }], ctorParameters: () => [{ type: i1.ResourceHandler }, { type: i2$1.Store }], propDecorators: { logErrorMessages: [] } });
329
+ class MstLoggingDto extends ResourceModel {
330
+ constructor(data) {
331
+ super();
332
+ this.$resource = MstLoggingResource;
333
+ this.$setData(data);
334
+ }
335
+ toJSON() {
336
+ return {
337
+ iaVersie: this.iaVersie,
338
+ meldingLevel: this.meldingLevel,
339
+ meldingMessage: this.meldingMessage,
340
+ algemeneRitInfoDto: this.algemeneRitInfoDto,
341
+ actieDto: this.actieDto,
342
+ sbinfoDtos: this.sbinfoDtos
343
+ };
344
+ }
345
+ toString() {
346
+ return `${this.iaVersie},${this.meldingLevel},${this.meldingMessage},${this.algemeneRitInfoDto},
347
+ ${this.actieDto},${this.sbinfoDtos}`;
348
+ }
349
+ $setData(data) {
350
+ if (data) {
351
+ this.iaVersie = data.iaVersie;
352
+ this.meldingLevel = data.meldingLevel;
353
+ this.meldingMessage = data.meldingMessage;
354
+ this.algemeneRitInfoDto = data.algemeneRitInfoDto;
355
+ this.actieDto = data.actieDto;
356
+ this.sbinfoDtos = data.sbinfoDtos;
357
+ }
358
+ return this;
359
+ }
360
+ }
361
+ class ActieDto {
362
+ constructor(data) {
363
+ this.$setData(data);
364
+ }
365
+ toJSON() {
366
+ return {
367
+ pplgNaam: this.pplgNaam,
368
+ ritActieTypeOmschrijving: this.ritActieTypeOmschrijving,
369
+ ritActieStatus: this.ritActieStatus,
370
+ bewegingId: this.bewegingId,
371
+ wisselType: this.wisselType,
372
+ wisselNaam: this.wisselNaam,
373
+ wisselKantCode: this.wisselKantCode,
374
+ vanKilometerlint: this.vanKilometerlint,
375
+ vanKilometrering: this.vanKilometrering,
376
+ totKilometerlint: this.totKilometerlint,
377
+ totKilometrering: this.totKilometrering
378
+ };
379
+ }
380
+ toString() {
381
+ return `${this.pplgNaam},${this.ritActieTypeOmschrijving},${this.ritActieStatus},
382
+ ${this.bewegingId},${this.wisselType},${this.wisselNaam},${this.wisselKantCode},
383
+ ${this.vanKilometerlint},${this.vanKilometrering},${this.totKilometerlint},${this.totKilometrering}`;
384
+ }
385
+ $setData(data) {
386
+ if (data) {
387
+ this.pplgNaam = data.pplgNaam;
388
+ this.ritActieTypeOmschrijving = data.ritActieTypeOmschrijving;
389
+ this.ritActieStatus = data.ritActieStatus;
390
+ this.bewegingId = data.bewegingId;
391
+ this.wisselType = data.wisselType;
392
+ this.wisselNaam = data.wisselNaam;
393
+ this.wisselKantCode = data.wisselKantCode;
394
+ this.vanKilometerlint = data.vanKilometerlint;
395
+ this.vanKilometrering = data.vanKilometrering;
396
+ this.totKilometerlint = data.totKilometerlint;
397
+ this.totKilometrering = data.totKilometrering;
398
+ }
399
+ return this;
400
+ }
401
+ }
402
+ class AlgemeneRitInfoDto {
403
+ constructor(data) {
404
+ this.$setData(data);
405
+ }
406
+ toJSON() {
407
+ return {
408
+ id: this.id,
409
+ jaarplanId: this.jaarplanId,
410
+ volgnummer: this.volgnummer,
411
+ machineTypeId: this.machineTypeId,
412
+ machineTypeOmschrijving: this.machineTypeOmschrijving,
413
+ ritDatum: this.ritDatum,
414
+ startDatum: this.startDatum,
415
+ eindDatum: this.eindDatum,
416
+ ritNaam: this.ritNaam,
417
+ startLocatie: this.startLocatie,
418
+ eindLocatie: this.eindLocatie,
419
+ ritStatus: this.ritStatus,
420
+ modified: this.modified,
421
+ modifiedBy: this.modifiedBy,
422
+ planJobId: this.planJobId
423
+ };
424
+ }
425
+ toString() {
426
+ return `${this.id},${this.jaarplanId},${this.volgnummer},${this.machineTypeId},${this.machineTypeOmschrijving}
427
+ ,${this.ritDatum},${this.startDatum},${this.eindDatum},${this.ritNaam},${this.startLocatie}
428
+ ,${this.eindLocatie},${this.ritStatus},${this.modified},${this.modifiedBy},${this.planJobId}`;
429
+ }
430
+ $setData(data) {
431
+ if (data) {
432
+ this.id = data.id;
433
+ this.jaarplanId = data.jaarplanId;
434
+ this.volgnummer = data.volgnummer;
435
+ this.machineTypeId = data.machineTypeId;
436
+ this.machineTypeOmschrijving = data.machineTypeOmschrijving;
437
+ this.ritDatum = data.ritDatum;
438
+ this.startDatum = data.startDatum;
439
+ this.eindDatum = data.eindDatum;
440
+ this.ritNaam = data.ritNaam;
441
+ this.startLocatie = data.startLocatie;
442
+ this.eindLocatie = data.eindLocatie;
443
+ this.ritStatus = data.ritStatus;
444
+ this.modified = data.modified;
445
+ this.modifiedBy = data.modifiedBy;
446
+ this.planJobId = data.planJobId;
447
+ }
448
+ return this;
449
+ }
450
+ }
451
+
302
452
  class Utils {
303
453
  static flatMap(xs, f) {
304
454
  return xs.reduce((acc, x) => acc.concat(f(x)), []);
@@ -739,7 +889,7 @@ class ViewerControlService {
739
889
  }
740
890
  setOrigineelTreinPad(treinpad) {
741
891
  const rit = JSON.parse(JSON.stringify(treinpad));
742
- this.store.dispatch(SetAlgemeneRitInfo({
892
+ this.store.dispatch(SetAlgemeneRitInfo(new AlgemeneRitInfoDto({
743
893
  id: rit.id,
744
894
  jaarplanId: rit.jaarplanId,
745
895
  volgnummer: rit.volgnummer,
@@ -755,7 +905,7 @@ class ViewerControlService {
755
905
  modified: rit.modified,
756
906
  modifiedBy: rit.modifiedBy,
757
907
  planJobId: rit.planJobId
758
- }));
908
+ })));
759
909
  this.origineelTreinPad = rit;
760
910
  }
761
911
  isValideRit$() {
@@ -1017,1358 +1167,9 @@ class MessageBuilder {
1017
1167
  }
1018
1168
  }
1019
1169
 
1020
- /**
1021
- * Custom HttpParameterCodec
1022
- * Workaround for https://github.com/angular/angular/issues/18261
1023
- */
1024
- class CustomHttpParameterCodec {
1025
- encodeKey(k) {
1026
- return encodeURIComponent(k);
1027
- }
1028
- encodeValue(v) {
1029
- return encodeURIComponent(v);
1030
- }
1031
- decodeKey(k) {
1032
- return decodeURIComponent(k);
1033
- }
1034
- decodeValue(v) {
1035
- return decodeURIComponent(v);
1036
- }
1037
- }
1038
-
1039
- const BASE_PATH = new InjectionToken('basePath');
1040
- const COLLECTION_FORMATS = {
1041
- 'csv': ',',
1042
- 'tsv': ' ',
1043
- 'ssv': ' ',
1044
- 'pipes': '|'
1045
- };
1046
-
1047
- class Configuration {
1048
- constructor(configurationParameters = {}) {
1049
- this.apiKeys = configurationParameters.apiKeys;
1050
- this.username = configurationParameters.username;
1051
- this.password = configurationParameters.password;
1052
- this.accessToken = configurationParameters.accessToken;
1053
- this.basePath = configurationParameters.basePath;
1054
- this.withCredentials = configurationParameters.withCredentials;
1055
- this.encoder = configurationParameters.encoder;
1056
- if (configurationParameters.encodeParam) {
1057
- this.encodeParam = configurationParameters.encodeParam;
1058
- }
1059
- else {
1060
- this.encodeParam = param => this.defaultEncodeParam(param);
1061
- }
1062
- if (configurationParameters.credentials) {
1063
- this.credentials = configurationParameters.credentials;
1064
- }
1065
- else {
1066
- this.credentials = {};
1067
- }
1068
- // init default keycloak_auth credential
1069
- if (!this.credentials['keycloak_auth']) {
1070
- this.credentials['keycloak_auth'] = () => {
1071
- return typeof this.accessToken === 'function'
1072
- ? this.accessToken()
1073
- : this.accessToken;
1074
- };
1075
- }
1076
- }
1077
- /**
1078
- * Select the correct content-type to use for a request.
1079
- * Uses {@link Configuration#isJsonMime} to determine the correct content-type.
1080
- * If no content type is found return the first found type if the contentTypes is not empty
1081
- * @param contentTypes - the array of content types that are available for selection
1082
- * @returns the selected content-type or <code>undefined</code> if no selection could be made.
1083
- */
1084
- selectHeaderContentType(contentTypes) {
1085
- if (contentTypes.length === 0) {
1086
- return undefined;
1087
- }
1088
- const type = contentTypes.find((x) => this.isJsonMime(x));
1089
- if (type === undefined) {
1090
- return contentTypes[0];
1091
- }
1092
- return type;
1093
- }
1094
- /**
1095
- * Select the correct accept content-type to use for a request.
1096
- * Uses {@link Configuration#isJsonMime} to determine the correct accept content-type.
1097
- * If no content type is found return the first found type if the contentTypes is not empty
1098
- * @param accepts - the array of content types that are available for selection.
1099
- * @returns the selected content-type or <code>undefined</code> if no selection could be made.
1100
- */
1101
- selectHeaderAccept(accepts) {
1102
- if (accepts.length === 0) {
1103
- return undefined;
1104
- }
1105
- const type = accepts.find((x) => this.isJsonMime(x));
1106
- if (type === undefined) {
1107
- return accepts[0];
1108
- }
1109
- return type;
1110
- }
1111
- /**
1112
- * Check if the given MIME is a JSON MIME.
1113
- * JSON MIME examples:
1114
- * application/json
1115
- * application/json; charset=UTF8
1116
- * APPLICATION/JSON
1117
- * application/vnd.company+json
1118
- * @param mime - MIME (Multipurpose Internet Mail Extensions)
1119
- * @return True if the given MIME is JSON, false otherwise.
1120
- */
1121
- isJsonMime(mime) {
1122
- const jsonMime = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
1123
- return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
1124
- }
1125
- lookupCredential(key) {
1126
- const value = this.credentials[key];
1127
- return typeof value === 'function'
1128
- ? value()
1129
- : value;
1130
- }
1131
- defaultEncodeParam(param) {
1132
- // This implementation exists as fallback for missing configuration
1133
- // and for backwards compatibility to older typescript-angular generator versions.
1134
- // It only works for the 'simple' parameter style.
1135
- // Date-handling only works for the 'date-time' format.
1136
- // All other styles and Date-formats are probably handled incorrectly.
1137
- //
1138
- // But: if that's all you need (i.e.: the most common use-case): no need for customization!
1139
- const value = param.dataFormat === 'date-time' && param.value instanceof Date
1140
- ? param.value.toISOString()
1141
- : param.value;
1142
- return encodeURIComponent(String(value));
1143
- }
1144
- }
1145
-
1146
- /**
1147
- * MST
1148
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
1149
- *
1150
- * The version of the OpenAPI document: 1
1151
- *
1152
- *
1153
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1154
- * https://openapi-generator.tech
1155
- * Do not edit the class manually.
1156
- */
1157
- /* tslint:disable:no-unused-variable member-ordering */
1158
- class AppConfigControllerService {
1159
- constructor(httpClient, basePath, configuration) {
1160
- this.httpClient = httpClient;
1161
- this.basePath = 'http://localhost:8080/mst';
1162
- this.defaultHeaders = new HttpHeaders();
1163
- this.configuration = new Configuration();
1164
- if (configuration) {
1165
- this.configuration = configuration;
1166
- }
1167
- if (typeof this.configuration.basePath !== 'string') {
1168
- if (Array.isArray(basePath) && basePath.length > 0) {
1169
- basePath = basePath[0];
1170
- }
1171
- if (typeof basePath !== 'string') {
1172
- basePath = this.basePath;
1173
- }
1174
- this.configuration.basePath = basePath;
1175
- }
1176
- this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
1177
- }
1178
- // @ts-ignore
1179
- addToHttpParams(httpParams, value, key) {
1180
- if (typeof value === "object" && value instanceof Date === false) {
1181
- httpParams = this.addToHttpParamsRecursive(httpParams, value);
1182
- }
1183
- else {
1184
- httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
1185
- }
1186
- return httpParams;
1187
- }
1188
- addToHttpParamsRecursive(httpParams, value, key) {
1189
- if (value == null) {
1190
- return httpParams;
1191
- }
1192
- if (typeof value === "object") {
1193
- if (Array.isArray(value)) {
1194
- value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
1195
- }
1196
- else if (value instanceof Date) {
1197
- if (key != null) {
1198
- httpParams = httpParams.append(key, value.toISOString().substring(0, 10));
1199
- }
1200
- else {
1201
- throw Error("key may not be null if value is Date");
1202
- }
1203
- }
1204
- else {
1205
- Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
1206
- }
1207
- }
1208
- else if (key != null) {
1209
- httpParams = httpParams.append(key, value);
1210
- }
1211
- else {
1212
- throw Error("key may not be null if value is not object or array");
1213
- }
1214
- return httpParams;
1215
- }
1216
- getAppConfig(observe = 'body', reportProgress = false, options) {
1217
- let localVarHeaders = this.defaultHeaders;
1218
- let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
1219
- if (localVarHttpHeaderAcceptSelected === undefined) {
1220
- // to determine the Accept header
1221
- const httpHeaderAccepts = [
1222
- '*/*'
1223
- ];
1224
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
1225
- }
1226
- if (localVarHttpHeaderAcceptSelected !== undefined) {
1227
- localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1228
- }
1229
- let localVarHttpContext = options && options.context;
1230
- if (localVarHttpContext === undefined) {
1231
- localVarHttpContext = new HttpContext();
1232
- }
1233
- let localVarTransferCache = options && options.transferCache;
1234
- if (localVarTransferCache === undefined) {
1235
- localVarTransferCache = true;
1236
- }
1237
- let responseType_ = 'json';
1238
- if (localVarHttpHeaderAcceptSelected) {
1239
- if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
1240
- responseType_ = 'text';
1241
- }
1242
- else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1243
- responseType_ = 'json';
1244
- }
1245
- else {
1246
- responseType_ = 'blob';
1247
- }
1248
- }
1249
- let localVarPath = `/rest/appconfig`;
1250
- return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
1251
- context: localVarHttpContext,
1252
- responseType: responseType_,
1253
- withCredentials: this.configuration.withCredentials,
1254
- headers: localVarHeaders,
1255
- observe: observe,
1256
- transferCache: localVarTransferCache,
1257
- reportProgress: reportProgress
1258
- });
1259
- }
1260
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: AppConfigControllerService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
1261
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: AppConfigControllerService, providedIn: 'root' }); }
1262
- }
1263
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: AppConfigControllerService, decorators: [{
1264
- type: Injectable,
1265
- args: [{
1266
- providedIn: 'root'
1267
- }]
1268
- }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
1269
- type: Optional
1270
- }, {
1271
- type: Inject,
1272
- args: [BASE_PATH]
1273
- }] }, { type: Configuration, decorators: [{
1274
- type: Optional
1275
- }] }] });
1276
-
1277
- /**
1278
- * MST
1279
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
1280
- *
1281
- * The version of the OpenAPI document: 1
1282
- *
1283
- *
1284
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1285
- * https://openapi-generator.tech
1286
- * Do not edit the class manually.
1287
- */
1288
- /* tslint:disable:no-unused-variable member-ordering */
1289
- class BewegingControllerService {
1290
- constructor(httpClient, basePath, configuration) {
1291
- this.httpClient = httpClient;
1292
- this.basePath = 'http://localhost:8080/mst';
1293
- this.defaultHeaders = new HttpHeaders();
1294
- this.configuration = new Configuration();
1295
- if (configuration) {
1296
- this.configuration = configuration;
1297
- }
1298
- if (typeof this.configuration.basePath !== 'string') {
1299
- if (Array.isArray(basePath) && basePath.length > 0) {
1300
- basePath = basePath[0];
1301
- }
1302
- if (typeof basePath !== 'string') {
1303
- basePath = this.basePath;
1304
- }
1305
- this.configuration.basePath = basePath;
1306
- }
1307
- this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
1308
- }
1309
- // @ts-ignore
1310
- addToHttpParams(httpParams, value, key) {
1311
- if (typeof value === "object" && value instanceof Date === false) {
1312
- httpParams = this.addToHttpParamsRecursive(httpParams, value);
1313
- }
1314
- else {
1315
- httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
1316
- }
1317
- return httpParams;
1318
- }
1319
- addToHttpParamsRecursive(httpParams, value, key) {
1320
- if (value == null) {
1321
- return httpParams;
1322
- }
1323
- if (typeof value === "object") {
1324
- if (Array.isArray(value)) {
1325
- value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
1326
- }
1327
- else if (value instanceof Date) {
1328
- if (key != null) {
1329
- httpParams = httpParams.append(key, value.toISOString().substring(0, 10));
1330
- }
1331
- else {
1332
- throw Error("key may not be null if value is Date");
1333
- }
1334
- }
1335
- else {
1336
- Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
1337
- }
1338
- }
1339
- else if (key != null) {
1340
- httpParams = httpParams.append(key, value);
1341
- }
1342
- else {
1343
- throw Error("key may not be null if value is not object or array");
1344
- }
1345
- return httpParams;
1346
- }
1347
- verrijkBewegingenMetOngeplandeActies(iaVersie, ritRequestDto, observe = 'body', reportProgress = false, options) {
1348
- if (iaVersie === null || iaVersie === undefined) {
1349
- throw new Error('Required parameter iaVersie was null or undefined when calling verrijkBewegingenMetOngeplandeActies.');
1350
- }
1351
- if (ritRequestDto === null || ritRequestDto === undefined) {
1352
- throw new Error('Required parameter ritRequestDto was null or undefined when calling verrijkBewegingenMetOngeplandeActies.');
1353
- }
1354
- let localVarHeaders = this.defaultHeaders;
1355
- let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
1356
- if (localVarHttpHeaderAcceptSelected === undefined) {
1357
- // to determine the Accept header
1358
- const httpHeaderAccepts = [
1359
- '*/*'
1360
- ];
1361
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
1362
- }
1363
- if (localVarHttpHeaderAcceptSelected !== undefined) {
1364
- localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1365
- }
1366
- let localVarHttpContext = options && options.context;
1367
- if (localVarHttpContext === undefined) {
1368
- localVarHttpContext = new HttpContext();
1369
- }
1370
- let localVarTransferCache = options && options.transferCache;
1371
- if (localVarTransferCache === undefined) {
1372
- localVarTransferCache = true;
1373
- }
1374
- // to determine the Content-Type header
1375
- const consumes = [
1376
- 'application/json'
1377
- ];
1378
- const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
1379
- if (httpContentTypeSelected !== undefined) {
1380
- localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
1381
- }
1382
- let responseType_ = 'json';
1383
- if (localVarHttpHeaderAcceptSelected) {
1384
- if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
1385
- responseType_ = 'text';
1386
- }
1387
- else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1388
- responseType_ = 'json';
1389
- }
1390
- else {
1391
- responseType_ = 'blob';
1392
- }
1393
- }
1394
- let localVarPath = `/rest/beweging/${this.configuration.encodeParam({ name: "iaVersie", value: iaVersie, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
1395
- return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, {
1396
- context: localVarHttpContext,
1397
- body: ritRequestDto,
1398
- responseType: responseType_,
1399
- withCredentials: this.configuration.withCredentials,
1400
- headers: localVarHeaders,
1401
- observe: observe,
1402
- transferCache: localVarTransferCache,
1403
- reportProgress: reportProgress
1404
- });
1405
- }
1406
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: BewegingControllerService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
1407
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: BewegingControllerService, providedIn: 'root' }); }
1408
- }
1409
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: BewegingControllerService, decorators: [{
1410
- type: Injectable,
1411
- args: [{
1412
- providedIn: 'root'
1413
- }]
1414
- }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
1415
- type: Optional
1416
- }, {
1417
- type: Inject,
1418
- args: [BASE_PATH]
1419
- }] }, { type: Configuration, decorators: [{
1420
- type: Optional
1421
- }] }] });
1422
-
1423
- /**
1424
- * MST
1425
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
1426
- *
1427
- * The version of the OpenAPI document: 1
1428
- *
1429
- *
1430
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1431
- * https://openapi-generator.tech
1432
- * Do not edit the class manually.
1433
- */
1434
- /* tslint:disable:no-unused-variable member-ordering */
1435
- class Class0BuildPropertiesService {
1436
- constructor(httpClient, basePath, configuration) {
1437
- this.httpClient = httpClient;
1438
- this.basePath = 'http://localhost:8080/mst';
1439
- this.defaultHeaders = new HttpHeaders();
1440
- this.configuration = new Configuration();
1441
- if (configuration) {
1442
- this.configuration = configuration;
1443
- }
1444
- if (typeof this.configuration.basePath !== 'string') {
1445
- if (Array.isArray(basePath) && basePath.length > 0) {
1446
- basePath = basePath[0];
1447
- }
1448
- if (typeof basePath !== 'string') {
1449
- basePath = this.basePath;
1450
- }
1451
- this.configuration.basePath = basePath;
1452
- }
1453
- this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
1454
- }
1455
- // @ts-ignore
1456
- addToHttpParams(httpParams, value, key) {
1457
- if (typeof value === "object" && value instanceof Date === false) {
1458
- httpParams = this.addToHttpParamsRecursive(httpParams, value);
1459
- }
1460
- else {
1461
- httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
1462
- }
1463
- return httpParams;
1464
- }
1465
- addToHttpParamsRecursive(httpParams, value, key) {
1466
- if (value == null) {
1467
- return httpParams;
1468
- }
1469
- if (typeof value === "object") {
1470
- if (Array.isArray(value)) {
1471
- value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
1472
- }
1473
- else if (value instanceof Date) {
1474
- if (key != null) {
1475
- httpParams = httpParams.append(key, value.toISOString().substring(0, 10));
1476
- }
1477
- else {
1478
- throw Error("key may not be null if value is Date");
1479
- }
1480
- }
1481
- else {
1482
- Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
1483
- }
1484
- }
1485
- else if (key != null) {
1486
- httpParams = httpParams.append(key, value);
1487
- }
1488
- else {
1489
- throw Error("key may not be null if value is not object or array");
1490
- }
1491
- return httpParams;
1492
- }
1493
- getBuildProperties(observe = 'body', reportProgress = false, options) {
1494
- let localVarHeaders = this.defaultHeaders;
1495
- let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
1496
- if (localVarHttpHeaderAcceptSelected === undefined) {
1497
- // to determine the Accept header
1498
- const httpHeaderAccepts = [
1499
- 'application/json'
1500
- ];
1501
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
1502
- }
1503
- if (localVarHttpHeaderAcceptSelected !== undefined) {
1504
- localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1505
- }
1506
- let localVarHttpContext = options && options.context;
1507
- if (localVarHttpContext === undefined) {
1508
- localVarHttpContext = new HttpContext();
1509
- }
1510
- let localVarTransferCache = options && options.transferCache;
1511
- if (localVarTransferCache === undefined) {
1512
- localVarTransferCache = true;
1513
- }
1514
- let responseType_ = 'json';
1515
- if (localVarHttpHeaderAcceptSelected) {
1516
- if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
1517
- responseType_ = 'text';
1518
- }
1519
- else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1520
- responseType_ = 'json';
1521
- }
1522
- else {
1523
- responseType_ = 'blob';
1524
- }
1525
- }
1526
- let localVarPath = `/build.properties`;
1527
- return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
1528
- context: localVarHttpContext,
1529
- responseType: responseType_,
1530
- withCredentials: this.configuration.withCredentials,
1531
- headers: localVarHeaders,
1532
- observe: observe,
1533
- transferCache: localVarTransferCache,
1534
- reportProgress: reportProgress
1535
- });
1536
- }
1537
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: Class0BuildPropertiesService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
1538
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: Class0BuildPropertiesService, providedIn: 'root' }); }
1539
- }
1540
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: Class0BuildPropertiesService, decorators: [{
1541
- type: Injectable,
1542
- args: [{
1543
- providedIn: 'root'
1544
- }]
1545
- }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
1546
- type: Optional
1547
- }, {
1548
- type: Inject,
1549
- args: [BASE_PATH]
1550
- }] }, { type: Configuration, decorators: [{
1551
- type: Optional
1552
- }] }] });
1553
-
1554
- /**
1555
- * MST
1556
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
1557
- *
1558
- * The version of the OpenAPI document: 1
1559
- *
1560
- *
1561
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1562
- * https://openapi-generator.tech
1563
- * Do not edit the class manually.
1564
- */
1565
- /* tslint:disable:no-unused-variable member-ordering */
1566
- class ConnectorControllerService {
1567
- constructor(httpClient, basePath, configuration) {
1568
- this.httpClient = httpClient;
1569
- this.basePath = 'http://localhost:8080/mst';
1570
- this.defaultHeaders = new HttpHeaders();
1571
- this.configuration = new Configuration();
1572
- if (configuration) {
1573
- this.configuration = configuration;
1574
- }
1575
- if (typeof this.configuration.basePath !== 'string') {
1576
- if (Array.isArray(basePath) && basePath.length > 0) {
1577
- basePath = basePath[0];
1578
- }
1579
- if (typeof basePath !== 'string') {
1580
- basePath = this.basePath;
1581
- }
1582
- this.configuration.basePath = basePath;
1583
- }
1584
- this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
1585
- }
1586
- // @ts-ignore
1587
- addToHttpParams(httpParams, value, key) {
1588
- if (typeof value === "object" && value instanceof Date === false) {
1589
- httpParams = this.addToHttpParamsRecursive(httpParams, value);
1590
- }
1591
- else {
1592
- httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
1593
- }
1594
- return httpParams;
1595
- }
1596
- addToHttpParamsRecursive(httpParams, value, key) {
1597
- if (value == null) {
1598
- return httpParams;
1599
- }
1600
- if (typeof value === "object") {
1601
- if (Array.isArray(value)) {
1602
- value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
1603
- }
1604
- else if (value instanceof Date) {
1605
- if (key != null) {
1606
- httpParams = httpParams.append(key, value.toISOString().substring(0, 10));
1607
- }
1608
- else {
1609
- throw Error("key may not be null if value is Date");
1610
- }
1611
- }
1612
- else {
1613
- Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
1614
- }
1615
- }
1616
- else if (key != null) {
1617
- httpParams = httpParams.append(key, value);
1618
- }
1619
- else {
1620
- throw Error("key may not be null if value is not object or array");
1621
- }
1622
- return httpParams;
1623
- }
1624
- getOtherConnector(iaVersie, connectorPuic, observe = 'body', reportProgress = false, options) {
1625
- if (iaVersie === null || iaVersie === undefined) {
1626
- throw new Error('Required parameter iaVersie was null or undefined when calling getOtherConnector.');
1627
- }
1628
- if (connectorPuic === null || connectorPuic === undefined) {
1629
- throw new Error('Required parameter connectorPuic was null or undefined when calling getOtherConnector.');
1630
- }
1631
- let localVarHeaders = this.defaultHeaders;
1632
- let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
1633
- if (localVarHttpHeaderAcceptSelected === undefined) {
1634
- // to determine the Accept header
1635
- const httpHeaderAccepts = [
1636
- '*/*'
1637
- ];
1638
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
1639
- }
1640
- if (localVarHttpHeaderAcceptSelected !== undefined) {
1641
- localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1642
- }
1643
- let localVarHttpContext = options && options.context;
1644
- if (localVarHttpContext === undefined) {
1645
- localVarHttpContext = new HttpContext();
1646
- }
1647
- let localVarTransferCache = options && options.transferCache;
1648
- if (localVarTransferCache === undefined) {
1649
- localVarTransferCache = true;
1650
- }
1651
- let responseType_ = 'json';
1652
- if (localVarHttpHeaderAcceptSelected) {
1653
- if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
1654
- responseType_ = 'text';
1655
- }
1656
- else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1657
- responseType_ = 'json';
1658
- }
1659
- else {
1660
- responseType_ = 'blob';
1661
- }
1662
- }
1663
- let localVarPath = `/rest/connector/${this.configuration.encodeParam({ name: "iaVersie", value: iaVersie, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/${this.configuration.encodeParam({ name: "connectorPuic", value: connectorPuic, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
1664
- return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
1665
- context: localVarHttpContext,
1666
- responseType: responseType_,
1667
- withCredentials: this.configuration.withCredentials,
1668
- headers: localVarHeaders,
1669
- observe: observe,
1670
- transferCache: localVarTransferCache,
1671
- reportProgress: reportProgress
1672
- });
1673
- }
1674
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: ConnectorControllerService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
1675
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: ConnectorControllerService, providedIn: 'root' }); }
1676
- }
1677
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: ConnectorControllerService, decorators: [{
1678
- type: Injectable,
1679
- args: [{
1680
- providedIn: 'root'
1681
- }]
1682
- }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
1683
- type: Optional
1684
- }, {
1685
- type: Inject,
1686
- args: [BASE_PATH]
1687
- }] }, { type: Configuration, decorators: [{
1688
- type: Optional
1689
- }] }] });
1690
-
1691
- /**
1692
- * MST
1693
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
1694
- *
1695
- * The version of the OpenAPI document: 1
1696
- *
1697
- *
1698
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1699
- * https://openapi-generator.tech
1700
- * Do not edit the class manually.
1701
- */
1702
- /* tslint:disable:no-unused-variable member-ordering */
1703
- class LogControllerService {
1704
- constructor(httpClient, basePath, configuration) {
1705
- this.httpClient = httpClient;
1706
- this.basePath = 'http://localhost:8080/mst';
1707
- this.defaultHeaders = new HttpHeaders();
1708
- this.configuration = new Configuration();
1709
- if (configuration) {
1710
- this.configuration = configuration;
1711
- }
1712
- if (typeof this.configuration.basePath !== 'string') {
1713
- if (Array.isArray(basePath) && basePath.length > 0) {
1714
- basePath = basePath[0];
1715
- }
1716
- if (typeof basePath !== 'string') {
1717
- basePath = this.basePath;
1718
- }
1719
- this.configuration.basePath = basePath;
1720
- }
1721
- this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
1722
- }
1723
- // @ts-ignore
1724
- addToHttpParams(httpParams, value, key) {
1725
- if (typeof value === "object" && value instanceof Date === false) {
1726
- httpParams = this.addToHttpParamsRecursive(httpParams, value);
1727
- }
1728
- else {
1729
- httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
1730
- }
1731
- return httpParams;
1732
- }
1733
- addToHttpParamsRecursive(httpParams, value, key) {
1734
- if (value == null) {
1735
- return httpParams;
1736
- }
1737
- if (typeof value === "object") {
1738
- if (Array.isArray(value)) {
1739
- value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
1740
- }
1741
- else if (value instanceof Date) {
1742
- if (key != null) {
1743
- httpParams = httpParams.append(key, value.toISOString().substring(0, 10));
1744
- }
1745
- else {
1746
- throw Error("key may not be null if value is Date");
1747
- }
1748
- }
1749
- else {
1750
- Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
1751
- }
1752
- }
1753
- else if (key != null) {
1754
- httpParams = httpParams.append(key, value);
1755
- }
1756
- else {
1757
- throw Error("key may not be null if value is not object or array");
1758
- }
1759
- return httpParams;
1760
- }
1761
- log(logDto, observe = 'body', reportProgress = false, options) {
1762
- if (logDto === null || logDto === undefined) {
1763
- throw new Error('Required parameter logDto was null or undefined when calling log.');
1764
- }
1765
- let localVarHeaders = this.defaultHeaders;
1766
- let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
1767
- if (localVarHttpHeaderAcceptSelected === undefined) {
1768
- // to determine the Accept header
1769
- const httpHeaderAccepts = [];
1770
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
1771
- }
1772
- if (localVarHttpHeaderAcceptSelected !== undefined) {
1773
- localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1774
- }
1775
- let localVarHttpContext = options && options.context;
1776
- if (localVarHttpContext === undefined) {
1777
- localVarHttpContext = new HttpContext();
1778
- }
1779
- let localVarTransferCache = options && options.transferCache;
1780
- if (localVarTransferCache === undefined) {
1781
- localVarTransferCache = true;
1782
- }
1783
- // to determine the Content-Type header
1784
- const consumes = [
1785
- 'application/json'
1786
- ];
1787
- const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
1788
- if (httpContentTypeSelected !== undefined) {
1789
- localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
1790
- }
1791
- let responseType_ = 'json';
1792
- if (localVarHttpHeaderAcceptSelected) {
1793
- if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
1794
- responseType_ = 'text';
1795
- }
1796
- else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1797
- responseType_ = 'json';
1798
- }
1799
- else {
1800
- responseType_ = 'blob';
1801
- }
1802
- }
1803
- let localVarPath = `/rest/logging/`;
1804
- return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, {
1805
- context: localVarHttpContext,
1806
- body: logDto,
1807
- responseType: responseType_,
1808
- withCredentials: this.configuration.withCredentials,
1809
- headers: localVarHeaders,
1810
- observe: observe,
1811
- transferCache: localVarTransferCache,
1812
- reportProgress: reportProgress
1813
- });
1814
- }
1815
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: LogControllerService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
1816
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: LogControllerService, providedIn: 'root' }); }
1817
- }
1818
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: LogControllerService, decorators: [{
1819
- type: Injectable,
1820
- args: [{
1821
- providedIn: 'root'
1822
- }]
1823
- }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
1824
- type: Optional
1825
- }, {
1826
- type: Inject,
1827
- args: [BASE_PATH]
1828
- }] }, { type: Configuration, decorators: [{
1829
- type: Optional
1830
- }] }] });
1831
-
1832
- /**
1833
- * MST
1834
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
1835
- *
1836
- * The version of the OpenAPI document: 1
1837
- *
1838
- *
1839
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1840
- * https://openapi-generator.tech
1841
- * Do not edit the class manually.
1842
- */
1843
- /* tslint:disable:no-unused-variable member-ordering */
1844
- class P21ControllerService {
1845
- constructor(httpClient, basePath, configuration) {
1846
- this.httpClient = httpClient;
1847
- this.basePath = 'http://localhost:8080/mst';
1848
- this.defaultHeaders = new HttpHeaders();
1849
- this.configuration = new Configuration();
1850
- if (configuration) {
1851
- this.configuration = configuration;
1852
- }
1853
- if (typeof this.configuration.basePath !== 'string') {
1854
- if (Array.isArray(basePath) && basePath.length > 0) {
1855
- basePath = basePath[0];
1856
- }
1857
- if (typeof basePath !== 'string') {
1858
- basePath = this.basePath;
1859
- }
1860
- this.configuration.basePath = basePath;
1861
- }
1862
- this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
1863
- }
1864
- /**
1865
- * @param consumes string[] mime-types
1866
- * @return true: consumes contains 'multipart/form-data', false: otherwise
1867
- */
1868
- canConsumeForm(consumes) {
1869
- const form = 'multipart/form-data';
1870
- for (const consume of consumes) {
1871
- if (form === consume) {
1872
- return true;
1873
- }
1874
- }
1875
- return false;
1876
- }
1877
- // @ts-ignore
1878
- addToHttpParams(httpParams, value, key) {
1879
- if (typeof value === "object" && value instanceof Date === false) {
1880
- httpParams = this.addToHttpParamsRecursive(httpParams, value);
1881
- }
1882
- else {
1883
- httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
1884
- }
1885
- return httpParams;
1886
- }
1887
- addToHttpParamsRecursive(httpParams, value, key) {
1888
- if (value == null) {
1889
- return httpParams;
1890
- }
1891
- if (typeof value === "object") {
1892
- if (Array.isArray(value)) {
1893
- value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
1894
- }
1895
- else if (value instanceof Date) {
1896
- if (key != null) {
1897
- httpParams = httpParams.append(key, value.toISOString().substring(0, 10));
1898
- }
1899
- else {
1900
- throw Error("key may not be null if value is Date");
1901
- }
1902
- }
1903
- else {
1904
- Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
1905
- }
1906
- }
1907
- else if (key != null) {
1908
- httpParams = httpParams.append(key, value);
1909
- }
1910
- else {
1911
- throw Error("key may not be null if value is not object or array");
1912
- }
1913
- return httpParams;
1914
- }
1915
- createP21Levering(p21Levering, update, observe = 'body', reportProgress = false, options) {
1916
- if (p21Levering === null || p21Levering === undefined) {
1917
- throw new Error('Required parameter p21Levering was null or undefined when calling createP21Levering.');
1918
- }
1919
- let localVarHeaders = this.defaultHeaders;
1920
- let localVarCredential;
1921
- // authentication (keycloak_auth) required
1922
- localVarCredential = this.configuration.lookupCredential('keycloak_auth');
1923
- if (localVarCredential) {
1924
- localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
1925
- }
1926
- let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
1927
- if (localVarHttpHeaderAcceptSelected === undefined) {
1928
- // to determine the Accept header
1929
- const httpHeaderAccepts = [
1930
- '*/*'
1931
- ];
1932
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
1933
- }
1934
- if (localVarHttpHeaderAcceptSelected !== undefined) {
1935
- localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1936
- }
1937
- let localVarHttpContext = options && options.context;
1938
- if (localVarHttpContext === undefined) {
1939
- localVarHttpContext = new HttpContext();
1940
- }
1941
- let localVarTransferCache = options && options.transferCache;
1942
- if (localVarTransferCache === undefined) {
1943
- localVarTransferCache = true;
1944
- }
1945
- // to determine the Content-Type header
1946
- const consumes = [
1947
- 'multipart/form-data'
1948
- ];
1949
- const canConsumeForm = this.canConsumeForm(consumes);
1950
- let localVarFormParams;
1951
- let localVarUseForm = false;
1952
- let localVarConvertFormParamsToString = false;
1953
- // use FormData to transmit files using content-type "multipart/form-data"
1954
- // see https://stackoverflow.com/questions/4007969/application-x-www-form-urlencoded-or-multipart-form-data
1955
- localVarUseForm = canConsumeForm;
1956
- if (localVarUseForm) {
1957
- localVarFormParams = new FormData();
1958
- }
1959
- else {
1960
- localVarFormParams = new HttpParams({ encoder: this.encoder });
1961
- }
1962
- if (update !== undefined) {
1963
- localVarFormParams = localVarFormParams.append('update', update) || localVarFormParams;
1964
- }
1965
- if (p21Levering !== undefined) {
1966
- localVarFormParams = localVarFormParams.append('p21Levering', p21Levering) || localVarFormParams;
1967
- }
1968
- let responseType_ = 'json';
1969
- if (localVarHttpHeaderAcceptSelected) {
1970
- if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
1971
- responseType_ = 'text';
1972
- }
1973
- else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1974
- responseType_ = 'json';
1975
- }
1976
- else {
1977
- responseType_ = 'blob';
1978
- }
1979
- }
1980
- let localVarPath = `/services/secure/rest/backend/uploadversie`;
1981
- return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, {
1982
- context: localVarHttpContext,
1983
- body: localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams,
1984
- responseType: responseType_,
1985
- withCredentials: this.configuration.withCredentials,
1986
- headers: localVarHeaders,
1987
- observe: observe,
1988
- transferCache: localVarTransferCache,
1989
- reportProgress: reportProgress
1990
- });
1991
- }
1992
- getVersies(observe = 'body', reportProgress = false, options) {
1993
- let localVarHeaders = this.defaultHeaders;
1994
- let localVarCredential;
1995
- // authentication (keycloak_auth) required
1996
- localVarCredential = this.configuration.lookupCredential('keycloak_auth');
1997
- if (localVarCredential) {
1998
- localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
1999
- }
2000
- let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
2001
- if (localVarHttpHeaderAcceptSelected === undefined) {
2002
- // to determine the Accept header
2003
- const httpHeaderAccepts = [
2004
- 'application/json'
2005
- ];
2006
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
2007
- }
2008
- if (localVarHttpHeaderAcceptSelected !== undefined) {
2009
- localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
2010
- }
2011
- let localVarHttpContext = options && options.context;
2012
- if (localVarHttpContext === undefined) {
2013
- localVarHttpContext = new HttpContext();
2014
- }
2015
- let localVarTransferCache = options && options.transferCache;
2016
- if (localVarTransferCache === undefined) {
2017
- localVarTransferCache = true;
2018
- }
2019
- let responseType_ = 'json';
2020
- if (localVarHttpHeaderAcceptSelected) {
2021
- if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
2022
- responseType_ = 'text';
2023
- }
2024
- else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
2025
- responseType_ = 'json';
2026
- }
2027
- else {
2028
- responseType_ = 'blob';
2029
- }
2030
- }
2031
- let localVarPath = `/services/secure/rest/backend/versies`;
2032
- return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
2033
- context: localVarHttpContext,
2034
- responseType: responseType_,
2035
- withCredentials: this.configuration.withCredentials,
2036
- headers: localVarHeaders,
2037
- observe: observe,
2038
- transferCache: localVarTransferCache,
2039
- reportProgress: reportProgress
2040
- });
2041
- }
2042
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: P21ControllerService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
2043
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: P21ControllerService, providedIn: 'root' }); }
2044
- }
2045
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: P21ControllerService, decorators: [{
2046
- type: Injectable,
2047
- args: [{
2048
- providedIn: 'root'
2049
- }]
2050
- }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
2051
- type: Optional
2052
- }, {
2053
- type: Inject,
2054
- args: [BASE_PATH]
2055
- }] }, { type: Configuration, decorators: [{
2056
- type: Optional
2057
- }] }] });
2058
-
2059
- /**
2060
- * MST
2061
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
2062
- *
2063
- * The version of the OpenAPI document: 1
2064
- *
2065
- *
2066
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2067
- * https://openapi-generator.tech
2068
- * Do not edit the class manually.
2069
- */
2070
- /* tslint:disable:no-unused-variable member-ordering */
2071
- class SbControllerService {
2072
- constructor(httpClient, basePath, configuration) {
2073
- this.httpClient = httpClient;
2074
- this.basePath = 'http://localhost:8080/mst';
2075
- this.defaultHeaders = new HttpHeaders();
2076
- this.configuration = new Configuration();
2077
- if (configuration) {
2078
- this.configuration = configuration;
2079
- }
2080
- if (typeof this.configuration.basePath !== 'string') {
2081
- if (Array.isArray(basePath) && basePath.length > 0) {
2082
- basePath = basePath[0];
2083
- }
2084
- if (typeof basePath !== 'string') {
2085
- basePath = this.basePath;
2086
- }
2087
- this.configuration.basePath = basePath;
2088
- }
2089
- this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
2090
- }
2091
- // @ts-ignore
2092
- addToHttpParams(httpParams, value, key) {
2093
- if (typeof value === "object" && value instanceof Date === false) {
2094
- httpParams = this.addToHttpParamsRecursive(httpParams, value);
2095
- }
2096
- else {
2097
- httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
2098
- }
2099
- return httpParams;
2100
- }
2101
- addToHttpParamsRecursive(httpParams, value, key) {
2102
- if (value == null) {
2103
- return httpParams;
2104
- }
2105
- if (typeof value === "object") {
2106
- if (Array.isArray(value)) {
2107
- value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
2108
- }
2109
- else if (value instanceof Date) {
2110
- if (key != null) {
2111
- httpParams = httpParams.append(key, value.toISOString().substring(0, 10));
2112
- }
2113
- else {
2114
- throw Error("key may not be null if value is Date");
2115
- }
2116
- }
2117
- else {
2118
- Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
2119
- }
2120
- }
2121
- else if (key != null) {
2122
- httpParams = httpParams.append(key, value);
2123
- }
2124
- else {
2125
- throw Error("key may not be null if value is not object or array");
2126
- }
2127
- return httpParams;
2128
- }
2129
- getSignaleringsbeelden(signaleringsbeeldRequestDto, observe = 'body', reportProgress = false, options) {
2130
- if (signaleringsbeeldRequestDto === null || signaleringsbeeldRequestDto === undefined) {
2131
- throw new Error('Required parameter signaleringsbeeldRequestDto was null or undefined when calling getSignaleringsbeelden.');
2132
- }
2133
- let localVarHeaders = this.defaultHeaders;
2134
- let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
2135
- if (localVarHttpHeaderAcceptSelected === undefined) {
2136
- // to determine the Accept header
2137
- const httpHeaderAccepts = [
2138
- '*/*'
2139
- ];
2140
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
2141
- }
2142
- if (localVarHttpHeaderAcceptSelected !== undefined) {
2143
- localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
2144
- }
2145
- let localVarHttpContext = options && options.context;
2146
- if (localVarHttpContext === undefined) {
2147
- localVarHttpContext = new HttpContext();
2148
- }
2149
- let localVarTransferCache = options && options.transferCache;
2150
- if (localVarTransferCache === undefined) {
2151
- localVarTransferCache = true;
2152
- }
2153
- // to determine the Content-Type header
2154
- const consumes = [
2155
- 'application/json'
2156
- ];
2157
- const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
2158
- if (httpContentTypeSelected !== undefined) {
2159
- localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
2160
- }
2161
- let responseType_ = 'json';
2162
- if (localVarHttpHeaderAcceptSelected) {
2163
- if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
2164
- responseType_ = 'text';
2165
- }
2166
- else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
2167
- responseType_ = 'json';
2168
- }
2169
- else {
2170
- responseType_ = 'blob';
2171
- }
2172
- }
2173
- let localVarPath = `/rest/signaleringsbeeldeninfo`;
2174
- return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, {
2175
- context: localVarHttpContext,
2176
- body: signaleringsbeeldRequestDto,
2177
- responseType: responseType_,
2178
- withCredentials: this.configuration.withCredentials,
2179
- headers: localVarHeaders,
2180
- observe: observe,
2181
- transferCache: localVarTransferCache,
2182
- reportProgress: reportProgress
2183
- });
2184
- }
2185
- valideerIaVersie(versie, observe = 'body', reportProgress = false, options) {
2186
- if (versie === null || versie === undefined) {
2187
- throw new Error('Required parameter versie was null or undefined when calling valideerIaVersie.');
2188
- }
2189
- let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
2190
- if (versie !== undefined && versie !== null) {
2191
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, versie, 'versie');
2192
- }
2193
- let localVarHeaders = this.defaultHeaders;
2194
- let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
2195
- if (localVarHttpHeaderAcceptSelected === undefined) {
2196
- // to determine the Accept header
2197
- const httpHeaderAccepts = [];
2198
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
2199
- }
2200
- if (localVarHttpHeaderAcceptSelected !== undefined) {
2201
- localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
2202
- }
2203
- let localVarHttpContext = options && options.context;
2204
- if (localVarHttpContext === undefined) {
2205
- localVarHttpContext = new HttpContext();
2206
- }
2207
- let localVarTransferCache = options && options.transferCache;
2208
- if (localVarTransferCache === undefined) {
2209
- localVarTransferCache = true;
2210
- }
2211
- let responseType_ = 'json';
2212
- if (localVarHttpHeaderAcceptSelected) {
2213
- if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
2214
- responseType_ = 'text';
2215
- }
2216
- else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
2217
- responseType_ = 'json';
2218
- }
2219
- else {
2220
- responseType_ = 'blob';
2221
- }
2222
- }
2223
- let localVarPath = `/rest/signaleringsbeeldeninfo/valideeriaversie`;
2224
- return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
2225
- context: localVarHttpContext,
2226
- params: localVarQueryParameters,
2227
- responseType: responseType_,
2228
- withCredentials: this.configuration.withCredentials,
2229
- headers: localVarHeaders,
2230
- observe: observe,
2231
- transferCache: localVarTransferCache,
2232
- reportProgress: reportProgress
2233
- });
2234
- }
2235
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: SbControllerService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
2236
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: SbControllerService, providedIn: 'root' }); }
2237
- }
2238
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: SbControllerService, decorators: [{
2239
- type: Injectable,
2240
- args: [{
2241
- providedIn: 'root'
2242
- }]
2243
- }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
2244
- type: Optional
2245
- }, {
2246
- type: Inject,
2247
- args: [BASE_PATH]
2248
- }] }, { type: Configuration, decorators: [{
2249
- type: Optional
2250
- }] }] });
2251
-
2252
- const APIS = [AppConfigControllerService, BewegingControllerService, Class0BuildPropertiesService, ConnectorControllerService, LogControllerService, P21ControllerService, SbControllerService];
2253
-
2254
- /**
2255
- * MST
2256
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
2257
- *
2258
- * The version of the OpenAPI document: 1
2259
- *
2260
- *
2261
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2262
- * https://openapi-generator.tech
2263
- * Do not edit the class manually.
2264
- */
2265
-
2266
- /**
2267
- * MST
2268
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
2269
- *
2270
- * The version of the OpenAPI document: 1
2271
- *
2272
- *
2273
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2274
- * https://openapi-generator.tech
2275
- * Do not edit the class manually.
2276
- */
2277
-
2278
- /**
2279
- * MST
2280
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
2281
- *
2282
- * The version of the OpenAPI document: 1
2283
- *
2284
- *
2285
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2286
- * https://openapi-generator.tech
2287
- * Do not edit the class manually.
2288
- */
2289
-
2290
- /**
2291
- * MST
2292
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
2293
- *
2294
- * The version of the OpenAPI document: 1
2295
- *
2296
- *
2297
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2298
- * https://openapi-generator.tech
2299
- * Do not edit the class manually.
2300
- */
2301
-
2302
- /**
2303
- * MST
2304
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
2305
- *
2306
- * The version of the OpenAPI document: 1
2307
- *
2308
- *
2309
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2310
- * https://openapi-generator.tech
2311
- * Do not edit the class manually.
2312
- */
2313
-
2314
- class ApiModule {
2315
- static forRoot(configurationFactory) {
2316
- return {
2317
- ngModule: ApiModule,
2318
- providers: [{ provide: Configuration, useFactory: configurationFactory }]
2319
- };
2320
- }
2321
- constructor(parentModule, http) {
2322
- if (parentModule) {
2323
- throw new Error('ApiModule is already loaded. Import in your base AppModule only.');
2324
- }
2325
- if (!http) {
2326
- throw new Error('You need to import the HttpClientModule in your AppModule! \n' +
2327
- 'See also https://github.com/angular/angular/issues/20575');
2328
- }
2329
- }
2330
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: ApiModule, deps: [{ token: ApiModule, optional: true, skipSelf: true }, { token: i1.HttpClient, optional: true }], target: i0.ɵɵFactoryTarget.NgModule }); }
2331
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.7", ngImport: i0, type: ApiModule }); }
2332
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: ApiModule }); }
2333
- }
2334
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: ApiModule, decorators: [{
2335
- type: NgModule,
2336
- args: [{
2337
- imports: [],
2338
- declarations: [],
2339
- exports: [],
2340
- providers: []
2341
- }]
2342
- }], ctorParameters: () => [{ type: ApiModule, decorators: [{
2343
- type: Optional
2344
- }, {
2345
- type: SkipSelf
2346
- }] }, { type: i1.HttpClient, decorators: [{
2347
- type: Optional
2348
- }] }] });
2349
-
2350
- class MstLoggingResource {
2351
- constructor(controller, store) {
2352
- this.controller = controller;
2353
- this.store = store;
2354
- this.subscriptions = new Subscription();
2355
- this.subscriptions.add(this.store.select('baseUrl').subscribe(baseUrl => controller.configuration.basePath = baseUrl + '/mst'));
2356
- }
2357
- ngOnDestroy() {
2358
- this.subscriptions.unsubscribe();
2359
- }
2360
- logMessages(logDto) {
2361
- this.controller.log(logDto).subscribe();
2362
- }
2363
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: MstLoggingResource, deps: [{ token: LogControllerService }, { token: i2$1.Store }], target: i0.ɵɵFactoryTarget.Injectable }); }
2364
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: MstLoggingResource }); }
2365
- }
2366
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: MstLoggingResource, decorators: [{
2367
- type: Injectable
2368
- }], ctorParameters: () => [{ type: LogControllerService }, { type: i2$1.Store }] });
2369
-
2370
1170
  class LoggingHelper {
2371
- constructor(store) {
1171
+ constructor(sbmService, store) {
1172
+ this.sbmService = sbmService;
2372
1173
  this.store = store;
2373
1174
  }
2374
1175
  maakLogDTO(melding, actie) {
@@ -2382,7 +1183,7 @@ class LoggingHelper {
2382
1183
  iaVersie = ia.versie;
2383
1184
  });
2384
1185
  if (actie) {
2385
- actieDto = {
1186
+ actieDto = new ActieDto({
2386
1187
  pplgNaam: actie.pplgNaam,
2387
1188
  ritActieTypeOmschrijving: actie.ritActieTypeOmschrijving,
2388
1189
  ritActieStatus: actie.ritActieStatus,
@@ -2394,16 +1195,16 @@ class LoggingHelper {
2394
1195
  vanKilometrering: actie.vanKilometrering,
2395
1196
  totKilometerlint: actie.totKilometerlint,
2396
1197
  totKilometrering: actie.totKilometrering
2397
- };
1198
+ });
2398
1199
  }
2399
- return {
1200
+ return new MstLoggingDto({
2400
1201
  iaVersie,
2401
1202
  meldingLevel: melding.meldingLevel,
2402
1203
  meldingMessage: melding.meldingMessage,
2403
1204
  actieDto,
2404
1205
  algemeneRitInfoDto,
2405
1206
  sbinfoDtos: this.getSbInfoDtos()
2406
- };
1207
+ });
2407
1208
  }
2408
1209
  getSbInfoDtos() {
2409
1210
  const sbInfoDtos = [];
@@ -2414,12 +1215,12 @@ class LoggingHelper {
2414
1215
  });
2415
1216
  return sbInfoDtos;
2416
1217
  }
2417
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: LoggingHelper, deps: [{ token: i2$1.Store }], target: i0.ɵɵFactoryTarget.Injectable }); }
1218
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: LoggingHelper, deps: [{ token: SignaleringsBeeldManagerService }, { token: i2$1.Store }], target: i0.ɵɵFactoryTarget.Injectable }); }
2418
1219
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: LoggingHelper }); }
2419
1220
  }
2420
1221
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: LoggingHelper, decorators: [{
2421
1222
  type: Injectable
2422
- }], ctorParameters: () => [{ type: i2$1.Store }] });
1223
+ }], ctorParameters: () => [{ type: SignaleringsBeeldManagerService }, { type: i2$1.Store }] });
2423
1224
 
2424
1225
  /**
2425
1226
  * export const RIT_ACTIE_1 = 1;
@@ -2742,9 +1543,9 @@ class ActieHelper {
2742
1543
  this.logLegeMeldingDto(logMeldingDTOs);
2743
1544
  return retval;
2744
1545
  }
2745
- logLegeMeldingDto(logDto) {
2746
- if (logDto.length > 0) {
2747
- return this.mstLogResource.logMessages(logDto);
1546
+ logLegeMeldingDto(logMeldingDTOs) {
1547
+ if (logMeldingDTOs.length > 0) {
1548
+ this.mstLogResource.logErrorMessages(logMeldingDTOs);
2748
1549
  }
2749
1550
  }
2750
1551
  verwerkTopoElementen(topoElementen) {
@@ -2834,7 +1635,7 @@ class ActieHelper {
2834
1635
  if (!storingsSymboolPuic && this.debug) {
2835
1636
  const melding = MeldingBuilder.actieHighlightError([actie.id]);
2836
1637
  this.messagesService.showMessage(MessageBuilder.actieHighlightError([actie.id]));
2837
- this.mstLogResource.logMessages([this.loggingHelper.maakLogDTO(melding, actie)]);
1638
+ this.mstLogResource.logErrorMessages([this.loggingHelper.maakLogDTO(melding, actie)]);
2838
1639
  }
2839
1640
  return storingsSymboolPuic ? [storingsSymboolPuic] : [];
2840
1641
  }
@@ -3731,7 +2532,7 @@ let SignaleringsbeeldInfoResource = class SignaleringsbeeldInfoResource extends
3731
2532
  ngOnDestroy() {
3732
2533
  this.subscriptions.unsubscribe();
3733
2534
  }
3734
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: SignaleringsbeeldInfoResource, deps: [{ token: i1$1.ResourceHandler }, { token: i2$1.Store }], target: i0.ɵɵFactoryTarget.Injectable }); }
2535
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: SignaleringsbeeldInfoResource, deps: [{ token: i1.ResourceHandler }, { token: i2$1.Store }], target: i0.ɵɵFactoryTarget.Injectable }); }
3735
2536
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: SignaleringsbeeldInfoResource }); }
3736
2537
  };
3737
2538
  __decorate([
@@ -3752,7 +2553,7 @@ SignaleringsbeeldInfoResource = __decorate([
3752
2553
  ], SignaleringsbeeldInfoResource);
3753
2554
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: SignaleringsbeeldInfoResource, decorators: [{
3754
2555
  type: Injectable
3755
- }], ctorParameters: () => [{ type: i1$1.ResourceHandler }, { type: i2$1.Store }], propDecorators: { laadSignaleringsbeeldInfo: [], getBestaatIALevering: [] } });
2556
+ }], ctorParameters: () => [{ type: i1.ResourceHandler }, { type: i2$1.Store }], propDecorators: { laadSignaleringsbeeldInfo: [], getBestaatIALevering: [] } });
3756
2557
  class SignaleringsbeeldInfoDto extends ResourceModel {
3757
2558
  constructor(data) {
3758
2559
  super();
@@ -3786,7 +2587,7 @@ class BaseRestService {
3786
2587
  ngOnDestroy() {
3787
2588
  this.subscriptions.unsubscribe();
3788
2589
  }
3789
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: BaseRestService, deps: [{ token: i1.HttpClient }, { token: i2$1.Store }], target: i0.ɵɵFactoryTarget.Injectable }); }
2590
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: BaseRestService, deps: [{ token: i1$1.HttpClient }, { token: i2$1.Store }], target: i0.ɵɵFactoryTarget.Injectable }); }
3790
2591
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: BaseRestService, providedIn: 'root' }); }
3791
2592
  }
3792
2593
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: BaseRestService, decorators: [{
@@ -3794,7 +2595,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
3794
2595
  args: [{
3795
2596
  providedIn: 'root'
3796
2597
  }]
3797
- }], ctorParameters: () => [{ type: i1.HttpClient }, { type: i2$1.Store }] });
2598
+ }], ctorParameters: () => [{ type: i1$1.HttpClient }, { type: i2$1.Store }] });
3798
2599
 
3799
2600
  class BewegingVerrijkerService extends BaseRestService {
3800
2601
  getBewegingen(bewegingen, ongeplandeActies) {
@@ -4036,10 +2837,10 @@ class Ritdeel {
4036
2837
  getZichtbaarheidBuitenPaginatie() {
4037
2838
  return this.zichtbaarBuitenPaginatie;
4038
2839
  }
4039
- bepaalTopologieElementen(sbmService) {
4040
- const topoElementen = sbmService.bepaalRouteElementen(this.getRoute());
2840
+ bepaalTopologieElementen(signaleringsBeeldManagerService) {
2841
+ const topoElementen = signaleringsBeeldManagerService.bepaalRouteElementen(this.getRoute());
4041
2842
  if (this.heeftVrijebaanInfo()) {
4042
- const vrijebaanTopoElementen = sbmService.bepaalRouteElementen(this.getVrijebaanPrlRoute());
2843
+ const vrijebaanTopoElementen = signaleringsBeeldManagerService.bepaalRouteElementen(this.getVrijebaanPrlRoute());
4043
2844
  topoElementen.push(...vrijebaanTopoElementen);
4044
2845
  }
4045
2846
  this.topoElementen = topoElementen;
@@ -4184,7 +2985,7 @@ class BepaalOngeplandeActiesEffect {
4184
2985
  this.messagesService.showMessage(MessageBuilder.nietGevondenTakkenOngeplandeActies(nietGevondenTakken));
4185
2986
  }
4186
2987
  if (logMeldingDTOs.length > 0) {
4187
- this.mstLogResource.logMessages(logMeldingDTOs);
2988
+ this.mstLogResource.logErrorMessages(logMeldingDTOs);
4188
2989
  }
4189
2990
  this.store.dispatch(SetOngeplandeActies(puicActieMap));
4190
2991
  this.store.dispatch(SetOngeplandeActieSelectieIds(Array.from(puicActieMap.keys())));
@@ -4254,7 +3055,7 @@ class BepaalSbInfosEffect {
4254
3055
  next: _res => this.store.dispatch(laadEnVerwerkSignaleringsbeeldInfo(treinpad, paginationSize, pplgs, ritGewijzigdToegestaan)),
4255
3056
  error: err => {
4256
3057
  this.messagesService.showMessage(new Message(Severity.INFORMATION, Utils.getValidErorrMessage(err)));
4257
- const iaVersieInfo = { versie: 'DONNA_97207_VER_1', ingangsDatum: this.dateService.getCurrentDate() };
3058
+ const iaVersieInfo = { versie: 'DONNA_77136_VER_1', ingangsDatum: this.dateService.getCurrentDate() };
4258
3059
  this.store.dispatch(SetIaVersie(iaVersieInfo));
4259
3060
  this.store.dispatch(laadEnVerwerkSignaleringsbeeldInfo(treinpad, paginationSize, pplgs, ritGewijzigdToegestaan));
4260
3061
  }
@@ -4826,11 +3627,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
4826
3627
  }], ctorParameters: () => [{ type: i1$2.Actions }, { type: i2$1.Store }, { type: BewegingVerrijkerService }] });
4827
3628
 
4828
3629
  class RitdelenEffect {
4829
- constructor(actions$, store, sbmService, editorService) {
3630
+ constructor(actions$, store, sbmService, rijwegPlanEditorService) {
4830
3631
  this.actions$ = actions$;
4831
3632
  this.store = store;
4832
3633
  this.sbmService = sbmService;
4833
- this.editorService = editorService;
3634
+ this.rijwegPlanEditorService = rijwegPlanEditorService;
4834
3635
  this.updateRitDelen$ = createEffect(() => this.actions$.pipe(ofType(updateRitDelen), withLatestFrom(this.store), map(([actie, _storeState]) => {
4835
3636
  const nieuweRitDelen = actie.ritDelen.map(ritDeel => ritDeel.isZichtbaar() ?
4836
3637
  ritDeel.copyMetAlternatieveRoutes(this.sbmService.bepaalAlternativeRoutes(ritDeel.getRijweg())) : ritDeel);
@@ -4848,25 +3649,25 @@ class RitdelenEffect {
4848
3649
  return setRitdelenAfterUpdate(ritDelen);
4849
3650
  })));
4850
3651
  this.ritdeelInvoegen$ = createEffect(() => this.actions$.pipe(ofType(ritdeelInvoegen), withLatestFrom(this.store), map(([actie, storeState]) => {
4851
- const ritDelen = this.ritdeelInvoegenFunc(storeState.ritDelen, actie.nieuweRoute);
3652
+ const ritDelen = this.ritdeelInvoegenFunc(storeState.ritDelen, actie.nieuweRoute, this.rijwegPlanEditorService, this.sbmService);
4852
3653
  return setRitdelenAfterUpdate(ritDelen);
4853
3654
  })));
4854
3655
  }
4855
- ritdeelInvoegenFunc(ritDelen, nieuweRoute) {
3656
+ ritdeelInvoegenFunc(ritDelen, nieuweRoute, rijwegPlanEditorService, sbmService) {
4856
3657
  const origineelRitdeel = nieuweRoute.beginSeinOpRitdeel.ritdeel;
4857
3658
  const beginSein = nieuweRoute.beginSeinOpRitdeel.sein;
4858
- const rijwegplan = this.editorService.getRijwegplan(beginSein.getPPLG());
3659
+ const rijwegplan = rijwegPlanEditorService.getRijwegplan(beginSein.getPPLG());
4859
3660
  const dwangen = JsJavaUtil.listToArray(rijwegplan.getOnderliggendeDwangenTotEnVanSein(origineelRitdeel.getDwang(), beginSein));
4860
3661
  const isSamengesteldeRoute = dwangen[0] && dwangen[1];
4861
3662
  let newRitdeel1 = origineelRitdeel;
4862
3663
  if (isSamengesteldeRoute) {
4863
- newRitdeel1 = this.verwerkSamengesteldeRoute(origineelRitdeel, rijwegplan, dwangen, ritDelen);
3664
+ newRitdeel1 = this.verwerkSamengesteldeRoute(origineelRitdeel, rijwegplan, dwangen, sbmService, ritDelen);
4864
3665
  }
4865
3666
  if (nieuweRoute.combinatieVoorEindsein.isVrijeBaanRijweg()) {
4866
- this.extendRitdeelMetVrijebaanInfo(newRitdeel1, nieuweRoute);
3667
+ this.extendRitdeelMetVrijebaanInfo(newRitdeel1, nieuweRoute, sbmService);
4867
3668
  }
4868
3669
  else {
4869
- this.maakNieuwRitdeel(newRitdeel1, nieuweRoute, ritDelen);
3670
+ this.maakNieuwRitdeel(newRitdeel1, nieuweRoute, sbmService, ritDelen);
4870
3671
  }
4871
3672
  if (isSamengesteldeRoute) {
4872
3673
  ritDelen.splice(ritDelen.indexOf(origineelRitdeel), 1);
@@ -4881,38 +3682,38 @@ class RitdelenEffect {
4881
3682
  }
4882
3683
  }
4883
3684
  }
4884
- verwerkSamengesteldeRoute(origineelRitdeel, rijwegplan, dwangen, ritDelen) {
3685
+ verwerkSamengesteldeRoute(origineelRitdeel, rijwegplan, dwangen, sbmService, ritDelen) {
4885
3686
  // dwangen in 2 nieuwe ritdelen verwerken voor de knip
4886
3687
  const nieuweRijweg1 = rijwegplan.getRijwegVoorSeinen(dwangen[0].getRoute().getBeginSein(), dwangen[0].getRoute().getEindSein());
4887
3688
  const dwangInfo1 = new RijwegplanRijwegDwangCombinatie(rijwegplan, nieuweRijweg1, dwangen[0]);
4888
- const newRitdeel1 = new Ritdeel(dwangInfo1, [], undefined, undefined, undefined, []);
3689
+ const newRitdeel1 = new Ritdeel(dwangInfo1, [], null, null, null, []);
4889
3690
  // remove vrijbaan info uit ritdeel
4890
- newRitdeel1.vrijebaanRijwegplanRijwegDwangCombi = undefined;
4891
- newRitdeel1.vervolgSpoor = undefined;
4892
- newRitdeel1.bepaalTopologieElementen(this.sbmService);
3691
+ newRitdeel1.vrijebaanRijwegplanRijwegDwangCombi = null;
3692
+ newRitdeel1.vervolgSpoor = null;
3693
+ newRitdeel1.bepaalTopologieElementen(sbmService);
4893
3694
  this.insertRitdeel(ritDelen, origineelRitdeel, newRitdeel1);
4894
3695
  const nieuweRijweg2 = rijwegplan.getRijwegVoorSeinen(dwangen[1].getRoute().getBeginSein(), dwangen[1].getRoute().getEindSein());
4895
3696
  const dwangInfo2 = new RijwegplanRijwegDwangCombinatie(rijwegplan, nieuweRijweg2, dwangen[1]);
4896
- const newRitdeel2 = new Ritdeel(dwangInfo2, [], undefined, undefined, undefined, []);
4897
- newRitdeel2.bepaalTopologieElementen(this.sbmService);
3697
+ const newRitdeel2 = new Ritdeel(dwangInfo2, [], null, null, null, []);
3698
+ newRitdeel2.bepaalTopologieElementen(sbmService);
4898
3699
  this.insertRitdeel(ritDelen, newRitdeel1, newRitdeel2);
4899
3700
  return newRitdeel1;
4900
3701
  }
4901
- extendRitdeelMetVrijebaanInfo(newRitdeel1, nieuweRoute) {
3702
+ extendRitdeelMetVrijebaanInfo(newRitdeel1, nieuweRoute, sbmService) {
4902
3703
  newRitdeel1.vrijebaanRijwegplanRijwegDwangCombi = nieuweRoute.combinatieVoorEindsein;
4903
3704
  const vbrwp = nieuweRoute.combinatieVoorEindsein.rijwegplan;
4904
3705
  newRitdeel1.vervolgSpoor = vbrwp.getVervolgSpoor(nieuweRoute.combinatieVoorEindsein.rijweg);
4905
- newRitdeel1.bepaalTopologieElementen(this.sbmService);
3706
+ newRitdeel1.bepaalTopologieElementen(sbmService);
4906
3707
  }
4907
- maakNieuwRitdeel(newRitdeel1, nieuweRoute, ritDelen) {
3708
+ maakNieuwRitdeel(newRitdeel1, nieuweRoute, sbmService, ritDelen) {
4908
3709
  let newRitdeel = this.createRitdeel(nieuweRoute);
4909
- const altRoutes = this.sbmService.bepaalAlternativeRoutes(newRitdeel.getRijweg());
3710
+ const altRoutes = sbmService.bepaalAlternativeRoutes(newRitdeel.getRijweg());
4910
3711
  newRitdeel = newRitdeel.copyMetAlternatieveRoutes(altRoutes);
4911
- newRitdeel.bepaalTopologieElementen(this.sbmService);
3712
+ newRitdeel.bepaalTopologieElementen(sbmService);
4912
3713
  this.insertRitdeel(ritDelen, newRitdeel1, newRitdeel);
4913
3714
  }
4914
3715
  createRitdeel(nieuweRoute) {
4915
- return new Ritdeel(nieuweRoute.combinatieVoorEindsein, [], undefined, undefined, undefined, []);
3716
+ return new Ritdeel(nieuweRoute.combinatieVoorEindsein, [], null, null, null, []);
4916
3717
  }
4917
3718
  insertRitdeel(ritdelen, naRitdeelPositie, newRitdeel) {
4918
3719
  const idx = ritdelen.indexOf(naRitdeelPositie);
@@ -5079,7 +3880,7 @@ const nieuweRouteReducer = createReducer(new NieuweRoute(null, null), on(SetNieu
5079
3880
  const signaleringsbeeldInfoDtosReducer = createReducer([], on(SetSignaleringsbeeldInfoDtos, (_, { dtos }) => dtos), on(UpdateSignaleringsbeeldInfoDtos, (_, { dtos }) => [...dtos]));
5080
3881
  const visibleSbInfoDtosReducer = createReducer([], on(SetVisibleSignaleringsbeeldInfoDtos, (_, { dtos }) => dtos), on(UpdateVisibleSignaleringsbeeldInfoDtos, (_, { dtos }) => [...dtos]));
5081
3882
  const iaVersieReducer = createReducer({}, on(SetIaVersie, (_, { iaVersie }) => Object.assign({}, iaVersie, { versie: iaVersie.versie.toUpperCase() })));
5082
- const algemeneRitInfoDtoReducer = createReducer({}, on(SetAlgemeneRitInfo, (_, { algemeneRitInfoDto }) => algemeneRitInfoDto));
3883
+ const algemeneRitInfoDtoReducer = createReducer(new AlgemeneRitInfoDto(), on(SetAlgemeneRitInfo, (_, { algemeneRitInfoDto }) => algemeneRitInfoDto));
5083
3884
  const ongeplandeActiesBepaaldReducer = createReducer(false, on(SetOngeplandeActiesBepaald, (_, { bepaald }) => bepaald));
5084
3885
  const nieuweBewegingReducer = createReducer({}, on(UpdateRit, (_, { bewegingen }) => bewegingen));
5085
3886
  const baseUrlReducer = createReducer(undefined, on(SetBaseUrl, (_, { baseUrl }) => baseUrl));
@@ -5116,7 +3917,6 @@ const storeReducers = {
5116
3917
  selectedRitdeelId: selectedRitdeelIdReducer
5117
3918
  };
5118
3919
 
5119
- // @ts-nocheck
5120
3920
  class ZoneUtil {
5121
3921
  constructor(ngZone) {
5122
3922
  this.ngZone = ngZone;
@@ -5179,7 +3979,6 @@ class MstViewerModule {
5179
3979
  constructor(service, zoneUtil) {
5180
3980
  this.service = service;
5181
3981
  // maak de EditorService toegankelijk voor GWT code
5182
- // @ts-ignore
5183
3982
  window['rpe'] = {
5184
3983
  EditorService: zoneUtil.proxy(service)
5185
3984
  };
@@ -5197,7 +3996,7 @@ class MstViewerModule {
5197
3996
  SvgVisualisatieComponent,
5198
3997
  MessagesComponent], imports: [CommonModule,
5199
3998
  ImxViewerModule,
5200
- RijwegenModule, i1$1.ResourceModule, i2$1.StoreRootModule, i1$2.EffectsRootModule], exports: [MstviewerComponent] }); }
3999
+ RijwegenModule, i1.ResourceModule, i2$1.StoreRootModule, i1$2.EffectsRootModule], exports: [MstviewerComponent] }); }
5201
4000
  static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: MstViewerModule, providers: [
5202
4001
  ZoneUtil,
5203
4002
  SignaleringsbeeldInfoResource,