@revisium/core 2.4.0 → 2.5.0-alpha.10

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 (1215) hide show
  1. package/dist/jest.setup.js +37 -1
  2. package/dist/jest.setup.js.map +1 -1
  3. package/dist/package.json +27 -16
  4. package/dist/prisma/schema.prisma +4 -5
  5. package/dist/prisma/seed/generateSeedApi.js +35 -2
  6. package/dist/prisma/seed/generateSeedApi.js.map +1 -1
  7. package/dist/prisma/seed/loadFromSeedApi.js +35 -2
  8. package/dist/prisma/seed/loadFromSeedApi.js.map +1 -1
  9. package/dist/prisma/seed/permissions/update-user.json +5 -0
  10. package/dist/prisma/seed/roles/organizationAdmin.json +1 -0
  11. package/dist/prisma/seed/roles/organizationOwner.json +1 -0
  12. package/dist/prisma/seed/roles/systemAdmin.json +24 -2
  13. package/dist/prisma/seed.js +42 -5
  14. package/dist/prisma/seed.js.map +1 -1
  15. package/dist/prisma/sql/countRowChangesBetweenRevisions.sql +68 -0
  16. package/dist/prisma/sql/countTableDiffsBetweenRevisions.sql +23 -13
  17. package/dist/prisma/sql/getRowChangesPaginatedBetweenRevisions.sql +155 -0
  18. package/dist/prisma/sql/getRowChangesStatsBetweenRevisions.sql +54 -0
  19. package/dist/prisma/sql/getTableDiffsPaginatedBetweenRevisions.sql +22 -8
  20. package/dist/prisma/sql/getTableDiffsStatsBetweenRevisions.sql +41 -0
  21. package/dist/prisma.config.d.ts +3 -0
  22. package/dist/prisma.config.js +15 -0
  23. package/dist/prisma.config.js.map +1 -0
  24. package/dist/src/__generated__/client/browser.d.ts +18 -0
  25. package/dist/src/__generated__/client/browser.js +44 -0
  26. package/dist/src/__generated__/client/browser.js.map +1 -0
  27. package/dist/src/__generated__/client/client.d.ts +22 -0
  28. package/dist/src/__generated__/client/client.js +46 -0
  29. package/dist/src/__generated__/client/client.js.map +1 -0
  30. package/dist/src/__generated__/client/commonInputTypes.d.ts +441 -0
  31. package/dist/src/{features/draft/commands/types/remove-row.handler.types.js → __generated__/client/commonInputTypes.js} +1 -1
  32. package/dist/src/__generated__/client/commonInputTypes.js.map +1 -0
  33. package/dist/src/__generated__/client/enums.d.ts +11 -0
  34. package/dist/src/__generated__/client/enums.js +13 -0
  35. package/dist/src/__generated__/client/enums.js.map +1 -0
  36. package/dist/src/__generated__/client/index.d.ts +1 -0
  37. package/dist/src/__generated__/client/index.js +18 -0
  38. package/dist/src/__generated__/client/index.js.map +1 -0
  39. package/dist/src/__generated__/client/internal/class.d.ts +75 -0
  40. package/dist/src/__generated__/client/internal/class.js +69 -0
  41. package/dist/src/__generated__/client/internal/class.js.map +1 -0
  42. package/dist/src/__generated__/client/internal/prismaNamespace.d.ts +1572 -0
  43. package/dist/src/__generated__/client/internal/prismaNamespace.js +289 -0
  44. package/dist/src/__generated__/client/internal/prismaNamespace.js.map +1 -0
  45. package/dist/src/__generated__/client/internal/prismaNamespaceBrowser.d.ts +273 -0
  46. package/dist/src/__generated__/client/internal/prismaNamespaceBrowser.js +272 -0
  47. package/dist/src/__generated__/client/internal/prismaNamespaceBrowser.js.map +1 -0
  48. package/dist/src/__generated__/client/models/Branch.d.ts +651 -0
  49. package/dist/src/__generated__/client/models/Branch.js +3 -0
  50. package/dist/src/__generated__/client/models/Branch.js.map +1 -0
  51. package/dist/src/__generated__/client/models/Endpoint.d.ts +701 -0
  52. package/dist/src/__generated__/client/models/Endpoint.js +3 -0
  53. package/dist/src/__generated__/client/models/Endpoint.js.map +1 -0
  54. package/dist/src/__generated__/client/models/EndpointVersion.d.ts +488 -0
  55. package/dist/src/__generated__/client/models/EndpointVersion.js +3 -0
  56. package/dist/src/__generated__/client/models/EndpointVersion.js.map +1 -0
  57. package/dist/src/__generated__/client/models/Instance.d.ts +298 -0
  58. package/dist/src/__generated__/client/models/Instance.js +3 -0
  59. package/dist/src/__generated__/client/models/Instance.js.map +1 -0
  60. package/dist/src/__generated__/client/models/Organization.d.ts +495 -0
  61. package/dist/src/__generated__/client/models/Organization.js +3 -0
  62. package/dist/src/__generated__/client/models/Organization.js.map +1 -0
  63. package/dist/src/__generated__/client/models/Permission.d.ts +556 -0
  64. package/dist/src/__generated__/client/models/Permission.js +3 -0
  65. package/dist/src/__generated__/client/models/Permission.js.map +1 -0
  66. package/dist/src/__generated__/client/models/Project.d.ts +781 -0
  67. package/dist/src/__generated__/client/models/Project.js +3 -0
  68. package/dist/src/__generated__/client/models/Project.js.map +1 -0
  69. package/dist/src/__generated__/client/models/Revision.d.ts +1298 -0
  70. package/dist/src/__generated__/client/models/Revision.js +3 -0
  71. package/dist/src/__generated__/client/models/Revision.js.map +1 -0
  72. package/dist/src/__generated__/client/models/Role.d.ts +858 -0
  73. package/dist/src/__generated__/client/models/Role.js +3 -0
  74. package/dist/src/__generated__/client/models/Role.js.map +1 -0
  75. package/dist/src/__generated__/client/models/Row.d.ts +754 -0
  76. package/dist/src/__generated__/client/models/Row.js +3 -0
  77. package/dist/src/__generated__/client/models/Row.js.map +1 -0
  78. package/dist/src/__generated__/client/models/Table.d.ts +761 -0
  79. package/dist/src/__generated__/client/models/Table.js +3 -0
  80. package/dist/src/__generated__/client/models/Table.js.map +1 -0
  81. package/dist/src/__generated__/client/models/User.d.ts +876 -0
  82. package/dist/src/__generated__/client/models/User.js +3 -0
  83. package/dist/src/__generated__/client/models/User.js.map +1 -0
  84. package/dist/src/__generated__/client/models/UserOrganization.d.ts +764 -0
  85. package/dist/src/__generated__/client/models/UserOrganization.js +3 -0
  86. package/dist/src/__generated__/client/models/UserOrganization.js.map +1 -0
  87. package/dist/src/__generated__/client/models/UserProject.d.ts +764 -0
  88. package/dist/src/__generated__/client/models/UserProject.js +3 -0
  89. package/dist/src/__generated__/client/models/UserProject.js.map +1 -0
  90. package/dist/src/__generated__/client/models.d.ts +15 -0
  91. package/dist/src/__generated__/client/models.js +3 -0
  92. package/dist/src/__generated__/client/models.js.map +1 -0
  93. package/dist/src/__generated__/client/sql/$DbEnums.d.ts +4 -0
  94. package/dist/src/__generated__/client/sql/$DbEnums.js +3 -0
  95. package/dist/src/__generated__/client/sql/$DbEnums.js.map +1 -0
  96. package/dist/src/__generated__/client/sql/countRowChangesBetweenRevisions.d.ts +8 -0
  97. package/dist/src/__generated__/client/sql/countRowChangesBetweenRevisions.js +39 -0
  98. package/dist/src/__generated__/client/sql/countRowChangesBetweenRevisions.js.map +1 -0
  99. package/dist/src/__generated__/client/sql/countTableDiffsBetweenRevisions.d.ts +8 -0
  100. package/dist/src/__generated__/client/sql/countTableDiffsBetweenRevisions.js +39 -0
  101. package/dist/src/__generated__/client/sql/countTableDiffsBetweenRevisions.js.map +1 -0
  102. package/dist/src/__generated__/client/sql/getRowChangesPaginatedBetweenRevisions.d.ts +46 -0
  103. package/dist/src/__generated__/client/sql/getRowChangesPaginatedBetweenRevisions.js +39 -0
  104. package/dist/src/__generated__/client/sql/getRowChangesPaginatedBetweenRevisions.js.map +1 -0
  105. package/dist/src/__generated__/client/sql/getRowChangesStatsBetweenRevisions.d.ts +12 -0
  106. package/dist/src/__generated__/client/sql/getRowChangesStatsBetweenRevisions.js +39 -0
  107. package/dist/src/__generated__/client/sql/getRowChangesStatsBetweenRevisions.js.map +1 -0
  108. package/dist/src/__generated__/client/sql/getTableDiffsPaginatedBetweenRevisions.d.ts +14 -0
  109. package/dist/src/__generated__/client/sql/getTableDiffsPaginatedBetweenRevisions.js +39 -0
  110. package/dist/src/__generated__/client/sql/getTableDiffsPaginatedBetweenRevisions.js.map +1 -0
  111. package/dist/src/__generated__/client/sql/getTableDiffsStatsBetweenRevisions.d.ts +12 -0
  112. package/dist/src/__generated__/client/sql/getTableDiffsStatsBetweenRevisions.js +39 -0
  113. package/dist/src/__generated__/client/sql/getTableDiffsStatsBetweenRevisions.js.map +1 -0
  114. package/dist/src/__generated__/client/sql/hasRowDiffsBetweenRevisions.d.ts +8 -0
  115. package/dist/src/__generated__/client/sql/hasRowDiffsBetweenRevisions.js +39 -0
  116. package/dist/src/__generated__/client/sql/hasRowDiffsBetweenRevisions.js.map +1 -0
  117. package/dist/src/__generated__/client/sql/hasTableDiffsBetweenRevisions.d.ts +8 -0
  118. package/dist/src/__generated__/client/sql/hasTableDiffsBetweenRevisions.js +39 -0
  119. package/dist/src/__generated__/client/sql/hasTableDiffsBetweenRevisions.js.map +1 -0
  120. package/dist/src/__generated__/client/sql.d.ts +9 -0
  121. package/dist/src/__generated__/client/sql.js +25 -0
  122. package/dist/src/__generated__/client/sql.js.map +1 -0
  123. package/dist/src/__tests__/create-models.d.ts +4 -2
  124. package/dist/src/__tests__/e2e/shared/graphql-helpers.d.ts +29 -0
  125. package/dist/src/__tests__/e2e/shared/graphql-helpers.js +61 -0
  126. package/dist/src/__tests__/e2e/shared/graphql-helpers.js.map +1 -0
  127. package/dist/src/__tests__/e2e/shared/helpers.d.ts +16 -0
  128. package/dist/src/__tests__/e2e/shared/helpers.js +64 -0
  129. package/dist/src/__tests__/e2e/shared/helpers.js.map +1 -0
  130. package/dist/src/__tests__/e2e/shared/index.d.ts +4 -0
  131. package/dist/src/__tests__/e2e/shared/index.js +26 -0
  132. package/dist/src/__tests__/e2e/shared/index.js.map +1 -0
  133. package/dist/src/__tests__/e2e/shared/readonly-fixture.d.ts +5 -0
  134. package/dist/src/__tests__/e2e/shared/readonly-fixture.js +28 -0
  135. package/dist/src/__tests__/e2e/shared/readonly-fixture.js.map +1 -0
  136. package/dist/src/__tests__/e2e/shared/test-app.d.ts +6 -0
  137. package/dist/src/__tests__/e2e/shared/test-app.js +55 -0
  138. package/dist/src/__tests__/e2e/shared/test-app.js.map +1 -0
  139. package/dist/src/__tests__/utils/prepareProject.d.ts +335 -64
  140. package/dist/src/__tests__/utils/prepareProject.js +83 -24
  141. package/dist/src/__tests__/utils/prepareProject.js.map +1 -1
  142. package/dist/src/__tests__/utils/queryTest.js +6 -3
  143. package/dist/src/__tests__/utils/queryTest.js.map +1 -1
  144. package/dist/src/api/graphql-api/auth/auth.resolver.d.ts +3 -3
  145. package/dist/src/api/graphql-api/auth/auth.resolver.js +14 -11
  146. package/dist/src/api/graphql-api/auth/auth.resolver.js.map +1 -1
  147. package/dist/src/api/graphql-api/branch/branch.resolver.d.ts +72 -15
  148. package/dist/src/api/graphql-api/branch/branch.resolver.js +18 -23
  149. package/dist/src/api/graphql-api/branch/branch.resolver.js.map +1 -1
  150. package/dist/src/api/graphql-api/branch/inputs/get-branch-revisions.input.d.ts +3 -0
  151. package/dist/src/api/graphql-api/branch/inputs/get-branch-revisions.input.js +12 -0
  152. package/dist/src/api/graphql-api/branch/inputs/get-branch-revisions.input.js.map +1 -1
  153. package/dist/src/api/graphql-api/branch/parent-branch.resolver.d.ts +10 -4
  154. package/dist/src/api/graphql-api/branch/parent-branch.resolver.js +5 -6
  155. package/dist/src/api/graphql-api/branch/parent-branch.resolver.js.map +1 -1
  156. package/dist/src/api/graphql-api/configuration/configuration.resolver.d.ts +3 -3
  157. package/dist/src/api/graphql-api/configuration/configuration.resolver.js +5 -6
  158. package/dist/src/api/graphql-api/configuration/configuration.resolver.js.map +1 -1
  159. package/dist/src/api/graphql-api/draft/draft.resolver.d.ts +14 -13
  160. package/dist/src/api/graphql-api/draft/draft.resolver.js +31 -22
  161. package/dist/src/api/graphql-api/draft/draft.resolver.js.map +1 -1
  162. package/dist/src/api/graphql-api/draft/input/create-row.input.d.ts +1 -1
  163. package/dist/src/api/graphql-api/draft/input/create-row.input.js +1 -1
  164. package/dist/src/api/graphql-api/draft/input/create-row.input.js.map +1 -1
  165. package/dist/src/api/graphql-api/draft/input/create-table.input.d.ts +1 -1
  166. package/dist/src/api/graphql-api/draft/input/create-table.input.js +1 -1
  167. package/dist/src/api/graphql-api/draft/input/create-table.input.js.map +1 -1
  168. package/dist/src/api/graphql-api/draft/input/index.d.ts +1 -0
  169. package/dist/src/api/graphql-api/draft/input/index.js +1 -0
  170. package/dist/src/api/graphql-api/draft/input/index.js.map +1 -1
  171. package/dist/src/api/graphql-api/draft/input/remove-rows.input.d.ts +5 -0
  172. package/dist/src/api/graphql-api/draft/input/remove-rows.input.js +36 -0
  173. package/dist/src/api/graphql-api/draft/input/remove-rows.input.js.map +1 -0
  174. package/dist/src/api/graphql-api/draft/input/update-row.input.d.ts +1 -1
  175. package/dist/src/api/graphql-api/draft/input/update-row.input.js +1 -1
  176. package/dist/src/api/graphql-api/draft/input/update-row.input.js.map +1 -1
  177. package/dist/src/api/graphql-api/draft/model/remove-rows-result.model.d.ts +7 -0
  178. package/dist/src/api/graphql-api/draft/model/remove-rows-result.model.js +34 -0
  179. package/dist/src/api/graphql-api/draft/model/remove-rows-result.model.js.map +1 -0
  180. package/dist/src/api/graphql-api/endpoint/endpoint.resolver.d.ts +14 -7
  181. package/dist/src/api/graphql-api/endpoint/endpoint.resolver.js +21 -13
  182. package/dist/src/api/graphql-api/endpoint/endpoint.resolver.js.map +1 -1
  183. package/dist/src/api/graphql-api/endpoint/inputs/get-project-endpoints.input.d.ts +9 -0
  184. package/dist/src/api/graphql-api/endpoint/inputs/get-project-endpoints.input.js +45 -0
  185. package/dist/src/api/graphql-api/endpoint/inputs/get-project-endpoints.input.js.map +1 -0
  186. package/dist/src/api/graphql-api/endpoint/inputs/index.d.ts +1 -0
  187. package/dist/src/api/graphql-api/endpoint/inputs/index.js +1 -0
  188. package/dist/src/api/graphql-api/endpoint/inputs/index.js.map +1 -1
  189. package/dist/src/api/graphql-api/endpoint/model/endpoint.model.d.ts +1 -0
  190. package/dist/src/api/graphql-api/endpoint/model/endpoint.model.js +4 -0
  191. package/dist/src/api/graphql-api/endpoint/model/endpoint.model.js.map +1 -1
  192. package/dist/src/api/graphql-api/endpoint/model/endpoints-connection.model.d.ts +5 -0
  193. package/dist/src/api/graphql-api/endpoint/model/endpoints-connection.model.js +19 -0
  194. package/dist/src/api/graphql-api/endpoint/model/endpoints-connection.model.js.map +1 -0
  195. package/dist/src/api/graphql-api/endpoint/model/index.d.ts +1 -0
  196. package/dist/src/api/graphql-api/endpoint/model/index.js +1 -0
  197. package/dist/src/api/graphql-api/endpoint/model/index.js.map +1 -1
  198. package/dist/src/api/graphql-api/filters/graphql-validation-exception.filter.d.ts +6 -0
  199. package/dist/src/api/graphql-api/filters/graphql-validation-exception.filter.js +40 -0
  200. package/dist/src/api/graphql-api/filters/graphql-validation-exception.filter.js.map +1 -0
  201. package/dist/src/api/graphql-api/graphql-api.module.js +43 -3
  202. package/dist/src/api/graphql-api/graphql-api.module.js.map +1 -1
  203. package/dist/src/api/graphql-api/organization/model/organization.model.d.ts +6 -0
  204. package/dist/src/api/graphql-api/organization/model/organization.model.js +33 -0
  205. package/dist/src/api/graphql-api/organization/model/organization.model.js.map +1 -0
  206. package/dist/src/api/graphql-api/organization/model/users-organization.model.d.ts +1 -0
  207. package/dist/src/api/graphql-api/organization/model/users-organization.model.js.map +1 -1
  208. package/dist/src/api/graphql-api/organization/organization.resolver.d.ts +20 -8
  209. package/dist/src/api/graphql-api/organization/organization.resolver.js +34 -15
  210. package/dist/src/api/graphql-api/organization/organization.resolver.js.map +1 -1
  211. package/dist/src/api/graphql-api/organization/users-organization.resolver.d.ts +13 -0
  212. package/dist/src/api/graphql-api/organization/users-organization.resolver.js +39 -0
  213. package/dist/src/api/graphql-api/organization/users-organization.resolver.js.map +1 -0
  214. package/dist/src/api/graphql-api/permission/model/permission.model.d.ts +6 -0
  215. package/dist/src/api/graphql-api/permission/model/permission.model.js +37 -0
  216. package/dist/src/api/graphql-api/permission/model/permission.model.js.map +1 -0
  217. package/dist/src/api/graphql-api/project/inputs/index.d.ts +1 -0
  218. package/dist/src/api/graphql-api/project/inputs/index.js +1 -0
  219. package/dist/src/api/graphql-api/project/inputs/index.js.map +1 -1
  220. package/dist/src/api/graphql-api/project/inputs/update-user-project-role.input.d.ts +7 -0
  221. package/dist/src/api/graphql-api/project/inputs/update-user-project-role.input.js +37 -0
  222. package/dist/src/api/graphql-api/project/inputs/update-user-project-role.input.js.map +1 -0
  223. package/dist/src/api/graphql-api/project/model/project.model.d.ts +4 -0
  224. package/dist/src/api/graphql-api/project/model/project.model.js +10 -0
  225. package/dist/src/api/graphql-api/project/model/project.model.js.map +1 -1
  226. package/dist/src/api/graphql-api/project/model/users-project.model.d.ts +1 -0
  227. package/dist/src/api/graphql-api/project/model/users-project.model.js.map +1 -1
  228. package/dist/src/api/graphql-api/project/project.resolver.d.ts +32 -9
  229. package/dist/src/api/graphql-api/project/project.resolver.js +63 -16
  230. package/dist/src/api/graphql-api/project/project.resolver.js.map +1 -1
  231. package/dist/src/api/graphql-api/project/users-project.resolver.d.ts +13 -0
  232. package/dist/src/api/graphql-api/project/users-project.resolver.js +45 -0
  233. package/dist/src/api/graphql-api/project/users-project.resolver.js.map +1 -0
  234. package/dist/src/api/graphql-api/registerGraphqlEnums.js +1 -1
  235. package/dist/src/api/graphql-api/registerGraphqlEnums.js.map +1 -1
  236. package/dist/src/api/graphql-api/revision/child-branch.resolver.d.ts +10 -4
  237. package/dist/src/api/graphql-api/revision/child-branch.resolver.js +5 -6
  238. package/dist/src/api/graphql-api/revision/child-branch.resolver.js.map +1 -1
  239. package/dist/src/api/graphql-api/revision/model/revision.model.d.ts +4 -0
  240. package/dist/src/api/graphql-api/revision/model/revision.model.js +9 -0
  241. package/dist/src/api/graphql-api/revision/model/revision.model.js.map +1 -1
  242. package/dist/src/api/graphql-api/revision/revision.resolver.d.ts +32 -12
  243. package/dist/src/api/graphql-api/revision/revision.resolver.js +41 -22
  244. package/dist/src/api/graphql-api/revision/revision.resolver.js.map +1 -1
  245. package/dist/src/api/graphql-api/revision-changes/input/get-revision-changes.input.d.ts +5 -0
  246. package/dist/src/api/graphql-api/revision-changes/input/get-revision-changes.input.js +32 -0
  247. package/dist/src/api/graphql-api/revision-changes/input/get-revision-changes.input.js.map +1 -0
  248. package/dist/src/api/graphql-api/revision-changes/input/get-row-changes.input.d.ts +8 -0
  249. package/dist/src/api/graphql-api/revision-changes/input/get-row-changes.input.js +41 -0
  250. package/dist/src/api/graphql-api/revision-changes/input/get-row-changes.input.js.map +1 -0
  251. package/dist/src/api/graphql-api/revision-changes/input/get-table-changes.input.d.ts +8 -0
  252. package/dist/src/api/graphql-api/revision-changes/input/get-table-changes.input.js +41 -0
  253. package/dist/src/api/graphql-api/revision-changes/input/get-table-changes.input.js.map +1 -0
  254. package/dist/src/api/graphql-api/revision-changes/input/index.d.ts +5 -0
  255. package/dist/src/api/graphql-api/revision-changes/input/index.js +22 -0
  256. package/dist/src/api/graphql-api/revision-changes/input/index.js.map +1 -0
  257. package/dist/src/api/graphql-api/revision-changes/input/row-changes-filters.input.d.ts +7 -0
  258. package/dist/src/api/graphql-api/revision-changes/input/row-changes-filters.input.js +37 -0
  259. package/dist/src/api/graphql-api/revision-changes/input/row-changes-filters.input.js.map +1 -0
  260. package/dist/src/api/graphql-api/revision-changes/input/table-changes-filters.input.d.ts +7 -0
  261. package/dist/src/api/graphql-api/revision-changes/input/table-changes-filters.input.js +37 -0
  262. package/dist/src/api/graphql-api/revision-changes/input/table-changes-filters.input.js.map +1 -0
  263. package/dist/src/api/graphql-api/revision-changes/model/enums.model.d.ts +26 -0
  264. package/dist/src/api/graphql-api/revision-changes/model/enums.model.js +39 -0
  265. package/dist/src/api/graphql-api/revision-changes/model/enums.model.js.map +1 -0
  266. package/dist/src/api/graphql-api/revision-changes/model/field-change.model.d.ts +12 -0
  267. package/dist/src/api/graphql-api/revision-changes/model/field-change.model.js +56 -0
  268. package/dist/src/api/graphql-api/revision-changes/model/field-change.model.js.map +1 -0
  269. package/dist/src/api/graphql-api/revision-changes/model/index.d.ts +7 -0
  270. package/dist/src/api/graphql-api/revision-changes/model/index.js +24 -0
  271. package/dist/src/api/graphql-api/revision-changes/model/index.js.map +1 -0
  272. package/dist/src/api/graphql-api/revision-changes/model/revision-changes.model.d.ts +14 -0
  273. package/dist/src/api/graphql-api/revision-changes/model/revision-changes.model.js +66 -0
  274. package/dist/src/api/graphql-api/revision-changes/model/revision-changes.model.js.map +1 -0
  275. package/dist/src/api/graphql-api/revision-changes/model/row-change.model.d.ts +56 -0
  276. package/dist/src/api/graphql-api/revision-changes/model/row-change.model.js +227 -0
  277. package/dist/src/api/graphql-api/revision-changes/model/row-change.model.js.map +1 -0
  278. package/dist/src/api/graphql-api/revision-changes/model/schema-change.model.d.ts +34 -0
  279. package/dist/src/api/graphql-api/revision-changes/model/schema-change.model.js +138 -0
  280. package/dist/src/api/graphql-api/revision-changes/model/schema-change.model.js.map +1 -0
  281. package/dist/src/api/graphql-api/revision-changes/model/table-change.model.d.ts +23 -0
  282. package/dist/src/api/graphql-api/revision-changes/model/table-change.model.js +86 -0
  283. package/dist/src/api/graphql-api/revision-changes/model/table-change.model.js.map +1 -0
  284. package/dist/src/api/graphql-api/revision-changes/model/views-change.model.d.ts +15 -0
  285. package/dist/src/api/graphql-api/revision-changes/model/views-change.model.js +67 -0
  286. package/dist/src/api/graphql-api/revision-changes/model/views-change.model.js.map +1 -0
  287. package/dist/src/api/graphql-api/revision-changes/revision-changes.resolver.d.ts +10 -0
  288. package/dist/src/api/graphql-api/revision-changes/revision-changes.resolver.js +88 -0
  289. package/dist/src/api/graphql-api/revision-changes/revision-changes.resolver.js.map +1 -0
  290. package/dist/src/api/graphql-api/role/model/role.model.d.ts +2 -0
  291. package/dist/src/api/graphql-api/role/model/role.model.js +5 -0
  292. package/dist/src/api/graphql-api/role/model/role.model.js.map +1 -1
  293. package/dist/src/api/graphql-api/role/role.resolver.d.ts +7 -0
  294. package/dist/src/api/graphql-api/role/role.resolver.js +39 -0
  295. package/dist/src/api/graphql-api/role/role.resolver.js.map +1 -0
  296. package/dist/src/api/graphql-api/row/inputs/get-rows.input.d.ts +2 -1
  297. package/dist/src/api/graphql-api/row/inputs/get-rows.input.js +2 -1
  298. package/dist/src/api/graphql-api/row/inputs/get-rows.input.js.map +1 -1
  299. package/dist/src/api/graphql-api/row/inputs/search-rows.input.d.ts +6 -0
  300. package/dist/src/api/graphql-api/row/inputs/search-rows.input.js +36 -0
  301. package/dist/src/api/graphql-api/row/inputs/search-rows.input.js.map +1 -0
  302. package/dist/src/api/graphql-api/row/model/row.model.d.ts +1 -1
  303. package/dist/src/api/graphql-api/row/model/row.model.js +1 -1
  304. package/dist/src/api/graphql-api/row/model/row.model.js.map +1 -1
  305. package/dist/src/api/graphql-api/row/model/search-result.model.d.ts +12 -0
  306. package/dist/src/api/graphql-api/row/model/search-result.model.js +53 -0
  307. package/dist/src/api/graphql-api/row/model/search-result.model.js.map +1 -0
  308. package/dist/src/api/graphql-api/row/model/search-results-connection.model.d.ts +5 -0
  309. package/dist/src/api/graphql-api/row/model/search-results-connection.model.js +19 -0
  310. package/dist/src/api/graphql-api/row/model/search-results-connection.model.js.map +1 -0
  311. package/dist/src/api/graphql-api/row/resolver/search-rows.resolver.d.ts +7 -0
  312. package/dist/src/api/graphql-api/row/resolver/search-rows.resolver.js +55 -0
  313. package/dist/src/api/graphql-api/row/resolver/search-rows.resolver.js.map +1 -0
  314. package/dist/src/api/graphql-api/table/model/table.model.d.ts +3 -1
  315. package/dist/src/api/graphql-api/table/model/table.model.js +6 -1
  316. package/dist/src/api/graphql-api/table/model/table.model.js.map +1 -1
  317. package/dist/src/api/graphql-api/table/table.resolver.d.ts +22 -12
  318. package/dist/src/api/graphql-api/table/table.resolver.js +40 -24
  319. package/dist/src/api/graphql-api/table/table.resolver.js.map +1 -1
  320. package/dist/src/api/graphql-api/user/inputs/index.d.ts +1 -0
  321. package/dist/src/api/graphql-api/user/inputs/index.js +1 -0
  322. package/dist/src/api/graphql-api/user/inputs/index.js.map +1 -1
  323. package/dist/src/api/graphql-api/user/inputs/search-users.input.d.ts +5 -0
  324. package/dist/src/api/graphql-api/user/inputs/search-users.input.js +32 -0
  325. package/dist/src/api/graphql-api/user/inputs/search-users.input.js.map +1 -0
  326. package/dist/src/api/graphql-api/user/model/user.model.d.ts +3 -0
  327. package/dist/src/api/graphql-api/user/model/user.model.js +5 -0
  328. package/dist/src/api/graphql-api/user/model/user.model.js.map +1 -1
  329. package/dist/src/api/graphql-api/user/model/users.connection.d.ts +5 -0
  330. package/dist/src/api/graphql-api/user/model/users.connection.js +19 -0
  331. package/dist/src/api/graphql-api/user/model/users.connection.js.map +1 -0
  332. package/dist/src/api/graphql-api/user/user.resolver.d.ts +17 -9
  333. package/dist/src/api/graphql-api/user/user.resolver.js +43 -16
  334. package/dist/src/api/graphql-api/user/user.resolver.js.map +1 -1
  335. package/dist/src/api/graphql-api/views/input/get-table-views.input.d.ts +4 -0
  336. package/dist/src/api/graphql-api/views/input/get-table-views.input.js +28 -0
  337. package/dist/src/api/graphql-api/views/input/get-table-views.input.js.map +1 -0
  338. package/dist/src/api/graphql-api/views/input/index.d.ts +2 -0
  339. package/dist/src/api/graphql-api/views/input/index.js +19 -0
  340. package/dist/src/api/graphql-api/views/input/index.js.map +1 -0
  341. package/dist/src/api/graphql-api/views/input/update-table-views.input.d.ts +28 -0
  342. package/dist/src/api/graphql-api/views/input/update-table-views.input.js +114 -0
  343. package/dist/src/api/graphql-api/views/input/update-table-views.input.js.map +1 -0
  344. package/dist/src/api/graphql-api/views/model/index.d.ts +4 -0
  345. package/dist/src/api/graphql-api/views/model/index.js +21 -0
  346. package/dist/src/api/graphql-api/views/model/index.js.map +1 -0
  347. package/dist/src/api/graphql-api/views/model/table-views-data.model.d.ts +6 -0
  348. package/dist/src/api/graphql-api/views/model/table-views-data.model.js +33 -0
  349. package/dist/src/api/graphql-api/views/model/table-views-data.model.js.map +1 -0
  350. package/dist/src/api/graphql-api/views/model/view-column.model.d.ts +4 -0
  351. package/dist/src/api/graphql-api/views/model/view-column.model.js +28 -0
  352. package/dist/src/api/graphql-api/views/model/view-column.model.js.map +1 -0
  353. package/dist/src/api/graphql-api/views/model/view-sort.model.d.ts +4 -0
  354. package/dist/src/api/graphql-api/views/model/view-sort.model.js +28 -0
  355. package/dist/src/api/graphql-api/views/model/view-sort.model.js.map +1 -0
  356. package/dist/src/api/graphql-api/views/model/view.model.d.ts +11 -0
  357. package/dist/src/api/graphql-api/views/model/view.model.js +51 -0
  358. package/dist/src/api/graphql-api/views/model/view.model.js.map +1 -0
  359. package/dist/src/api/graphql-api/views/views.resolver.d.ts +10 -0
  360. package/dist/src/api/graphql-api/views/views.resolver.js +77 -0
  361. package/dist/src/api/graphql-api/views/views.resolver.js.map +1 -0
  362. package/dist/src/api/mcp-api/mcp-server.service.d.ts +55 -0
  363. package/dist/src/api/mcp-api/mcp-server.service.js +202 -0
  364. package/dist/src/api/mcp-api/mcp-server.service.js.map +1 -0
  365. package/dist/src/api/mcp-api/mcp-session.service.d.ts +19 -0
  366. package/dist/src/api/mcp-api/mcp-session.service.js +57 -0
  367. package/dist/src/api/mcp-api/mcp-session.service.js.map +1 -0
  368. package/dist/src/api/mcp-api/mcp.controller.d.ts +10 -0
  369. package/dist/src/api/mcp-api/mcp.controller.js +130 -0
  370. package/dist/src/api/mcp-api/mcp.controller.js.map +1 -0
  371. package/dist/src/api/mcp-api/mcp.module.d.ts +2 -0
  372. package/dist/src/api/mcp-api/mcp.module.js +51 -0
  373. package/dist/src/api/mcp-api/mcp.module.js.map +1 -0
  374. package/dist/src/api/mcp-api/resources/file.resource.d.ts +8 -0
  375. package/dist/src/api/mcp-api/resources/file.resource.js +561 -0
  376. package/dist/src/api/mcp-api/resources/file.resource.js.map +1 -0
  377. package/dist/src/api/mcp-api/resources/index.d.ts +4 -0
  378. package/dist/src/api/mcp-api/resources/index.js +12 -0
  379. package/dist/src/api/mcp-api/resources/index.js.map +1 -0
  380. package/dist/src/api/mcp-api/resources/migration.resource.d.ts +6 -0
  381. package/dist/src/api/mcp-api/resources/migration.resource.js +165 -0
  382. package/dist/src/api/mcp-api/resources/migration.resource.js.map +1 -0
  383. package/dist/src/api/mcp-api/resources/query.resource.d.ts +6 -0
  384. package/dist/src/api/mcp-api/resources/query.resource.js +739 -0
  385. package/dist/src/api/mcp-api/resources/query.resource.js.map +1 -0
  386. package/dist/src/api/mcp-api/resources/schema.resource.d.ts +8 -0
  387. package/dist/src/api/mcp-api/resources/schema.resource.js +547 -0
  388. package/dist/src/api/mcp-api/resources/schema.resource.js.map +1 -0
  389. package/dist/src/api/mcp-api/tools/auth.tools.d.ts +12 -0
  390. package/dist/src/api/mcp-api/tools/auth.tools.js +182 -0
  391. package/dist/src/api/mcp-api/tools/auth.tools.js.map +1 -0
  392. package/dist/src/api/mcp-api/tools/branch.tools.d.ts +8 -0
  393. package/dist/src/api/mcp-api/tools/branch.tools.js +108 -0
  394. package/dist/src/api/mcp-api/tools/branch.tools.js.map +1 -0
  395. package/dist/src/api/mcp-api/tools/endpoint.tools.d.ts +14 -0
  396. package/dist/src/api/mcp-api/tools/endpoint.tools.js +354 -0
  397. package/dist/src/api/mcp-api/tools/endpoint.tools.js.map +1 -0
  398. package/dist/src/api/mcp-api/tools/file.tools.d.ts +8 -0
  399. package/dist/src/api/mcp-api/tools/file.tools.js +75 -0
  400. package/dist/src/api/mcp-api/tools/file.tools.js.map +1 -0
  401. package/dist/src/api/mcp-api/tools/index.d.ts +12 -0
  402. package/dist/src/api/mcp-api/tools/index.js +28 -0
  403. package/dist/src/api/mcp-api/tools/index.js.map +1 -0
  404. package/dist/src/api/mcp-api/tools/migration.tools.d.ts +10 -0
  405. package/dist/src/api/mcp-api/tools/migration.tools.js +67 -0
  406. package/dist/src/api/mcp-api/tools/migration.tools.js.map +1 -0
  407. package/dist/src/api/mcp-api/tools/organization.tools.d.ts +8 -0
  408. package/dist/src/api/mcp-api/tools/organization.tools.js +65 -0
  409. package/dist/src/api/mcp-api/tools/organization.tools.js.map +1 -0
  410. package/dist/src/api/mcp-api/tools/project.tools.d.ts +10 -0
  411. package/dist/src/api/mcp-api/tools/project.tools.js +121 -0
  412. package/dist/src/api/mcp-api/tools/project.tools.js.map +1 -0
  413. package/dist/src/api/mcp-api/tools/revision-changes.tools.d.ts +8 -0
  414. package/dist/src/api/mcp-api/tools/revision-changes.tools.js +114 -0
  415. package/dist/src/api/mcp-api/tools/revision-changes.tools.js.map +1 -0
  416. package/dist/src/api/mcp-api/tools/revision.tools.d.ts +10 -0
  417. package/dist/src/api/mcp-api/tools/revision.tools.js +65 -0
  418. package/dist/src/api/mcp-api/tools/revision.tools.js.map +1 -0
  419. package/dist/src/api/mcp-api/tools/row.tools.d.ts +10 -0
  420. package/dist/src/api/mcp-api/tools/row.tools.js +189 -0
  421. package/dist/src/api/mcp-api/tools/row.tools.js.map +1 -0
  422. package/dist/src/api/mcp-api/tools/table.tools.d.ts +10 -0
  423. package/dist/src/api/mcp-api/tools/table.tools.js +201 -0
  424. package/dist/src/api/mcp-api/tools/table.tools.js.map +1 -0
  425. package/dist/src/api/mcp-api/tools/user.tools.d.ts +8 -0
  426. package/dist/src/api/mcp-api/tools/user.tools.js +50 -0
  427. package/dist/src/api/mcp-api/tools/user.tools.js.map +1 -0
  428. package/dist/src/api/mcp-api/types.d.ts +25 -0
  429. package/dist/src/api/mcp-api/types.js +3 -0
  430. package/dist/src/api/mcp-api/types.js.map +1 -0
  431. package/dist/src/api/rest-api/auth/auth.controller.d.ts +7 -5
  432. package/dist/src/api/rest-api/auth/auth.controller.js +13 -9
  433. package/dist/src/api/rest-api/auth/auth.controller.js.map +1 -1
  434. package/dist/src/api/rest-api/auth/dto/update-password.dto.js +8 -2
  435. package/dist/src/api/rest-api/auth/dto/update-password.dto.js.map +1 -1
  436. package/dist/src/api/rest-api/branch/branch-by-name.controller.d.ts +13 -5
  437. package/dist/src/api/rest-api/branch/branch-by-name.controller.js +20 -24
  438. package/dist/src/api/rest-api/branch/branch-by-name.controller.js.map +1 -1
  439. package/dist/src/api/rest-api/branch/dto/get-branch-revisions.dto.d.ts +3 -0
  440. package/dist/src/api/rest-api/branch/dto/get-branch-revisions.dto.js +18 -0
  441. package/dist/src/api/rest-api/branch/dto/get-branch-revisions.dto.js.map +1 -1
  442. package/dist/src/api/rest-api/configuration/configuration.controller.d.ts +3 -3
  443. package/dist/src/api/rest-api/configuration/configuration.controller.js +5 -6
  444. package/dist/src/api/rest-api/configuration/configuration.controller.js.map +1 -1
  445. package/dist/src/api/rest-api/endpoint/endpoint-by-id.controller.d.ts +1 -3
  446. package/dist/src/api/rest-api/endpoint/endpoint-by-id.controller.js +3 -7
  447. package/dist/src/api/rest-api/endpoint/endpoint-by-id.controller.js.map +1 -1
  448. package/dist/src/api/rest-api/endpoint/model/endpoint.model.d.ts +1 -1
  449. package/dist/src/api/rest-api/endpoint/model/endpoint.model.js +1 -1
  450. package/dist/src/api/rest-api/endpoint/model/endpoint.model.js.map +1 -1
  451. package/dist/src/api/rest-api/init-swagger.js +34 -1
  452. package/dist/src/api/rest-api/init-swagger.js.map +1 -1
  453. package/dist/src/api/rest-api/organization/organization.controller.d.ts +6 -5
  454. package/dist/src/api/rest-api/organization/organization.controller.js +29 -21
  455. package/dist/src/api/rest-api/organization/organization.controller.js.map +1 -1
  456. package/dist/src/api/rest-api/project/project.controller.d.ts +13 -7
  457. package/dist/src/api/rest-api/project/project.controller.js +36 -22
  458. package/dist/src/api/rest-api/project/project.controller.js.map +1 -1
  459. package/dist/src/api/rest-api/rest-api.module.js +12 -2
  460. package/dist/src/api/rest-api/rest-api.module.js.map +1 -1
  461. package/dist/src/api/rest-api/revision/dto/create-endpoint.dto.d.ts +1 -1
  462. package/dist/src/api/rest-api/revision/dto/create-endpoint.dto.js +1 -1
  463. package/dist/src/api/rest-api/revision/dto/create-endpoint.dto.js.map +1 -1
  464. package/dist/src/api/rest-api/revision/dto/create-table.dto.d.ts +1 -1
  465. package/dist/src/api/rest-api/revision/dto/create-table.dto.js +1 -1
  466. package/dist/src/api/rest-api/revision/dto/create-table.dto.js.map +1 -1
  467. package/dist/src/api/rest-api/revision/revision-by-id.controller.d.ts +9 -8
  468. package/dist/src/api/rest-api/revision/revision-by-id.controller.js +25 -29
  469. package/dist/src/api/rest-api/revision/revision-by-id.controller.js.map +1 -1
  470. package/dist/src/api/rest-api/row/dto/patch-row.dto.js +21 -3
  471. package/dist/src/api/rest-api/row/dto/patch-row.dto.js.map +1 -1
  472. package/dist/src/api/rest-api/row/dto/update-row.dto.d.ts +1 -1
  473. package/dist/src/api/rest-api/row/dto/update-row.dto.js +1 -1
  474. package/dist/src/api/rest-api/row/dto/update-row.dto.js.map +1 -1
  475. package/dist/src/api/rest-api/row/model/row.model.d.ts +1 -1
  476. package/dist/src/api/rest-api/row/model/row.model.js +1 -1
  477. package/dist/src/api/rest-api/row/model/row.model.js.map +1 -1
  478. package/dist/src/api/rest-api/row/row-by-id.controller.d.ts +3 -3
  479. package/dist/src/api/rest-api/row/row-by-id.controller.js +17 -18
  480. package/dist/src/api/rest-api/row/row-by-id.controller.js.map +1 -1
  481. package/dist/src/api/rest-api/share/utils/transformFromPrismaToBranchModel.d.ts +1 -1
  482. package/dist/src/api/rest-api/share/utils/transformFromPrismaToEndpointsModel.d.ts +1 -1
  483. package/dist/src/api/rest-api/share/utils/transformFromPrismaToRevisionModel.d.ts +3 -2
  484. package/dist/src/api/rest-api/share/utils/transformFromPrismaToRevisionModel.js +8 -5
  485. package/dist/src/api/rest-api/share/utils/transformFromPrismaToRevisionModel.js.map +1 -1
  486. package/dist/src/api/rest-api/share/utils/transformFromPrismaToRowModel.d.ts +1 -1
  487. package/dist/src/api/rest-api/share/utils/transformFromPrismaToTableModel.d.ts +1 -1
  488. package/dist/src/api/rest-api/table/dto/create-row.dto.d.ts +1 -1
  489. package/dist/src/api/rest-api/table/dto/create-row.dto.js +1 -1
  490. package/dist/src/api/rest-api/table/dto/create-row.dto.js.map +1 -1
  491. package/dist/src/api/rest-api/table/dto/index.d.ts +1 -0
  492. package/dist/src/api/rest-api/table/dto/index.js +1 -0
  493. package/dist/src/api/rest-api/table/dto/index.js.map +1 -1
  494. package/dist/src/api/rest-api/table/dto/remove-rows.dto.d.ts +3 -0
  495. package/dist/src/api/rest-api/table/dto/remove-rows.dto.js +25 -0
  496. package/dist/src/api/rest-api/table/dto/remove-rows.dto.js.map +1 -0
  497. package/dist/src/api/rest-api/table/model/index.d.ts +1 -0
  498. package/dist/src/api/rest-api/table/model/index.js +1 -0
  499. package/dist/src/api/rest-api/table/model/index.js.map +1 -1
  500. package/dist/src/api/rest-api/table/model/remove-rows.response.d.ts +7 -0
  501. package/dist/src/api/rest-api/table/model/remove-rows.response.js +31 -0
  502. package/dist/src/api/rest-api/table/model/remove-rows.response.js.map +1 -0
  503. package/dist/src/api/rest-api/table/table-by-id.controller.d.ts +12 -10
  504. package/dist/src/api/rest-api/table/table-by-id.controller.js +73 -27
  505. package/dist/src/api/rest-api/table/table-by-id.controller.js.map +1 -1
  506. package/dist/src/api/rest-api/user/user.controller.d.ts +4 -5
  507. package/dist/src/api/rest-api/user/user.controller.js +5 -6
  508. package/dist/src/api/rest-api/user/user.controller.js.map +1 -1
  509. package/dist/src/core/core.module.js +4 -0
  510. package/dist/src/core/core.module.js.map +1 -1
  511. package/dist/src/features/auth/auth.module.js +7 -1
  512. package/dist/src/features/auth/auth.module.js.map +1 -1
  513. package/dist/src/features/auth/auth.service.js +35 -2
  514. package/dist/src/features/auth/auth.service.js.map +1 -1
  515. package/dist/src/features/auth/commands/auth-api.service.d.ts +7 -1
  516. package/dist/src/features/auth/commands/auth-api.service.js +18 -0
  517. package/dist/src/features/auth/commands/auth-api.service.js.map +1 -1
  518. package/dist/src/features/auth/commands/handlers/check-project-permission.handler.d.ts +1 -0
  519. package/dist/src/features/auth/commands/handlers/check-project-permission.handler.js +8 -0
  520. package/dist/src/features/auth/commands/handlers/check-project-permission.handler.js.map +1 -1
  521. package/dist/src/features/auth/commands/impl/check-project-permission.command.d.ts +4 -0
  522. package/dist/src/features/auth/commands/impl/check-project-permission.command.js.map +1 -1
  523. package/dist/src/features/auth/commands/impl/confirm-email-code.command.d.ts +1 -0
  524. package/dist/src/features/auth/commands/impl/create-user.command.d.ts +1 -0
  525. package/dist/src/features/auth/commands/impl/login-github.command.d.ts +1 -0
  526. package/dist/src/features/auth/commands/impl/login-google.command.d.ts +1 -0
  527. package/dist/src/features/auth/commands/impl/login.command.d.ts +1 -0
  528. package/dist/src/features/auth/commands/impl/sign-up.command.d.ts +1 -0
  529. package/dist/src/features/auth/guards/base-persmission.guard.d.ts +1 -3
  530. package/dist/src/features/auth/guards/base-persmission.guard.js +1 -4
  531. package/dist/src/features/auth/guards/base-persmission.guard.js.map +1 -1
  532. package/dist/src/features/auth/guards/project.guard.d.ts +14 -0
  533. package/dist/src/features/auth/guards/project.guard.js +7 -0
  534. package/dist/src/features/auth/guards/project.guard.js.map +1 -1
  535. package/dist/src/features/branch/branch-api.service.d.ts +85 -0
  536. package/dist/src/features/branch/branch-api.service.js +66 -0
  537. package/dist/src/features/branch/branch-api.service.js.map +1 -0
  538. package/dist/src/features/branch/branch.module.js +7 -1
  539. package/dist/src/features/branch/branch.module.js.map +1 -1
  540. package/dist/src/features/branch/commands/handlers/create-branch-by-revision-id.handler.d.ts +4 -2
  541. package/dist/src/features/branch/commands/handlers/create-branch-by-revision-id.handler.js +1 -1
  542. package/dist/src/features/branch/commands/handlers/create-branch-by-revision-id.handler.js.map +1 -1
  543. package/dist/src/features/branch/commands/impl/api-create-branch-by-revision-id.command.d.ts +1 -0
  544. package/dist/src/features/branch/quieries/handlers/get-branch-by-id.handler.d.ts +6 -4
  545. package/dist/src/features/branch/quieries/handlers/get-branch.handler.js +1 -1
  546. package/dist/src/features/branch/quieries/handlers/get-branch.handler.js.map +1 -1
  547. package/dist/src/features/branch/quieries/handlers/get-branches.handler.js +1 -1
  548. package/dist/src/features/branch/quieries/handlers/get-branches.handler.js.map +1 -1
  549. package/dist/src/features/branch/quieries/handlers/get-project-by-branch.handler.d.ts +5 -3
  550. package/dist/src/features/branch/quieries/handlers/get-revisions-by-branch-id.handler.js +10 -5
  551. package/dist/src/features/branch/quieries/handlers/get-revisions-by-branch-id.handler.js.map +1 -1
  552. package/dist/src/features/branch/quieries/handlers/get-touched-by-branch-id.handler.js +1 -1
  553. package/dist/src/features/branch/quieries/handlers/get-touched-by-branch-id.handler.js.map +1 -1
  554. package/dist/src/features/branch/quieries/impl/get-branch-by-id.query.d.ts +3 -0
  555. package/dist/src/features/branch/quieries/impl/get-branch-by-id.query.js.map +1 -1
  556. package/dist/src/features/branch/quieries/impl/get-branch.query.d.ts +1 -0
  557. package/dist/src/features/branch/quieries/impl/get-branches.query.d.ts +1 -1
  558. package/dist/src/features/branch/quieries/impl/get-revisions-by-branch-id.query.d.ts +8 -0
  559. package/dist/src/features/branch/quieries/impl/get-revisions-by-branch-id.query.js.map +1 -1
  560. package/dist/src/features/branch/quieries/impl/resolve-parent-branch-by-branch.query.d.ts +1 -0
  561. package/dist/src/features/branch/quieries/types/get-branch-by-id.types.d.ts +1 -1
  562. package/dist/src/features/branch/quieries/types/get-branch.types.d.ts +1 -1
  563. package/dist/src/features/branch/quieries/types/get-draft-revision.types.d.ts +1 -1
  564. package/dist/src/features/branch/quieries/types/get-head-revision.types.d.ts +1 -1
  565. package/dist/src/features/branch/quieries/types/get-start-revision.types.d.ts +1 -1
  566. package/dist/src/features/draft/commands/handlers/__tests__/utils.d.ts +2 -0
  567. package/dist/src/features/draft/commands/handlers/__tests__/utils.js +13 -0
  568. package/dist/src/features/draft/commands/handlers/__tests__/utils.js.map +1 -1
  569. package/dist/src/features/draft/commands/handlers/api-create-revision.handler.js +1 -1
  570. package/dist/src/features/draft/commands/handlers/api-create-revision.handler.js.map +1 -1
  571. package/dist/src/features/draft/commands/handlers/api-create-row.handler.js +1 -1
  572. package/dist/src/features/draft/commands/handlers/api-create-row.handler.js.map +1 -1
  573. package/dist/src/features/draft/commands/handlers/api-create-table.handler.js +1 -1
  574. package/dist/src/features/draft/commands/handlers/api-create-table.handler.js.map +1 -1
  575. package/dist/src/features/draft/commands/handlers/api-patch-row.handler.js +1 -1
  576. package/dist/src/features/draft/commands/handlers/api-patch-row.handler.js.map +1 -1
  577. package/dist/src/features/draft/commands/handlers/api-remove-row.handler.js +3 -2
  578. package/dist/src/features/draft/commands/handlers/api-remove-row.handler.js.map +1 -1
  579. package/dist/src/features/draft/commands/handlers/api-remove-rows.handler.d.ts +13 -0
  580. package/dist/src/features/draft/commands/handlers/api-remove-rows.handler.js +59 -0
  581. package/dist/src/features/draft/commands/handlers/api-remove-rows.handler.js.map +1 -0
  582. package/dist/src/features/draft/commands/handlers/api-remove-table.handler.js +1 -1
  583. package/dist/src/features/draft/commands/handlers/api-remove-table.handler.js.map +1 -1
  584. package/dist/src/features/draft/commands/handlers/api-rename-row.handler.js +1 -1
  585. package/dist/src/features/draft/commands/handlers/api-rename-row.handler.js.map +1 -1
  586. package/dist/src/features/draft/commands/handlers/api-rename-table.handler.js +1 -1
  587. package/dist/src/features/draft/commands/handlers/api-rename-table.handler.js.map +1 -1
  588. package/dist/src/features/draft/commands/handlers/api-revert-changes.handler.js +1 -1
  589. package/dist/src/features/draft/commands/handlers/api-revert-changes.handler.js.map +1 -1
  590. package/dist/src/features/draft/commands/handlers/api-update-row.handler.js +1 -1
  591. package/dist/src/features/draft/commands/handlers/api-update-row.handler.js.map +1 -1
  592. package/dist/src/features/draft/commands/handlers/api-update-table.handler.js +1 -1
  593. package/dist/src/features/draft/commands/handlers/api-update-table.handler.js.map +1 -1
  594. package/dist/src/features/draft/commands/handlers/api-upload-file.handler.js +1 -1
  595. package/dist/src/features/draft/commands/handlers/api-upload-file.handler.js.map +1 -1
  596. package/dist/src/features/draft/commands/handlers/create-row.handler.js.map +1 -1
  597. package/dist/src/features/draft/commands/handlers/create-table.handler.d.ts +4 -1
  598. package/dist/src/features/draft/commands/handlers/create-table.handler.js +21 -2
  599. package/dist/src/features/draft/commands/handlers/create-table.handler.js.map +1 -1
  600. package/dist/src/features/draft/commands/handlers/index.d.ts +3 -2
  601. package/dist/src/features/draft/commands/handlers/index.js +4 -2
  602. package/dist/src/features/draft/commands/handlers/index.js.map +1 -1
  603. package/dist/src/features/draft/commands/handlers/migration/base-migration.handler.d.ts +1 -1
  604. package/dist/src/features/draft/commands/handlers/patch-row.handler.js +11 -1
  605. package/dist/src/features/draft/commands/handlers/patch-row.handler.js.map +1 -1
  606. package/dist/src/features/draft/commands/handlers/{remove-row.handler.d.ts → remove-rows.handler.d.ts} +7 -9
  607. package/dist/src/features/draft/commands/handlers/{remove-row.handler.js → remove-rows.handler.js} +30 -29
  608. package/dist/src/features/draft/commands/handlers/remove-rows.handler.js.map +1 -0
  609. package/dist/src/features/draft/commands/handlers/remove-table.handler.d.ts +1 -0
  610. package/dist/src/features/draft/commands/handlers/remove-table.handler.js +16 -3
  611. package/dist/src/features/draft/commands/handlers/remove-table.handler.js.map +1 -1
  612. package/dist/src/features/draft/commands/handlers/transactional/rename-schema.handler.d.ts +1 -0
  613. package/dist/src/features/draft/commands/handlers/transactional/rename-schema.handler.js +13 -0
  614. package/dist/src/features/draft/commands/handlers/transactional/rename-schema.handler.js.map +1 -1
  615. package/dist/src/features/draft/commands/handlers/transactional/validate-data.handler.d.ts +16 -5
  616. package/dist/src/features/draft/commands/handlers/transactional/validate-data.handler.js +142 -21
  617. package/dist/src/features/draft/commands/handlers/transactional/validate-data.handler.js.map +1 -1
  618. package/dist/src/features/draft/commands/handlers/update-table.handler.d.ts +5 -1
  619. package/dist/src/features/draft/commands/handlers/update-table.handler.js +61 -3
  620. package/dist/src/features/draft/commands/handlers/update-table.handler.js.map +1 -1
  621. package/dist/src/features/draft/commands/impl/api-create-revision.command.d.ts +1 -0
  622. package/dist/src/features/draft/commands/impl/api-create-row.command.d.ts +2 -1
  623. package/dist/src/features/draft/commands/impl/api-create-table.command.d.ts +1 -1
  624. package/dist/src/features/draft/commands/impl/api-remove-row.command.d.ts +1 -0
  625. package/dist/src/features/draft/commands/impl/api-remove-rows.command.d.ts +13 -0
  626. package/dist/src/features/draft/commands/impl/api-remove-rows.command.js +10 -0
  627. package/dist/src/features/draft/commands/impl/api-remove-rows.command.js.map +1 -0
  628. package/dist/src/features/draft/commands/impl/api-rename-row.command.d.ts +1 -0
  629. package/dist/src/features/draft/commands/impl/api-revert-changes.command.d.ts +1 -0
  630. package/dist/src/features/draft/commands/impl/api-update-row.command.d.ts +2 -1
  631. package/dist/src/features/draft/commands/impl/create-row.command.d.ts +1 -1
  632. package/dist/src/features/draft/commands/impl/create-table.command.d.ts +1 -1
  633. package/dist/src/features/draft/commands/impl/{remove-row.command.d.ts → remove-rows.command.d.ts} +4 -4
  634. package/dist/src/features/draft/commands/impl/remove-rows.command.js +10 -0
  635. package/dist/src/features/draft/commands/impl/remove-rows.command.js.map +1 -0
  636. package/dist/src/features/draft/commands/impl/transactional/internal-create-row.command.d.ts +1 -1
  637. package/dist/src/features/draft/commands/impl/transactional/internal-update-row.command.d.ts +1 -1
  638. package/dist/src/features/draft/commands/impl/transactional/internal-update-rows.command.d.ts +1 -1
  639. package/dist/src/features/draft/commands/impl/transactional/validate-data.command.d.ts +1 -1
  640. package/dist/src/features/draft/commands/impl/transactional/validate-schema.command.d.ts +1 -1
  641. package/dist/src/features/draft/commands/impl/update-row.command.d.ts +1 -1
  642. package/dist/src/features/draft/commands/types/api-create-table.handler.types.d.ts +1 -1
  643. package/dist/src/features/draft/commands/types/api-remove-rows.handler.types.d.ts +7 -0
  644. package/dist/src/features/draft/commands/types/api-remove-rows.handler.types.js +3 -0
  645. package/dist/src/features/draft/commands/types/api-remove-rows.handler.types.js.map +1 -0
  646. package/dist/src/features/draft/commands/types/{remove-row.handler.types.d.ts → remove-rows.handler.types.d.ts} +1 -1
  647. package/dist/src/features/draft/commands/types/remove-rows.handler.types.js +3 -0
  648. package/dist/src/features/draft/commands/types/remove-rows.handler.types.js.map +1 -0
  649. package/dist/src/features/draft/draft-api.service.d.ts +31 -0
  650. package/dist/src/features/draft/draft-api.service.js +32 -0
  651. package/dist/src/features/draft/draft-api.service.js.map +1 -1
  652. package/dist/src/features/draft/draft.handler.d.ts +1 -1
  653. package/dist/src/features/draft/draft.module.js +1 -1
  654. package/dist/src/features/draft/draft.module.js.map +1 -1
  655. package/dist/src/features/draft/draft.transactional.commands.d.ts +1 -1
  656. package/dist/src/features/endpoint/commands/impl/api-create-endpoint.command.d.ts +3 -1
  657. package/dist/src/features/endpoint/commands/impl/create-endpoint.command.d.ts +1 -1
  658. package/dist/src/features/endpoint/commands/impl/delete-endpoint.command.d.ts +1 -0
  659. package/dist/src/features/endpoint/queries/endpoint-api.service.d.ts +16 -3
  660. package/dist/src/features/endpoint/queries/endpoint-api.service.js +19 -4
  661. package/dist/src/features/endpoint/queries/endpoint-api.service.js.map +1 -1
  662. package/dist/src/features/endpoint/queries/handlers/get-created-endpoint.handler.d.ts +5 -3
  663. package/dist/src/features/endpoint/queries/handlers/get-endpoint-relatives.handler.d.ts +4 -4
  664. package/dist/src/features/endpoint/queries/handlers/get-project-endpoints.handler.d.ts +12 -0
  665. package/dist/src/features/endpoint/queries/handlers/get-project-endpoints.handler.js +77 -0
  666. package/dist/src/features/endpoint/queries/handlers/get-project-endpoints.handler.js.map +1 -0
  667. package/dist/src/features/endpoint/queries/handlers/get-revision-by-endpoint-id.handler.d.ts +4 -2
  668. package/dist/src/features/endpoint/queries/handlers/index.d.ts +2 -1
  669. package/dist/src/features/endpoint/queries/handlers/index.js +2 -0
  670. package/dist/src/features/endpoint/queries/handlers/index.js.map +1 -1
  671. package/dist/src/features/endpoint/queries/impl/get-endpoint-relatives.query.d.ts +1 -1
  672. package/dist/src/features/endpoint/queries/impl/get-project-endpoints.query.d.ts +20 -0
  673. package/dist/src/features/endpoint/queries/impl/get-project-endpoints.query.js +10 -0
  674. package/dist/src/features/endpoint/queries/impl/get-project-endpoints.query.js.map +1 -0
  675. package/dist/src/features/endpoint/queries/impl/index.d.ts +1 -0
  676. package/dist/src/features/endpoint/queries/impl/index.js +1 -0
  677. package/dist/src/features/endpoint/queries/impl/index.js.map +1 -1
  678. package/dist/src/features/organization/commands/impl/add-user-to-organization.command.d.ts +1 -0
  679. package/dist/src/features/organization/commands/impl/remove-user-from-organization.command.d.ts +1 -0
  680. package/dist/src/features/organization/organization-api.service.d.ts +16 -0
  681. package/dist/src/features/organization/organization-api.service.js +44 -0
  682. package/dist/src/features/organization/organization-api.service.js.map +1 -0
  683. package/dist/src/features/organization/organization.module.js +7 -1
  684. package/dist/src/features/organization/organization.module.js.map +1 -1
  685. package/dist/src/features/organization/queries/handlers/get-organization.handler.d.ts +11 -0
  686. package/dist/src/features/organization/queries/handlers/get-organization.handler.js +33 -0
  687. package/dist/src/features/organization/queries/handlers/get-organization.handler.js.map +1 -0
  688. package/dist/src/features/organization/queries/handlers/get-projects-by-organization-id.handler.d.ts +1 -1
  689. package/dist/src/features/organization/queries/handlers/get-projects-by-organization-id.handler.js +3 -2
  690. package/dist/src/features/organization/queries/handlers/get-projects-by-organization-id.handler.js.map +1 -1
  691. package/dist/src/features/organization/queries/handlers/get-users-organization.handler.d.ts +3 -3
  692. package/dist/src/features/organization/queries/handlers/index.d.ts +1 -0
  693. package/dist/src/features/organization/queries/handlers/index.js +1 -0
  694. package/dist/src/features/organization/queries/handlers/index.js.map +1 -1
  695. package/dist/src/features/organization/queries/impl/get-organization.query.d.ts +11 -0
  696. package/dist/src/features/organization/queries/impl/get-organization.query.js +10 -0
  697. package/dist/src/features/organization/queries/impl/get-organization.query.js.map +1 -0
  698. package/dist/src/features/organization/queries/impl/get-projects-by-organization-id.query.d.ts +1 -1
  699. package/dist/src/features/organization/queries/impl/get-users-organization.query.d.ts +2 -1
  700. package/dist/src/features/organization/queries/impl/index.d.ts +1 -0
  701. package/dist/src/features/organization/queries/impl/index.js +1 -0
  702. package/dist/src/features/organization/queries/impl/index.js.map +1 -1
  703. package/dist/src/features/organization/queries/index.d.ts +2 -1
  704. package/dist/src/features/organization/queries/index.js +2 -0
  705. package/dist/src/features/organization/queries/index.js.map +1 -1
  706. package/dist/src/features/plugin/file/file-value.store.js +7 -4
  707. package/dist/src/features/plugin/file/file-value.store.js.map +1 -1
  708. package/dist/src/features/plugin/plugin.list.service.js +1 -9
  709. package/dist/src/features/plugin/plugin.list.service.js.map +1 -1
  710. package/dist/src/features/plugin/plugin.service.d.ts +1 -1
  711. package/dist/src/features/plugin/types.d.ts +1 -1
  712. package/dist/src/features/project/commands/handlers/create-project.handler.js +1 -1
  713. package/dist/src/features/project/commands/handlers/create-project.handler.js.map +1 -1
  714. package/dist/src/features/project/commands/handlers/delete-project.handler.js +1 -1
  715. package/dist/src/features/project/commands/handlers/delete-project.handler.js.map +1 -1
  716. package/dist/src/features/project/commands/handlers/index.d.ts +2 -1
  717. package/dist/src/features/project/commands/handlers/index.js +2 -0
  718. package/dist/src/features/project/commands/handlers/index.js.map +1 -1
  719. package/dist/src/features/project/commands/handlers/update-project.handler.js +1 -1
  720. package/dist/src/features/project/commands/handlers/update-project.handler.js.map +1 -1
  721. package/dist/src/features/project/commands/handlers/update-user-project-role.handler.d.ts +9 -0
  722. package/dist/src/features/project/commands/handlers/update-user-project-role.handler.js +65 -0
  723. package/dist/src/features/project/commands/handlers/update-user-project-role.handler.js.map +1 -0
  724. package/dist/src/features/project/commands/impl/add-user-to-project.command.d.ts +1 -0
  725. package/dist/src/features/project/commands/impl/api-create-project.command.d.ts +1 -0
  726. package/dist/src/features/project/commands/impl/index.d.ts +1 -0
  727. package/dist/src/features/project/commands/impl/index.js +1 -0
  728. package/dist/src/features/project/commands/impl/index.js.map +1 -1
  729. package/dist/src/features/project/commands/impl/remove-user-from-project.command.d.ts +1 -0
  730. package/dist/src/features/project/commands/impl/update-project.command.d.ts +2 -0
  731. package/dist/src/features/project/commands/impl/update-user-project-role.command.d.ts +16 -0
  732. package/dist/src/features/project/commands/impl/update-user-project-role.command.js +10 -0
  733. package/dist/src/features/project/commands/impl/update-user-project-role.command.js.map +1 -0
  734. package/dist/src/features/project/project-api.service.d.ts +38 -0
  735. package/dist/src/features/project/project-api.service.js +59 -0
  736. package/dist/src/features/project/project-api.service.js.map +1 -0
  737. package/dist/src/features/project/project.module.js +3 -0
  738. package/dist/src/features/project/project.module.js.map +1 -1
  739. package/dist/src/features/project/queries/handlers/get-all-branches-by-project.handler.d.ts +2 -2
  740. package/dist/src/features/project/queries/handlers/get-all-branches-by-project.handler.js +1 -1
  741. package/dist/src/features/project/queries/handlers/get-all-branches-by-project.handler.js.map +1 -1
  742. package/dist/src/features/project/queries/handlers/get-project-by-id.handler.d.ts +1 -1
  743. package/dist/src/features/project/queries/handlers/get-project.handler.d.ts +1 -1
  744. package/dist/src/features/project/queries/handlers/get-project.handler.js +1 -1
  745. package/dist/src/features/project/queries/handlers/get-project.handler.js.map +1 -1
  746. package/dist/src/features/project/queries/handlers/get-root-branch-by-project.handler.d.ts +2 -2
  747. package/dist/src/features/project/queries/handlers/get-users-project.handler.d.ts +3 -3
  748. package/dist/src/features/project/queries/impl/get-all-branches-by-project.query.d.ts +4 -0
  749. package/dist/src/features/project/queries/impl/get-all-branches-by-project.query.js.map +1 -1
  750. package/dist/src/features/project/queries/impl/get-project-by-id.query.d.ts +1 -1
  751. package/dist/src/features/project/queries/impl/get-project.query.d.ts +1 -1
  752. package/dist/src/features/project/queries/impl/get-root-branch-by-project.query.d.ts +3 -0
  753. package/dist/src/features/project/queries/impl/get-root-branch-by-project.query.js.map +1 -1
  754. package/dist/src/features/project/queries/impl/get-users-project.query.d.ts +2 -1
  755. package/dist/src/features/revision/internal-revisions-api.service.d.ts +14 -1
  756. package/dist/src/features/revision/internal-revisions-api.service.js +21 -0
  757. package/dist/src/features/revision/internal-revisions-api.service.js.map +1 -1
  758. package/dist/src/features/revision/queries/commands/get-children-by-revision.handler.d.ts +1 -1
  759. package/dist/src/features/revision/queries/commands/get-migrations.handler.js +1 -1
  760. package/dist/src/features/revision/queries/commands/get-migrations.handler.js.map +1 -1
  761. package/dist/src/features/revision/queries/commands/get-revision.handler.d.ts +4 -2
  762. package/dist/src/features/revision/queries/commands/get-tables-by-revision-id.handler.d.ts +1 -1
  763. package/dist/src/features/revision/queries/commands/get-tables-by-revision-id.handler.js +1 -1
  764. package/dist/src/features/revision/queries/commands/get-tables-by-revision-id.handler.js.map +1 -1
  765. package/dist/src/features/revision/queries/commands/resolve-branch-by-revision.handler.d.ts +6 -4
  766. package/dist/src/features/revision/queries/commands/resolve-parent-by-revision.handler.d.ts +4 -2
  767. package/dist/src/features/revision/queries/impl/get-children-by-revision.query.d.ts +3 -0
  768. package/dist/src/features/revision/queries/impl/get-children-by-revision.query.js.map +1 -1
  769. package/dist/src/features/revision/queries/impl/get-endpoints-by-revision-id.query.d.ts +3 -0
  770. package/dist/src/features/revision/queries/impl/get-endpoints-by-revision-id.query.js.map +1 -1
  771. package/dist/src/features/revision/queries/impl/get-revision.query.d.ts +1 -1
  772. package/dist/src/features/revision/queries/impl/get-tables-by-revision-id.query.d.ts +3 -0
  773. package/dist/src/features/revision/queries/impl/get-tables-by-revision-id.query.js.map +1 -1
  774. package/dist/src/features/revision/queries/impl/index.d.ts +1 -0
  775. package/dist/src/features/revision/queries/impl/index.js +1 -0
  776. package/dist/src/features/revision/queries/impl/index.js.map +1 -1
  777. package/dist/src/features/revision/queries/impl/resolve-branch-by-revision.query.d.ts +3 -0
  778. package/dist/src/features/revision/queries/impl/resolve-branch-by-revision.query.js.map +1 -1
  779. package/dist/src/features/revision/queries/impl/resolve-child-branches-by-revision.query.d.ts +9 -0
  780. package/dist/src/features/revision/queries/impl/resolve-child-by-revision.query.d.ts +3 -0
  781. package/dist/src/features/revision/queries/impl/resolve-child-by-revision.query.js.map +1 -1
  782. package/dist/src/features/revision/queries/impl/resolve-parent-by-revision.query.d.ts +3 -0
  783. package/dist/src/features/revision/queries/impl/resolve-parent-by-revision.query.js.map +1 -1
  784. package/dist/src/features/revision/queries/types/get-endpoints-by-revision-id.d.ts +1 -1
  785. package/dist/src/features/revision/queries/types/get-tables-by-revision-id.d.ts +1 -1
  786. package/dist/src/features/revision/revisions-api.service.d.ts +14 -1
  787. package/dist/src/features/revision/revisions-api.service.js +21 -0
  788. package/dist/src/features/revision/revisions-api.service.js.map +1 -1
  789. package/dist/src/features/revision-changes/mappers/row-change.mapper.d.ts +13 -0
  790. package/dist/src/features/revision-changes/mappers/row-change.mapper.js +111 -0
  791. package/dist/src/features/revision-changes/mappers/row-change.mapper.js.map +1 -0
  792. package/dist/src/features/revision-changes/mappers/table-change.mapper.d.ts +19 -0
  793. package/dist/src/features/revision-changes/mappers/table-change.mapper.js +74 -0
  794. package/dist/src/features/revision-changes/mappers/table-change.mapper.js.map +1 -0
  795. package/dist/src/features/revision-changes/queries/handlers/get-revision-changes.handler.d.ts +14 -0
  796. package/dist/src/features/revision-changes/queries/handlers/get-revision-changes.handler.js +68 -0
  797. package/dist/src/features/revision-changes/queries/handlers/get-revision-changes.handler.js.map +1 -0
  798. package/dist/src/features/revision-changes/queries/handlers/get-row-changes.handler.d.ts +24 -0
  799. package/dist/src/features/revision-changes/queries/handlers/get-row-changes.handler.js +177 -0
  800. package/dist/src/features/revision-changes/queries/handlers/get-row-changes.handler.js.map +1 -0
  801. package/dist/src/features/revision-changes/queries/handlers/get-table-changes.handler.d.ts +19 -0
  802. package/dist/src/features/revision-changes/queries/handlers/get-table-changes.handler.js +84 -0
  803. package/dist/src/features/revision-changes/queries/handlers/get-table-changes.handler.js.map +1 -0
  804. package/dist/src/features/revision-changes/queries/handlers/index.d.ts +3 -0
  805. package/dist/src/features/revision-changes/queries/handlers/index.js +20 -0
  806. package/dist/src/features/revision-changes/queries/handlers/index.js.map +1 -0
  807. package/dist/src/features/revision-changes/queries/impl/get-revision-changes.query.d.ts +15 -0
  808. package/dist/src/features/revision-changes/queries/impl/get-revision-changes.query.js +10 -0
  809. package/dist/src/features/revision-changes/queries/impl/get-revision-changes.query.js.map +1 -0
  810. package/dist/src/features/revision-changes/queries/impl/get-row-changes.query.d.ts +20 -0
  811. package/dist/src/features/revision-changes/queries/impl/get-row-changes.query.js +10 -0
  812. package/dist/src/features/revision-changes/queries/impl/get-row-changes.query.js.map +1 -0
  813. package/dist/src/features/revision-changes/queries/impl/get-table-changes.query.d.ts +20 -0
  814. package/dist/src/features/revision-changes/queries/impl/get-table-changes.query.js +10 -0
  815. package/dist/src/features/revision-changes/queries/impl/get-table-changes.query.js.map +1 -0
  816. package/dist/src/features/revision-changes/queries/impl/index.d.ts +3 -0
  817. package/dist/src/features/revision-changes/queries/impl/index.js +20 -0
  818. package/dist/src/features/revision-changes/queries/impl/index.js.map +1 -0
  819. package/dist/src/features/revision-changes/revision-changes-api.service.d.ts +9 -0
  820. package/dist/src/features/revision-changes/revision-changes-api.service.js +35 -0
  821. package/dist/src/features/revision-changes/revision-changes-api.service.js.map +1 -0
  822. package/dist/src/features/revision-changes/revision-changes.module.d.ts +2 -0
  823. package/dist/src/features/revision-changes/revision-changes.module.js +47 -0
  824. package/dist/src/features/revision-changes/revision-changes.module.js.map +1 -0
  825. package/dist/src/features/revision-changes/services/index.d.ts +4 -0
  826. package/dist/src/features/revision-changes/services/index.js +21 -0
  827. package/dist/src/features/revision-changes/services/index.js.map +1 -0
  828. package/dist/src/features/revision-changes/services/revision-comparison.service.d.ts +12 -0
  829. package/dist/src/features/revision-changes/services/revision-comparison.service.js +99 -0
  830. package/dist/src/features/revision-changes/services/revision-comparison.service.js.map +1 -0
  831. package/dist/src/features/revision-changes/services/row-diff.service.d.ts +9 -0
  832. package/dist/src/features/revision-changes/services/row-diff.service.js +140 -0
  833. package/dist/src/features/revision-changes/services/row-diff.service.js.map +1 -0
  834. package/dist/src/features/revision-changes/services/schema-impact.service.d.ts +11 -0
  835. package/dist/src/features/revision-changes/services/schema-impact.service.js +136 -0
  836. package/dist/src/features/revision-changes/services/schema-impact.service.js.map +1 -0
  837. package/dist/src/features/revision-changes/services/views-comparison.service.d.ts +12 -0
  838. package/dist/src/features/revision-changes/services/views-comparison.service.js +209 -0
  839. package/dist/src/features/revision-changes/services/views-comparison.service.js.map +1 -0
  840. package/dist/src/features/revision-changes/types/enums.d.ts +26 -0
  841. package/dist/src/features/revision-changes/types/enums.js +34 -0
  842. package/dist/src/features/revision-changes/types/enums.js.map +1 -0
  843. package/dist/src/features/revision-changes/types/field-change.types.d.ts +12 -0
  844. package/dist/src/features/revision-changes/types/field-change.types.js +3 -0
  845. package/dist/src/features/revision-changes/types/field-change.types.js.map +1 -0
  846. package/dist/src/features/revision-changes/types/filters.types.d.ts +13 -0
  847. package/dist/src/features/revision-changes/types/filters.types.js +3 -0
  848. package/dist/src/features/revision-changes/types/filters.types.js.map +1 -0
  849. package/dist/src/features/revision-changes/types/index.d.ts +8 -0
  850. package/dist/src/features/revision-changes/types/index.js +25 -0
  851. package/dist/src/features/revision-changes/types/index.js.map +1 -0
  852. package/dist/src/features/revision-changes/types/revision-changes.types.d.ts +14 -0
  853. package/dist/src/features/revision-changes/types/revision-changes.types.js +3 -0
  854. package/dist/src/features/revision-changes/types/revision-changes.types.js.map +1 -0
  855. package/dist/src/features/revision-changes/types/row-change.types.d.ts +31 -0
  856. package/dist/src/features/revision-changes/types/row-change.types.js +11 -0
  857. package/dist/src/features/revision-changes/types/row-change.types.js.map +1 -0
  858. package/dist/src/features/revision-changes/types/schema-change.types.d.ts +40 -0
  859. package/dist/src/features/revision-changes/types/schema-change.types.js +11 -0
  860. package/dist/src/features/revision-changes/types/schema-change.types.js.map +1 -0
  861. package/dist/src/features/revision-changes/types/table-change.types.d.ts +19 -0
  862. package/dist/src/features/revision-changes/types/table-change.types.js +3 -0
  863. package/dist/src/features/revision-changes/types/table-change.types.js.map +1 -0
  864. package/dist/src/features/revision-changes/types/views-change.types.d.ts +15 -0
  865. package/dist/src/features/revision-changes/types/views-change.types.js +3 -0
  866. package/dist/src/features/revision-changes/types/views-change.types.js.map +1 -0
  867. package/dist/src/features/revision-changes/utils/empty-responses.d.ts +4 -0
  868. package/dist/src/features/revision-changes/utils/empty-responses.js +36 -0
  869. package/dist/src/features/revision-changes/utils/empty-responses.js.map +1 -0
  870. package/dist/src/features/role/queries/handlers/get-role-permissions.handler.d.ts +14 -0
  871. package/dist/src/features/role/queries/handlers/get-role-permissions.handler.js +37 -0
  872. package/dist/src/features/role/queries/handlers/get-role-permissions.handler.js.map +1 -0
  873. package/dist/src/features/role/queries/handlers/get-role.handler.d.ts +14 -0
  874. package/dist/src/features/role/queries/handlers/get-role.handler.js +33 -0
  875. package/dist/src/features/role/queries/handlers/get-role.handler.js.map +1 -0
  876. package/dist/src/features/role/queries/handlers/index.d.ts +2 -0
  877. package/dist/src/features/role/queries/handlers/index.js +19 -0
  878. package/dist/src/features/role/queries/handlers/index.js.map +1 -0
  879. package/dist/src/features/role/queries/impl/get-role-permissions.query.d.ts +11 -0
  880. package/dist/src/features/role/queries/impl/get-role-permissions.query.js +10 -0
  881. package/dist/src/features/role/queries/impl/get-role-permissions.query.js.map +1 -0
  882. package/dist/src/features/role/queries/impl/get-role.query.d.ts +11 -0
  883. package/dist/src/features/role/queries/impl/get-role.query.js +10 -0
  884. package/dist/src/features/role/queries/impl/get-role.query.js.map +1 -0
  885. package/dist/src/features/role/queries/impl/index.d.ts +2 -0
  886. package/dist/src/features/role/queries/impl/index.js +19 -0
  887. package/dist/src/features/role/queries/impl/index.js.map +1 -0
  888. package/dist/src/features/role/queries/index.d.ts +3 -0
  889. package/dist/src/features/role/queries/index.js +7 -0
  890. package/dist/src/features/role/queries/index.js.map +1 -0
  891. package/dist/src/features/role/role-api.service.d.ts +14 -0
  892. package/dist/src/features/role/role-api.service.js +32 -0
  893. package/dist/src/features/role/role-api.service.js.map +1 -0
  894. package/dist/src/features/role/role.module.d.ts +2 -0
  895. package/dist/src/features/role/role.module.js +25 -0
  896. package/dist/src/features/role/role.module.js.map +1 -0
  897. package/dist/src/features/row/internal-row-api.service.d.ts +2 -1
  898. package/dist/src/features/row/internal-row-api.service.js +3 -0
  899. package/dist/src/features/row/internal-row-api.service.js.map +1 -1
  900. package/dist/src/features/row/queries/handlers/get-row-by-id.handler.d.ts +4 -4
  901. package/dist/src/features/row/queries/handlers/get-row.handler.js +1 -1
  902. package/dist/src/features/row/queries/handlers/get-row.handler.js.map +1 -1
  903. package/dist/src/features/row/queries/handlers/get-rows.handler.d.ts +8 -5
  904. package/dist/src/features/row/queries/handlers/get-rows.handler.js +18 -4
  905. package/dist/src/features/row/queries/handlers/get-rows.handler.js.map +1 -1
  906. package/dist/src/features/row/queries/handlers/index.d.ts +2 -1
  907. package/dist/src/features/row/queries/handlers/index.js +2 -0
  908. package/dist/src/features/row/queries/handlers/index.js.map +1 -1
  909. package/dist/src/features/row/queries/handlers/resolve-row-count-foreign-keys-by.handler.js +1 -1
  910. package/dist/src/features/row/queries/handlers/resolve-row-count-foreign-keys-by.handler.js.map +1 -1
  911. package/dist/src/features/row/queries/handlers/resolve-row-count-foreign-keys-to.handler.js +1 -1
  912. package/dist/src/features/row/queries/handlers/resolve-row-count-foreign-keys-to.handler.js.map +1 -1
  913. package/dist/src/features/row/queries/handlers/resolve-row-foreign-keys-by.handler.d.ts +4 -5
  914. package/dist/src/features/row/queries/handlers/resolve-row-foreign-keys-by.handler.js +1 -1
  915. package/dist/src/features/row/queries/handlers/resolve-row-foreign-keys-by.handler.js.map +1 -1
  916. package/dist/src/features/row/queries/handlers/resolve-row-foreign-keys-to.handler.d.ts +4 -5
  917. package/dist/src/features/row/queries/handlers/resolve-row-foreign-keys-to.handler.js +1 -1
  918. package/dist/src/features/row/queries/handlers/resolve-row-foreign-keys-to.handler.js.map +1 -1
  919. package/dist/src/features/row/queries/handlers/search-rows.handler.d.ts +14 -0
  920. package/dist/src/features/row/queries/handlers/search-rows.handler.js +79 -0
  921. package/dist/src/features/row/queries/handlers/search-rows.handler.js.map +1 -0
  922. package/dist/src/features/row/queries/impl/get-rows.query.d.ts +1 -1
  923. package/dist/src/features/row/queries/impl/index.d.ts +1 -0
  924. package/dist/src/features/row/queries/impl/index.js +1 -0
  925. package/dist/src/features/row/queries/impl/index.js.map +1 -1
  926. package/dist/src/features/row/queries/impl/search-rows.query.d.ts +28 -0
  927. package/dist/src/features/row/queries/impl/search-rows.query.js +10 -0
  928. package/dist/src/features/row/queries/impl/search-rows.query.js.map +1 -0
  929. package/dist/src/features/row/row-api.service.d.ts +2 -1
  930. package/dist/src/features/row/row-api.service.js +3 -0
  931. package/dist/src/features/row/row-api.service.js.map +1 -1
  932. package/dist/src/features/row/row.module.js +8 -2
  933. package/dist/src/features/row/row.module.js.map +1 -1
  934. package/dist/src/features/row/services/index.d.ts +1 -0
  935. package/dist/src/features/row/services/index.js +6 -0
  936. package/dist/src/features/row/services/index.js.map +1 -0
  937. package/dist/src/features/row/services/system-column-mapping.service.d.ts +17 -0
  938. package/dist/src/features/row/services/system-column-mapping.service.js +148 -0
  939. package/dist/src/features/row/services/system-column-mapping.service.js.map +1 -0
  940. package/dist/src/features/row/utils/extract-matches-fallback.d.ts +3 -0
  941. package/dist/src/features/row/utils/extract-matches-fallback.js +87 -0
  942. package/dist/src/features/row/utils/extract-matches-fallback.js.map +1 -0
  943. package/dist/src/features/row/utils/get-rows-sql.d.ts +1 -1
  944. package/dist/src/features/row/utils/get-rows-sql.js +3 -3
  945. package/dist/src/features/row/utils/get-rows-sql.js.map +1 -1
  946. package/dist/src/features/row/utils/search-rows-sql.d.ts +16 -0
  947. package/dist/src/features/row/utils/search-rows-sql.js +111 -0
  948. package/dist/src/features/row/utils/search-rows-sql.js.map +1 -0
  949. package/dist/src/features/share/commands/handlers/transactional/move-endpoints.handler.d.ts +1 -0
  950. package/dist/src/features/share/commands/handlers/transactional/move-endpoints.handler.js +7 -1
  951. package/dist/src/features/share/commands/handlers/transactional/move-endpoints.handler.js.map +1 -1
  952. package/dist/src/features/share/commands/utils/getRevisionCursorPagination.d.ts +1 -0
  953. package/dist/src/features/share/commands/utils/getRevisionCursorPagination.js +2 -2
  954. package/dist/src/features/share/commands/utils/getRevisionCursorPagination.js.map +1 -1
  955. package/dist/src/features/share/diff.service.d.ts +19 -2
  956. package/dist/src/features/share/diff.service.js +36 -6
  957. package/dist/src/features/share/diff.service.js.map +1 -1
  958. package/dist/src/features/share/exceptions/index.d.ts +1 -0
  959. package/dist/src/features/share/exceptions/index.js +18 -0
  960. package/dist/src/features/share/exceptions/index.js.map +1 -0
  961. package/dist/src/features/share/exceptions/validation.exception.d.ts +46 -0
  962. package/dist/src/features/share/exceptions/validation.exception.js +100 -0
  963. package/dist/src/features/share/exceptions/validation.exception.js.map +1 -0
  964. package/dist/src/features/share/foreign-keys.service.d.ts +9 -9
  965. package/dist/src/features/share/foreign-keys.service.js +30 -1
  966. package/dist/src/features/share/foreign-keys.service.js.map +1 -1
  967. package/dist/src/features/share/json-schema-validator.service.d.ts +1 -1
  968. package/dist/src/features/share/json-schema-validator.service.js +6 -3
  969. package/dist/src/features/share/json-schema-validator.service.js.map +1 -1
  970. package/dist/src/features/share/queries/handlers/index.d.ts +2 -1
  971. package/dist/src/features/share/queries/handlers/index.js +2 -0
  972. package/dist/src/features/share/queries/handlers/index.js.map +1 -1
  973. package/dist/src/features/share/queries/handlers/transactional/find-rows-in-table.handler.d.ts +10 -0
  974. package/dist/src/features/share/queries/handlers/transactional/find-rows-in-table.handler.js +41 -0
  975. package/dist/src/features/share/queries/handlers/transactional/find-rows-in-table.handler.js.map +1 -0
  976. package/dist/src/features/share/queries/handlers/transactional/get-table-schema.handler.js +9 -1
  977. package/dist/src/features/share/queries/handlers/transactional/get-table-schema.handler.js.map +1 -1
  978. package/dist/src/features/share/queries/impl/index.d.ts +1 -0
  979. package/dist/src/features/share/queries/impl/index.js +1 -0
  980. package/dist/src/features/share/queries/impl/index.js.map +1 -1
  981. package/dist/src/features/share/queries/impl/transactional/find-rows-in-table.query.d.ts +10 -0
  982. package/dist/src/features/share/queries/impl/transactional/find-rows-in-table.query.js +10 -0
  983. package/dist/src/features/share/queries/impl/transactional/find-rows-in-table.query.js.map +1 -0
  984. package/dist/src/features/share/schema/table-views-schema.d.ts +2 -0
  985. package/dist/src/features/share/schema/table-views-schema.js +125 -0
  986. package/dist/src/features/share/schema/table-views-schema.js.map +1 -0
  987. package/dist/src/features/share/share.module.js +6 -0
  988. package/dist/src/features/share/share.module.js.map +1 -1
  989. package/dist/src/features/share/share.transactional.queries.d.ts +5 -0
  990. package/dist/src/features/share/share.transactional.queries.js +29 -0
  991. package/dist/src/features/share/share.transactional.queries.js.map +1 -1
  992. package/dist/src/features/share/system-tables.consts.d.ts +2 -1
  993. package/dist/src/features/share/system-tables.consts.js +6 -0
  994. package/dist/src/features/share/system-tables.consts.js.map +1 -1
  995. package/dist/src/features/share/system-tables.service.d.ts +15 -0
  996. package/dist/src/features/share/system-tables.service.js +76 -0
  997. package/dist/src/features/share/system-tables.service.js.map +1 -0
  998. package/dist/src/features/share/types/row-with-context.types.d.ts +1 -1
  999. package/dist/src/features/share/types/table-with-context.types.d.ts +1 -1
  1000. package/dist/src/features/share/types.d.ts +2 -3
  1001. package/dist/src/features/share/utils/validateUrlLikeId/validateJsonFieldName.d.ts +1 -1
  1002. package/dist/src/features/share/utils/validateUrlLikeId/validateJsonFieldName.js +2 -2
  1003. package/dist/src/features/share/utils/validateUrlLikeId/validateJsonFieldName.js.map +1 -1
  1004. package/dist/src/features/share/views-migration.service.d.ts +47 -0
  1005. package/dist/src/features/share/views-migration.service.js +222 -0
  1006. package/dist/src/features/share/views-migration.service.js.map +1 -0
  1007. package/dist/src/features/table/queries/handlers/get-table-by-id.handler.d.ts +1 -1
  1008. package/dist/src/features/table/queries/handlers/get-table.handler.js +1 -1
  1009. package/dist/src/features/table/queries/handlers/get-table.handler.js.map +1 -1
  1010. package/dist/src/features/table/queries/handlers/get-tables.handler.js +1 -1
  1011. package/dist/src/features/table/queries/handlers/get-tables.handler.js.map +1 -1
  1012. package/dist/src/features/table/queries/handlers/resolve-table-count-foreign-keys-by.handler.js +1 -1
  1013. package/dist/src/features/table/queries/handlers/resolve-table-count-foreign-keys-by.handler.js.map +1 -1
  1014. package/dist/src/features/table/queries/handlers/resolve-table-count-foreign-keys-to.handler.js +1 -1
  1015. package/dist/src/features/table/queries/handlers/resolve-table-count-foreign-keys-to.handler.js.map +1 -1
  1016. package/dist/src/features/table/queries/handlers/resolve-table-foreign-keys-by.handler.js +1 -1
  1017. package/dist/src/features/table/queries/handlers/resolve-table-foreign-keys-by.handler.js.map +1 -1
  1018. package/dist/src/features/table/queries/handlers/resolve-table-foreign-keys-to.handler.js +1 -1
  1019. package/dist/src/features/table/queries/handlers/resolve-table-foreign-keys-to.handler.js.map +1 -1
  1020. package/dist/src/features/table/queries/handlers/resolve-table-schema.handler.d.ts +1 -1
  1021. package/dist/src/features/table/queries/handlers/resolve-table-schema.handler.js +1 -1
  1022. package/dist/src/features/table/queries/handlers/resolve-table-schema.handler.js.map +1 -1
  1023. package/dist/src/features/table/queries/impl/get-count-rows-in-table.query.d.ts +2 -0
  1024. package/dist/src/features/table/queries/impl/get-table.query.d.ts +3 -0
  1025. package/dist/src/features/table/queries/impl/get-table.query.js.map +1 -1
  1026. package/dist/src/features/table/queries/impl/get-tables.query.d.ts +3 -0
  1027. package/dist/src/features/table/queries/impl/get-tables.query.js.map +1 -1
  1028. package/dist/src/features/table/queries/impl/index.d.ts +2 -0
  1029. package/dist/src/features/table/queries/impl/index.js +2 -0
  1030. package/dist/src/features/table/queries/impl/index.js.map +1 -1
  1031. package/dist/src/features/table/queries/impl/resolve-table-count-foreign-keys-by.query.d.ts +2 -0
  1032. package/dist/src/features/table/queries/impl/resolve-table-count-foreign-keys-to.query.d.ts +2 -0
  1033. package/dist/src/features/table/queries/impl/resolve-table-foreign-keys-by.query.d.ts +4 -0
  1034. package/dist/src/features/table/queries/impl/resolve-table-foreign-keys-by.query.js.map +1 -1
  1035. package/dist/src/features/table/queries/impl/resolve-table-foreign-keys-to.query.d.ts +4 -0
  1036. package/dist/src/features/table/queries/impl/resolve-table-foreign-keys-to.query.js.map +1 -1
  1037. package/dist/src/features/table/queries/impl/resolve-table-schema.query.d.ts +3 -0
  1038. package/dist/src/features/table/queries/impl/resolve-table-schema.query.js.map +1 -1
  1039. package/dist/src/features/table/table-api.service.d.ts +22 -0
  1040. package/dist/src/features/table/table-api.service.js +50 -0
  1041. package/dist/src/features/table/table-api.service.js.map +1 -0
  1042. package/dist/src/features/table/table.module.js +3 -1
  1043. package/dist/src/features/table/table.module.js.map +1 -1
  1044. package/dist/src/features/user/commands/impl/set-username.command.d.ts +1 -0
  1045. package/dist/src/features/user/commands/impl/update-password.command.d.ts +1 -0
  1046. package/dist/src/features/user/queries/handlers/deprecated-get-owned-user-organization.handler.d.ts +14 -0
  1047. package/dist/src/features/user/queries/handlers/deprecated-get-owned-user-organization.handler.js +35 -0
  1048. package/dist/src/features/user/queries/handlers/deprecated-get-owned-user-organization.handler.js.map +1 -0
  1049. package/dist/src/features/user/queries/handlers/get-projects-by-user-id.handler.d.ts +1 -1
  1050. package/dist/src/features/user/queries/handlers/get-projects-by-user-id.handler.js +1 -2
  1051. package/dist/src/features/user/queries/handlers/get-projects-by-user-id.handler.js.map +1 -1
  1052. package/dist/src/features/user/queries/handlers/get-user-organization.handler.d.ts +9 -3
  1053. package/dist/src/features/user/queries/handlers/get-user-organization.handler.js +6 -9
  1054. package/dist/src/features/user/queries/handlers/get-user-organization.handler.js.map +1 -1
  1055. package/dist/src/features/user/queries/handlers/get-user-project.handler.d.ts +14 -0
  1056. package/dist/src/features/user/queries/handlers/get-user-project.handler.js +36 -0
  1057. package/dist/src/features/user/queries/handlers/get-user-project.handler.js.map +1 -0
  1058. package/dist/src/features/user/queries/handlers/get-user.handler.d.ts +1 -0
  1059. package/dist/src/features/user/queries/handlers/get-user.handler.js +1 -0
  1060. package/dist/src/features/user/queries/handlers/get-user.handler.js.map +1 -1
  1061. package/dist/src/features/user/queries/handlers/index.d.ts +5 -1
  1062. package/dist/src/features/user/queries/handlers/index.js +5 -1
  1063. package/dist/src/features/user/queries/handlers/index.js.map +1 -1
  1064. package/dist/src/features/user/queries/handlers/search-users.handler.d.ts +15 -0
  1065. package/dist/src/features/user/queries/handlers/search-users.handler.js +61 -0
  1066. package/dist/src/features/user/queries/handlers/search-users.handler.js.map +1 -0
  1067. package/dist/src/features/user/queries/impl/deprecated-get-owned-user-organization.query.d.ts +11 -0
  1068. package/dist/src/features/user/queries/impl/deprecated-get-owned-user-organization.query.js +10 -0
  1069. package/dist/src/features/user/queries/impl/deprecated-get-owned-user-organization.query.js.map +1 -0
  1070. package/dist/src/features/user/queries/impl/get-projects-by-user-id.query.d.ts +2 -1
  1071. package/dist/src/features/user/queries/impl/get-user-organization.query.d.ts +5 -1
  1072. package/dist/src/features/user/queries/impl/get-user-organization.query.js.map +1 -1
  1073. package/dist/src/features/user/queries/impl/get-user-project.query.d.ts +13 -0
  1074. package/dist/src/features/user/queries/impl/get-user-project.query.js +10 -0
  1075. package/dist/src/features/user/queries/impl/get-user-project.query.js.map +1 -0
  1076. package/dist/src/features/user/queries/impl/get-user.query.d.ts +3 -2
  1077. package/dist/src/features/user/queries/impl/index.d.ts +3 -0
  1078. package/dist/src/features/user/queries/impl/index.js +3 -0
  1079. package/dist/src/features/user/queries/impl/index.js.map +1 -1
  1080. package/dist/src/features/user/queries/impl/search-users.query.d.ts +16 -0
  1081. package/dist/src/features/user/queries/impl/search-users.query.js +10 -0
  1082. package/dist/src/features/user/queries/impl/search-users.query.js.map +1 -0
  1083. package/dist/src/features/user/queries/index.d.ts +2 -2
  1084. package/dist/src/features/user/queries/index.js +4 -1
  1085. package/dist/src/features/user/queries/index.js.map +1 -1
  1086. package/dist/src/features/user/user-api.service.d.ts +16 -0
  1087. package/dist/src/features/user/user-api.service.js +53 -0
  1088. package/dist/src/features/user/user-api.service.js.map +1 -0
  1089. package/dist/src/features/user/user.module.js +3 -1
  1090. package/dist/src/features/user/user.module.js.map +1 -1
  1091. package/dist/src/features/views/commands/handlers/index.d.ts +3 -0
  1092. package/dist/src/features/views/commands/handlers/index.js +21 -0
  1093. package/dist/src/features/views/commands/handlers/index.js.map +1 -0
  1094. package/dist/src/features/views/commands/handlers/update-table-views.handler.d.ts +25 -0
  1095. package/dist/src/features/views/commands/handlers/update-table-views.handler.js +125 -0
  1096. package/dist/src/features/views/commands/handlers/update-table-views.handler.js.map +1 -0
  1097. package/dist/src/features/views/commands/impl/index.d.ts +1 -0
  1098. package/dist/src/features/views/commands/impl/index.js +18 -0
  1099. package/dist/src/features/views/commands/impl/index.js.map +1 -0
  1100. package/dist/src/features/views/commands/impl/update-table-views.command.d.ts +11 -0
  1101. package/dist/src/features/views/commands/impl/update-table-views.command.js +10 -0
  1102. package/dist/src/features/views/commands/impl/update-table-views.command.js.map +1 -0
  1103. package/dist/src/features/views/index.d.ts +6 -0
  1104. package/dist/src/features/views/index.js +23 -0
  1105. package/dist/src/features/views/index.js.map +1 -0
  1106. package/dist/src/features/views/queries/handlers/get-table-views.handler.d.ts +13 -0
  1107. package/dist/src/features/views/queries/handlers/get-table-views.handler.js +72 -0
  1108. package/dist/src/features/views/queries/handlers/get-table-views.handler.js.map +1 -0
  1109. package/dist/src/features/views/queries/handlers/index.d.ts +3 -0
  1110. package/dist/src/features/views/queries/handlers/index.js +21 -0
  1111. package/dist/src/features/views/queries/handlers/index.js.map +1 -0
  1112. package/dist/src/features/views/queries/impl/get-table-views.query.d.ts +10 -0
  1113. package/dist/src/features/views/queries/impl/get-table-views.query.js +10 -0
  1114. package/dist/src/features/views/queries/impl/get-table-views.query.js.map +1 -0
  1115. package/dist/src/features/views/queries/impl/index.d.ts +1 -0
  1116. package/dist/src/features/views/queries/impl/index.js +18 -0
  1117. package/dist/src/features/views/queries/impl/index.js.map +1 -0
  1118. package/dist/src/features/views/services/index.d.ts +1 -0
  1119. package/dist/src/features/views/services/index.js +18 -0
  1120. package/dist/src/features/views/services/index.js.map +1 -0
  1121. package/dist/src/features/views/services/view-validation.service.d.ts +13 -0
  1122. package/dist/src/features/views/services/view-validation.service.js +106 -0
  1123. package/dist/src/features/views/services/view-validation.service.js.map +1 -0
  1124. package/dist/src/features/views/types/index.d.ts +1 -0
  1125. package/dist/src/features/views/types/index.js +18 -0
  1126. package/dist/src/features/views/types/index.js.map +1 -0
  1127. package/dist/src/features/views/types/views.types.d.ts +34 -0
  1128. package/dist/src/features/views/types/views.types.js +6 -0
  1129. package/dist/src/features/views/types/views.types.js.map +1 -0
  1130. package/dist/src/features/views/views-api.service.d.ts +12 -0
  1131. package/dist/src/features/views/views-api.service.js +38 -0
  1132. package/dist/src/features/views/views-api.service.js.map +1 -0
  1133. package/dist/src/features/views/views.module.d.ts +2 -0
  1134. package/dist/src/features/views/views.module.js +34 -0
  1135. package/dist/src/features/views/views.module.js.map +1 -0
  1136. package/dist/src/infrastructure/admin/admin.module.js +7 -2
  1137. package/dist/src/infrastructure/admin/admin.module.js.map +1 -1
  1138. package/dist/src/infrastructure/cache/events/index.d.ts +1 -0
  1139. package/dist/src/infrastructure/cache/events/index.js +1 -0
  1140. package/dist/src/infrastructure/cache/events/index.js.map +1 -1
  1141. package/dist/src/infrastructure/cache/events/row/rows-deleted.event.d.ts +7 -0
  1142. package/dist/src/infrastructure/cache/events/row/rows-deleted.event.js +14 -0
  1143. package/dist/src/infrastructure/cache/events/row/rows-deleted.event.js.map +1 -0
  1144. package/dist/src/infrastructure/cache/handlers/index.d.ts +2 -1
  1145. package/dist/src/infrastructure/cache/handlers/index.js +2 -0
  1146. package/dist/src/infrastructure/cache/handlers/index.js.map +1 -1
  1147. package/dist/src/infrastructure/cache/handlers/row/rows-deleted.handler.d.ts +8 -0
  1148. package/dist/src/infrastructure/cache/handlers/row/rows-deleted.handler.js +30 -0
  1149. package/dist/src/infrastructure/cache/handlers/row/rows-deleted.handler.js.map +1 -0
  1150. package/dist/src/infrastructure/cache/pg-bus/pg-bus.driver.js +1 -1
  1151. package/dist/src/infrastructure/cache/pg-bus/pg-bus.driver.js.map +1 -1
  1152. package/dist/src/infrastructure/cache/revisium-cache.module.js +40 -4
  1153. package/dist/src/infrastructure/cache/revisium-cache.module.js.map +1 -1
  1154. package/dist/src/infrastructure/cache/services/row-cache.service.d.ts +5 -0
  1155. package/dist/src/infrastructure/cache/services/row-cache.service.js +5 -0
  1156. package/dist/src/infrastructure/cache/services/row-cache.service.js.map +1 -1
  1157. package/dist/src/infrastructure/clean/commands/handlers/clean-rows.handler.d.ts +1 -1
  1158. package/dist/src/infrastructure/clean/commands/handlers/clean-tables.handler.d.ts +1 -1
  1159. package/dist/src/infrastructure/configuration/configuration-api.service.d.ts +7 -0
  1160. package/dist/src/infrastructure/configuration/configuration-api.service.js +29 -0
  1161. package/dist/src/infrastructure/configuration/configuration-api.service.js.map +1 -0
  1162. package/dist/src/infrastructure/configuration/configuration.module.js +5 -2
  1163. package/dist/src/infrastructure/configuration/configuration.module.js.map +1 -1
  1164. package/dist/src/infrastructure/database/hash.service.d.ts +1 -1
  1165. package/dist/src/infrastructure/database/hash.service.js +5 -2
  1166. package/dist/src/infrastructure/database/hash.service.js.map +1 -1
  1167. package/dist/src/infrastructure/database/postgresql-notification.service.d.ts +1 -1
  1168. package/dist/src/infrastructure/database/prisma.service.d.ts +5 -3
  1169. package/dist/src/infrastructure/database/prisma.service.js +18 -2
  1170. package/dist/src/infrastructure/database/prisma.service.js.map +1 -1
  1171. package/dist/src/infrastructure/database/transaction-prisma.service.d.ts +32 -12
  1172. package/dist/src/infrastructure/database/transaction-prisma.service.js +169 -5
  1173. package/dist/src/infrastructure/database/transaction-prisma.service.js.map +1 -1
  1174. package/dist/src/infrastructure/email/templates.service.js +36 -3
  1175. package/dist/src/infrastructure/email/templates.service.js.map +1 -1
  1176. package/dist/src/infrastructure/email/transporter.service.js +34 -1
  1177. package/dist/src/infrastructure/email/transporter.service.js.map +1 -1
  1178. package/dist/src/infrastructure/metrics/graphql/graphql-metrics.plugin.js +34 -1
  1179. package/dist/src/infrastructure/metrics/graphql/graphql-metrics.plugin.js.map +1 -1
  1180. package/dist/src/infrastructure/metrics/graphql/graphql-metrics.service.js +34 -1
  1181. package/dist/src/infrastructure/metrics/graphql/graphql-metrics.service.js.map +1 -1
  1182. package/dist/src/infrastructure/metrics/rest/rest-metrics.service.js +34 -1
  1183. package/dist/src/infrastructure/metrics/rest/rest-metrics.service.js.map +1 -1
  1184. package/dist/src/infrastructure/metrics-api/metrics-api.module.js +34 -1
  1185. package/dist/src/infrastructure/metrics-api/metrics-api.module.js.map +1 -1
  1186. package/dist/src/infrastructure/metrics-api/metrics.controller.js +36 -7
  1187. package/dist/src/infrastructure/metrics-api/metrics.controller.js.map +1 -1
  1188. package/dist/src/main.js +5 -0
  1189. package/dist/src/main.js.map +1 -1
  1190. package/dist/tsconfig.build.tsbuildinfo +1 -1
  1191. package/package.json +27 -16
  1192. package/dist/src/__generated__/sql/countTableDiffsBetweenRevisions.edge.js +0 -3
  1193. package/dist/src/__generated__/sql/countTableDiffsBetweenRevisions.edge.mjs +0 -2
  1194. package/dist/src/__generated__/sql/countTableDiffsBetweenRevisions.js +0 -3
  1195. package/dist/src/__generated__/sql/countTableDiffsBetweenRevisions.mjs +0 -2
  1196. package/dist/src/__generated__/sql/getTableDiffsPaginatedBetweenRevisions.edge.js +0 -3
  1197. package/dist/src/__generated__/sql/getTableDiffsPaginatedBetweenRevisions.edge.mjs +0 -2
  1198. package/dist/src/__generated__/sql/getTableDiffsPaginatedBetweenRevisions.js +0 -3
  1199. package/dist/src/__generated__/sql/getTableDiffsPaginatedBetweenRevisions.mjs +0 -2
  1200. package/dist/src/__generated__/sql/hasRowDiffsBetweenRevisions.edge.js +0 -3
  1201. package/dist/src/__generated__/sql/hasRowDiffsBetweenRevisions.edge.mjs +0 -2
  1202. package/dist/src/__generated__/sql/hasRowDiffsBetweenRevisions.js +0 -3
  1203. package/dist/src/__generated__/sql/hasRowDiffsBetweenRevisions.mjs +0 -2
  1204. package/dist/src/__generated__/sql/hasTableDiffsBetweenRevisions.edge.js +0 -3
  1205. package/dist/src/__generated__/sql/hasTableDiffsBetweenRevisions.edge.mjs +0 -2
  1206. package/dist/src/__generated__/sql/hasTableDiffsBetweenRevisions.js +0 -3
  1207. package/dist/src/__generated__/sql/hasTableDiffsBetweenRevisions.mjs +0 -2
  1208. package/dist/src/__generated__/sql/index.edge.js +0 -5
  1209. package/dist/src/__generated__/sql/index.edge.mjs +0 -4
  1210. package/dist/src/__generated__/sql/index.js +0 -5
  1211. package/dist/src/__generated__/sql/index.mjs +0 -4
  1212. package/dist/src/features/draft/commands/handlers/remove-row.handler.js.map +0 -1
  1213. package/dist/src/features/draft/commands/impl/remove-row.command.js +0 -10
  1214. package/dist/src/features/draft/commands/impl/remove-row.command.js.map +0 -1
  1215. package/dist/src/features/draft/commands/types/remove-row.handler.types.js.map +0 -1
