@daiso-tech/core 0.40.0 → 0.41.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 (671) hide show
  1. package/dist/backoff-policies/_module-exports.d.ts +5 -0
  2. package/dist/backoff-policies/_module-exports.js +6 -0
  3. package/dist/backoff-policies/_module-exports.js.map +1 -0
  4. package/dist/{async/backof-policies → backoff-policies}/_shared.d.ts +6 -7
  5. package/dist/{async/backof-policies → backoff-policies}/_shared.js +1 -1
  6. package/dist/backoff-policies/_shared.js.map +1 -0
  7. package/dist/backoff-policies/constant-backoff-policy/_module.d.ts +1 -0
  8. package/dist/backoff-policies/constant-backoff-policy/_module.js +2 -0
  9. package/dist/backoff-policies/constant-backoff-policy/_module.js.map +1 -0
  10. package/dist/{async/backof-policies → backoff-policies}/constant-backoff-policy/constant-backoff-policy.d.ts +6 -8
  11. package/dist/{async/backof-policies → backoff-policies}/constant-backoff-policy/constant-backoff-policy.js +8 -10
  12. package/dist/backoff-policies/constant-backoff-policy/constant-backoff-policy.js.map +1 -0
  13. package/dist/backoff-policies/exponential-backoff-policy/_module.d.ts +1 -0
  14. package/dist/backoff-policies/exponential-backoff-policy/_module.js +2 -0
  15. package/dist/backoff-policies/exponential-backoff-policy/_module.js.map +1 -0
  16. package/dist/{async/backof-policies → backoff-policies}/exponential-backoff-policy/exponential-backoff-policy.d.ts +7 -9
  17. package/dist/backoff-policies/exponential-backoff-policy/exponential-backoff-policy.js +30 -0
  18. package/dist/backoff-policies/exponential-backoff-policy/exponential-backoff-policy.js.map +1 -0
  19. package/dist/backoff-policies/linear-backoff-policy/_module.d.ts +1 -0
  20. package/dist/backoff-policies/linear-backoff-policy/_module.js +2 -0
  21. package/dist/backoff-policies/linear-backoff-policy/_module.js.map +1 -0
  22. package/dist/{async/backof-policies → backoff-policies}/linear-backoff-policy/linear-backoff-policy.d.ts +7 -9
  23. package/dist/backoff-policies/linear-backoff-policy/linear-backoff-policy.js +30 -0
  24. package/dist/backoff-policies/linear-backoff-policy/linear-backoff-policy.js.map +1 -0
  25. package/dist/backoff-policies/polynomial-backoff-policy/_module.d.ts +1 -0
  26. package/dist/backoff-policies/polynomial-backoff-policy/_module.js +2 -0
  27. package/dist/backoff-policies/polynomial-backoff-policy/_module.js.map +1 -0
  28. package/dist/{async/backof-policies → backoff-policies}/polynomial-backoff-policy/polynomial-backoff-policy.d.ts +7 -9
  29. package/dist/backoff-policies/polynomial-backoff-policy/polynomial-backoff-policy.js +30 -0
  30. package/dist/backoff-policies/polynomial-backoff-policy/polynomial-backoff-policy.js.map +1 -0
  31. package/dist/cache/contracts/cache-adapter.contract.d.ts +3 -3
  32. package/dist/cache/contracts/cache.contract.d.ts +22 -22
  33. package/dist/cache/contracts/cache.errors.d.ts +7 -14
  34. package/dist/cache/contracts/cache.errors.js +12 -24
  35. package/dist/cache/contracts/cache.errors.js.map +1 -1
  36. package/dist/cache/contracts/cache.events.d.ts +1 -1
  37. package/dist/cache/implementations/adapters/kysely-cache-adapter/kysely-cache-adapter.d.ts +1 -1
  38. package/dist/cache/implementations/adapters/kysely-cache-adapter/kysely-cache-adapter.js +4 -4
  39. package/dist/cache/implementations/adapters/kysely-cache-adapter/kysely-cache-adapter.js.map +1 -1
  40. package/dist/cache/implementations/adapters/memory-cache-adapter/memory-cache-adapter.d.ts +1 -1
  41. package/dist/cache/implementations/adapters/memory-cache-adapter/memory-cache-adapter.js +2 -2
  42. package/dist/cache/implementations/adapters/memory-cache-adapter/memory-cache-adapter.js.map +1 -1
  43. package/dist/cache/implementations/adapters/mongodb-cache-adapter/mongodb-cache-adapter.d.ts +3 -2
  44. package/dist/cache/implementations/adapters/mongodb-cache-adapter/mongodb-cache-adapter.js +3 -3
  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 +1 -1
  47. package/dist/cache/implementations/adapters/redis-cache-adapter/redis-cache-adapter.d.ts +1 -1
  48. package/dist/cache/implementations/adapters/redis-cache-adapter/redis-cache-adapter.js +2 -2
  49. package/dist/cache/implementations/adapters/redis-cache-adapter/redis-cache-adapter.js.map +1 -1
  50. package/dist/cache/implementations/derivables/cache/cache.d.ts +38 -43
  51. package/dist/cache/implementations/derivables/cache/cache.js +106 -101
  52. package/dist/cache/implementations/derivables/cache/cache.js.map +1 -1
  53. package/dist/cache/implementations/derivables/cache/database-cache-adapter.d.ts +1 -1
  54. package/dist/cache/implementations/derivables/cache/database-cache-adapter.js +3 -3
  55. package/dist/cache/implementations/derivables/cache/database-cache-adapter.js.map +1 -1
  56. package/dist/cache/implementations/derivables/cache-factory/cache-factory.d.ts +6 -8
  57. package/dist/cache/implementations/derivables/cache-factory/cache-factory.js +5 -15
  58. package/dist/cache/implementations/derivables/cache-factory/cache-factory.js.map +1 -1
  59. package/dist/cache/implementations/test-utilities/cache-adapter.test-suite.d.ts +1 -1
  60. package/dist/cache/implementations/test-utilities/cache-adapter.test-suite.js +48 -48
  61. package/dist/cache/implementations/test-utilities/cache-adapter.test-suite.js.map +1 -1
  62. package/dist/cache/implementations/test-utilities/cache.test-suite.js +107 -107
  63. package/dist/cache/implementations/test-utilities/cache.test-suite.js.map +1 -1
  64. package/dist/cache/implementations/test-utilities/database-cache-dapter.test-suite.js +2 -1
  65. package/dist/cache/implementations/test-utilities/database-cache-dapter.test-suite.js.map +1 -1
  66. package/dist/collection/contracts/async-collection.contract.d.ts +43 -43
  67. package/dist/collection/contracts/collection.contract.d.ts +15 -1
  68. package/dist/collection/contracts/collection.contract.js +1 -3
  69. package/dist/collection/contracts/collection.contract.js.map +1 -1
  70. package/dist/collection/contracts/collection.errors.d.ts +4 -13
  71. package/dist/collection/contracts/collection.errors.js +4 -16
  72. package/dist/collection/contracts/collection.errors.js.map +1 -1
  73. package/dist/collection/implementations/async-iterable-collection/_shared/async-validate-iterable.d.ts +6 -0
  74. package/dist/collection/implementations/async-iterable-collection/_shared/async-validate-iterable.js +3 -0
  75. package/dist/collection/implementations/async-iterable-collection/_shared/async-validate-iterable.js.map +1 -1
  76. package/dist/collection/implementations/async-iterable-collection/async-iterable-collection.d.ts +40 -51
  77. package/dist/collection/implementations/async-iterable-collection/async-iterable-collection.js +31 -37
  78. package/dist/collection/implementations/async-iterable-collection/async-iterable-collection.js.map +1 -1
  79. package/dist/collection/implementations/iterable-collection/_shared/validate-iterable.d.ts +3 -0
  80. package/dist/collection/implementations/iterable-collection/_shared/validate-iterable.js +6 -0
  81. package/dist/collection/implementations/iterable-collection/_shared/validate-iterable.js.map +1 -1
  82. package/dist/collection/implementations/iterable-collection/iterable-collection.d.ts +3 -3
  83. package/dist/collection/implementations/iterable-collection/iterable-collection.js +5 -2
  84. package/dist/collection/implementations/iterable-collection/iterable-collection.js.map +1 -1
  85. package/dist/collection/implementations/list-collection/list-collection.d.ts +3 -3
  86. package/dist/collection/implementations/list-collection/list-collection.js +5 -2
  87. package/dist/collection/implementations/list-collection/list-collection.js.map +1 -1
  88. package/dist/event-bus/contracts/event-bus.contract.d.ts +10 -10
  89. package/dist/event-bus/implementations/adapters/redis-pub-sub-event-bus-adapter/redis-pub-sub-event-bus-adapter.d.ts +3 -6
  90. package/dist/event-bus/implementations/adapters/redis-pub-sub-event-bus-adapter/redis-pub-sub-event-bus-adapter.js +7 -9
  91. package/dist/event-bus/implementations/adapters/redis-pub-sub-event-bus-adapter/redis-pub-sub-event-bus-adapter.js.map +1 -1
  92. package/dist/event-bus/implementations/derivables/event-bus/event-bus.d.ts +17 -24
  93. package/dist/event-bus/implementations/derivables/event-bus/event-bus.js +32 -32
  94. package/dist/event-bus/implementations/derivables/event-bus/event-bus.js.map +1 -1
  95. package/dist/event-bus/implementations/derivables/event-bus-factory/event-bus-factory.d.ts +1 -3
  96. package/dist/event-bus/implementations/derivables/event-bus-factory/event-bus-factory.js +4 -8
  97. package/dist/event-bus/implementations/derivables/event-bus-factory/event-bus-factory.js.map +1 -1
  98. package/dist/event-bus/implementations/test-utilities/event-bus-adapter.test-suite.js +34 -32
  99. package/dist/event-bus/implementations/test-utilities/event-bus-adapter.test-suite.js.map +1 -1
  100. package/dist/event-bus/implementations/test-utilities/event-bus.test-suite.js +195 -190
  101. package/dist/event-bus/implementations/test-utilities/event-bus.test-suite.js.map +1 -1
  102. package/dist/hooks/_module-exports.d.ts +3 -0
  103. package/dist/hooks/_module-exports.js +4 -0
  104. package/dist/hooks/_module-exports.js.map +1 -0
  105. package/dist/{utilities/classes/hooks → hooks}/async-hooks.d.ts +15 -26
  106. package/dist/{utilities/classes/hooks → hooks}/async-hooks.js +4 -6
  107. package/dist/hooks/async-hooks.js.map +1 -0
  108. package/dist/{utilities/classes/hooks → hooks}/hooks.d.ts +11 -18
  109. package/dist/{utilities/classes/hooks → hooks}/hooks.js +4 -5
  110. package/dist/hooks/hooks.js.map +1 -0
  111. package/dist/{utilities/classes/hooks → hooks}/types.d.ts +2 -3
  112. package/dist/hooks/types.js +5 -0
  113. package/dist/hooks/types.js.map +1 -0
  114. package/dist/lock/contracts/_module-exports.d.ts +4 -2
  115. package/dist/lock/contracts/_module-exports.js +4 -2
  116. package/dist/lock/contracts/_module-exports.js.map +1 -1
  117. package/dist/lock/contracts/database-lock-adapter.contract.d.ts +24 -17
  118. package/dist/lock/contracts/lock-adapter.contract.d.ts +15 -24
  119. package/dist/lock/contracts/lock-adapter.contract.js +1 -10
  120. package/dist/lock/contracts/lock-adapter.contract.js.map +1 -1
  121. package/dist/lock/contracts/lock-provider.contract.d.ts +5 -5
  122. package/dist/lock/contracts/lock-state.contract.d.ts +52 -0
  123. package/dist/lock/contracts/lock-state.contract.js +14 -0
  124. package/dist/lock/contracts/lock-state.contract.js.map +1 -0
  125. package/dist/lock/contracts/lock.contract.d.ts +64 -55
  126. package/dist/lock/contracts/lock.errors.d.ts +13 -20
  127. package/dist/lock/contracts/lock.errors.js +19 -26
  128. package/dist/lock/contracts/lock.errors.js.map +1 -1
  129. package/dist/lock/contracts/lock.events.d.ts +21 -49
  130. package/dist/lock/contracts/lock.events.js +2 -3
  131. package/dist/lock/contracts/lock.events.js.map +1 -1
  132. package/dist/lock/contracts/types.d.ts +11 -0
  133. package/dist/lock/contracts/types.js +5 -0
  134. package/dist/lock/contracts/types.js.map +1 -0
  135. package/dist/lock/implementations/adapters/kysely-lock-adapter/kysely-lock-adapter.d.ts +21 -19
  136. package/dist/lock/implementations/adapters/kysely-lock-adapter/kysely-lock-adapter.js +92 -61
  137. package/dist/lock/implementations/adapters/kysely-lock-adapter/kysely-lock-adapter.js.map +1 -1
  138. package/dist/lock/implementations/adapters/memory-lock-adapter/memory-lock-adapter.d.ts +8 -5
  139. package/dist/lock/implementations/adapters/memory-lock-adapter/memory-lock-adapter.js +33 -13
  140. package/dist/lock/implementations/adapters/memory-lock-adapter/memory-lock-adapter.js.map +1 -1
  141. package/dist/lock/implementations/adapters/mongodb-lock-adapter/mongodb-lock-adapter.d.ts +7 -8
  142. package/dist/lock/implementations/adapters/mongodb-lock-adapter/mongodb-lock-adapter.js +33 -20
  143. package/dist/lock/implementations/adapters/mongodb-lock-adapter/mongodb-lock-adapter.js.map +1 -1
  144. package/dist/lock/implementations/adapters/no-op-lock-adapter/no-op-lock-adapter.d.ts +6 -5
  145. package/dist/lock/implementations/adapters/no-op-lock-adapter/no-op-lock-adapter.js +7 -5
  146. package/dist/lock/implementations/adapters/no-op-lock-adapter/no-op-lock-adapter.js.map +1 -1
  147. package/dist/lock/implementations/adapters/redis-lock-adapter/redis-lock-adapter.d.ts +26 -8
  148. package/dist/lock/implementations/adapters/redis-lock-adapter/redis-lock-adapter.js +61 -28
  149. package/dist/lock/implementations/adapters/redis-lock-adapter/redis-lock-adapter.js.map +1 -1
  150. package/dist/lock/implementations/derivables/lock-provider/database-lock-adapter.d.ts +6 -5
  151. package/dist/lock/implementations/derivables/lock-provider/database-lock-adapter.js +33 -33
  152. package/dist/lock/implementations/derivables/lock-provider/database-lock-adapter.js.map +1 -1
  153. package/dist/lock/implementations/derivables/lock-provider/is-database-lock-adapter.d.ts +2 -2
  154. package/dist/lock/implementations/derivables/lock-provider/is-database-lock-adapter.js +4 -6
  155. package/dist/lock/implementations/derivables/lock-provider/is-database-lock-adapter.js.map +1 -1
  156. package/dist/lock/implementations/derivables/lock-provider/lock-provider.d.ts +29 -39
  157. package/dist/lock/implementations/derivables/lock-provider/lock-provider.js +31 -35
  158. package/dist/lock/implementations/derivables/lock-provider/lock-provider.js.map +1 -1
  159. package/dist/lock/implementations/derivables/lock-provider/lock-serde-transformer.d.ts +5 -8
  160. package/dist/lock/implementations/derivables/lock-provider/lock-serde-transformer.js +27 -23
  161. package/dist/lock/implementations/derivables/lock-provider/lock-serde-transformer.js.map +1 -1
  162. package/dist/lock/implementations/derivables/lock-provider/lock.d.ts +38 -34
  163. package/dist/lock/implementations/derivables/lock-provider/lock.js +182 -257
  164. package/dist/lock/implementations/derivables/lock-provider/lock.js.map +1 -1
  165. package/dist/lock/implementations/derivables/lock-provider/resolve-database-lock-adapter.d.ts +9 -0
  166. package/dist/lock/implementations/derivables/lock-provider/resolve-database-lock-adapter.js +12 -0
  167. package/dist/lock/implementations/derivables/lock-provider/resolve-database-lock-adapter.js.map +1 -0
  168. package/dist/lock/implementations/derivables/lock-provider-factory/lock-provider-factory.d.ts +12 -13
  169. package/dist/lock/implementations/derivables/lock-provider-factory/lock-provider-factory.js +7 -16
  170. package/dist/lock/implementations/derivables/lock-provider-factory/lock-provider-factory.js.map +1 -1
  171. package/dist/lock/implementations/test-utilities/database-lock-adapter.test-suite.js +310 -207
  172. package/dist/lock/implementations/test-utilities/database-lock-adapter.test-suite.js.map +1 -1
  173. package/dist/lock/implementations/test-utilities/lock-adapter.test-suite.d.ts +1 -1
  174. package/dist/lock/implementations/test-utilities/lock-adapter.test-suite.js +376 -292
  175. package/dist/lock/implementations/test-utilities/lock-adapter.test-suite.js.map +1 -1
  176. package/dist/lock/implementations/test-utilities/lock-provider.test-suite.d.ts +15 -5
  177. package/dist/lock/implementations/test-utilities/lock-provider.test-suite.js +3285 -2976
  178. package/dist/lock/implementations/test-utilities/lock-provider.test-suite.js.map +1 -1
  179. package/dist/namespace/_module-exports.d.ts +1 -0
  180. package/dist/namespace/_module-exports.js +2 -0
  181. package/dist/namespace/_module-exports.js.map +1 -0
  182. package/dist/namespace/namespace.d.ts +87 -0
  183. package/dist/namespace/namespace.js +117 -0
  184. package/dist/namespace/namespace.js.map +1 -0
  185. package/dist/resilience/_module-exports.d.ts +2 -0
  186. package/dist/resilience/_module-exports.js +3 -0
  187. package/dist/resilience/_module-exports.js.map +1 -0
  188. package/dist/resilience/middlewares/_module.d.ts +5 -0
  189. package/dist/resilience/middlewares/_module.js +6 -0
  190. package/dist/resilience/middlewares/_module.js.map +1 -0
  191. package/dist/resilience/middlewares/dynamic/_module.d.ts +1 -0
  192. package/dist/resilience/middlewares/dynamic/_module.js +2 -0
  193. package/dist/resilience/middlewares/dynamic/_module.js.map +1 -0
  194. package/dist/{async → resilience}/middlewares/dynamic/dynamic.middleware.d.ts +6 -6
  195. package/dist/{async → resilience}/middlewares/dynamic/dynamic.middleware.js +5 -5
  196. package/dist/resilience/middlewares/dynamic/dynamic.middleware.js.map +1 -0
  197. package/dist/resilience/middlewares/fallback/_module.d.ts +2 -0
  198. package/dist/resilience/middlewares/fallback/_module.js +3 -0
  199. package/dist/resilience/middlewares/fallback/_module.js.map +1 -0
  200. package/dist/{async → resilience}/middlewares/fallback/fallback.middleware.d.ts +9 -9
  201. package/dist/{async → resilience}/middlewares/fallback/fallback.middleware.js +7 -6
  202. package/dist/resilience/middlewares/fallback/fallback.middleware.js.map +1 -0
  203. package/dist/{async → resilience}/middlewares/fallback/fallback.types.d.ts +7 -6
  204. package/dist/{async → resilience}/middlewares/fallback/fallback.types.js +1 -1
  205. package/dist/resilience/middlewares/fallback/fallback.types.js.map +1 -0
  206. package/dist/resilience/middlewares/observe/_module.d.ts +2 -0
  207. package/dist/resilience/middlewares/observe/_module.js +3 -0
  208. package/dist/resilience/middlewares/observe/_module.js.map +1 -0
  209. package/dist/{async → resilience}/middlewares/observe/observe.middleware.d.ts +13 -11
  210. package/dist/{async → resilience}/middlewares/observe/observe.middleware.js +14 -10
  211. package/dist/resilience/middlewares/observe/observe.middleware.js.map +1 -0
  212. package/dist/{async → resilience}/middlewares/observe/observe.types.d.ts +13 -12
  213. package/dist/resilience/middlewares/observe/observe.types.js +5 -0
  214. package/dist/resilience/middlewares/observe/observe.types.js.map +1 -0
  215. package/dist/resilience/middlewares/retry/_module.d.ts +2 -0
  216. package/dist/resilience/middlewares/retry/_module.js +3 -0
  217. package/dist/resilience/middlewares/retry/_module.js.map +1 -0
  218. package/dist/{async → resilience}/middlewares/retry/retry.middleware.d.ts +12 -9
  219. package/dist/{async → resilience}/middlewares/retry/retry.middleware.js +19 -15
  220. package/dist/resilience/middlewares/retry/retry.middleware.js.map +1 -0
  221. package/dist/{async → resilience}/middlewares/retry/retry.types.d.ts +14 -12
  222. package/dist/resilience/middlewares/retry/retry.types.js +7 -0
  223. package/dist/resilience/middlewares/retry/retry.types.js.map +1 -0
  224. package/dist/resilience/middlewares/timeout/_module.d.ts +2 -0
  225. package/dist/resilience/middlewares/timeout/_module.js +3 -0
  226. package/dist/resilience/middlewares/timeout/_module.js.map +1 -0
  227. package/dist/{async → resilience}/middlewares/timeout/timeout.middleware.d.ts +9 -7
  228. package/dist/{async → resilience}/middlewares/timeout/timeout.middleware.js +12 -11
  229. package/dist/resilience/middlewares/timeout/timeout.middleware.js.map +1 -0
  230. package/dist/{async → resilience}/middlewares/timeout/timeout.type.d.ts +10 -9
  231. package/dist/resilience/middlewares/timeout/timeout.type.js +5 -0
  232. package/dist/resilience/middlewares/timeout/timeout.type.js.map +1 -0
  233. package/dist/resilience/resilience.errors.d.ts +40 -0
  234. package/dist/resilience/resilience.errors.js +48 -0
  235. package/dist/resilience/resilience.errors.js.map +1 -0
  236. package/dist/resilience/utilities/_module.d.ts +2 -0
  237. package/dist/resilience/utilities/_module.js +3 -0
  238. package/dist/resilience/utilities/_module.js.map +1 -0
  239. package/dist/resilience/utilities/abort-and-fail/_module.d.ts +1 -0
  240. package/dist/resilience/utilities/abort-and-fail/_module.js +2 -0
  241. package/dist/resilience/utilities/abort-and-fail/_module.js.map +1 -0
  242. package/dist/resilience/utilities/abort-and-fail/abort-and-fail.d.ts +7 -0
  243. package/dist/resilience/utilities/abort-and-fail/abort-and-fail.js +51 -0
  244. package/dist/resilience/utilities/abort-and-fail/abort-and-fail.js.map +1 -0
  245. package/dist/resilience/utilities/timeout-and-fail/_module.d.ts +1 -0
  246. package/dist/resilience/utilities/timeout-and-fail/_module.js +2 -0
  247. package/dist/resilience/utilities/timeout-and-fail/_module.js.map +1 -0
  248. package/dist/resilience/utilities/timeout-and-fail/timeout-and-fail.d.ts +7 -0
  249. package/dist/resilience/utilities/timeout-and-fail/timeout-and-fail.js +23 -0
  250. package/dist/resilience/utilities/timeout-and-fail/timeout-and-fail.js.map +1 -0
  251. package/dist/semaphore/contracts/_module-exports.d.ts +9 -0
  252. package/dist/semaphore/contracts/_module-exports.js +10 -0
  253. package/dist/semaphore/contracts/_module-exports.js.map +1 -0
  254. package/dist/semaphore/contracts/database-semaphore-adapter.contract.d.ts +90 -0
  255. package/dist/semaphore/contracts/database-semaphore-adapter.contract.js +5 -0
  256. package/dist/semaphore/contracts/database-semaphore-adapter.contract.js.map +1 -0
  257. package/dist/semaphore/contracts/semaphore-adapter.contract.d.ts +61 -0
  258. package/dist/semaphore/contracts/semaphore-adapter.contract.js +5 -0
  259. package/dist/semaphore/contracts/semaphore-adapter.contract.js.map +1 -0
  260. package/dist/semaphore/contracts/semaphore-provider-factory.contract.d.ts +19 -0
  261. package/dist/semaphore/contracts/semaphore-provider-factory.contract.js +9 -0
  262. package/dist/semaphore/contracts/semaphore-provider-factory.contract.js.map +1 -0
  263. package/dist/semaphore/contracts/semaphore-provider.contract.d.ts +50 -0
  264. package/dist/semaphore/contracts/semaphore-provider.contract.js +5 -0
  265. package/dist/semaphore/contracts/semaphore-provider.contract.js.map +1 -0
  266. package/dist/semaphore/contracts/semaphore-state.contract.d.ts +70 -0
  267. package/dist/semaphore/contracts/semaphore-state.contract.js +15 -0
  268. package/dist/semaphore/contracts/semaphore-state.contract.js.map +1 -0
  269. package/dist/semaphore/contracts/semaphore.contract.d.ts +127 -0
  270. package/dist/semaphore/contracts/semaphore.contract.js +5 -0
  271. package/dist/semaphore/contracts/semaphore.contract.js.map +1 -0
  272. package/dist/semaphore/contracts/semaphore.errors.d.ts +52 -0
  273. package/dist/semaphore/contracts/semaphore.errors.js +63 -0
  274. package/dist/semaphore/contracts/semaphore.errors.js.map +1 -0
  275. package/dist/semaphore/contracts/semaphore.events.d.ts +101 -0
  276. package/dist/semaphore/contracts/semaphore.events.js +19 -0
  277. package/dist/semaphore/contracts/semaphore.events.js.map +1 -0
  278. package/dist/semaphore/contracts/types.d.ts +11 -0
  279. package/dist/semaphore/contracts/types.js +5 -0
  280. package/dist/semaphore/contracts/types.js.map +1 -0
  281. package/dist/semaphore/implementations/adapters/_module-exports.d.ts +5 -0
  282. package/dist/semaphore/implementations/adapters/_module-exports.js +6 -0
  283. package/dist/semaphore/implementations/adapters/_module-exports.js.map +1 -0
  284. package/dist/semaphore/implementations/adapters/kysely-semaphore-adapter/_module.d.ts +1 -0
  285. package/dist/semaphore/implementations/adapters/kysely-semaphore-adapter/_module.js +2 -0
  286. package/dist/semaphore/implementations/adapters/kysely-semaphore-adapter/_module.js.map +1 -0
  287. package/dist/semaphore/implementations/adapters/kysely-semaphore-adapter/kysely-semaphore-adapter.d.ts +97 -0
  288. package/dist/semaphore/implementations/adapters/kysely-semaphore-adapter/kysely-semaphore-adapter.js +313 -0
  289. package/dist/semaphore/implementations/adapters/kysely-semaphore-adapter/kysely-semaphore-adapter.js.map +1 -0
  290. package/dist/semaphore/implementations/adapters/memory-semaphore-adapter/_module.d.ts +1 -0
  291. package/dist/semaphore/implementations/adapters/memory-semaphore-adapter/_module.js +2 -0
  292. package/dist/semaphore/implementations/adapters/memory-semaphore-adapter/_module.js.map +1 -0
  293. package/dist/semaphore/implementations/adapters/memory-semaphore-adapter/memory-semaphore-adapter.d.ts +49 -0
  294. package/dist/semaphore/implementations/adapters/memory-semaphore-adapter/memory-semaphore-adapter.js +141 -0
  295. package/dist/semaphore/implementations/adapters/memory-semaphore-adapter/memory-semaphore-adapter.js.map +1 -0
  296. package/dist/semaphore/implementations/adapters/mongodb-semaphore-adapter/_module.d.ts +1 -0
  297. package/dist/semaphore/implementations/adapters/mongodb-semaphore-adapter/_module.js +2 -0
  298. package/dist/semaphore/implementations/adapters/mongodb-semaphore-adapter/_module.js.map +1 -0
  299. package/dist/semaphore/implementations/adapters/mongodb-semaphore-adapter/mongodb-semaphore-adapter.d.ts +80 -0
  300. package/dist/semaphore/implementations/adapters/mongodb-semaphore-adapter/mongodb-semaphore-adapter.js +390 -0
  301. package/dist/semaphore/implementations/adapters/mongodb-semaphore-adapter/mongodb-semaphore-adapter.js.map +1 -0
  302. package/dist/semaphore/implementations/adapters/no-op-semaphore-adapter/_module.d.ts +1 -0
  303. package/dist/semaphore/implementations/adapters/no-op-semaphore-adapter/_module.js +2 -0
  304. package/dist/semaphore/implementations/adapters/no-op-semaphore-adapter/_module.js.map +1 -0
  305. package/dist/semaphore/implementations/adapters/no-op-semaphore-adapter/no-op-semaphore-adapter.d.ts +18 -0
  306. package/dist/semaphore/implementations/adapters/no-op-semaphore-adapter/no-op-semaphore-adapter.js +30 -0
  307. package/dist/semaphore/implementations/adapters/no-op-semaphore-adapter/no-op-semaphore-adapter.js.map +1 -0
  308. package/dist/semaphore/implementations/adapters/redis-semaphore-adapter/_module.d.ts +1 -0
  309. package/dist/semaphore/implementations/adapters/redis-semaphore-adapter/_module.js +2 -0
  310. package/dist/semaphore/implementations/adapters/redis-semaphore-adapter/_module.js.map +1 -0
  311. package/dist/semaphore/implementations/adapters/redis-semaphore-adapter/redis-semaphore-adapter.d.ts +48 -0
  312. package/dist/semaphore/implementations/adapters/redis-semaphore-adapter/redis-semaphore-adapter.js +338 -0
  313. package/dist/semaphore/implementations/adapters/redis-semaphore-adapter/redis-semaphore-adapter.js.map +1 -0
  314. package/dist/semaphore/implementations/derivables/_module-exports.d.ts +2 -0
  315. package/dist/semaphore/implementations/derivables/_module-exports.js +3 -0
  316. package/dist/semaphore/implementations/derivables/_module-exports.js.map +1 -0
  317. package/dist/semaphore/implementations/derivables/semaphore-provider/_module.d.ts +1 -0
  318. package/dist/semaphore/implementations/derivables/semaphore-provider/_module.js +2 -0
  319. package/dist/semaphore/implementations/derivables/semaphore-provider/_module.js.map +1 -0
  320. package/dist/semaphore/implementations/derivables/semaphore-provider/database-semaphore-adapter.d.ts +17 -0
  321. package/dist/semaphore/implementations/derivables/semaphore-provider/database-semaphore-adapter.js +74 -0
  322. package/dist/semaphore/implementations/derivables/semaphore-provider/database-semaphore-adapter.js.map +1 -0
  323. package/dist/semaphore/implementations/derivables/semaphore-provider/is-database-semaphore-adapter.d.ts +8 -0
  324. package/dist/semaphore/implementations/derivables/semaphore-provider/is-database-semaphore-adapter.js +15 -0
  325. package/dist/semaphore/implementations/derivables/semaphore-provider/is-database-semaphore-adapter.js.map +1 -0
  326. package/dist/semaphore/implementations/derivables/semaphore-provider/resolve-database-semaphore-adapter.d.ts +8 -0
  327. package/dist/semaphore/implementations/derivables/semaphore-provider/resolve-database-semaphore-adapter.js +15 -0
  328. package/dist/semaphore/implementations/derivables/semaphore-provider/resolve-database-semaphore-adapter.js.map +1 -0
  329. package/dist/semaphore/implementations/derivables/semaphore-provider/semaphore-provider.d.ts +149 -0
  330. package/dist/semaphore/implementations/derivables/semaphore-provider/semaphore-provider.js +135 -0
  331. package/dist/semaphore/implementations/derivables/semaphore-provider/semaphore-provider.js.map +1 -0
  332. package/dist/semaphore/implementations/derivables/semaphore-provider/semaphore-serde-transformer.d.ts +41 -0
  333. package/dist/semaphore/implementations/derivables/semaphore-provider/semaphore-serde-transformer.js +77 -0
  334. package/dist/semaphore/implementations/derivables/semaphore-provider/semaphore-serde-transformer.js.map +1 -0
  335. package/dist/semaphore/implementations/derivables/semaphore-provider/semaphore.d.ts +83 -0
  336. package/dist/semaphore/implementations/derivables/semaphore-provider/semaphore.js +336 -0
  337. package/dist/semaphore/implementations/derivables/semaphore-provider/semaphore.js.map +1 -0
  338. package/dist/semaphore/implementations/derivables/semaphore-provider-factory/_module.d.ts +1 -0
  339. package/dist/semaphore/implementations/derivables/semaphore-provider-factory/_module.js +2 -0
  340. package/dist/semaphore/implementations/derivables/semaphore-provider-factory/_module.js.map +1 -0
  341. package/dist/semaphore/implementations/derivables/semaphore-provider-factory/semaphore-provider-factory.d.ts +40 -0
  342. package/dist/semaphore/implementations/derivables/semaphore-provider-factory/semaphore-provider-factory.js +67 -0
  343. package/dist/semaphore/implementations/derivables/semaphore-provider-factory/semaphore-provider-factory.js.map +1 -0
  344. package/dist/semaphore/implementations/test-utilities/_module-exports.d.ts +3 -0
  345. package/dist/semaphore/implementations/test-utilities/_module-exports.js +4 -0
  346. package/dist/semaphore/implementations/test-utilities/_module-exports.js.map +1 -0
  347. package/dist/semaphore/implementations/test-utilities/database-semaphore-adapter.test-suite.d.ts +59 -0
  348. package/dist/semaphore/implementations/test-utilities/database-semaphore-adapter.test-suite.js +536 -0
  349. package/dist/semaphore/implementations/test-utilities/database-semaphore-adapter.test-suite.js.map +1 -0
  350. package/dist/semaphore/implementations/test-utilities/semaphore-adapter.test-suite.d.ts +59 -0
  351. package/dist/semaphore/implementations/test-utilities/semaphore-adapter.test-suite.js +961 -0
  352. package/dist/semaphore/implementations/test-utilities/semaphore-adapter.test-suite.js.map +1 -0
  353. package/dist/semaphore/implementations/test-utilities/semaphore-provider.test-suite.d.ts +67 -0
  354. package/dist/semaphore/implementations/test-utilities/semaphore-provider.test-suite.js +4981 -0
  355. package/dist/semaphore/implementations/test-utilities/semaphore-provider.test-suite.js.map +1 -0
  356. package/dist/serde/contracts/_module-exports.d.ts +0 -1
  357. package/dist/serde/contracts/_module-exports.js +0 -1
  358. package/dist/serde/contracts/_module-exports.js.map +1 -1
  359. package/dist/serde/contracts/flexible-serde.contract.d.ts +21 -5
  360. package/dist/serde/contracts/serde.errors.d.ts +14 -11
  361. package/dist/serde/contracts/serde.errors.js +15 -14
  362. package/dist/serde/contracts/serde.errors.js.map +1 -1
  363. package/dist/serde/implementations/adapters/_module-exports.d.ts +0 -3
  364. package/dist/serde/implementations/adapters/_module-exports.js +0 -3
  365. package/dist/serde/implementations/adapters/_module-exports.js.map +1 -1
  366. package/dist/serde/implementations/adapters/super-json-serde-adapter/super-json-serde-adapter.js +6 -0
  367. package/dist/serde/implementations/adapters/super-json-serde-adapter/super-json-serde-adapter.js.map +1 -1
  368. package/dist/serde/implementations/derivables/serde-transformers.d.ts +38 -30
  369. package/dist/serde/implementations/derivables/serde-transformers.js +62 -20
  370. package/dist/serde/implementations/derivables/serde-transformers.js.map +1 -1
  371. package/dist/serde/implementations/derivables/serde.d.ts +12 -3
  372. package/dist/serde/implementations/derivables/serde.js +5 -2
  373. package/dist/serde/implementations/derivables/serde.js.map +1 -1
  374. package/dist/serde/implementations/test-utilities/flexible-serde-adapter.test-suite.js +85 -1
  375. package/dist/serde/implementations/test-utilities/flexible-serde-adapter.test-suite.js.map +1 -1
  376. package/dist/serde/implementations/test-utilities/flexible-serde.test-suite.js +85 -1
  377. package/dist/serde/implementations/test-utilities/flexible-serde.test-suite.js.map +1 -1
  378. package/dist/shared-lock/contracts/_module-exports.d.ts +10 -0
  379. package/dist/shared-lock/contracts/_module-exports.js +11 -0
  380. package/dist/shared-lock/contracts/_module-exports.js.map +1 -0
  381. package/dist/shared-lock/contracts/database-shared-lock-adapter.contract.d.ts +145 -0
  382. package/dist/shared-lock/contracts/database-shared-lock-adapter.contract.js +5 -0
  383. package/dist/shared-lock/contracts/database-shared-lock-adapter.contract.js.map +1 -0
  384. package/dist/shared-lock/contracts/shared-lock-adapter.contract.d.ts +96 -0
  385. package/dist/shared-lock/contracts/shared-lock-adapter.contract.js +5 -0
  386. package/dist/shared-lock/contracts/shared-lock-adapter.contract.js.map +1 -0
  387. package/dist/shared-lock/contracts/shared-lock-provider-factory.contract.d.ts +19 -0
  388. package/dist/shared-lock/contracts/shared-lock-provider-factory.contract.js +9 -0
  389. package/dist/shared-lock/contracts/shared-lock-provider-factory.contract.js.map +1 -0
  390. package/dist/shared-lock/contracts/shared-lock-provider.contract.d.ts +53 -0
  391. package/dist/shared-lock/contracts/shared-lock-provider.contract.js +5 -0
  392. package/dist/shared-lock/contracts/shared-lock-provider.contract.js.map +1 -0
  393. package/dist/shared-lock/contracts/shared-lock-state.contract.d.ts +133 -0
  394. package/dist/shared-lock/contracts/shared-lock-state.contract.js +33 -0
  395. package/dist/shared-lock/contracts/shared-lock-state.contract.js.map +1 -0
  396. package/dist/shared-lock/contracts/shared-lock.contract.d.ts +222 -0
  397. package/dist/shared-lock/contracts/shared-lock.contract.js +13 -0
  398. package/dist/shared-lock/contracts/shared-lock.contract.js.map +1 -0
  399. package/dist/shared-lock/contracts/shared-lock.errors.d.ts +124 -0
  400. package/dist/shared-lock/contracts/shared-lock.errors.js +136 -0
  401. package/dist/shared-lock/contracts/shared-lock.errors.js.map +1 -0
  402. package/dist/shared-lock/contracts/shared-lock.events.d.ts +205 -0
  403. package/dist/shared-lock/contracts/shared-lock.events.js +43 -0
  404. package/dist/shared-lock/contracts/shared-lock.events.js.map +1 -0
  405. package/dist/shared-lock/contracts/types.d.ts +10 -0
  406. package/dist/shared-lock/contracts/types.js +5 -0
  407. package/dist/shared-lock/contracts/types.js.map +1 -0
  408. package/dist/shared-lock/implementations/adapters/_module-exports.d.ts +5 -0
  409. package/dist/shared-lock/implementations/adapters/_module-exports.js +6 -0
  410. package/dist/shared-lock/implementations/adapters/_module-exports.js.map +1 -0
  411. package/dist/shared-lock/implementations/adapters/kysely-shared-lock-adapter/_module.d.ts +1 -0
  412. package/dist/shared-lock/implementations/adapters/kysely-shared-lock-adapter/_module.js +2 -0
  413. package/dist/shared-lock/implementations/adapters/kysely-shared-lock-adapter/_module.js.map +1 -0
  414. package/dist/shared-lock/implementations/adapters/kysely-shared-lock-adapter/kysely-shared-lock-adapter.d.ts +114 -0
  415. package/dist/shared-lock/implementations/adapters/kysely-shared-lock-adapter/kysely-shared-lock-adapter.js +496 -0
  416. package/dist/shared-lock/implementations/adapters/kysely-shared-lock-adapter/kysely-shared-lock-adapter.js.map +1 -0
  417. package/dist/shared-lock/implementations/adapters/memory-shared-lock-adapter/_module.d.ts +1 -0
  418. package/dist/shared-lock/implementations/adapters/memory-shared-lock-adapter/_module.js +2 -0
  419. package/dist/shared-lock/implementations/adapters/memory-shared-lock-adapter/_module.js.map +1 -0
  420. package/dist/shared-lock/implementations/adapters/memory-shared-lock-adapter/memory-shared-lock-adapter.d.ts +79 -0
  421. package/dist/shared-lock/implementations/adapters/memory-shared-lock-adapter/memory-shared-lock-adapter.js +347 -0
  422. package/dist/shared-lock/implementations/adapters/memory-shared-lock-adapter/memory-shared-lock-adapter.js.map +1 -0
  423. package/dist/shared-lock/implementations/adapters/mongodb-shared-lock-adapter/_module.d.ts +1 -0
  424. package/dist/shared-lock/implementations/adapters/mongodb-shared-lock-adapter/_module.js +2 -0
  425. package/dist/shared-lock/implementations/adapters/mongodb-shared-lock-adapter/_module.js.map +1 -0
  426. package/dist/shared-lock/implementations/adapters/mongodb-shared-lock-adapter/mongodb-shared-lock-adapter.d.ts +112 -0
  427. package/dist/shared-lock/implementations/adapters/mongodb-shared-lock-adapter/mongodb-shared-lock-adapter.js +805 -0
  428. package/dist/shared-lock/implementations/adapters/mongodb-shared-lock-adapter/mongodb-shared-lock-adapter.js.map +1 -0
  429. package/dist/shared-lock/implementations/adapters/no-op-shared-lock-adapter/_module.d.ts +1 -0
  430. package/dist/shared-lock/implementations/adapters/no-op-shared-lock-adapter/_module.js +2 -0
  431. package/dist/shared-lock/implementations/adapters/no-op-shared-lock-adapter/_module.js.map +1 -0
  432. package/dist/shared-lock/implementations/adapters/no-op-shared-lock-adapter/no-op-shared-lock-adapter.d.ts +23 -0
  433. package/dist/shared-lock/implementations/adapters/no-op-shared-lock-adapter/no-op-shared-lock-adapter.js +42 -0
  434. package/dist/shared-lock/implementations/adapters/no-op-shared-lock-adapter/no-op-shared-lock-adapter.js.map +1 -0
  435. package/dist/shared-lock/implementations/adapters/redis-shared-lock-adapter/_module.d.ts +1 -0
  436. package/dist/shared-lock/implementations/adapters/redis-shared-lock-adapter/_module.js +2 -0
  437. package/dist/shared-lock/implementations/adapters/redis-shared-lock-adapter/_module.js.map +1 -0
  438. package/dist/shared-lock/implementations/adapters/redis-shared-lock-adapter/redis-shared-lock-adapter.d.ts +79 -0
  439. package/dist/shared-lock/implementations/adapters/redis-shared-lock-adapter/redis-shared-lock-adapter.js +630 -0
  440. package/dist/shared-lock/implementations/adapters/redis-shared-lock-adapter/redis-shared-lock-adapter.js.map +1 -0
  441. package/dist/shared-lock/implementations/derivables/_module-exports.d.ts +2 -0
  442. package/dist/shared-lock/implementations/derivables/_module-exports.js +3 -0
  443. package/dist/shared-lock/implementations/derivables/_module-exports.js.map +1 -0
  444. package/dist/shared-lock/implementations/derivables/shared-lock-provider/_module.d.ts +1 -0
  445. package/dist/shared-lock/implementations/derivables/shared-lock-provider/_module.js +2 -0
  446. package/dist/shared-lock/implementations/derivables/shared-lock-provider/_module.js.map +1 -0
  447. package/dist/shared-lock/implementations/derivables/shared-lock-provider/database-shared-lock-adapter.d.ts +27 -0
  448. package/dist/shared-lock/implementations/derivables/shared-lock-provider/database-shared-lock-adapter.js +208 -0
  449. package/dist/shared-lock/implementations/derivables/shared-lock-provider/database-shared-lock-adapter.js.map +1 -0
  450. package/dist/shared-lock/implementations/derivables/shared-lock-provider/is-database-shared-lock-adapter.d.ts +8 -0
  451. package/dist/shared-lock/implementations/derivables/shared-lock-provider/is-database-shared-lock-adapter.js +12 -0
  452. package/dist/shared-lock/implementations/derivables/shared-lock-provider/is-database-shared-lock-adapter.js.map +1 -0
  453. package/dist/shared-lock/implementations/derivables/shared-lock-provider/resolve-database-shared-lock-adapter.d.ts +8 -0
  454. package/dist/shared-lock/implementations/derivables/shared-lock-provider/resolve-database-shared-lock-adapter.js +15 -0
  455. package/dist/shared-lock/implementations/derivables/shared-lock-provider/resolve-database-shared-lock-adapter.js.map +1 -0
  456. package/dist/shared-lock/implementations/derivables/shared-lock-provider/shared-lock-provider.d.ts +190 -0
  457. package/dist/shared-lock/implementations/derivables/shared-lock-provider/shared-lock-provider.js +177 -0
  458. package/dist/shared-lock/implementations/derivables/shared-lock-provider/shared-lock-provider.js.map +1 -0
  459. package/dist/shared-lock/implementations/derivables/shared-lock-provider/shared-lock-serde-transformer.d.ts +41 -0
  460. package/dist/shared-lock/implementations/derivables/shared-lock-provider/shared-lock-serde-transformer.js +77 -0
  461. package/dist/shared-lock/implementations/derivables/shared-lock-provider/shared-lock-serde-transformer.js.map +1 -0
  462. package/dist/shared-lock/implementations/derivables/shared-lock-provider/shared-lock.d.ts +95 -0
  463. package/dist/shared-lock/implementations/derivables/shared-lock-provider/shared-lock.js +542 -0
  464. package/dist/shared-lock/implementations/derivables/shared-lock-provider/shared-lock.js.map +1 -0
  465. package/dist/shared-lock/implementations/derivables/shared-lock-provider-factory/_module.d.ts +1 -0
  466. package/dist/shared-lock/implementations/derivables/shared-lock-provider-factory/_module.js +2 -0
  467. package/dist/shared-lock/implementations/derivables/shared-lock-provider-factory/_module.js.map +1 -0
  468. package/dist/shared-lock/implementations/derivables/shared-lock-provider-factory/shared-lock-provider-factory.d.ts +97 -0
  469. package/dist/shared-lock/implementations/derivables/shared-lock-provider-factory/shared-lock-provider-factory.js +128 -0
  470. package/dist/shared-lock/implementations/derivables/shared-lock-provider-factory/shared-lock-provider-factory.js.map +1 -0
  471. package/dist/shared-lock/implementations/test-utilities/_module-exports.d.ts +3 -0
  472. package/dist/shared-lock/implementations/test-utilities/_module-exports.js +4 -0
  473. package/dist/shared-lock/implementations/test-utilities/_module-exports.js.map +1 -0
  474. package/dist/shared-lock/implementations/test-utilities/database-shared-lock-adapter.test-suite.d.ts +59 -0
  475. package/dist/shared-lock/implementations/test-utilities/database-shared-lock-adapter.test-suite.js +944 -0
  476. package/dist/shared-lock/implementations/test-utilities/database-shared-lock-adapter.test-suite.js.map +1 -0
  477. package/dist/shared-lock/implementations/test-utilities/shared-lock-adapter.test-suite.d.ts +59 -0
  478. package/dist/shared-lock/implementations/test-utilities/shared-lock-adapter.test-suite.js +1921 -0
  479. package/dist/shared-lock/implementations/test-utilities/shared-lock-adapter.test-suite.js.map +1 -0
  480. package/dist/shared-lock/implementations/test-utilities/shared-lock-provider.test-suite.d.ts +67 -0
  481. package/dist/shared-lock/implementations/test-utilities/shared-lock-provider.test-suite.js +9833 -0
  482. package/dist/shared-lock/implementations/test-utilities/shared-lock-provider.test-suite.js.map +1 -0
  483. package/dist/task/_module-exports.d.ts +1 -0
  484. package/dist/task/_module-exports.js +2 -0
  485. package/dist/task/_module-exports.js.map +1 -0
  486. package/dist/{async/utilities/abort-and-fail → task}/abort-and-fail.d.ts +1 -1
  487. package/dist/{async/utilities/abort-and-fail → task}/abort-and-fail.js +1 -1
  488. package/dist/task/abort-and-fail.js.map +1 -0
  489. package/dist/task/task.d.ts +194 -0
  490. package/dist/task/task.js +212 -0
  491. package/dist/task/task.js.map +1 -0
  492. package/dist/time-span/contracts/_module-exports.d.ts +1 -0
  493. package/dist/time-span/contracts/_module-exports.js +2 -0
  494. package/dist/time-span/contracts/_module-exports.js.map +1 -0
  495. package/dist/time-span/contracts/time-span.contract.d.ts +19 -0
  496. package/dist/time-span/contracts/time-span.contract.js +10 -0
  497. package/dist/time-span/contracts/time-span.contract.js.map +1 -0
  498. package/dist/time-span/implementations/_module-exports.d.ts +1 -0
  499. package/dist/time-span/implementations/_module-exports.js +2 -0
  500. package/dist/time-span/implementations/_module-exports.js.map +1 -0
  501. package/dist/{utilities/classes/time-span → time-span/implementations}/time-span.d.ts +49 -11
  502. package/dist/{utilities/classes/time-span → time-span/implementations}/time-span.js +33 -11
  503. package/dist/time-span/implementations/time-span.js.map +1 -0
  504. package/dist/utilities/classes/_module.d.ts +0 -3
  505. package/dist/utilities/classes/_module.js +0 -3
  506. package/dist/utilities/classes/_module.js.map +1 -1
  507. package/dist/utilities/contracts/_module.d.ts +1 -1
  508. package/dist/utilities/contracts/_module.js +1 -1
  509. package/dist/utilities/contracts/_module.js.map +1 -1
  510. package/dist/utilities/contracts/comparable.contract.d.ts +49 -0
  511. package/dist/utilities/contracts/comparable.contract.js +5 -0
  512. package/dist/utilities/contracts/comparable.contract.js.map +1 -0
  513. package/dist/utilities/functions/is-standard-schema.d.ts +6 -0
  514. package/dist/utilities/functions/is-standard-schema.js +6 -0
  515. package/dist/utilities/functions/is-standard-schema.js.map +1 -1
  516. package/dist/utilities/functions/lazy.d.ts +3 -3
  517. package/dist/utilities/functions/lazy.js +3 -3
  518. package/dist/utilities/functions/lazy.js.map +1 -1
  519. package/dist/utilities/functions/option.d.ts +3 -0
  520. package/dist/utilities/functions/option.js +3 -0
  521. package/dist/utilities/functions/option.js.map +1 -1
  522. package/dist/utilities/functions/validate.d.ts +5 -0
  523. package/dist/utilities/functions/validate.js +5 -0
  524. package/dist/utilities/functions/validate.js.map +1 -1
  525. package/dist/utilities/types/any-class.type.d.ts +6 -0
  526. package/dist/utilities/types/any-class.type.js +3 -0
  527. package/dist/utilities/types/any-class.type.js.map +1 -1
  528. package/package.json +67 -5
  529. package/dist/async/_module-exports.d.ts +0 -4
  530. package/dist/async/_module-exports.js +0 -5
  531. package/dist/async/_module-exports.js.map +0 -1
  532. package/dist/async/async.errors.d.ts +0 -47
  533. package/dist/async/async.errors.js +0 -61
  534. package/dist/async/async.errors.js.map +0 -1
  535. package/dist/async/backof-policies/_module.d.ts +0 -5
  536. package/dist/async/backof-policies/_module.js +0 -6
  537. package/dist/async/backof-policies/_module.js.map +0 -1
  538. package/dist/async/backof-policies/_shared.js.map +0 -1
  539. package/dist/async/backof-policies/constant-backoff-policy/_module.d.ts +0 -1
  540. package/dist/async/backof-policies/constant-backoff-policy/_module.js +0 -2
  541. package/dist/async/backof-policies/constant-backoff-policy/_module.js.map +0 -1
  542. package/dist/async/backof-policies/constant-backoff-policy/constant-backoff-policy.js.map +0 -1
  543. package/dist/async/backof-policies/exponential-backoff-policy/_module.d.ts +0 -1
  544. package/dist/async/backof-policies/exponential-backoff-policy/_module.js +0 -2
  545. package/dist/async/backof-policies/exponential-backoff-policy/_module.js.map +0 -1
  546. package/dist/async/backof-policies/exponential-backoff-policy/exponential-backoff-policy.js +0 -35
  547. package/dist/async/backof-policies/exponential-backoff-policy/exponential-backoff-policy.js.map +0 -1
  548. package/dist/async/backof-policies/linear-backoff-policy/_module.d.ts +0 -1
  549. package/dist/async/backof-policies/linear-backoff-policy/_module.js +0 -2
  550. package/dist/async/backof-policies/linear-backoff-policy/_module.js.map +0 -1
  551. package/dist/async/backof-policies/linear-backoff-policy/linear-backoff-policy.js +0 -35
  552. package/dist/async/backof-policies/linear-backoff-policy/linear-backoff-policy.js.map +0 -1
  553. package/dist/async/backof-policies/polynomial-backoff-policy/_module.d.ts +0 -1
  554. package/dist/async/backof-policies/polynomial-backoff-policy/_module.js +0 -2
  555. package/dist/async/backof-policies/polynomial-backoff-policy/_module.js.map +0 -1
  556. package/dist/async/backof-policies/polynomial-backoff-policy/polynomial-backoff-policy.js +0 -35
  557. package/dist/async/backof-policies/polynomial-backoff-policy/polynomial-backoff-policy.js.map +0 -1
  558. package/dist/async/middlewares/_module.d.ts +0 -7
  559. package/dist/async/middlewares/_module.js +0 -8
  560. package/dist/async/middlewares/_module.js.map +0 -1
  561. package/dist/async/middlewares/bulkhead/_module.d.ts +0 -1
  562. package/dist/async/middlewares/bulkhead/_module.js +0 -2
  563. package/dist/async/middlewares/bulkhead/_module.js.map +0 -1
  564. package/dist/async/middlewares/bulkhead/bulkhead.middleware.d.ts +0 -80
  565. package/dist/async/middlewares/bulkhead/bulkhead.middleware.js +0 -46
  566. package/dist/async/middlewares/bulkhead/bulkhead.middleware.js.map +0 -1
  567. package/dist/async/middlewares/dynamic/_module.d.ts +0 -1
  568. package/dist/async/middlewares/dynamic/_module.js +0 -2
  569. package/dist/async/middlewares/dynamic/_module.js.map +0 -1
  570. package/dist/async/middlewares/dynamic/dynamic.middleware.js.map +0 -1
  571. package/dist/async/middlewares/fallback/_module.d.ts +0 -2
  572. package/dist/async/middlewares/fallback/_module.js +0 -3
  573. package/dist/async/middlewares/fallback/_module.js.map +0 -1
  574. package/dist/async/middlewares/fallback/fallback.middleware.js.map +0 -1
  575. package/dist/async/middlewares/fallback/fallback.types.js.map +0 -1
  576. package/dist/async/middlewares/hedging/_module.d.ts +0 -2
  577. package/dist/async/middlewares/hedging/_module.js +0 -3
  578. package/dist/async/middlewares/hedging/_module.js.map +0 -1
  579. package/dist/async/middlewares/hedging/hedging.types.d.ts +0 -121
  580. package/dist/async/middlewares/hedging/hedging.types.js +0 -6
  581. package/dist/async/middlewares/hedging/hedging.types.js.map +0 -1
  582. package/dist/async/middlewares/hedging/sequential-hedging.middleware.d.ts +0 -51
  583. package/dist/async/middlewares/hedging/sequential-hedging.middleware.js +0 -133
  584. package/dist/async/middlewares/hedging/sequential-hedging.middleware.js.map +0 -1
  585. package/dist/async/middlewares/observe/_module.d.ts +0 -2
  586. package/dist/async/middlewares/observe/_module.js +0 -3
  587. package/dist/async/middlewares/observe/_module.js.map +0 -1
  588. package/dist/async/middlewares/observe/observe.middleware.js.map +0 -1
  589. package/dist/async/middlewares/observe/observe.types.js +0 -6
  590. package/dist/async/middlewares/observe/observe.types.js.map +0 -1
  591. package/dist/async/middlewares/retry/_module.d.ts +0 -2
  592. package/dist/async/middlewares/retry/_module.js +0 -3
  593. package/dist/async/middlewares/retry/_module.js.map +0 -1
  594. package/dist/async/middlewares/retry/retry.middleware.js.map +0 -1
  595. package/dist/async/middlewares/retry/retry.types.js +0 -7
  596. package/dist/async/middlewares/retry/retry.types.js.map +0 -1
  597. package/dist/async/middlewares/timeout/_module.d.ts +0 -2
  598. package/dist/async/middlewares/timeout/_module.js +0 -3
  599. package/dist/async/middlewares/timeout/_module.js.map +0 -1
  600. package/dist/async/middlewares/timeout/timeout.middleware.js.map +0 -1
  601. package/dist/async/middlewares/timeout/timeout.type.js +0 -6
  602. package/dist/async/middlewares/timeout/timeout.type.js.map +0 -1
  603. package/dist/async/utilities/_module.d.ts +0 -4
  604. package/dist/async/utilities/_module.js +0 -5
  605. package/dist/async/utilities/_module.js.map +0 -1
  606. package/dist/async/utilities/abort-and-fail/_module.d.ts +0 -1
  607. package/dist/async/utilities/abort-and-fail/_module.js +0 -2
  608. package/dist/async/utilities/abort-and-fail/_module.js.map +0 -1
  609. package/dist/async/utilities/abort-and-fail/abort-and-fail.js.map +0 -1
  610. package/dist/async/utilities/lazy-promise/_module.d.ts +0 -1
  611. package/dist/async/utilities/lazy-promise/_module.js +0 -2
  612. package/dist/async/utilities/lazy-promise/_module.js.map +0 -1
  613. package/dist/async/utilities/lazy-promise/lazy-promise.d.ts +0 -153
  614. package/dist/async/utilities/lazy-promise/lazy-promise.js +0 -176
  615. package/dist/async/utilities/lazy-promise/lazy-promise.js.map +0 -1
  616. package/dist/async/utilities/promise-queue/_module.d.ts +0 -1
  617. package/dist/async/utilities/promise-queue/_module.js +0 -2
  618. package/dist/async/utilities/promise-queue/_module.js.map +0 -1
  619. package/dist/async/utilities/promise-queue/promise-queue.d.ts +0 -32
  620. package/dist/async/utilities/promise-queue/promise-queue.js +0 -118
  621. package/dist/async/utilities/promise-queue/promise-queue.js.map +0 -1
  622. package/dist/async/utilities/timeout-and-fail/_module.d.ts +0 -1
  623. package/dist/async/utilities/timeout-and-fail/_module.js +0 -2
  624. package/dist/async/utilities/timeout-and-fail/_module.js.map +0 -1
  625. package/dist/async/utilities/timeout-and-fail/timeout-and-fail.d.ts +0 -7
  626. package/dist/async/utilities/timeout-and-fail/timeout-and-fail.js +0 -22
  627. package/dist/async/utilities/timeout-and-fail/timeout-and-fail.js.map +0 -1
  628. package/dist/lock/implementations/derivables/lock-provider/lock-state.d.ts +0 -40
  629. package/dist/lock/implementations/derivables/lock-provider/lock-state.js +0 -60
  630. package/dist/lock/implementations/derivables/lock-provider/lock-state.js.map +0 -1
  631. package/dist/serde/contracts/serializable.contract.d.ts +0 -12
  632. package/dist/serde/contracts/serializable.contract.js +0 -5
  633. package/dist/serde/contracts/serializable.contract.js.map +0 -1
  634. package/dist/serde/implementations/adapters/mongodb-serde/_module.d.ts +0 -1
  635. package/dist/serde/implementations/adapters/mongodb-serde/_module.js +0 -2
  636. package/dist/serde/implementations/adapters/mongodb-serde/_module.js.map +0 -1
  637. package/dist/serde/implementations/adapters/mongodb-serde/mongodb-serde.d.ts +0 -13
  638. package/dist/serde/implementations/adapters/mongodb-serde/mongodb-serde.js +0 -38
  639. package/dist/serde/implementations/adapters/mongodb-serde/mongodb-serde.js.map +0 -1
  640. package/dist/serde/implementations/adapters/redis-serde/_module.d.ts +0 -1
  641. package/dist/serde/implementations/adapters/redis-serde/_module.js +0 -2
  642. package/dist/serde/implementations/adapters/redis-serde/_module.js.map +0 -1
  643. package/dist/serde/implementations/adapters/redis-serde/redis-serde.d.ts +0 -13
  644. package/dist/serde/implementations/adapters/redis-serde/redis-serde.js +0 -39
  645. package/dist/serde/implementations/adapters/redis-serde/redis-serde.js.map +0 -1
  646. package/dist/serde/implementations/adapters/sql-serde/_module.d.ts +0 -1
  647. package/dist/serde/implementations/adapters/sql-serde/_module.js +0 -2
  648. package/dist/serde/implementations/adapters/sql-serde/_module.js.map +0 -1
  649. package/dist/serde/implementations/adapters/sql-serde/sql-serde.d.ts +0 -13
  650. package/dist/serde/implementations/adapters/sql-serde/sql-serde.js +0 -39
  651. package/dist/serde/implementations/adapters/sql-serde/sql-serde.js.map +0 -1
  652. package/dist/utilities/classes/hooks/_module.d.ts +0 -3
  653. package/dist/utilities/classes/hooks/_module.js +0 -4
  654. package/dist/utilities/classes/hooks/_module.js.map +0 -1
  655. package/dist/utilities/classes/hooks/async-hooks.js.map +0 -1
  656. package/dist/utilities/classes/hooks/hooks.js.map +0 -1
  657. package/dist/utilities/classes/hooks/types.js +0 -5
  658. package/dist/utilities/classes/hooks/types.js.map +0 -1
  659. package/dist/utilities/classes/namespace/_module.d.ts +0 -1
  660. package/dist/utilities/classes/namespace/_module.js +0 -2
  661. package/dist/utilities/classes/namespace/_module.js.map +0 -1
  662. package/dist/utilities/classes/namespace/namespace.d.ts +0 -85
  663. package/dist/utilities/classes/namespace/namespace.js +0 -125
  664. package/dist/utilities/classes/namespace/namespace.js.map +0 -1
  665. package/dist/utilities/classes/time-span/_module.d.ts +0 -1
  666. package/dist/utilities/classes/time-span/_module.js +0 -2
  667. package/dist/utilities/classes/time-span/_module.js.map +0 -1
  668. package/dist/utilities/classes/time-span/time-span.js.map +0 -1
  669. package/dist/utilities/contracts/serialized-error.contract.d.ts +0 -13
  670. package/dist/utilities/contracts/serialized-error.contract.js +0 -5
  671. package/dist/utilities/contracts/serialized-error.contract.js.map +0 -1
