@revisium/core 0.9.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 (1856) hide show
  1. package/LICENSE +204 -0
  2. package/README.md +9 -0
  3. package/dist/package.json +125 -0
  4. package/dist/prisma/migrations/000000000000_squashed_migrations/migration.sql +298 -0
  5. package/dist/prisma/migrations/migration_lock.toml +3 -0
  6. package/dist/prisma/schema.prisma +208 -0
  7. package/dist/prisma/seed/__generated__/seed.d.ts +285 -0
  8. package/dist/prisma/seed/__generated__/seed.js +390 -0
  9. package/dist/prisma/seed/__generated__/seed.js.map +1 -0
  10. package/dist/prisma/seed/generateSeedApi.d.ts +1 -0
  11. package/dist/prisma/seed/generateSeedApi.js +17 -0
  12. package/dist/prisma/seed/generateSeedApi.js.map +1 -0
  13. package/dist/prisma/seed/loadFromSeedApi.d.ts +1 -0
  14. package/dist/prisma/seed/loadFromSeedApi.js +29 -0
  15. package/dist/prisma/seed/loadFromSeedApi.js.map +1 -0
  16. package/dist/prisma/seed/permissions/add-user.json +5 -0
  17. package/dist/prisma/seed/permissions/create-branch.json +5 -0
  18. package/dist/prisma/seed/permissions/create-endpoint.json +5 -0
  19. package/dist/prisma/seed/permissions/create-project.json +5 -0
  20. package/dist/prisma/seed/permissions/create-revision.json +5 -0
  21. package/dist/prisma/seed/permissions/create-row.json +5 -0
  22. package/dist/prisma/seed/permissions/create-table.json +5 -0
  23. package/dist/prisma/seed/permissions/create-user.json +5 -0
  24. package/dist/prisma/seed/permissions/delete-endpoint.json +5 -0
  25. package/dist/prisma/seed/permissions/delete-organization.json +5 -0
  26. package/dist/prisma/seed/permissions/delete-project.json +5 -0
  27. package/dist/prisma/seed/permissions/delete-row.json +5 -0
  28. package/dist/prisma/seed/permissions/delete-table.json +5 -0
  29. package/dist/prisma/seed/permissions/delete-user.json +5 -0
  30. package/dist/prisma/seed/permissions/read-organization.json +5 -0
  31. package/dist/prisma/seed/permissions/read-project-private.json +7 -0
  32. package/dist/prisma/seed/permissions/read-project-public.json +7 -0
  33. package/dist/prisma/seed/permissions/read-user.json +5 -0
  34. package/dist/prisma/seed/permissions/revert-revision.json +5 -0
  35. package/dist/prisma/seed/permissions/update-organization.json +5 -0
  36. package/dist/prisma/seed/permissions/update-project.json +5 -0
  37. package/dist/prisma/seed/permissions/update-row.json +5 -0
  38. package/dist/prisma/seed/permissions/update-table.json +5 -0
  39. package/dist/prisma/seed/roles/developer.json +21 -0
  40. package/dist/prisma/seed/roles/editor.json +15 -0
  41. package/dist/prisma/seed/roles/guest.json +8 -0
  42. package/dist/prisma/seed/roles/organizationAdmin.json +26 -0
  43. package/dist/prisma/seed/roles/organizationOwner.json +28 -0
  44. package/dist/prisma/seed/roles/reader.json +10 -0
  45. package/dist/prisma/seed/roles/systemAdmin.json +8 -0
  46. package/dist/prisma/seed/roles/systemFullApiRead.json +9 -0
  47. package/dist/prisma/seed/roles/systemUser.json +8 -0
  48. package/dist/prisma/seed.d.ts +1 -0
  49. package/dist/prisma/seed.js +140 -0
  50. package/dist/prisma/seed.js.map +1 -0
  51. package/dist/src/__tests__/utils/createMocks.d.ts +19 -0
  52. package/dist/src/__tests__/utils/createMocks.js +30 -0
  53. package/dist/src/__tests__/utils/createMocks.js.map +1 -0
  54. package/dist/src/__tests__/utils/implementIdService.d.ts +3 -0
  55. package/dist/src/__tests__/utils/implementIdService.js +9 -0
  56. package/dist/src/__tests__/utils/implementIdService.js.map +1 -0
  57. package/dist/src/__tests__/utils/rowMocks.d.ts +5 -0
  58. package/dist/src/__tests__/utils/rowMocks.js +12 -0
  59. package/dist/src/__tests__/utils/rowMocks.js.map +1 -0
  60. package/dist/src/__tests__/utils/schema/schema.mocks.d.ts +25 -0
  61. package/dist/src/__tests__/utils/schema/schema.mocks.js +61 -0
  62. package/dist/src/__tests__/utils/schema/schema.mocks.js.map +1 -0
  63. package/dist/src/app.module.d.ts +2 -0
  64. package/dist/src/app.module.js +21 -0
  65. package/dist/src/app.module.js.map +1 -0
  66. package/dist/src/auth/auth.module.d.ts +2 -0
  67. package/dist/src/auth/auth.module.js +51 -0
  68. package/dist/src/auth/auth.module.js.map +1 -0
  69. package/dist/src/auth/auth.service.d.ts +15 -0
  70. package/dist/src/auth/auth.service.js +42 -0
  71. package/dist/src/auth/auth.service.js.map +1 -0
  72. package/dist/src/auth/casl-ability.factory.d.ts +25 -0
  73. package/dist/src/auth/casl-ability.factory.js +45 -0
  74. package/dist/src/auth/casl-ability.factory.js.map +1 -0
  75. package/dist/src/auth/commands/handlers/check-organization-permission.handler.d.ts +12 -0
  76. package/dist/src/auth/commands/handlers/check-organization-permission.handler.js +67 -0
  77. package/dist/src/auth/commands/handlers/check-organization-permission.handler.js.map +1 -0
  78. package/dist/src/auth/commands/handlers/check-project-permission.handler.d.ts +17 -0
  79. package/dist/src/auth/commands/handlers/check-project-permission.handler.js +149 -0
  80. package/dist/src/auth/commands/handlers/check-project-permission.handler.js.map +1 -0
  81. package/dist/src/auth/commands/handlers/check-system-permission.handler.d.ts +11 -0
  82. package/dist/src/auth/commands/handlers/check-system-permission.handler.js +54 -0
  83. package/dist/src/auth/commands/handlers/check-system-permission.handler.js.map +1 -0
  84. package/dist/src/auth/commands/handlers/confirm-email-code.handler.d.ts +14 -0
  85. package/dist/src/auth/commands/handlers/confirm-email-code.handler.js +62 -0
  86. package/dist/src/auth/commands/handlers/confirm-email-code.handler.js.map +1 -0
  87. package/dist/src/auth/commands/handlers/create-user.handler.d.ts +15 -0
  88. package/dist/src/auth/commands/handlers/create-user.handler.js +103 -0
  89. package/dist/src/auth/commands/handlers/create-user.handler.js.map +1 -0
  90. package/dist/src/auth/commands/handlers/index.d.ts +9 -0
  91. package/dist/src/auth/commands/handlers/index.js +26 -0
  92. package/dist/src/auth/commands/handlers/index.js.map +1 -0
  93. package/dist/src/auth/commands/handlers/login-github.handler.d.ts +17 -0
  94. package/dist/src/auth/commands/handlers/login-github.handler.js +67 -0
  95. package/dist/src/auth/commands/handlers/login-github.handler.js.map +1 -0
  96. package/dist/src/auth/commands/handlers/login-google.handler.d.ts +17 -0
  97. package/dist/src/auth/commands/handlers/login-google.handler.js +67 -0
  98. package/dist/src/auth/commands/handlers/login-google.handler.js.map +1 -0
  99. package/dist/src/auth/commands/handlers/login.handler.d.ts +11 -0
  100. package/dist/src/auth/commands/handlers/login.handler.js +56 -0
  101. package/dist/src/auth/commands/handlers/login.handler.js.map +1 -0
  102. package/dist/src/auth/commands/handlers/sign-up.handler.d.ts +12 -0
  103. package/dist/src/auth/commands/handlers/sign-up.handler.js +48 -0
  104. package/dist/src/auth/commands/handlers/sign-up.handler.js.map +1 -0
  105. package/dist/src/auth/commands/impl/check-organization-permission.command.d.ts +13 -0
  106. package/dist/src/auth/commands/impl/check-organization-permission.command.js +10 -0
  107. package/dist/src/auth/commands/impl/check-organization-permission.command.js.map +1 -0
  108. package/dist/src/auth/commands/impl/check-project-permission.command.d.ts +25 -0
  109. package/dist/src/auth/commands/impl/check-project-permission.command.js +10 -0
  110. package/dist/src/auth/commands/impl/check-project-permission.command.js.map +1 -0
  111. package/dist/src/auth/commands/impl/check-system-permission.command.d.ts +12 -0
  112. package/dist/src/auth/commands/impl/check-system-permission.command.js +10 -0
  113. package/dist/src/auth/commands/impl/check-system-permission.command.js.map +1 -0
  114. package/dist/src/auth/commands/impl/confirm-email-code.command.d.ts +11 -0
  115. package/dist/src/auth/commands/impl/confirm-email-code.command.js +10 -0
  116. package/dist/src/auth/commands/impl/confirm-email-code.command.js.map +1 -0
  117. package/dist/src/auth/commands/impl/create-user.command.d.ts +20 -0
  118. package/dist/src/auth/commands/impl/create-user.command.js +10 -0
  119. package/dist/src/auth/commands/impl/create-user.command.js.map +1 -0
  120. package/dist/src/auth/commands/impl/index.d.ts +9 -0
  121. package/dist/src/auth/commands/impl/index.js +26 -0
  122. package/dist/src/auth/commands/impl/index.js.map +1 -0
  123. package/dist/src/auth/commands/impl/login-github.command.d.ts +11 -0
  124. package/dist/src/auth/commands/impl/login-github.command.js +10 -0
  125. package/dist/src/auth/commands/impl/login-github.command.js.map +1 -0
  126. package/dist/src/auth/commands/impl/login-google.command.d.ts +13 -0
  127. package/dist/src/auth/commands/impl/login-google.command.js +10 -0
  128. package/dist/src/auth/commands/impl/login-google.command.js.map +1 -0
  129. package/dist/src/auth/commands/impl/login.command.d.ts +13 -0
  130. package/dist/src/auth/commands/impl/login.command.js +10 -0
  131. package/dist/src/auth/commands/impl/login.command.js.map +1 -0
  132. package/dist/src/auth/commands/impl/sign-up.command.d.ts +13 -0
  133. package/dist/src/auth/commands/impl/sign-up.command.js +10 -0
  134. package/dist/src/auth/commands/impl/sign-up.command.js.map +1 -0
  135. package/dist/src/auth/commands/index.d.ts +2 -0
  136. package/dist/src/auth/commands/index.js +16 -0
  137. package/dist/src/auth/commands/index.js.map +1 -0
  138. package/dist/src/auth/consts.d.ts +50 -0
  139. package/dist/src/auth/consts.js +66 -0
  140. package/dist/src/auth/consts.js.map +1 -0
  141. package/dist/src/auth/github-oauth.service.d.ts +12 -0
  142. package/dist/src/auth/github-oauth.service.js +86 -0
  143. package/dist/src/auth/github-oauth.service.js.map +1 -0
  144. package/dist/src/auth/google-oauth.service.d.ts +13 -0
  145. package/dist/src/auth/google-oauth.service.js +57 -0
  146. package/dist/src/auth/google-oauth.service.js.map +1 -0
  147. package/dist/src/auth/guards/base-persmission.guard.d.ts +24 -0
  148. package/dist/src/auth/guards/base-persmission.guard.js +72 -0
  149. package/dist/src/auth/guards/base-persmission.guard.js.map +1 -0
  150. package/dist/src/auth/guards/jwt/gql-jwt-auth-guard.service.d.ts +6 -0
  151. package/dist/src/auth/guards/jwt/gql-jwt-auth-guard.service.js +23 -0
  152. package/dist/src/auth/guards/jwt/gql-jwt-auth-guard.service.js.map +1 -0
  153. package/dist/src/auth/guards/jwt/http-jwt-auth-guard.service.d.ts +4 -0
  154. package/dist/src/auth/guards/jwt/http-jwt-auth-guard.service.js +18 -0
  155. package/dist/src/auth/guards/jwt/http-jwt-auth-guard.service.js.map +1 -0
  156. package/dist/src/auth/guards/jwt/local-auth.guard.d.ts +4 -0
  157. package/dist/src/auth/guards/jwt/local-auth.guard.js +18 -0
  158. package/dist/src/auth/guards/jwt/local-auth.guard.js.map +1 -0
  159. package/dist/src/auth/guards/jwt/optional-gql-jwt-auth-guard.service.d.ts +7 -0
  160. package/dist/src/auth/guards/jwt/optional-gql-jwt-auth-guard.service.js +29 -0
  161. package/dist/src/auth/guards/jwt/optional-gql-jwt-auth-guard.service.js.map +1 -0
  162. package/dist/src/auth/guards/jwt/optional-http-jwt-auth-guard.service.d.ts +6 -0
  163. package/dist/src/auth/guards/jwt/optional-http-jwt-auth-guard.service.js +26 -0
  164. package/dist/src/auth/guards/jwt/optional-http-jwt-auth-guard.service.js.map +1 -0
  165. package/dist/src/auth/guards/organization.guard.d.ts +25 -0
  166. package/dist/src/auth/guards/organization.guard.js +31 -0
  167. package/dist/src/auth/guards/organization.guard.js.map +1 -0
  168. package/dist/src/auth/guards/permission-params.d.ts +7 -0
  169. package/dist/src/auth/guards/permission-params.js +8 -0
  170. package/dist/src/auth/guards/permission-params.js.map +1 -0
  171. package/dist/src/auth/guards/project.guard.d.ts +31 -0
  172. package/dist/src/auth/guards/project.guard.js +48 -0
  173. package/dist/src/auth/guards/project.guard.js.map +1 -0
  174. package/dist/src/auth/guards/system.guard.d.ts +20 -0
  175. package/dist/src/auth/guards/system.guard.js +26 -0
  176. package/dist/src/auth/guards/system.guard.js.map +1 -0
  177. package/dist/src/auth/jwt-secret.service.d.ts +7 -0
  178. package/dist/src/auth/jwt-secret.service.js +30 -0
  179. package/dist/src/auth/jwt-secret.service.js.map +1 -0
  180. package/dist/src/auth/strategy/jwt.strategy.d.ts +9 -0
  181. package/dist/src/auth/strategy/jwt.strategy.js +34 -0
  182. package/dist/src/auth/strategy/jwt.strategy.js.map +1 -0
  183. package/dist/src/auth/types.d.ts +8 -0
  184. package/dist/src/auth/types.js +3 -0
  185. package/dist/src/auth/types.js.map +1 -0
  186. package/dist/src/auth/utils.d.ts +2 -0
  187. package/dist/src/auth/utils.js +14 -0
  188. package/dist/src/auth/utils.js.map +1 -0
  189. package/dist/src/branch/branch.module.d.ts +2 -0
  190. package/dist/src/branch/branch.module.js +26 -0
  191. package/dist/src/branch/branch.module.js.map +1 -0
  192. package/dist/src/branch/commands/handlers/api-create-branch-by-revision-id.handler.d.ts +8 -0
  193. package/dist/src/branch/commands/handlers/api-create-branch-by-revision-id.handler.js +32 -0
  194. package/dist/src/branch/commands/handlers/api-create-branch-by-revision-id.handler.js.map +1 -0
  195. package/dist/src/branch/commands/handlers/create-branch-by-revision-id.handler.d.ts +32 -0
  196. package/dist/src/branch/commands/handlers/create-branch-by-revision-id.handler.js +134 -0
  197. package/dist/src/branch/commands/handlers/create-branch-by-revision-id.handler.js.map +1 -0
  198. package/dist/src/branch/commands/handlers/index.d.ts +3 -0
  199. package/dist/src/branch/commands/handlers/index.js +10 -0
  200. package/dist/src/branch/commands/handlers/index.js.map +1 -0
  201. package/dist/src/branch/commands/impl/api-create-branch-by-revision-id.command.d.ts +10 -0
  202. package/dist/src/branch/commands/impl/api-create-branch-by-revision-id.command.js +10 -0
  203. package/dist/src/branch/commands/impl/api-create-branch-by-revision-id.command.js.map +1 -0
  204. package/dist/src/branch/commands/impl/create-branch-by-revision-id.command.d.ts +10 -0
  205. package/dist/src/branch/commands/impl/create-branch-by-revision-id.command.js +10 -0
  206. package/dist/src/branch/commands/impl/create-branch-by-revision-id.command.js.map +1 -0
  207. package/dist/src/branch/commands/impl/index.d.ts +2 -0
  208. package/dist/src/branch/commands/impl/index.js +19 -0
  209. package/dist/src/branch/commands/impl/index.js.map +1 -0
  210. package/dist/src/branch/quieries/handlers/get-branch-by-id.handler.d.ts +15 -0
  211. package/dist/src/branch/quieries/handlers/get-branch-by-id.handler.js +29 -0
  212. package/dist/src/branch/quieries/handlers/get-branch-by-id.handler.js.map +1 -0
  213. package/dist/src/branch/quieries/handlers/get-branch.handler.d.ts +14 -0
  214. package/dist/src/branch/quieries/handlers/get-branch.handler.js +49 -0
  215. package/dist/src/branch/quieries/handlers/get-branch.handler.js.map +1 -0
  216. package/dist/src/branch/quieries/handlers/get-branches.handler.d.ts +22 -0
  217. package/dist/src/branch/quieries/handlers/get-branches.handler.js +65 -0
  218. package/dist/src/branch/quieries/handlers/get-branches.handler.js.map +1 -0
  219. package/dist/src/branch/quieries/handlers/get-draft-revision.handler.d.ts +9 -0
  220. package/dist/src/branch/quieries/handlers/get-draft-revision.handler.js +31 -0
  221. package/dist/src/branch/quieries/handlers/get-draft-revision.handler.js.map +1 -0
  222. package/dist/src/branch/quieries/handlers/get-head-revision.handler.d.ts +9 -0
  223. package/dist/src/branch/quieries/handlers/get-head-revision.handler.js +31 -0
  224. package/dist/src/branch/quieries/handlers/get-head-revision.handler.js.map +1 -0
  225. package/dist/src/branch/quieries/handlers/get-project-by-branch.handler.d.ts +14 -0
  226. package/dist/src/branch/quieries/handlers/get-project-by-branch.handler.js +31 -0
  227. package/dist/src/branch/quieries/handlers/get-project-by-branch.handler.js.map +1 -0
  228. package/dist/src/branch/quieries/handlers/get-revisions-by-branch-id.handler.d.ts +22 -0
  229. package/dist/src/branch/quieries/handlers/get-revisions-by-branch-id.handler.js +65 -0
  230. package/dist/src/branch/quieries/handlers/get-revisions-by-branch-id.handler.js.map +1 -0
  231. package/dist/src/branch/quieries/handlers/get-start-revision.handler.d.ts +9 -0
  232. package/dist/src/branch/quieries/handlers/get-start-revision.handler.js +31 -0
  233. package/dist/src/branch/quieries/handlers/get-start-revision.handler.js.map +1 -0
  234. package/dist/src/branch/quieries/handlers/get-touched-by-branch-id.handler.d.ts +13 -0
  235. package/dist/src/branch/quieries/handlers/get-touched-by-branch-id.handler.js +50 -0
  236. package/dist/src/branch/quieries/handlers/get-touched-by-branch-id.handler.js.map +1 -0
  237. package/dist/src/branch/quieries/handlers/index.d.ts +11 -0
  238. package/dist/src/branch/quieries/handlers/index.js +26 -0
  239. package/dist/src/branch/quieries/handlers/index.js.map +1 -0
  240. package/dist/src/branch/quieries/handlers/resolve-parent-branch-by-branch.handler.d.ts +16 -0
  241. package/dist/src/branch/quieries/handlers/resolve-parent-branch-by-branch.handler.js +53 -0
  242. package/dist/src/branch/quieries/handlers/resolve-parent-branch-by-branch.handler.js.map +1 -0
  243. package/dist/src/branch/quieries/impl/get-branch-by-id.query.d.ts +4 -0
  244. package/dist/src/branch/quieries/impl/get-branch-by-id.query.js +10 -0
  245. package/dist/src/branch/quieries/impl/get-branch-by-id.query.js.map +1 -0
  246. package/dist/src/branch/quieries/impl/get-branch.query.d.ts +12 -0
  247. package/dist/src/branch/quieries/impl/get-branch.query.js +10 -0
  248. package/dist/src/branch/quieries/impl/get-branch.query.js.map +1 -0
  249. package/dist/src/branch/quieries/impl/get-branches.query.d.ts +14 -0
  250. package/dist/src/branch/quieries/impl/get-branches.query.js +10 -0
  251. package/dist/src/branch/quieries/impl/get-branches.query.js.map +1 -0
  252. package/dist/src/branch/quieries/impl/get-draft-revision.query.d.ts +4 -0
  253. package/dist/src/branch/quieries/impl/get-draft-revision.query.js +10 -0
  254. package/dist/src/branch/quieries/impl/get-draft-revision.query.js.map +1 -0
  255. package/dist/src/branch/quieries/impl/get-head-revision.query.d.ts +4 -0
  256. package/dist/src/branch/quieries/impl/get-head-revision.query.js +10 -0
  257. package/dist/src/branch/quieries/impl/get-head-revision.query.js.map +1 -0
  258. package/dist/src/branch/quieries/impl/get-project-by-branch.query.d.ts +4 -0
  259. package/dist/src/branch/quieries/impl/get-project-by-branch.query.js +10 -0
  260. package/dist/src/branch/quieries/impl/get-project-by-branch.query.js.map +1 -0
  261. package/dist/src/branch/quieries/impl/get-revisions-by-branch-id.query.d.ts +16 -0
  262. package/dist/src/branch/quieries/impl/get-revisions-by-branch-id.query.js +10 -0
  263. package/dist/src/branch/quieries/impl/get-revisions-by-branch-id.query.js.map +1 -0
  264. package/dist/src/branch/quieries/impl/get-start-revision.query.d.ts +4 -0
  265. package/dist/src/branch/quieries/impl/get-start-revision.query.js +10 -0
  266. package/dist/src/branch/quieries/impl/get-start-revision.query.js.map +1 -0
  267. package/dist/src/branch/quieries/impl/get-touched-by-branch-id.query.d.ts +4 -0
  268. package/dist/src/branch/quieries/impl/get-touched-by-branch-id.query.js +10 -0
  269. package/dist/src/branch/quieries/impl/get-touched-by-branch-id.query.js.map +1 -0
  270. package/dist/src/branch/quieries/impl/index.d.ts +10 -0
  271. package/dist/src/branch/quieries/impl/index.js +27 -0
  272. package/dist/src/branch/quieries/impl/index.js.map +1 -0
  273. package/dist/src/branch/quieries/impl/resolve-parent-branch-by-branch.query.d.ts +8 -0
  274. package/dist/src/branch/quieries/impl/resolve-parent-branch-by-branch.query.js +10 -0
  275. package/dist/src/branch/quieries/impl/resolve-parent-branch-by-branch.query.js.map +1 -0
  276. package/dist/src/branch/quieries/types/get-branch-by-id.types.d.ts +2 -0
  277. package/dist/src/branch/quieries/types/get-branch-by-id.types.js +3 -0
  278. package/dist/src/branch/quieries/types/get-branch-by-id.types.js.map +1 -0
  279. package/dist/src/branch/quieries/types/get-branch.types.d.ts +2 -0
  280. package/dist/src/branch/quieries/types/get-branch.types.js +3 -0
  281. package/dist/src/branch/quieries/types/get-branch.types.js.map +1 -0
  282. package/dist/src/branch/quieries/types/get-draft-revision.types.d.ts +2 -0
  283. package/dist/src/branch/quieries/types/get-draft-revision.types.js +3 -0
  284. package/dist/src/branch/quieries/types/get-draft-revision.types.js.map +1 -0
  285. package/dist/src/branch/quieries/types/get-head-revision.types.d.ts +2 -0
  286. package/dist/src/branch/quieries/types/get-head-revision.types.js +3 -0
  287. package/dist/src/branch/quieries/types/get-head-revision.types.js.map +1 -0
  288. package/dist/src/branch/quieries/types/get-start-revision.types.d.ts +2 -0
  289. package/dist/src/branch/quieries/types/get-start-revision.types.js +3 -0
  290. package/dist/src/branch/quieries/types/get-start-revision.types.js.map +1 -0
  291. package/dist/src/branch/quieries/types/index.d.ts +4 -0
  292. package/dist/src/branch/quieries/types/index.js +3 -0
  293. package/dist/src/branch/quieries/types/index.js.map +1 -0
  294. package/dist/src/clean/clean.module.d.ts +2 -0
  295. package/dist/src/clean/clean.module.js +24 -0
  296. package/dist/src/clean/clean.module.js.map +1 -0
  297. package/dist/src/clean/clean.service.d.ts +7 -0
  298. package/dist/src/clean/clean.service.js +46 -0
  299. package/dist/src/clean/clean.service.js.map +1 -0
  300. package/dist/src/clean/commands/handlers/clean-rows.handler.d.ts +8 -0
  301. package/dist/src/clean/commands/handlers/clean-rows.handler.js +35 -0
  302. package/dist/src/clean/commands/handlers/clean-rows.handler.js.map +1 -0
  303. package/dist/src/clean/commands/handlers/clean-tables.handler.d.ts +8 -0
  304. package/dist/src/clean/commands/handlers/clean-tables.handler.js +35 -0
  305. package/dist/src/clean/commands/handlers/clean-tables.handler.js.map +1 -0
  306. package/dist/src/clean/commands/handlers/index.d.ts +3 -0
  307. package/dist/src/clean/commands/handlers/index.js +7 -0
  308. package/dist/src/clean/commands/handlers/index.js.map +1 -0
  309. package/dist/src/clean/commands/impl/clean-rows.command.d.ts +2 -0
  310. package/dist/src/clean/commands/impl/clean-rows.command.js +7 -0
  311. package/dist/src/clean/commands/impl/clean-rows.command.js.map +1 -0
  312. package/dist/src/clean/commands/impl/clean-tables.command.d.ts +2 -0
  313. package/dist/src/clean/commands/impl/clean-tables.command.js +7 -0
  314. package/dist/src/clean/commands/impl/clean-tables.command.js.map +1 -0
  315. package/dist/src/configuration/configuration.module.d.ts +2 -0
  316. package/dist/src/configuration/configuration.module.js +24 -0
  317. package/dist/src/configuration/configuration.module.js.map +1 -0
  318. package/dist/src/configuration/queries/handlers/get-configuration.handler.d.ts +13 -0
  319. package/dist/src/configuration/queries/handlers/get-configuration.handler.js +48 -0
  320. package/dist/src/configuration/queries/handlers/get-configuration.handler.js.map +1 -0
  321. package/dist/src/configuration/queries/handlers/index.d.ts +1 -0
  322. package/dist/src/configuration/queries/handlers/index.js +18 -0
  323. package/dist/src/configuration/queries/handlers/index.js.map +1 -0
  324. package/dist/src/configuration/queries/impl/get-configuration.query.d.ts +14 -0
  325. package/dist/src/configuration/queries/impl/get-configuration.query.js +8 -0
  326. package/dist/src/configuration/queries/impl/get-configuration.query.js.map +1 -0
  327. package/dist/src/configuration/queries/impl/index.d.ts +1 -0
  328. package/dist/src/configuration/queries/impl/index.js +18 -0
  329. package/dist/src/configuration/queries/impl/index.js.map +1 -0
  330. package/dist/src/configuration/queries/index.d.ts +2 -0
  331. package/dist/src/configuration/queries/index.js +6 -0
  332. package/dist/src/configuration/queries/index.js.map +1 -0
  333. package/dist/src/core/core.module.d.ts +2 -0
  334. package/dist/src/core/core.module.js +67 -0
  335. package/dist/src/core/core.module.js.map +1 -0
  336. package/dist/src/database/database.module.d.ts +2 -0
  337. package/dist/src/database/database.module.js +24 -0
  338. package/dist/src/database/database.module.js.map +1 -0
  339. package/dist/src/database/id.service.d.ts +3 -0
  340. package/dist/src/database/id.service.js +21 -0
  341. package/dist/src/database/id.service.js.map +1 -0
  342. package/dist/src/database/prisma.service.d.ts +5 -0
  343. package/dist/src/database/prisma.service.js +21 -0
  344. package/dist/src/database/prisma.service.js.map +1 -0
  345. package/dist/src/database/transaction-prisma.service.d.ts +14 -0
  346. package/dist/src/database/transaction-prisma.service.js +39 -0
  347. package/dist/src/database/transaction-prisma.service.js.map +1 -0
  348. package/dist/src/draft/commands/handlers/api-create-revision.handler.d.ts +13 -0
  349. package/dist/src/draft/commands/handlers/api-create-revision.handler.js +45 -0
  350. package/dist/src/draft/commands/handlers/api-create-revision.handler.js.map +1 -0
  351. package/dist/src/draft/commands/handlers/api-create-row.handler.d.ts +13 -0
  352. package/dist/src/draft/commands/handlers/api-create-row.handler.js +59 -0
  353. package/dist/src/draft/commands/handlers/api-create-row.handler.js.map +1 -0
  354. package/dist/src/draft/commands/handlers/api-create-table.handler.d.ts +13 -0
  355. package/dist/src/draft/commands/handlers/api-create-table.handler.js +45 -0
  356. package/dist/src/draft/commands/handlers/api-create-table.handler.js.map +1 -0
  357. package/dist/src/draft/commands/handlers/api-remove-row.handler.d.ts +13 -0
  358. package/dist/src/draft/commands/handlers/api-remove-row.handler.js +59 -0
  359. package/dist/src/draft/commands/handlers/api-remove-row.handler.js.map +1 -0
  360. package/dist/src/draft/commands/handlers/api-remove-table.handler.d.ts +13 -0
  361. package/dist/src/draft/commands/handlers/api-remove-table.handler.js +43 -0
  362. package/dist/src/draft/commands/handlers/api-remove-table.handler.js.map +1 -0
  363. package/dist/src/draft/commands/handlers/api-revert-changes.handler.d.ts +12 -0
  364. package/dist/src/draft/commands/handlers/api-revert-changes.handler.js +40 -0
  365. package/dist/src/draft/commands/handlers/api-revert-changes.handler.js.map +1 -0
  366. package/dist/src/draft/commands/handlers/api-update-row.handler.d.ts +13 -0
  367. package/dist/src/draft/commands/handlers/api-update-row.handler.js +57 -0
  368. package/dist/src/draft/commands/handlers/api-update-row.handler.js.map +1 -0
  369. package/dist/src/draft/commands/handlers/api-update-table.handler.d.ts +13 -0
  370. package/dist/src/draft/commands/handlers/api-update-table.handler.js +45 -0
  371. package/dist/src/draft/commands/handlers/api-update-table.handler.js.map +1 -0
  372. package/dist/src/draft/commands/handlers/create-revision.handler.d.ts +24 -0
  373. package/dist/src/draft/commands/handlers/create-revision.handler.js +140 -0
  374. package/dist/src/draft/commands/handlers/create-revision.handler.js.map +1 -0
  375. package/dist/src/draft/commands/handlers/create-row.handler.d.ts +29 -0
  376. package/dist/src/draft/commands/handlers/create-row.handler.js +132 -0
  377. package/dist/src/draft/commands/handlers/create-row.handler.js.map +1 -0
  378. package/dist/src/draft/commands/handlers/create-table.handler.d.ts +30 -0
  379. package/dist/src/draft/commands/handlers/create-table.handler.js +123 -0
  380. package/dist/src/draft/commands/handlers/create-table.handler.js.map +1 -0
  381. package/dist/src/draft/commands/handlers/index.d.ts +25 -0
  382. package/dist/src/draft/commands/handlers/index.js +54 -0
  383. package/dist/src/draft/commands/handlers/index.js.map +1 -0
  384. package/dist/src/draft/commands/handlers/remove-row.handler.d.ts +33 -0
  385. package/dist/src/draft/commands/handlers/remove-row.handler.js +232 -0
  386. package/dist/src/draft/commands/handlers/remove-row.handler.js.map +1 -0
  387. package/dist/src/draft/commands/handlers/remove-table.handler.d.ts +33 -0
  388. package/dist/src/draft/commands/handlers/remove-table.handler.js +178 -0
  389. package/dist/src/draft/commands/handlers/remove-table.handler.js.map +1 -0
  390. package/dist/src/draft/commands/handlers/revert-changes.handler.d.ts +17 -0
  391. package/dist/src/draft/commands/handlers/revert-changes.handler.js +96 -0
  392. package/dist/src/draft/commands/handlers/revert-changes.handler.js.map +1 -0
  393. package/dist/src/draft/commands/handlers/transactional/get-or-create-draft-row.handler.d.ts +26 -0
  394. package/dist/src/draft/commands/handlers/transactional/get-or-create-draft-row.handler.js +115 -0
  395. package/dist/src/draft/commands/handlers/transactional/get-or-create-draft-row.handler.js.map +1 -0
  396. package/dist/src/draft/commands/handlers/transactional/get-or-create-draft-rows.handler.d.ts +26 -0
  397. package/dist/src/draft/commands/handlers/transactional/get-or-create-draft-rows.handler.js +145 -0
  398. package/dist/src/draft/commands/handlers/transactional/get-or-create-draft-rows.handler.js.map +1 -0
  399. package/dist/src/draft/commands/handlers/transactional/get-or-create-draft-table.handler.d.ts +24 -0
  400. package/dist/src/draft/commands/handlers/transactional/get-or-create-draft-table.handler.js +113 -0
  401. package/dist/src/draft/commands/handlers/transactional/get-or-create-draft-table.handler.js.map +1 -0
  402. package/dist/src/draft/commands/handlers/transactional/resolve-draft-revision.handler.d.ts +13 -0
  403. package/dist/src/draft/commands/handlers/transactional/resolve-draft-revision.handler.js +62 -0
  404. package/dist/src/draft/commands/handlers/transactional/resolve-draft-revision.handler.js.map +1 -0
  405. package/dist/src/draft/commands/handlers/transactional/validate-data.handler.d.ts +14 -0
  406. package/dist/src/draft/commands/handlers/transactional/validate-data.handler.js +67 -0
  407. package/dist/src/draft/commands/handlers/transactional/validate-data.handler.js.map +1 -0
  408. package/dist/src/draft/commands/handlers/transactional/validate-not-system-table.handler.d.ts +10 -0
  409. package/dist/src/draft/commands/handlers/transactional/validate-not-system-table.handler.js +35 -0
  410. package/dist/src/draft/commands/handlers/transactional/validate-not-system-table.handler.js.map +1 -0
  411. package/dist/src/draft/commands/handlers/transactional/validate-schema.handler.d.ts +14 -0
  412. package/dist/src/draft/commands/handlers/transactional/validate-schema.handler.js +51 -0
  413. package/dist/src/draft/commands/handlers/transactional/validate-schema.handler.js.map +1 -0
  414. package/dist/src/draft/commands/handlers/update-row.handler.d.ts +18 -0
  415. package/dist/src/draft/commands/handlers/update-row.handler.js +75 -0
  416. package/dist/src/draft/commands/handlers/update-row.handler.js.map +1 -0
  417. package/dist/src/draft/commands/handlers/update-rows.handler.d.ts +17 -0
  418. package/dist/src/draft/commands/handlers/update-rows.handler.js +74 -0
  419. package/dist/src/draft/commands/handlers/update-rows.handler.js.map +1 -0
  420. package/dist/src/draft/commands/handlers/update-table.handler.d.ts +29 -0
  421. package/dist/src/draft/commands/handlers/update-table.handler.js +166 -0
  422. package/dist/src/draft/commands/handlers/update-table.handler.js.map +1 -0
  423. package/dist/src/draft/commands/impl/api-create-revision.command.d.ts +14 -0
  424. package/dist/src/draft/commands/impl/api-create-revision.command.js +10 -0
  425. package/dist/src/draft/commands/impl/api-create-revision.command.js.map +1 -0
  426. package/dist/src/draft/commands/impl/api-create-row.command.d.ts +17 -0
  427. package/dist/src/draft/commands/impl/api-create-row.command.js +10 -0
  428. package/dist/src/draft/commands/impl/api-create-row.command.js.map +1 -0
  429. package/dist/src/draft/commands/impl/api-create-table.command.d.ts +13 -0
  430. package/dist/src/draft/commands/impl/api-create-table.command.js +10 -0
  431. package/dist/src/draft/commands/impl/api-create-table.command.js.map +1 -0
  432. package/dist/src/draft/commands/impl/api-remove-row.command.d.ts +14 -0
  433. package/dist/src/draft/commands/impl/api-remove-row.command.js +10 -0
  434. package/dist/src/draft/commands/impl/api-remove-row.command.js.map +1 -0
  435. package/dist/src/draft/commands/impl/api-remove-table.command.d.ts +10 -0
  436. package/dist/src/draft/commands/impl/api-remove-table.command.js +10 -0
  437. package/dist/src/draft/commands/impl/api-remove-table.command.js.map +1 -0
  438. package/dist/src/draft/commands/impl/api-revert-changes.command.d.ts +12 -0
  439. package/dist/src/draft/commands/impl/api-revert-changes.command.js +10 -0
  440. package/dist/src/draft/commands/impl/api-revert-changes.command.js.map +1 -0
  441. package/dist/src/draft/commands/impl/api-update-row.command.d.ts +17 -0
  442. package/dist/src/draft/commands/impl/api-update-row.command.js +10 -0
  443. package/dist/src/draft/commands/impl/api-update-row.command.js.map +1 -0
  444. package/dist/src/draft/commands/impl/api-update-table.command.d.ts +13 -0
  445. package/dist/src/draft/commands/impl/api-update-table.command.js +10 -0
  446. package/dist/src/draft/commands/impl/api-update-table.command.js.map +1 -0
  447. package/dist/src/draft/commands/impl/create-revision.command.d.ts +14 -0
  448. package/dist/src/draft/commands/impl/create-revision.command.js +10 -0
  449. package/dist/src/draft/commands/impl/create-revision.command.js.map +1 -0
  450. package/dist/src/draft/commands/impl/create-row.command.d.ts +17 -0
  451. package/dist/src/draft/commands/impl/create-row.command.js +10 -0
  452. package/dist/src/draft/commands/impl/create-row.command.js.map +1 -0
  453. package/dist/src/draft/commands/impl/create-table.command.d.ts +13 -0
  454. package/dist/src/draft/commands/impl/create-table.command.js +10 -0
  455. package/dist/src/draft/commands/impl/create-table.command.js.map +1 -0
  456. package/dist/src/draft/commands/impl/remove-row.command.d.ts +14 -0
  457. package/dist/src/draft/commands/impl/remove-row.command.js +10 -0
  458. package/dist/src/draft/commands/impl/remove-row.command.js.map +1 -0
  459. package/dist/src/draft/commands/impl/remove-table.command.d.ts +10 -0
  460. package/dist/src/draft/commands/impl/remove-table.command.js +10 -0
  461. package/dist/src/draft/commands/impl/remove-table.command.js.map +1 -0
  462. package/dist/src/draft/commands/impl/revert-changes.command.d.ts +12 -0
  463. package/dist/src/draft/commands/impl/revert-changes.command.js +10 -0
  464. package/dist/src/draft/commands/impl/revert-changes.command.js.map +1 -0
  465. package/dist/src/draft/commands/impl/transactional/get-or-create-draft-row.command.d.ts +4 -0
  466. package/dist/src/draft/commands/impl/transactional/get-or-create-draft-row.command.js +10 -0
  467. package/dist/src/draft/commands/impl/transactional/get-or-create-draft-row.command.js.map +1 -0
  468. package/dist/src/draft/commands/impl/transactional/get-or-create-draft-rows.command.d.ts +4 -0
  469. package/dist/src/draft/commands/impl/transactional/get-or-create-draft-rows.command.js +10 -0
  470. package/dist/src/draft/commands/impl/transactional/get-or-create-draft-rows.command.js.map +1 -0
  471. package/dist/src/draft/commands/impl/transactional/get-or-create-draft-table.command.d.ts +4 -0
  472. package/dist/src/draft/commands/impl/transactional/get-or-create-draft-table.command.js +10 -0
  473. package/dist/src/draft/commands/impl/transactional/get-or-create-draft-table.command.js.map +1 -0
  474. package/dist/src/draft/commands/impl/transactional/resolve-draft-revision.command.d.ts +4 -0
  475. package/dist/src/draft/commands/impl/transactional/resolve-draft-revision.command.js +10 -0
  476. package/dist/src/draft/commands/impl/transactional/resolve-draft-revision.command.js.map +1 -0
  477. package/dist/src/draft/commands/impl/transactional/validate-data.command.d.ts +24 -0
  478. package/dist/src/draft/commands/impl/transactional/validate-data.command.js +10 -0
  479. package/dist/src/draft/commands/impl/transactional/validate-data.command.js.map +1 -0
  480. package/dist/src/draft/commands/impl/transactional/validate-not-system-table.command.d.ts +4 -0
  481. package/dist/src/draft/commands/impl/transactional/validate-not-system-table.command.js +10 -0
  482. package/dist/src/draft/commands/impl/transactional/validate-not-system-table.command.js.map +1 -0
  483. package/dist/src/draft/commands/impl/transactional/validate-schema.command.d.ts +5 -0
  484. package/dist/src/draft/commands/impl/transactional/validate-schema.command.js +10 -0
  485. package/dist/src/draft/commands/impl/transactional/validate-schema.command.js.map +1 -0
  486. package/dist/src/draft/commands/impl/update-row.command.d.ts +17 -0
  487. package/dist/src/draft/commands/impl/update-row.command.js +10 -0
  488. package/dist/src/draft/commands/impl/update-row.command.js.map +1 -0
  489. package/dist/src/draft/commands/impl/update-rows.command.d.ts +22 -0
  490. package/dist/src/draft/commands/impl/update-rows.command.js +10 -0
  491. package/dist/src/draft/commands/impl/update-rows.command.js.map +1 -0
  492. package/dist/src/draft/commands/impl/update-table.command.d.ts +13 -0
  493. package/dist/src/draft/commands/impl/update-table.command.js +10 -0
  494. package/dist/src/draft/commands/impl/update-table.command.js.map +1 -0
  495. package/dist/src/draft/commands/types/api-create-row.handler.types.d.ts +7 -0
  496. package/dist/src/draft/commands/types/api-create-row.handler.types.js +3 -0
  497. package/dist/src/draft/commands/types/api-create-row.handler.types.js.map +1 -0
  498. package/dist/src/draft/commands/types/api-create-table.handler.types.d.ts +5 -0
  499. package/dist/src/draft/commands/types/api-create-table.handler.types.js +3 -0
  500. package/dist/src/draft/commands/types/api-create-table.handler.types.js.map +1 -0
  501. package/dist/src/draft/commands/types/api-remove-row.handler.types.d.ts +7 -0
  502. package/dist/src/draft/commands/types/api-remove-row.handler.types.js +3 -0
  503. package/dist/src/draft/commands/types/api-remove-row.handler.types.js.map +1 -0
  504. package/dist/src/draft/commands/types/api-remove-table.handler.types.d.ts +4 -0
  505. package/dist/src/draft/commands/types/api-remove-table.handler.types.js +3 -0
  506. package/dist/src/draft/commands/types/api-remove-table.handler.types.js.map +1 -0
  507. package/dist/src/draft/commands/types/api-update-row.handler.types.d.ts +8 -0
  508. package/dist/src/draft/commands/types/api-update-row.handler.types.js +3 -0
  509. package/dist/src/draft/commands/types/api-update-row.handler.types.js.map +1 -0
  510. package/dist/src/draft/commands/types/api-update-table.handler.types.d.ts +5 -0
  511. package/dist/src/draft/commands/types/api-update-table.handler.types.js +3 -0
  512. package/dist/src/draft/commands/types/api-update-table.handler.types.js.map +1 -0
  513. package/dist/src/draft/commands/types/create-revision.handler.types.d.ts +5 -0
  514. package/dist/src/draft/commands/types/create-revision.handler.types.js +3 -0
  515. package/dist/src/draft/commands/types/create-revision.handler.types.js.map +1 -0
  516. package/dist/src/draft/commands/types/create-row.handler.types.d.ts +5 -0
  517. package/dist/src/draft/commands/types/create-row.handler.types.js +3 -0
  518. package/dist/src/draft/commands/types/create-row.handler.types.js.map +1 -0
  519. package/dist/src/draft/commands/types/create-table.handler.types.d.ts +5 -0
  520. package/dist/src/draft/commands/types/create-table.handler.types.js +3 -0
  521. package/dist/src/draft/commands/types/create-table.handler.types.js.map +1 -0
  522. package/dist/src/draft/commands/types/remove-row.handler.types.d.ts +5 -0
  523. package/dist/src/draft/commands/types/remove-row.handler.types.js +3 -0
  524. package/dist/src/draft/commands/types/remove-row.handler.types.js.map +1 -0
  525. package/dist/src/draft/commands/types/remove-table.handler.types.d.ts +4 -0
  526. package/dist/src/draft/commands/types/remove-table.handler.types.js +3 -0
  527. package/dist/src/draft/commands/types/remove-table.handler.types.js.map +1 -0
  528. package/dist/src/draft/commands/types/revert-changes.handler.types.d.ts +4 -0
  529. package/dist/src/draft/commands/types/revert-changes.handler.types.js +3 -0
  530. package/dist/src/draft/commands/types/revert-changes.handler.types.js.map +1 -0
  531. package/dist/src/draft/commands/types/update-row.handler.types.d.ts +6 -0
  532. package/dist/src/draft/commands/types/update-row.handler.types.js +3 -0
  533. package/dist/src/draft/commands/types/update-row.handler.types.js.map +1 -0
  534. package/dist/src/draft/commands/types/update-table.handler.types.d.ts +4 -0
  535. package/dist/src/draft/commands/types/update-table.handler.types.js +3 -0
  536. package/dist/src/draft/commands/types/update-table.handler.types.js.map +1 -0
  537. package/dist/src/draft/draft-context.service.d.ts +25 -0
  538. package/dist/src/draft/draft-context.service.js +75 -0
  539. package/dist/src/draft/draft-context.service.js.map +1 -0
  540. package/dist/src/draft/draft-request-dto/draft-revision-request.dto.d.ts +14 -0
  541. package/dist/src/draft/draft-request-dto/draft-revision-request.dto.js +52 -0
  542. package/dist/src/draft/draft-request-dto/draft-revision-request.dto.js.map +1 -0
  543. package/dist/src/draft/draft-request-dto/index.d.ts +5 -0
  544. package/dist/src/draft/draft-request-dto/index.js +14 -0
  545. package/dist/src/draft/draft-request-dto/index.js.map +1 -0
  546. package/dist/src/draft/draft-request-dto/row-request.dto.d.ts +11 -0
  547. package/dist/src/draft/draft-request-dto/row-request.dto.js +43 -0
  548. package/dist/src/draft/draft-request-dto/row-request.dto.js.map +1 -0
  549. package/dist/src/draft/draft-request-dto/rows-request.dto.d.ts +13 -0
  550. package/dist/src/draft/draft-request-dto/rows-request.dto.js +31 -0
  551. package/dist/src/draft/draft-request-dto/rows-request.dto.js.map +1 -0
  552. package/dist/src/draft/draft-request-dto/table-request.dto.d.ts +11 -0
  553. package/dist/src/draft/draft-request-dto/table-request.dto.js +43 -0
  554. package/dist/src/draft/draft-request-dto/table-request.dto.js.map +1 -0
  555. package/dist/src/draft/draft.handler.d.ts +13 -0
  556. package/dist/src/draft/draft.handler.js +23 -0
  557. package/dist/src/draft/draft.handler.js.map +1 -0
  558. package/dist/src/draft/draft.module.d.ts +2 -0
  559. package/dist/src/draft/draft.module.js +44 -0
  560. package/dist/src/draft/draft.module.js.map +1 -0
  561. package/dist/src/draft/draft.transactional.commands.d.ts +23 -0
  562. package/dist/src/draft/draft.transactional.commands.js +53 -0
  563. package/dist/src/draft/draft.transactional.commands.js.map +1 -0
  564. package/dist/src/draft/json-schema-validator.service.d.ts +24 -0
  565. package/dist/src/draft/json-schema-validator.service.js +76 -0
  566. package/dist/src/draft/json-schema-validator.service.js.map +1 -0
  567. package/dist/src/draft/session-changelog.service.d.ts +27 -0
  568. package/dist/src/draft/session-changelog.service.js +124 -0
  569. package/dist/src/draft/session-changelog.service.js.map +1 -0
  570. package/dist/src/email/email.module.d.ts +2 -0
  571. package/dist/src/email/email.module.js +25 -0
  572. package/dist/src/email/email.module.js.map +1 -0
  573. package/dist/src/email/email.service.d.ts +14 -0
  574. package/dist/src/email/email.service.js +55 -0
  575. package/dist/src/email/email.service.js.map +1 -0
  576. package/dist/src/email/templates/registration.hbs +286 -0
  577. package/dist/src/email/templates.service.d.ts +8 -0
  578. package/dist/src/email/templates.service.js +53 -0
  579. package/dist/src/email/templates.service.js.map +1 -0
  580. package/dist/src/email/transporter.service.d.ts +16 -0
  581. package/dist/src/email/transporter.service.js +49 -0
  582. package/dist/src/email/transporter.service.js.map +1 -0
  583. package/dist/src/endpoint/commands/handlers/api-create-endpoint.handler.d.ts +8 -0
  584. package/dist/src/endpoint/commands/handlers/api-create-endpoint.handler.js +32 -0
  585. package/dist/src/endpoint/commands/handlers/api-create-endpoint.handler.js.map +1 -0
  586. package/dist/src/endpoint/commands/handlers/create-endpoint.handler.d.ts +13 -0
  587. package/dist/src/endpoint/commands/handlers/create-endpoint.handler.js +61 -0
  588. package/dist/src/endpoint/commands/handlers/create-endpoint.handler.js.map +1 -0
  589. package/dist/src/endpoint/commands/handlers/delete-endpoint.handler.d.ts +12 -0
  590. package/dist/src/endpoint/commands/handlers/delete-endpoint.handler.js +50 -0
  591. package/dist/src/endpoint/commands/handlers/delete-endpoint.handler.js.map +1 -0
  592. package/dist/src/endpoint/commands/handlers/index.d.ts +4 -0
  593. package/dist/src/endpoint/commands/handlers/index.js +12 -0
  594. package/dist/src/endpoint/commands/handlers/index.js.map +1 -0
  595. package/dist/src/endpoint/commands/impl/api-create-endpoint.command.d.ts +11 -0
  596. package/dist/src/endpoint/commands/impl/api-create-endpoint.command.js +10 -0
  597. package/dist/src/endpoint/commands/impl/api-create-endpoint.command.js.map +1 -0
  598. package/dist/src/endpoint/commands/impl/create-endpoint.command.d.ts +11 -0
  599. package/dist/src/endpoint/commands/impl/create-endpoint.command.js +10 -0
  600. package/dist/src/endpoint/commands/impl/create-endpoint.command.js.map +1 -0
  601. package/dist/src/endpoint/commands/impl/delete-endpoint.command.d.ts +8 -0
  602. package/dist/src/endpoint/commands/impl/delete-endpoint.command.js +10 -0
  603. package/dist/src/endpoint/commands/impl/delete-endpoint.command.js.map +1 -0
  604. package/dist/src/endpoint/commands/impl/index.d.ts +3 -0
  605. package/dist/src/endpoint/commands/impl/index.js +20 -0
  606. package/dist/src/endpoint/commands/impl/index.js.map +1 -0
  607. package/dist/src/endpoint/endpoint.module.d.ts +2 -0
  608. package/dist/src/endpoint/endpoint.module.js +25 -0
  609. package/dist/src/endpoint/endpoint.module.js.map +1 -0
  610. package/dist/src/endpoint/queries/handlers/get-created-endpoint.handler.d.ts +14 -0
  611. package/dist/src/endpoint/queries/handlers/get-created-endpoint.handler.js +29 -0
  612. package/dist/src/endpoint/queries/handlers/get-created-endpoint.handler.js.map +1 -0
  613. package/dist/src/endpoint/queries/handlers/get-revision-by-endpoint-id.handler.d.ts +19 -0
  614. package/dist/src/endpoint/queries/handlers/get-revision-by-endpoint-id.handler.js +33 -0
  615. package/dist/src/endpoint/queries/handlers/get-revision-by-endpoint-id.handler.js.map +1 -0
  616. package/dist/src/endpoint/queries/handlers/index.d.ts +3 -0
  617. package/dist/src/endpoint/queries/handlers/index.js +10 -0
  618. package/dist/src/endpoint/queries/handlers/index.js.map +1 -0
  619. package/dist/src/endpoint/queries/impl/get-created-endpoint.query.d.ts +8 -0
  620. package/dist/src/endpoint/queries/impl/get-created-endpoint.query.js +10 -0
  621. package/dist/src/endpoint/queries/impl/get-created-endpoint.query.js.map +1 -0
  622. package/dist/src/endpoint/queries/impl/get-revision-by-endpoint-id.query.d.ts +4 -0
  623. package/dist/src/endpoint/queries/impl/get-revision-by-endpoint-id.query.js +10 -0
  624. package/dist/src/endpoint/queries/impl/get-revision-by-endpoint-id.query.js.map +1 -0
  625. package/dist/src/endpoint/queries/impl/index.d.ts +2 -0
  626. package/dist/src/endpoint/queries/impl/index.js +19 -0
  627. package/dist/src/endpoint/queries/impl/index.js.map +1 -0
  628. package/dist/src/graphql-api/auth/auth.resolver.d.ts +13 -0
  629. package/dist/src/graphql-api/auth/auth.resolver.js +103 -0
  630. package/dist/src/graphql-api/auth/auth.resolver.js.map +1 -0
  631. package/dist/src/graphql-api/auth/inputs/confirm-email-code.input.d.ts +3 -0
  632. package/dist/src/graphql-api/auth/inputs/confirm-email-code.input.js +24 -0
  633. package/dist/src/graphql-api/auth/inputs/confirm-email-code.input.js.map +1 -0
  634. package/dist/src/graphql-api/auth/inputs/create-user.input.d.ts +7 -0
  635. package/dist/src/graphql-api/auth/inputs/create-user.input.js +37 -0
  636. package/dist/src/graphql-api/auth/inputs/create-user.input.js.map +1 -0
  637. package/dist/src/graphql-api/auth/inputs/index.d.ts +6 -0
  638. package/dist/src/graphql-api/auth/inputs/index.js +23 -0
  639. package/dist/src/graphql-api/auth/inputs/index.js.map +1 -0
  640. package/dist/src/graphql-api/auth/inputs/login-github.input.d.ts +3 -0
  641. package/dist/src/graphql-api/auth/inputs/login-github.input.js +24 -0
  642. package/dist/src/graphql-api/auth/inputs/login-github.input.js.map +1 -0
  643. package/dist/src/graphql-api/auth/inputs/login-google.input.d.ts +4 -0
  644. package/dist/src/graphql-api/auth/inputs/login-google.input.js +28 -0
  645. package/dist/src/graphql-api/auth/inputs/login-google.input.js.map +1 -0
  646. package/dist/src/graphql-api/auth/inputs/login.input.d.ts +4 -0
  647. package/dist/src/graphql-api/auth/inputs/login.input.js +28 -0
  648. package/dist/src/graphql-api/auth/inputs/login.input.js.map +1 -0
  649. package/dist/src/graphql-api/auth/inputs/sign-up.input.d.ts +5 -0
  650. package/dist/src/graphql-api/auth/inputs/sign-up.input.js +32 -0
  651. package/dist/src/graphql-api/auth/inputs/sign-up.input.js.map +1 -0
  652. package/dist/src/graphql-api/auth/model/index.d.ts +1 -0
  653. package/dist/src/graphql-api/auth/model/index.js +18 -0
  654. package/dist/src/graphql-api/auth/model/index.js.map +1 -0
  655. package/dist/src/graphql-api/auth/model/login.model.d.ts +3 -0
  656. package/dist/src/graphql-api/auth/model/login.model.js +24 -0
  657. package/dist/src/graphql-api/auth/model/login.model.js.map +1 -0
  658. package/dist/src/graphql-api/branch/branch.resolver.d.ts +23 -0
  659. package/dist/src/graphql-api/branch/branch.resolver.js +176 -0
  660. package/dist/src/graphql-api/branch/branch.resolver.js.map +1 -0
  661. package/dist/src/graphql-api/branch/inputs/create-branch-by-revision-id.input.d.ts +5 -0
  662. package/dist/src/graphql-api/branch/inputs/create-branch-by-revision-id.input.js +30 -0
  663. package/dist/src/graphql-api/branch/inputs/create-branch-by-revision-id.input.js.map +1 -0
  664. package/dist/src/graphql-api/branch/inputs/create-branch.input.d.ts +4 -0
  665. package/dist/src/graphql-api/branch/inputs/create-branch.input.js +26 -0
  666. package/dist/src/graphql-api/branch/inputs/create-branch.input.js.map +1 -0
  667. package/dist/src/graphql-api/branch/inputs/get-branch-revisions.input.d.ts +6 -0
  668. package/dist/src/graphql-api/branch/inputs/get-branch-revisions.input.js +36 -0
  669. package/dist/src/graphql-api/branch/inputs/get-branch-revisions.input.js.map +1 -0
  670. package/dist/src/graphql-api/branch/inputs/get-branch.input.d.ts +5 -0
  671. package/dist/src/graphql-api/branch/inputs/get-branch.input.js +32 -0
  672. package/dist/src/graphql-api/branch/inputs/get-branch.input.js.map +1 -0
  673. package/dist/src/graphql-api/branch/inputs/get-branches.input.d.ts +6 -0
  674. package/dist/src/graphql-api/branch/inputs/get-branches.input.js +36 -0
  675. package/dist/src/graphql-api/branch/inputs/get-branches.input.js.map +1 -0
  676. package/dist/src/graphql-api/branch/inputs/index.d.ts +5 -0
  677. package/dist/src/graphql-api/branch/inputs/index.js +22 -0
  678. package/dist/src/graphql-api/branch/inputs/index.js.map +1 -0
  679. package/dist/src/graphql-api/branch/inputs/revert-changes.input.d.ts +5 -0
  680. package/dist/src/graphql-api/branch/inputs/revert-changes.input.js +32 -0
  681. package/dist/src/graphql-api/branch/inputs/revert-changes.input.js.map +1 -0
  682. package/dist/src/graphql-api/branch/model/branch.model.d.ts +21 -0
  683. package/dist/src/graphql-api/branch/model/branch.model.js +78 -0
  684. package/dist/src/graphql-api/branch/model/branch.model.js.map +1 -0
  685. package/dist/src/graphql-api/branch/model/parent-branch.model.d.ts +6 -0
  686. package/dist/src/graphql-api/branch/model/parent-branch.model.js +30 -0
  687. package/dist/src/graphql-api/branch/model/parent-branch.model.js.map +1 -0
  688. package/dist/src/graphql-api/branch/parent-branch.resolver.d.ts +8 -0
  689. package/dist/src/graphql-api/branch/parent-branch.resolver.js +51 -0
  690. package/dist/src/graphql-api/branch/parent-branch.resolver.js.map +1 -0
  691. package/dist/src/graphql-api/configuration/configuration.resolver.d.ts +7 -0
  692. package/dist/src/graphql-api/configuration/configuration.resolver.js +36 -0
  693. package/dist/src/graphql-api/configuration/configuration.resolver.js.map +1 -0
  694. package/dist/src/graphql-api/configuration/model/configuration.model.d.ts +13 -0
  695. package/dist/src/graphql-api/configuration/model/configuration.model.js +60 -0
  696. package/dist/src/graphql-api/configuration/model/configuration.model.js.map +1 -0
  697. package/dist/src/graphql-api/configuration/model/index.d.ts +1 -0
  698. package/dist/src/graphql-api/configuration/model/index.js +18 -0
  699. package/dist/src/graphql-api/configuration/model/index.js.map +1 -0
  700. package/dist/src/graphql-api/current-user.decorator.d.ts +1 -0
  701. package/dist/src/graphql-api/current-user.decorator.js +10 -0
  702. package/dist/src/graphql-api/current-user.decorator.js.map +1 -0
  703. package/dist/src/graphql-api/draft/draft.resolver.d.ts +14 -0
  704. package/dist/src/graphql-api/draft/draft.resolver.js +142 -0
  705. package/dist/src/graphql-api/draft/draft.resolver.js.map +1 -0
  706. package/dist/src/graphql-api/draft/input/create-row.input.d.ts +5 -0
  707. package/dist/src/graphql-api/draft/input/create-row.input.js +27 -0
  708. package/dist/src/graphql-api/draft/input/create-row.input.js.map +1 -0
  709. package/dist/src/graphql-api/draft/input/create-table.input.d.ts +6 -0
  710. package/dist/src/graphql-api/draft/input/create-table.input.js +34 -0
  711. package/dist/src/graphql-api/draft/input/create-table.input.js.map +1 -0
  712. package/dist/src/graphql-api/draft/input/index.d.ts +5 -0
  713. package/dist/src/graphql-api/draft/input/index.js +22 -0
  714. package/dist/src/graphql-api/draft/input/index.js.map +1 -0
  715. package/dist/src/graphql-api/draft/input/remove-row.input.d.ts +3 -0
  716. package/dist/src/graphql-api/draft/input/remove-row.input.js +18 -0
  717. package/dist/src/graphql-api/draft/input/remove-row.input.js.map +1 -0
  718. package/dist/src/graphql-api/draft/input/remove-table.input.d.ts +4 -0
  719. package/dist/src/graphql-api/draft/input/remove-table.input.js +28 -0
  720. package/dist/src/graphql-api/draft/input/remove-table.input.js.map +1 -0
  721. package/dist/src/graphql-api/draft/input/update-row.input.d.ts +5 -0
  722. package/dist/src/graphql-api/draft/input/update-row.input.js +27 -0
  723. package/dist/src/graphql-api/draft/input/update-row.input.js.map +1 -0
  724. package/dist/src/graphql-api/draft/input/update-table.input.d.ts +6 -0
  725. package/dist/src/graphql-api/draft/input/update-table.input.js +33 -0
  726. package/dist/src/graphql-api/draft/input/update-table.input.js.map +1 -0
  727. package/dist/src/graphql-api/draft/model/create-row-result.model.d.ts +7 -0
  728. package/dist/src/graphql-api/draft/model/create-row-result.model.js +34 -0
  729. package/dist/src/graphql-api/draft/model/create-row-result.model.js.map +1 -0
  730. package/dist/src/graphql-api/draft/model/create-table-result.model.d.ts +6 -0
  731. package/dist/src/graphql-api/draft/model/create-table-result.model.js +30 -0
  732. package/dist/src/graphql-api/draft/model/create-table-result.model.js.map +1 -0
  733. package/dist/src/graphql-api/draft/model/remove-row-result.model.d.ts +7 -0
  734. package/dist/src/graphql-api/draft/model/remove-row-result.model.js +34 -0
  735. package/dist/src/graphql-api/draft/model/remove-row-result.model.js.map +1 -0
  736. package/dist/src/graphql-api/draft/model/remove-table-result.model.d.ts +4 -0
  737. package/dist/src/graphql-api/draft/model/remove-table-result.model.js +25 -0
  738. package/dist/src/graphql-api/draft/model/remove-table-result.model.js.map +1 -0
  739. package/dist/src/graphql-api/draft/model/update-row-result.model.d.ts +8 -0
  740. package/dist/src/graphql-api/draft/model/update-row-result.model.js +38 -0
  741. package/dist/src/graphql-api/draft/model/update-row-result.model.js.map +1 -0
  742. package/dist/src/graphql-api/draft/model/update-table-result.model.d.ts +5 -0
  743. package/dist/src/graphql-api/draft/model/update-table-result.model.js +29 -0
  744. package/dist/src/graphql-api/draft/model/update-table-result.model.js.map +1 -0
  745. package/dist/src/graphql-api/endpoint/endpoint.resolver.d.ts +11 -0
  746. package/dist/src/graphql-api/endpoint/endpoint.resolver.js +83 -0
  747. package/dist/src/graphql-api/endpoint/endpoint.resolver.js.map +1 -0
  748. package/dist/src/graphql-api/endpoint/inputs/create-endpoint.input.d.ts +5 -0
  749. package/dist/src/graphql-api/endpoint/inputs/create-endpoint.input.js +29 -0
  750. package/dist/src/graphql-api/endpoint/inputs/create-endpoint.input.js.map +1 -0
  751. package/dist/src/graphql-api/endpoint/inputs/delete-endpoint.input.d.ts +3 -0
  752. package/dist/src/graphql-api/endpoint/inputs/delete-endpoint.input.js +24 -0
  753. package/dist/src/graphql-api/endpoint/inputs/delete-endpoint.input.js.map +1 -0
  754. package/dist/src/graphql-api/endpoint/inputs/get-endpoint.input.d.ts +3 -0
  755. package/dist/src/graphql-api/endpoint/inputs/get-endpoint.input.js +24 -0
  756. package/dist/src/graphql-api/endpoint/inputs/get-endpoint.input.js.map +1 -0
  757. package/dist/src/graphql-api/endpoint/inputs/index.d.ts +3 -0
  758. package/dist/src/graphql-api/endpoint/inputs/index.js +20 -0
  759. package/dist/src/graphql-api/endpoint/inputs/index.js.map +1 -0
  760. package/dist/src/graphql-api/endpoint/model/endpoint.model.d.ts +11 -0
  761. package/dist/src/graphql-api/endpoint/model/endpoint.model.js +42 -0
  762. package/dist/src/graphql-api/endpoint/model/endpoint.model.js.map +1 -0
  763. package/dist/src/graphql-api/endpoint/model/index.d.ts +1 -0
  764. package/dist/src/graphql-api/endpoint/model/index.js +18 -0
  765. package/dist/src/graphql-api/endpoint/model/index.js.map +1 -0
  766. package/dist/src/graphql-api/graphql-api.module.d.ts +2 -0
  767. package/dist/src/graphql-api/graphql-api.module.js +70 -0
  768. package/dist/src/graphql-api/graphql-api.module.js.map +1 -0
  769. package/dist/src/graphql-api/organization/inputs/add-user-to-organization.input.d.ts +6 -0
  770. package/dist/src/graphql-api/organization/inputs/add-user-to-organization.input.js +33 -0
  771. package/dist/src/graphql-api/organization/inputs/add-user-to-organization.input.js.map +1 -0
  772. package/dist/src/graphql-api/organization/inputs/get-users-organization.input.d.ts +5 -0
  773. package/dist/src/graphql-api/organization/inputs/get-users-organization.input.js +32 -0
  774. package/dist/src/graphql-api/organization/inputs/get-users-organization.input.js.map +1 -0
  775. package/dist/src/graphql-api/organization/inputs/index.d.ts +3 -0
  776. package/dist/src/graphql-api/organization/inputs/index.js +20 -0
  777. package/dist/src/graphql-api/organization/inputs/index.js.map +1 -0
  778. package/dist/src/graphql-api/organization/inputs/remove-user-from-organization.input.d.ts +4 -0
  779. package/dist/src/graphql-api/organization/inputs/remove-user-from-organization.input.js +28 -0
  780. package/dist/src/graphql-api/organization/inputs/remove-user-from-organization.input.js.map +1 -0
  781. package/dist/src/graphql-api/organization/model/users-organization.connection.d.ts +5 -0
  782. package/dist/src/graphql-api/organization/model/users-organization.connection.js +19 -0
  783. package/dist/src/graphql-api/organization/model/users-organization.connection.js.map +1 -0
  784. package/dist/src/graphql-api/organization/model/users-organization.model.d.ts +7 -0
  785. package/dist/src/graphql-api/organization/model/users-organization.model.js +34 -0
  786. package/dist/src/graphql-api/organization/model/users-organization.model.js.map +1 -0
  787. package/dist/src/graphql-api/organization/organization.resolver.d.ts +15 -0
  788. package/dist/src/graphql-api/organization/organization.resolver.js +126 -0
  789. package/dist/src/graphql-api/organization/organization.resolver.js.map +1 -0
  790. package/dist/src/graphql-api/project/inputs/add-user-to-project.input.d.ts +7 -0
  791. package/dist/src/graphql-api/project/inputs/add-user-to-project.input.js +37 -0
  792. package/dist/src/graphql-api/project/inputs/add-user-to-project.input.js.map +1 -0
  793. package/dist/src/graphql-api/project/inputs/create-project.input.d.ts +6 -0
  794. package/dist/src/graphql-api/project/inputs/create-project.input.js +36 -0
  795. package/dist/src/graphql-api/project/inputs/create-project.input.js.map +1 -0
  796. package/dist/src/graphql-api/project/inputs/delete-project.input.d.ts +4 -0
  797. package/dist/src/graphql-api/project/inputs/delete-project.input.js +28 -0
  798. package/dist/src/graphql-api/project/inputs/delete-project.input.js.map +1 -0
  799. package/dist/src/graphql-api/project/inputs/get-project-branches.input.d.ts +4 -0
  800. package/dist/src/graphql-api/project/inputs/get-project-branches.input.js +28 -0
  801. package/dist/src/graphql-api/project/inputs/get-project-branches.input.js.map +1 -0
  802. package/dist/src/graphql-api/project/inputs/get-project.input.d.ts +4 -0
  803. package/dist/src/graphql-api/project/inputs/get-project.input.js +28 -0
  804. package/dist/src/graphql-api/project/inputs/get-project.input.js.map +1 -0
  805. package/dist/src/graphql-api/project/inputs/get-projects.input.d.ts +5 -0
  806. package/dist/src/graphql-api/project/inputs/get-projects.input.js +32 -0
  807. package/dist/src/graphql-api/project/inputs/get-projects.input.js.map +1 -0
  808. package/dist/src/graphql-api/project/inputs/get-users-project.input.d.ts +6 -0
  809. package/dist/src/graphql-api/project/inputs/get-users-project.input.js +36 -0
  810. package/dist/src/graphql-api/project/inputs/get-users-project.input.js.map +1 -0
  811. package/dist/src/graphql-api/project/inputs/index.d.ts +7 -0
  812. package/dist/src/graphql-api/project/inputs/index.js +24 -0
  813. package/dist/src/graphql-api/project/inputs/index.js.map +1 -0
  814. package/dist/src/graphql-api/project/inputs/remove-user-from-project.input.d.ts +5 -0
  815. package/dist/src/graphql-api/project/inputs/remove-user-from-project.input.js +32 -0
  816. package/dist/src/graphql-api/project/inputs/remove-user-from-project.input.js.map +1 -0
  817. package/dist/src/graphql-api/project/inputs/update-project.input.d.ts +5 -0
  818. package/dist/src/graphql-api/project/inputs/update-project.input.js +32 -0
  819. package/dist/src/graphql-api/project/inputs/update-project.input.js.map +1 -0
  820. package/dist/src/graphql-api/project/model/index.d.ts +1 -0
  821. package/dist/src/graphql-api/project/model/index.js +18 -0
  822. package/dist/src/graphql-api/project/model/index.js.map +1 -0
  823. package/dist/src/graphql-api/project/model/project.model.d.ts +10 -0
  824. package/dist/src/graphql-api/project/model/project.model.js +49 -0
  825. package/dist/src/graphql-api/project/model/project.model.js.map +1 -0
  826. package/dist/src/graphql-api/project/model/projects.connection.d.ts +5 -0
  827. package/dist/src/graphql-api/project/model/projects.connection.js +19 -0
  828. package/dist/src/graphql-api/project/model/projects.connection.js.map +1 -0
  829. package/dist/src/graphql-api/project/model/users-project.connection.d.ts +5 -0
  830. package/dist/src/graphql-api/project/model/users-project.connection.js +19 -0
  831. package/dist/src/graphql-api/project/model/users-project.connection.js.map +1 -0
  832. package/dist/src/graphql-api/project/model/users-project.model.d.ts +7 -0
  833. package/dist/src/graphql-api/project/model/users-project.model.js +34 -0
  834. package/dist/src/graphql-api/project/model/users-project.model.js.map +1 -0
  835. package/dist/src/graphql-api/project/project.resolver.d.ts +17 -0
  836. package/dist/src/graphql-api/project/project.resolver.js +154 -0
  837. package/dist/src/graphql-api/project/project.resolver.js.map +1 -0
  838. package/dist/src/graphql-api/registerGraphqlEnums.d.ts +1 -0
  839. package/dist/src/graphql-api/registerGraphqlEnums.js +14 -0
  840. package/dist/src/graphql-api/registerGraphqlEnums.js.map +1 -0
  841. package/dist/src/graphql-api/revision/child-branch.resolver.d.ts +8 -0
  842. package/dist/src/graphql-api/revision/child-branch.resolver.js +51 -0
  843. package/dist/src/graphql-api/revision/child-branch.resolver.js.map +1 -0
  844. package/dist/src/graphql-api/revision/inputs/create-revision.input.d.ts +6 -0
  845. package/dist/src/graphql-api/revision/inputs/create-revision.input.js +36 -0
  846. package/dist/src/graphql-api/revision/inputs/create-revision.input.js.map +1 -0
  847. package/dist/src/graphql-api/revision/inputs/get-revision-tables.input.d.ts +4 -0
  848. package/dist/src/graphql-api/revision/inputs/get-revision-tables.input.js +28 -0
  849. package/dist/src/graphql-api/revision/inputs/get-revision-tables.input.js.map +1 -0
  850. package/dist/src/graphql-api/revision/inputs/get-revision.input.d.ts +3 -0
  851. package/dist/src/graphql-api/revision/inputs/get-revision.input.js +24 -0
  852. package/dist/src/graphql-api/revision/inputs/get-revision.input.js.map +1 -0
  853. package/dist/src/graphql-api/revision/model/child-branch.model.d.ts +6 -0
  854. package/dist/src/graphql-api/revision/model/child-branch.model.js +30 -0
  855. package/dist/src/graphql-api/revision/model/child-branch.model.js.map +1 -0
  856. package/dist/src/graphql-api/revision/model/revision.model.d.ts +24 -0
  857. package/dist/src/graphql-api/revision/model/revision.model.js +87 -0
  858. package/dist/src/graphql-api/revision/model/revision.model.js.map +1 -0
  859. package/dist/src/graphql-api/revision/revision.resolver.d.ts +19 -0
  860. package/dist/src/graphql-api/revision/revision.resolver.js +150 -0
  861. package/dist/src/graphql-api/revision/revision.resolver.js.map +1 -0
  862. package/dist/src/graphql-api/role/model/role.model.d.ts +4 -0
  863. package/dist/src/graphql-api/role/model/role.model.js +28 -0
  864. package/dist/src/graphql-api/role/model/role.model.js.map +1 -0
  865. package/dist/src/graphql-api/row/inputs/get-row-count-references-by.input.d.ts +5 -0
  866. package/dist/src/graphql-api/row/inputs/get-row-count-references-by.input.js +32 -0
  867. package/dist/src/graphql-api/row/inputs/get-row-count-references-by.input.js.map +1 -0
  868. package/dist/src/graphql-api/row/inputs/get-row-references.input.d.ts +5 -0
  869. package/dist/src/graphql-api/row/inputs/get-row-references.input.js +32 -0
  870. package/dist/src/graphql-api/row/inputs/get-row-references.input.js.map +1 -0
  871. package/dist/src/graphql-api/row/inputs/get-row.input.d.ts +5 -0
  872. package/dist/src/graphql-api/row/inputs/get-row.input.js +32 -0
  873. package/dist/src/graphql-api/row/inputs/get-row.input.js.map +1 -0
  874. package/dist/src/graphql-api/row/inputs/get-rows.input.d.ts +6 -0
  875. package/dist/src/graphql-api/row/inputs/get-rows.input.js +36 -0
  876. package/dist/src/graphql-api/row/inputs/get-rows.input.js.map +1 -0
  877. package/dist/src/graphql-api/row/inputs/index.d.ts +3 -0
  878. package/dist/src/graphql-api/row/inputs/index.js +20 -0
  879. package/dist/src/graphql-api/row/inputs/index.js.map +1 -0
  880. package/dist/src/graphql-api/row/model/row-reference.model.d.ts +6 -0
  881. package/dist/src/graphql-api/row/model/row-reference.model.js +30 -0
  882. package/dist/src/graphql-api/row/model/row-reference.model.js.map +1 -0
  883. package/dist/src/graphql-api/row/model/row-references-connection.model.d.ts +5 -0
  884. package/dist/src/graphql-api/row/model/row-references-connection.model.js +19 -0
  885. package/dist/src/graphql-api/row/model/row-references-connection.model.js.map +1 -0
  886. package/dist/src/graphql-api/row/model/row.model.d.ts +17 -0
  887. package/dist/src/graphql-api/row/model/row.model.js +55 -0
  888. package/dist/src/graphql-api/row/model/row.model.js.map +1 -0
  889. package/dist/src/graphql-api/row/model/rows-connection.model.d.ts +5 -0
  890. package/dist/src/graphql-api/row/model/rows-connection.model.js +19 -0
  891. package/dist/src/graphql-api/row/model/rows-connection.model.js.map +1 -0
  892. package/dist/src/graphql-api/row/row.resolver.d.ts +16 -0
  893. package/dist/src/graphql-api/row/row.resolver.js +128 -0
  894. package/dist/src/graphql-api/row/row.resolver.js.map +1 -0
  895. package/dist/src/graphql-api/share/model/paginated.model.d.ts +9 -0
  896. package/dist/src/graphql-api/share/model/paginated.model.js +70 -0
  897. package/dist/src/graphql-api/share/model/paginated.model.js.map +1 -0
  898. package/dist/src/graphql-api/table/inputs/get-table-references.input.d.ts +4 -0
  899. package/dist/src/graphql-api/table/inputs/get-table-references.input.js +28 -0
  900. package/dist/src/graphql-api/table/inputs/get-table-references.input.js.map +1 -0
  901. package/dist/src/graphql-api/table/inputs/get-table-rows.input.d.ts +4 -0
  902. package/dist/src/graphql-api/table/inputs/get-table-rows.input.js +28 -0
  903. package/dist/src/graphql-api/table/inputs/get-table-rows.input.js.map +1 -0
  904. package/dist/src/graphql-api/table/inputs/get-table.input.d.ts +4 -0
  905. package/dist/src/graphql-api/table/inputs/get-table.input.js +28 -0
  906. package/dist/src/graphql-api/table/inputs/get-table.input.js.map +1 -0
  907. package/dist/src/graphql-api/table/inputs/get-tables.input.d.ts +5 -0
  908. package/dist/src/graphql-api/table/inputs/get-tables.input.js +32 -0
  909. package/dist/src/graphql-api/table/inputs/get-tables.input.js.map +1 -0
  910. package/dist/src/graphql-api/table/model/table-connection.model.d.ts +5 -0
  911. package/dist/src/graphql-api/table/model/table-connection.model.js +19 -0
  912. package/dist/src/graphql-api/table/model/table-connection.model.js.map +1 -0
  913. package/dist/src/graphql-api/table/model/table.model.d.ts +20 -0
  914. package/dist/src/graphql-api/table/model/table.model.js +68 -0
  915. package/dist/src/graphql-api/table/model/table.model.js.map +1 -0
  916. package/dist/src/graphql-api/table/table.resolver.d.ts +20 -0
  917. package/dist/src/graphql-api/table/table.resolver.js +166 -0
  918. package/dist/src/graphql-api/table/table.resolver.js.map +1 -0
  919. package/dist/src/graphql-api/user/inputs/index.d.ts +3 -0
  920. package/dist/src/graphql-api/user/inputs/index.js +20 -0
  921. package/dist/src/graphql-api/user/inputs/index.js.map +1 -0
  922. package/dist/src/graphql-api/user/inputs/me-projects.input.d.ts +4 -0
  923. package/dist/src/graphql-api/user/inputs/me-projects.input.js +28 -0
  924. package/dist/src/graphql-api/user/inputs/me-projects.input.js.map +1 -0
  925. package/dist/src/graphql-api/user/inputs/set-username.input.d.ts +3 -0
  926. package/dist/src/graphql-api/user/inputs/set-username.input.js +24 -0
  927. package/dist/src/graphql-api/user/inputs/set-username.input.js.map +1 -0
  928. package/dist/src/graphql-api/user/inputs/update-password.input.d.ts +4 -0
  929. package/dist/src/graphql-api/user/inputs/update-password.input.js +28 -0
  930. package/dist/src/graphql-api/user/inputs/update-password.input.js.map +1 -0
  931. package/dist/src/graphql-api/user/model/user.model.d.ts +6 -0
  932. package/dist/src/graphql-api/user/model/user.model.js +36 -0
  933. package/dist/src/graphql-api/user/model/user.model.js.map +1 -0
  934. package/dist/src/graphql-api/user/user.resolver.d.ts +15 -0
  935. package/dist/src/graphql-api/user/user.resolver.js +104 -0
  936. package/dist/src/graphql-api/user/user.resolver.js.map +1 -0
  937. package/dist/src/health/health.controller.d.ts +3 -0
  938. package/dist/src/health/health.controller.js +31 -0
  939. package/dist/src/health/health.controller.js.map +1 -0
  940. package/dist/src/health/health.module.d.ts +2 -0
  941. package/dist/src/health/health.module.js +18 -0
  942. package/dist/src/health/health.module.js.map +1 -0
  943. package/dist/src/index.d.ts +2 -0
  944. package/dist/src/index.js +8 -0
  945. package/dist/src/index.js.map +1 -0
  946. package/dist/src/main.d.ts +1 -0
  947. package/dist/src/main.js +41 -0
  948. package/dist/src/main.js.map +1 -0
  949. package/dist/src/notification/endpoint-notification.service.d.ts +10 -0
  950. package/dist/src/notification/endpoint-notification.service.js +46 -0
  951. package/dist/src/notification/endpoint-notification.service.js.map +1 -0
  952. package/dist/src/notification/in-memory-client.d.ts +10 -0
  953. package/dist/src/notification/in-memory-client.js +23 -0
  954. package/dist/src/notification/in-memory-client.js.map +1 -0
  955. package/dist/src/notification/notification-event-emitter.d.ts +2 -0
  956. package/dist/src/notification/notification-event-emitter.js +6 -0
  957. package/dist/src/notification/notification-event-emitter.js.map +1 -0
  958. package/dist/src/notification/notification.module.d.ts +2 -0
  959. package/dist/src/notification/notification.module.js +56 -0
  960. package/dist/src/notification/notification.module.js.map +1 -0
  961. package/dist/src/organization/commands/handlers/add-user-to-organization.handler.d.ts +12 -0
  962. package/dist/src/organization/commands/handlers/add-user-to-organization.handler.js +66 -0
  963. package/dist/src/organization/commands/handlers/add-user-to-organization.handler.js.map +1 -0
  964. package/dist/src/organization/commands/handlers/index.d.ts +2 -0
  965. package/dist/src/organization/commands/handlers/index.js +19 -0
  966. package/dist/src/organization/commands/handlers/index.js.map +1 -0
  967. package/dist/src/organization/commands/handlers/remove-user-from-organization.handler.d.ts +11 -0
  968. package/dist/src/organization/commands/handlers/remove-user-from-organization.handler.js +67 -0
  969. package/dist/src/organization/commands/handlers/remove-user-from-organization.handler.js.map +1 -0
  970. package/dist/src/organization/commands/impl/add-user-to-organization.command.d.ts +14 -0
  971. package/dist/src/organization/commands/impl/add-user-to-organization.command.js +10 -0
  972. package/dist/src/organization/commands/impl/add-user-to-organization.command.js.map +1 -0
  973. package/dist/src/organization/commands/impl/index.d.ts +2 -0
  974. package/dist/src/organization/commands/impl/index.js +19 -0
  975. package/dist/src/organization/commands/impl/index.js.map +1 -0
  976. package/dist/src/organization/commands/impl/remove-user-from-organization.command.d.ts +11 -0
  977. package/dist/src/organization/commands/impl/remove-user-from-organization.command.js +10 -0
  978. package/dist/src/organization/commands/impl/remove-user-from-organization.command.js.map +1 -0
  979. package/dist/src/organization/commands/index.d.ts +2 -0
  980. package/dist/src/organization/commands/index.js +9 -0
  981. package/dist/src/organization/commands/index.js.map +1 -0
  982. package/dist/src/organization/organization.module.d.ts +2 -0
  983. package/dist/src/organization/organization.module.js +24 -0
  984. package/dist/src/organization/organization.module.js.map +1 -0
  985. package/dist/src/organization/queries/handlers/get-projects-by-organization-id.handler.d.ts +17 -0
  986. package/dist/src/organization/queries/handlers/get-projects-by-organization-id.handler.js +70 -0
  987. package/dist/src/organization/queries/handlers/get-projects-by-organization-id.handler.js.map +1 -0
  988. package/dist/src/organization/queries/handlers/get-users-organization.handler.d.ts +30 -0
  989. package/dist/src/organization/queries/handlers/get-users-organization.handler.js +58 -0
  990. package/dist/src/organization/queries/handlers/get-users-organization.handler.js.map +1 -0
  991. package/dist/src/organization/queries/handlers/index.d.ts +1 -0
  992. package/dist/src/organization/queries/handlers/index.js +18 -0
  993. package/dist/src/organization/queries/handlers/index.js.map +1 -0
  994. package/dist/src/organization/queries/impl/get-projects-by-organization-id.query.d.ts +17 -0
  995. package/dist/src/organization/queries/impl/get-projects-by-organization-id.query.js +10 -0
  996. package/dist/src/organization/queries/impl/get-projects-by-organization-id.query.js.map +1 -0
  997. package/dist/src/organization/queries/impl/get-users-organization.query.d.ts +19 -0
  998. package/dist/src/organization/queries/impl/get-users-organization.query.js +10 -0
  999. package/dist/src/organization/queries/impl/get-users-organization.query.js.map +1 -0
  1000. package/dist/src/organization/queries/impl/index.d.ts +2 -0
  1001. package/dist/src/organization/queries/impl/index.js +19 -0
  1002. package/dist/src/organization/queries/impl/index.js.map +1 -0
  1003. package/dist/src/organization/queries/index.d.ts +3 -0
  1004. package/dist/src/organization/queries/index.js +10 -0
  1005. package/dist/src/organization/queries/index.js.map +1 -0
  1006. package/dist/src/project/commands/handlers/add-user-to-project.handler.d.ts +13 -0
  1007. package/dist/src/project/commands/handlers/add-user-to-project.handler.js +86 -0
  1008. package/dist/src/project/commands/handlers/add-user-to-project.handler.js.map +1 -0
  1009. package/dist/src/project/commands/handlers/api-create-project.handler.d.ts +8 -0
  1010. package/dist/src/project/commands/handlers/api-create-project.handler.js +32 -0
  1011. package/dist/src/project/commands/handlers/api-create-project.handler.js.map +1 -0
  1012. package/dist/src/project/commands/handlers/create-project.handler.d.ts +38 -0
  1013. package/dist/src/project/commands/handlers/create-project.handler.js +176 -0
  1014. package/dist/src/project/commands/handlers/create-project.handler.js.map +1 -0
  1015. package/dist/src/project/commands/handlers/delete-project.handler.d.ts +17 -0
  1016. package/dist/src/project/commands/handlers/delete-project.handler.js +73 -0
  1017. package/dist/src/project/commands/handlers/delete-project.handler.js.map +1 -0
  1018. package/dist/src/project/commands/handlers/index.d.ts +7 -0
  1019. package/dist/src/project/commands/handlers/index.js +18 -0
  1020. package/dist/src/project/commands/handlers/index.js.map +1 -0
  1021. package/dist/src/project/commands/handlers/remove-user-from-project.handler.d.ts +11 -0
  1022. package/dist/src/project/commands/handlers/remove-user-from-project.handler.js +68 -0
  1023. package/dist/src/project/commands/handlers/remove-user-from-project.handler.js.map +1 -0
  1024. package/dist/src/project/commands/handlers/update-project.handler.d.ts +13 -0
  1025. package/dist/src/project/commands/handlers/update-project.handler.js +52 -0
  1026. package/dist/src/project/commands/handlers/update-project.handler.js.map +1 -0
  1027. package/dist/src/project/commands/impl/add-user-to-project.command.d.ts +16 -0
  1028. package/dist/src/project/commands/impl/add-user-to-project.command.js +10 -0
  1029. package/dist/src/project/commands/impl/add-user-to-project.command.js.map +1 -0
  1030. package/dist/src/project/commands/impl/api-create-project.command.d.ts +14 -0
  1031. package/dist/src/project/commands/impl/api-create-project.command.js +10 -0
  1032. package/dist/src/project/commands/impl/api-create-project.command.js.map +1 -0
  1033. package/dist/src/project/commands/impl/create-project.command.d.ts +14 -0
  1034. package/dist/src/project/commands/impl/create-project.command.js +10 -0
  1035. package/dist/src/project/commands/impl/create-project.command.js.map +1 -0
  1036. package/dist/src/project/commands/impl/delete-project.command.d.ts +10 -0
  1037. package/dist/src/project/commands/impl/delete-project.command.js +10 -0
  1038. package/dist/src/project/commands/impl/delete-project.command.js.map +1 -0
  1039. package/dist/src/project/commands/impl/index.d.ts +6 -0
  1040. package/dist/src/project/commands/impl/index.js +23 -0
  1041. package/dist/src/project/commands/impl/index.js.map +1 -0
  1042. package/dist/src/project/commands/impl/remove-user-from-project.command.d.ts +13 -0
  1043. package/dist/src/project/commands/impl/remove-user-from-project.command.js +10 -0
  1044. package/dist/src/project/commands/impl/remove-user-from-project.command.js.map +1 -0
  1045. package/dist/src/project/commands/impl/update-project.command.d.ts +12 -0
  1046. package/dist/src/project/commands/impl/update-project.command.js +10 -0
  1047. package/dist/src/project/commands/impl/update-project.command.js.map +1 -0
  1048. package/dist/src/project/project.module.d.ts +2 -0
  1049. package/dist/src/project/project.module.js +34 -0
  1050. package/dist/src/project/project.module.js.map +1 -0
  1051. package/dist/src/project/queries/handlers/get-all-branches-by-project.handler.d.ts +16 -0
  1052. package/dist/src/project/queries/handlers/get-all-branches-by-project.handler.js +47 -0
  1053. package/dist/src/project/queries/handlers/get-all-branches-by-project.handler.js.map +1 -0
  1054. package/dist/src/project/queries/handlers/get-project-by-id.handler.d.ts +14 -0
  1055. package/dist/src/project/queries/handlers/get-project-by-id.handler.js +31 -0
  1056. package/dist/src/project/queries/handlers/get-project-by-id.handler.js.map +1 -0
  1057. package/dist/src/project/queries/handlers/get-project.handler.d.ts +12 -0
  1058. package/dist/src/project/queries/handlers/get-project.handler.js +44 -0
  1059. package/dist/src/project/queries/handlers/get-project.handler.js.map +1 -0
  1060. package/dist/src/project/queries/handlers/get-root-branch-by-project.handler.d.ts +14 -0
  1061. package/dist/src/project/queries/handlers/get-root-branch-by-project.handler.js +31 -0
  1062. package/dist/src/project/queries/handlers/get-root-branch-by-project.handler.js.map +1 -0
  1063. package/dist/src/project/queries/handlers/get-users-project.handler.d.ts +30 -0
  1064. package/dist/src/project/queries/handlers/get-users-project.handler.js +61 -0
  1065. package/dist/src/project/queries/handlers/get-users-project.handler.js.map +1 -0
  1066. package/dist/src/project/queries/handlers/index.d.ts +6 -0
  1067. package/dist/src/project/queries/handlers/index.js +16 -0
  1068. package/dist/src/project/queries/handlers/index.js.map +1 -0
  1069. package/dist/src/project/queries/impl/get-all-branches-by-project.query.d.ts +12 -0
  1070. package/dist/src/project/queries/impl/get-all-branches-by-project.query.js +10 -0
  1071. package/dist/src/project/queries/impl/get-all-branches-by-project.query.js.map +1 -0
  1072. package/dist/src/project/queries/impl/get-project-by-id.query.d.ts +8 -0
  1073. package/dist/src/project/queries/impl/get-project-by-id.query.js +10 -0
  1074. package/dist/src/project/queries/impl/get-project-by-id.query.js.map +1 -0
  1075. package/dist/src/project/queries/impl/get-project.query.d.ts +10 -0
  1076. package/dist/src/project/queries/impl/get-project.query.js +10 -0
  1077. package/dist/src/project/queries/impl/get-project.query.js.map +1 -0
  1078. package/dist/src/project/queries/impl/get-root-branch-by-project.query.d.ts +4 -0
  1079. package/dist/src/project/queries/impl/get-root-branch-by-project.query.js +10 -0
  1080. package/dist/src/project/queries/impl/get-root-branch-by-project.query.js.map +1 -0
  1081. package/dist/src/project/queries/impl/get-users-project.query.d.ts +21 -0
  1082. package/dist/src/project/queries/impl/get-users-project.query.js +10 -0
  1083. package/dist/src/project/queries/impl/get-users-project.query.js.map +1 -0
  1084. package/dist/src/project/queries/impl/index.d.ts +5 -0
  1085. package/dist/src/project/queries/impl/index.js +22 -0
  1086. package/dist/src/project/queries/impl/index.js.map +1 -0
  1087. package/dist/src/rest-api/auth/auth.controller.d.ts +13 -0
  1088. package/dist/src/rest-api/auth/auth.controller.js +84 -0
  1089. package/dist/src/rest-api/auth/auth.controller.js.map +1 -0
  1090. package/dist/src/rest-api/auth/dto/create-user.dto.d.ts +7 -0
  1091. package/dist/src/rest-api/auth/dto/create-user.dto.js +34 -0
  1092. package/dist/src/rest-api/auth/dto/create-user.dto.js.map +1 -0
  1093. package/dist/src/rest-api/auth/dto/index.d.ts +2 -0
  1094. package/dist/src/rest-api/auth/dto/index.js +19 -0
  1095. package/dist/src/rest-api/auth/dto/index.js.map +1 -0
  1096. package/dist/src/rest-api/auth/dto/login.dto.d.ts +4 -0
  1097. package/dist/src/rest-api/auth/dto/login.dto.js +25 -0
  1098. package/dist/src/rest-api/auth/dto/login.dto.js.map +1 -0
  1099. package/dist/src/rest-api/auth/dto/update-password.dto.d.ts +4 -0
  1100. package/dist/src/rest-api/auth/dto/update-password.dto.js +25 -0
  1101. package/dist/src/rest-api/auth/dto/update-password.dto.js.map +1 -0
  1102. package/dist/src/rest-api/auth/model/index.d.ts +1 -0
  1103. package/dist/src/rest-api/auth/model/index.js +18 -0
  1104. package/dist/src/rest-api/auth/model/index.js.map +1 -0
  1105. package/dist/src/rest-api/auth/model/login.response.d.ts +3 -0
  1106. package/dist/src/rest-api/auth/model/login.response.js +21 -0
  1107. package/dist/src/rest-api/auth/model/login.response.js.map +1 -0
  1108. package/dist/src/rest-api/branch/branch-by-name.controller.d.ts +19 -0
  1109. package/dist/src/rest-api/branch/branch-by-name.controller.js +223 -0
  1110. package/dist/src/rest-api/branch/branch-by-name.controller.js.map +1 -0
  1111. package/dist/src/rest-api/branch/dto/create-branch-by-revision.dto.d.ts +3 -0
  1112. package/dist/src/rest-api/branch/dto/create-branch-by-revision.dto.js +21 -0
  1113. package/dist/src/rest-api/branch/dto/create-branch-by-revision.dto.js.map +1 -0
  1114. package/dist/src/rest-api/branch/dto/create-revision.dto.d.ts +3 -0
  1115. package/dist/src/rest-api/branch/dto/create-revision.dto.js +21 -0
  1116. package/dist/src/rest-api/branch/dto/create-revision.dto.js.map +1 -0
  1117. package/dist/src/rest-api/branch/dto/get-branch-revisions.dto.d.ts +5 -0
  1118. package/dist/src/rest-api/branch/dto/get-branch-revisions.dto.js +34 -0
  1119. package/dist/src/rest-api/branch/dto/get-branch-revisions.dto.js.map +1 -0
  1120. package/dist/src/rest-api/branch/dto/index.d.ts +3 -0
  1121. package/dist/src/rest-api/branch/dto/index.js +20 -0
  1122. package/dist/src/rest-api/branch/dto/index.js.map +1 -0
  1123. package/dist/src/rest-api/branch/model/branch.model.d.ts +11 -0
  1124. package/dist/src/rest-api/branch/model/branch.model.js +41 -0
  1125. package/dist/src/rest-api/branch/model/branch.model.js.map +1 -0
  1126. package/dist/src/rest-api/branch/model/index.d.ts +2 -0
  1127. package/dist/src/rest-api/branch/model/index.js +19 -0
  1128. package/dist/src/rest-api/branch/model/index.js.map +1 -0
  1129. package/dist/src/rest-api/branch/model/parent-branch.response.d.ts +8 -0
  1130. package/dist/src/rest-api/branch/model/parent-branch.response.js +31 -0
  1131. package/dist/src/rest-api/branch/model/parent-branch.response.js.map +1 -0
  1132. package/dist/src/rest-api/configuration/configuration.controller.d.ts +7 -0
  1133. package/dist/src/rest-api/configuration/configuration.controller.js +40 -0
  1134. package/dist/src/rest-api/configuration/configuration.controller.js.map +1 -0
  1135. package/dist/src/rest-api/configuration/model/configuration.response.d.ts +14 -0
  1136. package/dist/src/rest-api/configuration/model/configuration.response.js +49 -0
  1137. package/dist/src/rest-api/configuration/model/configuration.response.js.map +1 -0
  1138. package/dist/src/rest-api/configuration/model/index.d.ts +1 -0
  1139. package/dist/src/rest-api/configuration/model/index.js +18 -0
  1140. package/dist/src/rest-api/configuration/model/index.js.map +1 -0
  1141. package/dist/src/rest-api/endpoint/endpointByIdController.d.ts +6 -0
  1142. package/dist/src/rest-api/endpoint/endpointByIdController.js +58 -0
  1143. package/dist/src/rest-api/endpoint/endpointByIdController.js.map +1 -0
  1144. package/dist/src/rest-api/endpoint/model/endpoint.model.d.ts +6 -0
  1145. package/dist/src/rest-api/endpoint/model/endpoint.model.js +30 -0
  1146. package/dist/src/rest-api/endpoint/model/endpoint.model.js.map +1 -0
  1147. package/dist/src/rest-api/endpoint/model/index.d.ts +1 -0
  1148. package/dist/src/rest-api/endpoint/model/index.js +18 -0
  1149. package/dist/src/rest-api/endpoint/model/index.js.map +1 -0
  1150. package/dist/src/rest-api/organization/dto/add-user-to-organization.dto.d.ts +5 -0
  1151. package/dist/src/rest-api/organization/dto/add-user-to-organization.dto.js +26 -0
  1152. package/dist/src/rest-api/organization/dto/add-user-to-organization.dto.js.map +1 -0
  1153. package/dist/src/rest-api/organization/dto/create-project.dto.d.ts +4 -0
  1154. package/dist/src/rest-api/organization/dto/create-project.dto.js +25 -0
  1155. package/dist/src/rest-api/organization/dto/create-project.dto.js.map +1 -0
  1156. package/dist/src/rest-api/organization/dto/get-projects.dto.d.ts +4 -0
  1157. package/dist/src/rest-api/organization/dto/get-projects.dto.js +30 -0
  1158. package/dist/src/rest-api/organization/dto/get-projects.dto.js.map +1 -0
  1159. package/dist/src/rest-api/organization/dto/get-users-organization.dto.d.ts +4 -0
  1160. package/dist/src/rest-api/organization/dto/get-users-organization.dto.js +30 -0
  1161. package/dist/src/rest-api/organization/dto/get-users-organization.dto.js.map +1 -0
  1162. package/dist/src/rest-api/organization/dto/index.d.ts +5 -0
  1163. package/dist/src/rest-api/organization/dto/index.js +22 -0
  1164. package/dist/src/rest-api/organization/dto/index.js.map +1 -0
  1165. package/dist/src/rest-api/organization/dto/remove-user-from-organization.dto.d.ts +3 -0
  1166. package/dist/src/rest-api/organization/dto/remove-user-from-organization.dto.js +21 -0
  1167. package/dist/src/rest-api/organization/dto/remove-user-from-organization.dto.js.map +1 -0
  1168. package/dist/src/rest-api/organization/model/index.d.ts +3 -0
  1169. package/dist/src/rest-api/organization/model/index.js +20 -0
  1170. package/dist/src/rest-api/organization/model/index.js.map +1 -0
  1171. package/dist/src/rest-api/organization/model/project.connection.d.ts +4 -0
  1172. package/dist/src/rest-api/organization/model/project.connection.js +9 -0
  1173. package/dist/src/rest-api/organization/model/project.connection.js.map +1 -0
  1174. package/dist/src/rest-api/organization/model/users-organization.connection.d.ts +4 -0
  1175. package/dist/src/rest-api/organization/model/users-organization.connection.js +9 -0
  1176. package/dist/src/rest-api/organization/model/users-organization.connection.js.map +1 -0
  1177. package/dist/src/rest-api/organization/model/users-organization.model.d.ts +7 -0
  1178. package/dist/src/rest-api/organization/model/users-organization.model.js +31 -0
  1179. package/dist/src/rest-api/organization/model/users-organization.model.js.map +1 -0
  1180. package/dist/src/rest-api/organization/organization.controller.d.ts +16 -0
  1181. package/dist/src/rest-api/organization/organization.controller.js +145 -0
  1182. package/dist/src/rest-api/organization/organization.controller.js.map +1 -0
  1183. package/dist/src/rest-api/project/dto/add-user-to-project.dto.d.ts +5 -0
  1184. package/dist/src/rest-api/project/dto/add-user-to-project.dto.js +26 -0
  1185. package/dist/src/rest-api/project/dto/add-user-to-project.dto.js.map +1 -0
  1186. package/dist/src/rest-api/project/dto/get-project-branches.dto.d.ts +4 -0
  1187. package/dist/src/rest-api/project/dto/get-project-branches.dto.js +30 -0
  1188. package/dist/src/rest-api/project/dto/get-project-branches.dto.js.map +1 -0
  1189. package/dist/src/rest-api/project/dto/get-users-project.dto.d.ts +4 -0
  1190. package/dist/src/rest-api/project/dto/get-users-project.dto.js +30 -0
  1191. package/dist/src/rest-api/project/dto/get-users-project.dto.js.map +1 -0
  1192. package/dist/src/rest-api/project/dto/update-project.dto.d.ts +3 -0
  1193. package/dist/src/rest-api/project/dto/update-project.dto.js +21 -0
  1194. package/dist/src/rest-api/project/dto/update-project.dto.js.map +1 -0
  1195. package/dist/src/rest-api/project/model/index.d.ts +3 -0
  1196. package/dist/src/rest-api/project/model/index.js +20 -0
  1197. package/dist/src/rest-api/project/model/index.js.map +1 -0
  1198. package/dist/src/rest-api/project/model/project.model.d.ts +6 -0
  1199. package/dist/src/rest-api/project/model/project.model.js +33 -0
  1200. package/dist/src/rest-api/project/model/project.model.js.map +1 -0
  1201. package/dist/src/rest-api/project/model/users-project.connection.d.ts +4 -0
  1202. package/dist/src/rest-api/project/model/users-project.connection.js +9 -0
  1203. package/dist/src/rest-api/project/model/users-project.connection.js.map +1 -0
  1204. package/dist/src/rest-api/project/model/users-project.model.d.ts +7 -0
  1205. package/dist/src/rest-api/project/model/users-project.model.js +31 -0
  1206. package/dist/src/rest-api/project/model/users-project.model.js.map +1 -0
  1207. package/dist/src/rest-api/project/project.controller.d.ts +19 -0
  1208. package/dist/src/rest-api/project/project.controller.js +204 -0
  1209. package/dist/src/rest-api/project/project.controller.js.map +1 -0
  1210. package/dist/src/rest-api/rest-api.module.d.ts +2 -0
  1211. package/dist/src/rest-api/rest-api.module.js +43 -0
  1212. package/dist/src/rest-api/rest-api.module.js.map +1 -0
  1213. package/dist/src/rest-api/revision/dto/create-endpoint.dto.d.ts +4 -0
  1214. package/dist/src/rest-api/revision/dto/create-endpoint.dto.js +22 -0
  1215. package/dist/src/rest-api/revision/dto/create-endpoint.dto.js.map +1 -0
  1216. package/dist/src/rest-api/revision/dto/create-table.dto.d.ts +5 -0
  1217. package/dist/src/rest-api/revision/dto/create-table.dto.js +26 -0
  1218. package/dist/src/rest-api/revision/dto/create-table.dto.js.map +1 -0
  1219. package/dist/src/rest-api/revision/dto/get-revision-tables.dto.d.ts +4 -0
  1220. package/dist/src/rest-api/revision/dto/get-revision-tables.dto.js +30 -0
  1221. package/dist/src/rest-api/revision/dto/get-revision-tables.dto.js.map +1 -0
  1222. package/dist/src/rest-api/revision/dto/index.d.ts +3 -0
  1223. package/dist/src/rest-api/revision/dto/index.js +20 -0
  1224. package/dist/src/rest-api/revision/dto/index.js.map +1 -0
  1225. package/dist/src/rest-api/revision/model/child-branches.response.d.ts +8 -0
  1226. package/dist/src/rest-api/revision/model/child-branches.response.js +31 -0
  1227. package/dist/src/rest-api/revision/model/child-branches.response.js.map +1 -0
  1228. package/dist/src/rest-api/revision/model/create-table.response.d.ts +6 -0
  1229. package/dist/src/rest-api/revision/model/create-table.response.js +27 -0
  1230. package/dist/src/rest-api/revision/model/create-table.response.js.map +1 -0
  1231. package/dist/src/rest-api/revision/model/index.d.ts +2 -0
  1232. package/dist/src/rest-api/revision/model/index.js +19 -0
  1233. package/dist/src/rest-api/revision/model/index.js.map +1 -0
  1234. package/dist/src/rest-api/revision/model/revision.model.d.ts +10 -0
  1235. package/dist/src/rest-api/revision/model/revision.model.js +37 -0
  1236. package/dist/src/rest-api/revision/model/revision.model.js.map +1 -0
  1237. package/dist/src/rest-api/revision/revision-by-id.controller.d.ts +21 -0
  1238. package/dist/src/rest-api/revision/revision-by-id.controller.js +211 -0
  1239. package/dist/src/rest-api/revision/revision-by-id.controller.js.map +1 -0
  1240. package/dist/src/rest-api/role/model/index.d.ts +1 -0
  1241. package/dist/src/rest-api/role/model/index.js +18 -0
  1242. package/dist/src/rest-api/role/model/index.js.map +1 -0
  1243. package/dist/src/rest-api/role/model/role.model.d.ts +4 -0
  1244. package/dist/src/rest-api/role/model/role.model.js +25 -0
  1245. package/dist/src/rest-api/role/model/role.model.js.map +1 -0
  1246. package/dist/src/rest-api/row/dto/get-row-references-by.dto.d.ts +5 -0
  1247. package/dist/src/rest-api/row/dto/get-row-references-by.dto.js +34 -0
  1248. package/dist/src/rest-api/row/dto/get-row-references-by.dto.js.map +1 -0
  1249. package/dist/src/rest-api/row/dto/get-row-references-to.dto.d.ts +5 -0
  1250. package/dist/src/rest-api/row/dto/get-row-references-to.dto.js +34 -0
  1251. package/dist/src/rest-api/row/dto/get-row-references-to.dto.js.map +1 -0
  1252. package/dist/src/rest-api/row/dto/index.d.ts +2 -0
  1253. package/dist/src/rest-api/row/dto/index.js +19 -0
  1254. package/dist/src/rest-api/row/dto/index.js.map +1 -0
  1255. package/dist/src/rest-api/row/dto/update-row.dto.d.ts +4 -0
  1256. package/dist/src/rest-api/row/dto/update-row.dto.js +22 -0
  1257. package/dist/src/rest-api/row/dto/update-row.dto.js.map +1 -0
  1258. package/dist/src/rest-api/row/model/index.d.ts +3 -0
  1259. package/dist/src/rest-api/row/model/index.js +20 -0
  1260. package/dist/src/rest-api/row/model/index.js.map +1 -0
  1261. package/dist/src/rest-api/row/model/remove-row.response.d.ts +7 -0
  1262. package/dist/src/rest-api/row/model/remove-row.response.js +31 -0
  1263. package/dist/src/rest-api/row/model/remove-row.response.js.map +1 -0
  1264. package/dist/src/rest-api/row/model/row.model.d.ts +12 -0
  1265. package/dist/src/rest-api/row/model/row.model.js +42 -0
  1266. package/dist/src/rest-api/row/model/row.model.js.map +1 -0
  1267. package/dist/src/rest-api/row/model/update-row.response.d.ts +8 -0
  1268. package/dist/src/rest-api/row/model/update-row.response.js +35 -0
  1269. package/dist/src/rest-api/row/model/update-row.response.js.map +1 -0
  1270. package/dist/src/rest-api/row/row-by-id.controller.d.ts +17 -0
  1271. package/dist/src/rest-api/row/row-by-id.controller.js +209 -0
  1272. package/dist/src/rest-api/row/row-by-id.controller.js.map +1 -0
  1273. package/dist/src/rest-api/share/model/paginated.model.d.ts +8 -0
  1274. package/dist/src/rest-api/share/model/paginated.model.js +69 -0
  1275. package/dist/src/rest-api/share/model/paginated.model.js.map +1 -0
  1276. package/dist/src/rest-api/share/utils/transformFromPrismaToBranchModel.d.ts +3 -0
  1277. package/dist/src/rest-api/share/utils/transformFromPrismaToBranchModel.js +10 -0
  1278. package/dist/src/rest-api/share/utils/transformFromPrismaToBranchModel.js.map +1 -0
  1279. package/dist/src/rest-api/share/utils/transformFromPrismaToEndpointsModel.d.ts +4 -0
  1280. package/dist/src/rest-api/share/utils/transformFromPrismaToEndpointsModel.js +16 -0
  1281. package/dist/src/rest-api/share/utils/transformFromPrismaToEndpointsModel.js.map +1 -0
  1282. package/dist/src/rest-api/share/utils/transformFromPrismaToRevisionModel.d.ts +5 -0
  1283. package/dist/src/rest-api/share/utils/transformFromPrismaToRevisionModel.js +24 -0
  1284. package/dist/src/rest-api/share/utils/transformFromPrismaToRevisionModel.js.map +1 -0
  1285. package/dist/src/rest-api/share/utils/transformFromPrismaToRowModel.d.ts +5 -0
  1286. package/dist/src/rest-api/share/utils/transformFromPrismaToRowModel.js +25 -0
  1287. package/dist/src/rest-api/share/utils/transformFromPrismaToRowModel.js.map +1 -0
  1288. package/dist/src/rest-api/share/utils/transformFromPrismaToTableModel.d.ts +5 -0
  1289. package/dist/src/rest-api/share/utils/transformFromPrismaToTableModel.js +24 -0
  1290. package/dist/src/rest-api/share/utils/transformFromPrismaToTableModel.js.map +1 -0
  1291. package/dist/src/rest-api/share/utils/transformFromPrismaToUserOrganizationModel.d.ts +5 -0
  1292. package/dist/src/rest-api/share/utils/transformFromPrismaToUserOrganizationModel.js +30 -0
  1293. package/dist/src/rest-api/share/utils/transformFromPrismaToUserOrganizationModel.js.map +1 -0
  1294. package/dist/src/rest-api/share/utils/transformFromPrismaToUserProjectModel.d.ts +5 -0
  1295. package/dist/src/rest-api/share/utils/transformFromPrismaToUserProjectModel.js +30 -0
  1296. package/dist/src/rest-api/share/utils/transformFromPrismaToUserProjectModel.js.map +1 -0
  1297. package/dist/src/rest-api/table/dto/create-row.dto.d.ts +5 -0
  1298. package/dist/src/rest-api/table/dto/create-row.dto.js +26 -0
  1299. package/dist/src/rest-api/table/dto/create-row.dto.js.map +1 -0
  1300. package/dist/src/rest-api/table/dto/get-table-references-by.dto.d.ts +4 -0
  1301. package/dist/src/rest-api/table/dto/get-table-references-by.dto.js +30 -0
  1302. package/dist/src/rest-api/table/dto/get-table-references-by.dto.js.map +1 -0
  1303. package/dist/src/rest-api/table/dto/get-table-references-to.dto.d.ts +4 -0
  1304. package/dist/src/rest-api/table/dto/get-table-references-to.dto.js +30 -0
  1305. package/dist/src/rest-api/table/dto/get-table-references-to.dto.js.map +1 -0
  1306. package/dist/src/rest-api/table/dto/get-table-rows.dto.d.ts +4 -0
  1307. package/dist/src/rest-api/table/dto/get-table-rows.dto.js +30 -0
  1308. package/dist/src/rest-api/table/dto/get-table-rows.dto.js.map +1 -0
  1309. package/dist/src/rest-api/table/dto/index.d.ts +5 -0
  1310. package/dist/src/rest-api/table/dto/index.js +22 -0
  1311. package/dist/src/rest-api/table/dto/index.js.map +1 -0
  1312. package/dist/src/rest-api/table/dto/update-table.dto.d.ts +4 -0
  1313. package/dist/src/rest-api/table/dto/update-table.dto.js +21 -0
  1314. package/dist/src/rest-api/table/dto/update-table.dto.js.map +1 -0
  1315. package/dist/src/rest-api/table/model/create-row.response.d.ts +6 -0
  1316. package/dist/src/rest-api/table/model/create-row.response.js +31 -0
  1317. package/dist/src/rest-api/table/model/create-row.response.js.map +1 -0
  1318. package/dist/src/rest-api/table/model/index.d.ts +1 -0
  1319. package/dist/src/rest-api/table/model/index.js +18 -0
  1320. package/dist/src/rest-api/table/model/index.js.map +1 -0
  1321. package/dist/src/rest-api/table/model/table.model.d.ts +10 -0
  1322. package/dist/src/rest-api/table/model/table.model.js +37 -0
  1323. package/dist/src/rest-api/table/model/table.model.js.map +1 -0
  1324. package/dist/src/rest-api/table/model/update-table.response.d.ts +5 -0
  1325. package/dist/src/rest-api/table/model/update-table.response.js +26 -0
  1326. package/dist/src/rest-api/table/model/update-table.response.js.map +1 -0
  1327. package/dist/src/rest-api/table/table-by-id.controller.d.ts +23 -0
  1328. package/dist/src/rest-api/table/table-by-id.controller.js +262 -0
  1329. package/dist/src/rest-api/table/table-by-id.controller.js.map +1 -0
  1330. package/dist/src/rest-api/user/model/index.d.ts +1 -0
  1331. package/dist/src/rest-api/user/model/index.js +18 -0
  1332. package/dist/src/rest-api/user/model/index.js.map +1 -0
  1333. package/dist/src/rest-api/user/model/user.model.d.ts +5 -0
  1334. package/dist/src/rest-api/user/model/user.model.js +29 -0
  1335. package/dist/src/rest-api/user/model/user.model.js.map +1 -0
  1336. package/dist/src/rest-api/user/user.controller.d.ts +10 -0
  1337. package/dist/src/rest-api/user/user.controller.js +47 -0
  1338. package/dist/src/rest-api/user/user.controller.js.map +1 -0
  1339. package/dist/src/revision/queries/commands/get-children-by-revision.handler.d.ts +19 -0
  1340. package/dist/src/revision/queries/commands/get-children-by-revision.handler.js +31 -0
  1341. package/dist/src/revision/queries/commands/get-children-by-revision.handler.js.map +1 -0
  1342. package/dist/src/revision/queries/commands/get-endpoints-by-revision-id.handler.d.ts +9 -0
  1343. package/dist/src/revision/queries/commands/get-endpoints-by-revision-id.handler.js +31 -0
  1344. package/dist/src/revision/queries/commands/get-endpoints-by-revision-id.handler.js.map +1 -0
  1345. package/dist/src/revision/queries/commands/get-revision.handler.d.ts +19 -0
  1346. package/dist/src/revision/queries/commands/get-revision.handler.js +31 -0
  1347. package/dist/src/revision/queries/commands/get-revision.handler.js.map +1 -0
  1348. package/dist/src/revision/queries/commands/get-tables-by-revision-id.handler.d.ts +20 -0
  1349. package/dist/src/revision/queries/commands/get-tables-by-revision-id.handler.js +65 -0
  1350. package/dist/src/revision/queries/commands/get-tables-by-revision-id.handler.js.map +1 -0
  1351. package/dist/src/revision/queries/commands/index.d.ts +9 -0
  1352. package/dist/src/revision/queries/commands/index.js +22 -0
  1353. package/dist/src/revision/queries/commands/index.js.map +1 -0
  1354. package/dist/src/revision/queries/commands/resolve-branch-by-revision.handler.d.ts +14 -0
  1355. package/dist/src/revision/queries/commands/resolve-branch-by-revision.handler.js +31 -0
  1356. package/dist/src/revision/queries/commands/resolve-branch-by-revision.handler.js.map +1 -0
  1357. package/dist/src/revision/queries/commands/resolve-child-branches-by-revision.handler.d.ts +17 -0
  1358. package/dist/src/revision/queries/commands/resolve-child-branches-by-revision.handler.js +53 -0
  1359. package/dist/src/revision/queries/commands/resolve-child-branches-by-revision.handler.js.map +1 -0
  1360. package/dist/src/revision/queries/commands/resolve-child-by-revision.handler.d.ts +21 -0
  1361. package/dist/src/revision/queries/commands/resolve-child-by-revision.handler.js +41 -0
  1362. package/dist/src/revision/queries/commands/resolve-child-by-revision.handler.js.map +1 -0
  1363. package/dist/src/revision/queries/commands/resolve-parent-by-revision.handler.d.ts +19 -0
  1364. package/dist/src/revision/queries/commands/resolve-parent-by-revision.handler.js +31 -0
  1365. package/dist/src/revision/queries/commands/resolve-parent-by-revision.handler.js.map +1 -0
  1366. package/dist/src/revision/queries/impl/get-children-by-revision.query.d.ts +4 -0
  1367. package/dist/src/revision/queries/impl/get-children-by-revision.query.js +10 -0
  1368. package/dist/src/revision/queries/impl/get-children-by-revision.query.js.map +1 -0
  1369. package/dist/src/revision/queries/impl/get-endpoints-by-revision-id.query.d.ts +4 -0
  1370. package/dist/src/revision/queries/impl/get-endpoints-by-revision-id.query.js +10 -0
  1371. package/dist/src/revision/queries/impl/get-endpoints-by-revision-id.query.js.map +1 -0
  1372. package/dist/src/revision/queries/impl/get-revision.query.d.ts +8 -0
  1373. package/dist/src/revision/queries/impl/get-revision.query.js +10 -0
  1374. package/dist/src/revision/queries/impl/get-revision.query.js.map +1 -0
  1375. package/dist/src/revision/queries/impl/get-tables-by-revision-id.query.d.ts +12 -0
  1376. package/dist/src/revision/queries/impl/get-tables-by-revision-id.query.js +10 -0
  1377. package/dist/src/revision/queries/impl/get-tables-by-revision-id.query.js.map +1 -0
  1378. package/dist/src/revision/queries/impl/index.d.ts +7 -0
  1379. package/dist/src/revision/queries/impl/index.js +24 -0
  1380. package/dist/src/revision/queries/impl/index.js.map +1 -0
  1381. package/dist/src/revision/queries/impl/resolve-branch-by-revision.query.d.ts +4 -0
  1382. package/dist/src/revision/queries/impl/resolve-branch-by-revision.query.js +10 -0
  1383. package/dist/src/revision/queries/impl/resolve-branch-by-revision.query.js.map +1 -0
  1384. package/dist/src/revision/queries/impl/resolve-child-branches-by-revision.query.d.ts +4 -0
  1385. package/dist/src/revision/queries/impl/resolve-child-branches-by-revision.query.js +10 -0
  1386. package/dist/src/revision/queries/impl/resolve-child-branches-by-revision.query.js.map +1 -0
  1387. package/dist/src/revision/queries/impl/resolve-child-by-revision.query.d.ts +4 -0
  1388. package/dist/src/revision/queries/impl/resolve-child-by-revision.query.js +10 -0
  1389. package/dist/src/revision/queries/impl/resolve-child-by-revision.query.js.map +1 -0
  1390. package/dist/src/revision/queries/impl/resolve-parent-by-revision.query.d.ts +4 -0
  1391. package/dist/src/revision/queries/impl/resolve-parent-by-revision.query.js +10 -0
  1392. package/dist/src/revision/queries/impl/resolve-parent-by-revision.query.js.map +1 -0
  1393. package/dist/src/revision/queries/types/get-endpoints-by-revision-id.d.ts +2 -0
  1394. package/dist/src/revision/queries/types/get-endpoints-by-revision-id.js +3 -0
  1395. package/dist/src/revision/queries/types/get-endpoints-by-revision-id.js.map +1 -0
  1396. package/dist/src/revision/queries/types/get-revision-tables.types.d.ts +3 -0
  1397. package/dist/src/revision/queries/types/get-revision-tables.types.js +3 -0
  1398. package/dist/src/revision/queries/types/get-revision-tables.types.js.map +1 -0
  1399. package/dist/src/revision/queries/types/get-tables-by-revision-id.d.ts +2 -0
  1400. package/dist/src/revision/queries/types/get-tables-by-revision-id.js +3 -0
  1401. package/dist/src/revision/queries/types/get-tables-by-revision-id.js.map +1 -0
  1402. package/dist/src/revision/queries/types/index.d.ts +4 -0
  1403. package/dist/src/revision/queries/types/index.js +3 -0
  1404. package/dist/src/revision/queries/types/index.js.map +1 -0
  1405. package/dist/src/revision/revision.module.d.ts +2 -0
  1406. package/dist/src/revision/revision.module.js +25 -0
  1407. package/dist/src/revision/revision.module.js.map +1 -0
  1408. package/dist/src/row/queries/handlers/get-row-by-id.handler.d.ts +19 -0
  1409. package/dist/src/row/queries/handlers/get-row-by-id.handler.js +43 -0
  1410. package/dist/src/row/queries/handlers/get-row-by-id.handler.js.map +1 -0
  1411. package/dist/src/row/queries/handlers/get-row.handler.d.ts +14 -0
  1412. package/dist/src/row/queries/handlers/get-row.handler.js +59 -0
  1413. package/dist/src/row/queries/handlers/get-row.handler.js.map +1 -0
  1414. package/dist/src/row/queries/handlers/get-rows.handler.d.ts +15 -0
  1415. package/dist/src/row/queries/handlers/get-rows.handler.js +71 -0
  1416. package/dist/src/row/queries/handlers/get-rows.handler.js.map +1 -0
  1417. package/dist/src/row/queries/handlers/index.d.ts +8 -0
  1418. package/dist/src/row/queries/handlers/index.js +20 -0
  1419. package/dist/src/row/queries/handlers/index.js.map +1 -0
  1420. package/dist/src/row/queries/handlers/resolve-row-count-references-by.handler.d.ts +16 -0
  1421. package/dist/src/row/queries/handlers/resolve-row-count-references-by.handler.js +67 -0
  1422. package/dist/src/row/queries/handlers/resolve-row-count-references-by.handler.js.map +1 -0
  1423. package/dist/src/row/queries/handlers/resolve-row-count-references-to.handler.d.ts +14 -0
  1424. package/dist/src/row/queries/handlers/resolve-row-count-references-to.handler.js +59 -0
  1425. package/dist/src/row/queries/handlers/resolve-row-count-references-to.handler.js.map +1 -0
  1426. package/dist/src/row/queries/handlers/resolve-row-references-by.handler.d.ts +28 -0
  1427. package/dist/src/row/queries/handlers/resolve-row-references-by.handler.js +78 -0
  1428. package/dist/src/row/queries/handlers/resolve-row-references-by.handler.js.map +1 -0
  1429. package/dist/src/row/queries/handlers/resolve-row-references-to.handler.d.ts +28 -0
  1430. package/dist/src/row/queries/handlers/resolve-row-references-to.handler.js +91 -0
  1431. package/dist/src/row/queries/handlers/resolve-row-references-to.handler.js.map +1 -0
  1432. package/dist/src/row/queries/impl/get-row-by-id.query.d.ts +12 -0
  1433. package/dist/src/row/queries/impl/get-row-by-id.query.js +10 -0
  1434. package/dist/src/row/queries/impl/get-row-by-id.query.js.map +1 -0
  1435. package/dist/src/row/queries/impl/get-row.query.d.ts +12 -0
  1436. package/dist/src/row/queries/impl/get-row.query.js +10 -0
  1437. package/dist/src/row/queries/impl/get-row.query.js.map +1 -0
  1438. package/dist/src/row/queries/impl/get-rows.query.d.ts +14 -0
  1439. package/dist/src/row/queries/impl/get-rows.query.js +10 -0
  1440. package/dist/src/row/queries/impl/get-rows.query.js.map +1 -0
  1441. package/dist/src/row/queries/impl/index.d.ts +7 -0
  1442. package/dist/src/row/queries/impl/index.js +24 -0
  1443. package/dist/src/row/queries/impl/index.js.map +1 -0
  1444. package/dist/src/row/queries/impl/resolve-row-count-references-by.query.d.ts +12 -0
  1445. package/dist/src/row/queries/impl/resolve-row-count-references-by.query.js +10 -0
  1446. package/dist/src/row/queries/impl/resolve-row-count-references-by.query.js.map +1 -0
  1447. package/dist/src/row/queries/impl/resolve-row-count-references-to.query.d.ts +12 -0
  1448. package/dist/src/row/queries/impl/resolve-row-count-references-to.query.js +10 -0
  1449. package/dist/src/row/queries/impl/resolve-row-count-references-to.query.js.map +1 -0
  1450. package/dist/src/row/queries/impl/resolve-row-references-by.query.d.ts +18 -0
  1451. package/dist/src/row/queries/impl/resolve-row-references-by.query.js +10 -0
  1452. package/dist/src/row/queries/impl/resolve-row-references-by.query.js.map +1 -0
  1453. package/dist/src/row/queries/impl/resolve-row-references-to.query.d.ts +18 -0
  1454. package/dist/src/row/queries/impl/resolve-row-references-to.query.js +10 -0
  1455. package/dist/src/row/queries/impl/resolve-row-references-to.query.js.map +1 -0
  1456. package/dist/src/row/queries/types/get-row-by-id.types.d.ts +2 -0
  1457. package/dist/src/row/queries/types/get-row-by-id.types.js +3 -0
  1458. package/dist/src/row/queries/types/get-row-by-id.types.js.map +1 -0
  1459. package/dist/src/row/queries/types/get-row.types.d.ts +2 -0
  1460. package/dist/src/row/queries/types/get-row.types.js +3 -0
  1461. package/dist/src/row/queries/types/get-row.types.js.map +1 -0
  1462. package/dist/src/row/queries/types/get-rows.types.d.ts +3 -0
  1463. package/dist/src/row/queries/types/get-rows.types.js +3 -0
  1464. package/dist/src/row/queries/types/get-rows.types.js.map +1 -0
  1465. package/dist/src/row/queries/types/index.d.ts +5 -0
  1466. package/dist/src/row/queries/types/index.js +22 -0
  1467. package/dist/src/row/queries/types/index.js.map +1 -0
  1468. package/dist/src/row/queries/types/resolve-row-references-by.types.d.ts +3 -0
  1469. package/dist/src/row/queries/types/resolve-row-references-by.types.js +3 -0
  1470. package/dist/src/row/queries/types/resolve-row-references-by.types.js.map +1 -0
  1471. package/dist/src/row/queries/types/resolve-row-references-to.types.d.ts +3 -0
  1472. package/dist/src/row/queries/types/resolve-row-references-to.types.js +3 -0
  1473. package/dist/src/row/queries/types/resolve-row-references-to.types.js.map +1 -0
  1474. package/dist/src/row/row.module.d.ts +2 -0
  1475. package/dist/src/row/row.module.js +24 -0
  1476. package/dist/src/row/row.module.js.map +1 -0
  1477. package/dist/src/share/commands/handlers/index.d.ts +3 -0
  1478. package/dist/src/share/commands/handlers/index.js +10 -0
  1479. package/dist/src/share/commands/handlers/index.js.map +1 -0
  1480. package/dist/src/share/commands/handlers/notify-endpoints.handler.d.ts +12 -0
  1481. package/dist/src/share/commands/handlers/notify-endpoints.handler.js +46 -0
  1482. package/dist/src/share/commands/handlers/notify-endpoints.handler.js.map +1 -0
  1483. package/dist/src/share/commands/handlers/transactional/move-endpoints.handler.d.ts +11 -0
  1484. package/dist/src/share/commands/handlers/transactional/move-endpoints.handler.js +56 -0
  1485. package/dist/src/share/commands/handlers/transactional/move-endpoints.handler.js.map +1 -0
  1486. package/dist/src/share/commands/impl/index.d.ts +2 -0
  1487. package/dist/src/share/commands/impl/index.js +19 -0
  1488. package/dist/src/share/commands/impl/index.js.map +1 -0
  1489. package/dist/src/share/commands/impl/notify-endpoints.command.d.ts +8 -0
  1490. package/dist/src/share/commands/impl/notify-endpoints.command.js +10 -0
  1491. package/dist/src/share/commands/impl/notify-endpoints.command.js.map +1 -0
  1492. package/dist/src/share/commands/impl/transactional/move-endpoints.command.d.ts +10 -0
  1493. package/dist/src/share/commands/impl/transactional/move-endpoints.command.js +10 -0
  1494. package/dist/src/share/commands/impl/transactional/move-endpoints.command.js.map +1 -0
  1495. package/dist/src/share/commands/utils/getOffsetPagination.d.ts +18 -0
  1496. package/dist/src/share/commands/utils/getOffsetPagination.js +37 -0
  1497. package/dist/src/share/commands/utils/getOffsetPagination.js.map +1 -0
  1498. package/dist/src/share/commands/utils/getRevisionCursorPagination.d.ts +29 -0
  1499. package/dist/src/share/commands/utils/getRevisionCursorPagination.js +70 -0
  1500. package/dist/src/share/commands/utils/getRevisionCursorPagination.js.map +1 -0
  1501. package/dist/src/share/const.d.ts +2 -0
  1502. package/dist/src/share/const.js +14 -0
  1503. package/dist/src/share/const.js.map +1 -0
  1504. package/dist/src/share/pagination.interface.d.ts +15 -0
  1505. package/dist/src/share/pagination.interface.js +3 -0
  1506. package/dist/src/share/pagination.interface.js.map +1 -0
  1507. package/dist/src/share/queries/handlers/index.d.ts +9 -0
  1508. package/dist/src/share/queries/handlers/index.js +22 -0
  1509. package/dist/src/share/queries/handlers/index.js.map +1 -0
  1510. package/dist/src/share/queries/handlers/transactional/find-branch-in-project-or-throw.handler.d.ts +10 -0
  1511. package/dist/src/share/queries/handlers/transactional/find-branch-in-project-or-throw.handler.js +44 -0
  1512. package/dist/src/share/queries/handlers/transactional/find-branch-in-project-or-throw.handler.js.map +1 -0
  1513. package/dist/src/share/queries/handlers/transactional/find-draft-revision-in-branch-or-throw.handler.d.ts +10 -0
  1514. package/dist/src/share/queries/handlers/transactional/find-draft-revision-in-branch-or-throw.handler.js +39 -0
  1515. package/dist/src/share/queries/handlers/transactional/find-draft-revision-in-branch-or-throw.handler.js.map +1 -0
  1516. package/dist/src/share/queries/handlers/transactional/find-head-revision-in-branch-or-throw.handler.d.ts +10 -0
  1517. package/dist/src/share/queries/handlers/transactional/find-head-revision-in-branch-or-throw.handler.js +39 -0
  1518. package/dist/src/share/queries/handlers/transactional/find-head-revision-in-branch-or-throw.handler.js.map +1 -0
  1519. package/dist/src/share/queries/handlers/transactional/find-project-in-organization-or-throw.handler.d.ts +10 -0
  1520. package/dist/src/share/queries/handlers/transactional/find-project-in-organization-or-throw.handler.js +44 -0
  1521. package/dist/src/share/queries/handlers/transactional/find-project-in-organization-or-throw.handler.js.map +1 -0
  1522. package/dist/src/share/queries/handlers/transactional/find-row-in-table-or-throw.handler.d.ts +10 -0
  1523. package/dist/src/share/queries/handlers/transactional/find-row-in-table-or-throw.handler.js +42 -0
  1524. package/dist/src/share/queries/handlers/transactional/find-row-in-table-or-throw.handler.js.map +1 -0
  1525. package/dist/src/share/queries/handlers/transactional/find-rows-in-table-or-throw.handler.d.ts +10 -0
  1526. package/dist/src/share/queries/handlers/transactional/find-rows-in-table-or-throw.handler.js +42 -0
  1527. package/dist/src/share/queries/handlers/transactional/find-rows-in-table-or-throw.handler.js.map +1 -0
  1528. package/dist/src/share/queries/handlers/transactional/find-table-in-revision-or-throw.handler.d.ts +10 -0
  1529. package/dist/src/share/queries/handlers/transactional/find-table-in-revision-or-throw.handler.js +42 -0
  1530. package/dist/src/share/queries/handlers/transactional/find-table-in-revision-or-throw.handler.js.map +1 -0
  1531. package/dist/src/share/queries/handlers/transactional/get-table-schema.handler.d.ts +11 -0
  1532. package/dist/src/share/queries/handlers/transactional/get-table-schema.handler.js +57 -0
  1533. package/dist/src/share/queries/handlers/transactional/get-table-schema.handler.js.map +1 -0
  1534. package/dist/src/share/queries/impl/index.d.ts +7 -0
  1535. package/dist/src/share/queries/impl/index.js +24 -0
  1536. package/dist/src/share/queries/impl/index.js.map +1 -0
  1537. package/dist/src/share/queries/impl/transactional/find-branch-in-project-or-throw.query.d.ts +10 -0
  1538. package/dist/src/share/queries/impl/transactional/find-branch-in-project-or-throw.query.js +10 -0
  1539. package/dist/src/share/queries/impl/transactional/find-branch-in-project-or-throw.query.js.map +1 -0
  1540. package/dist/src/share/queries/impl/transactional/find-draft-revision-in-branch-or-throw.query.d.ts +8 -0
  1541. package/dist/src/share/queries/impl/transactional/find-draft-revision-in-branch-or-throw.query.js +10 -0
  1542. package/dist/src/share/queries/impl/transactional/find-draft-revision-in-branch-or-throw.query.js.map +1 -0
  1543. package/dist/src/share/queries/impl/transactional/find-head-revision-in-branch-or-throw.query.d.ts +8 -0
  1544. package/dist/src/share/queries/impl/transactional/find-head-revision-in-branch-or-throw.query.js +10 -0
  1545. package/dist/src/share/queries/impl/transactional/find-head-revision-in-branch-or-throw.query.js.map +1 -0
  1546. package/dist/src/share/queries/impl/transactional/find-project-in-organization-or-throw.query.d.ts +10 -0
  1547. package/dist/src/share/queries/impl/transactional/find-project-in-organization-or-throw.query.js +10 -0
  1548. package/dist/src/share/queries/impl/transactional/find-project-in-organization-or-throw.query.js.map +1 -0
  1549. package/dist/src/share/queries/impl/transactional/find-row-in-table-or-throw.query.d.ts +10 -0
  1550. package/dist/src/share/queries/impl/transactional/find-row-in-table-or-throw.query.js +10 -0
  1551. package/dist/src/share/queries/impl/transactional/find-row-in-table-or-throw.query.js.map +1 -0
  1552. package/dist/src/share/queries/impl/transactional/find-rows-in-table-or-throw.query.d.ts +10 -0
  1553. package/dist/src/share/queries/impl/transactional/find-rows-in-table-or-throw.query.js +10 -0
  1554. package/dist/src/share/queries/impl/transactional/find-rows-in-table-or-throw.query.js.map +1 -0
  1555. package/dist/src/share/queries/impl/transactional/find-table-in-revision-or-throw.query.d.ts +10 -0
  1556. package/dist/src/share/queries/impl/transactional/find-table-in-revision-or-throw.query.js +10 -0
  1557. package/dist/src/share/queries/impl/transactional/find-table-in-revision-or-throw.query.js.map +1 -0
  1558. package/dist/src/share/queries/impl/transactional/get-table-schema.query.d.ts +10 -0
  1559. package/dist/src/share/queries/impl/transactional/get-table-schema.query.js +10 -0
  1560. package/dist/src/share/queries/impl/transactional/get-table-schema.query.js.map +1 -0
  1561. package/dist/src/share/queries/types/find-branch-in-project.types.d.ts +3 -0
  1562. package/dist/src/share/queries/types/find-branch-in-project.types.js +3 -0
  1563. package/dist/src/share/queries/types/find-branch-in-project.types.js.map +1 -0
  1564. package/dist/src/share/queries/types/find-draft-revision-in-branch.types.d.ts +3 -0
  1565. package/dist/src/share/queries/types/find-draft-revision-in-branch.types.js +3 -0
  1566. package/dist/src/share/queries/types/find-draft-revision-in-branch.types.js.map +1 -0
  1567. package/dist/src/share/queries/types/find-head-revision-in-branch.types.d.ts +3 -0
  1568. package/dist/src/share/queries/types/find-head-revision-in-branch.types.js +3 -0
  1569. package/dist/src/share/queries/types/find-head-revision-in-branch.types.js.map +1 -0
  1570. package/dist/src/share/queries/types/find-project-in-organization.types.d.ts +3 -0
  1571. package/dist/src/share/queries/types/find-project-in-organization.types.js +3 -0
  1572. package/dist/src/share/queries/types/find-project-in-organization.types.js.map +1 -0
  1573. package/dist/src/share/queries/types/find-row-in-table.types.d.ts +4 -0
  1574. package/dist/src/share/queries/types/find-row-in-table.types.js +3 -0
  1575. package/dist/src/share/queries/types/find-row-in-table.types.js.map +1 -0
  1576. package/dist/src/share/queries/types/find-rows-in-table.types.d.ts +5 -0
  1577. package/dist/src/share/queries/types/find-rows-in-table.types.js +3 -0
  1578. package/dist/src/share/queries/types/find-rows-in-table.types.js.map +1 -0
  1579. package/dist/src/share/queries/types/find-table-in-revision.types.d.ts +5 -0
  1580. package/dist/src/share/queries/types/find-table-in-revision.types.js +3 -0
  1581. package/dist/src/share/queries/types/find-table-in-revision.types.js.map +1 -0
  1582. package/dist/src/share/queries/types/index.d.ts +7 -0
  1583. package/dist/src/share/queries/types/index.js +3 -0
  1584. package/dist/src/share/queries/types/index.js.map +1 -0
  1585. package/dist/src/share/references.service.d.ts +22 -0
  1586. package/dist/src/share/references.service.js +94 -0
  1587. package/dist/src/share/references.service.js.map +1 -0
  1588. package/dist/src/share/schema/consts.d.ts +3 -0
  1589. package/dist/src/share/schema/consts.js +8 -0
  1590. package/dist/src/share/schema/consts.js.map +1 -0
  1591. package/dist/src/share/schema/json-patch-schema.d.ts +2 -0
  1592. package/dist/src/share/schema/json-patch-schema.js +71 -0
  1593. package/dist/src/share/schema/json-patch-schema.js.map +1 -0
  1594. package/dist/src/share/schema/meta-schema.d.ts +9 -0
  1595. package/dist/src/share/schema/meta-schema.js +143 -0
  1596. package/dist/src/share/schema/meta-schema.js.map +1 -0
  1597. package/dist/src/share/share.commands.d.ts +8 -0
  1598. package/dist/src/share/share.commands.js +29 -0
  1599. package/dist/src/share/share.commands.js.map +1 -0
  1600. package/dist/src/share/share.module.d.ts +2 -0
  1601. package/dist/src/share/share.module.js +42 -0
  1602. package/dist/src/share/share.module.js.map +1 -0
  1603. package/dist/src/share/share.transactional.commands.d.ts +9 -0
  1604. package/dist/src/share/share.transactional.commands.js +29 -0
  1605. package/dist/src/share/share.transactional.commands.js.map +1 -0
  1606. package/dist/src/share/share.transactional.queries.d.ts +15 -0
  1607. package/dist/src/share/share.transactional.queries.js +73 -0
  1608. package/dist/src/share/share.transactional.queries.js.map +1 -0
  1609. package/dist/src/share/system-organizations.consts.d.ts +3 -0
  1610. package/dist/src/share/system-organizations.consts.js +8 -0
  1611. package/dist/src/share/system-organizations.consts.js.map +1 -0
  1612. package/dist/src/share/system-tables.consts.d.ts +5 -0
  1613. package/dist/src/share/system-tables.consts.js +15 -0
  1614. package/dist/src/share/system-tables.consts.js.map +1 -0
  1615. package/dist/src/share/types/row-with-context.types.d.ts +7 -0
  1616. package/dist/src/share/types/row-with-context.types.js +3 -0
  1617. package/dist/src/share/types/row-with-context.types.js.map +1 -0
  1618. package/dist/src/share/types/table-with-context.types.d.ts +6 -0
  1619. package/dist/src/share/types/table-with-context.types.js +3 -0
  1620. package/dist/src/share/types/table-with-context.types.js.map +1 -0
  1621. package/dist/src/share/types.d.ts +3 -0
  1622. package/dist/src/share/types.js +3 -0
  1623. package/dist/src/share/types.js.map +1 -0
  1624. package/dist/src/share/utils/index.d.ts +1 -0
  1625. package/dist/src/share/utils/index.js +18 -0
  1626. package/dist/src/share/utils/index.js.map +1 -0
  1627. package/dist/src/share/utils/schema/lib/applyPatches.d.ts +6 -0
  1628. package/dist/src/share/utils/schema/lib/applyPatches.js +89 -0
  1629. package/dist/src/share/utils/schema/lib/applyPatches.js.map +1 -0
  1630. package/dist/src/share/utils/schema/lib/createJsonSchemaStore.d.ts +6 -0
  1631. package/dist/src/share/utils/schema/lib/createJsonSchemaStore.js +52 -0
  1632. package/dist/src/share/utils/schema/lib/createJsonSchemaStore.js.map +1 -0
  1633. package/dist/src/share/utils/schema/lib/createJsonValueStore.d.ts +11 -0
  1634. package/dist/src/share/utils/schema/lib/createJsonValueStore.js +54 -0
  1635. package/dist/src/share/utils/schema/lib/createJsonValueStore.js.map +1 -0
  1636. package/dist/src/share/utils/schema/lib/getJsonSchemaStoreByPath.d.ts +2 -0
  1637. package/dist/src/share/utils/schema/lib/getJsonSchemaStoreByPath.js +50 -0
  1638. package/dist/src/share/utils/schema/lib/getJsonSchemaStoreByPath.js.map +1 -0
  1639. package/dist/src/share/utils/schema/lib/getParentForPath.d.ts +4 -0
  1640. package/dist/src/share/utils/schema/lib/getParentForPath.js +45 -0
  1641. package/dist/src/share/utils/schema/lib/getParentForPath.js.map +1 -0
  1642. package/dist/src/share/utils/schema/lib/getPathByStore.d.ts +2 -0
  1643. package/dist/src/share/utils/schema/lib/getPathByStore.js +23 -0
  1644. package/dist/src/share/utils/schema/lib/getPathByStore.js.map +1 -0
  1645. package/dist/src/share/utils/schema/lib/getReferencesFromSchema.d.ts +2 -0
  1646. package/dist/src/share/utils/schema/lib/getReferencesFromSchema.js +16 -0
  1647. package/dist/src/share/utils/schema/lib/getReferencesFromSchema.js.map +1 -0
  1648. package/dist/src/share/utils/schema/lib/getReferencesFromValue.d.ts +6 -0
  1649. package/dist/src/share/utils/schema/lib/getReferencesFromValue.js +24 -0
  1650. package/dist/src/share/utils/schema/lib/getReferencesFromValue.js.map +1 -0
  1651. package/dist/src/share/utils/schema/lib/getValuePathByStore.d.ts +2 -0
  1652. package/dist/src/share/utils/schema/lib/getValuePathByStore.js +23 -0
  1653. package/dist/src/share/utils/schema/lib/getValuePathByStore.js.map +1 -0
  1654. package/dist/src/share/utils/schema/lib/schema-table.d.ts +17 -0
  1655. package/dist/src/share/utils/schema/lib/schema-table.js +69 -0
  1656. package/dist/src/share/utils/schema/lib/schema-table.js.map +1 -0
  1657. package/dist/src/share/utils/schema/lib/traverseStore.d.ts +2 -0
  1658. package/dist/src/share/utils/schema/lib/traverseStore.js +17 -0
  1659. package/dist/src/share/utils/schema/lib/traverseStore.js.map +1 -0
  1660. package/dist/src/share/utils/schema/lib/traverseValue.d.ts +2 -0
  1661. package/dist/src/share/utils/schema/lib/traverseValue.js +19 -0
  1662. package/dist/src/share/utils/schema/lib/traverseValue.js.map +1 -0
  1663. package/dist/src/share/utils/schema/model/schema/json-array.store.d.ts +30 -0
  1664. package/dist/src/share/utils/schema/model/schema/json-array.store.js +70 -0
  1665. package/dist/src/share/utils/schema/model/schema/json-array.store.js.map +1 -0
  1666. package/dist/src/share/utils/schema/model/schema/json-boolean.store.d.ts +17 -0
  1667. package/dist/src/share/utils/schema/model/schema/json-boolean.store.js +40 -0
  1668. package/dist/src/share/utils/schema/model/schema/json-boolean.store.js.map +1 -0
  1669. package/dist/src/share/utils/schema/model/schema/json-number.store.d.ts +17 -0
  1670. package/dist/src/share/utils/schema/model/schema/json-number.store.js +40 -0
  1671. package/dist/src/share/utils/schema/model/schema/json-number.store.js.map +1 -0
  1672. package/dist/src/share/utils/schema/model/schema/json-object.store.d.ts +45 -0
  1673. package/dist/src/share/utils/schema/model/schema/json-object.store.js +142 -0
  1674. package/dist/src/share/utils/schema/model/schema/json-object.store.js.map +1 -0
  1675. package/dist/src/share/utils/schema/model/schema/json-schema.store.d.ts +7 -0
  1676. package/dist/src/share/utils/schema/model/schema/json-schema.store.js +3 -0
  1677. package/dist/src/share/utils/schema/model/schema/json-schema.store.js.map +1 -0
  1678. package/dist/src/share/utils/schema/model/schema/json-string.store.d.ts +18 -0
  1679. package/dist/src/share/utils/schema/model/schema/json-string.store.js +44 -0
  1680. package/dist/src/share/utils/schema/model/schema/json-string.store.js.map +1 -0
  1681. package/dist/src/share/utils/schema/model/value/json-array-value.store.d.ts +16 -0
  1682. package/dist/src/share/utils/schema/model/value/json-array-value.store.js +42 -0
  1683. package/dist/src/share/utils/schema/model/value/json-array-value.store.js.map +1 -0
  1684. package/dist/src/share/utils/schema/model/value/json-boolean-value.store.d.ts +11 -0
  1685. package/dist/src/share/utils/schema/model/value/json-boolean-value.store.js +18 -0
  1686. package/dist/src/share/utils/schema/model/value/json-boolean-value.store.js.map +1 -0
  1687. package/dist/src/share/utils/schema/model/value/json-number-value.store.d.ts +11 -0
  1688. package/dist/src/share/utils/schema/model/value/json-number-value.store.js +18 -0
  1689. package/dist/src/share/utils/schema/model/value/json-number-value.store.js.map +1 -0
  1690. package/dist/src/share/utils/schema/model/value/json-object-value.store.d.ts +19 -0
  1691. package/dist/src/share/utils/schema/model/value/json-object-value.store.js +55 -0
  1692. package/dist/src/share/utils/schema/model/value/json-object-value.store.js.map +1 -0
  1693. package/dist/src/share/utils/schema/model/value/json-string-value.store.d.ts +12 -0
  1694. package/dist/src/share/utils/schema/model/value/json-string-value.store.js +21 -0
  1695. package/dist/src/share/utils/schema/model/value/json-string-value.store.js.map +1 -0
  1696. package/dist/src/share/utils/schema/model/value/json-value.store.d.ts +7 -0
  1697. package/dist/src/share/utils/schema/model/value/json-value.store.js +3 -0
  1698. package/dist/src/share/utils/schema/model/value/json-value.store.js.map +1 -0
  1699. package/dist/src/share/utils/schema/model/value/value-transformation.d.ts +13 -0
  1700. package/dist/src/share/utils/schema/model/value/value-transformation.js +110 -0
  1701. package/dist/src/share/utils/schema/model/value/value-transformation.js.map +1 -0
  1702. package/dist/src/share/utils/schema/types/json-patch.types.d.ts +21 -0
  1703. package/dist/src/share/utils/schema/types/json-patch.types.js +3 -0
  1704. package/dist/src/share/utils/schema/types/json-patch.types.js.map +1 -0
  1705. package/dist/src/share/utils/schema/types/json.types.d.ts +7 -0
  1706. package/dist/src/share/utils/schema/types/json.types.js +3 -0
  1707. package/dist/src/share/utils/schema/types/json.types.js.map +1 -0
  1708. package/dist/src/share/utils/schema/types/schema.types.d.ts +32 -0
  1709. package/dist/src/share/utils/schema/types/schema.types.js +12 -0
  1710. package/dist/src/share/utils/schema/types/schema.types.js.map +1 -0
  1711. package/dist/src/share/utils/sort-revisions/sort-revisions.d.ts +6 -0
  1712. package/dist/src/share/utils/sort-revisions/sort-revisions.js +36 -0
  1713. package/dist/src/share/utils/sort-revisions/sort-revisions.js.map +1 -0
  1714. package/dist/src/table/queries/handlers/get-count-rows-in-table.handler.d.ts +8 -0
  1715. package/dist/src/table/queries/handlers/get-count-rows-in-table.handler.js +33 -0
  1716. package/dist/src/table/queries/handlers/get-count-rows-in-table.handler.js.map +1 -0
  1717. package/dist/src/table/queries/handlers/get-rows-by-table.handler.d.ts +22 -0
  1718. package/dist/src/table/queries/handlers/get-rows-by-table.handler.js +59 -0
  1719. package/dist/src/table/queries/handlers/get-rows-by-table.handler.js.map +1 -0
  1720. package/dist/src/table/queries/handlers/get-table-by-id.handler.d.ts +18 -0
  1721. package/dist/src/table/queries/handlers/get-table-by-id.handler.js +42 -0
  1722. package/dist/src/table/queries/handlers/get-table-by-id.handler.js.map +1 -0
  1723. package/dist/src/table/queries/handlers/get-table.handler.d.ts +14 -0
  1724. package/dist/src/table/queries/handlers/get-table.handler.js +58 -0
  1725. package/dist/src/table/queries/handlers/get-table.handler.js.map +1 -0
  1726. package/dist/src/table/queries/handlers/get-tables.handler.d.ts +11 -0
  1727. package/dist/src/table/queries/handlers/get-tables.handler.js +67 -0
  1728. package/dist/src/table/queries/handlers/get-tables.handler.js.map +1 -0
  1729. package/dist/src/table/queries/handlers/index.d.ts +11 -0
  1730. package/dist/src/table/queries/handlers/index.js +26 -0
  1731. package/dist/src/table/queries/handlers/index.js.map +1 -0
  1732. package/dist/src/table/queries/handlers/resolve-table-count-references-by.handler.d.ts +15 -0
  1733. package/dist/src/table/queries/handlers/resolve-table-count-references-by.handler.js +54 -0
  1734. package/dist/src/table/queries/handlers/resolve-table-count-references-by.handler.js.map +1 -0
  1735. package/dist/src/table/queries/handlers/resolve-table-count-references-to.handler.d.ts +12 -0
  1736. package/dist/src/table/queries/handlers/resolve-table-count-references-to.handler.js +51 -0
  1737. package/dist/src/table/queries/handlers/resolve-table-count-references-to.handler.js.map +1 -0
  1738. package/dist/src/table/queries/handlers/resolve-table-references-by.handler.d.ts +17 -0
  1739. package/dist/src/table/queries/handlers/resolve-table-references-by.handler.js +80 -0
  1740. package/dist/src/table/queries/handlers/resolve-table-references-by.handler.js.map +1 -0
  1741. package/dist/src/table/queries/handlers/resolve-table-references-to.handler.d.ts +14 -0
  1742. package/dist/src/table/queries/handlers/resolve-table-references-to.handler.js +78 -0
  1743. package/dist/src/table/queries/handlers/resolve-table-references-to.handler.js.map +1 -0
  1744. package/dist/src/table/queries/handlers/resolve-table-schema.handler.d.ts +13 -0
  1745. package/dist/src/table/queries/handlers/resolve-table-schema.handler.js +46 -0
  1746. package/dist/src/table/queries/handlers/resolve-table-schema.handler.js.map +1 -0
  1747. package/dist/src/table/queries/impl/get-count-rows-in-table.query.d.ts +8 -0
  1748. package/dist/src/table/queries/impl/get-count-rows-in-table.query.js +10 -0
  1749. package/dist/src/table/queries/impl/get-count-rows-in-table.query.js.map +1 -0
  1750. package/dist/src/table/queries/impl/get-rows-by-table.query.d.ts +16 -0
  1751. package/dist/src/table/queries/impl/get-rows-by-table.query.js +10 -0
  1752. package/dist/src/table/queries/impl/get-rows-by-table.query.js.map +1 -0
  1753. package/dist/src/table/queries/impl/get-table-by-id.query.d.ts +10 -0
  1754. package/dist/src/table/queries/impl/get-table-by-id.query.js +10 -0
  1755. package/dist/src/table/queries/impl/get-table-by-id.query.js.map +1 -0
  1756. package/dist/src/table/queries/impl/get-table.query.d.ts +10 -0
  1757. package/dist/src/table/queries/impl/get-table.query.js +10 -0
  1758. package/dist/src/table/queries/impl/get-table.query.js.map +1 -0
  1759. package/dist/src/table/queries/impl/get-tables.query.d.ts +12 -0
  1760. package/dist/src/table/queries/impl/get-tables.query.js +10 -0
  1761. package/dist/src/table/queries/impl/get-tables.query.js.map +1 -0
  1762. package/dist/src/table/queries/impl/index.d.ts +6 -0
  1763. package/dist/src/table/queries/impl/index.js +23 -0
  1764. package/dist/src/table/queries/impl/index.js.map +1 -0
  1765. package/dist/src/table/queries/impl/resolve-table-count-references-by.query.d.ts +10 -0
  1766. package/dist/src/table/queries/impl/resolve-table-count-references-by.query.js +10 -0
  1767. package/dist/src/table/queries/impl/resolve-table-count-references-by.query.js.map +1 -0
  1768. package/dist/src/table/queries/impl/resolve-table-count-references-to.query.d.ts +10 -0
  1769. package/dist/src/table/queries/impl/resolve-table-count-references-to.query.js +10 -0
  1770. package/dist/src/table/queries/impl/resolve-table-count-references-to.query.js.map +1 -0
  1771. package/dist/src/table/queries/impl/resolve-table-references-by.query.d.ts +14 -0
  1772. package/dist/src/table/queries/impl/resolve-table-references-by.query.js +10 -0
  1773. package/dist/src/table/queries/impl/resolve-table-references-by.query.js.map +1 -0
  1774. package/dist/src/table/queries/impl/resolve-table-references-to.query.d.ts +14 -0
  1775. package/dist/src/table/queries/impl/resolve-table-references-to.query.js +10 -0
  1776. package/dist/src/table/queries/impl/resolve-table-references-to.query.js.map +1 -0
  1777. package/dist/src/table/queries/impl/resolve-table-schema.query.d.ts +10 -0
  1778. package/dist/src/table/queries/impl/resolve-table-schema.query.js +10 -0
  1779. package/dist/src/table/queries/impl/resolve-table-schema.query.js.map +1 -0
  1780. package/dist/src/table/queries/types/get-table-by-id.types.d.ts +2 -0
  1781. package/dist/src/table/queries/types/get-table-by-id.types.js +3 -0
  1782. package/dist/src/table/queries/types/get-table-by-id.types.js.map +1 -0
  1783. package/dist/src/table/queries/types/get-table-rows.types.d.ts +3 -0
  1784. package/dist/src/table/queries/types/get-table-rows.types.js +3 -0
  1785. package/dist/src/table/queries/types/get-table-rows.types.js.map +1 -0
  1786. package/dist/src/table/queries/types/get-table.types.d.ts +2 -0
  1787. package/dist/src/table/queries/types/get-table.types.js +3 -0
  1788. package/dist/src/table/queries/types/get-table.types.js.map +1 -0
  1789. package/dist/src/table/queries/types/get-tables.types.d.ts +3 -0
  1790. package/dist/src/table/queries/types/get-tables.types.js +3 -0
  1791. package/dist/src/table/queries/types/get-tables.types.js.map +1 -0
  1792. package/dist/src/table/queries/types/index.d.ts +6 -0
  1793. package/dist/src/table/queries/types/index.js +23 -0
  1794. package/dist/src/table/queries/types/index.js.map +1 -0
  1795. package/dist/src/table/queries/types/resolve-table-references-by.types.d.ts +3 -0
  1796. package/dist/src/table/queries/types/resolve-table-references-by.types.js +3 -0
  1797. package/dist/src/table/queries/types/resolve-table-references-by.types.js.map +1 -0
  1798. package/dist/src/table/queries/types/resolve-table-references-to.types.d.ts +3 -0
  1799. package/dist/src/table/queries/types/resolve-table-references-to.types.js +3 -0
  1800. package/dist/src/table/queries/types/resolve-table-references-to.types.js.map +1 -0
  1801. package/dist/src/table/table.module.d.ts +2 -0
  1802. package/dist/src/table/table.module.js +31 -0
  1803. package/dist/src/table/table.module.js.map +1 -0
  1804. package/dist/src/user/commands/handlers/index.d.ts +2 -0
  1805. package/dist/src/user/commands/handlers/index.js +19 -0
  1806. package/dist/src/user/commands/handlers/index.js.map +1 -0
  1807. package/dist/src/user/commands/handlers/set-username.handler.d.ts +14 -0
  1808. package/dist/src/user/commands/handlers/set-username.handler.js +101 -0
  1809. package/dist/src/user/commands/handlers/set-username.handler.js.map +1 -0
  1810. package/dist/src/user/commands/handlers/update-password.handler.d.ts +12 -0
  1811. package/dist/src/user/commands/handlers/update-password.handler.js +59 -0
  1812. package/dist/src/user/commands/handlers/update-password.handler.js.map +1 -0
  1813. package/dist/src/user/commands/impl/index.d.ts +2 -0
  1814. package/dist/src/user/commands/impl/index.js +19 -0
  1815. package/dist/src/user/commands/impl/index.js.map +1 -0
  1816. package/dist/src/user/commands/impl/set-username.command.d.ts +11 -0
  1817. package/dist/src/user/commands/impl/set-username.command.js +10 -0
  1818. package/dist/src/user/commands/impl/set-username.command.js.map +1 -0
  1819. package/dist/src/user/commands/impl/update-password.command.d.ts +13 -0
  1820. package/dist/src/user/commands/impl/update-password.command.js +10 -0
  1821. package/dist/src/user/commands/impl/update-password.command.js.map +1 -0
  1822. package/dist/src/user/commands/index.d.ts +2 -0
  1823. package/dist/src/user/commands/index.js +6 -0
  1824. package/dist/src/user/commands/index.js.map +1 -0
  1825. package/dist/src/user/queries/handlers/get-projects-by-user-id.handler.d.ts +19 -0
  1826. package/dist/src/user/queries/handlers/get-projects-by-user-id.handler.js +78 -0
  1827. package/dist/src/user/queries/handlers/get-projects-by-user-id.handler.js.map +1 -0
  1828. package/dist/src/user/queries/handlers/get-user-organization.handler.d.ts +8 -0
  1829. package/dist/src/user/queries/handlers/get-user-organization.handler.js +39 -0
  1830. package/dist/src/user/queries/handlers/get-user-organization.handler.js.map +1 -0
  1831. package/dist/src/user/queries/handlers/get-user.handler.d.ts +12 -0
  1832. package/dist/src/user/queries/handlers/get-user.handler.js +36 -0
  1833. package/dist/src/user/queries/handlers/get-user.handler.js.map +1 -0
  1834. package/dist/src/user/queries/handlers/index.d.ts +3 -0
  1835. package/dist/src/user/queries/handlers/index.js +20 -0
  1836. package/dist/src/user/queries/handlers/index.js.map +1 -0
  1837. package/dist/src/user/queries/impl/get-projects-by-user-id.query.d.ts +15 -0
  1838. package/dist/src/user/queries/impl/get-projects-by-user-id.query.js +10 -0
  1839. package/dist/src/user/queries/impl/get-projects-by-user-id.query.js.map +1 -0
  1840. package/dist/src/user/queries/impl/get-user-organization.query.d.ts +9 -0
  1841. package/dist/src/user/queries/impl/get-user-organization.query.js +10 -0
  1842. package/dist/src/user/queries/impl/get-user-organization.query.js.map +1 -0
  1843. package/dist/src/user/queries/impl/get-user.query.d.ts +10 -0
  1844. package/dist/src/user/queries/impl/get-user.query.js +10 -0
  1845. package/dist/src/user/queries/impl/get-user.query.js.map +1 -0
  1846. package/dist/src/user/queries/impl/index.d.ts +3 -0
  1847. package/dist/src/user/queries/impl/index.js +20 -0
  1848. package/dist/src/user/queries/impl/index.js.map +1 -0
  1849. package/dist/src/user/queries/index.d.ts +2 -0
  1850. package/dist/src/user/queries/index.js +10 -0
  1851. package/dist/src/user/queries/index.js.map +1 -0
  1852. package/dist/src/user/user.module.d.ts +2 -0
  1853. package/dist/src/user/user.module.js +25 -0
  1854. package/dist/src/user/user.module.js.map +1 -0
  1855. package/dist/tsconfig.build.tsbuildinfo +1 -0
  1856. package/package.json +122 -0
