@valtimo/swagger 4.23.0 → 5.0.0
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/esm2020/lib/swagger-routing.module.mjs +44 -0
- package/esm2020/lib/swagger.component.mjs +52 -0
- package/esm2020/lib/swagger.module.mjs +34 -0
- package/esm2020/public_api.mjs +21 -0
- package/esm2020/valtimo-swagger.mjs +5 -0
- package/fesm2015/valtimo-swagger.mjs +145 -0
- package/fesm2015/valtimo-swagger.mjs.map +1 -0
- package/fesm2020/valtimo-swagger.mjs +145 -0
- package/fesm2020/valtimo-swagger.mjs.map +1 -0
- package/lib/swagger-routing.module.d.ts +7 -0
- package/lib/swagger-routing.module.d.ts.map +1 -0
- package/lib/swagger.component.d.ts +4 -0
- package/lib/swagger.component.d.ts.map +1 -0
- package/lib/swagger.module.d.ts +8 -0
- package/lib/swagger.module.d.ts.map +1 -0
- package/package.json +22 -10
- package/public_api.d.ts +1 -0
- package/public_api.d.ts.map +1 -0
- package/valtimo-swagger.d.ts +2 -1
- package/valtimo-swagger.d.ts.map +1 -0
- package/bundles/valtimo-swagger.umd.js +0 -156
- package/bundles/valtimo-swagger.umd.js.map +0 -1
- package/bundles/valtimo-swagger.umd.min.js +0 -2
- package/bundles/valtimo-swagger.umd.min.js.map +0 -1
- package/esm2015/lib/swagger-routing.module.js +0 -40
- package/esm2015/lib/swagger.component.js +0 -59
- package/esm2015/lib/swagger.module.js +0 -29
- package/esm2015/public_api.js +0 -21
- package/esm2015/valtimo-swagger.js +0 -6
- package/fesm2015/valtimo-swagger.js +0 -142
- package/fesm2015/valtimo-swagger.js.map +0 -1
- package/valtimo-swagger.metadata.json +0 -1
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { NgModule } from '@angular/core';
|
|
17
|
+
import { RouterModule } from '@angular/router';
|
|
18
|
+
import { CommonModule } from '@angular/common';
|
|
19
|
+
import { AuthGuardService } from '@valtimo/security';
|
|
20
|
+
import { SwaggerComponent } from './swagger.component';
|
|
21
|
+
import { ROLE_USER } from '@valtimo/config';
|
|
22
|
+
import * as i0 from "@angular/core";
|
|
23
|
+
import * as i1 from "@angular/router";
|
|
24
|
+
const routes = [
|
|
25
|
+
{
|
|
26
|
+
path: 'swagger',
|
|
27
|
+
component: SwaggerComponent,
|
|
28
|
+
canActivate: [AuthGuardService],
|
|
29
|
+
data: { title: 'Swagger', roles: [ROLE_USER] },
|
|
30
|
+
},
|
|
31
|
+
];
|
|
32
|
+
export class SwaggerRoutingModule {
|
|
33
|
+
}
|
|
34
|
+
SwaggerRoutingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: SwaggerRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
35
|
+
SwaggerRoutingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: SwaggerRoutingModule, imports: [CommonModule, i1.RouterModule], exports: [RouterModule] });
|
|
36
|
+
SwaggerRoutingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: SwaggerRoutingModule, imports: [[CommonModule, RouterModule.forChild(routes)], RouterModule] });
|
|
37
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: SwaggerRoutingModule, decorators: [{
|
|
38
|
+
type: NgModule,
|
|
39
|
+
args: [{
|
|
40
|
+
imports: [CommonModule, RouterModule.forChild(routes)],
|
|
41
|
+
exports: [RouterModule],
|
|
42
|
+
}]
|
|
43
|
+
}] });
|
|
44
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3dhZ2dlci1yb3V0aW5nLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3ZhbHRpbW8vc3dhZ2dlci9zcmMvbGliL3N3YWdnZXItcm91dGluZy5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7Ozs7Ozs7Ozs7O0dBY0c7QUFFSCxPQUFPLEVBQUMsUUFBUSxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBQ3ZDLE9BQU8sRUFBQyxZQUFZLEVBQVMsTUFBTSxpQkFBaUIsQ0FBQztBQUNyRCxPQUFPLEVBQUMsWUFBWSxFQUFDLE1BQU0saUJBQWlCLENBQUM7QUFDN0MsT0FBTyxFQUFDLGdCQUFnQixFQUFDLE1BQU0sbUJBQW1CLENBQUM7QUFDbkQsT0FBTyxFQUFDLGdCQUFnQixFQUFDLE1BQU0scUJBQXFCLENBQUM7QUFDckQsT0FBTyxFQUFDLFNBQVMsRUFBQyxNQUFNLGlCQUFpQixDQUFDOzs7QUFFMUMsTUFBTSxNQUFNLEdBQVc7SUFDckI7UUFDRSxJQUFJLEVBQUUsU0FBUztRQUNmLFNBQVMsRUFBRSxnQkFBZ0I7UUFDM0IsV0FBVyxFQUFFLENBQUMsZ0JBQWdCLENBQUM7UUFDL0IsSUFBSSxFQUFFLEVBQUMsS0FBSyxFQUFFLFNBQVMsRUFBR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cyBTd2FnZ2VyUm91dGluZ01vZHVsZSB7fVxuIl19
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { Component, ViewEncapsulation } from '@angular/core';
|
|
17
|
+
import SwaggerUI from 'swagger-ui';
|
|
18
|
+
import * as i0 from "@angular/core";
|
|
19
|
+
import * as i1 from "@valtimo/config";
|
|
20
|
+
import * as i2 from "@valtimo/security";
|
|
21
|
+
import * as i3 from "ngx-logger";
|
|
22
|
+
export class SwaggerComponent {
|
|
23
|
+
constructor(configService, el, userProviderService, logger) {
|
|
24
|
+
this.configService = configService;
|
|
25
|
+
this.el = el;
|
|
26
|
+
this.userProviderService = userProviderService;
|
|
27
|
+
this.logger = logger;
|
|
28
|
+
this.valtimoSwaggerConfig = configService.config.swagger;
|
|
29
|
+
}
|
|
30
|
+
ngAfterViewInit() {
|
|
31
|
+
this.userProviderService.getToken().then((authToken) => {
|
|
32
|
+
this.logger.debug(`swagger ngAfterViewInit token: ${authToken}`);
|
|
33
|
+
SwaggerUI({
|
|
34
|
+
url: this.valtimoSwaggerConfig.endpointUri,
|
|
35
|
+
domNode: this.el.nativeElement.querySelector('.swagger-container'),
|
|
36
|
+
deepLinking: true,
|
|
37
|
+
presets: [SwaggerUI.presets.apis],
|
|
38
|
+
requestInterceptor(request) {
|
|
39
|
+
request.headers.Authorization = `Bearer ${authToken}`;
|
|
40
|
+
return request;
|
|
41
|
+
},
|
|
42
|
+
});
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
SwaggerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: SwaggerComponent, deps: [{ token: i1.ConfigService }, { token: i0.ElementRef }, { token: i2.UserProviderService }, { token: i3.NGXLogger }], target: i0.ɵɵFactoryTarget.Component });
|
|
47
|
+
SwaggerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", type: SwaggerComponent, selector: "valtimo-swagger", ngImport: i0, template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<div class=\"container-fluid\">\n <div class=\"swagger-container\"></div>\n</div>\n", styles: ["/*!\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.swagger-ui .info .title{height:auto}.swagger-ui .info .title small pre{background-color:inherit}\n"], encapsulation: i0.ViewEncapsulation.None });
|
|
48
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: SwaggerComponent, decorators: [{
|
|
49
|
+
type: Component,
|
|
50
|
+
args: [{ selector: 'valtimo-swagger', encapsulation: ViewEncapsulation.None, template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<div class=\"container-fluid\">\n <div class=\"swagger-container\"></div>\n</div>\n", styles: ["/*!\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.swagger-ui .info .title{height:auto}.swagger-ui .info .title small pre{background-color:inherit}\n"] }]
|
|
51
|
+
}], ctorParameters: function () { return [{ type: i1.ConfigService }, { type: i0.ElementRef }, { type: i2.UserProviderService }, { type: i3.NGXLogger }]; } });
|
|
52
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3dhZ2dlci5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy92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|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { NgModule } from '@angular/core';
|
|
17
|
+
import { CommonModule } from '@angular/common';
|
|
18
|
+
import { SwaggerComponent } from './swagger.component';
|
|
19
|
+
import { SwaggerRoutingModule } from './swagger-routing.module';
|
|
20
|
+
import * as i0 from "@angular/core";
|
|
21
|
+
export class SwaggerModule {
|
|
22
|
+
}
|
|
23
|
+
SwaggerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: SwaggerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
24
|
+
SwaggerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: SwaggerModule, declarations: [SwaggerComponent], imports: [CommonModule, SwaggerRoutingModule], exports: [SwaggerComponent] });
|
|
25
|
+
SwaggerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: SwaggerModule, imports: [[CommonModule, SwaggerRoutingModule]] });
|
|
26
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: SwaggerModule, decorators: [{
|
|
27
|
+
type: NgModule,
|
|
28
|
+
args: [{
|
|
29
|
+
declarations: [SwaggerComponent],
|
|
30
|
+
imports: [CommonModule, SwaggerRoutingModule],
|
|
31
|
+
exports: [SwaggerComponent],
|
|
32
|
+
}]
|
|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SxcbiAgaW1wb3J0czogW0NvbW1vbk1vZHVsZSwgU3dhZ2dlclJvdXRpbmdNb2R1bGVdLFxuICBleHBvcnRzOiBbU3dhZ2dlckNvbXBvbmVudF0sXG59KVxuZXhwb3J0IGNsYXNzIFN3YWdnZXJNb2R1bGUge31cbiJdfQ==
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
/*
|
|
17
|
+
* Public API Surface of swagger
|
|
18
|
+
*/
|
|
19
|
+
export * from './lib/swagger.module';
|
|
20
|
+
export * from './lib/swagger.component';
|
|
21
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL3ZhbHRpbW8vc3dhZ2dlci9zcmMvcHVibGljX2FwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7Ozs7Ozs7Ozs7R0FjRztBQUVIOztHQUVHO0FBRUgsY0FBYyxzQkFBc0IsQ0FBQztBQUNyQyxjQUFjLHlCQUF5QixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLypcbiAqIENvcHly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edit.
|
|
3
|
+
*/
|
|
4
|
+
export * from './public_api';
|
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFsdGltby1zd2FnZ2VyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcHJvamVjdHMvdmFsdGltby9zd2FnZ2VyL3NyYy92YWx0aW1vLXN3YWdnZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWNfYXBpJztcbiJdfQ==
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Component, ViewEncapsulation, NgModule } from '@angular/core';
|
|
3
|
+
import { CommonModule } from '@angular/common';
|
|
4
|
+
import SwaggerUI from 'swagger-ui';
|
|
5
|
+
import * as i1 from '@valtimo/config';
|
|
6
|
+
import { ROLE_USER } from '@valtimo/config';
|
|
7
|
+
import * as i2 from '@valtimo/security';
|
|
8
|
+
import { AuthGuardService } from '@valtimo/security';
|
|
9
|
+
import * as i3 from 'ngx-logger';
|
|
10
|
+
import * as i1$1 from '@angular/router';
|
|
11
|
+
import { RouterModule } from '@angular/router';
|
|
12
|
+
|
|
13
|
+
/*
|
|
14
|
+
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
15
|
+
*
|
|
16
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
17
|
+
* you may not use this file except in compliance with the License.
|
|
18
|
+
* You may obtain a copy of the License at
|
|
19
|
+
*
|
|
20
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
21
|
+
*
|
|
22
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
23
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
24
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
25
|
+
* See the License for the specific language governing permissions and
|
|
26
|
+
* limitations under the License.
|
|
27
|
+
*/
|
|
28
|
+
class SwaggerComponent {
|
|
29
|
+
constructor(configService, el, userProviderService, logger) {
|
|
30
|
+
this.configService = configService;
|
|
31
|
+
this.el = el;
|
|
32
|
+
this.userProviderService = userProviderService;
|
|
33
|
+
this.logger = logger;
|
|
34
|
+
this.valtimoSwaggerConfig = configService.config.swagger;
|
|
35
|
+
}
|
|
36
|
+
ngAfterViewInit() {
|
|
37
|
+
this.userProviderService.getToken().then((authToken) => {
|
|
38
|
+
this.logger.debug(`swagger ngAfterViewInit token: ${authToken}`);
|
|
39
|
+
SwaggerUI({
|
|
40
|
+
url: this.valtimoSwaggerConfig.endpointUri,
|
|
41
|
+
domNode: this.el.nativeElement.querySelector('.swagger-container'),
|
|
42
|
+
deepLinking: true,
|
|
43
|
+
presets: [SwaggerUI.presets.apis],
|
|
44
|
+
requestInterceptor(request) {
|
|
45
|
+
request.headers.Authorization = `Bearer ${authToken}`;
|
|
46
|
+
return request;
|
|
47
|
+
},
|
|
48
|
+
});
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
SwaggerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: SwaggerComponent, deps: [{ token: i1.ConfigService }, { token: i0.ElementRef }, { token: i2.UserProviderService }, { token: i3.NGXLogger }], target: i0.ɵɵFactoryTarget.Component });
|
|
53
|
+
SwaggerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", type: SwaggerComponent, selector: "valtimo-swagger", ngImport: i0, template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<div class=\"container-fluid\">\n <div class=\"swagger-container\"></div>\n</div>\n", styles: ["/*!\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.swagger-ui .info .title{height:auto}.swagger-ui .info .title small pre{background-color:inherit}\n"], encapsulation: i0.ViewEncapsulation.None });
|
|
54
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: SwaggerComponent, decorators: [{
|
|
55
|
+
type: Component,
|
|
56
|
+
args: [{ selector: 'valtimo-swagger', encapsulation: ViewEncapsulation.None, template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<div class=\"container-fluid\">\n <div class=\"swagger-container\"></div>\n</div>\n", styles: ["/*!\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.swagger-ui .info .title{height:auto}.swagger-ui .info .title small pre{background-color:inherit}\n"] }]
|
|
57
|
+
}], ctorParameters: function () { return [{ type: i1.ConfigService }, { type: i0.ElementRef }, { type: i2.UserProviderService }, { type: i3.NGXLogger }]; } });
|
|
58
|
+
|
|
59
|
+
/*
|
|
60
|
+
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
61
|
+
*
|
|
62
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
63
|
+
* you may not use this file except in compliance with the License.
|
|
64
|
+
* You may obtain a copy of the License at
|
|
65
|
+
*
|
|
66
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
67
|
+
*
|
|
68
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
69
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
70
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
71
|
+
* See the License for the specific language governing permissions and
|
|
72
|
+
* limitations under the License.
|
|
73
|
+
*/
|
|
74
|
+
const routes = [
|
|
75
|
+
{
|
|
76
|
+
path: 'swagger',
|
|
77
|
+
component: SwaggerComponent,
|
|
78
|
+
canActivate: [AuthGuardService],
|
|
79
|
+
data: { title: 'Swagger', roles: [ROLE_USER] },
|
|
80
|
+
},
|
|
81
|
+
];
|
|
82
|
+
class SwaggerRoutingModule {
|
|
83
|
+
}
|
|
84
|
+
SwaggerRoutingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: SwaggerRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
85
|
+
SwaggerRoutingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: SwaggerRoutingModule, imports: [CommonModule, i1$1.RouterModule], exports: [RouterModule] });
|
|
86
|
+
SwaggerRoutingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: SwaggerRoutingModule, imports: [[CommonModule, RouterModule.forChild(routes)], RouterModule] });
|
|
87
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: SwaggerRoutingModule, decorators: [{
|
|
88
|
+
type: NgModule,
|
|
89
|
+
args: [{
|
|
90
|
+
imports: [CommonModule, RouterModule.forChild(routes)],
|
|
91
|
+
exports: [RouterModule],
|
|
92
|
+
}]
|
|
93
|
+
}] });
|
|
94
|
+
|
|
95
|
+
/*
|
|
96
|
+
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
97
|
+
*
|
|
98
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
99
|
+
* you may not use this file except in compliance with the License.
|
|
100
|
+
* You may obtain a copy of the License at
|
|
101
|
+
*
|
|
102
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
103
|
+
*
|
|
104
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
105
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
106
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
107
|
+
* See the License for the specific language governing permissions and
|
|
108
|
+
* limitations under the License.
|
|
109
|
+
*/
|
|
110
|
+
class SwaggerModule {
|
|
111
|
+
}
|
|
112
|
+
SwaggerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: SwaggerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
113
|
+
SwaggerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: SwaggerModule, declarations: [SwaggerComponent], imports: [CommonModule, SwaggerRoutingModule], exports: [SwaggerComponent] });
|
|
114
|
+
SwaggerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: SwaggerModule, imports: [[CommonModule, SwaggerRoutingModule]] });
|
|
115
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: SwaggerModule, decorators: [{
|
|
116
|
+
type: NgModule,
|
|
117
|
+
args: [{
|
|
118
|
+
declarations: [SwaggerComponent],
|
|
119
|
+
imports: [CommonModule, SwaggerRoutingModule],
|
|
120
|
+
exports: [SwaggerComponent],
|
|
121
|
+
}]
|
|
122
|
+
}] });
|
|
123
|
+
|
|
124
|
+
/*
|
|
125
|
+
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
126
|
+
*
|
|
127
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
128
|
+
* you may not use this file except in compliance with the License.
|
|
129
|
+
* You may obtain a copy of the License at
|
|
130
|
+
*
|
|
131
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
132
|
+
*
|
|
133
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
134
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
135
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
136
|
+
* See the License for the specific language governing permissions and
|
|
137
|
+
* limitations under the License.
|
|
138
|
+
*/
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* Generated bundle index. Do not edit.
|
|
142
|
+
*/
|
|
143
|
+
|
|
144
|
+
export { SwaggerComponent, SwaggerModule };
|
|
145
|
+
//# sourceMappingURL=valtimo-swagger.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"valtimo-swagger.mjs","sources":["../../../../projects/valtimo/swagger/src/lib/swagger.component.ts","../../../../projects/valtimo/swagger/src/lib/swagger.component.html","../../../../projects/valtimo/swagger/src/lib/swagger-routing.module.ts","../../../../projects/valtimo/swagger/src/lib/swagger.module.ts","../../../../projects/valtimo/swagger/src/public_api.ts","../../../../projects/valtimo/swagger/src/valtimo-swagger.ts"],"sourcesContent":["/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {AfterViewInit, Component, ElementRef, ViewEncapsulation} from '@angular/core';\nimport {UserProviderService} from '@valtimo/security';\nimport SwaggerUI from 'swagger-ui';\nimport {NGXLogger} from 'ngx-logger';\nimport {ConfigService} from '@valtimo/config';\n\n@Component({\n selector: 'valtimo-swagger',\n templateUrl: './swagger.component.html',\n styleUrls: ['./swagger.component.scss'],\n encapsulation: ViewEncapsulation.None,\n})\nexport class SwaggerComponent implements AfterViewInit {\n private valtimoSwaggerConfig: any;\n\n constructor(\n private configService: ConfigService,\n private el: ElementRef,\n private userProviderService: UserProviderService,\n private logger: NGXLogger\n ) {\n this.valtimoSwaggerConfig = configService.config.swagger;\n }\n\n ngAfterViewInit() {\n this.userProviderService.getToken().then((authToken: string) => {\n this.logger.debug(`swagger ngAfterViewInit token: ${authToken}`);\n SwaggerUI({\n url: this.valtimoSwaggerConfig.endpointUri,\n domNode: this.el.nativeElement.querySelector('.swagger-container'),\n deepLinking: true,\n presets: [SwaggerUI.presets.apis],\n requestInterceptor(request) {\n request.headers.Authorization = `Bearer ${authToken}`;\n return request;\n },\n });\n });\n }\n}\n","<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<div class=\"container-fluid\">\n <div class=\"swagger-container\"></div>\n</div>\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {NgModule} from '@angular/core';\nimport {RouterModule, Routes} from '@angular/router';\nimport {CommonModule} from '@angular/common';\nimport {AuthGuardService} from '@valtimo/security';\nimport {SwaggerComponent} from './swagger.component';\nimport {ROLE_USER} from '@valtimo/config';\n\nconst routes: Routes = [\n {\n path: 'swagger',\n component: SwaggerComponent,\n canActivate: [AuthGuardService],\n data: {title: 'Swagger', roles: [ROLE_USER]},\n },\n];\n\n@NgModule({\n imports: [CommonModule, RouterModule.forChild(routes)],\n exports: [RouterModule],\n})\nexport class SwaggerRoutingModule {}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {NgModule} from '@angular/core';\nimport {CommonModule} from '@angular/common';\nimport {SwaggerComponent} from './swagger.component';\nimport {SwaggerRoutingModule} from './swagger-routing.module';\n\n@NgModule({\n declarations: [SwaggerComponent],\n imports: [CommonModule, SwaggerRoutingModule],\n exports: [SwaggerComponent],\n})\nexport class SwaggerModule {}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n * Public API Surface of swagger\n */\n\nexport * from './lib/swagger.module';\nexport * from './lib/swagger.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;AAcG;MAcU,gBAAgB,CAAA;AAG3B,IAAA,WAAA,CACU,aAA4B,EAC5B,EAAc,EACd,mBAAwC,EACxC,MAAiB,EAAA;AAHjB,QAAA,IAAa,CAAA,aAAA,GAAb,aAAa,CAAe;AAC5B,QAAA,IAAE,CAAA,EAAA,GAAF,EAAE,CAAY;AACd,QAAA,IAAmB,CAAA,mBAAA,GAAnB,mBAAmB,CAAqB;AACxC,QAAA,IAAM,CAAA,MAAA,GAAN,MAAM,CAAW;QAEzB,IAAI,CAAC,oBAAoB,GAAG,aAAa,CAAC,MAAM,C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ACnCD;;;;;;;;;;;;;;AAcG;MAYU,aAAa,CAAA;;0GAAb,aAAa,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;AAAb,aAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,aAAa,iBAJT,gBAAgB,CAAA,EAAA,OAAA,EAAA,CACrB,YAAY,EAAE,oBAAoB,aAClC,gBAAgB,CAAA,EAAA,CAAA,CAAA;AAEf,aAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,aAAa,EAHf,OAAA,EAAA,CAAA,CAAC,YAAY,EAAE,oBAAoB,CAAC,CAAA,EAAA,CAAA,CAAA;2FAGlC,aAAa,EAAA,UAAA,EAAA,CAAA;kBALzB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,gBAAgB,CAAC;AAChC,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,oBAAoB,CAAC;oBAC7C,OAAO,EAAE,CAAC,gBAAgB,CAAC;iBAC5B,CAAA;;;ACzBD;;;;;;;;;;;;;;AAcG;;ACdH;;AAEG;;;;"}
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Component, ViewEncapsulation, NgModule } from '@angular/core';
|
|
3
|
+
import { CommonModule } from '@angular/common';
|
|
4
|
+
import SwaggerUI from 'swagger-ui';
|
|
5
|
+
import * as i1 from '@valtimo/config';
|
|
6
|
+
import { ROLE_USER } from '@valtimo/config';
|
|
7
|
+
import * as i2 from '@valtimo/security';
|
|
8
|
+
import { AuthGuardService } from '@valtimo/security';
|
|
9
|
+
import * as i3 from 'ngx-logger';
|
|
10
|
+
import * as i1$1 from '@angular/router';
|
|
11
|
+
import { RouterModule } from '@angular/router';
|
|
12
|
+
|
|
13
|
+
/*
|
|
14
|
+
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
15
|
+
*
|
|
16
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
17
|
+
* you may not use this file except in compliance with the License.
|
|
18
|
+
* You may obtain a copy of the License at
|
|
19
|
+
*
|
|
20
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
21
|
+
*
|
|
22
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
23
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
24
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
25
|
+
* See the License for the specific language governing permissions and
|
|
26
|
+
* limitations under the License.
|
|
27
|
+
*/
|
|
28
|
+
class SwaggerComponent {
|
|
29
|
+
constructor(configService, el, userProviderService, logger) {
|
|
30
|
+
this.configService = configService;
|
|
31
|
+
this.el = el;
|
|
32
|
+
this.userProviderService = userProviderService;
|
|
33
|
+
this.logger = logger;
|
|
34
|
+
this.valtimoSwaggerConfig = configService.config.swagger;
|
|
35
|
+
}
|
|
36
|
+
ngAfterViewInit() {
|
|
37
|
+
this.userProviderService.getToken().then((authToken) => {
|
|
38
|
+
this.logger.debug(`swagger ngAfterViewInit token: ${authToken}`);
|
|
39
|
+
SwaggerUI({
|
|
40
|
+
url: this.valtimoSwaggerConfig.endpointUri,
|
|
41
|
+
domNode: this.el.nativeElement.querySelector('.swagger-container'),
|
|
42
|
+
deepLinking: true,
|
|
43
|
+
presets: [SwaggerUI.presets.apis],
|
|
44
|
+
requestInterceptor(request) {
|
|
45
|
+
request.headers.Authorization = `Bearer ${authToken}`;
|
|
46
|
+
return request;
|
|
47
|
+
},
|
|
48
|
+
});
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
SwaggerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: SwaggerComponent, deps: [{ token: i1.ConfigService }, { token: i0.ElementRef }, { token: i2.UserProviderService }, { token: i3.NGXLogger }], target: i0.ɵɵFactoryTarget.Component });
|
|
53
|
+
SwaggerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", type: SwaggerComponent, selector: "valtimo-swagger", ngImport: i0, template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<div class=\"container-fluid\">\n <div class=\"swagger-container\"></div>\n</div>\n", styles: ["/*!\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.swagger-ui .info .title{height:auto}.swagger-ui .info .title small pre{background-color:inherit}\n"], encapsulation: i0.ViewEncapsulation.None });
|
|
54
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: SwaggerComponent, decorators: [{
|
|
55
|
+
type: Component,
|
|
56
|
+
args: [{ selector: 'valtimo-swagger', encapsulation: ViewEncapsulation.None, template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<div class=\"container-fluid\">\n <div class=\"swagger-container\"></div>\n</div>\n", styles: ["/*!\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.swagger-ui .info .title{height:auto}.swagger-ui .info .title small pre{background-color:inherit}\n"] }]
|
|
57
|
+
}], ctorParameters: function () { return [{ type: i1.ConfigService }, { type: i0.ElementRef }, { type: i2.UserProviderService }, { type: i3.NGXLogger }]; } });
|
|
58
|
+
|
|
59
|
+
/*
|
|
60
|
+
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
61
|
+
*
|
|
62
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
63
|
+
* you may not use this file except in compliance with the License.
|
|
64
|
+
* You may obtain a copy of the License at
|
|
65
|
+
*
|
|
66
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
67
|
+
*
|
|
68
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
69
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
70
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
71
|
+
* See the License for the specific language governing permissions and
|
|
72
|
+
* limitations under the License.
|
|
73
|
+
*/
|
|
74
|
+
const routes = [
|
|
75
|
+
{
|
|
76
|
+
path: 'swagger',
|
|
77
|
+
component: SwaggerComponent,
|
|
78
|
+
canActivate: [AuthGuardService],
|
|
79
|
+
data: { title: 'Swagger', roles: [ROLE_USER] },
|
|
80
|
+
},
|
|
81
|
+
];
|
|
82
|
+
class SwaggerRoutingModule {
|
|
83
|
+
}
|
|
84
|
+
SwaggerRoutingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: SwaggerRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
85
|
+
SwaggerRoutingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: SwaggerRoutingModule, imports: [CommonModule, i1$1.RouterModule], exports: [RouterModule] });
|
|
86
|
+
SwaggerRoutingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: SwaggerRoutingModule, imports: [[CommonModule, RouterModule.forChild(routes)], RouterModule] });
|
|
87
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: SwaggerRoutingModule, decorators: [{
|
|
88
|
+
type: NgModule,
|
|
89
|
+
args: [{
|
|
90
|
+
imports: [CommonModule, RouterModule.forChild(routes)],
|
|
91
|
+
exports: [RouterModule],
|
|
92
|
+
}]
|
|
93
|
+
}] });
|
|
94
|
+
|
|
95
|
+
/*
|
|
96
|
+
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
97
|
+
*
|
|
98
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
99
|
+
* you may not use this file except in compliance with the License.
|
|
100
|
+
* You may obtain a copy of the License at
|
|
101
|
+
*
|
|
102
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
103
|
+
*
|
|
104
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
105
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
106
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
107
|
+
* See the License for the specific language governing permissions and
|
|
108
|
+
* limitations under the License.
|
|
109
|
+
*/
|
|
110
|
+
class SwaggerModule {
|
|
111
|
+
}
|
|
112
|
+
SwaggerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: SwaggerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
113
|
+
SwaggerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: SwaggerModule, declarations: [SwaggerComponent], imports: [CommonModule, SwaggerRoutingModule], exports: [SwaggerComponent] });
|
|
114
|
+
SwaggerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: SwaggerModule, imports: [[CommonModule, SwaggerRoutingModule]] });
|
|
115
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: SwaggerModule, decorators: [{
|
|
116
|
+
type: NgModule,
|
|
117
|
+
args: [{
|
|
118
|
+
declarations: [SwaggerComponent],
|
|
119
|
+
imports: [CommonModule, SwaggerRoutingModule],
|
|
120
|
+
exports: [SwaggerComponent],
|
|
121
|
+
}]
|
|
122
|
+
}] });
|
|
123
|
+
|
|
124
|
+
/*
|
|
125
|
+
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
126
|
+
*
|
|
127
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
128
|
+
* you may not use this file except in compliance with the License.
|
|
129
|
+
* You may obtain a copy of the License at
|
|
130
|
+
*
|
|
131
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
132
|
+
*
|
|
133
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
134
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
135
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
136
|
+
* See the License for the specific language governing permissions and
|
|
137
|
+
* limitations under the License.
|
|
138
|
+
*/
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* Generated bundle index. Do not edit.
|
|
142
|
+
*/
|
|
143
|
+
|
|
144
|
+
export { SwaggerComponent, SwaggerModule };
|
|
145
|
+
//# sourceMappingURL=valtimo-swagger.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"valtimo-swagger.mjs","sources":["../../../../projects/valtimo/swagger/src/lib/swagger.component.ts","../../../../projects/valtimo/swagger/src/lib/swagger.component.html","../../../../projects/valtimo/swagger/src/lib/swagger-routing.module.ts","../../../../projects/valtimo/swagger/src/lib/swagger.module.ts","../../../../projects/valtimo/swagger/src/public_api.ts","../../../../projects/valtimo/swagger/src/valtimo-swagger.ts"],"sourcesContent":["/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {AfterViewInit, Component, ElementRef, ViewEncapsulation} from '@angular/core';\nimport {UserProviderService} from '@valtimo/security';\nimport SwaggerUI from 'swagger-ui';\nimport {NGXLogger} from 'ngx-logger';\nimport {ConfigService} from '@valtimo/config';\n\n@Component({\n selector: 'valtimo-swagger',\n templateUrl: './swagger.component.html',\n styleUrls: ['./swagger.component.scss'],\n encapsulation: ViewEncapsulation.None,\n})\nexport class SwaggerComponent implements AfterViewInit {\n private valtimoSwaggerConfig: any;\n\n constructor(\n private configService: ConfigService,\n private el: ElementRef,\n private userProviderService: UserProviderService,\n private logger: NGXLogger\n ) {\n this.valtimoSwaggerConfig = configService.config.swagger;\n }\n\n ngAfterViewInit() {\n this.userProviderService.getToken().then((authToken: string) => {\n this.logger.debug(`swagger ngAfterViewInit token: ${authToken}`);\n SwaggerUI({\n url: this.valtimoSwaggerConfig.endpointUri,\n domNode: this.el.nativeElement.querySelector('.swagger-container'),\n deepLinking: true,\n presets: [SwaggerUI.presets.apis],\n requestInterceptor(request) {\n request.headers.Authorization = `Bearer ${authToken}`;\n return request;\n },\n });\n });\n }\n}\n","<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<div class=\"container-fluid\">\n <div class=\"swagger-container\"></div>\n</div>\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {NgModule} from '@angular/core';\nimport {RouterModule, Routes} from '@angular/router';\nimport {CommonModule} from '@angular/common';\nimport {AuthGuardService} from '@valtimo/security';\nimport {SwaggerComponent} from './swagger.component';\nimport {ROLE_USER} from '@valtimo/config';\n\nconst routes: Routes = [\n {\n path: 'swagger',\n component: SwaggerComponent,\n canActivate: [AuthGuardService],\n data: {title: 'Swagger', roles: [ROLE_USER]},\n },\n];\n\n@NgModule({\n imports: [CommonModule, RouterModule.forChild(routes)],\n exports: [RouterModule],\n})\nexport class SwaggerRoutingModule {}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {NgModule} from '@angular/core';\nimport {CommonModule} from '@angular/common';\nimport {SwaggerComponent} from './swagger.component';\nimport {SwaggerRoutingModule} from './swagger-routing.module';\n\n@NgModule({\n declarations: [SwaggerComponent],\n imports: [CommonModule, SwaggerRoutingModule],\n exports: [SwaggerComponent],\n})\nexport class SwaggerModule {}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n * Public API Surface of swagger\n */\n\nexport * from './lib/swagger.module';\nexport * from './lib/swagger.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"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B,CAAC;AAC5B,iBAAA,CAAA;;;ACzBD;;;;;;;;;;;;;;AAcG;;ACdH;;AAEG;;;;"}
|
|
@@ -1,2 +1,9 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "@angular/common";
|
|
3
|
+
import * as i2 from "@angular/router";
|
|
1
4
|
export declare class SwaggerRoutingModule {
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SwaggerRoutingModule, never>;
|
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SwaggerRoutingModule, never, [typeof i1.CommonModule, typeof i2.RouterModule], [typeof i2.RouterModule]>;
|
|
7
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<SwaggerRoutingModule>;
|
|
2
8
|
}
|
|
9
|
+
//# sourceMappingURL=swagger-routing.module.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"swagger-routing.module.d.ts","sourceRoot":"","sources":["../../../../projects/valtimo/swagger/src/lib/swagger-routing.module.ts"],"names":[],"mappings":";;;AAgCA,qBAIa,oBAAoB;yCAApB,oBAAoB;0CAApB,oBAAoB;0CAApB,oBAAoB;CAAG"}
|
|
@@ -2,6 +2,7 @@ import { AfterViewInit, ElementRef } from '@angular/core';
|
|
|
2
2
|
import { UserProviderService } from '@valtimo/security';
|
|
3
3
|
import { NGXLogger } from 'ngx-logger';
|
|
4
4
|
import { ConfigService } from '@valtimo/config';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class SwaggerComponent implements AfterViewInit {
|
|
6
7
|
private configService;
|
|
7
8
|
private el;
|
|
@@ -10,4 +11,7 @@ export declare class SwaggerComponent implements AfterViewInit {
|
|
|
10
11
|
private valtimoSwaggerConfig;
|
|
11
12
|
constructor(configService: ConfigService, el: ElementRef, userProviderService: UserProviderService, logger: NGXLogger);
|
|
12
13
|
ngAfterViewInit(): void;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SwaggerComponent, never>;
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SwaggerComponent, "valtimo-swagger", never, {}, {}, never, never>;
|
|
13
16
|
}
|
|
17
|
+
//# sourceMappingURL=swagger.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"swagger.component.d.ts","sourceRoot":"","sources":["../../../../projects/valtimo/swagger/src/lib/swagger.component.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAC,aAAa,EAAa,UAAU,EAAoB,MAAM,eAAe,CAAC;AACtF,OAAO,EAAC,mBAAmB,EAAC,MAAM,mBAAmB,CAAC;AAEtD,OAAO,EAAC,SAAS,EAAC,MAAM,YAAY,CAAC;AACrC,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;;AAE9C,qBAMa,gBAAiB,YAAW,aAAa;IAIlD,OAAO,CAAC,aAAa;IACrB,OAAO,CAAC,EAAE;IACV,OAAO,CAAC,mBAAmB;IAC3B,OAAO,CAAC,MAAM;IANhB,OAAO,CAAC,oBAAoB,CAAM;gBAGxB,aAAa,EAAE,aAAa,EAC5B,EAAE,EAAE,UAAU,EACd,mBAAmB,EAAE,mBAAmB,EACxC,MAAM,EAAE,SAAS;IAK3B,eAAe;yCAZJ,gBAAgB;2CAAhB,gBAAgB;CA2B5B"}
|
package/lib/swagger.module.d.ts
CHANGED
|
@@ -1,2 +1,10 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./swagger.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "./swagger-routing.module";
|
|
1
5
|
export declare class SwaggerModule {
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SwaggerModule, never>;
|
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SwaggerModule, [typeof i1.SwaggerComponent], [typeof i2.CommonModule, typeof i3.SwaggerRoutingModule], [typeof i1.SwaggerComponent]>;
|
|
8
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<SwaggerModule>;
|
|
2
9
|
}
|
|
10
|
+
//# sourceMappingURL=swagger.module.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"swagger.module.d.ts","sourceRoot":"","sources":["../../../../projects/valtimo/swagger/src/lib/swagger.module.ts"],"names":[],"mappings":";;;;AAqBA,qBAKa,aAAa;yCAAb,aAAa;0CAAb,aAAa;0CAAb,aAAa;CAAG"}
|