@valtimo/swagger 4.15.3-next-main.16 → 4.16.0-next-main.19
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/bundles/valtimo-swagger.umd.js +134 -134
- package/bundles/valtimo-swagger.umd.js.map +1 -1
- package/bundles/valtimo-swagger.umd.min.js +1 -1
- package/bundles/valtimo-swagger.umd.min.js.map +1 -1
- package/esm2015/lib/swagger-routing.module.js +40 -40
- package/esm2015/lib/swagger.component.js +59 -59
- package/esm2015/lib/swagger.module.js +29 -29
- package/esm2015/public_api.js +21 -21
- package/esm2015/valtimo-swagger.js +6 -6
- package/fesm2015/valtimo-swagger.js +123 -124
- package/fesm2015/valtimo-swagger.js.map +1 -1
- package/lib/swagger-routing.module.d.ts +2 -2
- package/lib/swagger.component.d.ts +13 -13
- package/lib/swagger.module.d.ts +2 -2
- package/package.json +1 -1
- package/public_api.d.ts +2 -2
- package/valtimo-swagger.d.ts +5 -5
- package/valtimo-swagger.metadata.json +1 -1
|
@@ -1,149 +1,149 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@valtimo/security'), require('swagger-ui'), require('ngx-logger'), require('@valtimo/config'), require('@angular/router')
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@valtimo/swagger', ['exports', '@angular/core', '@angular/common', '@valtimo/security', 'swagger-ui', 'ngx-logger', '@valtimo/config', '@angular/router'
|
|
4
|
-
(global = global || self, factory((global.valtimo = global.valtimo || {}, global.valtimo.swagger = {}), global.ng.core, global.ng.common, global.security, global.SwaggerUI, global.ngxLogger, global.config, global.ng.router
|
|
5
|
-
}(this, (function (exports, core, common, security, SwaggerUI, ngxLogger, config, router
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@valtimo/security'), require('swagger-ui'), require('ngx-logger'), require('@valtimo/config'), require('@angular/router')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@valtimo/swagger', ['exports', '@angular/core', '@angular/common', '@valtimo/security', 'swagger-ui', 'ngx-logger', '@valtimo/config', '@angular/router'], factory) :
|
|
4
|
+
(global = global || self, factory((global.valtimo = global.valtimo || {}, global.valtimo.swagger = {}), global.ng.core, global.ng.common, global.security, global.SwaggerUI, global.ngxLogger, global.config, global.ng.router));
|
|
5
|
+
}(this, (function (exports, core, common, security, SwaggerUI, ngxLogger, config, router) { 'use strict';
|
|
6
6
|
|
|
7
7
|
SwaggerUI = SwaggerUI && Object.prototype.hasOwnProperty.call(SwaggerUI, 'default') ? SwaggerUI['default'] : SwaggerUI;
|
|
8
8
|
|
|
9
|
-
/*
|
|
10
|
-
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
11
|
-
*
|
|
12
|
-
* Licensed under EUPL, Version 1.2 (the "License");
|
|
13
|
-
* you may not use this file except in compliance with the License.
|
|
14
|
-
* You may obtain a copy of the License at
|
|
15
|
-
*
|
|
16
|
-
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
17
|
-
*
|
|
18
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
19
|
-
* distributed under the License is distributed on an "AS IS" basis,
|
|
20
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
21
|
-
* See the License for the specific language governing permissions and
|
|
22
|
-
* limitations under the License.
|
|
23
|
-
*/
|
|
24
|
-
var SwaggerComponent = /** @class */ (function () {
|
|
25
|
-
function SwaggerComponent(configService, el, userProviderService, logger) {
|
|
26
|
-
this.configService = configService;
|
|
27
|
-
this.el = el;
|
|
28
|
-
this.userProviderService = userProviderService;
|
|
29
|
-
this.logger = logger;
|
|
30
|
-
this.valtimoSwaggerConfig = configService.config.swagger;
|
|
31
|
-
}
|
|
32
|
-
SwaggerComponent.prototype.ngAfterViewInit = function () {
|
|
33
|
-
var _this = this;
|
|
34
|
-
this.userProviderService.getToken().then(function (authToken) {
|
|
35
|
-
_this.logger.debug("swagger ngAfterViewInit token: " + authToken);
|
|
36
|
-
SwaggerUI({
|
|
37
|
-
url: _this.valtimoSwaggerConfig.endpointUri,
|
|
38
|
-
domNode: _this.el.nativeElement.querySelector('.swagger-container'),
|
|
39
|
-
deepLinking: true,
|
|
40
|
-
presets: [SwaggerUI.presets.apis],
|
|
41
|
-
requestInterceptor: function (request) {
|
|
42
|
-
request.headers.Authorization = "Bearer " + authToken;
|
|
43
|
-
return request;
|
|
44
|
-
},
|
|
45
|
-
});
|
|
46
|
-
});
|
|
47
|
-
};
|
|
48
|
-
return SwaggerComponent;
|
|
49
|
-
}());
|
|
50
|
-
SwaggerComponent.decorators = [
|
|
51
|
-
{ type: core.Component, args: [{
|
|
52
|
-
selector: 'valtimo-swagger',
|
|
53
|
-
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",
|
|
54
|
-
encapsulation: core.ViewEncapsulation.None,
|
|
55
|
-
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}"]
|
|
56
|
-
},] }
|
|
57
|
-
];
|
|
58
|
-
SwaggerComponent.ctorParameters = function () { return [
|
|
59
|
-
{ type: config.ConfigService },
|
|
60
|
-
{ type: core.ElementRef },
|
|
61
|
-
{ type: security.UserProviderService },
|
|
62
|
-
{ type: ngxLogger.NGXLogger }
|
|
9
|
+
/*
|
|
10
|
+
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
11
|
+
*
|
|
12
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
13
|
+
* you may not use this file except in compliance with the License.
|
|
14
|
+
* You may obtain a copy of the License at
|
|
15
|
+
*
|
|
16
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
17
|
+
*
|
|
18
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
19
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
20
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
21
|
+
* See the License for the specific language governing permissions and
|
|
22
|
+
* limitations under the License.
|
|
23
|
+
*/
|
|
24
|
+
var SwaggerComponent = /** @class */ (function () {
|
|
25
|
+
function SwaggerComponent(configService, el, userProviderService, logger) {
|
|
26
|
+
this.configService = configService;
|
|
27
|
+
this.el = el;
|
|
28
|
+
this.userProviderService = userProviderService;
|
|
29
|
+
this.logger = logger;
|
|
30
|
+
this.valtimoSwaggerConfig = configService.config.swagger;
|
|
31
|
+
}
|
|
32
|
+
SwaggerComponent.prototype.ngAfterViewInit = function () {
|
|
33
|
+
var _this = this;
|
|
34
|
+
this.userProviderService.getToken().then(function (authToken) {
|
|
35
|
+
_this.logger.debug("swagger ngAfterViewInit token: " + authToken);
|
|
36
|
+
SwaggerUI({
|
|
37
|
+
url: _this.valtimoSwaggerConfig.endpointUri,
|
|
38
|
+
domNode: _this.el.nativeElement.querySelector('.swagger-container'),
|
|
39
|
+
deepLinking: true,
|
|
40
|
+
presets: [SwaggerUI.presets.apis],
|
|
41
|
+
requestInterceptor: function (request) {
|
|
42
|
+
request.headers.Authorization = "Bearer " + authToken;
|
|
43
|
+
return request;
|
|
44
|
+
},
|
|
45
|
+
});
|
|
46
|
+
});
|
|
47
|
+
};
|
|
48
|
+
return SwaggerComponent;
|
|
49
|
+
}());
|
|
50
|
+
SwaggerComponent.decorators = [
|
|
51
|
+
{ type: core.Component, args: [{
|
|
52
|
+
selector: 'valtimo-swagger',
|
|
53
|
+
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",
|
|
54
|
+
encapsulation: core.ViewEncapsulation.None,
|
|
55
|
+
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}"]
|
|
56
|
+
},] }
|
|
57
|
+
];
|
|
58
|
+
SwaggerComponent.ctorParameters = function () { return [
|
|
59
|
+
{ type: config.ConfigService },
|
|
60
|
+
{ type: core.ElementRef },
|
|
61
|
+
{ type: security.UserProviderService },
|
|
62
|
+
{ type: ngxLogger.NGXLogger }
|
|
63
63
|
]; };
|
|
64
64
|
|
|
65
|
-
/*
|
|
66
|
-
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
67
|
-
*
|
|
68
|
-
* Licensed under EUPL, Version 1.2 (the "License");
|
|
69
|
-
* you may not use this file except in compliance with the License.
|
|
70
|
-
* You may obtain a copy of the License at
|
|
71
|
-
*
|
|
72
|
-
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
73
|
-
*
|
|
74
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
75
|
-
* distributed under the License is distributed on an "AS IS" basis,
|
|
76
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
77
|
-
* See the License for the specific language governing permissions and
|
|
78
|
-
* limitations under the License.
|
|
79
|
-
*/
|
|
80
|
-
var ɵ0 = { title: 'Swagger', roles: [
|
|
81
|
-
var routes = [
|
|
82
|
-
{
|
|
83
|
-
path: 'swagger',
|
|
84
|
-
component: SwaggerComponent,
|
|
85
|
-
canActivate: [security.AuthGuardService],
|
|
86
|
-
data: ɵ0,
|
|
87
|
-
},
|
|
88
|
-
];
|
|
89
|
-
var SwaggerRoutingModule = /** @class */ (function () {
|
|
90
|
-
function SwaggerRoutingModule() {
|
|
91
|
-
}
|
|
92
|
-
return SwaggerRoutingModule;
|
|
93
|
-
}());
|
|
94
|
-
SwaggerRoutingModule.decorators = [
|
|
95
|
-
{ type: core.NgModule, args: [{
|
|
96
|
-
imports: [common.CommonModule, router.RouterModule.forChild(routes)],
|
|
97
|
-
exports: [router.RouterModule],
|
|
98
|
-
},] }
|
|
65
|
+
/*
|
|
66
|
+
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
67
|
+
*
|
|
68
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
69
|
+
* you may not use this file except in compliance with the License.
|
|
70
|
+
* You may obtain a copy of the License at
|
|
71
|
+
*
|
|
72
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
73
|
+
*
|
|
74
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
75
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
76
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
77
|
+
* See the License for the specific language governing permissions and
|
|
78
|
+
* limitations under the License.
|
|
79
|
+
*/
|
|
80
|
+
var ɵ0 = { title: 'Swagger', roles: [config.ROLE_USER] };
|
|
81
|
+
var routes = [
|
|
82
|
+
{
|
|
83
|
+
path: 'swagger',
|
|
84
|
+
component: SwaggerComponent,
|
|
85
|
+
canActivate: [security.AuthGuardService],
|
|
86
|
+
data: ɵ0,
|
|
87
|
+
},
|
|
88
|
+
];
|
|
89
|
+
var SwaggerRoutingModule = /** @class */ (function () {
|
|
90
|
+
function SwaggerRoutingModule() {
|
|
91
|
+
}
|
|
92
|
+
return SwaggerRoutingModule;
|
|
93
|
+
}());
|
|
94
|
+
SwaggerRoutingModule.decorators = [
|
|
95
|
+
{ type: core.NgModule, args: [{
|
|
96
|
+
imports: [common.CommonModule, router.RouterModule.forChild(routes)],
|
|
97
|
+
exports: [router.RouterModule],
|
|
98
|
+
},] }
|
|
99
99
|
];
|
|
100
100
|
|
|
101
|
-
/*
|
|
102
|
-
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
103
|
-
*
|
|
104
|
-
* Licensed under EUPL, Version 1.2 (the "License");
|
|
105
|
-
* you may not use this file except in compliance with the License.
|
|
106
|
-
* You may obtain a copy of the License at
|
|
107
|
-
*
|
|
108
|
-
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
109
|
-
*
|
|
110
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
111
|
-
* distributed under the License is distributed on an "AS IS" basis,
|
|
112
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
113
|
-
* See the License for the specific language governing permissions and
|
|
114
|
-
* limitations under the License.
|
|
115
|
-
*/
|
|
116
|
-
var SwaggerModule = /** @class */ (function () {
|
|
117
|
-
function SwaggerModule() {
|
|
118
|
-
}
|
|
119
|
-
return SwaggerModule;
|
|
120
|
-
}());
|
|
121
|
-
SwaggerModule.decorators = [
|
|
122
|
-
{ type: core.NgModule, args: [{
|
|
123
|
-
declarations: [SwaggerComponent],
|
|
124
|
-
imports: [common.CommonModule, SwaggerRoutingModule],
|
|
125
|
-
exports: [SwaggerComponent],
|
|
126
|
-
},] }
|
|
101
|
+
/*
|
|
102
|
+
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
103
|
+
*
|
|
104
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
105
|
+
* you may not use this file except in compliance with the License.
|
|
106
|
+
* You may obtain a copy of the License at
|
|
107
|
+
*
|
|
108
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
109
|
+
*
|
|
110
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
111
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
112
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
113
|
+
* See the License for the specific language governing permissions and
|
|
114
|
+
* limitations under the License.
|
|
115
|
+
*/
|
|
116
|
+
var SwaggerModule = /** @class */ (function () {
|
|
117
|
+
function SwaggerModule() {
|
|
118
|
+
}
|
|
119
|
+
return SwaggerModule;
|
|
120
|
+
}());
|
|
121
|
+
SwaggerModule.decorators = [
|
|
122
|
+
{ type: core.NgModule, args: [{
|
|
123
|
+
declarations: [SwaggerComponent],
|
|
124
|
+
imports: [common.CommonModule, SwaggerRoutingModule],
|
|
125
|
+
exports: [SwaggerComponent],
|
|
126
|
+
},] }
|
|
127
127
|
];
|
|
128
128
|
|
|
129
|
-
/*
|
|
130
|
-
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
131
|
-
*
|
|
132
|
-
* Licensed under EUPL, Version 1.2 (the "License");
|
|
133
|
-
* you may not use this file except in compliance with the License.
|
|
134
|
-
* You may obtain a copy of the License at
|
|
135
|
-
*
|
|
136
|
-
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
137
|
-
*
|
|
138
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
139
|
-
* distributed under the License is distributed on an "AS IS" basis,
|
|
140
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
141
|
-
* See the License for the specific language governing permissions and
|
|
142
|
-
* limitations under the License.
|
|
129
|
+
/*
|
|
130
|
+
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
131
|
+
*
|
|
132
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
133
|
+
* you may not use this file except in compliance with the License.
|
|
134
|
+
* You may obtain a copy of the License at
|
|
135
|
+
*
|
|
136
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
137
|
+
*
|
|
138
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
139
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
140
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
141
|
+
* See the License for the specific language governing permissions and
|
|
142
|
+
* limitations under the License.
|
|
143
143
|
*/
|
|
144
144
|
|
|
145
|
-
/**
|
|
146
|
-
* Generated bundle index. Do not edit.
|
|
145
|
+
/**
|
|
146
|
+
* Generated bundle index. Do not edit.
|
|
147
147
|
*/
|
|
148
148
|
|
|
149
149
|
exports.SwaggerComponent = SwaggerComponent;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"valtimo-swagger.umd.js","sources":["../../../../projects/valtimo/swagger/src/lib/swagger.component.ts","../../../../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\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/
|
|
1
|
+
{"version":3,"file":"valtimo-swagger.umd.js","sources":["../../../../projects/valtimo/swagger/src/lib/swagger.component.ts","../../../../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\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\nexport {SwaggerRoutingModule as ɵa} from './lib/swagger-routing.module';"],"names":["Component","ViewEncapsulation","ConfigService","ElementRef","UserProviderService","NGXLogger","ROLE_USER","AuthGuardService","NgModule","CommonModule","RouterModule"],"mappings":";;;;;;;;IAAA;;;;;;;;;;;;;;;;QA+BE,0BACU,aAA4B,EAC5B,EAAc,EACd,mBAAwC,EACxC,MAAiB;YAHjB,kBAAa,GAAb,aAAa,CAAe;YAC5B,OAAE,GAAF,EAAE,CAAY;YACd,wBAAmB,GAAnB,mBAAmB,CAAqB;YACxC,WAAM,GAAN,MAAM,CAAW;YAEzB,IAAI,CAAC,oBAAoB,GAAG,aAAa,CAAC,MAAM,CAAC,OAAO,CAAC;SAC1D;QAED,0CAAe,GAAf;YAAA,iBAcC;YAbC,IAAI,CAAC,mBAAmB,CAAC,QAAQ,EAAE,CAAC,IAAI,CAAC,UAAC,SAAiB;gBACzD,KAAI,CAAC,MAAM,CAAC,KAAK,CAA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;iBAC5B;;;ICzBD;;;;;;;;;;;;;;;;ICAA;;;;;;;;;;;;;;;;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(e,
|
|
1
|
+
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("@angular/core"),require("@angular/common"),require("@valtimo/security"),require("swagger-ui"),require("ngx-logger"),require("@valtimo/config"),require("@angular/router")):"function"==typeof define&&define.amd?define("@valtimo/swagger",["exports","@angular/core","@angular/common","@valtimo/security","swagger-ui","ngx-logger","@valtimo/config","@angular/router"],n):n(((e=e||self).valtimo=e.valtimo||{},e.valtimo.swagger={}),e.ng.core,e.ng.common,e.security,e.SwaggerUI,e.ngxLogger,e.config,e.ng.router)}(this,(function(e,n,t,i,r,o,a,s){"use strict";r=r&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r;var u=function(){function e(e,n,t,i){this.configService=e,this.el=n,this.userProviderService=t,this.logger=i,this.valtimoSwaggerConfig=e.config.swagger}return e.prototype.ngAfterViewInit=function(){var e=this;this.userProviderService.getToken().then((function(n){e.logger.debug("swagger ngAfterViewInit token: "+n),r({url:e.valtimoSwaggerConfig.endpointUri,domNode:e.el.nativeElement.querySelector(".swagger-container"),deepLinking:!0,presets:[r.presets.apis],requestInterceptor:function(e){return e.headers.Authorization="Bearer "+n,e}})}))},e}();u.decorators=[{type:n.Component,args:[{selector:"valtimo-swagger",template:'\x3c!--\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 --\x3e\n\n<div class="container-fluid">\n <div class="swagger-container"></div>\n</div>\n',encapsulation:n.ViewEncapsulation.None,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}']}]}],u.ctorParameters=function(){return[{type:a.ConfigService},{type:n.ElementRef},{type:i.UserProviderService},{type:o.NGXLogger}]};var g={title:"Swagger",roles:[a.ROLE_USER]},c=[{path:"swagger",component:u,canActivate:[i.AuthGuardService],data:g}],l=function(){};l.decorators=[{type:n.NgModule,args:[{imports:[t.CommonModule,s.RouterModule.forChild(c)],exports:[s.RouterModule]}]}];var p=function(){};p.decorators=[{type:n.NgModule,args:[{declarations:[u],imports:[t.CommonModule,l],exports:[u]}]}],e.SwaggerComponent=u,e.SwaggerModule=p,e.ɵa=l,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
2
2
|
//# sourceMappingURL=valtimo-swagger.umd.min.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../projects/valtimo/swagger/src/lib/swagger.component.ts","../../../../projects/valtimo/swagger/src/lib/swagger-routing.module.ts","../../../../projects/valtimo/swagger/src/lib/swagger.module.ts"],"names":["SwaggerComponent","configService","el","userProviderService","logger","this","valtimoSwaggerConfig","config","swagger","prototype","ngAfterViewInit","_this","getToken","then","authToken","debug","SwaggerUI","url","endpointUri","domNode","nativeElement","querySelector","deepLinking","presets","apis","requestInterceptor","request","headers","Authorization","Component","args","selector","template","encapsulation","ViewEncapsulation","None","ConfigService","ElementRef","UserProviderService","NGXLogger","title","roles","ROLE_USER","routes","path","component","canActivate","AuthGuardService","data","NgModule","imports","CommonModule","RouterModule","forChild","exports","declarations","SwaggerRoutingModule"],"mappings":"+
|
|
1
|
+
{"version":3,"sources":["../../../../projects/valtimo/swagger/src/lib/swagger.component.ts","../../../../projects/valtimo/swagger/src/lib/swagger-routing.module.ts","../../../../projects/valtimo/swagger/src/lib/swagger.module.ts"],"names":["SwaggerComponent","configService","el","userProviderService","logger","this","valtimoSwaggerConfig","config","swagger","prototype","ngAfterViewInit","_this","getToken","then","authToken","debug","SwaggerUI","url","endpointUri","domNode","nativeElement","querySelector","deepLinking","presets","apis","requestInterceptor","request","headers","Authorization","Component","args","selector","template","encapsulation","ViewEncapsulation","None","ConfigService","ElementRef","UserProviderService","NGXLogger","title","roles","ROLE_USER","routes","path","component","canActivate","AuthGuardService","data","NgModule","imports","CommonModule","RouterModule","forChild","exports","declarations","SwaggerRoutingModule"],"mappings":"itBA+BE,SAAAA,EACUC,EACAC,EACAC,EACAC,GAHAC,KAAAJ,cAAAA,EACAI,KAAAH,GAAAA,EACAG,KAAAF,oBAAAA,EACAE,KAAAD,OAAAA,EAERC,KAAKC,qBAAuBL,EAAcM,OAAOC,eAGnDR,EAAAS,UAAAC,gBAAA,WAAA,IAAAC,EAAAN,KACEA,KAAKF,oBAAoBS,WAAWC,MAAK,SAACC,GACxCH,EAAKP,OAAOW,MAAM,kCAAkCD,GACpDE,EAAU,CACRC,IAAKN,EAAKL,qBAAqBY,YAC/BC,QAASR,EAAKT,GAAGkB,cAAcC,cAAc,sBAC7CC,aAAa,EACbC,QAAS,CAACP,EAAUO,QAAQC,MAC5BC,mBAAkB,SAACC,GAEjB,OADAA,EAAQC,QAAQC,cAAgB,UAAUd,EACnCY,kCA5BhBG,EAAAA,UAASC,KAAA,CAAC,CACTC,SAAU,kBACVC,SAAA,quBAEAC,cAAeC,EAAAA,kBAAkBC,uxBAN3BC,EAAAA,qBAJ0BC,EAAAA,kBAC1BC,EAAAA,2BAEAC,EAAAA,mBCSE,CAACC,MAAO,UAAWC,MAAO,CAACC,EAAAA,YAL/BC,EAAiB,CACrB,CACEC,KAAM,UACNC,UAAW7C,EACX8C,YAAa,CAACC,EAAAA,kBACdC,KAAI,MAQR,iCAJCC,EAAAA,SAAQnB,KAAA,CAAC,CACRoB,QAAS,CAACC,EAAAA,aAAcC,EAAAA,aAAaC,SAASV,IAC9CW,QAAS,CAACF,EAAAA,wBCRZ,iCALCH,EAAAA,SAAQnB,KAAA,CAAC,CACRyB,aAAc,CAACvD,GACfkD,QAAS,CAACC,EAAAA,aAAcK,GACxBF,QAAS,CAACtD","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\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"]}
|
|
@@ -1,40 +1,40 @@
|
|
|
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/
|
|
22
|
-
const ɵ0 = { title: 'Swagger', roles: [ROLE_USER] };
|
|
23
|
-
const routes = [
|
|
24
|
-
{
|
|
25
|
-
path: 'swagger',
|
|
26
|
-
component: SwaggerComponent,
|
|
27
|
-
canActivate: [AuthGuardService],
|
|
28
|
-
data: ɵ0,
|
|
29
|
-
},
|
|
30
|
-
];
|
|
31
|
-
export class SwaggerRoutingModule {
|
|
32
|
-
}
|
|
33
|
-
SwaggerRoutingModule.decorators = [
|
|
34
|
-
{ type: NgModule, args: [{
|
|
35
|
-
imports: [CommonModule, RouterModule.forChild(routes)],
|
|
36
|
-
exports: [RouterModule],
|
|
37
|
-
},] }
|
|
38
|
-
];
|
|
39
|
-
export { ɵ0 };
|
|
40
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
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
|
+
const ɵ0 = { title: 'Swagger', roles: [ROLE_USER] };
|
|
23
|
+
const routes = [
|
|
24
|
+
{
|
|
25
|
+
path: 'swagger',
|
|
26
|
+
component: SwaggerComponent,
|
|
27
|
+
canActivate: [AuthGuardService],
|
|
28
|
+
data: ɵ0,
|
|
29
|
+
},
|
|
30
|
+
];
|
|
31
|
+
export class SwaggerRoutingModule {
|
|
32
|
+
}
|
|
33
|
+
SwaggerRoutingModule.decorators = [
|
|
34
|
+
{ type: NgModule, args: [{
|
|
35
|
+
imports: [CommonModule, RouterModule.forChild(routes)],
|
|
36
|
+
exports: [RouterModule],
|
|
37
|
+
},] }
|
|
38
|
+
];
|
|
39
|
+
export { ɵ0 };
|
|
40
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3dhZ2dlci1yb3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b21tb25Nb2R1bGV9IGZyb20gJ0Bhbmd1bGFyL2NvbW1vbic7XG5pbXBvcnQge0F1dGhHdWFyZFNlcnZpY2V9IGZyb20gJ0B2YWx0aW1vL3NlY3VyaXR5JztcbmltcG9ydCB7U3dhZ2dlckNvbXBvbmVudH0gZnJvbSAnLi9zd2FnZ2VyLmNvbXBvbmVudCc7XG5pbXBvcnQge1JPTEVfVVNFUn0gZnJvbSAnQHZhbHRpbW8vY29uZmlnJztcblxuY29uc3Qgcm91dGVzOiBSb3V0ZXMgPSBbXG4gIHtcbiAgICBwYXRoOiAnc3dhZ2dlcicsXG4gICAgY29tcG9uZW50OiBTd2FnZ2VyQ29tcG9uZW50LFxuICAgIGNhbkFjdGl2YXRlOiBbQXV0aEd1YXJkU2VydmljZV0sXG4gICAgZGF0YToge3RpdGxlOiAnU3dhZ2dlcicsIHJvbGVzOiBbUk9MRV9VU0VSXX0sXG4gIH0sXG5dO1xuXG5ATmdNb2R1bGUoe1xuICBpbXBvcnRzOiBbQ29tbW9uTW9kdWxlLCBSb3V0ZXJNb2R1bGUuZm9yQ2hpbGQocm91dGVzKV0sXG4gIGV4cG9ydHM6IFtSb3V0ZXJNb2R1bGVdLFxufSlcbmV4cG9ydCBjbGFzcyBTd2FnZ2VyUm91dGluZ01vZHVsZSB7fVxuIl19
|
|
@@ -1,59 +1,59 @@
|
|
|
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, ElementRef, ViewEncapsulation } from '@angular/core';
|
|
17
|
-
import { UserProviderService } from '@valtimo/security';
|
|
18
|
-
import SwaggerUI from 'swagger-ui';
|
|
19
|
-
import { NGXLogger } from 'ngx-logger';
|
|
20
|
-
import { ConfigService } from '@valtimo/config';
|
|
21
|
-
export class SwaggerComponent {
|
|
22
|
-
constructor(configService, el, userProviderService, logger) {
|
|
23
|
-
this.configService = configService;
|
|
24
|
-
this.el = el;
|
|
25
|
-
this.userProviderService = userProviderService;
|
|
26
|
-
this.logger = logger;
|
|
27
|
-
this.valtimoSwaggerConfig = configService.config.swagger;
|
|
28
|
-
}
|
|
29
|
-
ngAfterViewInit() {
|
|
30
|
-
this.userProviderService.getToken().then((authToken) => {
|
|
31
|
-
this.logger.debug(`swagger ngAfterViewInit token: ${authToken}`);
|
|
32
|
-
SwaggerUI({
|
|
33
|
-
url: this.valtimoSwaggerConfig.endpointUri,
|
|
34
|
-
domNode: this.el.nativeElement.querySelector('.swagger-container'),
|
|
35
|
-
deepLinking: true,
|
|
36
|
-
presets: [SwaggerUI.presets.apis],
|
|
37
|
-
requestInterceptor(request) {
|
|
38
|
-
request.headers.Authorization = `Bearer ${authToken}`;
|
|
39
|
-
return request;
|
|
40
|
-
},
|
|
41
|
-
});
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
SwaggerComponent.decorators = [
|
|
46
|
-
{ type: Component, args: [{
|
|
47
|
-
selector: 'valtimo-swagger',
|
|
48
|
-
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",
|
|
49
|
-
encapsulation: ViewEncapsulation.None,
|
|
50
|
-
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}"]
|
|
51
|
-
},] }
|
|
52
|
-
];
|
|
53
|
-
SwaggerComponent.ctorParameters = () => [
|
|
54
|
-
{ type: ConfigService },
|
|
55
|
-
{ type: ElementRef },
|
|
56
|
-
{ type: UserProviderService },
|
|
57
|
-
{ type: NGXLogger }
|
|
58
|
-
];
|
|
59
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
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, ElementRef, ViewEncapsulation } from '@angular/core';
|
|
17
|
+
import { UserProviderService } from '@valtimo/security';
|
|
18
|
+
import SwaggerUI from 'swagger-ui';
|
|
19
|
+
import { NGXLogger } from 'ngx-logger';
|
|
20
|
+
import { ConfigService } from '@valtimo/config';
|
|
21
|
+
export class SwaggerComponent {
|
|
22
|
+
constructor(configService, el, userProviderService, logger) {
|
|
23
|
+
this.configService = configService;
|
|
24
|
+
this.el = el;
|
|
25
|
+
this.userProviderService = userProviderService;
|
|
26
|
+
this.logger = logger;
|
|
27
|
+
this.valtimoSwaggerConfig = configService.config.swagger;
|
|
28
|
+
}
|
|
29
|
+
ngAfterViewInit() {
|
|
30
|
+
this.userProviderService.getToken().then((authToken) => {
|
|
31
|
+
this.logger.debug(`swagger ngAfterViewInit token: ${authToken}`);
|
|
32
|
+
SwaggerUI({
|
|
33
|
+
url: this.valtimoSwaggerConfig.endpointUri,
|
|
34
|
+
domNode: this.el.nativeElement.querySelector('.swagger-container'),
|
|
35
|
+
deepLinking: true,
|
|
36
|
+
presets: [SwaggerUI.presets.apis],
|
|
37
|
+
requestInterceptor(request) {
|
|
38
|
+
request.headers.Authorization = `Bearer ${authToken}`;
|
|
39
|
+
return request;
|
|
40
|
+
},
|
|
41
|
+
});
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
SwaggerComponent.decorators = [
|
|
46
|
+
{ type: Component, args: [{
|
|
47
|
+
selector: 'valtimo-swagger',
|
|
48
|
+
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",
|
|
49
|
+
encapsulation: ViewEncapsulation.None,
|
|
50
|
+
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}"]
|
|
51
|
+
},] }
|
|
52
|
+
];
|
|
53
|
+
SwaggerComponent.ctorParameters = () => [
|
|
54
|
+
{ type: ConfigService },
|
|
55
|
+
{ type: ElementRef },
|
|
56
|
+
{ type: UserProviderService },
|
|
57
|
+
{ type: NGXLogger }
|
|
58
|
+
];
|
|
59
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3dhZ2dlci5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiL3RtcC9qZW5raW5zLWE3MzRhYWRjL3dvcmtzcGFjZS9WYWx0aW1vXy1fQW5ndWxhcl9MaWJyYXJpZXNfbWFpbi9wcm9qZWN0cy92YWx0aW1vL3N3YWdnZXIvc3JjLyIsInNvdXJjZXMiOlsibGliL3N3YWdnZXIuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7Ozs7Ozs7OztHQWNHO0FBRUgsT0FBTyxFQUFnQixTQUFTLEVBQUUsVUFBVSxFQUFFLGlCQUFpQixFQUFDLE1BQU0sZUF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dXNlclByb3ZpZGVyU2VydmljZTogVXNlclByb3ZpZGVyU2VydmljZSxcbiAgICBwcml2YXRlIGxvZ2dlcjogTkdYTG9nZ2VyXG4gICkge1xuICAgIHRoaXMudmFsdGltb1N3YWdnZXJDb25maWcgPSBjb25maWdTZXJ2aWNlLmNvbmZpZy5zd2FnZ2VyO1xuICB9XG5cbiAgbmdBZnRlclZpZXdJbml0KCkge1xuICAgIHRoaXMudXNlclByb3ZpZGVyU2VydmljZS5nZXRUb2tlbigpLnRoZW4oKGF1dGhUb2tlbjogc3RyaW5nKSA9PiB7XG4gICAgICB0aGlzLmxvZ2dlci5kZWJ1Zyhgc3dhZ2dlciBuZ0FmdGVyVmlld0luaXQgdG9rZW46ICR7YXV0aFRva2VufWApO1xuICAgICAgU3dhZ2dlclVJKHtcbiAgICAgICAgdXJsOiB0aGlzLnZhbHRpbW9Td2FnZ2VyQ29uZmlnLmVuZHBvaW50VXJpLFxuICAgICAgICBkb21Ob2RlOiB0aGlzLmVsLm5hdGl2ZUVsZW1lbnQucXVlcnlTZWxlY3RvcignLnN3YWdnZXItY29udGFpbmVyJyksXG4gICAgICAgIGRlZXBMaW5raW5nOiB0cnVlLFxuICAgICAgICBwcmVzZXRzOiBbU3dhZ2dlclVJLnByZXNldHMuYXBpc10sXG4gICAgICAgIHJlcXVlc3RJbnRlcmNlcHRvcihyZXF1ZXN0KSB7XG4gICAgICAgICAgcmVxdWVzdC5oZWFkZXJzLkF1dGhvcml6YXRpb24gPSBgQmVhcmVyICR7YXV0aFRva2VufWA7XG4gICAgICAgICAgcmV0dXJuIHJlcXVlc3Q7XG4gICAgICAgIH0sXG4gICAgICB9KTtcbiAgICB9KTtcbiAgfVxufVxuIl19
|
|
@@ -1,29 +1,29 @@
|
|
|
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 { CommonModule } from '@angular/common';
|
|
18
|
-
import { SwaggerComponent } from './swagger.component';
|
|
19
|
-
import { SwaggerRoutingModule } from './swagger-routing.module';
|
|
20
|
-
export class SwaggerModule {
|
|
21
|
-
}
|
|
22
|
-
SwaggerModule.decorators = [
|
|
23
|
-
{ type: NgModule, args: [{
|
|
24
|
-
declarations: [SwaggerComponent],
|
|
25
|
-
imports: [CommonModule, SwaggerRoutingModule],
|
|
26
|
-
exports: [SwaggerComponent],
|
|
27
|
-
},] }
|
|
28
|
-
];
|
|
29
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
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 { CommonModule } from '@angular/common';
|
|
18
|
+
import { SwaggerComponent } from './swagger.component';
|
|
19
|
+
import { SwaggerRoutingModule } from './swagger-routing.module';
|
|
20
|
+
export class SwaggerModule {
|
|
21
|
+
}
|
|
22
|
+
SwaggerModule.decorators = [
|
|
23
|
+
{ type: NgModule, args: [{
|
|
24
|
+
declarations: [SwaggerComponent],
|
|
25
|
+
imports: [CommonModule, SwaggerRoutingModule],
|
|
26
|
+
exports: [SwaggerComponent],
|
|
27
|
+
},] }
|
|
28
|
+
];
|
|
29
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3dhZ2dlci5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiL3RtcC9qZW5raW5zLWE3MzRhYWRjL3dvcmtzcGFjZS9WYWx0aW1vXy1fQW5ndWxhcl9MaWJyYXJpZXNfbWFpbi9wcm9qZWN0cy92YWx0aW1vL3N3YWdnZXIvc3JjLyIsInNvdXJjZXMiOlsibGliL3N3YWdnZXIubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7Ozs7Ozs7OztHQWNHO0FBRUgsT0FBTyxFQUFDLFFBQVEsRUFBQyxNQUFNLGVBQWUsQ0FBQztBQUN2QyxPQUFPLEVBQUMsWUFBWSxFQUFDLE1BQU0saUJBQWlCLENBQUM7QUFDN0MsT0FBTyxFQUFDLGdCQUFnQixFQUFDLE1BQU0scUJBQXFCLENBQUM7QUFDckQsT0FBTyxFQUFDLG9CQUFvQixFQUFDLE1BQU0sMEJBQTBCLENBQUM7QUFPOUQsTUFBTSxPQUFPLGFBQWE7OztZQUx6QixRQUFRLFNBQUM7Z0JBQ1IsWUFBWSxFQUFFLENBQUMsZ0JBQWdCLENBQUM7Z0JBQ2hDLE9BQU8sRUFBRSxDQUFDLFlBQVksRUFBRSxvQkFBb0IsQ0FBQztnQkFDN0MsT0FBTyxFQUFFLENBQUMsZ0JBQWdCLEN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Y29tcG9uZW50JztcbmltcG9ydCB7U3dhZ2dlclJvdXRpbmdNb2R1bGV9IGZyb20gJy4vc3dhZ2dlci1yb3V0aW5nLm1vZHVsZSc7XG5cbkBOZ01vZHVsZSh7XG4gIGRlY2xhcmF0aW9uczogW1N3YWdnZXJDb21wb25lbnRdLFxuICBpbXBvcnRzOiBbQ29tbW9uTW9kdWxlLCBTd2FnZ2VyUm91dGluZ01vZHVsZV0sXG4gIGV4cG9ydHM6IFtTd2FnZ2VyQ29tcG9uZW50XSxcbn0pXG5leHBvcnQgY2xhc3MgU3dhZ2dlck1vZHVsZSB7fVxuIl19
|
package/esm2015/public_api.js
CHANGED
|
@@ -1,21 +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,
|
|
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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiIvdG1wL2plbmtpbnMtYTczNGFhZGMvd29ya3NwYWNlL1ZhbHRpbW9fLV9Bbmd1bGFyX0xpYnJhcmllc19tYWluL3Byb2plY3RzL3ZhbHRpbW8vc3dhZ2dlci9zcmMvIiwic291cmNlcyI6WyJwdWJsaWNfYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7Ozs7Ozs7OztHQWNHO0FBRUg7O0dBRUc7QUFFSCxjQUFjLHNCQUFzQixDQUFDO0FBQ3JDLGNBQWMseUJBQXlCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKlxuICogQ29weXJpZ2h0IDIwMTUtMjAyMCBSaXRlbnNlIEJWLCB0aGUgTmV0aGVybGFuZHMuXG4gKlxuICogTGljZW5zZWQgdW5kZXIgRVVQTCwgVmVyc2lvbiAxLjIgKHRoZSBcIkxpY2Vuc2VcIik7XG4gKiB5b3UgbWF5IG5vdCB1c2UgdGhpcyBmaWxlIGV4Y2VwdCBpbiBjb21wbGlhbmNlIHdpdGggdGhlIExpY2Vuc2UuXG4gKiBZb3UgbWF5IG9idGFpbiBhIGNvcHkgb2YgdGhlIExpY2Vuc2UgYXRcbiAqXG4gKiBodHRwczovL2pvaW51cC5lYy5ldXJvcGEuZXUvY29sbGVjdGlvbi9ldXBsL2V1cGwtdGV4dC1ldXBsLTEyXG4gKlxuICogVW5sZXNzIHJlcXVpcmVkIGJ5IGFwcGxpY2FibGUgbGF3IG9yIGFncmVlZCB0byBpbiB3cml0aW5nLCBzb2Z0d2FyZVxuICogZGlzdHJpYnV0ZWQgdW5kZXIgdGhlIExpY2Vuc2UgaXMgZGlzdHJpYnV0ZWQgb24gYW4gXCJBUyBJU1wiIGJhc2lzLFxuICogV0lUSE9VVCBXQVJSQU5USUVTIE9SIENPTkRJVElPTlMgT0YgQU5ZIEtJTkQsIGVpdGhlciBleHByZXNzIG9yIGltcGxpZWQuXG4gKiBTZWUgdGhlIExpY2Vuc2UgZm9yIHRoZSBzcGVjaWZpYyBsYW5ndWFnZSBnb3Zlcm5pbmcgcGVybWlzc2lvbnMgYW5kXG4gKiBsaW1pdGF0aW9ucyB1bmRlciB0aGUgTGljZW5zZS5cbiAqL1xuXG4vKlxuICogUHVibGljIEFQSSBTdXJmYWNlIG9mIHN3YWdnZXJcbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL2xpYi9zd2FnZ2VyLm1vZHVsZSc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9zd2FnZ2VyLmNvbXBvbmVudCc7XG4iXX0=
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated bundle index. Do not edit.
|
|
3
|
-
*/
|
|
4
|
-
export * from './public_api';
|
|
5
|
-
export { SwaggerRoutingModule as ɵa } from './lib/swagger-routing.module';
|
|
6
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
export * from './public_api';
|
|
5
|
+
export { SwaggerRoutingModule as ɵa } from './lib/swagger-routing.module';
|
|
6
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFsdGltby1zd2FnZ2VyLmpzIiwic291cmNlUm9vdCI6Ii90bXAvamVua2lucy1hNzM0YWFkYy93b3Jrc3BhY2UvVmFsdGltb18tX0FuZ3VsYXJfTGlicmFyaWVzX21haW4vcHJvamVjdHMvdmFsdGltby9zd2FnZ2VyL3NyYy8iLCJzb3VyY2VzIjpbInZhbHRpbW8tc3dhZ2dlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsY0FBYyxDQUFDO0FBRTdCLE9BQU8sRUFBQyxvQkFBb0IsSUFBSSxFQUFFLEVBQUMsTUFBTSw4QkFBOEIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWNfYXBpJztcblxuZXhwb3J0IHtTd2FnZ2VyUm91dGluZ01vZHVsZSBhcyDJtWF9IGZyb20gJy4vbGliL3N3YWdnZXItcm91dGluZy5tb2R1bGUnOyJdfQ==
|
|
@@ -3,140 +3,139 @@ import { CommonModule } from '@angular/common';
|
|
|
3
3
|
import { UserProviderService, AuthGuardService } from '@valtimo/security';
|
|
4
4
|
import SwaggerUI from 'swagger-ui';
|
|
5
5
|
import { NGXLogger } from 'ngx-logger';
|
|
6
|
-
import { ConfigService } from '@valtimo/config';
|
|
6
|
+
import { ConfigService, ROLE_USER } from '@valtimo/config';
|
|
7
7
|
import { RouterModule } from '@angular/router';
|
|
8
|
-
import { ROLE_USER } from '@valtimo/contract';
|
|
9
8
|
|
|
10
|
-
/*
|
|
11
|
-
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
12
|
-
*
|
|
13
|
-
* Licensed under EUPL, Version 1.2 (the "License");
|
|
14
|
-
* you may not use this file except in compliance with the License.
|
|
15
|
-
* You may obtain a copy of the License at
|
|
16
|
-
*
|
|
17
|
-
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
18
|
-
*
|
|
19
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
20
|
-
* distributed under the License is distributed on an "AS IS" basis,
|
|
21
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
22
|
-
* See the License for the specific language governing permissions and
|
|
23
|
-
* limitations under the License.
|
|
24
|
-
*/
|
|
25
|
-
class SwaggerComponent {
|
|
26
|
-
constructor(configService, el, userProviderService, logger) {
|
|
27
|
-
this.configService = configService;
|
|
28
|
-
this.el = el;
|
|
29
|
-
this.userProviderService = userProviderService;
|
|
30
|
-
this.logger = logger;
|
|
31
|
-
this.valtimoSwaggerConfig = configService.config.swagger;
|
|
32
|
-
}
|
|
33
|
-
ngAfterViewInit() {
|
|
34
|
-
this.userProviderService.getToken().then((authToken) => {
|
|
35
|
-
this.logger.debug(`swagger ngAfterViewInit token: ${authToken}`);
|
|
36
|
-
SwaggerUI({
|
|
37
|
-
url: this.valtimoSwaggerConfig.endpointUri,
|
|
38
|
-
domNode: this.el.nativeElement.querySelector('.swagger-container'),
|
|
39
|
-
deepLinking: true,
|
|
40
|
-
presets: [SwaggerUI.presets.apis],
|
|
41
|
-
requestInterceptor(request) {
|
|
42
|
-
request.headers.Authorization = `Bearer ${authToken}`;
|
|
43
|
-
return request;
|
|
44
|
-
},
|
|
45
|
-
});
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
SwaggerComponent.decorators = [
|
|
50
|
-
{ type: Component, args: [{
|
|
51
|
-
selector: 'valtimo-swagger',
|
|
52
|
-
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",
|
|
53
|
-
encapsulation: ViewEncapsulation.None,
|
|
54
|
-
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}"]
|
|
55
|
-
},] }
|
|
56
|
-
];
|
|
57
|
-
SwaggerComponent.ctorParameters = () => [
|
|
58
|
-
{ type: ConfigService },
|
|
59
|
-
{ type: ElementRef },
|
|
60
|
-
{ type: UserProviderService },
|
|
61
|
-
{ type: NGXLogger }
|
|
9
|
+
/*
|
|
10
|
+
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
11
|
+
*
|
|
12
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
13
|
+
* you may not use this file except in compliance with the License.
|
|
14
|
+
* You may obtain a copy of the License at
|
|
15
|
+
*
|
|
16
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
17
|
+
*
|
|
18
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
19
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
20
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
21
|
+
* See the License for the specific language governing permissions and
|
|
22
|
+
* limitations under the License.
|
|
23
|
+
*/
|
|
24
|
+
class SwaggerComponent {
|
|
25
|
+
constructor(configService, el, userProviderService, logger) {
|
|
26
|
+
this.configService = configService;
|
|
27
|
+
this.el = el;
|
|
28
|
+
this.userProviderService = userProviderService;
|
|
29
|
+
this.logger = logger;
|
|
30
|
+
this.valtimoSwaggerConfig = configService.config.swagger;
|
|
31
|
+
}
|
|
32
|
+
ngAfterViewInit() {
|
|
33
|
+
this.userProviderService.getToken().then((authToken) => {
|
|
34
|
+
this.logger.debug(`swagger ngAfterViewInit token: ${authToken}`);
|
|
35
|
+
SwaggerUI({
|
|
36
|
+
url: this.valtimoSwaggerConfig.endpointUri,
|
|
37
|
+
domNode: this.el.nativeElement.querySelector('.swagger-container'),
|
|
38
|
+
deepLinking: true,
|
|
39
|
+
presets: [SwaggerUI.presets.apis],
|
|
40
|
+
requestInterceptor(request) {
|
|
41
|
+
request.headers.Authorization = `Bearer ${authToken}`;
|
|
42
|
+
return request;
|
|
43
|
+
},
|
|
44
|
+
});
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
SwaggerComponent.decorators = [
|
|
49
|
+
{ type: Component, args: [{
|
|
50
|
+
selector: 'valtimo-swagger',
|
|
51
|
+
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",
|
|
52
|
+
encapsulation: ViewEncapsulation.None,
|
|
53
|
+
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}"]
|
|
54
|
+
},] }
|
|
55
|
+
];
|
|
56
|
+
SwaggerComponent.ctorParameters = () => [
|
|
57
|
+
{ type: ConfigService },
|
|
58
|
+
{ type: ElementRef },
|
|
59
|
+
{ type: UserProviderService },
|
|
60
|
+
{ type: NGXLogger }
|
|
62
61
|
];
|
|
63
62
|
|
|
64
|
-
/*
|
|
65
|
-
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
66
|
-
*
|
|
67
|
-
* Licensed under EUPL, Version 1.2 (the "License");
|
|
68
|
-
* you may not use this file except in compliance with the License.
|
|
69
|
-
* You may obtain a copy of the License at
|
|
70
|
-
*
|
|
71
|
-
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
72
|
-
*
|
|
73
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
74
|
-
* distributed under the License is distributed on an "AS IS" basis,
|
|
75
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
76
|
-
* See the License for the specific language governing permissions and
|
|
77
|
-
* limitations under the License.
|
|
78
|
-
*/
|
|
79
|
-
const ɵ0 = { title: 'Swagger', roles: [ROLE_USER] };
|
|
80
|
-
const routes = [
|
|
81
|
-
{
|
|
82
|
-
path: 'swagger',
|
|
83
|
-
component: SwaggerComponent,
|
|
84
|
-
canActivate: [AuthGuardService],
|
|
85
|
-
data: ɵ0,
|
|
86
|
-
},
|
|
87
|
-
];
|
|
88
|
-
class SwaggerRoutingModule {
|
|
89
|
-
}
|
|
90
|
-
SwaggerRoutingModule.decorators = [
|
|
91
|
-
{ type: NgModule, args: [{
|
|
92
|
-
imports: [CommonModule, RouterModule.forChild(routes)],
|
|
93
|
-
exports: [RouterModule],
|
|
94
|
-
},] }
|
|
63
|
+
/*
|
|
64
|
+
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
65
|
+
*
|
|
66
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
67
|
+
* you may not use this file except in compliance with the License.
|
|
68
|
+
* You may obtain a copy of the License at
|
|
69
|
+
*
|
|
70
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
71
|
+
*
|
|
72
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
73
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
74
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
75
|
+
* See the License for the specific language governing permissions and
|
|
76
|
+
* limitations under the License.
|
|
77
|
+
*/
|
|
78
|
+
const ɵ0 = { title: 'Swagger', roles: [ROLE_USER] };
|
|
79
|
+
const routes = [
|
|
80
|
+
{
|
|
81
|
+
path: 'swagger',
|
|
82
|
+
component: SwaggerComponent,
|
|
83
|
+
canActivate: [AuthGuardService],
|
|
84
|
+
data: ɵ0,
|
|
85
|
+
},
|
|
86
|
+
];
|
|
87
|
+
class SwaggerRoutingModule {
|
|
88
|
+
}
|
|
89
|
+
SwaggerRoutingModule.decorators = [
|
|
90
|
+
{ type: NgModule, args: [{
|
|
91
|
+
imports: [CommonModule, RouterModule.forChild(routes)],
|
|
92
|
+
exports: [RouterModule],
|
|
93
|
+
},] }
|
|
95
94
|
];
|
|
96
95
|
|
|
97
|
-
/*
|
|
98
|
-
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
99
|
-
*
|
|
100
|
-
* Licensed under EUPL, Version 1.2 (the "License");
|
|
101
|
-
* you may not use this file except in compliance with the License.
|
|
102
|
-
* You may obtain a copy of the License at
|
|
103
|
-
*
|
|
104
|
-
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
105
|
-
*
|
|
106
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
107
|
-
* distributed under the License is distributed on an "AS IS" basis,
|
|
108
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
109
|
-
* See the License for the specific language governing permissions and
|
|
110
|
-
* limitations under the License.
|
|
111
|
-
*/
|
|
112
|
-
class SwaggerModule {
|
|
113
|
-
}
|
|
114
|
-
SwaggerModule.decorators = [
|
|
115
|
-
{ type: NgModule, args: [{
|
|
116
|
-
declarations: [SwaggerComponent],
|
|
117
|
-
imports: [CommonModule, SwaggerRoutingModule],
|
|
118
|
-
exports: [SwaggerComponent],
|
|
119
|
-
},] }
|
|
96
|
+
/*
|
|
97
|
+
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
98
|
+
*
|
|
99
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
100
|
+
* you may not use this file except in compliance with the License.
|
|
101
|
+
* You may obtain a copy of the License at
|
|
102
|
+
*
|
|
103
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
104
|
+
*
|
|
105
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
106
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
107
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
108
|
+
* See the License for the specific language governing permissions and
|
|
109
|
+
* limitations under the License.
|
|
110
|
+
*/
|
|
111
|
+
class SwaggerModule {
|
|
112
|
+
}
|
|
113
|
+
SwaggerModule.decorators = [
|
|
114
|
+
{ type: NgModule, args: [{
|
|
115
|
+
declarations: [SwaggerComponent],
|
|
116
|
+
imports: [CommonModule, SwaggerRoutingModule],
|
|
117
|
+
exports: [SwaggerComponent],
|
|
118
|
+
},] }
|
|
120
119
|
];
|
|
121
120
|
|
|
122
|
-
/*
|
|
123
|
-
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
124
|
-
*
|
|
125
|
-
* Licensed under EUPL, Version 1.2 (the "License");
|
|
126
|
-
* you may not use this file except in compliance with the License.
|
|
127
|
-
* You may obtain a copy of the License at
|
|
128
|
-
*
|
|
129
|
-
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
130
|
-
*
|
|
131
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
132
|
-
* distributed under the License is distributed on an "AS IS" basis,
|
|
133
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
134
|
-
* See the License for the specific language governing permissions and
|
|
135
|
-
* limitations under the License.
|
|
121
|
+
/*
|
|
122
|
+
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
123
|
+
*
|
|
124
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
125
|
+
* you may not use this file except in compliance with the License.
|
|
126
|
+
* You may obtain a copy of the License at
|
|
127
|
+
*
|
|
128
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
129
|
+
*
|
|
130
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
131
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
132
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
133
|
+
* See the License for the specific language governing permissions and
|
|
134
|
+
* limitations under the License.
|
|
136
135
|
*/
|
|
137
136
|
|
|
138
|
-
/**
|
|
139
|
-
* Generated bundle index. Do not edit.
|
|
137
|
+
/**
|
|
138
|
+
* Generated bundle index. Do not edit.
|
|
140
139
|
*/
|
|
141
140
|
|
|
142
141
|
export { SwaggerComponent, SwaggerModule, SwaggerRoutingModule as ɵa };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"valtimo-swagger.js","sources":["../../../../projects/valtimo/swagger/src/lib/swagger.component.ts","../../../../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\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/
|
|
1
|
+
{"version":3,"file":"valtimo-swagger.js","sources":["../../../../projects/valtimo/swagger/src/lib/swagger.component.ts","../../../../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\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\nexport {SwaggerRoutingModule as ɵa} from './lib/swagger-routing.module';"],"names":[],"mappings":";;;;;;;;AAAA;;;;;;;;;;;;;;;MA4Ba,gBAAgB;IAG3B,YACU,aAA4B,EAC5B,EAAc,EACd,mBAAwC,EACxC,MAAiB;QAHjB,kBAAa,GAAb,aAAa,CAAe;QAC5B,OAAE,GAAF,EAAE,CAAY;QACd,wBAAmB,GAAnB,mBAAmB,CAAqB;QACxC,WAAM,GAAN,MAAM,CAAW;QAEzB,IAAI,CAAC,oBAAoB,GAAG,aAAa,CAAC,MAAM,CAAC,OAAO,CAAC;KAC1D;IAED,eAAe;QACb,IAAI,CAAC,mBAAmB,CAAC,QAAQ,EAAE,CAAC,IAAI,CAAC,CAAC,SAAiB;YACzD,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,kCAAkC,SAAS,EAAE,CAAC,CAAC;YACjE,SAAS,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@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare class SwaggerRoutingModule {
|
|
2
|
-
}
|
|
1
|
+
export declare class SwaggerRoutingModule {
|
|
2
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { AfterViewInit, ElementRef } from '@angular/core';
|
|
2
|
-
import { UserProviderService } from '@valtimo/security';
|
|
3
|
-
import { NGXLogger } from 'ngx-logger';
|
|
4
|
-
import { ConfigService } from '@valtimo/config';
|
|
5
|
-
export declare class SwaggerComponent implements AfterViewInit {
|
|
6
|
-
private configService;
|
|
7
|
-
private el;
|
|
8
|
-
private userProviderService;
|
|
9
|
-
private logger;
|
|
10
|
-
private valtimoSwaggerConfig;
|
|
11
|
-
constructor(configService: ConfigService, el: ElementRef, userProviderService: UserProviderService, logger: NGXLogger);
|
|
12
|
-
ngAfterViewInit(): void;
|
|
13
|
-
}
|
|
1
|
+
import { AfterViewInit, ElementRef } from '@angular/core';
|
|
2
|
+
import { UserProviderService } from '@valtimo/security';
|
|
3
|
+
import { NGXLogger } from 'ngx-logger';
|
|
4
|
+
import { ConfigService } from '@valtimo/config';
|
|
5
|
+
export declare class SwaggerComponent implements AfterViewInit {
|
|
6
|
+
private configService;
|
|
7
|
+
private el;
|
|
8
|
+
private userProviderService;
|
|
9
|
+
private logger;
|
|
10
|
+
private valtimoSwaggerConfig;
|
|
11
|
+
constructor(configService: ConfigService, el: ElementRef, userProviderService: UserProviderService, logger: NGXLogger);
|
|
12
|
+
ngAfterViewInit(): void;
|
|
13
|
+
}
|
package/lib/swagger.module.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare class SwaggerModule {
|
|
2
|
-
}
|
|
1
|
+
export declare class SwaggerModule {
|
|
2
|
+
}
|
package/package.json
CHANGED
package/public_api.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './lib/swagger.module';
|
|
2
|
-
export * from './lib/swagger.component';
|
|
1
|
+
export * from './lib/swagger.module';
|
|
2
|
+
export * from './lib/swagger.component';
|
package/valtimo-swagger.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated bundle index. Do not edit.
|
|
3
|
-
*/
|
|
4
|
-
export * from './public_api';
|
|
5
|
-
export { SwaggerRoutingModule as ɵa } from './lib/swagger-routing.module';
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
export * from './public_api';
|
|
5
|
+
export { SwaggerRoutingModule as ɵa } from './lib/swagger-routing.module';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"__symbolic":"module","version":4,"metadata":{"SwaggerModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":21,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"SwaggerComponent"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":23,"character":12},{"__symbolic":"reference","name":"ɵa"}],"exports":[{"__symbolic":"reference","name":"SwaggerComponent"}]}]}],"members":{}},"SwaggerComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":22,"character":1},"arguments":[{"selector":"valtimo-swagger","encapsulation":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewEncapsulation","line":26,"character":17},"member":"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}"]}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@valtimo/config","name":"ConfigService","line":32,"character":27},{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":33,"character":16},{"__symbolic":"reference","module":"@valtimo/security","name":"UserProviderService","line":34,"character":33},{"__symbolic":"reference","module":"ngx-logger","name":"NGXLogger","line":35,"character":20}]}],"ngAfterViewInit":[{"__symbolic":"method"}]}},"ɵa":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":32,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":33,"character":12},{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/router","name":"RouterModule","line":33,"character":26},"member":"forChild"},"arguments":[[{"path":"swagger","component":{"__symbolic":"reference","name":"SwaggerComponent"},"canActivate":[{"__symbolic":"reference","module":"@valtimo/security","name":"AuthGuardService","line":27,"character":18}],"data":{"title":"Swagger","roles":[{"__symbolic":"reference","module":"@valtimo/
|
|
1
|
+
{"__symbolic":"module","version":4,"metadata":{"SwaggerModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":21,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"SwaggerComponent"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":23,"character":12},{"__symbolic":"reference","name":"ɵa"}],"exports":[{"__symbolic":"reference","name":"SwaggerComponent"}]}]}],"members":{}},"SwaggerComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":22,"character":1},"arguments":[{"selector":"valtimo-swagger","encapsulation":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewEncapsulation","line":26,"character":17},"member":"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}"]}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@valtimo/config","name":"ConfigService","line":32,"character":27},{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":33,"character":16},{"__symbolic":"reference","module":"@valtimo/security","name":"UserProviderService","line":34,"character":33},{"__symbolic":"reference","module":"ngx-logger","name":"NGXLogger","line":35,"character":20}]}],"ngAfterViewInit":[{"__symbolic":"method"}]}},"ɵa":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":32,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":33,"character":12},{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/router","name":"RouterModule","line":33,"character":26},"member":"forChild"},"arguments":[[{"path":"swagger","component":{"__symbolic":"reference","name":"SwaggerComponent"},"canActivate":[{"__symbolic":"reference","module":"@valtimo/security","name":"AuthGuardService","line":27,"character":18}],"data":{"title":"Swagger","roles":[{"__symbolic":"reference","module":"@valtimo/config","name":"ROLE_USER","line":28,"character":37}]}}]]}],"exports":[{"__symbolic":"reference","module":"@angular/router","name":"RouterModule","line":34,"character":12}]}]}],"members":{}}},"origins":{"SwaggerModule":"./lib/swagger.module","SwaggerComponent":"./lib/swagger.component","ɵa":"./lib/swagger-routing.module"},"importAs":"@valtimo/swagger"}
|