@@ -0,0 +1,2 @@
1
+ import { Prisma } from '@prisma/client';
2
+ export type GetTablesByRevisionIdReturnType = Prisma.TableGetPayload<Prisma.TableDefaultArgs>[];
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=get-tables-by-revision-id.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-tables-by-revision-id.js","sourceRoot":"","sources":["../../../../../src/revision/queries/types/get-tables-by-revision-id.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ export type { GetTablesByRevisionIdReturnType } from './get-tables-by-revision-id';
2
+ export type { GetEndpointsByRevisionId } from './get-endpoints-by-revision-id';
3
+ export type * from 'src/share/types/table-with-context.types';
4
+ export type * from './get-revision-tables.types';
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/revision/queries/types/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export declare class RevisionModule {
2
+ }
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ 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
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.RevisionModule = void 0;
10
+ const common_1 = require("@nestjs/common");
11
+ const cqrs_1 = require("@nestjs/cqrs");
12
+ const database_module_1 = require("../database/database.module");
13
+ const notification_module_1 = require("../notification/notification.module");
14
+ const commands_1 = require("./queries/commands");
15
+ const share_module_1 = require("../share/share.module");
16
+ let RevisionModule = class RevisionModule {
17
+ };
18
+ exports.RevisionModule = RevisionModule;
19
+ exports.RevisionModule = RevisionModule = __decorate([
20
+ (0, common_1.Module)({
21
+ imports: [database_module_1.DatabaseModule, cqrs_1.CqrsModule, share_module_1.ShareModule, notification_module_1.NotificationModule],
22
+ providers: [...commands_1.REVISION_QUERIES_HANDLERS],
23
+ })
24
+ ], RevisionModule);
25
+ //# sourceMappingURL=revision.module.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"revision.module.js","sourceRoot":"","sources":["../../../src/revision/revision.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,uCAA0C;AAC1C,iEAA8D;AAC9D,6EAA0E;AAC1E,iDAA0E;AAC1E,wDAAqD;AAM9C,IAAM,cAAc,GAApB,MAAM,cAAc;CAAG,CAAA;AAAjB,wCAAc;yBAAd,cAAc;IAJ1B,IAAA,eAAM,EAAC;QACN,OAAO,EAAE,CAAC,gCAAc,EAAE,iBAAU,EAAE,0BAAW,EAAE,wCAAkB,CAAC;QACtE,SAAS,EAAE,CAAC,GAAG,oCAAyB,CAAC;KAC1C,CAAC;GACW,cAAc,CAAG"}
@@ -0,0 +1,19 @@
1
+ import { IQueryHandler } from '@nestjs/cqrs';
2
+ import { PrismaService } from 'src/database/prisma.service';
3
+ import { GetRowByIdQuery } from 'src/row/queries/impl/get-row-by-id.query';
4
+ import { GetRowByIdReturnType } from 'src/row/queries/types';
5
+ export declare class GetRowByIdHandler implements IQueryHandler<GetRowByIdQuery, GetRowByIdReturnType> {
6
+ private prisma;
7
+ constructor(prisma: PrismaService);
8
+ execute({ data }: GetRowByIdQuery): Promise<{
9
+ context: {
10
+ revisionId: string;
11
+ tableId: string;
12
+ };
13
+ id: string;
14
+ createdAt: Date;
15
+ versionId: string;
16
+ readonly: boolean;
17
+ data: import("@prisma/client/runtime/library").JsonValue;
18
+ } | null>;
19
+ }
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ 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
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.GetRowByIdHandler = void 0;
13
+ const cqrs_1 = require("@nestjs/cqrs");
14
+ const prisma_service_1 = require("../../../database/prisma.service");
15
+ const get_row_by_id_query_1 = require("../impl/get-row-by-id.query");
16
+ let GetRowByIdHandler = class GetRowByIdHandler {
17
+ constructor(prisma) {
18
+ this.prisma = prisma;
19
+ }
20
+ async execute({ data }) {
21
+ const row = await this.prisma.row.findUnique({
22
+ where: { versionId: data.rowVersionId },
23
+ });
24
+ if (row) {
25
+ return {
26
+ ...row,
27
+ context: {
28
+ revisionId: data.revisionId,
29
+ tableId: data.tableId,
30
+ },
31
+ };
32
+ }
33
+ else {
34
+ return null;
35
+ }
36
+ }
37
+ };
38
+ exports.GetRowByIdHandler = GetRowByIdHandler;
39
+ exports.GetRowByIdHandler = GetRowByIdHandler = __decorate([
40
+ (0, cqrs_1.QueryHandler)(get_row_by_id_query_1.GetRowByIdQuery),
41
+ __metadata("design:paramtypes", [prisma_service_1.PrismaService])
42
+ ], GetRowByIdHandler);
43
+ //# sourceMappingURL=get-row-by-id.handler.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-row-by-id.handler.js","sourceRoot":"","sources":["../../../../../src/row/queries/handlers/get-row-by-id.handler.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uCAA2D;AAC3D,qEAA4D;AAC5D,qEAA2E;AAIpE,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;IAG5B,YAAoB,MAAqB;QAArB,WAAM,GAAN,MAAM,CAAe;IAAG,CAAC;IAEtC,KAAK,CAAC,OAAO,CAAC,EAAE,IAAI,EAAmB;QAC5C,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,UAAU,CAAC;YAC3C,KAAK,EAAE,EAAE,SAAS,EAAE,IAAI,CAAC,YAAY,EAAE;SACxC,CAAC,CAAC;QAEH,IAAI,GAAG,EAAE,CAAC;YACR,OAAO;gBACL,GAAG,GAAG;gBACN,OAAO,EAAE;oBACP,UAAU,EAAE,IAAI,CAAC,UAAU;oBAC3B,OAAO,EAAE,IAAI,CAAC,OAAO;iBACtB;aACF,CAAC;QACJ,CAAC;aAAM,CAAC;YACN,OAAO,IAAI,CAAC;QACd,CAAC;IACH,CAAC;CACF,CAAA;AAtBY,8CAAiB;4BAAjB,iBAAiB;IAD7B,IAAA,mBAAY,EAAC,qCAAe,CAAC;qCAIA,8BAAa;GAH9B,iBAAiB,CAsB7B"}
@@ -0,0 +1,14 @@
1
+ import { IQueryHandler } from '@nestjs/cqrs';
2
+ import { TransactionPrismaService } from 'src/database/transaction-prisma.service';
3
+ import { GetRowQuery } from 'src/row/queries/impl/get-row.query';
4
+ import { GetRowReturnType } from 'src/row/queries/types';
5
+ import { ShareTransactionalQueries } from 'src/share/share.transactional.queries';
6
+ export declare class GetRowHandler implements IQueryHandler<GetRowQuery, GetRowReturnType> {
7
+ private transactionService;
8
+ private shareTransactionalQueries;
9
+ constructor(transactionService: TransactionPrismaService, shareTransactionalQueries: ShareTransactionalQueries);
10
+ private get transaction();
11
+ execute({ data }: GetRowQuery): Promise<GetRowReturnType>;
12
+ private transactionHandler;
13
+ private getRow;
14
+ }
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ 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
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.GetRowHandler = void 0;
13
+ const cqrs_1 = require("@nestjs/cqrs");
14
+ const client_1 = require("@prisma/client");
15
+ const transaction_prisma_service_1 = require("../../../database/transaction-prisma.service");
16
+ const get_row_query_1 = require("../impl/get-row.query");
17
+ const share_transactional_queries_1 = require("../../../share/share.transactional.queries");
18
+ let GetRowHandler = class GetRowHandler {
19
+ constructor(transactionService, shareTransactionalQueries) {
20
+ this.transactionService = transactionService;
21
+ this.shareTransactionalQueries = shareTransactionalQueries;
22
+ }
23
+ get transaction() {
24
+ return this.transactionService.getTransaction();
25
+ }
26
+ async execute({ data }) {
27
+ return this.transactionService.run(() => this.transactionHandler(data), {
28
+ isolationLevel: client_1.Prisma.TransactionIsolationLevel.Serializable,
29
+ });
30
+ }
31
+ async transactionHandler(data) {
32
+ try {
33
+ const { versionId: tableVersionId } = await this.shareTransactionalQueries.findTableInRevisionOrThrow(data.revisionId, data.tableId);
34
+ const { versionId: rowId } = await this.shareTransactionalQueries.findRowInTableOrThrow(tableVersionId, data.rowId);
35
+ return {
36
+ ...(await this.getRow(rowId)),
37
+ context: {
38
+ revisionId: data.revisionId,
39
+ tableId: data.tableId,
40
+ },
41
+ };
42
+ }
43
+ catch (e) {
44
+ return null;
45
+ }
46
+ }
47
+ getRow(rowId) {
48
+ return this.transaction.row.findUniqueOrThrow({
49
+ where: { versionId: rowId },
50
+ });
51
+ }
52
+ };
53
+ exports.GetRowHandler = GetRowHandler;
54
+ exports.GetRowHandler = GetRowHandler = __decorate([
55
+ (0, cqrs_1.QueryHandler)(get_row_query_1.GetRowQuery),
56
+ __metadata("design:paramtypes", [transaction_prisma_service_1.TransactionPrismaService,
57
+ share_transactional_queries_1.ShareTransactionalQueries])
58
+ ], GetRowHandler);
59
+ //# sourceMappingURL=get-row.handler.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-row.handler.js","sourceRoot":"","sources":["../../../../../src/row/queries/handlers/get-row.handler.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uCAA2D;AAC3D,2CAAwC;AACxC,6FAAmF;AACnF,yDAAiE;AAEjE,4FAAkF;AAG3E,IAAM,aAAa,GAAnB,MAAM,aAAa;IAGxB,YACU,kBAA4C,EAC5C,yBAAoD;QADpD,uBAAkB,GAAlB,kBAAkB,CAA0B;QAC5C,8BAAyB,GAAzB,yBAAyB,CAA2B;IAC3D,CAAC;IAEJ,IAAY,WAAW;QACrB,OAAO,IAAI,CAAC,kBAAkB,CAAC,cAAc,EAAE,CAAC;IAClD,CAAC;IAED,KAAK,CAAC,OAAO,CAAC,EAAE,IAAI,EAAe;QACjC,OAAO,IAAI,CAAC,kBAAkB,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,EAAE;YACtE,cAAc,EAAE,eAAM,CAAC,yBAAyB,CAAC,YAAY;SAC9D,CAAC,CAAC;IACL,CAAC;IAEO,KAAK,CAAC,kBAAkB,CAC9B,IAAyB;QAEzB,IAAI,CAAC;YACH,MAAM,EAAE,SAAS,EAAE,cAAc,EAAE,GACjC,MAAM,IAAI,CAAC,yBAAyB,CAAC,0BAA0B,CAC7D,IAAI,CAAC,UAAU,EACf,IAAI,CAAC,OAAO,CACb,CAAC;YAEJ,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,GACxB,MAAM,IAAI,CAAC,yBAAyB,CAAC,qBAAqB,CACxD,cAAc,EACd,IAAI,CAAC,KAAK,CACX,CAAC;YAEJ,OAAO;gBACL,GAAG,CAAC,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;gBAC7B,OAAO,EAAE;oBACP,UAAU,EAAE,IAAI,CAAC,UAAU;oBAC3B,OAAO,EAAE,IAAI,CAAC,OAAO;iBACtB;aACF,CAAC;QACJ,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC;YACX,OAAO,IAAI,CAAC;QACd,CAAC;IACH,CAAC;IAEO,MAAM,CAAC,KAAa;QAC1B,OAAO,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,iBAAiB,CAAC;YAC5C,KAAK,EAAE,EAAE,SAAS,EAAE,KAAK,EAAE;SAC5B,CAAC,CAAC;IACL,CAAC;CACF,CAAA;AAnDY,sCAAa;wBAAb,aAAa;IADzB,IAAA,mBAAY,EAAC,2BAAW,CAAC;qCAKM,qDAAwB;QACjB,uDAAyB;GALnD,aAAa,CAmDzB"}
@@ -0,0 +1,15 @@
1
+ import { IQueryHandler } from '@nestjs/cqrs';
2
+ import { TransactionPrismaService } from 'src/database/transaction-prisma.service';
3
+ import { GetRowsQuery } from 'src/row/queries/impl';
4
+ import { GetRowsReturnType } from 'src/row/queries/types';
5
+ import { ShareTransactionalQueries } from 'src/share/share.transactional.queries';
6
+ export declare class GetRowsHandler implements IQueryHandler<GetRowsQuery, GetRowsReturnType> {
7
+ private transactionService;
8
+ private shareTransactionalQueries;
9
+ constructor(transactionService: TransactionPrismaService, shareTransactionalQueries: ShareTransactionalQueries);
10
+ private get transaction();
11
+ execute({ data }: GetRowsQuery): Promise<GetRowsReturnType>;
12
+ private transactionHandler;
13
+ private getRows;
14
+ private getRowsCount;
15
+ }
@@ -0,0 +1,71 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ 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
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.GetRowsHandler = void 0;
13
+ const cqrs_1 = require("@nestjs/cqrs");
14
+ const client_1 = require("@prisma/client");
15
+ const transaction_prisma_service_1 = require("../../../database/transaction-prisma.service");
16
+ const impl_1 = require("../impl");
17
+ const getOffsetPagination_1 = require("../../../share/commands/utils/getOffsetPagination");
18
+ const share_transactional_queries_1 = require("../../../share/share.transactional.queries");
19
+ let GetRowsHandler = class GetRowsHandler {
20
+ constructor(transactionService, shareTransactionalQueries) {
21
+ this.transactionService = transactionService;
22
+ this.shareTransactionalQueries = shareTransactionalQueries;
23
+ }
24
+ get transaction() {
25
+ return this.transactionService.getTransaction();
26
+ }
27
+ async execute({ data }) {
28
+ return this.transactionService.run(() => this.transactionHandler(data), {
29
+ isolationLevel: client_1.Prisma.TransactionIsolationLevel.Serializable,
30
+ });
31
+ }
32
+ async transactionHandler(data) {
33
+ const { versionId: tableId } = await this.shareTransactionalQueries.findTableInRevisionOrThrow(data.revisionId, data.tableId);
34
+ return (0, getOffsetPagination_1.getOffsetPagination)({
35
+ pageData: data,
36
+ findMany: (args) => this.getRows(args, tableId).then((rows) => rows.map((row) => ({
37
+ ...row,
38
+ context: {
39
+ revisionId: data.revisionId,
40
+ tableId: data.tableId,
41
+ },
42
+ }))),
43
+ count: () => this.getRowsCount(tableId),
44
+ });
45
+ }
46
+ getRows(args, tableId) {
47
+ return this.transaction.table
48
+ .findUniqueOrThrow({ where: { versionId: tableId } })
49
+ .rows({
50
+ ...args,
51
+ orderBy: {
52
+ id: client_1.Prisma.SortOrder.asc,
53
+ },
54
+ });
55
+ }
56
+ getRowsCount(tableId) {
57
+ return this.transaction.table
58
+ .findUniqueOrThrow({
59
+ where: { versionId: tableId },
60
+ include: { _count: { select: { rows: true } } },
61
+ })
62
+ .then((result) => result._count.rows);
63
+ }
64
+ };
65
+ exports.GetRowsHandler = GetRowsHandler;
66
+ exports.GetRowsHandler = GetRowsHandler = __decorate([
67
+ (0, cqrs_1.QueryHandler)(impl_1.GetRowsQuery),
68
+ __metadata("design:paramtypes", [transaction_prisma_service_1.TransactionPrismaService,
69
+ share_transactional_queries_1.ShareTransactionalQueries])
70
+ ], GetRowsHandler);
71
+ //# sourceMappingURL=get-rows.handler.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-rows.handler.js","sourceRoot":"","sources":["../../../../../src/row/queries/handlers/get-rows.handler.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uCAA2D;AAC3D,2CAA6C;AAC7C,6FAAmF;AACnF,kCAAoD;AAEpD,2FAAmF;AACnF,4FAAkF;AAG3E,IAAM,cAAc,GAApB,MAAM,cAAc;IAGzB,YACU,kBAA4C,EAC5C,yBAAoD;QADpD,uBAAkB,GAAlB,kBAAkB,CAA0B;QAC5C,8BAAyB,GAAzB,yBAAyB,CAA2B;IAC3D,CAAC;IAEJ,IAAY,WAAW;QACrB,OAAO,IAAI,CAAC,kBAAkB,CAAC,cAAc,EAAE,CAAC;IAClD,CAAC;IAED,KAAK,CAAC,OAAO,CAAC,EAAE,IAAI,EAAgB;QAClC,OAAO,IAAI,CAAC,kBAAkB,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,EAAE;YACtE,cAAc,EAAE,eAAM,CAAC,yBAAyB,CAAC,YAAY;SAC9D,CAAC,CAAC;IACL,CAAC;IAEO,KAAK,CAAC,kBAAkB,CAAC,IAA0B;QACzD,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,GAC1B,MAAM,IAAI,CAAC,yBAAyB,CAAC,0BAA0B,CAC7D,IAAI,CAAC,UAAU,EACf,IAAI,CAAC,OAAO,CACb,CAAC;QAEJ,OAAO,IAAA,yCAAmB,EAAC;YACzB,QAAQ,EAAE,IAAI;YACd,QAAQ,EAAE,CAAC,IAAI,EAAE,EAAE,CACjB,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CACxC,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;gBACjB,GAAG,GAAG;gBACN,OAAO,EAAE;oBACP,UAAU,EAAE,IAAI,CAAC,UAAU;oBAC3B,OAAO,EAAE,IAAI,CAAC,OAAO;iBACtB;aACF,CAAC,CAAC,CACJ;YACH,KAAK,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC;SACxC,CAAC,CAAC;IACL,CAAC;IAEO,OAAO,CACb,IAAoC,EACpC,OAAe;QAEf,OAAO,IAAI,CAAC,WAAW,CAAC,KAAK;aAC1B,iBAAiB,CAAC,EAAE,KAAK,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE,CAAC;aACpD,IAAI,CAAC;YACJ,GAAG,IAAI;YACP,OAAO,EAAE;gBACP,EAAE,EAAE,eAAM,CAAC,SAAS,CAAC,GAAG;aACzB;SACF,CAAC,CAAC;IACP,CAAC;IAEO,YAAY,CAAC,OAAe;QAClC,OAAO,IAAI,CAAC,WAAW,CAAC,KAAK;aAC1B,iBAAiB,CAAC;YACjB,KAAK,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE;YAC7B,OAAO,EAAE,EAAE,MAAM,EAAE,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE;SAChD,CAAC;aACD,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IAC1C,CAAC;CACF,CAAA;AA/DY,wCAAc;yBAAd,cAAc;IAD1B,IAAA,mBAAY,EAAC,mBAAY,CAAC;qCAKK,qDAAwB;QACjB,uDAAyB;GALnD,cAAc,CA+D1B"}
@@ -0,0 +1,8 @@
1
+ import { GetRowByIdHandler } from 'src/row/queries/handlers/get-row-by-id.handler';
2
+ import { GetRowHandler } from 'src/row/queries/handlers/get-row.handler';
3
+ import { GetRowsHandler } from 'src/row/queries/handlers/get-rows.handler';
4
+ import { ResolveRowCountReferencesByHandler } from 'src/row/queries/handlers/resolve-row-count-references-by.handler';
5
+ import { ResolveRowCountReferencesToHandler } from 'src/row/queries/handlers/resolve-row-count-references-to.handler';
6
+ import { ResolveRowReferencesByHandler } from 'src/row/queries/handlers/resolve-row-references-by.handler';
7
+ import { ResolveRowReferencesToHandler } from 'src/row/queries/handlers/resolve-row-references-to.handler';
8
+ export declare const ROW_QUERIES_HANDLERS: (typeof GetRowByIdHandler | typeof GetRowHandler | typeof GetRowsHandler | typeof ResolveRowCountReferencesByHandler | typeof ResolveRowCountReferencesToHandler | typeof ResolveRowReferencesByHandler | typeof ResolveRowReferencesToHandler)[];
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ROW_QUERIES_HANDLERS = void 0;
4
+ const get_row_by_id_handler_1 = require("./get-row-by-id.handler");
5
+ const get_row_handler_1 = require("./get-row.handler");
6
+ const get_rows_handler_1 = require("./get-rows.handler");
7
+ const resolve_row_count_references_by_handler_1 = require("./resolve-row-count-references-by.handler");
8
+ const resolve_row_count_references_to_handler_1 = require("./resolve-row-count-references-to.handler");
9
+ const resolve_row_references_by_handler_1 = require("./resolve-row-references-by.handler");
10
+ const resolve_row_references_to_handler_1 = require("./resolve-row-references-to.handler");
11
+ exports.ROW_QUERIES_HANDLERS = [
12
+ get_row_handler_1.GetRowHandler,
13
+ get_row_by_id_handler_1.GetRowByIdHandler,
14
+ get_rows_handler_1.GetRowsHandler,
15
+ resolve_row_count_references_to_handler_1.ResolveRowCountReferencesToHandler,
16
+ resolve_row_count_references_by_handler_1.ResolveRowCountReferencesByHandler,
17
+ resolve_row_references_by_handler_1.ResolveRowReferencesByHandler,
18
+ resolve_row_references_to_handler_1.ResolveRowReferencesToHandler,
19
+ ];
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/row/queries/handlers/index.ts"],"names":[],"mappings":";;;AAAA,mEAAmF;AACnF,uDAAyE;AACzE,yDAA2E;AAC3E,uGAAsH;AACtH,uGAAsH;AACtH,2FAA2G;AAC3G,2FAA2G;AAE9F,QAAA,oBAAoB,GAAG;IAClC,+BAAa;IACb,yCAAiB;IACjB,iCAAc;IACd,4EAAkC;IAClC,4EAAkC;IAClC,iEAA6B;IAC7B,iEAA6B;CAC9B,CAAC"}
@@ -0,0 +1,16 @@
1
+ import { IQueryHandler } from '@nestjs/cqrs';
2
+ import { TransactionPrismaService } from 'src/database/transaction-prisma.service';
3
+ import { ResolveRowReferencesByQuery } from 'src/row/queries/impl';
4
+ import { ResolveRowCountReferencesByQuery } from 'src/row/queries/impl/resolve-row-count-references-by.query';
5
+ import { ReferencesService } from 'src/share/references.service';
6
+ import { ShareTransactionalQueries } from 'src/share/share.transactional.queries';
7
+ export declare class ResolveRowCountReferencesByHandler implements IQueryHandler<ResolveRowCountReferencesByQuery> {
8
+ private readonly transactionService;
9
+ private readonly shareTransactionalQueries;
10
+ private readonly referencesService;
11
+ constructor(transactionService: TransactionPrismaService, shareTransactionalQueries: ShareTransactionalQueries, referencesService: ReferencesService);
12
+ private get transaction();
13
+ execute({ data }: ResolveRowReferencesByQuery): Promise<unknown>;
14
+ private transactionHandler;
15
+ getCountByReferenceTableId(revisionId: string, rowId: string, referenceTableId: string): Promise<number>;
16
+ }
@@ -0,0 +1,67 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ 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
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.ResolveRowCountReferencesByHandler = void 0;
13
+ const cqrs_1 = require("@nestjs/cqrs");
14
+ const client_1 = require("@prisma/client");
15
+ const transaction_prisma_service_1 = require("../../../database/transaction-prisma.service");
16
+ const resolve_row_count_references_by_query_1 = require("../impl/resolve-row-count-references-by.query");
17
+ const references_service_1 = require("../../../share/references.service");
18
+ const consts_1 = require("../../../share/schema/consts");
19
+ const share_transactional_queries_1 = require("../../../share/share.transactional.queries");
20
+ const system_tables_consts_1 = require("../../../share/system-tables.consts");
21
+ const createJsonSchemaStore_1 = require("../../../share/utils/schema/lib/createJsonSchemaStore");
22
+ const getValuePathByStore_1 = require("../../../share/utils/schema/lib/getValuePathByStore");
23
+ const traverseStore_1 = require("../../../share/utils/schema/lib/traverseStore");
24
+ const schema_types_1 = require("../../../share/utils/schema/types/schema.types");
25
+ let ResolveRowCountReferencesByHandler = class ResolveRowCountReferencesByHandler {
26
+ constructor(transactionService, shareTransactionalQueries, referencesService) {
27
+ this.transactionService = transactionService;
28
+ this.shareTransactionalQueries = shareTransactionalQueries;
29
+ this.referencesService = referencesService;
30
+ }
31
+ get transaction() {
32
+ return this.transactionService.getTransaction();
33
+ }
34
+ async execute({ data }) {
35
+ return this.transactionService.run(() => this.transactionHandler(data), {
36
+ isolationLevel: client_1.Prisma.TransactionIsolationLevel.Serializable,
37
+ });
38
+ }
39
+ async transactionHandler(data) {
40
+ const schemaTable = await this.shareTransactionalQueries.findTableInRevisionOrThrow(data.revisionId, system_tables_consts_1.SystemTables.Schema);
41
+ const referenceTableIds = (await this.referencesService.findRowsByKeyValueInData(schemaTable.versionId, consts_1.CustomSchemeKeywords.Reference, data.tableId)).map((row) => row.id);
42
+ const results = await Promise.all(referenceTableIds.map((referenceTableId) => this.getCountByReferenceTableId(data.revisionId, data.rowId, referenceTableId)));
43
+ return results.reduce((sum, result) => {
44
+ return sum + result;
45
+ }, 0);
46
+ }
47
+ async getCountByReferenceTableId(revisionId, rowId, referenceTableId) {
48
+ const referenceTable = await this.shareTransactionalQueries.findTableInRevisionOrThrow(revisionId, referenceTableId);
49
+ const schema = await this.shareTransactionalQueries.getTableSchema(revisionId, referenceTableId);
50
+ const schemaStore = (0, createJsonSchemaStore_1.createJsonSchemaStore)(schema);
51
+ const paths = [];
52
+ (0, traverseStore_1.traverseStore)(schemaStore, (item) => {
53
+ if (item.type === schema_types_1.JsonSchemaTypeName.String && item.reference) {
54
+ paths.push((0, getValuePathByStore_1.getValuePathByStore)(item));
55
+ }
56
+ });
57
+ return this.referencesService.countRowsByPathsAndValueInData(referenceTable.versionId, paths, rowId);
58
+ }
59
+ };
60
+ exports.ResolveRowCountReferencesByHandler = ResolveRowCountReferencesByHandler;
61
+ exports.ResolveRowCountReferencesByHandler = ResolveRowCountReferencesByHandler = __decorate([
62
+ (0, cqrs_1.QueryHandler)(resolve_row_count_references_by_query_1.ResolveRowCountReferencesByQuery),
63
+ __metadata("design:paramtypes", [transaction_prisma_service_1.TransactionPrismaService,
64
+ share_transactional_queries_1.ShareTransactionalQueries,
65
+ references_service_1.ReferencesService])
66
+ ], ResolveRowCountReferencesByHandler);
67
+ //# sourceMappingURL=resolve-row-count-references-by.handler.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolve-row-count-references-by.handler.js","sourceRoot":"","sources":["../../../../../src/row/queries/handlers/resolve-row-count-references-by.handler.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uCAA2D;AAC3D,2CAAwC;AACxC,6FAAmF;AAEnF,yGAA8G;AAC9G,0EAAiE;AACjE,yDAA+D;AAC/D,4FAAkF;AAClF,8EAA8D;AAC9D,iGAAyF;AACzF,6FAAqF;AACrF,iFAAyE;AACzE,iFAGmD;AAG5C,IAAM,kCAAkC,GAAxC,MAAM,kCAAkC;IAG7C,YACmB,kBAA4C,EAC5C,yBAAoD,EACpD,iBAAoC;QAFpC,uBAAkB,GAAlB,kBAAkB,CAA0B;QAC5C,8BAAyB,GAAzB,yBAAyB,CAA2B;QACpD,sBAAiB,GAAjB,iBAAiB,CAAmB;IACpD,CAAC;IAEJ,IAAY,WAAW;QACrB,OAAO,IAAI,CAAC,kBAAkB,CAAC,cAAc,EAAE,CAAC;IAClD,CAAC;IAED,KAAK,CAAC,OAAO,CAAC,EAAE,IAAI,EAA+B;QACjD,OAAO,IAAI,CAAC,kBAAkB,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,EAAE;YACtE,cAAc,EAAE,eAAM,CAAC,yBAAyB,CAAC,YAAY;SAC9D,CAAC,CAAC;IACL,CAAC;IAEO,KAAK,CAAC,kBAAkB,CAC9B,IAA8C;QAE9C,MAAM,WAAW,GACf,MAAM,IAAI,CAAC,yBAAyB,CAAC,0BAA0B,CAC7D,IAAI,CAAC,UAAU,EACf,mCAAY,CAAC,MAAM,CACpB,CAAC;QAEJ,MAAM,iBAAiB,GAAG,CACxB,MAAM,IAAI,CAAC,iBAAiB,CAAC,wBAAwB,CACnD,WAAW,CAAC,SAAS,EACrB,6BAAoB,CAAC,SAAS,EAC9B,IAAI,CAAC,OAAO,CACb,CACF,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;QAEvB,MAAM,OAAO,GAAG,MAAM,OAAO,CAAC,GAAG,CAC/B,iBAAiB,CAAC,GAAG,CAAC,CAAC,gBAAgB,EAAE,EAAE,CACzC,IAAI,CAAC,0BAA0B,CAC7B,IAAI,CAAC,UAAU,EACf,IAAI,CAAC,KAAK,EACV,gBAAgB,CACjB,CACF,CACF,CAAC;QAEF,OAAO,OAAO,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE;YACpC,OAAO,GAAG,GAAG,MAAM,CAAC;QACtB,CAAC,EAAE,CAAC,CAAC,CAAC;IACR,CAAC;IAED,KAAK,CAAC,0BAA0B,CAC9B,UAAkB,EAClB,KAAa,EACb,gBAAwB;QAIxB,MAAM,cAAc,GAClB,MAAM,IAAI,CAAC,yBAAyB,CAAC,0BAA0B,CAC7D,UAAU,EACV,gBAAgB,CACjB,CAAC;QAEJ,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,yBAAyB,CAAC,cAAc,CAChE,UAAU,EACV,gBAAgB,CACjB,CAAC;QAEF,MAAM,WAAW,GAAG,IAAA,6CAAqB,EAAC,MAAoB,CAAC,CAAC;QAEhE,MAAM,KAAK,GAAa,EAAE,CAAC;QAE3B,IAAA,6BAAa,EAAC,WAAW,EAAE,CAAC,IAAI,EAAE,EAAE;YAClC,IAAI,IAAI,CAAC,IAAI,KAAK,iCAAkB,CAAC,MAAM,IAAI,IAAI,CAAC,SAAS,EAAE,CAAC;gBAC9D,KAAK,CAAC,IAAI,CAAC,IAAA,yCAAmB,EAAC,IAAI,CAAC,CAAC,CAAC;YACxC,CAAC;QACH,CAAC,CAAC,CAAC;QAEH,OAAO,IAAI,CAAC,iBAAiB,CAAC,8BAA8B,CAC1D,cAAc,CAAC,SAAS,EACxB,KAAK,EACL,KAAK,CACN,CAAC;IACJ,CAAC;CACF,CAAA;AArFY,gFAAkC;6CAAlC,kCAAkC;IAD9C,IAAA,mBAAY,EAAC,wEAAgC,CAAC;qCAKN,qDAAwB;QACjB,uDAAyB;QACjC,sCAAiB;GAN5C,kCAAkC,CAqF9C"}
@@ -0,0 +1,14 @@
1
+ import { IQueryHandler } from '@nestjs/cqrs';
2
+ import { TransactionPrismaService } from 'src/database/transaction-prisma.service';
3
+ import { ResolveRowCountReferencesToQuery } from 'src/row/queries/impl';
4
+ import { ShareTransactionalQueries } from 'src/share/share.transactional.queries';
5
+ export declare class ResolveRowCountReferencesToHandler implements IQueryHandler<ResolveRowCountReferencesToQuery> {
6
+ private transactionService;
7
+ private shareTransactionalQueries;
8
+ constructor(transactionService: TransactionPrismaService, shareTransactionalQueries: ShareTransactionalQueries);
9
+ private get transaction();
10
+ execute({ data }: ResolveRowCountReferencesToQuery): Promise<unknown>;
11
+ private transactionHandler;
12
+ private getReferences;
13
+ private getRowData;
14
+ }
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ 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
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.ResolveRowCountReferencesToHandler = void 0;
13
+ const cqrs_1 = require("@nestjs/cqrs");
14
+ const client_1 = require("@prisma/client");
15
+ const transaction_prisma_service_1 = require("../../../database/transaction-prisma.service");
16
+ const impl_1 = require("../impl");
17
+ const share_transactional_queries_1 = require("../../../share/share.transactional.queries");
18
+ const createJsonSchemaStore_1 = require("../../../share/utils/schema/lib/createJsonSchemaStore");
19
+ const createJsonValueStore_1 = require("../../../share/utils/schema/lib/createJsonValueStore");
20
+ const getReferencesFromValue_1 = require("../../../share/utils/schema/lib/getReferencesFromValue");
21
+ let ResolveRowCountReferencesToHandler = class ResolveRowCountReferencesToHandler {
22
+ constructor(transactionService, shareTransactionalQueries) {
23
+ this.transactionService = transactionService;
24
+ this.shareTransactionalQueries = shareTransactionalQueries;
25
+ }
26
+ get transaction() {
27
+ return this.transactionService.getTransaction();
28
+ }
29
+ async execute({ data }) {
30
+ return this.transactionService.run(() => this.transactionHandler(data), {
31
+ isolationLevel: client_1.Prisma.TransactionIsolationLevel.Serializable,
32
+ });
33
+ }
34
+ async transactionHandler(data) {
35
+ const rowData = await this.getRowData(data);
36
+ const schema = await this.shareTransactionalQueries.getTableSchema(data.revisionId, data.tableId);
37
+ const references = this.getReferences(schema, data.rowId, rowData);
38
+ return references.flatMap((reference) => reference.rowIds).length;
39
+ }
40
+ getReferences(schema, rowId, value) {
41
+ const schemaStore = (0, createJsonSchemaStore_1.createJsonSchemaStore)(schema);
42
+ return (0, getReferencesFromValue_1.getReferencesFromValue)((0, createJsonValueStore_1.createJsonValueStore)(schemaStore, rowId, value));
43
+ }
44
+ async getRowData(data) {
45
+ const { versionId: tableVersionId } = await this.shareTransactionalQueries.findTableInRevisionOrThrow(data.revisionId, data.tableId);
46
+ const { versionId: rowVersionId } = await this.shareTransactionalQueries.findRowInTableOrThrow(tableVersionId, data.rowId);
47
+ const row = await this.transaction.row.findUniqueOrThrow({
48
+ where: { versionId: rowVersionId },
49
+ });
50
+ return row.data;
51
+ }
52
+ };
53
+ exports.ResolveRowCountReferencesToHandler = ResolveRowCountReferencesToHandler;
54
+ exports.ResolveRowCountReferencesToHandler = ResolveRowCountReferencesToHandler = __decorate([
55
+ (0, cqrs_1.QueryHandler)(impl_1.ResolveRowCountReferencesToQuery),
56
+ __metadata("design:paramtypes", [transaction_prisma_service_1.TransactionPrismaService,
57
+ share_transactional_queries_1.ShareTransactionalQueries])
58
+ ], ResolveRowCountReferencesToHandler);
59
+ //# sourceMappingURL=resolve-row-count-references-to.handler.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolve-row-count-references-to.handler.js","sourceRoot":"","sources":["../../../../../src/row/queries/handlers/resolve-row-count-references-to.handler.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uCAA2D;AAC3D,2CAAwC;AACxC,6FAAmF;AACnF,kCAAwE;AACxE,4FAAkF;AAClF,iGAAyF;AACzF,+FAAuF;AACvF,mGAG2D;AAKpD,IAAM,kCAAkC,GAAxC,MAAM,kCAAkC;IAG7C,YACU,kBAA4C,EAC5C,yBAAoD;QADpD,uBAAkB,GAAlB,kBAAkB,CAA0B;QAC5C,8BAAyB,GAAzB,yBAAyB,CAA2B;IAC3D,CAAC;IAEJ,IAAY,WAAW;QACrB,OAAO,IAAI,CAAC,kBAAkB,CAAC,cAAc,EAAE,CAAC;IAClD,CAAC;IAED,KAAK,CAAC,OAAO,CAAC,EAAE,IAAI,EAAoC;QACtD,OAAO,IAAI,CAAC,kBAAkB,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,EAAE;YACtE,cAAc,EAAE,eAAM,CAAC,yBAAyB,CAAC,YAAY;SAC9D,CAAC,CAAC;IACL,CAAC;IAEO,KAAK,CAAC,kBAAkB,CAC9B,IAA8C;QAE9C,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;QAE5C,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,yBAAyB,CAAC,cAAc,CAChE,IAAI,CAAC,UAAU,EACf,IAAI,CAAC,OAAO,CACb,CAAC;QAEF,MAAM,UAAU,GAAG,IAAI,CAAC,aAAa,CAAC,MAAM,EAAE,IAAI,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;QAEnE,OAAO,UAAU,CAAC,OAAO,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC;IACpE,CAAC;IAEO,aAAa,CACnB,MAAkB,EAClB,KAAa,EACb,KAAgB;QAEhB,MAAM,WAAW,GAAG,IAAA,6CAAqB,EAAC,MAAM,CAAC,CAAC;QAElD,OAAO,IAAA,+CAAsB,EAC3B,IAAA,2CAAoB,EAAC,WAAW,EAAE,KAAK,EAAE,KAAK,CAAC,CAChD,CAAC;IACJ,CAAC;IAEO,KAAK,CAAC,UAAU,CACtB,IAA8C;QAG9C,MAAM,EAAE,SAAS,EAAE,cAAc,EAAE,GACjC,MAAM,IAAI,CAAC,yBAAyB,CAAC,0BAA0B,CAC7D,IAAI,CAAC,UAAU,EACf,IAAI,CAAC,OAAO,CACb,CAAC;QAEJ,MAAM,EAAE,SAAS,EAAE,YAAY,EAAE,GAC/B,MAAM,IAAI,CAAC,yBAAyB,CAAC,qBAAqB,CACxD,cAAc,EACd,IAAI,CAAC,KAAK,CACX,CAAC;QAEJ,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,iBAAiB,CAAC;YACvD,KAAK,EAAE,EAAE,SAAS,EAAE,YAAY,EAAE;SACnC,CAAC,CAAC;QAEH,OAAO,GAAG,CAAC,IAAI,CAAC;IAClB,CAAC;CACF,CAAA;AAnEY,gFAAkC;6CAAlC,kCAAkC;IAD9C,IAAA,mBAAY,EAAC,uCAAgC,CAAC;qCAKf,qDAAwB;QACjB,uDAAyB;GALnD,kCAAkC,CAmE9C"}
@@ -0,0 +1,28 @@
1
+ import { IQueryHandler } from '@nestjs/cqrs';
2
+ import { Prisma } from '@prisma/client';
3
+ import { TransactionPrismaService } from 'src/database/transaction-prisma.service';
4
+ import { ResolveRowReferencesByQuery } from 'src/row/queries/impl';
5
+ import { ResolveRowReferencesByReturnType } from 'src/row/queries/types';
6
+ import { ReferencesService } from 'src/share/references.service';
7
+ import { ShareTransactionalQueries } from 'src/share/share.transactional.queries';
8
+ export declare class ResolveRowReferencesByHandler implements IQueryHandler<ResolveRowReferencesByQuery, ResolveRowReferencesByReturnType> {
9
+ private readonly transactionService;
10
+ private readonly shareTransactionalQueries;
11
+ private readonly referencesService;
12
+ constructor(transactionService: TransactionPrismaService, shareTransactionalQueries: ShareTransactionalQueries, referencesService: ReferencesService);
13
+ private get transaction();
14
+ execute({ data, }: ResolveRowReferencesByQuery): Promise<ResolveRowReferencesByReturnType>;
15
+ private transactionHandler;
16
+ private getJsonPaths;
17
+ getRows(args: {
18
+ take: number;
19
+ skip: number;
20
+ }, rowId: string, jsonPaths: string[], referenceTableVersionId: string): Promise<{
21
+ id: string;
22
+ createdAt: Date;
23
+ versionId: string;
24
+ readonly: boolean;
25
+ data: Prisma.JsonValue;
26
+ }[]>;
27
+ getCount(rowId: string, jsonPaths: string[], referenceTableVersionId: string): Promise<number>;
28
+ }
@@ -0,0 +1,78 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ 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
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.ResolveRowReferencesByHandler = void 0;
13
+ const cqrs_1 = require("@nestjs/cqrs");
14
+ const client_1 = require("@prisma/client");
15
+ const transaction_prisma_service_1 = require("../../../database/transaction-prisma.service");
16
+ const impl_1 = require("../impl");
17
+ const getOffsetPagination_1 = require("../../../share/commands/utils/getOffsetPagination");
18
+ const references_service_1 = require("../../../share/references.service");
19
+ const share_transactional_queries_1 = require("../../../share/share.transactional.queries");
20
+ const createJsonSchemaStore_1 = require("../../../share/utils/schema/lib/createJsonSchemaStore");
21
+ const getValuePathByStore_1 = require("../../../share/utils/schema/lib/getValuePathByStore");
22
+ const traverseStore_1 = require("../../../share/utils/schema/lib/traverseStore");
23
+ const schema_types_1 = require("../../../share/utils/schema/types/schema.types");
24
+ let ResolveRowReferencesByHandler = class ResolveRowReferencesByHandler {
25
+ constructor(transactionService, shareTransactionalQueries, referencesService) {
26
+ this.transactionService = transactionService;
27
+ this.shareTransactionalQueries = shareTransactionalQueries;
28
+ this.referencesService = referencesService;
29
+ }
30
+ get transaction() {
31
+ return this.transactionService.getTransaction();
32
+ }
33
+ async execute({ data, }) {
34
+ return this.transactionService.run(() => this.transactionHandler(data), {
35
+ isolationLevel: client_1.Prisma.TransactionIsolationLevel.Serializable,
36
+ });
37
+ }
38
+ async transactionHandler(data) {
39
+ const jsonPaths = await this.getJsonPaths(data.revisionId, data.referenceByTableId);
40
+ const referenceTable = await this.shareTransactionalQueries.findTableInRevisionOrThrow(data.revisionId, data.referenceByTableId);
41
+ return (0, getOffsetPagination_1.getOffsetPagination)({
42
+ pageData: { first: data.first, after: data.after },
43
+ findMany: (args) => this.getRows(args, data.rowId, jsonPaths, referenceTable.versionId).then((rows) => rows.map((row) => ({
44
+ ...row,
45
+ context: {
46
+ revisionId: data.revisionId,
47
+ tableId: data.tableId,
48
+ },
49
+ }))),
50
+ count: () => this.getCount(data.rowId, jsonPaths, referenceTable.versionId),
51
+ });
52
+ }
53
+ async getJsonPaths(revisionId, referenceTableId) {
54
+ const schema = await this.shareTransactionalQueries.getTableSchema(revisionId, referenceTableId);
55
+ const schemaStore = (0, createJsonSchemaStore_1.createJsonSchemaStore)(schema);
56
+ const jsonPaths = [];
57
+ (0, traverseStore_1.traverseStore)(schemaStore, (item) => {
58
+ if (item.type === schema_types_1.JsonSchemaTypeName.String && item.reference) {
59
+ jsonPaths.push((0, getValuePathByStore_1.getValuePathByStore)(item));
60
+ }
61
+ });
62
+ return jsonPaths;
63
+ }
64
+ async getRows(args, rowId, jsonPaths, referenceTableVersionId) {
65
+ return this.referencesService.findRowsByPathsAndValueInData(referenceTableVersionId, jsonPaths, rowId, args.take, args.skip);
66
+ }
67
+ async getCount(rowId, jsonPaths, referenceTableVersionId) {
68
+ return this.referencesService.countRowsByPathsAndValueInData(referenceTableVersionId, jsonPaths, rowId);
69
+ }
70
+ };
71
+ exports.ResolveRowReferencesByHandler = ResolveRowReferencesByHandler;
72
+ exports.ResolveRowReferencesByHandler = ResolveRowReferencesByHandler = __decorate([
73
+ (0, cqrs_1.QueryHandler)(impl_1.ResolveRowReferencesByQuery),
74
+ __metadata("design:paramtypes", [transaction_prisma_service_1.TransactionPrismaService,
75
+ share_transactional_queries_1.ShareTransactionalQueries,
76
+ references_service_1.ReferencesService])
77
+ ], ResolveRowReferencesByHandler);
78
+ //# sourceMappingURL=resolve-row-references-by.handler.js.map