@@ -3,7 +3,7 @@
3
3
  */
4
4
  import type { AsyncReduce, CrossJoinResult, AsyncPredicate, AsyncForEach, AsyncMap, AsyncModifier, Tap, AsyncTransform, Comparator, EnsureRecord, EnsureMap } from "../../collection/contracts/_shared/_module.js";
5
5
  import type { AsyncLazyable, AsyncIterableValue } from "../../utilities/_module-exports.js";
6
- import type { LazyPromise } from "../../async/_module-exports.js";
6
+ import type { Task } from "../../task/_module-exports.js";
7
7
  import type { StandardSchemaV1 } from "@standard-schema/spec";
8
8
  /**
9
9
  *
@@ -126,9 +126,9 @@ export type IAsyncCollection<TInput = unknown> = AsyncIterable<TInput> & {
126
126
  * }
127
127
  * ```
128
128
  */
129
- reduce(reduceFn: AsyncReduce<TInput, IAsyncCollection<TInput>, TInput>): LazyPromise<TInput>;
130
- reduce(reduceFn: AsyncReduce<TInput, IAsyncCollection<TInput>, TInput>, initialValue: TInput): LazyPromise<TInput>;
131
- reduce<TOutput>(reduceFn: AsyncReduce<TInput, IAsyncCollection<TInput>, TOutput>, initialValue: TOutput): LazyPromise<TOutput>;
129
+ reduce(reduceFn: AsyncReduce<TInput, IAsyncCollection<TInput>, TInput>): Task<TInput>;
130
+ reduce(reduceFn: AsyncReduce<TInput, IAsyncCollection<TInput>, TInput>, initialValue: TInput): Task<TInput>;
131
+ reduce<TOutput>(reduceFn: AsyncReduce<TInput, IAsyncCollection<TInput>, TOutput>, initialValue: TOutput): Task<TOutput>;
132
132
  /**
133
133
  * The `join` method joins the collection's items with ` separator `. An error will be thrown when if a none string item is encounterd.
134
134
  * @throws {TypeCollectionError}
@@ -159,7 +159,7 @@ export type IAsyncCollection<TInput = unknown> = AsyncIterable<TInput> & {
159
159
  * }
160
160
  * ```
161
161
  */
