@valtimo/swagger 4.23.0 → 5.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,21 +1,33 @@
1
1
  {
2
2
  "name": "@valtimo/swagger",
3
3
  "license": "EUPL-1.2",
4
- "version": "4.23.0",
4
+ "version": "5.2.0",
5
5
  "peerDependencies": {
6
- "@angular/common": "^10.0.11",
7
- "@angular/core": "^10.0.11"
6
+ "@angular/common": "^13.2.3",
7
+ "@angular/core": "^13.2.3"
8
8
  },
9
9
  "dependencies": {
10
10
  "swagger-ui": "^3.25.0",
11
11
  "tslib": "^2.0.0"
12
12
  },
13
- "main": "bundles/valtimo-swagger.umd.js",
14
- "module": "fesm2015/valtimo-swagger.js",
15
- "es2015": "fesm2015/valtimo-swagger.js",
16
- "esm2015": "esm2015/valtimo-swagger.js",
17
- "fesm2015": "fesm2015/valtimo-swagger.js",
13
+ "module": "fesm2015/valtimo-swagger.mjs",
14
+ "es2020": "fesm2020/valtimo-swagger.mjs",
15
+ "esm2020": "esm2020/valtimo-swagger.mjs",
16
+ "fesm2020": "fesm2020/valtimo-swagger.mjs",
17
+ "fesm2015": "fesm2015/valtimo-swagger.mjs",
18
18
  "typings": "valtimo-swagger.d.ts",
19
- "metadata": "valtimo-swagger.metadata.json",
19
+ "exports": {
20
+ "./package.json": {
21
+ "default": "./package.json"
22
+ },
23
+ ".": {
24
+ "types": "./valtimo-swagger.d.ts",
25
+ "esm2020": "./esm2020/valtimo-swagger.mjs",
26
+ "es2020": "./fesm2020/valtimo-swagger.mjs",
27
+ "es2015": "./fesm2015/valtimo-swagger.mjs",
28
+ "node": "./fesm2015/valtimo-swagger.mjs",
29
+ "default": "./fesm2020/valtimo-swagger.mjs"
30
+ }
31
+ },
20
32
  "sideEffects": false
21
- }
33
+ }
package/public_api.d.ts CHANGED
@@ -1,2 +1,3 @@
1
1
  export * from './lib/swagger.module';
2
2
  export * from './lib/swagger.component';
3
+ //# sourceMappingURL=public_api.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"public_api.d.ts","sourceRoot":"","sources":["../../../projects/valtimo/swagger/src/public_api.ts"],"names":[],"mappings":"AAoBA,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC"}
@@ -1,5 +1,6 @@
1
1
  /**
2
2
  * Generated bundle index. Do not edit.
3
3
  */
4
+ /// <amd-module name="@valtimo/swagger" />
4
5
  export * from './public_api';
