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.
Files changed (223) hide show
  1. package/README.md +1 -1
  2. package/esm2022/lib/core/bridge/app-bridge.mjs +3 -3
  3. package/esm2022/lib/core/error/app-bridge-error.mjs +3 -3
  4. package/esm2022/lib/core/error/http-mock-service-error.mjs +3 -3
  5. package/esm2022/lib/core/error/integrity-error.mjs +3 -3
  6. package/esm2022/lib/core/error/subscription-error.mjs +3 -3
  7. package/esm2022/lib/core/impl/lang/identifiable-component.mjs +3 -3
  8. package/esm2022/lib/core/impl/version/version.impl.mjs +3 -3
  9. package/esm2022/lib/framework/index.mjs +3 -1
  10. package/esm2022/lib/framework/logging/connector/console-log-connector.mjs +48 -0
  11. package/esm2022/lib/framework/logging/connector/default-log-connector.mjs +34 -0
  12. package/esm2022/lib/framework/logging/connector/html-log-connector.mjs +177 -0
  13. package/esm2022/lib/framework/logging/connector/index.mjs +4 -0
  14. package/esm2022/lib/framework/logging/impl/abstract-logger.mjs +100 -0
  15. package/esm2022/lib/framework/logging/impl/index.mjs +3 -0
  16. package/esm2022/lib/framework/logging/impl/log-impl.mjs +28 -0
  17. package/esm2022/lib/framework/logging/index.mjs +4 -0
  18. package/esm2022/lib/framework/logging/util/index.mjs +4 -0
  19. package/esm2022/lib/framework/logging/util/log.builder.mjs +28 -0
  20. package/esm2022/lib/framework/logging/util/log.constant.mjs +24 -0
  21. package/esm2022/lib/framework/logging/util/log.util.mjs +142 -0
  22. package/esm2022/lib/framework/mock/http/core/data-storage.mjs +1 -1
  23. package/esm2022/lib/framework/mock/http/core/response-delay.mjs +9 -0
  24. package/esm2022/lib/framework/mock/http/event/event-target.impl.mjs +15 -1
  25. package/esm2022/lib/framework/mock/http/logging/http-mock-logger.mjs +15 -0
  26. package/esm2022/lib/framework/mock/http/logging/http-mock-logging-metadata.builder.mjs +35 -0
  27. package/esm2022/lib/framework/mock/http/path-to-regexp/escape-to-regexp-string.mjs +3 -3
  28. package/esm2022/lib/framework/mock/http/path-to-regexp/model/lex-token.mjs +3 -3
  29. package/esm2022/lib/framework/mock/http/util/data-storage.builder.mjs +5 -3
  30. package/esm2022/lib/framework/mock/http/util/http-headers.util.mjs +18 -3
  31. package/esm2022/lib/framework/mock/http/util/http-mock-max-delay.mjs +12 -0
  32. package/esm2022/lib/framework/mock/http/util/http-mock-response-delay.util.mjs +33 -0
  33. package/esm2022/lib/framework/mock/http/util/http-mock-response.builder.mjs +45 -9
  34. package/esm2022/lib/framework/mock/http/util/index.mjs +2 -1
  35. package/esm2022/lib/framework/mock/http/xhr/delegate-xhr.mjs +75 -41
  36. package/esm2022/lib/framework/mock/http/xhr/http-mock-factory.impl.mjs +4 -3
  37. package/esm2022/lib/framework/mock/http/xhr/http-mock-factory.mjs +3 -2
  38. package/esm2022/lib/framework/mock/http/xhr/xhr-proxy-impl.mjs +7 -6
  39. package/esm2022/lib/framework/mock/http-monitoring-console/component/console-footer/console-footer.component.mjs +30 -0
  40. package/esm2022/lib/framework/mock/http-monitoring-console/component/console-menu/console-menu.component.mjs +30 -0
  41. package/esm2022/lib/framework/mock/http-monitoring-console/component/http-monitoring-console/http-monitoring-console.component.mjs +140 -0
  42. package/esm2022/lib/framework/mock/http-monitoring-console/component/renderer/icon-renderer/icon-renderer.component.mjs +37 -0
  43. package/esm2022/lib/framework/mock/http-monitoring-console/component/renderer/json-viewer/json-viewer.component.mjs +34 -0
  44. package/esm2022/lib/framework/mock/http-monitoring-console/component/renderer/json-viewer-panel/json-viewer-panel.component.mjs +27 -0
  45. package/esm2022/lib/framework/mock/http-monitoring-console/component/renderer/payload-renderer/payload-renderer.component.mjs +50 -0
  46. package/esm2022/lib/framework/mock/http-monitoring-console/component/renderer/response-body-renderer/response-body-renderer.component.mjs +50 -0
  47. package/esm2022/lib/framework/mock/http-monitoring-console/component/renderer/response-preview-renderer/response-preview-renderer.component.mjs +71 -0
  48. package/esm2022/lib/framework/mock/http-monitoring-console/component/renderer/timing-renderer/timing-renderer.component.mjs +55 -0
  49. package/esm2022/lib/framework/mock/http-monitoring-console/component/request-details/request-details.component.mjs +67 -0
  50. package/esm2022/lib/framework/mock/http-monitoring-console/connector/http-monitoring-console-log-connector.mjs +52 -0
  51. package/esm2022/lib/framework/mock/http-monitoring-console/index.mjs +2 -0
  52. package/esm2022/lib/framework/mock/http-monitoring-console/model/business/atx-console-action-type.mjs +14 -0
  53. package/esm2022/lib/framework/mock/http-monitoring-console/model/business/atx-console-action.mjs +9 -0
  54. package/esm2022/lib/framework/mock/http-monitoring-console/model/business/atx-console-json.mjs +9 -0
  55. package/esm2022/lib/framework/mock/http-monitoring-console/model/business/atx-is-imported-log.mjs +10 -0
  56. package/esm2022/lib/framework/mock/http-monitoring-console/model/business/io/atx-body-dto.mjs +9 -0
  57. package/esm2022/lib/framework/mock/http-monitoring-console/model/business/io/atx-header-dto.mjs +9 -0
  58. package/esm2022/lib/framework/mock/http-monitoring-console/model/business/io/atx-http-log-metadata.dto.mjs +9 -0
  59. package/esm2022/lib/framework/mock/http-monitoring-console/model/business/io/atx-http-log.dto.mjs +9 -0
  60. package/esm2022/lib/framework/mock/http-monitoring-console/model/business/io/atx-http-request-metadata.dto.ts.mjs +9 -0
  61. package/esm2022/lib/framework/mock/http-monitoring-console/model/business/io/atx-http-request.dto.mjs +9 -0
  62. package/esm2022/lib/framework/mock/http-monitoring-console/model/business/io/atx-http-response.dto.mjs +9 -0
  63. package/esm2022/lib/framework/mock/http-monitoring-console/model/business/io/hmfl.mjs +9 -0
  64. package/esm2022/lib/framework/mock/http-monitoring-console/model/service/atx-log-io.service.mjs +77 -0
  65. package/esm2022/lib/framework/mock/http-monitoring-console/model/service/io/body-converter.mjs +22 -0
  66. package/esm2022/lib/framework/mock/http-monitoring-console/model/service/io/body-serializer.mjs +47 -0
  67. package/esm2022/lib/framework/mock/http-monitoring-console/model/service/io/http-request-converter.mjs +44 -0
  68. package/esm2022/lib/framework/mock/http-monitoring-console/model/service/io/http-response-converter.mjs +32 -0
  69. package/esm2022/lib/framework/mock/http-monitoring-console/model/service/io/log-converter.mjs +31 -0
  70. package/esm2022/lib/framework/mock/http-monitoring-console/model/service/io/log-headers-converter.mjs +35 -0
  71. package/esm2022/lib/framework/mock/http-monitoring-console/model/service/io/log-message.util.mjs +19 -0
  72. package/esm2022/lib/framework/mock/http-monitoring-console/model/service/io/log-metadata-converter.mjs +27 -0
  73. package/esm2022/lib/framework/mock/http-monitoring-console/model/service/io/request-metadata-converter.mjs +29 -0
  74. package/esm2022/lib/framework/mock/http-monitoring-console/util/console-body-type.mjs +18 -0
  75. package/esm2022/lib/framework/mock/http-monitoring-console/util/console-type-class.mjs +17 -0
  76. package/esm2022/lib/framework/mock/http-monitoring-console/util/data.util.mjs +75 -0
  77. package/esm2022/lib/framework/mock/http-monitoring-console/util/size.util.mjs +35 -0
  78. package/esm2022/lib/framework/mock/http-monitoring-console/util/url.util.mjs +26 -0
  79. package/esm2022/lib/model/business/index.mjs +2 -1
  80. package/esm2022/lib/model/business/lang/app-bridge-command.mjs +3 -3
  81. package/esm2022/lib/model/business/lang/destroyable.mjs +3 -3
  82. package/esm2022/lib/model/business/lang/identifiable.mjs +3 -3
  83. package/esm2022/lib/model/business/logging/http-mock-logging-constant.enum.mjs +34 -0
  84. package/esm2022/lib/model/business/logging/index.mjs +6 -0
  85. package/esm2022/lib/model/business/logging/log-connector.mjs +9 -0
  86. package/esm2022/lib/model/business/logging/log-level.enum.mjs +35 -0
  87. package/esm2022/lib/model/business/logging/log.mjs +9 -0
  88. package/esm2022/lib/model/business/logging/logger.mjs +2 -0
  89. package/esm2022/lib/model/business/logging/transactional-logger.mjs +9 -0
  90. package/esm2022/lib/model/business/mock/http/config/http-mock-production-policy.enum.mjs +27 -0
  91. package/esm2022/lib/model/business/mock/http/config/http-mocking-framework-config.mjs +9 -0
  92. package/esm2022/lib/model/business/mock/http/config/http-mocking-framework-config.provider.mjs +33 -0
  93. package/esm2022/lib/model/business/mock/http/config/index.mjs +4 -0
  94. package/esm2022/lib/model/business/mock/http/fetch-client.mjs +7 -2
  95. package/esm2022/lib/model/business/mock/http/http-method-mock.mjs +1 -1
  96. package/esm2022/lib/model/business/mock/http/http-mock-request-metadata.mjs +9 -0
  97. package/esm2022/lib/model/business/mock/http/index.mjs +4 -1
  98. package/esm2022/lib/model/business/mock/http/logging/http-mock-logging-metadata.mjs +9 -0
  99. package/esm2022/lib/model/business/mock/http/logging/http-mock-logging-prefetch-metadata.mjs +9 -0
  100. package/esm2022/lib/model/business/mock/http/logging/index.mjs +3 -0
  101. package/esm2022/lib/model/service/index.mjs +3 -2
  102. package/esm2022/lib/model/service/logging/index.mjs +2 -0
  103. package/esm2022/lib/model/service/logging/logger-service.mjs +24 -0
  104. package/esm2022/lib/model/service/mock/http/http-mock.service.mjs +45 -6
  105. package/esm2022/lib/model/service/mock/http/index.mjs +3 -0
  106. package/esm2022/lib/model/service/mock/http/logging/http-mock-logging-service.mjs +110 -0
  107. package/esm2022/lib/model/service/mock/http/logging/index.mjs +2 -0
  108. package/esm2022/lib/model/service/ui/app-bridge.service.mjs +3 -3
  109. package/esm2022/lib/model/service/ui/dark-mode.service.mjs +3 -3
  110. package/esm2022/lib/model/service/version/angular-toolbox-version.service.mjs +3 -3
  111. package/esm2022/lib/util/default-scroll-behavior.mjs +3 -3
  112. package/esm2022/lib/util/http-mocking-framework-config.manager.mjs +129 -0
  113. package/fesm2022/angular-toolbox.mjs +3338 -997
  114. package/fesm2022/angular-toolbox.mjs.map +1 -1
  115. package/lib/core/bridge/app-bridge.d.ts +2 -2
  116. package/lib/core/error/app-bridge-error.d.ts +2 -2
  117. package/lib/core/error/http-mock-service-error.d.ts +2 -2
  118. package/lib/core/error/integrity-error.d.ts +2 -2
  119. package/lib/core/error/subscription-error.d.ts +2 -2
  120. package/lib/core/impl/lang/identifiable-component.d.ts +2 -2
  121. package/lib/core/impl/version/version.impl.d.ts +2 -2
  122. package/lib/framework/index.d.ts +2 -0
  123. package/lib/framework/logging/connector/console-log-connector.d.ts +34 -0
  124. package/lib/framework/logging/connector/default-log-connector.d.ts +34 -0
  125. package/lib/framework/logging/connector/html-log-connector.d.ts +72 -0
  126. package/lib/framework/logging/connector/index.d.ts +3 -0
  127. package/lib/framework/logging/impl/abstract-logger.d.ts +69 -0
  128. package/lib/framework/logging/impl/index.d.ts +2 -0
  129. package/lib/framework/logging/impl/log-impl.d.ts +42 -0
  130. package/lib/framework/logging/index.d.ts +3 -0
  131. package/lib/framework/logging/util/index.d.ts +3 -0
  132. package/lib/framework/logging/util/log.builder.d.ts +24 -0
  133. package/lib/framework/logging/util/log.constant.d.ts +23 -0
  134. package/lib/framework/logging/util/log.util.d.ts +48 -0
  135. package/lib/framework/mock/http/core/data-storage.d.ts +6 -1
  136. package/lib/framework/mock/http/core/response-delay.d.ts +23 -0
  137. package/lib/framework/mock/http/event/event-target.impl.d.ts +8 -0
  138. package/lib/framework/mock/http/logging/http-mock-logger.d.ts +14 -0
  139. package/lib/framework/mock/http/logging/http-mock-logging-metadata.builder.d.ts +20 -0
  140. package/lib/framework/mock/http/path-to-regexp/escape-to-regexp-string.d.ts +2 -2
  141. package/lib/framework/mock/http/path-to-regexp/model/lex-token.d.ts +2 -2
  142. package/lib/framework/mock/http/util/data-storage.builder.d.ts +3 -2
  143. package/lib/framework/mock/http/util/http-headers.util.d.ts +10 -0
  144. package/lib/framework/mock/http/util/http-mock-max-delay.d.ts +11 -0
  145. package/lib/framework/mock/http/util/http-mock-response-delay.util.d.ts +22 -0
  146. package/lib/framework/mock/http/util/http-mock-response.builder.d.ts +16 -0
  147. package/lib/framework/mock/http/util/index.d.ts +1 -0
  148. package/lib/framework/mock/http/xhr/delegate-xhr.d.ts +11 -4
  149. package/lib/framework/mock/http/xhr/http-mock-factory.impl.d.ts +3 -1
  150. package/lib/framework/mock/http/xhr/xhr-proxy-impl.d.ts +6 -5
  151. package/lib/framework/mock/http-monitoring-console/component/console-footer/console-footer.component.d.ts +8 -0
  152. package/lib/framework/mock/http-monitoring-console/component/console-menu/console-menu.component.d.ts +21 -0
  153. package/lib/framework/mock/http-monitoring-console/component/http-monitoring-console/http-monitoring-console.component.d.ts +42 -0
  154. package/lib/framework/mock/http-monitoring-console/component/renderer/icon-renderer/icon-renderer.component.d.ts +12 -0
  155. package/lib/framework/mock/http-monitoring-console/component/renderer/json-viewer/json-viewer.component.d.ts +8 -0
  156. package/lib/framework/mock/http-monitoring-console/component/renderer/json-viewer-panel/json-viewer-panel.component.d.ts +7 -0
  157. package/lib/framework/mock/http-monitoring-console/component/renderer/payload-renderer/payload-renderer.component.d.ts +20 -0
  158. package/lib/framework/mock/http-monitoring-console/component/renderer/response-body-renderer/response-body-renderer.component.d.ts +20 -0
  159. package/lib/framework/mock/http-monitoring-console/component/renderer/response-preview-renderer/response-preview-renderer.component.d.ts +27 -0
  160. package/lib/framework/mock/http-monitoring-console/component/renderer/timing-renderer/timing-renderer.component.d.ts +13 -0
  161. package/lib/framework/mock/http-monitoring-console/component/request-details/request-details.component.d.ts +27 -0
  162. package/lib/framework/mock/http-monitoring-console/connector/http-monitoring-console-log-connector.d.ts +40 -0
  163. package/lib/framework/mock/http-monitoring-console/index.d.ts +1 -0
  164. package/lib/framework/mock/http-monitoring-console/model/business/atx-console-action-type.d.ts +12 -0
  165. package/lib/framework/mock/http-monitoring-console/model/business/atx-console-action.d.ts +12 -0
  166. package/lib/framework/mock/http-monitoring-console/model/business/atx-console-json.d.ts +14 -0
  167. package/lib/framework/mock/http-monitoring-console/model/business/atx-is-imported-log.d.ts +9 -0
  168. package/lib/framework/mock/http-monitoring-console/model/business/io/atx-body-dto.d.ts +11 -0
  169. package/lib/framework/mock/http-monitoring-console/model/business/io/atx-header-dto.d.ts +11 -0
  170. package/lib/framework/mock/http-monitoring-console/model/business/io/atx-http-log-metadata.dto.d.ts +18 -0
  171. package/lib/framework/mock/http-monitoring-console/model/business/io/atx-http-log.dto.d.ts +23 -0
  172. package/lib/framework/mock/http-monitoring-console/model/business/io/atx-http-request-metadata.dto.ts.d.ts +32 -0
  173. package/lib/framework/mock/http-monitoring-console/model/business/io/atx-http-request.dto.d.ts +18 -0
  174. package/lib/framework/mock/http-monitoring-console/model/business/io/atx-http-response.dto.d.ts +16 -0
  175. package/lib/framework/mock/http-monitoring-console/model/business/io/hmfl.d.ts +12 -0
  176. package/lib/framework/mock/http-monitoring-console/model/service/atx-log-io.service.d.ts +11 -0
  177. package/lib/framework/mock/http-monitoring-console/model/service/io/body-converter.d.ts +12 -0
  178. package/lib/framework/mock/http-monitoring-console/model/service/io/body-serializer.d.ts +13 -0
  179. package/lib/framework/mock/http-monitoring-console/model/service/io/http-request-converter.d.ts +13 -0
  180. package/lib/framework/mock/http-monitoring-console/model/service/io/http-response-converter.d.ts +13 -0
  181. package/lib/framework/mock/http-monitoring-console/model/service/io/log-converter.d.ts +13 -0
  182. package/lib/framework/mock/http-monitoring-console/model/service/io/log-headers-converter.d.ts +13 -0
  183. package/lib/framework/mock/http-monitoring-console/model/service/io/log-message.util.d.ts +12 -0
  184. package/lib/framework/mock/http-monitoring-console/model/service/io/log-metadata-converter.d.ts +13 -0
  185. package/lib/framework/mock/http-monitoring-console/model/service/io/request-metadata-converter.d.ts +13 -0
  186. package/lib/framework/mock/http-monitoring-console/util/console-body-type.d.ts +16 -0
  187. package/lib/framework/mock/http-monitoring-console/util/console-type-class.d.ts +15 -0
  188. package/lib/framework/mock/http-monitoring-console/util/data.util.d.ts +13 -0
  189. package/lib/framework/mock/http-monitoring-console/util/size.util.d.ts +11 -0
  190. package/lib/framework/mock/http-monitoring-console/util/url.util.d.ts +13 -0
  191. package/lib/model/business/index.d.ts +1 -0
  192. package/lib/model/business/lang/app-bridge-command.d.ts +2 -2
  193. package/lib/model/business/lang/destroyable.d.ts +2 -2
  194. package/lib/model/business/lang/identifiable.d.ts +2 -2
  195. package/lib/model/business/logging/http-mock-logging-constant.enum.d.ts +32 -0
  196. package/lib/model/business/logging/index.d.ts +5 -0
  197. package/lib/model/business/logging/log-connector.d.ts +36 -0
  198. package/lib/model/business/logging/log-level.enum.d.ts +33 -0
  199. package/lib/model/business/logging/log.d.ts +34 -0
  200. package/lib/model/business/logging/logger.d.ts +58 -0
  201. package/lib/model/business/logging/transactional-logger.d.ts +28 -0
  202. package/lib/model/business/mock/http/config/http-mock-production-policy.enum.d.ts +24 -0
  203. package/lib/model/business/mock/http/config/http-mocking-framework-config.d.ts +21 -0
  204. package/lib/model/business/mock/http/config/http-mocking-framework-config.provider.d.ts +21 -0
  205. package/lib/model/business/mock/http/config/index.d.ts +3 -0
  206. package/lib/model/business/mock/http/fetch-client.d.ts +1 -1
  207. package/lib/model/business/mock/http/http-method-mock.d.ts +1 -6
  208. package/lib/model/business/mock/http/http-mock-request-metadata.d.ts +33 -0
  209. package/lib/model/business/mock/http/index.d.ts +3 -0
  210. package/lib/model/business/mock/http/logging/http-mock-logging-metadata.d.ts +15 -0
  211. package/lib/model/business/mock/http/logging/http-mock-logging-prefetch-metadata.d.ts +16 -0
  212. package/lib/model/business/mock/http/logging/index.d.ts +2 -0
  213. package/lib/model/service/index.d.ts +2 -1
  214. package/lib/model/service/logging/index.d.ts +1 -0
  215. package/lib/model/service/logging/logger-service.d.ts +9 -0
  216. package/lib/model/service/mock/http/http-mock.service.d.ts +35 -2
  217. package/lib/model/service/mock/http/index.d.ts +2 -0
  218. package/lib/model/service/mock/http/logging/http-mock-logging-service.d.ts +78 -0
  219. package/lib/model/service/mock/http/logging/index.d.ts +1 -0
  220. package/lib/model/service/ui/dark-mode.service.d.ts +2 -2
  221. package/lib/util/default-scroll-behavior.d.ts +2 -2
  222. package/lib/util/http-mocking-framework-config.manager.d.ts +66 -0
  223. package/package.json +1 -1
