@decaf-ts/core 0.17.0 → 0.19.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 (668) hide show
  1. package/lib/cjs/auth/constants.cjs +2 -2
  2. package/lib/cjs/auth/constants.cjs.map +1 -0
  3. package/lib/cjs/auth/decorators.cjs +1 -0
  4. package/lib/cjs/auth/decorators.cjs.map +1 -0
  5. package/lib/cjs/auth/index.cjs +1 -0
  6. package/lib/cjs/auth/index.cjs.map +1 -0
  7. package/lib/cjs/fs/FilesystemAdapter.cjs +40 -39
  8. package/lib/cjs/fs/FilesystemAdapter.cjs.map +1 -0
  9. package/lib/cjs/fs/FsDispatch.cjs +3 -2
  10. package/lib/cjs/fs/FsDispatch.cjs.map +1 -0
  11. package/lib/cjs/fs/helpers.cjs +1 -0
  12. package/lib/cjs/fs/helpers.cjs.map +1 -0
  13. package/lib/cjs/fs/index.cjs +1 -0
  14. package/lib/cjs/fs/index.cjs.map +1 -0
  15. package/lib/cjs/fs/indexStore.cjs +8 -7
  16. package/lib/cjs/fs/indexStore.cjs.map +1 -0
  17. package/lib/cjs/fs/locks/FilesystemLock.cjs +3 -2
  18. package/lib/cjs/fs/locks/FilesystemLock.cjs.map +1 -0
  19. package/lib/cjs/fs/locks/FilesystemMultiLock.cjs +5 -4
  20. package/lib/cjs/fs/locks/FilesystemMultiLock.cjs.map +1 -0
  21. package/lib/cjs/fs/types.cjs +1 -0
  22. package/lib/cjs/fs/types.cjs.map +1 -0
  23. package/lib/cjs/identity/decorators.cjs +11 -10
  24. package/lib/cjs/identity/decorators.cjs.map +1 -0
  25. package/lib/cjs/identity/index.cjs +1 -0
  26. package/lib/cjs/identity/index.cjs.map +1 -0
  27. package/lib/cjs/index.cjs +4 -3
  28. package/lib/cjs/index.cjs.map +1 -0
  29. package/lib/cjs/interfaces/ContextuallyLogged.cjs +1 -0
  30. package/lib/cjs/interfaces/ContextuallyLogged.cjs.map +1 -0
  31. package/lib/cjs/interfaces/ErrorParser.cjs +1 -0
  32. package/lib/cjs/interfaces/ErrorParser.cjs.map +1 -0
  33. package/lib/cjs/interfaces/Executor.cjs +1 -0
  34. package/lib/cjs/interfaces/Executor.cjs.map +1 -0
  35. package/lib/cjs/interfaces/Observable.cjs +1 -0
  36. package/lib/cjs/interfaces/Observable.cjs.map +1 -0
  37. package/lib/cjs/interfaces/Observer.cjs +1 -0
  38. package/lib/cjs/interfaces/Observer.cjs.map +1 -0
  39. package/lib/cjs/interfaces/Paginatable.cjs +1 -0
  40. package/lib/cjs/interfaces/Paginatable.cjs.map +1 -0
  41. package/lib/cjs/interfaces/Queriable.cjs +1 -0
  42. package/lib/cjs/interfaces/Queriable.cjs.map +1 -0
  43. package/lib/cjs/interfaces/RawExecutor.cjs +1 -0
  44. package/lib/cjs/interfaces/RawExecutor.cjs.map +1 -0
  45. package/lib/cjs/interfaces/SequenceOptions.cjs +1 -0
  46. package/lib/cjs/interfaces/SequenceOptions.cjs.map +1 -0
  47. package/lib/cjs/interfaces/index.cjs +1 -0
  48. package/lib/cjs/interfaces/index.cjs.map +1 -0
  49. package/lib/cjs/migrations/Migration.cjs +16 -15
  50. package/lib/cjs/migrations/Migration.cjs.map +1 -0
  51. package/lib/cjs/migrations/MigrationService.cjs +38 -37
  52. package/lib/cjs/migrations/MigrationService.cjs.map +1 -0
  53. package/lib/cjs/migrations/MigrationTaskBuilder.cjs +3 -2
  54. package/lib/cjs/migrations/MigrationTaskBuilder.cjs.map +1 -0
  55. package/lib/cjs/migrations/MigrationTasks.cjs +22 -17
  56. package/lib/cjs/migrations/MigrationTasks.cjs.map +1 -0
  57. package/lib/cjs/migrations/MigrationVersioning.cjs +1 -0
  58. package/lib/cjs/migrations/MigrationVersioning.cjs.map +1 -0
  59. package/lib/cjs/migrations/SemverMigrationVersioning.cjs +1 -0
  60. package/lib/cjs/migrations/SemverMigrationVersioning.cjs.map +1 -0
  61. package/lib/cjs/migrations/StandardMigrationVersioning.cjs +1 -0
  62. package/lib/cjs/migrations/StandardMigrationVersioning.cjs.map +1 -0
  63. package/lib/cjs/migrations/constants.cjs +3 -2
  64. package/lib/cjs/migrations/constants.cjs.map +1 -0
  65. package/lib/cjs/migrations/decorators.cjs +10 -9
  66. package/lib/cjs/migrations/decorators.cjs.map +1 -0
  67. package/lib/cjs/migrations/index.cjs +6 -5
  68. package/lib/cjs/migrations/index.cjs.map +1 -0
  69. package/lib/cjs/migrations/types.cjs +1 -0
  70. package/lib/cjs/migrations/types.cjs.map +1 -0
  71. package/lib/cjs/model/BaseModel.cjs +14 -8
  72. package/lib/cjs/model/BaseModel.cjs.map +1 -0
  73. package/lib/cjs/model/SequenceModel.cjs +19 -13
  74. package/lib/cjs/model/SequenceModel.cjs.map +1 -0
  75. package/lib/cjs/model/construction.cjs +27 -26
  76. package/lib/cjs/model/construction.cjs.map +1 -0
  77. package/lib/cjs/model/decorators.cjs +48 -47
  78. package/lib/cjs/model/decorators.cjs.map +1 -0
  79. package/lib/cjs/model/index.cjs +1 -0
  80. package/lib/cjs/model/index.cjs.map +1 -0
  81. package/lib/cjs/model/indexing.cjs +6 -5
  82. package/lib/cjs/model/indexing.cjs.map +1 -0
  83. package/lib/cjs/model/types.cjs +1 -0
  84. package/lib/cjs/model/types.cjs.map +1 -0
  85. package/lib/cjs/overrides/Metadata.cjs +1 -0
  86. package/lib/cjs/overrides/Metadata.cjs.map +1 -0
  87. package/lib/cjs/overrides/Model.cjs +1 -0
  88. package/lib/cjs/overrides/Model.cjs.map +1 -0
  89. package/lib/cjs/overrides/ModelBuilder.cjs +1 -0
  90. package/lib/cjs/overrides/ModelBuilder.cjs.map +1 -0
  91. package/lib/cjs/overrides/index.cjs +1 -0
  92. package/lib/cjs/overrides/index.cjs.map +1 -0
  93. package/lib/cjs/overrides/injectables.cjs +1 -0
  94. package/lib/cjs/overrides/injectables.cjs.map +1 -0
  95. package/lib/cjs/overrides/overrides.cjs +22 -21
  96. package/lib/cjs/overrides/overrides.cjs.map +1 -0
  97. package/lib/cjs/persistence/Adapter.cjs +47 -41
  98. package/lib/cjs/persistence/Adapter.cjs.map +1 -0
  99. package/lib/cjs/persistence/Context.cjs +10 -7
  100. package/lib/cjs/persistence/Context.cjs.map +1 -0
  101. package/lib/cjs/persistence/ContextLock.cjs +1 -0
  102. package/lib/cjs/persistence/ContextLock.cjs.map +1 -0
  103. package/lib/cjs/persistence/Dispatch.cjs +15 -14
  104. package/lib/cjs/persistence/Dispatch.cjs.map +1 -0
  105. package/lib/cjs/persistence/ObserverHandler.cjs +3 -2
  106. package/lib/cjs/persistence/ObserverHandler.cjs.map +1 -0
  107. package/lib/cjs/persistence/Sequence.cjs +19 -18
  108. package/lib/cjs/persistence/Sequence.cjs.map +1 -0
  109. package/lib/cjs/persistence/constants.cjs +14 -21
  110. package/lib/cjs/persistence/constants.cjs.map +1 -0
  111. package/lib/cjs/persistence/decorators.cjs +6 -5
  112. package/lib/cjs/persistence/decorators.cjs.map +1 -0
  113. package/lib/cjs/persistence/errors.cjs +1 -0
  114. package/lib/cjs/persistence/errors.cjs.map +1 -0
  115. package/lib/cjs/persistence/event-filters.cjs +5 -4
  116. package/lib/cjs/persistence/event-filters.cjs.map +1 -0
  117. package/lib/cjs/persistence/generators.cjs +1 -0
  118. package/lib/cjs/persistence/generators.cjs.map +1 -0
  119. package/lib/cjs/persistence/index.cjs +1 -0
  120. package/lib/cjs/persistence/index.cjs.map +1 -0
  121. package/lib/cjs/persistence/transactions.cjs +9 -8
  122. package/lib/cjs/persistence/transactions.cjs.map +1 -0
  123. package/lib/cjs/persistence/types.cjs +1 -0
  124. package/lib/cjs/persistence/types.cjs.map +1 -0
  125. package/lib/cjs/query/Condition.cjs +173 -165
  126. package/lib/cjs/query/Condition.cjs.map +1 -0
  127. package/lib/cjs/query/MethodQueryBuilder.cjs +37 -34
  128. package/lib/cjs/query/MethodQueryBuilder.cjs.map +1 -0
  129. package/lib/cjs/query/Paginator.cjs +28 -27
  130. package/lib/cjs/query/Paginator.cjs.map +1 -0
  131. package/lib/cjs/query/Statement.cjs +90 -84
  132. package/lib/cjs/query/Statement.cjs.map +1 -0
  133. package/lib/cjs/query/constants.cjs +5 -21
  134. package/lib/cjs/query/constants.cjs.map +1 -0
  135. package/lib/cjs/query/decorators.cjs +16 -15
  136. package/lib/cjs/query/decorators.cjs.map +1 -0
  137. package/lib/cjs/query/errors.cjs +1 -0
  138. package/lib/cjs/query/errors.cjs.map +1 -0
  139. package/lib/cjs/query/index.cjs +1 -0
  140. package/lib/cjs/query/index.cjs.map +1 -0
  141. package/lib/cjs/query/options.cjs +1 -0
  142. package/lib/cjs/query/options.cjs.map +1 -0
  143. package/lib/cjs/query/selectors.cjs +1 -0
  144. package/lib/cjs/query/selectors.cjs.map +1 -0
  145. package/lib/cjs/query/types.cjs +2 -13
  146. package/lib/cjs/query/types.cjs.map +1 -0
  147. package/lib/cjs/query/utils.cjs +10 -9
  148. package/lib/cjs/query/utils.cjs.map +1 -0
  149. package/lib/cjs/ram/RamAdapter.cjs +21 -20
  150. package/lib/cjs/ram/RamAdapter.cjs.map +1 -0
  151. package/lib/cjs/ram/RamPaginator.cjs +3 -2
  152. package/lib/cjs/ram/RamPaginator.cjs.map +1 -0
  153. package/lib/cjs/ram/RamStatement.cjs +38 -37
  154. package/lib/cjs/ram/RamStatement.cjs.map +1 -0
  155. package/lib/cjs/ram/constants.cjs +1 -0
  156. package/lib/cjs/ram/constants.cjs.map +1 -0
  157. package/lib/cjs/ram/handlers.cjs +3 -2
  158. package/lib/cjs/ram/handlers.cjs.map +1 -0
  159. package/lib/cjs/ram/index.cjs +8 -7
  160. package/lib/cjs/ram/index.cjs.map +1 -0
  161. package/lib/cjs/ram/types.cjs +1 -0
  162. package/lib/cjs/ram/types.cjs.map +1 -0
  163. package/lib/cjs/repository/Repository.cjs +85 -79
  164. package/lib/cjs/repository/Repository.cjs.map +1 -0
  165. package/lib/cjs/repository/constants.cjs +5 -20
  166. package/lib/cjs/repository/constants.cjs.map +1 -0
  167. package/lib/cjs/repository/decorators.cjs +7 -6
  168. package/lib/cjs/repository/decorators.cjs.map +1 -0
  169. package/lib/cjs/repository/errors.cjs +1 -0
  170. package/lib/cjs/repository/errors.cjs.map +1 -0
  171. package/lib/cjs/repository/index.cjs +1 -0
  172. package/lib/cjs/repository/index.cjs.map +1 -0
  173. package/lib/cjs/repository/injectables.cjs +14 -13
  174. package/lib/cjs/repository/injectables.cjs.map +1 -0
  175. package/lib/cjs/repository/types.cjs +1 -0
  176. package/lib/cjs/repository/types.cjs.map +1 -0
  177. package/lib/cjs/repository/utils.cjs +3 -2
  178. package/lib/cjs/repository/utils.cjs.map +1 -0
  179. package/lib/cjs/services/ModelService.cjs +36 -30
  180. package/lib/cjs/services/ModelService.cjs.map +1 -0
  181. package/lib/cjs/services/PersistenceService.cjs +9 -8
  182. package/lib/cjs/services/PersistenceService.cjs.map +1 -0
  183. package/lib/cjs/services/index.cjs +1 -0
  184. package/lib/cjs/services/index.cjs.map +1 -0
  185. package/lib/cjs/services/services.cjs +37 -31
  186. package/lib/cjs/services/services.cjs.map +1 -0
  187. package/lib/cjs/tasks/CleanUpTask.cjs +30 -24
  188. package/lib/cjs/tasks/CleanUpTask.cjs.map +1 -0
  189. package/lib/cjs/tasks/TaskContext.cjs +16 -15
  190. package/lib/cjs/tasks/TaskContext.cjs.map +1 -0
  191. package/lib/cjs/tasks/TaskEngine.cjs +112 -111
  192. package/lib/cjs/tasks/TaskEngine.cjs.map +1 -0
  193. package/lib/cjs/tasks/TaskErrors.cjs +1 -0
  194. package/lib/cjs/tasks/TaskErrors.cjs.map +1 -0
  195. package/lib/cjs/tasks/TaskEventBus.cjs +7 -6
  196. package/lib/cjs/tasks/TaskEventBus.cjs.map +1 -0
  197. package/lib/cjs/tasks/TaskEventService.cjs +8 -7
  198. package/lib/cjs/tasks/TaskEventService.cjs.map +1 -0
  199. package/lib/cjs/tasks/TaskHandler.cjs +5 -4
  200. package/lib/cjs/tasks/TaskHandler.cjs.map +1 -0
  201. package/lib/cjs/tasks/TaskHandlerRegistry.cjs +1 -0
  202. package/lib/cjs/tasks/TaskHandlerRegistry.cjs.map +1 -0
  203. package/lib/cjs/tasks/TaskService.cjs +43 -37
  204. package/lib/cjs/tasks/TaskService.cjs.map +1 -0
  205. package/lib/cjs/tasks/TaskStateChangeError.cjs +1 -0
  206. package/lib/cjs/tasks/TaskStateChangeError.cjs.map +1 -0
  207. package/lib/cjs/tasks/TaskTracker.cjs +62 -61
  208. package/lib/cjs/tasks/TaskTracker.cjs.map +1 -0
  209. package/lib/cjs/tasks/builder.cjs +30 -24
  210. package/lib/cjs/tasks/builder.cjs.map +1 -0
  211. package/lib/cjs/tasks/constants.cjs +6 -10
  212. package/lib/cjs/tasks/constants.cjs.map +1 -0
  213. package/lib/cjs/tasks/decorators.cjs +5 -4
  214. package/lib/cjs/tasks/decorators.cjs.map +1 -0
  215. package/lib/cjs/tasks/index.cjs +6 -5
  216. package/lib/cjs/tasks/index.cjs.map +1 -0
  217. package/lib/cjs/tasks/logging.cjs +12 -11
  218. package/lib/cjs/tasks/logging.cjs.map +1 -0
  219. package/lib/cjs/tasks/models/TaskBackoffModel.cjs +16 -10
  220. package/lib/cjs/tasks/models/TaskBackoffModel.cjs.map +1 -0
  221. package/lib/cjs/tasks/models/TaskErrorModel.cjs +11 -5
  222. package/lib/cjs/tasks/models/TaskErrorModel.cjs.map +1 -0
  223. package/lib/cjs/tasks/models/TaskEventModel.cjs +29 -23
  224. package/lib/cjs/tasks/models/TaskEventModel.cjs.map +1 -0
  225. package/lib/cjs/tasks/models/TaskIOSerializer.cjs +4 -3
  226. package/lib/cjs/tasks/models/TaskIOSerializer.cjs.map +1 -0
  227. package/lib/cjs/tasks/models/TaskLogEntryModel.cjs +11 -5
  228. package/lib/cjs/tasks/models/TaskLogEntryModel.cjs.map +1 -0
  229. package/lib/cjs/tasks/models/TaskModel.cjs +72 -66
  230. package/lib/cjs/tasks/models/TaskModel.cjs.map +1 -0
  231. package/lib/cjs/tasks/models/TaskStepResultModel.cjs +14 -8
  232. package/lib/cjs/tasks/models/TaskStepResultModel.cjs.map +1 -0
  233. package/lib/cjs/tasks/models/TaskStepSpecModel.cjs +11 -5
  234. package/lib/cjs/tasks/models/TaskStepSpecModel.cjs.map +1 -0
  235. package/lib/cjs/tasks/models/index.cjs +1 -0
  236. package/lib/cjs/tasks/models/index.cjs.map +1 -0
  237. package/lib/cjs/tasks/types.cjs +1 -0
  238. package/lib/cjs/tasks/types.cjs.map +1 -0
  239. package/lib/cjs/tasks/utils.cjs +6 -5
  240. package/lib/cjs/tasks/utils.cjs.map +1 -0
  241. package/lib/cjs/utils/ContextualLoggedClass.cjs +5 -4
  242. package/lib/cjs/utils/ContextualLoggedClass.cjs.map +1 -0
  243. package/lib/cjs/utils/decorators.cjs +9 -8
  244. package/lib/cjs/utils/decorators.cjs.map +1 -0
  245. package/lib/cjs/utils/errors.cjs +1 -0
  246. package/lib/cjs/utils/errors.cjs.map +1 -0
  247. package/lib/cjs/utils/index.cjs +1 -0
  248. package/lib/cjs/utils/index.cjs.map +1 -0
  249. package/lib/cjs/utils/throttling.cjs +4 -3
  250. package/lib/cjs/utils/throttling.cjs.map +1 -0
  251. package/lib/cjs/utils/types.cjs +1 -0
  252. package/lib/cjs/utils/types.cjs.map +1 -0
  253. package/lib/cjs/utils/utils.cjs +3 -2
  254. package/lib/cjs/utils/utils.cjs.map +1 -0
  255. package/lib/cjs/workers/TaskEngine.cjs +30 -29
  256. package/lib/cjs/workers/TaskEngine.cjs.map +1 -0
  257. package/lib/cjs/workers/WorkThreadEnvironment.cjs +1 -0
  258. package/lib/cjs/workers/WorkThreadEnvironment.cjs.map +1 -0
  259. package/lib/cjs/workers/index.cjs +1 -0
  260. package/lib/cjs/workers/index.cjs.map +1 -0
  261. package/lib/cjs/workers/messages.cjs +1 -0
  262. package/lib/cjs/workers/messages.cjs.map +1 -0
  263. package/lib/cjs/workers/types.cjs +1 -0
  264. package/lib/cjs/workers/types.cjs.map +1 -0
  265. package/lib/cjs/workers/workerThread.cjs +18 -17
  266. package/lib/cjs/workers/workerThread.cjs.map +1 -0
  267. package/lib/esm/index.js +1 -1
  268. package/lib/types/auth/constants.d.cts +5 -0
  269. package/lib/types/auth/constants.d.mts +5 -0
  270. package/lib/types/auth/decorators.d.cts +5 -0
  271. package/lib/types/auth/decorators.d.mts +5 -0
  272. package/lib/types/auth/index.d.cts +2 -0
  273. package/lib/types/auth/index.d.mts +2 -0
  274. package/lib/types/fs/FilesystemAdapter.d.cts +70 -0
  275. package/lib/types/fs/FilesystemAdapter.d.mts +70 -0
  276. package/lib/types/fs/FsDispatch.d.cts +7 -0
  277. package/lib/types/fs/FsDispatch.d.mts +7 -0
  278. package/lib/types/fs/helpers.d.cts +17 -0
  279. package/lib/types/fs/helpers.d.mts +17 -0
  280. package/lib/types/fs/index.d.cts +4 -0
  281. package/lib/types/fs/index.d.mts +4 -0
  282. package/lib/types/fs/indexStore.d.cts +28 -0
  283. package/lib/types/fs/indexStore.d.mts +28 -0
  284. package/lib/types/fs/locks/FilesystemLock.d.cts +13 -0
  285. package/lib/types/fs/locks/FilesystemLock.d.mts +13 -0
  286. package/lib/types/fs/locks/FilesystemMultiLock.d.cts +8 -0
  287. package/lib/types/fs/locks/FilesystemMultiLock.d.mts +8 -0
  288. package/lib/types/fs/types.d.cts +40 -0
  289. package/lib/types/fs/types.d.mts +40 -0
  290. package/lib/types/identity/decorators.d.cts +72 -0
  291. package/lib/types/identity/decorators.d.mts +72 -0
  292. package/lib/types/identity/index.d.cts +6 -0
  293. package/lib/types/identity/index.d.mts +6 -0
  294. package/lib/types/index.d.cts +34 -0
  295. package/lib/types/index.d.mts +34 -0
  296. package/lib/types/index.d.ts +1 -1
  297. package/lib/types/interfaces/ContextuallyLogged.d.cts +8 -0
  298. package/lib/types/interfaces/ContextuallyLogged.d.mts +8 -0
  299. package/lib/types/interfaces/ErrorParser.d.cts +16 -0
  300. package/lib/types/interfaces/ErrorParser.d.mts +16 -0
  301. package/lib/types/interfaces/Executor.d.cts +16 -0
  302. package/lib/types/interfaces/Executor.d.mts +16 -0
  303. package/lib/types/interfaces/Observable.d.cts +33 -0
  304. package/lib/types/interfaces/Observable.d.mts +33 -0
  305. package/lib/types/interfaces/Observer.d.cts +15 -0
  306. package/lib/types/interfaces/Observer.d.mts +15 -0
  307. package/lib/types/interfaces/Paginatable.d.cts +20 -0
  308. package/lib/types/interfaces/Paginatable.d.mts +20 -0
  309. package/lib/types/interfaces/Queriable.d.cts +47 -0
  310. package/lib/types/interfaces/Queriable.d.mts +47 -0
  311. package/lib/types/interfaces/RawExecutor.d.cts +28 -0
  312. package/lib/types/interfaces/RawExecutor.d.mts +28 -0
  313. package/lib/types/interfaces/SequenceOptions.d.cts +79 -0
  314. package/lib/types/interfaces/SequenceOptions.d.mts +79 -0
  315. package/lib/types/interfaces/index.d.cts +12 -0
  316. package/lib/types/interfaces/index.d.mts +12 -0
  317. package/lib/types/migrations/Migration.d.cts +19 -0
  318. package/lib/types/migrations/Migration.d.mts +19 -0
  319. package/lib/types/migrations/MigrationService.d.cts +63 -0
  320. package/lib/types/migrations/MigrationService.d.mts +63 -0
  321. package/lib/types/migrations/MigrationTaskBuilder.d.cts +10 -0
  322. package/lib/types/migrations/MigrationTaskBuilder.d.mts +10 -0
  323. package/lib/types/migrations/MigrationTasks.d.cts +9 -0
  324. package/lib/types/migrations/MigrationTasks.d.mts +9 -0
  325. package/lib/types/migrations/MigrationVersioning.d.cts +7 -0
  326. package/lib/types/migrations/MigrationVersioning.d.mts +7 -0
  327. package/lib/types/migrations/SemverMigrationVersioning.d.cts +10 -0
  328. package/lib/types/migrations/SemverMigrationVersioning.d.mts +10 -0
  329. package/lib/types/migrations/StandardMigrationVersioning.d.cts +12 -0
  330. package/lib/types/migrations/StandardMigrationVersioning.d.mts +12 -0
  331. package/lib/types/migrations/constants.d.cts +2 -0
  332. package/lib/types/migrations/constants.d.mts +2 -0
  333. package/lib/types/migrations/decorators.d.cts +12 -0
  334. package/lib/types/migrations/decorators.d.mts +12 -0
  335. package/lib/types/migrations/index.d.cts +15 -0
  336. package/lib/types/migrations/index.d.mts +15 -0
  337. package/lib/types/migrations/types.d.cts +46 -0
  338. package/lib/types/migrations/types.d.mts +46 -0
  339. package/lib/types/model/BaseModel.d.cts +37 -0
  340. package/lib/types/model/BaseModel.d.mts +37 -0
  341. package/lib/types/model/SequenceModel.d.cts +32 -0
  342. package/lib/types/model/SequenceModel.d.mts +32 -0
  343. package/lib/types/model/construction.d.cts +455 -0
  344. package/lib/types/model/construction.d.mts +455 -0
  345. package/lib/types/model/decorators.d.cts +237 -0
  346. package/lib/types/model/decorators.d.mts +237 -0
  347. package/lib/types/model/index.d.cts +11 -0
  348. package/lib/types/model/index.d.mts +11 -0
  349. package/lib/types/model/indexing.d.cts +20 -0
  350. package/lib/types/model/indexing.d.mts +20 -0
  351. package/lib/types/model/types.d.cts +60 -0
  352. package/lib/types/model/types.d.mts +60 -0
  353. package/lib/types/overrides/Metadata.d.cts +22 -0
  354. package/lib/types/overrides/Metadata.d.mts +22 -0
  355. package/lib/types/overrides/Model.d.cts +94 -0
  356. package/lib/types/overrides/Model.d.mts +94 -0
  357. package/lib/types/overrides/ModelBuilder.d.cts +31 -0
  358. package/lib/types/overrides/ModelBuilder.d.mts +31 -0
  359. package/lib/types/overrides/index.d.cts +11 -0
  360. package/lib/types/overrides/index.d.mts +11 -0
  361. package/lib/types/overrides/injectables.d.cts +10 -0
  362. package/lib/types/overrides/injectables.d.mts +10 -0
  363. package/lib/types/overrides/overrides.d.cts +1 -0
  364. package/lib/types/overrides/overrides.d.mts +1 -0
  365. package/lib/types/persistence/Adapter.d.cts +469 -0
  366. package/lib/types/persistence/Adapter.d.mts +469 -0
  367. package/lib/types/persistence/Context.d.cts +16 -0
  368. package/lib/types/persistence/Context.d.mts +16 -0
  369. package/lib/types/persistence/ContextLock.d.cts +18 -0
  370. package/lib/types/persistence/ContextLock.d.mts +18 -0
  371. package/lib/types/persistence/Dispatch.d.cts +128 -0
  372. package/lib/types/persistence/Dispatch.d.mts +128 -0
  373. package/lib/types/persistence/ObserverHandler.d.cts +111 -0
  374. package/lib/types/persistence/ObserverHandler.d.mts +111 -0
  375. package/lib/types/persistence/Sequence.d.cts +126 -0
  376. package/lib/types/persistence/Sequence.d.mts +126 -0
  377. package/lib/types/persistence/constants.d.cts +74 -0
  378. package/lib/types/persistence/constants.d.mts +74 -0
  379. package/lib/types/persistence/decorators.d.cts +28 -0
  380. package/lib/types/persistence/decorators.d.mts +28 -0
  381. package/lib/types/persistence/errors.d.cts +33 -0
  382. package/lib/types/persistence/errors.d.mts +33 -0
  383. package/lib/types/persistence/event-filters.d.cts +20 -0
  384. package/lib/types/persistence/event-filters.d.mts +20 -0
  385. package/lib/types/persistence/generators.d.cts +14 -0
  386. package/lib/types/persistence/generators.d.mts +14 -0
  387. package/lib/types/persistence/index.d.cts +18 -0
  388. package/lib/types/persistence/index.d.mts +18 -0
  389. package/lib/types/persistence/transactions.d.cts +4 -0
  390. package/lib/types/persistence/transactions.d.mts +4 -0
  391. package/lib/types/persistence/types.d.cts +86 -0
  392. package/lib/types/persistence/types.d.mts +86 -0
  393. package/lib/types/query/Condition.d.cts +131 -0
  394. package/lib/types/query/Condition.d.mts +131 -0
  395. package/lib/types/query/MethodQueryBuilder.d.cts +185 -0
  396. package/lib/types/query/MethodQueryBuilder.d.mts +185 -0
  397. package/lib/types/query/Paginator.d.cts +105 -0
  398. package/lib/types/query/Paginator.d.mts +105 -0
  399. package/lib/types/query/Statement.d.cts +136 -0
  400. package/lib/types/query/Statement.d.mts +136 -0
  401. package/lib/types/query/constants.d.cts +69 -0
  402. package/lib/types/query/constants.d.mts +69 -0
  403. package/lib/types/query/decorators.d.cts +8 -0
  404. package/lib/types/query/decorators.d.mts +8 -0
  405. package/lib/types/query/errors.d.cts +21 -0
  406. package/lib/types/query/errors.d.mts +21 -0
  407. package/lib/types/query/index.d.cts +16 -0
  408. package/lib/types/query/index.d.mts +16 -0
  409. package/lib/types/query/options.d.cts +393 -0
  410. package/lib/types/query/options.d.mts +393 -0
  411. package/lib/types/query/selectors.d.cts +39 -0
  412. package/lib/types/query/selectors.d.mts +39 -0
  413. package/lib/types/query/types.d.cts +158 -0
  414. package/lib/types/query/types.d.mts +158 -0
  415. package/lib/types/query/utils.d.cts +40 -0
  416. package/lib/types/query/utils.d.mts +40 -0
  417. package/lib/types/ram/RamAdapter.d.cts +341 -0
  418. package/lib/types/ram/RamAdapter.d.mts +341 -0
  419. package/lib/types/ram/RamPaginator.d.cts +54 -0
  420. package/lib/types/ram/RamPaginator.d.mts +54 -0
  421. package/lib/types/ram/RamStatement.d.cts +92 -0
  422. package/lib/types/ram/RamStatement.d.mts +92 -0
  423. package/lib/types/ram/constants.d.cts +8 -0
  424. package/lib/types/ram/constants.d.mts +8 -0
  425. package/lib/types/ram/handlers.d.cts +24 -0
  426. package/lib/types/ram/handlers.d.mts +24 -0
  427. package/lib/types/ram/index.d.cts +12 -0
  428. package/lib/types/ram/index.d.mts +12 -0
  429. package/lib/types/ram/types.d.cts +50 -0
  430. package/lib/types/ram/types.d.mts +50 -0
  431. package/lib/types/repository/Repository.d.cts +501 -0
  432. package/lib/types/repository/Repository.d.mts +501 -0
  433. package/lib/types/repository/constants.d.cts +36 -0
  434. package/lib/types/repository/constants.d.mts +36 -0
  435. package/lib/types/repository/decorators.d.cts +30 -0
  436. package/lib/types/repository/decorators.d.mts +30 -0
  437. package/lib/types/repository/errors.d.cts +19 -0
  438. package/lib/types/repository/errors.d.mts +19 -0
  439. package/lib/types/repository/index.d.cts +12 -0
  440. package/lib/types/repository/index.d.mts +12 -0
  441. package/lib/types/repository/injectables.d.cts +95 -0
  442. package/lib/types/repository/injectables.d.mts +95 -0
  443. package/lib/types/repository/types.d.cts +28 -0
  444. package/lib/types/repository/types.d.mts +28 -0
  445. package/lib/types/repository/utils.d.cts +36 -0
  446. package/lib/types/repository/utils.d.mts +36 -0
  447. package/lib/types/services/ModelService.d.cts +45 -0
  448. package/lib/types/services/ModelService.d.mts +45 -0
  449. package/lib/types/services/PersistenceService.d.cts +17 -0
  450. package/lib/types/services/PersistenceService.d.mts +17 -0
  451. package/lib/types/services/index.d.cts +8 -0
  452. package/lib/types/services/index.d.mts +8 -0
  453. package/lib/types/services/services.d.cts +96 -0
  454. package/lib/types/services/services.d.mts +96 -0
  455. package/lib/types/tasks/CleanUpTask.d.cts +15 -0
  456. package/lib/types/tasks/CleanUpTask.d.mts +15 -0
  457. package/lib/types/tasks/TaskContext.d.cts +30 -0
  458. package/lib/types/tasks/TaskContext.d.mts +30 -0
  459. package/lib/types/tasks/TaskEngine.d.cts +97 -0
  460. package/lib/types/tasks/TaskEngine.d.mts +97 -0
  461. package/lib/types/tasks/TaskErrors.d.cts +65 -0
  462. package/lib/types/tasks/TaskErrors.d.mts +65 -0
  463. package/lib/types/tasks/TaskEventBus.d.cts +17 -0
  464. package/lib/types/tasks/TaskEventBus.d.mts +17 -0
  465. package/lib/types/tasks/TaskEventService.d.cts +7 -0
  466. package/lib/types/tasks/TaskEventService.d.mts +7 -0
  467. package/lib/types/tasks/TaskHandler.d.cts +12 -0
  468. package/lib/types/tasks/TaskHandler.d.mts +12 -0
  469. package/lib/types/tasks/TaskHandlerRegistry.d.cts +8 -0
  470. package/lib/types/tasks/TaskHandlerRegistry.d.mts +8 -0
  471. package/lib/types/tasks/TaskService.d.cts +65 -0
  472. package/lib/types/tasks/TaskService.d.mts +65 -0
  473. package/lib/types/tasks/TaskStateChangeError.d.cts +11 -0
  474. package/lib/types/tasks/TaskStateChangeError.d.mts +11 -0
  475. package/lib/types/tasks/TaskTracker.d.cts +47 -0
  476. package/lib/types/tasks/TaskTracker.d.mts +47 -0
  477. package/lib/types/tasks/builder.d.cts +72 -0
  478. package/lib/types/tasks/builder.d.mts +72 -0
  479. package/lib/types/tasks/constants.d.cts +31 -0
  480. package/lib/types/tasks/constants.d.mts +31 -0
  481. package/lib/types/tasks/decorators.d.cts +4 -0
  482. package/lib/types/tasks/decorators.d.mts +4 -0
  483. package/lib/types/tasks/index.d.cts +23 -0
  484. package/lib/types/tasks/index.d.mts +23 -0
  485. package/lib/types/tasks/logging.d.cts +31 -0
  486. package/lib/types/tasks/logging.d.mts +31 -0
  487. package/lib/types/tasks/models/TaskBackoffModel.d.cts +9 -0
  488. package/lib/types/tasks/models/TaskBackoffModel.d.mts +9 -0
  489. package/lib/types/tasks/models/TaskErrorModel.d.cts +8 -0
  490. package/lib/types/tasks/models/TaskErrorModel.d.mts +8 -0
  491. package/lib/types/tasks/models/TaskEventModel.d.cts +11 -0
  492. package/lib/types/tasks/models/TaskEventModel.d.mts +11 -0
  493. package/lib/types/tasks/models/TaskIOSerializer.d.cts +33 -0
  494. package/lib/types/tasks/models/TaskIOSerializer.d.mts +33 -0
  495. package/lib/types/tasks/models/TaskLogEntryModel.d.cts +10 -0
  496. package/lib/types/tasks/models/TaskLogEntryModel.d.mts +10 -0
  497. package/lib/types/tasks/models/TaskModel.d.cts +43 -0
  498. package/lib/types/tasks/models/TaskModel.d.mts +43 -0
  499. package/lib/types/tasks/models/TaskStepResultModel.d.cts +9 -0
  500. package/lib/types/tasks/models/TaskStepResultModel.d.mts +9 -0
  501. package/lib/types/tasks/models/TaskStepSpecModel.d.cts +9 -0
  502. package/lib/types/tasks/models/TaskStepSpecModel.d.mts +9 -0
  503. package/lib/types/tasks/models/index.d.cts +8 -0
  504. package/lib/types/tasks/models/index.d.mts +8 -0
  505. package/lib/types/tasks/types.d.cts +71 -0
  506. package/lib/types/tasks/types.d.mts +71 -0
  507. package/lib/types/tasks/utils.d.cts +5 -0
  508. package/lib/types/tasks/utils.d.mts +5 -0
  509. package/lib/types/utils/ContextualLoggedClass.d.cts +37 -0
  510. package/lib/types/utils/ContextualLoggedClass.d.mts +37 -0
  511. package/lib/types/utils/decorators.d.cts +27 -0
  512. package/lib/types/utils/decorators.d.mts +27 -0
  513. package/lib/types/utils/errors.d.cts +56 -0
  514. package/lib/types/utils/errors.d.mts +56 -0
  515. package/lib/types/utils/index.d.cts +11 -0
  516. package/lib/types/utils/index.d.mts +11 -0
  517. package/lib/types/utils/throttling.d.cts +9 -0
  518. package/lib/types/utils/throttling.d.mts +9 -0
  519. package/lib/types/utils/types.d.cts +23 -0
  520. package/lib/types/utils/types.d.mts +23 -0
  521. package/lib/types/utils/utils.d.cts +22 -0
  522. package/lib/types/utils/utils.d.mts +22 -0
  523. package/lib/types/workers/TaskEngine.d.cts +40 -0
  524. package/lib/types/workers/TaskEngine.d.mts +40 -0
  525. package/lib/types/workers/WorkThreadEnvironment.d.cts +35 -0
  526. package/lib/types/workers/WorkThreadEnvironment.d.mts +35 -0
  527. package/lib/types/workers/index.d.cts +5 -0
  528. package/lib/types/workers/index.d.mts +5 -0
  529. package/lib/types/workers/messages.d.cts +69 -0
  530. package/lib/types/workers/messages.d.mts +69 -0
  531. package/lib/types/workers/types.d.cts +41 -0
  532. package/lib/types/workers/types.d.mts +41 -0
  533. package/lib/types/workers/workerThread.d.cts +1 -0
  534. package/lib/types/workers/workerThread.d.mts +1 -0
  535. package/package.json +4 -4
  536. package/lib/cjs/auth/constants.js.map +0 -1
  537. package/lib/cjs/auth/decorators.js.map +0 -1
  538. package/lib/cjs/auth/index.js.map +0 -1
  539. package/lib/cjs/fs/FilesystemAdapter.js.map +0 -1
  540. package/lib/cjs/fs/FsDispatch.js.map +0 -1
  541. package/lib/cjs/fs/helpers.js.map +0 -1
  542. package/lib/cjs/fs/index.js.map +0 -1
  543. package/lib/cjs/fs/indexStore.js.map +0 -1
  544. package/lib/cjs/fs/locks/FilesystemLock.js.map +0 -1
  545. package/lib/cjs/fs/locks/FilesystemMultiLock.js.map +0 -1
  546. package/lib/cjs/fs/types.js.map +0 -1
  547. package/lib/cjs/identity/decorators.js.map +0 -1
  548. package/lib/cjs/identity/index.js.map +0 -1
  549. package/lib/cjs/index.js.map +0 -1
  550. package/lib/cjs/interfaces/ContextuallyLogged.js.map +0 -1
  551. package/lib/cjs/interfaces/ErrorParser.js.map +0 -1
  552. package/lib/cjs/interfaces/Executor.js.map +0 -1
  553. package/lib/cjs/interfaces/Observable.js.map +0 -1
  554. package/lib/cjs/interfaces/Observer.js.map +0 -1
  555. package/lib/cjs/interfaces/Paginatable.js.map +0 -1
  556. package/lib/cjs/interfaces/Queriable.js.map +0 -1
  557. package/lib/cjs/interfaces/RawExecutor.js.map +0 -1
  558. package/lib/cjs/interfaces/SequenceOptions.js.map +0 -1
  559. package/lib/cjs/interfaces/index.js.map +0 -1
  560. package/lib/cjs/migrations/Migration.js.map +0 -1
  561. package/lib/cjs/migrations/MigrationService.js.map +0 -1
  562. package/lib/cjs/migrations/MigrationTaskBuilder.js.map +0 -1
  563. package/lib/cjs/migrations/MigrationTasks.js.map +0 -1
  564. package/lib/cjs/migrations/MigrationVersioning.js.map +0 -1
  565. package/lib/cjs/migrations/SemverMigrationVersioning.js.map +0 -1
  566. package/lib/cjs/migrations/StandardMigrationVersioning.js.map +0 -1
  567. package/lib/cjs/migrations/constants.js.map +0 -1
  568. package/lib/cjs/migrations/decorators.js.map +0 -1
  569. package/lib/cjs/migrations/index.js.map +0 -1
  570. package/lib/cjs/migrations/types.js.map +0 -1
  571. package/lib/cjs/model/BaseModel.js.map +0 -1
  572. package/lib/cjs/model/SequenceModel.js.map +0 -1
  573. package/lib/cjs/model/construction.js.map +0 -1
  574. package/lib/cjs/model/decorators.js.map +0 -1
  575. package/lib/cjs/model/index.js.map +0 -1
  576. package/lib/cjs/model/indexing.js.map +0 -1
  577. package/lib/cjs/model/types.js.map +0 -1
  578. package/lib/cjs/overrides/Metadata.js.map +0 -1
  579. package/lib/cjs/overrides/Model.js.map +0 -1
  580. package/lib/cjs/overrides/ModelBuilder.js.map +0 -1
  581. package/lib/cjs/overrides/index.js.map +0 -1
  582. package/lib/cjs/overrides/injectables.js.map +0 -1
  583. package/lib/cjs/overrides/overrides.js.map +0 -1
  584. package/lib/cjs/persistence/Adapter.js.map +0 -1
  585. package/lib/cjs/persistence/Context.js.map +0 -1
  586. package/lib/cjs/persistence/ContextLock.js.map +0 -1
  587. package/lib/cjs/persistence/Dispatch.js.map +0 -1
  588. package/lib/cjs/persistence/ObserverHandler.js.map +0 -1
  589. package/lib/cjs/persistence/Sequence.js.map +0 -1
  590. package/lib/cjs/persistence/constants.js.map +0 -1
  591. package/lib/cjs/persistence/decorators.js.map +0 -1
  592. package/lib/cjs/persistence/errors.js.map +0 -1
  593. package/lib/cjs/persistence/event-filters.js.map +0 -1
  594. package/lib/cjs/persistence/generators.js.map +0 -1
  595. package/lib/cjs/persistence/index.js.map +0 -1
  596. package/lib/cjs/persistence/transactions.js.map +0 -1
  597. package/lib/cjs/persistence/types.js.map +0 -1
  598. package/lib/cjs/query/Condition.js.map +0 -1
  599. package/lib/cjs/query/MethodQueryBuilder.js.map +0 -1
  600. package/lib/cjs/query/Paginator.js.map +0 -1
  601. package/lib/cjs/query/Statement.js.map +0 -1
  602. package/lib/cjs/query/constants.js.map +0 -1
  603. package/lib/cjs/query/decorators.js.map +0 -1
  604. package/lib/cjs/query/errors.js.map +0 -1
  605. package/lib/cjs/query/index.js.map +0 -1
  606. package/lib/cjs/query/options.js.map +0 -1
  607. package/lib/cjs/query/selectors.js.map +0 -1
  608. package/lib/cjs/query/types.js.map +0 -1
  609. package/lib/cjs/query/utils.js.map +0 -1
  610. package/lib/cjs/ram/RamAdapter.js.map +0 -1
  611. package/lib/cjs/ram/RamPaginator.js.map +0 -1
  612. package/lib/cjs/ram/RamStatement.js.map +0 -1
  613. package/lib/cjs/ram/constants.js.map +0 -1
  614. package/lib/cjs/ram/handlers.js.map +0 -1
  615. package/lib/cjs/ram/index.js.map +0 -1
  616. package/lib/cjs/ram/types.js.map +0 -1
  617. package/lib/cjs/repository/Repository.js.map +0 -1
  618. package/lib/cjs/repository/constants.js.map +0 -1
  619. package/lib/cjs/repository/decorators.js.map +0 -1
  620. package/lib/cjs/repository/errors.js.map +0 -1
  621. package/lib/cjs/repository/index.js.map +0 -1
  622. package/lib/cjs/repository/injectables.js.map +0 -1
  623. package/lib/cjs/repository/types.js.map +0 -1
  624. package/lib/cjs/repository/utils.js.map +0 -1
  625. package/lib/cjs/services/ModelService.js.map +0 -1
  626. package/lib/cjs/services/PersistenceService.js.map +0 -1
  627. package/lib/cjs/services/index.js.map +0 -1
  628. package/lib/cjs/services/services.js.map +0 -1
  629. package/lib/cjs/tasks/CleanUpTask.js.map +0 -1
  630. package/lib/cjs/tasks/TaskContext.js.map +0 -1
  631. package/lib/cjs/tasks/TaskEngine.js.map +0 -1
  632. package/lib/cjs/tasks/TaskErrors.js.map +0 -1
  633. package/lib/cjs/tasks/TaskEventBus.js.map +0 -1
  634. package/lib/cjs/tasks/TaskEventService.js.map +0 -1
  635. package/lib/cjs/tasks/TaskHandler.js.map +0 -1
  636. package/lib/cjs/tasks/TaskHandlerRegistry.js.map +0 -1
  637. package/lib/cjs/tasks/TaskService.js.map +0 -1
  638. package/lib/cjs/tasks/TaskStateChangeError.js.map +0 -1
  639. package/lib/cjs/tasks/TaskTracker.js.map +0 -1
  640. package/lib/cjs/tasks/builder.js.map +0 -1
  641. package/lib/cjs/tasks/constants.js.map +0 -1
  642. package/lib/cjs/tasks/decorators.js.map +0 -1
  643. package/lib/cjs/tasks/index.js.map +0 -1
  644. package/lib/cjs/tasks/logging.js.map +0 -1
  645. package/lib/cjs/tasks/models/TaskBackoffModel.js.map +0 -1
  646. package/lib/cjs/tasks/models/TaskErrorModel.js.map +0 -1
  647. package/lib/cjs/tasks/models/TaskEventModel.js.map +0 -1
  648. package/lib/cjs/tasks/models/TaskIOSerializer.js.map +0 -1
  649. package/lib/cjs/tasks/models/TaskLogEntryModel.js.map +0 -1
  650. package/lib/cjs/tasks/models/TaskModel.js.map +0 -1
  651. package/lib/cjs/tasks/models/TaskStepResultModel.js.map +0 -1
  652. package/lib/cjs/tasks/models/TaskStepSpecModel.js.map +0 -1
  653. package/lib/cjs/tasks/models/index.js.map +0 -1
  654. package/lib/cjs/tasks/types.js.map +0 -1
  655. package/lib/cjs/tasks/utils.js.map +0 -1
  656. package/lib/cjs/utils/ContextualLoggedClass.js.map +0 -1
  657. package/lib/cjs/utils/decorators.js.map +0 -1
  658. package/lib/cjs/utils/errors.js.map +0 -1
  659. package/lib/cjs/utils/index.js.map +0 -1
  660. package/lib/cjs/utils/throttling.js.map +0 -1
  661. package/lib/cjs/utils/types.js.map +0 -1
  662. package/lib/cjs/utils/utils.js.map +0 -1
  663. package/lib/cjs/workers/TaskEngine.js.map +0 -1
  664. package/lib/cjs/workers/WorkThreadEnvironment.js.map +0 -1
  665. package/lib/cjs/workers/index.js.map +0 -1
  666. package/lib/cjs/workers/messages.js.map +0 -1
  667. package/lib/cjs/workers/types.js.map +0 -1
  668. package/lib/cjs/workers/workerThread.js.map +0 -1
