angular-toolbox 0.11.3 → 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 (211) 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/fetch-client.mjs +7 -2
  91. package/esm2022/lib/model/business/mock/http/http-method-mock.mjs +1 -1
  92. package/esm2022/lib/model/business/mock/http/http-mock-request-metadata.mjs +9 -0
  93. package/esm2022/lib/model/business/mock/http/index.mjs +3 -1
  94. package/esm2022/lib/model/business/mock/http/logging/http-mock-logging-metadata.mjs +9 -0
  95. package/esm2022/lib/model/business/mock/http/logging/http-mock-logging-prefetch-metadata.mjs +9 -0
  96. package/esm2022/lib/model/business/mock/http/logging/index.mjs +3 -0
  97. package/esm2022/lib/model/service/index.mjs +3 -2
  98. package/esm2022/lib/model/service/logging/index.mjs +2 -0
  99. package/esm2022/lib/model/service/logging/logger-service.mjs +24 -0
  100. package/esm2022/lib/model/service/mock/http/index.mjs +3 -0
  101. package/esm2022/lib/model/service/mock/http/logging/http-mock-logging-service.mjs +110 -0
  102. package/esm2022/lib/model/service/mock/http/logging/index.mjs +2 -0
  103. package/esm2022/lib/model/service/ui/app-bridge.service.mjs +3 -3
  104. package/esm2022/lib/model/service/ui/dark-mode.service.mjs +3 -3
  105. package/esm2022/lib/model/service/version/angular-toolbox-version.service.mjs +3 -3
  106. package/esm2022/lib/util/default-scroll-behavior.mjs +3 -3
  107. package/fesm2022/angular-toolbox.mjs +3112 -1000
  108. package/fesm2022/angular-toolbox.mjs.map +1 -1
  109. package/lib/core/bridge/app-bridge.d.ts +2 -2
  110. package/lib/core/error/app-bridge-error.d.ts +2 -2
  111. package/lib/core/error/http-mock-service-error.d.ts +2 -2
  112. package/lib/core/error/integrity-error.d.ts +2 -2
  113. package/lib/core/error/subscription-error.d.ts +2 -2
  114. package/lib/core/impl/lang/identifiable-component.d.ts +2 -2
  115. package/lib/core/impl/version/version.impl.d.ts +2 -2
  116. package/lib/framework/index.d.ts +2 -0
  117. package/lib/framework/logging/connector/console-log-connector.d.ts +34 -0
  118. package/lib/framework/logging/connector/default-log-connector.d.ts +34 -0
  119. package/lib/framework/logging/connector/html-log-connector.d.ts +72 -0
  120. package/lib/framework/logging/connector/index.d.ts +3 -0
  121. package/lib/framework/logging/impl/abstract-logger.d.ts +69 -0
  122. package/lib/framework/logging/impl/index.d.ts +2 -0
  123. package/lib/framework/logging/impl/log-impl.d.ts +42 -0
  124. package/lib/framework/logging/index.d.ts +3 -0
  125. package/lib/framework/logging/util/index.d.ts +3 -0
  126. package/lib/framework/logging/util/log.builder.d.ts +24 -0
  127. package/lib/framework/logging/util/log.constant.d.ts +23 -0
  128. package/lib/framework/logging/util/log.util.d.ts +48 -0
  129. package/lib/framework/mock/http/core/data-storage.d.ts +6 -1
  130. package/lib/framework/mock/http/core/response-delay.d.ts +23 -0
  131. package/lib/framework/mock/http/event/event-target.impl.d.ts +8 -0
  132. package/lib/framework/mock/http/logging/http-mock-logger.d.ts +14 -0
  133. package/lib/framework/mock/http/logging/http-mock-logging-metadata.builder.d.ts +20 -0
  134. package/lib/framework/mock/http/path-to-regexp/escape-to-regexp-string.d.ts +2 -2
  135. package/lib/framework/mock/http/path-to-regexp/model/lex-token.d.ts +2 -2
  136. package/lib/framework/mock/http/util/data-storage.builder.d.ts +3 -2
  137. package/lib/framework/mock/http/util/http-headers.util.d.ts +10 -0
  138. package/lib/framework/mock/http/util/http-mock-max-delay.d.ts +11 -0
  139. package/lib/framework/mock/http/util/http-mock-response-delay.util.d.ts +22 -0
  140. package/lib/framework/mock/http/util/http-mock-response.builder.d.ts +16 -0
  141. package/lib/framework/mock/http/util/index.d.ts +1 -0
  142. package/lib/framework/mock/http/xhr/delegate-xhr.d.ts +11 -4
  143. package/lib/framework/mock/http/xhr/http-mock-factory.impl.d.ts +3 -1
  144. package/lib/framework/mock/http/xhr/xhr-proxy-impl.d.ts +6 -5
  145. package/lib/framework/mock/http-monitoring-console/component/console-footer/console-footer.component.d.ts +8 -0
  146. package/lib/framework/mock/http-monitoring-console/component/console-menu/console-menu.component.d.ts +21 -0
  147. package/lib/framework/mock/http-monitoring-console/component/http-monitoring-console/http-monitoring-console.component.d.ts +42 -0
  148. package/lib/framework/mock/http-monitoring-console/component/renderer/icon-renderer/icon-renderer.component.d.ts +12 -0
  149. package/lib/framework/mock/http-monitoring-console/component/renderer/json-viewer/json-viewer.component.d.ts +8 -0
  150. package/lib/framework/mock/http-monitoring-console/component/renderer/json-viewer-panel/json-viewer-panel.component.d.ts +7 -0
  151. package/lib/framework/mock/http-monitoring-console/component/renderer/payload-renderer/payload-renderer.component.d.ts +20 -0
  152. package/lib/framework/mock/http-monitoring-console/component/renderer/response-body-renderer/response-body-renderer.component.d.ts +20 -0
  153. package/lib/framework/mock/http-monitoring-console/component/renderer/response-preview-renderer/response-preview-renderer.component.d.ts +27 -0
  154. package/lib/framework/mock/http-monitoring-console/component/renderer/timing-renderer/timing-renderer.component.d.ts +13 -0
  155. package/lib/framework/mock/http-monitoring-console/component/request-details/request-details.component.d.ts +27 -0
  156. package/lib/framework/mock/http-monitoring-console/connector/http-monitoring-console-log-connector.d.ts +40 -0
  157. package/lib/framework/mock/http-monitoring-console/index.d.ts +1 -0
  158. package/lib/framework/mock/http-monitoring-console/model/business/atx-console-action-type.d.ts +12 -0
  159. package/lib/framework/mock/http-monitoring-console/model/business/atx-console-action.d.ts +12 -0
  160. package/lib/framework/mock/http-monitoring-console/model/business/atx-console-json.d.ts +14 -0
  161. package/lib/framework/mock/http-monitoring-console/model/business/atx-is-imported-log.d.ts +9 -0
  162. package/lib/framework/mock/http-monitoring-console/model/business/io/atx-body-dto.d.ts +11 -0
  163. package/lib/framework/mock/http-monitoring-console/model/business/io/atx-header-dto.d.ts +11 -0
  164. package/lib/framework/mock/http-monitoring-console/model/business/io/atx-http-log-metadata.dto.d.ts +18 -0
  165. package/lib/framework/mock/http-monitoring-console/model/business/io/atx-http-log.dto.d.ts +23 -0
  166. package/lib/framework/mock/http-monitoring-console/model/business/io/atx-http-request-metadata.dto.ts.d.ts +32 -0
  167. package/lib/framework/mock/http-monitoring-console/model/business/io/atx-http-request.dto.d.ts +18 -0
  168. package/lib/framework/mock/http-monitoring-console/model/business/io/atx-http-response.dto.d.ts +16 -0
  169. package/lib/framework/mock/http-monitoring-console/model/business/io/hmfl.d.ts +12 -0
  170. package/lib/framework/mock/http-monitoring-console/model/service/atx-log-io.service.d.ts +11 -0
  171. package/lib/framework/mock/http-monitoring-console/model/service/io/body-converter.d.ts +12 -0
  172. package/lib/framework/mock/http-monitoring-console/model/service/io/body-serializer.d.ts +13 -0
  173. package/lib/framework/mock/http-monitoring-console/model/service/io/http-request-converter.d.ts +13 -0
  174. package/lib/framework/mock/http-monitoring-console/model/service/io/http-response-converter.d.ts +13 -0
  175. package/lib/framework/mock/http-monitoring-console/model/service/io/log-converter.d.ts +13 -0
  176. package/lib/framework/mock/http-monitoring-console/model/service/io/log-headers-converter.d.ts +13 -0
  177. package/lib/framework/mock/http-monitoring-console/model/service/io/log-message.util.d.ts +12 -0
  178. package/lib/framework/mock/http-monitoring-console/model/service/io/log-metadata-converter.d.ts +13 -0
  179. package/lib/framework/mock/http-monitoring-console/model/service/io/request-metadata-converter.d.ts +13 -0
  180. package/lib/framework/mock/http-monitoring-console/util/console-body-type.d.ts +16 -0
  181. package/lib/framework/mock/http-monitoring-console/util/console-type-class.d.ts +15 -0
  182. package/lib/framework/mock/http-monitoring-console/util/data.util.d.ts +13 -0
  183. package/lib/framework/mock/http-monitoring-console/util/size.util.d.ts +11 -0
  184. package/lib/framework/mock/http-monitoring-console/util/url.util.d.ts +13 -0
  185. package/lib/model/business/index.d.ts +1 -0
  186. package/lib/model/business/lang/app-bridge-command.d.ts +2 -2
  187. package/lib/model/business/lang/destroyable.d.ts +2 -2
  188. package/lib/model/business/lang/identifiable.d.ts +2 -2
  189. package/lib/model/business/logging/http-mock-logging-constant.enum.d.ts +32 -0
  190. package/lib/model/business/logging/index.d.ts +5 -0
  191. package/lib/model/business/logging/log-connector.d.ts +36 -0
  192. package/lib/model/business/logging/log-level.enum.d.ts +33 -0
  193. package/lib/model/business/logging/log.d.ts +34 -0
  194. package/lib/model/business/logging/logger.d.ts +58 -0
  195. package/lib/model/business/logging/transactional-logger.d.ts +28 -0
  196. package/lib/model/business/mock/http/fetch-client.d.ts +1 -1
  197. package/lib/model/business/mock/http/http-method-mock.d.ts +1 -6
  198. package/lib/model/business/mock/http/http-mock-request-metadata.d.ts +33 -0
  199. package/lib/model/business/mock/http/index.d.ts +2 -0
  200. package/lib/model/business/mock/http/logging/http-mock-logging-metadata.d.ts +15 -0
  201. package/lib/model/business/mock/http/logging/http-mock-logging-prefetch-metadata.d.ts +16 -0
  202. package/lib/model/business/mock/http/logging/index.d.ts +2 -0
  203. package/lib/model/service/index.d.ts +2 -1
  204. package/lib/model/service/logging/index.d.ts +1 -0
  205. package/lib/model/service/logging/logger-service.d.ts +9 -0
  206. package/lib/model/service/mock/http/index.d.ts +2 -0
  207. package/lib/model/service/mock/http/logging/http-mock-logging-service.d.ts +78 -0
  208. package/lib/model/service/mock/http/logging/index.d.ts +1 -0
  209. package/lib/model/service/ui/dark-mode.service.d.ts +2 -2
  210. package/lib/util/default-scroll-behavior.d.ts +2 -2
  211. package/package.json +1 -1
