@loxia/mst-viewer 8.1.3-202511130844 → 8.1.3-202511131237
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.
- package/esm2022/generated/openapi/api/api.mjs +23 -0
- package/esm2022/generated/openapi/api/appConfigController.service.mjs +140 -0
- package/esm2022/generated/openapi/api/appConfigController.serviceInterface.mjs +2 -0
- package/esm2022/generated/openapi/api/bewegingController.service.mjs +155 -0
- package/esm2022/generated/openapi/api/bewegingController.serviceInterface.mjs +2 -0
- package/esm2022/generated/openapi/api/class0BuildProperties.service.mjs +140 -0
- package/esm2022/generated/openapi/api/class0BuildProperties.serviceInterface.mjs +2 -0
- package/esm2022/generated/openapi/api/connectorController.service.mjs +146 -0
- package/esm2022/generated/openapi/api/connectorController.serviceInterface.mjs +2 -0
- package/esm2022/generated/openapi/api/logController.service.mjs +150 -0
- package/esm2022/generated/openapi/api/logController.serviceInterface.mjs +2 -0
- package/esm2022/generated/openapi/api/p21Controller.service.mjs +236 -0
- package/esm2022/generated/openapi/api/p21Controller.serviceInterface.mjs +2 -0
- package/esm2022/generated/openapi/api/sbController.service.mjs +202 -0
- package/esm2022/generated/openapi/api/sbController.serviceInterface.mjs +2 -0
- package/esm2022/generated/openapi/api.module.mjs +40 -0
- package/esm2022/generated/openapi/configuration.mjs +99 -0
- package/esm2022/generated/openapi/encoder.mjs +19 -0
- package/esm2022/generated/openapi/index.mjs +7 -0
- package/esm2022/generated/openapi/model/actieDto.mjs +13 -0
- package/esm2022/generated/openapi/model/algemeneRitDto.mjs +13 -0
- package/esm2022/generated/openapi/model/bewegingDto.mjs +2 -0
- package/esm2022/generated/openapi/model/frontendKeycloakConfig.mjs +13 -0
- package/esm2022/generated/openapi/model/frontendProperties.mjs +2 -0
- package/esm2022/generated/openapi/model/logDto.mjs +2 -0
- package/esm2022/generated/openapi/model/models.mjs +10 -0
- package/esm2022/generated/openapi/model/ritRequestDto.mjs +2 -0
- package/esm2022/generated/openapi/model/signaleringsbeeldDto.mjs +13 -0
- package/esm2022/generated/openapi/model/signaleringsbeeldRequestDto.mjs +13 -0
- package/esm2022/generated/openapi/param.mjs +2 -0
- package/esm2022/generated/openapi/variables.mjs +9 -0
- package/esm2022/lib/atomic-components/message/message.component.mjs +3 -3
- package/esm2022/lib/components/svg-visualisatie/svg-visualisatie.component.mjs +2 -3
- package/esm2022/lib/model/ritdeel.mjs +4 -4
- package/esm2022/lib/mst-viewer.module.mjs +3 -1
- package/esm2022/lib/resources/mstlogging.resource.mjs +12 -145
- package/esm2022/lib/services/viewer-control.service.mjs +3 -4
- package/esm2022/lib/state/actions/actions.mjs +1 -1
- package/esm2022/lib/state/effect/bepaal-ongeplande-acties.effect.mjs +2 -2
- package/esm2022/lib/state/effect/bepaal-sb-infos.effect.mjs +2 -2
- package/esm2022/lib/state/effect/laad-route-files.effect.mjs +2 -2
- package/esm2022/lib/state/effect/laad-signaleringsbeelden.effect.mjs +5 -5
- package/esm2022/lib/state/effect/ritdelen.effect.mjs +22 -22
- package/esm2022/lib/state/mst-editor-state.mjs +2 -3
- package/esm2022/lib/util/actie-helper.mjs +5 -5
- package/esm2022/lib/util/logging-helper.mjs +9 -12
- package/esm2022/lib/util/multi-map.mjs +2 -3
- package/esm2022/lib/util/utils.mjs +2 -5
- package/esm2022/lib/util/zone-util.mjs +2 -1
- package/esm2022/src/generated/openapi/api/api.mjs +23 -0
- package/esm2022/src/generated/openapi/api/appConfigController.service.mjs +140 -0
- package/esm2022/src/generated/openapi/api/appConfigController.serviceInterface.mjs +2 -0
- package/esm2022/src/generated/openapi/api/bewegingController.service.mjs +155 -0
- package/esm2022/src/generated/openapi/api/bewegingController.serviceInterface.mjs +2 -0
- package/esm2022/src/generated/openapi/api/class0BuildProperties.service.mjs +140 -0
- package/esm2022/src/generated/openapi/api/class0BuildProperties.serviceInterface.mjs +2 -0
- package/esm2022/src/generated/openapi/api/connectorController.service.mjs +146 -0
- package/esm2022/src/generated/openapi/api/connectorController.serviceInterface.mjs +2 -0
- package/esm2022/src/generated/openapi/api/logController.service.mjs +150 -0
- package/esm2022/src/generated/openapi/api/logController.serviceInterface.mjs +2 -0
- package/esm2022/src/generated/openapi/api/p21Controller.service.mjs +236 -0
- package/esm2022/src/generated/openapi/api/p21Controller.serviceInterface.mjs +2 -0
- package/esm2022/src/generated/openapi/api/sbController.service.mjs +202 -0
- package/esm2022/src/generated/openapi/api/sbController.serviceInterface.mjs +2 -0
- package/esm2022/src/generated/openapi/api.module.mjs +40 -0
- package/esm2022/src/generated/openapi/configuration.mjs +99 -0
- package/esm2022/src/generated/openapi/encoder.mjs +19 -0
- package/esm2022/src/generated/openapi/index.mjs +7 -0
- package/esm2022/src/generated/openapi/loxia-mst-viewer-src-generated-openapi.mjs +5 -0
- package/esm2022/src/generated/openapi/model/actieDto.mjs +13 -0
- package/esm2022/src/generated/openapi/model/algemeneRitDto.mjs +13 -0
- package/esm2022/src/generated/openapi/model/bewegingDto.mjs +2 -0
- package/esm2022/src/generated/openapi/model/frontendKeycloakConfig.mjs +13 -0
- package/esm2022/src/generated/openapi/model/frontendProperties.mjs +2 -0
- package/esm2022/src/generated/openapi/model/logDto.mjs +2 -0
- package/esm2022/src/generated/openapi/model/models.mjs +10 -0
- package/esm2022/src/generated/openapi/model/ritRequestDto.mjs +2 -0
- package/esm2022/src/generated/openapi/model/signaleringsbeeldDto.mjs +13 -0
- package/esm2022/src/generated/openapi/model/signaleringsbeeldRequestDto.mjs +13 -0
- package/esm2022/src/generated/openapi/param.mjs +2 -0
- package/esm2022/src/generated/openapi/variables.mjs +9 -0
- package/fesm2022/loxia-mst-viewer-src-generated-openapi.mjs +1341 -0
- package/fesm2022/loxia-mst-viewer-src-generated-openapi.mjs.map +1 -0
- package/fesm2022/loxia-mst-viewer.mjs +1611 -412
- package/fesm2022/loxia-mst-viewer.mjs.map +1 -1
- package/generated/openapi/api/api.d.ts +22 -0
- package/generated/openapi/api/appConfigController.service.d.ts +38 -0
- package/generated/openapi/api/appConfigController.serviceInterface.d.ts +24 -0
- package/generated/openapi/api/bewegingController.service.d.ts +40 -0
- package/generated/openapi/api/bewegingController.serviceInterface.d.ts +27 -0
- package/generated/openapi/api/class0BuildProperties.service.d.ts +36 -0
- package/generated/openapi/api/class0BuildProperties.serviceInterface.d.ts +23 -0
- package/generated/openapi/api/connectorController.service.d.ts +38 -0
- package/generated/openapi/api/connectorController.serviceInterface.d.ts +25 -0
- package/generated/openapi/api/logController.service.d.ts +38 -0
- package/generated/openapi/api/logController.serviceInterface.d.ts +25 -0
- package/generated/openapi/api/p21Controller.service.d.ts +62 -0
- package/generated/openapi/api/p21Controller.serviceInterface.d.ts +30 -0
- package/generated/openapi/api/sbController.service.d.ts +60 -0
- package/generated/openapi/api/sbController.serviceInterface.d.ts +32 -0
- package/generated/openapi/api.module.d.ts +11 -0
- package/generated/openapi/configuration.d.ts +104 -0
- package/generated/openapi/encoder.d.ts +11 -0
- package/generated/openapi/index.d.ts +6 -0
- package/generated/openapi/model/actieDto.d.ts +35 -0
- package/generated/openapi/model/algemeneRitDto.d.ts +28 -0
- package/generated/openapi/model/bewegingDto.d.ts +37 -0
- package/generated/openapi/model/frontendKeycloakConfig.d.ts +16 -0
- package/generated/openapi/model/frontendProperties.d.ts +15 -0
- package/generated/openapi/model/logDto.d.ts +22 -0
- package/generated/openapi/model/models.d.ts +9 -0
- package/generated/openapi/model/ritRequestDto.d.ts +17 -0
- package/generated/openapi/model/signaleringsbeeldDto.d.ts +16 -0
- package/generated/openapi/model/signaleringsbeeldRequestDto.d.ts +16 -0
- package/generated/openapi/param.d.ts +37 -0
- package/generated/openapi/variables.d.ts +8 -0
- package/lib/atomic-components/message/message.component.d.ts +2 -2
- package/lib/model/ritdeel.d.ts +6 -5
- package/lib/resources/mstlogging.resource.d.ts +6 -95
- package/lib/state/actions/actions.d.ts +4 -4
- package/lib/state/effect/laad-route-files.effect.d.ts +2 -1
- package/lib/state/effect/laad-signaleringsbeelden.effect.d.ts +1 -1
- package/lib/state/effect/ritdelen.effect.d.ts +7 -6
- package/lib/state/mst-editor-state.d.ts +4 -4
- package/lib/util/logging-helper.d.ts +4 -6
- package/lib/util/utils.d.ts +0 -1
- package/package.json +7 -1
- package/src/generated/openapi/README.md +226 -0
- package/src/generated/openapi/api/api.d.ts +22 -0
- package/src/generated/openapi/api/appConfigController.service.d.ts +38 -0
- package/src/generated/openapi/api/appConfigController.serviceInterface.d.ts +24 -0
- package/src/generated/openapi/api/bewegingController.service.d.ts +40 -0
- package/src/generated/openapi/api/bewegingController.serviceInterface.d.ts +27 -0
- package/src/generated/openapi/api/class0BuildProperties.service.d.ts +36 -0
- package/src/generated/openapi/api/class0BuildProperties.serviceInterface.d.ts +23 -0
- package/src/generated/openapi/api/connectorController.service.d.ts +38 -0
- package/src/generated/openapi/api/connectorController.serviceInterface.d.ts +25 -0
- package/src/generated/openapi/api/logController.service.d.ts +38 -0
- package/src/generated/openapi/api/logController.serviceInterface.d.ts +25 -0
- package/src/generated/openapi/api/p21Controller.service.d.ts +62 -0
- package/src/generated/openapi/api/p21Controller.serviceInterface.d.ts +30 -0
- package/src/generated/openapi/api/sbController.service.d.ts +60 -0
- package/src/generated/openapi/api/sbController.serviceInterface.d.ts +32 -0
- package/src/generated/openapi/api.module.d.ts +11 -0
- package/src/generated/openapi/configuration.d.ts +104 -0
- package/src/generated/openapi/encoder.d.ts +11 -0
- package/src/generated/openapi/index.d.ts +6 -0
- package/src/generated/openapi/model/actieDto.d.ts +35 -0
- package/src/generated/openapi/model/algemeneRitDto.d.ts +28 -0
- package/src/generated/openapi/model/bewegingDto.d.ts +37 -0
- package/src/generated/openapi/model/frontendKeycloakConfig.d.ts +16 -0
- package/src/generated/openapi/model/frontendProperties.d.ts +15 -0
- package/src/generated/openapi/model/logDto.d.ts +22 -0
- package/src/generated/openapi/model/models.d.ts +9 -0
- package/src/generated/openapi/model/ritRequestDto.d.ts +17 -0
- package/src/generated/openapi/model/signaleringsbeeldDto.d.ts +16 -0
- package/src/generated/openapi/model/signaleringsbeeldRequestDto.d.ts +16 -0
- package/src/generated/openapi/param.d.ts +37 -0
- package/src/generated/openapi/variables.d.ts +8 -0
|
@@ -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,
|
|
4
|
+
import { EventEmitter, Output, Input, Component, Injectable, ChangeDetectionStrategy, ViewChild, InjectionToken, Optional, Inject, SkipSelf, NgModule, HostListener } 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,
|
|
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';
|
|
15
18
|
import { __decorate } from 'tslib';
|
|
16
|
-
import * as i1 from '@ngx-resource/core';
|
|
19
|
+
import * as i1$1 from '@ngx-resource/core';
|
|
17
20
|
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.timeout > 0) {
|
|
44
|
+
if (this.message && 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
|
|
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,191 +299,6 @@ 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
|
-
|
|
452
|
-
class Utils {
|
|
453
|
-
static flatMap(xs, f) {
|
|
454
|
-
return xs.reduce((acc, x) => acc.concat(f(x)), []);
|
|
455
|
-
}
|
|
456
|
-
static getValidErorrMessage(err) {
|
|
457
|
-
let errorMsg = '';
|
|
458
|
-
if (err.msg) {
|
|
459
|
-
errorMsg += err.msg;
|
|
460
|
-
}
|
|
461
|
-
if (Array.isArray(err.body)) {
|
|
462
|
-
err.body.forEach(x => errorMsg += x);
|
|
463
|
-
}
|
|
464
|
-
else if (err.body) {
|
|
465
|
-
if (err.body instanceof ProgressEvent) {
|
|
466
|
-
errorMsg = 'Kon geen verbinding maken met de server';
|
|
467
|
-
}
|
|
468
|
-
else if (err.body.text) {
|
|
469
|
-
errorMsg += err.body.text;
|
|
470
|
-
}
|
|
471
|
-
else {
|
|
472
|
-
errorMsg += err.body;
|
|
473
|
-
}
|
|
474
|
-
}
|
|
475
|
-
if (err.message) {
|
|
476
|
-
errorMsg += err.message;
|
|
477
|
-
}
|
|
478
|
-
if (typeof err === 'string' || err instanceof String) {
|
|
479
|
-
errorMsg += err;
|
|
480
|
-
}
|
|
481
|
-
if (errorMsg !== '') {
|
|
482
|
-
return errorMsg;
|
|
483
|
-
}
|
|
484
|
-
}
|
|
485
|
-
}
|
|
486
|
-
|
|
487
302
|
/**
|
|
488
303
|
* https://gist.github.com/jordanluyke/609a4fffb69d1ebafdadd313ee2ee804
|
|
489
304
|
*
|
|
@@ -547,7 +362,7 @@ class ArrayMultimap {
|
|
|
547
362
|
return Array.from(new Set(this._entries.map(entry => entry.key)));
|
|
548
363
|
}
|
|
549
364
|
values() {
|
|
550
|
-
return
|
|
365
|
+
return this._entries.reduce((acc, x) => acc.concat(x.value), []);
|
|
551
366
|
}
|
|
552
367
|
put(key, value) {
|
|
553
368
|
this._entries.push(new MultimapEntry(key, value));
|
|
@@ -889,7 +704,7 @@ class ViewerControlService {
|
|
|
889
704
|
}
|
|
890
705
|
setOrigineelTreinPad(treinpad) {
|
|
891
706
|
const rit = JSON.parse(JSON.stringify(treinpad));
|
|
892
|
-
this.store.dispatch(SetAlgemeneRitInfo(
|
|
707
|
+
this.store.dispatch(SetAlgemeneRitInfo({
|
|
893
708
|
id: rit.id,
|
|
894
709
|
jaarplanId: rit.jaarplanId,
|
|
895
710
|
volgnummer: rit.volgnummer,
|
|
@@ -905,7 +720,7 @@ class ViewerControlService {
|
|
|
905
720
|
modified: rit.modified,
|
|
906
721
|
modifiedBy: rit.modifiedBy,
|
|
907
722
|
planJobId: rit.planJobId
|
|
908
|
-
}))
|
|
723
|
+
}));
|
|
909
724
|
this.origineelTreinPad = rit;
|
|
910
725
|
}
|
|
911
726
|
isValideRit$() {
|
|
@@ -964,212 +779,1593 @@ class DebugService {
|
|
|
964
779
|
for (const km of kms) {
|
|
965
780
|
logline += km.getKmLint() + ' ' + km.getKmWaarde() + ' ';
|
|
966
781
|
}
|
|
967
|
-
console.log(logline);
|
|
782
|
+
console.log(logline);
|
|
783
|
+
}
|
|
784
|
+
}
|
|
785
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DebugService, deps: [{ token: i2$1.Store }, { token: SignaleringsBeeldManagerService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
786
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DebugService, providedIn: 'root' }); }
|
|
787
|
+
}
|
|
788
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DebugService, decorators: [{
|
|
789
|
+
type: Injectable,
|
|
790
|
+
args: [{
|
|
791
|
+
providedIn: 'root'
|
|
792
|
+
}]
|
|
793
|
+
}], ctorParameters: () => [{ type: i2$1.Store }, { type: SignaleringsBeeldManagerService }] });
|
|
794
|
+
|
|
795
|
+
class PrintBewegingService {
|
|
796
|
+
constructor(store, viewerControlService, sbmService) {
|
|
797
|
+
this.store = store;
|
|
798
|
+
this.viewerControlService = viewerControlService;
|
|
799
|
+
this.sbmService = sbmService;
|
|
800
|
+
this.store.select(s => s.ritDelen).subscribe(ritdelen => this.ritdelen = ritdelen);
|
|
801
|
+
}
|
|
802
|
+
printBeweging(bewegingId, paginationSize, iaVersieInfo) {
|
|
803
|
+
const gevondenRitdeel = this.ritdelen.filter(r => parseInt(r.getBewegingId(), 10) === bewegingId);
|
|
804
|
+
// hide/show de knoppen
|
|
805
|
+
const printing = !!bewegingId && gevondenRitdeel.length === 1;
|
|
806
|
+
this.viewerControlService.setPrinting(printing);
|
|
807
|
+
if (!printing) {
|
|
808
|
+
return Promise.reject(new Error('Geen beweging gevonden voor ' + bewegingId));
|
|
809
|
+
}
|
|
810
|
+
return new Promise((resolve) => {
|
|
811
|
+
const ritdeel = gevondenRitdeel[0];
|
|
812
|
+
if (ritdeel.isNietBeschikbaar()) {
|
|
813
|
+
this.store.dispatch(navigeerVanaf(paginationSize, iaVersieInfo, ritdeel));
|
|
814
|
+
this.store.dispatch(ShowProgress());
|
|
815
|
+
setTimeout(() => this.focusOpBeweging(ritdeel, resolve), 1000);
|
|
816
|
+
}
|
|
817
|
+
else {
|
|
818
|
+
this.focusOpBeweging(ritdeel, resolve);
|
|
819
|
+
}
|
|
820
|
+
});
|
|
821
|
+
}
|
|
822
|
+
focusOpBeweging(ritdeel, resolve) {
|
|
823
|
+
// deselecteer alles
|
|
824
|
+
this.store.dispatch(setZichtbaarheidAlleRitdelen(false));
|
|
825
|
+
// enable ritacties (checkbox) voor alle ritdelen met beweging die matched met bewegingId(s)
|
|
826
|
+
this.store.dispatch(toggleZichtbaarheidVoorBewegingen([parseInt(ritdeel.getBewegingId(), 10)]));
|
|
827
|
+
setTimeout(() => {
|
|
828
|
+
// dit neemt niet de vrijebaan elementen mee
|
|
829
|
+
const topoElementen = this.sbmService.bepaalRouteElementen(ritdeel.getRoute());
|
|
830
|
+
const dwangPuics = this.getPuics(topoElementen);
|
|
831
|
+
this.store.dispatch(focusOpIds(dwangPuics));
|
|
832
|
+
setTimeout(() => {
|
|
833
|
+
// resolve de promise, om aan te geven dat focus klaar is
|
|
834
|
+
resolve(true);
|
|
835
|
+
this.viewerControlService.setPrinting(false);
|
|
836
|
+
this.store.dispatch(ClearProgress());
|
|
837
|
+
}, 1000);
|
|
838
|
+
});
|
|
839
|
+
}
|
|
840
|
+
getPuics(topoElementen) {
|
|
841
|
+
return topoElementen.map(e => e.getPuic());
|
|
842
|
+
}
|
|
843
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: PrintBewegingService, deps: [{ token: i2$1.Store }, { token: ViewerControlService }, { token: SignaleringsBeeldManagerService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
844
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: PrintBewegingService, providedIn: 'root' }); }
|
|
845
|
+
}
|
|
846
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: PrintBewegingService, decorators: [{
|
|
847
|
+
type: Injectable,
|
|
848
|
+
args: [{
|
|
849
|
+
providedIn: 'root'
|
|
850
|
+
}]
|
|
851
|
+
}], ctorParameters: () => [{ type: i2$1.Store }, { type: ViewerControlService }, { type: SignaleringsBeeldManagerService }] });
|
|
852
|
+
|
|
853
|
+
class RpeComponent {
|
|
854
|
+
convertToScript() {
|
|
855
|
+
const element = this.script.nativeElement;
|
|
856
|
+
const script = document.createElement('script');
|
|
857
|
+
script.type = 'text/javascript';
|
|
858
|
+
if (this.baseurl && this.path) {
|
|
859
|
+
script.src = this.baseurl + this.path;
|
|
860
|
+
// eslint-disable-next-line no-console
|
|
861
|
+
console.log('Code geladen van: ' + script.src); //useful for debugging in GWT environment
|
|
862
|
+
}
|
|
863
|
+
const parent = element.parentElement;
|
|
864
|
+
parent.parentElement.replaceChild(script, parent);
|
|
865
|
+
}
|
|
866
|
+
ngAfterViewInit() {
|
|
867
|
+
this.convertToScript();
|
|
868
|
+
}
|
|
869
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: RpeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
870
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.7", type: RpeComponent, selector: "rpe-component", inputs: { baseurl: "baseurl", path: "path" }, viewQueries: [{ propertyName: "script", first: true, predicate: ["rpescript"], descendants: true }], ngImport: i0, template: "<div #rpescript style.display=\"none\">\n <ng-content></ng-content>\n</div>\n" }); }
|
|
871
|
+
}
|
|
872
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: RpeComponent, decorators: [{
|
|
873
|
+
type: Component,
|
|
874
|
+
args: [{ selector: 'rpe-component', template: "<div #rpescript style.display=\"none\">\n <ng-content></ng-content>\n</div>\n" }]
|
|
875
|
+
}], propDecorators: { baseurl: [{
|
|
876
|
+
type: Input
|
|
877
|
+
}], path: [{
|
|
878
|
+
type: Input
|
|
879
|
+
}], script: [{
|
|
880
|
+
type: ViewChild,
|
|
881
|
+
args: ['rpescript']
|
|
882
|
+
}] } });
|
|
883
|
+
|
|
884
|
+
class OngeplandeActie {
|
|
885
|
+
constructor(actie, puics) {
|
|
886
|
+
this.actie = actie;
|
|
887
|
+
this.puics = puics;
|
|
888
|
+
}
|
|
889
|
+
}
|
|
890
|
+
|
|
891
|
+
class KmRange {
|
|
892
|
+
constructor(topologyElement, vanKilometreringen, totKilometreringen) {
|
|
893
|
+
this.topologyElement = topologyElement;
|
|
894
|
+
this.vanKilometreringen = vanKilometreringen;
|
|
895
|
+
this.totKilometreringen = totKilometreringen;
|
|
896
|
+
}
|
|
897
|
+
static rangeVoorPuntObject(topologyElement) {
|
|
898
|
+
return new KmRange(topologyElement, JsJavaUtil.listToArray(topologyElement.getKilometreringen()), JsJavaUtil.listToArray(topologyElement.getKilometreringen()));
|
|
899
|
+
}
|
|
900
|
+
static rangeVoorStrekObject(topologyElement, vanKilometreringen, totKilometreringen) {
|
|
901
|
+
return new KmRange(topologyElement, vanKilometreringen, totKilometreringen);
|
|
902
|
+
}
|
|
903
|
+
static getKilometrering(lintNaam, kilometreringen) {
|
|
904
|
+
const result = kilometreringen.filter(kilometrering => kilometrering.getKmLint() === lintNaam);
|
|
905
|
+
if (result.length >= 1) {
|
|
906
|
+
return result[0];
|
|
907
|
+
}
|
|
908
|
+
return null;
|
|
909
|
+
}
|
|
910
|
+
heeftOverlap(kilometrering1, kilometrering2) {
|
|
911
|
+
const vanKilometrering = KmRange.getKilometrering(kilometrering1.getKmLint(), this.vanKilometreringen);
|
|
912
|
+
const totKilometrering = KmRange.getKilometrering(kilometrering2.getKmLint(), this.totKilometreringen);
|
|
913
|
+
if (!vanKilometrering || !totKilometrering) {
|
|
914
|
+
return false;
|
|
915
|
+
}
|
|
916
|
+
let startKmWaarde = vanKilometrering.getKmWaarde();
|
|
917
|
+
let endKmWaarde = totKilometrering.getKmWaarde();
|
|
918
|
+
if (startKmWaarde > endKmWaarde) {
|
|
919
|
+
const temp = { end: endKmWaarde, start: startKmWaarde };
|
|
920
|
+
startKmWaarde = temp.end;
|
|
921
|
+
endKmWaarde = temp.start;
|
|
922
|
+
}
|
|
923
|
+
const actieStartKmWaarde = kilometrering1.getKmWaarde();
|
|
924
|
+
const actieEndKmWaarde = kilometrering2.getKmWaarde();
|
|
925
|
+
return endKmWaarde >= actieStartKmWaarde && actieEndKmWaarde >= startKmWaarde;
|
|
926
|
+
}
|
|
927
|
+
}
|
|
928
|
+
|
|
929
|
+
class WisselKantCode {
|
|
930
|
+
constructor(naam, kantCode) {
|
|
931
|
+
this.naam = naam;
|
|
932
|
+
this.kantCode = kantCode;
|
|
933
|
+
}
|
|
934
|
+
}
|
|
935
|
+
|
|
936
|
+
class MeldingEvent {
|
|
937
|
+
constructor(meldingMessage, meldingLevel) {
|
|
938
|
+
this.meldingMessage = meldingMessage;
|
|
939
|
+
this.meldingLevel = meldingLevel;
|
|
940
|
+
}
|
|
941
|
+
}
|
|
942
|
+
|
|
943
|
+
const MELDING_LEVEL_ERROR = 'error';
|
|
944
|
+
const MELDING_LEVEL_WARNING = 'warn';
|
|
945
|
+
const MELDING_LEVEL_INFO = 'info';
|
|
946
|
+
class MeldingBuilder {
|
|
947
|
+
static nietGevondenTakkenOngeplandeActies(nietGevondenTakken) {
|
|
948
|
+
return new MeldingEvent('Niet gevonden takken uit \'OngeplandeActies\': ' + nietGevondenTakken, MELDING_LEVEL_INFO);
|
|
949
|
+
}
|
|
950
|
+
static actieHighlightError(actieZonderElementen) {
|
|
951
|
+
return new MeldingEvent('Highlight error. Geen elementen kunnen vinden voor actie(s) met id: ' + actieZonderElementen, MELDING_LEVEL_ERROR);
|
|
952
|
+
}
|
|
953
|
+
}
|
|
954
|
+
|
|
955
|
+
class Utils {
|
|
956
|
+
static getValidErorrMessage(err) {
|
|
957
|
+
let errorMsg = '';
|
|
958
|
+
if (err.msg) {
|
|
959
|
+
errorMsg += err.msg;
|
|
960
|
+
}
|
|
961
|
+
if (Array.isArray(err.body)) {
|
|
962
|
+
err.body.forEach((x) => errorMsg += x);
|
|
963
|
+
}
|
|
964
|
+
else if (err.body) {
|
|
965
|
+
if (err.body instanceof ProgressEvent) {
|
|
966
|
+
errorMsg = 'Kon geen verbinding maken met de server';
|
|
967
|
+
}
|
|
968
|
+
else if (err.body.text) {
|
|
969
|
+
errorMsg += err.body.text;
|
|
970
|
+
}
|
|
971
|
+
else {
|
|
972
|
+
errorMsg += err.body;
|
|
973
|
+
}
|
|
974
|
+
}
|
|
975
|
+
if (err.message) {
|
|
976
|
+
errorMsg += err.message;
|
|
977
|
+
}
|
|
978
|
+
if (typeof err === 'string' || err instanceof String) {
|
|
979
|
+
errorMsg += err;
|
|
980
|
+
}
|
|
981
|
+
if (errorMsg !== '') {
|
|
982
|
+
return errorMsg;
|
|
983
|
+
}
|
|
984
|
+
}
|
|
985
|
+
}
|
|
986
|
+
|
|
987
|
+
class MessageBuilder {
|
|
988
|
+
static rwpDataNietGevonden(err) {
|
|
989
|
+
return new Message(Severity.ERROR, 'Error bij ophalen van rijwegplan data: ' + err);
|
|
990
|
+
}
|
|
991
|
+
static rijwegNietGevonden(beweging) {
|
|
992
|
+
return new Message(Severity.ERROR, `Rijweg van ${beweging.vanSpoor} in PPLG ${beweging.vanPplg} naar ${beweging.naarSpoor} niet gevonden`);
|
|
993
|
+
}
|
|
994
|
+
static rijwegplanNietGevonden(beweging) {
|
|
995
|
+
return new Message(Severity.ERROR, `Rijwegplan van PPLG ${beweging.vanPplg} niet gevonden`);
|
|
996
|
+
}
|
|
997
|
+
static dwangNietGevonden(beweging) {
|
|
998
|
+
return new Message(Severity.ERROR, `Dwang ${beweging.dwangNummer} voor rijweg van ${beweging.vanSpoor} in PPLG ${beweging.vanPplg} naar ${beweging.naarSpoor} niet gevonden`);
|
|
999
|
+
}
|
|
1000
|
+
static nietGevondenSBI(err) {
|
|
1001
|
+
return new Message(Severity.ERROR, 'Error bij het ophalen van signaleringsbeeldinfo: ' + Utils.getValidErorrMessage(err));
|
|
1002
|
+
}
|
|
1003
|
+
static actieHighlightError(actieZonderElementen) {
|
|
1004
|
+
return new Message(Severity.ERROR, 'Highlight error. Geen elementen kunnen vinden voor actie(s) met id: ' + actieZonderElementen);
|
|
1005
|
+
}
|
|
1006
|
+
static ritFileAlGewijzigdError(beweging) {
|
|
1007
|
+
return new Message(Severity.ERROR, 'Rit bevat een beweging met status \'Gewijzigd\': Beweging met ID:' + beweging.id);
|
|
1008
|
+
}
|
|
1009
|
+
static meerDan12BladenGevonden(bladAmount) {
|
|
1010
|
+
return new Message(Severity.WARNING, 'Warning, Rit bevat ' + bladAmount + ' bladen. Er worden maximaal 12 bladen ondersteund.');
|
|
1011
|
+
}
|
|
1012
|
+
static nietGevondenTakkenOngeplandeActies(nietGevondenTakken) {
|
|
1013
|
+
return new Message(Severity.INFORMATION, 'Info, Niet gevonden takken uit \'OngeplandeActies\': ' + nietGevondenTakken);
|
|
1014
|
+
}
|
|
1015
|
+
}
|
|
1016
|
+
|
|
1017
|
+
/**
|
|
1018
|
+
* Custom HttpParameterCodec
|
|
1019
|
+
* Workaround for https://github.com/angular/angular/issues/18261
|
|
1020
|
+
*/
|
|
1021
|
+
class CustomHttpParameterCodec {
|
|
1022
|
+
encodeKey(k) {
|
|
1023
|
+
return encodeURIComponent(k);
|
|
1024
|
+
}
|
|
1025
|
+
encodeValue(v) {
|
|
1026
|
+
return encodeURIComponent(v);
|
|
1027
|
+
}
|
|
1028
|
+
decodeKey(k) {
|
|
1029
|
+
return decodeURIComponent(k);
|
|
1030
|
+
}
|
|
1031
|
+
decodeValue(v) {
|
|
1032
|
+
return decodeURIComponent(v);
|
|
1033
|
+
}
|
|
1034
|
+
}
|
|
1035
|
+
|
|
1036
|
+
const BASE_PATH = new InjectionToken('basePath');
|
|
1037
|
+
const COLLECTION_FORMATS = {
|
|
1038
|
+
'csv': ',',
|
|
1039
|
+
'tsv': ' ',
|
|
1040
|
+
'ssv': ' ',
|
|
1041
|
+
'pipes': '|'
|
|
1042
|
+
};
|
|
1043
|
+
|
|
1044
|
+
class Configuration {
|
|
1045
|
+
constructor(configurationParameters = {}) {
|
|
1046
|
+
this.apiKeys = configurationParameters.apiKeys;
|
|
1047
|
+
this.username = configurationParameters.username;
|
|
1048
|
+
this.password = configurationParameters.password;
|
|
1049
|
+
this.accessToken = configurationParameters.accessToken;
|
|
1050
|
+
this.basePath = configurationParameters.basePath;
|
|
1051
|
+
this.withCredentials = configurationParameters.withCredentials;
|
|
1052
|
+
this.encoder = configurationParameters.encoder;
|
|
1053
|
+
if (configurationParameters.encodeParam) {
|
|
1054
|
+
this.encodeParam = configurationParameters.encodeParam;
|
|
1055
|
+
}
|
|
1056
|
+
else {
|
|
1057
|
+
this.encodeParam = param => this.defaultEncodeParam(param);
|
|
1058
|
+
}
|
|
1059
|
+
if (configurationParameters.credentials) {
|
|
1060
|
+
this.credentials = configurationParameters.credentials;
|
|
1061
|
+
}
|
|
1062
|
+
else {
|
|
1063
|
+
this.credentials = {};
|
|
1064
|
+
}
|
|
1065
|
+
// init default keycloak_auth credential
|
|
1066
|
+
if (!this.credentials['keycloak_auth']) {
|
|
1067
|
+
this.credentials['keycloak_auth'] = () => {
|
|
1068
|
+
return typeof this.accessToken === 'function'
|
|
1069
|
+
? this.accessToken()
|
|
1070
|
+
: this.accessToken;
|
|
1071
|
+
};
|
|
1072
|
+
}
|
|
1073
|
+
}
|
|
1074
|
+
/**
|
|
1075
|
+
* Select the correct content-type to use for a request.
|
|
1076
|
+
* Uses {@link Configuration#isJsonMime} to determine the correct content-type.
|
|
1077
|
+
* If no content type is found return the first found type if the contentTypes is not empty
|
|
1078
|
+
* @param contentTypes - the array of content types that are available for selection
|
|
1079
|
+
* @returns the selected content-type or <code>undefined</code> if no selection could be made.
|
|
1080
|
+
*/
|
|
1081
|
+
selectHeaderContentType(contentTypes) {
|
|
1082
|
+
if (contentTypes.length === 0) {
|
|
1083
|
+
return undefined;
|
|
1084
|
+
}
|
|
1085
|
+
const type = contentTypes.find((x) => this.isJsonMime(x));
|
|
1086
|
+
if (type === undefined) {
|
|
1087
|
+
return contentTypes[0];
|
|
1088
|
+
}
|
|
1089
|
+
return type;
|
|
1090
|
+
}
|
|
1091
|
+
/**
|
|
1092
|
+
* Select the correct accept content-type to use for a request.
|
|
1093
|
+
* Uses {@link Configuration#isJsonMime} to determine the correct accept content-type.
|
|
1094
|
+
* If no content type is found return the first found type if the contentTypes is not empty
|
|
1095
|
+
* @param accepts - the array of content types that are available for selection.
|
|
1096
|
+
* @returns the selected content-type or <code>undefined</code> if no selection could be made.
|
|
1097
|
+
*/
|
|
1098
|
+
selectHeaderAccept(accepts) {
|
|
1099
|
+
if (accepts.length === 0) {
|
|
1100
|
+
return undefined;
|
|
1101
|
+
}
|
|
1102
|
+
const type = accepts.find((x) => this.isJsonMime(x));
|
|
1103
|
+
if (type === undefined) {
|
|
1104
|
+
return accepts[0];
|
|
1105
|
+
}
|
|
1106
|
+
return type;
|
|
1107
|
+
}
|
|
1108
|
+
/**
|
|
1109
|
+
* Check if the given MIME is a JSON MIME.
|
|
1110
|
+
* JSON MIME examples:
|
|
1111
|
+
* application/json
|
|
1112
|
+
* application/json; charset=UTF8
|
|
1113
|
+
* APPLICATION/JSON
|
|
1114
|
+
* application/vnd.company+json
|
|
1115
|
+
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
1116
|
+
* @return True if the given MIME is JSON, false otherwise.
|
|
1117
|
+
*/
|
|
1118
|
+
isJsonMime(mime) {
|
|
1119
|
+
const jsonMime = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
|
|
1120
|
+
return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
|
|
1121
|
+
}
|
|
1122
|
+
lookupCredential(key) {
|
|
1123
|
+
const value = this.credentials[key];
|
|
1124
|
+
return typeof value === 'function'
|
|
1125
|
+
? value()
|
|
1126
|
+
: value;
|
|
1127
|
+
}
|
|
1128
|
+
defaultEncodeParam(param) {
|
|
1129
|
+
// This implementation exists as fallback for missing configuration
|
|
1130
|
+
// and for backwards compatibility to older typescript-angular generator versions.
|
|
1131
|
+
// It only works for the 'simple' parameter style.
|
|
1132
|
+
// Date-handling only works for the 'date-time' format.
|
|
1133
|
+
// All other styles and Date-formats are probably handled incorrectly.
|
|
1134
|
+
//
|
|
1135
|
+
// But: if that's all you need (i.e.: the most common use-case): no need for customization!
|
|
1136
|
+
const value = param.dataFormat === 'date-time' && param.value instanceof Date
|
|
1137
|
+
? param.value.toISOString()
|
|
1138
|
+
: param.value;
|
|
1139
|
+
return encodeURIComponent(String(value));
|
|
1140
|
+
}
|
|
1141
|
+
}
|
|
1142
|
+
|
|
1143
|
+
/**
|
|
1144
|
+
* MST
|
|
1145
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
1146
|
+
*
|
|
1147
|
+
* The version of the OpenAPI document: 1
|
|
1148
|
+
*
|
|
1149
|
+
*
|
|
1150
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1151
|
+
* https://openapi-generator.tech
|
|
1152
|
+
* Do not edit the class manually.
|
|
1153
|
+
*/
|
|
1154
|
+
/* tslint:disable:no-unused-variable member-ordering */
|
|
1155
|
+
class AppConfigControllerService {
|
|
1156
|
+
constructor(httpClient, basePath, configuration) {
|
|
1157
|
+
this.httpClient = httpClient;
|
|
1158
|
+
this.basePath = 'http://localhost:8080/mst';
|
|
1159
|
+
this.defaultHeaders = new HttpHeaders();
|
|
1160
|
+
this.configuration = new Configuration();
|
|
1161
|
+
if (configuration) {
|
|
1162
|
+
this.configuration = configuration;
|
|
1163
|
+
}
|
|
1164
|
+
if (typeof this.configuration.basePath !== 'string') {
|
|
1165
|
+
if (Array.isArray(basePath) && basePath.length > 0) {
|
|
1166
|
+
basePath = basePath[0];
|
|
1167
|
+
}
|
|
1168
|
+
if (typeof basePath !== 'string') {
|
|
1169
|
+
basePath = this.basePath;
|
|
1170
|
+
}
|
|
1171
|
+
this.configuration.basePath = basePath;
|
|
1172
|
+
}
|
|
1173
|
+
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
1174
|
+
}
|
|
1175
|
+
// @ts-ignore
|
|
1176
|
+
addToHttpParams(httpParams, value, key) {
|
|
1177
|
+
if (typeof value === "object" && value instanceof Date === false) {
|
|
1178
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
1179
|
+
}
|
|
1180
|
+
else {
|
|
1181
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
|
|
1182
|
+
}
|
|
1183
|
+
return httpParams;
|
|
1184
|
+
}
|
|
1185
|
+
addToHttpParamsRecursive(httpParams, value, key) {
|
|
1186
|
+
if (value == null) {
|
|
1187
|
+
return httpParams;
|
|
1188
|
+
}
|
|
1189
|
+
if (typeof value === "object") {
|
|
1190
|
+
if (Array.isArray(value)) {
|
|
1191
|
+
value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
|
|
1192
|
+
}
|
|
1193
|
+
else if (value instanceof Date) {
|
|
1194
|
+
if (key != null) {
|
|
1195
|
+
httpParams = httpParams.append(key, value.toISOString().substring(0, 10));
|
|
1196
|
+
}
|
|
1197
|
+
else {
|
|
1198
|
+
throw Error("key may not be null if value is Date");
|
|
1199
|
+
}
|
|
1200
|
+
}
|
|
1201
|
+
else {
|
|
1202
|
+
Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
|
|
1203
|
+
}
|
|
1204
|
+
}
|
|
1205
|
+
else if (key != null) {
|
|
1206
|
+
httpParams = httpParams.append(key, value);
|
|
1207
|
+
}
|
|
1208
|
+
else {
|
|
1209
|
+
throw Error("key may not be null if value is not object or array");
|
|
1210
|
+
}
|
|
1211
|
+
return httpParams;
|
|
1212
|
+
}
|
|
1213
|
+
getAppConfig(observe = 'body', reportProgress = false, options) {
|
|
1214
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1215
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
1216
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
1217
|
+
// to determine the Accept header
|
|
1218
|
+
const httpHeaderAccepts = [
|
|
1219
|
+
'*/*'
|
|
1220
|
+
];
|
|
1221
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1222
|
+
}
|
|
1223
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1224
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
1225
|
+
}
|
|
1226
|
+
let localVarHttpContext = options && options.context;
|
|
1227
|
+
if (localVarHttpContext === undefined) {
|
|
1228
|
+
localVarHttpContext = new HttpContext();
|
|
1229
|
+
}
|
|
1230
|
+
let localVarTransferCache = options && options.transferCache;
|
|
1231
|
+
if (localVarTransferCache === undefined) {
|
|
1232
|
+
localVarTransferCache = true;
|
|
1233
|
+
}
|
|
1234
|
+
let responseType_ = 'json';
|
|
1235
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1236
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
1237
|
+
responseType_ = 'text';
|
|
1238
|
+
}
|
|
1239
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1240
|
+
responseType_ = 'json';
|
|
1241
|
+
}
|
|
1242
|
+
else {
|
|
1243
|
+
responseType_ = 'blob';
|
|
1244
|
+
}
|
|
1245
|
+
}
|
|
1246
|
+
let localVarPath = `/rest/appconfig`;
|
|
1247
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
1248
|
+
context: localVarHttpContext,
|
|
1249
|
+
responseType: responseType_,
|
|
1250
|
+
withCredentials: this.configuration.withCredentials,
|
|
1251
|
+
headers: localVarHeaders,
|
|
1252
|
+
observe: observe,
|
|
1253
|
+
transferCache: localVarTransferCache,
|
|
1254
|
+
reportProgress: reportProgress
|
|
1255
|
+
});
|
|
1256
|
+
}
|
|
1257
|
+
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 }); }
|
|
1258
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: AppConfigControllerService, providedIn: 'root' }); }
|
|
1259
|
+
}
|
|
1260
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: AppConfigControllerService, decorators: [{
|
|
1261
|
+
type: Injectable,
|
|
1262
|
+
args: [{
|
|
1263
|
+
providedIn: 'root'
|
|
1264
|
+
}]
|
|
1265
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1266
|
+
type: Optional
|
|
1267
|
+
}, {
|
|
1268
|
+
type: Inject,
|
|
1269
|
+
args: [BASE_PATH]
|
|
1270
|
+
}] }, { type: Configuration, decorators: [{
|
|
1271
|
+
type: Optional
|
|
1272
|
+
}] }] });
|
|
1273
|
+
|
|
1274
|
+
/**
|
|
1275
|
+
* MST
|
|
1276
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
1277
|
+
*
|
|
1278
|
+
* The version of the OpenAPI document: 1
|
|
1279
|
+
*
|
|
1280
|
+
*
|
|
1281
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1282
|
+
* https://openapi-generator.tech
|
|
1283
|
+
* Do not edit the class manually.
|
|
1284
|
+
*/
|
|
1285
|
+
/* tslint:disable:no-unused-variable member-ordering */
|
|
1286
|
+
class BewegingControllerService {
|
|
1287
|
+
constructor(httpClient, basePath, configuration) {
|
|
1288
|
+
this.httpClient = httpClient;
|
|
1289
|
+
this.basePath = 'http://localhost:8080/mst';
|
|
1290
|
+
this.defaultHeaders = new HttpHeaders();
|
|
1291
|
+
this.configuration = new Configuration();
|
|
1292
|
+
if (configuration) {
|
|
1293
|
+
this.configuration = configuration;
|
|
1294
|
+
}
|
|
1295
|
+
if (typeof this.configuration.basePath !== 'string') {
|
|
1296
|
+
if (Array.isArray(basePath) && basePath.length > 0) {
|
|
1297
|
+
basePath = basePath[0];
|
|
1298
|
+
}
|
|
1299
|
+
if (typeof basePath !== 'string') {
|
|
1300
|
+
basePath = this.basePath;
|
|
1301
|
+
}
|
|
1302
|
+
this.configuration.basePath = basePath;
|
|
1303
|
+
}
|
|
1304
|
+
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
1305
|
+
}
|
|
1306
|
+
// @ts-ignore
|
|
1307
|
+
addToHttpParams(httpParams, value, key) {
|
|
1308
|
+
if (typeof value === "object" && value instanceof Date === false) {
|
|
1309
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
1310
|
+
}
|
|
1311
|
+
else {
|
|
1312
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
|
|
1313
|
+
}
|
|
1314
|
+
return httpParams;
|
|
1315
|
+
}
|
|
1316
|
+
addToHttpParamsRecursive(httpParams, value, key) {
|
|
1317
|
+
if (value == null) {
|
|
1318
|
+
return httpParams;
|
|
1319
|
+
}
|
|
1320
|
+
if (typeof value === "object") {
|
|
1321
|
+
if (Array.isArray(value)) {
|
|
1322
|
+
value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
|
|
1323
|
+
}
|
|
1324
|
+
else if (value instanceof Date) {
|
|
1325
|
+
if (key != null) {
|
|
1326
|
+
httpParams = httpParams.append(key, value.toISOString().substring(0, 10));
|
|
1327
|
+
}
|
|
1328
|
+
else {
|
|
1329
|
+
throw Error("key may not be null if value is Date");
|
|
1330
|
+
}
|
|
1331
|
+
}
|
|
1332
|
+
else {
|
|
1333
|
+
Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
|
|
1334
|
+
}
|
|
1335
|
+
}
|
|
1336
|
+
else if (key != null) {
|
|
1337
|
+
httpParams = httpParams.append(key, value);
|
|
1338
|
+
}
|
|
1339
|
+
else {
|
|
1340
|
+
throw Error("key may not be null if value is not object or array");
|
|
1341
|
+
}
|
|
1342
|
+
return httpParams;
|
|
1343
|
+
}
|
|
1344
|
+
verrijkBewegingenMetOngeplandeActies(iaVersie, ritRequestDto, observe = 'body', reportProgress = false, options) {
|
|
1345
|
+
if (iaVersie === null || iaVersie === undefined) {
|
|
1346
|
+
throw new Error('Required parameter iaVersie was null or undefined when calling verrijkBewegingenMetOngeplandeActies.');
|
|
1347
|
+
}
|
|
1348
|
+
if (ritRequestDto === null || ritRequestDto === undefined) {
|
|
1349
|
+
throw new Error('Required parameter ritRequestDto was null or undefined when calling verrijkBewegingenMetOngeplandeActies.');
|
|
1350
|
+
}
|
|
1351
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1352
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
1353
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
1354
|
+
// to determine the Accept header
|
|
1355
|
+
const httpHeaderAccepts = [
|
|
1356
|
+
'*/*'
|
|
1357
|
+
];
|
|
1358
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1359
|
+
}
|
|
1360
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1361
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
1362
|
+
}
|
|
1363
|
+
let localVarHttpContext = options && options.context;
|
|
1364
|
+
if (localVarHttpContext === undefined) {
|
|
1365
|
+
localVarHttpContext = new HttpContext();
|
|
1366
|
+
}
|
|
1367
|
+
let localVarTransferCache = options && options.transferCache;
|
|
1368
|
+
if (localVarTransferCache === undefined) {
|
|
1369
|
+
localVarTransferCache = true;
|
|
1370
|
+
}
|
|
1371
|
+
// to determine the Content-Type header
|
|
1372
|
+
const consumes = [
|
|
1373
|
+
'application/json'
|
|
1374
|
+
];
|
|
1375
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
1376
|
+
if (httpContentTypeSelected !== undefined) {
|
|
1377
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
1378
|
+
}
|
|
1379
|
+
let responseType_ = 'json';
|
|
1380
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1381
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
1382
|
+
responseType_ = 'text';
|
|
1383
|
+
}
|
|
1384
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1385
|
+
responseType_ = 'json';
|
|
1386
|
+
}
|
|
1387
|
+
else {
|
|
1388
|
+
responseType_ = 'blob';
|
|
1389
|
+
}
|
|
1390
|
+
}
|
|
1391
|
+
let localVarPath = `/rest/beweging/${this.configuration.encodeParam({ name: "iaVersie", value: iaVersie, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
|
|
1392
|
+
return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, {
|
|
1393
|
+
context: localVarHttpContext,
|
|
1394
|
+
body: ritRequestDto,
|
|
1395
|
+
responseType: responseType_,
|
|
1396
|
+
withCredentials: this.configuration.withCredentials,
|
|
1397
|
+
headers: localVarHeaders,
|
|
1398
|
+
observe: observe,
|
|
1399
|
+
transferCache: localVarTransferCache,
|
|
1400
|
+
reportProgress: reportProgress
|
|
1401
|
+
});
|
|
1402
|
+
}
|
|
1403
|
+
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 }); }
|
|
1404
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: BewegingControllerService, providedIn: 'root' }); }
|
|
1405
|
+
}
|
|
1406
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: BewegingControllerService, decorators: [{
|
|
1407
|
+
type: Injectable,
|
|
1408
|
+
args: [{
|
|
1409
|
+
providedIn: 'root'
|
|
1410
|
+
}]
|
|
1411
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1412
|
+
type: Optional
|
|
1413
|
+
}, {
|
|
1414
|
+
type: Inject,
|
|
1415
|
+
args: [BASE_PATH]
|
|
1416
|
+
}] }, { type: Configuration, decorators: [{
|
|
1417
|
+
type: Optional
|
|
1418
|
+
}] }] });
|
|
1419
|
+
|
|
1420
|
+
/**
|
|
1421
|
+
* MST
|
|
1422
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
1423
|
+
*
|
|
1424
|
+
* The version of the OpenAPI document: 1
|
|
1425
|
+
*
|
|
1426
|
+
*
|
|
1427
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1428
|
+
* https://openapi-generator.tech
|
|
1429
|
+
* Do not edit the class manually.
|
|
1430
|
+
*/
|
|
1431
|
+
/* tslint:disable:no-unused-variable member-ordering */
|
|
1432
|
+
class Class0BuildPropertiesService {
|
|
1433
|
+
constructor(httpClient, basePath, configuration) {
|
|
1434
|
+
this.httpClient = httpClient;
|
|
1435
|
+
this.basePath = 'http://localhost:8080/mst';
|
|
1436
|
+
this.defaultHeaders = new HttpHeaders();
|
|
1437
|
+
this.configuration = new Configuration();
|
|
1438
|
+
if (configuration) {
|
|
1439
|
+
this.configuration = configuration;
|
|
1440
|
+
}
|
|
1441
|
+
if (typeof this.configuration.basePath !== 'string') {
|
|
1442
|
+
if (Array.isArray(basePath) && basePath.length > 0) {
|
|
1443
|
+
basePath = basePath[0];
|
|
1444
|
+
}
|
|
1445
|
+
if (typeof basePath !== 'string') {
|
|
1446
|
+
basePath = this.basePath;
|
|
1447
|
+
}
|
|
1448
|
+
this.configuration.basePath = basePath;
|
|
1449
|
+
}
|
|
1450
|
+
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
1451
|
+
}
|
|
1452
|
+
// @ts-ignore
|
|
1453
|
+
addToHttpParams(httpParams, value, key) {
|
|
1454
|
+
if (typeof value === "object" && value instanceof Date === false) {
|
|
1455
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
1456
|
+
}
|
|
1457
|
+
else {
|
|
1458
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
|
|
1459
|
+
}
|
|
1460
|
+
return httpParams;
|
|
1461
|
+
}
|
|
1462
|
+
addToHttpParamsRecursive(httpParams, value, key) {
|
|
1463
|
+
if (value == null) {
|
|
1464
|
+
return httpParams;
|
|
1465
|
+
}
|
|
1466
|
+
if (typeof value === "object") {
|
|
1467
|
+
if (Array.isArray(value)) {
|
|
1468
|
+
value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
|
|
1469
|
+
}
|
|
1470
|
+
else if (value instanceof Date) {
|
|
1471
|
+
if (key != null) {
|
|
1472
|
+
httpParams = httpParams.append(key, value.toISOString().substring(0, 10));
|
|
1473
|
+
}
|
|
1474
|
+
else {
|
|
1475
|
+
throw Error("key may not be null if value is Date");
|
|
1476
|
+
}
|
|
1477
|
+
}
|
|
1478
|
+
else {
|
|
1479
|
+
Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
|
|
1480
|
+
}
|
|
1481
|
+
}
|
|
1482
|
+
else if (key != null) {
|
|
1483
|
+
httpParams = httpParams.append(key, value);
|
|
1484
|
+
}
|
|
1485
|
+
else {
|
|
1486
|
+
throw Error("key may not be null if value is not object or array");
|
|
1487
|
+
}
|
|
1488
|
+
return httpParams;
|
|
1489
|
+
}
|
|
1490
|
+
getBuildProperties(observe = 'body', reportProgress = false, options) {
|
|
1491
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1492
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
1493
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
1494
|
+
// to determine the Accept header
|
|
1495
|
+
const httpHeaderAccepts = [
|
|
1496
|
+
'application/json'
|
|
1497
|
+
];
|
|
1498
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1499
|
+
}
|
|
1500
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1501
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
1502
|
+
}
|
|
1503
|
+
let localVarHttpContext = options && options.context;
|
|
1504
|
+
if (localVarHttpContext === undefined) {
|
|
1505
|
+
localVarHttpContext = new HttpContext();
|
|
1506
|
+
}
|
|
1507
|
+
let localVarTransferCache = options && options.transferCache;
|
|
1508
|
+
if (localVarTransferCache === undefined) {
|
|
1509
|
+
localVarTransferCache = true;
|
|
1510
|
+
}
|
|
1511
|
+
let responseType_ = 'json';
|
|
1512
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1513
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
1514
|
+
responseType_ = 'text';
|
|
1515
|
+
}
|
|
1516
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1517
|
+
responseType_ = 'json';
|
|
1518
|
+
}
|
|
1519
|
+
else {
|
|
1520
|
+
responseType_ = 'blob';
|
|
1521
|
+
}
|
|
1522
|
+
}
|
|
1523
|
+
let localVarPath = `/build.properties`;
|
|
1524
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
1525
|
+
context: localVarHttpContext,
|
|
1526
|
+
responseType: responseType_,
|
|
1527
|
+
withCredentials: this.configuration.withCredentials,
|
|
1528
|
+
headers: localVarHeaders,
|
|
1529
|
+
observe: observe,
|
|
1530
|
+
transferCache: localVarTransferCache,
|
|
1531
|
+
reportProgress: reportProgress
|
|
1532
|
+
});
|
|
1533
|
+
}
|
|
1534
|
+
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 }); }
|
|
1535
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: Class0BuildPropertiesService, providedIn: 'root' }); }
|
|
1536
|
+
}
|
|
1537
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: Class0BuildPropertiesService, decorators: [{
|
|
1538
|
+
type: Injectable,
|
|
1539
|
+
args: [{
|
|
1540
|
+
providedIn: 'root'
|
|
1541
|
+
}]
|
|
1542
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1543
|
+
type: Optional
|
|
1544
|
+
}, {
|
|
1545
|
+
type: Inject,
|
|
1546
|
+
args: [BASE_PATH]
|
|
1547
|
+
}] }, { type: Configuration, decorators: [{
|
|
1548
|
+
type: Optional
|
|
1549
|
+
}] }] });
|
|
1550
|
+
|
|
1551
|
+
/**
|
|
1552
|
+
* MST
|
|
1553
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
1554
|
+
*
|
|
1555
|
+
* The version of the OpenAPI document: 1
|
|
1556
|
+
*
|
|
1557
|
+
*
|
|
1558
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1559
|
+
* https://openapi-generator.tech
|
|
1560
|
+
* Do not edit the class manually.
|
|
1561
|
+
*/
|
|
1562
|
+
/* tslint:disable:no-unused-variable member-ordering */
|
|
1563
|
+
class ConnectorControllerService {
|
|
1564
|
+
constructor(httpClient, basePath, configuration) {
|
|
1565
|
+
this.httpClient = httpClient;
|
|
1566
|
+
this.basePath = 'http://localhost:8080/mst';
|
|
1567
|
+
this.defaultHeaders = new HttpHeaders();
|
|
1568
|
+
this.configuration = new Configuration();
|
|
1569
|
+
if (configuration) {
|
|
1570
|
+
this.configuration = configuration;
|
|
1571
|
+
}
|
|
1572
|
+
if (typeof this.configuration.basePath !== 'string') {
|
|
1573
|
+
if (Array.isArray(basePath) && basePath.length > 0) {
|
|
1574
|
+
basePath = basePath[0];
|
|
1575
|
+
}
|
|
1576
|
+
if (typeof basePath !== 'string') {
|
|
1577
|
+
basePath = this.basePath;
|
|
1578
|
+
}
|
|
1579
|
+
this.configuration.basePath = basePath;
|
|
1580
|
+
}
|
|
1581
|
+
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
1582
|
+
}
|
|
1583
|
+
// @ts-ignore
|
|
1584
|
+
addToHttpParams(httpParams, value, key) {
|
|
1585
|
+
if (typeof value === "object" && value instanceof Date === false) {
|
|
1586
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
1587
|
+
}
|
|
1588
|
+
else {
|
|
1589
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
|
|
1590
|
+
}
|
|
1591
|
+
return httpParams;
|
|
1592
|
+
}
|
|
1593
|
+
addToHttpParamsRecursive(httpParams, value, key) {
|
|
1594
|
+
if (value == null) {
|
|
1595
|
+
return httpParams;
|
|
1596
|
+
}
|
|
1597
|
+
if (typeof value === "object") {
|
|
1598
|
+
if (Array.isArray(value)) {
|
|
1599
|
+
value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
|
|
1600
|
+
}
|
|
1601
|
+
else if (value instanceof Date) {
|
|
1602
|
+
if (key != null) {
|
|
1603
|
+
httpParams = httpParams.append(key, value.toISOString().substring(0, 10));
|
|
1604
|
+
}
|
|
1605
|
+
else {
|
|
1606
|
+
throw Error("key may not be null if value is Date");
|
|
1607
|
+
}
|
|
1608
|
+
}
|
|
1609
|
+
else {
|
|
1610
|
+
Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
|
|
1611
|
+
}
|
|
1612
|
+
}
|
|
1613
|
+
else if (key != null) {
|
|
1614
|
+
httpParams = httpParams.append(key, value);
|
|
1615
|
+
}
|
|
1616
|
+
else {
|
|
1617
|
+
throw Error("key may not be null if value is not object or array");
|
|
1618
|
+
}
|
|
1619
|
+
return httpParams;
|
|
1620
|
+
}
|
|
1621
|
+
getOtherConnector(iaVersie, connectorPuic, observe = 'body', reportProgress = false, options) {
|
|
1622
|
+
if (iaVersie === null || iaVersie === undefined) {
|
|
1623
|
+
throw new Error('Required parameter iaVersie was null or undefined when calling getOtherConnector.');
|
|
1624
|
+
}
|
|
1625
|
+
if (connectorPuic === null || connectorPuic === undefined) {
|
|
1626
|
+
throw new Error('Required parameter connectorPuic was null or undefined when calling getOtherConnector.');
|
|
1627
|
+
}
|
|
1628
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1629
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
1630
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
1631
|
+
// to determine the Accept header
|
|
1632
|
+
const httpHeaderAccepts = [
|
|
1633
|
+
'*/*'
|
|
1634
|
+
];
|
|
1635
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1636
|
+
}
|
|
1637
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1638
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
1639
|
+
}
|
|
1640
|
+
let localVarHttpContext = options && options.context;
|
|
1641
|
+
if (localVarHttpContext === undefined) {
|
|
1642
|
+
localVarHttpContext = new HttpContext();
|
|
1643
|
+
}
|
|
1644
|
+
let localVarTransferCache = options && options.transferCache;
|
|
1645
|
+
if (localVarTransferCache === undefined) {
|
|
1646
|
+
localVarTransferCache = true;
|
|
1647
|
+
}
|
|
1648
|
+
let responseType_ = 'json';
|
|
1649
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1650
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
1651
|
+
responseType_ = 'text';
|
|
1652
|
+
}
|
|
1653
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1654
|
+
responseType_ = 'json';
|
|
1655
|
+
}
|
|
1656
|
+
else {
|
|
1657
|
+
responseType_ = 'blob';
|
|
1658
|
+
}
|
|
1659
|
+
}
|
|
1660
|
+
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 })}`;
|
|
1661
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
1662
|
+
context: localVarHttpContext,
|
|
1663
|
+
responseType: responseType_,
|
|
1664
|
+
withCredentials: this.configuration.withCredentials,
|
|
1665
|
+
headers: localVarHeaders,
|
|
1666
|
+
observe: observe,
|
|
1667
|
+
transferCache: localVarTransferCache,
|
|
1668
|
+
reportProgress: reportProgress
|
|
1669
|
+
});
|
|
1670
|
+
}
|
|
1671
|
+
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 }); }
|
|
1672
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: ConnectorControllerService, providedIn: 'root' }); }
|
|
1673
|
+
}
|
|
1674
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: ConnectorControllerService, decorators: [{
|
|
1675
|
+
type: Injectable,
|
|
1676
|
+
args: [{
|
|
1677
|
+
providedIn: 'root'
|
|
1678
|
+
}]
|
|
1679
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1680
|
+
type: Optional
|
|
1681
|
+
}, {
|
|
1682
|
+
type: Inject,
|
|
1683
|
+
args: [BASE_PATH]
|
|
1684
|
+
}] }, { type: Configuration, decorators: [{
|
|
1685
|
+
type: Optional
|
|
1686
|
+
}] }] });
|
|
1687
|
+
|
|
1688
|
+
/**
|
|
1689
|
+
* MST
|
|
1690
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
1691
|
+
*
|
|
1692
|
+
* The version of the OpenAPI document: 1
|
|
1693
|
+
*
|
|
1694
|
+
*
|
|
1695
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1696
|
+
* https://openapi-generator.tech
|
|
1697
|
+
* Do not edit the class manually.
|
|
1698
|
+
*/
|
|
1699
|
+
/* tslint:disable:no-unused-variable member-ordering */
|
|
1700
|
+
class LogControllerService {
|
|
1701
|
+
constructor(httpClient, basePath, configuration) {
|
|
1702
|
+
this.httpClient = httpClient;
|
|
1703
|
+
this.basePath = 'http://localhost:8080/mst';
|
|
1704
|
+
this.defaultHeaders = new HttpHeaders();
|
|
1705
|
+
this.configuration = new Configuration();
|
|
1706
|
+
if (configuration) {
|
|
1707
|
+
this.configuration = configuration;
|
|
1708
|
+
}
|
|
1709
|
+
if (typeof this.configuration.basePath !== 'string') {
|
|
1710
|
+
if (Array.isArray(basePath) && basePath.length > 0) {
|
|
1711
|
+
basePath = basePath[0];
|
|
1712
|
+
}
|
|
1713
|
+
if (typeof basePath !== 'string') {
|
|
1714
|
+
basePath = this.basePath;
|
|
1715
|
+
}
|
|
1716
|
+
this.configuration.basePath = basePath;
|
|
1717
|
+
}
|
|
1718
|
+
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
1719
|
+
}
|
|
1720
|
+
// @ts-ignore
|
|
1721
|
+
addToHttpParams(httpParams, value, key) {
|
|
1722
|
+
if (typeof value === "object" && value instanceof Date === false) {
|
|
1723
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
1724
|
+
}
|
|
1725
|
+
else {
|
|
1726
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
|
|
1727
|
+
}
|
|
1728
|
+
return httpParams;
|
|
1729
|
+
}
|
|
1730
|
+
addToHttpParamsRecursive(httpParams, value, key) {
|
|
1731
|
+
if (value == null) {
|
|
1732
|
+
return httpParams;
|
|
1733
|
+
}
|
|
1734
|
+
if (typeof value === "object") {
|
|
1735
|
+
if (Array.isArray(value)) {
|
|
1736
|
+
value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
|
|
1737
|
+
}
|
|
1738
|
+
else if (value instanceof Date) {
|
|
1739
|
+
if (key != null) {
|
|
1740
|
+
httpParams = httpParams.append(key, value.toISOString().substring(0, 10));
|
|
1741
|
+
}
|
|
1742
|
+
else {
|
|
1743
|
+
throw Error("key may not be null if value is Date");
|
|
1744
|
+
}
|
|
1745
|
+
}
|
|
1746
|
+
else {
|
|
1747
|
+
Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
|
|
1748
|
+
}
|
|
1749
|
+
}
|
|
1750
|
+
else if (key != null) {
|
|
1751
|
+
httpParams = httpParams.append(key, value);
|
|
1752
|
+
}
|
|
1753
|
+
else {
|
|
1754
|
+
throw Error("key may not be null if value is not object or array");
|
|
1755
|
+
}
|
|
1756
|
+
return httpParams;
|
|
1757
|
+
}
|
|
1758
|
+
log(logDto, observe = 'body', reportProgress = false, options) {
|
|
1759
|
+
if (logDto === null || logDto === undefined) {
|
|
1760
|
+
throw new Error('Required parameter logDto was null or undefined when calling log.');
|
|
1761
|
+
}
|
|
1762
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1763
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
1764
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
1765
|
+
// to determine the Accept header
|
|
1766
|
+
const httpHeaderAccepts = [];
|
|
1767
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1768
|
+
}
|
|
1769
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1770
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
1771
|
+
}
|
|
1772
|
+
let localVarHttpContext = options && options.context;
|
|
1773
|
+
if (localVarHttpContext === undefined) {
|
|
1774
|
+
localVarHttpContext = new HttpContext();
|
|
1775
|
+
}
|
|
1776
|
+
let localVarTransferCache = options && options.transferCache;
|
|
1777
|
+
if (localVarTransferCache === undefined) {
|
|
1778
|
+
localVarTransferCache = true;
|
|
1779
|
+
}
|
|
1780
|
+
// to determine the Content-Type header
|
|
1781
|
+
const consumes = [
|
|
1782
|
+
'application/json'
|
|
1783
|
+
];
|
|
1784
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
1785
|
+
if (httpContentTypeSelected !== undefined) {
|
|
1786
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
1787
|
+
}
|
|
1788
|
+
let responseType_ = 'json';
|
|
1789
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1790
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
1791
|
+
responseType_ = 'text';
|
|
1792
|
+
}
|
|
1793
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1794
|
+
responseType_ = 'json';
|
|
1795
|
+
}
|
|
1796
|
+
else {
|
|
1797
|
+
responseType_ = 'blob';
|
|
1798
|
+
}
|
|
1799
|
+
}
|
|
1800
|
+
let localVarPath = `/rest/logging/`;
|
|
1801
|
+
return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, {
|
|
1802
|
+
context: localVarHttpContext,
|
|
1803
|
+
body: logDto,
|
|
1804
|
+
responseType: responseType_,
|
|
1805
|
+
withCredentials: this.configuration.withCredentials,
|
|
1806
|
+
headers: localVarHeaders,
|
|
1807
|
+
observe: observe,
|
|
1808
|
+
transferCache: localVarTransferCache,
|
|
1809
|
+
reportProgress: reportProgress
|
|
1810
|
+
});
|
|
1811
|
+
}
|
|
1812
|
+
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 }); }
|
|
1813
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: LogControllerService, providedIn: 'root' }); }
|
|
1814
|
+
}
|
|
1815
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: LogControllerService, decorators: [{
|
|
1816
|
+
type: Injectable,
|
|
1817
|
+
args: [{
|
|
1818
|
+
providedIn: 'root'
|
|
1819
|
+
}]
|
|
1820
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1821
|
+
type: Optional
|
|
1822
|
+
}, {
|
|
1823
|
+
type: Inject,
|
|
1824
|
+
args: [BASE_PATH]
|
|
1825
|
+
}] }, { type: Configuration, decorators: [{
|
|
1826
|
+
type: Optional
|
|
1827
|
+
}] }] });
|
|
1828
|
+
|
|
1829
|
+
/**
|
|
1830
|
+
* MST
|
|
1831
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
1832
|
+
*
|
|
1833
|
+
* The version of the OpenAPI document: 1
|
|
1834
|
+
*
|
|
1835
|
+
*
|
|
1836
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1837
|
+
* https://openapi-generator.tech
|
|
1838
|
+
* Do not edit the class manually.
|
|
1839
|
+
*/
|
|
1840
|
+
/* tslint:disable:no-unused-variable member-ordering */
|
|
1841
|
+
class P21ControllerService {
|
|
1842
|
+
constructor(httpClient, basePath, configuration) {
|
|
1843
|
+
this.httpClient = httpClient;
|
|
1844
|
+
this.basePath = 'http://localhost:8080/mst';
|
|
1845
|
+
this.defaultHeaders = new HttpHeaders();
|
|
1846
|
+
this.configuration = new Configuration();
|
|
1847
|
+
if (configuration) {
|
|
1848
|
+
this.configuration = configuration;
|
|
1849
|
+
}
|
|
1850
|
+
if (typeof this.configuration.basePath !== 'string') {
|
|
1851
|
+
if (Array.isArray(basePath) && basePath.length > 0) {
|
|
1852
|
+
basePath = basePath[0];
|
|
1853
|
+
}
|
|
1854
|
+
if (typeof basePath !== 'string') {
|
|
1855
|
+
basePath = this.basePath;
|
|
1856
|
+
}
|
|
1857
|
+
this.configuration.basePath = basePath;
|
|
1858
|
+
}
|
|
1859
|
+
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
1860
|
+
}
|
|
1861
|
+
/**
|
|
1862
|
+
* @param consumes string[] mime-types
|
|
1863
|
+
* @return true: consumes contains 'multipart/form-data', false: otherwise
|
|
1864
|
+
*/
|
|
1865
|
+
canConsumeForm(consumes) {
|
|
1866
|
+
const form = 'multipart/form-data';
|
|
1867
|
+
for (const consume of consumes) {
|
|
1868
|
+
if (form === consume) {
|
|
1869
|
+
return true;
|
|
1870
|
+
}
|
|
1871
|
+
}
|
|
1872
|
+
return false;
|
|
1873
|
+
}
|
|
1874
|
+
// @ts-ignore
|
|
1875
|
+
addToHttpParams(httpParams, value, key) {
|
|
1876
|
+
if (typeof value === "object" && value instanceof Date === false) {
|
|
1877
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
1878
|
+
}
|
|
1879
|
+
else {
|
|
1880
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
|
|
1881
|
+
}
|
|
1882
|
+
return httpParams;
|
|
1883
|
+
}
|
|
1884
|
+
addToHttpParamsRecursive(httpParams, value, key) {
|
|
1885
|
+
if (value == null) {
|
|
1886
|
+
return httpParams;
|
|
1887
|
+
}
|
|
1888
|
+
if (typeof value === "object") {
|
|
1889
|
+
if (Array.isArray(value)) {
|
|
1890
|
+
value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
|
|
1891
|
+
}
|
|
1892
|
+
else if (value instanceof Date) {
|
|
1893
|
+
if (key != null) {
|
|
1894
|
+
httpParams = httpParams.append(key, value.toISOString().substring(0, 10));
|
|
1895
|
+
}
|
|
1896
|
+
else {
|
|
1897
|
+
throw Error("key may not be null if value is Date");
|
|
1898
|
+
}
|
|
1899
|
+
}
|
|
1900
|
+
else {
|
|
1901
|
+
Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
|
|
1902
|
+
}
|
|
1903
|
+
}
|
|
1904
|
+
else if (key != null) {
|
|
1905
|
+
httpParams = httpParams.append(key, value);
|
|
1906
|
+
}
|
|
1907
|
+
else {
|
|
1908
|
+
throw Error("key may not be null if value is not object or array");
|
|
1909
|
+
}
|
|
1910
|
+
return httpParams;
|
|
1911
|
+
}
|
|
1912
|
+
createP21Levering(p21Levering, update, observe = 'body', reportProgress = false, options) {
|
|
1913
|
+
if (p21Levering === null || p21Levering === undefined) {
|
|
1914
|
+
throw new Error('Required parameter p21Levering was null or undefined when calling createP21Levering.');
|
|
1915
|
+
}
|
|
1916
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1917
|
+
let localVarCredential;
|
|
1918
|
+
// authentication (keycloak_auth) required
|
|
1919
|
+
localVarCredential = this.configuration.lookupCredential('keycloak_auth');
|
|
1920
|
+
if (localVarCredential) {
|
|
1921
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
1922
|
+
}
|
|
1923
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
1924
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
1925
|
+
// to determine the Accept header
|
|
1926
|
+
const httpHeaderAccepts = [
|
|
1927
|
+
'*/*'
|
|
1928
|
+
];
|
|
1929
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1930
|
+
}
|
|
1931
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1932
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
1933
|
+
}
|
|
1934
|
+
let localVarHttpContext = options && options.context;
|
|
1935
|
+
if (localVarHttpContext === undefined) {
|
|
1936
|
+
localVarHttpContext = new HttpContext();
|
|
1937
|
+
}
|
|
1938
|
+
let localVarTransferCache = options && options.transferCache;
|
|
1939
|
+
if (localVarTransferCache === undefined) {
|
|
1940
|
+
localVarTransferCache = true;
|
|
1941
|
+
}
|
|
1942
|
+
// to determine the Content-Type header
|
|
1943
|
+
const consumes = [
|
|
1944
|
+
'multipart/form-data'
|
|
1945
|
+
];
|
|
1946
|
+
const canConsumeForm = this.canConsumeForm(consumes);
|
|
1947
|
+
let localVarFormParams;
|
|
1948
|
+
let localVarUseForm = false;
|
|
1949
|
+
let localVarConvertFormParamsToString = false;
|
|
1950
|
+
// use FormData to transmit files using content-type "multipart/form-data"
|
|
1951
|
+
// see https://stackoverflow.com/questions/4007969/application-x-www-form-urlencoded-or-multipart-form-data
|
|
1952
|
+
localVarUseForm = canConsumeForm;
|
|
1953
|
+
if (localVarUseForm) {
|
|
1954
|
+
localVarFormParams = new FormData();
|
|
1955
|
+
}
|
|
1956
|
+
else {
|
|
1957
|
+
localVarFormParams = new HttpParams({ encoder: this.encoder });
|
|
1958
|
+
}
|
|
1959
|
+
if (update !== undefined) {
|
|
1960
|
+
localVarFormParams = localVarFormParams.append('update', update) || localVarFormParams;
|
|
1961
|
+
}
|
|
1962
|
+
if (p21Levering !== undefined) {
|
|
1963
|
+
localVarFormParams = localVarFormParams.append('p21Levering', p21Levering) || localVarFormParams;
|
|
1964
|
+
}
|
|
1965
|
+
let responseType_ = 'json';
|
|
1966
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1967
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
1968
|
+
responseType_ = 'text';
|
|
1969
|
+
}
|
|
1970
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1971
|
+
responseType_ = 'json';
|
|
1972
|
+
}
|
|
1973
|
+
else {
|
|
1974
|
+
responseType_ = 'blob';
|
|
1975
|
+
}
|
|
1976
|
+
}
|
|
1977
|
+
let localVarPath = `/services/secure/rest/backend/uploadversie`;
|
|
1978
|
+
return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, {
|
|
1979
|
+
context: localVarHttpContext,
|
|
1980
|
+
body: localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams,
|
|
1981
|
+
responseType: responseType_,
|
|
1982
|
+
withCredentials: this.configuration.withCredentials,
|
|
1983
|
+
headers: localVarHeaders,
|
|
1984
|
+
observe: observe,
|
|
1985
|
+
transferCache: localVarTransferCache,
|
|
1986
|
+
reportProgress: reportProgress
|
|
1987
|
+
});
|
|
1988
|
+
}
|
|
1989
|
+
getVersies(observe = 'body', reportProgress = false, options) {
|
|
1990
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1991
|
+
let localVarCredential;
|
|
1992
|
+
// authentication (keycloak_auth) required
|
|
1993
|
+
localVarCredential = this.configuration.lookupCredential('keycloak_auth');
|
|
1994
|
+
if (localVarCredential) {
|
|
1995
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
1996
|
+
}
|
|
1997
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
1998
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
1999
|
+
// to determine the Accept header
|
|
2000
|
+
const httpHeaderAccepts = [
|
|
2001
|
+
'application/json'
|
|
2002
|
+
];
|
|
2003
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
2004
|
+
}
|
|
2005
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
2006
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
2007
|
+
}
|
|
2008
|
+
let localVarHttpContext = options && options.context;
|
|
2009
|
+
if (localVarHttpContext === undefined) {
|
|
2010
|
+
localVarHttpContext = new HttpContext();
|
|
2011
|
+
}
|
|
2012
|
+
let localVarTransferCache = options && options.transferCache;
|
|
2013
|
+
if (localVarTransferCache === undefined) {
|
|
2014
|
+
localVarTransferCache = true;
|
|
2015
|
+
}
|
|
2016
|
+
let responseType_ = 'json';
|
|
2017
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
2018
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
2019
|
+
responseType_ = 'text';
|
|
2020
|
+
}
|
|
2021
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
2022
|
+
responseType_ = 'json';
|
|
2023
|
+
}
|
|
2024
|
+
else {
|
|
2025
|
+
responseType_ = 'blob';
|
|
2026
|
+
}
|
|
968
2027
|
}
|
|
2028
|
+
let localVarPath = `/services/secure/rest/backend/versies`;
|
|
2029
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
2030
|
+
context: localVarHttpContext,
|
|
2031
|
+
responseType: responseType_,
|
|
2032
|
+
withCredentials: this.configuration.withCredentials,
|
|
2033
|
+
headers: localVarHeaders,
|
|
2034
|
+
observe: observe,
|
|
2035
|
+
transferCache: localVarTransferCache,
|
|
2036
|
+
reportProgress: reportProgress
|
|
2037
|
+
});
|
|
969
2038
|
}
|
|
970
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type:
|
|
971
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type:
|
|
2039
|
+
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 }); }
|
|
2040
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: P21ControllerService, providedIn: 'root' }); }
|
|
972
2041
|
}
|
|
973
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type:
|
|
2042
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: P21ControllerService, decorators: [{
|
|
974
2043
|
type: Injectable,
|
|
975
2044
|
args: [{
|
|
976
2045
|
providedIn: 'root'
|
|
977
2046
|
}]
|
|
978
|
-
}], ctorParameters: () => [{ type:
|
|
2047
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
2048
|
+
type: Optional
|
|
2049
|
+
}, {
|
|
2050
|
+
type: Inject,
|
|
2051
|
+
args: [BASE_PATH]
|
|
2052
|
+
}] }, { type: Configuration, decorators: [{
|
|
2053
|
+
type: Optional
|
|
2054
|
+
}] }] });
|
|
979
2055
|
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
2056
|
+
/**
|
|
2057
|
+
* MST
|
|
2058
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
2059
|
+
*
|
|
2060
|
+
* The version of the OpenAPI document: 1
|
|
2061
|
+
*
|
|
2062
|
+
*
|
|
2063
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
2064
|
+
* https://openapi-generator.tech
|
|
2065
|
+
* Do not edit the class manually.
|
|
2066
|
+
*/
|
|
2067
|
+
/* tslint:disable:no-unused-variable member-ordering */
|
|
2068
|
+
class SbControllerService {
|
|
2069
|
+
constructor(httpClient, basePath, configuration) {
|
|
2070
|
+
this.httpClient = httpClient;
|
|
2071
|
+
this.basePath = 'http://localhost:8080/mst';
|
|
2072
|
+
this.defaultHeaders = new HttpHeaders();
|
|
2073
|
+
this.configuration = new Configuration();
|
|
2074
|
+
if (configuration) {
|
|
2075
|
+
this.configuration = configuration;
|
|
2076
|
+
}
|
|
2077
|
+
if (typeof this.configuration.basePath !== 'string') {
|
|
2078
|
+
if (Array.isArray(basePath) && basePath.length > 0) {
|
|
2079
|
+
basePath = basePath[0];
|
|
2080
|
+
}
|
|
2081
|
+
if (typeof basePath !== 'string') {
|
|
2082
|
+
basePath = this.basePath;
|
|
2083
|
+
}
|
|
2084
|
+
this.configuration.basePath = basePath;
|
|
2085
|
+
}
|
|
2086
|
+
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
986
2087
|
}
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
this.viewerControlService.setPrinting(printing);
|
|
992
|
-
if (!printing) {
|
|
993
|
-
return Promise.reject(new Error('Geen beweging gevonden voor ' + bewegingId));
|
|
2088
|
+
// @ts-ignore
|
|
2089
|
+
addToHttpParams(httpParams, value, key) {
|
|
2090
|
+
if (typeof value === "object" && value instanceof Date === false) {
|
|
2091
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
994
2092
|
}
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
2093
|
+
else {
|
|
2094
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
|
|
2095
|
+
}
|
|
2096
|
+
return httpParams;
|
|
2097
|
+
}
|
|
2098
|
+
addToHttpParamsRecursive(httpParams, value, key) {
|
|
2099
|
+
if (value == null) {
|
|
2100
|
+
return httpParams;
|
|
2101
|
+
}
|
|
2102
|
+
if (typeof value === "object") {
|
|
2103
|
+
if (Array.isArray(value)) {
|
|
2104
|
+
value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
|
|
2105
|
+
}
|
|
2106
|
+
else if (value instanceof Date) {
|
|
2107
|
+
if (key != null) {
|
|
2108
|
+
httpParams = httpParams.append(key, value.toISOString().substring(0, 10));
|
|
2109
|
+
}
|
|
2110
|
+
else {
|
|
2111
|
+
throw Error("key may not be null if value is Date");
|
|
2112
|
+
}
|
|
1001
2113
|
}
|
|
1002
2114
|
else {
|
|
1003
|
-
this.
|
|
2115
|
+
Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
|
|
2116
|
+
}
|
|
2117
|
+
}
|
|
2118
|
+
else if (key != null) {
|
|
2119
|
+
httpParams = httpParams.append(key, value);
|
|
2120
|
+
}
|
|
2121
|
+
else {
|
|
2122
|
+
throw Error("key may not be null if value is not object or array");
|
|
2123
|
+
}
|
|
2124
|
+
return httpParams;
|
|
2125
|
+
}
|
|
2126
|
+
getSignaleringsbeelden(signaleringsbeeldRequestDto, observe = 'body', reportProgress = false, options) {
|
|
2127
|
+
if (signaleringsbeeldRequestDto === null || signaleringsbeeldRequestDto === undefined) {
|
|
2128
|
+
throw new Error('Required parameter signaleringsbeeldRequestDto was null or undefined when calling getSignaleringsbeelden.');
|
|
2129
|
+
}
|
|
2130
|
+
let localVarHeaders = this.defaultHeaders;
|
|
2131
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
2132
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
2133
|
+
// to determine the Accept header
|
|
2134
|
+
const httpHeaderAccepts = [
|
|
2135
|
+
'*/*'
|
|
2136
|
+
];
|
|
2137
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
2138
|
+
}
|
|
2139
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
2140
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
2141
|
+
}
|
|
2142
|
+
let localVarHttpContext = options && options.context;
|
|
2143
|
+
if (localVarHttpContext === undefined) {
|
|
2144
|
+
localVarHttpContext = new HttpContext();
|
|
2145
|
+
}
|
|
2146
|
+
let localVarTransferCache = options && options.transferCache;
|
|
2147
|
+
if (localVarTransferCache === undefined) {
|
|
2148
|
+
localVarTransferCache = true;
|
|
2149
|
+
}
|
|
2150
|
+
// to determine the Content-Type header
|
|
2151
|
+
const consumes = [
|
|
2152
|
+
'application/json'
|
|
2153
|
+
];
|
|
2154
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
2155
|
+
if (httpContentTypeSelected !== undefined) {
|
|
2156
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
2157
|
+
}
|
|
2158
|
+
let responseType_ = 'json';
|
|
2159
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
2160
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
2161
|
+
responseType_ = 'text';
|
|
2162
|
+
}
|
|
2163
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
2164
|
+
responseType_ = 'json';
|
|
1004
2165
|
}
|
|
2166
|
+
else {
|
|
2167
|
+
responseType_ = 'blob';
|
|
2168
|
+
}
|
|
2169
|
+
}
|
|
2170
|
+
let localVarPath = `/rest/signaleringsbeeldeninfo`;
|
|
2171
|
+
return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, {
|
|
2172
|
+
context: localVarHttpContext,
|
|
2173
|
+
body: signaleringsbeeldRequestDto,
|
|
2174
|
+
responseType: responseType_,
|
|
2175
|
+
withCredentials: this.configuration.withCredentials,
|
|
2176
|
+
headers: localVarHeaders,
|
|
2177
|
+
observe: observe,
|
|
2178
|
+
transferCache: localVarTransferCache,
|
|
2179
|
+
reportProgress: reportProgress
|
|
1005
2180
|
});
|
|
1006
2181
|
}
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
this.
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
2182
|
+
valideerIaVersie(versie, observe = 'body', reportProgress = false, options) {
|
|
2183
|
+
if (versie === null || versie === undefined) {
|
|
2184
|
+
throw new Error('Required parameter versie was null or undefined when calling valideerIaVersie.');
|
|
2185
|
+
}
|
|
2186
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
2187
|
+
if (versie !== undefined && versie !== null) {
|
|
2188
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, versie, 'versie');
|
|
2189
|
+
}
|
|
2190
|
+
let localVarHeaders = this.defaultHeaders;
|
|
2191
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
2192
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
2193
|
+
// to determine the Accept header
|
|
2194
|
+
const httpHeaderAccepts = [];
|
|
2195
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
2196
|
+
}
|
|
2197
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
2198
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
2199
|
+
}
|
|
2200
|
+
let localVarHttpContext = options && options.context;
|
|
2201
|
+
if (localVarHttpContext === undefined) {
|
|
2202
|
+
localVarHttpContext = new HttpContext();
|
|
2203
|
+
}
|
|
2204
|
+
let localVarTransferCache = options && options.transferCache;
|
|
2205
|
+
if (localVarTransferCache === undefined) {
|
|
2206
|
+
localVarTransferCache = true;
|
|
2207
|
+
}
|
|
2208
|
+
let responseType_ = 'json';
|
|
2209
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
2210
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
2211
|
+
responseType_ = 'text';
|
|
2212
|
+
}
|
|
2213
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
2214
|
+
responseType_ = 'json';
|
|
2215
|
+
}
|
|
2216
|
+
else {
|
|
2217
|
+
responseType_ = 'blob';
|
|
2218
|
+
}
|
|
2219
|
+
}
|
|
2220
|
+
let localVarPath = `/rest/signaleringsbeeldeninfo/valideeriaversie`;
|
|
2221
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
2222
|
+
context: localVarHttpContext,
|
|
2223
|
+
params: localVarQueryParameters,
|
|
2224
|
+
responseType: responseType_,
|
|
2225
|
+
withCredentials: this.configuration.withCredentials,
|
|
2226
|
+
headers: localVarHeaders,
|
|
2227
|
+
observe: observe,
|
|
2228
|
+
transferCache: localVarTransferCache,
|
|
2229
|
+
reportProgress: reportProgress
|
|
1023
2230
|
});
|
|
1024
2231
|
}
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
}
|
|
1028
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: PrintBewegingService, deps: [{ token: i2$1.Store }, { token: ViewerControlService }, { token: SignaleringsBeeldManagerService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1029
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: PrintBewegingService, providedIn: 'root' }); }
|
|
2232
|
+
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 }); }
|
|
2233
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: SbControllerService, providedIn: 'root' }); }
|
|
1030
2234
|
}
|
|
1031
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type:
|
|
2235
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: SbControllerService, decorators: [{
|
|
1032
2236
|
type: Injectable,
|
|
1033
2237
|
args: [{
|
|
1034
2238
|
providedIn: 'root'
|
|
1035
2239
|
}]
|
|
1036
|
-
}], ctorParameters: () => [{ type:
|
|
2240
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
2241
|
+
type: Optional
|
|
2242
|
+
}, {
|
|
2243
|
+
type: Inject,
|
|
2244
|
+
args: [BASE_PATH]
|
|
2245
|
+
}] }, { type: Configuration, decorators: [{
|
|
2246
|
+
type: Optional
|
|
2247
|
+
}] }] });
|
|
1037
2248
|
|
|
1038
|
-
|
|
1039
|
-
convertToScript() {
|
|
1040
|
-
const element = this.script.nativeElement;
|
|
1041
|
-
const script = document.createElement('script');
|
|
1042
|
-
script.type = 'text/javascript';
|
|
1043
|
-
if (this.baseurl && this.path) {
|
|
1044
|
-
script.src = this.baseurl + this.path;
|
|
1045
|
-
// eslint-disable-next-line no-console
|
|
1046
|
-
console.log('Code geladen van: ' + script.src); //useful for debugging in GWT environment
|
|
1047
|
-
}
|
|
1048
|
-
const parent = element.parentElement;
|
|
1049
|
-
parent.parentElement.replaceChild(script, parent);
|
|
1050
|
-
}
|
|
1051
|
-
ngAfterViewInit() {
|
|
1052
|
-
this.convertToScript();
|
|
1053
|
-
}
|
|
1054
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: RpeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1055
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.7", type: RpeComponent, selector: "rpe-component", inputs: { baseurl: "baseurl", path: "path" }, viewQueries: [{ propertyName: "script", first: true, predicate: ["rpescript"], descendants: true }], ngImport: i0, template: "<div #rpescript style.display=\"none\">\n <ng-content></ng-content>\n</div>\n" }); }
|
|
1056
|
-
}
|
|
1057
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: RpeComponent, decorators: [{
|
|
1058
|
-
type: Component,
|
|
1059
|
-
args: [{ selector: 'rpe-component', template: "<div #rpescript style.display=\"none\">\n <ng-content></ng-content>\n</div>\n" }]
|
|
1060
|
-
}], propDecorators: { baseurl: [{
|
|
1061
|
-
type: Input
|
|
1062
|
-
}], path: [{
|
|
1063
|
-
type: Input
|
|
1064
|
-
}], script: [{
|
|
1065
|
-
type: ViewChild,
|
|
1066
|
-
args: ['rpescript']
|
|
1067
|
-
}] } });
|
|
2249
|
+
const APIS = [AppConfigControllerService, BewegingControllerService, Class0BuildPropertiesService, ConnectorControllerService, LogControllerService, P21ControllerService, SbControllerService];
|
|
1068
2250
|
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
2251
|
+
/**
|
|
2252
|
+
* MST
|
|
2253
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
2254
|
+
*
|
|
2255
|
+
* The version of the OpenAPI document: 1
|
|
2256
|
+
*
|
|
2257
|
+
*
|
|
2258
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
2259
|
+
* https://openapi-generator.tech
|
|
2260
|
+
* Do not edit the class manually.
|
|
2261
|
+
*/
|
|
1075
2262
|
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
}
|
|
1088
|
-
static getKilometrering(lintNaam, kilometreringen) {
|
|
1089
|
-
const result = kilometreringen.filter(kilometrering => kilometrering.getKmLint() === lintNaam);
|
|
1090
|
-
if (result.length >= 1) {
|
|
1091
|
-
return result[0];
|
|
1092
|
-
}
|
|
1093
|
-
return null;
|
|
1094
|
-
}
|
|
1095
|
-
heeftOverlap(kilometrering1, kilometrering2) {
|
|
1096
|
-
const vanKilometrering = KmRange.getKilometrering(kilometrering1.getKmLint(), this.vanKilometreringen);
|
|
1097
|
-
const totKilometrering = KmRange.getKilometrering(kilometrering2.getKmLint(), this.totKilometreringen);
|
|
1098
|
-
if (!vanKilometrering || !totKilometrering) {
|
|
1099
|
-
return false;
|
|
1100
|
-
}
|
|
1101
|
-
let startKmWaarde = vanKilometrering.getKmWaarde();
|
|
1102
|
-
let endKmWaarde = totKilometrering.getKmWaarde();
|
|
1103
|
-
if (startKmWaarde > endKmWaarde) {
|
|
1104
|
-
const temp = { end: endKmWaarde, start: startKmWaarde };
|
|
1105
|
-
startKmWaarde = temp.end;
|
|
1106
|
-
endKmWaarde = temp.start;
|
|
1107
|
-
}
|
|
1108
|
-
const actieStartKmWaarde = kilometrering1.getKmWaarde();
|
|
1109
|
-
const actieEndKmWaarde = kilometrering2.getKmWaarde();
|
|
1110
|
-
return endKmWaarde >= actieStartKmWaarde && actieEndKmWaarde >= startKmWaarde;
|
|
1111
|
-
}
|
|
1112
|
-
}
|
|
2263
|
+
/**
|
|
2264
|
+
* MST
|
|
2265
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
2266
|
+
*
|
|
2267
|
+
* The version of the OpenAPI document: 1
|
|
2268
|
+
*
|
|
2269
|
+
*
|
|
2270
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
2271
|
+
* https://openapi-generator.tech
|
|
2272
|
+
* Do not edit the class manually.
|
|
2273
|
+
*/
|
|
1113
2274
|
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
2275
|
+
/**
|
|
2276
|
+
* MST
|
|
2277
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
2278
|
+
*
|
|
2279
|
+
* The version of the OpenAPI document: 1
|
|
2280
|
+
*
|
|
2281
|
+
*
|
|
2282
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
2283
|
+
* https://openapi-generator.tech
|
|
2284
|
+
* Do not edit the class manually.
|
|
2285
|
+
*/
|
|
1120
2286
|
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
2287
|
+
/**
|
|
2288
|
+
* MST
|
|
2289
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
2290
|
+
*
|
|
2291
|
+
* The version of the OpenAPI document: 1
|
|
2292
|
+
*
|
|
2293
|
+
*
|
|
2294
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
2295
|
+
* https://openapi-generator.tech
|
|
2296
|
+
* Do not edit the class manually.
|
|
2297
|
+
*/
|
|
1127
2298
|
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
2299
|
+
/**
|
|
2300
|
+
* MST
|
|
2301
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
2302
|
+
*
|
|
2303
|
+
* The version of the OpenAPI document: 1
|
|
2304
|
+
*
|
|
2305
|
+
*
|
|
2306
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
2307
|
+
* https://openapi-generator.tech
|
|
2308
|
+
* Do not edit the class manually.
|
|
2309
|
+
*/
|
|
2310
|
+
|
|
2311
|
+
class ApiModule {
|
|
2312
|
+
static forRoot(configurationFactory) {
|
|
2313
|
+
return {
|
|
2314
|
+
ngModule: ApiModule,
|
|
2315
|
+
providers: [{ provide: Configuration, useFactory: configurationFactory }]
|
|
2316
|
+
};
|
|
1134
2317
|
}
|
|
1135
|
-
|
|
1136
|
-
|
|
2318
|
+
constructor(parentModule, http) {
|
|
2319
|
+
if (parentModule) {
|
|
2320
|
+
throw new Error('ApiModule is already loaded. Import in your base AppModule only.');
|
|
2321
|
+
}
|
|
2322
|
+
if (!http) {
|
|
2323
|
+
throw new Error('You need to import the HttpClientModule in your AppModule! \n' +
|
|
2324
|
+
'See also https://github.com/angular/angular/issues/20575');
|
|
2325
|
+
}
|
|
1137
2326
|
}
|
|
2327
|
+
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 }); }
|
|
2328
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.7", ngImport: i0, type: ApiModule }); }
|
|
2329
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: ApiModule }); }
|
|
1138
2330
|
}
|
|
2331
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: ApiModule, decorators: [{
|
|
2332
|
+
type: NgModule,
|
|
2333
|
+
args: [{
|
|
2334
|
+
imports: [],
|
|
2335
|
+
declarations: [],
|
|
2336
|
+
exports: [],
|
|
2337
|
+
providers: []
|
|
2338
|
+
}]
|
|
2339
|
+
}], ctorParameters: () => [{ type: ApiModule, decorators: [{
|
|
2340
|
+
type: Optional
|
|
2341
|
+
}, {
|
|
2342
|
+
type: SkipSelf
|
|
2343
|
+
}] }, { type: i1.HttpClient, decorators: [{
|
|
2344
|
+
type: Optional
|
|
2345
|
+
}] }] });
|
|
1139
2346
|
|
|
1140
|
-
class
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
}
|
|
1147
|
-
static rijwegplanNietGevonden(beweging) {
|
|
1148
|
-
return new Message(Severity.ERROR, `Rijwegplan van PPLG ${beweging.vanPplg} niet gevonden`);
|
|
1149
|
-
}
|
|
1150
|
-
static dwangNietGevonden(beweging) {
|
|
1151
|
-
return new Message(Severity.ERROR, `Dwang ${beweging.dwangNummer} voor rijweg van ${beweging.vanSpoor} in PPLG ${beweging.vanPplg} naar ${beweging.naarSpoor} niet gevonden`);
|
|
1152
|
-
}
|
|
1153
|
-
static nietGevondenSBI(err) {
|
|
1154
|
-
return new Message(Severity.ERROR, 'Error bij het ophalen van signaleringsbeeldinfo: ' + Utils.getValidErorrMessage(err));
|
|
1155
|
-
}
|
|
1156
|
-
static actieHighlightError(actieZonderElementen) {
|
|
1157
|
-
return new Message(Severity.ERROR, 'Highlight error. Geen elementen kunnen vinden voor actie(s) met id: ' + actieZonderElementen);
|
|
1158
|
-
}
|
|
1159
|
-
static ritFileAlGewijzigdError(beweging) {
|
|
1160
|
-
return new Message(Severity.ERROR, 'Rit bevat een beweging met status \'Gewijzigd\': Beweging met ID:' + beweging.id);
|
|
2347
|
+
class MstLoggingResource {
|
|
2348
|
+
constructor(controller, store) {
|
|
2349
|
+
this.controller = controller;
|
|
2350
|
+
this.store = store;
|
|
2351
|
+
this.subscriptions = new Subscription();
|
|
2352
|
+
this.subscriptions.add(this.store.select('baseUrl').subscribe(baseUrl => controller.configuration.basePath = baseUrl + '/mst'));
|
|
1161
2353
|
}
|
|
1162
|
-
|
|
1163
|
-
|
|
2354
|
+
ngOnDestroy() {
|
|
2355
|
+
this.subscriptions.unsubscribe();
|
|
1164
2356
|
}
|
|
1165
|
-
|
|
1166
|
-
|
|
2357
|
+
logMessages(logDto) {
|
|
2358
|
+
this.controller.log(logDto).subscribe();
|
|
1167
2359
|
}
|
|
2360
|
+
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 }); }
|
|
2361
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: MstLoggingResource }); }
|
|
1168
2362
|
}
|
|
2363
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: MstLoggingResource, decorators: [{
|
|
2364
|
+
type: Injectable
|
|
2365
|
+
}], ctorParameters: () => [{ type: LogControllerService }, { type: i2$1.Store }] });
|
|
1169
2366
|
|
|
1170
2367
|
class LoggingHelper {
|
|
1171
|
-
constructor(
|
|
1172
|
-
this.sbmService = sbmService;
|
|
2368
|
+
constructor(store) {
|
|
1173
2369
|
this.store = store;
|
|
1174
2370
|
}
|
|
1175
2371
|
maakLogDTO(melding, actie) {
|
|
@@ -1183,7 +2379,7 @@ class LoggingHelper {
|
|
|
1183
2379
|
iaVersie = ia.versie;
|
|
1184
2380
|
});
|
|
1185
2381
|
if (actie) {
|
|
1186
|
-
actieDto =
|
|
2382
|
+
actieDto = {
|
|
1187
2383
|
pplgNaam: actie.pplgNaam,
|
|
1188
2384
|
ritActieTypeOmschrijving: actie.ritActieTypeOmschrijving,
|
|
1189
2385
|
ritActieStatus: actie.ritActieStatus,
|
|
@@ -1195,16 +2391,16 @@ class LoggingHelper {
|
|
|
1195
2391
|
vanKilometrering: actie.vanKilometrering,
|
|
1196
2392
|
totKilometerlint: actie.totKilometerlint,
|
|
1197
2393
|
totKilometrering: actie.totKilometrering
|
|
1198
|
-
}
|
|
2394
|
+
};
|
|
1199
2395
|
}
|
|
1200
|
-
return
|
|
2396
|
+
return {
|
|
1201
2397
|
iaVersie,
|
|
1202
2398
|
meldingLevel: melding.meldingLevel,
|
|
1203
2399
|
meldingMessage: melding.meldingMessage,
|
|
1204
2400
|
actieDto,
|
|
1205
2401
|
algemeneRitInfoDto,
|
|
1206
2402
|
sbinfoDtos: this.getSbInfoDtos()
|
|
1207
|
-
}
|
|
2403
|
+
};
|
|
1208
2404
|
}
|
|
1209
2405
|
getSbInfoDtos() {
|
|
1210
2406
|
const sbInfoDtos = [];
|
|
@@ -1215,12 +2411,12 @@ class LoggingHelper {
|
|
|
1215
2411
|
});
|
|
1216
2412
|
return sbInfoDtos;
|
|
1217
2413
|
}
|
|
1218
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: LoggingHelper, deps: [{ token:
|
|
2414
|
+
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 }); }
|
|
1219
2415
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: LoggingHelper }); }
|
|
1220
2416
|
}
|
|
1221
2417
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: LoggingHelper, decorators: [{
|
|
1222
2418
|
type: Injectable
|
|
1223
|
-
}], ctorParameters: () => [{ type:
|
|
2419
|
+
}], ctorParameters: () => [{ type: i2$1.Store }] });
|
|
1224
2420
|
|
|
1225
2421
|
/**
|
|
1226
2422
|
* export const RIT_ACTIE_1 = 1;
|
|
@@ -1543,9 +2739,9 @@ class ActieHelper {
|
|
|
1543
2739
|
this.logLegeMeldingDto(logMeldingDTOs);
|
|
1544
2740
|
return retval;
|
|
1545
2741
|
}
|
|
1546
|
-
logLegeMeldingDto(
|
|
1547
|
-
if (
|
|
1548
|
-
this.mstLogResource.
|
|
2742
|
+
logLegeMeldingDto(logDto) {
|
|
2743
|
+
if (logDto.length > 0) {
|
|
2744
|
+
return this.mstLogResource.logMessages(logDto);
|
|
1549
2745
|
}
|
|
1550
2746
|
}
|
|
1551
2747
|
verwerkTopoElementen(topoElementen) {
|
|
@@ -1635,7 +2831,7 @@ class ActieHelper {
|
|
|
1635
2831
|
if (!storingsSymboolPuic && this.debug) {
|
|
1636
2832
|
const melding = MeldingBuilder.actieHighlightError([actie.id]);
|
|
1637
2833
|
this.messagesService.showMessage(MessageBuilder.actieHighlightError([actie.id]));
|
|
1638
|
-
this.mstLogResource.
|
|
2834
|
+
this.mstLogResource.logMessages([this.loggingHelper.maakLogDTO(melding, actie)]);
|
|
1639
2835
|
}
|
|
1640
2836
|
return storingsSymboolPuic ? [storingsSymboolPuic] : [];
|
|
1641
2837
|
}
|
|
@@ -2385,7 +3581,7 @@ class SvgVisualisatieComponent {
|
|
|
2385
3581
|
});
|
|
2386
3582
|
this.viewerControlsService.setValideRit(!gebrokenRit);
|
|
2387
3583
|
this.store.dispatch(SetGeplandeActies(actieOpRitSelectiePuics));
|
|
2388
|
-
const actieOpRitSelectiePuicsArray =
|
|
3584
|
+
const actieOpRitSelectiePuicsArray = Array.from(actieOpRitSelectiePuics.values()).reduce((acc, val) => acc.concat(val), []);
|
|
2389
3585
|
this.store.dispatch(SetActieOpRitSelectieIds(actieOpRitSelectiePuicsArray));
|
|
2390
3586
|
ritSelectiePuics = ritSelectiePuics.filter(item => actieOpRitSelectiePuicsArray.indexOf(item) < 0); // make mutually exclusive
|
|
2391
3587
|
this.store.dispatch(SetRitSelectieIds(ritSelectiePuics));
|
|
@@ -2532,7 +3728,7 @@ let SignaleringsbeeldInfoResource = class SignaleringsbeeldInfoResource extends
|
|
|
2532
3728
|
ngOnDestroy() {
|
|
2533
3729
|
this.subscriptions.unsubscribe();
|
|
2534
3730
|
}
|
|
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 }); }
|
|
3731
|
+
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 }); }
|
|
2536
3732
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: SignaleringsbeeldInfoResource }); }
|
|
2537
3733
|
};
|
|
2538
3734
|
__decorate([
|
|
@@ -2553,7 +3749,7 @@ SignaleringsbeeldInfoResource = __decorate([
|
|
|
2553
3749
|
], SignaleringsbeeldInfoResource);
|
|
2554
3750
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: SignaleringsbeeldInfoResource, decorators: [{
|
|
2555
3751
|
type: Injectable
|
|
2556
|
-
}], ctorParameters: () => [{ type: i1.ResourceHandler }, { type: i2$1.Store }], propDecorators: { laadSignaleringsbeeldInfo: [], getBestaatIALevering: [] } });
|
|
3752
|
+
}], ctorParameters: () => [{ type: i1$1.ResourceHandler }, { type: i2$1.Store }], propDecorators: { laadSignaleringsbeeldInfo: [], getBestaatIALevering: [] } });
|
|
2557
3753
|
class SignaleringsbeeldInfoDto extends ResourceModel {
|
|
2558
3754
|
constructor(data) {
|
|
2559
3755
|
super();
|
|
@@ -2587,7 +3783,7 @@ class BaseRestService {
|
|
|
2587
3783
|
ngOnDestroy() {
|
|
2588
3784
|
this.subscriptions.unsubscribe();
|
|
2589
3785
|
}
|
|
2590
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: BaseRestService, deps: [{ token: i1
|
|
3786
|
+
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 }); }
|
|
2591
3787
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: BaseRestService, providedIn: 'root' }); }
|
|
2592
3788
|
}
|
|
2593
3789
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: BaseRestService, decorators: [{
|
|
@@ -2595,7 +3791,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
|
|
|
2595
3791
|
args: [{
|
|
2596
3792
|
providedIn: 'root'
|
|
2597
3793
|
}]
|
|
2598
|
-
}], ctorParameters: () => [{ type: i1
|
|
3794
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: i2$1.Store }] });
|
|
2599
3795
|
|
|
2600
3796
|
class BewegingVerrijkerService extends BaseRestService {
|
|
2601
3797
|
getBewegingen(bewegingen, ongeplandeActies) {
|
|
@@ -2837,10 +4033,10 @@ class Ritdeel {
|
|
|
2837
4033
|
getZichtbaarheidBuitenPaginatie() {
|
|
2838
4034
|
return this.zichtbaarBuitenPaginatie;
|
|
2839
4035
|
}
|
|
2840
|
-
bepaalTopologieElementen(
|
|
2841
|
-
const topoElementen =
|
|
4036
|
+
bepaalTopologieElementen(sbmService) {
|
|
4037
|
+
const topoElementen = sbmService.bepaalRouteElementen(this.getRoute());
|
|
2842
4038
|
if (this.heeftVrijebaanInfo()) {
|
|
2843
|
-
const vrijebaanTopoElementen =
|
|
4039
|
+
const vrijebaanTopoElementen = sbmService.bepaalRouteElementen(this.getVrijebaanPrlRoute());
|
|
2844
4040
|
topoElementen.push(...vrijebaanTopoElementen);
|
|
2845
4041
|
}
|
|
2846
4042
|
this.topoElementen = topoElementen;
|
|
@@ -2985,7 +4181,7 @@ class BepaalOngeplandeActiesEffect {
|
|
|
2985
4181
|
this.messagesService.showMessage(MessageBuilder.nietGevondenTakkenOngeplandeActies(nietGevondenTakken));
|
|
2986
4182
|
}
|
|
2987
4183
|
if (logMeldingDTOs.length > 0) {
|
|
2988
|
-
this.mstLogResource.
|
|
4184
|
+
this.mstLogResource.logMessages(logMeldingDTOs);
|
|
2989
4185
|
}
|
|
2990
4186
|
this.store.dispatch(SetOngeplandeActies(puicActieMap));
|
|
2991
4187
|
this.store.dispatch(SetOngeplandeActieSelectieIds(Array.from(puicActieMap.keys())));
|
|
@@ -3055,7 +4251,7 @@ class BepaalSbInfosEffect {
|
|
|
3055
4251
|
next: _res => this.store.dispatch(laadEnVerwerkSignaleringsbeeldInfo(treinpad, paginationSize, pplgs, ritGewijzigdToegestaan)),
|
|
3056
4252
|
error: err => {
|
|
3057
4253
|
this.messagesService.showMessage(new Message(Severity.INFORMATION, Utils.getValidErorrMessage(err)));
|
|
3058
|
-
const iaVersieInfo = { versie: '
|
|
4254
|
+
const iaVersieInfo = { versie: 'DONNA_97207_VER_1', ingangsDatum: this.dateService.getCurrentDate() };
|
|
3059
4255
|
this.store.dispatch(SetIaVersie(iaVersieInfo));
|
|
3060
4256
|
this.store.dispatch(laadEnVerwerkSignaleringsbeeldInfo(treinpad, paginationSize, pplgs, ritGewijzigdToegestaan));
|
|
3061
4257
|
}
|
|
@@ -3209,7 +4405,7 @@ class LaadRouteFilesEffect {
|
|
|
3209
4405
|
const promise = this.editorService.laadRouteFiles(actie.iaversieinfo.versie, pplgs);
|
|
3210
4406
|
promise.then(() => {
|
|
3211
4407
|
this.updateRitdelen(actie);
|
|
3212
|
-
}, err => {
|
|
4408
|
+
}, (err) => {
|
|
3213
4409
|
this.messagesService.showMessage(MessageBuilder.rwpDataNietGevonden(Utils.getValidErorrMessage(err)));
|
|
3214
4410
|
});
|
|
3215
4411
|
});
|
|
@@ -3386,8 +4582,8 @@ class LaadSignaleringsbeeldenEffect {
|
|
|
3386
4582
|
dtos.filter(d => !visibleDtos.includes(d)).forEach(d => d.metVisualisatie = false);
|
|
3387
4583
|
return visibleDtos;
|
|
3388
4584
|
}
|
|
3389
|
-
distinct(value, index,
|
|
3390
|
-
return
|
|
4585
|
+
distinct(value, index, values) {
|
|
4586
|
+
return values.indexOf(value) === index;
|
|
3391
4587
|
}
|
|
3392
4588
|
addPrevNonVisibleDto(firstIdx, ritdelen, loadingDtos, visibleRitPplgs, allDtos) {
|
|
3393
4589
|
if (firstIdx >= 0) {
|
|
@@ -3476,7 +4672,7 @@ class LaadSignaleringsbeeldenEffect {
|
|
|
3476
4672
|
}
|
|
3477
4673
|
}
|
|
3478
4674
|
}
|
|
3479
|
-
this.
|
|
4675
|
+
this.updateZichtbaarheidAangrenzendeRitdelen(min, max, ritdelen, visibleDtos);
|
|
3480
4676
|
return this.updateZichtbaarheidBuitenWindow(ritdelen, visibleDtos);
|
|
3481
4677
|
}
|
|
3482
4678
|
updateZichtbaarheidBuitenWindow(nieuweRitdelen, visibleDtos) {
|
|
@@ -3492,7 +4688,7 @@ class LaadSignaleringsbeeldenEffect {
|
|
|
3492
4688
|
}
|
|
3493
4689
|
return nieuweRitdelen;
|
|
3494
4690
|
}
|
|
3495
|
-
|
|
4691
|
+
updateZichtbaarheidAangrenzendeRitdelen(min, max, nieuweRitdelen, visibleDtos) {
|
|
3496
4692
|
let i = min - 1;
|
|
3497
4693
|
while (i >= 0) {
|
|
3498
4694
|
i = this.updateZichtbaarHeid(i, 0, visibleDtos, nieuweRitdelen) - 1;
|
|
@@ -3627,11 +4823,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
|
|
|
3627
4823
|
}], ctorParameters: () => [{ type: i1$2.Actions }, { type: i2$1.Store }, { type: BewegingVerrijkerService }] });
|
|
3628
4824
|
|
|
3629
4825
|
class RitdelenEffect {
|
|
3630
|
-
constructor(actions$, store, sbmService,
|
|
4826
|
+
constructor(actions$, store, sbmService, editorService) {
|
|
3631
4827
|
this.actions$ = actions$;
|
|
3632
4828
|
this.store = store;
|
|
3633
4829
|
this.sbmService = sbmService;
|
|
3634
|
-
this.
|
|
4830
|
+
this.editorService = editorService;
|
|
3635
4831
|
this.updateRitDelen$ = createEffect(() => this.actions$.pipe(ofType(updateRitDelen), withLatestFrom(this.store), map(([actie, _storeState]) => {
|
|
3636
4832
|
const nieuweRitDelen = actie.ritDelen.map(ritDeel => ritDeel.isZichtbaar() ?
|
|
3637
4833
|
ritDeel.copyMetAlternatieveRoutes(this.sbmService.bepaalAlternativeRoutes(ritDeel.getRijweg())) : ritDeel);
|
|
@@ -3649,25 +4845,25 @@ class RitdelenEffect {
|
|
|
3649
4845
|
return setRitdelenAfterUpdate(ritDelen);
|
|
3650
4846
|
})));
|
|
3651
4847
|
this.ritdeelInvoegen$ = createEffect(() => this.actions$.pipe(ofType(ritdeelInvoegen), withLatestFrom(this.store), map(([actie, storeState]) => {
|
|
3652
|
-
const ritDelen = this.ritdeelInvoegenFunc(storeState.ritDelen, actie.nieuweRoute
|
|
4848
|
+
const ritDelen = this.ritdeelInvoegenFunc(storeState.ritDelen, actie.nieuweRoute);
|
|
3653
4849
|
return setRitdelenAfterUpdate(ritDelen);
|
|
3654
4850
|
})));
|
|
3655
4851
|
}
|
|
3656
|
-
ritdeelInvoegenFunc(ritDelen, nieuweRoute
|
|
4852
|
+
ritdeelInvoegenFunc(ritDelen, nieuweRoute) {
|
|
3657
4853
|
const origineelRitdeel = nieuweRoute.beginSeinOpRitdeel.ritdeel;
|
|
3658
4854
|
const beginSein = nieuweRoute.beginSeinOpRitdeel.sein;
|
|
3659
|
-
const rijwegplan =
|
|
4855
|
+
const rijwegplan = this.editorService.getRijwegplan(beginSein.getPPLG());
|
|
3660
4856
|
const dwangen = JsJavaUtil.listToArray(rijwegplan.getOnderliggendeDwangenTotEnVanSein(origineelRitdeel.getDwang(), beginSein));
|
|
3661
4857
|
const isSamengesteldeRoute = dwangen[0] && dwangen[1];
|
|
3662
4858
|
let newRitdeel1 = origineelRitdeel;
|
|
3663
4859
|
if (isSamengesteldeRoute) {
|
|
3664
|
-
newRitdeel1 = this.verwerkSamengesteldeRoute(origineelRitdeel, rijwegplan, dwangen,
|
|
4860
|
+
newRitdeel1 = this.verwerkSamengesteldeRoute(origineelRitdeel, rijwegplan, dwangen, ritDelen);
|
|
3665
4861
|
}
|
|
3666
4862
|
if (nieuweRoute.combinatieVoorEindsein.isVrijeBaanRijweg()) {
|
|
3667
|
-
this.extendRitdeelMetVrijebaanInfo(newRitdeel1, nieuweRoute
|
|
4863
|
+
this.extendRitdeelMetVrijebaanInfo(newRitdeel1, nieuweRoute);
|
|
3668
4864
|
}
|
|
3669
4865
|
else {
|
|
3670
|
-
this.maakNieuwRitdeel(newRitdeel1, nieuweRoute,
|
|
4866
|
+
this.maakNieuwRitdeel(newRitdeel1, nieuweRoute, ritDelen);
|
|
3671
4867
|
}
|
|
3672
4868
|
if (isSamengesteldeRoute) {
|
|
3673
4869
|
ritDelen.splice(ritDelen.indexOf(origineelRitdeel), 1);
|
|
@@ -3682,38 +4878,38 @@ class RitdelenEffect {
|
|
|
3682
4878
|
}
|
|
3683
4879
|
}
|
|
3684
4880
|
}
|
|
3685
|
-
verwerkSamengesteldeRoute(origineelRitdeel, rijwegplan, dwangen,
|
|
4881
|
+
verwerkSamengesteldeRoute(origineelRitdeel, rijwegplan, dwangen, ritDelen) {
|
|
3686
4882
|
// dwangen in 2 nieuwe ritdelen verwerken voor de knip
|
|
3687
4883
|
const nieuweRijweg1 = rijwegplan.getRijwegVoorSeinen(dwangen[0].getRoute().getBeginSein(), dwangen[0].getRoute().getEindSein());
|
|
3688
4884
|
const dwangInfo1 = new RijwegplanRijwegDwangCombinatie(rijwegplan, nieuweRijweg1, dwangen[0]);
|
|
3689
|
-
const newRitdeel1 = new Ritdeel(dwangInfo1, [],
|
|
4885
|
+
const newRitdeel1 = new Ritdeel(dwangInfo1, [], undefined, undefined, undefined, []);
|
|
3690
4886
|
// remove vrijbaan info uit ritdeel
|
|
3691
|
-
newRitdeel1.vrijebaanRijwegplanRijwegDwangCombi =
|
|
3692
|
-
newRitdeel1.vervolgSpoor =
|
|
3693
|
-
newRitdeel1.bepaalTopologieElementen(sbmService);
|
|
4887
|
+
newRitdeel1.vrijebaanRijwegplanRijwegDwangCombi = undefined;
|
|
4888
|
+
newRitdeel1.vervolgSpoor = undefined;
|
|
4889
|
+
newRitdeel1.bepaalTopologieElementen(this.sbmService);
|
|
3694
4890
|
this.insertRitdeel(ritDelen, origineelRitdeel, newRitdeel1);
|
|
3695
4891
|
const nieuweRijweg2 = rijwegplan.getRijwegVoorSeinen(dwangen[1].getRoute().getBeginSein(), dwangen[1].getRoute().getEindSein());
|
|
3696
4892
|
const dwangInfo2 = new RijwegplanRijwegDwangCombinatie(rijwegplan, nieuweRijweg2, dwangen[1]);
|
|
3697
|
-
const newRitdeel2 = new Ritdeel(dwangInfo2, [],
|
|
3698
|
-
newRitdeel2.bepaalTopologieElementen(sbmService);
|
|
4893
|
+
const newRitdeel2 = new Ritdeel(dwangInfo2, [], undefined, undefined, undefined, []);
|
|
4894
|
+
newRitdeel2.bepaalTopologieElementen(this.sbmService);
|
|
3699
4895
|
this.insertRitdeel(ritDelen, newRitdeel1, newRitdeel2);
|
|
3700
4896
|
return newRitdeel1;
|
|
3701
4897
|
}
|
|
3702
|
-
extendRitdeelMetVrijebaanInfo(newRitdeel1, nieuweRoute
|
|
4898
|
+
extendRitdeelMetVrijebaanInfo(newRitdeel1, nieuweRoute) {
|
|
3703
4899
|
newRitdeel1.vrijebaanRijwegplanRijwegDwangCombi = nieuweRoute.combinatieVoorEindsein;
|
|
3704
4900
|
const vbrwp = nieuweRoute.combinatieVoorEindsein.rijwegplan;
|
|
3705
4901
|
newRitdeel1.vervolgSpoor = vbrwp.getVervolgSpoor(nieuweRoute.combinatieVoorEindsein.rijweg);
|
|
3706
|
-
newRitdeel1.bepaalTopologieElementen(sbmService);
|
|
4902
|
+
newRitdeel1.bepaalTopologieElementen(this.sbmService);
|
|
3707
4903
|
}
|
|
3708
|
-
maakNieuwRitdeel(newRitdeel1, nieuweRoute,
|
|
4904
|
+
maakNieuwRitdeel(newRitdeel1, nieuweRoute, ritDelen) {
|
|
3709
4905
|
let newRitdeel = this.createRitdeel(nieuweRoute);
|
|
3710
|
-
const altRoutes = sbmService.bepaalAlternativeRoutes(newRitdeel.getRijweg());
|
|
4906
|
+
const altRoutes = this.sbmService.bepaalAlternativeRoutes(newRitdeel.getRijweg());
|
|
3711
4907
|
newRitdeel = newRitdeel.copyMetAlternatieveRoutes(altRoutes);
|
|
3712
|
-
newRitdeel.bepaalTopologieElementen(sbmService);
|
|
4908
|
+
newRitdeel.bepaalTopologieElementen(this.sbmService);
|
|
3713
4909
|
this.insertRitdeel(ritDelen, newRitdeel1, newRitdeel);
|
|
3714
4910
|
}
|
|
3715
4911
|
createRitdeel(nieuweRoute) {
|
|
3716
|
-
return new Ritdeel(nieuweRoute.combinatieVoorEindsein, [],
|
|
4912
|
+
return new Ritdeel(nieuweRoute.combinatieVoorEindsein, [], undefined, undefined, undefined, []);
|
|
3717
4913
|
}
|
|
3718
4914
|
insertRitdeel(ritdelen, naRitdeelPositie, newRitdeel) {
|
|
3719
4915
|
const idx = ritdelen.indexOf(naRitdeelPositie);
|
|
@@ -3880,7 +5076,7 @@ const nieuweRouteReducer = createReducer(new NieuweRoute(null, null), on(SetNieu
|
|
|
3880
5076
|
const signaleringsbeeldInfoDtosReducer = createReducer([], on(SetSignaleringsbeeldInfoDtos, (_, { dtos }) => dtos), on(UpdateSignaleringsbeeldInfoDtos, (_, { dtos }) => [...dtos]));
|
|
3881
5077
|
const visibleSbInfoDtosReducer = createReducer([], on(SetVisibleSignaleringsbeeldInfoDtos, (_, { dtos }) => dtos), on(UpdateVisibleSignaleringsbeeldInfoDtos, (_, { dtos }) => [...dtos]));
|
|
3882
5078
|
const iaVersieReducer = createReducer({}, on(SetIaVersie, (_, { iaVersie }) => Object.assign({}, iaVersie, { versie: iaVersie.versie.toUpperCase() })));
|
|
3883
|
-
const algemeneRitInfoDtoReducer = createReducer(
|
|
5079
|
+
const algemeneRitInfoDtoReducer = createReducer({}, on(SetAlgemeneRitInfo, (_, { algemeneRitInfoDto }) => algemeneRitInfoDto));
|
|
3884
5080
|
const ongeplandeActiesBepaaldReducer = createReducer(false, on(SetOngeplandeActiesBepaald, (_, { bepaald }) => bepaald));
|
|
3885
5081
|
const nieuweBewegingReducer = createReducer({}, on(UpdateRit, (_, { bewegingen }) => bewegingen));
|
|
3886
5082
|
const baseUrlReducer = createReducer(undefined, on(SetBaseUrl, (_, { baseUrl }) => baseUrl));
|
|
@@ -3917,6 +5113,7 @@ const storeReducers = {
|
|
|
3917
5113
|
selectedRitdeelId: selectedRitdeelIdReducer
|
|
3918
5114
|
};
|
|
3919
5115
|
|
|
5116
|
+
// @ts-nocheck
|
|
3920
5117
|
class ZoneUtil {
|
|
3921
5118
|
constructor(ngZone) {
|
|
3922
5119
|
this.ngZone = ngZone;
|
|
@@ -3961,6 +5158,7 @@ const imports = [
|
|
|
3961
5158
|
ImxViewerModule,
|
|
3962
5159
|
RijwegenModule,
|
|
3963
5160
|
ResourceModule.forRoot(),
|
|
5161
|
+
//@ts-ignore TODO: remove this ignore and fix it
|
|
3964
5162
|
StoreModule.forRoot(storeReducers, STORE_CONFIG),
|
|
3965
5163
|
EffectsModule.forRoot([
|
|
3966
5164
|
DeleteOngeplandeActieEffect,
|
|
@@ -3979,6 +5177,7 @@ class MstViewerModule {
|
|
|
3979
5177
|
constructor(service, zoneUtil) {
|
|
3980
5178
|
this.service = service;
|
|
3981
5179
|
// maak de EditorService toegankelijk voor GWT code
|
|
5180
|
+
// @ts-ignore
|
|
3982
5181
|
window['rpe'] = {
|
|
3983
5182
|
EditorService: zoneUtil.proxy(service)
|
|
3984
5183
|
};
|
|
@@ -3996,7 +5195,7 @@ class MstViewerModule {
|
|
|
3996
5195
|
SvgVisualisatieComponent,
|
|
3997
5196
|
MessagesComponent], imports: [CommonModule,
|
|
3998
5197
|
ImxViewerModule,
|
|
3999
|
-
RijwegenModule, i1.ResourceModule, i2$1.StoreRootModule, i1$2.EffectsRootModule], exports: [MstviewerComponent] }); }
|
|
5198
|
+
RijwegenModule, i1$1.ResourceModule, i2$1.StoreRootModule, i1$2.EffectsRootModule], exports: [MstviewerComponent] }); }
|
|
4000
5199
|
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: MstViewerModule, providers: [
|
|
4001
5200
|
ZoneUtil,
|
|
4002
5201
|
SignaleringsbeeldInfoResource,
|