@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
package/dist/src/share/queries/handlers/transactional/find-rows-in-table-or-throw.handler.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IQueryHandler } from '@nestjs/cqrs';
|
|
2
|
-
import { TransactionPrismaService } from '
|
|
3
|
-
import { FindRowsInTableOrThrowQuery } from '
|
|
4
|
-
import { FindRowsInTableType } from '
|
|
2
|
+
import { TransactionPrismaService } from '../../../../database/transaction-prisma.service';
|
|
3
|
+
import { FindRowsInTableOrThrowQuery } from '../../../../share/queries/impl/transactional/find-rows-in-table-or-throw.query';
|
|
4
|
+
import { FindRowsInTableType } from '../../../../share/queries/types';
|
|
5
5
|
export declare class FindRowsInTableOrThrowHandler implements IQueryHandler<FindRowsInTableOrThrowQuery> {
|
|
6
6
|
private transactionService;
|
|
7
7
|
constructor(transactionService: TransactionPrismaService);
|
package/dist/src/share/queries/handlers/transactional/find-table-in-revision-or-throw.handler.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IQueryHandler } from '@nestjs/cqrs';
|
|
2
|
-
import { TransactionPrismaService } from '
|
|
3
|
-
import { FindTableInRevisionOrThrowQuery } from '
|
|
4
|
-
import { FindTableInRevisionType } from '
|
|
2
|
+
import { TransactionPrismaService } from '../../../../database/transaction-prisma.service';
|
|
3
|
+
import { FindTableInRevisionOrThrowQuery } from '../../../../share/queries/impl/transactional/find-table-in-revision-or-throw.query';
|
|
4
|
+
import { FindTableInRevisionType } from '../../../../share/queries/types';
|
|
5
5
|
export declare class FindTableInRevisionOrThrowHandler implements IQueryHandler<FindTableInRevisionOrThrowQuery> {
|
|
6
6
|
private transactionService;
|
|
7
7
|
constructor(transactionService: TransactionPrismaService);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IQueryHandler } from '@nestjs/cqrs';
|
|
2
|
-
import { TransactionPrismaService } from '
|
|
3
|
-
import { GetTableSchemaQuery } from '
|
|
4
|
-
import { JsonSchema } from '
|
|
2
|
+
import { TransactionPrismaService } from '../../../../database/transaction-prisma.service';
|
|
3
|
+
import { GetTableSchemaQuery } from '../../../../share/queries/impl';
|
|
4
|
+
import { JsonSchema } from '../../../../share/utils/schema/types/schema.types';
|
|
5
5
|
export declare class GetTableSchemaHandler implements IQueryHandler<GetTableSchemaQuery> {
|
|
6
6
|
private readonly transactionService;
|
|
7
7
|
constructor(transactionService: TransactionPrismaService);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export type * from '
|
|
2
|
-
export type * from '
|
|
3
|
-
export type * from '
|
|
4
|
-
export type * from '
|
|
5
|
-
export type * from '
|
|
6
|
-
export type * from '
|
|
7
|
-
export type * from '
|
|
1
|
+
export type * from '../../../share/queries/types/find-table-in-revision.types';
|
|
2
|
+
export type * from '../../../share/queries/types/find-row-in-table.types';
|
|
3
|
+
export type * from '../../../share/queries/types/find-rows-in-table.types';
|
|
4
|
+
export type * from '../../../share/queries/types/find-branch-in-project.types';
|
|
5
|
+
export type * from '../../../share/queries/types/find-draft-revision-in-branch.types';
|
|
6
|
+
export type * from '../../../share/queries/types/find-head-revision-in-branch.types';
|
|
7
|
+
export type * from '../../../share/queries/types/find-project-in-organization.types';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TransactionPrismaService } from '
|
|
1
|
+
import { TransactionPrismaService } from '../database/transaction-prisma.service';
|
|
2
2
|
export declare class ReferencesService {
|
|
3
3
|
private transactionService;
|
|
4
4
|
constructor(transactionService: TransactionPrismaService);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { QueryBus } from '@nestjs/cqrs';
|
|
2
|
-
import { FindBranchInProjectType, FindDraftRevisionInBranchType, FindHeadRevisionInBranchType, FindProjectInOrganizationType, FindRowInTableType, FindRowsInTableType, FindTableInRevisionType } from '
|
|
3
|
-
import { JsonSchema } from '
|
|
2
|
+
import { FindBranchInProjectType, FindDraftRevisionInBranchType, FindHeadRevisionInBranchType, FindProjectInOrganizationType, FindRowInTableType, FindRowsInTableType, FindTableInRevisionType } from '../share/queries/types';
|
|
3
|
+
import { JsonSchema } from '../share/utils/schema/types/schema.types';
|
|
4
4
|
export declare class ShareTransactionalQueries {
|
|
5
5
|
private queryBus;
|
|
6
6
|
constructor(queryBus: QueryBus);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { JsonSchemaStore } from '
|
|
2
|
-
import { JsonPatchAdd, JsonPatchMove, JsonPatchRemove, JsonPatchReplace } from '
|
|
1
|
+
import { JsonSchemaStore } from '../../../../share/utils/schema/model/schema/json-schema.store';
|
|
2
|
+
import { JsonPatchAdd, JsonPatchMove, JsonPatchRemove, JsonPatchReplace } from '../../../../share/utils/schema/types/json-patch.types';
|
|
3
3
|
export declare const applyReplacePatch: (store: JsonSchemaStore, patch: JsonPatchReplace) => JsonSchemaStore;
|
|
4
4
|
export declare const applyRemovePatch: (rootStore: JsonSchemaStore, patch: JsonPatchRemove) => void;
|
|
5
5
|
export declare const applyAddPatch: (rootStore: JsonSchemaStore, patch: JsonPatchAdd) => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { JsonObjectStore } from '
|
|
2
|
-
import { JsonSchemaStore, JsonSchemaStorePrimitives } from '
|
|
3
|
-
import { JsonObjectSchema, JsonSchema } from '
|
|
1
|
+
import { JsonObjectStore } from '../../../../share/utils/schema/model/schema/json-object.store';
|
|
2
|
+
import { JsonSchemaStore, JsonSchemaStorePrimitives } from '../../../../share/utils/schema/model/schema/json-schema.store';
|
|
3
|
+
import { JsonObjectSchema, JsonSchema } from '../../../../share/utils/schema/types/schema.types';
|
|
4
4
|
export declare const createJsonSchemaStore: (schema: JsonSchema) => JsonSchemaStore;
|
|
5
5
|
export declare const createJsonObjectSchemaStore: (value: JsonObjectSchema) => JsonObjectStore;
|
|
6
6
|
export declare const createPrimitiveStoreBySchema: (schema: JsonSchema) => JsonSchemaStorePrimitives;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { JsonArrayStore } from '
|
|
2
|
-
import { JsonObjectStore } from '
|
|
3
|
-
import { JsonSchemaStore, JsonSchemaStorePrimitives } from '
|
|
4
|
-
import { JsonArrayValueStore } from '
|
|
5
|
-
import { JsonObjectValueStore } from '
|
|
6
|
-
import { JsonValueStore, JsonValueStorePrimitives } from '
|
|
7
|
-
import { JsonArray, JsonObject, JsonPrimitives, JsonValue } from '
|
|
1
|
+
import { JsonArrayStore } from '../../../../share/utils/schema/model/schema/json-array.store';
|
|
2
|
+
import { JsonObjectStore } from '../../../../share/utils/schema/model/schema/json-object.store';
|
|
3
|
+
import { JsonSchemaStore, JsonSchemaStorePrimitives } from '../../../../share/utils/schema/model/schema/json-schema.store';
|
|
4
|
+
import { JsonArrayValueStore } from '../../../../share/utils/schema/model/value/json-array-value.store';
|
|
5
|
+
import { JsonObjectValueStore } from '../../../../share/utils/schema/model/value/json-object-value.store';
|
|
6
|
+
import { JsonValueStore, JsonValueStorePrimitives } from '../../../../share/utils/schema/model/value/json-value.store';
|
|
7
|
+
import { JsonArray, JsonObject, JsonPrimitives, JsonValue } from '../../../../share/utils/schema/types/json.types';
|
|
8
8
|
export declare const createJsonValueStore: (schema: JsonSchemaStore, rowId: string, rawValue: JsonValue) => JsonValueStore;
|
|
9
9
|
export declare const createJsonObjectValueStore: (schema: JsonObjectStore, rowId: string, rawValue: JsonObject) => JsonObjectValueStore;
|
|
10
10
|
export declare const createJsonArrayValueStore: (schema: JsonArrayStore, rowId: string, rawValue: JsonArray) => JsonArrayValueStore;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { JsonSchemaStore } from '
|
|
1
|
+
import { JsonSchemaStore } from '../../../../share/utils/schema/model/schema/json-schema.store';
|
|
2
2
|
export declare const getJsonSchemaStoreByPath: (store: JsonSchemaStore, path: string) => JsonSchemaStore;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { JsonSchemaStore } from '
|
|
1
|
+
import { JsonSchemaStore } from '../../../../share/utils/schema/model/schema/json-schema.store';
|
|
2
2
|
export declare const getPathByStore: (store: JsonSchemaStore) => string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { JsonSchemaStore } from '
|
|
1
|
+
import { JsonSchemaStore } from '../../../../share/utils/schema/model/schema/json-schema.store';
|
|
2
2
|
export declare const getReferencesFromSchema: (store: JsonSchemaStore) => string[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { JsonSchemaStore } from '
|
|
1
|
+
import { JsonSchemaStore } from '../../../../share/utils/schema/model/schema/json-schema.store';
|
|
2
2
|
export declare const getValuePathByStore: (store: JsonSchemaStore) => string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { JsonPatch } from '
|
|
2
|
-
import { JsonValue } from '
|
|
3
|
-
import { JsonSchema } from '
|
|
1
|
+
import { JsonPatch } from '../../../../share/utils/schema/types/json-patch.types';
|
|
2
|
+
import { JsonValue } from '../../../../share/utils/schema/types/json.types';
|
|
3
|
+
import { JsonSchema } from '../../../../share/utils/schema/types/schema.types';
|
|
4
4
|
export declare class SchemaTable {
|
|
5
5
|
private rows;
|
|
6
6
|
private store;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { JsonSchemaStore } from '
|
|
1
|
+
import { JsonSchemaStore } from '../../../../share/utils/schema/model/schema/json-schema.store';
|
|
2
2
|
export declare const traverseStore: (store: JsonSchemaStore, callback: (node: JsonSchemaStore) => void) => void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { JsonValueStore } from '
|
|
1
|
+
import { JsonValueStore } from '../../../../share/utils/schema/model/value/json-value.store';
|
|
2
2
|
export declare const traverseValue: (store: JsonValueStore, callback: (node: JsonValueStore) => void) => void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { JsonSchemaStore } from '
|
|
2
|
-
import { JsonArrayValueStore } from '
|
|
3
|
-
import { JsonArray } from '
|
|
4
|
-
import { JsonArraySchema, JsonSchemaTypeName } from '
|
|
1
|
+
import { JsonSchemaStore } from '../../../../../share/utils/schema/model/schema/json-schema.store';
|
|
2
|
+
import { JsonArrayValueStore } from '../../../../../share/utils/schema/model/value/json-array-value.store';
|
|
3
|
+
import { JsonArray } from '../../../../../share/utils/schema/types/json.types';
|
|
4
|
+
import { JsonArraySchema, JsonSchemaTypeName } from '../../../../../share/utils/schema/types/schema.types';
|
|
5
5
|
export type MigrateItemsEvent = {
|
|
6
6
|
items: JsonSchemaStore;
|
|
7
7
|
previousItems: JsonSchemaStore;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EventEmitter } from 'node:events';
|
|
2
|
-
import { JsonSchemaStore } from '
|
|
3
|
-
import { JsonBooleanValueStore } from '
|
|
4
|
-
import { JsonBooleanSchema, JsonSchemaTypeName } from '
|
|
2
|
+
import { JsonSchemaStore } from '../../../../../share/utils/schema/model/schema/json-schema.store';
|
|
3
|
+
import { JsonBooleanValueStore } from '../../../../../share/utils/schema/model/value/json-boolean-value.store';
|
|
4
|
+
import { JsonBooleanSchema, JsonSchemaTypeName } from '../../../../../share/utils/schema/types/schema.types';
|
|
5
5
|
export declare class JsonBooleanStore extends EventEmitter implements JsonBooleanSchema {
|
|
6
6
|
readonly nodeId: string;
|
|
7
7
|
readonly type = JsonSchemaTypeName.Boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EventEmitter } from 'node:events';
|
|
2
|
-
import { JsonSchemaStore } from '
|
|
3
|
-
import { JsonNumberValueStore } from '
|
|
4
|
-
import { JsonNumberSchema, JsonSchemaTypeName } from '
|
|
2
|
+
import { JsonSchemaStore } from '../../../../../share/utils/schema/model/schema/json-schema.store';
|
|
3
|
+
import { JsonNumberValueStore } from '../../../../../share/utils/schema/model/value/json-number-value.store';
|
|
4
|
+
import { JsonNumberSchema, JsonSchemaTypeName } from '../../../../../share/utils/schema/types/schema.types';
|
|
5
5
|
export declare class JsonNumberStore extends EventEmitter implements JsonNumberSchema {
|
|
6
6
|
readonly nodeId: string;
|
|
7
7
|
readonly type = JsonSchemaTypeName.Number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { JsonSchemaStore } from '
|
|
2
|
-
import { JsonObjectValueStore } from '
|
|
3
|
-
import { JsonObject } from '
|
|
4
|
-
import { JsonObjectSchema, JsonSchemaTypeName } from '
|
|
1
|
+
import { JsonSchemaStore } from '../../../../../share/utils/schema/model/schema/json-schema.store';
|
|
2
|
+
import { JsonObjectValueStore } from '../../../../../share/utils/schema/model/value/json-object-value.store';
|
|
3
|
+
import { JsonObject } from '../../../../../share/utils/schema/types/json.types';
|
|
4
|
+
import { JsonObjectSchema, JsonSchemaTypeName } from '../../../../../share/utils/schema/types/schema.types';
|
|
5
5
|
export type AddedPropertyEvent = {
|
|
6
6
|
name: string;
|
|
7
7
|
property: JsonSchemaStore;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { JsonArrayStore } from '
|
|
2
|
-
import { JsonBooleanStore } from '
|
|
3
|
-
import { JsonNumberStore } from '
|
|
4
|
-
import { JsonObjectStore } from '
|
|
5
|
-
import { JsonStringStore } from '
|
|
1
|
+
import { JsonArrayStore } from '../../../../../share/utils/schema/model/schema/json-array.store';
|
|
2
|
+
import { JsonBooleanStore } from '../../../../../share/utils/schema/model/schema/json-boolean.store';
|
|
3
|
+
import { JsonNumberStore } from '../../../../../share/utils/schema/model/schema/json-number.store';
|
|
4
|
+
import { JsonObjectStore } from '../../../../../share/utils/schema/model/schema/json-object.store';
|
|
5
|
+
import { JsonStringStore } from '../../../../../share/utils/schema/model/schema/json-string.store';
|
|
6
6
|
export type JsonSchemaStorePrimitives = JsonStringStore | JsonNumberStore | JsonBooleanStore;
|
|
7
7
|
export type JsonSchemaStore = JsonObjectStore | JsonArrayStore | JsonSchemaStorePrimitives;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EventEmitter } from 'node:events';
|
|
2
|
-
import { JsonSchemaStore } from '
|
|
3
|
-
import { JsonStringValueStore } from '
|
|
4
|
-
import { JsonSchemaTypeName, JsonStringSchema } from '
|
|
2
|
+
import { JsonSchemaStore } from '../../../../../share/utils/schema/model/schema/json-schema.store';
|
|
3
|
+
import { JsonStringValueStore } from '../../../../../share/utils/schema/model/value/json-string-value.store';
|
|
4
|
+
import { JsonSchemaTypeName, JsonStringSchema } from '../../../../../share/utils/schema/types/schema.types';
|
|
5
5
|
export declare class JsonStringStore extends EventEmitter implements JsonStringSchema {
|
|
6
6
|
readonly nodeId: string;
|
|
7
7
|
readonly type = JsonSchemaTypeName.String;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { JsonArrayStore, MigrateItemsEvent, ReplaceItemsEvent } from '
|
|
2
|
-
import { JsonValueStore } from '
|
|
3
|
-
import { JsonArray } from '
|
|
4
|
-
import { JsonSchemaTypeName } from '
|
|
1
|
+
import { JsonArrayStore, MigrateItemsEvent, ReplaceItemsEvent } from '../../../../../share/utils/schema/model/schema/json-array.store';
|
|
2
|
+
import { JsonValueStore } from '../../../../../share/utils/schema/model/value/json-value.store';
|
|
3
|
+
import { JsonArray } from '../../../../../share/utils/schema/types/json.types';
|
|
4
|
+
import { JsonSchemaTypeName } from '../../../../../share/utils/schema/types/schema.types';
|
|
5
5
|
export declare class JsonArrayValueStore {
|
|
6
6
|
private schema;
|
|
7
7
|
readonly rowId: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { JsonBooleanStore } from '
|
|
2
|
-
import { JsonSchemaTypeName } from '
|
|
1
|
+
import { JsonBooleanStore } from '../../../../../share/utils/schema/model/schema/json-boolean.store';
|
|
2
|
+
import { JsonSchemaTypeName } from '../../../../../share/utils/schema/types/schema.types';
|
|
3
3
|
export declare class JsonBooleanValueStore {
|
|
4
4
|
private schema;
|
|
5
5
|
readonly rowId: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { JsonNumberStore } from '
|
|
2
|
-
import { JsonSchemaTypeName } from '
|
|
1
|
+
import { JsonNumberStore } from '../../../../../share/utils/schema/model/schema/json-number.store';
|
|
2
|
+
import { JsonSchemaTypeName } from '../../../../../share/utils/schema/types/schema.types';
|
|
3
3
|
export declare class JsonNumberValueStore {
|
|
4
4
|
private schema;
|
|
5
5
|
readonly rowId: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { AddedPropertyEvent, ChangeNameEvent, JsonObjectStore, MigratePropertyEvent, RemovedPropertyEvent } from '
|
|
2
|
-
import { JsonValueStore } from '
|
|
3
|
-
import { JsonObject } from '
|
|
4
|
-
import { JsonSchemaTypeName } from '
|
|
1
|
+
import { AddedPropertyEvent, ChangeNameEvent, JsonObjectStore, MigratePropertyEvent, RemovedPropertyEvent } from '../../../../../share/utils/schema/model/schema/json-object.store';
|
|
2
|
+
import { JsonValueStore } from '../../../../../share/utils/schema/model/value/json-value.store';
|
|
3
|
+
import { JsonObject } from '../../../../../share/utils/schema/types/json.types';
|
|
4
|
+
import { JsonSchemaTypeName } from '../../../../../share/utils/schema/types/schema.types';
|
|
5
5
|
export declare class JsonObjectValueStore {
|
|
6
6
|
private schema;
|
|
7
7
|
readonly rowId: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { JsonStringStore } from '
|
|
2
|
-
import { JsonSchemaTypeName } from '
|
|
1
|
+
import { JsonStringStore } from '../../../../../share/utils/schema/model/schema/json-string.store';
|
|
2
|
+
import { JsonSchemaTypeName } from '../../../../../share/utils/schema/types/schema.types';
|
|
3
3
|
export declare class JsonStringValueStore {
|
|
4
4
|
private schema;
|
|
5
5
|
readonly rowId: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { JsonArrayValueStore } from '
|
|
2
|
-
import { JsonBooleanValueStore } from '
|
|
3
|
-
import { JsonNumberValueStore } from '
|
|
4
|
-
import { JsonObjectValueStore } from '
|
|
5
|
-
import { JsonStringValueStore } from '
|
|
1
|
+
import { JsonArrayValueStore } from '../../../../../share/utils/schema/model/value/json-array-value.store';
|
|
2
|
+
import { JsonBooleanValueStore } from '../../../../../share/utils/schema/model/value/json-boolean-value.store';
|
|
3
|
+
import { JsonNumberValueStore } from '../../../../../share/utils/schema/model/value/json-number-value.store';
|
|
4
|
+
import { JsonObjectValueStore } from '../../../../../share/utils/schema/model/value/json-object-value.store';
|
|
5
|
+
import { JsonStringValueStore } from '../../../../../share/utils/schema/model/value/json-string-value.store';
|
|
6
6
|
export type JsonValueStorePrimitives = JsonStringValueStore | JsonNumberValueStore | JsonBooleanValueStore;
|
|
7
7
|
export type JsonValueStore = JsonObjectValueStore | JsonArrayValueStore | JsonValueStorePrimitives;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { JsonSchemaStore } from '
|
|
1
|
+
import { JsonSchemaStore } from '../../../../../share/utils/schema/model/schema/json-schema.store';
|
|
2
2
|
export declare const equel: (value: unknown) => unknown;
|
|
3
3
|
export declare const fromNumberToString: (value: number, defaultValue?: string) => string;
|
|
4
4
|
export declare const fromBooleanToString: (value: boolean, defaultValue?: string) => string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IQueryHandler } from '@nestjs/cqrs';
|
|
2
|
-
import { PrismaService } from '
|
|
3
|
-
import { GetCountRowsInTableQuery } from '
|
|
2
|
+
import { PrismaService } from '../../../database/prisma.service';
|
|
3
|
+
import { GetCountRowsInTableQuery } from '../../../table/queries/impl';
|
|
4
4
|
export declare class GetCountRowsInTableHandler implements IQueryHandler<GetCountRowsInTableQuery> {
|
|
5
5
|
private prisma;
|
|
6
6
|
constructor(prisma: PrismaService);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { IQueryHandler } from '@nestjs/cqrs';
|
|
2
2
|
import { Prisma } from '@prisma/client';
|
|
3
|
-
import { PrismaService } from '
|
|
4
|
-
import { GetRowsByTableQuery } from '
|
|
5
|
-
import { GetTableRowsReturnType } from '
|
|
3
|
+
import { PrismaService } from '../../../database/prisma.service';
|
|
4
|
+
import { GetRowsByTableQuery } from '../../../table/queries/impl/get-rows-by-table.query';
|
|
5
|
+
import { GetTableRowsReturnType } from '../../../table/queries/types';
|
|
6
6
|
export declare class GetRowsByTableHandler implements IQueryHandler<GetRowsByTableQuery, GetTableRowsReturnType> {
|
|
7
7
|
private prisma;
|
|
8
8
|
constructor(prisma: PrismaService);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IQueryHandler } from '@nestjs/cqrs';
|
|
2
|
-
import { PrismaService } from '
|
|
3
|
-
import { GetTableByIdQuery } from '
|
|
4
|
-
import { GetTableByIdReturnType } from '
|
|
2
|
+
import { PrismaService } from '../../../database/prisma.service';
|
|
3
|
+
import { GetTableByIdQuery } from '../../../table/queries/impl/get-table-by-id.query';
|
|
4
|
+
import { GetTableByIdReturnType } from '../../../table/queries/types';
|
|
5
5
|
export declare class GetTableByIdHandler implements IQueryHandler<GetTableByIdQuery, GetTableByIdReturnType> {
|
|
6
6
|
private prisma;
|
|
7
7
|
constructor(prisma: PrismaService);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { IQueryHandler } from '@nestjs/cqrs';
|
|
2
|
-
import { TransactionPrismaService } from '
|
|
3
|
-
import { ShareTransactionalQueries } from '
|
|
4
|
-
import { GetTableQuery } from '
|
|
5
|
-
import { GetTableReturnType } from '
|
|
2
|
+
import { TransactionPrismaService } from '../../../database/transaction-prisma.service';
|
|
3
|
+
import { ShareTransactionalQueries } from '../../../share/share.transactional.queries';
|
|
4
|
+
import { GetTableQuery } from '../../../table/queries/impl/get-table.query';
|
|
5
|
+
import { GetTableReturnType } from '../../../table/queries/types';
|
|
6
6
|
export declare class GetTableHandler implements IQueryHandler<GetTableQuery, GetTableReturnType> {
|
|
7
7
|
private transactionService;
|
|
8
8
|
private shareTransactionalQueries;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IQueryHandler } from '@nestjs/cqrs';
|
|
2
|
-
import { PrismaService } from '
|
|
3
|
-
import { GetTablesQuery } from '
|
|
4
|
-
import { GetTablesReturnType } from '
|
|
2
|
+
import { PrismaService } from '../../../database/prisma.service';
|
|
3
|
+
import { GetTablesQuery } from '../../../table/queries/impl/get-tables.query';
|
|
4
|
+
import { GetTablesReturnType } from '../../../table/queries/types';
|
|
5
5
|
export declare class GetTablesHandler implements IQueryHandler<GetTablesQuery, GetTablesReturnType> {
|
|
6
6
|
private prisma;
|
|
7
7
|
constructor(prisma: PrismaService);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { GetCountRowsInTableHandler } from '
|
|
2
|
-
import { GetRowsByTableHandler } from '
|
|
3
|
-
import { GetTableByIdHandler } from '
|
|
4
|
-
import { GetTableHandler } from '
|
|
5
|
-
import { GetTablesHandler } from '
|
|
6
|
-
import { ResolveTableCountReferencesByHandler } from '
|
|
7
|
-
import { ResolveTableCountReferencesToHandler } from '
|
|
8
|
-
import { ResolveTableReferencesByHandler } from '
|
|
9
|
-
import { ResolveTableReferencesToHandler } from '
|
|
10
|
-
import { ResolveTableSchemaHandler } from '
|
|
1
|
+
import { GetCountRowsInTableHandler } from '../../../table/queries/handlers/get-count-rows-in-table.handler';
|
|
2
|
+
import { GetRowsByTableHandler } from '../../../table/queries/handlers/get-rows-by-table.handler';
|
|
3
|
+
import { GetTableByIdHandler } from '../../../table/queries/handlers/get-table-by-id.handler';
|
|
4
|
+
import { GetTableHandler } from '../../../table/queries/handlers/get-table.handler';
|
|
5
|
+
import { GetTablesHandler } from '../../../table/queries/handlers/get-tables.handler';
|
|
6
|
+
import { ResolveTableCountReferencesByHandler } from '../../../table/queries/handlers/resolve-table-count-references-by.handler';
|
|
7
|
+
import { ResolveTableCountReferencesToHandler } from '../../../table/queries/handlers/resolve-table-count-references-to.handler';
|
|
8
|
+
import { ResolveTableReferencesByHandler } from '../../../table/queries/handlers/resolve-table-references-by.handler';
|
|
9
|
+
import { ResolveTableReferencesToHandler } from '../../../table/queries/handlers/resolve-table-references-to.handler';
|
|
10
|
+
import { ResolveTableSchemaHandler } from '../../../table/queries/handlers/resolve-table-schema.handler';
|
|
11
11
|
export declare const TABLE_QUERIES_HANDLERS: (typeof GetCountRowsInTableHandler | typeof GetRowsByTableHandler | typeof GetTableByIdHandler | typeof GetTableHandler | typeof GetTablesHandler | typeof ResolveTableCountReferencesByHandler | typeof ResolveTableCountReferencesToHandler | typeof ResolveTableReferencesByHandler | typeof ResolveTableReferencesToHandler | typeof ResolveTableSchemaHandler)[];
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { IQueryHandler } from '@nestjs/cqrs';
|
|
2
|
-
import { TransactionPrismaService } from '
|
|
3
|
-
import { ReferencesService } from '
|
|
4
|
-
import { ShareTransactionalQueries } from '
|
|
5
|
-
import { ResolveTableCountReferencesByQuery } from '
|
|
2
|
+
import { TransactionPrismaService } from '../../../database/transaction-prisma.service';
|
|
3
|
+
import { ReferencesService } from '../../../share/references.service';
|
|
4
|
+
import { ShareTransactionalQueries } from '../../../share/share.transactional.queries';
|
|
5
|
+
import { ResolveTableCountReferencesByQuery } from '../../../table/queries/impl';
|
|
6
6
|
export declare class ResolveTableCountReferencesByHandler implements IQueryHandler<ResolveTableCountReferencesByQuery> {
|
|
7
7
|
private readonly transactionService;
|
|
8
8
|
private readonly shareTransactionalQueries;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IQueryHandler } from '@nestjs/cqrs';
|
|
2
|
-
import { TransactionPrismaService } from '
|
|
3
|
-
import { ShareTransactionalQueries } from '
|
|
4
|
-
import { ResolveTableCountReferencesToQuery } from '
|
|
2
|
+
import { TransactionPrismaService } from '../../../database/transaction-prisma.service';
|
|
3
|
+
import { ShareTransactionalQueries } from '../../../share/share.transactional.queries';
|
|
4
|
+
import { ResolveTableCountReferencesToQuery } from '../../../table/queries/impl';
|
|
5
5
|
export declare class ResolveTableCountReferencesToHandler implements IQueryHandler<ResolveTableCountReferencesToQuery> {
|
|
6
6
|
private readonly transactionService;
|
|
7
7
|
private readonly shareTransactionalQueries;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { IQueryHandler } from '@nestjs/cqrs';
|
|
2
|
-
import { TransactionPrismaService } from '
|
|
3
|
-
import { ReferencesService } from '
|
|
4
|
-
import { ShareTransactionalQueries } from '
|
|
5
|
-
import { ResolveTableReferencesByQuery } from '
|
|
6
|
-
import { ResolveTableReferencesByReturnType } from '
|
|
2
|
+
import { TransactionPrismaService } from '../../../database/transaction-prisma.service';
|
|
3
|
+
import { ReferencesService } from '../../../share/references.service';
|
|
4
|
+
import { ShareTransactionalQueries } from '../../../share/share.transactional.queries';
|
|
5
|
+
import { ResolveTableReferencesByQuery } from '../../../table/queries/impl';
|
|
6
|
+
import { ResolveTableReferencesByReturnType } from '../../../table/queries/types';
|
|
7
7
|
export declare class ResolveTableReferencesByHandler implements IQueryHandler<ResolveTableReferencesByQuery, ResolveTableReferencesByReturnType> {
|
|
8
8
|
private readonly transactionService;
|
|
9
9
|
private readonly shareTransactionalQueries;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { IQueryHandler } from '@nestjs/cqrs';
|
|
2
|
-
import { TransactionPrismaService } from '
|
|
3
|
-
import { ShareTransactionalQueries } from '
|
|
4
|
-
import { ResolveTableReferencesToQuery } from '
|
|
5
|
-
import { ResolveTableReferencesToReturnType } from '
|
|
2
|
+
import { TransactionPrismaService } from '../../../database/transaction-prisma.service';
|
|
3
|
+
import { ShareTransactionalQueries } from '../../../share/share.transactional.queries';
|
|
4
|
+
import { ResolveTableReferencesToQuery } from '../../../table/queries/impl';
|
|
5
|
+
import { ResolveTableReferencesToReturnType } from '../../../table/queries/types';
|
|
6
6
|
export declare class ResolveTableReferencesToHandler implements IQueryHandler<ResolveTableReferencesToQuery, ResolveTableReferencesToReturnType> {
|
|
7
7
|
private readonly transactionService;
|
|
8
8
|
private readonly shareTransactionalQueries;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { IQueryHandler } from '@nestjs/cqrs';
|
|
2
2
|
import { Prisma } from '@prisma/client';
|
|
3
|
-
import { TransactionPrismaService } from '
|
|
4
|
-
import { ShareTransactionalQueries } from '
|
|
5
|
-
import { ResolveTableSchemaQuery } from '
|
|
3
|
+
import { TransactionPrismaService } from '../../../database/transaction-prisma.service';
|
|
4
|
+
import { ShareTransactionalQueries } from '../../../share/share.transactional.queries';
|
|
5
|
+
import { ResolveTableSchemaQuery } from '../../../table/queries/impl';
|
|
6
6
|
export declare class ResolveTableSchemaHandler implements IQueryHandler<ResolveTableSchemaQuery> {
|
|
7
7
|
private readonly transactionService;
|
|
8
8
|
private readonly shareTransactionalQueries;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { TableWithContext } from '
|
|
1
|
+
import { TableWithContext } from '../../../share/types/table-with-context.types';
|
|
2
2
|
export type GetTableByIdReturnType = TableWithContext | null;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { IPaginatedType } from '
|
|
2
|
-
import { RowWithContext } from '
|
|
1
|
+
import { IPaginatedType } from '../../../share/pagination.interface';
|
|
2
|
+
import { RowWithContext } from '../../../share/types/row-with-context.types';
|
|
3
3
|
export type GetTableRowsReturnType = IPaginatedType<RowWithContext>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { TableWithContext } from '
|
|
1
|
+
import { TableWithContext } from '../../../share/types/table-with-context.types';
|
|
2
2
|
export type GetTableReturnType = TableWithContext | null;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { IPaginatedType } from '
|
|
2
|
-
import { TableWithContext } from '
|
|
1
|
+
import { IPaginatedType } from '../../../share/pagination.interface';
|
|
2
|
+
import { TableWithContext } from '../../../share/types/table-with-context.types';
|
|
3
3
|
export type GetTablesReturnType = IPaginatedType<TableWithContext>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from '
|
|
2
|
-
export * from '
|
|
3
|
-
export * from '
|
|
4
|
-
export * from '
|
|
5
|
-
export * from '
|
|
6
|
-
export * from '
|
|
1
|
+
export * from '../../../table/queries/types/get-table.types';
|
|
2
|
+
export * from '../../../table/queries/types/get-table-by-id.types';
|
|
3
|
+
export * from '../../../table/queries/types/get-tables.types';
|
|
4
|
+
export * from '../../../table/queries/types/get-table-rows.types';
|
|
5
|
+
export * from '../../../table/queries/types/resolve-table-references-by.types';
|
|
6
|
+
export * from '../../../table/queries/types/resolve-table-references-to.types';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { IPaginatedType } from '
|
|
2
|
-
import { TableWithContext } from '
|
|
1
|
+
import { IPaginatedType } from '../../../share/pagination.interface';
|
|
2
|
+
import { TableWithContext } from '../../../share/types/table-with-context.types';
|
|
3
3
|
export type ResolveTableReferencesByReturnType = IPaginatedType<TableWithContext>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { IPaginatedType } from '
|
|
2
|
-
import { TableWithContext } from '
|
|
1
|
+
import { IPaginatedType } from '../../../share/pagination.interface';
|
|
2
|
+
import { TableWithContext } from '../../../share/types/table-with-context.types';
|
|
3
3
|
export type ResolveTableReferencesToReturnType = IPaginatedType<TableWithContext>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ICommandHandler } from '@nestjs/cqrs';
|
|
2
|
-
import { IdService } from '
|
|
3
|
-
import { PrismaService } from '
|
|
4
|
-
import { SetUsernameCommand, SetUsernameCommandReturnType } from '
|
|
2
|
+
import { IdService } from '../../../database/id.service';
|
|
3
|
+
import { PrismaService } from '../../../database/prisma.service';
|
|
4
|
+
import { SetUsernameCommand, SetUsernameCommandReturnType } from '../../../user/commands/impl';
|
|
5
5
|
export declare class SetUsernameHandler implements ICommandHandler<SetUsernameCommand, SetUsernameCommandReturnType> {
|
|
6
6
|
private readonly prisma;
|
|
7
7
|
private idService;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ICommandHandler } from '@nestjs/cqrs';
|
|
2
|
-
import { AuthService } from '
|
|
3
|
-
import { PrismaService } from '
|
|
4
|
-
import { UpdatePasswordCommand, UpdatePasswordCommandReturnType } from '
|
|
2
|
+
import { AuthService } from '../../../auth/auth.service';
|
|
3
|
+
import { PrismaService } from '../../../database/prisma.service';
|
|
4
|
+
import { UpdatePasswordCommand, UpdatePasswordCommandReturnType } from '../../../user/commands/impl';
|
|
5
5
|
export declare class UpdatePasswordHandler implements ICommandHandler<UpdatePasswordCommand, UpdatePasswordCommandReturnType> {
|
|
6
6
|
private readonly prisma;
|
|
7
7
|
private readonly authService;
|