@@ -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 { AtxBodyDto } from "../../business/io/atx-body-dto";
9
+ export declare class BodyConverter {
10
+ static bodyToDto(body: any): AtxBodyDto;
11
+ static dtoToBody(dto: AtxBodyDto): any;
12
+ }
@@ -0,0 +1,13 @@
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 { ConsoleBodyType } from "../../../util/console-body-type";
9
+ export declare class BodySerializer {
10
+ static serialize(data: any, type: ConsoleBodyType): string | null;
11
+ static unserialize(data: any, type: ConsoleBodyType): any;
12
+ private static stringToFormData;
13
+ }
@@ -0,0 +1,13 @@
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 { AtxHttpRequestDto } from "../../business/io/atx-http-request.dto";
10
+ export declare class HttpRequestConverter {
11
+ static buildRequestDto(request: HttpRequest<any>): AtxHttpRequestDto;
12
+ static buildHttpRequest(dto: AtxHttpRequestDto): HttpRequest<any>;
13
+ }
@@ -0,0 +1,13 @@
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 { HttpResponse } from "@angular/common/http";
9
+ import { AtxHttpResponseDto } from "../../business/io/atx-http-response.dto";
10
+ export declare class HttpResponseConverter {
11
+ static buildResponseDto(response: HttpResponse<any>): AtxHttpResponseDto;
12
+ static buildHttpResponse(dto: AtxHttpResponseDto): HttpResponse<any>;
13
+ }
@@ -0,0 +1,13 @@
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 { Log } from "../../../../../../model";
9
+ import { AtxHttpLogDto } from "../../business/io/atx-http-log.dto";
10
+ export declare class LogConverter {
11
+ logToDto(log: Log): AtxHttpLogDto;
12
+ dtoToLog(dto: AtxHttpLogDto): Log;
13
+ }
@@ -0,0 +1,13 @@
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 { HttpHeaders } from "@angular/common/http";
9
+ import { AtxHeaderDto } from "../../business/io/atx-header-dto";
10
+ export declare class HttpHeadersConverter {
11
+ static headersToDto(headers: HttpHeaders): AtxHeaderDto[];
12
+ static dtoToHeaders(headersDto: AtxHeaderDto[]): HttpHeaders;
13
+ }
@@ -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 { HttpMockLoggingConstant } from "../../../../../../model/business/logging/http-mock-logging-constant.enum";
9
+ import { LogLevel } from "../../../../../../model";
10
+ export declare class LogMessageUtil {
11
+ static getMessageFromLevel(level: LogLevel): HttpMockLoggingConstant;
12
+ }
@@ -0,0 +1,13 @@
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 { HttpMockLoggingMetadata } from "../../../../../../model";
9
+ import { AtxHttpLogMetadataDto } from "../../business/io/atx-http-log-metadata.dto";
10
+ export declare class LogMetadataConverter {
11
+ static metadataToDto(metadata: HttpMockLoggingMetadata): AtxHttpLogMetadataDto;
12
+ static dtoToMetadata(dto: AtxHttpLogMetadataDto): HttpMockLoggingMetadata;
13
+ }
@@ -0,0 +1,13 @@
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 { HttpMockRequestMetadata } from "../../../../../../model";
9
+ import { AtxHttpRequestMetadataDto } from "../../business/io/atx-http-request-metadata.dto.ts";
10
+ export declare class RequestMetadataConverter {
11
+ static requestMetadataToDto(metadata: HttpMockRequestMetadata): AtxHttpRequestMetadataDto;
12
+ static dtoToRequestMetadata(metadata: AtxHttpRequestMetadataDto): HttpMockRequestMetadata;
13
+ }
@@ -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
+ export declare enum ConsoleBodyType {
9
+ INVALID = -1,
10
+ NULL = 0,
11
+ JSON = 1,
12
+ TEXT = 2,
13
+ BLOB = 3,
14
+ FORM_DATA = 4,
15
+ ARRAY_BUFFER = 5
16
+ }
@@ -0,0 +1,15 @@
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 ConsoleTypeClass {
9
+ OBJECT = "atx-object",
10
+ STRING = "atx-string",
11
+ NUMBER = "atx-number",
12
+ BOOLEAN = "atx-boolean",
13
+ ARRAY = "atx-array",
14
+ NULL = "atx-null"
15
+ }
@@ -0,0 +1,13 @@
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 { AtxConsoleJson } from '../model/business/atx-console-json';
9
+ import { ConsoleBodyType } from './console-body-type';
10
+ export declare class DataUtil {
11
+ static parseJson(obj: any, label?: string): AtxConsoleJson;
12
+ static getBodyType(obj: any): ConsoleBodyType;
13
+ }
@@ -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 declare class SizeUtil {
9
+ static getSize(obj: any): number;
10
+ static sizeToString(size: number): string;
11
+ }
@@ -0,0 +1,13 @@
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 { Log } from "../../../../model";
9
+ export declare class UrlUtil {
10
+ static getResourceName(log: Log): string;
11
+ static getResourceNameFromPath(pathname: string): string;
12
+ static getResourcePath(log: Log): string;
13
+ }
@@ -4,3 +4,4 @@ export * from './lang';
4
4
  export * from './mock/http';