162
- join(separator?: string): LazyPromise<Extract<TInput, string>>;
162
+ join(separator?: string): Task<Extract<TInput, string>>;
163
163
  /**
164
164
  * The `collapse` method collapses a collection of iterables into a single, flat collection.
165
165
  * @example
@@ -260,7 +260,7 @@ export type IAsyncCollection<TInput = unknown> = AsyncIterable<TInput> & {
260
260
  * }
261
261
  * ```
262
262
  */
263
- get(index: number): LazyPromise<TInput | null>;
263
+ get(index: number): Task<TInput | null>;
264
264
  /**
265
265
  * The `getOrFail` method returns the item by index. If the item is not found an error will be thrown.
266
266
  * @throws {ItemNotFoundCollectionError} {@link ItemNotFoundCollectionError}
@@ -280,7 +280,7 @@ export type IAsyncCollection<TInput = unknown> = AsyncIterable<TInput> & {
280
280
  * }
281
281
  * ```
282
282
  */
283
- getOrFail(index: number): LazyPromise<TInput>;
283
+ getOrFail(index: number): Task<TInput>;
284
284
  /**
285
285
  * The `page` method returns a new collection containing the items that would be present on ` page ` with custom ` pageSize `.
286
286
  * @example
@@ -315,7 +315,7 @@ export type IAsyncCollection<TInput = unknown> = AsyncIterable<TInput> & {
315
315
  * }
316
316
  * ```
317
317
  */
