@daiso-tech/core 0.26.1 → 0.28.0

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 (289) hide show
  1. package/README.md +13 -3
  2. package/dist/async/utilities/delay/delay.d.ts +1 -12
  3. package/dist/async/utilities/delay/delay.js +1 -12
  4. package/dist/async/utilities/delay/delay.js.map +1 -1
  5. package/dist/async/utilities/lazy-promise/lazy-promise.d.ts +143 -71
  6. package/dist/async/utilities/lazy-promise/lazy-promise.js +223 -142
  7. package/dist/async/utilities/lazy-promise/lazy-promise.js.map +1 -1
  8. package/dist/async/utilities/retry/retry-or-fail.d.ts +2 -0
  9. package/dist/async/utilities/retry/retry-or-fail.js.map +1 -1
  10. package/dist/cache/contracts/_module-exports.d.ts +1 -0
  11. package/dist/cache/contracts/_module-exports.js +1 -0
  12. package/dist/cache/contracts/_module-exports.js.map +1 -1
  13. package/dist/cache/contracts/cache-adapter.contract.d.ts +19 -21
  14. package/dist/cache/contracts/cache-adapter.contract.js +1 -4
  15. package/dist/cache/contracts/cache-adapter.contract.js.map +1 -1
  16. package/dist/cache/contracts/cache-factory.contract.d.ts +1 -1
  17. package/dist/cache/contracts/cache.contract.d.ts +144 -96
  18. package/dist/cache/contracts/cache.contract.js +1 -2
  19. package/dist/cache/contracts/cache.contract.js.map +1 -1
  20. package/dist/cache/contracts/cache.errors.js +2 -5
  21. package/dist/cache/contracts/cache.errors.js.map +1 -1
  22. package/dist/cache/contracts/cache.events.d.ts +10 -10
  23. package/dist/cache/contracts/cache.events.js +2 -5
  24. package/dist/cache/contracts/cache.events.js.map +1 -1
  25. package/dist/cache/contracts/database-cache-adapter.contract.d.ts +89 -0
  26. package/dist/cache/contracts/database-cache-adapter.contract.js +5 -0
  27. package/dist/cache/contracts/database-cache-adapter.contract.js.map +1 -0
  28. package/dist/cache/implementations/adapters/{kysely-sqlite-cache-adapter → kysely-cache-adapter}/_module.d.ts +1 -1
  29. package/dist/cache/implementations/adapters/kysely-cache-adapter/_module.js +2 -0
  30. package/dist/cache/implementations/adapters/kysely-cache-adapter/_module.js.map +1 -0
  31. package/dist/cache/implementations/adapters/kysely-cache-adapter/kysely-cache-adapter.d.ts +73 -0
  32. package/dist/cache/implementations/adapters/kysely-cache-adapter/kysely-cache-adapter.js +224 -0
  33. package/dist/cache/implementations/adapters/kysely-cache-adapter/kysely-cache-adapter.js.map +1 -0
  34. package/dist/cache/implementations/adapters/libsql-cache-adapter/libsql-cache-adapter.d.ts +29 -39
  35. package/dist/cache/implementations/adapters/libsql-cache-adapter/libsql-cache-adapter.js +45 -54
  36. package/dist/cache/implementations/adapters/libsql-cache-adapter/libsql-cache-adapter.js.map +1 -1
  37. package/dist/cache/implementations/adapters/memory-cache-adapter/memory-cache-adapter.d.ts +17 -33
  38. package/dist/cache/implementations/adapters/memory-cache-adapter/memory-cache-adapter.js +43 -52
  39. package/dist/cache/implementations/adapters/memory-cache-adapter/memory-cache-adapter.js.map +1 -1
  40. package/dist/cache/implementations/adapters/mongodb-cache-adapter/mongodb-cache-adapter-serde.d.ts +13 -0
  41. package/dist/cache/implementations/adapters/mongodb-cache-adapter/mongodb-cache-adapter-serde.js +38 -0
  42. package/dist/cache/implementations/adapters/mongodb-cache-adapter/mongodb-cache-adapter-serde.js.map +1 -0
  43. package/dist/cache/implementations/adapters/mongodb-cache-adapter/mongodb-cache-adapter.d.ts +27 -33
  44. package/dist/cache/implementations/adapters/mongodb-cache-adapter/mongodb-cache-adapter.js +145 -197
  45. package/dist/cache/implementations/adapters/mongodb-cache-adapter/mongodb-cache-adapter.js.map +1 -1
  46. package/dist/cache/implementations/adapters/no-op-cache-adapter/no-op-cache-adapter.d.ts +14 -13
  47. package/dist/cache/implementations/adapters/no-op-cache-adapter/no-op-cache-adapter.js +19 -17
  48. package/dist/cache/implementations/adapters/no-op-cache-adapter/no-op-cache-adapter.js.map +1 -1
  49. package/dist/cache/implementations/adapters/redis-cache-adapter/redis-cache-adapter-serde.d.ts +13 -0
  50. package/dist/cache/implementations/adapters/redis-cache-adapter/redis-cache-adapter-serde.js +39 -0
  51. package/dist/cache/implementations/adapters/redis-cache-adapter/redis-cache-adapter-serde.js.map +1 -0
  52. package/dist/cache/implementations/adapters/redis-cache-adapter/redis-cache-adapter.d.ts +16 -22
  53. package/dist/cache/implementations/adapters/redis-cache-adapter/redis-cache-adapter.js +51 -132
  54. package/dist/cache/implementations/adapters/redis-cache-adapter/redis-cache-adapter.js.map +1 -1
  55. package/dist/cache/implementations/adapters/redis-cache-adapter/utilities.d.ts +13 -0
  56. package/dist/cache/implementations/adapters/redis-cache-adapter/utilities.js +69 -0
  57. package/dist/cache/implementations/adapters/redis-cache-adapter/utilities.js.map +1 -0
  58. package/dist/cache/implementations/adapters/sqlite-cache-adapter/sqlite-cache-adapter.d.ts +29 -41
  59. package/dist/cache/implementations/adapters/sqlite-cache-adapter/sqlite-cache-adapter.js +46 -55
  60. package/dist/cache/implementations/adapters/sqlite-cache-adapter/sqlite-cache-adapter.js.map +1 -1
  61. package/dist/cache/implementations/derivables/_module-exports.d.ts +1 -1
  62. package/dist/cache/implementations/derivables/_module-exports.js +1 -1
  63. package/dist/cache/implementations/derivables/_module-exports.js.map +1 -1
  64. package/dist/cache/implementations/derivables/cache/_module.d.ts +1 -0
  65. package/dist/cache/implementations/derivables/cache/_module.js +1 -0
  66. package/dist/cache/implementations/derivables/cache/_module.js.map +1 -1
  67. package/dist/cache/implementations/derivables/cache/cache.d.ts +269 -507
  68. package/dist/cache/implementations/derivables/cache/cache.js +538 -822
  69. package/dist/cache/implementations/derivables/cache/cache.js.map +1 -1
  70. package/dist/cache/implementations/derivables/cache/database-cache-adapter.d.ts +21 -0
  71. package/dist/cache/implementations/derivables/cache/database-cache-adapter.js +110 -0
  72. package/dist/cache/implementations/derivables/cache/database-cache-adapter.js.map +1 -0
  73. package/dist/cache/implementations/derivables/cache/is-database-cache-adapter.d.ts +9 -0
  74. package/dist/cache/implementations/derivables/cache/is-database-cache-adapter.js +20 -0
  75. package/dist/cache/implementations/derivables/cache/is-database-cache-adapter.js.map +1 -0
  76. package/dist/cache/implementations/derivables/cache-factory/cache-factory.d.ts +69 -105
  77. package/dist/cache/implementations/derivables/cache-factory/cache-factory.js +117 -87
  78. package/dist/cache/implementations/derivables/cache-factory/cache-factory.js.map +1 -1
  79. package/dist/cache/implementations/test-utilities/_module-exports.d.ts +1 -0
  80. package/dist/cache/implementations/test-utilities/_module-exports.js +1 -0
  81. package/dist/cache/implementations/test-utilities/_module-exports.js.map +1 -1
  82. package/dist/cache/implementations/test-utilities/cache-adapter.test-suite.d.ts +9 -11
  83. package/dist/cache/implementations/test-utilities/cache-adapter.test-suite.js +246 -247
  84. package/dist/cache/implementations/test-utilities/cache-adapter.test-suite.js.map +1 -1
  85. package/dist/cache/implementations/test-utilities/cache.test-suite.d.ts +16 -30
  86. package/dist/cache/implementations/test-utilities/cache.test-suite.js +271 -996
  87. package/dist/cache/implementations/test-utilities/cache.test-suite.js.map +1 -1
  88. package/dist/cache/implementations/test-utilities/database-cache-dapter.test-suite.d.ts +60 -0
  89. package/dist/cache/implementations/test-utilities/database-cache-dapter.test-suite.js +698 -0
  90. package/dist/cache/implementations/test-utilities/database-cache-dapter.test-suite.js.map +1 -0
  91. package/dist/collection/contracts/async-collection.contract.d.ts +2 -3
  92. package/dist/collection/contracts/async-collection.contract.js +1 -12
  93. package/dist/collection/contracts/async-collection.contract.js.map +1 -1
  94. package/dist/collection/contracts/collection.contract.d.ts +1 -1
  95. package/dist/collection/contracts/collection.errors.d.ts +1 -1
  96. package/dist/collection/contracts/collection.errors.js +3 -6
  97. package/dist/collection/contracts/collection.errors.js.map +1 -1
  98. package/dist/collection/implementations/_shared.d.ts +4 -4
  99. package/dist/collection/implementations/_shared.js +6 -9
  100. package/dist/collection/implementations/_shared.js.map +1 -1
  101. package/dist/collection/implementations/async-iterable-collection/_shared/async-delay-iterable.js +2 -2
  102. package/dist/collection/implementations/async-iterable-collection/_shared/async-delay-iterable.js.map +1 -1
  103. package/dist/collection/implementations/async-iterable-collection/async-iterable-collection.d.ts +5 -21
  104. package/dist/collection/implementations/async-iterable-collection/async-iterable-collection.js +12 -8
  105. package/dist/collection/implementations/async-iterable-collection/async-iterable-collection.js.map +1 -1
  106. package/dist/collection/implementations/iterable-collection/iterable-collection.d.ts +1 -1
  107. package/dist/collection/implementations/iterable-collection/iterable-collection.js +1 -1
  108. package/dist/collection/implementations/list-collection/list-collection.d.ts +1 -1
  109. package/dist/collection/implementations/list-collection/list-collection.js +1 -1
  110. package/dist/event-bus/contracts/event-bus-adapter.contract.d.ts +0 -9
  111. package/dist/event-bus/contracts/event-bus.contract.d.ts +5 -5
  112. package/dist/event-bus/contracts/event-bus.contract.js.map +1 -1
  113. package/dist/event-bus/contracts/event-bus.errors.js +2 -5
  114. package/dist/event-bus/contracts/event-bus.errors.js.map +1 -1
  115. package/dist/event-bus/implementations/adapters/memory-event-bus-adapter/memory-event-bus-adapter.d.ts +9 -29
  116. package/dist/event-bus/implementations/adapters/memory-event-bus-adapter/memory-event-bus-adapter.js +14 -35
  117. package/dist/event-bus/implementations/adapters/memory-event-bus-adapter/memory-event-bus-adapter.js.map +1 -1
  118. package/dist/event-bus/implementations/adapters/no-op-event-bus-adapter/no-op-event-bus-adapter.d.ts +2 -4
  119. package/dist/event-bus/implementations/adapters/no-op-event-bus-adapter/no-op-event-bus-adapter.js +2 -8
  120. package/dist/event-bus/implementations/adapters/no-op-event-bus-adapter/no-op-event-bus-adapter.js.map +1 -1
  121. package/dist/event-bus/implementations/adapters/redis-pub-sub-event-bus-adapter/redis-pub-sub-event-bus-adapter.d.ts +8 -15
  122. package/dist/event-bus/implementations/adapters/redis-pub-sub-event-bus-adapter/redis-pub-sub-event-bus-adapter.js +15 -34
  123. package/dist/event-bus/implementations/adapters/redis-pub-sub-event-bus-adapter/redis-pub-sub-event-bus-adapter.js.map +1 -1
  124. package/dist/event-bus/implementations/derivables/event-bus/event-bus.d.ts +85 -289
  125. package/dist/event-bus/implementations/derivables/event-bus/event-bus.js +128 -325
  126. package/dist/event-bus/implementations/derivables/event-bus/event-bus.js.map +1 -1
  127. package/dist/event-bus/implementations/derivables/event-bus/listener-store.d.ts +13 -0
  128. package/dist/event-bus/implementations/derivables/event-bus/listener-store.js +42 -0
  129. package/dist/event-bus/implementations/derivables/event-bus/listener-store.js.map +1 -0
  130. package/dist/event-bus/implementations/derivables/event-bus-factory/event-bus-factory.d.ts +103 -86
  131. package/dist/event-bus/implementations/derivables/event-bus-factory/event-bus-factory.js +135 -77
  132. package/dist/event-bus/implementations/derivables/event-bus-factory/event-bus-factory.js.map +1 -1
  133. package/dist/event-bus/implementations/test-utilities/event-bus-adapter.test-suite.d.ts +2 -48
  134. package/dist/event-bus/implementations/test-utilities/event-bus-adapter.test-suite.js +31 -122
  135. package/dist/event-bus/implementations/test-utilities/event-bus-adapter.test-suite.js.map +1 -1
  136. package/dist/event-bus/implementations/test-utilities/event-bus.test-suite.d.ts +2 -50
  137. package/dist/event-bus/implementations/test-utilities/event-bus.test-suite.js +41 -89
  138. package/dist/event-bus/implementations/test-utilities/event-bus.test-suite.js.map +1 -1
  139. package/dist/lock/contracts/database-lock-adapter.contract.d.ts +0 -9
  140. package/dist/lock/contracts/lock-adapter.contract.d.ts +0 -9
  141. package/dist/lock/contracts/lock-provider.contract.d.ts +20 -6
  142. package/dist/lock/contracts/lock.contract.d.ts +37 -8
  143. package/dist/lock/contracts/lock.errors.js +2 -5
  144. package/dist/lock/contracts/lock.errors.js.map +1 -1
  145. package/dist/lock/contracts/lock.events.js +2 -5
  146. package/dist/lock/contracts/lock.events.js.map +1 -1
  147. package/dist/lock/implementations/adapters/_module-exports.d.ts +1 -0
  148. package/dist/lock/implementations/adapters/_module-exports.js +1 -0
  149. package/dist/lock/implementations/adapters/_module-exports.js.map +1 -1
  150. package/dist/lock/implementations/adapters/kysely-lock-adapter/kysely-lock-adapter.d.ts +0 -5
  151. package/dist/lock/implementations/adapters/kysely-lock-adapter/kysely-lock-adapter.js +2 -21
  152. package/dist/lock/implementations/adapters/kysely-lock-adapter/kysely-lock-adapter.js.map +1 -1
  153. package/dist/lock/implementations/adapters/libsql-lock-adapter/libsql-lock-adapter.d.ts +11 -16
  154. package/dist/lock/implementations/adapters/libsql-lock-adapter/libsql-lock-adapter.js +11 -20
  155. package/dist/lock/implementations/adapters/libsql-lock-adapter/libsql-lock-adapter.js.map +1 -1
  156. package/dist/lock/implementations/adapters/memory-lock-adapter/memory-lock-adapter.d.ts +7 -26
  157. package/dist/lock/implementations/adapters/memory-lock-adapter/memory-lock-adapter.js +7 -35
  158. package/dist/lock/implementations/adapters/memory-lock-adapter/memory-lock-adapter.js.map +1 -1
  159. package/dist/lock/implementations/adapters/mongodb-lock-adapter/mongodb-lock-adapter.d.ts +13 -20
  160. package/dist/lock/implementations/adapters/mongodb-lock-adapter/mongodb-lock-adapter.js +13 -37
  161. package/dist/lock/implementations/adapters/mongodb-lock-adapter/mongodb-lock-adapter.js.map +1 -1
  162. package/dist/lock/implementations/adapters/no-op-lock-adapter/_module.d.ts +1 -0
  163. package/dist/lock/implementations/adapters/no-op-lock-adapter/_module.js +2 -0
  164. package/dist/lock/implementations/adapters/no-op-lock-adapter/_module.js.map +1 -0
  165. package/dist/lock/implementations/adapters/no-op-lock-adapter/no-op-lock-adapter.d.ts +17 -0
  166. package/dist/lock/implementations/adapters/no-op-lock-adapter/no-op-lock-adapter.js +24 -0
  167. package/dist/lock/implementations/adapters/no-op-lock-adapter/no-op-lock-adapter.js.map +1 -0
  168. package/dist/lock/implementations/adapters/redis-lock-adapter/redis-lock-adapter.d.ts +4 -22
  169. package/dist/lock/implementations/adapters/redis-lock-adapter/redis-lock-adapter.js +4 -31
  170. package/dist/lock/implementations/adapters/redis-lock-adapter/redis-lock-adapter.js.map +1 -1
  171. package/dist/lock/implementations/adapters/sqlite-lock-adapter/sqlite-lock-adapter.d.ts +14 -20
  172. package/dist/lock/implementations/adapters/sqlite-lock-adapter/sqlite-lock-adapter.js +12 -21
  173. package/dist/lock/implementations/adapters/sqlite-lock-adapter/sqlite-lock-adapter.js.map +1 -1
  174. package/dist/lock/implementations/derivables/lock-provider/database-lock-adapter.d.ts +0 -2
  175. package/dist/lock/implementations/derivables/lock-provider/database-lock-adapter.js +2 -8
  176. package/dist/lock/implementations/derivables/lock-provider/database-lock-adapter.js.map +1 -1
  177. package/dist/lock/implementations/derivables/lock-provider/is-database-lock-adapter.js +1 -5
  178. package/dist/lock/implementations/derivables/lock-provider/is-database-lock-adapter.js.map +1 -1
  179. package/dist/lock/implementations/derivables/lock-provider/lock-provider.d.ts +181 -369
  180. package/dist/lock/implementations/derivables/lock-provider/lock-provider.js +259 -407
  181. package/dist/lock/implementations/derivables/lock-provider/lock-provider.js.map +1 -1
  182. package/dist/lock/implementations/derivables/lock-provider/lock-serde-transformer.d.ts +15 -17
  183. package/dist/lock/implementations/derivables/lock-provider/lock-serde-transformer.js +42 -40
  184. package/dist/lock/implementations/derivables/lock-provider/lock-serde-transformer.js.map +1 -1
  185. package/dist/lock/implementations/derivables/lock-provider/lock-state.d.ts +3 -3
  186. package/dist/lock/implementations/derivables/lock-provider/lock-state.js.map +1 -1
  187. package/dist/lock/implementations/derivables/lock-provider/lock.d.ts +194 -680
  188. package/dist/lock/implementations/derivables/lock-provider/lock.js +284 -744
  189. package/dist/lock/implementations/derivables/lock-provider/lock.js.map +1 -1
  190. package/dist/lock/implementations/derivables/lock-provider-factory/lock-provider-factory.d.ts +106 -143
  191. package/dist/lock/implementations/derivables/lock-provider-factory/lock-provider-factory.js +173 -101
  192. package/dist/lock/implementations/derivables/lock-provider-factory/lock-provider-factory.js.map +1 -1
  193. package/dist/lock/implementations/test-utilities/database-lock-adapter.test-suite.d.ts +4 -5
  194. package/dist/lock/implementations/test-utilities/database-lock-adapter.test-suite.js +172 -247
  195. package/dist/lock/implementations/test-utilities/database-lock-adapter.test-suite.js.map +1 -1
  196. package/dist/lock/implementations/test-utilities/lock-adapter.test-suite.d.ts +5 -8
  197. package/dist/lock/implementations/test-utilities/lock-adapter.test-suite.js +93 -98
  198. package/dist/lock/implementations/test-utilities/lock-adapter.test-suite.js.map +1 -1
  199. package/dist/lock/implementations/test-utilities/lock-provider.test-suite.d.ts +15 -20
  200. package/dist/lock/implementations/test-utilities/lock-provider.test-suite.js +295 -145
  201. package/dist/lock/implementations/test-utilities/lock-provider.test-suite.js.map +1 -1
  202. package/dist/serde/implementations/adapters/mongodb-serde/mongodb-serde.js +1 -2
  203. package/dist/serde/implementations/adapters/mongodb-serde/mongodb-serde.js.map +1 -1
  204. package/dist/serde/implementations/adapters/no-op-serde-adapter/no-op-serde-adapter.d.ts +3 -2
  205. package/dist/serde/implementations/adapters/no-op-serde-adapter/no-op-serde-adapter.js +2 -1
  206. package/dist/serde/implementations/adapters/no-op-serde-adapter/no-op-serde-adapter.js.map +1 -1
  207. package/dist/serde/implementations/adapters/redis-serde/redis-serde.js +1 -2
  208. package/dist/serde/implementations/adapters/redis-serde/redis-serde.js.map +1 -1
  209. package/dist/serde/implementations/adapters/sql-serde/sql-serde.js +1 -2
  210. package/dist/serde/implementations/adapters/sql-serde/sql-serde.js.map +1 -1
  211. package/dist/serde/implementations/adapters/super-json-serde-adapter/super-json-serde-adapter.d.ts +2 -2
  212. package/dist/serde/implementations/adapters/super-json-serde-adapter/super-json-serde-adapter.js +2 -2
  213. package/dist/serde/implementations/adapters/super-json-serde-adapter/super-json-serde-adapter.js.map +1 -1
  214. package/dist/serde/implementations/derivables/serde.d.ts +14 -14
  215. package/dist/serde/implementations/derivables/serde.js +14 -15
  216. package/dist/serde/implementations/derivables/serde.js.map +1 -1
  217. package/dist/serde/implementations/test-utilities/flexible-serde-adapter.test-suite.d.ts +4 -4
  218. package/dist/serde/implementations/test-utilities/flexible-serde-adapter.test-suite.js +3 -3
  219. package/dist/serde/implementations/test-utilities/flexible-serde.test-suite.d.ts +5 -5
  220. package/dist/serde/implementations/test-utilities/flexible-serde.test-suite.js +4 -4
  221. package/dist/utilities/_module-exports.d.ts +2 -3
  222. package/dist/utilities/_module-exports.js +2 -3
  223. package/dist/utilities/_module-exports.js.map +1 -1
  224. package/dist/utilities/classes/_module.d.ts +4 -0
  225. package/dist/utilities/classes/_module.js +5 -0
  226. package/dist/utilities/classes/_module.js.map +1 -0
  227. package/dist/utilities/classes/key-prefixer/_module.d.ts +2 -0
  228. package/dist/utilities/classes/key-prefixer/_module.js +3 -0
  229. package/dist/utilities/classes/key-prefixer/_module.js.map +1 -0
  230. package/dist/utilities/classes/key-prefixer/key-prefixer.contract.d.ts +28 -0
  231. package/dist/utilities/classes/key-prefixer/key-prefixer.contract.js +5 -0
  232. package/dist/utilities/classes/key-prefixer/key-prefixer.contract.js.map +1 -0
  233. package/dist/utilities/classes/key-prefixer/key-prefixer.d.ts +73 -0
  234. package/dist/utilities/classes/key-prefixer/key-prefixer.js +135 -0
  235. package/dist/utilities/classes/key-prefixer/key-prefixer.js.map +1 -0
  236. package/dist/utilities/classes/kysely-table-name-transformer-plugin/_module.d.ts +1 -0
  237. package/dist/utilities/classes/kysely-table-name-transformer-plugin/_module.js +2 -0
  238. package/dist/utilities/classes/kysely-table-name-transformer-plugin/_module.js.map +1 -0
  239. package/dist/utilities/classes/kysely-table-name-transformer-plugin/kysely-table-name-transformer-plugin.js.map +1 -0
  240. package/dist/utilities/classes/pipeline/_module.d.ts +1 -0
  241. package/dist/utilities/classes/pipeline/_module.js +2 -0
  242. package/dist/utilities/classes/pipeline/_module.js.map +1 -0
  243. package/dist/utilities/{pipeline → classes/pipeline}/pipeline.d.ts +3 -2
  244. package/dist/utilities/{pipeline → classes/pipeline}/pipeline.js +3 -2
  245. package/dist/utilities/classes/pipeline/pipeline.js.map +1 -0
  246. package/dist/utilities/classes/time-span/_module.d.ts +1 -0
  247. package/dist/utilities/classes/time-span/_module.js +2 -0
  248. package/dist/utilities/classes/time-span/_module.js.map +1 -0
  249. package/dist/utilities/{time-span → classes/time-span}/time-span.d.ts +2 -1
  250. package/dist/utilities/{time-span → classes/time-span}/time-span.js +1 -0
  251. package/dist/utilities/classes/time-span/time-span.js.map +1 -0
  252. package/dist/utilities/{_constants.d.ts → constants.d.ts} +0 -3
  253. package/dist/utilities/constants.js +5 -0
  254. package/dist/utilities/constants.js.map +1 -0
  255. package/dist/utilities/contracts/_module.d.ts +3 -1
  256. package/dist/utilities/contracts/_module.js +3 -1
  257. package/dist/utilities/contracts/_module.js.map +1 -1
  258. package/dist/utilities/contracts/prunable.contract.d.ts +11 -0
  259. package/dist/utilities/contracts/prunable.contract.js +5 -0
  260. package/dist/utilities/contracts/prunable.contract.js.map +1 -0
  261. package/dist/utilities/contracts/sqlite-database.contract.d.ts +26 -0
  262. package/dist/utilities/contracts/sqlite-database.contract.js +5 -0
  263. package/dist/utilities/contracts/sqlite-database.contract.js.map +1 -0
  264. package/dist/utilities/functions.d.ts +34 -2
  265. package/dist/utilities/functions.js +72 -4
  266. package/dist/utilities/functions.js.map +1 -1
  267. package/dist/utilities/types.d.ts +49 -16
  268. package/package.json +14 -13
  269. package/dist/cache/implementations/adapters/kysely-sqlite-cache-adapter/_module.js +0 -2
  270. package/dist/cache/implementations/adapters/kysely-sqlite-cache-adapter/_module.js.map +0 -1
  271. package/dist/cache/implementations/adapters/kysely-sqlite-cache-adapter/kysely-sqlite-cache-adapter.d.ts +0 -61
  272. package/dist/cache/implementations/adapters/kysely-sqlite-cache-adapter/kysely-sqlite-cache-adapter.js +0 -318
  273. package/dist/cache/implementations/adapters/kysely-sqlite-cache-adapter/kysely-sqlite-cache-adapter.js.map +0 -1
  274. package/dist/utilities/_constants.js +0 -8
  275. package/dist/utilities/_constants.js.map +0 -1
  276. package/dist/utilities/kysely/_module.d.ts +0 -1
  277. package/dist/utilities/kysely/_module.js +0 -2
  278. package/dist/utilities/kysely/_module.js.map +0 -1
  279. package/dist/utilities/kysely/kysely-table-name-transformer-plugin.js.map +0 -1
  280. package/dist/utilities/pipeline/_module.d.ts +0 -1
  281. package/dist/utilities/pipeline/_module.js +0 -2
  282. package/dist/utilities/pipeline/_module.js.map +0 -1
  283. package/dist/utilities/pipeline/pipeline.js.map +0 -1
  284. package/dist/utilities/time-span/_module.d.ts +0 -1
  285. package/dist/utilities/time-span/_module.js +0 -2
  286. package/dist/utilities/time-span/_module.js.map +0 -1
  287. package/dist/utilities/time-span/time-span.js.map +0 -1
  288. /package/dist/utilities/{kysely → classes/kysely-table-name-transformer-plugin}/kysely-table-name-transformer-plugin.d.ts +0 -0
  289. /package/dist/utilities/{kysely → classes/kysely-table-name-transformer-plugin}/kysely-table-name-transformer-plugin.js +0 -0