@@ -1,13 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Paginator = void 0;
4
- const errors_1 = require("./errors.cjs");
5
- const Context_1 = require("./../persistence/Context.cjs");
6
- const utils_1 = require("./../utils/utils.cjs");
7
- const errors_2 = require("./../persistence/errors.cjs");
4
+ const errors_js_1 = require("./errors.cjs");
5
+ const Context_js_1 = require("./../persistence/Context.cjs");
6
+ const utils_js_1 = require("./../utils/utils.cjs");
7
+ const errors_js_2 = require("./../persistence/errors.cjs");
8
8
  const logging_1 = require("@decaf-ts/logging");
9
- const constants_1 = require("./constants.cjs");
10
- const Repository_1 = require("./../repository/Repository.cjs");
9
+ const constants_js_1 = require("./constants.cjs");
10
+ const Repository_js_1 = require("./../repository/Repository.cjs");
11
11
  const db_decorators_1 = require("@decaf-ts/db-decorators");
12
12
  /**
13
13
  * @description Handles pagination for database queries
@@ -86,30 +86,30 @@ class Paginator extends logging_1.LoggedClass {
86
86
  this.query = query;
87
87
  this.size = size;
88
88
  this.clazz = clazz;
89
- (0, utils_1.prefixMethod)(this, this.page, this.pagePrefix, this.page.name);
89
+ (0, utils_js_1.prefixMethod)(this, this.page, this.pagePrefix, this.page.name);
90
90
  }
91
91
  isPreparedStatement() {
92
92
  const query = this.query;
93
93
  return (query.method &&
94
- query.method.match(new RegExp(`${constants_1.PreparedStatementKeys.FIND_BY}|${constants_1.PreparedStatementKeys.FIND_BY_PAGINATE}|${constants_1.PreparedStatementKeys.LIST_BY}|${constants_1.PreparedStatementKeys.PAGE_BY}|${constants_1.PreparedStatementKeys.FIND}`, "gi")));
94
+ query.method.match(new RegExp(`${constants_js_1.PreparedStatementKeys.FIND_BY}|${constants_js_1.PreparedStatementKeys.FIND_BY_PAGINATE}|${constants_js_1.PreparedStatementKeys.LIST_BY}|${constants_js_1.PreparedStatementKeys.PAGE_BY}|${constants_js_1.PreparedStatementKeys.FIND}`, "gi")));
95
95
  }
96
96
  async pagePrefix(page, ...args) {
97
- const { ctxArgs } = (await this.adapter["logCtx"]([this.clazz, ...args], constants_1.PreparedStatementKeys.PAGE_BY, true)).for(this.pagePrefix);
97
+ const { ctxArgs } = (await this.adapter["logCtx"]([this.clazz, ...args], constants_js_1.PreparedStatementKeys.PAGE_BY, true)).for(this.pagePrefix);
98
98
  ctxArgs.shift();
99
99
  return [page, ...ctxArgs];
100
100
  }
101
101
  async pagePrepared(page, bookmark, ...argz) {
102
- const { log, ctxArgs } = this.adapter["logCtx"](bookmark && !(bookmark instanceof Context_1.Context)
102
+ const { log, ctxArgs } = this.adapter["logCtx"](bookmark && !(bookmark instanceof Context_js_1.Context)
103
103
  ? [...argz]
104
104
  : [bookmark, ...argz], this.pagePrepared);
105
105
  log.debug(`Running paged prepared statement ${page} page${bookmark ? ` - bookmark ${bookmark}` : ""}`);
106
- if (bookmark && !(bookmark instanceof Context_1.Context))
106
+ if (bookmark && !(bookmark instanceof Context_js_1.Context))
107
107
  this._bookmark = bookmark;
108
- const repo = Repository_1.Repository.forModel(this.clazz, this.adapter.alias);
108
+ const repo = Repository_js_1.Repository.forModel(this.clazz, this.adapter.alias);
109
109
  const statement = this.query;
110
110
  const { method, args, params } = statement;
111
- if (method === constants_1.PreparedStatementKeys.FIND) {
112
- const preparedArgs = [constants_1.PreparedStatementKeys.PAGE, ...args];
111
+ if (method === constants_js_1.PreparedStatementKeys.FIND) {
112
+ const preparedArgs = [constants_js_1.PreparedStatementKeys.PAGE, ...args];
113
113
  const preparedParams = {
114
114
  limit: this.size,
115
115
  offset: page,
@@ -120,28 +120,28 @@ class Paginator extends logging_1.LoggedClass {
120
120
  return this.apply(result);
121
121
  }
122
122
  let pagedMethod;
123
- if (method === constants_1.PreparedStatementKeys.FIND_BY) {
124
- pagedMethod = constants_1.PreparedStatementKeys.FIND_BY_PAGINATE;
123
+ if (method === constants_js_1.PreparedStatementKeys.FIND_BY) {
124
+ pagedMethod = constants_js_1.PreparedStatementKeys.FIND_BY_PAGINATE;
125
125
  }
126
- else if (method.startsWith(constants_1.PreparedStatementKeys.FIND_BY)) {
127
- pagedMethod = method.replace(constants_1.PreparedStatementKeys.FIND_BY, constants_1.PreparedStatementKeys.PAGE_BY);
126
+ else if (method.startsWith(constants_js_1.PreparedStatementKeys.FIND_BY)) {
127
+ pagedMethod = method.replace(constants_js_1.PreparedStatementKeys.FIND_BY, constants_js_1.PreparedStatementKeys.PAGE_BY);
128
128
  }
129
- else if (method === constants_1.PreparedStatementKeys.LIST_BY) {
130
- pagedMethod = constants_1.PreparedStatementKeys.PAGE_BY;
129
+ else if (method === constants_js_1.PreparedStatementKeys.LIST_BY) {
130
+ pagedMethod = constants_js_1.PreparedStatementKeys.PAGE_BY;
131
131
  }
132
- else if (method === constants_1.PreparedStatementKeys.PAGE_BY ||
133
- method === constants_1.PreparedStatementKeys.FIND_BY_PAGINATE) {
132
+ else if (method === constants_js_1.PreparedStatementKeys.PAGE_BY ||
133
+ method === constants_js_1.PreparedStatementKeys.FIND_BY_PAGINATE) {
134
134
  pagedMethod = method;
135
135
  }
136
136
  if (!pagedMethod)
137
- throw new errors_2.UnsupportedError(`Method ${method} is not supported for pagination`);
137
+ throw new errors_js_2.UnsupportedError(`Method ${method} is not supported for pagination`);
138
138
  const preparedArgs = [pagedMethod, ...args];
139
139
  let preparedParams = {
140
140
  limit: this.size,
141
141
  offset: page,
142
142
  bookmark: this._bookmark,
143
143
  };
144
- if (pagedMethod === constants_1.PreparedStatementKeys.PAGE_BY &&
144
+ if (pagedMethod === constants_js_1.PreparedStatementKeys.PAGE_BY &&
145
145
  preparedArgs.length <= 2) {
146
146
  preparedArgs.push(params.direction);
147
147
  }
@@ -165,16 +165,16 @@ class Paginator extends logging_1.LoggedClass {
165
165
  }
166
166
  validatePage(page) {
167
167
  if (page < 1 || !Number.isInteger(page))
168
- throw new errors_1.PagingError("Page number cannot be under 1 and must be an integer");
168
+ throw new errors_js_1.PagingError("Page number cannot be under 1 and must be an integer");
169
169
  if (typeof this._totalPages !== "undefined" && page > this._totalPages)
170
- throw new errors_1.PagingError(`Only ${this._totalPages} are available. Cannot go to page ${page}`);
170
+ throw new errors_js_1.PagingError(`Only ${this._totalPages} are available. Cannot go to page ${page}`);
171
171
  return page;
172
172
  }
173
173
  async page(page = 1, bookmark, ...args) {
174
174
  const { ctxArgs } = this.adapter["logCtx"]([bookmark, ...args], this.page);
175
175
  if (this.isPreparedStatement())
176
176
  return (await this.pagePrepared(page, ...ctxArgs));
177
- throw new errors_2.UnsupportedError("Raw support not available without subclassing this");
177
+ throw new errors_js_2.UnsupportedError("Raw support not available without subclassing this");
178
178
  }
179
179
  serialize(data, toString = false) {
180
180
  const serialization = {
@@ -219,4 +219,5 @@ class Paginator extends logging_1.LoggedClass {
219
219
  }
220
220
  }
221
221
  exports.Paginator = Paginator;
222
+ //# sourceMappingURL=Paginator.js.map
222
223
  //# sourceMappingURL=Paginator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Paginator.js","sourceRoot":"","sources":["Paginator.js"],"names":[],"mappings":";;;AAAA,2CAA0C;AAC1C,4DAAsD;AACtD,kDAAmD;AACnD,0DAA8D;AAC9D,+CAAgD;AAChD,iDAAuD;AACvD,iEAA2D;AAC3D,2DAA6D;AAC7D;;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CAAC,WAAW,GAAG,GAAG,CAAC,KAAK,IAAI,IAAI,CAAC,WAAW,CAAC;QACjD,IAAI,CAAC,YAAY,GAAG,GAAG,CAAC,KAAK,IAAI,IAAI,CAAC,YAAY,CAAC;QACnD,IAAI,CAAC,SAAS,GAAG,GAAG,CAAC,QAAQ,CAAC;QAC9B,OAAO,GAAG,CAAC,IAAI,CAAC;IACpB,CAAC;IACD,MAAM,CAAC,WAAW,CAAC,GAAG;QAClB,IAAI,CAAC;YACD,OAAO,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QAC3B,CAAC;QACD,OAAO,CAAC,EAAE,CAAC;YACP,MAAM,IAAI,kCAAkB,CAAC,CAAC,CAAC,CAAC;QACpC,CAAC;IACL,CAAC;IACD,MAAM,CAAC,gBAAgB,CAAC,GAAG;QACvB,OAAO,CAAC,GAAG;YACP,OAAO,GAAG,KAAK,QAAQ;YACvB,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC;YACvB,OAAO,GAAG,CAAC,KAAK,KAAK,QAAQ;YAC7B,OAAO,GAAG,CAAC,OAAO,KAAK,QAAQ;YAC/B,OAAO,GAAG,CAAC,KAAK,KAAK,QAAQ,CAAC,CAAC;IACvC,CAAC;CACJ;AAxJD,8BAwJC;AACD,qCAAqC"}
@@ -1,29 +1,34 @@
1
1
  "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Statement = void 0;
2
4
  var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
5
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
7
+ r = Reflect.decorate(decorators, target, key, desc);
8
+ else
9
+ for (var i = decorators.length - 1; i >= 0; i--)
10
+ if (d = decorators[i])
11
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
12
  return c > 3 && r && Object.defineProperty(target, key, r), r;
7
13
  };
8
14
  var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
15
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
16
+ return Reflect.metadata(k, v);
10
17
  };
11
18
  var _a, _b, _c, _d, _e, _f, _g;
12
- Object.defineProperty(exports, "__esModule", { value: true });
13
- exports.Statement = void 0;
14
19
  const decorator_validation_1 = require("@decaf-ts/decorator-validation");
15
20
  const db_decorators_1 = require("@decaf-ts/db-decorators");
16
- const Condition_1 = require("./Condition.cjs");
21
+ const Condition_js_1 = require("./Condition.cjs");
17
22
  const db_decorators_2 = require("@decaf-ts/db-decorators");
18
23
  const logging_1 = require("@decaf-ts/logging");
19
- const constants_1 = require("./../persistence/constants.cjs");
20
- const errors_1 = require("./../persistence/errors.cjs");
21
- const errors_2 = require("./errors.cjs");
22
- const ContextualLoggedClass_1 = require("./../utils/ContextualLoggedClass.cjs");
23
- const types_1 = require("./types.cjs");
24
- const constants_2 = require("./constants.cjs");
25
- const constants_3 = require("./../repository/constants.cjs");
26
- const Repository_1 = require("./../repository/Repository.cjs");
24
+ const constants_js_1 = require("./../persistence/constants.cjs");
25
+ const errors_js_1 = require("./../persistence/errors.cjs");
26
+ const errors_js_2 = require("./errors.cjs");
27
+ const ContextualLoggedClass_js_1 = require("./../utils/ContextualLoggedClass.cjs");
28
+ const types_js_1 = require("./types.cjs");
29
+ const constants_js_2 = require("./constants.cjs");
30
+ const constants_js_3 = require("./../repository/constants.cjs");
31
+ const Repository_js_1 = require("./../repository/Repository.cjs");
27
32
  /**
28
33
  * @description Base class for database query statements
29
34
  * @summary Provides a foundation for building and executing database queries
@@ -75,7 +80,7 @@ const Repository_1 = require("./../repository/Repository.cjs");
75
80
  * Adapter-->>Statement: return processed results
76
81
  * Statement-->>Client: return final results
77
82
  */