318
- sum(): LazyPromise<Extract<TInput, number>>;
318
+ sum(): Task<Extract<TInput, number>>;
319
319
  /**
320
320
  * The `average` method returns the average of all items in the collection. If the collection includes other than number items an error will be thrown.
321
321
  * @throws {TypeCollectionError} {@link TypeCollectionError}
@@ -333,7 +333,7 @@ export type IAsyncCollection<TInput = unknown> = AsyncIterable<TInput> & {
333
333
  * }
334
334
  * ```
335
335
  */
336
- average(): LazyPromise<Extract<TInput, number>>;
336
+ average(): Task<Extract<TInput, number>>;
337
337
  /**
338
338
  * The `median` method returns the median of all items in the collection. If the collection includes other than number items an error will be thrown.
339
339
  * @throws {TypeCollectionError} {@link TypeCollectionError}
@@ -351,7 +351,7 @@ export type IAsyncCollection<TInput = unknown> = AsyncIterable<TInput> & {
351
351
  * }
352
352
  * ```
353
353
  */
354
- median(): LazyPromise<Extract<TInput, number>>;
354
+ median(): Task<Extract<TInput, number>>;
355
355
  /**
356
356
  * The `min` method returns the min of all items in the collection. If the collection includes other than number items an error will be thrown.
357
357
  * @throws {TypeCollectionError} {@link TypeCollectionError}
@@ -369,7 +369,7 @@ export type IAsyncCollection<TInput = unknown> = AsyncIterable<TInput> & {
369
369
  * }
370
370
  * ```
371
371
  */