@@ -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 { HttpRequest } from "@angular/common/http";
9
+ import { HttpMockRequestMetadata } from "../http-mock-request-metadata";
10
+ /**
11
+ * The markup interface for all prefetch log metadata of the HTTP Mocking Framework.
12
+ */
13
+ export interface HttpMockLoggingPrefetchMetadata {
14
+ request: HttpRequest<any>;
15
+ requestMetadata: HttpMockRequestMetadata;
16
+ }
@@ -0,0 +1,2 @@
1
+ export * from "./http-mock-logging-prefetch-metadata";
2
+ export * from "./http-mock-logging-metadata";
@@ -1,4 +1,5 @@
1
1
  export * from './subscription/subscription.service';
2
2
  export * from './ui';
3
3
  export * from './version';
4
- export * from './mock/http/http-mock.service';
4
+ export * from './mock/http';
5
+ export * from './logging';
@@ -0,0 +1 @@
1
+ export * from './logger-service';
@@ -0,0 +1,9 @@
1
+ import { AbstractLogger } from "../../../framework";
2
+ import * as i0 from "@angular/core";
3
+ /**
4
+ * A convenient high-level singleton that implements the `Logger` interface.
5
+ */
6
+ export declare class LoggerService extends AbstractLogger {
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<LoggerService, never>;
8
+ static ɵprov: i0.ɵɵInjectableDeclaration<LoggerService>;
9
+ }
@@ -1,7 +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 { OnDestroy } from '@angular/core';
1
9
  import { HttpMockConfig } from '../../../business';
