@elsikora/cladi 1.0.1

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 (213) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +325 -0
  3. package/dist/cjs/domain/enum/index.d.ts +3 -0
  4. package/dist/cjs/domain/enum/index.d.ts.map +1 -0
  5. package/dist/cjs/domain/enum/logger-log-level.enum.d.ts +11 -0
  6. package/dist/cjs/domain/enum/logger-log-level.enum.d.ts.map +1 -0
  7. package/dist/cjs/domain/enum/logger-log-level.enum.js +14 -0
  8. package/dist/cjs/domain/enum/logger-log-level.enum.js.map +1 -0
  9. package/dist/cjs/domain/enum/service-token.enum.d.ts +10 -0
  10. package/dist/cjs/domain/enum/service-token.enum.d.ts.map +1 -0
  11. package/dist/cjs/domain/enum/service-token.enum.js +13 -0
  12. package/dist/cjs/domain/enum/service-token.enum.js.map +1 -0
  13. package/dist/cjs/domain/index.d.ts +3 -0
  14. package/dist/cjs/domain/index.d.ts.map +1 -0
  15. package/dist/cjs/domain/interface/container.interface.d.ts +55 -0
  16. package/dist/cjs/domain/interface/container.interface.d.ts.map +1 -0
  17. package/dist/cjs/domain/interface/error.interface.d.ts +18 -0
  18. package/dist/cjs/domain/interface/error.interface.d.ts.map +1 -0
  19. package/dist/cjs/domain/interface/factory.interface.d.ts +19 -0
  20. package/dist/cjs/domain/interface/factory.interface.d.ts.map +1 -0
  21. package/dist/cjs/domain/interface/index.d.ts +6 -0
  22. package/dist/cjs/domain/interface/index.d.ts.map +1 -0
  23. package/dist/cjs/domain/interface/logger/index.d.ts +3 -0
  24. package/dist/cjs/domain/interface/logger/index.d.ts.map +1 -0
  25. package/dist/cjs/domain/interface/logger/interface.d.ts +37 -0
  26. package/dist/cjs/domain/interface/logger/interface.d.ts.map +1 -0
  27. package/dist/cjs/domain/interface/logger/method-options.interface.d.ts +14 -0
  28. package/dist/cjs/domain/interface/logger/method-options.interface.d.ts.map +1 -0
  29. package/dist/cjs/domain/interface/registry.interface.d.ts +54 -0
  30. package/dist/cjs/domain/interface/registry.interface.d.ts.map +1 -0
  31. package/dist/cjs/index.d.ts +4 -0
  32. package/dist/cjs/index.d.ts.map +1 -0
  33. package/dist/cjs/index.js +38 -0
  34. package/dist/cjs/index.js.map +1 -0
  35. package/dist/cjs/infrastructure/class/base/container.class.d.ts +67 -0
  36. package/dist/cjs/infrastructure/class/base/container.class.d.ts.map +1 -0
  37. package/dist/cjs/infrastructure/class/base/container.class.js +193 -0
  38. package/dist/cjs/infrastructure/class/base/container.class.js.map +1 -0
  39. package/dist/cjs/infrastructure/class/base/error.class.d.ts +18 -0
  40. package/dist/cjs/infrastructure/class/base/error.class.d.ts.map +1 -0
  41. package/dist/cjs/infrastructure/class/base/error.class.js +30 -0
  42. package/dist/cjs/infrastructure/class/base/error.class.js.map +1 -0
  43. package/dist/cjs/infrastructure/class/base/factory.class.d.ts +38 -0
  44. package/dist/cjs/infrastructure/class/base/factory.class.d.ts.map +1 -0
  45. package/dist/cjs/infrastructure/class/base/factory.class.js +79 -0
  46. package/dist/cjs/infrastructure/class/base/factory.class.js.map +1 -0
  47. package/dist/cjs/infrastructure/class/base/index.d.ts +5 -0
  48. package/dist/cjs/infrastructure/class/base/index.d.ts.map +1 -0
  49. package/dist/cjs/infrastructure/class/base/registry.class.d.ts +73 -0
  50. package/dist/cjs/infrastructure/class/base/registry.class.d.ts.map +1 -0
  51. package/dist/cjs/infrastructure/class/base/registry.class.js +221 -0
  52. package/dist/cjs/infrastructure/class/base/registry.class.js.map +1 -0
  53. package/dist/cjs/infrastructure/constant/console-logger-default-options.constant.d.ts +6 -0
  54. package/dist/cjs/infrastructure/constant/console-logger-default-options.constant.d.ts.map +1 -0
  55. package/dist/cjs/infrastructure/constant/console-logger-default-options.constant.js +12 -0
  56. package/dist/cjs/infrastructure/constant/console-logger-default-options.constant.js.map +1 -0
  57. package/dist/cjs/infrastructure/constant/index.d.ts +2 -0
  58. package/dist/cjs/infrastructure/constant/index.d.ts.map +1 -0
  59. package/dist/cjs/infrastructure/factory/core.factory.d.ts +51 -0
  60. package/dist/cjs/infrastructure/factory/core.factory.d.ts.map +1 -0
  61. package/dist/cjs/infrastructure/factory/core.factory.js +85 -0
  62. package/dist/cjs/infrastructure/factory/core.factory.js.map +1 -0
  63. package/dist/cjs/infrastructure/factory/index.d.ts +2 -0
  64. package/dist/cjs/infrastructure/factory/index.d.ts.map +1 -0
  65. package/dist/cjs/infrastructure/index.d.ts +6 -0
  66. package/dist/cjs/infrastructure/index.d.ts.map +1 -0
  67. package/dist/cjs/infrastructure/interface/base/container-options.interface.d.ts +11 -0
  68. package/dist/cjs/infrastructure/interface/base/container-options.interface.d.ts.map +1 -0
  69. package/dist/cjs/infrastructure/interface/base/error-options.interface.d.ts +22 -0
  70. package/dist/cjs/infrastructure/interface/base/error-options.interface.d.ts.map +1 -0
  71. package/dist/cjs/infrastructure/interface/base/factory-options.interface.d.ts +21 -0
  72. package/dist/cjs/infrastructure/interface/base/factory-options.interface.d.ts.map +1 -0
  73. package/dist/cjs/infrastructure/interface/base/index.d.ts +5 -0
  74. package/dist/cjs/infrastructure/interface/base/index.d.ts.map +1 -0
  75. package/dist/cjs/infrastructure/interface/base/registry-options.interface.d.ts +11 -0
  76. package/dist/cjs/infrastructure/interface/base/registry-options.interface.d.ts.map +1 -0
  77. package/dist/cjs/infrastructure/interface/console-logger-options.interface.d.ts +15 -0
  78. package/dist/cjs/infrastructure/interface/console-logger-options.interface.d.ts.map +1 -0
  79. package/dist/cjs/infrastructure/interface/core-factory-options.interface.d.ts +11 -0
  80. package/dist/cjs/infrastructure/interface/core-factory-options.interface.d.ts.map +1 -0
  81. package/dist/cjs/infrastructure/interface/index.d.ts +4 -0
  82. package/dist/cjs/infrastructure/interface/index.d.ts.map +1 -0
  83. package/dist/cjs/infrastructure/service/console-logger.service.d.ts +71 -0
  84. package/dist/cjs/infrastructure/service/console-logger.service.d.ts.map +1 -0
  85. package/dist/cjs/infrastructure/service/console-logger.service.js +130 -0
  86. package/dist/cjs/infrastructure/service/console-logger.service.js.map +1 -0
  87. package/dist/cjs/infrastructure/service/index.d.ts +2 -0
  88. package/dist/cjs/infrastructure/service/index.d.ts.map +1 -0
  89. package/dist/cjs/package.json +3 -0
  90. package/dist/cjs/presentation/utility/create/container.utility.d.ts +9 -0
  91. package/dist/cjs/presentation/utility/create/container.utility.d.ts.map +1 -0
  92. package/dist/cjs/presentation/utility/create/container.utility.js +18 -0
  93. package/dist/cjs/presentation/utility/create/container.utility.js.map +1 -0
  94. package/dist/cjs/presentation/utility/create/factory.utility.d.ts +10 -0
  95. package/dist/cjs/presentation/utility/create/factory.utility.d.ts.map +1 -0
  96. package/dist/cjs/presentation/utility/create/factory.utility.js +19 -0
  97. package/dist/cjs/presentation/utility/create/factory.utility.js.map +1 -0
  98. package/dist/cjs/presentation/utility/create/index.d.ts +5 -0
  99. package/dist/cjs/presentation/utility/create/index.d.ts.map +1 -0
  100. package/dist/cjs/presentation/utility/create/logger.utility.d.ts +9 -0
  101. package/dist/cjs/presentation/utility/create/logger.utility.d.ts.map +1 -0
  102. package/dist/cjs/presentation/utility/create/logger.utility.js +16 -0
  103. package/dist/cjs/presentation/utility/create/logger.utility.js.map +1 -0
  104. package/dist/cjs/presentation/utility/create/registry.utility.d.ts +12 -0
  105. package/dist/cjs/presentation/utility/create/registry.utility.d.ts.map +1 -0
  106. package/dist/cjs/presentation/utility/create/registry.utility.js +19 -0
  107. package/dist/cjs/presentation/utility/create/registry.utility.js.map +1 -0
  108. package/dist/esm/domain/enum/index.d.ts +3 -0
  109. package/dist/esm/domain/enum/index.d.ts.map +1 -0
  110. package/dist/esm/domain/enum/logger-log-level.enum.d.ts +11 -0
  111. package/dist/esm/domain/enum/logger-log-level.enum.d.ts.map +1 -0
  112. package/dist/esm/domain/enum/logger-log-level.enum.js +14 -0
  113. package/dist/esm/domain/enum/logger-log-level.enum.js.map +1 -0
  114. package/dist/esm/domain/enum/service-token.enum.d.ts +10 -0
  115. package/dist/esm/domain/enum/service-token.enum.d.ts.map +1 -0
  116. package/dist/esm/domain/enum/service-token.enum.js +13 -0
  117. package/dist/esm/domain/enum/service-token.enum.js.map +1 -0
  118. package/dist/esm/domain/index.d.ts +3 -0
  119. package/dist/esm/domain/index.d.ts.map +1 -0
  120. package/dist/esm/domain/interface/container.interface.d.ts +55 -0
  121. package/dist/esm/domain/interface/container.interface.d.ts.map +1 -0
  122. package/dist/esm/domain/interface/error.interface.d.ts +18 -0
  123. package/dist/esm/domain/interface/error.interface.d.ts.map +1 -0
  124. package/dist/esm/domain/interface/factory.interface.d.ts +19 -0
  125. package/dist/esm/domain/interface/factory.interface.d.ts.map +1 -0
  126. package/dist/esm/domain/interface/index.d.ts +6 -0
  127. package/dist/esm/domain/interface/index.d.ts.map +1 -0
  128. package/dist/esm/domain/interface/logger/index.d.ts +3 -0
  129. package/dist/esm/domain/interface/logger/index.d.ts.map +1 -0
  130. package/dist/esm/domain/interface/logger/interface.d.ts +37 -0
  131. package/dist/esm/domain/interface/logger/interface.d.ts.map +1 -0
  132. package/dist/esm/domain/interface/logger/method-options.interface.d.ts +14 -0
  133. package/dist/esm/domain/interface/logger/method-options.interface.d.ts.map +1 -0
  134. package/dist/esm/domain/interface/registry.interface.d.ts +54 -0
  135. package/dist/esm/domain/interface/registry.interface.d.ts.map +1 -0
  136. package/dist/esm/index.d.ts +4 -0
  137. package/dist/esm/index.d.ts.map +1 -0
  138. package/dist/esm/index.js +14 -0
  139. package/dist/esm/index.js.map +1 -0
  140. package/dist/esm/infrastructure/class/base/container.class.d.ts +67 -0
  141. package/dist/esm/infrastructure/class/base/container.class.d.ts.map +1 -0
  142. package/dist/esm/infrastructure/class/base/container.class.js +191 -0
  143. package/dist/esm/infrastructure/class/base/container.class.js.map +1 -0
  144. package/dist/esm/infrastructure/class/base/error.class.d.ts +18 -0
  145. package/dist/esm/infrastructure/class/base/error.class.d.ts.map +1 -0
  146. package/dist/esm/infrastructure/class/base/error.class.js +28 -0
  147. package/dist/esm/infrastructure/class/base/error.class.js.map +1 -0
  148. package/dist/esm/infrastructure/class/base/factory.class.d.ts +38 -0
  149. package/dist/esm/infrastructure/class/base/factory.class.d.ts.map +1 -0
  150. package/dist/esm/infrastructure/class/base/factory.class.js +77 -0
  151. package/dist/esm/infrastructure/class/base/factory.class.js.map +1 -0
  152. package/dist/esm/infrastructure/class/base/index.d.ts +5 -0
  153. package/dist/esm/infrastructure/class/base/index.d.ts.map +1 -0
  154. package/dist/esm/infrastructure/class/base/registry.class.d.ts +73 -0
  155. package/dist/esm/infrastructure/class/base/registry.class.d.ts.map +1 -0
  156. package/dist/esm/infrastructure/class/base/registry.class.js +219 -0
  157. package/dist/esm/infrastructure/class/base/registry.class.js.map +1 -0
  158. package/dist/esm/infrastructure/constant/console-logger-default-options.constant.d.ts +6 -0
  159. package/dist/esm/infrastructure/constant/console-logger-default-options.constant.d.ts.map +1 -0
  160. package/dist/esm/infrastructure/constant/console-logger-default-options.constant.js +10 -0
  161. package/dist/esm/infrastructure/constant/console-logger-default-options.constant.js.map +1 -0
  162. package/dist/esm/infrastructure/constant/index.d.ts +2 -0
  163. package/dist/esm/infrastructure/constant/index.d.ts.map +1 -0
  164. package/dist/esm/infrastructure/factory/core.factory.d.ts +51 -0
  165. package/dist/esm/infrastructure/factory/core.factory.d.ts.map +1 -0
  166. package/dist/esm/infrastructure/factory/core.factory.js +83 -0
  167. package/dist/esm/infrastructure/factory/core.factory.js.map +1 -0
  168. package/dist/esm/infrastructure/factory/index.d.ts +2 -0
  169. package/dist/esm/infrastructure/factory/index.d.ts.map +1 -0
  170. package/dist/esm/infrastructure/index.d.ts +6 -0
  171. package/dist/esm/infrastructure/index.d.ts.map +1 -0
  172. package/dist/esm/infrastructure/interface/base/container-options.interface.d.ts +11 -0
  173. package/dist/esm/infrastructure/interface/base/container-options.interface.d.ts.map +1 -0
  174. package/dist/esm/infrastructure/interface/base/error-options.interface.d.ts +22 -0
  175. package/dist/esm/infrastructure/interface/base/error-options.interface.d.ts.map +1 -0
  176. package/dist/esm/infrastructure/interface/base/factory-options.interface.d.ts +21 -0
  177. package/dist/esm/infrastructure/interface/base/factory-options.interface.d.ts.map +1 -0
  178. package/dist/esm/infrastructure/interface/base/index.d.ts +5 -0
  179. package/dist/esm/infrastructure/interface/base/index.d.ts.map +1 -0
  180. package/dist/esm/infrastructure/interface/base/registry-options.interface.d.ts +11 -0
  181. package/dist/esm/infrastructure/interface/base/registry-options.interface.d.ts.map +1 -0
  182. package/dist/esm/infrastructure/interface/console-logger-options.interface.d.ts +15 -0
  183. package/dist/esm/infrastructure/interface/console-logger-options.interface.d.ts.map +1 -0
  184. package/dist/esm/infrastructure/interface/core-factory-options.interface.d.ts +11 -0
  185. package/dist/esm/infrastructure/interface/core-factory-options.interface.d.ts.map +1 -0
  186. package/dist/esm/infrastructure/interface/index.d.ts +4 -0
  187. package/dist/esm/infrastructure/interface/index.d.ts.map +1 -0
  188. package/dist/esm/infrastructure/service/console-logger.service.d.ts +71 -0
  189. package/dist/esm/infrastructure/service/console-logger.service.d.ts.map +1 -0
  190. package/dist/esm/infrastructure/service/console-logger.service.js +128 -0
  191. package/dist/esm/infrastructure/service/console-logger.service.js.map +1 -0
  192. package/dist/esm/infrastructure/service/index.d.ts +2 -0
  193. package/dist/esm/infrastructure/service/index.d.ts.map +1 -0
  194. package/dist/esm/package.json +3 -0
  195. package/dist/esm/presentation/utility/create/container.utility.d.ts +9 -0
  196. package/dist/esm/presentation/utility/create/container.utility.d.ts.map +1 -0
  197. package/dist/esm/presentation/utility/create/container.utility.js +16 -0
  198. package/dist/esm/presentation/utility/create/container.utility.js.map +1 -0
  199. package/dist/esm/presentation/utility/create/factory.utility.d.ts +10 -0
  200. package/dist/esm/presentation/utility/create/factory.utility.d.ts.map +1 -0
  201. package/dist/esm/presentation/utility/create/factory.utility.js +17 -0
  202. package/dist/esm/presentation/utility/create/factory.utility.js.map +1 -0
  203. package/dist/esm/presentation/utility/create/index.d.ts +5 -0
  204. package/dist/esm/presentation/utility/create/index.d.ts.map +1 -0
  205. package/dist/esm/presentation/utility/create/logger.utility.d.ts +9 -0
  206. package/dist/esm/presentation/utility/create/logger.utility.d.ts.map +1 -0
  207. package/dist/esm/presentation/utility/create/logger.utility.js +14 -0
  208. package/dist/esm/presentation/utility/create/logger.utility.js.map +1 -0
  209. package/dist/esm/presentation/utility/create/registry.utility.d.ts +12 -0
  210. package/dist/esm/presentation/utility/create/registry.utility.d.ts.map +1 -0
  211. package/dist/esm/presentation/utility/create/registry.utility.js +17 -0
  212. package/dist/esm/presentation/utility/create/registry.utility.js.map +1 -0
  213. package/package.json +89 -0