372
- min(): LazyPromise<Extract<TInput, number>>;
372
+ min(): Task<Extract<TInput, number>>;
373
373
  /**
374
374
  * The `max` method returns the max of all items in the collection. If the collection includes other than number items an error will be thrown.
375
375
  * @throws {TypeCollectionError} {@link TypeCollectionError}
@@ -387,7 +387,7 @@ export type IAsyncCollection<TInput = unknown> = AsyncIterable<TInput> & {
387
387
  * }
388
388
  * ```
389
389
  */
390
- max(): LazyPromise<Extract<TInput, number>>;
390
+ max(): Task<Extract<TInput, number>>;
391
391
  /**
392
392
  * The `percentage` method may be used to quickly determine the percentage of items in the collection that pass `predicateFn`.
393
393
  * @throws {EmptyCollectionError} {@link EmptyCollectionError}
@@ -404,7 +404,7 @@ export type IAsyncCollection<TInput = unknown> = AsyncIterable<TInput> & {
404
404
  * }
405
405
  * ```
406
406
  */
407
- percentage(predicateFn: AsyncPredicate<TInput, IAsyncCollection<TInput>>): LazyPromise<number>;
407
+ percentage(predicateFn: AsyncPredicate<TInput, IAsyncCollection<TInput>>): Task<number>;
408
408
  /**
409
409
  * The `some` method determines whether at least one item in the collection matches `predicateFn`.
410
410
  * @example
@@ -420,7 +420,7 @@ export type IAsyncCollection<TInput = unknown> = AsyncIterable<TInput> & {
420
420
  * }
421
421
  * ```
422
422
  */