@@ -0,0 +1,65 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OrganizationTools = void 0;
4
+ const zod_1 = require("zod");
5
+ const consts_1 = require("../../../features/auth/consts");
6
+ class OrganizationTools {
7
+ constructor(organizationApi) {
8
+ this.organizationApi = organizationApi;
9
+ }
10
+ register(server, auth) {
11
+ server.registerTool('getOrganization', {
12
+ description: 'Get organization by ID',
13
+ inputSchema: {
14
+ organizationId: zod_1.z.string().describe('Organization ID'),
15
+ },
16
+ annotations: { readOnlyHint: true },
17
+ }, async ({ organizationId }, context) => {
18
+ const session = auth.requireAuth(context);
19
+ await auth.checkPermissionByOrganization(organizationId, [
20
+ {
21
+ action: consts_1.PermissionAction.read,
22
+ subject: consts_1.PermissionSubject.Organization,
23
+ },
24
+ ], session.userId);
25
+ const result = await this.organizationApi.organization({
26
+ organizationId,
27
+ });
28
+ return {
29
+ content: [
30
+ { type: 'text', text: JSON.stringify(result, null, 2) },
31
+ ],
32
+ };
33
+ });
34
+ server.registerTool('getProjects', {
35
+ description: 'Get all projects in an organization',
36
+ inputSchema: {
37
+ organizationId: zod_1.z.string().describe('Organization ID'),
38
+ first: zod_1.z.number().optional().describe('Number of items to fetch'),
39
+ after: zod_1.z.string().optional().describe('Cursor for pagination'),
40
+ },
41
+ annotations: { readOnlyHint: true },
42
+ }, async ({ organizationId, first, after }, context) => {
43
+ const session = auth.requireAuth(context);
44
+ await auth.checkPermissionByOrganization(organizationId, [
45
+ {
46
+ action: consts_1.PermissionAction.read,
47
+ subject: consts_1.PermissionSubject.Organization,
48
+ },
49
+ ], session.userId);
50
+ const result = await this.organizationApi.getProjectsByOrganizationId({
51
+ organizationId,
52
+ first: first ?? 100,
53
+ after,
54
+ userId: session.userId,
55
+ });
56
+ return {
57
+ content: [
58
+ { type: 'text', text: JSON.stringify(result, null, 2) },
59
+ ],
60
+ };
61
+ });
62
+ }
63
+ }
64
+ exports.OrganizationTools = OrganizationTools;
65
+ //# sourceMappingURL=organization.tools.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"organization.tools.js","sourceRoot":"","sources":["../../../../../src/api/mcp-api/tools/organization.tools.ts"],"names":[],"mappings":";;;AACA,6BAAwB;AACxB,0DAA+E;AAI/E,MAAa,iBAAiB;IAC5B,YAA6B,eAAuC;QAAvC,oBAAe,GAAf,eAAe,CAAwB;IAAG,CAAC;IAExE,QAAQ,CAAC,MAAiB,EAAE,IAAoB;QAC9C,MAAM,CAAC,YAAY,CACjB,iBAAiB,EACjB;YACE,WAAW,EAAE,wBAAwB;YACrC,WAAW,EAAE;gBACX,cAAc,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,iBAAiB,CAAC;aACvD;YACD,WAAW,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE;SACpC,EACD,KAAK,EAAE,EAAE,cAAc,EAAE,EAAE,OAAO,EAAE,EAAE;YACpC,MAAM,OAAO,GAAG,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;YAC1C,MAAM,IAAI,CAAC,6BAA6B,CACtC,cAAc,EACd;gBACE;oBACE,MAAM,EAAE,yBAAgB,CAAC,IAAI;oBAC7B,OAAO,EAAE,0BAAiB,CAAC,YAAY;iBACxC;aACF,EACD,OAAO,CAAC,MAAM,CACf,CAAC;YACF,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,eAAe,CAAC,YAAY,CAAC;gBACrD,cAAc;aACf,CAAC,CAAC;YACH,OAAO;gBACL,OAAO,EAAE;oBACP,EAAE,IAAI,EAAE,MAAe,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,EAAE;iBACjE;aACF,CAAC;QACJ,CAAC,CACF,CAAC;QAEF,MAAM,CAAC,YAAY,CACjB,aAAa,EACb;YACE,WAAW,EAAE,qCAAqC;YAClD,WAAW,EAAE;gBACX,cAAc,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,iBAAiB,CAAC;gBACtD,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,0BAA0B,CAAC;gBACjE,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,uBAAuB,CAAC;aAC/D;YACD,WAAW,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE;SACpC,EACD,KAAK,EAAE,EAAE,cAAc,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,EAAE;YAClD,MAAM,OAAO,GAAG,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;YAC1C,MAAM,IAAI,CAAC,6BAA6B,CACtC,cAAc,EACd;gBACE;oBACE,MAAM,EAAE,yBAAgB,CAAC,IAAI;oBAC7B,OAAO,EAAE,0BAAiB,CAAC,YAAY;iBACxC;aACF,EACD,OAAO,CAAC,MAAM,CACf,CAAC;YACF,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,eAAe,CAAC,2BAA2B,CAAC;gBACpE,cAAc;gBACd,KAAK,EAAE,KAAK,IAAI,GAAG;gBACnB,KAAK;gBACL,MAAM,EAAE,OAAO,CAAC,MAAM;aACvB,CAAC,CAAC;YACH,OAAO;gBACL,OAAO,EAAE;oBACP,EAAE,IAAI,EAAE,MAAe,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,EAAE;iBACjE;aACF,CAAC;QACJ,CAAC,CACF,CAAC;IACJ,CAAC;CACF;AAzED,8CAyEC"}
@@ -0,0 +1,10 @@
1
+ import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
2
+ import { ProjectApiService } from '../../../features/project/project-api.service';
3
+ import { BranchApiService } from '../../../features/branch/branch-api.service';
4
+ import { McpAuthHelpers, McpToolRegistrar } from '../types';
5
+ export declare class ProjectTools implements McpToolRegistrar {
6
+ private readonly projectApi;
7
+ private readonly branchApi;
8
+ constructor(projectApi: ProjectApiService, branchApi: BranchApiService);
9
+ register(server: McpServer, auth: McpAuthHelpers): void;
10
+ }
@@ -0,0 +1,121 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ProjectTools = void 0;
4
+ const zod_1 = require("zod");
5
+ const consts_1 = require("../../../features/auth/consts");
6
+ class ProjectTools {
7
+ constructor(projectApi, branchApi) {
8
+ this.projectApi = projectApi;
9
+ this.branchApi = branchApi;
10
+ }
11
+ register(server, auth) {
12
+ server.registerTool('getProject', {
13
+ description: 'Get project by organization ID and project name. Returns project info with rootBranch containing draftRevisionId and headRevisionId.',
14
+ inputSchema: {
15
+ organizationId: zod_1.z.string().describe('Organization ID'),
16
+ projectName: zod_1.z.string().describe('Project name'),
17
+ },
18
+ annotations: { readOnlyHint: true },
19
+ }, async ({ organizationId, projectName }, context) => {
20
+ const session = auth.requireAuth(context);
21
+ await auth.checkPermissionByOrganizationProject(organizationId, projectName, [
22
+ {
23
+ action: consts_1.PermissionAction.read,
24
+ subject: consts_1.PermissionSubject.Project,
25
+ },
26
+ ], session.userId);
27
+ const project = await this.projectApi.getProject({
28
+ organizationId,
29
+ projectName,
30
+ });
31
+ const rootBranch = await this.projectApi.getRootBranchByProject(project.id);
32
+ const draftRevision = await this.branchApi.getDraftRevision(rootBranch.id);
33
+ const headRevision = await this.branchApi.getHeadRevision(rootBranch.id);
34
+ return {
35
+ content: [
36
+ {
37
+ type: 'text',
38
+ text: JSON.stringify({
39
+ ...project,
40
+ rootBranch: {
41
+ id: rootBranch.id,
42
+ name: rootBranch.name,
43
+ draftRevisionId: draftRevision.id,
44
+ headRevisionId: headRevision.id,
45
+ },
46
+ }, null, 2),
47
+ },
48
+ ],
49
+ };
50
+ });
51
+ server.registerTool('createProject', {
52
+ description: 'Create a new project in an organization',
53
+ inputSchema: {
54
+ organizationId: zod_1.z.string().describe('Organization ID'),
55
+ projectName: zod_1.z.string().describe('Project name (URL-friendly)'),
56
+ branchName: zod_1.z
57
+ .string()
58
+ .optional()
59
+ .describe('Initial branch name (default: main)'),
60
+ },
61
+ annotations: { readOnlyHint: false, destructiveHint: false },
62
+ }, async ({ organizationId, projectName, branchName }, context) => {
63
+ auth.requireAuth(context);
64
+ const project = await this.projectApi.apiCreateProject({
65
+ organizationId,
66
+ projectName,
67
+ branchName,
68
+ });
69
+ const branch = await this.branchApi.getBranch({
70
+ organizationId,
71
+ projectName,
72
+ branchName: branchName || 'main',
73
+ });
74
+ const draftRevision = await this.branchApi.getDraftRevision(branch.id);
75
+ const headRevision = await this.branchApi.getHeadRevision(branch.id);
76
+ return {
77
+ content: [
78
+ {
79
+ type: 'text',
80
+ text: JSON.stringify({
81
+ ...project,
82
+ branch: {
83
+ id: branch.id,
84
+ name: branch.name,
85
+ draftRevisionId: draftRevision.id,
86
+ headRevisionId: headRevision.id,
87
+ },
88
+ }, null, 2),
89
+ },
90
+ ],
91
+ };
92
+ });
93
+ server.registerTool('deleteProject', {
94
+ description: 'Delete a project',
95
+ inputSchema: {
96
+ organizationId: zod_1.z.string().describe('Organization ID'),
97
+ projectName: zod_1.z.string().describe('Project name'),
98
+ },
99
+ annotations: { readOnlyHint: false, destructiveHint: true },
100
+ }, async ({ organizationId, projectName }, context) => {
101
+ const session = auth.requireAuth(context);
102
+ await auth.checkPermissionByOrganizationProject(organizationId, projectName, [
103
+ {
104
+ action: consts_1.PermissionAction.delete,
105
+ subject: consts_1.PermissionSubject.Project,
106
+ },
107
+ ], session.userId);
108
+ const result = await this.projectApi.deleteProject({
109
+ organizationId,
110
+ projectName,
111
+ });
112
+ return {
113
+ content: [
114
+ { type: 'text', text: JSON.stringify(result, null, 2) },
115
+ ],
116
+ };
117
+ });
118
+ }
119
+ }
120
+ exports.ProjectTools = ProjectTools;
121
+ //# sourceMappingURL=project.tools.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"project.tools.js","sourceRoot":"","sources":["../../../../../src/api/mcp-api/tools/project.tools.ts"],"names":[],"mappings":";;;AACA,6BAAwB;AAGxB,0DAA+E;AAG/E,MAAa,YAAY;IACvB,YACmB,UAA6B,EAC7B,SAA2B;QAD3B,eAAU,GAAV,UAAU,CAAmB;QAC7B,cAAS,GAAT,SAAS,CAAkB;IAC3C,CAAC;IAEJ,QAAQ,CAAC,MAAiB,EAAE,IAAoB;QAC9C,MAAM,CAAC,YAAY,CACjB,YAAY,EACZ;YACE,WAAW,EACT,sIAAsI;YACxI,WAAW,EAAE;gBACX,cAAc,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,iBAAiB,CAAC;gBACtD,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,cAAc,CAAC;aACjD;YACD,WAAW,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE;SACpC,EACD,KAAK,EAAE,EAAE,cAAc,EAAE,WAAW,EAAE,EAAE,OAAO,EAAE,EAAE;YACjD,MAAM,OAAO,GAAG,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;YAC1C,MAAM,IAAI,CAAC,oCAAoC,CAC7C,cAAc,EACd,WAAW,EACX;gBACE;oBACE,MAAM,EAAE,yBAAgB,CAAC,IAAI;oBAC7B,OAAO,EAAE,0BAAiB,CAAC,OAAO;iBACnC;aACF,EACD,OAAO,CAAC,MAAM,CACf,CAAC;YACF,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC;gBAC/C,cAAc;gBACd,WAAW;aACZ,CAAC,CAAC;YAEH,MAAM,UAAU,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,sBAAsB,CAC7D,OAAO,CAAC,EAAE,CACX,CAAC;YAEF,MAAM,aAAa,GAAG,MAAM,IAAI,CAAC,SAAS,CAAC,gBAAgB,CACzD,UAAU,CAAC,EAAE,CACd,CAAC;YACF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C;aACF,EACD,OAAO,CAAC,MAAM,CACf,CAAC;YACF,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC;gBACjD,cAAc;gBACd,WAAW;aACZ,CAAC,CAAC;YACH,OAAO;gBACL,OAAO,EAAE;oBACP,EAAE,IAAI,EAAE,MAAe,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,EAAE;iBACjE;aACF,CAAC;QACJ,CAAC,CACF,CAAC;IACJ,CAAC;CACF;AA9JD,oCA8JC"}
@@ -0,0 +1,8 @@
1
+ import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
2
+ import { RevisionChangesApiService } from '../../../features/revision-changes/revision-changes-api.service';
3
+ import { McpAuthHelpers, McpToolRegistrar } from '../types';
4
+ export declare class RevisionChangesTools implements McpToolRegistrar {
5
+ private readonly revisionChangesApi;
6
+ constructor(revisionChangesApi: RevisionChangesApiService);
7
+ register(server: McpServer, auth: McpAuthHelpers): void;
8
+ }
@@ -0,0 +1,114 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RevisionChangesTools = void 0;
4
+ const zod_1 = require("zod");
5
+ const consts_1 = require("../../../features/auth/consts");
6
+ class RevisionChangesTools {
7
+ constructor(revisionChangesApi) {
8
+ this.revisionChangesApi = revisionChangesApi;
9
+ }
10
+ register(server, auth) {
11
+ server.registerTool('getRevisionChanges', {
12
+ description: 'Get summary of all changes in a revision (tables and rows added/modified/removed). Use this to see what changed in draft vs head.',
13
+ inputSchema: {
14
+ revisionId: zod_1.z
15
+ .string()
16
+ .describe('Revision ID (use draftRevisionId to see uncommitted changes)'),
17
+ compareWithRevisionId: zod_1.z
18
+ .string()
19
+ .optional()
20
+ .describe('Optional: Compare with specific revision. If not provided, compares with parent revision.'),
21
+ },
22
+ annotations: { readOnlyHint: true },
23
+ }, async ({ revisionId, compareWithRevisionId }, context) => {
24
+ const session = auth.requireAuth(context);
25
+ await auth.checkPermissionByRevision(revisionId, [
26
+ {
27
+ action: consts_1.PermissionAction.read,
28
+ subject: consts_1.PermissionSubject.Project,
29
+ },
30
+ ], session.userId);
31
+ const result = await this.revisionChangesApi.revisionChanges({
32
+ revisionId,
33
+ compareWithRevisionId,
34
+ });
35
+ return {
36
+ content: [
37
+ { type: 'text', text: JSON.stringify(result, null, 2) },
38
+ ],
39
+ };
40
+ });
41
+ server.registerTool('getTableChanges', {
42
+ description: 'Get detailed list of changed tables in a revision, including schema changes.',
43
+ inputSchema: {
44
+ revisionId: zod_1.z.string().describe('Revision ID'),
45
+ compareWithRevisionId: zod_1.z
46
+ .string()
47
+ .optional()
48
+ .describe('Optional: Compare with specific revision'),
49
+ first: zod_1.z
50
+ .number()
51
+ .optional()
52
+ .describe('Number of items (default: 50)'),
53
+ after: zod_1.z.string().optional().describe('Cursor for pagination'),
54
+ },
55
+ annotations: { readOnlyHint: true },
56
+ }, async ({ revisionId, compareWithRevisionId, first, after }, context) => {
57
+ const session = auth.requireAuth(context);
58
+ await auth.checkPermissionByRevision(revisionId, [
59
+ {
60
+ action: consts_1.PermissionAction.read,
61
+ subject: consts_1.PermissionSubject.Project,
62
+ },
63
+ ], session.userId);
64
+ const result = await this.revisionChangesApi.tableChanges({
65
+ revisionId,
66
+ compareWithRevisionId,
67
+ first: first ?? 50,
68
+ after,
69
+ });
70
+ return {
71
+ content: [
72
+ { type: 'text', text: JSON.stringify(result, null, 2) },
73
+ ],
74
+ };
75
+ });
76
+ server.registerTool('getRowChanges', {
77
+ description: 'Get detailed list of changed rows in a revision, including field-level diffs.',
78
+ inputSchema: {
79
+ revisionId: zod_1.z.string().describe('Revision ID'),
80
+ compareWithRevisionId: zod_1.z
81
+ .string()
82
+ .optional()
83
+ .describe('Optional: Compare with specific revision'),
84
+ first: zod_1.z
85
+ .number()
86
+ .optional()
87
+ .describe('Number of items (default: 50)'),
88
+ after: zod_1.z.string().optional().describe('Cursor for pagination'),
89
+ },
90
+ annotations: { readOnlyHint: true },
91
+ }, async ({ revisionId, compareWithRevisionId, first, after }, context) => {
92
+ const session = auth.requireAuth(context);
93
+ await auth.checkPermissionByRevision(revisionId, [
94
+ {
95
+ action: consts_1.PermissionAction.read,
96
+ subject: consts_1.PermissionSubject.Project,
97
+ },
98
+ ], session.userId);
99
+ const result = await this.revisionChangesApi.rowChanges({
100
+ revisionId,
101
+ compareWithRevisionId,
102
+ first: first ?? 50,
103
+ after,
104
+ });
105
+ return {
106
+ content: [
107
+ { type: 'text', text: JSON.stringify(result, null, 2) },
108
+ ],
109
+ };
110
+ });
111
+ }
112
+ }
113
+ exports.RevisionChangesTools = RevisionChangesTools;
114
+ //# sourceMappingURL=revision-changes.tools.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"revision-changes.tools.js","sourceRoot":"","sources":["../../../../../src/api/mcp-api/tools/revision-changes.tools.ts"],"names":[],"mappings":";;;AACA,6BAAwB;AAExB,0DAA+E;AAG/E,MAAa,oBAAoB;IAC/B,YAA6B,kBAA6C;QAA7C,uBAAkB,GAAlB,kBAAkB,CAA2B;IAAG,CAAC;IAE9E,QAAQ,CAAC,MAAiB,EAAE,IAAoB;QAC9C,MAAM,CAAC,YAAY,CACjB,oBAAoB,EACpB;YACE,WAAW,EACT,mIAAmI;YACrI,WAAW,EAAE;gBACX,UAAU,EAAE,OAAC;qBACV,MAAM,EAAE;qBACR,QAAQ,CACP,8DAA8D,CAC/D;gBACH,qBAAqB,EAAE,OAAC;qBACrB,MAAM,EAAE;qBACR,QAAQ,EAAE;qBACV,QAAQ,CACP,2FAA2F,CAC5F;aACJ;YACD,WAAW,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE;SACpC,EACD,KAAK,EAAE,EAAE,UAAU,EAAE,qBAAqB,EAAE,EAAE,OAAO,EAAE,EAAE;YACvD,MAAM,OAAO,GAAG,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;YAC1C,MAAM,IAAI,CAAC,yBAAy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O;iBACnC;aACF,EACD,OAAO,CAAC,MAAM,CACf,CAAC;YACF,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,kBAAkB,CAAC,UAAU,CAAC;gBACtD,UAAU;gBACV,qBAAqB;gBACrB,KAAK,EAAE,KAAK,IAAI,EAAE;gBAClB,KAAK;aACN,CAAC,CAAC;YACH,OAAO;gBACL,OAAO,EAAE;oBACP,EAAE,IAAI,EAAE,MAAe,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,EAAE;iBACjE;aACF,CAAC;QACJ,CAAC,CACF,CAAC;IACJ,CAAC;CACF;AA1ID,oDA0IC"}
@@ -0,0 +1,10 @@
1
+ import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
2
+ import { RevisionsApiService } from '../../../features/revision/revisions-api.service';
3
+ import { DraftApiService } from '../../../features/draft/draft-api.service';
4
+ import { McpAuthHelpers, McpToolRegistrar } from '../types';
5
+ export declare class RevisionTools implements McpToolRegistrar {
6
+ private readonly revisionsApi;
7
+ private readonly draftApi;
8
+ constructor(revisionsApi: RevisionsApiService, draftApi: DraftApiService);
9
+ register(server: McpServer, auth: McpAuthHelpers): void;
10
+ }
@@ -0,0 +1,65 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RevisionTools = void 0;
4
+ const zod_1 = require("zod");
5
+ const consts_1 = require("../../../features/auth/consts");
6
+ class RevisionTools {
7
+ constructor(revisionsApi, draftApi) {
8
+ this.revisionsApi = revisionsApi;
9
+ this.draftApi = draftApi;
10
+ }
11
+ register(server, auth) {
12
+ server.registerTool('getRevision', {
13
+ description: 'Get revision details',
14
+ inputSchema: {
15
+ revisionId: zod_1.z.string().describe('Revision ID'),
16
+ },
17
+ annotations: { readOnlyHint: true },
18
+ }, async ({ revisionId }, context) => {
19
+ const session = auth.requireAuth(context);
20
+ await auth.checkPermissionByRevision(revisionId, [
21
+ {
22
+ action: consts_1.PermissionAction.read,
23
+ subject: consts_1.PermissionSubject.Project,
24
+ },
25
+ ], session.userId);
26
+ const result = await this.revisionsApi.revision({ revisionId });
27
+ return {
28
+ content: [
29
+ { type: 'text', text: JSON.stringify(result, null, 2) },
30
+ ],
31
+ };
32
+ });
33
+ server.registerTool('commitRevision', {
34
+ description: 'Commit changes in a draft revision. CRITICAL: ALWAYS ask user for permission before committing. Never commit automatically - head/draft may point to different environments and committing without permission can break production.',
35
+ inputSchema: {
36
+ organizationId: zod_1.z.string().describe('Organization ID'),
37
+ projectName: zod_1.z.string().describe('Project name'),
38
+ branchName: zod_1.z.string().describe('Branch name'),
39
+ comment: zod_1.z.string().optional().describe('Commit comment'),
40
+ },
41
+ annotations: { readOnlyHint: false, destructiveHint: false },
42
+ }, async ({ organizationId, projectName, branchName, comment }, context) => {
43
+ const session = auth.requireAuth(context);
44
+ await auth.checkPermissionByOrganizationProject(organizationId, projectName, [
45
+ {
46
+ action: consts_1.PermissionAction.create,
47
+ subject: consts_1.PermissionSubject.Revision,
48
+ },
49
+ ], session.userId);
50
+ const result = await this.draftApi.apiCreateRevision({
51
+ organizationId,
52
+ projectName,
53
+ branchName,
54
+ comment,
55
+ });
56
+ return {
57
+ content: [
58
+ { type: 'text', text: JSON.stringify(result, null, 2) },
59
+ ],
60
+ };
61
+ });
62
+ }
63
+ }
64
+ exports.RevisionTools = RevisionTools;
65
+ //# sourceMappingURL=revision.tools.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"revision.tools.js","sourceRoot":"","sources":["../../../../../src/api/mcp-api/tools/revision.tools.ts"],"names":[],"mappings":";;;AACA,6BAAwB;AAGxB,0DAA+E;AAG/E,MAAa,aAAa;IACxB,YACmB,YAAiC,EACjC,QAAyB;QADzB,iBAAY,GAAZ,YAAY,CAAqB;QACjC,aAAQ,GAAR,QAAQ,CAAiB;IACzC,CAAC;IAEJ,QAAQ,CAAC,MAAiB,EAAE,IAAoB;QAC9C,MAAM,CAAC,YAAY,CACjB,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,EAAE,eAAe,EAAE,KAAK,EAAE;SAC7D,EACD,KAAK,EAAE,EAAE,cAAc,EAAE,WAAW,EAAE,UAAU,EAAE,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE;YACtE,MAAM,OAAO,GAAG,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;YAC1C,MAAM,IAAI,CAAC,oCAAoC,CAC7C,cAAc,EACd,WAAW,EACX;gBACE;oBACE,MAAM,EAAE,yBAAgB,CAAC,MAAM;oBAC/B,OAAO,EAAE,0BAAiB,CAAC,QAAQ;iBACpC;aACF,EACD,OAAO,CAAC,MAAM,CACf,CAAC;YACF,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,iBAAiB,CAAC;gBACnD,cAAc;gBACd,WAAW;gBACX,UAAU;gBACV,OAAO;aACR,CAAC,CAAC;YACH,OAAO;gBACL,OAAO,EAAE;oBACP,EAAE,IAAI,EAAE,MAAe,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,EAAE;iBACjE;aACF,CAAC;QACJ,CAAC,CACF,CAAC;IACJ,CAAC;CACF;AA7ED,sCA6EC"}
@@ -0,0 +1,10 @@
1
+ import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
2
+ import { RowApiService } from '../../../features/row/row-api.service';
3
+ import { DraftApiService } from '../../../features/draft/draft-api.service';
4
+ import { McpAuthHelpers, McpToolRegistrar } from '../types';
5
+ export declare class RowTools implements McpToolRegistrar {
6
+ private readonly rowApi;
7
+ private readonly draftApi;
8
+ constructor(rowApi: RowApiService, draftApi: DraftApiService);
9
+ register(server: McpServer, auth: McpAuthHelpers): void;
10
+ }
@@ -0,0 +1,189 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RowTools = void 0;
4
+ const zod_1 = require("zod");
5
+ const consts_1 = require("../../../features/auth/consts");
6
+ class RowTools {
7
+ constructor(rowApi, draftApi) {
8
+ this.rowApi = rowApi;
9
+ this.draftApi = draftApi;
10
+ }
11
+ register(server, auth) {
12
+ server.registerTool('getRows', {
13
+ description: 'Get rows from a table',
14
+ inputSchema: {
15
+ revisionId: zod_1.z.string().describe('Revision ID'),
16
+ tableId: zod_1.z.string().describe('Table ID'),
17
+ first: zod_1.z.number().optional().describe('Number of items'),
18
+ after: zod_1.z.string().optional().describe('Cursor'),
19
+ },
20
+ annotations: { readOnlyHint: true },
21
+ }, async ({ revisionId, tableId, first, after }, context) => {
22
+ const session = auth.requireAuth(context);
23
+ await auth.checkPermissionByRevision(revisionId, [
24
+ {
25
+ action: consts_1.PermissionAction.read,
26
+ subject: consts_1.PermissionSubject.Project,
27
+ },
28
+ ], session.userId);
29
+ const result = await this.rowApi.getRows({
30
+ revisionId,
31
+ tableId,
32
+ first: first ?? 50,
33
+ after,
34
+ });
35
+ return {
36
+ content: [
37
+ { type: 'text', text: JSON.stringify(result, null, 2) },
38
+ ],
39
+ };
40
+ });
41
+ server.registerTool('getRow', {
42
+ description: 'Get a specific row',
43
+ inputSchema: {
44
+ revisionId: zod_1.z.string().describe('Revision ID'),
45
+ tableId: zod_1.z.string().describe('Table ID'),
46
+ rowId: zod_1.z.string().describe('Row ID'),
47
+ },
48
+ annotations: { readOnlyHint: true },
49
+ }, async ({ revisionId, tableId, rowId }, context) => {
50
+ const session = auth.requireAuth(context);
51
+ await auth.checkPermissionByRevision(revisionId, [
52
+ {
53
+ action: consts_1.PermissionAction.read,
54
+ subject: consts_1.PermissionSubject.Project,
55
+ },
56
+ ], session.userId);
57
+ const result = await this.rowApi.getRow({ revisionId, tableId, rowId });
58
+ return {
59
+ content: [
60
+ { type: 'text', text: JSON.stringify(result, null, 2) },
61
+ ],
62
+ };
63
+ });
64
+ server.registerTool('createRow', {
65
+ description: 'Create a new row in a table. IMPORTANT: If table has foreignKey fields, referenced rows MUST exist first. Create rows in dependency order.',
66
+ inputSchema: {
67
+ revisionId: zod_1.z.string().describe('Draft revision ID'),
68
+ tableId: zod_1.z.string().describe('Table ID'),
69
+ rowId: zod_1.z.string().describe('Row ID (URL-friendly)'),
70
+ data: zod_1.z
71
+ .record(zod_1.z.string(), zod_1.z.unknown())
72
+ .describe('Row data matching table schema. For foreignKey fields, use valid rowId from referenced table or empty string.'),
73
+ },
74
+ annotations: { readOnlyHint: false, destructiveHint: false },
75
+ }, async ({ revisionId, tableId, rowId, data }, context) => {
76
+ const session = auth.requireAuth(context);
77
+ await auth.checkPermissionByRevision(revisionId, [{ action: consts_1.PermissionAction.create, subject: consts_1.PermissionSubject.Row }], session.userId);
78
+ const result = await this.draftApi.apiCreateRow({
79
+ revisionId,
80
+ tableId,
81
+ rowId,
82
+ data: data,
83
+ });
84
+ return {
85
+ content: [
86
+ { type: 'text', text: JSON.stringify(result, null, 2) },
87
+ ],
88
+ };
89
+ });
90
+ server.registerTool('updateRow', {
91
+ description: 'Update a row (replace all data)',
92
+ inputSchema: {
93
+ revisionId: zod_1.z.string().describe('Draft revision ID'),
94
+ tableId: zod_1.z.string().describe('Table ID'),
95
+ rowId: zod_1.z.string().describe('Row ID'),
96
+ data: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).describe('New row data'),
97
+ },
98
+ annotations: { readOnlyHint: false, destructiveHint: false },
99
+ }, async ({ revisionId, tableId, rowId, data }, context) => {
100
+ const session = auth.requireAuth(context);
101
+ await auth.checkPermissionByRevision(revisionId, [{ action: consts_1.PermissionAction.update, subject: consts_1.PermissionSubject.Row }], session.userId);
102
+ const result = await this.draftApi.apiUpdateRow({
103
+ revisionId,
104
+ tableId,
105
+ rowId,
106
+ data: data,
107
+ });
108
+ return {
109
+ content: [
110
+ { type: 'text', text: JSON.stringify(result, null, 2) },
111
+ ],
112
+ };
113
+ });
114
+ server.registerTool('patchRow', {
115
+ description: 'Patch a row using JSON Patch operations. ONLY "replace" operation is supported. Path is field name WITHOUT leading slash.',
116
+ inputSchema: {
117
+ revisionId: zod_1.z.string().describe('Draft revision ID'),
118
+ tableId: zod_1.z.string().describe('Table ID'),
119
+ rowId: zod_1.z.string().describe('Row ID'),
120
+ patches: zod_1.z
121
+ .array(zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()))
122
+ .describe('JSON Patch operations. ONLY replace supported. Path WITHOUT leading slash. Example: [{"op":"replace","path":"title","value":"New"}]. For nested: "address.city". For arrays: "items[0]" or "items[0].name".'),
123
+ },
124
+ annotations: { readOnlyHint: false, destructiveHint: false },
125
+ }, async ({ revisionId, tableId, rowId, patches }, context) => {
126
+ const session = auth.requireAuth(context);
127
+ await auth.checkPermissionByRevision(revisionId, [{ action: consts_1.PermissionAction.update, subject: consts_1.PermissionSubject.Row }], session.userId);
128
+ const result = await this.draftApi.apiPatchRow({
129
+ revisionId,
130
+ tableId,
131
+ rowId,
132
+ patches: patches,
133
+ });
134
+ return {
135
+ content: [
136
+ { type: 'text', text: JSON.stringify(result, null, 2) },
137
+ ],
138
+ };
139
+ });
140
+ server.registerTool('renameRow', {
141
+ description: 'Rename a row (change row ID)',
142
+ inputSchema: {
143
+ revisionId: zod_1.z.string().describe('Draft revision ID'),
144
+ tableId: zod_1.z.string().describe('Table ID'),
145
+ rowId: zod_1.z.string().describe('Current row ID'),
146
+ nextRowId: zod_1.z.string().describe('New row ID'),
147
+ },
148
+ annotations: { readOnlyHint: false, destructiveHint: false },
149
+ }, async ({ revisionId, tableId, rowId, nextRowId }, context) => {
150
+ const session = auth.requireAuth(context);
151
+ await auth.checkPermissionByRevision(revisionId, [{ action: consts_1.PermissionAction.update, subject: consts_1.PermissionSubject.Row }], session.userId);
152
+ const result = await this.draftApi.apiRenameRow({
153
+ revisionId,
154
+ tableId,
155
+ rowId,
156
+ nextRowId,
157
+ });
158
+ return {
159
+ content: [
160
+ { type: 'text', text: JSON.stringify(result, null, 2) },
161
+ ],
162
+ };
163
+ });
164
+ server.registerTool('removeRow', {
165
+ description: 'Remove a row',
166
+ inputSchema: {
167
+ revisionId: zod_1.z.string().describe('Draft revision ID'),
168
+ tableId: zod_1.z.string().describe('Table ID'),
169
+ rowId: zod_1.z.string().describe('Row ID to remove'),
170
+ },
171
+ annotations: { readOnlyHint: false, destructiveHint: true },
172
+ }, async ({ revisionId, tableId, rowId }, context) => {
173
+ const session = auth.requireAuth(context);
174
+ await auth.checkPermissionByRevision(revisionId, [{ action: consts_1.PermissionAction.delete, subject: consts_1.PermissionSubject.Row }], session.userId);
175
+ const result = await this.draftApi.apiRemoveRow({
176
+ revisionId,
177
+ tableId,
178
+ rowId,
179
+ });
180
+ return {
181
+ content: [
182
+ { type: 'text', text: JSON.stringify(result, null, 2) },
183
+ ],
184
+ };
185
+ });
186
+ }
187
+ }
188
+ exports.RowTools = RowTools;
189
+ //# sourceMappingURL=row.tools.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"row.tools.js","sourceRoot":"","sources":["../../../../../src/api/mcp-api/tools/row.tools.ts"],"names":[],"mappings":";;;AACA,6BAAwB;AAKxB,0DAA+E;AAG/E,MAAa,QAAQ;IACnB,YACmB,MAAqB,EACrB,QAAyB;QADzB,WAAM,GAAN,MAAM,CAAe;QACrB,aAAQ,GAAR,QAAQ,CAAiB;IACzC,CAAC;IAEJ,QAAQ,CAAC,MAAiB,EAAE,IAAoB;QAC9C,MAAM,CAAC,YAAY,CACjB,SAAS,EACT;YACE,WAAW,EAAE,uBAAuB;YACpC,WAAW,EAAE;gBACX,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,aAAa,CAAC;gBAC9C,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,UAAU,CAAC;gBACxC,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,iBAAiB,CAAC;gBACxD,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,QAAQ,CAAC;aAChD;YACD,WAAW,EAAE,EAAE,YAAY,EA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