@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,4 +1,4 @@
|
|
|
1
|
-
import { ProjectModel } from '
|
|
1
|
+
import { ProjectModel } from '../../../graphql-api/project/model/project.model';
|
|
2
2
|
declare const ProjectsConnection_base: import("@nestjs/common").Type<import("../../../share/pagination.interface").IPaginatedType<ProjectModel>>;
|
|
3
3
|
export declare class ProjectsConnection extends ProjectsConnection_base {
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { UsersProjectModel } from '
|
|
1
|
+
import { UsersProjectModel } from '../../../graphql-api/project/model/users-project.model';
|
|
2
2
|
declare const UsersProjectConnection_base: import("@nestjs/common").Type<import("../../../share/pagination.interface").IPaginatedType<UsersProjectModel>>;
|
|
3
3
|
export declare class UsersProjectConnection extends UsersProjectConnection_base {
|
|
4
4
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { RoleModel } from '
|
|
2
|
-
import { UserModel } from '
|
|
1
|
+
import { RoleModel } from '../../../graphql-api/role/model/role.model';
|
|
2
|
+
import { UserModel } from '../../../graphql-api/user/model/user.model';
|
|
3
3
|
export declare class UsersProjectModel {
|
|
4
4
|
id: string;
|
|
5
5
|
user: UserModel;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CommandBus, QueryBus } from '@nestjs/cqrs';
|
|
2
|
-
import { AddUserToProjectInput, DeleteProjectInput, GetProjectInput, GetUsersProjectInput, RemoveUserFromProjectInput, UpdateProjectInput } from '
|
|
3
|
-
import { GetProjectBranchesInput } from '
|
|
4
|
-
import { ProjectModel } from '
|
|
2
|
+
import { AddUserToProjectInput, DeleteProjectInput, GetProjectInput, GetUsersProjectInput, RemoveUserFromProjectInput, UpdateProjectInput } from '../../graphql-api/project/inputs';
|
|
3
|
+
import { GetProjectBranchesInput } from '../../graphql-api/project/inputs/get-project-branches.input';
|
|
4
|
+
import { ProjectModel } from '../../graphql-api/project/model';
|
|
5
5
|
export declare class ProjectResolver {
|
|
6
6
|
private queryBus;
|
|
7
7
|
private commandBus;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { QueryBus } from '@nestjs/cqrs';
|
|
2
|
-
import { ChildBranchModel } from '
|
|
2
|
+
import { ChildBranchModel } from '../../graphql-api/revision/model/child-branch.model';
|
|
3
3
|
export declare class ChildBranchResolver {
|
|
4
4
|
private readonly queryBus;
|
|
5
5
|
constructor(queryBus: QueryBus);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BranchModel } from '
|
|
2
|
-
import { RevisionModel } from '
|
|
1
|
+
import { BranchModel } from '../../../graphql-api/branch/model/branch.model';
|
|
2
|
+
import { RevisionModel } from '../../../graphql-api/revision/model/revision.model';
|
|
3
3
|
export declare class ChildBranchModel {
|
|
4
4
|
branch: BranchModel;
|
|
5
5
|
revision: RevisionModel;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { BranchModel } from '
|
|
2
|
-
import { EndpointModel } from '
|
|
3
|
-
import { ChildBranchModel } from '
|
|
4
|
-
import { TablesConnection } from '
|
|
1
|
+
import { BranchModel } from '../../../graphql-api/branch/model/branch.model';
|
|
2
|
+
import { EndpointModel } from '../../../graphql-api/endpoint/model';
|
|
3
|
+
import { ChildBranchModel } from '../../../graphql-api/revision/model/child-branch.model';
|
|
4
|
+
import { TablesConnection } from '../../../graphql-api/table/model/table-connection.model';
|
|
5
5
|
export declare class RevisionModel {
|
|
6
6
|
id: string;
|
|
7
7
|
sequence: number;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { CommandBus, QueryBus } from '@nestjs/cqrs';
|
|
2
|
-
import { CreateRevisionInput } from '
|
|
3
|
-
import { GetRevisionTablesInput } from '
|
|
4
|
-
import { GetRevisionInput } from '
|
|
5
|
-
import { RevisionModel } from '
|
|
2
|
+
import { CreateRevisionInput } from '../../graphql-api/revision/inputs/create-revision.input';
|
|
3
|
+
import { GetRevisionTablesInput } from '../../graphql-api/revision/inputs/get-revision-tables.input';
|
|
4
|
+
import { GetRevisionInput } from '../../graphql-api/revision/inputs/get-revision.input';
|
|
5
|
+
import { RevisionModel } from '../../graphql-api/revision/model/revision.model';
|
|
6
6
|
export declare class RevisionResolver {
|
|
7
7
|
private commandBus;
|
|
8
8
|
private queryBus;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from '
|
|
2
|
-
export * from '
|
|
3
|
-
export * from '
|
|
1
|
+
export * from '../../../graphql-api/row/inputs/get-row.input';
|
|
2
|
+
export * from '../../../graphql-api/row/inputs/get-rows.input';
|
|
3
|
+
export * from '../../../graphql-api/row/inputs/get-row-count-references-by.input';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { RowModel } from '
|
|
2
|
-
import { TableModel } from '
|
|
1
|
+
import { RowModel } from '../../../graphql-api/row/model/row.model';
|
|
2
|
+
import { TableModel } from '../../../graphql-api/table/model/table.model';
|
|
3
3
|
export declare class RowReferenceModel {
|
|
4
4
|
table: TableModel;
|
|
5
5
|
row: RowModel;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RowReferenceModel } from '
|
|
1
|
+
import { RowReferenceModel } from '../../../graphql-api/row/model/row-reference.model';
|
|
2
2
|
declare const RowReferencesConnectionModel_base: import("@nestjs/common").Type<import("../../../share/pagination.interface").IPaginatedType<RowReferenceModel>>;
|
|
3
3
|
export declare class RowReferencesConnectionModel extends RowReferencesConnectionModel_base {
|
|
4
4
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Prisma } from '@prisma/client';
|
|
2
|
-
import { RowsConnection } from '
|
|
2
|
+
import { RowsConnection } from '../../../graphql-api/row/model/rows-connection.model';
|
|
3
3
|
export type RowModelContext = {
|
|
4
4
|
revisionId: string;
|
|
5
5
|
tableId: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RowModel } from '
|
|
1
|
+
import { RowModel } from '../../../graphql-api/row/model/row.model';
|
|
2
2
|
declare const RowsConnection_base: import("@nestjs/common").Type<import("../../../share/pagination.interface").IPaginatedType<RowModel>>;
|
|
3
3
|
export declare class RowsConnection extends RowsConnection_base {
|
|
4
4
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { QueryBus } from '@nestjs/cqrs';
|
|
2
|
-
import { GetRowCountReferencesByInput, GetRowInput, GetRowsInput } from '
|
|
3
|
-
import { GetRowReferencesInput } from '
|
|
4
|
-
import { RowModel } from '
|
|
5
|
-
import { GetRowReturnType } from '
|
|
6
|
-
import { GetRowsReturnType } from '
|
|
2
|
+
import { GetRowCountReferencesByInput, GetRowInput, GetRowsInput } from '../../graphql-api/row/inputs';
|
|
3
|
+
import { GetRowReferencesInput } from '../../graphql-api/row/inputs/get-row-references.input';
|
|
4
|
+
import { RowModel } from '../../graphql-api/row/model/row.model';
|
|
5
|
+
import { GetRowReturnType } from '../../row/queries/types';
|
|
6
|
+
import { GetRowsReturnType } from '../../row/queries/types/get-rows.types';
|
|
7
7
|
export declare class RowResolver {
|
|
8
8
|
private queryBus;
|
|
9
9
|
constructor(queryBus: QueryBus);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Type } from '@nestjs/common';
|
|
2
|
-
import { IPageInfo, IPaginatedType } from '
|
|
2
|
+
import { IPageInfo, IPaginatedType } from '../../../share/pagination.interface';
|
|
3
3
|
export declare class PageInfo implements IPageInfo {
|
|
4
4
|
endCursor?: string;
|
|
5
5
|
hasNextPage: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TableModel } from '
|
|
1
|
+
import { TableModel } from '../../../graphql-api/table/model/table.model';
|
|
2
2
|
declare const TablesConnection_base: import("@nestjs/common").Type<import("../../../share/pagination.interface").IPaginatedType<TableModel>>;
|
|
3
3
|
export declare class TablesConnection extends TablesConnection_base {
|
|
4
4
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Prisma } from '@prisma/client';
|
|
2
|
-
import { RowsConnection } from '
|
|
3
|
-
import { TablesConnection } from '
|
|
2
|
+
import { RowsConnection } from '../../../graphql-api/row/model/rows-connection.model';
|
|
3
|
+
import { TablesConnection } from '../../../graphql-api/table/model/table-connection.model';
|
|
4
4
|
export type TableModelContext = {
|
|
5
5
|
revisionId: string;
|
|
6
6
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { QueryBus } from '@nestjs/cqrs';
|
|
2
|
-
import { GetTableReferencesInput } from '
|
|
3
|
-
import { GetTableRowsInput } from '
|
|
4
|
-
import { GetTableInput } from '
|
|
5
|
-
import { GetTablesInput } from '
|
|
6
|
-
import { TableModel } from '
|
|
7
|
-
import { GetTableReturnType, GetTableRowsReturnType, GetTablesReturnType } from '
|
|
2
|
+
import { GetTableReferencesInput } from '../../graphql-api/table/inputs/get-table-references.input';
|
|
3
|
+
import { GetTableRowsInput } from '../../graphql-api/table/inputs/get-table-rows.input';
|
|
4
|
+
import { GetTableInput } from '../../graphql-api/table/inputs/get-table.input';
|
|
5
|
+
import { GetTablesInput } from '../../graphql-api/table/inputs/get-tables.input';
|
|
6
|
+
import { TableModel } from '../../graphql-api/table/model/table.model';
|
|
7
|
+
import { GetTableReturnType, GetTableRowsReturnType, GetTablesReturnType } from '../../table/queries/types';
|
|
8
8
|
export declare class TableResolver {
|
|
9
9
|
private queryBus;
|
|
10
10
|
constructor(queryBus: QueryBus);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { CommandBus, QueryBus } from '@nestjs/cqrs';
|
|
2
|
-
import { IAuthUser } from '
|
|
3
|
-
import { GetMeProjectsInput, SetUsernameInput, UpdatePasswordInput } from '
|
|
4
|
-
import { UserModel } from '
|
|
5
|
-
import { GetProjectsByUserIdQueryReturnType, GetUserOrganizationQueryReturnType, GetUserQueryReturnType } from '
|
|
2
|
+
import { IAuthUser } from '../../auth/types';
|
|
3
|
+
import { GetMeProjectsInput, SetUsernameInput, UpdatePasswordInput } from '../../graphql-api/user/inputs';
|
|
4
|
+
import { UserModel } from '../../graphql-api/user/model/user.model';
|
|
5
|
+
import { GetProjectsByUserIdQueryReturnType, GetUserOrganizationQueryReturnType, GetUserQueryReturnType } from '../../user/queries/impl';
|
|
6
6
|
export declare class UserResolver {
|
|
7
7
|
private readonly queryBus;
|
|
8
8
|
private readonly commandBus;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export { CoreModule } from '
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
1
|
+
export { CoreModule } from './core/core.module';
|
|
2
|
+
export { MetricsApiModule } from './metrics-api/metrics-api.module';
|
|
3
|
+
export { AdminModule } from './admin/admin.module';
|
|
4
|
+
export { AdminModuleOptions } from './admin/admin-module.options';
|
|
5
|
+
export { InMemoryServer } from './notification/in-memory-server';
|
package/dist/src/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.InMemoryServer = exports.AdminModule = exports.MetricsApiModule = exports.CoreModule = void 0;
|
|
4
4
|
var core_module_1 = require("./core/core.module");
|
|
5
5
|
Object.defineProperty(exports, "CoreModule", { enumerable: true, get: function () { return core_module_1.CoreModule; } });
|
|
6
|
-
var
|
|
7
|
-
Object.defineProperty(exports, "
|
|
8
|
-
var
|
|
9
|
-
Object.defineProperty(exports, "
|
|
10
|
-
var
|
|
11
|
-
Object.defineProperty(exports, "
|
|
6
|
+
var metrics_api_module_1 = require("./metrics-api/metrics-api.module");
|
|
7
|
+
Object.defineProperty(exports, "MetricsApiModule", { enumerable: true, get: function () { return metrics_api_module_1.MetricsApiModule; } });
|
|
8
|
+
var admin_module_1 = require("./admin/admin.module");
|
|
9
|
+
Object.defineProperty(exports, "AdminModule", { enumerable: true, get: function () { return admin_module_1.AdminModule; } });
|
|
10
|
+
var in_memory_server_1 = require("./notification/in-memory-server");
|
|
11
|
+
Object.defineProperty(exports, "InMemoryServer", { enumerable: true, get: function () { return in_memory_server_1.InMemoryServer; } });
|
|
12
12
|
//# sourceMappingURL=index.js.map
|
package/dist/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AAAA,kDAAkD;AAAzC,yGAAA,UAAU,OAAA;AACnB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AAAA,kDAAkD;AAAzC,yGAAA,UAAU,OAAA;AACnB,uEAAsE;AAA7D,sHAAA,gBAAgB,OAAA;AACzB,qDAAqD;AAA5C,2GAAA,WAAW,OAAA;AAEpB,oEAAmE;AAA1D,kHAAA,cAAc,OAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ApolloServerPlugin, BaseContext, GraphQLRequestListener } from '@apollo/server';
|
|
2
|
-
import { GraphqlMetricsService } from '
|
|
2
|
+
import { GraphqlMetricsService } from '../../metrics/graphql/graphql-metrics.service';
|
|
3
3
|
export declare class GraphqlMetricsPlugin implements ApolloServerPlugin {
|
|
4
4
|
private readonly graphqlMetrics;
|
|
5
5
|
constructor(graphqlMetrics: GraphqlMetricsService);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CallHandler, ExecutionContext, NestInterceptor } from '@nestjs/common';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
|
-
import { RestMetricsService } from '
|
|
3
|
+
import { RestMetricsService } from '../../metrics/rest/rest-metrics.service';
|
|
4
4
|
export declare class RestMetricsInterceptor implements NestInterceptor {
|
|
5
5
|
private readonly metricsService;
|
|
6
6
|
constructor(metricsService: RestMetricsService);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Response } from 'express';
|
|
2
|
-
import { PrismaService } from '
|
|
2
|
+
import { PrismaService } from '../database/prisma.service';
|
|
3
3
|
export declare class MetricsController {
|
|
4
4
|
private readonly prismaService;
|
|
5
5
|
constructor(prismaService: PrismaService);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InMemoryServer = void 0;
|
|
4
|
+
const microservices_1 = require("@nestjs/microservices");
|
|
5
|
+
const notification_event_emitter_1 = require("./notification-event-emitter");
|
|
6
|
+
class InMemoryServer extends microservices_1.Server {
|
|
7
|
+
constructor() {
|
|
8
|
+
super();
|
|
9
|
+
}
|
|
10
|
+
close() { }
|
|
11
|
+
listen(callback) {
|
|
12
|
+
for (const [pattern, handler] of this.messageHandlers) {
|
|
13
|
+
notification_event_emitter_1.notificationEventEmitter.on(pattern, handler);
|
|
14
|
+
}
|
|
15
|
+
callback();
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.InMemoryServer = InMemoryServer;
|
|
19
|
+
//# sourceMappingURL=in-memory-server.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"in-memory-server.js","sourceRoot":"","sources":["../../../src/notification/in-memory-server.ts"],"names":[],"mappings":";;;AAAA,yDAAwE;AACxE,6EAAuF;AAEvF,MAAa,cAAe,SAAQ,sBAAM;IACxC;QACE,KAAK,EAAE,CAAC;IACV,CAAC;IAED,KAAK,KAAS,CAAC;IAEf,MAAM,CAAC,QAA+C;QACpD,KAAK,MAAM,CAAC,OAAO,EAAE,OAAO,CAAC,IAAI,IAAI,CAAC,eAAe,EAAE,CAAC;YACtD,qDAAwB,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;QAChD,CAAC;QAED,QAAQ,EAAE,CAAC;IACb,CAAC;CACF;AAdD,wCAcC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ICommandHandler } from '@nestjs/cqrs';
|
|
2
|
-
import { IdService } from '
|
|
3
|
-
import { PrismaService } from '
|
|
4
|
-
import { AddUserToOrganizationCommand, AddUserToOrganizationCommandReturnType } from '
|
|
2
|
+
import { IdService } from '../../../database/id.service';
|
|
3
|
+
import { PrismaService } from '../../../database/prisma.service';
|
|
4
|
+
import { AddUserToOrganizationCommand, AddUserToOrganizationCommandReturnType } from '../../../organization/commands/impl';
|
|
5
5
|
export declare class AddUserToOrganizationHandler implements ICommandHandler<AddUserToOrganizationCommand, AddUserToOrganizationCommandReturnType> {
|
|
6
6
|
private readonly prisma;
|
|
7
7
|
private readonly idService;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ICommandHandler } from '@nestjs/cqrs';
|
|
2
|
-
import { PrismaService } from '
|
|
3
|
-
import { RemoveUserFromOrganizationCommand, RemoveUserFromOrganizationCommandReturnType } from '
|
|
2
|
+
import { PrismaService } from '../../../database/prisma.service';
|
|
3
|
+
import { RemoveUserFromOrganizationCommand, RemoveUserFromOrganizationCommandReturnType } from '../../../organization/commands/impl';
|
|
4
4
|
export declare class RemoveUserFromOrganizationHandler implements ICommandHandler<RemoveUserFromOrganizationCommand, RemoveUserFromOrganizationCommandReturnType> {
|
|
5
5
|
private readonly prisma;
|
|
6
6
|
constructor(prisma: PrismaService);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { AddUserToOrganizationHandler, RemoveUserFromOrganizationHandler } from '
|
|
1
|
+
import { AddUserToOrganizationHandler, RemoveUserFromOrganizationHandler } from '../../organization/commands/handlers';
|
|
2
2
|
export declare const ORGANIZATIONS_COMMANDS: (typeof AddUserToOrganizationHandler | typeof RemoveUserFromOrganizationHandler)[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IQueryHandler } from '@nestjs/cqrs';
|
|
2
|
-
import { PrismaService } from '
|
|
3
|
-
import { GetProjectsByOrganizationIdQuery, GetProjectsByOrganizationIdQueryReturnType } from '
|
|
2
|
+
import { PrismaService } from '../../../database/prisma.service';
|
|
3
|
+
import { GetProjectsByOrganizationIdQuery, GetProjectsByOrganizationIdQueryReturnType } from '../../../organization/queries/impl';
|
|
4
4
|
export declare class GetProjectsByOrganizationIdHandler implements IQueryHandler<GetProjectsByOrganizationIdQuery, GetProjectsByOrganizationIdQueryReturnType> {
|
|
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 { GetUsersOrganizationQuery, GetUsersOrganizationQueryReturnType } from '
|
|
2
|
+
import { PrismaService } from '../../../database/prisma.service';
|
|
3
|
+
import { GetUsersOrganizationQuery, GetUsersOrganizationQueryReturnType } from '../../../organization/queries/impl';
|
|
4
4
|
export declare class GetUsersOrganizationHandler implements IQueryHandler<GetUsersOrganizationQuery, GetUsersOrganizationQueryReturnType> {
|
|
5
5
|
private prisma;
|
|
6
6
|
constructor(prisma: PrismaService);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from '
|
|
1
|
+
export * from '../../../organization/queries/handlers/get-projects-by-organization-id.handler';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Project } from '@prisma/client';
|
|
2
|
-
import { IPaginatedType } from '
|
|
2
|
+
import { IPaginatedType } from '../../../share/pagination.interface';
|
|
3
3
|
export declare class GetProjectsByOrganizationIdQuery {
|
|
4
4
|
readonly data: {
|
|
5
5
|
readonly userId?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Role, User } from '@prisma/client';
|
|
2
|
-
import { IPaginatedType } from '
|
|
2
|
+
import { IPaginatedType } from '../../../share/pagination.interface';
|
|
3
3
|
export declare class GetUsersOrganizationQuery {
|
|
4
4
|
readonly data: {
|
|
5
5
|
readonly organizationId: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from '
|
|
1
|
+
export * from '../../../organization/queries/impl/get-projects-by-organization-id.query';
|
|
2
2
|
export * from './get-users-organization.query';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { GetProjectsByOrganizationIdHandler } from '
|
|
2
|
-
import { GetUsersOrganizationHandler } from '
|
|
1
|
+
import { GetProjectsByOrganizationIdHandler } from '../../organization/queries/handlers';
|
|
2
|
+
import { GetUsersOrganizationHandler } from '../../organization/queries/handlers/get-users-organization.handler';
|
|
3
3
|
export declare const ORGANIZATIONS_QUERIES: (typeof GetProjectsByOrganizationIdHandler | typeof GetUsersOrganizationHandler)[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ICommandHandler } from '@nestjs/cqrs';
|
|
2
|
-
import { IdService } from '
|
|
3
|
-
import { PrismaService } from '
|
|
4
|
-
import { AddUserToProjectCommand, AddUserToProjectCommandReturnType } from '
|
|
2
|
+
import { IdService } from '../../../database/id.service';
|
|
3
|
+
import { PrismaService } from '../../../database/prisma.service';
|
|
4
|
+
import { AddUserToProjectCommand, AddUserToProjectCommandReturnType } from '../../../project/commands/impl';
|
|
5
5
|
export declare class AddUserToProjectHandler implements ICommandHandler<AddUserToProjectCommand, AddUserToProjectCommandReturnType> {
|
|
6
6
|
private readonly prisma;
|
|
7
7
|
private readonly idService;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CommandBus, ICommandHandler, QueryBus } from '@nestjs/cqrs';
|
|
2
|
-
import { ApiCreateProjectCommand } from '
|
|
2
|
+
import { ApiCreateProjectCommand } from '../../../project/commands/impl';
|
|
3
3
|
export declare class ApiCreateProjectHandler implements ICommandHandler<ApiCreateProjectCommand> {
|
|
4
4
|
private readonly commandBus;
|
|
5
5
|
private readonly queryBus;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ICommandHandler } from '@nestjs/cqrs';
|
|
2
2
|
import { AsyncLocalStorage } from 'async_hooks';
|
|
3
|
-
import { IdService } from '
|
|
4
|
-
import { TransactionPrismaService } from '
|
|
5
|
-
import { CreateProjectCommand } from '
|
|
3
|
+
import { IdService } from '../../../database/id.service';
|
|
4
|
+
import { TransactionPrismaService } from '../../../database/transaction-prisma.service';
|
|
5
|
+
import { CreateProjectCommand } from '../../../project/commands/impl';
|
|
6
6
|
export type CreateProjectHandlerContext = {
|
|
7
7
|
organizationId: string;
|
|
8
8
|
projectId: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ICommandHandler } from '@nestjs/cqrs';
|
|
2
|
-
import { TransactionPrismaService } from '
|
|
3
|
-
import { EndpointNotificationService } from '
|
|
4
|
-
import { DeleteProjectCommand } from '
|
|
5
|
-
import { ShareTransactionalQueries } from '
|
|
2
|
+
import { TransactionPrismaService } from '../../../database/transaction-prisma.service';
|
|
3
|
+
import { EndpointNotificationService } from '../../../notification/endpoint-notification.service';
|
|
4
|
+
import { DeleteProjectCommand } from '../../../project/commands/impl';
|
|
5
|
+
import { ShareTransactionalQueries } from '../../../share/share.transactional.queries';
|
|
6
6
|
export declare class DeleteProjectHandler implements ICommandHandler<DeleteProjectCommand, boolean> {
|
|
7
7
|
private readonly transactionPrisma;
|
|
8
8
|
private readonly shareTransactionalQueries;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ApiCreateProjectHandler } from '
|
|
2
|
-
import { CreateProjectHandler } from '
|
|
3
|
-
import { DeleteProjectHandler } from '
|
|
4
|
-
import { AddUserToProjectHandler } from '
|
|
5
|
-
import { RemoveUserFromProjectHandler } from '
|
|
6
|
-
import { UpdateProjectHandler } from '
|
|
1
|
+
import { ApiCreateProjectHandler } from '../../../project/commands/handlers/api-create-project.handler';
|
|
2
|
+
import { CreateProjectHandler } from '../../../project/commands/handlers/create-project.handler';
|
|
3
|
+
import { DeleteProjectHandler } from '../../../project/commands/handlers/delete-project.handler';
|
|
4
|
+
import { AddUserToProjectHandler } from '../../../project/commands/handlers/add-user-to-project.handler';
|
|
5
|
+
import { RemoveUserFromProjectHandler } from '../../../project/commands/handlers/remove-user-from-project.handler';
|
|
6
|
+
import { UpdateProjectHandler } from '../../../project/commands/handlers/update-project.handler';
|
|
7
7
|
export declare const PROJECT_HANDLERS: (typeof ApiCreateProjectHandler | typeof CreateProjectHandler | typeof DeleteProjectHandler | typeof AddUserToProjectHandler | typeof RemoveUserFromProjectHandler | typeof UpdateProjectHandler)[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ICommandHandler } from '@nestjs/cqrs';
|
|
2
|
-
import { PrismaService } from '
|
|
3
|
-
import { RemoveUserFromProjectCommand, RemoveUserFromProjectCommandReturnType } from '
|
|
2
|
+
import { PrismaService } from '../../../database/prisma.service';
|
|
3
|
+
import { RemoveUserFromProjectCommand, RemoveUserFromProjectCommandReturnType } from '../../../project/commands/impl';
|
|
4
4
|
export declare class RemoveUserFromProjectHandler implements ICommandHandler<RemoveUserFromProjectCommand, RemoveUserFromProjectCommandReturnType> {
|
|
5
5
|
private readonly prisma;
|
|
6
6
|
constructor(prisma: PrismaService);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ICommandHandler } from '@nestjs/cqrs';
|
|
2
|
-
import { TransactionPrismaService } from '
|
|
3
|
-
import { UpdateProjectCommand } from '
|
|
4
|
-
import { ShareTransactionalQueries } from '
|
|
2
|
+
import { TransactionPrismaService } from '../../../database/transaction-prisma.service';
|
|
3
|
+
import { UpdateProjectCommand } from '../../../project/commands/impl';
|
|
4
|
+
import { ShareTransactionalQueries } from '../../../share/share.transactional.queries';
|
|
5
5
|
export declare class UpdateProjectHandler implements ICommandHandler<UpdateProjectCommand, boolean> {
|
|
6
6
|
private readonly transactionPrisma;
|
|
7
7
|
private readonly shareTransactionalQueries;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IQueryHandler } from '@nestjs/cqrs';
|
|
2
|
-
import { PrismaService } from '
|
|
3
|
-
import { GetAllBranchesByProjectQuery } from '
|
|
2
|
+
import { PrismaService } from '../../../database/prisma.service';
|
|
3
|
+
import { GetAllBranchesByProjectQuery } from '../../../project/queries/impl';
|
|
4
4
|
export declare class GetAllBranchesByProjectHandler implements IQueryHandler<GetAllBranchesByProjectQuery> {
|
|
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 { GetProjectByIdQuery } from '
|
|
2
|
+
import { PrismaService } from '../../../database/prisma.service';
|
|
3
|
+
import { GetProjectByIdQuery } from '../../../project/queries/impl';
|
|
4
4
|
export declare class GetProjectByIdHandler implements IQueryHandler<GetProjectByIdQuery> {
|
|
5
5
|
private prisma;
|
|
6
6
|
constructor(prisma: PrismaService);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IQueryHandler } from '@nestjs/cqrs';
|
|
2
|
-
import { TransactionPrismaService } from '
|
|
3
|
-
import { GetProjectQuery } from '
|
|
4
|
-
import { ShareTransactionalQueries } from '
|
|
2
|
+
import { TransactionPrismaService } from '../../../database/transaction-prisma.service';
|
|
3
|
+
import { GetProjectQuery } from '../../../project/queries/impl';
|
|
4
|
+
import { ShareTransactionalQueries } from '../../../share/share.transactional.queries';
|
|
5
5
|
export declare class GetProjectHandler implements IQueryHandler<GetProjectQuery> {
|
|
6
6
|
private transactionPrisma;
|
|
7
7
|
private shareTransactionalQueries;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IQueryHandler } from '@nestjs/cqrs';
|
|
2
|
-
import { PrismaService } from '
|
|
3
|
-
import { GetRootBranchByProjectQuery } from '
|
|
2
|
+
import { PrismaService } from '../../../database/prisma.service';
|
|
3
|
+
import { GetRootBranchByProjectQuery } from '../../../project/queries/impl';
|
|
4
4
|
export declare class GetRootBranchByProjectHandler implements IQueryHandler<GetRootBranchByProjectQuery> {
|
|
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 { GetUsersProjectQuery, GetUsersProjectQueryReturnType } from '
|
|
2
|
+
import { PrismaService } from '../../../database/prisma.service';
|
|
3
|
+
import { GetUsersProjectQuery, GetUsersProjectQueryReturnType } from '../../../project/queries/impl';
|
|
4
4
|
export declare class GetUsersProjectHandler implements IQueryHandler<GetUsersProjectQuery, GetUsersProjectQueryReturnType> {
|
|
5
5
|
private prisma;
|
|
6
6
|
constructor(prisma: PrismaService);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { GetAllBranchesByProjectHandler } from '
|
|
2
|
-
import { GetProjectByIdHandler } from '
|
|
3
|
-
import { GetProjectHandler } from '
|
|
4
|
-
import { GetRootBranchByProjectHandler } from '
|
|
5
|
-
import { GetUsersProjectHandler } from '
|
|
1
|
+
import { GetAllBranchesByProjectHandler } from '../../../project/queries/handlers/get-all-branches-by-project.handler';
|
|
2
|
+
import { GetProjectByIdHandler } from '../../../project/queries/handlers/get-project-by-id.handler';
|
|
3
|
+
import { GetProjectHandler } from '../../../project/queries/handlers/get-project.handler';
|
|
4
|
+
import { GetRootBranchByProjectHandler } from '../../../project/queries/handlers/get-root-branch-by-project.handler';
|
|
5
|
+
import { GetUsersProjectHandler } from '../../../project/queries/handlers/get-users-project.handler';
|
|
6
6
|
export declare const PROJECT_QUERIES: (typeof GetAllBranchesByProjectHandler | typeof GetProjectByIdHandler | typeof GetProjectHandler | typeof GetRootBranchByProjectHandler | typeof GetUsersProjectHandler)[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Role, User } from '@prisma/client';
|
|
2
|
-
import { IPaginatedType } from '
|
|
2
|
+
import { IPaginatedType } from '../../../share/pagination.interface';
|
|
3
3
|
export declare class GetUsersProjectQuery {
|
|
4
4
|
readonly data: {
|
|
5
5
|
readonly organizationId: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CommandBus } from '@nestjs/cqrs';
|
|
2
|
-
import { IAuthUser } from '
|
|
3
|
-
import { CreateUserDto, LoginDto } from '
|
|
4
|
-
import { UpdatePasswordDto } from '
|
|
2
|
+
import { IAuthUser } from '../../auth/types';
|
|
3
|
+
import { CreateUserDto, LoginDto } from '../../rest-api/auth/dto';
|
|
4
|
+
import { UpdatePasswordDto } from '../../rest-api/auth/dto/update-password.dto';
|
|
5
5
|
export declare class AuthController {
|
|
6
6
|
private readonly commandBus;
|
|
7
7
|
constructor(commandBus: CommandBus);
|