423
- some<TOutput extends TInput>(predicateFn: AsyncPredicate<TInput, IAsyncCollection<TInput>, TOutput>): LazyPromise<boolean>;
423
+ some<TOutput extends TInput>(predicateFn: AsyncPredicate<TInput, IAsyncCollection<TInput>, TOutput>): Task<boolean>;
424
424
  /**
425
425
  * The `every` method determines whether all items in the collection matches `predicateFn`.
426
426
  * @example
@@ -436,7 +436,7 @@ export type IAsyncCollection<TInput = unknown> = AsyncIterable<TInput> & {
436
436
  * }
437
437
  * ```
438
438
  */
439
- every<TOutput extends TInput>(predicateFn: AsyncPredicate<TInput, IAsyncCollection<TInput>, TOutput>): LazyPromise<boolean>;
439
+ every<TOutput extends TInput>(predicateFn: AsyncPredicate<TInput, IAsyncCollection<TInput>, TOutput>): Task<boolean>;
440
440
  /**
441
441
  * The `take` method takes the first `limit` items.
442
442
  * @example
@@ -674,7 +674,7 @@ export type IAsyncCollection<TInput = unknown> = AsyncIterable<TInput> & {
674
674
  * }
675
675
  * ```
676
676
  */
677
- pipe<TOutput = TInput>(callback: AsyncTransform<IAsyncCollection<TInput>, TOutput>): LazyPromise<TOutput>;
677
+ pipe<TOutput = TInput>(callback: AsyncTransform<IAsyncCollection<TInput>, TOutput>): Task<TOutput>;
678
678
  /**
679
679
  * The `tap` method passes a copy of the original collection to `callback`, allowing you to do something with the items while not affecting the original collection.
680
680
  * @example
@@ -1467,7 +1467,7 @@ export type IAsyncCollection<TInput = unknown> = AsyncIterable<TInput> & {
1467
1467
  * }
1468
1468
  * ```
1469
1469
  */
1470
- first<TOutput extends TInput>(predicateFn?: AsyncPredicate<TInput, IAsyncCollection<TInput>, TOutput>): LazyPromise<TOutput | null>;
1470
+ first<TOutput extends TInput>(predicateFn?: AsyncPredicate<TInput, IAsyncCollection<TInput>, TOutput>): Task<TOutput | null>;
1471
1471
  /**
1472
1472
  * The `firstOr` method returns the first item in the collection that passes ` predicateFn `
1473
1473
  * By default it will get the first item. If the collection is empty or no items passes ` predicateFn ` than ` defaultValue `.
@@ -1521,7 +1521,7 @@ export type IAsyncCollection<TInput = unknown> = AsyncIterable<TInput> & {
1521
1521
  * // -1
1522
1522
  * }
1523
1523
  * ```
1524
- * You can pass a {@link LazyPromise| `LazyPromise`} as default value.
1524
+ * You can pass a {@link Task | `Task`} as default value.
1525
1525
  * @example
1526
1526
  * ```ts
1527
1527
  * import type { IAsyncCollection, ICache } from "@daiso-tech/core/collection/contracts";
@@ -1535,7 +1535,7 @@ export type IAsyncCollection<TInput = unknown> = AsyncIterable<TInput> & {
1535
1535
  * }
1536
1536
  * ```
1537
1537
  */
1538
- firstOr<TOutput extends TInput, TExtended = TInput>(defaultValue: AsyncLazyable<TExtended>, predicateFn?: AsyncPredicate<TInput, IAsyncCollection<TInput>, TOutput>): LazyPromise<TOutput | TExtended>;
1538
+ firstOr<TOutput extends TInput, TExtended = TInput>(defaultValue: AsyncLazyable<TExtended>, predicateFn?: AsyncPredicate<TInput, IAsyncCollection<TInput>, TOutput>): Task<TOutput | TExtended>;
1539
1539
  /**
1540
1540
  * The `firstOrFail` method returns the first item in the collection that passes ` predicateFn `.
1541
1541
  * By default it will get the first item. If the collection is empty or no items passes ` predicateFn ` than error is thrown.
@@ -1577,7 +1577,7 @@ export type IAsyncCollection<TInput = unknown> = AsyncIterable<TInput> & {
1577
1577
  * }
1578
1578
  * ```
1579
1579
  */
1580
- firstOrFail<TOutput extends TInput>(predicateFn?: AsyncPredicate<TInput, IAsyncCollection<TInput>, TOutput>): LazyPromise<TOutput>;
1580
+ firstOrFail<TOutput extends TInput>(predicateFn?: AsyncPredicate<TInput, IAsyncCollection<TInput>, TOutput>): Task<TOutput>;
1581
1581
  /**
1582
1582
  * The `last` method returns the last item in the collection that passes ` predicateFn `.
1583
1583
  * By default it will get the last item. If the collection is empty or no items passes ` predicateFn ` than null i returned.
@@ -1618,7 +1618,7 @@ export type IAsyncCollection<TInput = unknown> = AsyncIterable<TInput> & {
1618
1618
  * }
1619
1619
  * ```
1620
1620
  */
1621
- last<TOutput extends TInput>(predicateFn?: AsyncPredicate<TInput, IAsyncCollection<TInput>, TOutput>): LazyPromise<TOutput | null>;
1621
+ last<TOutput extends TInput>(predicateFn?: AsyncPredicate<TInput, IAsyncCollection<TInput>, TOutput>): Task<TOutput | null>;
1622
1622
  /**
1623
1623
  * The `lastOr` method returns the last item in the collection that passes ` predicateFn `.
1624
1624
  * By default it will get the last item. If the collection is empty or no items passes ` predicateFn ` than ` defaultValue `.
@@ -1672,7 +1672,7 @@ export type IAsyncCollection<TInput = unknown> = AsyncIterable<TInput> & {
1672
1672
  * // -1
1673
1673
  * }
1674
1674
  * ```
1675
- * You can pass a {@link LazyPromise| `LazyPromise`} as default value.
1675
+ * You can pass a {@link Task | `Task`} as default value.
1676
1676
  * @example
1677
1677
  * ```ts
1678
1678
  * import type { IAsyncCollection, ICache } from "@daiso-tech/core/collection/contracts";
@@ -1686,7 +1686,7 @@ export type IAsyncCollection<TInput = unknown> = AsyncIterable<TInput> & {
1686
1686
  * }
1687
1687
  * ```
1688
1688
  */
