@valtimo/security 4.15.2-next-main.14 → 4.15.3-next-main.15

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.
@@ -9,286 +9,286 @@ import { ToastrService } from 'ngx-toastr';
9
9
  import { HttpHeaders, HTTP_INTERCEPTORS, HttpClient } from '@angular/common/http';
10
10
  import { __awaiter } from 'tslib';
11
11
 
12
- /*
13
- * Copyright 2015-2020 Ritense BV, the Netherlands.
14
- *
15
- * Licensed under EUPL, Version 1.2 (the "License");
16
- * you may not use this file except in compliance with the License.
17
- * You may obtain a copy of the License at
18
- *
19
- * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
20
- *
21
- * Unless required by applicable law or agreed to in writing, software
22
- * distributed under the License is distributed on an "AS IS" basis,
23
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
24
- * See the License for the specific language governing permissions and
25
- * limitations under the License.
26
- */
27
- class AuthGuardService {
28
- constructor(configService, injector, logger) {
29
- this.injector = injector;
30
- this.logger = logger;
31
- this.authGuardServiceProvider = injector.get(configService.config.authentication.authProviders.guardServiceProvider);
32
- this.logger.debug('Loading AuthGuardServiceProvider service', this.authGuardServiceProvider);
33
- }
34
- canActivate(route, state) {
35
- this.logger.debug('Delegating AuthGuard canActivate');
36
- return this.authGuardServiceProvider.canActivate(route, state);
37
- }
38
- }
39
- AuthGuardService.ɵprov = ɵɵdefineInjectable({ factory: function AuthGuardService_Factory() { return new AuthGuardService(ɵɵinject(ConfigService), ɵɵinject(INJECTOR), ɵɵinject(NGXLogger)); }, token: AuthGuardService, providedIn: "root" });
40
- AuthGuardService.decorators = [
41
- { type: Injectable, args: [{
42
- providedIn: 'root'
43
- },] }
44
- ];
45
- AuthGuardService.ctorParameters = () => [
46
- { type: ConfigService },
47
- { type: Injector },
48
- { type: NGXLogger }
12
+ /*
13
+ * Copyright 2015-2020 Ritense BV, the Netherlands.
14
+ *
15
+ * Licensed under EUPL, Version 1.2 (the "License");
16
+ * you may not use this file except in compliance with the License.
17
+ * You may obtain a copy of the License at
18
+ *
19
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
20
+ *
21
+ * Unless required by applicable law or agreed to in writing, software
22
+ * distributed under the License is distributed on an "AS IS" basis,
23
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
24
+ * See the License for the specific language governing permissions and
25
+ * limitations under the License.
26
+ */
27
+ class AuthGuardService {
28
+ constructor(configService, injector, logger) {
29
+ this.injector = injector;
30
+ this.logger = logger;
31
+ this.authGuardServiceProvider = injector.get(configService.config.authentication.authProviders.guardServiceProvider);
32
+ this.logger.debug('Loading AuthGuardServiceProvider service', this.authGuardServiceProvider);
33
+ }
34
+ canActivate(route, state) {
35
+ this.logger.debug('Delegating AuthGuard canActivate');
36
+ return this.authGuardServiceProvider.canActivate(route, state);
37
+ }
38
+ }
39
+ AuthGuardService.ɵprov = ɵɵdefineInjectable({ factory: function AuthGuardService_Factory() { return new AuthGuardService(ɵɵinject(ConfigService), ɵɵinject(INJECTOR), ɵɵinject(NGXLogger)); }, token: AuthGuardService, providedIn: "root" });
40
+ AuthGuardService.decorators = [
41
+ { type: Injectable, args: [{
42
+ providedIn: 'root'
43
+ },] }
44
+ ];
45
+ AuthGuardService.ctorParameters = () => [
46
+ { type: ConfigService },
47
+ { type: Injector },
48
+ { type: NGXLogger }
49
49
  ];
50
50
 
51
- /*
52
- * Copyright 2015-2020 Ritense BV, the Netherlands.
53
- *
54
- * Licensed under EUPL, Version 1.2 (the "License");
55
- * you may not use this file except in compliance with the License.
56
- * You may obtain a copy of the License at
57
- *
58
- * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
59
- *
60
- * Unless required by applicable law or agreed to in writing, software
61
- * distributed under the License is distributed on an "AS IS" basis,
62
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
63
- * See the License for the specific language governing permissions and
64
- * limitations under the License.
65
- */
66
- class ErrorComponent {
67
- constructor(activatedRoute) {
68
- this.activatedRoute = activatedRoute;
69
- }
70
- ngOnInit() {
71
- if (this.activatedRoute.snapshot.data) {
72
- this.err = {
73
- title: this.activatedRoute.snapshot.data.title,
74
- error: this.activatedRoute.snapshot.data.error
75
- };
76
- }
77
- }
78
- }
79
- ErrorComponent.decorators = [
80
- { type: Component, args: [{
81
- selector: 'valtimo-error',
82
- 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=\"main-content\">\n <div class=\"container-fluid\">\n <div class=\"row\">\n <div class=\"col-12\">\n <h1>{{ err.error }}</h1>\n <p>{{ err.title }}</p>\n </div>\n </div>\n </div>\n</div>\n",
83
- styles: [""]
84
- },] }
85
- ];
86
- ErrorComponent.ctorParameters = () => [
87
- { type: ActivatedRoute }
51
+ /*
52
+ * Copyright 2015-2020 Ritense BV, the Netherlands.
53
+ *
54
+ * Licensed under EUPL, Version 1.2 (the "License");
55
+ * you may not use this file except in compliance with the License.
56
+ * You may obtain a copy of the License at
57
+ *
58
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
59
+ *
60
+ * Unless required by applicable law or agreed to in writing, software
61
+ * distributed under the License is distributed on an "AS IS" basis,
62
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
63
+ * See the License for the specific language governing permissions and
64
+ * limitations under the License.
65
+ */
66
+ class ErrorComponent {
67
+ constructor(activatedRoute) {
68
+ this.activatedRoute = activatedRoute;
69
+ }
70
+ ngOnInit() {
71
+ if (this.activatedRoute.snapshot.data) {
72
+ this.err = {
73
+ title: this.activatedRoute.snapshot.data.title,
74
+ error: this.activatedRoute.snapshot.data.error
75
+ };
76
+ }
77
+ }
78
+ }
79
+ ErrorComponent.decorators = [
80
+ { type: Component, args: [{
81
+ selector: 'valtimo-error',
82
+ 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=\"main-content\">\n <div class=\"container-fluid\">\n <div class=\"row\">\n <div class=\"col-12\">\n <h1>{{ err.error }}</h1>\n <p>{{ err.title }}</p>\n </div>\n </div>\n </div>\n</div>\n",
83
+ styles: [""]
84
+ },] }
85
+ ];
86
+ ErrorComponent.ctorParameters = () => [
87
+ { type: ActivatedRoute }
88
88
  ];
89
89
 
90
- /*
91
- * Copyright 2015-2020 Ritense BV, the Netherlands.
92
- *
93
- * Licensed under EUPL, Version 1.2 (the "License");
94
- * you may not use this file except in compliance with the License.
95
- * You may obtain a copy of the License at
96
- *
97
- * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
98
- *
99
- * Unless required by applicable law or agreed to in writing, software
100
- * distributed under the License is distributed on an "AS IS" basis,
101
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
102
- * See the License for the specific language governing permissions and
103
- * limitations under the License.
104
- */
105
- const InterceptorSkip = 'X-Skip-Interceptor';
90
+ /*
91
+ * Copyright 2015-2020 Ritense BV, the Netherlands.
92
+ *
93
+ * Licensed under EUPL, Version 1.2 (the "License");
94
+ * you may not use this file except in compliance with the License.
95
+ * You may obtain a copy of the License at
96
+ *
97
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
98
+ *
99
+ * Unless required by applicable law or agreed to in writing, software
100
+ * distributed under the License is distributed on an "AS IS" basis,
101
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
102
+ * See the License for the specific language governing permissions and
103
+ * limitations under the License.
104
+ */
105
+ const InterceptorSkip = 'X-Skip-Interceptor';
106
106
  const InterceptorSkipHeader = new HttpHeaders().set(InterceptorSkip, '');
107
107
 
108
- class HttpErrorInterceptor {
109
- constructor(toastr, logger) {
110
- this.toastr = toastr;
111
- this.logger = logger;
112
- }
113
- intercept(request, next) {
114
- if (request.headers && request.headers.has(InterceptorSkip)) {
115
- const headers = request.headers.delete(InterceptorSkip);
116
- return next.handle(request.clone({ headers }));
117
- }
118
- else {
119
- return next.handle(request)
120
- .pipe(retry(1), catchError((error) => {
121
- let errorMessage = '';
122
- if (error.error instanceof ErrorEvent) {
123
- // client-side error
124
- errorMessage = `Error: ${error.error.message}`;
125
- }
126
- else {
127
- // server-side error
128
- if (error.error.errors) {
129
- errorMessage = error.error.errors;
130
- }
131
- else if (error.error.message) {
132
- errorMessage = error.error.message;
133
- }
134
- else {
135
- errorMessage = `Error Code: ${error.status}\nMessage: ${error.message}`;
136
- }
137
- }
138
- this.toastr.warning(`An unexpected error occurred...${errorMessage}`);
139
- return throwError(errorMessage);
140
- }));
141
- }
142
- }
143
- }
144
- HttpErrorInterceptor.ɵprov = ɵɵdefineInjectable({ factory: function HttpErrorInterceptor_Factory() { return new HttpErrorInterceptor(ɵɵinject(ToastrService), ɵɵinject(NGXLogger)); }, token: HttpErrorInterceptor, providedIn: "root" });
145
- HttpErrorInterceptor.decorators = [
146
- { type: Injectable, args: [{
147
- providedIn: 'root'
148
- },] }
149
- ];
150
- HttpErrorInterceptor.ctorParameters = () => [
151
- { type: ToastrService },
152
- { type: NGXLogger }
108
+ class HttpErrorInterceptor {
109
+ constructor(toastr, logger) {
110
+ this.toastr = toastr;
111
+ this.logger = logger;
112
+ }
113
+ intercept(request, next) {
114
+ if (request.headers && request.headers.has(InterceptorSkip)) {
115
+ const headers = request.headers.delete(InterceptorSkip);
116
+ return next.handle(request.clone({ headers }));
117
+ }
118
+ else {
119
+ return next.handle(request)
120
+ .pipe(retry(1), catchError((error) => {
121
+ let errorMessage = '';
122
+ if (error.error instanceof ErrorEvent) {
123
+ // client-side error
124
+ errorMessage = `Error: ${error.error.message}`;
125
+ }
126
+ else {
127
+ // server-side error
128
+ if (error.error.errors) {
129
+ errorMessage = error.error.errors;
130
+ }
131
+ else if (error.error.message) {
132
+ errorMessage = error.error.message;
133
+ }
134
+ else {
135
+ errorMessage = `Error Code: ${error.status}\nMessage: ${error.message}`;
136
+ }
137
+ }
138
+ this.toastr.warning(`An unexpected error occurred...${errorMessage}`);
139
+ return throwError(errorMessage);
140
+ }));
141
+ }
142
+ }
143
+ }
144
+ HttpErrorInterceptor.ɵprov = ɵɵdefineInjectable({ factory: function HttpErrorInterceptor_Factory() { return new HttpErrorInterceptor(ɵɵinject(ToastrService), ɵɵinject(NGXLogger)); }, token: HttpErrorInterceptor, providedIn: "root" });
145
+ HttpErrorInterceptor.decorators = [
146
+ { type: Injectable, args: [{
147
+ providedIn: 'root'
148
+ },] }
149
+ ];
150
+ HttpErrorInterceptor.ctorParameters = () => [
151
+ { type: ToastrService },
152
+ { type: NGXLogger }
153
153
  ];
154
154
 
155
- /*
156
- * Copyright 2015-2020 Ritense BV, the Netherlands.
157
- *
158
- * Licensed under EUPL, Version 1.2 (the "License");
159
- * you may not use this file except in compliance with the License.
160
- * You may obtain a copy of the License at
161
- *
162
- * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
163
- *
164
- * Unless required by applicable law or agreed to in writing, software
165
- * distributed under the License is distributed on an "AS IS" basis,
166
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
167
- * See the License for the specific language governing permissions and
168
- * limitations under the License.
169
- */
170
- const ɵ0 = { title: 'Access Forbidden', error: 403 }, ɵ1 = { title: 'Not Found', error: 404 }, ɵ2 = { title: 'Internal Server Error', error: 500 }, ɵ3 = { title: 'Service Unavailable', error: 503 };
171
- const routes = [
172
- { path: '403', component: ErrorComponent, data: ɵ0 },
173
- { path: '404', component: ErrorComponent, data: ɵ1 },
174
- { path: '500', component: ErrorComponent, data: ɵ2 },
175
- { path: '503', component: ErrorComponent, data: ɵ3 }
176
- ];
177
- class ErrorRoutingModule {
178
- }
179
- ErrorRoutingModule.decorators = [
180
- { type: NgModule, args: [{
181
- declarations: [],
182
- imports: [
183
- CommonModule,
184
- RouterModule.forChild(routes)
185
- ],
186
- exports: [RouterModule],
187
- providers: [{ provide: HTTP_INTERCEPTORS, useClass: HttpErrorInterceptor, multi: true }]
188
- },] }
155
+ /*
156
+ * Copyright 2015-2020 Ritense BV, the Netherlands.
157
+ *
158
+ * Licensed under EUPL, Version 1.2 (the "License");
159
+ * you may not use this file except in compliance with the License.
160
+ * You may obtain a copy of the License at
161
+ *
162
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
163
+ *
164
+ * Unless required by applicable law or agreed to in writing, software
165
+ * distributed under the License is distributed on an "AS IS" basis,
166
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
167
+ * See the License for the specific language governing permissions and
168
+ * limitations under the License.
169
+ */
170
+ const ɵ0 = { title: 'Access Forbidden', error: 403 }, ɵ1 = { title: 'Not Found', error: 404 }, ɵ2 = { title: 'Internal Server Error', error: 500 }, ɵ3 = { title: 'Service Unavailable', error: 503 };
171
+ const routes = [
172
+ { path: '403', component: ErrorComponent, data: ɵ0 },
173
+ { path: '404', component: ErrorComponent, data: ɵ1 },
174
+ { path: '500', component: ErrorComponent, data: ɵ2 },
175
+ { path: '503', component: ErrorComponent, data: ɵ3 }
176
+ ];
177
+ class ErrorRoutingModule {
178
+ }
179
+ ErrorRoutingModule.decorators = [
180
+ { type: NgModule, args: [{
181
+ declarations: [],
182
+ imports: [
183
+ CommonModule,
184
+ RouterModule.forChild(routes)
185
+ ],
186
+ exports: [RouterModule],
187
+ providers: [{ provide: HTTP_INTERCEPTORS, useClass: HttpErrorInterceptor, multi: true }]
188
+ },] }
189
189
  ];
190
190
 
191
- /*
192
- * Copyright 2015-2020 Ritense BV, the Netherlands.
193
- *
194
- * Licensed under EUPL, Version 1.2 (the "License");
195
- * you may not use this file except in compliance with the License.
196
- * You may obtain a copy of the License at
197
- *
198
- * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
199
- *
200
- * Unless required by applicable law or agreed to in writing, software
201
- * distributed under the License is distributed on an "AS IS" basis,
202
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
203
- * See the License for the specific language governing permissions and
204
- * limitations under the License.
205
- */
206
- class SecurityModule {
207
- }
208
- SecurityModule.decorators = [
209
- { type: NgModule, args: [{
210
- declarations: [ErrorComponent],
211
- imports: [ErrorRoutingModule],
212
- exports: [ErrorComponent],
213
- providers: [AuthGuardService]
214
- },] }
191
+ /*
192
+ * Copyright 2015-2020 Ritense BV, the Netherlands.
193
+ *
194
+ * Licensed under EUPL, Version 1.2 (the "License");
195
+ * you may not use this file except in compliance with the License.
196
+ * You may obtain a copy of the License at
197
+ *
198
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
199
+ *
200
+ * Unless required by applicable law or agreed to in writing, software
201
+ * distributed under the License is distributed on an "AS IS" basis,
202
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
203
+ * See the License for the specific language governing permissions and
204
+ * limitations under the License.
205
+ */
206
+ class SecurityModule {
207
+ }
208
+ SecurityModule.decorators = [
209
+ { type: NgModule, args: [{
210
+ declarations: [ErrorComponent],
211
+ imports: [ErrorRoutingModule],
212
+ exports: [ErrorComponent],
213
+ providers: [AuthGuardService]
214
+ },] }
215
215
  ];
216
216
 
217
- class UserProviderService {
218
- constructor(configService, injector, http, logger) {
219
- this.configService = configService;
220
- this.injector = injector;
221
- this.http = http;
222
- this.logger = logger;
223
- this.valtimoApiConfig = configService.config.valtimoApi;
224
- this.userService = injector.get(configService.config.authentication.authProviders.userServiceProvider);
225
- this.logger.debug('Loading UserProviderService service', this.userService);
226
- }
227
- getUserSubject() {
228
- this.logger.debug('Delegating UserProviderService::getUserIdentity');
229
- return this.userService.getUserSubject();
230
- }
231
- logout() {
232
- this.logger.debug('Delegating UserProviderService::logout');
233
- return this.userService.logout();
234
- }
235
- getToken() {
236
- return __awaiter(this, void 0, void 0, function* () {
237
- this.logger.debug('Delegating UserProviderService::getToken');
238
- return this.userService.getToken();
239
- });
240
- }
241
- updateToken(minValidity) {
242
- return __awaiter(this, void 0, void 0, function* () {
243
- this.logger.debug('Delegating UserProviderService::updateToken');
244
- if (this.userService.updateToken) {
245
- return this.userService.updateToken(minValidity);
246
- }
247
- else {
248
- return new Promise(resolve => resolve(true));
249
- }
250
- });
251
- }
252
- getEmailNotificationSettings() {
253
- this.logger.debug('getEmailNotificationSettings');
254
- return this.http.get(`${this.valtimoApiConfig.endpointUri}email-notification-settings`);
255
- }
256
- updateEmailNotificationSettings(settings) {
257
- this.logger.debug('updateEmailNotificationSettings', settings);
258
- return this.http.put(`${this.valtimoApiConfig.endpointUri}email-notification-settings`, settings);
259
- }
260
- }
261
- UserProviderService.ɵprov = ɵɵdefineInjectable({ factory: function UserProviderService_Factory() { return new UserProviderService(ɵɵinject(ConfigService), ɵɵinject(INJECTOR), ɵɵinject(HttpClient), ɵɵinject(NGXLogger)); }, token: UserProviderService, providedIn: "root" });
262
- UserProviderService.decorators = [
263
- { type: Injectable, args: [{
264
- providedIn: 'root'
265
- },] }
266
- ];
267
- UserProviderService.ctorParameters = () => [
268
- { type: ConfigService },
269
- { type: Injector },
270
- { type: HttpClient },
271
- { type: NGXLogger }
217
+ class UserProviderService {
218
+ constructor(configService, injector, http, logger) {
219
+ this.configService = configService;
220
+ this.injector = injector;
221
+ this.http = http;
222
+ this.logger = logger;
223
+ this.valtimoApiConfig = configService.config.valtimoApi;
224
+ this.userService = injector.get(configService.config.authentication.authProviders.userServiceProvider);
225
+ this.logger.debug('Loading UserProviderService service', this.userService);
226
+ }
227
+ getUserSubject() {
228
+ this.logger.debug('Delegating UserProviderService::getUserIdentity');
229
+ return this.userService.getUserSubject();
230
+ }
231
+ logout() {
232
+ this.logger.debug('Delegating UserProviderService::logout');
233
+ return this.userService.logout();
234
+ }
235
+ getToken() {
236
+ return __awaiter(this, void 0, void 0, function* () {
237
+ this.logger.debug('Delegating UserProviderService::getToken');
238
+ return this.userService.getToken();
239
+ });
240
+ }
241
+ updateToken(minValidity) {
242
+ return __awaiter(this, void 0, void 0, function* () {
243
+ this.logger.debug('Delegating UserProviderService::updateToken');
244
+ if (this.userService.updateToken) {
245
+ return this.userService.updateToken(minValidity);
246
+ }
247
+ else {
248
+ return new Promise(resolve => resolve(true));
249
+ }
250
+ });
251
+ }
252
+ getEmailNotificationSettings() {
253
+ this.logger.debug('getEmailNotificationSettings');
254
+ return this.http.get(`${this.valtimoApiConfig.endpointUri}email-notification-settings`);
255
+ }
256
+ updateEmailNotificationSettings(settings) {
257
+ this.logger.debug('updateEmailNotificationSettings', settings);
258
+ return this.http.put(`${this.valtimoApiConfig.endpointUri}email-notification-settings`, settings);
259
+ }
260
+ }
261
+ UserProviderService.ɵprov = ɵɵdefineInjectable({ factory: function UserProviderService_Factory() { return new UserProviderService(ɵɵinject(ConfigService), ɵɵinject(INJECTOR), ɵɵinject(HttpClient), ɵɵinject(NGXLogger)); }, token: UserProviderService, providedIn: "root" });
262
+ UserProviderService.decorators = [
263
+ { type: Injectable, args: [{
264
+ providedIn: 'root'
265
+ },] }
266
+ ];
267
+ UserProviderService.ctorParameters = () => [
268
+ { type: ConfigService },
269
+ { type: Injector },
270
+ { type: HttpClient },
271
+ { type: NGXLogger }
272
272
  ];
273
273
 
274
- /*
275
- * Copyright 2015-2020 Ritense BV, the Netherlands.
276
- *
277
- * Licensed under EUPL, Version 1.2 (the "License");
278
- * you may not use this file except in compliance with the License.
279
- * You may obtain a copy of the License at
280
- *
281
- * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
282
- *
283
- * Unless required by applicable law or agreed to in writing, software
284
- * distributed under the License is distributed on an "AS IS" basis,
285
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
286
- * See the License for the specific language governing permissions and
287
- * limitations under the License.
274
+ /*
275
+ * Copyright 2015-2020 Ritense BV, the Netherlands.
276
+ *
277
+ * Licensed under EUPL, Version 1.2 (the "License");
278
+ * you may not use this file except in compliance with the License.
279
+ * You may obtain a copy of the License at
280
+ *
281
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
282
+ *
283
+ * Unless required by applicable law or agreed to in writing, software
284
+ * distributed under the License is distributed on an "AS IS" basis,
285
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
286
+ * See the License for the specific language governing permissions and
287
+ * limitations under the License.
288
288
  */
289
289
 
290
- /**
291
- * Generated bundle index. Do not edit.
290
+ /**
291
+ * Generated bundle index. Do not edit.
292
292
  */
293
293
 
294
294
  export { AuthGuardService, ErrorComponent, InterceptorSkip, InterceptorSkipHeader, SecurityModule, UserProviderService, ErrorRoutingModule as ɵa, HttpErrorInterceptor as ɵb };
@@ -1,2 +1,2 @@
1
- export declare class ErrorRoutingModule {
2
- }
1
+ export declare class ErrorRoutingModule {
2
+ }
@@ -1,9 +1,9 @@
1
- import { OnInit } from '@angular/core';
2
- import { ActivatedRoute } from '@angular/router';
3
- import { Error } from './error';
4
- export declare class ErrorComponent implements OnInit {
5
- private activatedRoute;
6
- err: Error;
7
- constructor(activatedRoute: ActivatedRoute);
8
- ngOnInit(): void;
9
- }
1
+ import { OnInit } from '@angular/core';
2
+ import { ActivatedRoute } from '@angular/router';
3
+ import { Error } from './error';
4
+ export declare class ErrorComponent implements OnInit {
5
+ private activatedRoute;
6
+ err: Error;
7
+ constructor(activatedRoute: ActivatedRoute);
8
+ ngOnInit(): void;
9
+ }
@@ -1,7 +1,7 @@
1
- import { HttpHeaders } from '@angular/common/http';
2
- export declare const InterceptorSkip = "X-Skip-Interceptor";
3
- export declare const InterceptorSkipHeader: HttpHeaders;
4
- export interface Error {
5
- title: string;
6
- error: number;
7
- }
1
+ import { HttpHeaders } from '@angular/common/http';
2
+ export declare const InterceptorSkip = "X-Skip-Interceptor";
3
+ export declare const InterceptorSkipHeader: HttpHeaders;
4
+ export interface Error {
5
+ title: string;
6
+ error: number;
7
+ }
@@ -1,10 +1,10 @@
1
- import { HttpEvent, HttpHandler, HttpInterceptor, HttpRequest } from '@angular/common/http';
2
- import { Observable } from 'rxjs';
3
- import { ToastrService } from 'ngx-toastr';
4
- import { NGXLogger } from 'ngx-logger';
5
- export declare class HttpErrorInterceptor implements HttpInterceptor {
6
- private toastr;
7
- private logger;
8
- constructor(toastr: ToastrService, logger: NGXLogger);
9
- intercept(request: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
10
- }
1
+ import { HttpEvent, HttpHandler, HttpInterceptor, HttpRequest } from '@angular/common/http';
2
+ import { Observable } from 'rxjs';
3
+ import { ToastrService } from 'ngx-toastr';
4
+ import { NGXLogger } from 'ngx-logger';
5
+ export declare class HttpErrorInterceptor implements HttpInterceptor {
6
+ private toastr;
7
+ private logger;
8
+ constructor(toastr: ToastrService, logger: NGXLogger);
9
+ intercept(request: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
10
+ }
@@ -1,12 +1,12 @@
1
- import { Injector } from '@angular/core';
2
- import { ActivatedRouteSnapshot, CanActivate, RouterStateSnapshot, UrlTree } from '@angular/router';
3
- import { NGXLogger } from 'ngx-logger';
4
- import { Observable } from 'rxjs';
5
- import { ConfigService } from '@valtimo/config';
6
- export declare class AuthGuardService implements CanActivate {
7
- private injector;
8
- protected logger: NGXLogger;
9
- private readonly authGuardServiceProvider;
10
- constructor(configService: ConfigService, injector: Injector, logger: NGXLogger);
11
- canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable<boolean | UrlTree> | Promise<boolean | UrlTree> | boolean | UrlTree;
12
- }
1
+ import { Injector } from '@angular/core';
2
+ import { ActivatedRouteSnapshot, CanActivate, RouterStateSnapshot, UrlTree } from '@angular/router';
3
+ import { NGXLogger } from 'ngx-logger';
4
+ import { Observable } from 'rxjs';
5
+ import { ConfigService } from '@valtimo/config';
6
+ export declare class AuthGuardService implements CanActivate {
7
+ private injector;
8
+ protected logger: NGXLogger;
9
+ private readonly authGuardServiceProvider;
10
+ constructor(configService: ConfigService, injector: Injector, logger: NGXLogger);
11
+ canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable<boolean | UrlTree> | Promise<boolean | UrlTree> | boolean | UrlTree;
12
+ }
@@ -1,2 +1,2 @@
1
- export declare class SecurityModule {
2
- }
1
+ export declare class SecurityModule {
2
+ }