@@ -5,7 +5,7 @@ import type { OneOrMore } from "../../../utilities/_module-exports.js";
5
5
  import type { IFlexibleSerde, IFlexibleSerdeAdapter, ISerdeTransformer, SerializableClass, SerializableEventClass } from "../../../serde/contracts/_module-exports.js";
6
6
  /**
7
7
  *
8
- * IMPORT_PATH: ```"@daiso-tech/core/serde/implementations/deriavables"```
8
+ * IMPORT_PATH: ```"@daiso-tech/core/serde/deriavables"```
9
9
  * @group Derivables
10
10
  */
11
11
  export type SerdeSettings = {
@@ -101,7 +101,7 @@ export type SerdeSettings = {
101
101
  /**
102
102
  * <i>Serde</i> class can be derived from any <i>{@link IFlexibleSerdeAdapter}</i>.
103
103
  *
104
- * IMPORT_PATH: ```"@daiso-tech/core/serde/implementations/deriavables"```
104
+ * IMPORT_PATH: ```"@daiso-tech/core/serde/deriavables"```
105
105
  * @group Derivables
106
106
  */
107
107
  export declare class Serde<TSerializedValue> implements IFlexibleSerde<TSerializedValue> {
@@ -110,8 +110,8 @@ export declare class Serde<TSerializedValue> implements IFlexibleSerde<TSerializ
110
110
  * @example
111
111
  * ```ts
112
112
  * import type { IFlexibleSerde } from "@daiso-tech/core/serde/contracts";
113
- * import { SuperJsonSerdeAdapter } from "@daiso-tech/core/serde/implementations/adapters";
114
- * import { Serde } from "@daiso-tech/core/serde/implementations/derivables";
113
+ * import { SuperJsonSerdeAdapter } from "@daiso-tech/core/serde/adapters";
114
+ * import { Serde } from "@daiso-tech/core/serde";
115
115
  *
116
116
  * const serde: IFlexibleSerde = new Serde(new SuperJsonSerdeAdapter());
117
117
  * ```
@@ -121,8 +121,8 @@ export declare class Serde<TSerializedValue> implements IFlexibleSerde<TSerializ
121
121
  * @example
122
122
  * ```ts
123
123
  * import type { IFlexibleSerde } from "@daiso-tech/core/serde/contracts";
124
- * import { SuperJsonSerdeAdapter } from "@daiso-tech/core/serde/implementations/adapters";
125
- * import { Serde } from "@daiso-tech/core/serde/implementations/derivables";
124
+ * import { SuperJsonSerdeAdapter } from "@daiso-tech/core/serde/adapters";
125
+ * import { Serde } from "@daiso-tech/core/serde";
126
126
  *
127
127
  * const serde: IFlexibleSerde = new Serde(new SuperJsonSerdeAdapter());
128
128
  *
@@ -138,8 +138,8 @@ export declare class Serde<TSerializedValue> implements IFlexibleSerde<TSerializ
138
138
  * @example
139
139
  * ```ts
140
140
  * import type { IFlexibleSerde } from "@daiso-tech/core/serde/contracts";
141
- * import { SuperJsonSerdeAdapter } from "@daiso-tech/core/serde/implementations/adapters";
142
- * import { Serde } from "@daiso-tech/core/serde/implementations/derivables";
141
+ * import { SuperJsonSerdeAdapter } from "@daiso-tech/core/serde/adapters";
142
+ * import { Serde } from "@daiso-tech/core/serde";
143
143
  *
144
144
  * const serde: IFlexibleSerde = new Serde(new SuperJsonSerdeAdapter());
145
145
  *
@@ -158,8 +158,8 @@ export declare class Serde<TSerializedValue> implements IFlexibleSerde<TSerializ
158
158
  * @example
159
159
  * ```ts
160
160
  * import type { IFlexibleSerde } from "@daiso-tech/core/serde/contracts";
161
- * import { SuperJsonSerdeAdapter } from "@daiso-tech/core/serde/implementations/adapters";
162
- * import { Serde } from "@daiso-tech/core/serde/implementations/derivables";
161
+ * import { SuperJsonSerdeAdapter } from "@daiso-tech/core/serde/adapters";
162
+ * import { Serde } from "@daiso-tech/core/serde";
163
163
  * import { BaseEvent } from "@daiso-tech/core/event-bus/contracts";
164
164
  *
165
165
  * const serde: IFlexibleSerde = new Serde(new SuperJsonSerdeAdapter());
@@ -189,8 +189,8 @@ export declare class Serde<TSerializedValue> implements IFlexibleSerde<TSerializ
189
189
  * @example
190
190
  * ```ts
191
191
  * import type { IFlexibleSerde } from "@daiso-tech/core/serde/contracts";
192
- * import { SuperJsonSerdeAdapter } from "@daiso-tech/core/serde/implementations/adapters";
193
- * import { Serde } from "@daiso-tech/core/serde/implementations/derivables";
192
+ * import { SuperJsonSerdeAdapter } from "@daiso-tech/core/serde/adapters";
193
+ * import { Serde } from "@daiso-tech/core/serde";
194
194
  * import { ISerializable } from "@daiso-tech/core/serde/contracts";
195
195
  *
196
196
  * const serde: IFlexibleSerde = new Serde(new SuperJsonSerdeAdapter());
@@ -238,8 +238,8 @@ export declare class Serde<TSerializedValue> implements IFlexibleSerde<TSerializ
238
238
  * @example
239
239
  * ```ts
240
240
  * import type { IFlexibleSerde } from "@daiso-tech/core/serde/contracts";
241
- * import { SuperJsonSerdeAdapter } from "@daiso-tech/core/serde/implementations/adapters";
242
- * import { Serde } from "@daiso-tech/core/serde/implementations/derivables";
241
+ * import { SuperJsonSerdeAdapter } from "@daiso-tech/core/serde/adapters";
242
+ * import { Serde } from "@daiso-tech/core/serde";
243
243
  *
244
244
  * const serde: IFlexibleSerde = new Serde(new SuperJsonSerdeAdapter());
245
245
  *
@@ -7,7 +7,7 @@ import { ArrayBufferSerdeTransformer, BufferSerdeTransformer, Uint8ArraySerdeTra
7
7
  /**
8
8
  * <i>Serde</i> class can be derived from any <i>{@link IFlexibleSerdeAdapter}</i>.
9
9
  *
10
- * IMPORT_PATH: ```"@daiso-tech/core/serde/implementations/deriavables"```
10
+ * IMPORT_PATH: ```"@daiso-tech/core/serde/deriavables"```
11
11
  * @group Derivables
12
12
  */
13
13
  export class Serde {
@@ -16,8 +16,8 @@ export class Serde {
16
16
  * @example
17
17
  * ```ts
18
18
  * import type { IFlexibleSerde } from "@daiso-tech/core/serde/contracts";
19
- * import { SuperJsonSerdeAdapter } from "@daiso-tech/core/serde/implementations/adapters";
20
- * import { Serde } from "@daiso-tech/core/serde/implementations/derivables";
19
+ * import { SuperJsonSerdeAdapter } from "@daiso-tech/core/serde/adapters";
20
+ * import { Serde } from "@daiso-tech/core/serde";
21
21
  *
22
22
  * const serde: IFlexibleSerde = new Serde(new SuperJsonSerdeAdapter());
23
23
  * ```
@@ -96,8 +96,8 @@ export class Serde {
96
96
  * @example
97
97
  * ```ts
98
98
  * import type { IFlexibleSerde } from "@daiso-tech/core/serde/contracts";
99
- * import { SuperJsonSerdeAdapter } from "@daiso-tech/core/serde/implementations/adapters";
100
- * import { Serde } from "@daiso-tech/core/serde/implementations/derivables";
99
+ * import { SuperJsonSerdeAdapter } from "@daiso-tech/core/serde/adapters";
100
+ * import { Serde } from "@daiso-tech/core/serde";
101
101
  *
102
102
  * const serde: IFlexibleSerde = new Serde(new SuperJsonSerdeAdapter());
103
103
  *
@@ -115,8 +115,8 @@ export class Serde {
115
115
  * @example
116
116
  * ```ts
117
117
  * import type { IFlexibleSerde } from "@daiso-tech/core/serde/contracts";
118
- * import { SuperJsonSerdeAdapter } from "@daiso-tech/core/serde/implementations/adapters";
119
- * import { Serde } from "@daiso-tech/core/serde/implementations/derivables";
118
+ * import { SuperJsonSerdeAdapter } from "@daiso-tech/core/serde/adapters";
119
+ * import { Serde } from "@daiso-tech/core/serde";
120
120
  *
121
121
  * const serde: IFlexibleSerde = new Serde(new SuperJsonSerdeAdapter());
122
122
  *
@@ -137,8 +137,8 @@ export class Serde {
137
137
  * @example
138
138
  * ```ts
139
139
  * import type { IFlexibleSerde } from "@daiso-tech/core/serde/contracts";
140
- * import { SuperJsonSerdeAdapter } from "@daiso-tech/core/serde/implementations/adapters";
141
- * import { Serde } from "@daiso-tech/core/serde/implementations/derivables";
140
+ * import { SuperJsonSerdeAdapter } from "@daiso-tech/core/serde/adapters";
141
+ * import { Serde } from "@daiso-tech/core/serde";
142
142
  * import { BaseEvent } from "@daiso-tech/core/event-bus/contracts";
143
143
  *
144
144
  * const serde: IFlexibleSerde = new Serde(new SuperJsonSerdeAdapter());
@@ -181,8 +181,8 @@ export class Serde {
181
181
  * @example
182
182
  * ```ts
183
183
  * import type { IFlexibleSerde } from "@daiso-tech/core/serde/contracts";
184
- * import { SuperJsonSerdeAdapter } from "@daiso-tech/core/serde/implementations/adapters";
185
- * import { Serde } from "@daiso-tech/core/serde/implementations/derivables";
184
+ * import { SuperJsonSerdeAdapter } from "@daiso-tech/core/serde/adapters";
185
+ * import { Serde } from "@daiso-tech/core/serde";
186
186
  * import { ISerializable } from "@daiso-tech/core/serde/contracts";
187
187
  *
188
188
  * const serde: IFlexibleSerde = new Serde(new SuperJsonSerdeAdapter());
@@ -244,8 +244,8 @@ export class Serde {
244
244
  * @example
245
245
  * ```ts
246
246
  * import type { IFlexibleSerde } from "@daiso-tech/core/serde/contracts";
247
- * import { SuperJsonSerdeAdapter } from "@daiso-tech/core/serde/implementations/adapters";
248
- * import { Serde } from "@daiso-tech/core/serde/implementations/derivables";
247
+ * import { SuperJsonSerdeAdapter } from "@daiso-tech/core/serde/adapters";
248
+ * import { Serde } from "@daiso-tech/core/serde";
249
249
  *
250
250
  * const serde: IFlexibleSerde = new Serde(new SuperJsonSerdeAdapter());
251
251
  *
@@ -304,8 +304,7 @@ export class Serde {
304
304
  registerCustom(transformer, prefix) {
305
305
  let name = resolveOneOrMoreStr(transformer.name);
306
306
  if (prefix !== undefined) {
307
- prefix = resolveOneOrMoreStr(prefix);
308
- name = resolveOneOrMoreStr([prefix, name]);
307
+ name = resolveOneOrMoreStr([resolveOneOrMoreStr(prefix), name]);
309
308
  }
310
309
  this.serdeAdapter.registerCustom({
311
310
  name,
@@ -1 +1 @@
1
- {"version":3,"file":"serde.js","sourceRoot":"","sources":["../../../../src/serde/implementations/derivables/serde.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EACH,kBAAkB,EAClB,mBAAmB,GACtB,MAAM,gCAAgC,CAAC;AASxC,OAAO,EAAE,SAAS,EAAE,M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I,MAAM,KAAK,SAAS,EAAE,CAAC;YACvB,MAAM,GAAG,mBAAmB,CAAC,MAAM,CAAC,CAAC;YACrC,IAAI,GAAG,mBAAmB,CAAC,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC;QAC/C,CAAC;QACD,IAAI,CAAC,YAAY,CAAC,cAAc,CAAC;YAC7B,IAAI;YACJ,YAAY,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,WAAW,CAAC,YAAY,CAAC,KAAK,CAAC;YACxD,SAAS,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,WAAW,CAAC,SAAS,CAAC,KAAK,CAAC;YAClD,WAAW,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,WAAW,CAAC,WAAW,CAAC,KAAK,CAAC;SACzD,CAAC,CAAC;QACH,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ"}
1
+ {"version":3,"file":"serde.js","sourceRoot":"","sources":["../../../../src/serde/implementations/derivables/serde.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EACH,kBAAkB,EAClB,mBAAmB,GACtB,MAAM,gCAAgC,CAAC;AASxC,OAAO,EAAE,SAAS,EAAE,MAAM,0CAA0C,CAAC;AACrE,OAAO,EACH,2BAA2B,EAC3B,sBAAsB,EACtB,0BAA0B,EAC1B,yBAAyB,EACzB,2BAA2B,EAC3B,0BAA0B,EAC1B,2BAA2B,EAC3B,0BAA0B,EAC1B,8BAA8B,EAC9B,6BAA6B,EAC7B,4BAA4B,EAC5B,4BAA4B,EAC5B,mBAAmB,EACnB,mBAAmB,EACnB,sBAAsB,EACtB,mBAAmB,EACnB,wBAAwB,EACxB,yBAAyB,EACzB,sBAAsB,EACtB,oBAAoB,EACpB,mBAAmB,EACnB,+BAA+B,GAClC,MAAM,0DAA0D,CAAC;AAuHlE;;;;;GAKG;AACH,MAAM,OAAO,KAAK;IAcO;IAXrB;;;;;;;;;OASG;IACH,YACqB,YAAqD,EACtE,WAA0B,EAAE;QADX,iBA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J"}
@@ -5,7 +5,7 @@ import { type TestAPI, type ExpectStatic } from "vitest";
5
5
  import type { IFlexibleSerdeAdapter } from "../../../serde/contracts/_module-exports.js";
6
6
  /**
7
7
  *
8
- * IMPORT_PATH: ```"@daiso-tech/core/serde/implementations/test-utilities"```
8
+ * IMPORT_PATH: ```"@daiso-tech/core/serde/test-utilities"```
9
9
  * @group Test utilities
10
10
  */
11
11
  export type FlexibleSerdeAdapterSuiteSettings = {
@@ -16,13 +16,13 @@ export type FlexibleSerdeAdapterSuiteSettings = {
16
16
  /**
17
17
  * The <i>flexibleSerdeAdapterTestSuite</i> function simplifies the process of testing your custom implementation of <i>{@link IFlexibleSerdeAdapter}</i> with <i>vitest</i>.
18
18
  *
19
- * IMPORT_PATH: ```"@daiso-tech/core/serde/implementations/test-utilities"```
19
+ * IMPORT_PATH: ```"@daiso-tech/core/serde/test-utilities"```
20
20
  * @group Test utilities
21
21
  * @example
22
22
  * ```ts
23
23
  * import { describe, expect, test } from "vitest";
24
- * import { SuperJsonSerdeAdapter } from "@daiso-tech/core/serde/implementations/adapters";
25
- * import { flexibleSerdeAdapterTestSuite } from "@daiso-tech/core/serde/implementations/test-utilities";
24
+ * import { SuperJsonSerdeAdapter } from "@daiso-tech/core/serde/adapters";
25
+ * import { flexibleSerdeAdapterTestSuite } from "@daiso-tech/core/serde/test-utilities";
26
26
  *
27
27
  * describe("class: SuperJsonSerdeAdapter", () => {
28
28
  * flexibleSerdeAdapterTestSuite({
@@ -5,13 +5,13 @@ import { beforeEach } from "vitest";
5
5
  /**
6
6
  * The <i>flexibleSerdeAdapterTestSuite</i> function simplifies the process of testing your custom implementation of <i>{@link IFlexibleSerdeAdapter}</i> with <i>vitest</i>.
7
7
  *
8
- * IMPORT_PATH: ```"@daiso-tech/core/serde/implementations/test-utilities"```
8
+ * IMPORT_PATH: ```"@daiso-tech/core/serde/test-utilities"```
9
9
  * @group Test utilities
10
10
  * @example
11
11
  * ```ts
12
12
  * import { describe, expect, test } from "vitest";
13
- * import { SuperJsonSerdeAdapter } from "@daiso-tech/core/serde/implementations/adapters";
14
- * import { flexibleSerdeAdapterTestSuite } from "@daiso-tech/core/serde/implementations/test-utilities";
13
+ * import { SuperJsonSerdeAdapter } from "@daiso-tech/core/serde/adapters";
14
+ * import { flexibleSerdeAdapterTestSuite } from "@daiso-tech/core/serde/test-utilities";
15
15
  *
16
16
  * describe("class: SuperJsonSerdeAdapter", () => {
17
17
  * flexibleSerdeAdapterTestSuite({
@@ -5,7 +5,7 @@ import { type TestAPI, type ExpectStatic } from "vitest";
5
5
  import type { IFlexibleSerde } from "../../../serde/contracts/_module-exports.js";
6
6
  /**
7
7
  *
8
- * IMPORT_PATH: ```"@daiso-tech/core/serde/implementations/test-utilities"```
8
+ * IMPORT_PATH: ```"@daiso-tech/core/serde/test-utilities"```
9
9
  * @group Test utilities
10
10
  */
11
11
  export type FlexibleSerdeSuiteSettings = {
@@ -16,14 +16,14 @@ export type FlexibleSerdeSuiteSettings = {
16
16
  /**
17
17
  * The <i>flexibleSerdeTestSuite</i> function simplifies the process of testing your custom implementation of <i>{@link IFlexibleSerde}</i> with <i>vitest</i>.
18
18
  *
19
- * IMPORT_PATH: ```"@daiso-tech/core/serde/implementations/test-utilities"```
19
+ * IMPORT_PATH: ```"@daiso-tech/core/serde/test-utilities"```
20
20
  * @group Test utilities
21
21
  * @example
22
22
  * ```ts
23
23
  * import { describe, test, expect } from "vitest";
24
- * import { Serde } from "@daiso-tech/core/serde/implementations/derivables";
25
- * import { SuperJsonSerdeAdapter } from "@daiso-tech/core/serde/implementations/adapters";
26
- * import { flexibleSerdeTestSuite } from "@daiso-tech/core/serde/implementations/test-utilities";
24
+ * import { Serde } from "@daiso-tech/core/serde";
25
+ * import { SuperJsonSerdeAdapter } from "@daiso-tech/core/serde/adapters";
26
+ * import { flexibleSerdeTestSuite } from "@daiso-tech/core/serde/test-utilities";
27
27
  *
28
28
  * describe("class: Serde", () => {
29
29
  * flexibleSerdeTestSuite({
@@ -5,14 +5,14 @@ import { beforeEach } from "vitest";
5
5
  /**
6
6
  * The <i>flexibleSerdeTestSuite</i> function simplifies the process of testing your custom implementation of <i>{@link IFlexibleSerde}</i> with <i>vitest</i>.
7
7
  *
8
- * IMPORT_PATH: ```"@daiso-tech/core/serde/implementations/test-utilities"```
8
+ * IMPORT_PATH: ```"@daiso-tech/core/serde/test-utilities"```
9
9
  * @group Test utilities
10
10
  * @example
11
11
  * ```ts
12
12
  * import { describe, test, expect } from "vitest";
13
- * import { Serde } from "@daiso-tech/core/serde/implementations/derivables";
14
- * import { SuperJsonSerdeAdapter } from "@daiso-tech/core/serde/implementations/adapters";
15
- * import { flexibleSerdeTestSuite } from "@daiso-tech/core/serde/implementations/test-utilities";
13
+ * import { Serde } from "@daiso-tech/core/serde";
14
+ * import { SuperJsonSerdeAdapter } from "@daiso-tech/core/serde/adapters";
15
+ * import { flexibleSerdeTestSuite } from "@daiso-tech/core/serde/test-utilities";
16
16
  *
17
17
  * describe("class: Serde", () => {
18
18
  * flexibleSerdeTestSuite({
@@ -1,7 +1,6 @@
1
+ export * from "../utilities/classes/_module.js";
1
2
  export * from "../utilities/contracts/_module.js";
2
- export * from "../utilities/kysely/_module.js";
3
- export * from "../utilities/time-span/_module.js";
4
- export * from "../utilities/_constants.js";
3
+ export * from "../utilities/constants.js";
5
4
  export * from "../utilities/errors.js";
6
5
  export * from "../utilities/types.js";
7
6
  export * from "../utilities/functions.js";
@@ -1,7 +1,6 @@
1
+ export * from "../utilities/classes/_module.js";
1
2
  export * from "../utilities/contracts/_module.js";
2
- export * from "../utilities/kysely/_module.js";
3
- export * from "../utilities/time-span/_module.js";
4
- export * from "../utilities/_constants.js";
3
+ export * from "../utilities/constants.js";
5
4
  export * from "../utilities/errors.js";
6
5
  export * from "../utilities/types.js";
7
6
  export * from "../utilities/functions.js";
@@ -1 +1 @@
1
- {"version":3,"file":"_module-exports.js","sourceRoot":"","sources":["../../src/utilities/_module-exports.ts"],"names":[],"mappings":"AAAA,cAAc,kCAAkC,CAAC;AACjD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,kCAAkC,CAAC;AACjD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC"}
1
+ {"version":3,"file":"_module-exports.js","sourceRoot":"","sources":["../../src/utilities/_module-exports.ts"],"names":[],"mappings":"AAAA,cAAc,gCAAgC,CAAC;AAC/C,cAAc,kCAAkC,CAAC;AACjD,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC"}
@@ -0,0 +1,4 @@
1
+ export * from "../../utilities/classes/key-prefixer/_module.js";
2
+ export * from "../../utilities/classes/kysely-table-name-transformer-plugin/_module.js";
3
+ export * from "../../utilities/classes/pipeline/_module.js";
4
+ export * from "../../utilities/classes/time-span/_module.js";
@@ -0,0 +1,5 @@
1
+ export * from "../../utilities/classes/key-prefixer/_module.js";
2
+ export * from "../../utilities/classes/kysely-table-name-transformer-plugin/_module.js";
3
+ export * from "../../utilities/classes/pipeline/_module.js";
4
+ export * from "../../utilities/classes/time-span/_module.js";
5
+ //# sourceMappingURL=_module.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_module.js","sourceRoot":"","sources":["../../../src/utilities/classes/_module.ts"],"names":[],"mappings":"AAAA,cAAc,6CAA6C,CAAC;AAC5D,cAAc,qEAAqE,CAAC;AACpF,cAAc,yCAAyC,CAAC;AACxD,cAAc,0CAA0C,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from "../../../utilities/classes/key-prefixer/key-prefixer.contract.js";
2
+ export * from "../../../utilities/classes/key-prefixer/key-prefixer.js";
@@ -0,0 +1,3 @@
1
+ export * from "../../../utilities/classes/key-prefixer/key-prefixer.contract.js";
2
+ export * from "../../../utilities/classes/key-prefixer/key-prefixer.js";
3
+ //# sourceMappingURL=_module.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_module.js","sourceRoot":"","sources":["../../../../src/utilities/classes/key-prefixer/_module.ts"],"names":[],"mappings":"AAAA,cAAc,2DAA2D,CAAC;AAC1E,cAAc,kDAAkD,CAAC"}
@@ -0,0 +1,28 @@
1
+ /**
2
+ * @module Utilities
3
+ */
4
+ import type { OneOrMore } from "../../../utilities/types.js";
5
+ /**
6
+ *
7
+ * IMPORT_PATH: ```"@daiso-tech/core/utilities"```
8
+ * @group KeyPrefixer
9
+ */
10
+ export type IKey = {
11
+ readonly original: OneOrMore<string>;
12
+ readonly resolved: string;
13
+ readonly prefixed: string;
14
+ };
15
+ /**
16
+ *
17
+ * IMPORT_PATH: ```"@daiso-tech/core/utilities"```
18
+ * @group KeyPrefixer
19
+ */
20
+ export type IKeyPrefixer = {
21
+ readonly originalGroup: OneOrMore<string> | null;
22
+ readonly resolvedGroup: string | null;
23
+ readonly originalRootPrefix: OneOrMore<string>;
24
+ readonly resolvedRootPrefix: string;
25
+ readonly keyPrefix: string;
26
+ create(key: OneOrMore<string>): IKey;
27
+ withGroup(group: OneOrMore<string>): IKeyPrefixer;
28
+ };
@@ -0,0 +1,5 @@
1
+ /**
2
+ * @module Utilities
3
+ */
4
+ export {};
5
+ //# sourceMappingURL=key-prefixer.contract.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"key-prefixer.contract.js","sourceRoot":"","sources":["../../../../src/utilities/classes/key-prefixer/key-prefixer.contract.ts"],"names":[],"mappings":"AAAA;;GAEG"}
@@ -0,0 +1,73 @@
1
+ /**
2
+ * @module Utilities
3
+ */
4
+ import type { AtLeastOne, OneOrMore } from "../../../utilities/types.js";
5
+ import type { IKey, IKeyPrefixer } from "../../../utilities/classes/key-prefixer/key-prefixer.contract.js";
6
+ /**
7
+ * @internal
8
+ */
9
+ type KeySettings = {
10
+ prefixArr: AtLeastOne<string>;
11
+ key: OneOrMore<string>;
12
+ identifierDelimeter: string;
13
+ keyDelimeter: string;
14
+ };
15
+ /**
16
+ *
17
+ * IMPORT_PATH: ```"@daiso-tech/core/utilities"```
18
+ * @group KeyPrefixer
19
+ */
20
+ declare class Key implements IKey {
21
+ private readonly prefixArr;
22
+ private readonly key;
23
+ private readonly identifierDelimeter;
24
+ private readonly keyDelimeter;
25
+ /**
26
+ *
27
+ * @internal
28
+ */
29
+ constructor(settings: KeySettings);
30
+ get original(): OneOrMore<string>;
31
+ get resolved(): string;
32
+ get prefixed(): string;
33
+ }
34
+ /**
35
+ *
36
+ * IMPORT_PATH: ```"@daiso-tech/core/utilities"```
37
+ * @group KeyPrefixer
38
+ */
39
+ export type KeyPrefixerSettings = {
40
+ identifierDelimeter?: string;
41
+ keyDelimeter?: string;
42
+ keyIdentifier?: string;
43
+ rootIdentifier?: string;
44
+ groupIdentifier?: string;
45
+ };
46
+ /**
47
+ *
48
+ * IMPORT_PATH: ```"@daiso-tech/core/utilities"```
49
+ * @group KeyPrefixer
50
+ */
51
+ export declare class KeyPrefixer implements IKeyPrefixer {
52
+ private readonly _rootPrefix;
53
+ private _group;
54
+ private readonly identifierDelimeter;
55
+ private readonly keyDelimeter;
56
+ private readonly rootIdentifier;
57
+ private readonly groupIdentifier;
58
+ private readonly keyIdentifier;
59
+ constructor(_rootPrefix: OneOrMore<string>, settings?: KeyPrefixerSettings);
60
+ get originalGroup(): OneOrMore<string> | null;
61
+ get resolvedGroup(): string | null;
62
+ get originalRootPrefix(): OneOrMore<string>;
63
+ get resolvedRootPrefix(): string;
64
+ private validate;
65
+ private getKeyPrefixArray;
66
+ get keyPrefix(): string;
67
+ /**
68
+ * Chaining this method multiple times will have no effect.
69
+ */
70
+ withGroup(group: OneOrMore<string>): KeyPrefixer;
71
+ create(key: OneOrMore<string>): Key;
72
+ }
73
+ export {};
@@ -0,0 +1,135 @@
1
+ /**
2
+ * @module Utilities
3
+ */
4
+ import { resolveOneOrMoreStr } from "../../../utilities/functions.js";
5
+ /**
6
+ *
7
+ * IMPORT_PATH: ```"@daiso-tech/core/utilities"```
8
+ * @group KeyPrefixer
9
+ */
10
+ class Key {
11
+ prefixArr;
12
+ key;
13
+ identifierDelimeter;
14
+ keyDelimeter;
15
+ /**
16
+ *
17
+ * @internal
18
+ */
19
+ constructor(settings) {
20
+ const { prefixArr, key, identifierDelimeter, keyDelimeter } = settings;
21
+ this.prefixArr = prefixArr;
22
+ this.key = key;
23
+ this.identifierDelimeter = identifierDelimeter;
24
+ this.keyDelimeter = keyDelimeter;
25
+ }
26
+ get original() {
27
+ return this.key;
28
+ }
29
+ get resolved() {
30
+ return resolveOneOrMoreStr(this.key);
31
+ }
32
+ get prefixed() {
33
+ return resolveOneOrMoreStr([
34
+ ...this.prefixArr,
35
+ resolveOneOrMoreStr(this.key, this.keyDelimeter),
36
+ ], this.identifierDelimeter);
37
+ }
38
+ }
39
+ /**
40
+ *
41
+ * IMPORT_PATH: ```"@daiso-tech/core/utilities"```
42
+ * @group KeyPrefixer
43
+ */
44
+ export class KeyPrefixer {
45
+ _rootPrefix;
46
+ _group = null;
47
+ identifierDelimeter;
48
+ keyDelimeter;
49
+ rootIdentifier;
50
+ groupIdentifier;
51
+ keyIdentifier;
52
+ constructor(_rootPrefix, settings = {}) {
53
+ this._rootPrefix = _rootPrefix;
54
+ const { identifierDelimeter = ":", keyDelimeter = "/", keyIdentifier = "_ky", rootIdentifier = "_rt", groupIdentifier = "_gp", } = settings;
55
+ this.rootIdentifier = rootIdentifier;
56
+ this.groupIdentifier = groupIdentifier;
57
+ this.keyIdentifier = keyIdentifier;
58
+ this.identifierDelimeter = identifierDelimeter;
59
+ this.keyDelimeter = keyDelimeter;
60
+ this.validate(this._rootPrefix);
61
+ if (this._group !== null) {
62
+ this.validate(this._group);
63
+ }
64
+ }
65
+ get originalGroup() {
66
+ return this._group;
67
+ }
68
+ get resolvedGroup() {
69
+ if (this._group === null) {
70
+ return null;
71
+ }
72
+ return resolveOneOrMoreStr(this._group);
73
+ }
74
+ get originalRootPrefix() {
75
+ return this._rootPrefix;
76
+ }
77
+ get resolvedRootPrefix() {
78
+ return resolveOneOrMoreStr(this._rootPrefix);
79
+ }
80
+ validate(key) {
81
+ const resolvedKey = resolveOneOrMoreStr(key);
82
+ if (resolvedKey.includes(this.rootIdentifier)) {
83
+ throw new Error("!!__MESSAGE__!!");
84
+ }
85
+ if (resolvedKey.includes(this.groupIdentifier)) {
86
+ throw new Error("!!__MESSAGE__!!");
87
+ }
88
+ if (resolvedKey.includes(this.keyIdentifier)) {
89
+ throw new Error("!!__MESSAGE__!!");
90
+ }
91
+ }
92
+ getKeyPrefixArray() {
93
+ let array = [
94
+ this.rootIdentifier,
95
+ resolveOneOrMoreStr(this._rootPrefix, this.keyDelimeter),
96
+ ];
97
+ if (this._group !== null) {
98
+ array = [
99
+ ...array,
100
+ this.groupIdentifier,
101
+ resolveOneOrMoreStr(this._group, this.keyDelimeter),
102
+ ];
103
+ }
104
+ return [...array, this.keyIdentifier];
105
+ }
106
+ get keyPrefix() {
107
+ return resolveOneOrMoreStr(this.getKeyPrefixArray(), this.identifierDelimeter);
108
+ }
109
+ /**
110
+ * Chaining this method multiple times will have no effect.
111
+ */
112
+ withGroup(group) {
113
+ const keyProvider = new KeyPrefixer(this._rootPrefix, {
114
+ identifierDelimeter: this.identifierDelimeter,
115
+ keyDelimeter: this.keyDelimeter,
116
+ rootIdentifier: this.rootIdentifier,
117
+ groupIdentifier: this.groupIdentifier,
118
+ keyIdentifier: this.keyIdentifier,
119
+ });
120
+ if (keyProvider._group === null) {
121
+ keyProvider._group = group;
122
+ }
123
+ return keyProvider;
124
+ }
125
+ create(key) {
126
+ this.validate(key);
127
+ return new Key({
128
+ key,
129
+ keyDelimeter: this.keyDelimeter,
130
+ identifierDelimeter: this.identifierDelimeter,
131
+ prefixArr: this.getKeyPrefixArray(),
132
+ });
133
+ }
134
+ }
135
+ //# sourceMappingURL=key-prefixer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"key-prefixer.js","sourceRoot":"","sources":["../../../../src/utilities/classes/key-prefixer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ACX,GAAG;YACH,YAAY,EAAE,IAAI,CAAC,YAAY;YAC/B,mBAAmB,EAAE,IAAI,CAAC,mBAAmB;YAC7C,SAAS,EAAE,IAAI,CAAC,iBAAiB,EAAE;SACtC,CAAC,CAAC;IACP,CAAC;CACJ"}
@@ -0,0 +1 @@
1
+ export * from "../../../utilities/classes/kysely-table-name-transformer-plugin/kysely-table-name-transformer-plugin.js";
@@ -0,0 +1,2 @@
1
+ export * from "../../../utilities/classes/kysely-table-name-transformer-plugin/kysely-table-name-transformer-plugin.js";
2
+ //# sourceMappingURL=_module.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_module.js","sourceRoot":"","sources":["../../../../src/utilities/classes/kysely-table-name-transformer-plugin/_module.ts"],"names":[],"mappings":"AAAA,cAAc,kGAAkG,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"kysely-table-name-transformer-plugin.js","sourceRoot":"","sources":["../../../../src/utilities/classes/kysely-table-name-transformer-plugin/kysely-table-name-transformer-plugin.ts"],"names":[],"mappings":"AAAA;;GAEG;AAWH,OAAO,EAAE,wBAAwB,EAAE,MAAM,QAAQ,CAAC;AAElD;;GAEG;AACH,MAAM,oBAAqB,SAAQ,wBAAwB;IAC1B;IAA7B,YAA6B,YAAoC;QAC7D,KAAK,EAAE,CAAC;QADiB,iBAAY,GAAZ,YAAY,CAAwB;IAEjE,CAAC;IAEkB,cAAc,CAAC,IAAe;QAC7C,MAAM,eAAe,GAAG,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;QACnD,OAAO;YACH,GAAG,eAAe;YAClB,KAAK,EAAE;gBACH,GAAG,eAAe,CAAC,KAAK;gBACxB,UAAU,EAAE;oBACR,GAAG,eAAe,CAAC,KAAK,CAAC,UAAU;oBACnC,IAAI,EAAE,CAAC,GAAG,EAAE;wBACR,MAAM,YAAY,GACd,eAAe,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC;wBAC1C,MAAM,cAAc,GAAG,IAAI,CAAC,YAAY,CAAC,YAAY,CAAC,CAAC;wBACvD,IAAI,cAAc,KAAK,SAAS,EAAE,CAAC;4BAC/B,MAAM,IAAI,KAAK,CACX,yBAAyB,YAAY,GAAG,CAC3C,CAAC;wBACN,CAAC;wBACD,OAAO,cAAc,CAAC;oBAC1B,CAAC,CAAC,EAAE;iBACP;aACJ;SACJ,CAAC;IACN,CAAC;CACJ;AAED;;GAEG;AACH,MAAM,OAAO,gCAAgC;IACxB,WAAW,CAAuB;IAEnD,YAAY,YAAoC;QAC5C,IAAI,CAAC,WAAW,GAAG,IAAI,oBAAoB,CAAC,YAAY,CAAC,CAAC;IAC9D,CAAC;IAED,cAAc,CAAC,IAA8B;QACzC,OAAO,IAAI,CAAC,WAAW,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACrD,CAAC;IAED,eAAe,CACX,IAA+B;QAE/B,OAAO,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACxC,CAAC;CACJ"}
@@ -0,0 +1 @@
1
+ export * from "../../../utilities/classes/pipeline/pipeline.js";
@@ -0,0 +1,2 @@
1
+ export * from "../../../utilities/classes/pipeline/pipeline.js";
2
+ //# sourceMappingURL=_module.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_module.js","sourceRoot":"","sources":["../../../../src/utilities/classes/pipeline/_module.ts"],"names":[],"mappings":"AAAA,cAAc,0CAA0C,CAAC"}