1689
- lastOr<TOutput extends TInput, TExtended = TInput>(defaultValue: AsyncLazyable<TExtended>, predicateFn?: AsyncPredicate<TInput, IAsyncCollection<TInput>, TOutput>): LazyPromise<TOutput | TExtended>;
1689
+ lastOr<TOutput extends TInput, TExtended = TInput>(defaultValue: AsyncLazyable<TExtended>, predicateFn?: AsyncPredicate<TInput, IAsyncCollection<TInput>, TOutput>): Task<TOutput | TExtended>;
1690
1690
  /**
1691
1691
  * The `lastOrFail` method returns the last item in the collection that passes ` predicateFn `.
1692
1692
  * By default it will get the last item. If the collection is empty or no items passes ` predicateFn ` than error is thrown.
@@ -1728,7 +1728,7 @@ export type IAsyncCollection<TInput = unknown> = AsyncIterable<TInput> & {
1728
1728
  * }
1729
1729
  * ```
1730
1730
  */
1731
- lastOrFail<TOutput extends TInput>(predicateFn?: AsyncPredicate<TInput, IAsyncCollection<TInput>, TOutput>): LazyPromise<TOutput>;
1731
+ lastOrFail<TOutput extends TInput>(predicateFn?: AsyncPredicate<TInput, IAsyncCollection<TInput>, TOutput>): Task<TOutput>;
1732
1732
  /**
1733
1733
  * The `before` method returns the item that comes before the first item that matches `predicateFn`.
1734
1734
  * If the `predicateFn` does not match or matches the first item then null is returned.
@@ -1757,7 +1757,7 @@ export type IAsyncCollection<TInput = unknown> = AsyncIterable<TInput> & {
1757
1757
  * }
1758
1758
  * ```
1759
1759
  */
1760
- before(predicateFn: AsyncPredicate<TInput, IAsyncCollection<TInput>>): LazyPromise<TInput | null>;
1760
+ before(predicateFn: AsyncPredicate<TInput, IAsyncCollection<TInput>>): Task<TInput | null>;
1761
1761
  /**
1762
1762
  * The `beforeOr` method returns the item that comes before the first item that matches `predicateFn`.
1763
1763
  * If the collection is empty or the `predicateFn` does not match or matches the first item then `defaultValue` is returned.
@@ -1799,7 +1799,7 @@ export type IAsyncCollection<TInput = unknown> = AsyncIterable<TInput> & {
1799
1799
  * // -1
1800
1800
  * }
1801
1801
  * ```
1802
- * You can pass a {@link LazyPromise| `LazyPromise`} as default value.
1802
+ * You can pass a {@link Task | `Task`} as default value.
1803
1803
  * @example
1804
1804
  * ```ts
1805
1805
  * import type { IAsyncCollection, ICache } from "@daiso-tech/core/collection/contracts";
@@ -1813,7 +1813,7 @@ export type IAsyncCollection<TInput = unknown> = AsyncIterable<TInput> & {
1813
1813
  * }
1814
1814
  * ```
1815
1815
  */
1816
- beforeOr<TExtended = TInput>(defaultValue: AsyncLazyable<TExtended>, predicateFn: AsyncPredicate<TInput, IAsyncCollection<TInput>>): LazyPromise<TInput | TExtended>;
1816
+ beforeOr<TExtended = TInput>(defaultValue: AsyncLazyable<TExtended>, predicateFn: AsyncPredicate<TInput, IAsyncCollection<TInput>>): Task<TInput | TExtended>;
1817
1817
  /**
1818
1818
  * The `beforeOrFail` method returns the item that comes before the first item that matches `predicateFn`.
1819
1819
  * If the collection is empty or the `predicateFn` does not match or matches the first item then an error is thrown.
@@ -1843,7 +1843,7 @@ export type IAsyncCollection<TInput = unknown> = AsyncIterable<TInput> & {
1843
1843
  * }
1844
1844
  * ```
1845
1845
  */
1846
- beforeOrFail(predicateFn: AsyncPredicate<TInput, IAsyncCollection<TInput>>): LazyPromise<TInput>;
1846
+ beforeOrFail(predicateFn: AsyncPredicate<TInput, IAsyncCollection<TInput>>): Task<TInput>;
1847
1847
  /**
1848
1848
  * The `after` method returns the item that comes after the first item that matches `predicateFn`.
1849
1849
  * If the collection is empty or the `predicateFn` does not match or matches the last item then null is returned.
@@ -1872,7 +1872,7 @@ export type IAsyncCollection<TInput = unknown> = AsyncIterable<TInput> & {
1872
1872
  * }
1873
1873
  * ```
1874
1874
  */
1875
- after(predicateFn: AsyncPredicate<TInput, IAsyncCollection<TInput>>): LazyPromise<TInput | null>;
1875
+ after(predicateFn: AsyncPredicate<TInput, IAsyncCollection<TInput>>): Task<TInput | null>;
1876
1876
  /**
1877
1877
  * The `afterOr` method returns the item that comes after the first item that matches `predicateFn`.
1878
1878
  * If the collection is empty or the `predicateFn` does not match or matches the last item then `defaultValue` is returned.
@@ -1914,7 +1914,7 @@ export type IAsyncCollection<TInput = unknown> = AsyncIterable<TInput> & {
1914
1914
  * // -1
1915
1915
  * }
1916
1916
  * ```
1917
- * You can pass a {@link LazyPromise| `LazyPromise`} as default value.
1917
+ * You can pass a {@link Task | `Task`} as default value.
1918
1918
  * @example
1919
1919
  * ```ts
1920
1920
  * import type { IAsyncCollection, ICache } from "@daiso-tech/core/collection/contracts";
@@ -1928,7 +1928,7 @@ export type IAsyncCollection<TInput = unknown> = AsyncIterable<TInput> & {
1928
1928
  * }
1929
1929
  * ```
1930
1930
  */
1931
- afterOr<TExtended = TInput>(defaultValue: AsyncLazyable<TExtended>, predicateFn: AsyncPredicate<TInput, IAsyncCollection<TInput>>): LazyPromise<TInput | TExtended>;
1931
+ afterOr<TExtended = TInput>(defaultValue: AsyncLazyable<TExtended>, predicateFn: AsyncPredicate<TInput, IAsyncCollection<TInput>>): Task<TInput | TExtended>;
1932
1932
  /**
1933
1933
  * The `afterOrFail` method returns the item that comes after the first item that matches `predicateFn`.
1934
1934
  * If the collection is empty or the `predicateFn` does not match or matches the last item then an error is thrown.
@@ -1958,7 +1958,7 @@ export type IAsyncCollection<TInput = unknown> = AsyncIterable<TInput> & {
1958
1958
  * }
1959
1959
  * ```
1960
1960
  */
1961
- afterOrFail(predicateFn: AsyncPredicate<TInput, IAsyncCollection<TInput>>): LazyPromise<TInput>;
1961
+ afterOrFail(predicateFn: AsyncPredicate<TInput, IAsyncCollection<TInput>>): Task<TInput>;
1962
1962
  /**
1963
1963
  * The `sole` method returns the first item in the collection that passes `predicateFn`, but only if `predicateFn` matches exactly one item.
1964
1964
  * If no items matches or multiple items are found an error will be thrown.
@@ -2001,7 +2001,7 @@ export type IAsyncCollection<TInput = unknown> = AsyncIterable<TInput> & {
2001
2001
  * }
2002
2002
  * ```
2003
2003
  */
2004
- sole<TOutput extends TInput>(predicateFn: AsyncPredicate<TInput, IAsyncCollection<TInput>, TOutput>): LazyPromise<TOutput>;
2004
+ sole<TOutput extends TInput>(predicateFn: AsyncPredicate<TInput, IAsyncCollection<TInput>, TOutput>): Task<TOutput>;
2005
2005
  /**
2006
2006
  * The `nth` method creates a new collection consisting of every n-th item.
2007
2007
  * @example
@@ -2033,19 +2033,19 @@ export type IAsyncCollection<TInput = unknown> = AsyncIterable<TInput> & {
2033
2033
  * }
2034
2034
  * ```
2035
2035
  */
2036
- count(predicateFn: AsyncPredicate<TInput, IAsyncCollection<TInput>>): LazyPromise<number>;
2036
+ count(predicateFn: AsyncPredicate<TInput, IAsyncCollection<TInput>>): Task<number>;
2037
2037
  /**
2038
2038
  * The `size` returns the size of the collection.
2039
2039
  */
2040
- size(): LazyPromise<number>;
2040
+ size(): Task<number>;
2041
2041
  /**
2042
2042
  * The `isEmpty` returns true if the collection is empty.
2043
2043
  */
2044
- isEmpty(): LazyPromise<boolean>;
2044
+ isEmpty(): Task<boolean>;
2045
2045
  /**
2046
2046
  * The `isNotEmpty` returns true if the collection is not empty.
2047
2047
  */
2048
- isNotEmpty(): LazyPromise<boolean>;
2048
+ isNotEmpty(): Task<boolean>;
2049
2049
  /**
2050
2050
  * The `searchFirst` return the index of the first item that matches `predicateFn`.
2051
2051
  * @example
@@ -2061,7 +2061,7 @@ export type IAsyncCollection<TInput = unknown> = AsyncIterable<TInput> & {
2061
2061
  * }
2062
2062
  * ```
2063
2063
  */
2064
- searchFirst(predicateFn: AsyncPredicate<TInput, IAsyncCollection<TInput>>): LazyPromise<number>;
2064
+ searchFirst(predicateFn: AsyncPredicate<TInput, IAsyncCollection<TInput>>): Task<number>;
2065
2065
  /**
2066
2066
  * The `searchLast` return the index of the last item that matches `predicateFn`.
2067
2067
  * @example
@@ -2077,25 +2077,25 @@ export type IAsyncCollection<TInput = unknown> = AsyncIterable<TInput> & {
2077
2077
  * }
2078
2078
  * ```
2079
2079
  */
2080
- searchLast(predicateFn: AsyncPredicate<TInput, IAsyncCollection<TInput>>): LazyPromise<number>;
2080
+ searchLast(predicateFn: AsyncPredicate<TInput, IAsyncCollection<TInput>>): Task<number>;
2081
2081
  /**
2082
2082
  * The `forEach` method iterates through all items in the collection.
2083
2083
  */
2084
- forEach(callback: AsyncForEach<TInput, IAsyncCollection<TInput>>): LazyPromise<void>;
2084
+ forEach(callback: AsyncForEach<TInput, IAsyncCollection<TInput>>): Task<void>;
2085
2085
  /**
2086
2086
  * The `toArray` method converts the collection to a new {@link Array | `Array`}.
2087
2087
  */
2088
- toArray(): LazyPromise<TInput[]>;
2088
+ toArray(): Task<TInput[]>;
2089
2089
  /**
2090
2090
  * The `toRecord` method converts the collection to a new {@link Record | `Record`}.
2091
2091
  * An error will be thrown if item is not a tuple of size 2 where the first element is a string or a number.
2092
2092
  * @throws {TypeCollectionError} {@link TypeCollectionError}
2093
2093
  */
2094
- toRecord(): LazyPromise<EnsureRecord<TInput>>;
2094
+ toRecord(): Task<EnsureRecord<TInput>>;
2095
2095
  /**
2096
2096
  * The `toMap` method converts the collection to a new {@link Map | `Map`}.
2097
2097
  * An error will be thrown if item is not a tuple of size 2.
2098
2098
  * @throws {TypeCollectionError} {@link TypeCollectionError}
2099
2099
  */
2100
- toMap(): LazyPromise<EnsureMap<TInput>>;
2100
+ toMap(): Task<EnsureMap<TInput>>;
2101
2101
  };
