@revisium/core 0.9.2 → 0.9.4
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/package.json +5 -2
- package/dist/prisma/schema.prisma +1 -1
- package/dist/src/__tests__/utils/createMocks.d.ts +5 -5
- package/dist/src/__tests__/utils/implementIdService.d.ts +1 -1
- package/dist/src/__tests__/utils/rowMocks.d.ts +1 -1
- package/dist/src/__tests__/utils/schema/schema.mocks.d.ts +2 -2
- package/dist/src/admin/admin-module.options.d.ts +3 -0
- package/dist/src/admin/admin-module.options.js +3 -0
- package/dist/src/admin/admin-module.options.js.map +1 -0
- package/dist/src/admin/admin.module.d.ts +6 -0
- package/dist/src/admin/admin.module.js +46 -0
- package/dist/src/admin/admin.module.js.map +1 -0
- package/dist/src/admin/envjs.controller.d.ts +6 -0
- package/dist/src/admin/envjs.controller.js +40 -0
- package/dist/src/admin/envjs.controller.js.map +1 -0
- package/dist/src/admin/index.d.ts +0 -0
- package/dist/src/admin/index.js +1 -0
- package/dist/src/admin/index.js.map +1 -0
- package/dist/src/app.module.js +2 -1
- package/dist/src/app.module.js.map +1 -1
- package/dist/src/auth/auth.service.d.ts +1 -1
- package/dist/src/auth/casl-ability.factory.d.ts +2 -2
- package/dist/src/auth/commands/handlers/check-organization-permission.handler.d.ts +3 -3
- package/dist/src/auth/commands/handlers/check-project-permission.handler.d.ts +3 -3
- package/dist/src/auth/commands/handlers/check-system-permission.handler.d.ts +3 -3
- package/dist/src/auth/commands/handlers/confirm-email-code.handler.d.ts +1 -1
- package/dist/src/auth/commands/handlers/create-user.handler.d.ts +4 -4
- package/dist/src/auth/commands/handlers/login-github.handler.d.ts +4 -4
- package/dist/src/auth/commands/handlers/login-google.handler.d.ts +4 -4
- package/dist/src/auth/commands/handlers/login.handler.d.ts +3 -3
- package/dist/src/auth/commands/handlers/sign-up.handler.d.ts +1 -1
- package/dist/src/auth/commands/impl/check-organization-permission.command.d.ts +1 -1
- package/dist/src/auth/commands/impl/check-project-permission.command.d.ts +1 -1
- package/dist/src/auth/commands/impl/check-system-permission.command.d.ts +1 -1
- package/dist/src/auth/commands/impl/create-user.command.d.ts +1 -1
- package/dist/src/auth/commands/index.d.ts +1 -1
- package/dist/src/auth/guards/base-persmission.guard.d.ts +2 -2
- package/dist/src/auth/guards/organization.guard.d.ts +3 -3
- package/dist/src/auth/guards/permission-params.d.ts +1 -1
- package/dist/src/auth/guards/project.guard.d.ts +3 -3
- package/dist/src/auth/guards/system.guard.d.ts +3 -3
- package/dist/src/auth/strategy/jwt.strategy.d.ts +2 -2
- package/dist/src/auth/utils.d.ts +1 -1
- package/dist/src/branch/commands/handlers/api-create-branch-by-revision-id.handler.d.ts +1 -1
- package/dist/src/branch/commands/handlers/create-branch-by-revision-id.handler.d.ts +3 -3
- package/dist/src/branch/commands/handlers/index.d.ts +2 -2
- package/dist/src/branch/quieries/handlers/get-branch-by-id.handler.d.ts +3 -3
- package/dist/src/branch/quieries/handlers/get-branch.handler.d.ts +4 -4
- package/dist/src/branch/quieries/handlers/get-branches.handler.d.ts +3 -3
- package/dist/src/branch/quieries/handlers/get-draft-revision.handler.d.ts +3 -3
- package/dist/src/branch/quieries/handlers/get-head-revision.handler.d.ts +3 -3
- package/dist/src/branch/quieries/handlers/get-project-by-branch.handler.d.ts +2 -2
- package/dist/src/branch/quieries/handlers/get-revisions-by-branch-id.handler.d.ts +2 -2
- package/dist/src/branch/quieries/handlers/get-start-revision.handler.d.ts +3 -3
- package/dist/src/branch/quieries/handlers/get-touched-by-branch-id.handler.d.ts +3 -3
- package/dist/src/branch/quieries/handlers/index.d.ts +10 -10
- package/dist/src/branch/quieries/handlers/resolve-parent-branch-by-branch.handler.d.ts +2 -2
- package/dist/src/clean/commands/handlers/clean-rows.handler.d.ts +2 -2
- package/dist/src/clean/commands/handlers/clean-tables.handler.d.ts +2 -2
- package/dist/src/clean/commands/handlers/index.d.ts +2 -2
- package/dist/src/configuration/queries/handlers/get-configuration.handler.d.ts +4 -4
- package/dist/src/configuration/queries/index.d.ts +1 -1
- package/dist/src/core/core.module.js +2 -0
- package/dist/src/core/core.module.js.map +1 -1
- package/dist/src/database/transaction-prisma.service.d.ts +2 -2
- package/dist/src/draft/commands/handlers/api-create-revision.handler.d.ts +3 -3
- package/dist/src/draft/commands/handlers/api-create-row.handler.d.ts +4 -4
- package/dist/src/draft/commands/handlers/api-create-table.handler.d.ts +4 -4
- package/dist/src/draft/commands/handlers/api-remove-row.handler.d.ts +4 -4
- package/dist/src/draft/commands/handlers/api-remove-table.handler.d.ts +4 -4
- package/dist/src/draft/commands/handlers/api-revert-changes.handler.d.ts +3 -3
- package/dist/src/draft/commands/handlers/api-update-row.handler.d.ts +4 -4
- package/dist/src/draft/commands/handlers/api-update-table.handler.d.ts +4 -4
- package/dist/src/draft/commands/handlers/create-revision.handler.d.ts +8 -8
- package/dist/src/draft/commands/handlers/create-row.handler.d.ts +12 -12
- package/dist/src/draft/commands/handlers/create-table.handler.d.ts +11 -11
- package/dist/src/draft/commands/handlers/index.d.ts +24 -24
- package/dist/src/draft/commands/handlers/remove-row.handler.d.ts +12 -12
- package/dist/src/draft/commands/handlers/remove-table.handler.d.ts +11 -11
- package/dist/src/draft/commands/handlers/revert-changes.handler.d.ts +6 -6
- package/dist/src/draft/commands/handlers/transactional/get-or-create-draft-row.handler.d.ts +8 -8
- package/dist/src/draft/commands/handlers/transactional/get-or-create-draft-rows.handler.d.ts +8 -8
- package/dist/src/draft/commands/handlers/transactional/get-or-create-draft-table.handler.d.ts +7 -7
- package/dist/src/draft/commands/handlers/transactional/resolve-draft-revision.handler.d.ts +3 -3
- package/dist/src/draft/commands/handlers/transactional/validate-data.handler.d.ts +4 -4
- package/dist/src/draft/commands/handlers/transactional/validate-not-system-table.handler.d.ts +3 -3
- package/dist/src/draft/commands/handlers/transactional/validate-schema.handler.d.ts +4 -4
- package/dist/src/draft/commands/handlers/update-row.handler.d.ts +8 -8
- package/dist/src/draft/commands/handlers/update-rows.handler.d.ts +7 -7
- package/dist/src/draft/commands/handlers/update-table.handler.d.ts +9 -9
- package/dist/src/draft/commands/impl/api-update-table.command.d.ts +1 -1
- package/dist/src/draft/commands/impl/transactional/validate-data.command.d.ts +1 -1
- package/dist/src/draft/commands/impl/update-rows.command.d.ts +1 -1
- package/dist/src/draft/commands/impl/update-table.command.d.ts +1 -1
- package/dist/src/draft/commands/types/api-create-row.handler.types.d.ts +2 -2
- package/dist/src/draft/commands/types/api-remove-row.handler.types.d.ts +2 -2
- package/dist/src/draft/commands/types/api-remove-table.handler.types.d.ts +1 -1
- package/dist/src/draft/commands/types/api-update-row.handler.types.d.ts +2 -2
- package/dist/src/draft/commands/types/api-update-table.handler.types.d.ts +1 -1
- package/dist/src/draft/draft-request-dto/draft-revision-request.dto.d.ts +1 -1
- package/dist/src/draft/draft-request-dto/index.d.ts +4 -4
- package/dist/src/draft/draft-request-dto/row-request.dto.d.ts +1 -1
- package/dist/src/draft/draft-request-dto/rows-request.dto.d.ts +1 -1
- package/dist/src/draft/draft-request-dto/table-request.dto.d.ts +1 -1
- package/dist/src/draft/draft.handler.d.ts +2 -2
- package/dist/src/draft/draft.transactional.commands.d.ts +1 -1
- package/dist/src/draft/session-changelog.service.d.ts +4 -4
- package/dist/src/email/email.service.d.ts +2 -2
- package/dist/src/endpoint/commands/handlers/api-create-endpoint.handler.d.ts +1 -1
- package/dist/src/endpoint/commands/handlers/create-endpoint.handler.d.ts +3 -3
- package/dist/src/endpoint/commands/handlers/delete-endpoint.handler.d.ts +3 -3
- package/dist/src/endpoint/commands/handlers/index.d.ts +3 -3
- package/dist/src/endpoint/queries/handlers/get-created-endpoint.handler.d.ts +2 -2
- package/dist/src/endpoint/queries/handlers/get-revision-by-endpoint-id.handler.d.ts +2 -2
- package/dist/src/endpoint/queries/handlers/index.d.ts +2 -2
- package/dist/src/endpoint/queries/impl/index.d.ts +1 -1
- package/dist/src/graphql-api/auth/auth.resolver.d.ts +2 -2
- package/dist/src/graphql-api/auth/inputs/create-user.input.d.ts +1 -1
- package/dist/src/graphql-api/branch/branch.resolver.d.ts +6 -6
- package/dist/src/graphql-api/branch/inputs/index.d.ts +5 -5
- package/dist/src/graphql-api/branch/model/branch.model.d.ts +3 -3
- package/dist/src/graphql-api/branch/model/parent-branch.model.d.ts +2 -2
- package/dist/src/graphql-api/branch/parent-branch.resolver.d.ts +1 -1
- package/dist/src/graphql-api/configuration/configuration.resolver.d.ts +1 -1
- package/dist/src/graphql-api/draft/draft.resolver.d.ts +2 -2
- package/dist/src/graphql-api/draft/input/create-row.input.d.ts +1 -1
- package/dist/src/graphql-api/draft/input/index.d.ts +5 -5
- package/dist/src/graphql-api/draft/input/remove-row.input.d.ts +1 -1
- package/dist/src/graphql-api/draft/input/update-row.input.d.ts +1 -1
- package/dist/src/graphql-api/draft/input/update-table.input.d.ts +1 -1
- package/dist/src/graphql-api/draft/model/create-row-result.model.d.ts +2 -2
- package/dist/src/graphql-api/draft/model/create-table-result.model.d.ts +2 -2
- package/dist/src/graphql-api/draft/model/remove-row-result.model.d.ts +2 -2
- package/dist/src/graphql-api/draft/model/remove-table-result.model.d.ts +1 -1
- package/dist/src/graphql-api/draft/model/update-row-result.model.d.ts +2 -2
- package/dist/src/graphql-api/draft/model/update-table-result.model.d.ts +1 -1
- package/dist/src/graphql-api/endpoint/endpoint.resolver.d.ts +2 -2
- package/dist/src/graphql-api/endpoint/inputs/create-endpoint.input.d.ts +1 -1
- package/dist/src/graphql-api/endpoint/inputs/index.d.ts +3 -3
- package/dist/src/graphql-api/endpoint/model/endpoint.model.d.ts +1 -1
- package/dist/src/graphql-api/endpoint/model/index.d.ts +1 -1
- package/dist/src/graphql-api/graphql-api.module.js +19 -9
- package/dist/src/graphql-api/graphql-api.module.js.map +1 -1
- package/dist/src/graphql-api/organization/inputs/add-user-to-organization.input.d.ts +1 -1
- package/dist/src/graphql-api/organization/model/users-organization.connection.d.ts +1 -1
- package/dist/src/graphql-api/organization/model/users-organization.model.d.ts +2 -2
- package/dist/src/graphql-api/organization/organization.resolver.d.ts +4 -4
- package/dist/src/graphql-api/project/inputs/add-user-to-project.input.d.ts +1 -1
- package/dist/src/graphql-api/project/inputs/index.d.ts +7 -7
- package/dist/src/graphql-api/project/model/index.d.ts +1 -1
- package/dist/src/graphql-api/project/model/project.model.d.ts +1 -1
- package/dist/src/graphql-api/project/model/projects.connection.d.ts +1 -1
- package/dist/src/graphql-api/project/model/users-project.connection.d.ts +1 -1
- package/dist/src/graphql-api/project/model/users-project.model.d.ts +2 -2
- package/dist/src/graphql-api/project/project.resolver.d.ts +3 -3
- package/dist/src/graphql-api/revision/child-branch.resolver.d.ts +1 -1
- package/dist/src/graphql-api/revision/model/child-branch.model.d.ts +2 -2
- package/dist/src/graphql-api/revision/model/revision.model.d.ts +4 -4
- package/dist/src/graphql-api/revision/revision.resolver.d.ts +4 -4
- package/dist/src/graphql-api/row/inputs/index.d.ts +3 -3
- package/dist/src/graphql-api/row/model/row-reference.model.d.ts +2 -2
- package/dist/src/graphql-api/row/model/row-references-connection.model.d.ts +1 -1
- package/dist/src/graphql-api/row/model/row.model.d.ts +1 -1
- package/dist/src/graphql-api/row/model/rows-connection.model.d.ts +1 -1
- package/dist/src/graphql-api/row/row.resolver.d.ts +5 -5
- package/dist/src/graphql-api/share/model/paginated.model.d.ts +1 -1
- package/dist/src/graphql-api/table/model/table-connection.model.d.ts +1 -1
- package/dist/src/graphql-api/table/model/table.model.d.ts +2 -2
- package/dist/src/graphql-api/table/table.resolver.d.ts +6 -6
- package/dist/src/graphql-api/user/user.resolver.d.ts +4 -4
- package/dist/src/health/health.controller.js +1 -0
- package/dist/src/health/health.controller.js.map +1 -1
- package/dist/src/index.d.ts +5 -2
- package/dist/src/index.js +7 -3
- package/dist/src/index.js.map +1 -1
- package/dist/src/metrics/graphql/constants.d.ts +3 -0
- package/dist/src/metrics/graphql/constants.js +7 -0
- package/dist/src/metrics/graphql/constants.js.map +1 -0
- package/dist/src/metrics/graphql/graphql-metrics.plugin.d.ts +7 -0
- package/dist/src/metrics/graphql/graphql-metrics.plugin.js +55 -0
- package/dist/src/metrics/graphql/graphql-metrics.plugin.js.map +1 -0
- package/dist/src/metrics/graphql/graphql-metrics.service.d.ts +16 -0
- package/dist/src/metrics/graphql/graphql-metrics.service.js +49 -0
- package/dist/src/metrics/graphql/graphql-metrics.service.js.map +1 -0
- package/dist/src/metrics/metrics.module.d.ts +2 -0
- package/dist/src/metrics/metrics.module.js +32 -0
- package/dist/src/metrics/metrics.module.js.map +1 -0
- package/dist/src/metrics/rest/constants.d.ts +3 -0
- package/dist/src/metrics/rest/constants.js +7 -0
- package/dist/src/metrics/rest/constants.js.map +1 -0
- package/dist/src/metrics/rest/rest-metrics.interceptor.d.ts +9 -0
- package/dist/src/metrics/rest/rest-metrics.interceptor.js +53 -0
- package/dist/src/metrics/rest/rest-metrics.interceptor.js.map +1 -0
- package/dist/src/metrics/rest/rest-metrics.service.d.ts +15 -0
- package/dist/src/metrics/rest/rest-metrics.service.js +49 -0
- package/dist/src/metrics/rest/rest-metrics.service.js.map +1 -0
- package/dist/src/metrics/utils.d.ts +1 -0
- package/dist/src/metrics/utils.js +8 -0
- package/dist/src/metrics/utils.js.map +1 -0
- package/dist/src/metrics-api/metrics-api.module.d.ts +4 -0
- package/dist/src/metrics-api/metrics-api.module.js +29 -0
- package/dist/src/metrics-api/metrics-api.module.js.map +1 -0
- package/dist/src/metrics-api/metrics-enabled.guard.d.ts +7 -0
- package/dist/src/metrics-api/metrics-enabled.guard.js +28 -0
- package/dist/src/metrics-api/metrics-enabled.guard.js.map +1 -0
- package/dist/src/metrics-api/metrics.controller.d.ts +7 -0
- package/dist/src/metrics-api/metrics.controller.js +49 -0
- package/dist/src/metrics-api/metrics.controller.js.map +1 -0
- package/dist/src/notification/in-memory-server.d.ts +6 -0
- package/dist/src/notification/in-memory-server.js +19 -0
- package/dist/src/notification/in-memory-server.js.map +1 -0
- package/dist/src/organization/commands/handlers/add-user-to-organization.handler.d.ts +3 -3
- package/dist/src/organization/commands/handlers/remove-user-from-organization.handler.d.ts +2 -2
- package/dist/src/organization/commands/impl/add-user-to-organization.command.d.ts +1 -1
- package/dist/src/organization/commands/index.d.ts +1 -1
- package/dist/src/organization/queries/handlers/get-projects-by-organization-id.handler.d.ts +2 -2
- package/dist/src/organization/queries/handlers/get-users-organization.handler.d.ts +2 -2
- package/dist/src/organization/queries/handlers/index.d.ts +1 -1
- package/dist/src/organization/queries/impl/get-projects-by-organization-id.query.d.ts +1 -1
- package/dist/src/organization/queries/impl/get-users-organization.query.d.ts +1 -1
- package/dist/src/organization/queries/impl/index.d.ts +1 -1
- package/dist/src/organization/queries/index.d.ts +2 -2
- package/dist/src/project/commands/handlers/add-user-to-project.handler.d.ts +3 -3
- package/dist/src/project/commands/handlers/api-create-project.handler.d.ts +1 -1
- package/dist/src/project/commands/handlers/create-project.handler.d.ts +3 -3
- package/dist/src/project/commands/handlers/delete-project.handler.d.ts +4 -4
- package/dist/src/project/commands/handlers/index.d.ts +6 -6
- package/dist/src/project/commands/handlers/remove-user-from-project.handler.d.ts +2 -2
- package/dist/src/project/commands/handlers/update-project.handler.d.ts +3 -3
- package/dist/src/project/commands/impl/add-user-to-project.command.d.ts +1 -1
- package/dist/src/project/queries/handlers/get-all-branches-by-project.handler.d.ts +2 -2
- package/dist/src/project/queries/handlers/get-project-by-id.handler.d.ts +2 -2
- package/dist/src/project/queries/handlers/get-project.handler.d.ts +3 -3
- package/dist/src/project/queries/handlers/get-root-branch-by-project.handler.d.ts +2 -2
- package/dist/src/project/queries/handlers/get-users-project.handler.d.ts +2 -2
- package/dist/src/project/queries/handlers/index.d.ts +5 -5
- package/dist/src/project/queries/impl/get-users-project.query.d.ts +1 -1
- package/dist/src/rest-api/auth/auth.controller.d.ts +3 -3
- package/dist/src/rest-api/auth/auth.controller.js +2 -0
- package/dist/src/rest-api/auth/auth.controller.js.map +1 -1
- package/dist/src/rest-api/auth/dto/create-user.dto.d.ts +1 -1
- package/dist/src/rest-api/branch/branch-by-name.controller.d.ts +3 -3
- package/dist/src/rest-api/branch/branch-by-name.controller.js +2 -0
- package/dist/src/rest-api/branch/branch-by-name.controller.js.map +1 -1
- package/dist/src/rest-api/configuration/configuration.controller.d.ts +1 -1
- package/dist/src/rest-api/configuration/configuration.controller.js +2 -0
- package/dist/src/rest-api/configuration/configuration.controller.js.map +1 -1
- package/dist/src/rest-api/endpoint/endpointByIdController.js +2 -0
- package/dist/src/rest-api/endpoint/endpointByIdController.js.map +1 -1
- package/dist/src/rest-api/organization/dto/add-user-to-organization.dto.d.ts +1 -1
- package/dist/src/rest-api/organization/dto/index.d.ts +5 -5
- package/dist/src/rest-api/organization/model/users-organization.model.d.ts +2 -2
- package/dist/src/rest-api/organization/organization.controller.d.ts +4 -4
- package/dist/src/rest-api/organization/organization.controller.js +2 -0
- package/dist/src/rest-api/organization/organization.controller.js.map +1 -1
- package/dist/src/rest-api/project/dto/add-user-to-project.dto.d.ts +1 -1
- package/dist/src/rest-api/project/model/users-project.model.d.ts +2 -2
- package/dist/src/rest-api/project/project.controller.d.ts +6 -6
- package/dist/src/rest-api/project/project.controller.js +2 -0
- package/dist/src/rest-api/project/project.controller.js.map +1 -1
- package/dist/src/rest-api/rest-api.module.js +2 -1
- package/dist/src/rest-api/rest-api.module.js.map +1 -1
- package/dist/src/rest-api/revision/dto/index.d.ts +3 -3
- package/dist/src/rest-api/revision/model/create-table.response.d.ts +2 -2
- package/dist/src/rest-api/revision/revision-by-id.controller.d.ts +7 -7
- package/dist/src/rest-api/revision/revision-by-id.controller.js +2 -0
- package/dist/src/rest-api/revision/revision-by-id.controller.js.map +1 -1
- package/dist/src/rest-api/row/model/remove-row.response.d.ts +2 -2
- package/dist/src/rest-api/row/model/update-row.response.d.ts +2 -2
- package/dist/src/rest-api/row/row-by-id.controller.d.ts +3 -3
- package/dist/src/rest-api/row/row-by-id.controller.js +2 -0
- package/dist/src/rest-api/row/row-by-id.controller.js.map +1 -1
- package/dist/src/rest-api/share/utils/transformFromPrismaToBranchModel.d.ts +1 -1
- package/dist/src/rest-api/share/utils/transformFromPrismaToEndpointsModel.d.ts +1 -1
- package/dist/src/rest-api/share/utils/transformFromPrismaToRevisionModel.d.ts +2 -2
- package/dist/src/rest-api/share/utils/transformFromPrismaToRowModel.d.ts +2 -2
- package/dist/src/rest-api/share/utils/transformFromPrismaToTableModel.d.ts +2 -2
- package/dist/src/rest-api/share/utils/transformFromPrismaToUserOrganizationModel.d.ts +3 -3
- package/dist/src/rest-api/share/utils/transformFromPrismaToUserProjectModel.d.ts +3 -3
- package/dist/src/rest-api/table/dto/update-table.dto.d.ts +1 -1
- package/dist/src/rest-api/table/model/create-row.response.d.ts +1 -1
- package/dist/src/rest-api/table/model/update-table.response.d.ts +1 -1
- package/dist/src/rest-api/table/table-by-id.controller.d.ts +6 -6
- package/dist/src/rest-api/table/table-by-id.controller.js +2 -0
- package/dist/src/rest-api/table/table-by-id.controller.js.map +1 -1
- package/dist/src/rest-api/user/user.controller.d.ts +2 -2
- package/dist/src/rest-api/user/user.controller.js +2 -0
- package/dist/src/rest-api/user/user.controller.js.map +1 -1
- package/dist/src/revision/queries/commands/get-children-by-revision.handler.d.ts +2 -2
- package/dist/src/revision/queries/commands/get-endpoints-by-revision-id.handler.d.ts +3 -3
- package/dist/src/revision/queries/commands/get-revision.handler.d.ts +2 -2
- package/dist/src/revision/queries/commands/get-tables-by-revision-id.handler.d.ts +3 -3
- package/dist/src/revision/queries/commands/index.d.ts +8 -8
- package/dist/src/revision/queries/commands/resolve-branch-by-revision.handler.d.ts +2 -2
- package/dist/src/revision/queries/commands/resolve-child-branches-by-revision.handler.d.ts +2 -2
- package/dist/src/revision/queries/commands/resolve-child-by-revision.handler.d.ts +2 -2
- package/dist/src/revision/queries/commands/resolve-parent-by-revision.handler.d.ts +2 -2
- package/dist/src/revision/queries/types/get-revision-tables.types.d.ts +2 -2
- package/dist/src/revision/queries/types/index.d.ts +1 -1
- package/dist/src/row/queries/handlers/get-row-by-id.handler.d.ts +3 -3
- package/dist/src/row/queries/handlers/get-row.handler.d.ts +4 -4
- package/dist/src/row/queries/handlers/get-rows.handler.d.ts +4 -4
- package/dist/src/row/queries/handlers/index.d.ts +7 -7
- package/dist/src/row/queries/handlers/resolve-row-count-references-by.handler.d.ts +5 -5
- package/dist/src/row/queries/handlers/resolve-row-count-references-to.handler.d.ts +3 -3
- package/dist/src/row/queries/handlers/resolve-row-references-by.handler.d.ts +5 -5
- package/dist/src/row/queries/handlers/resolve-row-references-to.handler.d.ts +5 -5
- package/dist/src/row/queries/impl/index.d.ts +4 -4
- package/dist/src/row/queries/types/get-row-by-id.types.d.ts +1 -1
- package/dist/src/row/queries/types/get-row.types.d.ts +1 -1
- package/dist/src/row/queries/types/get-rows.types.d.ts +2 -2
- package/dist/src/row/queries/types/resolve-row-references-by.types.d.ts +2 -2
- package/dist/src/row/queries/types/resolve-row-references-to.types.d.ts +2 -2
- package/dist/src/share/commands/handlers/index.d.ts +1 -1
- package/dist/src/share/commands/handlers/notify-endpoints.handler.d.ts +3 -3
- package/dist/src/share/commands/handlers/transactional/move-endpoints.handler.d.ts +2 -2
- package/dist/src/share/commands/utils/getOffsetPagination.d.ts +1 -1
- package/dist/src/share/commands/utils/getRevisionCursorPagination.d.ts +1 -1
- package/dist/src/share/const.d.ts +1 -1
- package/dist/src/share/queries/handlers/index.d.ts +3 -3
- package/dist/src/share/queries/handlers/transactional/find-branch-in-project-or-throw.handler.d.ts +3 -3
- package/dist/src/share/queries/handlers/transactional/find-draft-revision-in-branch-or-throw.handler.d.ts +3 -3
- package/dist/src/share/queries/handlers/transactional/find-head-revision-in-branch-or-throw.handler.d.ts +3 -3
- package/dist/src/share/queries/handlers/transactional/find-project-in-organization-or-throw.handler.d.ts +3 -3
- package/dist/src/share/queries/handlers/transactional/find-row-in-table-or-throw.handler.d.ts +3 -3
- package/dist/src/share/queries/handlers/transactional/find-rows-in-table-or-throw.handler.d.ts +3 -3
- package/dist/src/share/queries/handlers/transactional/find-table-in-revision-or-throw.handler.d.ts +3 -3
- package/dist/src/share/queries/handlers/transactional/get-table-schema.handler.d.ts +3 -3
- package/dist/src/share/queries/types/index.d.ts +7 -7
- package/dist/src/share/references.service.d.ts +1 -1
- package/dist/src/share/share.transactional.queries.d.ts +2 -2
- package/dist/src/share/utils/schema/lib/applyPatches.d.ts +2 -2
- package/dist/src/share/utils/schema/lib/createJsonSchemaStore.d.ts +3 -3
- package/dist/src/share/utils/schema/lib/createJsonValueStore.d.ts +7 -7
- package/dist/src/share/utils/schema/lib/getJsonSchemaStoreByPath.d.ts +1 -1
- package/dist/src/share/utils/schema/lib/getPathByStore.d.ts +1 -1
- package/dist/src/share/utils/schema/lib/getReferencesFromSchema.d.ts +1 -1
- package/dist/src/share/utils/schema/lib/getReferencesFromValue.d.ts +1 -1
- package/dist/src/share/utils/schema/lib/getValuePathByStore.d.ts +1 -1
- package/dist/src/share/utils/schema/lib/schema-table.d.ts +3 -3
- package/dist/src/share/utils/schema/lib/traverseStore.d.ts +1 -1
- package/dist/src/share/utils/schema/lib/traverseValue.d.ts +1 -1
- package/dist/src/share/utils/schema/model/schema/json-array.store.d.ts +4 -4
- package/dist/src/share/utils/schema/model/schema/json-boolean.store.d.ts +3 -3
- package/dist/src/share/utils/schema/model/schema/json-number.store.d.ts +3 -3
- package/dist/src/share/utils/schema/model/schema/json-object.store.d.ts +4 -4
- package/dist/src/share/utils/schema/model/schema/json-schema.store.d.ts +5 -5
- package/dist/src/share/utils/schema/model/schema/json-string.store.d.ts +3 -3
- package/dist/src/share/utils/schema/model/value/json-array-value.store.d.ts +4 -4
- package/dist/src/share/utils/schema/model/value/json-boolean-value.store.d.ts +2 -2
- package/dist/src/share/utils/schema/model/value/json-number-value.store.d.ts +2 -2
- package/dist/src/share/utils/schema/model/value/json-object-value.store.d.ts +4 -4
- package/dist/src/share/utils/schema/model/value/json-string-value.store.d.ts +2 -2
- package/dist/src/share/utils/schema/model/value/json-value.store.d.ts +5 -5
- package/dist/src/share/utils/schema/model/value/value-transformation.d.ts +1 -1
- package/dist/src/share/utils/schema/types/json-patch.types.d.ts +1 -1
- package/dist/src/table/queries/handlers/get-count-rows-in-table.handler.d.ts +2 -2
- package/dist/src/table/queries/handlers/get-rows-by-table.handler.d.ts +3 -3
- package/dist/src/table/queries/handlers/get-table-by-id.handler.d.ts +3 -3
- package/dist/src/table/queries/handlers/get-table.handler.d.ts +4 -4
- package/dist/src/table/queries/handlers/get-tables.handler.d.ts +3 -3
- package/dist/src/table/queries/handlers/index.d.ts +10 -10
- package/dist/src/table/queries/handlers/resolve-table-count-references-by.handler.d.ts +4 -4
- package/dist/src/table/queries/handlers/resolve-table-count-references-to.handler.d.ts +3 -3
- package/dist/src/table/queries/handlers/resolve-table-references-by.handler.d.ts +5 -5
- package/dist/src/table/queries/handlers/resolve-table-references-to.handler.d.ts +4 -4
- package/dist/src/table/queries/handlers/resolve-table-schema.handler.d.ts +3 -3
- package/dist/src/table/queries/types/get-table-by-id.types.d.ts +1 -1
- package/dist/src/table/queries/types/get-table-rows.types.d.ts +2 -2
- package/dist/src/table/queries/types/get-table.types.d.ts +1 -1
- package/dist/src/table/queries/types/get-tables.types.d.ts +2 -2
- package/dist/src/table/queries/types/index.d.ts +6 -6
- package/dist/src/table/queries/types/resolve-table-references-by.types.d.ts +2 -2
- package/dist/src/table/queries/types/resolve-table-references-to.types.d.ts +2 -2
- package/dist/src/user/commands/handlers/set-username.handler.d.ts +3 -3
- package/dist/src/user/commands/handlers/update-password.handler.d.ts +3 -3
- package/dist/src/user/commands/index.d.ts +1 -1
- package/dist/src/user/queries/handlers/get-projects-by-user-id.handler.d.ts +2 -2
- package/dist/src/user/queries/handlers/get-user-organization.handler.d.ts +2 -2
- package/dist/src/user/queries/handlers/get-user.handler.d.ts +2 -2
- package/dist/src/user/queries/impl/get-projects-by-user-id.query.d.ts +1 -1
- package/dist/src/user/queries/impl/index.d.ts +1 -1
- package/dist/src/user/queries/index.d.ts +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +5 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IQueryHandler } from '@nestjs/cqrs';
|
|
2
|
-
import { GetRevisionsByBranchIdQuery } from '
|
|
3
|
-
import { PrismaService } from '
|
|
2
|
+
import { GetRevisionsByBranchIdQuery } from '../../../branch/quieries/impl/get-revisions-by-branch-id.query';
|
|
3
|
+
import { PrismaService } from '../../../database/prisma.service';
|
|
4
4
|
export declare class GetRevisionsByBranchIdHandler implements IQueryHandler<GetRevisionsByBranchIdQuery> {
|
|
5
5
|
private prisma;
|
|
6
6
|
constructor(prisma: PrismaService);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IQueryHandler } from '@nestjs/cqrs';
|
|
2
|
-
import { GetStartRevisionQuery } from '
|
|
3
|
-
import { GetStartRevisionReturnType } from '
|
|
4
|
-
import { PrismaService } from '
|
|
2
|
+
import { GetStartRevisionQuery } from '../../../branch/quieries/impl';
|
|
3
|
+
import { GetStartRevisionReturnType } from '../../../branch/quieries/types';
|
|
4
|
+
import { PrismaService } from '../../../database/prisma.service';
|
|
5
5
|
export declare class GetStartRevisionHandler implements IQueryHandler<GetStartRevisionQuery> {
|
|
6
6
|
private prisma;
|
|
7
7
|
constructor(prisma: PrismaService);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IQueryHandler } from '@nestjs/cqrs';
|
|
2
|
-
import { GetTouchedByBranchIdQuery } from '
|
|
3
|
-
import { TransactionPrismaService } from '
|
|
4
|
-
import { ShareTransactionalQueries } from '
|
|
2
|
+
import { GetTouchedByBranchIdQuery } from '../../../branch/quieries/impl';
|
|
3
|
+
import { TransactionPrismaService } from '../../../database/transaction-prisma.service';
|
|
4
|
+
import { ShareTransactionalQueries } from '../../../share/share.transactional.queries';
|
|
5
5
|
export declare class GetTouchedByBranchIdHandler implements IQueryHandler<GetTouchedByBranchIdQuery> {
|
|
6
6
|
private transactionService;
|
|
7
7
|
private shareTransactionQueries;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { GetBranchByIdHandler } from '
|
|
2
|
-
import { GetBranchHandler } from '
|
|
3
|
-
import { GetBranchesHandler } from '
|
|
4
|
-
import { GetDraftRevisionHandler } from '
|
|
5
|
-
import { GetHeadRevisionHandler } from '
|
|
6
|
-
import { GetProjectByBranchHandler } from '
|
|
7
|
-
import { GetRevisionsByBranchIdHandler } from '
|
|
8
|
-
import { GetStartRevisionHandler } from '
|
|
9
|
-
import { GetTouchedByBranchIdHandler } from '
|
|
10
|
-
import { ResolveParentBranchByBranchHandler } from '
|
|
1
|
+
import { GetBranchByIdHandler } from '../../../branch/quieries/handlers/get-branch-by-id.handler';
|
|
2
|
+
import { GetBranchHandler } from '../../../branch/quieries/handlers/get-branch.handler';
|
|
3
|
+
import { GetBranchesHandler } from '../../../branch/quieries/handlers/get-branches.handler';
|
|
4
|
+
import { GetDraftRevisionHandler } from '../../../branch/quieries/handlers/get-draft-revision.handler';
|
|
5
|
+
import { GetHeadRevisionHandler } from '../../../branch/quieries/handlers/get-head-revision.handler';
|
|
6
|
+
import { GetProjectByBranchHandler } from '../../../branch/quieries/handlers/get-project-by-branch.handler';
|
|
7
|
+
import { GetRevisionsByBranchIdHandler } from '../../../branch/quieries/handlers/get-revisions-by-branch-id.handler';
|
|
8
|
+
import { GetStartRevisionHandler } from '../../../branch/quieries/handlers/get-start-revision.handler';
|
|
9
|
+
import { GetTouchedByBranchIdHandler } from '../../../branch/quieries/handlers/get-touched-by-branch-id.handler';
|
|
10
|
+
import { ResolveParentBranchByBranchHandler } from '../../../branch/quieries/handlers/resolve-parent-branch-by-branch.handler';
|
|
11
11
|
export declare const BRANCH_QUERIES_HANDLERS: (typeof GetBranchByIdHandler | typeof GetBranchHandler | typeof GetBranchesHandler | typeof GetDraftRevisionHandler | typeof GetHeadRevisionHandler | typeof GetProjectByBranchHandler | typeof GetRevisionsByBranchIdHandler | typeof GetStartRevisionHandler | typeof GetTouchedByBranchIdHandler | typeof ResolveParentBranchByBranchHandler)[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IQueryHandler } from '@nestjs/cqrs';
|
|
2
|
-
import { ResolveParentBranchByBranchQuery } from '
|
|
3
|
-
import { PrismaService } from '
|
|
2
|
+
import { ResolveParentBranchByBranchQuery } from '../../../branch/quieries/impl';
|
|
3
|
+
import { PrismaService } from '../../../database/prisma.service';
|
|
4
4
|
export declare class ResolveParentBranchByBranchHandler implements IQueryHandler<ResolveParentBranchByBranchQuery> {
|
|
5
5
|
private prisma;
|
|
6
6
|
constructor(prisma: PrismaService);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ICommandHandler } from '@nestjs/cqrs';
|
|
2
|
-
import { CleanRowsCommand } from '
|
|
3
|
-
import { PrismaService } from '
|
|
2
|
+
import { CleanRowsCommand } from '../../../clean/commands/impl/clean-rows.command';
|
|
3
|
+
import { PrismaService } from '../../../database/prisma.service';
|
|
4
4
|
export declare class CleanRowsHandler implements ICommandHandler<CleanRowsCommand> {
|
|
5
5
|
private prisma;
|
|
6
6
|
constructor(prisma: PrismaService);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ICommandHandler } from '@nestjs/cqrs';
|
|
2
|
-
import { CleanTablesCommand } from '
|
|
3
|
-
import { PrismaService } from '
|
|
2
|
+
import { CleanTablesCommand } from '../../../clean/commands/impl/clean-tables.command';
|
|
3
|
+
import { PrismaService } from '../../../database/prisma.service';
|
|
4
4
|
export declare class CleanTablesHandler implements ICommandHandler<CleanTablesCommand> {
|
|
5
5
|
private prisma;
|
|
6
6
|
constructor(prisma: PrismaService);
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { CleanRowsHandler } from '
|
|
2
|
-
import { CleanTablesHandler } from '
|
|
1
|
+
import { CleanRowsHandler } from '../../../clean/commands/handlers/clean-rows.handler';
|
|
2
|
+
import { CleanTablesHandler } from '../../../clean/commands/handlers/clean-tables.handler';
|
|
3
3
|
export declare const CLEAN_COMMANDS_HANDLERS: (typeof CleanRowsHandler | typeof CleanTablesHandler)[];
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { IQueryHandler } from '@nestjs/cqrs';
|
|
2
|
-
import { GitHubAuthService } from '
|
|
3
|
-
import { GoogleOauthService } from '
|
|
4
|
-
import { GetConfigurationQuery, GetConfigurationQueryReturnType } from '
|
|
5
|
-
import { EmailService } from '
|
|
2
|
+
import { GitHubAuthService } from '../../../auth/github-oauth.service';
|
|
3
|
+
import { GoogleOauthService } from '../../../auth/google-oauth.service';
|
|
4
|
+
import { GetConfigurationQuery, GetConfigurationQueryReturnType } from '../../../configuration/queries/impl';
|
|
5
|
+
import { EmailService } from '../../../email/email.service';
|
|
6
6
|
export declare class GetConfigurationHandler implements IQueryHandler<GetConfigurationQuery, GetConfigurationQueryReturnType> {
|
|
7
7
|
private readonly emailService;
|
|
8
8
|
private readonly googleOauthService;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { GetConfigurationHandler } from '
|
|
1
|
+
import { GetConfigurationHandler } from '../../configuration/queries/handlers';
|
|
2
2
|
export declare const CONFIGURATION_QUERIES: (typeof GetConfigurationHandler)[];
|
|
@@ -21,6 +21,7 @@ const email_module_1 = require("../email/email.module");
|
|
|
21
21
|
const endpoint_module_1 = require("../endpoint/endpoint.module");
|
|
22
22
|
const graphql_api_module_1 = require("../graphql-api/graphql-api.module");
|
|
23
23
|
const health_module_1 = require("../health/health.module");
|
|
24
|
+
const metrics_module_1 = require("../metrics/metrics.module");
|
|
24
25
|
const notification_module_1 = require("../notification/notification.module");
|
|
25
26
|
const organization_module_1 = require("../organization/organization.module");
|
|
26
27
|
const project_module_1 = require("../project/project.module");
|
|
@@ -61,6 +62,7 @@ exports.CoreModule = CoreModule = __decorate([
|
|
|
61
62
|
row_module_1.RowModule,
|
|
62
63
|
draft_module_1.DraftModule,
|
|
63
64
|
endpoint_module_1.EndpointModule,
|
|
65
|
+
metrics_module_1.MetricsModule,
|
|
64
66
|
],
|
|
65
67
|
})
|
|
66
68
|
], CoreModule);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core.module.js","sourceRoot":"","sources":["../../../src/core/core.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,2CAA8C;AAC9C,uCAA4C;AAC5C,+CAAkD;AAClD,qDAAkD;AAElD,2DAAwD;AACxD,wDAAqD;AACrD,gFAA6E;AAC7E,iEAA8D;AAC9D,wDAAqD;AACrD,wDAAqD;AACrD,iEAA8D;AAC9D,0EAAsE;AACtE,2DAAwD;AACxD,6EAA0E;AAC1E,6EAA0E;AAC1E,8DAA2D;AAC3D,iEAA6D;AAC7D,iEAA8D;AAC9D,kDAA+C;AAC/C,wDAAqD;AACrD,qDAAkD;
|
|
1
|
+
{"version":3,"file":"core.module.js","sourceRoot":"","sources":["../../../src/core/core.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,2CAA8C;AAC9C,uCAA4C;AAC5C,+CAAkD;AAClD,qDAAkD;AAElD,2DAAwD;AACxD,wDAAqD;AACrD,gFAA6E;AAC7E,iEAA8D;AAC9D,wDAAqD;AACrD,wDAAqD;AACrD,iEAA8D;AAC9D,0EAAsE;AACtE,2DAAwD;AACxD,8DAA2D;AAC3D,6EAA0E;AAC1E,6EAA0E;AAC1E,8DAA2D;AAC3D,iEAA6D;AAC7D,iEAA8D;AAC9D,kDAA+C;AAC/C,wDAAqD;AACrD,qDAAkD;AAiC3C,IAAM,UAAU,GAAhB,MAAM,UAAU;CAAG,CAAA;AAAb,gCAAU;qBAAV,UAAU;IA/BtB,IAAA,eAAM,EAAC;QACN,OAAO,EAAE;YACP,wBAAU;YACV,qBAAY,CAAC,OAAO,EAAE;YACtB,gCAAc;YACd,qCAAgB;YAChB,+BAAa;YACb,mBAAY,CAAC,QAAQ,CAAC;gBACpB;oBACE,IAAI,EAAE,QAAQ;oBACd,MAAM,EAAE,+BAAa;iBACtB;aACF,CAAC;YACF,yBAAc,CAAC,OAAO,EAAE;YACxB,0CAAmB;YACnB,0BAAW;YACX,wCAAkB;YAClB,4BAAY;YACZ,0BAAW;YACX,wBAAU;YACV,wCAAkB;YAClB,8BAAa;YACb,4BAAY;YACZ,gCAAc;YACd,0BAAW;YACX,sBAAS;YACT,0BAAW;YACX,gCAAc;YACd,8BAAa;SACd;KACF,CAAC;GACW,UAAU,CAAG"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Prisma } from '@prisma/client';
|
|
2
|
-
import { PrismaService } from '
|
|
3
|
-
import { TransactionPrismaClient } from '
|
|
2
|
+
import { PrismaService } from '../database/prisma.service';
|
|
3
|
+
import { TransactionPrismaClient } from '../share/types';
|
|
4
4
|
export declare class TransactionPrismaService {
|
|
5
5
|
private prismaService;
|
|
6
6
|
private asyncLocalStorage;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CommandBus, ICommandHandler, QueryBus } from '@nestjs/cqrs';
|
|
2
|
-
import { TransactionPrismaService } from '
|
|
3
|
-
import { ApiCreateRevisionCommand } from '
|
|
4
|
-
import { EndpointNotificationService } from '
|
|
2
|
+
import { TransactionPrismaService } from '../../../database/transaction-prisma.service';
|
|
3
|
+
import { ApiCreateRevisionCommand } from '../../../draft/commands/impl/api-create-revision.command';
|
|
4
|
+
import { EndpointNotificationService } from '../../../notification/endpoint-notification.service';
|
|
5
5
|
export declare class ApiCreateRevisionHandler implements ICommandHandler<ApiCreateRevisionCommand> {
|
|
6
6
|
private readonly commandBus;
|
|
7
7
|
private readonly queryBus;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { CommandBus, ICommandHandler, QueryBus } from '@nestjs/cqrs';
|
|
2
|
-
import { TransactionPrismaService } from '
|
|
3
|
-
import { ApiCreateRowCommand } from '
|
|
4
|
-
import { ApiCreateRowHandlerReturnType } from '
|
|
5
|
-
import { ShareCommands } from '
|
|
2
|
+
import { TransactionPrismaService } from '../../../database/transaction-prisma.service';
|
|
3
|
+
import { ApiCreateRowCommand } from '../../../draft/commands/impl/api-create-row.command';
|
|
4
|
+
import { ApiCreateRowHandlerReturnType } from '../../../draft/commands/types/api-create-row.handler.types';
|
|
5
|
+
import { ShareCommands } from '../../../share/share.commands';
|
|
6
6
|
export declare class ApiCreateRowHandler implements ICommandHandler<ApiCreateRowCommand, ApiCreateRowHandlerReturnType> {
|
|
7
7
|
private readonly commandBus;
|
|
8
8
|
private readonly queryBus;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { CommandBus, ICommandHandler, QueryBus } from '@nestjs/cqrs';
|
|
2
|
-
import { TransactionPrismaService } from '
|
|
3
|
-
import { ApiCreateTableCommand } from '
|
|
4
|
-
import { ApiCreateTableHandlerReturnType } from '
|
|
5
|
-
import { ShareCommands } from '
|
|
2
|
+
import { TransactionPrismaService } from '../../../database/transaction-prisma.service';
|
|
3
|
+
import { ApiCreateTableCommand } from '../../../draft/commands/impl/api-create-table.command';
|
|
4
|
+
import { ApiCreateTableHandlerReturnType } from '../../../draft/commands/types/api-create-table.handler.types';
|
|
5
|
+
import { ShareCommands } from '../../../share/share.commands';
|
|
6
6
|
export declare class ApiCreateTableHandler implements ICommandHandler<ApiCreateTableCommand, ApiCreateTableHandlerReturnType> {
|
|
7
7
|
private readonly commandBus;
|
|
8
8
|
private readonly queryBus;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { CommandBus, ICommandHandler, QueryBus } from '@nestjs/cqrs';
|
|
2
|
-
import { TransactionPrismaService } from '
|
|
3
|
-
import { ApiRemoveRowCommand } from '
|
|
4
|
-
import { ApiRemoveRowHandlerReturnType } from '
|
|
5
|
-
import { ShareCommands } from '
|
|
2
|
+
import { TransactionPrismaService } from '../../../database/transaction-prisma.service';
|
|
3
|
+
import { ApiRemoveRowCommand } from '../../../draft/commands/impl/api-remove-row.command';
|
|
4
|
+
import { ApiRemoveRowHandlerReturnType } from '../../../draft/commands/types/api-remove-row.handler.types';
|
|
5
|
+
import { ShareCommands } from '../../../share/share.commands';
|
|
6
6
|
export declare class ApiRemoveRowHandler implements ICommandHandler<ApiRemoveRowCommand, ApiRemoveRowHandlerReturnType> {
|
|
7
7
|
private readonly commandBus;
|
|
8
8
|
private readonly queryBus;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { CommandBus, ICommandHandler, QueryBus } from '@nestjs/cqrs';
|
|
2
|
-
import { TransactionPrismaService } from '
|
|
3
|
-
import { ApiRemoveTableCommand } from '
|
|
4
|
-
import { ApiRemoveTableHandlerReturnType } from '
|
|
5
|
-
import { ShareCommands } from '
|
|
2
|
+
import { TransactionPrismaService } from '../../../database/transaction-prisma.service';
|
|
3
|
+
import { ApiRemoveTableCommand } from '../../../draft/commands/impl/api-remove-table.command';
|
|
4
|
+
import { ApiRemoveTableHandlerReturnType } from '../../../draft/commands/types/api-remove-table.handler.types';
|
|
5
|
+
import { ShareCommands } from '../../../share/share.commands';
|
|
6
6
|
export declare class ApiRemoveTableHandler implements ICommandHandler<ApiRemoveTableCommand, ApiRemoveTableHandlerReturnType> {
|
|
7
7
|
private readonly commandBus;
|
|
8
8
|
private readonly queryBus;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CommandBus, ICommandHandler, QueryBus } from '@nestjs/cqrs';
|
|
2
|
-
import { TransactionPrismaService } from '
|
|
3
|
-
import { ApiRevertChangesCommand } from '
|
|
4
|
-
import { ShareCommands } from '
|
|
2
|
+
import { TransactionPrismaService } from '../../../database/transaction-prisma.service';
|
|
3
|
+
import { ApiRevertChangesCommand } from '../../../draft/commands/impl/api-revert-changes.command';
|
|
4
|
+
import { ShareCommands } from '../../../share/share.commands';
|
|
5
5
|
export declare class ApiRevertChangesHandler implements ICommandHandler<ApiRevertChangesCommand> {
|
|
6
6
|
private readonly commandBus;
|
|
7
7
|
private readonly queryBus;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { CommandBus, ICommandHandler, QueryBus } from '@nestjs/cqrs';
|
|
2
|
-
import { TransactionPrismaService } from '
|
|
3
|
-
import { ApiUpdateRowCommand } from '
|
|
4
|
-
import { ApiUpdateRowHandlerReturnType } from '
|
|
5
|
-
import { ShareCommands } from '
|
|
2
|
+
import { TransactionPrismaService } from '../../../database/transaction-prisma.service';
|
|
3
|
+
import { ApiUpdateRowCommand } from '../../../draft/commands/impl/api-update-row.command';
|
|
4
|
+
import { ApiUpdateRowHandlerReturnType } from '../../../draft/commands/types/api-update-row.handler.types';
|
|
5
|
+
import { ShareCommands } from '../../../share/share.commands';
|
|
6
6
|
export declare class ApiUpdateRowHandler implements ICommandHandler<ApiUpdateRowCommand, ApiUpdateRowHandlerReturnType> {
|
|
7
7
|
private readonly commandBus;
|
|
8
8
|
private readonly queryBus;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { CommandBus, ICommandHandler, QueryBus } from '@nestjs/cqrs';
|
|
2
|
-
import { TransactionPrismaService } from '
|
|
3
|
-
import { ApiUpdateTableCommand } from '
|
|
4
|
-
import { ApiUpdateTableHandlerReturnType } from '
|
|
5
|
-
import { ShareCommands } from '
|
|
2
|
+
import { TransactionPrismaService } from '../../../database/transaction-prisma.service';
|
|
3
|
+
import { ApiUpdateTableCommand } from '../../../draft/commands/impl/api-update-table.command';
|
|
4
|
+
import { ApiUpdateTableHandlerReturnType } from '../../../draft/commands/types/api-update-table.handler.types';
|
|
5
|
+
import { ShareCommands } from '../../../share/share.commands';
|
|
6
6
|
export declare class ApiUpdateTableHandler implements ICommandHandler<ApiUpdateTableCommand, ApiUpdateTableHandlerReturnType> {
|
|
7
7
|
private readonly commandBus;
|
|
8
8
|
private readonly queryBus;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { IdService } from '
|
|
2
|
-
import { TransactionPrismaService } from '
|
|
3
|
-
import { CreateRevisionHandlerReturnType } from '
|
|
4
|
-
import { CreateRevisionCommand } from '
|
|
5
|
-
import { DraftContextService } from '
|
|
6
|
-
import { DraftHandler } from '
|
|
7
|
-
import { ShareTransactionalCommands } from '
|
|
8
|
-
import { ShareTransactionalQueries } from '
|
|
1
|
+
import { IdService } from '../../../database/id.service';
|
|
2
|
+
import { TransactionPrismaService } from '../../../database/transaction-prisma.service';
|
|
3
|
+
import { CreateRevisionHandlerReturnType } from '../../../draft/commands/types/create-revision.handler.types';
|
|
4
|
+
import { CreateRevisionCommand } from '../../../draft/commands/impl/create-revision.command';
|
|
5
|
+
import { DraftContextService } from '../../../draft/draft-context.service';
|
|
6
|
+
import { DraftHandler } from '../../../draft/draft.handler';
|
|
7
|
+
import { ShareTransactionalCommands } from '../../../share/share.transactional.commands';
|
|
8
|
+
import { ShareTransactionalQueries } from '../../../share/share.transactional.queries';
|
|
9
9
|
export declare class CreateRevisionHandler extends DraftHandler<CreateRevisionCommand, CreateRevisionHandlerReturnType> {
|
|
10
10
|
protected idService: IdService;
|
|
11
11
|
protected draftContext: DraftContextService;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { IdService } from '
|
|
2
|
-
import { TransactionPrismaService } from '
|
|
3
|
-
import { CreateRowCommand } from '
|
|
4
|
-
import { CreateRowHandlerReturnType } from '
|
|
5
|
-
import { DraftContextService } from '
|
|
6
|
-
import { DraftRevisionRequestDto } from '
|
|
7
|
-
import { DraftRowRequestDto } from '
|
|
8
|
-
import { DraftTableRequestDto } from '
|
|
9
|
-
import { DraftHandler } from '
|
|
10
|
-
import { DraftTransactionalCommands } from '
|
|
11
|
-
import { SessionChangelogService } from '
|
|
12
|
-
import { ShareTransactionalQueries } from '
|
|
1
|
+
import { IdService } from '../../../database/id.service';
|
|
2
|
+
import { TransactionPrismaService } from '../../../database/transaction-prisma.service';
|
|
3
|
+
import { CreateRowCommand } from '../../../draft/commands/impl/create-row.command';
|
|
4
|
+
import { CreateRowHandlerReturnType } from '../../../draft/commands/types/create-row.handler.types';
|
|
5
|
+
import { DraftContextService } from '../../../draft/draft-context.service';
|
|
6
|
+
import { DraftRevisionRequestDto } from '../../../draft/draft-request-dto/draft-revision-request.dto';
|
|
7
|
+
import { DraftRowRequestDto } from '../../../draft/draft-request-dto/row-request.dto';
|
|
8
|
+
import { DraftTableRequestDto } from '../../../draft/draft-request-dto/table-request.dto';
|
|
9
|
+
import { DraftHandler } from '../../../draft/draft.handler';
|
|
10
|
+
import { DraftTransactionalCommands } from '../../../draft/draft.transactional.commands';
|
|
11
|
+
import { SessionChangelogService } from '../../../draft/session-changelog.service';
|
|
12
|
+
import { ShareTransactionalQueries } from '../../../share/share.transactional.queries';
|
|
13
13
|
export declare class CreateRowHandler extends DraftHandler<CreateRowCommand, CreateRowHandlerReturnType> {
|
|
14
14
|
protected readonly transactionService: TransactionPrismaService;
|
|
15
15
|
protected readonly draftContext: DraftContextService;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { CommandBus } from '@nestjs/cqrs';
|
|
2
|
-
import { IdService } from '
|
|
3
|
-
import { TransactionPrismaService } from '
|
|
4
|
-
import { CreateTableCommand } from '
|
|
5
|
-
import { CreateTableHandlerReturnType } from '
|
|
6
|
-
import { DraftContextService } from '
|
|
7
|
-
import { DraftRevisionRequestDto } from '
|
|
8
|
-
import { DraftTableRequestDto } from '
|
|
9
|
-
import { DraftHandler } from '
|
|
10
|
-
import { DraftTransactionalCommands } from '
|
|
11
|
-
import { JsonSchemaValidatorService } from '
|
|
12
|
-
import { SessionChangelogService } from '
|
|
2
|
+
import { IdService } from '../../../database/id.service';
|
|
3
|
+
import { TransactionPrismaService } from '../../../database/transaction-prisma.service';
|
|
4
|
+
import { CreateTableCommand } from '../../../draft/commands/impl/create-table.command';
|
|
5
|
+
import { CreateTableHandlerReturnType } from '../../../draft/commands/types/create-table.handler.types';
|
|
6
|
+
import { DraftContextService } from '../../../draft/draft-context.service';
|
|
7
|
+
import { DraftRevisionRequestDto } from '../../../draft/draft-request-dto/draft-revision-request.dto';
|
|
8
|
+
import { DraftTableRequestDto } from '../../../draft/draft-request-dto/table-request.dto';
|
|
9
|
+
import { DraftHandler } from '../../../draft/draft.handler';
|
|
10
|
+
import { DraftTransactionalCommands } from '../../../draft/draft.transactional.commands';
|
|
11
|
+
import { JsonSchemaValidatorService } from '../../../draft/json-schema-validator.service';
|
|
12
|
+
import { SessionChangelogService } from '../../../draft/session-changelog.service';
|
|
13
13
|
export declare class CreateTableHandler extends DraftHandler<CreateTableCommand, CreateTableHandlerReturnType> {
|
|
14
14
|
protected readonly revisionRequestDto: DraftRevisionRequestDto;
|
|
15
15
|
protected readonly draftContext: DraftContextService;
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { ApiCreateRevisionHandler } from '
|
|
2
|
-
import { ApiCreateRowHandler } from '
|
|
3
|
-
import { ApiCreateTableHandler } from '
|
|
4
|
-
import { ApiRemoveRowHandler } from '
|
|
5
|
-
import { ApiRemoveTableHandler } from '
|
|
6
|
-
import { ApiRevertChangesHandler } from '
|
|
7
|
-
import { ApiUpdateRowHandler } from '
|
|
8
|
-
import { ApiUpdateTableHandler } from '
|
|
9
|
-
import { CreateRevisionHandler } from '
|
|
10
|
-
import { CreateRowHandler } from '
|
|
11
|
-
import { CreateTableHandler } from '
|
|
12
|
-
import { RemoveRowHandler } from '
|
|
13
|
-
import { RemoveTableHandler } from '
|
|
14
|
-
import { RevertChangesHandler } from '
|
|
15
|
-
import { GetOrCreateDraftRowHandler } from '
|
|
16
|
-
import { GetOrCreateDraftRowsHandler } from '
|
|
17
|
-
import { GetOrCreateDraftTableHandler } from '
|
|
18
|
-
import { ResolveDraftRevisionHandler } from '
|
|
19
|
-
import { ValidateDataHandler } from '
|
|
20
|
-
import { ValidateNotSystemTableHandler } from '
|
|
21
|
-
import { ValidateSchemaHandler } from '
|
|
22
|
-
import { UpdateRowHandler } from '
|
|
23
|
-
import { UpdateRowsHandler } from '
|
|
24
|
-
import { UpdateTableHandler } from '
|
|
1
|
+
import { ApiCreateRevisionHandler } from '../../../draft/commands/handlers/api-create-revision.handler';
|
|
2
|
+
import { ApiCreateRowHandler } from '../../../draft/commands/handlers/api-create-row.handler';
|
|
3
|
+
import { ApiCreateTableHandler } from '../../../draft/commands/handlers/api-create-table.handler';
|
|
4
|
+
import { ApiRemoveRowHandler } from '../../../draft/commands/handlers/api-remove-row.handler';
|
|
5
|
+
import { ApiRemoveTableHandler } from '../../../draft/commands/handlers/api-remove-table.handler';
|
|
6
|
+
import { ApiRevertChangesHandler } from '../../../draft/commands/handlers/api-revert-changes.handler';
|
|
7
|
+
import { ApiUpdateRowHandler } from '../../../draft/commands/handlers/api-update-row.handler';
|
|
8
|
+
import { ApiUpdateTableHandler } from '../../../draft/commands/handlers/api-update-table.handler';
|
|
9
|
+
import { CreateRevisionHandler } from '../../../draft/commands/handlers/create-revision.handler';
|
|
10
|
+
import { CreateRowHandler } from '../../../draft/commands/handlers/create-row.handler';
|
|
11
|
+
import { CreateTableHandler } from '../../../draft/commands/handlers/create-table.handler';
|
|
12
|
+
import { RemoveRowHandler } from '../../../draft/commands/handlers/remove-row.handler';
|
|
13
|
+
import { RemoveTableHandler } from '../../../draft/commands/handlers/remove-table.handler';
|
|
14
|
+
import { RevertChangesHandler } from '../../../draft/commands/handlers/revert-changes.handler';
|
|
15
|
+
import { GetOrCreateDraftRowHandler } from '../../../draft/commands/handlers/transactional/get-or-create-draft-row.handler';
|
|
16
|
+
import { GetOrCreateDraftRowsHandler } from '../../../draft/commands/handlers/transactional/get-or-create-draft-rows.handler';
|
|
17
|
+
import { GetOrCreateDraftTableHandler } from '../../../draft/commands/handlers/transactional/get-or-create-draft-table.handler';
|
|
18
|
+
import { ResolveDraftRevisionHandler } from '../../../draft/commands/handlers/transactional/resolve-draft-revision.handler';
|
|
19
|
+
import { ValidateDataHandler } from '../../../draft/commands/handlers/transactional/validate-data.handler';
|
|
20
|
+
import { ValidateNotSystemTableHandler } from '../../../draft/commands/handlers/transactional/validate-not-system-table.handler';
|
|
21
|
+
import { ValidateSchemaHandler } from '../../../draft/commands/handlers/transactional/validate-schema.handler';
|
|
22
|
+
import { UpdateRowHandler } from '../../../draft/commands/handlers/update-row.handler';
|
|
23
|
+
import { UpdateRowsHandler } from '../../../draft/commands/handlers/update-rows.handler';
|
|
24
|
+
import { UpdateTableHandler } from '../../../draft/commands/handlers/update-table.handler';
|
|
25
25
|
export declare const TABLE_COMMANDS_HANDLERS: (typeof ApiCreateRevisionHandler | typeof ApiCreateRowHandler | typeof ApiCreateTableHandler | typeof ApiRemoveRowHandler | typeof ApiRemoveTableHandler | typeof ApiRevertChangesHandler | typeof ApiUpdateRowHandler | typeof ApiUpdateTableHandler | typeof CreateRevisionHandler | typeof CreateRowHandler | typeof CreateTableHandler | typeof RemoveRowHandler | typeof RemoveTableHandler | typeof RevertChangesHandler | typeof GetOrCreateDraftRowHandler | typeof GetOrCreateDraftRowsHandler | typeof GetOrCreateDraftTableHandler | typeof ResolveDraftRevisionHandler | typeof ValidateDataHandler | typeof ValidateNotSystemTableHandler | typeof ValidateSchemaHandler | typeof UpdateRowHandler | typeof UpdateRowsHandler | typeof UpdateTableHandler)[];
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { TransactionPrismaService } from '
|
|
2
|
-
import { RemoveRowCommand } from '
|
|
3
|
-
import { RemoveRowHandlerReturnType } from '
|
|
4
|
-
import { DraftContextService } from '
|
|
5
|
-
import { DraftRevisionRequestDto } from '
|
|
6
|
-
import { DraftRowRequestDto } from '
|
|
7
|
-
import { DraftTableRequestDto } from '
|
|
8
|
-
import { DraftHandler } from '
|
|
9
|
-
import { DraftTransactionalCommands } from '
|
|
10
|
-
import { SessionChangelogService } from '
|
|
11
|
-
import { ReferencesService } from '
|
|
12
|
-
import { ShareTransactionalQueries } from '
|
|
1
|
+
import { TransactionPrismaService } from '../../../database/transaction-prisma.service';
|
|
2
|
+
import { RemoveRowCommand } from '../../../draft/commands/impl/remove-row.command';
|
|
3
|
+
import { RemoveRowHandlerReturnType } from '../../../draft/commands/types/remove-row.handler.types';
|
|
4
|
+
import { DraftContextService } from '../../../draft/draft-context.service';
|
|
5
|
+
import { DraftRevisionRequestDto } from '../../../draft/draft-request-dto/draft-revision-request.dto';
|
|
6
|
+
import { DraftRowRequestDto } from '../../../draft/draft-request-dto/row-request.dto';
|
|
7
|
+
import { DraftTableRequestDto } from '../../../draft/draft-request-dto/table-request.dto';
|
|
8
|
+
import { DraftHandler } from '../../../draft/draft.handler';
|
|
9
|
+
import { DraftTransactionalCommands } from '../../../draft/draft.transactional.commands';
|
|
10
|
+
import { SessionChangelogService } from '../../../draft/session-changelog.service';
|
|
11
|
+
import { ReferencesService } from '../../../share/references.service';
|
|
12
|
+
import { ShareTransactionalQueries } from '../../../share/share.transactional.queries';
|
|
13
13
|
export declare class RemoveRowHandler extends DraftHandler<RemoveRowCommand, RemoveRowHandlerReturnType> {
|
|
14
14
|
protected readonly transactionService: TransactionPrismaService;
|
|
15
15
|
protected readonly draftContext: DraftContextService;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { CommandBus } from '@nestjs/cqrs';
|
|
2
|
-
import { TransactionPrismaService } from '
|
|
3
|
-
import { RemoveTableCommand } from '
|
|
4
|
-
import { RemoveTableHandlerReturnType } from '
|
|
5
|
-
import { DraftContextService } from '
|
|
6
|
-
import { DraftRevisionRequestDto } from '
|
|
7
|
-
import { DraftTableRequestDto } from '
|
|
8
|
-
import { DraftHandler } from '
|
|
9
|
-
import { DraftTransactionalCommands } from '
|
|
10
|
-
import { SessionChangelogService } from '
|
|
11
|
-
import { ReferencesService } from '
|
|
12
|
-
import { ShareTransactionalQueries } from '
|
|
2
|
+
import { TransactionPrismaService } from '../../../database/transaction-prisma.service';
|
|
3
|
+
import { RemoveTableCommand } from '../../../draft/commands/impl/remove-table.command';
|
|
4
|
+
import { RemoveTableHandlerReturnType } from '../../../draft/commands/types/remove-table.handler.types';
|
|
5
|
+
import { DraftContextService } from '../../../draft/draft-context.service';
|
|
6
|
+
import { DraftRevisionRequestDto } from '../../../draft/draft-request-dto/draft-revision-request.dto';
|
|
7
|
+
import { DraftTableRequestDto } from '../../../draft/draft-request-dto/table-request.dto';
|
|
8
|
+
import { DraftHandler } from '../../../draft/draft.handler';
|
|
9
|
+
import { DraftTransactionalCommands } from '../../../draft/draft.transactional.commands';
|
|
10
|
+
import { SessionChangelogService } from '../../../draft/session-changelog.service';
|
|
11
|
+
import { ReferencesService } from '../../../share/references.service';
|
|
12
|
+
import { ShareTransactionalQueries } from '../../../share/share.transactional.queries';
|
|
13
13
|
export declare class RemoveTableHandler extends DraftHandler<RemoveTableCommand, RemoveTableHandlerReturnType> {
|
|
14
14
|
protected readonly transactionService: TransactionPrismaService;
|
|
15
15
|
protected readonly draftContext: DraftContextService;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { TransactionPrismaService } from '
|
|
2
|
-
import { RevertChangesCommand } from '
|
|
3
|
-
import { RevertChangesHandlerReturnType } from '
|
|
4
|
-
import { DraftContextService } from '
|
|
5
|
-
import { DraftHandler } from '
|
|
6
|
-
import { ShareTransactionalQueries } from '
|
|
1
|
+
import { TransactionPrismaService } from '../../../database/transaction-prisma.service';
|
|
2
|
+
import { RevertChangesCommand } from '../../../draft/commands/impl/revert-changes.command';
|
|
3
|
+
import { RevertChangesHandlerReturnType } from '../../../draft/commands/types/revert-changes.handler.types';
|
|
4
|
+
import { DraftContextService } from '../../../draft/draft-context.service';
|
|
5
|
+
import { DraftHandler } from '../../../draft/draft.handler';
|
|
6
|
+
import { ShareTransactionalQueries } from '../../../share/share.transactional.queries';
|
|
7
7
|
export declare class RevertChangesHandler extends DraftHandler<RevertChangesCommand, RevertChangesHandlerReturnType> {
|
|
8
8
|
protected readonly transactionService: TransactionPrismaService;
|
|
9
9
|
protected readonly draftContext: DraftContextService;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { ICommandHandler } from '@nestjs/cqrs';
|
|
2
|
-
import { IdService } from '
|
|
3
|
-
import { TransactionPrismaService } from '
|
|
4
|
-
import { GetOrCreateDraftRowCommand } from '
|
|
5
|
-
import { DraftRevisionRequestDto } from '
|
|
6
|
-
import { DraftRowRequestDto } from '
|
|
7
|
-
import { DraftTableRequestDto } from '
|
|
8
|
-
import { SessionChangelogService } from '
|
|
9
|
-
import { ShareTransactionalQueries } from '
|
|
2
|
+
import { IdService } from '../../../../database/id.service';
|
|
3
|
+
import { TransactionPrismaService } from '../../../../database/transaction-prisma.service';
|
|
4
|
+
import { GetOrCreateDraftRowCommand } from '../../../../draft/commands/impl/transactional/get-or-create-draft-row.command';
|
|
5
|
+
import { DraftRevisionRequestDto } from '../../../../draft/draft-request-dto/draft-revision-request.dto';
|
|
6
|
+
import { DraftRowRequestDto } from '../../../../draft/draft-request-dto/row-request.dto';
|
|
7
|
+
import { DraftTableRequestDto } from '../../../../draft/draft-request-dto/table-request.dto';
|
|
8
|
+
import { SessionChangelogService } from '../../../../draft/session-changelog.service';
|
|
9
|
+
import { ShareTransactionalQueries } from '../../../../share/share.transactional.queries';
|
|
10
10
|
export declare class GetOrCreateDraftRowHandler implements ICommandHandler<GetOrCreateDraftRowCommand> {
|
|
11
11
|
private transactionService;
|
|
12
12
|
private idService;
|
package/dist/src/draft/commands/handlers/transactional/get-or-create-draft-rows.handler.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { ICommandHandler } from '@nestjs/cqrs';
|
|
2
|
-
import { IdService } from '
|
|
3
|
-
import { TransactionPrismaService } from '
|
|
4
|
-
import { GetOrCreateDraftRowsCommand } from '
|
|
5
|
-
import { DraftRevisionRequestDto } from '
|
|
6
|
-
import { DraftRowsRequestDto } from '
|
|
7
|
-
import { DraftTableRequestDto } from '
|
|
8
|
-
import { SessionChangelogService } from '
|
|
9
|
-
import { ShareTransactionalQueries } from '
|
|
2
|
+
import { IdService } from '../../../../database/id.service';
|
|
3
|
+
import { TransactionPrismaService } from '../../../../database/transaction-prisma.service';
|
|
4
|
+
import { GetOrCreateDraftRowsCommand } from '../../../../draft/commands/impl/transactional/get-or-create-draft-rows.command';
|
|
5
|
+
import { DraftRevisionRequestDto } from '../../../../draft/draft-request-dto/draft-revision-request.dto';
|
|
6
|
+
import { DraftRowsRequestDto } from '../../../../draft/draft-request-dto/rows-request.dto';
|
|
7
|
+
import { DraftTableRequestDto } from '../../../../draft/draft-request-dto/table-request.dto';
|
|
8
|
+
import { SessionChangelogService } from '../../../../draft/session-changelog.service';
|
|
9
|
+
import { ShareTransactionalQueries } from '../../../../share/share.transactional.queries';
|
|
10
10
|
export declare class GetOrCreateDraftRowsHandler implements ICommandHandler<GetOrCreateDraftRowsCommand> {
|
|
11
11
|
private transactionService;
|
|
12
12
|
private idService;
|
package/dist/src/draft/commands/handlers/transactional/get-or-create-draft-table.handler.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ICommandHandler } from '@nestjs/cqrs';
|
|
2
|
-
import { IdService } from '
|
|
3
|
-
import { TransactionPrismaService } from '
|
|
4
|
-
import { GetOrCreateDraftTableCommand } from '
|
|
5
|
-
import { DraftRevisionRequestDto } from '
|
|
6
|
-
import { DraftTableRequestDto } from '
|
|
7
|
-
import { SessionChangelogService } from '
|
|
8
|
-
import { ShareTransactionalQueries } from '
|
|
2
|
+
import { IdService } from '../../../../database/id.service';
|
|
3
|
+
import { TransactionPrismaService } from '../../../../database/transaction-prisma.service';
|
|
4
|
+
import { GetOrCreateDraftTableCommand } from '../../../../draft/commands/impl/transactional/get-or-create-draft-table.command';
|
|
5
|
+
import { DraftRevisionRequestDto } from '../../../../draft/draft-request-dto/draft-revision-request.dto';
|
|
6
|
+
import { DraftTableRequestDto } from '../../../../draft/draft-request-dto/table-request.dto';
|
|
7
|
+
import { SessionChangelogService } from '../../../../draft/session-changelog.service';
|
|
8
|
+
import { ShareTransactionalQueries } from '../../../../share/share.transactional.queries';
|
|
9
9
|
export declare class GetOrCreateDraftTableHandler implements ICommandHandler<GetOrCreateDraftTableCommand> {
|
|
10
10
|
private transactionService;
|
|
11
11
|
private revisionRequestDto;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ICommandHandler } from '@nestjs/cqrs';
|
|
2
|
-
import { TransactionPrismaService } from '
|
|
3
|
-
import { ResolveDraftRevisionCommand } from '
|
|
4
|
-
import { DraftRevisionRequestDto } from '
|
|
2
|
+
import { TransactionPrismaService } from '../../../../database/transaction-prisma.service';
|
|
3
|
+
import { ResolveDraftRevisionCommand } from '../../../../draft/commands/impl/transactional/resolve-draft-revision.command';
|
|
4
|
+
import { DraftRevisionRequestDto } from '../../../../draft/draft-request-dto/draft-revision-request.dto';
|
|
5
5
|
export declare class ResolveDraftRevisionHandler implements ICommandHandler<ResolveDraftRevisionCommand> {
|
|
6
6
|
private transactionService;
|
|
7
7
|
private revisionRequestDto;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ICommandHandler } from '@nestjs/cqrs';
|
|
2
|
-
import { ValidateDataCommand } from '
|
|
3
|
-
import { DraftRevisionRequestDto } from '
|
|
4
|
-
import { JsonSchemaValidatorService } from '
|
|
5
|
-
import { ShareTransactionalQueries } from '
|
|
2
|
+
import { ValidateDataCommand } from '../../../../draft/commands/impl/transactional/validate-data.command';
|
|
3
|
+
import { DraftRevisionRequestDto } from '../../../../draft/draft-request-dto/draft-revision-request.dto';
|
|
4
|
+
import { JsonSchemaValidatorService } from '../../../../draft/json-schema-validator.service';
|
|
5
|
+
import { ShareTransactionalQueries } from '../../../../share/share.transactional.queries';
|
|
6
6
|
export declare class ValidateDataHandler implements ICommandHandler<ValidateDataCommand> {
|
|
7
7
|
protected readonly revisionRequestDto: DraftRevisionRequestDto;
|
|
8
8
|
protected readonly shareTransactionalQueries: ShareTransactionalQueries;
|