78
- class Statement extends ContextualLoggedClass_1.ContextualLoggedClass {
83
+ class Statement extends ContextualLoggedClass_js_1.ContextualLoggedClass {
79
84
  constructor(adapter, overrides) {
80
85
  super();
81
86
  this.adapter = adapter;
@@ -89,8 +94,8 @@ class Statement extends ContextualLoggedClass_1.ContextualLoggedClass {
89
94
  }
90
95
  async executionPrefix(method, ...args) {
91
96
  const { ctx, ctxArgs, log } = (await this.adapter["logCtx"]([this.fromSelector, ...args], method.name === this.paginate.name
92
- ? constants_2.PreparedStatementKeys.PAGE_BY
93
- : constants_1.PersistenceKeys.QUERY, true, this.overrides || {})).for(method);
97
+ ? constants_js_2.PreparedStatementKeys.PAGE_BY
98
+ : constants_js_1.PersistenceKeys.QUERY, true, this.overrides || {})).for(method);
94
99
  ctxArgs.shift();
95
100
  const forceSimple = ctx.get("forcePrepareSimpleQueries");
96
101
  const forceComplex = ctx.get("forcePrepareComplexQueries");
@@ -130,7 +135,7 @@ class Statement extends ContextualLoggedClass_1.ContextualLoggedClass {
130
135
  }
131
136
  // Standalone distinct requires a selector
132
137
  if (!selector) {
133
- throw new errors_2.QueryError("distinct() requires a selector when not chained after count()");
138
+ throw new errors_js_2.QueryError("distinct() requires a selector when not chained after count()");
134
139
  }
135
140
  this.distinctSelector = selector;
136
141
  return this;
@@ -159,7 +164,7 @@ class Statement extends ContextualLoggedClass_1.ContextualLoggedClass {
159
164
  from(selector) {
160
165
  this.fromSelector = (typeof selector === "string" ? decorator_validation_1.Model.get(selector) : selector);
161
166
  if (!this.fromSelector)
162
- throw new errors_2.QueryError(`Could not find selector model: ${selector}`);
167
+ throw new errors_js_2.QueryError(`Could not find selector model: ${selector}`);
163
168
  return this;
164
169
  }
165
170
  where(condition) {
@@ -176,12 +181,12 @@ class Statement extends ContextualLoggedClass_1.ContextualLoggedClass {
176
181
  const isOrderingCriterion = Array.isArray(selectorOrAttribute) || typeof direction !== "undefined";
177
182
  if (isOrderingCriterion) {
178
183
  if (!this.orderBySelectors || !this.orderBySelectors.length)
179
- throw new errors_2.QueryError("thenBy requires orderBy to be called first");
184
+ throw new errors_js_2.QueryError("thenBy requires orderBy to be called first");
180
185
  this.orderBySelectors.push(this.normalizeOrderCriterion(selectorOrAttribute, direction));
181
186
  return this;
182
187
  }
183
188
  if (!this.groupBySelectors || !this.groupBySelectors.length)
184
- throw new errors_2.QueryError("groupBy must be called before chaining group selectors");
189
+ throw new errors_js_2.QueryError("groupBy must be called before chaining group selectors");
185
190
  this.groupBySelectors.push(selectorOrAttribute);
186
191
  return this;
187
192
  }
@@ -194,18 +199,18 @@ class Statement extends ContextualLoggedClass_1.ContextualLoggedClass {
194
199
  }
195
200
  normalizeOrderDirection(direction) {
196
201
  if (!direction) {
197
- throw new errors_2.QueryError("orderBy direction is required when specifying the attribute separately.");
202
+ throw new errors_js_2.QueryError("orderBy direction is required when specifying the attribute separately.");
198
203
  }
199
204
  const normalized = String(direction).toLowerCase();
200
- if (normalized === constants_3.OrderDirection.ASC)
201
- return constants_3.OrderDirection.ASC;
202
- if (normalized === constants_3.OrderDirection.DSC)
203
- return constants_3.OrderDirection.DSC;
204
- throw new errors_2.QueryError(`Invalid OrderBy direction ${direction}. Expected one of: ${Object.values(constants_3.OrderDirection).join(", ")}.`);
205
+ if (normalized === constants_js_3.OrderDirection.ASC)
206
+ return constants_js_3.OrderDirection.ASC;
207
+ if (normalized === constants_js_3.OrderDirection.DSC)
208
+ return constants_js_3.OrderDirection.DSC;
209
+ throw new errors_js_2.QueryError(`Invalid OrderBy direction ${direction}. Expected one of: ${Object.values(constants_js_3.OrderDirection).join(", ")}.`);
205
210
  }
206
211
  groupBy(selector) {
207
212
  if (this.orderBySelectors && this.orderBySelectors.length) {
208
- throw new errors_2.QueryError("groupBy must be called before orderBy.");
213
+ throw new errors_js_2.QueryError("groupBy must be called before orderBy.");
209
214
  }
210
215
  this.groupBySelectors = [selector];
211
216
  return this;
@@ -246,7 +251,7 @@ class Statement extends ContextualLoggedClass_1.ContextualLoggedClass {
246
251
  return results;
247
252
  }
248
253
  catch (e) {
249
- throw new errors_2.QueryError(e);
254
+ throw new errors_js_2.QueryError(e);
250
255
  }
251
256
  }
252
257
  revertGroupedResults(value, processor) {
@@ -261,7 +266,7 @@ class Statement extends ContextualLoggedClass_1.ContextualLoggedClass {
261
266
  return value;
262
267
  }
263
268
  async executePrepared(...argz) {
264
- const repo = Repository_1.Repository.forModel(this.fromSelector, this.adapter.alias);
269
+ const repo = Repository_js_1.Repository.forModel(this.fromSelector, this.adapter.alias);
265
270
  const { method, args, params } = this.prepared;
266
271
  return repo.statement(method, ...args, params, ...argz);
267
272
  }
@@ -269,7 +274,7 @@ class Statement extends ContextualLoggedClass_1.ContextualLoggedClass {
269
274
  const { ctx, ctxArgs } = this.logCtx(args, this.raw);
270
275
  const allowRawStatements = ctx.get("allowRawStatements");
271
276
  if (!allowRawStatements)
272
- throw new errors_1.UnsupportedError("Raw statements are not allowed in the current configuration");
277
+ throw new errors_js_1.UnsupportedError("Raw statements are not allowed in the current configuration");
273
278
  const results = await this.adapter.raw(rawInput, true, ...ctxArgs);
274
279
  if (this.hasAggregation()) {
275
280
  return results;
@@ -310,7 +315,7 @@ class Statement extends ContextualLoggedClass_1.ContextualLoggedClass {
310
315
  return value;
311
316
  }
312
317
  getRepository() {
313
- return Repository_1.Repository.forModel(this.fromSelector, this.adapter.alias);
318
+ return Repository_js_1.Repository.forModel(this.fromSelector, this.adapter.alias);
314
319
  }
315
320
  prepareCondition(condition, ctx) {
316
321
  // @ts-expect-error accessing protected properties
@@ -318,15 +323,15 @@ class Statement extends ContextualLoggedClass_1.ContextualLoggedClass {
318
323
  let { attr1, operator, comparison } = condition;
319
324
  const result = {};
320
325
  switch (operator) {
321
- case constants_2.GroupOperator.AND:
322
- case constants_2.GroupOperator.OR: {
326
+ case constants_js_2.GroupOperator.AND:
327
+ case constants_js_2.GroupOperator.OR: {
323
328
  let side1 = attr1, side2 = comparison;
324
329
  if (typeof attr1 !== "string") {
325
330
  const condition1 = this.prepareCondition(attr1, ctx);
326
331
  side1 = condition1.method;
327
332
  result.args = [...(result.args || []), ...(condition1.args || [])];
328
333
  }
329
- if (comparison instanceof Condition_1.Condition) {
334
+ if (comparison instanceof Condition_js_1.Condition) {
330
335
  const condition2 = this.prepareCondition(comparison, ctx);
331
336
  side2 = condition2.method;
332
337
  result.args = [...(result.args || []), ...(condition2.args || [])];
@@ -334,39 +339,39 @@ class Statement extends ContextualLoggedClass_1.ContextualLoggedClass {
334
339
  result.method = `${side1} ${operator.toLowerCase()} ${side2}`;
335
340
  break;
336
341
  }
337
- case constants_2.Operator.EQUAL:
342
+ case constants_js_2.Operator.EQUAL:
338
343
  result.method = attr1;
339
344
  result.args = [...(result.args || []), comparison];
340
345
  break;
341
- case constants_2.Operator.DIFFERENT:
346
+ case constants_js_2.Operator.DIFFERENT:
342
347
  result.method = `${attr1} diff`;
343
348
  result.args = [...(result.args || []), comparison];
344
349
  break;
345
- case constants_2.Operator.REGEXP:
350
+ case constants_js_2.Operator.REGEXP:
346
351
  result.method = `${attr1} matches`;
347
352
  result.args = [...(result.args || []), comparison];
348
353
  break;
349
- case constants_2.Operator.BIGGER:
354
+ case constants_js_2.Operator.BIGGER:
350
355
  result.method = `${attr1} bigger`;
351
356
  result.args = [...(result.args || []), comparison];
352
357
  break;
353
- case constants_2.Operator.BIGGER_EQ:
358
+ case constants_js_2.Operator.BIGGER_EQ:
354
359
  result.method = `${attr1} bigger than equal`;
355
360
  break;
356
- case constants_2.Operator.SMALLER:
361
+ case constants_js_2.Operator.SMALLER:
357
362
  result.method = `${attr1} less`;
358
363
  result.args = [...(result.args || []), comparison];
359
364
  break;
360
- case constants_2.Operator.SMALLER_EQ:
365
+ case constants_js_2.Operator.SMALLER_EQ:
361
366
  result.method = `${attr1} less than equal`;
362
367
  result.args = [...(result.args || []), comparison];
363
368
  break;
364
- case constants_2.Operator.IN:
369
+ case constants_js_2.Operator.IN:
365
370
  result.method = `${attr1} in`;
366
371
  result.args = [...(result.args || []), comparison];
367
372
  break;
368
373
  default:
369
- throw new errors_2.QueryError(`Unsupported operator ${operator}`);
374
+ throw new errors_js_2.QueryError(`Unsupported operator ${operator}`);
370
375
  }
371
376
  return result;
372
377
  }
@@ -377,7 +382,7 @@ class Statement extends ContextualLoggedClass_1.ContextualLoggedClass {
377
382
  const direction = this.getOrderDirection();
378
383
  return {
379
384
  class: this.fromSelector,
380
- method: constants_2.PreparedStatementKeys.FIND,
385
+ method: constants_js_2.PreparedStatementKeys.FIND,
381
386
  args: [defaultQuery.value, direction],
382
387
  params: {
383
388
  direction,
@@ -386,7 +391,7 @@ class Statement extends ContextualLoggedClass_1.ContextualLoggedClass {
386
391
  }
387
392
  // If there's a where condition with complex conditions (nested Conditions), can't squash
388
393
  if (this.whereCondition) {
389
- if (this.whereCondition["comparison"] instanceof Condition_1.Condition)
394
+ if (this.whereCondition["comparison"] instanceof Condition_js_1.Condition)
390
395
  return undefined;
391
396
  }
392
397
  // Try to squash simple aggregation queries without where conditions
@@ -396,7 +401,7 @@ class Statement extends ContextualLoggedClass_1.ContextualLoggedClass {
396
401
  !this.countDistinctSelector) {
397
402
  return {
398
403
  class: this.fromSelector,
399
- method: constants_2.PreparedStatementKeys.COUNT_OF,
404
+ method: constants_js_2.PreparedStatementKeys.COUNT_OF,
400
405
  args: this.countSelector !== null ? [this.countSelector] : [],
401
406
  params: {},
402
407
  };
@@ -405,7 +410,7 @@ class Statement extends ContextualLoggedClass_1.ContextualLoggedClass {
405
410
  if (this.maxSelector) {
406
411
  return {
407
412
  class: this.fromSelector,
408
- method: constants_2.PreparedStatementKeys.MAX_OF,
413
+ method: constants_js_2.PreparedStatementKeys.MAX_OF,
409
414
  args: [this.maxSelector],
410
415
  params: {},
411
416
  };
@@ -414,7 +419,7 @@ class Statement extends ContextualLoggedClass_1.ContextualLoggedClass {
414
419
  if (this.minSelector) {
415
420
  return {
416
421
  class: this.fromSelector,
417
- method: constants_2.PreparedStatementKeys.MIN_OF,
422
+ method: constants_js_2.PreparedStatementKeys.MIN_OF,
418
423
  args: [this.minSelector],
419
424
  params: {},
420
425
  };
@@ -423,7 +428,7 @@ class Statement extends ContextualLoggedClass_1.ContextualLoggedClass {
423
428
  if (this.avgSelector) {
424
429
  return {
425
430
  class: this.fromSelector,
426
- method: constants_2.PreparedStatementKeys.AVG_OF,
431
+ method: constants_js_2.PreparedStatementKeys.AVG_OF,
427
432
  args: [this.avgSelector],
428
433
  params: {},
429
434
  };
@@ -432,7 +437,7 @@ class Statement extends ContextualLoggedClass_1.ContextualLoggedClass {
432
437
  if (this.sumSelector) {
433
438
  return {
434
439
  class: this.fromSelector,
435
- method: constants_2.PreparedStatementKeys.SUM_OF,
440
+ method: constants_js_2.PreparedStatementKeys.SUM_OF,
436
441
  args: [this.sumSelector],
437
442
  params: {},
438
443
  };
@@ -441,7 +446,7 @@ class Statement extends ContextualLoggedClass_1.ContextualLoggedClass {
441
446
  if (this.distinctSelector) {
442
447
  return {
443
448
  class: this.fromSelector,
444
- method: constants_2.PreparedStatementKeys.DISTINCT_OF,
449
+ method: constants_js_2.PreparedStatementKeys.DISTINCT_OF,
445
450
  args: [this.distinctSelector],
446
451
  params: {},
447
452
  };
@@ -450,7 +455,7 @@ class Statement extends ContextualLoggedClass_1.ContextualLoggedClass {
450
455
  if (this.groupBySelectors?.length === 1) {
451
456
  return {
452
457
  class: this.fromSelector,
453
- method: constants_2.PreparedStatementKeys.GROUP_OF,
458
+ method: constants_js_2.PreparedStatementKeys.GROUP_OF,
454
459
  args: [this.groupBySelectors[0]],
455
460
  params: {},
456
461
  };
@@ -480,8 +485,8 @@ class Statement extends ContextualLoggedClass_1.ContextualLoggedClass {
480
485
  const order = this.orderBySelectors?.[0]
481
486
  ? this.orderBySelectors[0]
482
487
  : attrFromWhere
483
- ? [attrFromWhere, constants_3.OrderDirection.DSC]
484
- : [decorator_validation_1.Model.pk(this.fromSelector), constants_3.OrderDirection.DSC];
488
+ ? [attrFromWhere, constants_js_3.OrderDirection.DSC]
489
+ : [decorator_validation_1.Model.pk(this.fromSelector), constants_js_3.OrderDirection.DSC];
485
490
  const [attrFromOrderBy, sort] = order;
486
491
  const params = {
487
492
  direction: sort,
@@ -493,13 +498,13 @@ class Statement extends ContextualLoggedClass_1.ContextualLoggedClass {
493
498
  const squashed = {
494
499
  // listBy
495
500
  class: this.fromSelector,
496
- method: constants_2.PreparedStatementKeys.LIST_BY,
501
+ method: constants_js_2.PreparedStatementKeys.LIST_BY,
497
502
  args: [attrFromOrderBy],
498
503
  params: params,
499
504
  };
500
505
  if (attrFromWhere) {
501
506
  // findBy
502
- squashed.method = constants_2.PreparedStatementKeys.FIND_BY;
507
+ squashed.method = constants_js_2.PreparedStatementKeys.FIND_BY;
503
508
  squashed.args = [
504
509
  attrFromWhere,
505
510
  this.whereCondition["comparison"],
@@ -542,7 +547,7 @@ class Statement extends ContextualLoggedClass_1.ContextualLoggedClass {
542
547
  if (!condition)
543
548
  return undefined;
544
549
  const { attr1, operator, comparison } = condition;
545
- if (operator === constants_2.Operator.STARTS_WITH) {
550
+ if (operator === constants_js_2.Operator.STARTS_WITH) {
546
551
  if (typeof attr1 !== "string" || typeof comparison !== "string")
547
552
  return undefined;
548
553
  return {
@@ -550,11 +555,11 @@ class Statement extends ContextualLoggedClass_1.ContextualLoggedClass {
550
555
  value: comparison,
551
556
  };
552
557
  }
553
- if (operator === constants_2.GroupOperator.OR) {
554
- const left = attr1 instanceof Condition_1.Condition
558
+ if (operator === constants_js_2.GroupOperator.OR) {
559
+ const left = attr1 instanceof Condition_js_1.Condition
555
560
  ? this.collectStartsWithAttributes(attr1)
556
561
  : undefined;
557
- const right = comparison instanceof Condition_1.Condition
562
+ const right = comparison instanceof Condition_js_1.Condition
558
563
  ? this.collectStartsWithAttributes(comparison)
559
564
  : undefined;
560
565
  if (left && right && left.value === right.value) {
@@ -565,13 +570,13 @@ class Statement extends ContextualLoggedClass_1.ContextualLoggedClass {
565
570
  }
566
571
  return undefined;
567
572
  }
568
- if (operator === constants_2.GroupOperator.AND) {
569
- const left = attr1 instanceof Condition_1.Condition
573
+ if (operator === constants_js_2.GroupOperator.AND) {
574
+ const left = attr1 instanceof Condition_js_1.Condition
570
575
  ? this.collectStartsWithAttributes(attr1)
571
576
  : undefined;
572
577
  if (left)
573
578
  return left;
574
- const right = comparison instanceof Condition_1.Condition
579
+ const right = comparison instanceof Condition_js_1.Condition
575
580
  ? this.collectStartsWithAttributes(comparison)
576
581
  : undefined;
577
582
  return right;
@@ -579,12 +584,12 @@ class Statement extends ContextualLoggedClass_1.ContextualLoggedClass {
579
584
  return undefined;
580
585
  }
581
586
  getOrderDirection() {
582
- return (this.orderBySelectors?.[0]?.[1] ?? constants_3.OrderDirection.ASC);
587
+ return (this.orderBySelectors?.[0]?.[1] ?? constants_js_3.OrderDirection.ASC);
583
588
  }
584
589
  async prepare(ctx) {
585
590
  ctx =
586
591
  ctx ||
587
- (await this.adapter.context(constants_1.PersistenceKeys.QUERY, this.overrides || {}, this.fromSelector));
592
+ (await this.adapter.context(constants_js_1.PersistenceKeys.QUERY, this.overrides || {}, this.fromSelector));
588
593
  if (this.isSimpleQuery() &&
589
594
  ctx.get("forcePrepareSimpleQueries")) {
590
595
  const squashed = this.squash(ctx);
@@ -610,40 +615,40 @@ class Statement extends ContextualLoggedClass_1.ContextualLoggedClass {
610
615
  params,
611
616
  };
612
617
  // Determine the method prefix based on the query type
613
- let methodPrefix = types_1.QueryClause.FIND_BY;
618
+ let methodPrefix = types_js_1.QueryClause.FIND_BY;
614
619
  let selectorField;
615
620
  if (typeof this.countSelector !== "undefined") {
616
- methodPrefix = types_1.QueryClause.COUNT_BY;
621
+ methodPrefix = types_js_1.QueryClause.COUNT_BY;
617
622
  selectorField =
618
623
  this.countSelector !== null
619
624
  ? this.countSelector
620
625
  : undefined;
621
626
  }
622
627
  else if (this.sumSelector) {
623
- methodPrefix = types_1.QueryClause.SUM_BY;
628
+ methodPrefix = types_js_1.QueryClause.SUM_BY;
624
629
  selectorField = this.sumSelector;
625
630
  }
626
631
  else if (this.avgSelector) {
627
- methodPrefix = types_1.QueryClause.AVG_BY;
632
+ methodPrefix = types_js_1.QueryClause.AVG_BY;
628
633
  selectorField = this.avgSelector;
629
634
  }
630
635
  else if (this.minSelector) {
631
- methodPrefix = types_1.QueryClause.MIN_BY;
636
+ methodPrefix = types_js_1.QueryClause.MIN_BY;
632
637
  selectorField = this.minSelector;
633
638
  }
634
639
  else if (this.maxSelector) {
635
- methodPrefix = types_1.QueryClause.MAX_BY;
640
+ methodPrefix = types_js_1.QueryClause.MAX_BY;
636
641
  selectorField = this.maxSelector;
637
642
  }
638
643
  else if (this.distinctSelector) {
639
- methodPrefix = types_1.QueryClause.DISTINCT_BY;
644
+ methodPrefix = types_js_1.QueryClause.DISTINCT_BY;
640
645
  selectorField = this.distinctSelector;
641
646
  }
642
647
  else if (this.groupBySelectors?.length &&
643
648
  !this.selectSelector?.length &&
644
649
  !this.whereCondition) {
645
650
  // Group-only query (no select, no where)
646
- methodPrefix = types_1.QueryClause.GROUP_BY_PREFIX;
651
+ methodPrefix = types_js_1.QueryClause.GROUP_BY_PREFIX;
647
652
  selectorField = this.groupBySelectors[0];
648
653
  }
649
654
  // If there's a where condition or selectSelector, use findBy prefix even with groupBy
@@ -658,30 +663,30 @@ class Statement extends ContextualLoggedClass_1.ContextualLoggedClass {
658
663
  args.push(...parsed.args);
659
664
  }
660
665
  if (this.selectSelector)
661
- method.push(types_1.QueryClause.SELECT, this.selectSelector.join(` ${types_1.QueryClause.AND.toLowerCase()} `));
666
+ method.push(types_js_1.QueryClause.SELECT, this.selectSelector.join(` ${types_js_1.QueryClause.AND.toLowerCase()} `));
662
667
  if (this.orderBySelectors?.length) {
663
668
  const [primary, ...secondary] = this.orderBySelectors;
664
- method.push(types_1.QueryClause.ORDER_BY, primary[0]);
669
+ method.push(types_js_1.QueryClause.ORDER_BY, primary[0]);
665
670
  params.direction = primary[1];
666
671
  if (secondary.length) {
667
672
  params.order = this.orderBySelectors.map(([attr, dir]) => [attr, dir]);
668
673
  secondary.forEach(([attr]) => {
669
- method.push(types_1.QueryClause.THEN_BY, attr);
674
+ method.push(types_js_1.QueryClause.THEN_BY, attr);
670
675
  });
671
676
  }
672
677
  }
673
678
  // Handle groupBy for non-aggregation queries (already handled for group prefix)
674
679
  if (this.groupBySelectors?.length &&
675
- methodPrefix !== types_1.QueryClause.GROUP_BY_PREFIX) {
680
+ methodPrefix !== types_js_1.QueryClause.GROUP_BY_PREFIX) {
676
681
  const [primary, ...rest] = this.groupBySelectors;
677
- method.push(types_1.QueryClause.GROUP_BY, primary);
678
- rest.forEach((attr) => method.push(types_1.QueryClause.THEN_BY, attr));
682
+ method.push(types_js_1.QueryClause.GROUP_BY, primary);
683
+ rest.forEach((attr) => method.push(types_js_1.QueryClause.THEN_BY, attr));
679
684
  }
680
685
  else if (this.groupBySelectors?.length &&
681
- methodPrefix === types_1.QueryClause.GROUP_BY_PREFIX) {
686
+ methodPrefix === types_js_1.QueryClause.GROUP_BY_PREFIX) {
682
687
  // For group prefix, add additional group fields as ThenBy
683
688
  const rest = this.groupBySelectors.slice(1);
684
- rest.forEach((attr) => method.push(types_1.QueryClause.THEN_BY, attr));
689
+ rest.forEach((attr) => method.push(types_js_1.QueryClause.THEN_BY, attr));
685
690
  }
686
691
  if (this.limitSelector)
687
692
  params.limit = this.limitSelector;
@@ -728,7 +733,7 @@ class Statement extends ContextualLoggedClass_1.ContextualLoggedClass {
728
733
  return this.adapter.Paginator(this.prepared || this.build(), size, this.fromSelector);
729
734
  }
730
735
  catch (e) {
731
- throw new errors_2.QueryError(e);
736
+ throw new errors_js_2.QueryError(e);
732
737
  }
733
738
  }
734
739
  toString() {
@@ -787,7 +792,7 @@ __decorate([
787
792
  __decorate([
788
793
  (0, logging_1.final)(),
789
794
  __metadata("design:type", Function),
790
- __metadata("design:paramtypes", [Condition_1.Condition]),
795
+ __metadata("design:paramtypes", [Condition_js_1.Condition]),
791
796
  __metadata("design:returntype", Object)
792
797
  ], Statement.prototype, "where", null);
793
798
  __decorate([
@@ -826,4 +831,5 @@ __decorate([
826
831
  __metadata("design:paramtypes", [void 0]),
827
832
  __metadata("design:returntype", Promise)
828
833
  ], Statement.prototype, "execute", null);
834
+ //# sourceMappingURL=Statement.js.map
829
835
  //# sourceMappingURL=Statement.js.map