@@ -5,7 +5,21 @@ import type { Comparator, PredicateInvokable, ForEach, Map, Modifier, Tap, Trans
5
5
  import type { ISerializable } from "../../serde/contracts/_module-exports.js";
6
6
  import type { Lazyable } from "../../utilities/_module-exports.js";
7
7
  import type { StandardSchemaV1 } from "@standard-schema/spec";
8
+ /**
9
+ *
10
+ * IMPORT_PATH: `"@daiso-tech/core/collection/contracts"`
11
+ * @group Contracts
12
+ */
8
13
  export type Collapse<TValue> = TValue extends Array<infer TItem> | Iterable<infer TItem> | ICollection<infer TItem> ? TItem : TValue;
14
+ /**
15
+ *
16
+ * IMPORT_PATH: `"@daiso-tech/core/collection/contracts"`
17
+ * @group Contracts
18
+ */
19
+ export type SerializedCollection<TInput = unknown> = {
20
+ version: "1";
21
+ items: TInput[];
22
+ };
9
23
  /**
10
24
  * The `ICollection` contract offers a fluent and efficient approach to working with {@link Iterable | `Iterable`} objects.
11
25
  * `ICollection` is immutable.
@@ -13,7 +27,7 @@ export type Collapse<TValue> = TValue extends Array<infer TItem> | Iterable<infe
13
27
  * IMPORT_PATH: `"@daiso-tech/core/collection/contracts"`
14
28
  * @group Contracts
15
29
  */
16
- export type ICollection<TInput = unknown> = Iterable<TInput> & ISerializable<TInput[]> & {
30
+ export type ICollection<TInput = unknown> = Iterable<TInput> & ISerializable<SerializedCollection<TInput>> & {
17
31
  /**
18
32
  * The `toIterator` method converts the collection to a new iterator.
19
33
  */
@@ -1,7 +1,5 @@
1
1
  /**
2
2
  * @module Collection
3
3
  */
4
- import {
5
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
6
- UnexpectedError, } from "../../utilities/_module-exports.js";
4
+ export {};
7
5
  //# sourceMappingURL=collection.contract.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"collection.contract.js","sourceRoot":"","sources":["../../../src/collection/contracts/collection.contract.ts"],"names":[],"mappings":"AAAA;;GAEG;AA4BH,OAAO;AACH,6DAA6D;AAC7D,eAAe,GAClB,MAAM,gCAAgC,CAAC"}
1
+ {"version":3,"file":"collection.contract.js","sourceRoot":"","sources":["../../../src/collection/contracts/collection.contract.ts"],"names":[],"mappings":"AAAA;;GAEG"}
@@ -1,21 +1,13 @@
1
1
  /**
2
2
  * @module Collection
3
3
  */
4
- /**
5
- *
6
- * IMPORT_PATH: `"@daiso-tech/core/collection/contracts"`
7
- * @group Errors
8
- */
9
- export declare class CollectionError extends Error {
10
- constructor(message: string, cause?: unknown);
11
- }
12
4
  /**
13
5
  * The error is thrown when the item is not found.
14
6
  *
15
7
  * IMPORT_PATH: `"@daiso-tech/core/collection/contracts"`
16
8
  * @group Errors
17
9
  */
18
- export declare class ItemNotFoundCollectionError extends CollectionError {
10
+ export declare class ItemNotFoundCollectionError extends Error {
19
11
  constructor(message: string, cause?: unknown);
20
12
  }
21
13
  /**
@@ -24,7 +16,7 @@ export declare class ItemNotFoundCollectionError extends CollectionError {
24
16
  * IMPORT_PATH: `"@daiso-tech/core/collection/contracts"`
25
17
  * @group Errors
26
18
  */
27
- export declare class MultipleItemsFoundCollectionError extends CollectionError {
19
+ export declare class MultipleItemsFoundCollectionError extends Error {
28
20
  constructor(message: string, cause?: unknown);
29
21
  }
30
22
  /**
@@ -33,7 +25,7 @@ export declare class MultipleItemsFoundCollectionError extends CollectionError {
33
25
  * IMPORT_PATH: `"@daiso-tech/core/collection/contracts"`
34
26
  * @group Errors
35
27
  */
36
- export declare class TypeCollectionError extends CollectionError {
28
+ export declare class TypeCollectionError extends Error {
37
29
  constructor(message: string, cause?: unknown);
38
30
  }
39
31
  /**
@@ -42,7 +34,7 @@ export declare class TypeCollectionError extends CollectionError {
42
34
  * IMPORT_PATH: `"@daiso-tech/core/collection/contracts"`
43
35
  * @group Errors
44
36
  */
45
- export declare class EmptyCollectionError extends CollectionError {
37
+ export declare class EmptyCollectionError extends Error {
46
38
  constructor(message: string, cause?: unknown);
47
39
  }
48
40
  /**
@@ -51,7 +43,6 @@ export declare class EmptyCollectionError extends CollectionError {
51
43
  * @group Errors
52
44
  */
53
45
  export declare const COLLECTION_ERRORS: {
54
- readonly Base: typeof CollectionError;
55
46
  readonly ItemNotFound: typeof ItemNotFoundCollectionError;
56
47
  readonly MultipleItemsFound: typeof MultipleItemsFoundCollectionError;
57
48
  readonly Type: typeof TypeCollectionError;
@@ -1,24 +1,13 @@
1
1
  /**
2
2
  * @module Collection
3
3
  */
4
- /**
5
- *
6
- * IMPORT_PATH: `"@daiso-tech/core/collection/contracts"`
7
- * @group Errors
8
- */
9
- export class CollectionError extends Error {
10
- constructor(message, cause) {
11
- super(message, { cause });
12
- this.name = CollectionError.name;
13
- }
14
- }
15
4
  /**
16
5
  * The error is thrown when the item is not found.
17
6
  *
18
7
  * IMPORT_PATH: `"@daiso-tech/core/collection/contracts"`
19
8
  * @group Errors
20
9
  */
21
- export class ItemNotFoundCollectionError extends CollectionError {
10
+ export class ItemNotFoundCollectionError extends Error {
22
11
  constructor(message, cause) {
23
12
  super(message, { cause });
24
13
  this.name = ItemNotFoundCollectionError.name;
@@ -30,7 +19,7 @@ export class ItemNotFoundCollectionError extends CollectionError {
30
19
  * IMPORT_PATH: `"@daiso-tech/core/collection/contracts"`
31
20
  * @group Errors
32
21
  */
33
- export class MultipleItemsFoundCollectionError extends CollectionError {
22
+ export class MultipleItemsFoundCollectionError extends Error {
34
23
  constructor(message, cause) {
35
24
  super(message, { cause });
36
25
  this.name = MultipleItemsFoundCollectionError.name;
@@ -42,7 +31,7 @@ export class MultipleItemsFoundCollectionError extends CollectionError {
42
31
  * IMPORT_PATH: `"@daiso-tech/core/collection/contracts"`
43
32
  * @group Errors
44
33
  */
45
- export class TypeCollectionError extends CollectionError {
34
+ export class TypeCollectionError extends Error {
46
35
  constructor(message, cause) {
47
36
  super(message, { cause });
48
37
  this.name = TypeCollectionError.name;
@@ -54,7 +43,7 @@ export class TypeCollectionError extends CollectionError {
54
43
  * IMPORT_PATH: `"@daiso-tech/core/collection/contracts"`
55
44
  * @group Errors
56
45
  */
57
- export class EmptyCollectionError extends CollectionError {
46
+ export class EmptyCollectionError extends Error {
58
47
  constructor(message, cause) {
59
48
  super(message, { cause });
60
49
  this.name = EmptyCollectionError.name;
@@ -66,7 +55,6 @@ export class EmptyCollectionError extends CollectionError {
66
55
  * @group Errors
67
56
  */
68
57
  export const COLLECTION_ERRORS = {
69
- Base: CollectionError,
70
58
  ItemNotFound: ItemNotFoundCollectionError,
71
59
  MultipleItemsFound: MultipleItemsFoundCollectionError,
72
60
  Type: TypeCollectionError,
@@ -1 +1 @@
1
- {"version":3,"file":"collection.errors.js","sourceRoot":"","sources":["../../../src/collection/contracts/collection.errors.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;GAIG;AACH,MAAM,OAAO,eAAgB,SAAQ,KAAK;IACtC,YAAY,OAAe,EAAE,KAAe;QACxC,KAAK,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;QAC1B,IAAI,CAAC,IAAI,GAAG,eAAe,CAAC,IAAI,CAAC;IACrC,CAAC;CACJ;AAED;;;;;GAKG;AACH,MAAM,OAAO,2BAA4B,SAAQ,eAAe;IAC5D,YAAY,OAAe,EAAE,KAAe;QACxC,KAAK,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;QAC1B,IAAI,CAAC,IAAI,GAAG,2BAA2B,CAAC,IAAI,CAAC;IACjD,CAAC;CACJ;AAED;;;;;GAKG;AACH,MAAM,OAAO,iCAAkC,SAAQ,eAAe;IAClE,YAAY,OAAe,EAAE,KAAe;QACxC,KAAK,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;QAC1B,IAAI,CAAC,IAAI,GAAG,iCAAiC,CAAC,IAAI,CAAC;IACvD,CAAC;CACJ;AAED;;;;;GAKG;AACH,MAAM,OAAO,mBAAoB,SAAQ,eAAe;IACpD,YAAY,OAAe,EAAE,KAAe;QACxC,KAAK,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;QAC1B,IAAI,CAAC,IAAI,GAAG,mBAAmB,CAAC,IAAI,CAAC;IACzC,CAAC;CACJ;AAED;;;;;GAKG;AACH,MAAM,OAAO,oBAAqB,SAAQ,eAAe;IACrD,YAAY,OAAe,EAAE,KAAe;QACxC,KAAK,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;QAC1B,IAAI,CAAC,IAAI,GAAG,oBAAoB,CAAC,IAAI,CAAC;IAC1C,CAAC;CACJ;AAED;;;;GAIG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC7B,IAAI,EAAE,eAAe;IACrB,YAAY,EAAE,2BAA2B;IACzC,kBAAkB,EAAE,iCAAiC;IACrD,IAAI,EAAE,mBAAmB;IACzB,KAAK,EAAE,oBAAoB;CACrB,CAAC"}
1
+ {"version":3,"file":"collection.errors.js","sourceRoot":"","sources":["../../../src/collection/contracts/collection.errors.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;;GAKG;AACH,MAAM,OAAO,2BAA4B,SAAQ,KAAK;IAClD,YAAY,OAAe,EAAE,KAAe;QACxC,KAAK,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;QAC1B,IAAI,CAAC,IAAI,GAAG,2BAA2B,CAAC,IAAI,CAAC;IACjD,CAAC;CACJ;AAED;;;;;GAKG;AACH,MAAM,OAAO,iCAAkC,SAAQ,KAAK;IACxD,YAAY,OAAe,EAAE,KAAe;QACxC,KAAK,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;QAC1B,IAAI,CAAC,IAAI,GAAG,iCAAiC,CAAC,IAAI,CAAC;IACvD,CAAC;CACJ;AAED;;;;;GAKG;AACH,MAAM,OAAO,mBAAoB,SAAQ,KAAK;IAC1C,YAAY,OAAe,EAAE,KAAe;QACxC,KAAK,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;QAC1B,IAAI,CAAC,IAAI,GAAG,mBAAmB,CAAC,IAAI,CAAC;IACzC,CAAC;CACJ;AAED;;;;;GAKG;AACH,MAAM,OAAO,oBAAqB,SAAQ,KAAK;IAC3C,YAAY,OAAe,EAAE,KAAe;QACxC,KAAK,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;QAC1B,IAAI,CAAC,IAAI,GAAG,oBAAoB,CAAC,IAAI,CAAC;IAC1C,CAAC;CACJ;AAED;;;;GAIG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC7B,YAAY,EAAE,2BAA2B;IACzC,kBAAkB,EAAE,iCAAiC;IACrD,IAAI,EAAE,mBAAmB;IACzB,KAAK,EAAE,oBAAoB;CACrB,CAAC"}
@@ -1,4 +1,10 @@
1
+ /**
2
+ * @module Collection
3
+ */
1
4
  import type { StandardSchemaV1 } from "@standard-schema/spec";
5
+ /**
6
+ * @internal
7
+ */
2
8
  export declare class AsyncValidateIterable<TInput, TOutput> implements AsyncIterable<TOutput> {
3
9
  private readonly iterable;
4
10
  private readonly schema;
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @internal
3
+ */
1
4
  export class AsyncValidateIterable {
2
5
  iterable;
3
6
  schema;
@@ -1 +1 @@
1
- {"version":3,"file":"async-validate-iterable.js","sourceRoot":"","sources":["../../../../../src/collection/implementations/async-iterable-collection/_shared/async-validate-iterable.ts"],"names":[],"mappings":"AAEA,MAAM,OAAO,qBAAqB;IAIT;IACA;IAFrB,YACqB,QAA+B,EAC/B,MAAyC;QADzC,aAAQ,GAAR,QAAQ,CAAuB;QAC/B,WAAM,GAAN,MAAM,CAAmC;IAC3D,CAAC;IAEJ,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,aAAa,CAAC;QACzB,IAAI,KAAK,EAAE,MAAM,IAAI,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;YACrC,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YAE7D,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC;gBACjB,MAAM,MAAM,CAAC,KAAK,CAAC;YACvB,CAAC;QACL,CAAC;IACL,CAAC;CACJ"}
1
+ {"version":3,"file":"async-validate-iterable.js","sourceRoot":"","sources":["../../../../../src/collection/implementations/async-iterable-collection/_shared/async-validate-iterable.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,MAAM,OAAO,qBAAqB;IAIT;IACA;IAFrB,YACqB,QAA+B,EAC/B,MAAyC;QADzC,aAAQ,GAAR,QAAQ,CAAuB;QAC/B,WAAM,GAAN,MAAM,CAAmC;IAC3D,CAAC;IAEJ,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,aAAa,CAAC;QACzB,IAAI,KAAK,EAAE,MAAM,IAAI,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;YACrC,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YAE7D,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC;gBACjB,MAAM,MAAM,CAAC,KAAK,CAAC;YACvB,CAAC;QACL,CAAC;IACL,CAAC;CACJ"}