5
5
  export * from './subscription';
6
6
  export * from './navigator';
7
+ export * from './logging';
@@ -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
  * The `Destroyable` interface provides a global interface for creating object that might be destroyed by the system.
@@ -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
  * The `Destroyable` interface provides a global interface for creating object that might be destroyed by the system.
@@ -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 { Uuid } from "../../../util";
9
9
  /**
@@ -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
+ * A utility enum that stores constants used by the `HttpMockLoggingService` to create log messages.
10
+ */
11
+ export declare enum HttpMockLoggingConstant {
12
+ /**
13
+ * @private
14
+ * The "caller" reference for all logs of the HTTP Mocking Framework.
15
+ */
16
+ CALLER = "HTTP Mocking Framework",
17
+ /**
18
+ * @private
19
+ * The "message" reference for all valid logs of the HTTP Mocking Framework.
20
+ */
21
+ RESPONSE_MESSAGE = "HTTP response",
22
+ /**
23
+ * @private
24
+ * The "message" reference for all error logs of the HTTP Mocking Framework.
25
+ */
26
+ ERROR_MESSAGE = "HTTP error",
27
+ /**
28
+ * @private
29
+ * The "message" reference for all prefetch logs of the HTTP Mocking Framework.
30
+ */
31
+ CONFIG_MESSAGE = "HTTP prefetch"
32
+ }
@@ -0,0 +1,5 @@
1
+ export * from "./log-connector";
2
+ export * from "./log";
3
+ export * from "./logger";
4
+ export * from "./transactional-logger";
5
+ export * from './log-level.enum';
@@ -0,0 +1,36 @@
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 } from "../lang";
9
+ import { Log } from "./log";
10
+ /**
11
+ * The markup interface for Angular Toolbox log connectors. ATX log connectors are
12
+ * controllers that apply specific processing to logs (e.g sending logs to a data base...).
13
+ */
14
+ export interface LogConnector extends Destroyable {
15
+ /**
16
+ * Initializes the controller.
17
+ *
18
+ * @param logList The initial log list.
19
+ */
20
+ init(logList: Log[]): void;
21
+ /**
22
+ * Sends the specified log to the controller for processing.
23
+ *
24
+ * @param log The log to be sent for processing.
25
+ */
26
+ sendLog(log: Log): void;
27
+ /**
28
+ * Removes all logs from the controller.
29
+ */
30
+ clearLogs(): void;
31
+ /**
32
+ * Creates a copy of all logs in the controller.
33
+ * The copying process depends on the controller implementation.
34
+ */
35
+ copyLogs(): void;
36
+ }
@@ -0,0 +1,33 @@
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 level of an Angular Toolbox log.
10
+ *
11
+ */
12
+ export declare enum LogLevel {
13
+ /**
14
+ * Indicates that the log is a basic information message.
15
+ */
16
+ INFO = 0,
17
+ /**
18
+ * Indicates that the log represents a config message.
19
+ */
20
+ CONFIG = 1,
21
+ /**
22
+ * Indicates that the log is a warning message.
23
+ */
24
+ WARNING = 2,
25
+ /**
26
+ * Indicates that the log message represents an error.
27
+ */
28
+ ERROR = 3,
29
+ /**
30
+ * A special level used by loggers to prevent logs to be processed.
31
+ */
32
+ OFF = 4
33
+ }
@@ -0,0 +1,34 @@
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 "./log-level.enum";
9
+ /**
10
+ * Represents a log in the Angular Toolbox framework.
11
+ */
12
+ export interface Log {
13
+ /**
14
+ * Provides a human readable reference for the invoker associated with this log.
15
+ */
16
+ readonly caller: string;
17
+ /**
18
+ * The message associated with this log.
19
+ */
20
+ readonly message: string;
21
+ /**
22
+ * The criticality level of this log.
23
+ */
24
+ readonly level: LogLevel;
25
+ /**
26
+ * The timestamp at which the log has been created.
27
+ */
28
+ readonly timestamp: number;
29
+ /**
30
+ * Optional metada associated with this log.
31
+ * Metadata are typically set by Developer to provide custom objects representations.
32
+ */
33
+ readonly metadata?: any;
34
+ }
@@ -0,0 +1,58 @@
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 "./log-level.enum";
9
+ import { Log } from "./log";
10
+ /**
11
+ * The base interface of all logging services in the ATX logging framework.
12
+ */
13
+ export interface Logger {
14
+ /**
15
+ * Defines the minimum log lovel at which logs must be processed.
16
+ */
17
+ minLogLevel: LogLevel;
18
+ /**
19
+ * Returns the list of logs processed by this logging service.
20
+ */
21
+ getLogs(): Log[];
22
+ /**
23
+ * Sends an information log message to the service.
24
+ *
25
+ * @param caller The reference to the caller that sends the log.
26
+ * @param message The log message.
27
+ * @param metadata Optionale metadata associated with this log.
28
+ */
29
+ info(caller: string | any, message: string, metadata?: any): void;
30
+ /**
31
+ * Sends a config log message to the service.
32
+ *
33
+ * @param caller The reference to the caller that sends the log.
34
+ * @param message The log message.
35
+ * @param metadata Optionale metadata associated with this log.
36
+ */
37
+ config(caller: string | any, message: string, metadata?: any): void;
38
+ /**
39
+ * Sends an error log to the service.
40
+ *
41
+ * @param caller The reference to the caller that sends the log.
42
+ * @param message The log message.
43
+ * @param metadata Optionale metadata associated with this log.
44
+ */
45
+ error(caller: string | any, message: string, metadata?: any): void;
46
+ /**
47
+ * Sends an warning log to the service.
48
+ *
49
+ * @param caller The reference to the caller that sends the log.
50
+ * @param message The log message.
51
+ * @param metadata Optionale metadata associated with this log.
52
+ */
53
+ warn(caller: string | any, message: string, metadata?: any): void;
54
+ /**
55
+ * Removes all the logs that have been processed by this logger.
56
+ */
57
+ clearLogs(): void;
58
+ }
@@ -0,0 +1,28 @@
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 } from "../lang";
9
+ import { LogConnector } from "./log-connector";
10
+ /**
11
+ * TTransactional loggers allow to create proxy via the `LogConnector` interface
12
+ * to send logs to third-party tools.
13
+ */
14
+ export interface TransactionalLogger extends Destroyable {
15
+ /**
16
+ * Sets a new log connector this transactional logger.
17
+ *
18
+ * @param value The reference to the new log connector associated with this transactional logger.
19
+ * If `null` the logger uses the instance defined by the `DEFAULT_LOG_CONNECTOR` constant.
20
+ */
21
+ setLogConnector(value: LogConnector | null): void;
22
+ /**
23
+ * Returns the reference to the log connector associated with this transactional logger.
24
+ *
25
+ * @returns The log connector associated with this transactional logger.
26
+ */
27
+ getLogConnector(): LogConnector;
28
+ }
@@ -9,5 +9,5 @@ import { Observable } from "rxjs";
9
9
  /**
10
10
  * The markup interface for `Observable` object built from the Fetch API.
11
11
  */
