angular-toolbox 0.11.2 → 0.11.4
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/README.md +1 -1
- package/esm2022/lib/core/bridge/app-bridge.mjs +3 -3
- package/esm2022/lib/core/error/app-bridge-error.mjs +3 -3
- package/esm2022/lib/core/error/http-mock-service-error.mjs +3 -3
- package/esm2022/lib/core/error/integrity-error.mjs +3 -3
- package/esm2022/lib/core/error/subscription-error.mjs +3 -3
- package/esm2022/lib/core/impl/lang/identifiable-component.mjs +3 -3
- package/esm2022/lib/core/impl/version/version.impl.mjs +3 -3
- package/esm2022/lib/framework/index.mjs +3 -1
- package/esm2022/lib/framework/logging/connector/console-log-connector.mjs +48 -0
- package/esm2022/lib/framework/logging/connector/default-log-connector.mjs +34 -0
- package/esm2022/lib/framework/logging/connector/html-log-connector.mjs +177 -0
- package/esm2022/lib/framework/logging/connector/index.mjs +4 -0
- package/esm2022/lib/framework/logging/impl/abstract-logger.mjs +100 -0
- package/esm2022/lib/framework/logging/impl/index.mjs +3 -0
- package/esm2022/lib/framework/logging/impl/log-impl.mjs +28 -0
- package/esm2022/lib/framework/logging/index.mjs +4 -0
- package/esm2022/lib/framework/logging/util/index.mjs +4 -0
- package/esm2022/lib/framework/logging/util/log.builder.mjs +28 -0
- package/esm2022/lib/framework/logging/util/log.constant.mjs +24 -0
- package/esm2022/lib/framework/logging/util/log.util.mjs +142 -0
- package/esm2022/lib/framework/mock/http/core/data-storage.mjs +1 -1
- package/esm2022/lib/framework/mock/http/core/response-delay.mjs +9 -0
- package/esm2022/lib/framework/mock/http/event/event-target.impl.mjs +15 -1
- package/esm2022/lib/framework/mock/http/logging/http-mock-logger.mjs +15 -0
- package/esm2022/lib/framework/mock/http/logging/http-mock-logging-metadata.builder.mjs +35 -0
- package/esm2022/lib/framework/mock/http/path-to-regexp/escape-to-regexp-string.mjs +3 -3
- package/esm2022/lib/framework/mock/http/path-to-regexp/model/lex-token.mjs +3 -3
- package/esm2022/lib/framework/mock/http/util/data-storage.builder.mjs +5 -3
- package/esm2022/lib/framework/mock/http/util/http-headers.util.mjs +18 -3
- package/esm2022/lib/framework/mock/http/util/http-mock-max-delay.mjs +12 -0
- package/esm2022/lib/framework/mock/http/util/http-mock-response-delay.util.mjs +33 -0
- package/esm2022/lib/framework/mock/http/util/http-mock-response.builder.mjs +45 -9
- package/esm2022/lib/framework/mock/http/util/index.mjs +2 -1
- package/esm2022/lib/framework/mock/http/xhr/delegate-xhr.mjs +75 -41
- package/esm2022/lib/framework/mock/http/xhr/http-mock-factory.impl.mjs +4 -3
- package/esm2022/lib/framework/mock/http/xhr/http-mock-factory.mjs +3 -2
- package/esm2022/lib/framework/mock/http/xhr/xhr-proxy-impl.mjs +7 -6
- package/esm2022/lib/framework/mock/http-monitoring-console/component/console-footer/console-footer.component.mjs +30 -0
- package/esm2022/lib/framework/mock/http-monitoring-console/component/console-menu/console-menu.component.mjs +30 -0
- package/esm2022/lib/framework/mock/http-monitoring-console/component/http-monitoring-console/http-monitoring-console.component.mjs +140 -0
- package/esm2022/lib/framework/mock/http-monitoring-console/component/renderer/icon-renderer/icon-renderer.component.mjs +37 -0
- package/esm2022/lib/framework/mock/http-monitoring-console/component/renderer/json-viewer/json-viewer.component.mjs +34 -0
- package/esm2022/lib/framework/mock/http-monitoring-console/component/renderer/json-viewer-panel/json-viewer-panel.component.mjs +27 -0
- package/esm2022/lib/framework/mock/http-monitoring-console/component/renderer/payload-renderer/payload-renderer.component.mjs +50 -0
- package/esm2022/lib/framework/mock/http-monitoring-console/component/renderer/response-body-renderer/response-body-renderer.component.mjs +50 -0
- package/esm2022/lib/framework/mock/http-monitoring-console/component/renderer/response-preview-renderer/response-preview-renderer.component.mjs +71 -0
- package/esm2022/lib/framework/mock/http-monitoring-console/component/renderer/timing-renderer/timing-renderer.component.mjs +55 -0
- package/esm2022/lib/framework/mock/http-monitoring-console/component/request-details/request-details.component.mjs +67 -0
- package/esm2022/lib/framework/mock/http-monitoring-console/connector/http-monitoring-console-log-connector.mjs +52 -0
- package/esm2022/lib/framework/mock/http-monitoring-console/index.mjs +2 -0
- package/esm2022/lib/framework/mock/http-monitoring-console/model/business/atx-console-action-type.mjs +14 -0
- package/esm2022/lib/framework/mock/http-monitoring-console/model/business/atx-console-action.mjs +9 -0
- package/esm2022/lib/framework/mock/http-monitoring-console/model/business/atx-console-json.mjs +9 -0
- package/esm2022/lib/framework/mock/http-monitoring-console/model/business/atx-is-imported-log.mjs +10 -0
- package/esm2022/lib/framework/mock/http-monitoring-console/model/business/io/atx-body-dto.mjs +9 -0
- package/esm2022/lib/framework/mock/http-monitoring-console/model/business/io/atx-header-dto.mjs +9 -0
- package/esm2022/lib/framework/mock/http-monitoring-console/model/business/io/atx-http-log-metadata.dto.mjs +9 -0
- package/esm2022/lib/framework/mock/http-monitoring-console/model/business/io/atx-http-log.dto.mjs +9 -0
- package/esm2022/lib/framework/mock/http-monitoring-console/model/business/io/atx-http-request-metadata.dto.ts.mjs +9 -0
- package/esm2022/lib/framework/mock/http-monitoring-console/model/business/io/atx-http-request.dto.mjs +9 -0
- package/esm2022/lib/framework/mock/http-monitoring-console/model/business/io/atx-http-response.dto.mjs +9 -0
- package/esm2022/lib/framework/mock/http-monitoring-console/model/business/io/hmfl.mjs +9 -0
- package/esm2022/lib/framework/mock/http-monitoring-console/model/service/atx-log-io.service.mjs +77 -0
- package/esm2022/lib/framework/mock/http-monitoring-console/model/service/io/body-converter.mjs +22 -0
- package/esm2022/lib/framework/mock/http-monitoring-console/model/service/io/body-serializer.mjs +47 -0
- package/esm2022/lib/framework/mock/http-monitoring-console/model/service/io/http-request-converter.mjs +44 -0
- package/esm2022/lib/framework/mock/http-monitoring-console/model/service/io/http-response-converter.mjs +32 -0
- package/esm2022/lib/framework/mock/http-monitoring-console/model/service/io/log-converter.mjs +31 -0
- package/esm2022/lib/framework/mock/http-monitoring-console/model/service/io/log-headers-converter.mjs +35 -0
- package/esm2022/lib/framework/mock/http-monitoring-console/model/service/io/log-message.util.mjs +19 -0
- package/esm2022/lib/framework/mock/http-monitoring-console/model/service/io/log-metadata-converter.mjs +27 -0
- package/esm2022/lib/framework/mock/http-monitoring-console/model/service/io/request-metadata-converter.mjs +29 -0
- package/esm2022/lib/framework/mock/http-monitoring-console/util/console-body-type.mjs +18 -0
- package/esm2022/lib/framework/mock/http-monitoring-console/util/console-type-class.mjs +17 -0
- package/esm2022/lib/framework/mock/http-monitoring-console/util/data.util.mjs +75 -0
- package/esm2022/lib/framework/mock/http-monitoring-console/util/size.util.mjs +35 -0
- package/esm2022/lib/framework/mock/http-monitoring-console/util/url.util.mjs +26 -0
- package/esm2022/lib/model/business/index.mjs +2 -1
- package/esm2022/lib/model/business/lang/app-bridge-command.mjs +3 -3
- package/esm2022/lib/model/business/lang/destroyable.mjs +3 -3
- package/esm2022/lib/model/business/lang/identifiable.mjs +3 -3
- package/esm2022/lib/model/business/logging/http-mock-logging-constant.enum.mjs +34 -0
- package/esm2022/lib/model/business/logging/index.mjs +6 -0
- package/esm2022/lib/model/business/logging/log-connector.mjs +9 -0
- package/esm2022/lib/model/business/logging/log-level.enum.mjs +35 -0
- package/esm2022/lib/model/business/logging/log.mjs +9 -0
- package/esm2022/lib/model/business/logging/logger.mjs +2 -0
- package/esm2022/lib/model/business/logging/transactional-logger.mjs +9 -0
- package/esm2022/lib/model/business/mock/http/config/http-mock-production-policy.enum.mjs +27 -0
- package/esm2022/lib/model/business/mock/http/config/http-mocking-framework-config.mjs +9 -0
- package/esm2022/lib/model/business/mock/http/config/http-mocking-framework-config.provider.mjs +33 -0
- package/esm2022/lib/model/business/mock/http/config/index.mjs +4 -0
- package/esm2022/lib/model/business/mock/http/fetch-client.mjs +7 -2
- package/esm2022/lib/model/business/mock/http/http-method-mock.mjs +1 -1
- package/esm2022/lib/model/business/mock/http/http-mock-request-metadata.mjs +9 -0
- package/esm2022/lib/model/business/mock/http/index.mjs +4 -1
- package/esm2022/lib/model/business/mock/http/logging/http-mock-logging-metadata.mjs +9 -0
- package/esm2022/lib/model/business/mock/http/logging/http-mock-logging-prefetch-metadata.mjs +9 -0
- package/esm2022/lib/model/business/mock/http/logging/index.mjs +3 -0
- package/esm2022/lib/model/service/index.mjs +3 -2
- package/esm2022/lib/model/service/logging/index.mjs +2 -0
- package/esm2022/lib/model/service/logging/logger-service.mjs +24 -0
- package/esm2022/lib/model/service/mock/http/http-mock.service.mjs +45 -6
- package/esm2022/lib/model/service/mock/http/index.mjs +3 -0
- package/esm2022/lib/model/service/mock/http/logging/http-mock-logging-service.mjs +110 -0
- package/esm2022/lib/model/service/mock/http/logging/index.mjs +2 -0
- package/esm2022/lib/model/service/ui/app-bridge.service.mjs +3 -3
- package/esm2022/lib/model/service/ui/dark-mode.service.mjs +3 -3
- package/esm2022/lib/model/service/version/angular-toolbox-version.service.mjs +3 -3
- package/esm2022/lib/util/default-scroll-behavior.mjs +3 -3
- package/esm2022/lib/util/http-mocking-framework-config.manager.mjs +129 -0
- package/fesm2022/angular-toolbox.mjs +3338 -997
- package/fesm2022/angular-toolbox.mjs.map +1 -1
- package/lib/core/bridge/app-bridge.d.ts +2 -2
- package/lib/core/error/app-bridge-error.d.ts +2 -2
- package/lib/core/error/http-mock-service-error.d.ts +2 -2
- package/lib/core/error/integrity-error.d.ts +2 -2
- package/lib/core/error/subscription-error.d.ts +2 -2
- package/lib/core/impl/lang/identifiable-component.d.ts +2 -2
- package/lib/core/impl/version/version.impl.d.ts +2 -2
- package/lib/framework/index.d.ts +2 -0
- package/lib/framework/logging/connector/console-log-connector.d.ts +34 -0
- package/lib/framework/logging/connector/default-log-connector.d.ts +34 -0
- package/lib/framework/logging/connector/html-log-connector.d.ts +72 -0
- package/lib/framework/logging/connector/index.d.ts +3 -0
- package/lib/framework/logging/impl/abstract-logger.d.ts +69 -0
- package/lib/framework/logging/impl/index.d.ts +2 -0
- package/lib/framework/logging/impl/log-impl.d.ts +42 -0
- package/lib/framework/logging/index.d.ts +3 -0
- package/lib/framework/logging/util/index.d.ts +3 -0
- package/lib/framework/logging/util/log.builder.d.ts +24 -0
- package/lib/framework/logging/util/log.constant.d.ts +23 -0
- package/lib/framework/logging/util/log.util.d.ts +48 -0
- package/lib/framework/mock/http/core/data-storage.d.ts +6 -1
- package/lib/framework/mock/http/core/response-delay.d.ts +23 -0
- package/lib/framework/mock/http/event/event-target.impl.d.ts +8 -0
- package/lib/framework/mock/http/logging/http-mock-logger.d.ts +14 -0
- package/lib/framework/mock/http/logging/http-mock-logging-metadata.builder.d.ts +20 -0
- package/lib/framework/mock/http/path-to-regexp/escape-to-regexp-string.d.ts +2 -2
- package/lib/framework/mock/http/path-to-regexp/model/lex-token.d.ts +2 -2
- package/lib/framework/mock/http/util/data-storage.builder.d.ts +3 -2
- package/lib/framework/mock/http/util/http-headers.util.d.ts +10 -0
- package/lib/framework/mock/http/util/http-mock-max-delay.d.ts +11 -0
- package/lib/framework/mock/http/util/http-mock-response-delay.util.d.ts +22 -0
- package/lib/framework/mock/http/util/http-mock-response.builder.d.ts +16 -0
- package/lib/framework/mock/http/util/index.d.ts +1 -0
- package/lib/framework/mock/http/xhr/delegate-xhr.d.ts +11 -4
- package/lib/framework/mock/http/xhr/http-mock-factory.impl.d.ts +3 -1
- package/lib/framework/mock/http/xhr/xhr-proxy-impl.d.ts +6 -5
- package/lib/framework/mock/http-monitoring-console/component/console-footer/console-footer.component.d.ts +8 -0
- package/lib/framework/mock/http-monitoring-console/component/console-menu/console-menu.component.d.ts +21 -0
- package/lib/framework/mock/http-monitoring-console/component/http-monitoring-console/http-monitoring-console.component.d.ts +42 -0
- package/lib/framework/mock/http-monitoring-console/component/renderer/icon-renderer/icon-renderer.component.d.ts +12 -0
- package/lib/framework/mock/http-monitoring-console/component/renderer/json-viewer/json-viewer.component.d.ts +8 -0
- package/lib/framework/mock/http-monitoring-console/component/renderer/json-viewer-panel/json-viewer-panel.component.d.ts +7 -0
- package/lib/framework/mock/http-monitoring-console/component/renderer/payload-renderer/payload-renderer.component.d.ts +20 -0
- package/lib/framework/mock/http-monitoring-console/component/renderer/response-body-renderer/response-body-renderer.component.d.ts +20 -0
- package/lib/framework/mock/http-monitoring-console/component/renderer/response-preview-renderer/response-preview-renderer.component.d.ts +27 -0
- package/lib/framework/mock/http-monitoring-console/component/renderer/timing-renderer/timing-renderer.component.d.ts +13 -0
- package/lib/framework/mock/http-monitoring-console/component/request-details/request-details.component.d.ts +27 -0
- package/lib/framework/mock/http-monitoring-console/connector/http-monitoring-console-log-connector.d.ts +40 -0
- package/lib/framework/mock/http-monitoring-console/index.d.ts +1 -0
- package/lib/framework/mock/http-monitoring-console/model/business/atx-console-action-type.d.ts +12 -0
- package/lib/framework/mock/http-monitoring-console/model/business/atx-console-action.d.ts +12 -0
- package/lib/framework/mock/http-monitoring-console/model/business/atx-console-json.d.ts +14 -0
- package/lib/framework/mock/http-monitoring-console/model/business/atx-is-imported-log.d.ts +9 -0
- package/lib/framework/mock/http-monitoring-console/model/business/io/atx-body-dto.d.ts +11 -0
- package/lib/framework/mock/http-monitoring-console/model/business/io/atx-header-dto.d.ts +11 -0
- package/lib/framework/mock/http-monitoring-console/model/business/io/atx-http-log-metadata.dto.d.ts +18 -0
- package/lib/framework/mock/http-monitoring-console/model/business/io/atx-http-log.dto.d.ts +23 -0
- package/lib/framework/mock/http-monitoring-console/model/business/io/atx-http-request-metadata.dto.ts.d.ts +32 -0
- package/lib/framework/mock/http-monitoring-console/model/business/io/atx-http-request.dto.d.ts +18 -0
- package/lib/framework/mock/http-monitoring-console/model/business/io/atx-http-response.dto.d.ts +16 -0
- package/lib/framework/mock/http-monitoring-console/model/business/io/hmfl.d.ts +12 -0
- package/lib/framework/mock/http-monitoring-console/model/service/atx-log-io.service.d.ts +11 -0
- package/lib/framework/mock/http-monitoring-console/model/service/io/body-converter.d.ts +12 -0
- package/lib/framework/mock/http-monitoring-console/model/service/io/body-serializer.d.ts +13 -0
- package/lib/framework/mock/http-monitoring-console/model/service/io/http-request-converter.d.ts +13 -0
- package/lib/framework/mock/http-monitoring-console/model/service/io/http-response-converter.d.ts +13 -0
- package/lib/framework/mock/http-monitoring-console/model/service/io/log-converter.d.ts +13 -0
- package/lib/framework/mock/http-monitoring-console/model/service/io/log-headers-converter.d.ts +13 -0
- package/lib/framework/mock/http-monitoring-console/model/service/io/log-message.util.d.ts +12 -0
- package/lib/framework/mock/http-monitoring-console/model/service/io/log-metadata-converter.d.ts +13 -0
- package/lib/framework/mock/http-monitoring-console/model/service/io/request-metadata-converter.d.ts +13 -0
- package/lib/framework/mock/http-monitoring-console/util/console-body-type.d.ts +16 -0
- package/lib/framework/mock/http-monitoring-console/util/console-type-class.d.ts +15 -0
- package/lib/framework/mock/http-monitoring-console/util/data.util.d.ts +13 -0
- package/lib/framework/mock/http-monitoring-console/util/size.util.d.ts +11 -0
- package/lib/framework/mock/http-monitoring-console/util/url.util.d.ts +13 -0
- package/lib/model/business/index.d.ts +1 -0
- package/lib/model/business/lang/app-bridge-command.d.ts +2 -2
- package/lib/model/business/lang/destroyable.d.ts +2 -2
- package/lib/model/business/lang/identifiable.d.ts +2 -2
- package/lib/model/business/logging/http-mock-logging-constant.enum.d.ts +32 -0
- package/lib/model/business/logging/index.d.ts +5 -0
- package/lib/model/business/logging/log-connector.d.ts +36 -0
- package/lib/model/business/logging/log-level.enum.d.ts +33 -0
- package/lib/model/business/logging/log.d.ts +34 -0
- package/lib/model/business/logging/logger.d.ts +58 -0
- package/lib/model/business/logging/transactional-logger.d.ts +28 -0
- package/lib/model/business/mock/http/config/http-mock-production-policy.enum.d.ts +24 -0
- package/lib/model/business/mock/http/config/http-mocking-framework-config.d.ts +21 -0
- package/lib/model/business/mock/http/config/http-mocking-framework-config.provider.d.ts +21 -0
- package/lib/model/business/mock/http/config/index.d.ts +3 -0
- package/lib/model/business/mock/http/fetch-client.d.ts +1 -1
- package/lib/model/business/mock/http/http-method-mock.d.ts +1 -6
- package/lib/model/business/mock/http/http-mock-request-metadata.d.ts +33 -0
- package/lib/model/business/mock/http/index.d.ts +3 -0
- package/lib/model/business/mock/http/logging/http-mock-logging-metadata.d.ts +15 -0
- package/lib/model/business/mock/http/logging/http-mock-logging-prefetch-metadata.d.ts +16 -0
- package/lib/model/business/mock/http/logging/index.d.ts +2 -0
- package/lib/model/service/index.d.ts +2 -1
- package/lib/model/service/logging/index.d.ts +1 -0
- package/lib/model/service/logging/logger-service.d.ts +9 -0
- package/lib/model/service/mock/http/http-mock.service.d.ts +35 -2
- package/lib/model/service/mock/http/index.d.ts +2 -0
- package/lib/model/service/mock/http/logging/http-mock-logging-service.d.ts +78 -0
- package/lib/model/service/mock/http/logging/index.d.ts +1 -0
- package/lib/model/service/ui/dark-mode.service.d.ts +2 -2
- package/lib/util/default-scroll-behavior.d.ts +2 -2
- package/lib/util/http-mocking-framework-config.manager.d.ts +66 -0
- package/package.json +1 -1
|
@@ -31,6 +31,13 @@ export declare class HttpResponseMockBuilder {
|
|
|
31
31
|
* @returns A reference to this `HttpResponseMockBuilder` instance.
|
|
32
32
|
*/
|
|
33
33
|
headers(headers: HttpHeaders): HttpResponseMockBuilder;
|
|
34
|
+
/**
|
|
35
|
+
* Add the list of HTTP headers generated by the `HttpHeadersUtil.createDefaultRequestHeaders()`
|
|
36
|
+
* to the mock response.
|
|
37
|
+
*
|
|
38
|
+
* @returns A reference to this `HttpResponseMockBuilder` instance.
|
|
39
|
+
*/
|
|
40
|
+
defaultHeaders(): HttpResponseMockBuilder;
|
|
34
41
|
/**
|
|
35
42
|
* Sets the `status` property of the new `HttpResponseMock` instance with the specified `status` value.
|
|
36
43
|
*
|
|
@@ -64,6 +71,15 @@ export declare class HttpResponseMockBuilder {
|
|
|
64
71
|
* @returns A reference to this `HttpResponseMockBuilder` instance.
|
|
65
72
|
*/
|
|
66
73
|
delay(timer?: number): HttpResponseMockBuilder;
|
|
74
|
+
/**
|
|
75
|
+
* Sets the `delay` property of the new `HttpResponseMock` instance with the specified `timer` duration.
|
|
76
|
+
* Maximum value is `10000` miliseconds (10 seconds).
|
|
77
|
+
*
|
|
78
|
+
* @param timer The value used to set the `delay` property of the new `HttpResponseMock` instance.
|
|
79
|
+
*
|
|
80
|
+
* @returns A reference to this `HttpResponseMockBuilder` instance.
|
|
81
|
+
*/
|
|
82
|
+
delay(min?: number, max?: number): HttpResponseMockBuilder;
|
|
67
83
|
/**
|
|
68
84
|
* Returns a new `HttpResponseMock` instance, built from the properties specified with the
|
|
69
85
|
* `HttpResponseMockBuilder` methods.
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Use of this source code is governed by an MIT-style license that can be found in
|
|
6
6
|
* the LICENSE file at https://pascalechemann.com/angular-toolbox/resources/license
|
|
7
7
|
*/
|
|
8
|
-
import { XhrProxy } from "../../../../model";
|
|
8
|
+
import { XhrProxy, HttpMockLoggingService } from "../../../../model";
|
|
9
9
|
import { XhrBase } from "./xhr-base";
|
|
10
10
|
import { RouteMockConfig } from "../config/route-mock-config";
|
|
11
11
|
/**
|
|
@@ -14,6 +14,7 @@ import { RouteMockConfig } from "../config/route-mock-config";
|
|
|
14
14
|
* a HTTP request is intercepted by the Mocking Framework .
|
|
15
15
|
*/
|
|
16
16
|
export declare class DelegateXhr extends XhrBase implements XhrProxy {
|
|
17
|
+
private _logger;
|
|
17
18
|
/**
|
|
18
19
|
* @private
|
|
19
20
|
* Indicates whether the progressive download is activated, or not.
|
|
@@ -53,7 +54,7 @@ export declare class DelegateXhr extends XhrBase implements XhrProxy {
|
|
|
53
54
|
*
|
|
54
55
|
* Internal storage for the HTTP request `headers`.
|
|
55
56
|
*/
|
|
56
|
-
private
|
|
57
|
+
private _requestHeaders;
|
|
57
58
|
/**
|
|
58
59
|
* @private
|
|
59
60
|
*
|
|
@@ -145,7 +146,7 @@ export declare class DelegateXhr extends XhrBase implements XhrProxy {
|
|
|
145
146
|
* @returns All the response headers, separated by CRLF, as a string, or returns `null`
|
|
146
147
|
* if no response has been received.
|
|
147
148
|
*/
|
|
148
|
-
getAllResponseHeaders():
|
|
149
|
+
getAllResponseHeaders(): any;
|
|
149
150
|
/**
|
|
150
151
|
* Sends the request to the server.
|
|
151
152
|
*
|
|
@@ -162,7 +163,7 @@ export declare class DelegateXhr extends XhrBase implements XhrProxy {
|
|
|
162
163
|
/**
|
|
163
164
|
* @private
|
|
164
165
|
*/
|
|
165
|
-
constructor(routeConfig: RouteMockConfig);
|
|
166
|
+
constructor(routeConfig: RouteMockConfig, _logger: HttpMockLoggingService);
|
|
166
167
|
/**
|
|
167
168
|
* @private
|
|
168
169
|
* Internally used by the framework to delete a `DelegateXhr` instance.
|
|
@@ -172,6 +173,7 @@ export declare class DelegateXhr extends XhrBase implements XhrProxy {
|
|
|
172
173
|
* @private
|
|
173
174
|
*/
|
|
174
175
|
private doProgressiveDownload;
|
|
176
|
+
private finalizeRequestMetadata;
|
|
175
177
|
/**
|
|
176
178
|
* @private
|
|
177
179
|
*/
|
|
@@ -180,6 +182,10 @@ export declare class DelegateXhr extends XhrBase implements XhrProxy {
|
|
|
180
182
|
* @private
|
|
181
183
|
*/
|
|
182
184
|
private onError;
|
|
185
|
+
/**
|
|
186
|
+
* @private
|
|
187
|
+
*/
|
|
188
|
+
private buildMetadata;
|
|
183
189
|
/**
|
|
184
190
|
* @private
|
|
185
191
|
*/
|
|
@@ -204,4 +210,5 @@ export declare class DelegateXhr extends XhrBase implements XhrProxy {
|
|
|
204
210
|
* @private
|
|
205
211
|
*/
|
|
206
212
|
private buildHttpRequest;
|
|
213
|
+
private now;
|
|
207
214
|
}
|
|
@@ -7,16 +7,18 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import { XhrFactory } from "@angular/common";
|
|
9
9
|
import { HttpMockService } from "../../../../model/service/mock/http/http-mock.service";
|
|
10
|
+
import { HttpMockLoggingService } from "../../../../model";
|
|
10
11
|
/**
|
|
11
12
|
* @private
|
|
12
13
|
* The concrete implementation of the `XhrFactory` interface.
|
|
13
14
|
*/
|
|
14
15
|
export declare class XhrProxyFactoryImpl extends XhrFactory {
|
|
15
16
|
private _httpMockService;
|
|
17
|
+
private _logger;
|
|
16
18
|
/**
|
|
17
19
|
* @private
|
|
18
20
|
*/
|
|
19
|
-
constructor(_httpMockService: HttpMockService);
|
|
21
|
+
constructor(_httpMockService: HttpMockService, _logger: HttpMockLoggingService);
|
|
20
22
|
/**
|
|
21
23
|
* @private
|
|
22
24
|
*/
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
* @license
|
|
3
3
|
* Copyright Pascal ECHEMANN. All Rights Reserved.
|
|
4
4
|
*
|
|
5
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
-
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license that can be found in
|
|
6
|
+
* the LICENSE file at https://pascalechemann.com/angular-toolbox/resources/license
|
|
7
7
|
*/
|
|
8
8
|
import { HttpMockService } from "../../../../model/service/mock/http/http-mock.service";
|
|
9
|
-
import { XhrProxy } from "../../../../model";
|
|
9
|
+
import { HttpMockLoggingService, XhrProxy } from "../../../../model";
|
|
10
10
|
import { XhrBase } from "./xhr-base";
|
|
11
11
|
/**
|
|
12
12
|
* @private
|
|
@@ -14,6 +14,7 @@ import { XhrBase } from "./xhr-base";
|
|
|
14
14
|
*/
|
|
15
15
|
export declare class XhrProxyImpl extends XhrBase implements XhrProxy {
|
|
16
16
|
private _httpMockService;
|
|
17
|
+
private _logger;
|
|
17
18
|
/**
|
|
18
19
|
* @private
|
|
19
20
|
* Stores an internal XMLHttpRequestobject used as delegate,
|
|
@@ -87,7 +88,7 @@ export declare class XhrProxyImpl extends XhrBase implements XhrProxy {
|
|
|
87
88
|
*
|
|
88
89
|
* XMLHTTPRequest API
|
|
89
90
|
*/
|
|
90
|
-
getAllResponseHeaders():
|
|
91
|
+
getAllResponseHeaders(): any;
|
|
91
92
|
/**
|
|
92
93
|
* @private
|
|
93
94
|
*
|
|
@@ -121,5 +122,5 @@ export declare class XhrProxyImpl extends XhrBase implements XhrProxy {
|
|
|
121
122
|
/**
|
|
122
123
|
* @private
|
|
123
124
|
*/
|
|
124
|
-
constructor(_httpMockService: HttpMockService);
|
|
125
|
+
constructor(_httpMockService: HttpMockService, _logger: HttpMockLoggingService);
|
|
125
126
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class AtxConsoleFooterComponent {
|
|
3
|
+
protected size: string;
|
|
4
|
+
set cumulativeSize(value: number);
|
|
5
|
+
numLogs: number;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AtxConsoleFooterComponent, never>;
|
|
7
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AtxConsoleFooterComponent, "atx-console-footer", never, { "cumulativeSize": { "alias": "cumulativeSize"; "required": false; }; "numLogs": { "alias": "numLogs"; "required": false; }; }, {}, never, never, true, never>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright Pascal ECHEMANN. All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license that can be found in
|
|
6
|
+
* the LICENSE file at https://pascalechemann.com/angular-toolbox/resources/license
|
|
7
|
+
*/
|
|
8
|
+
import { EventEmitter } from '@angular/core';
|
|
9
|
+
import { HttpMockLoggingService } from '../../../../../model';
|
|
10
|
+
import { AtxConsoleAction } from '../../model/business/atx-console-action';
|
|
11
|
+
import { AtxConsoleActionType } from '../../model/business/atx-console-action-type';
|
|
12
|
+
import * as i0 from "@angular/core";
|
|
13
|
+
export declare class AtxConsoleMenuComponent {
|
|
14
|
+
protected logger: HttpMockLoggingService;
|
|
15
|
+
protected readonly actionList: any;
|
|
16
|
+
action: EventEmitter<AtxConsoleAction>;
|
|
17
|
+
constructor(logger: HttpMockLoggingService);
|
|
18
|
+
protected sendAction(type: AtxConsoleActionType): void;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AtxConsoleMenuComponent, never>;
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AtxConsoleMenuComponent, "atx-console-menu", never, {}, { "action": "action"; }, never, never, true, never>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright Pascal ECHEMANN. All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license that can be found in
|
|
6
|
+
* the LICENSE file at https://pascalechemann.com/angular-toolbox/resources/license
|
|
7
|
+
*/
|
|
8
|
+
import { ChangeDetectorRef, OnDestroy } from '@angular/core';
|
|
9
|
+
import { HttpMockLoggingService, Log, SubscriptionService } from '../../../../../model';
|
|
10
|
+
import { HttpMonitoringConsoleLogConnector } from '../../connector/http-monitoring-console-log-connector';
|
|
11
|
+
import { IdentifiableComponent } from '../../../../../core';
|
|
12
|
+
import { AtxConsoleAction } from '../../model/business/atx-console-action';
|
|
13
|
+
import { AtxLogIoService } from '../../model/service/atx-log-io.service';
|
|
14
|
+
import * as i0 from "@angular/core";
|
|
15
|
+
export declare class AtxMonitoringConsoleComponent extends IdentifiableComponent implements OnDestroy {
|
|
16
|
+
protected logger: HttpMockLoggingService;
|
|
17
|
+
private _cdr;
|
|
18
|
+
private _subscribe;
|
|
19
|
+
private _ioSvc;
|
|
20
|
+
protected connector: HttpMonitoringConsoleLogConnector;
|
|
21
|
+
protected selectedLog: Log | null;
|
|
22
|
+
protected cumulativeSize: number;
|
|
23
|
+
protected logs: Log[];
|
|
24
|
+
constructor(logger: HttpMockLoggingService, _cdr: ChangeDetectorRef, _subscribe: SubscriptionService, _ioSvc: AtxLogIoService);
|
|
25
|
+
ngOnDestroy(): void;
|
|
26
|
+
protected logSelect(log: Log | null): void;
|
|
27
|
+
protected getResourceName(log: Log): string;
|
|
28
|
+
protected getResourcePath(log: Log): string;
|
|
29
|
+
protected getSize(log: Log): string;
|
|
30
|
+
protected getStatus(log: Log): string | number;
|
|
31
|
+
protected getTime(log: Log): string;
|
|
32
|
+
protected isError(log: Log): boolean;
|
|
33
|
+
protected isImported(log: Log): boolean;
|
|
34
|
+
protected checkFilters(log: Log): boolean;
|
|
35
|
+
protected userAction(action: AtxConsoleAction): void;
|
|
36
|
+
private addLog;
|
|
37
|
+
private clearLogs;
|
|
38
|
+
private exportLogs;
|
|
39
|
+
private importLogs;
|
|
40
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AtxMonitoringConsoleComponent, never>;
|
|
41
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AtxMonitoringConsoleComponent, "atx-http-monitoring-console", never, {}, {}, never, never, true, never>;
|
|
42
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Log } from '../../../../../../model';
|
|
2
|
+
import { ConsoleBodyType } from '../../../util/console-body-type';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class AtxIconRendererComponent {
|
|
5
|
+
protected bodyType: ConsoleBodyType;
|
|
6
|
+
protected hasReponse: boolean;
|
|
7
|
+
set data(log: Log);
|
|
8
|
+
protected isImported: boolean;
|
|
9
|
+
protected log: Log;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AtxIconRendererComponent, never>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AtxIconRendererComponent, "atx-icon-renderer", never, { "data": { "alias": "data"; "required": false; }; }, {}, never, never, true, never>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { AtxConsoleJson } from '../../../model/business/atx-console-json';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class AtxJsonViewerComponent {
|
|
4
|
+
protected parsedData: AtxConsoleJson | null;
|
|
5
|
+
set data(value: any);
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AtxJsonViewerComponent, never>;
|
|
7
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AtxJsonViewerComponent, "atx-json-viewer", never, { "data": { "alias": "data"; "required": false; }; }, {}, never, never, true, never>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { AtxConsoleJson } from '../../../model/business/atx-console-json';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class AtxJsonViewerPanelComponent {
|
|
4
|
+
data: AtxConsoleJson | null;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AtxJsonViewerPanelComponent, never>;
|
|
6
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AtxJsonViewerPanelComponent, "atx-json-viewer-panel", never, { "data": { "alias": "data"; "required": false; }; }, {}, never, never, true, never>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright Pascal ECHEMANN. All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license that can be found in
|
|
6
|
+
* the LICENSE file at https://pascalechemann.com/angular-toolbox/resources/license
|
|
7
|
+
*/
|
|
8
|
+
import { ChangeDetectorRef } from '@angular/core';
|
|
9
|
+
import { Log } from '../../../../../../model';
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
export declare class AtxPayloadRendererComponent {
|
|
12
|
+
private _cdr;
|
|
13
|
+
protected json: any;
|
|
14
|
+
protected formData: any | null;
|
|
15
|
+
protected queryParams: any[] | null;
|
|
16
|
+
set log(value: Log | null);
|
|
17
|
+
constructor(_cdr: ChangeDetectorRef);
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AtxPayloadRendererComponent, never>;
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AtxPayloadRendererComponent, "atx-payload-renderer", never, { "log": { "alias": "log"; "required": false; }; }, {}, never, never, true, never>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright Pascal ECHEMANN. All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license that can be found in
|
|
6
|
+
* the LICENSE file at https://pascalechemann.com/angular-toolbox/resources/license
|
|
7
|
+
*/
|
|
8
|
+
import { ChangeDetectorRef } from '@angular/core';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
export declare class AtxResponseBodyRendererComponent {
|
|
11
|
+
private _cdr;
|
|
12
|
+
protected text: string | null;
|
|
13
|
+
protected body: any;
|
|
14
|
+
protected blob: Blob | null;
|
|
15
|
+
protected arrayBuffer: ArrayBuffer | null;
|
|
16
|
+
set data(value: any);
|
|
17
|
+
constructor(_cdr: ChangeDetectorRef);
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AtxResponseBodyRendererComponent, never>;
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AtxResponseBodyRendererComponent, "atx-response-body-renderer", never, { "data": { "alias": "data"; "required": false; }; }, {}, never, never, true, never>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright Pascal ECHEMANN. All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license that can be found in
|
|
6
|
+
* the LICENSE file at https://pascalechemann.com/angular-toolbox/resources/license
|
|
7
|
+
*/
|
|
8
|
+
import { ChangeDetectorRef, OnDestroy } from '@angular/core';
|
|
9
|
+
import { DomSanitizer, SafeUrl } from '@angular/platform-browser';
|
|
10
|
+
import { HttpResponse } from '@angular/common/http';
|
|
11
|
+
import * as i0 from "@angular/core";
|
|
12
|
+
export declare class AtxResponsePreviewRendererComponent implements OnDestroy {
|
|
13
|
+
private _cdr;
|
|
14
|
+
private sanitizer;
|
|
15
|
+
protected json: any;
|
|
16
|
+
protected text: string | null;
|
|
17
|
+
protected response: any;
|
|
18
|
+
protected imgUrl: string | null;
|
|
19
|
+
protected trustUrl: SafeUrl | null;
|
|
20
|
+
protected resourceName: string;
|
|
21
|
+
set data(value: HttpResponse<any>);
|
|
22
|
+
constructor(_cdr: ChangeDetectorRef, sanitizer: DomSanitizer);
|
|
23
|
+
ngOnDestroy(): void;
|
|
24
|
+
protected revokeObjectURL(): void;
|
|
25
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AtxResponsePreviewRendererComponent, never>;
|
|
26
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AtxResponsePreviewRendererComponent, "atx-response-preview-renderer", never, { "data": { "alias": "data"; "required": false; }; }, {}, never, never, true, never>;
|
|
27
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Log } from '../../../../../../model';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class AtxTimingRendererComponent {
|
|
4
|
+
protected hasData: boolean;
|
|
5
|
+
protected start: number;
|
|
6
|
+
protected downloadStart: number;
|
|
7
|
+
protected downloadLength: number;
|
|
8
|
+
protected duration: number;
|
|
9
|
+
protected error: boolean;
|
|
10
|
+
set data(value: Log);
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AtxTimingRendererComponent, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AtxTimingRendererComponent, "atx-timing-renderer", never, { "data": { "alias": "data"; "required": false; }; }, {}, never, never, true, never>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright Pascal ECHEMANN. All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license that can be found in
|
|
6
|
+
* the LICENSE file at https://pascalechemann.com/angular-toolbox/resources/license
|
|
7
|
+
*/
|
|
8
|
+
import { ChangeDetectorRef, EventEmitter } from '@angular/core';
|
|
9
|
+
import { HttpMockRequestMetadata, Log } from '../../../../../model';
|
|
10
|
+
import { HttpRequest, HttpResponse } from '@angular/common/http';
|
|
11
|
+
import * as i0 from "@angular/core";
|
|
12
|
+
export declare class AtxRequestDetailsComponent {
|
|
13
|
+
private _cdr;
|
|
14
|
+
readonly close: EventEmitter<void>;
|
|
15
|
+
protected currLog: Log | null;
|
|
16
|
+
protected hasPayload: boolean;
|
|
17
|
+
protected request: HttpRequest<any>;
|
|
18
|
+
protected response: HttpResponse<any>;
|
|
19
|
+
protected requestMetadata: HttpMockRequestMetadata;
|
|
20
|
+
set log(value: Log | null);
|
|
21
|
+
protected currSection: number;
|
|
22
|
+
constructor(_cdr: ChangeDetectorRef);
|
|
23
|
+
protected changeSection(idx: number): void;
|
|
24
|
+
private checkPayload;
|
|
25
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AtxRequestDetailsComponent, never>;
|
|
26
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AtxRequestDetailsComponent, "atx-monitoring-console-details", never, { "log": { "alias": "log"; "required": false; }; }, { "close": "close"; }, never, never, true, never>;
|
|
27
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright Pascal ECHEMANN. All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license that can be found in
|
|
6
|
+
* the LICENSE file at https://pascalechemann.com/angular-toolbox/resources/license
|
|
7
|
+
*/
|
|
8
|
+
import { EventEmitter } from "@angular/core";
|
|
9
|
+
import { Log, LogConnector } from "../../../../model";
|
|
10
|
+
/**
|
|
11
|
+
* An implementation of the `LogConnector` class that sends logs to the HTTP
|
|
12
|
+
* mocking console component.
|
|
13
|
+
*/
|
|
14
|
+
export declare class HttpMonitoringConsoleLogConnector implements LogConnector {
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
*/
|
|
18
|
+
readonly logs: Log[];
|
|
19
|
+
readonly change: EventEmitter<Log>;
|
|
20
|
+
/**
|
|
21
|
+
* @inheritdoc
|
|
22
|
+
*/
|
|
23
|
+
destroy(): void;
|
|
24
|
+
/**
|
|
25
|
+
* @inheritdoc
|
|
26
|
+
*/
|
|
27
|
+
init(logList: Log[]): void;
|
|
28
|
+
/**
|
|
29
|
+
* @inheritdoc
|
|
30
|
+
*/
|
|
31
|
+
sendLog(log: Log): void;
|
|
32
|
+
/**
|
|
33
|
+
* @inheritdoc
|
|
34
|
+
*/
|
|
35
|
+
clearLogs(): void;
|
|
36
|
+
/**
|
|
37
|
+
* Not supported.
|
|
38
|
+
*/
|
|
39
|
+
copyLogs(): void;
|
|
40
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './component/http-monitoring-console/http-monitoring-console.component';
|
package/lib/framework/mock/http-monitoring-console/model/business/atx-console-action-type.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright Pascal ECHEMANN. All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license that can be found in
|
|
6
|
+
* the LICENSE file at https://pascalechemann.com/angular-toolbox/resources/license
|
|
7
|
+
*/
|
|
8
|
+
export declare enum AtxConsoleActionType {
|
|
9
|
+
CLEAR_LOGS = 0,
|
|
10
|
+
EXPORT_LOGS = 1,
|
|
11
|
+
IMPORT_LOGS = 2
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright Pascal ECHEMANN. All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license that can be found in
|
|
6
|
+
* the LICENSE file at https://pascalechemann.com/angular-toolbox/resources/license
|
|
7
|
+
*/
|
|
8
|
+
import { AtxConsoleActionType } from "./atx-console-action-type";
|
|
9
|
+
export interface AtxConsoleAction {
|
|
10
|
+
type: AtxConsoleActionType;
|
|
11
|
+
data?: any;
|
|
12
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright Pascal ECHEMANN. All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license that can be found in
|
|
6
|
+
* the LICENSE file at https://pascalechemann.com/angular-toolbox/resources/license
|
|
7
|
+
*/
|
|
8
|
+
import { ConsoleTypeClass } from "../../util/console-type-class";
|
|
9
|
+
export interface AtxConsoleJson {
|
|
10
|
+
label?: string;
|
|
11
|
+
value: any;
|
|
12
|
+
typeClass: ConsoleTypeClass;
|
|
13
|
+
children?: AtxConsoleJson[];
|
|
14
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright Pascal ECHEMANN. All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license that can be found in
|
|
6
|
+
* the LICENSE file at https://pascalechemann.com/angular-toolbox/resources/license
|
|
7
|
+
*/
|
|
8
|
+
import { HttpContextToken } from "@angular/common/http";
|
|
9
|
+
export declare const ATX_IS_IMPORTED_LOG: HttpContextToken<boolean>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright Pascal ECHEMANN. All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license that can be found in
|
|
6
|
+
* the LICENSE file at https://pascalechemann.com/angular-toolbox/resources/license
|
|
7
|
+
*/
|
|
8
|
+
export interface AtxBodyDto {
|
|
9
|
+
type: number;
|
|
10
|
+
data: string | null;
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright Pascal ECHEMANN. All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license that can be found in
|
|
6
|
+
* the LICENSE file at https://pascalechemann.com/angular-toolbox/resources/license
|
|
7
|
+
*/
|
|
8
|
+
export interface AtxHeaderDto {
|
|
9
|
+
name: string;
|
|
10
|
+
value: string[] | null;
|
|
11
|
+
}
|
package/lib/framework/mock/http-monitoring-console/model/business/io/atx-http-log-metadata.dto.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright Pascal ECHEMANN. All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license that can be found in
|
|
6
|
+
* the LICENSE file at https://pascalechemann.com/angular-toolbox/resources/license
|
|
7
|
+
*/
|
|
8
|
+
import { AtxHttpRequestDto } from "./atx-http-request.dto.js";
|
|
9
|
+
import { AtxHttpRequestMetadataDto } from "./atx-http-request-metadata.dto.ts.js";
|
|
10
|
+
import { AtxHttpResponseDto } from "./atx-http-response.dto.js";
|
|
11
|
+
export interface AtxHttpLogMetadataDto {
|
|
12
|
+
request: AtxHttpRequestDto;
|
|
13
|
+
response: AtxHttpResponseDto;
|
|
14
|
+
/**
|
|
15
|
+
* The request metada associated with the original log.
|
|
16
|
+
*/
|
|
17
|
+
requestMetadata: AtxHttpRequestMetadataDto;
|
|
18
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright Pascal ECHEMANN. All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license that can be found in
|
|
6
|
+
* the LICENSE file at https://pascalechemann.com/angular-toolbox/resources/license
|
|
7
|
+
*/
|
|
8
|
+
import { LogLevel } from "../../../../../../model";
|
|
9
|
+
import { AtxHttpLogMetadataDto } from "./atx-http-log-metadata.dto";
|
|
10
|
+
export interface AtxHttpLogDto {
|
|
11
|
+
/**
|
|
12
|
+
* The criticality level of this log dto.
|
|
13
|
+
*/
|
|
14
|
+
level: LogLevel;
|
|
15
|
+
/**
|
|
16
|
+
* The timestamp at which the original log has been created.
|
|
17
|
+
*/
|
|
18
|
+
timestamp: number;
|
|
19
|
+
/**
|
|
20
|
+
* Metada associated with the original log.
|
|
21
|
+
*/
|
|
22
|
+
metadata: AtxHttpLogMetadataDto;
|
|
23
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright Pascal ECHEMANN. All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license that can be found in
|
|
6
|
+
* the LICENSE file at https://pascalechemann.com/angular-toolbox/resources/license
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Defines the the metadata associated to an HTTP mock request.
|
|
10
|
+
*/
|
|
11
|
+
export interface AtxHttpRequestMetadataDto {
|
|
12
|
+
/**
|
|
13
|
+
* The unique ID associated with the HTTP request.
|
|
14
|
+
*/
|
|
15
|
+
id: string;
|
|
16
|
+
/**
|
|
17
|
+
* Indicates the starting time of the HTTP request.
|
|
18
|
+
*/
|
|
19
|
+
start: number;
|
|
20
|
+
/**
|
|
21
|
+
* Indicates the how much time the request is stalled befaore the data loading starts.
|
|
22
|
+
*/
|
|
23
|
+
stalled: number;
|
|
24
|
+
/**
|
|
25
|
+
* Indicates the duration of the HTTP request.
|
|
26
|
+
*/
|
|
27
|
+
duration: number;
|
|
28
|
+
/**
|
|
29
|
+
* The reference to the `URL` object for the HTTP request.
|
|
30
|
+
*/
|
|
31
|
+
url: string;
|
|
32
|
+
}
|
package/lib/framework/mock/http-monitoring-console/model/business/io/atx-http-request.dto.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright Pascal ECHEMANN. All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license that can be found in
|
|
6
|
+
* the LICENSE file at https://pascalechemann.com/angular-toolbox/resources/license
|
|
7
|
+
*/
|
|
8
|
+
import { AtxHeaderDto } from "./atx-header-dto";
|
|
9
|
+
export interface AtxHttpRequestDto {
|
|
10
|
+
body: any;
|
|
11
|
+
reportProgress: boolean;
|
|
12
|
+
withCredentials: boolean;
|
|
13
|
+
responseType: string;
|
|
14
|
+
method: string;
|
|
15
|
+
headers: AtxHeaderDto[];
|
|
16
|
+
url: string;
|
|
17
|
+
params: string;
|
|
18
|
+
}
|
package/lib/framework/mock/http-monitoring-console/model/business/io/atx-http-response.dto.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright Pascal ECHEMANN. All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license that can be found in
|
|
6
|
+
* the LICENSE file at https://pascalechemann.com/angular-toolbox/resources/license
|
|
7
|
+
*/
|
|
8
|
+
import { AtxBodyDto } from "./atx-body-dto";
|
|
9
|
+
import { AtxHeaderDto } from "./atx-header-dto";
|
|
10
|
+
export interface AtxHttpResponseDto {
|
|
11
|
+
headers: AtxHeaderDto[];
|
|
12
|
+
status: number;
|
|
13
|
+
statusText: string;
|
|
14
|
+
url: string | null;
|
|
15
|
+
body: AtxBodyDto;
|
|
16
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright Pascal ECHEMANN. All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license that can be found in
|
|
6
|
+
* the LICENSE file at https://pascalechemann.com/angular-toolbox/resources/license
|
|
7
|
+
*/
|
|
8
|
+
import { AtxHttpLogDto } from "./atx-http-log.dto";
|
|
9
|
+
export interface HMFL {
|
|
10
|
+
logs: AtxHttpLogDto[];
|
|
11
|
+
timestamp: number;
|
|
12
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { HttpMockLoggingService, Log } from '../../../../../model';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class AtxLogIoService {
|
|
4
|
+
private _logger;
|
|
5
|
+
private readonly _converter;
|
|
6
|
+
constructor(_logger: HttpMockLoggingService);
|
|
7
|
+
exportFile(logs: Log[]): void;
|
|
8
|
+
importFile(): void;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AtxLogIoService, never>;
|
|
10
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AtxLogIoService>;
|
|
11
|
+
}
|