@@ -0,0 +1,4 @@
1
+ export type * from "./base";
2
+ export type { IConsoleLoggerOptions } from "./console-logger-options.interface";
3
+ export type { ICoreFactoryOptions } from "./core-factory-options.interface";
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/infrastructure/interface/index.ts"],"names":[],"mappings":"AAAA,mBAAmB,QAAQ,CAAC;AAC5B,YAAY,EAAE,qBAAqB,EAAE,MAAM,oCAAoC,CAAC;AAChF,YAAY,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC"}
@@ -0,0 +1,71 @@
1
+ import type { ILogger, ILoggerMethodOptions } from '../../src/domain/interface/index';
2
+ import type { IConsoleLoggerOptions } from '../../src/infrastructure/interface/index';
3
+ /**
4
+ * Console logger implementation.
5
+ */
6
+ export declare class ConsoleLoggerService implements ILogger {
7
+ /**
8
+ * Current log level. Messages below this level will not be logged.
9
+ */
10
+ private readonly LEVEL;
11
+ /**
12
+ * Default source identifier.
13
+ */
14
+ private readonly SOURCE?;
15
+ /**
16
+ * Create a new console logger.
17
+ * @param {IConsoleLoggerOptions} options - The options to use for the logger.
18
+ */
19
+ constructor(options?: IConsoleLoggerOptions);
20
+ /**
21
+ * Log a debug message.
22
+ * @param {string} message Message to log.
23
+ * @param {ILoggerMethodOptions} [options] Optional logging options.
24
+ */
25
+ debug(message: string, options?: ILoggerMethodOptions): void;
26
+ /**
27
+ * Log an error message.
28
+ * @param {string} message Message to log.
29
+ * @param {ILoggerMethodOptions} [options] Optional logging options.
30
+ */
31
+ error(message: string, options?: ILoggerMethodOptions): void;
32
+ /**
33
+ * Log an info message.
34
+ * @param {string} message Message to log.
35
+ * @param {ILoggerMethodOptions} [options] Optional logging options.
36
+ */
37
+ info(message: string, options?: ILoggerMethodOptions): void;
38
+ /**
39
+ * Log a trace message.
40
+ * @param {string} message Message to log.
41
+ * @param {ILoggerMethodOptions} [options] Optional logging options.
42
+ */
43
+ trace(message: string, options?: ILoggerMethodOptions): void;
44
+ /**
45
+ * Log a warning message.
46
+ * @param {string} message Message to log.
47
+ * @param {ILoggerMethodOptions} [options] Optional logging options.
48
+ */
49
+ warn(message: string, options?: ILoggerMethodOptions): void;
50
+ /**
51
+ * Combines source from options with class source.
52
+ * @param {string} [optionsSource] Source from options.
53
+ * @returns {string|undefined} Combined source or undefined if both sources are undefined.
54
+ */
55
+ private combineSource;
56
+ /**
57
+ * Format a message for logging.
58
+ * @param {ELoggerLogLevel} level Log level.
59
+ * @param {string} message Message to log.
60
+ * @param {ILoggerMethodOptions} [options] Optional logging options.
61
+ * @returns {string} Formatted message.
62
+ */
63
+ private formatMessage;
64
+ /**
65
+ * Check if the given level should be logged.
66
+ * @param {ELoggerLogLevel} level Level to check.
67
+ * @returns {boolean} True if the level should be logged.
68
+ */
69
+ private shouldLog;
70
+ }
71
+ //# sourceMappingURL=console-logger.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"console-logger.service.d.ts","sourceRoot":"","sources":["../../../../src/infrastructure/service/console-logger.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACvE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAKvE;;GAEG;AACH,qBAAa,oBAAqB,YAAW,OAAO;IACnD;;OAEG;IACH,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAkB;IAExC;;OAEG;IACH,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAS;IAEjC;;;OAGG;gBACS,OAAO,GAAE,qBAAsD;IAK3E;;;;OAIG;IACI,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,oBAAoB,GAAG,IAAI;IAMnE;;;;OAIG;IACI,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,oBAAoB,GAAG,IAAI;IAMnE;;;;OAIG;IACI,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,oBAAoB,GAAG,IAAI;IAMlE;;;;OAIG;IACI,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,oBAAoB,GAAG,IAAI;IAMnE;;;;OAIG;IACI,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,oBAAoB,GAAG,IAAI;IAMlE;;;;OAIG;IACH,OAAO,CAAC,aAAa;IAoBrB;;;;;;OAMG;IACH,OAAO,CAAC,aAAa;IAmBrB;;;;OAIG;IACH,OAAO,CAAC,SAAS;CAKjB"}
@@ -0,0 +1,128 @@
1
+ import { ELoggerLogLevel } from '../../domain/enum/logger-log-level.enum.js';
2
+ import '../../domain/enum/service-token.enum.js';
3
+ import { CONSOLE_LOGGER_DEFAULT_OPTIONS } from '../constant/console-logger-default-options.constant.js';
4
+
5
+ /**
6
+ * Console logger implementation.
7
+ */
8
+ class ConsoleLoggerService {
9
+ /**
10
+ * Current log level. Messages below this level will not be logged.
11
+ */
12
+ LEVEL;
13
+ /**
14
+ * Default source identifier.
15
+ */
16
+ SOURCE;
17
+ /**
18
+ * Create a new console logger.
19
+ * @param {IConsoleLoggerOptions} options - The options to use for the logger.
20
+ */
21
+ constructor(options = CONSOLE_LOGGER_DEFAULT_OPTIONS) {
22
+ this.LEVEL = options.level;
23
+ this.SOURCE = options.source;
24
+ }
25
+ /**
26
+ * Log a debug message.
27
+ * @param {string} message Message to log.
28
+ * @param {ILoggerMethodOptions} [options] Optional logging options.
29
+ */
30
+ debug(message, options) {
31
+ if (this.shouldLog(ELoggerLogLevel.DEBUG)) {
32
+ console.debug(this.formatMessage(ELoggerLogLevel.DEBUG, message, options));
33
+ }
34
+ }
35
+ /**
36
+ * Log an error message.
37
+ * @param {string} message Message to log.
38
+ * @param {ILoggerMethodOptions} [options] Optional logging options.
39
+ */
40
+ error(message, options) {
41
+ if (this.shouldLog(ELoggerLogLevel.ERROR)) {
42
+ console.error(this.formatMessage(ELoggerLogLevel.ERROR, message, options));
43
+ }
44
+ }
45
+ /**
46
+ * Log an info message.
47
+ * @param {string} message Message to log.
48
+ * @param {ILoggerMethodOptions} [options] Optional logging options.
49
+ */
50
+ info(message, options) {
51
+ if (this.shouldLog(ELoggerLogLevel.INFO)) {
52
+ console.info(this.formatMessage(ELoggerLogLevel.INFO, message, options));
53
+ }
54
+ }
55
+ /**
56
+ * Log a trace message.
57
+ * @param {string} message Message to log.
58
+ * @param {ILoggerMethodOptions} [options] Optional logging options.
59
+ */
60
+ trace(message, options) {
61
+ if (this.shouldLog(ELoggerLogLevel.TRACE)) {
62
+ console.trace(this.formatMessage(ELoggerLogLevel.TRACE, message, options));
63
+ }
64
+ }
65
+ /**
66
+ * Log a warning message.
67
+ * @param {string} message Message to log.
68
+ * @param {ILoggerMethodOptions} [options] Optional logging options.
69
+ */
70
+ warn(message, options) {
71
+ if (this.shouldLog(ELoggerLogLevel.WARN)) {
72
+ console.warn(this.formatMessage(ELoggerLogLevel.WARN, message, options));
73
+ }
74
+ }
75
+ /**
76
+ * Combines source from options with class source.
77
+ * @param {string} [optionsSource] Source from options.
78
+ * @returns {string|undefined} Combined source or undefined if both sources are undefined.
79
+ */
80
+ combineSource(optionsSource) {
81
+ if (!this.SOURCE && !optionsSource) {
82
+ return undefined;
83
+ }
84
+ if (!this.SOURCE && optionsSource) {
85
+ return `[${optionsSource}]`;
86
+ }
87
+ if (this.SOURCE && !optionsSource) {
88
+ return `[${this.SOURCE}]`;
89
+ }
90
+ if (this.SOURCE && optionsSource) {
91
+ return `[${this.SOURCE} → ${optionsSource}]`;
92
+ }
93
+ return undefined;
94
+ }
95
+ /**
96
+ * Format a message for logging.
97
+ * @param {ELoggerLogLevel} level Log level.
98
+ * @param {string} message Message to log.
99
+ * @param {ILoggerMethodOptions} [options] Optional logging options.
100
+ * @returns {string} Formatted message.
101
+ */
102
+ formatMessage(level, message, options) {
103
+ const timestamp = new Date().toISOString();
104
+ // Safely extract context from options
105
+ let context;
106
+ let source;
107
+ if (options) {
108
+ context = options.context;
109
+ source = options.source;
110
+ }
111
+ const formattedContext = context ? ` ${JSON.stringify(context)}` : "";
112
+ const formattedSource = this.combineSource(source) ?? "";
113
+ const sourceWithSpace = formattedSource ? `${formattedSource} ` : "";
114
+ return `[${timestamp}] ${level.toUpperCase()}: ${sourceWithSpace}${message}${formattedContext}`;
115
+ }
116
+ /**
117
+ * Check if the given level should be logged.
118
+ * @param {ELoggerLogLevel} level Level to check.
119
+ * @returns {boolean} True if the level should be logged.
120
+ */
121
+ shouldLog(level) {
122
+ const levels = [ELoggerLogLevel.ERROR, ELoggerLogLevel.WARN, ELoggerLogLevel.INFO, ELoggerLogLevel.DEBUG, ELoggerLogLevel.TRACE];
123
+ return levels.indexOf(level) <= levels.indexOf(this.LEVEL);
124
+ }
125
+ }
126
+
127
+ export { ConsoleLoggerService };
128
+ //# sourceMappingURL=console-logger.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"console-logger.service.js","sources":["../../../../../src/infrastructure/service/console-logger.service.ts"],"sourcesContent":[null],"names":[],"mappings":"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"}
@@ -0,0 +1,2 @@
1
+ export { ConsoleLoggerService } from "./console-logger.service";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/infrastructure/service/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC"}
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "module"
3
+ }
@@ -0,0 +1,9 @@
1
+ import type { IContainer } from '../../../src/domain/interface/index';
2
+ import { type IBaseContainerOptions } from '../../../src/infrastructure/index';
3
+ /**
4
+ * Creates a new container instance.
5
+ * @param {IBaseContainerOptions} options - The options to use for the container.
6
+ * @returns {IContainer} A new container instance.
7
+ */
8
+ export declare function createContainer(options: IBaseContainerOptions): IContainer;
9
+ //# sourceMappingURL=container.utility.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"container.utility.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/utility/create/container.utility.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAEpD,OAAO,EAAiB,KAAK,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAElF;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,qBAAqB,GAAG,UAAU,CAE1E"}
@@ -0,0 +1,16 @@
1
+ import { BaseContainer } from '../../../infrastructure/class/base/container.class.js';
2
+ import '../../../domain/enum/logger-log-level.enum.js';
3
+ import '../../../domain/enum/service-token.enum.js';
4
+ import '../../../infrastructure/constant/console-logger-default-options.constant.js';
5
+
6
+ /**
7
+ * Creates a new container instance.
8
+ * @param {IBaseContainerOptions} options - The options to use for the container.
9
+ * @returns {IContainer} A new container instance.
10
+ */
11
+ function createContainer(options) {
12
+ return new BaseContainer(options);
13
+ }
14
+
15
+ export { createContainer };
16
+ //# sourceMappingURL=container.utility.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"container.utility.js","sources":["../../../../../../src/presentation/utility/create/container.utility.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;AAIA;;;;AAIG;AACG,SAAU,eAAe,CAAC,OAA8B,EAAA;AAC7D,IAAA,OAAO,IAAI,aAAa,CAAC,OAAO,CAAC;AAClC;;;;"}
@@ -0,0 +1,10 @@
1
+ import type { IFactory } from '../../../src/domain/interface/index';
2
+ import type { IBaseFactoryOptions } from '../../../src/infrastructure/index';
3
+ /**
4
+ * Creates a new factory instance.
5
+ * @param {IBaseFactoryOptions<T>} options - The options to use for the factory.
6
+ * @returns {IFactory<T>} A new factory instance.
7
+ * @template T The type of items created by the factory.
8
+ */
9
+ export declare function createFactory<T>(options: IBaseFactoryOptions<T>): IFactory<T>;
10
+ //# sourceMappingURL=factory.utility.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"factory.utility.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/utility/create/factory.utility.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAIjE;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,CAAC,EAAE,OAAO,EAAE,mBAAmB,CAAC,CAAC,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,CAE7E"}
@@ -0,0 +1,17 @@
1
+ import '../../../domain/enum/logger-log-level.enum.js';
2
+ import '../../../domain/enum/service-token.enum.js';
3
+ import '../../../infrastructure/constant/console-logger-default-options.constant.js';
4
+ import { BaseFactory } from '../../../infrastructure/class/base/factory.class.js';
5
+
6
+ /**
7
+ * Creates a new factory instance.
8
+ * @param {IBaseFactoryOptions<T>} options - The options to use for the factory.
9
+ * @returns {IFactory<T>} A new factory instance.
10
+ * @template T The type of items created by the factory.
11
+ */
12
+ function createFactory(options) {
13
+ return new BaseFactory(options);
14
+ }
15
+
16
+ export { createFactory };
17
+ //# sourceMappingURL=factory.utility.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"factory.utility.js","sources":["../../../../../../src/presentation/utility/create/factory.utility.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;AAKA;;;;;AAKG;AACG,SAAU,aAAa,CAAI,OAA+B,EAAA;AAC/D,IAAA,OAAO,IAAI,WAAW,CAAI,OAAO,CAAC;AACnC;;;;"}
@@ -0,0 +1,5 @@
1
+ export { createContainer } from "./container.utility";
2
+ export { createFactory } from "./factory.utility";
3
+ export { createLogger } from "./logger.utility";
4
+ export { createRegistry } from "./registry.utility";
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/utility/create/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC"}
@@ -0,0 +1,9 @@
1
+ import type { ILogger } from '../../../src/domain/interface/index';
2
+ import { type IConsoleLoggerOptions } from '../../../src/infrastructure/index';
3
+ /**
4
+ * Creates a new logger instance.
5
+ * @param {IConsoleLoggerOptions} options - The options to use for the logger.
6
+ * @returns {ILogger} A new logger instance.
7
+ */
8
+ export declare function createLogger(options?: IConsoleLoggerOptions): ILogger;
9
+ //# sourceMappingURL=logger.utility.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logger.utility.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/utility/create/logger.utility.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAEjD,OAAO,EAAwD,KAAK,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAEzH;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,OAAO,GAAE,qBAAsD,GAAG,OAAO,CAErG"}
@@ -0,0 +1,14 @@
1
+ import { ConsoleLoggerService } from '../../../infrastructure/service/console-logger.service.js';
2
+ import { CONSOLE_LOGGER_DEFAULT_OPTIONS } from '../../../infrastructure/constant/console-logger-default-options.constant.js';
3
+
4
+ /**
5
+ * Creates a new logger instance.
6
+ * @param {IConsoleLoggerOptions} options - The options to use for the logger.
7
+ * @returns {ILogger} A new logger instance.
8
+ */
9
+ function createLogger(options = CONSOLE_LOGGER_DEFAULT_OPTIONS) {
10
+ return new ConsoleLoggerService(options);
11
+ }
12
+
13
+ export { createLogger };
14
+ //# sourceMappingURL=logger.utility.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logger.utility.js","sources":["../../../../../../src/presentation/utility/create/logger.utility.ts"],"sourcesContent":[null],"names":[],"mappings":";;;AAIA;;;;AAIG;AACa,SAAA,YAAY,CAAC,OAAA,GAAiC,8BAA8B,EAAA;AAC3F,IAAA,OAAO,IAAI,oBAAoB,CAAC,OAAO,CAAC;AACzC;;;;"}
@@ -0,0 +1,12 @@
1
+ import type { IRegistry } from '../../../src/domain/interface/index';
2
+ import type { IBaseRegistryOptions } from '../../../src/infrastructure/index';
3
+ /**
4
+ * Creates a new registry instance.
5
+ * @param {IBaseRegistryOptions} options - The options to use for the registry.
6
+ * @returns {IRegistry<T>} A new registry instance.
7
+ * @template T The type of items stored in the registry.
8
+ */
9
+ export declare function createRegistry<T extends {
10
+ name: string;
11
+ }>(options: IBaseRegistryOptions): IRegistry<T>;
12
+ //# sourceMappingURL=registry.utility.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"registry.utility.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/utility/create/registry.utility.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAIlE;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,CAAC,SAAS;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,EAAE,OAAO,EAAE,oBAAoB,GAAG,SAAS,CAAC,CAAC,CAAC,CAEtG"}
@@ -0,0 +1,17 @@
1
+ import '../../../domain/enum/logger-log-level.enum.js';
2
+ import '../../../domain/enum/service-token.enum.js';
3
+ import '../../../infrastructure/constant/console-logger-default-options.constant.js';
4
+ import { BaseRegistry } from '../../../infrastructure/class/base/registry.class.js';
5
+
6
+ /**
7
+ * Creates a new registry instance.
8
+ * @param {IBaseRegistryOptions} options - The options to use for the registry.
9
+ * @returns {IRegistry<T>} A new registry instance.
10
+ * @template T The type of items stored in the registry.
11
+ */
12
+ function createRegistry(options) {
13
+ return new BaseRegistry(options);
14
+ }
15
+
16
+ export { createRegistry };
17
+ //# sourceMappingURL=registry.utility.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"registry.utility.js","sources":["../../../../../../src/presentation/utility/create/registry.utility.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;AAKA;;;;;AAKG;AACG,SAAU,cAAc,CAA6B,OAA6B,EAAA;AACvF,IAAA,OAAO,IAAI,YAAY,CAAI,OAAO,CAAC;AACpC;;;;"}
package/package.json ADDED
@@ -0,0 +1,89 @@
1
+ {
2
+ "name": "@elsikora/cladi",
3
+ "version": "1.0.1",
4
+ "description": "ClaDI is a library for creating and managing classes in TypeScript.",
5
+ "keywords": [
6
+ "typescript",
7
+ "factory",
8
+ "registry",
9
+ "clean-architecture"
10
+ ],
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "https://github.com/ElsiKora/ClaDI"
14
+ },
15
+ "license": "MIT",
16
+ "author": "ElsiKora",
17
+ "type": "module",
18
+ "exports": {
19
+ ".": {
20
+ "import": "./dist/esm/index.js",
21
+ "require": "./dist/cjs/index.js"
22
+ }
23
+ },
24
+ "main": "dist/cjs/index.js",
25
+ "module": "dist/esm/index.js",
26
+ "files": [
27
+ "dist"
28
+ ],
29
+ "scripts": {
30
+ "prebuild": "rimraf dist",
31
+ "build": "rollup -c",
32
+ "build:test": "npm run prebuild && rollup -c rollup.test.config.js",
33
+ "commit": "cz",
34
+ "format": "prettier --check .",
35
+ "format:fix": "prettier --write .",
36
+ "lint": "eslint ./",
37
+ "lint:all": "npm run lint && npm run lint:types",
38
+ "lint:all:fix": "npm run lint:fix && npm run lint:types:fix",
39
+ "lint:fix": "eslint --fix ./",
40
+ "lint:types": "tsc --noEmit",
41
+ "lint:types:fix": "tsc --noEmit --skipLibCheck",
42
+ "prepare": "husky",
43
+ "release": "semantic-release",
44
+ "test:all": "npm run test:unit && npm run test:e2e",
45
+ "test:e2e": "npm run build:test && vitest --config vitest.e2e.config.js --typecheck.tsconfig tsconfig.json",
46
+ "test:unit": "vitest run test/unit --config vitest.unit.config.js"
47
+ },
48
+ "config": {
49
+ "commitizen": {
50
+ "path": "@elsikora/commitizen-plugin-commitlint-ai"
51
+ }
52
+ },
53
+ "devDependencies": {
54
+ "@commitlint/cli": "^19.8.0",
55
+ "@commitlint/config-conventional": "^19.8.0",
56
+ "@elsikora/commitizen-plugin-commitlint-ai": "^1.0.0",
57
+ "@elsikora/eslint-config": "^3.7.13",
58
+ "@rollup/plugin-node-resolve": "^16.0.1",
59
+ "@rollup/plugin-typescript": "^12.1.2",
60
+ "@saithodev/semantic-release-backmerge": "^4.0.1",
61
+ "@semantic-release/changelog": "^6.0.3",
62
+ "@semantic-release/commit-analyzer": "^13.0.1",
63
+ "@semantic-release/git": "^10.0.1",
64
+ "@semantic-release/github": "^11.0.1",
65
+ "@semantic-release/npm": "^12.0.1",
66
+ "@semantic-release/release-notes-generator": "^14.0.3",
67
+ "@vitest/coverage-v8": "^3.1.1",
68
+ "commitizen": "^4.3.1",
69
+ "conventional-changelog-conventionalcommits": "^8.0.0",
70
+ "eslint": "^9.24.0",
71
+ "eslint-plugin-n": "^17.17.0",
72
+ "eslint-plugin-no-secrets": "^2.2.1",
73
+ "husky": "^9.1.7",
74
+ "lint-staged": "^15.5.0",
75
+ "prettier": "^3.5.3",
76
+ "rimraf": "^6.0.1",
77
+ "rollup": "^4.39.0",
78
+ "rollup-plugin-dts-path-alias": "^0.0.3",
79
+ "rollup-plugin-generate-package-json": "^3.2.0",
80
+ "semantic-release": "^24.2.3",
81
+ "tslib": "^2.8.1",
82
+ "typescript": "^5.8.3",
83
+ "vite-tsconfig-paths": "^5.1.4",
84
+ "vitest": "^3.1.1"
85
+ },
86
+ "publishConfig": {
87
+ "access": "public"
88
+ }
89
+ }