2
10
  import { HTTPMethodRef } from '../../../../framework/mock/http/util/http-method-ref.enum';
3
11
  import { RouteMockConfig } from '../../../../framework/mock/http/config/route-mock-config';
4
12
  import { Uuid } from '../../../../util';
13
+ import { HttpMockingFrameworkConfigManager } from '../../../../util/http-mocking-framework-config.manager';
14
+ import { HttpMockingFrameworkConfig } from '../../../business/mock/http/config/http-mocking-framework-config';
15
+ import { IdentifiableComponent } from '../../../../core';
5
16
  import * as i0 from "@angular/core";
6
17
  /**
7
18
  * @private
@@ -11,7 +22,7 @@ export declare const HTTP_MOCK_SERVICE: string;
11
22
  /**
12
23
  * The `HttpMockService` class provides the API for managing HTTP mock configuration objects.
13
24
  */
14
- export declare class HttpMockService {
25
+ export declare class HttpMockService extends IdentifiableComponent implements OnDestroy {
15
26
  /**
16
27
  * @private
17
28
  * Ensures that class type is still accessible after TypeScript compilation.
@@ -32,6 +43,28 @@ export declare class HttpMockService {
32
43
  * The reference to the current app URL origin.
33
44
  */
34
45
  private readonly APP_ORIGIN;
46
+ /**
47
+ * @private
48
+ * The reference to the èHttpMockingFrameworkConfigManager` instance.
49
+ */
50
+ private readonly _configMmanager;
51
+ /**
52
+ * Returns the vreference to the `HttpMockingFrameworkConfigManager` instance,
53
+ * associated with this service.
54
+ */
55
+ get configMmanager(): HttpMockingFrameworkConfigManager;
56
+ /**
57
+ * @private
58
+ * Creates a new `HttpMockService` instance.
59
+ *
60
+ * @param _document The reference to the app document.
61
+ * @param config The optional config provider for the HTTP Mocking Framework.
62
+ */
63
+ constructor(document: Document, config: HttpMockingFrameworkConfig);
64
+ /**
65
+ * @private
66
+ */
67
+ ngOnDestroy(): void;
35
68
  /**
36
69
  * Adds the specified `HttpMockConfig` object to this `HttpMockService` instance.
37
70
  *
@@ -96,6 +129,6 @@ export declare class HttpMockService {
96
129
  * @rivate
97
130
  */
98
131
  private cleanConfig;
99
- static ɵfac: i0.ɵɵFactoryDeclaration<HttpMockService, never>;
132
+ static ɵfac: i0.ɵɵFactoryDeclaration<HttpMockService, [null, { optional: true; }]>;
100
133
  static ɵprov: i0.ɵɵInjectableDeclaration<HttpMockService>;
101
134
  }
@@ -0,0 +1,2 @@
1
+ export * from "./http-mock.service";
2
+ export * from "./logging";
@@ -0,0 +1,78 @@
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 { OnDestroy } from "@angular/core";
9
+ import { TransactionalLogger, HttpMockLoggingMetadata, LogConnector, Log, HttpMockLoggingPrefetchMetadata } from "../../../../business";
10
+ import * as i0 from "@angular/core";
11
+ /**
12
+ * @private
13
+ *
14
+ * The utility service that manages the HTTP Mocking Framework logs.
15
+ */
16
+ export declare class HttpMockLoggingService implements TransactionalLogger, OnDestroy {
17
+ /**
18
+ * Returns the number of logs currently processed by this logger.
19
+ */
20
+ get size(): number;
21
+ /**
22
+ * The `HttpMockLogger` instance encapsulated by this service.
23
+ */
24
+ private _logger;
25
+ /**
26
+ * @private
27
+ */
28
+ constructor();
29
+ /**
30
+ * Processes information logs with the specified metadata.
31
+ *
32
+ * @param metadata The metadata associated with the HTTP method to log.
33
+ *
34
+ * @return The log for the specified metadata.
35
+ */
36
+ info(metadata: HttpMockLoggingMetadata): Log;
37
+ /**
38
+ * Processes error logs with the specified metadata.
39
+ *
40
+ * @param metadata The metadata associated with the HTTP method to log.
41
+ *
42
+ * @return The log for the specified metadata.
43
+ */
44
+ error(metadata: HttpMockLoggingMetadata): Log;
45
+ /**
46
+ * Processes a special kind of logs that are used to indicate that a HTTP operation
47
+ * started and no response is available yet.
48
+ *
49
+ * @param metadata The metadata associated with the HTTP method to log.
50
+ */
51
+ prefetch(metadata: HttpMockLoggingPrefetchMetadata): void;
52
+ /**
53
+ * @inheritdoc
54
+ */
55
+ clearLogs(): void;
56
+ /**
57
+ * @inheritdoc
58
+ */
59
+ setLogConnector(value: LogConnector | null): void;
60
+ /**
61
+ * @inheritdoc
62
+ */
63
+ getLogConnector(): LogConnector;
64
+ /**
65
+ * @inheritdoc
66
+ */
67
+ destroy(): void;
68
+ /**
69
+ * @inheritdoc
70
+ */
71
+ ngOnDestroy(): void;
72
+ /**
73
+ * @inheritdoc
74
+ */
75
+ private getLastLog;
76
+ static ɵfac: i0.ɵɵFactoryDeclaration<HttpMockLoggingService, never>;
77
+ static ɵprov: i0.ɵɵInjectableDeclaration<HttpMockLoggingService>;
78
+ }
@@ -0,0 +1 @@
1
+ export * from "./http-mock-logging-service";
@@ -2,8 +2,8 @@
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 ound in
6
- * fthe LICENSE file at https://pascalechemann.com/angular-toolbox/resources/license
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 { EventEmitter } from '@angular/core';
9
9
  import { DarkModeConfig } from '../../business';
@@ -2,8 +2,8 @@
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 ound in
6
- * fthe LICENSE file at https://pascalechemann.com/angular-toolbox/resources/license
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
  /**
9
9
  * @private
@@ -0,0 +1,66 @@
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 { Destroyable, HttpMockProductionPolicy } from "../model";
9
+ import { HttpMockingFrameworkConfig } from "../model/business/mock/http/config/http-mocking-framework-config";
10
+ import { HTTPMethodRef } from "../framework/mock/http/util/http-method-ref.enum";
11
+ /**
12
+ * The object that manages the HTTP Mocking Framework options.
13
+ */
14
+ export declare class HttpMockingFrameworkConfigManager implements Destroyable {
15
+ /**
16
+ * @private
17
+ */
18
+ private _document;
19
+ /**
20
+ * @private
21
+ */
22
+ private _config?;
23
+ /**
24
+ * @private
25
+ */
26
+ private readonly _isProdMode;
27
+ /**
28
+ * @private
29
+ */
30
+ private readonly _prodPolicy;
31
+ /**
32
+ * Returns the value specified by the `disableVisualFlag` of the `HttpMockingFrameworkConfig` provider,
33
+ * or `false` when no provider is defined.
34
+ */
35
+ get disableVisualFlag(): boolean;
36
+ /**
37
+ * Returns the value specified by the `productionPolicy` of the `HttpMockingFrameworkConfig` provider,
38
+ * or `HttpMockProductionPolicy.ERROR` when no provider is defined.
39
+ */
40
+ get productionPolicy(): HttpMockProductionPolicy;
41
+ /**
42
+ * @private
43
+ * Creates and Initializes the manager with the specified config.
44
+ *
45
+ * @param document The reference to the `Document` object, injected by Angular.
46
+ * @param isDevMode Indicates wheter Angular runs in development mode (`true`), or in production mode (`false`).
47
+ * @param config The `HttpMockingFrameworkConfi` provider.
48
+ */
49
+ constructor(document: Document, isDevMode: boolean, config?: HttpMockingFrameworkConfig);
50
+ /**
51
+ * Apply a strategy depending on the current production policy and environment.
52
+ * @param route An optional parameter used when the methhod is associated to a HTTP request.
53
+ * Must be the representation of the intercepted route path.
54
+ * @param method An optional parameter used when the methhod is associated to a HTTP request.
55
+ * Must be the representation of the intercepted HTTP method.
56
+ */
57
+ checkPolicy(route?: string, method?: HTTPMethodRef | undefined): void;
58
+ /**
59
+ * @private
60
+ */
61
+ destroy(): void;
62
+ /**
63
+ * @private
64
+ */
65
+ private createVisualFlag;
66
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "angular-toolbox",
3
- "version": "0.11.2",
3
+ "version": "0.11.4",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^18.0.0",