@revisium/core 0.9.3 → 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 +4 -2
- 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/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/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/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/index.d.ts +5 -4
- package/dist/src/index.js +7 -7
- package/dist/src/index.js.map +1 -1
- package/dist/src/metrics/graphql/graphql-metrics.plugin.d.ts +1 -1
- package/dist/src/metrics/rest/rest-metrics.interceptor.d.ts +1 -1
- package/dist/src/metrics-api/metrics.controller.d.ts +1 -1
- 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/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/configuration/configuration.controller.d.ts +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/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/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/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/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/user/user.controller.d.ts +2 -2
- 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 +4 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CommandBus, QueryBus } from '@nestjs/cqrs';
|
|
2
|
-
import { CreateRevisionDto, GetBranchRevisionsDto } from '
|
|
3
|
-
import { BranchModel } from '
|
|
4
|
-
import { RevisionModel } from '
|
|
2
|
+
import { CreateRevisionDto, GetBranchRevisionsDto } from '../../rest-api/branch/dto';
|
|
3
|
+
import { BranchModel } from '../../rest-api/branch/model';
|
|
4
|
+
import { RevisionModel } from '../../rest-api/revision/model';
|
|
5
5
|
export declare class BranchByNameController {
|
|
6
6
|
private readonly queryBus;
|
|
7
7
|
private readonly commandBus;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { QueryBus } from '@nestjs/cqrs';
|
|
2
|
-
import { ConfigurationResponse } from '
|
|
2
|
+
import { ConfigurationResponse } from '../../rest-api/configuration/model';
|
|
3
3
|
export declare class ConfigurationController {
|
|
4
4
|
private readonly queryBus;
|
|
5
5
|
constructor(queryBus: QueryBus);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from '
|
|
2
|
-
export * from '
|
|
3
|
-
export * from '
|
|
4
|
-
export * from '
|
|
5
|
-
export * from '
|
|
1
|
+
export * from '../../../rest-api/organization/dto/get-projects.dto';
|
|
2
|
+
export * from '../../../rest-api/organization/dto/create-project.dto';
|
|
3
|
+
export * from '../../../rest-api/organization/dto/add-user-to-organization.dto';
|
|
4
|
+
export * from '../../../rest-api/organization/dto/remove-user-from-organization.dto';
|
|
5
|
+
export * from '../../../rest-api/organization/dto/get-users-organization.dto';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { RoleModel } from '
|
|
2
|
-
import { UserModel } from '
|
|
1
|
+
import { RoleModel } from '../../../rest-api/role/model';
|
|
2
|
+
import { UserModel } from '../../../rest-api/user/model';
|
|
3
3
|
export declare class UsersOrganizationModel {
|
|
4
4
|
id: string;
|
|
5
5
|
user: UserModel;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CommandBus, QueryBus } from '@nestjs/cqrs';
|
|
2
|
-
import { IOptionalAuthUser } from '
|
|
3
|
-
import { AddUserToOrganizationDto, CreateProjectDto, GetProjectsDto, GetUsersOrganizationDto, RemoveUserFromOrganizationDto } from '
|
|
4
|
-
import { ProjectModel } from '
|
|
2
|
+
import { IOptionalAuthUser } from '../../auth/types';
|
|
3
|
+
import { AddUserToOrganizationDto, CreateProjectDto, GetProjectsDto, GetUsersOrganizationDto, RemoveUserFromOrganizationDto } from '../../rest-api/organization/dto';
|
|
4
|
+
import { ProjectModel } from '../../rest-api/project/model';
|
|
5
5
|
export declare class OrganizationController {
|
|
6
6
|
private readonly queryBus;
|
|
7
7
|
private readonly commandBus;
|
|
@@ -10,7 +10,7 @@ export declare class OrganizationController {
|
|
|
10
10
|
user: IOptionalAuthUser;
|
|
11
11
|
}): Promise<any>;
|
|
12
12
|
createProject(organizationId: string, data: CreateProjectDto, fromRevisionId?: string): Promise<ProjectModel>;
|
|
13
|
-
usersOrganizations(organizationId: string, data: GetUsersOrganizationDto): Promise<import("../../share/pagination.interface").IPaginatedType<import("
|
|
13
|
+
usersOrganizations(organizationId: string, data: GetUsersOrganizationDto): Promise<import("../../share/pagination.interface").IPaginatedType<import("../../rest-api/organization/model").UsersOrganizationModel>>;
|
|
14
14
|
addUserToOrganization(organizationId: string, data: AddUserToOrganizationDto): Promise<boolean>;
|
|
15
15
|
removeUserFromOrganization(organizationId: string, data: RemoveUserFromOrganizationDto): Promise<boolean>;
|
|
16
16
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { RoleModel } from '
|
|
2
|
-
import { UserModel } from '
|
|
1
|
+
import { RoleModel } from '../../../rest-api/role/model';
|
|
2
|
+
import { UserModel } from '../../../rest-api/user/model';
|
|
3
3
|
export declare class UsersProjectModel {
|
|
4
4
|
id: string;
|
|
5
5
|
user: UserModel;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { CommandBus, QueryBus } from '@nestjs/cqrs';
|
|
2
|
-
import { BranchModel } from '
|
|
3
|
-
import { AddUserToProjectDto } from '
|
|
4
|
-
import { GetProjectBranchesDto } from '
|
|
5
|
-
import { GetUsersProjectDto } from '
|
|
6
|
-
import { UpdateProjectDto } from '
|
|
2
|
+
import { BranchModel } from '../../rest-api/branch/model';
|
|
3
|
+
import { AddUserToProjectDto } from '../../rest-api/project/dto/add-user-to-project.dto';
|
|
4
|
+
import { GetProjectBranchesDto } from '../../rest-api/project/dto/get-project-branches.dto';
|
|
5
|
+
import { GetUsersProjectDto } from '../../rest-api/project/dto/get-users-project.dto';
|
|
6
|
+
import { UpdateProjectDto } from '../../rest-api/project/dto/update-project.dto';
|
|
7
7
|
export declare class ProjectController {
|
|
8
8
|
private readonly queryBus;
|
|
9
9
|
private readonly commandBus;
|
|
@@ -13,7 +13,7 @@ export declare class ProjectController {
|
|
|
13
13
|
allBranches(organizationId: string, projectName: string, data: GetProjectBranchesDto): Promise<BranchModel>;
|
|
14
14
|
deleteProject(organizationId: string, projectName: string): Promise<boolean>;
|
|
15
15
|
updateProject(organizationId: string, projectName: string, data: UpdateProjectDto): Promise<boolean>;
|
|
16
|
-
usersProject(organizationId: string, projectName: string, data: GetUsersProjectDto): Promise<import("../../share/pagination.interface").IPaginatedType<import("
|
|
16
|
+
usersProject(organizationId: string, projectName: string, data: GetUsersProjectDto): Promise<import("../../share/pagination.interface").IPaginatedType<import("../../rest-api/project/model").UsersProjectModel>>;
|
|
17
17
|
addUserToProject(organizationId: string, projectName: string, data: AddUserToProjectDto): Promise<boolean>;
|
|
18
18
|
removeUserFromProject(organizationId: string, projectName: string, userId: string): Promise<boolean>;
|
|
19
19
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from '
|
|
2
|
-
export * from '
|
|
3
|
-
export * from '
|
|
1
|
+
export * from '../../../rest-api/revision/dto/get-revision-tables.dto';
|
|
2
|
+
export * from '../../../rest-api/revision/dto/create-endpoint.dto';
|
|
3
|
+
export * from '../../../rest-api/revision/dto/create-table.dto';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BranchModel } from '
|
|
2
|
-
import { TableModel } from '
|
|
1
|
+
import { BranchModel } from '../../../rest-api/branch/model';
|
|
2
|
+
import { TableModel } from '../../../rest-api/table/model/table.model';
|
|
3
3
|
export declare class CreateTableResponse {
|
|
4
4
|
branch: BranchModel;
|
|
5
5
|
table: TableModel;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { CommandBus, QueryBus } from '@nestjs/cqrs';
|
|
2
|
-
import { CreateBranchByRevisionDto } from '
|
|
3
|
-
import { BranchModel } from '
|
|
4
|
-
import { EndpointModel } from '
|
|
5
|
-
import { CreateTableDto, GetRevisionTablesDto } from '
|
|
6
|
-
import { CreateEndpointDto } from '
|
|
7
|
-
import { CreateTableResponse, RevisionModel } from '
|
|
2
|
+
import { CreateBranchByRevisionDto } from '../../rest-api/branch/dto';
|
|
3
|
+
import { BranchModel } from '../../rest-api/branch/model';
|
|
4
|
+
import { EndpointModel } from '../../rest-api/endpoint/model';
|
|
5
|
+
import { CreateTableDto, GetRevisionTablesDto } from '../../rest-api/revision/dto';
|
|
6
|
+
import { CreateEndpointDto } from '../../rest-api/revision/dto/create-endpoint.dto';
|
|
7
|
+
import { CreateTableResponse, RevisionModel } from '../../rest-api/revision/model';
|
|
8
8
|
export declare class RevisionByIdController {
|
|
9
9
|
private readonly queryBus;
|
|
10
10
|
private readonly commandBus;
|
|
@@ -13,7 +13,7 @@ export declare class RevisionByIdController {
|
|
|
13
13
|
parent(revisionId: string): Promise<RevisionModel>;
|
|
14
14
|
child(revisionId: string): Promise<RevisionModel>;
|
|
15
15
|
childBranches(revisionId: string): Promise<any>;
|
|
16
|
-
tables(revisionId: string, data: GetRevisionTablesDto): Promise<import("../../share/pagination.interface").IPaginatedType<import("
|
|
16
|
+
tables(revisionId: string, data: GetRevisionTablesDto): Promise<import("../../share/pagination.interface").IPaginatedType<import("../../rest-api/table/model/table.model").TableModel>>;
|
|
17
17
|
getEndpoints(revisionId: string): Promise<EndpointModel[]>;
|
|
18
18
|
createBranch(revisionId: string, data: CreateBranchByRevisionDto): Promise<BranchModel>;
|
|
19
19
|
createEndpoint(revisionId: string, data: CreateEndpointDto): Promise<EndpointModel>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BranchModel } from '
|
|
2
|
-
import { TableModel } from '
|
|
1
|
+
import { BranchModel } from '../../../rest-api/branch/model';
|
|
2
|
+
import { TableModel } from '../../../rest-api/table/model/table.model';
|
|
3
3
|
export declare class RemoveRowResponse {
|
|
4
4
|
branch: BranchModel;
|
|
5
5
|
table?: TableModel;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { RowModel } from '
|
|
2
|
-
import { TableModel } from '
|
|
1
|
+
import { RowModel } from '../../../rest-api/row/model/row.model';
|
|
2
|
+
import { TableModel } from '../../../rest-api/table/model/table.model';
|
|
3
3
|
export declare class UpdateRowResponse {
|
|
4
4
|
table?: TableModel;
|
|
5
5
|
previousVersionTableId?: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CommandBus, QueryBus } from '@nestjs/cqrs';
|
|
2
|
-
import { GetRowReferencesByDto, UpdateRowDto } from '
|
|
3
|
-
import { GetRowReferencesToDto } from '
|
|
4
|
-
import { RemoveRowResponse, RowModel, UpdateRowResponse } from '
|
|
2
|
+
import { GetRowReferencesByDto, UpdateRowDto } from '../../rest-api/row/dto';
|
|
3
|
+
import { GetRowReferencesToDto } from '../../rest-api/row/dto/get-row-references-to.dto';
|
|
4
|
+
import { RemoveRowResponse, RowModel, UpdateRowResponse } from '../../rest-api/row/model';
|
|
5
5
|
export declare class RowByIdController {
|
|
6
6
|
private readonly queryBus;
|
|
7
7
|
private readonly commandBus;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Endpoint } from '@prisma/client';
|
|
2
|
-
import { EndpointModel } from '
|
|
2
|
+
import { EndpointModel } from '../../../rest-api/endpoint/model';
|
|
3
3
|
export declare const transformFromPrismaToEndpointModel: (data: Endpoint) => EndpointModel;
|
|
4
4
|
export declare const transformFromPrismaToEndpointsModel: (data: Endpoint[]) => EndpointModel[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Revision } from '@prisma/client';
|
|
2
|
-
import { RevisionModel } from '
|
|
3
|
-
import { IPaginatedType } from '
|
|
2
|
+
import { RevisionModel } from '../../../rest-api/revision/model';
|
|
3
|
+
import { IPaginatedType } from '../../../share/pagination.interface';
|
|
4
4
|
export declare const transformFromPrismaToRevisionModel: (data: Revision) => RevisionModel;
|
|
5
5
|
export declare const transformFromPaginatedPrismaToRevisionModel: ({ pageInfo, totalCount, edges, }: IPaginatedType<Revision>) => IPaginatedType<RevisionModel>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Row } from '@prisma/client';
|
|
2
|
-
import { RowModel } from '
|
|
3
|
-
import { IPaginatedType } from '
|
|
2
|
+
import { RowModel } from '../../../rest-api/row/model';
|
|
3
|
+
import { IPaginatedType } from '../../../share/pagination.interface';
|
|
4
4
|
export declare const transformFromPrismaToRowModel: (data: Row) => RowModel;
|
|
5
5
|
export declare const transformFromPaginatedPrismaToRowModel: ({ pageInfo, totalCount, edges, }: IPaginatedType<Row>) => IPaginatedType<RowModel>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Table } from '@prisma/client';
|
|
2
|
-
import { TableModel } from '
|
|
3
|
-
import { IPaginatedType } from '
|
|
2
|
+
import { TableModel } from '../../../rest-api/table/model/table.model';
|
|
3
|
+
import { IPaginatedType } from '../../../share/pagination.interface';
|
|
4
4
|
export declare const transformFromPrismaToTableModel: (data: Table) => TableModel;
|
|
5
5
|
export declare const transformFromPaginatedPrismaToTableModel: ({ pageInfo, totalCount, edges, }: IPaginatedType<Table>) => IPaginatedType<TableModel>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { GetUsersOrganizationQueryReturnType } from '
|
|
2
|
-
import { UsersOrganizationModel } from '
|
|
3
|
-
import { IPaginatedType } from '
|
|
1
|
+
import { GetUsersOrganizationQueryReturnType } from '../../../organization/queries/impl';
|
|
2
|
+
import { UsersOrganizationModel } from '../../../rest-api/organization/model';
|
|
3
|
+
import { IPaginatedType } from '../../../share/pagination.interface';
|
|
4
4
|
export declare const transformFromPrismaToUserOrganizationModel: (data: GetUsersOrganizationQueryReturnType["edges"][number]["node"]) => UsersOrganizationModel;
|
|
5
5
|
export declare const transformFromPaginatedPrismaToUserOrganizationModel: ({ pageInfo, totalCount, edges, }: GetUsersOrganizationQueryReturnType) => IPaginatedType<UsersOrganizationModel>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { GetUsersProjectQueryReturnType } from '
|
|
2
|
-
import { UsersProjectModel } from '
|
|
3
|
-
import { IPaginatedType } from '
|
|
1
|
+
import { GetUsersProjectQueryReturnType } from '../../../project/queries/impl';
|
|
2
|
+
import { UsersProjectModel } from '../../../rest-api/project/model';
|
|
3
|
+
import { IPaginatedType } from '../../../share/pagination.interface';
|
|
4
4
|
export declare const transformFromPrismaToUserProjectModel: (data: GetUsersProjectQueryReturnType["edges"][number]["node"]) => UsersProjectModel;
|
|
5
5
|
export declare const transformFromPaginatedPrismaToUserProjectModel: ({ pageInfo, totalCount, edges, }: GetUsersProjectQueryReturnType) => IPaginatedType<UsersProjectModel>;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { CommandBus, QueryBus } from '@nestjs/cqrs';
|
|
2
|
-
import { BranchModel } from '
|
|
3
|
-
import { CreateRowDto, GetTableReferencesByDto, GetTableReferencesToDto, GetTableRowsDto, UpdateTableDto } from '
|
|
4
|
-
import { CreateRowResponse } from '
|
|
5
|
-
import { TableModel } from '
|
|
6
|
-
import { UpdateTableResponse } from '
|
|
2
|
+
import { BranchModel } from '../../rest-api/branch/model';
|
|
3
|
+
import { CreateRowDto, GetTableReferencesByDto, GetTableReferencesToDto, GetTableRowsDto, UpdateTableDto } from '../../rest-api/table/dto';
|
|
4
|
+
import { CreateRowResponse } from '../../rest-api/table/model';
|
|
5
|
+
import { TableModel } from '../../rest-api/table/model/table.model';
|
|
6
|
+
import { UpdateTableResponse } from '../../rest-api/table/model/update-table.response';
|
|
7
7
|
export declare class TableByIdController {
|
|
8
8
|
private readonly queryBus;
|
|
9
9
|
private readonly commandBus;
|
|
10
10
|
constructor(queryBus: QueryBus, commandBus: CommandBus);
|
|
11
11
|
table(revisionId: string, tableId: string): Promise<TableModel>;
|
|
12
12
|
countRows(revisionId: string, tableId: string): Promise<any>;
|
|
13
|
-
rows(revisionId: string, tableId: string, data: GetTableRowsDto): Promise<import("../../share/pagination.interface").IPaginatedType<import("
|
|
13
|
+
rows(revisionId: string, tableId: string, data: GetTableRowsDto): Promise<import("../../share/pagination.interface").IPaginatedType<import("../../rest-api/row/model").RowModel>>;
|
|
14
14
|
createRow(revisionId: string, tableId: string, data: CreateRowDto): Promise<CreateRowResponse>;
|
|
15
15
|
schema(revisionId: string, tableId: string): Promise<any>;
|
|
16
16
|
countReferencesBy(revisionId: string, tableId: string): Promise<any>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { QueryBus } from '@nestjs/cqrs';
|
|
2
|
-
import { IAuthUser } from '
|
|
3
|
-
import { GetUserQueryReturnType } from '
|
|
2
|
+
import { IAuthUser } from '../../auth/types';
|
|
3
|
+
import { GetUserQueryReturnType } from '../../user/queries/impl';
|
|
4
4
|
export declare class UserController {
|
|
5
5
|
private readonly queryBus;
|
|
6
6
|
constructor(queryBus: QueryBus);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IQueryHandler } from '@nestjs/cqrs';
|
|
2
|
-
import { PrismaService } from '
|
|
3
|
-
import { GetChildrenByRevisionQuery } from '
|
|
2
|
+
import { PrismaService } from '../../../database/prisma.service';
|
|
3
|
+
import { GetChildrenByRevisionQuery } from '../../../revision/queries/impl/get-children-by-revision.query';
|
|
4
4
|
export declare class GetChildrenByRevisionHandler implements IQueryHandler<GetChildrenByRevisionQuery> {
|
|
5
5
|
private prisma;
|
|
6
6
|
constructor(prisma: PrismaService);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IQueryHandler } from '@nestjs/cqrs';
|
|
2
|
-
import { PrismaService } from '
|
|
3
|
-
import { GetEndpointsByRevisionIdQuery } from '
|
|
4
|
-
import { GetEndpointsByRevisionId } from '
|
|
2
|
+
import { PrismaService } from '../../../database/prisma.service';
|
|
3
|
+
import { GetEndpointsByRevisionIdQuery } from '../../../revision/queries/impl';
|
|
4
|
+
import { GetEndpointsByRevisionId } from '../../../revision/queries/types';
|
|
5
5
|
export declare class GetEndpointsByRevisionIdHandler implements IQueryHandler<GetEndpointsByRevisionIdQuery> {
|
|
6
6
|
private prisma;
|
|
7
7
|
constructor(prisma: PrismaService);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IQueryHandler } from '@nestjs/cqrs';
|
|
2
|
-
import { PrismaService } from '
|
|
3
|
-
import { GetRevisionQuery } from '
|
|
2
|
+
import { PrismaService } from '../../../database/prisma.service';
|
|
3
|
+
import { GetRevisionQuery } from '../../../revision/queries/impl/get-revision.query';
|
|
4
4
|
export declare class GetRevisionHandler implements IQueryHandler<GetRevisionQuery> {
|
|
5
5
|
private prisma;
|
|
6
6
|
constructor(prisma: PrismaService);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IQueryHandler } from '@nestjs/cqrs';
|
|
2
|
-
import { PrismaService } from '
|
|
3
|
-
import { GetTablesByRevisionIdQuery } from '
|
|
4
|
-
import { GetRevisionTablesReturnType } from '
|
|
2
|
+
import { PrismaService } from '../../../database/prisma.service';
|
|
3
|
+
import { GetTablesByRevisionIdQuery } from '../../../revision/queries/impl/get-tables-by-revision-id.query';
|
|
4
|
+
import { GetRevisionTablesReturnType } from '../../../revision/queries/types';
|
|
5
5
|
export declare class GetTablesByRevisionIdHandler implements IQueryHandler<GetTablesByRevisionIdQuery, GetRevisionTablesReturnType> {
|
|
6
6
|
private prisma;
|
|
7
7
|
constructor(prisma: PrismaService);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ResolveBranchByRevisionHandler } from '
|
|
2
|
-
import { GetChildrenByRevisionHandler } from '
|
|
3
|
-
import { GetEndpointsByRevisionIdHandler } from '
|
|
4
|
-
import { ResolveChildBranchesByRevisionHandler } from '
|
|
5
|
-
import { ResolveChildByRevisionHandler } from '
|
|
6
|
-
import { ResolveParentByRevisionHandler } from '
|
|
7
|
-
import { GetRevisionHandler } from '
|
|
8
|
-
import { GetTablesByRevisionIdHandler } from '
|
|
1
|
+
import { ResolveBranchByRevisionHandler } from '../../../revision/queries/commands/resolve-branch-by-revision.handler';
|
|
2
|
+
import { GetChildrenByRevisionHandler } from '../../../revision/queries/commands/get-children-by-revision.handler';
|
|
3
|
+
import { GetEndpointsByRevisionIdHandler } from '../../../revision/queries/commands/get-endpoints-by-revision-id.handler';
|
|
4
|
+
import { ResolveChildBranchesByRevisionHandler } from '../../../revision/queries/commands/resolve-child-branches-by-revision.handler';
|
|
5
|
+
import { ResolveChildByRevisionHandler } from '../../../revision/queries/commands/resolve-child-by-revision.handler';
|
|
6
|
+
import { ResolveParentByRevisionHandler } from '../../../revision/queries/commands/resolve-parent-by-revision.handler';
|
|
7
|
+
import { GetRevisionHandler } from '../../../revision/queries/commands/get-revision.handler';
|
|
8
|
+
import { GetTablesByRevisionIdHandler } from '../../../revision/queries/commands/get-tables-by-revision-id.handler';
|
|
9
9
|
export declare const REVISION_QUERIES_HANDLERS: (typeof ResolveBranchByRevisionHandler | typeof GetChildrenByRevisionHandler | typeof GetEndpointsByRevisionIdHandler | typeof ResolveChildBranchesByRevisionHandler | typeof ResolveChildByRevisionHandler | typeof ResolveParentByRevisionHandler | typeof GetRevisionHandler | typeof GetTablesByRevisionIdHandler)[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IQueryHandler } from '@nestjs/cqrs';
|
|
2
|
-
import { PrismaService } from '
|
|
3
|
-
import { ResolveBranchByRevisionQuery } from '
|
|
2
|
+
import { PrismaService } from '../../../database/prisma.service';
|
|
3
|
+
import { ResolveBranchByRevisionQuery } from '../../../revision/queries/impl/resolve-branch-by-revision.query';
|
|
4
4
|
export declare class ResolveBranchByRevisionHandler implements IQueryHandler<ResolveBranchByRevisionQuery> {
|
|
5
5
|
private prisma;
|
|
6
6
|
constructor(prisma: PrismaService);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IQueryHandler } from '@nestjs/cqrs';
|
|
2
|
-
import { PrismaService } from '
|
|
3
|
-
import { ResolveChildBranchesByRevisionQuery } from '
|
|
2
|
+
import { PrismaService } from '../../../database/prisma.service';
|
|
3
|
+
import { ResolveChildBranchesByRevisionQuery } from '../../../revision/queries/impl';
|
|
4
4
|
export declare class ResolveChildBranchesByRevisionHandler implements IQueryHandler<ResolveChildBranchesByRevisionQuery> {
|
|
5
5
|
private prisma;
|
|
6
6
|
constructor(prisma: PrismaService);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IQueryHandler } from '@nestjs/cqrs';
|
|
2
|
-
import { PrismaService } from '
|
|
3
|
-
import { ResolveChildByRevisionQuery } from '
|
|
2
|
+
import { PrismaService } from '../../../database/prisma.service';
|
|
3
|
+
import { ResolveChildByRevisionQuery } from '../../../revision/queries/impl/resolve-child-by-revision.query';
|
|
4
4
|
export declare class ResolveChildByRevisionHandler implements IQueryHandler<ResolveChildByRevisionQuery> {
|
|
5
5
|
private prisma;
|
|
6
6
|
constructor(prisma: PrismaService);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IQueryHandler } from '@nestjs/cqrs';
|
|
2
|
-
import { PrismaService } from '
|
|
3
|
-
import { ResolveParentByRevisionQuery } from '
|
|
2
|
+
import { PrismaService } from '../../../database/prisma.service';
|
|
3
|
+
import { ResolveParentByRevisionQuery } from '../../../revision/queries/impl/resolve-parent-by-revision.query';
|
|
4
4
|
export declare class ResolveParentByRevisionHandler implements IQueryHandler<ResolveParentByRevisionQuery> {
|
|
5
5
|
private prisma;
|
|
6
6
|
constructor(prisma: PrismaService);
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { TableWithContext } from '
|
|
2
|
-
import { IPaginatedType } from '
|
|
1
|
+
import { TableWithContext } from '../../../share/types/table-with-context.types';
|
|
2
|
+
import { IPaginatedType } from '../../../share/pagination.interface';
|
|
3
3
|
export type GetRevisionTablesReturnType = IPaginatedType<TableWithContext>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export type { GetTablesByRevisionIdReturnType } from './get-tables-by-revision-id';
|
|
2
2
|
export type { GetEndpointsByRevisionId } from './get-endpoints-by-revision-id';
|
|
3
|
-
export type * from '
|
|
3
|
+
export type * from '../../../share/types/table-with-context.types';
|
|
4
4
|
export type * from './get-revision-tables.types';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IQueryHandler } from '@nestjs/cqrs';
|
|
2
|
-
import { PrismaService } from '
|
|
3
|
-
import { GetRowByIdQuery } from '
|
|
4
|
-
import { GetRowByIdReturnType } from '
|
|
2
|
+
import { PrismaService } from '../../../database/prisma.service';
|
|
3
|
+
import { GetRowByIdQuery } from '../../../row/queries/impl/get-row-by-id.query';
|
|
4
|
+
import { GetRowByIdReturnType } from '../../../row/queries/types';
|
|
5
5
|
export declare class GetRowByIdHandler implements IQueryHandler<GetRowByIdQuery, GetRowByIdReturnType> {
|
|
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 { GetRowQuery } from '
|
|
4
|
-
import { GetRowReturnType } from '
|
|
5
|
-
import { ShareTransactionalQueries } from '
|
|
2
|
+
import { TransactionPrismaService } from '../../../database/transaction-prisma.service';
|
|
3
|
+
import { GetRowQuery } from '../../../row/queries/impl/get-row.query';
|
|
4
|
+
import { GetRowReturnType } from '../../../row/queries/types';
|
|
5
|
+
import { ShareTransactionalQueries } from '../../../share/share.transactional.queries';
|
|
6
6
|
export declare class GetRowHandler implements IQueryHandler<GetRowQuery, GetRowReturnType> {
|
|
7
7
|
private transactionService;
|
|
8
8
|
private shareTransactionalQueries;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { IQueryHandler } from '@nestjs/cqrs';
|
|
2
|
-
import { TransactionPrismaService } from '
|
|
3
|
-
import { GetRowsQuery } from '
|
|
4
|
-
import { GetRowsReturnType } from '
|
|
5
|
-
import { ShareTransactionalQueries } from '
|
|
2
|
+
import { TransactionPrismaService } from '../../../database/transaction-prisma.service';
|
|
3
|
+
import { GetRowsQuery } from '../../../row/queries/impl';
|
|
4
|
+
import { GetRowsReturnType } from '../../../row/queries/types';
|
|
5
|
+
import { ShareTransactionalQueries } from '../../../share/share.transactional.queries';
|
|
6
6
|
export declare class GetRowsHandler implements IQueryHandler<GetRowsQuery, GetRowsReturnType> {
|
|
7
7
|
private transactionService;
|
|
8
8
|
private shareTransactionalQueries;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { GetRowByIdHandler } from '
|
|
2
|
-
import { GetRowHandler } from '
|
|
3
|
-
import { GetRowsHandler } from '
|
|
4
|
-
import { ResolveRowCountReferencesByHandler } from '
|
|
5
|
-
import { ResolveRowCountReferencesToHandler } from '
|
|
6
|
-
import { ResolveRowReferencesByHandler } from '
|
|
7
|
-
import { ResolveRowReferencesToHandler } from '
|
|
1
|
+
import { GetRowByIdHandler } from '../../../row/queries/handlers/get-row-by-id.handler';
|
|
2
|
+
import { GetRowHandler } from '../../../row/queries/handlers/get-row.handler';
|
|
3
|
+
import { GetRowsHandler } from '../../../row/queries/handlers/get-rows.handler';
|
|
4
|
+
import { ResolveRowCountReferencesByHandler } from '../../../row/queries/handlers/resolve-row-count-references-by.handler';
|
|
5
|
+
import { ResolveRowCountReferencesToHandler } from '../../../row/queries/handlers/resolve-row-count-references-to.handler';
|
|
6
|
+
import { ResolveRowReferencesByHandler } from '../../../row/queries/handlers/resolve-row-references-by.handler';
|
|
7
|
+
import { ResolveRowReferencesToHandler } from '../../../row/queries/handlers/resolve-row-references-to.handler';
|
|
8
8
|
export declare const ROW_QUERIES_HANDLERS: (typeof GetRowByIdHandler | typeof GetRowHandler | typeof GetRowsHandler | typeof ResolveRowCountReferencesByHandler | typeof ResolveRowCountReferencesToHandler | typeof ResolveRowReferencesByHandler | typeof ResolveRowReferencesToHandler)[];
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { IQueryHandler } from '@nestjs/cqrs';
|
|
2
|
-
import { TransactionPrismaService } from '
|
|
3
|
-
import { ResolveRowReferencesByQuery } from '
|
|
4
|
-
import { ResolveRowCountReferencesByQuery } from '
|
|
5
|
-
import { ReferencesService } from '
|
|
6
|
-
import { ShareTransactionalQueries } from '
|
|
2
|
+
import { TransactionPrismaService } from '../../../database/transaction-prisma.service';
|
|
3
|
+
import { ResolveRowReferencesByQuery } from '../../../row/queries/impl';
|
|
4
|
+
import { ResolveRowCountReferencesByQuery } from '../../../row/queries/impl/resolve-row-count-references-by.query';
|
|
5
|
+
import { ReferencesService } from '../../../share/references.service';
|
|
6
|
+
import { ShareTransactionalQueries } from '../../../share/share.transactional.queries';
|
|
7
7
|
export declare class ResolveRowCountReferencesByHandler implements IQueryHandler<ResolveRowCountReferencesByQuery> {
|
|
8
8
|
private readonly transactionService;
|
|
9
9
|
private readonly shareTransactionalQueries;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IQueryHandler } from '@nestjs/cqrs';
|
|
2
|
-
import { TransactionPrismaService } from '
|
|
3
|
-
import { ResolveRowCountReferencesToQuery } from '
|
|
4
|
-
import { ShareTransactionalQueries } from '
|
|
2
|
+
import { TransactionPrismaService } from '../../../database/transaction-prisma.service';
|
|
3
|
+
import { ResolveRowCountReferencesToQuery } from '../../../row/queries/impl';
|
|
4
|
+
import { ShareTransactionalQueries } from '../../../share/share.transactional.queries';
|
|
5
5
|
export declare class ResolveRowCountReferencesToHandler implements IQueryHandler<ResolveRowCountReferencesToQuery> {
|
|
6
6
|
private transactionService;
|
|
7
7
|
private shareTransactionalQueries;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { IQueryHandler } from '@nestjs/cqrs';
|
|
2
2
|
import { Prisma } from '@prisma/client';
|
|
3
|
-
import { TransactionPrismaService } from '
|
|
4
|
-
import { ResolveRowReferencesByQuery } from '
|
|
5
|
-
import { ResolveRowReferencesByReturnType } from '
|
|
6
|
-
import { ReferencesService } from '
|
|
7
|
-
import { ShareTransactionalQueries } from '
|
|
3
|
+
import { TransactionPrismaService } from '../../../database/transaction-prisma.service';
|
|
4
|
+
import { ResolveRowReferencesByQuery } from '../../../row/queries/impl';
|
|
5
|
+
import { ResolveRowReferencesByReturnType } from '../../../row/queries/types';
|
|
6
|
+
import { ReferencesService } from '../../../share/references.service';
|
|
7
|
+
import { ShareTransactionalQueries } from '../../../share/share.transactional.queries';
|
|
8
8
|
export declare class ResolveRowReferencesByHandler implements IQueryHandler<ResolveRowReferencesByQuery, ResolveRowReferencesByReturnType> {
|
|
9
9
|
private readonly transactionService;
|
|
10
10
|
private readonly shareTransactionalQueries;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { IQueryHandler } from '@nestjs/cqrs';
|
|
2
2
|
import { Prisma } from '@prisma/client';
|
|
3
|
-
import { TransactionPrismaService } from '
|
|
4
|
-
import { ResolveRowReferencesToQuery } from '
|
|
5
|
-
import { ResolveRowReferencesToReturnType } from '
|
|
6
|
-
import { ShareTransactionalQueries } from '
|
|
7
|
-
import { GetReferencesFromValueType } from '
|
|
3
|
+
import { TransactionPrismaService } from '../../../database/transaction-prisma.service';
|
|
4
|
+
import { ResolveRowReferencesToQuery } from '../../../row/queries/impl';
|
|
5
|
+
import { ResolveRowReferencesToReturnType } from '../../../row/queries/types';
|
|
6
|
+
import { ShareTransactionalQueries } from '../../../share/share.transactional.queries';
|
|
7
|
+
import { GetReferencesFromValueType } from '../../../share/utils/schema/lib/getReferencesFromValue';
|
|
8
8
|
export declare class ResolveRowReferencesToHandler implements IQueryHandler<ResolveRowReferencesToQuery, ResolveRowReferencesToReturnType> {
|
|
9
9
|
private readonly transactionService;
|
|
10
10
|
private readonly shareTransactionalQueries;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export * from './get-row.query';
|
|
2
2
|
export * from './get-row-by-id.query';
|
|
3
3
|
export * from './get-rows.query';
|
|
4
|
-
export * from '
|
|
5
|
-
export * from '
|
|
6
|
-
export * from '
|
|
7
|
-
export * from '
|
|
4
|
+
export * from '../../../row/queries/impl/resolve-row-count-references-to.query';
|
|
5
|
+
export * from '../../../row/queries/impl/resolve-row-count-references-by.query';
|
|
6
|
+
export * from '../../../row/queries/impl/resolve-row-references-by.query';
|
|
7
|
+
export * from '../../../row/queries/impl/resolve-row-references-to.query';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { RowWithContext } from '
|
|
1
|
+
import { RowWithContext } from '../../../share/types/row-with-context.types';
|
|
2
2
|
export type GetRowByIdReturnType = RowWithContext | null;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { RowWithContext } from '
|
|
1
|
+
import { RowWithContext } from '../../../share/types/row-with-context.types';
|
|
2
2
|
export type GetRowReturnType = RowWithContext | null;
|