5
- export { SwaggerRoutingModule as ɵa } from './lib/swagger-routing.module';
6
+ //# sourceMappingURL=valtimo-swagger.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"valtimo-swagger.d.ts","sourceRoot":"","sources":["../../../projects/valtimo/swagger/src/valtimo-swagger.ts"],"names":[],"mappings":"AAAA;;GAEG;;AAEH,cAAc,cAAc,CAAC"}
@@ -1,156 +0,0 @@
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'], 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
-
7
- SwaggerUI = SwaggerUI && Object.prototype.hasOwnProperty.call(SwaggerUI, 'default') ? SwaggerUI['default'] : SwaggerUI;
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 }
63
- ]; };
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: [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
- ];
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
- },] }
127
- ];
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.
143
- */
144
-
145
- /**
146
- * Generated bundle index. Do not edit.
147
- */
148
-
149
- exports.SwaggerComponent = SwaggerComponent;
150
- exports.SwaggerModule = SwaggerModule;
151
- exports.ɵa = SwaggerRoutingModule;
152
-
153
- Object.defineProperty(exports, '__esModule', { value: true });
154
-
155
- })));
156
- //# sourceMappingURL=valtimo-swagger.umd.js.map
@@ -1 +0,0 @@
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,CAAC,oCAAkC,SAAW,CAAC,CAAC;gBACjE,SAAS,CAAC;oBACR,GAAG,EAAE,KAAI,CAAC,oBAAoB,CAAC,WAAW;oBAC1C,OAAO,EAAE,KAAI,CAAC,EAAE,CAAC,aAAa,CAAC,aAAa,CAAC,oBAAoB,CAAC;oBAClE,WAAW,EAAE,IAAI;oBACjB,OAAO,EAAE,CAAC,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC;oBACjC,kBAAkB,YAAC,OAAO;wBACxB,OAAO,CAAC,OAAO,CAAC,aAAa,GAAG,YAAU,SAAW,CAAC;wBACtD,OAAO,OAAO,CAAC;qBAChB;iBACF,CAAC,CAAC;aACJ,CAAC,CAAC;SACJ;;;;gBAhCFA,cAAS,SAAC;oBACT,QAAQ,EAAE,iBAAiB;oBAC3B,gvBAAuC;oBAEvC,aAAa,EAAEC,sBAAiB,CAAC,IAAI;;iBACtC;;;gBAPOC,oBAAa;gBAJaC,eAAU;gBACpCC,4BAAmB;gBAEnBC,mBAAS;;;ICnBjB;;;;;;;;;;;;;;;aA4BU,EAAC,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,CAACC,gBAAS,CAAC,EAAC;IALhD,IAAM,MAAM,GAAW;QACrB;YACE,IAAI,EAAE,SAAS;YACf,SAAS,EAAE,gBAAgB;YAC3B,WAAW,EAAE,CAACC,yBAAgB,CAAC;YAC/B,IAAI,IAAwC;SAC7C;KACF,CAAC;;QAMF;;;;;gBAJCC,aAAQ,SAAC;oBACR,OAAO,EAAE,CAACC,mBAAY,EAAEC,mBAAY,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;oBACtD,OAAO,EAAE,CAACA,mBAAY,CAAC;iBACxB;;;ICnCD;;;;;;;;;;;;;;;;QA0BA;;;;;gBALCF,aAAQ,SAAC;oBACR,YAAY,EAAE,CAAC,gBAAgB,CAAC;oBAChC,OAAO,EAAE,CAACC,mBAAY,EAAE,oBAAoB,CAAC;oBAC7C,OAAO,EAAE,CAAC,gBAAgB,CAAC;iBAC5B;;;ICzBD;;;;;;;;;;;;;;;;ICAA;;;;;;;;;;;;;;;;"}
@@ -1,2 +0,0 @@
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
- //# sourceMappingURL=valtimo-swagger.umd.min.js.map
@@ -1 +0,0 @@
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 +0,0 @@
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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3dhZ2dlci1yb3V0aW5nLm1vZHVsZS5qcyIsInNv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Bhbmd1bGFyL2NvbW1vbic7XG5pbXBvcnQge0F1dGhHdWFyZFNlcnZpY2V9IGZyb20gJ0B2YWx0aW1vL3NlY3VyaXR5JztcbmltcG9ydCB7U3dhZ2dlckNvbXBvbmVudH0gZnJvbSAnLi9zd2FnZ2VyLmNvbXBvbmVudCc7XG5pbXBvcnQge1JPTEVfVVNFUn0gZnJvbSAnQHZhbHRpbW8vY29uZmlnJztcblxuY29uc3Qgcm91dGVzOiBSb3V0ZXMgPSBbXG4gIHtcbiAgICBwYXRoOiAnc3dhZ2dlcicsXG4gICAgY29tcG9uZW50OiBTd2FnZ2VyQ29tcG9uZW50LFxuICAgIGNhbkFjdGl2YXRlOiBbQXV0aEd1YXJkU2VydmljZV0sXG4gICAgZGF0YToge3RpdGxlOiAnU3dhZ2dlcicsIHJvbGVzOiBbUk9MRV9VU0VSXX0sXG4gIH0sXG5dO1xuXG5ATmdNb2R1bGUoe1xuICBpbXBvcnRzOiBbQ29tbW9uTW9kdWxlLCBSb3V0ZXJNb2R1bGUuZm9yQ2hpbGQocm91dGVzKV0sXG4gIGV4cG9ydHM6IFtSb3V0ZXJNb2R1bGVdLFxufSlcbmV4cG9ydCBjbGFzcyBTd2FnZ2VyUm91dGluZ01vZHVsZSB7fVxuIl19
@@ -1,59 +0,0 @@
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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3dhZ2dlci5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiL3RtcC9qZW5raW5zLTBlODRmNjBmL3dvcmtzcGFjZS9yb250ZW5kX2xpYnJhcmllc18tX3JlbGVhc2VfbWFpbi9wcm9qZWN0cy92YWx0aW1vL3N3YWdnZXIvc3JjLyIsInNvdXJjZXMiOlsibGliL3N3YWdnZXIuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7Ozs7Ozs7OztHQWNHO0FBRUgsT0FBTyxFQUFnQixTQUFTLEVBQUUsVUFBVSxFQUFFLGlCQUFpQixFQUFDLE1BQU0sZUFBZSxDQUFDO0FBQ3RGLE9BQU8sRUFBQyxtQkFBbUIsRUFBQyxNQUFNLG1CQUFtQixDQUFDO0FBQ3RELE9BQU8sU0FBUyxNQUFNLFlBQVksQ0FBQztBQUNuQyxPQUFPLEVBQUMsU0FBUyxFQUFDLE1BQU0sWUFBWSxDQUFDO0FBQ3JDLE9BQU8sRUFBQyxhQUFhLEVBQUMsTUFBTSxpQkFBaUIsQ0FBQztBQVE5QyxNQUFNLE9BQU8sZ0JBQWdCO0lBRzNCLFlBQ1UsYUFBNEIsRUFDNUIsRUFBYyxFQUNkLG1CQUF3QyxFQUN4QyxNQUFpQjtRQUhqQixrQkFBYSxHQUFiLGFBQWEsQ0FBZTtRQUM1QixPQUFFLEdBQUYsRUFBRSxDQUFZO1FBQ2Qsd0JBQW1CLEdBQW5CLG1CQ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dXJsOiB0aGlzLnZhbHRpbW9Td2FnZ2VyQ29uZmlnLmVuZHBvaW50VXJpLFxuICAgICAgICBkb21Ob2RlOiB0aGlzLmVsLm5hdGl2ZUVsZW1lbnQucXVlcnlTZWxlY3RvcignLnN3YWdnZXItY29udGFpbmVyJyksXG4gICAgICAgIGRlZXBMaW5raW5nOiB0cnVlLFxuICAgICAgICBwcmVzZXRzOiBbU3dhZ2dlclVJLnByZXNldHMuYXBpc10sXG4gICAgICAgIHJlcXVlc3RJbnRlcmNlcHRvcihyZXF1ZXN0KSB7XG4gICAgICAgICAgcmVxdWVzdC5oZWFkZXJzLkF1dGhvcml6YXRpb24gPSBgQmVhcmVyICR7YXV0aFRva2VufWA7XG4gICAgICAgICAgcmV0dXJuIHJlcXVlc3Q7XG4gICAgICAgIH0sXG4gICAgICB9KTtcbiAgICB9KTtcbiAgfVxufVxuIl19
@@ -1,29 +0,0 @@
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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3d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
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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiIvdG1wL2plbmtpbnMtMGU4NGY2MGYvd29ya3NwYWNlL3JvbnRlbmRfbGlicmFyaWVzXy1fcmVsZWFzZV9tYWluL3Byb2plY3RzL3ZhbHRpbW8vc3dhZ2dlci9zcmMvIiwic291cmNlcyI6WyJwdWJsaWNfYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7Ozs7Ozs7OztHQWNHO0FBRUg7O0dBRUc7QUFFSCxjQUFjLHNCQUFzQixDQUFDO0FBQ3JDLGNBQWMseUJBQXlCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKlxuICogQ29weXJpZ2h0IDIwMTUtMjAyMCBSaXRlbnNlIEJWLCB0aGUgTmV0aGVybGFuZHMuXG4gKlxuICogTGljZW5zZWQgdW5kZXIgRVVQTCwgVmVyc2lvbiAxLjIgKHRoZSBcIkxpY2Vuc2VcIik7XG4gKiB5b3UgbWF5IG5vdCB1c2UgdGhpcyBmaWxlIGV4Y2VwdCBpbiBjb21wbGlhbmNlIHdpdGggdGhlIExpY2Vuc2UuXG4gKiBZb3UgbWF5IG9idGFpbiBhIGNvcHkgb2YgdGhlIExpY2Vuc2UgYXRcbiAqXG4gKiBodHRwczovL2pvaW51cC5lYy5ldXJvcGEuZXUvY29sbGVjdGlvbi9ldXBsL2V1cGwtdGV4dC1ldXBsLTEyXG4gKlxuICogVW5sZXNzIHJlcXVpcmVkIGJ5IGFwcGxpY2FibGUgbGF3IG9yIGFncmVlZCB0byBpbiB3cml0aW5nLCBzb2Z0d2FyZVxuICogZGlzdHJpYnV0ZWQgdW5kZXIgdGhlIExpY2Vuc2UgaXMgZGlzdHJpYnV0ZWQgb24gYW4gXCJBUyBJU1wiIGJhc2lzLFxuICogV0lUSE9VVCBXQVJSQU5USUVTIE9SIENPTkRJVElPTlMgT0YgQU5ZIEtJTkQsIGVpdGhlciBleHByZXNzIG9yIGltcGxpZWQuXG4gKiBTZWUgdGhlIExpY2Vuc2UgZm9yIHRoZSBzcGVjaWZpYyBsYW5ndWFnZSBnb3Zlcm5pbmcgcGVybWlzc2lvbnMgYW5kXG4gKiBsaW1pdGF0aW9ucyB1bmRlciB0aGUgTGljZW5zZS5cbiAqL1xuXG4vKlxuICogUHVibGljIEFQSSBTdXJmYWNlIG9mIHN3YWdnZXJcbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL2xpYi9zd2FnZ2VyLm1vZHVsZSc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9zd2FnZ2VyLmNvbXBvbmVudCc7XG4iXX0=
@@ -1,6 +0,0 @@
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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFsdGltby1zd2FnZ2VyLmpzIiwic291cmNlUm9vdCI6Ii90bXAvamVua2lucy0wZTg0ZjYwZi93b3Jrc3BhY2Uvcm9udGVuZF9saWJyYXJpZXNfLV9yZWxlYXNlX21haW4vcHJvamVjdHMvdmFsdGltby9zd2FnZ2VyL3NyYy8iLCJzb3VyY2VzIjpbInZhbHRpbW8tc3dhZ2dlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsY0FBYyxDQUFDO0FBRTdCLE9BQU8sRUFBQyxvQkFBb0IsSUFBSSxFQUFFLEVBQUMsTUFBTSw4QkFBOEIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWNfYXBpJztcblxuZXhwb3J0IHtTd2FnZ2VyUm91dGluZ01vZHVsZSBhcyDJtWF9IGZyb20gJy4vbGliL3N3YWdnZXItcm91dGluZy5tb2R1bGUnOyJdfQ==
@@ -1,142 +0,0 @@
1
- import { Component, ViewEncapsulation, ElementRef, NgModule } from '@angular/core';
2
- import { CommonModule } from '@angular/common';
3
- import { UserProviderService, AuthGuardService } from '@valtimo/security';
4
- import SwaggerUI from 'swagger-ui';
5
- import { NGXLogger } from 'ngx-logger';
6
- import { ConfigService, ROLE_USER } from '@valtimo/config';
7
- import { RouterModule } from '@angular/router';
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
- 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 }
61
- ];
62
-
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
- },] }
94
- ];
95
-
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
- },] }
119
- ];
120
-
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.
135
- */
136
-
137
- /**
138
- * Generated bundle index. Do not edit.
139
- */
140
-
141
- export { SwaggerComponent, SwaggerModule, SwaggerRoutingModule as ɵa };
142
- //# sourceMappingURL=valtimo-swagger.js.map
@@ -1 +0,0 @@
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,C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