@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.
- package/dist/jest.setup.js +37 -1
- package/dist/jest.setup.js.map +1 -1
- package/dist/package.json +27 -16
- package/dist/prisma/schema.prisma +4 -5
- package/dist/prisma/seed/generateSeedApi.js +35 -2
- package/dist/prisma/seed/generateSeedApi.js.map +1 -1
- package/dist/prisma/seed/loadFromSeedApi.js +35 -2
- package/dist/prisma/seed/loadFromSeedApi.js.map +1 -1
- package/dist/prisma/seed/permissions/update-user.json +5 -0
- package/dist/prisma/seed/roles/organizationAdmin.json +1 -0
- package/dist/prisma/seed/roles/organizationOwner.json +1 -0
- package/dist/prisma/seed/roles/systemAdmin.json +24 -2
- package/dist/prisma/seed.js +42 -5
- package/dist/prisma/seed.js.map +1 -1
- package/dist/prisma/sql/countRowChangesBetweenRevisions.sql +68 -0
- package/dist/prisma/sql/countTableDiffsBetweenRevisions.sql +23 -13
- package/dist/prisma/sql/getRowChangesPaginatedBetweenRevisions.sql +155 -0
- package/dist/prisma/sql/getRowChangesStatsBetweenRevisions.sql +54 -0
- package/dist/prisma/sql/getTableDiffsPaginatedBetweenRevisions.sql +22 -8
- package/dist/prisma/sql/getTableDiffsStatsBetweenRevisions.sql +41 -0
- package/dist/prisma.config.d.ts +3 -0
- package/dist/prisma.config.js +15 -0
- package/dist/prisma.config.js.map +1 -0
- package/dist/src/__generated__/client/browser.d.ts +18 -0
- package/dist/src/__generated__/client/browser.js +44 -0
- package/dist/src/__generated__/client/browser.js.map +1 -0
- package/dist/src/__generated__/client/client.d.ts +22 -0
- package/dist/src/__generated__/client/client.js +46 -0
- package/dist/src/__generated__/client/client.js.map +1 -0
- package/dist/src/__generated__/client/commonInputTypes.d.ts +441 -0
- package/dist/src/{features/draft/commands/types/remove-row.handler.types.js → __generated__/client/commonInputTypes.js} +1 -1
- package/dist/src/__generated__/client/commonInputTypes.js.map +1 -0
- package/dist/src/__generated__/client/enums.d.ts +11 -0
- package/dist/src/__generated__/client/enums.js +13 -0
- package/dist/src/__generated__/client/enums.js.map +1 -0
- package/dist/src/__generated__/client/index.d.ts +1 -0
- package/dist/src/__generated__/client/index.js +18 -0
- package/dist/src/__generated__/client/index.js.map +1 -0
- package/dist/src/__generated__/client/internal/class.d.ts +75 -0
- package/dist/src/__generated__/client/internal/class.js +69 -0
- package/dist/src/__generated__/client/internal/class.js.map +1 -0
- package/dist/src/__generated__/client/internal/prismaNamespace.d.ts +1572 -0
- package/dist/src/__generated__/client/internal/prismaNamespace.js +289 -0
- package/dist/src/__generated__/client/internal/prismaNamespace.js.map +1 -0
- package/dist/src/__generated__/client/internal/prismaNamespaceBrowser.d.ts +273 -0
- package/dist/src/__generated__/client/internal/prismaNamespaceBrowser.js +272 -0
- package/dist/src/__generated__/client/internal/prismaNamespaceBrowser.js.map +1 -0
- package/dist/src/__generated__/client/models/Branch.d.ts +651 -0
- package/dist/src/__generated__/client/models/Branch.js +3 -0
- package/dist/src/__generated__/client/models/Branch.js.map +1 -0
- package/dist/src/__generated__/client/models/Endpoint.d.ts +701 -0
- package/dist/src/__generated__/client/models/Endpoint.js +3 -0
- package/dist/src/__generated__/client/models/Endpoint.js.map +1 -0
- package/dist/src/__generated__/client/models/EndpointVersion.d.ts +488 -0
- package/dist/src/__generated__/client/models/EndpointVersion.js +3 -0
- package/dist/src/__generated__/client/models/EndpointVersion.js.map +1 -0
- package/dist/src/__generated__/client/models/Instance.d.ts +298 -0
- package/dist/src/__generated__/client/models/Instance.js +3 -0
- package/dist/src/__generated__/client/models/Instance.js.map +1 -0
- package/dist/src/__generated__/client/models/Organization.d.ts +495 -0
- package/dist/src/__generated__/client/models/Organization.js +3 -0
- package/dist/src/__generated__/client/models/Organization.js.map +1 -0
- package/dist/src/__generated__/client/models/Permission.d.ts +556 -0
- package/dist/src/__generated__/client/models/Permission.js +3 -0
- package/dist/src/__generated__/client/models/Permission.js.map +1 -0
- package/dist/src/__generated__/client/models/Project.d.ts +781 -0
- package/dist/src/__generated__/client/models/Project.js +3 -0
- package/dist/src/__generated__/client/models/Project.js.map +1 -0
- package/dist/src/__generated__/client/models/Revision.d.ts +1298 -0
- package/dist/src/__generated__/client/models/Revision.js +3 -0
- package/dist/src/__generated__/client/models/Revision.js.map +1 -0
- package/dist/src/__generated__/client/models/Role.d.ts +858 -0
- package/dist/src/__generated__/client/models/Role.js +3 -0
- package/dist/src/__generated__/client/models/Role.js.map +1 -0
- package/dist/src/__generated__/client/models/Row.d.ts +754 -0
- package/dist/src/__generated__/client/models/Row.js +3 -0
- package/dist/src/__generated__/client/models/Row.js.map +1 -0
- package/dist/src/__generated__/client/models/Table.d.ts +761 -0
- package/dist/src/__generated__/client/models/Table.js +3 -0
- package/dist/src/__generated__/client/models/Table.js.map +1 -0
- package/dist/src/__generated__/client/models/User.d.ts +876 -0
- package/dist/src/__generated__/client/models/User.js +3 -0
- package/dist/src/__generated__/client/models/User.js.map +1 -0
- package/dist/src/__generated__/client/models/UserOrganization.d.ts +764 -0
- package/dist/src/__generated__/client/models/UserOrganization.js +3 -0
- package/dist/src/__generated__/client/models/UserOrganization.js.map +1 -0
- package/dist/src/__generated__/client/models/UserProject.d.ts +764 -0
- package/dist/src/__generated__/client/models/UserProject.js +3 -0
- package/dist/src/__generated__/client/models/UserProject.js.map +1 -0
- package/dist/src/__generated__/client/models.d.ts +15 -0
- package/dist/src/__generated__/client/models.js +3 -0
- package/dist/src/__generated__/client/models.js.map +1 -0
- package/dist/src/__generated__/client/sql/$DbEnums.d.ts +4 -0
- package/dist/src/__generated__/client/sql/$DbEnums.js +3 -0
- package/dist/src/__generated__/client/sql/$DbEnums.js.map +1 -0
- package/dist/src/__generated__/client/sql/countRowChangesBetweenRevisions.d.ts +8 -0
- package/dist/src/__generated__/client/sql/countRowChangesBetweenRevisions.js +39 -0
- package/dist/src/__generated__/client/sql/countRowChangesBetweenRevisions.js.map +1 -0
- package/dist/src/__generated__/client/sql/countTableDiffsBetweenRevisions.d.ts +8 -0
- package/dist/src/__generated__/client/sql/countTableDiffsBetweenRevisions.js +39 -0
- package/dist/src/__generated__/client/sql/countTableDiffsBetweenRevisions.js.map +1 -0
- package/dist/src/__generated__/client/sql/getRowChangesPaginatedBetweenRevisions.d.ts +46 -0
- package/dist/src/__generated__/client/sql/getRowChangesPaginatedBetweenRevisions.js +39 -0
- package/dist/src/__generated__/client/sql/getRowChangesPaginatedBetweenRevisions.js.map +1 -0
- package/dist/src/__generated__/client/sql/getRowChangesStatsBetweenRevisions.d.ts +12 -0
- package/dist/src/__generated__/client/sql/getRowChangesStatsBetweenRevisions.js +39 -0
- package/dist/src/__generated__/client/sql/getRowChangesStatsBetweenRevisions.js.map +1 -0
- package/dist/src/__generated__/client/sql/getTableDiffsPaginatedBetweenRevisions.d.ts +14 -0
- package/dist/src/__generated__/client/sql/getTableDiffsPaginatedBetweenRevisions.js +39 -0
- package/dist/src/__generated__/client/sql/getTableDiffsPaginatedBetweenRevisions.js.map +1 -0
- package/dist/src/__generated__/client/sql/getTableDiffsStatsBetweenRevisions.d.ts +12 -0
- package/dist/src/__generated__/client/sql/getTableDiffsStatsBetweenRevisions.js +39 -0
- package/dist/src/__generated__/client/sql/getTableDiffsStatsBetweenRevisions.js.map +1 -0
- package/dist/src/__generated__/client/sql/hasRowDiffsBetweenRevisions.d.ts +8 -0
- package/dist/src/__generated__/client/sql/hasRowDiffsBetweenRevisions.js +39 -0
- package/dist/src/__generated__/client/sql/hasRowDiffsBetweenRevisions.js.map +1 -0
- package/dist/src/__generated__/client/sql/hasTableDiffsBetweenRevisions.d.ts +8 -0
- package/dist/src/__generated__/client/sql/hasTableDiffsBetweenRevisions.js +39 -0
- package/dist/src/__generated__/client/sql/hasTableDiffsBetweenRevisions.js.map +1 -0
- package/dist/src/__generated__/client/sql.d.ts +9 -0
- package/dist/src/__generated__/client/sql.js +25 -0
- package/dist/src/__generated__/client/sql.js.map +1 -0
- package/dist/src/__tests__/create-models.d.ts +4 -2
- package/dist/src/__tests__/e2e/shared/graphql-helpers.d.ts +29 -0
- package/dist/src/__tests__/e2e/shared/graphql-helpers.js +61 -0
- package/dist/src/__tests__/e2e/shared/graphql-helpers.js.map +1 -0
- package/dist/src/__tests__/e2e/shared/helpers.d.ts +16 -0
- package/dist/src/__tests__/e2e/shared/helpers.js +64 -0
- package/dist/src/__tests__/e2e/shared/helpers.js.map +1 -0
- package/dist/src/__tests__/e2e/shared/index.d.ts +4 -0
- package/dist/src/__tests__/e2e/shared/index.js +26 -0
- package/dist/src/__tests__/e2e/shared/index.js.map +1 -0
- package/dist/src/__tests__/e2e/shared/readonly-fixture.d.ts +5 -0
- package/dist/src/__tests__/e2e/shared/readonly-fixture.js +28 -0
- package/dist/src/__tests__/e2e/shared/readonly-fixture.js.map +1 -0
- package/dist/src/__tests__/e2e/shared/test-app.d.ts +6 -0
- package/dist/src/__tests__/e2e/shared/test-app.js +55 -0
- package/dist/src/__tests__/e2e/shared/test-app.js.map +1 -0
- package/dist/src/__tests__/utils/prepareProject.d.ts +335 -64
- package/dist/src/__tests__/utils/prepareProject.js +83 -24
- package/dist/src/__tests__/utils/prepareProject.js.map +1 -1
- package/dist/src/__tests__/utils/queryTest.js +6 -3
- package/dist/src/__tests__/utils/queryTest.js.map +1 -1
- package/dist/src/api/graphql-api/auth/auth.resolver.d.ts +3 -3
- package/dist/src/api/graphql-api/auth/auth.resolver.js +14 -11
- package/dist/src/api/graphql-api/auth/auth.resolver.js.map +1 -1
- package/dist/src/api/graphql-api/branch/branch.resolver.d.ts +72 -15
- package/dist/src/api/graphql-api/branch/branch.resolver.js +18 -23
- package/dist/src/api/graphql-api/branch/branch.resolver.js.map +1 -1
- package/dist/src/api/graphql-api/branch/inputs/get-branch-revisions.input.d.ts +3 -0
- package/dist/src/api/graphql-api/branch/inputs/get-branch-revisions.input.js +12 -0
- package/dist/src/api/graphql-api/branch/inputs/get-branch-revisions.input.js.map +1 -1
- package/dist/src/api/graphql-api/branch/parent-branch.resolver.d.ts +10 -4
- package/dist/src/api/graphql-api/branch/parent-branch.resolver.js +5 -6
- package/dist/src/api/graphql-api/branch/parent-branch.resolver.js.map +1 -1
- package/dist/src/api/graphql-api/configuration/configuration.resolver.d.ts +3 -3
- package/dist/src/api/graphql-api/configuration/configuration.resolver.js +5 -6
- package/dist/src/api/graphql-api/configuration/configuration.resolver.js.map +1 -1
- package/dist/src/api/graphql-api/draft/draft.resolver.d.ts +14 -13
- package/dist/src/api/graphql-api/draft/draft.resolver.js +31 -22
- package/dist/src/api/graphql-api/draft/draft.resolver.js.map +1 -1
- package/dist/src/api/graphql-api/draft/input/create-row.input.d.ts +1 -1
- package/dist/src/api/graphql-api/draft/input/create-row.input.js +1 -1
- package/dist/src/api/graphql-api/draft/input/create-row.input.js.map +1 -1
- package/dist/src/api/graphql-api/draft/input/create-table.input.d.ts +1 -1
- package/dist/src/api/graphql-api/draft/input/create-table.input.js +1 -1
- package/dist/src/api/graphql-api/draft/input/create-table.input.js.map +1 -1
- package/dist/src/api/graphql-api/draft/input/index.d.ts +1 -0
- package/dist/src/api/graphql-api/draft/input/index.js +1 -0
- package/dist/src/api/graphql-api/draft/input/index.js.map +1 -1
- package/dist/src/api/graphql-api/draft/input/remove-rows.input.d.ts +5 -0
- package/dist/src/api/graphql-api/draft/input/remove-rows.input.js +36 -0
- package/dist/src/api/graphql-api/draft/input/remove-rows.input.js.map +1 -0
- package/dist/src/api/graphql-api/draft/input/update-row.input.d.ts +1 -1
- package/dist/src/api/graphql-api/draft/input/update-row.input.js +1 -1
- package/dist/src/api/graphql-api/draft/input/update-row.input.js.map +1 -1
- package/dist/src/api/graphql-api/draft/model/remove-rows-result.model.d.ts +7 -0
- package/dist/src/api/graphql-api/draft/model/remove-rows-result.model.js +34 -0
- package/dist/src/api/graphql-api/draft/model/remove-rows-result.model.js.map +1 -0
- package/dist/src/api/graphql-api/endpoint/endpoint.resolver.d.ts +14 -7
- package/dist/src/api/graphql-api/endpoint/endpoint.resolver.js +21 -13
- package/dist/src/api/graphql-api/endpoint/endpoint.resolver.js.map +1 -1
- package/dist/src/api/graphql-api/endpoint/inputs/get-project-endpoints.input.d.ts +9 -0
- package/dist/src/api/graphql-api/endpoint/inputs/get-project-endpoints.input.js +45 -0
- package/dist/src/api/graphql-api/endpoint/inputs/get-project-endpoints.input.js.map +1 -0
- package/dist/src/api/graphql-api/endpoint/inputs/index.d.ts +1 -0
- package/dist/src/api/graphql-api/endpoint/inputs/index.js +1 -0
- package/dist/src/api/graphql-api/endpoint/inputs/index.js.map +1 -1
- package/dist/src/api/graphql-api/endpoint/model/endpoint.model.d.ts +1 -0
- package/dist/src/api/graphql-api/endpoint/model/endpoint.model.js +4 -0
- package/dist/src/api/graphql-api/endpoint/model/endpoint.model.js.map +1 -1
- package/dist/src/api/graphql-api/endpoint/model/endpoints-connection.model.d.ts +5 -0
- package/dist/src/api/graphql-api/endpoint/model/endpoints-connection.model.js +19 -0
- package/dist/src/api/graphql-api/endpoint/model/endpoints-connection.model.js.map +1 -0
- package/dist/src/api/graphql-api/endpoint/model/index.d.ts +1 -0
- package/dist/src/api/graphql-api/endpoint/model/index.js +1 -0
- package/dist/src/api/graphql-api/endpoint/model/index.js.map +1 -1
- package/dist/src/api/graphql-api/filters/graphql-validation-exception.filter.d.ts +6 -0
- package/dist/src/api/graphql-api/filters/graphql-validation-exception.filter.js +40 -0
- package/dist/src/api/graphql-api/filters/graphql-validation-exception.filter.js.map +1 -0
- package/dist/src/api/graphql-api/graphql-api.module.js +43 -3
- package/dist/src/api/graphql-api/graphql-api.module.js.map +1 -1
- package/dist/src/api/graphql-api/organization/model/organization.model.d.ts +6 -0
- package/dist/src/api/graphql-api/organization/model/organization.model.js +33 -0
- package/dist/src/api/graphql-api/organization/model/organization.model.js.map +1 -0
- package/dist/src/api/graphql-api/organization/model/users-organization.model.d.ts +1 -0
- package/dist/src/api/graphql-api/organization/model/users-organization.model.js.map +1 -1
- package/dist/src/api/graphql-api/organization/organization.resolver.d.ts +20 -8
- package/dist/src/api/graphql-api/organization/organization.resolver.js +34 -15
- package/dist/src/api/graphql-api/organization/organization.resolver.js.map +1 -1
- package/dist/src/api/graphql-api/organization/users-organization.resolver.d.ts +13 -0
- package/dist/src/api/graphql-api/organization/users-organization.resolver.js +39 -0
- package/dist/src/api/graphql-api/organization/users-organization.resolver.js.map +1 -0
- package/dist/src/api/graphql-api/permission/model/permission.model.d.ts +6 -0
- package/dist/src/api/graphql-api/permission/model/permission.model.js +37 -0
- package/dist/src/api/graphql-api/permission/model/permission.model.js.map +1 -0
- package/dist/src/api/graphql-api/project/inputs/index.d.ts +1 -0
- package/dist/src/api/graphql-api/project/inputs/index.js +1 -0
- package/dist/src/api/graphql-api/project/inputs/index.js.map +1 -1
- package/dist/src/api/graphql-api/project/inputs/update-user-project-role.input.d.ts +7 -0
- package/dist/src/api/graphql-api/project/inputs/update-user-project-role.input.js +37 -0
- package/dist/src/api/graphql-api/project/inputs/update-user-project-role.input.js.map +1 -0
- package/dist/src/api/graphql-api/project/model/project.model.d.ts +4 -0
- package/dist/src/api/graphql-api/project/model/project.model.js +10 -0
- package/dist/src/api/graphql-api/project/model/project.model.js.map +1 -1
- package/dist/src/api/graphql-api/project/model/users-project.model.d.ts +1 -0
- package/dist/src/api/graphql-api/project/model/users-project.model.js.map +1 -1
- package/dist/src/api/graphql-api/project/project.resolver.d.ts +32 -9
- package/dist/src/api/graphql-api/project/project.resolver.js +63 -16
- package/dist/src/api/graphql-api/project/project.resolver.js.map +1 -1
- package/dist/src/api/graphql-api/project/users-project.resolver.d.ts +13 -0
- package/dist/src/api/graphql-api/project/users-project.resolver.js +45 -0
- package/dist/src/api/graphql-api/project/users-project.resolver.js.map +1 -0
- package/dist/src/api/graphql-api/registerGraphqlEnums.js +1 -1
- package/dist/src/api/graphql-api/registerGraphqlEnums.js.map +1 -1
- package/dist/src/api/graphql-api/revision/child-branch.resolver.d.ts +10 -4
- package/dist/src/api/graphql-api/revision/child-branch.resolver.js +5 -6
- package/dist/src/api/graphql-api/revision/child-branch.resolver.js.map +1 -1
- package/dist/src/api/graphql-api/revision/model/revision.model.d.ts +4 -0
- package/dist/src/api/graphql-api/revision/model/revision.model.js +9 -0
- package/dist/src/api/graphql-api/revision/model/revision.model.js.map +1 -1
- package/dist/src/api/graphql-api/revision/revision.resolver.d.ts +32 -12
- package/dist/src/api/graphql-api/revision/revision.resolver.js +41 -22
- package/dist/src/api/graphql-api/revision/revision.resolver.js.map +1 -1
- package/dist/src/api/graphql-api/revision-changes/input/get-revision-changes.input.d.ts +5 -0
- package/dist/src/api/graphql-api/revision-changes/input/get-revision-changes.input.js +32 -0
- package/dist/src/api/graphql-api/revision-changes/input/get-revision-changes.input.js.map +1 -0
- package/dist/src/api/graphql-api/revision-changes/input/get-row-changes.input.d.ts +8 -0
- package/dist/src/api/graphql-api/revision-changes/input/get-row-changes.input.js +41 -0
- package/dist/src/api/graphql-api/revision-changes/input/get-row-changes.input.js.map +1 -0
- package/dist/src/api/graphql-api/revision-changes/input/get-table-changes.input.d.ts +8 -0
- package/dist/src/api/graphql-api/revision-changes/input/get-table-changes.input.js +41 -0
- package/dist/src/api/graphql-api/revision-changes/input/get-table-changes.input.js.map +1 -0
- package/dist/src/api/graphql-api/revision-changes/input/index.d.ts +5 -0
- package/dist/src/api/graphql-api/revision-changes/input/index.js +22 -0
- package/dist/src/api/graphql-api/revision-changes/input/index.js.map +1 -0
- package/dist/src/api/graphql-api/revision-changes/input/row-changes-filters.input.d.ts +7 -0
- package/dist/src/api/graphql-api/revision-changes/input/row-changes-filters.input.js +37 -0
- package/dist/src/api/graphql-api/revision-changes/input/row-changes-filters.input.js.map +1 -0
- package/dist/src/api/graphql-api/revision-changes/input/table-changes-filters.input.d.ts +7 -0
- package/dist/src/api/graphql-api/revision-changes/input/table-changes-filters.input.js +37 -0
- package/dist/src/api/graphql-api/revision-changes/input/table-changes-filters.input.js.map +1 -0
- package/dist/src/api/graphql-api/revision-changes/model/enums.model.d.ts +26 -0
- package/dist/src/api/graphql-api/revision-changes/model/enums.model.js +39 -0
- package/dist/src/api/graphql-api/revision-changes/model/enums.model.js.map +1 -0
- package/dist/src/api/graphql-api/revision-changes/model/field-change.model.d.ts +12 -0
- package/dist/src/api/graphql-api/revision-changes/model/field-change.model.js +56 -0
- package/dist/src/api/graphql-api/revision-changes/model/field-change.model.js.map +1 -0
- package/dist/src/api/graphql-api/revision-changes/model/index.d.ts +7 -0
- package/dist/src/api/graphql-api/revision-changes/model/index.js +24 -0
- package/dist/src/api/graphql-api/revision-changes/model/index.js.map +1 -0
- package/dist/src/api/graphql-api/revision-changes/model/revision-changes.model.d.ts +14 -0
- package/dist/src/api/graphql-api/revision-changes/model/revision-changes.model.js +66 -0
- package/dist/src/api/graphql-api/revision-changes/model/revision-changes.model.js.map +1 -0
- package/dist/src/api/graphql-api/revision-changes/model/row-change.model.d.ts +56 -0
- package/dist/src/api/graphql-api/revision-changes/model/row-change.model.js +227 -0
- package/dist/src/api/graphql-api/revision-changes/model/row-change.model.js.map +1 -0
- package/dist/src/api/graphql-api/revision-changes/model/schema-change.model.d.ts +34 -0
- package/dist/src/api/graphql-api/revision-changes/model/schema-change.model.js +138 -0
- package/dist/src/api/graphql-api/revision-changes/model/schema-change.model.js.map +1 -0
- package/dist/src/api/graphql-api/revision-changes/model/table-change.model.d.ts +23 -0
- package/dist/src/api/graphql-api/revision-changes/model/table-change.model.js +86 -0
- package/dist/src/api/graphql-api/revision-changes/model/table-change.model.js.map +1 -0
- package/dist/src/api/graphql-api/revision-changes/model/views-change.model.d.ts +15 -0
- package/dist/src/api/graphql-api/revision-changes/model/views-change.model.js +67 -0
- package/dist/src/api/graphql-api/revision-changes/model/views-change.model.js.map +1 -0
- package/dist/src/api/graphql-api/revision-changes/revision-changes.resolver.d.ts +10 -0
- package/dist/src/api/graphql-api/revision-changes/revision-changes.resolver.js +88 -0
- package/dist/src/api/graphql-api/revision-changes/revision-changes.resolver.js.map +1 -0
- package/dist/src/api/graphql-api/role/model/role.model.d.ts +2 -0
- package/dist/src/api/graphql-api/role/model/role.model.js +5 -0
- package/dist/src/api/graphql-api/role/model/role.model.js.map +1 -1
- package/dist/src/api/graphql-api/role/role.resolver.d.ts +7 -0
- package/dist/src/api/graphql-api/role/role.resolver.js +39 -0
- package/dist/src/api/graphql-api/role/role.resolver.js.map +1 -0
- package/dist/src/api/graphql-api/row/inputs/get-rows.input.d.ts +2 -1
- package/dist/src/api/graphql-api/row/inputs/get-rows.input.js +2 -1
- package/dist/src/api/graphql-api/row/inputs/get-rows.input.js.map +1 -1
- package/dist/src/api/graphql-api/row/inputs/search-rows.input.d.ts +6 -0
- package/dist/src/api/graphql-api/row/inputs/search-rows.input.js +36 -0
- package/dist/src/api/graphql-api/row/inputs/search-rows.input.js.map +1 -0
- package/dist/src/api/graphql-api/row/model/row.model.d.ts +1 -1
- package/dist/src/api/graphql-api/row/model/row.model.js +1 -1
- package/dist/src/api/graphql-api/row/model/row.model.js.map +1 -1
- package/dist/src/api/graphql-api/row/model/search-result.model.d.ts +12 -0
- package/dist/src/api/graphql-api/row/model/search-result.model.js +53 -0
- package/dist/src/api/graphql-api/row/model/search-result.model.js.map +1 -0
- package/dist/src/api/graphql-api/row/model/search-results-connection.model.d.ts +5 -0
- package/dist/src/api/graphql-api/row/model/search-results-connection.model.js +19 -0
- package/dist/src/api/graphql-api/row/model/search-results-connection.model.js.map +1 -0
- package/dist/src/api/graphql-api/row/resolver/search-rows.resolver.d.ts +7 -0
- package/dist/src/api/graphql-api/row/resolver/search-rows.resolver.js +55 -0
- package/dist/src/api/graphql-api/row/resolver/search-rows.resolver.js.map +1 -0
- package/dist/src/api/graphql-api/table/model/table.model.d.ts +3 -1
- package/dist/src/api/graphql-api/table/model/table.model.js +6 -1
- package/dist/src/api/graphql-api/table/model/table.model.js.map +1 -1
- package/dist/src/api/graphql-api/table/table.resolver.d.ts +22 -12
- package/dist/src/api/graphql-api/table/table.resolver.js +40 -24
- package/dist/src/api/graphql-api/table/table.resolver.js.map +1 -1
- package/dist/src/api/graphql-api/user/inputs/index.d.ts +1 -0
- package/dist/src/api/graphql-api/user/inputs/index.js +1 -0
- package/dist/src/api/graphql-api/user/inputs/index.js.map +1 -1
- package/dist/src/api/graphql-api/user/inputs/search-users.input.d.ts +5 -0
- package/dist/src/api/graphql-api/user/inputs/search-users.input.js +32 -0
- package/dist/src/api/graphql-api/user/inputs/search-users.input.js.map +1 -0
- package/dist/src/api/graphql-api/user/model/user.model.d.ts +3 -0
- package/dist/src/api/graphql-api/user/model/user.model.js +5 -0
- package/dist/src/api/graphql-api/user/model/user.model.js.map +1 -1
- package/dist/src/api/graphql-api/user/model/users.connection.d.ts +5 -0
- package/dist/src/api/graphql-api/user/model/users.connection.js +19 -0
- package/dist/src/api/graphql-api/user/model/users.connection.js.map +1 -0
- package/dist/src/api/graphql-api/user/user.resolver.d.ts +17 -9
- package/dist/src/api/graphql-api/user/user.resolver.js +43 -16
- package/dist/src/api/graphql-api/user/user.resolver.js.map +1 -1
- package/dist/src/api/graphql-api/views/input/get-table-views.input.d.ts +4 -0
- package/dist/src/api/graphql-api/views/input/get-table-views.input.js +28 -0
- package/dist/src/api/graphql-api/views/input/get-table-views.input.js.map +1 -0
- package/dist/src/api/graphql-api/views/input/index.d.ts +2 -0
- package/dist/src/api/graphql-api/views/input/index.js +19 -0
- package/dist/src/api/graphql-api/views/input/index.js.map +1 -0
- package/dist/src/api/graphql-api/views/input/update-table-views.input.d.ts +28 -0
- package/dist/src/api/graphql-api/views/input/update-table-views.input.js +114 -0
- package/dist/src/api/graphql-api/views/input/update-table-views.input.js.map +1 -0
- package/dist/src/api/graphql-api/views/model/index.d.ts +4 -0
- package/dist/src/api/graphql-api/views/model/index.js +21 -0
- package/dist/src/api/graphql-api/views/model/index.js.map +1 -0
- package/dist/src/api/graphql-api/views/model/table-views-data.model.d.ts +6 -0
- package/dist/src/api/graphql-api/views/model/table-views-data.model.js +33 -0
- package/dist/src/api/graphql-api/views/model/table-views-data.model.js.map +1 -0
- package/dist/src/api/graphql-api/views/model/view-column.model.d.ts +4 -0
- package/dist/src/api/graphql-api/views/model/view-column.model.js +28 -0
- package/dist/src/api/graphql-api/views/model/view-column.model.js.map +1 -0
- package/dist/src/api/graphql-api/views/model/view-sort.model.d.ts +4 -0
- package/dist/src/api/graphql-api/views/model/view-sort.model.js +28 -0
- package/dist/src/api/graphql-api/views/model/view-sort.model.js.map +1 -0
- package/dist/src/api/graphql-api/views/model/view.model.d.ts +11 -0
- package/dist/src/api/graphql-api/views/model/view.model.js +51 -0
- package/dist/src/api/graphql-api/views/model/view.model.js.map +1 -0
- package/dist/src/api/graphql-api/views/views.resolver.d.ts +10 -0
- package/dist/src/api/graphql-api/views/views.resolver.js +77 -0
- package/dist/src/api/graphql-api/views/views.resolver.js.map +1 -0
- package/dist/src/api/mcp-api/mcp-server.service.d.ts +55 -0
- package/dist/src/api/mcp-api/mcp-server.service.js +202 -0
- package/dist/src/api/mcp-api/mcp-server.service.js.map +1 -0
- package/dist/src/api/mcp-api/mcp-session.service.d.ts +19 -0
- package/dist/src/api/mcp-api/mcp-session.service.js +57 -0
- package/dist/src/api/mcp-api/mcp-session.service.js.map +1 -0
- package/dist/src/api/mcp-api/mcp.controller.d.ts +10 -0
- package/dist/src/api/mcp-api/mcp.controller.js +130 -0
- package/dist/src/api/mcp-api/mcp.controller.js.map +1 -0
- package/dist/src/api/mcp-api/mcp.module.d.ts +2 -0
- package/dist/src/api/mcp-api/mcp.module.js +51 -0
- package/dist/src/api/mcp-api/mcp.module.js.map +1 -0
- package/dist/src/api/mcp-api/resources/file.resource.d.ts +8 -0
- package/dist/src/api/mcp-api/resources/file.resource.js +561 -0
- package/dist/src/api/mcp-api/resources/file.resource.js.map +1 -0
- package/dist/src/api/mcp-api/resources/index.d.ts +4 -0
- package/dist/src/api/mcp-api/resources/index.js +12 -0
- package/dist/src/api/mcp-api/resources/index.js.map +1 -0
- package/dist/src/api/mcp-api/resources/migration.resource.d.ts +6 -0
- package/dist/src/api/mcp-api/resources/migration.resource.js +165 -0
- package/dist/src/api/mcp-api/resources/migration.resource.js.map +1 -0
- package/dist/src/api/mcp-api/resources/query.resource.d.ts +6 -0
- package/dist/src/api/mcp-api/resources/query.resource.js +739 -0
- package/dist/src/api/mcp-api/resources/query.resource.js.map +1 -0
- package/dist/src/api/mcp-api/resources/schema.resource.d.ts +8 -0
- package/dist/src/api/mcp-api/resources/schema.resource.js +547 -0
- package/dist/src/api/mcp-api/resources/schema.resource.js.map +1 -0
- package/dist/src/api/mcp-api/tools/auth.tools.d.ts +12 -0
- package/dist/src/api/mcp-api/tools/auth.tools.js +182 -0
- package/dist/src/api/mcp-api/tools/auth.tools.js.map +1 -0
- package/dist/src/api/mcp-api/tools/branch.tools.d.ts +8 -0
- package/dist/src/api/mcp-api/tools/branch.tools.js +108 -0
- package/dist/src/api/mcp-api/tools/branch.tools.js.map +1 -0
- package/dist/src/api/mcp-api/tools/endpoint.tools.d.ts +14 -0
- package/dist/src/api/mcp-api/tools/endpoint.tools.js +354 -0
- package/dist/src/api/mcp-api/tools/endpoint.tools.js.map +1 -0
- package/dist/src/api/mcp-api/tools/file.tools.d.ts +8 -0
- package/dist/src/api/mcp-api/tools/file.tools.js +75 -0
- package/dist/src/api/mcp-api/tools/file.tools.js.map +1 -0
- package/dist/src/api/mcp-api/tools/index.d.ts +12 -0
- package/dist/src/api/mcp-api/tools/index.js +28 -0
- package/dist/src/api/mcp-api/tools/index.js.map +1 -0
- package/dist/src/api/mcp-api/tools/migration.tools.d.ts +10 -0
- package/dist/src/api/mcp-api/tools/migration.tools.js +67 -0
- package/dist/src/api/mcp-api/tools/migration.tools.js.map +1 -0
- package/dist/src/api/mcp-api/tools/organization.tools.d.ts +8 -0
- package/dist/src/api/mcp-api/tools/organization.tools.js +65 -0
- package/dist/src/api/mcp-api/tools/organization.tools.js.map +1 -0
- package/dist/src/api/mcp-api/tools/project.tools.d.ts +10 -0
- package/dist/src/api/mcp-api/tools/project.tools.js +121 -0
- package/dist/src/api/mcp-api/tools/project.tools.js.map +1 -0
- package/dist/src/api/mcp-api/tools/revision-changes.tools.d.ts +8 -0
- package/dist/src/api/mcp-api/tools/revision-changes.tools.js +114 -0
- package/dist/src/api/mcp-api/tools/revision-changes.tools.js.map +1 -0
- package/dist/src/api/mcp-api/tools/revision.tools.d.ts +10 -0
- package/dist/src/api/mcp-api/tools/revision.tools.js +65 -0
- package/dist/src/api/mcp-api/tools/revision.tools.js.map +1 -0
- package/dist/src/api/mcp-api/tools/row.tools.d.ts +10 -0
- package/dist/src/api/mcp-api/tools/row.tools.js +189 -0
- package/dist/src/api/mcp-api/tools/row.tools.js.map +1 -0
- package/dist/src/api/mcp-api/tools/table.tools.d.ts +10 -0
- package/dist/src/api/mcp-api/tools/table.tools.js +201 -0
- package/dist/src/api/mcp-api/tools/table.tools.js.map +1 -0
- package/dist/src/api/mcp-api/tools/user.tools.d.ts +8 -0
- package/dist/src/api/mcp-api/tools/user.tools.js +50 -0
- package/dist/src/api/mcp-api/tools/user.tools.js.map +1 -0
- package/dist/src/api/mcp-api/types.d.ts +25 -0
- package/dist/src/api/mcp-api/types.js +3 -0
- package/dist/src/api/mcp-api/types.js.map +1 -0
- package/dist/src/api/rest-api/auth/auth.controller.d.ts +7 -5
- package/dist/src/api/rest-api/auth/auth.controller.js +13 -9
- package/dist/src/api/rest-api/auth/auth.controller.js.map +1 -1
- package/dist/src/api/rest-api/auth/dto/update-password.dto.js +8 -2
- package/dist/src/api/rest-api/auth/dto/update-password.dto.js.map +1 -1
- package/dist/src/api/rest-api/branch/branch-by-name.controller.d.ts +13 -5
- package/dist/src/api/rest-api/branch/branch-by-name.controller.js +20 -24
- package/dist/src/api/rest-api/branch/branch-by-name.controller.js.map +1 -1
- package/dist/src/api/rest-api/branch/dto/get-branch-revisions.dto.d.ts +3 -0
- package/dist/src/api/rest-api/branch/dto/get-branch-revisions.dto.js +18 -0
- package/dist/src/api/rest-api/branch/dto/get-branch-revisions.dto.js.map +1 -1
- package/dist/src/api/rest-api/configuration/configuration.controller.d.ts +3 -3
- package/dist/src/api/rest-api/configuration/configuration.controller.js +5 -6
- package/dist/src/api/rest-api/configuration/configuration.controller.js.map +1 -1
- package/dist/src/api/rest-api/endpoint/endpoint-by-id.controller.d.ts +1 -3
- package/dist/src/api/rest-api/endpoint/endpoint-by-id.controller.js +3 -7
- package/dist/src/api/rest-api/endpoint/endpoint-by-id.controller.js.map +1 -1
- package/dist/src/api/rest-api/endpoint/model/endpoint.model.d.ts +1 -1
- package/dist/src/api/rest-api/endpoint/model/endpoint.model.js +1 -1
- package/dist/src/api/rest-api/endpoint/model/endpoint.model.js.map +1 -1
- package/dist/src/api/rest-api/init-swagger.js +34 -1
- package/dist/src/api/rest-api/init-swagger.js.map +1 -1
- package/dist/src/api/rest-api/organization/organization.controller.d.ts +6 -5
- package/dist/src/api/rest-api/organization/organization.controller.js +29 -21
- package/dist/src/api/rest-api/organization/organization.controller.js.map +1 -1
- package/dist/src/api/rest-api/project/project.controller.d.ts +13 -7
- package/dist/src/api/rest-api/project/project.controller.js +36 -22
- package/dist/src/api/rest-api/project/project.controller.js.map +1 -1
- package/dist/src/api/rest-api/rest-api.module.js +12 -2
- package/dist/src/api/rest-api/rest-api.module.js.map +1 -1
- package/dist/src/api/rest-api/revision/dto/create-endpoint.dto.d.ts +1 -1
- package/dist/src/api/rest-api/revision/dto/create-endpoint.dto.js +1 -1
- package/dist/src/api/rest-api/revision/dto/create-endpoint.dto.js.map +1 -1
- package/dist/src/api/rest-api/revision/dto/create-table.dto.d.ts +1 -1
- package/dist/src/api/rest-api/revision/dto/create-table.dto.js +1 -1
- package/dist/src/api/rest-api/revision/dto/create-table.dto.js.map +1 -1
- package/dist/src/api/rest-api/revision/revision-by-id.controller.d.ts +9 -8
- package/dist/src/api/rest-api/revision/revision-by-id.controller.js +25 -29
- package/dist/src/api/rest-api/revision/revision-by-id.controller.js.map +1 -1
- package/dist/src/api/rest-api/row/dto/patch-row.dto.js +21 -3
- package/dist/src/api/rest-api/row/dto/patch-row.dto.js.map +1 -1
- package/dist/src/api/rest-api/row/dto/update-row.dto.d.ts +1 -1
- package/dist/src/api/rest-api/row/dto/update-row.dto.js +1 -1
- package/dist/src/api/rest-api/row/dto/update-row.dto.js.map +1 -1
- package/dist/src/api/rest-api/row/model/row.model.d.ts +1 -1
- package/dist/src/api/rest-api/row/model/row.model.js +1 -1
- package/dist/src/api/rest-api/row/model/row.model.js.map +1 -1
- package/dist/src/api/rest-api/row/row-by-id.controller.d.ts +3 -3
- package/dist/src/api/rest-api/row/row-by-id.controller.js +17 -18
- package/dist/src/api/rest-api/row/row-by-id.controller.js.map +1 -1
- package/dist/src/api/rest-api/share/utils/transformFromPrismaToBranchModel.d.ts +1 -1
- package/dist/src/api/rest-api/share/utils/transformFromPrismaToEndpointsModel.d.ts +1 -1
- package/dist/src/api/rest-api/share/utils/transformFromPrismaToRevisionModel.d.ts +3 -2
- package/dist/src/api/rest-api/share/utils/transformFromPrismaToRevisionModel.js +8 -5
- package/dist/src/api/rest-api/share/utils/transformFromPrismaToRevisionModel.js.map +1 -1
- package/dist/src/api/rest-api/share/utils/transformFromPrismaToRowModel.d.ts +1 -1
- package/dist/src/api/rest-api/share/utils/transformFromPrismaToTableModel.d.ts +1 -1
- package/dist/src/api/rest-api/table/dto/create-row.dto.d.ts +1 -1
- package/dist/src/api/rest-api/table/dto/create-row.dto.js +1 -1
- package/dist/src/api/rest-api/table/dto/create-row.dto.js.map +1 -1
- package/dist/src/api/rest-api/table/dto/index.d.ts +1 -0
- package/dist/src/api/rest-api/table/dto/index.js +1 -0
- package/dist/src/api/rest-api/table/dto/index.js.map +1 -1
- package/dist/src/api/rest-api/table/dto/remove-rows.dto.d.ts +3 -0
- package/dist/src/api/rest-api/table/dto/remove-rows.dto.js +25 -0
- package/dist/src/api/rest-api/table/dto/remove-rows.dto.js.map +1 -0
- package/dist/src/api/rest-api/table/model/index.d.ts +1 -0
- package/dist/src/api/rest-api/table/model/index.js +1 -0
- package/dist/src/api/rest-api/table/model/index.js.map +1 -1
- package/dist/src/api/rest-api/table/model/remove-rows.response.d.ts +7 -0
- package/dist/src/api/rest-api/table/model/remove-rows.response.js +31 -0
- package/dist/src/api/rest-api/table/model/remove-rows.response.js.map +1 -0
- package/dist/src/api/rest-api/table/table-by-id.controller.d.ts +12 -10
- package/dist/src/api/rest-api/table/table-by-id.controller.js +73 -27
- package/dist/src/api/rest-api/table/table-by-id.controller.js.map +1 -1
- package/dist/src/api/rest-api/user/user.controller.d.ts +4 -5
- package/dist/src/api/rest-api/user/user.controller.js +5 -6
- package/dist/src/api/rest-api/user/user.controller.js.map +1 -1
- package/dist/src/core/core.module.js +4 -0
- package/dist/src/core/core.module.js.map +1 -1
- package/dist/src/features/auth/auth.module.js +7 -1
- package/dist/src/features/auth/auth.module.js.map +1 -1
- package/dist/src/features/auth/auth.service.js +35 -2
- package/dist/src/features/auth/auth.service.js.map +1 -1
- package/dist/src/features/auth/commands/auth-api.service.d.ts +7 -1
- package/dist/src/features/auth/commands/auth-api.service.js +18 -0
- package/dist/src/features/auth/commands/auth-api.service.js.map +1 -1
- package/dist/src/features/auth/commands/handlers/check-project-permission.handler.d.ts +1 -0
- package/dist/src/features/auth/commands/handlers/check-project-permission.handler.js +8 -0
- package/dist/src/features/auth/commands/handlers/check-project-permission.handler.js.map +1 -1
- package/dist/src/features/auth/commands/impl/check-project-permission.command.d.ts +4 -0
- package/dist/src/features/auth/commands/impl/check-project-permission.command.js.map +1 -1
- package/dist/src/features/auth/commands/impl/confirm-email-code.command.d.ts +1 -0
- package/dist/src/features/auth/commands/impl/create-user.command.d.ts +1 -0
- package/dist/src/features/auth/commands/impl/login-github.command.d.ts +1 -0
- package/dist/src/features/auth/commands/impl/login-google.command.d.ts +1 -0
- package/dist/src/features/auth/commands/impl/login.command.d.ts +1 -0
- package/dist/src/features/auth/commands/impl/sign-up.command.d.ts +1 -0
- package/dist/src/features/auth/guards/base-persmission.guard.d.ts +1 -3
- package/dist/src/features/auth/guards/base-persmission.guard.js +1 -4
- package/dist/src/features/auth/guards/base-persmission.guard.js.map +1 -1
- package/dist/src/features/auth/guards/project.guard.d.ts +14 -0
- package/dist/src/features/auth/guards/project.guard.js +7 -0
- package/dist/src/features/auth/guards/project.guard.js.map +1 -1
- package/dist/src/features/branch/branch-api.service.d.ts +85 -0
- package/dist/src/features/branch/branch-api.service.js +66 -0
- package/dist/src/features/branch/branch-api.service.js.map +1 -0
- package/dist/src/features/branch/branch.module.js +7 -1
- package/dist/src/features/branch/branch.module.js.map +1 -1
- package/dist/src/features/branch/commands/handlers/create-branch-by-revision-id.handler.d.ts +4 -2
- package/dist/src/features/branch/commands/handlers/create-branch-by-revision-id.handler.js +1 -1
- package/dist/src/features/branch/commands/handlers/create-branch-by-revision-id.handler.js.map +1 -1
- package/dist/src/features/branch/commands/impl/api-create-branch-by-revision-id.command.d.ts +1 -0
- package/dist/src/features/branch/quieries/handlers/get-branch-by-id.handler.d.ts +6 -4
- package/dist/src/features/branch/quieries/handlers/get-branch.handler.js +1 -1
- package/dist/src/features/branch/quieries/handlers/get-branch.handler.js.map +1 -1
- package/dist/src/features/branch/quieries/handlers/get-branches.handler.js +1 -1
- package/dist/src/features/branch/quieries/handlers/get-branches.handler.js.map +1 -1
- package/dist/src/features/branch/quieries/handlers/get-project-by-branch.handler.d.ts +5 -3
- package/dist/src/features/branch/quieries/handlers/get-revisions-by-branch-id.handler.js +10 -5
- package/dist/src/features/branch/quieries/handlers/get-revisions-by-branch-id.handler.js.map +1 -1
- package/dist/src/features/branch/quieries/handlers/get-touched-by-branch-id.handler.js +1 -1
- package/dist/src/features/branch/quieries/handlers/get-touched-by-branch-id.handler.js.map +1 -1
- package/dist/src/features/branch/quieries/impl/get-branch-by-id.query.d.ts +3 -0
- package/dist/src/features/branch/quieries/impl/get-branch-by-id.query.js.map +1 -1
- package/dist/src/features/branch/quieries/impl/get-branch.query.d.ts +1 -0
- package/dist/src/features/branch/quieries/impl/get-branches.query.d.ts +1 -1
- package/dist/src/features/branch/quieries/impl/get-revisions-by-branch-id.query.d.ts +8 -0
- package/dist/src/features/branch/quieries/impl/get-revisions-by-branch-id.query.js.map +1 -1
- package/dist/src/features/branch/quieries/impl/resolve-parent-branch-by-branch.query.d.ts +1 -0
- package/dist/src/features/branch/quieries/types/get-branch-by-id.types.d.ts +1 -1
- package/dist/src/features/branch/quieries/types/get-branch.types.d.ts +1 -1
- package/dist/src/features/branch/quieries/types/get-draft-revision.types.d.ts +1 -1
- package/dist/src/features/branch/quieries/types/get-head-revision.types.d.ts +1 -1
- package/dist/src/features/branch/quieries/types/get-start-revision.types.d.ts +1 -1
- package/dist/src/features/draft/commands/handlers/__tests__/utils.d.ts +2 -0
- package/dist/src/features/draft/commands/handlers/__tests__/utils.js +13 -0
- package/dist/src/features/draft/commands/handlers/__tests__/utils.js.map +1 -1
- package/dist/src/features/draft/commands/handlers/api-create-revision.handler.js +1 -1
- package/dist/src/features/draft/commands/handlers/api-create-revision.handler.js.map +1 -1
- package/dist/src/features/draft/commands/handlers/api-create-row.handler.js +1 -1
- package/dist/src/features/draft/commands/handlers/api-create-row.handler.js.map +1 -1
- package/dist/src/features/draft/commands/handlers/api-create-table.handler.js +1 -1
- package/dist/src/features/draft/commands/handlers/api-create-table.handler.js.map +1 -1
- package/dist/src/features/draft/commands/handlers/api-patch-row.handler.js +1 -1
- package/dist/src/features/draft/commands/handlers/api-patch-row.handler.js.map +1 -1
- package/dist/src/features/draft/commands/handlers/api-remove-row.handler.js +3 -2
- package/dist/src/features/draft/commands/handlers/api-remove-row.handler.js.map +1 -1
- package/dist/src/features/draft/commands/handlers/api-remove-rows.handler.d.ts +13 -0
- package/dist/src/features/draft/commands/handlers/api-remove-rows.handler.js +59 -0
- package/dist/src/features/draft/commands/handlers/api-remove-rows.handler.js.map +1 -0
- package/dist/src/features/draft/commands/handlers/api-remove-table.handler.js +1 -1
- package/dist/src/features/draft/commands/handlers/api-remove-table.handler.js.map +1 -1
- package/dist/src/features/draft/commands/handlers/api-rename-row.handler.js +1 -1
- package/dist/src/features/draft/commands/handlers/api-rename-row.handler.js.map +1 -1
- package/dist/src/features/draft/commands/handlers/api-rename-table.handler.js +1 -1
- package/dist/src/features/draft/commands/handlers/api-rename-table.handler.js.map +1 -1
- package/dist/src/features/draft/commands/handlers/api-revert-changes.handler.js +1 -1
- package/dist/src/features/draft/commands/handlers/api-revert-changes.handler.js.map +1 -1
- package/dist/src/features/draft/commands/handlers/api-update-row.handler.js +1 -1
- package/dist/src/features/draft/commands/handlers/api-update-row.handler.js.map +1 -1
- package/dist/src/features/draft/commands/handlers/api-update-table.handler.js +1 -1
- package/dist/src/features/draft/commands/handlers/api-update-table.handler.js.map +1 -1
- package/dist/src/features/draft/commands/handlers/api-upload-file.handler.js +1 -1
- package/dist/src/features/draft/commands/handlers/api-upload-file.handler.js.map +1 -1
- package/dist/src/features/draft/commands/handlers/create-row.handler.js.map +1 -1
- package/dist/src/features/draft/commands/handlers/create-table.handler.d.ts +4 -1
- package/dist/src/features/draft/commands/handlers/create-table.handler.js +21 -2
- package/dist/src/features/draft/commands/handlers/create-table.handler.js.map +1 -1
- package/dist/src/features/draft/commands/handlers/index.d.ts +3 -2
- package/dist/src/features/draft/commands/handlers/index.js +4 -2
- package/dist/src/features/draft/commands/handlers/index.js.map +1 -1
- package/dist/src/features/draft/commands/handlers/migration/base-migration.handler.d.ts +1 -1
- package/dist/src/features/draft/commands/handlers/patch-row.handler.js +11 -1
- package/dist/src/features/draft/commands/handlers/patch-row.handler.js.map +1 -1
- package/dist/src/features/draft/commands/handlers/{remove-row.handler.d.ts → remove-rows.handler.d.ts} +7 -9
- package/dist/src/features/draft/commands/handlers/{remove-row.handler.js → remove-rows.handler.js} +30 -29
- package/dist/src/features/draft/commands/handlers/remove-rows.handler.js.map +1 -0
- package/dist/src/features/draft/commands/handlers/remove-table.handler.d.ts +1 -0
- package/dist/src/features/draft/commands/handlers/remove-table.handler.js +16 -3
- package/dist/src/features/draft/commands/handlers/remove-table.handler.js.map +1 -1
- package/dist/src/features/draft/commands/handlers/transactional/rename-schema.handler.d.ts +1 -0
- package/dist/src/features/draft/commands/handlers/transactional/rename-schema.handler.js +13 -0
- package/dist/src/features/draft/commands/handlers/transactional/rename-schema.handler.js.map +1 -1
- package/dist/src/features/draft/commands/handlers/transactional/validate-data.handler.d.ts +16 -5
- package/dist/src/features/draft/commands/handlers/transactional/validate-data.handler.js +142 -21
- package/dist/src/features/draft/commands/handlers/transactional/validate-data.handler.js.map +1 -1
- package/dist/src/features/draft/commands/handlers/update-table.handler.d.ts +5 -1
- package/dist/src/features/draft/commands/handlers/update-table.handler.js +61 -3
- package/dist/src/features/draft/commands/handlers/update-table.handler.js.map +1 -1
- package/dist/src/features/draft/commands/impl/api-create-revision.command.d.ts +1 -0
- package/dist/src/features/draft/commands/impl/api-create-row.command.d.ts +2 -1
- package/dist/src/features/draft/commands/impl/api-create-table.command.d.ts +1 -1
- package/dist/src/features/draft/commands/impl/api-remove-row.command.d.ts +1 -0
- package/dist/src/features/draft/commands/impl/api-remove-rows.command.d.ts +13 -0
- package/dist/src/features/draft/commands/impl/api-remove-rows.command.js +10 -0
- package/dist/src/features/draft/commands/impl/api-remove-rows.command.js.map +1 -0
- package/dist/src/features/draft/commands/impl/api-rename-row.command.d.ts +1 -0
- package/dist/src/features/draft/commands/impl/api-revert-changes.command.d.ts +1 -0
- package/dist/src/features/draft/commands/impl/api-update-row.command.d.ts +2 -1
- package/dist/src/features/draft/commands/impl/create-row.command.d.ts +1 -1
- package/dist/src/features/draft/commands/impl/create-table.command.d.ts +1 -1
- package/dist/src/features/draft/commands/impl/{remove-row.command.d.ts → remove-rows.command.d.ts} +4 -4
- package/dist/src/features/draft/commands/impl/remove-rows.command.js +10 -0
- package/dist/src/features/draft/commands/impl/remove-rows.command.js.map +1 -0
- package/dist/src/features/draft/commands/impl/transactional/internal-create-row.command.d.ts +1 -1
- package/dist/src/features/draft/commands/impl/transactional/internal-update-row.command.d.ts +1 -1
- package/dist/src/features/draft/commands/impl/transactional/internal-update-rows.command.d.ts +1 -1
- package/dist/src/features/draft/commands/impl/transactional/validate-data.command.d.ts +1 -1
- package/dist/src/features/draft/commands/impl/transactional/validate-schema.command.d.ts +1 -1
- package/dist/src/features/draft/commands/impl/update-row.command.d.ts +1 -1
- package/dist/src/features/draft/commands/types/api-create-table.handler.types.d.ts +1 -1
- package/dist/src/features/draft/commands/types/api-remove-rows.handler.types.d.ts +7 -0
- package/dist/src/features/draft/commands/types/api-remove-rows.handler.types.js +3 -0
- package/dist/src/features/draft/commands/types/api-remove-rows.handler.types.js.map +1 -0
- package/dist/src/features/draft/commands/types/{remove-row.handler.types.d.ts → remove-rows.handler.types.d.ts} +1 -1
- package/dist/src/features/draft/commands/types/remove-rows.handler.types.js +3 -0
- package/dist/src/features/draft/commands/types/remove-rows.handler.types.js.map +1 -0
- package/dist/src/features/draft/draft-api.service.d.ts +31 -0
- package/dist/src/features/draft/draft-api.service.js +32 -0
- package/dist/src/features/draft/draft-api.service.js.map +1 -1
- package/dist/src/features/draft/draft.handler.d.ts +1 -1
- package/dist/src/features/draft/draft.module.js +1 -1
- package/dist/src/features/draft/draft.module.js.map +1 -1
- package/dist/src/features/draft/draft.transactional.commands.d.ts +1 -1
- package/dist/src/features/endpoint/commands/impl/api-create-endpoint.command.d.ts +3 -1
- package/dist/src/features/endpoint/commands/impl/create-endpoint.command.d.ts +1 -1
- package/dist/src/features/endpoint/commands/impl/delete-endpoint.command.d.ts +1 -0
- package/dist/src/features/endpoint/queries/endpoint-api.service.d.ts +16 -3
- package/dist/src/features/endpoint/queries/endpoint-api.service.js +19 -4
- package/dist/src/features/endpoint/queries/endpoint-api.service.js.map +1 -1
- package/dist/src/features/endpoint/queries/handlers/get-created-endpoint.handler.d.ts +5 -3
- package/dist/src/features/endpoint/queries/handlers/get-endpoint-relatives.handler.d.ts +4 -4
- package/dist/src/features/endpoint/queries/handlers/get-project-endpoints.handler.d.ts +12 -0
- package/dist/src/features/endpoint/queries/handlers/get-project-endpoints.handler.js +77 -0
- package/dist/src/features/endpoint/queries/handlers/get-project-endpoints.handler.js.map +1 -0
- package/dist/src/features/endpoint/queries/handlers/get-revision-by-endpoint-id.handler.d.ts +4 -2
- package/dist/src/features/endpoint/queries/handlers/index.d.ts +2 -1
- package/dist/src/features/endpoint/queries/handlers/index.js +2 -0
- package/dist/src/features/endpoint/queries/handlers/index.js.map +1 -1
- package/dist/src/features/endpoint/queries/impl/get-endpoint-relatives.query.d.ts +1 -1
- package/dist/src/features/endpoint/queries/impl/get-project-endpoints.query.d.ts +20 -0
- package/dist/src/features/endpoint/queries/impl/get-project-endpoints.query.js +10 -0
- package/dist/src/features/endpoint/queries/impl/get-project-endpoints.query.js.map +1 -0
- package/dist/src/features/endpoint/queries/impl/index.d.ts +1 -0
- package/dist/src/features/endpoint/queries/impl/index.js +1 -0
- package/dist/src/features/endpoint/queries/impl/index.js.map +1 -1
- package/dist/src/features/organization/commands/impl/add-user-to-organization.command.d.ts +1 -0
- package/dist/src/features/organization/commands/impl/remove-user-from-organization.command.d.ts +1 -0
- package/dist/src/features/organization/organization-api.service.d.ts +16 -0
- package/dist/src/features/organization/organization-api.service.js +44 -0
- package/dist/src/features/organization/organization-api.service.js.map +1 -0
- package/dist/src/features/organization/organization.module.js +7 -1
- package/dist/src/features/organization/organization.module.js.map +1 -1
- package/dist/src/features/organization/queries/handlers/get-organization.handler.d.ts +11 -0
- package/dist/src/features/organization/queries/handlers/get-organization.handler.js +33 -0
- package/dist/src/features/organization/queries/handlers/get-organization.handler.js.map +1 -0
- package/dist/src/features/organization/queries/handlers/get-projects-by-organization-id.handler.d.ts +1 -1
- package/dist/src/features/organization/queries/handlers/get-projects-by-organization-id.handler.js +3 -2
- package/dist/src/features/organization/queries/handlers/get-projects-by-organization-id.handler.js.map +1 -1
- package/dist/src/features/organization/queries/handlers/get-users-organization.handler.d.ts +3 -3
- package/dist/src/features/organization/queries/handlers/index.d.ts +1 -0
- package/dist/src/features/organization/queries/handlers/index.js +1 -0
- package/dist/src/features/organization/queries/handlers/index.js.map +1 -1
- package/dist/src/features/organization/queries/impl/get-organization.query.d.ts +11 -0
- package/dist/src/features/organization/queries/impl/get-organization.query.js +10 -0
- package/dist/src/features/organization/queries/impl/get-organization.query.js.map +1 -0
- package/dist/src/features/organization/queries/impl/get-projects-by-organization-id.query.d.ts +1 -1
- package/dist/src/features/organization/queries/impl/get-users-organization.query.d.ts +2 -1
- package/dist/src/features/organization/queries/impl/index.d.ts +1 -0
- package/dist/src/features/organization/queries/impl/index.js +1 -0
- package/dist/src/features/organization/queries/impl/index.js.map +1 -1
- package/dist/src/features/organization/queries/index.d.ts +2 -1
- package/dist/src/features/organization/queries/index.js +2 -0
- package/dist/src/features/organization/queries/index.js.map +1 -1
- package/dist/src/features/plugin/file/file-value.store.js +7 -4
- package/dist/src/features/plugin/file/file-value.store.js.map +1 -1
- package/dist/src/features/plugin/plugin.list.service.js +1 -9
- package/dist/src/features/plugin/plugin.list.service.js.map +1 -1
- package/dist/src/features/plugin/plugin.service.d.ts +1 -1
- package/dist/src/features/plugin/types.d.ts +1 -1
- package/dist/src/features/project/commands/handlers/create-project.handler.js +1 -1
- package/dist/src/features/project/commands/handlers/create-project.handler.js.map +1 -1
- package/dist/src/features/project/commands/handlers/delete-project.handler.js +1 -1
- package/dist/src/features/project/commands/handlers/delete-project.handler.js.map +1 -1
- package/dist/src/features/project/commands/handlers/index.d.ts +2 -1
- package/dist/src/features/project/commands/handlers/index.js +2 -0
- package/dist/src/features/project/commands/handlers/index.js.map +1 -1
- package/dist/src/features/project/commands/handlers/update-project.handler.js +1 -1
- package/dist/src/features/project/commands/handlers/update-project.handler.js.map +1 -1
- package/dist/src/features/project/commands/handlers/update-user-project-role.handler.d.ts +9 -0
- package/dist/src/features/project/commands/handlers/update-user-project-role.handler.js +65 -0
- package/dist/src/features/project/commands/handlers/update-user-project-role.handler.js.map +1 -0
- package/dist/src/features/project/commands/impl/add-user-to-project.command.d.ts +1 -0
- package/dist/src/features/project/commands/impl/api-create-project.command.d.ts +1 -0
- package/dist/src/features/project/commands/impl/index.d.ts +1 -0
- package/dist/src/features/project/commands/impl/index.js +1 -0
- package/dist/src/features/project/commands/impl/index.js.map +1 -1
- package/dist/src/features/project/commands/impl/remove-user-from-project.command.d.ts +1 -0
- package/dist/src/features/project/commands/impl/update-project.command.d.ts +2 -0
- package/dist/src/features/project/commands/impl/update-user-project-role.command.d.ts +16 -0
- package/dist/src/features/project/commands/impl/update-user-project-role.command.js +10 -0
- package/dist/src/features/project/commands/impl/update-user-project-role.command.js.map +1 -0
- package/dist/src/features/project/project-api.service.d.ts +38 -0
- package/dist/src/features/project/project-api.service.js +59 -0
- package/dist/src/features/project/project-api.service.js.map +1 -0
- package/dist/src/features/project/project.module.js +3 -0
- package/dist/src/features/project/project.module.js.map +1 -1
- package/dist/src/features/project/queries/handlers/get-all-branches-by-project.handler.d.ts +2 -2
- package/dist/src/features/project/queries/handlers/get-all-branches-by-project.handler.js +1 -1
- package/dist/src/features/project/queries/handlers/get-all-branches-by-project.handler.js.map +1 -1
- package/dist/src/features/project/queries/handlers/get-project-by-id.handler.d.ts +1 -1
- package/dist/src/features/project/queries/handlers/get-project.handler.d.ts +1 -1
- package/dist/src/features/project/queries/handlers/get-project.handler.js +1 -1
- package/dist/src/features/project/queries/handlers/get-project.handler.js.map +1 -1
- package/dist/src/features/project/queries/handlers/get-root-branch-by-project.handler.d.ts +2 -2
- package/dist/src/features/project/queries/handlers/get-users-project.handler.d.ts +3 -3
- package/dist/src/features/project/queries/impl/get-all-branches-by-project.query.d.ts +4 -0
- package/dist/src/features/project/queries/impl/get-all-branches-by-project.query.js.map +1 -1
- package/dist/src/features/project/queries/impl/get-project-by-id.query.d.ts +1 -1
- package/dist/src/features/project/queries/impl/get-project.query.d.ts +1 -1
- package/dist/src/features/project/queries/impl/get-root-branch-by-project.query.d.ts +3 -0
- package/dist/src/features/project/queries/impl/get-root-branch-by-project.query.js.map +1 -1
- package/dist/src/features/project/queries/impl/get-users-project.query.d.ts +2 -1
- package/dist/src/features/revision/internal-revisions-api.service.d.ts +14 -1
- package/dist/src/features/revision/internal-revisions-api.service.js +21 -0
- package/dist/src/features/revision/internal-revisions-api.service.js.map +1 -1
- package/dist/src/features/revision/queries/commands/get-children-by-revision.handler.d.ts +1 -1
- package/dist/src/features/revision/queries/commands/get-migrations.handler.js +1 -1
- package/dist/src/features/revision/queries/commands/get-migrations.handler.js.map +1 -1
- package/dist/src/features/revision/queries/commands/get-revision.handler.d.ts +4 -2
- package/dist/src/features/revision/queries/commands/get-tables-by-revision-id.handler.d.ts +1 -1
- package/dist/src/features/revision/queries/commands/get-tables-by-revision-id.handler.js +1 -1
- package/dist/src/features/revision/queries/commands/get-tables-by-revision-id.handler.js.map +1 -1
- package/dist/src/features/revision/queries/commands/resolve-branch-by-revision.handler.d.ts +6 -4
- package/dist/src/features/revision/queries/commands/resolve-parent-by-revision.handler.d.ts +4 -2
- package/dist/src/features/revision/queries/impl/get-children-by-revision.query.d.ts +3 -0
- package/dist/src/features/revision/queries/impl/get-children-by-revision.query.js.map +1 -1
- package/dist/src/features/revision/queries/impl/get-endpoints-by-revision-id.query.d.ts +3 -0
- package/dist/src/features/revision/queries/impl/get-endpoints-by-revision-id.query.js.map +1 -1
- package/dist/src/features/revision/queries/impl/get-revision.query.d.ts +1 -1
- package/dist/src/features/revision/queries/impl/get-tables-by-revision-id.query.d.ts +3 -0
- package/dist/src/features/revision/queries/impl/get-tables-by-revision-id.query.js.map +1 -1
- package/dist/src/features/revision/queries/impl/index.d.ts +1 -0
- package/dist/src/features/revision/queries/impl/index.js +1 -0
- package/dist/src/features/revision/queries/impl/index.js.map +1 -1
- package/dist/src/features/revision/queries/impl/resolve-branch-by-revision.query.d.ts +3 -0
- package/dist/src/features/revision/queries/impl/resolve-branch-by-revision.query.js.map +1 -1
- package/dist/src/features/revision/queries/impl/resolve-child-branches-by-revision.query.d.ts +9 -0
- package/dist/src/features/revision/queries/impl/resolve-child-by-revision.query.d.ts +3 -0
- package/dist/src/features/revision/queries/impl/resolve-child-by-revision.query.js.map +1 -1
- package/dist/src/features/revision/queries/impl/resolve-parent-by-revision.query.d.ts +3 -0
- package/dist/src/features/revision/queries/impl/resolve-parent-by-revision.query.js.map +1 -1
- package/dist/src/features/revision/queries/types/get-endpoints-by-revision-id.d.ts +1 -1
- package/dist/src/features/revision/queries/types/get-tables-by-revision-id.d.ts +1 -1
- package/dist/src/features/revision/revisions-api.service.d.ts +14 -1
- package/dist/src/features/revision/revisions-api.service.js +21 -0
- package/dist/src/features/revision/revisions-api.service.js.map +1 -1
- package/dist/src/features/revision-changes/mappers/row-change.mapper.d.ts +13 -0
- package/dist/src/features/revision-changes/mappers/row-change.mapper.js +111 -0
- package/dist/src/features/revision-changes/mappers/row-change.mapper.js.map +1 -0
- package/dist/src/features/revision-changes/mappers/table-change.mapper.d.ts +19 -0
- package/dist/src/features/revision-changes/mappers/table-change.mapper.js +74 -0
- package/dist/src/features/revision-changes/mappers/table-change.mapper.js.map +1 -0
- package/dist/src/features/revision-changes/queries/handlers/get-revision-changes.handler.d.ts +14 -0
- package/dist/src/features/revision-changes/queries/handlers/get-revision-changes.handler.js +68 -0
- package/dist/src/features/revision-changes/queries/handlers/get-revision-changes.handler.js.map +1 -0
- package/dist/src/features/revision-changes/queries/handlers/get-row-changes.handler.d.ts +24 -0
- package/dist/src/features/revision-changes/queries/handlers/get-row-changes.handler.js +177 -0
- package/dist/src/features/revision-changes/queries/handlers/get-row-changes.handler.js.map +1 -0
- package/dist/src/features/revision-changes/queries/handlers/get-table-changes.handler.d.ts +19 -0
- package/dist/src/features/revision-changes/queries/handlers/get-table-changes.handler.js +84 -0
- package/dist/src/features/revision-changes/queries/handlers/get-table-changes.handler.js.map +1 -0
- package/dist/src/features/revision-changes/queries/handlers/index.d.ts +3 -0
- package/dist/src/features/revision-changes/queries/handlers/index.js +20 -0
- package/dist/src/features/revision-changes/queries/handlers/index.js.map +1 -0
- package/dist/src/features/revision-changes/queries/impl/get-revision-changes.query.d.ts +15 -0
- package/dist/src/features/revision-changes/queries/impl/get-revision-changes.query.js +10 -0
- package/dist/src/features/revision-changes/queries/impl/get-revision-changes.query.js.map +1 -0
- package/dist/src/features/revision-changes/queries/impl/get-row-changes.query.d.ts +20 -0
- package/dist/src/features/revision-changes/queries/impl/get-row-changes.query.js +10 -0
- package/dist/src/features/revision-changes/queries/impl/get-row-changes.query.js.map +1 -0
- package/dist/src/features/revision-changes/queries/impl/get-table-changes.query.d.ts +20 -0
- package/dist/src/features/revision-changes/queries/impl/get-table-changes.query.js +10 -0
- package/dist/src/features/revision-changes/queries/impl/get-table-changes.query.js.map +1 -0
- package/dist/src/features/revision-changes/queries/impl/index.d.ts +3 -0
- package/dist/src/features/revision-changes/queries/impl/index.js +20 -0
- package/dist/src/features/revision-changes/queries/impl/index.js.map +1 -0
- package/dist/src/features/revision-changes/revision-changes-api.service.d.ts +9 -0
- package/dist/src/features/revision-changes/revision-changes-api.service.js +35 -0
- package/dist/src/features/revision-changes/revision-changes-api.service.js.map +1 -0
- package/dist/src/features/revision-changes/revision-changes.module.d.ts +2 -0
- package/dist/src/features/revision-changes/revision-changes.module.js +47 -0
- package/dist/src/features/revision-changes/revision-changes.module.js.map +1 -0
- package/dist/src/features/revision-changes/services/index.d.ts +4 -0
- package/dist/src/features/revision-changes/services/index.js +21 -0
- package/dist/src/features/revision-changes/services/index.js.map +1 -0
- package/dist/src/features/revision-changes/services/revision-comparison.service.d.ts +12 -0
- package/dist/src/features/revision-changes/services/revision-comparison.service.js +99 -0
- package/dist/src/features/revision-changes/services/revision-comparison.service.js.map +1 -0
- package/dist/src/features/revision-changes/services/row-diff.service.d.ts +9 -0
- package/dist/src/features/revision-changes/services/row-diff.service.js +140 -0
- package/dist/src/features/revision-changes/services/row-diff.service.js.map +1 -0
- package/dist/src/features/revision-changes/services/schema-impact.service.d.ts +11 -0
- package/dist/src/features/revision-changes/services/schema-impact.service.js +136 -0
- package/dist/src/features/revision-changes/services/schema-impact.service.js.map +1 -0
- package/dist/src/features/revision-changes/services/views-comparison.service.d.ts +12 -0
- package/dist/src/features/revision-changes/services/views-comparison.service.js +209 -0
- package/dist/src/features/revision-changes/services/views-comparison.service.js.map +1 -0
- package/dist/src/features/revision-changes/types/enums.d.ts +26 -0
- package/dist/src/features/revision-changes/types/enums.js +34 -0
- package/dist/src/features/revision-changes/types/enums.js.map +1 -0
- package/dist/src/features/revision-changes/types/field-change.types.d.ts +12 -0
- package/dist/src/features/revision-changes/types/field-change.types.js +3 -0
- package/dist/src/features/revision-changes/types/field-change.types.js.map +1 -0
- package/dist/src/features/revision-changes/types/filters.types.d.ts +13 -0
- package/dist/src/features/revision-changes/types/filters.types.js +3 -0
- package/dist/src/features/revision-changes/types/filters.types.js.map +1 -0
- package/dist/src/features/revision-changes/types/index.d.ts +8 -0
- package/dist/src/features/revision-changes/types/index.js +25 -0
- package/dist/src/features/revision-changes/types/index.js.map +1 -0
- package/dist/src/features/revision-changes/types/revision-changes.types.d.ts +14 -0
- package/dist/src/features/revision-changes/types/revision-changes.types.js +3 -0
- package/dist/src/features/revision-changes/types/revision-changes.types.js.map +1 -0
- package/dist/src/features/revision-changes/types/row-change.types.d.ts +31 -0
- package/dist/src/features/revision-changes/types/row-change.types.js +11 -0
- package/dist/src/features/revision-changes/types/row-change.types.js.map +1 -0
- package/dist/src/features/revision-changes/types/schema-change.types.d.ts +40 -0
- package/dist/src/features/revision-changes/types/schema-change.types.js +11 -0
- package/dist/src/features/revision-changes/types/schema-change.types.js.map +1 -0
- package/dist/src/features/revision-changes/types/table-change.types.d.ts +19 -0
- package/dist/src/features/revision-changes/types/table-change.types.js +3 -0
- package/dist/src/features/revision-changes/types/table-change.types.js.map +1 -0
- package/dist/src/features/revision-changes/types/views-change.types.d.ts +15 -0
- package/dist/src/features/revision-changes/types/views-change.types.js +3 -0
- package/dist/src/features/revision-changes/types/views-change.types.js.map +1 -0
- package/dist/src/features/revision-changes/utils/empty-responses.d.ts +4 -0
- package/dist/src/features/revision-changes/utils/empty-responses.js +36 -0
- package/dist/src/features/revision-changes/utils/empty-responses.js.map +1 -0
- package/dist/src/features/role/queries/handlers/get-role-permissions.handler.d.ts +14 -0
- package/dist/src/features/role/queries/handlers/get-role-permissions.handler.js +37 -0
- package/dist/src/features/role/queries/handlers/get-role-permissions.handler.js.map +1 -0
- package/dist/src/features/role/queries/handlers/get-role.handler.d.ts +14 -0
- package/dist/src/features/role/queries/handlers/get-role.handler.js +33 -0
- package/dist/src/features/role/queries/handlers/get-role.handler.js.map +1 -0
- package/dist/src/features/role/queries/handlers/index.d.ts +2 -0
- package/dist/src/features/role/queries/handlers/index.js +19 -0
- package/dist/src/features/role/queries/handlers/index.js.map +1 -0
- package/dist/src/features/role/queries/impl/get-role-permissions.query.d.ts +11 -0
- package/dist/src/features/role/queries/impl/get-role-permissions.query.js +10 -0
- package/dist/src/features/role/queries/impl/get-role-permissions.query.js.map +1 -0
- package/dist/src/features/role/queries/impl/get-role.query.d.ts +11 -0
- package/dist/src/features/role/queries/impl/get-role.query.js +10 -0
- package/dist/src/features/role/queries/impl/get-role.query.js.map +1 -0
- package/dist/src/features/role/queries/impl/index.d.ts +2 -0
- package/dist/src/features/role/queries/impl/index.js +19 -0
- package/dist/src/features/role/queries/impl/index.js.map +1 -0
- package/dist/src/features/role/queries/index.d.ts +3 -0
- package/dist/src/features/role/queries/index.js +7 -0
- package/dist/src/features/role/queries/index.js.map +1 -0
- package/dist/src/features/role/role-api.service.d.ts +14 -0
- package/dist/src/features/role/role-api.service.js +32 -0
- package/dist/src/features/role/role-api.service.js.map +1 -0
- package/dist/src/features/role/role.module.d.ts +2 -0
- package/dist/src/features/role/role.module.js +25 -0
- package/dist/src/features/role/role.module.js.map +1 -0
- package/dist/src/features/row/internal-row-api.service.d.ts +2 -1
- package/dist/src/features/row/internal-row-api.service.js +3 -0
- package/dist/src/features/row/internal-row-api.service.js.map +1 -1
- package/dist/src/features/row/queries/handlers/get-row-by-id.handler.d.ts +4 -4
- package/dist/src/features/row/queries/handlers/get-row.handler.js +1 -1
- package/dist/src/features/row/queries/handlers/get-row.handler.js.map +1 -1
- package/dist/src/features/row/queries/handlers/get-rows.handler.d.ts +8 -5
- package/dist/src/features/row/queries/handlers/get-rows.handler.js +18 -4
- package/dist/src/features/row/queries/handlers/get-rows.handler.js.map +1 -1
- package/dist/src/features/row/queries/handlers/index.d.ts +2 -1
- package/dist/src/features/row/queries/handlers/index.js +2 -0
- package/dist/src/features/row/queries/handlers/index.js.map +1 -1
- package/dist/src/features/row/queries/handlers/resolve-row-count-foreign-keys-by.handler.js +1 -1
- package/dist/src/features/row/queries/handlers/resolve-row-count-foreign-keys-by.handler.js.map +1 -1
- package/dist/src/features/row/queries/handlers/resolve-row-count-foreign-keys-to.handler.js +1 -1
- package/dist/src/features/row/queries/handlers/resolve-row-count-foreign-keys-to.handler.js.map +1 -1
- package/dist/src/features/row/queries/handlers/resolve-row-foreign-keys-by.handler.d.ts +4 -5
- package/dist/src/features/row/queries/handlers/resolve-row-foreign-keys-by.handler.js +1 -1
- package/dist/src/features/row/queries/handlers/resolve-row-foreign-keys-by.handler.js.map +1 -1
- package/dist/src/features/row/queries/handlers/resolve-row-foreign-keys-to.handler.d.ts +4 -5
- package/dist/src/features/row/queries/handlers/resolve-row-foreign-keys-to.handler.js +1 -1
- package/dist/src/features/row/queries/handlers/resolve-row-foreign-keys-to.handler.js.map +1 -1
- package/dist/src/features/row/queries/handlers/search-rows.handler.d.ts +14 -0
- package/dist/src/features/row/queries/handlers/search-rows.handler.js +79 -0
- package/dist/src/features/row/queries/handlers/search-rows.handler.js.map +1 -0
- package/dist/src/features/row/queries/impl/get-rows.query.d.ts +1 -1
- package/dist/src/features/row/queries/impl/index.d.ts +1 -0
- package/dist/src/features/row/queries/impl/index.js +1 -0
- package/dist/src/features/row/queries/impl/index.js.map +1 -1
- package/dist/src/features/row/queries/impl/search-rows.query.d.ts +28 -0
- package/dist/src/features/row/queries/impl/search-rows.query.js +10 -0
- package/dist/src/features/row/queries/impl/search-rows.query.js.map +1 -0
- package/dist/src/features/row/row-api.service.d.ts +2 -1
- package/dist/src/features/row/row-api.service.js +3 -0
- package/dist/src/features/row/row-api.service.js.map +1 -1
- package/dist/src/features/row/row.module.js +8 -2
- package/dist/src/features/row/row.module.js.map +1 -1
- package/dist/src/features/row/services/index.d.ts +1 -0
- package/dist/src/features/row/services/index.js +6 -0
- package/dist/src/features/row/services/index.js.map +1 -0
- package/dist/src/features/row/services/system-column-mapping.service.d.ts +17 -0
- package/dist/src/features/row/services/system-column-mapping.service.js +148 -0
- package/dist/src/features/row/services/system-column-mapping.service.js.map +1 -0
- package/dist/src/features/row/utils/extract-matches-fallback.d.ts +3 -0
- package/dist/src/features/row/utils/extract-matches-fallback.js +87 -0
- package/dist/src/features/row/utils/extract-matches-fallback.js.map +1 -0
- package/dist/src/features/row/utils/get-rows-sql.d.ts +1 -1
- package/dist/src/features/row/utils/get-rows-sql.js +3 -3
- package/dist/src/features/row/utils/get-rows-sql.js.map +1 -1
- package/dist/src/features/row/utils/search-rows-sql.d.ts +16 -0
- package/dist/src/features/row/utils/search-rows-sql.js +111 -0
- package/dist/src/features/row/utils/search-rows-sql.js.map +1 -0
- package/dist/src/features/share/commands/handlers/transactional/move-endpoints.handler.d.ts +1 -0
- package/dist/src/features/share/commands/handlers/transactional/move-endpoints.handler.js +7 -1
- package/dist/src/features/share/commands/handlers/transactional/move-endpoints.handler.js.map +1 -1
- package/dist/src/features/share/commands/utils/getRevisionCursorPagination.d.ts +1 -0
- package/dist/src/features/share/commands/utils/getRevisionCursorPagination.js +2 -2
- package/dist/src/features/share/commands/utils/getRevisionCursorPagination.js.map +1 -1
- package/dist/src/features/share/diff.service.d.ts +19 -2
- package/dist/src/features/share/diff.service.js +36 -6
- package/dist/src/features/share/diff.service.js.map +1 -1
- package/dist/src/features/share/exceptions/index.d.ts +1 -0
- package/dist/src/features/share/exceptions/index.js +18 -0
- package/dist/src/features/share/exceptions/index.js.map +1 -0
- package/dist/src/features/share/exceptions/validation.exception.d.ts +46 -0
- package/dist/src/features/share/exceptions/validation.exception.js +100 -0
- package/dist/src/features/share/exceptions/validation.exception.js.map +1 -0
- package/dist/src/features/share/foreign-keys.service.d.ts +9 -9
- package/dist/src/features/share/foreign-keys.service.js +30 -1
- package/dist/src/features/share/foreign-keys.service.js.map +1 -1
- package/dist/src/features/share/json-schema-validator.service.d.ts +1 -1
- package/dist/src/features/share/json-schema-validator.service.js +6 -3
- package/dist/src/features/share/json-schema-validator.service.js.map +1 -1
- package/dist/src/features/share/queries/handlers/index.d.ts +2 -1
- package/dist/src/features/share/queries/handlers/index.js +2 -0
- package/dist/src/features/share/queries/handlers/index.js.map +1 -1
- package/dist/src/features/share/queries/handlers/transactional/find-rows-in-table.handler.d.ts +10 -0
- package/dist/src/features/share/queries/handlers/transactional/find-rows-in-table.handler.js +41 -0
- package/dist/src/features/share/queries/handlers/transactional/find-rows-in-table.handler.js.map +1 -0
- package/dist/src/features/share/queries/handlers/transactional/get-table-schema.handler.js +9 -1
- package/dist/src/features/share/queries/handlers/transactional/get-table-schema.handler.js.map +1 -1
- package/dist/src/features/share/queries/impl/index.d.ts +1 -0
- package/dist/src/features/share/queries/impl/index.js +1 -0
- package/dist/src/features/share/queries/impl/index.js.map +1 -1
- package/dist/src/features/share/queries/impl/transactional/find-rows-in-table.query.d.ts +10 -0
- package/dist/src/features/share/queries/impl/transactional/find-rows-in-table.query.js +10 -0
- package/dist/src/features/share/queries/impl/transactional/find-rows-in-table.query.js.map +1 -0
- package/dist/src/features/share/schema/table-views-schema.d.ts +2 -0
- package/dist/src/features/share/schema/table-views-schema.js +125 -0
- package/dist/src/features/share/schema/table-views-schema.js.map +1 -0
- package/dist/src/features/share/share.module.js +6 -0
- package/dist/src/features/share/share.module.js.map +1 -1
- package/dist/src/features/share/share.transactional.queries.d.ts +5 -0
- package/dist/src/features/share/share.transactional.queries.js +29 -0
- package/dist/src/features/share/share.transactional.queries.js.map +1 -1
- package/dist/src/features/share/system-tables.consts.d.ts +2 -1
- package/dist/src/features/share/system-tables.consts.js +6 -0
- package/dist/src/features/share/system-tables.consts.js.map +1 -1
- package/dist/src/features/share/system-tables.service.d.ts +15 -0
- package/dist/src/features/share/system-tables.service.js +76 -0
- package/dist/src/features/share/system-tables.service.js.map +1 -0
- package/dist/src/features/share/types/row-with-context.types.d.ts +1 -1
- package/dist/src/features/share/types/table-with-context.types.d.ts +1 -1
- package/dist/src/features/share/types.d.ts +2 -3
- package/dist/src/features/share/utils/validateUrlLikeId/validateJsonFieldName.d.ts +1 -1
- package/dist/src/features/share/utils/validateUrlLikeId/validateJsonFieldName.js +2 -2
- package/dist/src/features/share/utils/validateUrlLikeId/validateJsonFieldName.js.map +1 -1
- package/dist/src/features/share/views-migration.service.d.ts +47 -0
- package/dist/src/features/share/views-migration.service.js +222 -0
- package/dist/src/features/share/views-migration.service.js.map +1 -0
- package/dist/src/features/table/queries/handlers/get-table-by-id.handler.d.ts +1 -1
- package/dist/src/features/table/queries/handlers/get-table.handler.js +1 -1
- package/dist/src/features/table/queries/handlers/get-table.handler.js.map +1 -1
- package/dist/src/features/table/queries/handlers/get-tables.handler.js +1 -1
- package/dist/src/features/table/queries/handlers/get-tables.handler.js.map +1 -1
- package/dist/src/features/table/queries/handlers/resolve-table-count-foreign-keys-by.handler.js +1 -1
- package/dist/src/features/table/queries/handlers/resolve-table-count-foreign-keys-by.handler.js.map +1 -1
- package/dist/src/features/table/queries/handlers/resolve-table-count-foreign-keys-to.handler.js +1 -1
- package/dist/src/features/table/queries/handlers/resolve-table-count-foreign-keys-to.handler.js.map +1 -1
- package/dist/src/features/table/queries/handlers/resolve-table-foreign-keys-by.handler.js +1 -1
- package/dist/src/features/table/queries/handlers/resolve-table-foreign-keys-by.handler.js.map +1 -1
- package/dist/src/features/table/queries/handlers/resolve-table-foreign-keys-to.handler.js +1 -1
- package/dist/src/features/table/queries/handlers/resolve-table-foreign-keys-to.handler.js.map +1 -1
- package/dist/src/features/table/queries/handlers/resolve-table-schema.handler.d.ts +1 -1
- package/dist/src/features/table/queries/handlers/resolve-table-schema.handler.js +1 -1
- package/dist/src/features/table/queries/handlers/resolve-table-schema.handler.js.map +1 -1
- package/dist/src/features/table/queries/impl/get-count-rows-in-table.query.d.ts +2 -0
- package/dist/src/features/table/queries/impl/get-table.query.d.ts +3 -0
- package/dist/src/features/table/queries/impl/get-table.query.js.map +1 -1
- package/dist/src/features/table/queries/impl/get-tables.query.d.ts +3 -0
- package/dist/src/features/table/queries/impl/get-tables.query.js.map +1 -1
- package/dist/src/features/table/queries/impl/index.d.ts +2 -0
- package/dist/src/features/table/queries/impl/index.js +2 -0
- package/dist/src/features/table/queries/impl/index.js.map +1 -1
- package/dist/src/features/table/queries/impl/resolve-table-count-foreign-keys-by.query.d.ts +2 -0
- package/dist/src/features/table/queries/impl/resolve-table-count-foreign-keys-to.query.d.ts +2 -0
- package/dist/src/features/table/queries/impl/resolve-table-foreign-keys-by.query.d.ts +4 -0
- package/dist/src/features/table/queries/impl/resolve-table-foreign-keys-by.query.js.map +1 -1
- package/dist/src/features/table/queries/impl/resolve-table-foreign-keys-to.query.d.ts +4 -0
- package/dist/src/features/table/queries/impl/resolve-table-foreign-keys-to.query.js.map +1 -1
- package/dist/src/features/table/queries/impl/resolve-table-schema.query.d.ts +3 -0
- package/dist/src/features/table/queries/impl/resolve-table-schema.query.js.map +1 -1
- package/dist/src/features/table/table-api.service.d.ts +22 -0
- package/dist/src/features/table/table-api.service.js +50 -0
- package/dist/src/features/table/table-api.service.js.map +1 -0
- package/dist/src/features/table/table.module.js +3 -1
- package/dist/src/features/table/table.module.js.map +1 -1
- package/dist/src/features/user/commands/impl/set-username.command.d.ts +1 -0
- package/dist/src/features/user/commands/impl/update-password.command.d.ts +1 -0
- package/dist/src/features/user/queries/handlers/deprecated-get-owned-user-organization.handler.d.ts +14 -0
- package/dist/src/features/user/queries/handlers/deprecated-get-owned-user-organization.handler.js +35 -0
- package/dist/src/features/user/queries/handlers/deprecated-get-owned-user-organization.handler.js.map +1 -0
- package/dist/src/features/user/queries/handlers/get-projects-by-user-id.handler.d.ts +1 -1
- package/dist/src/features/user/queries/handlers/get-projects-by-user-id.handler.js +1 -2
- package/dist/src/features/user/queries/handlers/get-projects-by-user-id.handler.js.map +1 -1
- package/dist/src/features/user/queries/handlers/get-user-organization.handler.d.ts +9 -3
- package/dist/src/features/user/queries/handlers/get-user-organization.handler.js +6 -9
- package/dist/src/features/user/queries/handlers/get-user-organization.handler.js.map +1 -1
- package/dist/src/features/user/queries/handlers/get-user-project.handler.d.ts +14 -0
- package/dist/src/features/user/queries/handlers/get-user-project.handler.js +36 -0
- package/dist/src/features/user/queries/handlers/get-user-project.handler.js.map +1 -0
- package/dist/src/features/user/queries/handlers/get-user.handler.d.ts +1 -0
- package/dist/src/features/user/queries/handlers/get-user.handler.js +1 -0
- package/dist/src/features/user/queries/handlers/get-user.handler.js.map +1 -1
- package/dist/src/features/user/queries/handlers/index.d.ts +5 -1
- package/dist/src/features/user/queries/handlers/index.js +5 -1
- package/dist/src/features/user/queries/handlers/index.js.map +1 -1
- package/dist/src/features/user/queries/handlers/search-users.handler.d.ts +15 -0
- package/dist/src/features/user/queries/handlers/search-users.handler.js +61 -0
- package/dist/src/features/user/queries/handlers/search-users.handler.js.map +1 -0
- package/dist/src/features/user/queries/impl/deprecated-get-owned-user-organization.query.d.ts +11 -0
- package/dist/src/features/user/queries/impl/deprecated-get-owned-user-organization.query.js +10 -0
- package/dist/src/features/user/queries/impl/deprecated-get-owned-user-organization.query.js.map +1 -0
- package/dist/src/features/user/queries/impl/get-projects-by-user-id.query.d.ts +2 -1
- package/dist/src/features/user/queries/impl/get-user-organization.query.d.ts +5 -1
- package/dist/src/features/user/queries/impl/get-user-organization.query.js.map +1 -1
- package/dist/src/features/user/queries/impl/get-user-project.query.d.ts +13 -0
- package/dist/src/features/user/queries/impl/get-user-project.query.js +10 -0
- package/dist/src/features/user/queries/impl/get-user-project.query.js.map +1 -0
- package/dist/src/features/user/queries/impl/get-user.query.d.ts +3 -2
- package/dist/src/features/user/queries/impl/index.d.ts +3 -0
- package/dist/src/features/user/queries/impl/index.js +3 -0
- package/dist/src/features/user/queries/impl/index.js.map +1 -1
- package/dist/src/features/user/queries/impl/search-users.query.d.ts +16 -0
- package/dist/src/features/user/queries/impl/search-users.query.js +10 -0
- package/dist/src/features/user/queries/impl/search-users.query.js.map +1 -0
- package/dist/src/features/user/queries/index.d.ts +2 -2
- package/dist/src/features/user/queries/index.js +4 -1
- package/dist/src/features/user/queries/index.js.map +1 -1
- package/dist/src/features/user/user-api.service.d.ts +16 -0
- package/dist/src/features/user/user-api.service.js +53 -0
- package/dist/src/features/user/user-api.service.js.map +1 -0
- package/dist/src/features/user/user.module.js +3 -1
- package/dist/src/features/user/user.module.js.map +1 -1
- package/dist/src/features/views/commands/handlers/index.d.ts +3 -0
- package/dist/src/features/views/commands/handlers/index.js +21 -0
- package/dist/src/features/views/commands/handlers/index.js.map +1 -0
- package/dist/src/features/views/commands/handlers/update-table-views.handler.d.ts +25 -0
- package/dist/src/features/views/commands/handlers/update-table-views.handler.js +125 -0
- package/dist/src/features/views/commands/handlers/update-table-views.handler.js.map +1 -0
- package/dist/src/features/views/commands/impl/index.d.ts +1 -0
- package/dist/src/features/views/commands/impl/index.js +18 -0
- package/dist/src/features/views/commands/impl/index.js.map +1 -0
- package/dist/src/features/views/commands/impl/update-table-views.command.d.ts +11 -0
- package/dist/src/features/views/commands/impl/update-table-views.command.js +10 -0
- package/dist/src/features/views/commands/impl/update-table-views.command.js.map +1 -0
- package/dist/src/features/views/index.d.ts +6 -0
- package/dist/src/features/views/index.js +23 -0
- package/dist/src/features/views/index.js.map +1 -0
- package/dist/src/features/views/queries/handlers/get-table-views.handler.d.ts +13 -0
- package/dist/src/features/views/queries/handlers/get-table-views.handler.js +72 -0
- package/dist/src/features/views/queries/handlers/get-table-views.handler.js.map +1 -0
- package/dist/src/features/views/queries/handlers/index.d.ts +3 -0
- package/dist/src/features/views/queries/handlers/index.js +21 -0
- package/dist/src/features/views/queries/handlers/index.js.map +1 -0
- package/dist/src/features/views/queries/impl/get-table-views.query.d.ts +10 -0
- package/dist/src/features/views/queries/impl/get-table-views.query.js +10 -0
- package/dist/src/features/views/queries/impl/get-table-views.query.js.map +1 -0
- package/dist/src/features/views/queries/impl/index.d.ts +1 -0
- package/dist/src/features/views/queries/impl/index.js +18 -0
- package/dist/src/features/views/queries/impl/index.js.map +1 -0
- package/dist/src/features/views/services/index.d.ts +1 -0
- package/dist/src/features/views/services/index.js +18 -0
- package/dist/src/features/views/services/index.js.map +1 -0
- package/dist/src/features/views/services/view-validation.service.d.ts +13 -0
- package/dist/src/features/views/services/view-validation.service.js +106 -0
- package/dist/src/features/views/services/view-validation.service.js.map +1 -0
- package/dist/src/features/views/types/index.d.ts +1 -0
- package/dist/src/features/views/types/index.js +18 -0
- package/dist/src/features/views/types/index.js.map +1 -0
- package/dist/src/features/views/types/views.types.d.ts +34 -0
- package/dist/src/features/views/types/views.types.js +6 -0
- package/dist/src/features/views/types/views.types.js.map +1 -0
- package/dist/src/features/views/views-api.service.d.ts +12 -0
- package/dist/src/features/views/views-api.service.js +38 -0
- package/dist/src/features/views/views-api.service.js.map +1 -0
- package/dist/src/features/views/views.module.d.ts +2 -0
- package/dist/src/features/views/views.module.js +34 -0
- package/dist/src/features/views/views.module.js.map +1 -0
- package/dist/src/infrastructure/admin/admin.module.js +7 -2
- package/dist/src/infrastructure/admin/admin.module.js.map +1 -1
- package/dist/src/infrastructure/cache/events/index.d.ts +1 -0
- package/dist/src/infrastructure/cache/events/index.js +1 -0
- package/dist/src/infrastructure/cache/events/index.js.map +1 -1
- package/dist/src/infrastructure/cache/events/row/rows-deleted.event.d.ts +7 -0
- package/dist/src/infrastructure/cache/events/row/rows-deleted.event.js +14 -0
- package/dist/src/infrastructure/cache/events/row/rows-deleted.event.js.map +1 -0
- package/dist/src/infrastructure/cache/handlers/index.d.ts +2 -1
- package/dist/src/infrastructure/cache/handlers/index.js +2 -0
- package/dist/src/infrastructure/cache/handlers/index.js.map +1 -1
- package/dist/src/infrastructure/cache/handlers/row/rows-deleted.handler.d.ts +8 -0
- package/dist/src/infrastructure/cache/handlers/row/rows-deleted.handler.js +30 -0
- package/dist/src/infrastructure/cache/handlers/row/rows-deleted.handler.js.map +1 -0
- package/dist/src/infrastructure/cache/pg-bus/pg-bus.driver.js +1 -1
- package/dist/src/infrastructure/cache/pg-bus/pg-bus.driver.js.map +1 -1
- package/dist/src/infrastructure/cache/revisium-cache.module.js +40 -4
- package/dist/src/infrastructure/cache/revisium-cache.module.js.map +1 -1
- package/dist/src/infrastructure/cache/services/row-cache.service.d.ts +5 -0
- package/dist/src/infrastructure/cache/services/row-cache.service.js +5 -0
- package/dist/src/infrastructure/cache/services/row-cache.service.js.map +1 -1
- package/dist/src/infrastructure/clean/commands/handlers/clean-rows.handler.d.ts +1 -1
- package/dist/src/infrastructure/clean/commands/handlers/clean-tables.handler.d.ts +1 -1
- package/dist/src/infrastructure/configuration/configuration-api.service.d.ts +7 -0
- package/dist/src/infrastructure/configuration/configuration-api.service.js +29 -0
- package/dist/src/infrastructure/configuration/configuration-api.service.js.map +1 -0
- package/dist/src/infrastructure/configuration/configuration.module.js +5 -2
- package/dist/src/infrastructure/configuration/configuration.module.js.map +1 -1
- package/dist/src/infrastructure/database/hash.service.d.ts +1 -1
- package/dist/src/infrastructure/database/hash.service.js +5 -2
- package/dist/src/infrastructure/database/hash.service.js.map +1 -1
- package/dist/src/infrastructure/database/postgresql-notification.service.d.ts +1 -1
- package/dist/src/infrastructure/database/prisma.service.d.ts +5 -3
- package/dist/src/infrastructure/database/prisma.service.js +18 -2
- package/dist/src/infrastructure/database/prisma.service.js.map +1 -1
- package/dist/src/infrastructure/database/transaction-prisma.service.d.ts +32 -12
- package/dist/src/infrastructure/database/transaction-prisma.service.js +169 -5
- package/dist/src/infrastructure/database/transaction-prisma.service.js.map +1 -1
- package/dist/src/infrastructure/email/templates.service.js +36 -3
- package/dist/src/infrastructure/email/templates.service.js.map +1 -1
- package/dist/src/infrastructure/email/transporter.service.js +34 -1
- package/dist/src/infrastructure/email/transporter.service.js.map +1 -1
- package/dist/src/infrastructure/metrics/graphql/graphql-metrics.plugin.js +34 -1
- package/dist/src/infrastructure/metrics/graphql/graphql-metrics.plugin.js.map +1 -1
- package/dist/src/infrastructure/metrics/graphql/graphql-metrics.service.js +34 -1
- package/dist/src/infrastructure/metrics/graphql/graphql-metrics.service.js.map +1 -1
- package/dist/src/infrastructure/metrics/rest/rest-metrics.service.js +34 -1
- package/dist/src/infrastructure/metrics/rest/rest-metrics.service.js.map +1 -1
- package/dist/src/infrastructure/metrics-api/metrics-api.module.js +34 -1
- package/dist/src/infrastructure/metrics-api/metrics-api.module.js.map +1 -1
- package/dist/src/infrastructure/metrics-api/metrics.controller.js +36 -7
- package/dist/src/infrastructure/metrics-api/metrics.controller.js.map +1 -1
- package/dist/src/main.js +5 -0
- package/dist/src/main.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +27 -16
- package/dist/src/__generated__/sql/countTableDiffsBetweenRevisions.edge.js +0 -3
- package/dist/src/__generated__/sql/countTableDiffsBetweenRevisions.edge.mjs +0 -2
- package/dist/src/__generated__/sql/countTableDiffsBetweenRevisions.js +0 -3
- package/dist/src/__generated__/sql/countTableDiffsBetweenRevisions.mjs +0 -2
- package/dist/src/__generated__/sql/getTableDiffsPaginatedBetweenRevisions.edge.js +0 -3
- package/dist/src/__generated__/sql/getTableDiffsPaginatedBetweenRevisions.edge.mjs +0 -2
- package/dist/src/__generated__/sql/getTableDiffsPaginatedBetweenRevisions.js +0 -3
- package/dist/src/__generated__/sql/getTableDiffsPaginatedBetweenRevisions.mjs +0 -2
- package/dist/src/__generated__/sql/hasRowDiffsBetweenRevisions.edge.js +0 -3
- package/dist/src/__generated__/sql/hasRowDiffsBetweenRevisions.edge.mjs +0 -2
- package/dist/src/__generated__/sql/hasRowDiffsBetweenRevisions.js +0 -3
- package/dist/src/__generated__/sql/hasRowDiffsBetweenRevisions.mjs +0 -2
- package/dist/src/__generated__/sql/hasTableDiffsBetweenRevisions.edge.js +0 -3
- package/dist/src/__generated__/sql/hasTableDiffsBetweenRevisions.edge.mjs +0 -2
- package/dist/src/__generated__/sql/hasTableDiffsBetweenRevisions.js +0 -3
- package/dist/src/__generated__/sql/hasTableDiffsBetweenRevisions.mjs +0 -2
- package/dist/src/__generated__/sql/index.edge.js +0 -5
- package/dist/src/__generated__/sql/index.edge.mjs +0 -4
- package/dist/src/__generated__/sql/index.js +0 -5
- package/dist/src/__generated__/sql/index.mjs +0 -4
- package/dist/src/features/draft/commands/handlers/remove-row.handler.js.map +0 -1
- package/dist/src/features/draft/commands/impl/remove-row.command.js +0 -10
- package/dist/src/features/draft/commands/impl/remove-row.command.js.map +0 -1
- package/dist/src/features/draft/commands/types/remove-row.handler.types.js.map +0 -1
|
@@ -4,3 +4,4 @@ export * from '../../../../api/rest-api/table/dto/update-table.dto';
|
|
|
4
4
|
export * from '../../../../api/rest-api/table/dto/get-table-rows.dto';
|
|
5
5
|
export * from '../../../../api/rest-api/table/dto/create-row.dto';
|
|
6
6
|
export * from '../../../../api/rest-api/table/dto/rename-table.dto';
|
|
7
|
+
export * from '../../../../api/rest-api/table/dto/remove-rows.dto';
|
|
@@ -20,4 +20,5 @@ __exportStar(require("./update-table.dto"), exports);
|
|
|
20
20
|
__exportStar(require("./get-table-rows.dto"), exports);
|
|
21
21
|
__exportStar(require("./create-row.dto"), exports);
|
|
22
22
|
__exportStar(require("./rename-table.dto"), exports);
|
|
23
|
+
__exportStar(require("./remove-rows.dto"), exports);
|
|
23
24
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/api/rest-api/table/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kEAAyE;AACzE,kEAAyE;AACzE,qDAA4D;AAC5D,uDAA8D;AAC9D,mDAA0D;AAC1D,qDAA4D"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/api/rest-api/table/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kEAAyE;AACzE,kEAAyE;AACzE,qDAA4D;AAC5D,uDAA8D;AAC9D,mDAA0D;AAC1D,qDAA4D;AAC5D,oDAA2D"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.RemoveRowsDto = void 0;
|
|
13
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
class RemoveRowsDto {
|
|
16
|
+
}
|
|
17
|
+
exports.RemoveRowsDto = RemoveRowsDto;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, swagger_1.ApiProperty)({ type: [String], maxItems: 1000 }),
|
|
20
|
+
(0, class_validator_1.ArrayNotEmpty)({ message: 'rowIds array cannot be empty' }),
|
|
21
|
+
(0, class_validator_1.ArrayMaxSize)(1000, { message: 'rowIds array cannot exceed 1000 items' }),
|
|
22
|
+
(0, class_validator_1.IsString)({ each: true }),
|
|
23
|
+
__metadata("design:type", Array)
|
|
24
|
+
], RemoveRowsDto.prototype, "rowIds", void 0);
|
|
25
|
+
//# sourceMappingURL=remove-rows.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"remove-rows.dto.js","sourceRoot":"","sources":["../../../../../../src/api/rest-api/table/dto/remove-rows.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA8C;AAC9C,qDAAwE;AAExE,MAAa,aAAa;CAMzB;AAND,sCAMC;AADC;IAJC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC/C,IAAA,+BAAa,EAAC,EAAE,OAAO,EAAE,8BAA8B,EAAE,CAAC;IAC1D,IAAA,8BAAY,EAAC,IAAI,EAAE,EAAE,OAAO,EAAE,uCAAuC,EAAE,CAAC;IACxE,IAAA,0BAAQ,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;6CACR"}
|
|
@@ -15,4 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./create-row.response"), exports);
|
|
18
|
+
__exportStar(require("./remove-rows.response"), exports);
|
|
18
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/api/rest-api/table/model/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAiE"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/api/rest-api/table/model/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAiE;AACjE,yDAAkE"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BranchModel } from '../../../../api/rest-api/branch/model';
|
|
2
|
+
import { TableModel } from '../../../../api/rest-api/table/model/table.model';
|
|
3
|
+
export declare class RemoveRowsResponse {
|
|
4
|
+
branch: BranchModel;
|
|
5
|
+
table?: TableModel;
|
|
6
|
+
previousVersionTableId?: string;
|
|
7
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.RemoveRowsResponse = void 0;
|
|
13
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
+
const model_1 = require("../../branch/model");
|
|
15
|
+
const table_model_1 = require("./table.model");
|
|
16
|
+
class RemoveRowsResponse {
|
|
17
|
+
}
|
|
18
|
+
exports.RemoveRowsResponse = RemoveRowsResponse;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, swagger_1.ApiProperty)({ type: model_1.BranchModel }),
|
|
21
|
+
__metadata("design:type", model_1.BranchModel)
|
|
22
|
+
], RemoveRowsResponse.prototype, "branch", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, swagger_1.ApiProperty)({ type: table_model_1.TableModel, required: false }),
|
|
25
|
+
__metadata("design:type", table_model_1.TableModel)
|
|
26
|
+
], RemoveRowsResponse.prototype, "table", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, swagger_1.ApiProperty)({ required: false }),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], RemoveRowsResponse.prototype, "previousVersionTableId", void 0);
|
|
31
|
+
//# sourceMappingURL=remove-rows.response.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"remove-rows.response.js","sourceRoot":"","sources":["../../../../../../src/api/rest-api/table/model/remove-rows.response.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA8C;AAC9C,8CAA4D;AAC5D,+CAAsE;AAEtE,MAAa,kBAAkB;CAS9B;AATD,gDASC;AAPC;IADC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,mBAAW,EAAE,CAAC;8BAC3B,mBAAW;kDAAC;AAGpB;IADC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,wBAAU,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;8BAC3C,wBAAU;iDAAC;AAGnB;IADC,IAAA,qBAAW,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;kEACD"}
|
|
@@ -1,24 +1,26 @@
|
|
|
1
|
-
import { CommandBus, QueryBus } from '@nestjs/cqrs';
|
|
2
1
|
import { RenameTableResponse } from '../../../api/rest-api/table/model/rename-table.response';
|
|
2
|
+
import { DraftApiService } from '../../../features/draft/draft-api.service';
|
|
3
3
|
import { RowApiService } from '../../../features/row/row-api.service';
|
|
4
|
+
import { TableApiService } from '../../../features/table/table-api.service';
|
|
4
5
|
import { BranchModel } from '../../../api/rest-api/branch/model';
|
|
5
|
-
import { CreateRowDto, GetTableForeignKeysByDto, GetTableForeignKeysToDto, GetTableRowsDto, RenameTableDto, UpdateTableDto } from '../../../api/rest-api/table/dto';
|
|
6
|
-
import { CreateRowResponse } from '../../../api/rest-api/table/model';
|
|
6
|
+
import { CreateRowDto, GetTableForeignKeysByDto, GetTableForeignKeysToDto, GetTableRowsDto, RemoveRowsDto, RenameTableDto, UpdateTableDto } from '../../../api/rest-api/table/dto';
|
|
7
|
+
import { CreateRowResponse, RemoveRowsResponse } from '../../../api/rest-api/table/model';
|
|
7
8
|
import { TableModel } from '../../../api/rest-api/table/model/table.model';
|
|
8
9
|
import { UpdateTableResponse } from '../../../api/rest-api/table/model/update-table.response';
|
|
9
10
|
export declare class TableByIdController {
|
|
10
|
-
private readonly
|
|
11
|
-
private readonly
|
|
11
|
+
private readonly tableApi;
|
|
12
|
+
private readonly draftApi;
|
|
12
13
|
private readonly rowApi;
|
|
13
|
-
constructor(
|
|
14
|
+
constructor(tableApi: TableApiService, draftApi: DraftApiService, rowApi: RowApiService);
|
|
14
15
|
table(revisionId: string, tableId: string): Promise<TableModel>;
|
|
15
|
-
countRows(revisionId: string, tableId: string): Promise<
|
|
16
|
+
countRows(revisionId: string, tableId: string): Promise<number>;
|
|
16
17
|
rows(revisionId: string, tableId: string, { orderBy, where, ...data }: GetTableRowsDto): Promise<import("../../../features/share/pagination.interface").IPaginatedType<import("../../../api/rest-api/row/model").RowModel>>;
|
|
17
18
|
createRow(revisionId: string, tableId: string, data: CreateRowDto): Promise<CreateRowResponse>;
|
|
18
|
-
|
|
19
|
-
|
|
19
|
+
deleteRows(revisionId: string, tableId: string, dto: RemoveRowsDto): Promise<RemoveRowsResponse>;
|
|
20
|
+
schema(revisionId: string, tableId: string): Promise<import("@revisium/schema-toolkit/types").JsonSchema>;
|
|
21
|
+
countForeignKeysBy(revisionId: string, tableId: string): Promise<number>;
|
|
20
22
|
foreignKeysBy(revisionId: string, tableId: string, data: GetTableForeignKeysByDto): Promise<import("../../../features/share/pagination.interface").IPaginatedType<TableModel>>;
|
|
21
|
-
countForeignKeysTo(revisionId: string, tableId: string): Promise<
|
|
23
|
+
countForeignKeysTo(revisionId: string, tableId: string): Promise<number>;
|
|
22
24
|
foreignKeysTo(revisionId: string, tableId: string, data: GetTableForeignKeysToDto): Promise<import("../../../features/share/pagination.interface").IPaginatedType<TableModel>>;
|
|
23
25
|
deleteTable(revisionId: string, tableId: string): Promise<BranchModel>;
|
|
24
26
|
updateTable(revisionId: string, tableId: string, data: UpdateTableDto): Promise<UpdateTableResponse>;
|
|
@@ -14,7 +14,6 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.TableByIdController = void 0;
|
|
16
16
|
const common_1 = require("@nestjs/common");
|
|
17
|
-
const cqrs_1 = require("@nestjs/cqrs");
|
|
18
17
|
const swagger_1 = require("@nestjs/swagger");
|
|
19
18
|
const mapToPrismaOrderBy_1 = require("../../utils/mapToPrismaOrderBy");
|
|
20
19
|
const consts_1 = require("../../../features/auth/consts");
|
|
@@ -22,11 +21,9 @@ const http_jwt_auth_guard_service_1 = require("../../../features/auth/guards/jwt
|
|
|
22
21
|
const optional_http_jwt_auth_guard_service_1 = require("../../../features/auth/guards/jwt/optional-http-jwt-auth-guard.service");
|
|
23
22
|
const permission_params_1 = require("../../../features/auth/guards/permission-params");
|
|
24
23
|
const project_guard_1 = require("../../../features/auth/guards/project.guard");
|
|
25
|
-
const
|
|
26
|
-
const api_remove_table_command_1 = require("../../../features/draft/commands/impl/api-remove-table.command");
|
|
27
|
-
const api_rename_table_command_1 = require("../../../features/draft/commands/impl/api-rename-table.command");
|
|
28
|
-
const api_update_table_command_1 = require("../../../features/draft/commands/impl/api-update-table.command");
|
|
24
|
+
const draft_api_service_1 = require("../../../features/draft/draft-api.service");
|
|
29
25
|
const row_api_service_1 = require("../../../features/row/row-api.service");
|
|
26
|
+
const table_api_service_1 = require("../../../features/table/table-api.service");
|
|
30
27
|
const rest_metrics_interceptor_1 = require("../../../infrastructure/metrics/rest/rest-metrics.interceptor");
|
|
31
28
|
const model_1 = require("../branch/model");
|
|
32
29
|
const model_2 = require("../row/model");
|
|
@@ -37,12 +34,10 @@ const dto_1 = require("./dto");
|
|
|
37
34
|
const model_3 = require("./model");
|
|
38
35
|
const table_model_1 = require("./model/table.model");
|
|
39
36
|
const update_table_response_1 = require("./model/update-table.response");
|
|
40
|
-
const impl_1 = require("../../../features/table/queries/impl");
|
|
41
|
-
const get_table_query_1 = require("../../../features/table/queries/impl/get-table.query");
|
|
42
37
|
let TableByIdController = class TableByIdController {
|
|
43
|
-
constructor(
|
|
44
|
-
this.
|
|
45
|
-
this.
|
|
38
|
+
constructor(tableApi, draftApi, rowApi) {
|
|
39
|
+
this.tableApi = tableApi;
|
|
40
|
+
this.draftApi = draftApi;
|
|
46
41
|
this.rowApi = rowApi;
|
|
47
42
|
}
|
|
48
43
|
async table(revisionId, tableId) {
|
|
@@ -50,51 +45,85 @@ let TableByIdController = class TableByIdController {
|
|
|
50
45
|
}
|
|
51
46
|
async countRows(revisionId, tableId) {
|
|
52
47
|
const table = await this.resolveTable(revisionId, tableId);
|
|
53
|
-
return this.
|
|
48
|
+
return this.tableApi.getCountRowsInTable({
|
|
49
|
+
tableVersionId: table.versionId,
|
|
50
|
+
});
|
|
54
51
|
}
|
|
55
52
|
async rows(revisionId, tableId, { orderBy, where, ...data }) {
|
|
56
53
|
const prismaOrderBy = (0, mapToPrismaOrderBy_1.mapToPrismaOrderBy)(orderBy);
|
|
57
54
|
return (0, transformFromPrismaToRowModel_1.transformFromPaginatedPrismaToRowModel)(await this.rowApi.getRows({
|
|
55
|
+
...data,
|
|
58
56
|
revisionId,
|
|
59
57
|
tableId,
|
|
60
|
-
...data,
|
|
61
58
|
orderBy: prismaOrderBy,
|
|
62
59
|
where,
|
|
63
60
|
}));
|
|
64
61
|
}
|
|
65
62
|
async createRow(revisionId, tableId, data) {
|
|
66
|
-
const result = await this.
|
|
63
|
+
const result = await this.draftApi.apiCreateRow({
|
|
64
|
+
...data,
|
|
67
65
|
revisionId,
|
|
68
66
|
tableId,
|
|
69
|
-
|
|
70
|
-
}));
|
|
67
|
+
});
|
|
71
68
|
return {
|
|
72
69
|
table: (0, transformFromPrismaToTableModel_1.transformFromPrismaToTableModel)(result.table),
|
|
73
70
|
previousVersionTableId: result.previousVersionTableId,
|
|
74
71
|
row: (0, transformFromPrismaToRowModel_1.transformFromPrismaToRowModel)(result.row),
|
|
75
72
|
};
|
|
76
73
|
}
|
|
74
|
+
async deleteRows(revisionId, tableId, dto) {
|
|
75
|
+
const result = await this.draftApi.apiRemoveRows({
|
|
76
|
+
revisionId,
|
|
77
|
+
tableId,
|
|
78
|
+
rowIds: dto.rowIds,
|
|
79
|
+
});
|
|
80
|
+
return {
|
|
81
|
+
branch: (0, transformFromPrismaToBranchModel_1.transformFromPrismaToBranchModel)(result.branch),
|
|
82
|
+
table: result.table
|
|
83
|
+
? (0, transformFromPrismaToTableModel_1.transformFromPrismaToTableModel)(result.table)
|
|
84
|
+
: undefined,
|
|
85
|
+
previousVersionTableId: result.previousVersionTableId,
|
|
86
|
+
};
|
|
87
|
+
}
|
|
77
88
|
async schema(revisionId, tableId) {
|
|
78
|
-
return this.
|
|
89
|
+
return this.tableApi.resolveTableSchema({ revisionId, tableId });
|
|
79
90
|
}
|
|
80
91
|
async countForeignKeysBy(revisionId, tableId) {
|
|
81
|
-
return this.
|
|
92
|
+
return this.tableApi.resolveTableCountForeignKeysBy({
|
|
93
|
+
revisionId,
|
|
94
|
+
tableId,
|
|
95
|
+
});
|
|
82
96
|
}
|
|
83
97
|
async foreignKeysBy(revisionId, tableId, data) {
|
|
84
|
-
return (0, transformFromPrismaToTableModel_1.transformFromPaginatedPrismaToTableModel)(await this.
|
|
98
|
+
return (0, transformFromPrismaToTableModel_1.transformFromPaginatedPrismaToTableModel)(await this.tableApi.resolveTableForeignKeysBy({
|
|
99
|
+
...data,
|
|
100
|
+
revisionId,
|
|
101
|
+
tableId,
|
|
102
|
+
}));
|
|
85
103
|
}
|
|
86
104
|
async countForeignKeysTo(revisionId, tableId) {
|
|
87
|
-
return this.
|
|
105
|
+
return this.tableApi.resolveTableCountForeignKeysTo({
|
|
106
|
+
revisionId,
|
|
107
|
+
tableId,
|
|
108
|
+
});
|
|
88
109
|
}
|
|
89
110
|
async foreignKeysTo(revisionId, tableId, data) {
|
|
90
|
-
return (0, transformFromPrismaToTableModel_1.transformFromPaginatedPrismaToTableModel)(await this.
|
|
111
|
+
return (0, transformFromPrismaToTableModel_1.transformFromPaginatedPrismaToTableModel)(await this.tableApi.resolveTableForeignKeysTo({
|
|
112
|
+
...data,
|
|
113
|
+
revisionId,
|
|
114
|
+
tableId,
|
|
115
|
+
}));
|
|
91
116
|
}
|
|
92
117
|
async deleteTable(revisionId, tableId) {
|
|
93
|
-
const result = await this.
|
|
118
|
+
const result = await this.draftApi.apiRemoveTable({ revisionId, tableId });
|
|
94
119
|
return (0, transformFromPrismaToBranchModel_1.transformFromPrismaToBranchModel)(result.branch);
|
|
95
120
|
}
|
|
96
121
|
async updateTable(revisionId, tableId, data) {
|
|
97
|
-
const result = await this.
|
|
122
|
+
const result = await this.draftApi.apiUpdateTable({
|
|
123
|
+
revisionId,
|
|
124
|
+
tableId,
|
|
125
|
+
patches: data.patches,
|
|
126
|
+
});
|
|
98
127
|
return {
|
|
99
128
|
table: result.table
|
|
100
129
|
? (0, transformFromPrismaToTableModel_1.transformFromPrismaToTableModel)(result.table)
|
|
@@ -103,11 +132,11 @@ let TableByIdController = class TableByIdController {
|
|
|
103
132
|
};
|
|
104
133
|
}
|
|
105
134
|
async renameTable(revisionId, tableId, data) {
|
|
106
|
-
const result = await this.
|
|
135
|
+
const result = await this.draftApi.apiRenameTable({
|
|
107
136
|
revisionId,
|
|
108
137
|
tableId,
|
|
109
138
|
nextTableId: data.nextTableId,
|
|
110
|
-
})
|
|
139
|
+
});
|
|
111
140
|
return {
|
|
112
141
|
table: result.table
|
|
113
142
|
? (0, transformFromPrismaToTableModel_1.transformFromPrismaToTableModel)(result.table)
|
|
@@ -116,7 +145,7 @@ let TableByIdController = class TableByIdController {
|
|
|
116
145
|
};
|
|
117
146
|
}
|
|
118
147
|
resolveTable(revisionId, tableId) {
|
|
119
|
-
return this.
|
|
148
|
+
return this.tableApi.getTable({ revisionId, tableId });
|
|
120
149
|
}
|
|
121
150
|
};
|
|
122
151
|
exports.TableByIdController = TableByIdController;
|
|
@@ -177,6 +206,23 @@ __decorate([
|
|
|
177
206
|
__metadata("design:paramtypes", [String, String, dto_1.CreateRowDto]),
|
|
178
207
|
__metadata("design:returntype", Promise)
|
|
179
208
|
], TableByIdController.prototype, "createRow", null);
|
|
209
|
+
__decorate([
|
|
210
|
+
(0, common_1.UseGuards)(http_jwt_auth_guard_service_1.HttpJwtAuthGuard, project_guard_1.HTTPProjectGuard),
|
|
211
|
+
(0, permission_params_1.PermissionParams)({
|
|
212
|
+
action: consts_1.PermissionAction.delete,
|
|
213
|
+
subject: consts_1.PermissionSubject.Row,
|
|
214
|
+
}),
|
|
215
|
+
(0, common_1.Delete)('rows'),
|
|
216
|
+
(0, swagger_1.ApiOperation)({ operationId: 'deleteRows' }),
|
|
217
|
+
(0, swagger_1.ApiBody)({ type: dto_1.RemoveRowsDto }),
|
|
218
|
+
(0, swagger_1.ApiOkResponse)({ type: model_3.RemoveRowsResponse }),
|
|
219
|
+
__param(0, (0, common_1.Param)('revisionId')),
|
|
220
|
+
__param(1, (0, common_1.Param)('tableId')),
|
|
221
|
+
__param(2, (0, common_1.Body)()),
|
|
222
|
+
__metadata("design:type", Function),
|
|
223
|
+
__metadata("design:paramtypes", [String, String, dto_1.RemoveRowsDto]),
|
|
224
|
+
__metadata("design:returntype", Promise)
|
|
225
|
+
], TableByIdController.prototype, "deleteRows", null);
|
|
180
226
|
__decorate([
|
|
181
227
|
(0, common_1.UseGuards)(optional_http_jwt_auth_guard_service_1.OptionalHttpJwtAuthGuard, project_guard_1.HTTPProjectGuard),
|
|
182
228
|
(0, common_1.Get)('schema'),
|
|
@@ -298,8 +344,8 @@ exports.TableByIdController = TableByIdController = __decorate([
|
|
|
298
344
|
(0, common_1.Controller)('revision/:revisionId/tables/:tableId'),
|
|
299
345
|
(0, swagger_1.ApiBearerAuth)('access-token'),
|
|
300
346
|
(0, swagger_1.ApiTags)('Table'),
|
|
301
|
-
__metadata("design:paramtypes", [
|
|
302
|
-
|
|
347
|
+
__metadata("design:paramtypes", [table_api_service_1.TableApiService,
|
|
348
|
+
draft_api_service_1.DraftApiService,
|
|
303
349
|
row_api_service_1.RowApiService])
|
|
304
350
|
], TableByIdController);
|
|
305
351
|
//# sourceMappingURL=table-by-id.controller.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table-by-id.controller.js","sourceRoot":"","sources":["../../../../../src/api/rest-api/table/table-by-id.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAewB;AACxB,
|
|
1
|
+
{"version":3,"file":"table-by-id.controller.js","sourceRoot":"","sources":["../../../../../src/api/rest-api/table/table-by-id.controller.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { QueryBus } from '@nestjs/cqrs';
|
|
2
1
|
import { IAuthUser } from '../../../features/auth/types';
|
|
3
|
-
import {
|
|
2
|
+
import { UserApiService } from '../../../features/user/user-api.service';
|
|
4
3
|
export declare class UserController {
|
|
5
|
-
private readonly
|
|
6
|
-
constructor(
|
|
4
|
+
private readonly userApiService;
|
|
5
|
+
constructor(userApiService: UserApiService);
|
|
7
6
|
me(req: {
|
|
8
7
|
user: IAuthUser;
|
|
9
|
-
}): Promise<GetUserQueryReturnType>;
|
|
8
|
+
}): Promise<import("../../../features/user/queries/impl").GetUserQueryReturnType>;
|
|
10
9
|
}
|
|
@@ -14,18 +14,17 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.UserController = void 0;
|
|
16
16
|
const common_1 = require("@nestjs/common");
|
|
17
|
-
const cqrs_1 = require("@nestjs/cqrs");
|
|
18
17
|
const swagger_1 = require("@nestjs/swagger");
|
|
19
18
|
const http_jwt_auth_guard_service_1 = require("../../../features/auth/guards/jwt/http-jwt-auth-guard.service");
|
|
19
|
+
const user_api_service_1 = require("../../../features/user/user-api.service");
|
|
20
20
|
const rest_metrics_interceptor_1 = require("../../../infrastructure/metrics/rest/rest-metrics.interceptor");
|
|
21
21
|
const model_1 = require("./model");
|
|
22
|
-
const impl_1 = require("../../../features/user/queries/impl");
|
|
23
22
|
let UserController = class UserController {
|
|
24
|
-
constructor(
|
|
25
|
-
this.
|
|
23
|
+
constructor(userApiService) {
|
|
24
|
+
this.userApiService = userApiService;
|
|
26
25
|
}
|
|
27
26
|
me(req) {
|
|
28
|
-
return this.
|
|
27
|
+
return this.userApiService.getUser({ userId: req.user.userId });
|
|
29
28
|
}
|
|
30
29
|
};
|
|
31
30
|
exports.UserController = UserController;
|
|
@@ -44,6 +43,6 @@ exports.UserController = UserController = __decorate([
|
|
|
44
43
|
(0, swagger_1.ApiTags)('User'),
|
|
45
44
|
(0, swagger_1.ApiBearerAuth)('access-token'),
|
|
46
45
|
(0, common_1.Controller)('user'),
|
|
47
|
-
__metadata("design:paramtypes", [
|
|
46
|
+
__metadata("design:paramtypes", [user_api_service_1.UserApiService])
|
|
48
47
|
], UserController);
|
|
49
48
|
//# sourceMappingURL=user.controller.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.controller.js","sourceRoot":"","sources":["../../../../../src/api/rest-api/user/user.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAMwB;AACxB,
|
|
1
|
+
{"version":3,"file":"user.controller.js","sourceRoot":"","sources":["../../../../../src/api/rest-api/user/user.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAMwB;AACxB,6CAKyB;AACzB,+GAA4F;AAE5F,8EAAoE;AACpE,4GAAkG;AAClG,mCAAwD;AAMjD,IAAM,cAAc,GAApB,MAAM,cAAc;IACzB,YAA6B,cAA8B;QAA9B,mBAAc,GAAd,cAAc,CAAgB;IAAG,CAAC;IAM/D,EAAE,CAAY,GAAwB;QACpC,OAAO,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,GAAG,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC;IAClE,CAAC;CACF,CAAA;AAVY,wCAAc;AAOzB;IAJC,IAAA,kBAAS,EAAC,8CAAgB,CAAC;IAC3B,IAAA,YAAG,EAAC,IAAI,CAAC;IACT,IAAA,sBAAY,EAAC,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC;IACnC,IAAA,uBAAa,EAAC,EAAE,IAAI,EAAE,iBAAS,EAAE,CAAC;IAC/B,WAAA,IAAA,gBAAO,GAAE,CAAA;;;;wCAEZ;yBATU,cAAc;IAJ1B,IAAA,wBAAe,EAAC,iDAAsB,CAAC;IACvC,IAAA,iBAAO,EAAC,MAAM,CAAC;IACf,IAAA,uBAAa,EAAC,cAAc,CAAC;IAC7B,IAAA,mBAAU,EAAC,MAAM,CAAC;qCAE4B,iCAAc;GADhD,cAAc,CAU1B"}
|
|
@@ -24,12 +24,14 @@ const email_module_1 = require("../infrastructure/email/email.module");
|
|
|
24
24
|
const endpoint_module_1 = require("../features/endpoint/endpoint.module");
|
|
25
25
|
const graphql_api_module_1 = require("../api/graphql-api/graphql-api.module");
|
|
26
26
|
const health_module_1 = require("../infrastructure/health/health.module");
|
|
27
|
+
const mcp_module_1 = require("../api/mcp-api/mcp.module");
|
|
27
28
|
const metrics_module_1 = require("../infrastructure/metrics/metrics.module");
|
|
28
29
|
const notification_module_1 = require("../infrastructure/notification/notification.module");
|
|
29
30
|
const organization_module_1 = require("../features/organization/organization.module");
|
|
30
31
|
const project_module_1 = require("../features/project/project.module");
|
|
31
32
|
const rest_api_module_1 = require("../api/rest-api/rest-api.module");
|
|
32
33
|
const revision_module_1 = require("../features/revision/revision.module");
|
|
34
|
+
const role_module_1 = require("../features/role/role.module");
|
|
33
35
|
const row_module_1 = require("../features/row/row.module");
|
|
34
36
|
const table_module_1 = require("../features/table/table.module");
|
|
35
37
|
const user_module_1 = require("../features/user/user.module");
|
|
@@ -61,11 +63,13 @@ let CoreModule = CoreModule_1 = class CoreModule {
|
|
|
61
63
|
project_module_1.ProjectModule,
|
|
62
64
|
branch_module_1.BranchModule,
|
|
63
65
|
revision_module_1.RevisionModule,
|
|
66
|
+
role_module_1.RoleModule,
|
|
64
67
|
table_module_1.TableModule,
|
|
65
68
|
row_module_1.RowModule,
|
|
66
69
|
draft_module_1.DraftModule,
|
|
67
70
|
endpoint_module_1.EndpointModule,
|
|
68
71
|
metrics_module_1.MetricsModule,
|
|
72
|
+
mcp_module_1.McpModule,
|
|
69
73
|
cache_1.RevisiumCacheModule.forRootAsync(),
|
|
70
74
|
],
|
|
71
75
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core.module.js","sourceRoot":"","sources":["../../../src/core/core.module.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,2CAAuD;AACvD,2CAA8C;AAC9C,uCAA4C;AAC5C,+CAAkD;AAElD,6DAA+D;AAE/D,8DAA2D;AAC3D,oEAAiE;AACjE,mDAA+D;AAC/D,uEAAoE;AACpE,+FAA4F;AAC5F,gFAA6E;AAC7E,iEAA8D;AAC9D,uEAAoE;AACpE,0EAAuE;AACvE,8EAA0E;AAC1E,0EAAuE;AACvE,6EAA0E;AAC1E,4FAAyF;AACzF,sFAAmF;AACnF,uEAAoE;AACpE,qEAAiE;AACjE,0EAAuE;AACvE,2DAAwD;AACxD,iEAA8D;AAC9D,8DAA2D;AAGpD,IAAM,UAAU,kBAAhB,MAAM,UAAU;IACrB,MAAM,CAAC,OAAO,CAAC,OAAmB;QAChC,OAAO;YACL,MAAM,EAAE,YAAU;YAClB,OAAO,EAAE;gBACP,qCAAgB,CAAC,OAAO,CAAC,OAAO,CAAC;gBACjC,wBAAU;gBACV,qBAAY,CAAC,OAAO,EAAE;gBACtB,gCAAc;gBACd,qCAAgB;gBAChB,+BAAa;gBACb,mBAAY,CAAC,QAAQ,CAAC;oBACpB;wBACE,IAAI,EAAE,MAAM;wBACZ,MAAM,EAAE,+BAAa;qBACtB;iBACF,CAAC;gBACF,yBAAc,CAAC,OAAO,EAAE;gBACxB,0CAAmB;gBACnB,0BAAW;gBACX,wCAAkB;gBAClB,4BAAY;gBACZ,0BAAW;gBACX,wBAAU;gBACV,wCAAkB;gBAClB,8BAAa;gBACb,4BAAY;gBACZ,gCAAc;gBACd,0BAAW;gBACX,sBAAS;gBACT,0BAAW;gBACX,gCAAc;gBACd,8BAAa;gBACb,2BAAmB,CAAC,YAAY,EAAE;aACnC;SACF,CAAC;IACJ,CAAC;CACF,CAAA;
|
|
1
|
+
{"version":3,"file":"core.module.js","sourceRoot":"","sources":["../../../src/core/core.module.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,2CAAuD;AACvD,2CAA8C;AAC9C,uCAA4C;AAC5C,+CAAkD;AAElD,6DAA+D;AAE/D,8DAA2D;AAC3D,oEAAiE;AACjE,mDAA+D;AAC/D,uEAAoE;AACpE,+FAA4F;AAC5F,gFAA6E;AAC7E,iEAA8D;AAC9D,uEAAoE;AACpE,0EAAuE;AACvE,8EAA0E;AAC1E,0EAAuE;AACvE,0DAAuD;AACvD,6EAA0E;AAC1E,4FAAyF;AACzF,sFAAmF;AACnF,uEAAoE;AACpE,qEAAiE;AACjE,0EAAuE;AACvE,8DAA2D;AAC3D,2DAAwD;AACxD,iEAA8D;AAC9D,8DAA2D;AAGpD,IAAM,UAAU,kBAAhB,MAAM,UAAU;IACrB,MAAM,CAAC,OAAO,CAAC,OAAmB;QAChC,OAAO;YACL,MAAM,EAAE,YAAU;YAClB,OAAO,EAAE;gBACP,qCAAgB,CAAC,OAAO,CAAC,OAAO,CAAC;gBACjC,wBAAU;gBACV,qBAAY,CAAC,OAAO,EAAE;gBACtB,gCAAc;gBACd,qCAAgB;gBAChB,+BAAa;gBACb,mBAAY,CAAC,QAAQ,CAAC;oBACpB;wBACE,IAAI,EAAE,MAAM;wBACZ,MAAM,EAAE,+BAAa;qBACtB;iBACF,CAAC;gBACF,yBAAc,CAAC,OAAO,EAAE;gBACxB,0CAAmB;gBACnB,0BAAW;gBACX,wCAAkB;gBAClB,4BAAY;gBACZ,0BAAW;gBACX,wBAAU;gBACV,wCAAkB;gBAClB,8BAAa;gBACb,4BAAY;gBACZ,gCAAc;gBACd,wBAAU;gBACV,0BAAW;gBACX,sBAAS;gBACT,0BAAW;gBACX,gCAAc;gBACd,8BAAa;gBACb,sBAAS;gBACT,2BAAmB,CAAC,YAAY,EAAE;aACnC;SACF,CAAC;IACJ,CAAC;CACF,CAAA;AAvCY,gCAAU;qBAAV,UAAU;IADtB,IAAA,eAAM,EAAC,EAAE,CAAC;GACE,UAAU,CAuCtB"}
|
|
@@ -47,7 +47,13 @@ exports.AuthModule = AuthModule = __decorate([
|
|
|
47
47
|
casl_ability_factory_1.CaslAbilityFactory,
|
|
48
48
|
...commands_1.AUTH_COMMANDS,
|
|
49
49
|
],
|
|
50
|
-
exports: [
|
|
50
|
+
exports: [
|
|
51
|
+
auth_service_1.AuthService,
|
|
52
|
+
google_oauth_service_1.GoogleOauthService,
|
|
53
|
+
github_oauth_service_1.GitHubAuthService,
|
|
54
|
+
auth_api_service_1.AuthApiService,
|
|
55
|
+
jwt_secret_service_1.JwtSecretService,
|
|
56
|
+
],
|
|
51
57
|
})
|
|
52
58
|
], AuthModule);
|
|
53
59
|
//# sourceMappingURL=auth.module.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.module.js","sourceRoot":"","sources":["../../../../src/features/auth/auth.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,2CAA8C;AAC9C,uCAA0C;AAC1C,qCAAwC;AACxC,+CAAkD;AAClD,iDAA6D;AAC7D,iEAA4E;AAC5E,yCAA2D;AAC3D,kEAA6E;AAC7E,iEAA2E;AAC3E,iEAA4E;AAC5E,6DAAwE;AACxE,0DAAsE;AACtE,mFAA6E;AAC7E,0EAAoE;
|
|
1
|
+
{"version":3,"file":"auth.module.js","sourceRoot":"","sources":["../../../../src/features/auth/auth.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,2CAA8C;AAC9C,uCAA0C;AAC1C,qCAAwC;AACxC,+CAAkD;AAClD,iDAA6D;AAC7D,iEAA4E;AAC5E,yCAA2D;AAC3D,kEAA6E;AAC7E,iEAA2E;AAC3E,iEAA4E;AAC5E,6DAAwE;AACxE,0DAAsE;AACtE,mFAA6E;AAC7E,0EAAoE;AA+B7D,IAAM,UAAU,GAAhB,MAAM,UAAU;CAAG,CAAA;AAAb,gCAAU;qBAAV,UAAU;IA7BtB,IAAA,eAAM,EAAC;QACN,OAAO,EAAE;YACP,iBAAU;YACV,gCAAc;YACd,qBAAY;YACZ,yBAAc;YACd,eAAS,CAAC,QAAQ,CAAC;gBACjB,MAAM,EAAE,IAAI;aACb,CAAC;YACF,0BAAW;SACZ;QACD,SAAS,EAAE;YACT,iCAAc;YACd,0BAAW;YACX,0BAAW;YACX,qCAAgB;YAChB,yCAAkB;YAClB,wCAAiB;YACjB,yCAAkB;YAClB,GAAG,wBAAa;SACjB;QACD,OAAO,EAAE;YACP,0BAAW;YACX,yCAAkB;YAClB,wCAAiB;YACjB,iCAAc;YACd,qCAAgB;SACjB;KACF,CAAC;GACW,UAAU,CAAG"}
|
|
@@ -1,10 +1,43 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
2
18
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
19
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
20
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
21
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
22
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
23
|
};
|
|
24
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
25
|
+
var ownKeys = function(o) {
|
|
26
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
27
|
+
var ar = [];
|
|
28
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
29
|
+
return ar;
|
|
30
|
+
};
|
|
31
|
+
return ownKeys(o);
|
|
32
|
+
};
|
|
33
|
+
return function (mod) {
|
|
34
|
+
if (mod && mod.__esModule) return mod;
|
|
35
|
+
var result = {};
|
|
36
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
37
|
+
__setModuleDefault(result, mod);
|
|
38
|
+
return result;
|
|
39
|
+
};
|
|
40
|
+
})();
|
|
8
41
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
42
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
43
|
};
|
|
@@ -12,8 +45,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
45
|
exports.AuthService = void 0;
|
|
13
46
|
const common_1 = require("@nestjs/common");
|
|
14
47
|
const jwt_1 = require("@nestjs/jwt");
|
|
15
|
-
const bcrypt = require("bcrypt");
|
|
16
|
-
const crypto = require("node:crypto");
|
|
48
|
+
const bcrypt = __importStar(require("bcrypt"));
|
|
49
|
+
const crypto = __importStar(require("node:crypto"));
|
|
17
50
|
const jwt_secret_service_1 = require("./jwt-secret.service");
|
|
18
51
|
let AuthService = class AuthService {
|
|
19
52
|
constructor(jwtService, jwtSecret) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.service.js","sourceRoot":"","sources":["../../../../src/features/auth/auth.service.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"auth.service.js","sourceRoot":"","sources":["../../../../src/features/auth/auth.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA4C;AAC5C,qCAAyC;AACzC,+CAAiC;AACjC,oDAAsC;AACtC,6DAAwE;AAGjE,IAAM,WAAW,GAAjB,MAAM,WAAW;IACtB,YACmB,UAAsB,EACtB,SAA2B;QAD3B,eAAU,GAAV,UAAU,CAAY;QACtB,cAAS,GAAT,SAAS,CAAkB;IAC3C,CAAC;IAEG,KAAK,CAAC,OAIZ;QAEC,OAAO,IAAI,CAAC,UAAU,CAAC,IAAI,CACzB,EAAE,GAAG,OAAO,EAAE,EACd,EAAE,MAAM,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,CAClC,CAAC;IACJ,CAAC;IAEM,YAAY,CAAC,QAAgB;QAClC,OAAO,MAAM,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;IACnC,CAAC;IAEM,eAAe,CAAC,QAAgB,EAAE,IAAY;QACnD,OAAO,MAAM,CAAC,OAAO,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;IACxC,CAAC;IAEM,wBAAwB;QAC7B,OAAO,MAAM,CAAC,UAAU,EAAE,CAAC,QAAQ,EAAE,CAAC;IACxC,CAAC;CACF,CAAA;AA7BY,kCAAW;sBAAX,WAAW;IADvB,IAAA,mBAAU,GAAE;qCAGoB,gBAAU;QACX,qCAAgB;GAHnC,WAAW,CA6BvB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CommandBus } from '@nestjs/cqrs';
|
|
2
|
-
import { CheckOrganizationPermissionCommandData, CheckProjectPermissionCommandData, CheckSystemPermissionCommandData } from '../../../features/auth/commands/impl';
|
|
2
|
+
import { CheckOrganizationPermissionCommandData, CheckProjectPermissionCommandData, CheckSystemPermissionCommandData, ConfirmEmailCodeCommandData, ConfirmEmailCodeCommandReturnType, CreateUserCommandData, LoginCommandData, LoginCommandReturnType, LoginGithubCommandData, LoginGithubCommandReturnType, LoginGoogleCommandData, LoginGoogleCommandReturnType, SignUpCommandData } from '../../../features/auth/commands/impl';
|
|
3
3
|
import { AuthCacheService } from '../../../infrastructure/cache/services/auth-cache.service';
|
|
4
4
|
export declare class AuthApiService {
|
|
5
5
|
private readonly commandBus;
|
|
@@ -8,4 +8,10 @@ export declare class AuthApiService {
|
|
|
8
8
|
checkSystemPermission(data: CheckSystemPermissionCommandData): Promise<boolean>;
|
|
9
9
|
checkOrganizationPermission(data: CheckOrganizationPermissionCommandData): Promise<boolean>;
|
|
10
10
|
checkProjectPermission(data: CheckProjectPermissionCommandData): Promise<boolean>;
|
|
11
|
+
login(data: LoginCommandData): Promise<LoginCommandReturnType>;
|
|
12
|
+
loginGoogle(data: LoginGoogleCommandData): Promise<LoginGoogleCommandReturnType>;
|
|
13
|
+
loginGithub(data: LoginGithubCommandData): Promise<LoginGithubCommandReturnType>;
|
|
14
|
+
createUser(data: CreateUserCommandData): Promise<string>;
|
|
15
|
+
signUp(data: SignUpCommandData): Promise<boolean>;
|
|
16
|
+
confirmEmailCode(data: ConfirmEmailCodeCommandData): Promise<ConfirmEmailCodeCommandReturnType>;
|
|
11
17
|
}
|