12
- export interface FetchClient extends Observable<any> {
12
+ export declare abstract class FetchClient extends Observable<any> {
13
13
  }
@@ -16,13 +16,8 @@ export interface HttpMethodMock {
16
16
  /**
17
17
  * @private
18
18
  * Current progressive download mechanism will be replaced by a more efficient process.
19
- * Indicates whether to emulate progressive download (`true`), or not (`false`).
20
19
  */
21
- progressive?: boolean;
22
- /**
23
- * An enumerated string value specifying the type of data contained in the response.
24
- */
25
- responseType?: XMLHttpRequestResponseType;
20
+ downloadManager?: any;
26
21
  /**
27
22
  * This method emulates a successful HTTP call response.
28
23
  *
@@ -0,0 +1,33 @@
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 { Uuid } from "../../../../util";
9
+ /**
10
+ * Defines the the metadata associated to an HTTP mock request.
11
+ */
12
+ export interface HttpMockRequestMetadata {
13
+ /**
14
+ * The unique ID associated with the HTTP request.
15
+ */
16
+ id: Uuid;
17
+ /**
18
+ * Indicates the starting time of the HTTP request.
19
+ */
20
+ start: number;
21
+ /**
22
+ * Indicates the how much time the request is stalled befaore the data loading starts.
23
+ */
24
+ stalled: number;
25
+ /**
26
+ * Indicates the duration of the HTTP request.
27
+ */
28
+ duration: number;
29
+ /**
30
+ * The reference to the `URL` object for the HTTP request.
31
+ */
32
+ url: URL;
33
+ }
@@ -4,6 +4,8 @@ export * from './http-mock-config';
4
4
  export * from './http-mock-endpoint';
5
5
  export * from './http-mock-interceptor';
6
6
  export * from './http-mock-error';
7
+ export * from './http-mock-request-metadata';
7
8
  export * from './xhr-proxy';
8
9
  export * from './fetch-client';
9
10
  export * from './config';
11
+ export * from './logging';
@@ -0,0 +1,15 @@
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 { HttpResponse } from "@angular/common/http";
9
+ import { HttpMockLoggingPrefetchMetadata } from "./http-mock-logging-prefetch-metadata";
10
+ /**
11
+ * The markup interface for all log metadata of the HTTP Mocking Framework.
12
+ */
13
+ export interface HttpMockLoggingMetadata extends HttpMockLoggingPrefetchMetadata {
14
+ response: HttpResponse<any>;
15
+ }
@@ -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
+ }
@@ -0,0 +1,2 @@
1
+ export * from "./http-mock.service";
2
+ export * from "./logging";