@revisium/core 0.9.0
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/LICENSE +204 -0
- package/README.md +9 -0
- package/dist/package.json +125 -0
- package/dist/prisma/migrations/000000000000_squashed_migrations/migration.sql +298 -0
- package/dist/prisma/migrations/migration_lock.toml +3 -0
- package/dist/prisma/schema.prisma +208 -0
- package/dist/prisma/seed/__generated__/seed.d.ts +285 -0
- package/dist/prisma/seed/__generated__/seed.js +390 -0
- package/dist/prisma/seed/__generated__/seed.js.map +1 -0
- package/dist/prisma/seed/generateSeedApi.d.ts +1 -0
- package/dist/prisma/seed/generateSeedApi.js +17 -0
- package/dist/prisma/seed/generateSeedApi.js.map +1 -0
- package/dist/prisma/seed/loadFromSeedApi.d.ts +1 -0
- package/dist/prisma/seed/loadFromSeedApi.js +29 -0
- package/dist/prisma/seed/loadFromSeedApi.js.map +1 -0
- package/dist/prisma/seed/permissions/add-user.json +5 -0
- package/dist/prisma/seed/permissions/create-branch.json +5 -0
- package/dist/prisma/seed/permissions/create-endpoint.json +5 -0
- package/dist/prisma/seed/permissions/create-project.json +5 -0
- package/dist/prisma/seed/permissions/create-revision.json +5 -0
- package/dist/prisma/seed/permissions/create-row.json +5 -0
- package/dist/prisma/seed/permissions/create-table.json +5 -0
- package/dist/prisma/seed/permissions/create-user.json +5 -0
- package/dist/prisma/seed/permissions/delete-endpoint.json +5 -0
- package/dist/prisma/seed/permissions/delete-organization.json +5 -0
- package/dist/prisma/seed/permissions/delete-project.json +5 -0
- package/dist/prisma/seed/permissions/delete-row.json +5 -0
- package/dist/prisma/seed/permissions/delete-table.json +5 -0
- package/dist/prisma/seed/permissions/delete-user.json +5 -0
- package/dist/prisma/seed/permissions/read-organization.json +5 -0
- package/dist/prisma/seed/permissions/read-project-private.json +7 -0
- package/dist/prisma/seed/permissions/read-project-public.json +7 -0
- package/dist/prisma/seed/permissions/read-user.json +5 -0
- package/dist/prisma/seed/permissions/revert-revision.json +5 -0
- package/dist/prisma/seed/permissions/update-organization.json +5 -0
- package/dist/prisma/seed/permissions/update-project.json +5 -0
- package/dist/prisma/seed/permissions/update-row.json +5 -0
- package/dist/prisma/seed/permissions/update-table.json +5 -0
- package/dist/prisma/seed/roles/developer.json +21 -0
- package/dist/prisma/seed/roles/editor.json +15 -0
- package/dist/prisma/seed/roles/guest.json +8 -0
- package/dist/prisma/seed/roles/organizationAdmin.json +26 -0
- package/dist/prisma/seed/roles/organizationOwner.json +28 -0
- package/dist/prisma/seed/roles/reader.json +10 -0
- package/dist/prisma/seed/roles/systemAdmin.json +8 -0
- package/dist/prisma/seed/roles/systemFullApiRead.json +9 -0
- package/dist/prisma/seed/roles/systemUser.json +8 -0
- package/dist/prisma/seed.d.ts +1 -0
- package/dist/prisma/seed.js +140 -0
- package/dist/prisma/seed.js.map +1 -0
- package/dist/src/__tests__/utils/createMocks.d.ts +19 -0
- package/dist/src/__tests__/utils/createMocks.js +30 -0
- package/dist/src/__tests__/utils/createMocks.js.map +1 -0
- package/dist/src/__tests__/utils/implementIdService.d.ts +3 -0
- package/dist/src/__tests__/utils/implementIdService.js +9 -0
- package/dist/src/__tests__/utils/implementIdService.js.map +1 -0
- package/dist/src/__tests__/utils/rowMocks.d.ts +5 -0
- package/dist/src/__tests__/utils/rowMocks.js +12 -0
- package/dist/src/__tests__/utils/rowMocks.js.map +1 -0
- package/dist/src/__tests__/utils/schema/schema.mocks.d.ts +25 -0
- package/dist/src/__tests__/utils/schema/schema.mocks.js +61 -0
- package/dist/src/__tests__/utils/schema/schema.mocks.js.map +1 -0
- package/dist/src/app.module.d.ts +2 -0
- package/dist/src/app.module.js +21 -0
- package/dist/src/app.module.js.map +1 -0
- package/dist/src/auth/auth.module.d.ts +2 -0
- package/dist/src/auth/auth.module.js +51 -0
- package/dist/src/auth/auth.module.js.map +1 -0
- package/dist/src/auth/auth.service.d.ts +15 -0
- package/dist/src/auth/auth.service.js +42 -0
- package/dist/src/auth/auth.service.js.map +1 -0
- package/dist/src/auth/casl-ability.factory.d.ts +25 -0
- package/dist/src/auth/casl-ability.factory.js +45 -0
- package/dist/src/auth/casl-ability.factory.js.map +1 -0
- package/dist/src/auth/commands/handlers/check-organization-permission.handler.d.ts +12 -0
- package/dist/src/auth/commands/handlers/check-organization-permission.handler.js +67 -0
- package/dist/src/auth/commands/handlers/check-organization-permission.handler.js.map +1 -0
- package/dist/src/auth/commands/handlers/check-project-permission.handler.d.ts +17 -0
- package/dist/src/auth/commands/handlers/check-project-permission.handler.js +149 -0
- package/dist/src/auth/commands/handlers/check-project-permission.handler.js.map +1 -0
- package/dist/src/auth/commands/handlers/check-system-permission.handler.d.ts +11 -0
- package/dist/src/auth/commands/handlers/check-system-permission.handler.js +54 -0
- package/dist/src/auth/commands/handlers/check-system-permission.handler.js.map +1 -0
- package/dist/src/auth/commands/handlers/confirm-email-code.handler.d.ts +14 -0
- package/dist/src/auth/commands/handlers/confirm-email-code.handler.js +62 -0
- package/dist/src/auth/commands/handlers/confirm-email-code.handler.js.map +1 -0
- package/dist/src/auth/commands/handlers/create-user.handler.d.ts +15 -0
- package/dist/src/auth/commands/handlers/create-user.handler.js +103 -0
- package/dist/src/auth/commands/handlers/create-user.handler.js.map +1 -0
- package/dist/src/auth/commands/handlers/index.d.ts +9 -0
- package/dist/src/auth/commands/handlers/index.js +26 -0
- package/dist/src/auth/commands/handlers/index.js.map +1 -0
- package/dist/src/auth/commands/handlers/login-github.handler.d.ts +17 -0
- package/dist/src/auth/commands/handlers/login-github.handler.js +67 -0
- package/dist/src/auth/commands/handlers/login-github.handler.js.map +1 -0
- package/dist/src/auth/commands/handlers/login-google.handler.d.ts +17 -0
- package/dist/src/auth/commands/handlers/login-google.handler.js +67 -0
- package/dist/src/auth/commands/handlers/login-google.handler.js.map +1 -0
- package/dist/src/auth/commands/handlers/login.handler.d.ts +11 -0
- package/dist/src/auth/commands/handlers/login.handler.js +56 -0
- package/dist/src/auth/commands/handlers/login.handler.js.map +1 -0
- package/dist/src/auth/commands/handlers/sign-up.handler.d.ts +12 -0
- package/dist/src/auth/commands/handlers/sign-up.handler.js +48 -0
- package/dist/src/auth/commands/handlers/sign-up.handler.js.map +1 -0
- package/dist/src/auth/commands/impl/check-organization-permission.command.d.ts +13 -0
- package/dist/src/auth/commands/impl/check-organization-permission.command.js +10 -0
- package/dist/src/auth/commands/impl/check-organization-permission.command.js.map +1 -0
- package/dist/src/auth/commands/impl/check-project-permission.command.d.ts +25 -0
- package/dist/src/auth/commands/impl/check-project-permission.command.js +10 -0
- package/dist/src/auth/commands/impl/check-project-permission.command.js.map +1 -0
- package/dist/src/auth/commands/impl/check-system-permission.command.d.ts +12 -0
- package/dist/src/auth/commands/impl/check-system-permission.command.js +10 -0
- package/dist/src/auth/commands/impl/check-system-permission.command.js.map +1 -0
- package/dist/src/auth/commands/impl/confirm-email-code.command.d.ts +11 -0
- package/dist/src/auth/commands/impl/confirm-email-code.command.js +10 -0
- package/dist/src/auth/commands/impl/confirm-email-code.command.js.map +1 -0
- package/dist/src/auth/commands/impl/create-user.command.d.ts +20 -0
- package/dist/src/auth/commands/impl/create-user.command.js +10 -0
- package/dist/src/auth/commands/impl/create-user.command.js.map +1 -0
- package/dist/src/auth/commands/impl/index.d.ts +9 -0
- package/dist/src/auth/commands/impl/index.js +26 -0
- package/dist/src/auth/commands/impl/index.js.map +1 -0
- package/dist/src/auth/commands/impl/login-github.command.d.ts +11 -0
- package/dist/src/auth/commands/impl/login-github.command.js +10 -0
- package/dist/src/auth/commands/impl/login-github.command.js.map +1 -0
- package/dist/src/auth/commands/impl/login-google.command.d.ts +13 -0
- package/dist/src/auth/commands/impl/login-google.command.js +10 -0
- package/dist/src/auth/commands/impl/login-google.command.js.map +1 -0
- package/dist/src/auth/commands/impl/login.command.d.ts +13 -0
- package/dist/src/auth/commands/impl/login.command.js +10 -0
- package/dist/src/auth/commands/impl/login.command.js.map +1 -0
- package/dist/src/auth/commands/impl/sign-up.command.d.ts +13 -0
- package/dist/src/auth/commands/impl/sign-up.command.js +10 -0
- package/dist/src/auth/commands/impl/sign-up.command.js.map +1 -0
- package/dist/src/auth/commands/index.d.ts +2 -0
- package/dist/src/auth/commands/index.js +16 -0
- package/dist/src/auth/commands/index.js.map +1 -0
- package/dist/src/auth/consts.d.ts +50 -0
- package/dist/src/auth/consts.js +66 -0
- package/dist/src/auth/consts.js.map +1 -0
- package/dist/src/auth/github-oauth.service.d.ts +12 -0
- package/dist/src/auth/github-oauth.service.js +86 -0
- package/dist/src/auth/github-oauth.service.js.map +1 -0
- package/dist/src/auth/google-oauth.service.d.ts +13 -0
- package/dist/src/auth/google-oauth.service.js +57 -0
- package/dist/src/auth/google-oauth.service.js.map +1 -0
- package/dist/src/auth/guards/base-persmission.guard.d.ts +24 -0
- package/dist/src/auth/guards/base-persmission.guard.js +72 -0
- package/dist/src/auth/guards/base-persmission.guard.js.map +1 -0
- package/dist/src/auth/guards/jwt/gql-jwt-auth-guard.service.d.ts +6 -0
- package/dist/src/auth/guards/jwt/gql-jwt-auth-guard.service.js +23 -0
- package/dist/src/auth/guards/jwt/gql-jwt-auth-guard.service.js.map +1 -0
- package/dist/src/auth/guards/jwt/http-jwt-auth-guard.service.d.ts +4 -0
- package/dist/src/auth/guards/jwt/http-jwt-auth-guard.service.js +18 -0
- package/dist/src/auth/guards/jwt/http-jwt-auth-guard.service.js.map +1 -0
- package/dist/src/auth/guards/jwt/local-auth.guard.d.ts +4 -0
- package/dist/src/auth/guards/jwt/local-auth.guard.js +18 -0
- package/dist/src/auth/guards/jwt/local-auth.guard.js.map +1 -0
- package/dist/src/auth/guards/jwt/optional-gql-jwt-auth-guard.service.d.ts +7 -0
- package/dist/src/auth/guards/jwt/optional-gql-jwt-auth-guard.service.js +29 -0
- package/dist/src/auth/guards/jwt/optional-gql-jwt-auth-guard.service.js.map +1 -0
- package/dist/src/auth/guards/jwt/optional-http-jwt-auth-guard.service.d.ts +6 -0
- package/dist/src/auth/guards/jwt/optional-http-jwt-auth-guard.service.js +26 -0
- package/dist/src/auth/guards/jwt/optional-http-jwt-auth-guard.service.js.map +1 -0
- package/dist/src/auth/guards/organization.guard.d.ts +25 -0
- package/dist/src/auth/guards/organization.guard.js +31 -0
- package/dist/src/auth/guards/organization.guard.js.map +1 -0
- package/dist/src/auth/guards/permission-params.d.ts +7 -0
- package/dist/src/auth/guards/permission-params.js +8 -0
- package/dist/src/auth/guards/permission-params.js.map +1 -0
- package/dist/src/auth/guards/project.guard.d.ts +31 -0
- package/dist/src/auth/guards/project.guard.js +48 -0
- package/dist/src/auth/guards/project.guard.js.map +1 -0
- package/dist/src/auth/guards/system.guard.d.ts +20 -0
- package/dist/src/auth/guards/system.guard.js +26 -0
- package/dist/src/auth/guards/system.guard.js.map +1 -0
- package/dist/src/auth/jwt-secret.service.d.ts +7 -0
- package/dist/src/auth/jwt-secret.service.js +30 -0
- package/dist/src/auth/jwt-secret.service.js.map +1 -0
- package/dist/src/auth/strategy/jwt.strategy.d.ts +9 -0
- package/dist/src/auth/strategy/jwt.strategy.js +34 -0
- package/dist/src/auth/strategy/jwt.strategy.js.map +1 -0
- package/dist/src/auth/types.d.ts +8 -0
- package/dist/src/auth/types.js +3 -0
- package/dist/src/auth/types.js.map +1 -0
- package/dist/src/auth/utils.d.ts +2 -0
- package/dist/src/auth/utils.js +14 -0
- package/dist/src/auth/utils.js.map +1 -0
- package/dist/src/branch/branch.module.d.ts +2 -0
- package/dist/src/branch/branch.module.js +26 -0
- package/dist/src/branch/branch.module.js.map +1 -0
- package/dist/src/branch/commands/handlers/api-create-branch-by-revision-id.handler.d.ts +8 -0
- package/dist/src/branch/commands/handlers/api-create-branch-by-revision-id.handler.js +32 -0
- package/dist/src/branch/commands/handlers/api-create-branch-by-revision-id.handler.js.map +1 -0
- package/dist/src/branch/commands/handlers/create-branch-by-revision-id.handler.d.ts +32 -0
- package/dist/src/branch/commands/handlers/create-branch-by-revision-id.handler.js +134 -0
- package/dist/src/branch/commands/handlers/create-branch-by-revision-id.handler.js.map +1 -0
- package/dist/src/branch/commands/handlers/index.d.ts +3 -0
- package/dist/src/branch/commands/handlers/index.js +10 -0
- package/dist/src/branch/commands/handlers/index.js.map +1 -0
- package/dist/src/branch/commands/impl/api-create-branch-by-revision-id.command.d.ts +10 -0
- package/dist/src/branch/commands/impl/api-create-branch-by-revision-id.command.js +10 -0
- package/dist/src/branch/commands/impl/api-create-branch-by-revision-id.command.js.map +1 -0
- package/dist/src/branch/commands/impl/create-branch-by-revision-id.command.d.ts +10 -0
- package/dist/src/branch/commands/impl/create-branch-by-revision-id.command.js +10 -0
- package/dist/src/branch/commands/impl/create-branch-by-revision-id.command.js.map +1 -0
- package/dist/src/branch/commands/impl/index.d.ts +2 -0
- package/dist/src/branch/commands/impl/index.js +19 -0
- package/dist/src/branch/commands/impl/index.js.map +1 -0
- package/dist/src/branch/quieries/handlers/get-branch-by-id.handler.d.ts +15 -0
- package/dist/src/branch/quieries/handlers/get-branch-by-id.handler.js +29 -0
- package/dist/src/branch/quieries/handlers/get-branch-by-id.handler.js.map +1 -0
- package/dist/src/branch/quieries/handlers/get-branch.handler.d.ts +14 -0
- package/dist/src/branch/quieries/handlers/get-branch.handler.js +49 -0
- package/dist/src/branch/quieries/handlers/get-branch.handler.js.map +1 -0
- package/dist/src/branch/quieries/handlers/get-branches.handler.d.ts +22 -0
- package/dist/src/branch/quieries/handlers/get-branches.handler.js +65 -0
- package/dist/src/branch/quieries/handlers/get-branches.handler.js.map +1 -0
- package/dist/src/branch/quieries/handlers/get-draft-revision.handler.d.ts +9 -0
- package/dist/src/branch/quieries/handlers/get-draft-revision.handler.js +31 -0
- package/dist/src/branch/quieries/handlers/get-draft-revision.handler.js.map +1 -0
- package/dist/src/branch/quieries/handlers/get-head-revision.handler.d.ts +9 -0
- package/dist/src/branch/quieries/handlers/get-head-revision.handler.js +31 -0
- package/dist/src/branch/quieries/handlers/get-head-revision.handler.js.map +1 -0
- package/dist/src/branch/quieries/handlers/get-project-by-branch.handler.d.ts +14 -0
- package/dist/src/branch/quieries/handlers/get-project-by-branch.handler.js +31 -0
- package/dist/src/branch/quieries/handlers/get-project-by-branch.handler.js.map +1 -0
- package/dist/src/branch/quieries/handlers/get-revisions-by-branch-id.handler.d.ts +22 -0
- package/dist/src/branch/quieries/handlers/get-revisions-by-branch-id.handler.js +65 -0
- package/dist/src/branch/quieries/handlers/get-revisions-by-branch-id.handler.js.map +1 -0
- package/dist/src/branch/quieries/handlers/get-start-revision.handler.d.ts +9 -0
- package/dist/src/branch/quieries/handlers/get-start-revision.handler.js +31 -0
- package/dist/src/branch/quieries/handlers/get-start-revision.handler.js.map +1 -0
- package/dist/src/branch/quieries/handlers/get-touched-by-branch-id.handler.d.ts +13 -0
- package/dist/src/branch/quieries/handlers/get-touched-by-branch-id.handler.js +50 -0
- package/dist/src/branch/quieries/handlers/get-touched-by-branch-id.handler.js.map +1 -0
- package/dist/src/branch/quieries/handlers/index.d.ts +11 -0
- package/dist/src/branch/quieries/handlers/index.js +26 -0
- package/dist/src/branch/quieries/handlers/index.js.map +1 -0
- package/dist/src/branch/quieries/handlers/resolve-parent-branch-by-branch.handler.d.ts +16 -0
- package/dist/src/branch/quieries/handlers/resolve-parent-branch-by-branch.handler.js +53 -0
- package/dist/src/branch/quieries/handlers/resolve-parent-branch-by-branch.handler.js.map +1 -0
- package/dist/src/branch/quieries/impl/get-branch-by-id.query.d.ts +4 -0
- package/dist/src/branch/quieries/impl/get-branch-by-id.query.js +10 -0
- package/dist/src/branch/quieries/impl/get-branch-by-id.query.js.map +1 -0
- package/dist/src/branch/quieries/impl/get-branch.query.d.ts +12 -0
- package/dist/src/branch/quieries/impl/get-branch.query.js +10 -0
- package/dist/src/branch/quieries/impl/get-branch.query.js.map +1 -0
- package/dist/src/branch/quieries/impl/get-branches.query.d.ts +14 -0
- package/dist/src/branch/quieries/impl/get-branches.query.js +10 -0
- package/dist/src/branch/quieries/impl/get-branches.query.js.map +1 -0
- package/dist/src/branch/quieries/impl/get-draft-revision.query.d.ts +4 -0
- package/dist/src/branch/quieries/impl/get-draft-revision.query.js +10 -0
- package/dist/src/branch/quieries/impl/get-draft-revision.query.js.map +1 -0
- package/dist/src/branch/quieries/impl/get-head-revision.query.d.ts +4 -0
- package/dist/src/branch/quieries/impl/get-head-revision.query.js +10 -0
- package/dist/src/branch/quieries/impl/get-head-revision.query.js.map +1 -0
- package/dist/src/branch/quieries/impl/get-project-by-branch.query.d.ts +4 -0
- package/dist/src/branch/quieries/impl/get-project-by-branch.query.js +10 -0
- package/dist/src/branch/quieries/impl/get-project-by-branch.query.js.map +1 -0
- package/dist/src/branch/quieries/impl/get-revisions-by-branch-id.query.d.ts +16 -0
- package/dist/src/branch/quieries/impl/get-revisions-by-branch-id.query.js +10 -0
- package/dist/src/branch/quieries/impl/get-revisions-by-branch-id.query.js.map +1 -0
- package/dist/src/branch/quieries/impl/get-start-revision.query.d.ts +4 -0
- package/dist/src/branch/quieries/impl/get-start-revision.query.js +10 -0
- package/dist/src/branch/quieries/impl/get-start-revision.query.js.map +1 -0
- package/dist/src/branch/quieries/impl/get-touched-by-branch-id.query.d.ts +4 -0
- package/dist/src/branch/quieries/impl/get-touched-by-branch-id.query.js +10 -0
- package/dist/src/branch/quieries/impl/get-touched-by-branch-id.query.js.map +1 -0
- package/dist/src/branch/quieries/impl/index.d.ts +10 -0
- package/dist/src/branch/quieries/impl/index.js +27 -0
- package/dist/src/branch/quieries/impl/index.js.map +1 -0
- package/dist/src/branch/quieries/impl/resolve-parent-branch-by-branch.query.d.ts +8 -0
- package/dist/src/branch/quieries/impl/resolve-parent-branch-by-branch.query.js +10 -0
- package/dist/src/branch/quieries/impl/resolve-parent-branch-by-branch.query.js.map +1 -0
- package/dist/src/branch/quieries/types/get-branch-by-id.types.d.ts +2 -0
- package/dist/src/branch/quieries/types/get-branch-by-id.types.js +3 -0
- package/dist/src/branch/quieries/types/get-branch-by-id.types.js.map +1 -0
- package/dist/src/branch/quieries/types/get-branch.types.d.ts +2 -0
- package/dist/src/branch/quieries/types/get-branch.types.js +3 -0
- package/dist/src/branch/quieries/types/get-branch.types.js.map +1 -0
- package/dist/src/branch/quieries/types/get-draft-revision.types.d.ts +2 -0
- package/dist/src/branch/quieries/types/get-draft-revision.types.js +3 -0
- package/dist/src/branch/quieries/types/get-draft-revision.types.js.map +1 -0
- package/dist/src/branch/quieries/types/get-head-revision.types.d.ts +2 -0
- package/dist/src/branch/quieries/types/get-head-revision.types.js +3 -0
- package/dist/src/branch/quieries/types/get-head-revision.types.js.map +1 -0
- package/dist/src/branch/quieries/types/get-start-revision.types.d.ts +2 -0
- package/dist/src/branch/quieries/types/get-start-revision.types.js +3 -0
- package/dist/src/branch/quieries/types/get-start-revision.types.js.map +1 -0
- package/dist/src/branch/quieries/types/index.d.ts +4 -0
- package/dist/src/branch/quieries/types/index.js +3 -0
- package/dist/src/branch/quieries/types/index.js.map +1 -0
- package/dist/src/clean/clean.module.d.ts +2 -0
- package/dist/src/clean/clean.module.js +24 -0
- package/dist/src/clean/clean.module.js.map +1 -0
- package/dist/src/clean/clean.service.d.ts +7 -0
- package/dist/src/clean/clean.service.js +46 -0
- package/dist/src/clean/clean.service.js.map +1 -0
- package/dist/src/clean/commands/handlers/clean-rows.handler.d.ts +8 -0
- package/dist/src/clean/commands/handlers/clean-rows.handler.js +35 -0
- package/dist/src/clean/commands/handlers/clean-rows.handler.js.map +1 -0
- package/dist/src/clean/commands/handlers/clean-tables.handler.d.ts +8 -0
- package/dist/src/clean/commands/handlers/clean-tables.handler.js +35 -0
- package/dist/src/clean/commands/handlers/clean-tables.handler.js.map +1 -0
- package/dist/src/clean/commands/handlers/index.d.ts +3 -0
- package/dist/src/clean/commands/handlers/index.js +7 -0
- package/dist/src/clean/commands/handlers/index.js.map +1 -0
- package/dist/src/clean/commands/impl/clean-rows.command.d.ts +2 -0
- package/dist/src/clean/commands/impl/clean-rows.command.js +7 -0
- package/dist/src/clean/commands/impl/clean-rows.command.js.map +1 -0
- package/dist/src/clean/commands/impl/clean-tables.command.d.ts +2 -0
- package/dist/src/clean/commands/impl/clean-tables.command.js +7 -0
- package/dist/src/clean/commands/impl/clean-tables.command.js.map +1 -0
- package/dist/src/configuration/configuration.module.d.ts +2 -0
- package/dist/src/configuration/configuration.module.js +24 -0
- package/dist/src/configuration/configuration.module.js.map +1 -0
- package/dist/src/configuration/queries/handlers/get-configuration.handler.d.ts +13 -0
- package/dist/src/configuration/queries/handlers/get-configuration.handler.js +48 -0
- package/dist/src/configuration/queries/handlers/get-configuration.handler.js.map +1 -0
- package/dist/src/configuration/queries/handlers/index.d.ts +1 -0
- package/dist/src/configuration/queries/handlers/index.js +18 -0
- package/dist/src/configuration/queries/handlers/index.js.map +1 -0
- package/dist/src/configuration/queries/impl/get-configuration.query.d.ts +14 -0
- package/dist/src/configuration/queries/impl/get-configuration.query.js +8 -0
- package/dist/src/configuration/queries/impl/get-configuration.query.js.map +1 -0
- package/dist/src/configuration/queries/impl/index.d.ts +1 -0
- package/dist/src/configuration/queries/impl/index.js +18 -0
- package/dist/src/configuration/queries/impl/index.js.map +1 -0
- package/dist/src/configuration/queries/index.d.ts +2 -0
- package/dist/src/configuration/queries/index.js +6 -0
- package/dist/src/configuration/queries/index.js.map +1 -0
- package/dist/src/core/core.module.d.ts +2 -0
- package/dist/src/core/core.module.js +67 -0
- package/dist/src/core/core.module.js.map +1 -0
- package/dist/src/database/database.module.d.ts +2 -0
- package/dist/src/database/database.module.js +24 -0
- package/dist/src/database/database.module.js.map +1 -0
- package/dist/src/database/id.service.d.ts +3 -0
- package/dist/src/database/id.service.js +21 -0
- package/dist/src/database/id.service.js.map +1 -0
- package/dist/src/database/prisma.service.d.ts +5 -0
- package/dist/src/database/prisma.service.js +21 -0
- package/dist/src/database/prisma.service.js.map +1 -0
- package/dist/src/database/transaction-prisma.service.d.ts +14 -0
- package/dist/src/database/transaction-prisma.service.js +39 -0
- package/dist/src/database/transaction-prisma.service.js.map +1 -0
- package/dist/src/draft/commands/handlers/api-create-revision.handler.d.ts +13 -0
- package/dist/src/draft/commands/handlers/api-create-revision.handler.js +45 -0
- package/dist/src/draft/commands/handlers/api-create-revision.handler.js.map +1 -0
- package/dist/src/draft/commands/handlers/api-create-row.handler.d.ts +13 -0
- package/dist/src/draft/commands/handlers/api-create-row.handler.js +59 -0
- package/dist/src/draft/commands/handlers/api-create-row.handler.js.map +1 -0
- package/dist/src/draft/commands/handlers/api-create-table.handler.d.ts +13 -0
- package/dist/src/draft/commands/handlers/api-create-table.handler.js +45 -0
- package/dist/src/draft/commands/handlers/api-create-table.handler.js.map +1 -0
- package/dist/src/draft/commands/handlers/api-remove-row.handler.d.ts +13 -0
- package/dist/src/draft/commands/handlers/api-remove-row.handler.js +59 -0
- package/dist/src/draft/commands/handlers/api-remove-row.handler.js.map +1 -0
- package/dist/src/draft/commands/handlers/api-remove-table.handler.d.ts +13 -0
- package/dist/src/draft/commands/handlers/api-remove-table.handler.js +43 -0
- package/dist/src/draft/commands/handlers/api-remove-table.handler.js.map +1 -0
- package/dist/src/draft/commands/handlers/api-revert-changes.handler.d.ts +12 -0
- package/dist/src/draft/commands/handlers/api-revert-changes.handler.js +40 -0
- package/dist/src/draft/commands/handlers/api-revert-changes.handler.js.map +1 -0
- package/dist/src/draft/commands/handlers/api-update-row.handler.d.ts +13 -0
- package/dist/src/draft/commands/handlers/api-update-row.handler.js +57 -0
- package/dist/src/draft/commands/handlers/api-update-row.handler.js.map +1 -0
- package/dist/src/draft/commands/handlers/api-update-table.handler.d.ts +13 -0
- package/dist/src/draft/commands/handlers/api-update-table.handler.js +45 -0
- package/dist/src/draft/commands/handlers/api-update-table.handler.js.map +1 -0
- package/dist/src/draft/commands/handlers/create-revision.handler.d.ts +24 -0
- package/dist/src/draft/commands/handlers/create-revision.handler.js +140 -0
- package/dist/src/draft/commands/handlers/create-revision.handler.js.map +1 -0
- package/dist/src/draft/commands/handlers/create-row.handler.d.ts +29 -0
- package/dist/src/draft/commands/handlers/create-row.handler.js +132 -0
- package/dist/src/draft/commands/handlers/create-row.handler.js.map +1 -0
- package/dist/src/draft/commands/handlers/create-table.handler.d.ts +30 -0
- package/dist/src/draft/commands/handlers/create-table.handler.js +123 -0
- package/dist/src/draft/commands/handlers/create-table.handler.js.map +1 -0
- package/dist/src/draft/commands/handlers/index.d.ts +25 -0
- package/dist/src/draft/commands/handlers/index.js +54 -0
- package/dist/src/draft/commands/handlers/index.js.map +1 -0
- package/dist/src/draft/commands/handlers/remove-row.handler.d.ts +33 -0
- package/dist/src/draft/commands/handlers/remove-row.handler.js +232 -0
- package/dist/src/draft/commands/handlers/remove-row.handler.js.map +1 -0
- package/dist/src/draft/commands/handlers/remove-table.handler.d.ts +33 -0
- package/dist/src/draft/commands/handlers/remove-table.handler.js +178 -0
- package/dist/src/draft/commands/handlers/remove-table.handler.js.map +1 -0
- package/dist/src/draft/commands/handlers/revert-changes.handler.d.ts +17 -0
- package/dist/src/draft/commands/handlers/revert-changes.handler.js +96 -0
- package/dist/src/draft/commands/handlers/revert-changes.handler.js.map +1 -0
- package/dist/src/draft/commands/handlers/transactional/get-or-create-draft-row.handler.d.ts +26 -0
- package/dist/src/draft/commands/handlers/transactional/get-or-create-draft-row.handler.js +115 -0
- package/dist/src/draft/commands/handlers/transactional/get-or-create-draft-row.handler.js.map +1 -0
- package/dist/src/draft/commands/handlers/transactional/get-or-create-draft-rows.handler.d.ts +26 -0
- package/dist/src/draft/commands/handlers/transactional/get-or-create-draft-rows.handler.js +145 -0
- package/dist/src/draft/commands/handlers/transactional/get-or-create-draft-rows.handler.js.map +1 -0
- package/dist/src/draft/commands/handlers/transactional/get-or-create-draft-table.handler.d.ts +24 -0
- package/dist/src/draft/commands/handlers/transactional/get-or-create-draft-table.handler.js +113 -0
- package/dist/src/draft/commands/handlers/transactional/get-or-create-draft-table.handler.js.map +1 -0
- package/dist/src/draft/commands/handlers/transactional/resolve-draft-revision.handler.d.ts +13 -0
- package/dist/src/draft/commands/handlers/transactional/resolve-draft-revision.handler.js +62 -0
- package/dist/src/draft/commands/handlers/transactional/resolve-draft-revision.handler.js.map +1 -0
- package/dist/src/draft/commands/handlers/transactional/validate-data.handler.d.ts +14 -0
- package/dist/src/draft/commands/handlers/transactional/validate-data.handler.js +67 -0
- package/dist/src/draft/commands/handlers/transactional/validate-data.handler.js.map +1 -0
- package/dist/src/draft/commands/handlers/transactional/validate-not-system-table.handler.d.ts +10 -0
- package/dist/src/draft/commands/handlers/transactional/validate-not-system-table.handler.js +35 -0
- package/dist/src/draft/commands/handlers/transactional/validate-not-system-table.handler.js.map +1 -0
- package/dist/src/draft/commands/handlers/transactional/validate-schema.handler.d.ts +14 -0
- package/dist/src/draft/commands/handlers/transactional/validate-schema.handler.js +51 -0
- package/dist/src/draft/commands/handlers/transactional/validate-schema.handler.js.map +1 -0
- package/dist/src/draft/commands/handlers/update-row.handler.d.ts +18 -0
- package/dist/src/draft/commands/handlers/update-row.handler.js +75 -0
- package/dist/src/draft/commands/handlers/update-row.handler.js.map +1 -0
- package/dist/src/draft/commands/handlers/update-rows.handler.d.ts +17 -0
- package/dist/src/draft/commands/handlers/update-rows.handler.js +74 -0
- package/dist/src/draft/commands/handlers/update-rows.handler.js.map +1 -0
- package/dist/src/draft/commands/handlers/update-table.handler.d.ts +29 -0
- package/dist/src/draft/commands/handlers/update-table.handler.js +166 -0
- package/dist/src/draft/commands/handlers/update-table.handler.js.map +1 -0
- package/dist/src/draft/commands/impl/api-create-revision.command.d.ts +14 -0
- package/dist/src/draft/commands/impl/api-create-revision.command.js +10 -0
- package/dist/src/draft/commands/impl/api-create-revision.command.js.map +1 -0
- package/dist/src/draft/commands/impl/api-create-row.command.d.ts +17 -0
- package/dist/src/draft/commands/impl/api-create-row.command.js +10 -0
- package/dist/src/draft/commands/impl/api-create-row.command.js.map +1 -0
- package/dist/src/draft/commands/impl/api-create-table.command.d.ts +13 -0
- package/dist/src/draft/commands/impl/api-create-table.command.js +10 -0
- package/dist/src/draft/commands/impl/api-create-table.command.js.map +1 -0
- package/dist/src/draft/commands/impl/api-remove-row.command.d.ts +14 -0
- package/dist/src/draft/commands/impl/api-remove-row.command.js +10 -0
- package/dist/src/draft/commands/impl/api-remove-row.command.js.map +1 -0
- package/dist/src/draft/commands/impl/api-remove-table.command.d.ts +10 -0
- package/dist/src/draft/commands/impl/api-remove-table.command.js +10 -0
- package/dist/src/draft/commands/impl/api-remove-table.command.js.map +1 -0
- package/dist/src/draft/commands/impl/api-revert-changes.command.d.ts +12 -0
- package/dist/src/draft/commands/impl/api-revert-changes.command.js +10 -0
- package/dist/src/draft/commands/impl/api-revert-changes.command.js.map +1 -0
- package/dist/src/draft/commands/impl/api-update-row.command.d.ts +17 -0
- package/dist/src/draft/commands/impl/api-update-row.command.js +10 -0
- package/dist/src/draft/commands/impl/api-update-row.command.js.map +1 -0
- package/dist/src/draft/commands/impl/api-update-table.command.d.ts +13 -0
- package/dist/src/draft/commands/impl/api-update-table.command.js +10 -0
- package/dist/src/draft/commands/impl/api-update-table.command.js.map +1 -0
- package/dist/src/draft/commands/impl/create-revision.command.d.ts +14 -0
- package/dist/src/draft/commands/impl/create-revision.command.js +10 -0
- package/dist/src/draft/commands/impl/create-revision.command.js.map +1 -0
- package/dist/src/draft/commands/impl/create-row.command.d.ts +17 -0
- package/dist/src/draft/commands/impl/create-row.command.js +10 -0
- package/dist/src/draft/commands/impl/create-row.command.js.map +1 -0
- package/dist/src/draft/commands/impl/create-table.command.d.ts +13 -0
- package/dist/src/draft/commands/impl/create-table.command.js +10 -0
- package/dist/src/draft/commands/impl/create-table.command.js.map +1 -0
- package/dist/src/draft/commands/impl/remove-row.command.d.ts +14 -0
- package/dist/src/draft/commands/impl/remove-row.command.js +10 -0
- package/dist/src/draft/commands/impl/remove-row.command.js.map +1 -0
- package/dist/src/draft/commands/impl/remove-table.command.d.ts +10 -0
- package/dist/src/draft/commands/impl/remove-table.command.js +10 -0
- package/dist/src/draft/commands/impl/remove-table.command.js.map +1 -0
- package/dist/src/draft/commands/impl/revert-changes.command.d.ts +12 -0
- package/dist/src/draft/commands/impl/revert-changes.command.js +10 -0
- package/dist/src/draft/commands/impl/revert-changes.command.js.map +1 -0
- package/dist/src/draft/commands/impl/transactional/get-or-create-draft-row.command.d.ts +4 -0
- package/dist/src/draft/commands/impl/transactional/get-or-create-draft-row.command.js +10 -0
- package/dist/src/draft/commands/impl/transactional/get-or-create-draft-row.command.js.map +1 -0
- package/dist/src/draft/commands/impl/transactional/get-or-create-draft-rows.command.d.ts +4 -0
- package/dist/src/draft/commands/impl/transactional/get-or-create-draft-rows.command.js +10 -0
- package/dist/src/draft/commands/impl/transactional/get-or-create-draft-rows.command.js.map +1 -0
- package/dist/src/draft/commands/impl/transactional/get-or-create-draft-table.command.d.ts +4 -0
- package/dist/src/draft/commands/impl/transactional/get-or-create-draft-table.command.js +10 -0
- package/dist/src/draft/commands/impl/transactional/get-or-create-draft-table.command.js.map +1 -0
- package/dist/src/draft/commands/impl/transactional/resolve-draft-revision.command.d.ts +4 -0
- package/dist/src/draft/commands/impl/transactional/resolve-draft-revision.command.js +10 -0
- package/dist/src/draft/commands/impl/transactional/resolve-draft-revision.command.js.map +1 -0
- package/dist/src/draft/commands/impl/transactional/validate-data.command.d.ts +24 -0
- package/dist/src/draft/commands/impl/transactional/validate-data.command.js +10 -0
- package/dist/src/draft/commands/impl/transactional/validate-data.command.js.map +1 -0
- package/dist/src/draft/commands/impl/transactional/validate-not-system-table.command.d.ts +4 -0
- package/dist/src/draft/commands/impl/transactional/validate-not-system-table.command.js +10 -0
- package/dist/src/draft/commands/impl/transactional/validate-not-system-table.command.js.map +1 -0
- package/dist/src/draft/commands/impl/transactional/validate-schema.command.d.ts +5 -0
- package/dist/src/draft/commands/impl/transactional/validate-schema.command.js +10 -0
- package/dist/src/draft/commands/impl/transactional/validate-schema.command.js.map +1 -0
- package/dist/src/draft/commands/impl/update-row.command.d.ts +17 -0
- package/dist/src/draft/commands/impl/update-row.command.js +10 -0
- package/dist/src/draft/commands/impl/update-row.command.js.map +1 -0
- package/dist/src/draft/commands/impl/update-rows.command.d.ts +22 -0
- package/dist/src/draft/commands/impl/update-rows.command.js +10 -0
- package/dist/src/draft/commands/impl/update-rows.command.js.map +1 -0
- package/dist/src/draft/commands/impl/update-table.command.d.ts +13 -0
- package/dist/src/draft/commands/impl/update-table.command.js +10 -0
- package/dist/src/draft/commands/impl/update-table.command.js.map +1 -0
- package/dist/src/draft/commands/types/api-create-row.handler.types.d.ts +7 -0
- package/dist/src/draft/commands/types/api-create-row.handler.types.js +3 -0
- package/dist/src/draft/commands/types/api-create-row.handler.types.js.map +1 -0
- package/dist/src/draft/commands/types/api-create-table.handler.types.d.ts +5 -0
- package/dist/src/draft/commands/types/api-create-table.handler.types.js +3 -0
- package/dist/src/draft/commands/types/api-create-table.handler.types.js.map +1 -0
- package/dist/src/draft/commands/types/api-remove-row.handler.types.d.ts +7 -0
- package/dist/src/draft/commands/types/api-remove-row.handler.types.js +3 -0
- package/dist/src/draft/commands/types/api-remove-row.handler.types.js.map +1 -0
- package/dist/src/draft/commands/types/api-remove-table.handler.types.d.ts +4 -0
- package/dist/src/draft/commands/types/api-remove-table.handler.types.js +3 -0
- package/dist/src/draft/commands/types/api-remove-table.handler.types.js.map +1 -0
- package/dist/src/draft/commands/types/api-update-row.handler.types.d.ts +8 -0
- package/dist/src/draft/commands/types/api-update-row.handler.types.js +3 -0
- package/dist/src/draft/commands/types/api-update-row.handler.types.js.map +1 -0
- package/dist/src/draft/commands/types/api-update-table.handler.types.d.ts +5 -0
- package/dist/src/draft/commands/types/api-update-table.handler.types.js +3 -0
- package/dist/src/draft/commands/types/api-update-table.handler.types.js.map +1 -0
- package/dist/src/draft/commands/types/create-revision.handler.types.d.ts +5 -0
- package/dist/src/draft/commands/types/create-revision.handler.types.js +3 -0
- package/dist/src/draft/commands/types/create-revision.handler.types.js.map +1 -0
- package/dist/src/draft/commands/types/create-row.handler.types.d.ts +5 -0
- package/dist/src/draft/commands/types/create-row.handler.types.js +3 -0
- package/dist/src/draft/commands/types/create-row.handler.types.js.map +1 -0
- package/dist/src/draft/commands/types/create-table.handler.types.d.ts +5 -0
- package/dist/src/draft/commands/types/create-table.handler.types.js +3 -0
- package/dist/src/draft/commands/types/create-table.handler.types.js.map +1 -0
- package/dist/src/draft/commands/types/remove-row.handler.types.d.ts +5 -0
- package/dist/src/draft/commands/types/remove-row.handler.types.js +3 -0
- package/dist/src/draft/commands/types/remove-row.handler.types.js.map +1 -0
- package/dist/src/draft/commands/types/remove-table.handler.types.d.ts +4 -0
- package/dist/src/draft/commands/types/remove-table.handler.types.js +3 -0
- package/dist/src/draft/commands/types/remove-table.handler.types.js.map +1 -0
- package/dist/src/draft/commands/types/revert-changes.handler.types.d.ts +4 -0
- package/dist/src/draft/commands/types/revert-changes.handler.types.js +3 -0
- package/dist/src/draft/commands/types/revert-changes.handler.types.js.map +1 -0
- package/dist/src/draft/commands/types/update-row.handler.types.d.ts +6 -0
- package/dist/src/draft/commands/types/update-row.handler.types.js +3 -0
- package/dist/src/draft/commands/types/update-row.handler.types.js.map +1 -0
- package/dist/src/draft/commands/types/update-table.handler.types.d.ts +4 -0
- package/dist/src/draft/commands/types/update-table.handler.types.js +3 -0
- package/dist/src/draft/commands/types/update-table.handler.types.js.map +1 -0
- package/dist/src/draft/draft-context.service.d.ts +25 -0
- package/dist/src/draft/draft-context.service.js +75 -0
- package/dist/src/draft/draft-context.service.js.map +1 -0
- package/dist/src/draft/draft-request-dto/draft-revision-request.dto.d.ts +14 -0
- package/dist/src/draft/draft-request-dto/draft-revision-request.dto.js +52 -0
- package/dist/src/draft/draft-request-dto/draft-revision-request.dto.js.map +1 -0
- package/dist/src/draft/draft-request-dto/index.d.ts +5 -0
- package/dist/src/draft/draft-request-dto/index.js +14 -0
- package/dist/src/draft/draft-request-dto/index.js.map +1 -0
- package/dist/src/draft/draft-request-dto/row-request.dto.d.ts +11 -0
- package/dist/src/draft/draft-request-dto/row-request.dto.js +43 -0
- package/dist/src/draft/draft-request-dto/row-request.dto.js.map +1 -0
- package/dist/src/draft/draft-request-dto/rows-request.dto.d.ts +13 -0
- package/dist/src/draft/draft-request-dto/rows-request.dto.js +31 -0
- package/dist/src/draft/draft-request-dto/rows-request.dto.js.map +1 -0
- package/dist/src/draft/draft-request-dto/table-request.dto.d.ts +11 -0
- package/dist/src/draft/draft-request-dto/table-request.dto.js +43 -0
- package/dist/src/draft/draft-request-dto/table-request.dto.js.map +1 -0
- package/dist/src/draft/draft.handler.d.ts +13 -0
- package/dist/src/draft/draft.handler.js +23 -0
- package/dist/src/draft/draft.handler.js.map +1 -0
- package/dist/src/draft/draft.module.d.ts +2 -0
- package/dist/src/draft/draft.module.js +44 -0
- package/dist/src/draft/draft.module.js.map +1 -0
- package/dist/src/draft/draft.transactional.commands.d.ts +23 -0
- package/dist/src/draft/draft.transactional.commands.js +53 -0
- package/dist/src/draft/draft.transactional.commands.js.map +1 -0
- package/dist/src/draft/json-schema-validator.service.d.ts +24 -0
- package/dist/src/draft/json-schema-validator.service.js +76 -0
- package/dist/src/draft/json-schema-validator.service.js.map +1 -0
- package/dist/src/draft/session-changelog.service.d.ts +27 -0
- package/dist/src/draft/session-changelog.service.js +124 -0
- package/dist/src/draft/session-changelog.service.js.map +1 -0
- package/dist/src/email/email.module.d.ts +2 -0
- package/dist/src/email/email.module.js +25 -0
- package/dist/src/email/email.module.js.map +1 -0
- package/dist/src/email/email.service.d.ts +14 -0
- package/dist/src/email/email.service.js +55 -0
- package/dist/src/email/email.service.js.map +1 -0
- package/dist/src/email/templates/registration.hbs +286 -0
- package/dist/src/email/templates.service.d.ts +8 -0
- package/dist/src/email/templates.service.js +53 -0
- package/dist/src/email/templates.service.js.map +1 -0
- package/dist/src/email/transporter.service.d.ts +16 -0
- package/dist/src/email/transporter.service.js +49 -0
- package/dist/src/email/transporter.service.js.map +1 -0
- package/dist/src/endpoint/commands/handlers/api-create-endpoint.handler.d.ts +8 -0
- package/dist/src/endpoint/commands/handlers/api-create-endpoint.handler.js +32 -0
- package/dist/src/endpoint/commands/handlers/api-create-endpoint.handler.js.map +1 -0
- package/dist/src/endpoint/commands/handlers/create-endpoint.handler.d.ts +13 -0
- package/dist/src/endpoint/commands/handlers/create-endpoint.handler.js +61 -0
- package/dist/src/endpoint/commands/handlers/create-endpoint.handler.js.map +1 -0
- package/dist/src/endpoint/commands/handlers/delete-endpoint.handler.d.ts +12 -0
- package/dist/src/endpoint/commands/handlers/delete-endpoint.handler.js +50 -0
- package/dist/src/endpoint/commands/handlers/delete-endpoint.handler.js.map +1 -0
- package/dist/src/endpoint/commands/handlers/index.d.ts +4 -0
- package/dist/src/endpoint/commands/handlers/index.js +12 -0
- package/dist/src/endpoint/commands/handlers/index.js.map +1 -0
- package/dist/src/endpoint/commands/impl/api-create-endpoint.command.d.ts +11 -0
- package/dist/src/endpoint/commands/impl/api-create-endpoint.command.js +10 -0
- package/dist/src/endpoint/commands/impl/api-create-endpoint.command.js.map +1 -0
- package/dist/src/endpoint/commands/impl/create-endpoint.command.d.ts +11 -0
- package/dist/src/endpoint/commands/impl/create-endpoint.command.js +10 -0
- package/dist/src/endpoint/commands/impl/create-endpoint.command.js.map +1 -0
- package/dist/src/endpoint/commands/impl/delete-endpoint.command.d.ts +8 -0
- package/dist/src/endpoint/commands/impl/delete-endpoint.command.js +10 -0
- package/dist/src/endpoint/commands/impl/delete-endpoint.command.js.map +1 -0
- package/dist/src/endpoint/commands/impl/index.d.ts +3 -0
- package/dist/src/endpoint/commands/impl/index.js +20 -0
- package/dist/src/endpoint/commands/impl/index.js.map +1 -0
- package/dist/src/endpoint/endpoint.module.d.ts +2 -0
- package/dist/src/endpoint/endpoint.module.js +25 -0
- package/dist/src/endpoint/endpoint.module.js.map +1 -0
- package/dist/src/endpoint/queries/handlers/get-created-endpoint.handler.d.ts +14 -0
- package/dist/src/endpoint/queries/handlers/get-created-endpoint.handler.js +29 -0
- package/dist/src/endpoint/queries/handlers/get-created-endpoint.handler.js.map +1 -0
- package/dist/src/endpoint/queries/handlers/get-revision-by-endpoint-id.handler.d.ts +19 -0
- package/dist/src/endpoint/queries/handlers/get-revision-by-endpoint-id.handler.js +33 -0
- package/dist/src/endpoint/queries/handlers/get-revision-by-endpoint-id.handler.js.map +1 -0
- package/dist/src/endpoint/queries/handlers/index.d.ts +3 -0
- package/dist/src/endpoint/queries/handlers/index.js +10 -0
- package/dist/src/endpoint/queries/handlers/index.js.map +1 -0
- package/dist/src/endpoint/queries/impl/get-created-endpoint.query.d.ts +8 -0
- package/dist/src/endpoint/queries/impl/get-created-endpoint.query.js +10 -0
- package/dist/src/endpoint/queries/impl/get-created-endpoint.query.js.map +1 -0
- package/dist/src/endpoint/queries/impl/get-revision-by-endpoint-id.query.d.ts +4 -0
- package/dist/src/endpoint/queries/impl/get-revision-by-endpoint-id.query.js +10 -0
- package/dist/src/endpoint/queries/impl/get-revision-by-endpoint-id.query.js.map +1 -0
- package/dist/src/endpoint/queries/impl/index.d.ts +2 -0
- package/dist/src/endpoint/queries/impl/index.js +19 -0
- package/dist/src/endpoint/queries/impl/index.js.map +1 -0
- package/dist/src/graphql-api/auth/auth.resolver.d.ts +13 -0
- package/dist/src/graphql-api/auth/auth.resolver.js +103 -0
- package/dist/src/graphql-api/auth/auth.resolver.js.map +1 -0
- package/dist/src/graphql-api/auth/inputs/confirm-email-code.input.d.ts +3 -0
- package/dist/src/graphql-api/auth/inputs/confirm-email-code.input.js +24 -0
- package/dist/src/graphql-api/auth/inputs/confirm-email-code.input.js.map +1 -0
- package/dist/src/graphql-api/auth/inputs/create-user.input.d.ts +7 -0
- package/dist/src/graphql-api/auth/inputs/create-user.input.js +37 -0
- package/dist/src/graphql-api/auth/inputs/create-user.input.js.map +1 -0
- package/dist/src/graphql-api/auth/inputs/index.d.ts +6 -0
- package/dist/src/graphql-api/auth/inputs/index.js +23 -0
- package/dist/src/graphql-api/auth/inputs/index.js.map +1 -0
- package/dist/src/graphql-api/auth/inputs/login-github.input.d.ts +3 -0
- package/dist/src/graphql-api/auth/inputs/login-github.input.js +24 -0
- package/dist/src/graphql-api/auth/inputs/login-github.input.js.map +1 -0
- package/dist/src/graphql-api/auth/inputs/login-google.input.d.ts +4 -0
- package/dist/src/graphql-api/auth/inputs/login-google.input.js +28 -0
- package/dist/src/graphql-api/auth/inputs/login-google.input.js.map +1 -0
- package/dist/src/graphql-api/auth/inputs/login.input.d.ts +4 -0
- package/dist/src/graphql-api/auth/inputs/login.input.js +28 -0
- package/dist/src/graphql-api/auth/inputs/login.input.js.map +1 -0
- package/dist/src/graphql-api/auth/inputs/sign-up.input.d.ts +5 -0
- package/dist/src/graphql-api/auth/inputs/sign-up.input.js +32 -0
- package/dist/src/graphql-api/auth/inputs/sign-up.input.js.map +1 -0
- package/dist/src/graphql-api/auth/model/index.d.ts +1 -0
- package/dist/src/graphql-api/auth/model/index.js +18 -0
- package/dist/src/graphql-api/auth/model/index.js.map +1 -0
- package/dist/src/graphql-api/auth/model/login.model.d.ts +3 -0
- package/dist/src/graphql-api/auth/model/login.model.js +24 -0
- package/dist/src/graphql-api/auth/model/login.model.js.map +1 -0
- package/dist/src/graphql-api/branch/branch.resolver.d.ts +23 -0
- package/dist/src/graphql-api/branch/branch.resolver.js +176 -0
- package/dist/src/graphql-api/branch/branch.resolver.js.map +1 -0
- package/dist/src/graphql-api/branch/inputs/create-branch-by-revision-id.input.d.ts +5 -0
- package/dist/src/graphql-api/branch/inputs/create-branch-by-revision-id.input.js +30 -0
- package/dist/src/graphql-api/branch/inputs/create-branch-by-revision-id.input.js.map +1 -0
- package/dist/src/graphql-api/branch/inputs/create-branch.input.d.ts +4 -0
- package/dist/src/graphql-api/branch/inputs/create-branch.input.js +26 -0
- package/dist/src/graphql-api/branch/inputs/create-branch.input.js.map +1 -0
- package/dist/src/graphql-api/branch/inputs/get-branch-revisions.input.d.ts +6 -0
- package/dist/src/graphql-api/branch/inputs/get-branch-revisions.input.js +36 -0
- package/dist/src/graphql-api/branch/inputs/get-branch-revisions.input.js.map +1 -0
- package/dist/src/graphql-api/branch/inputs/get-branch.input.d.ts +5 -0
- package/dist/src/graphql-api/branch/inputs/get-branch.input.js +32 -0
- package/dist/src/graphql-api/branch/inputs/get-branch.input.js.map +1 -0
- package/dist/src/graphql-api/branch/inputs/get-branches.input.d.ts +6 -0
- package/dist/src/graphql-api/branch/inputs/get-branches.input.js +36 -0
- package/dist/src/graphql-api/branch/inputs/get-branches.input.js.map +1 -0
- package/dist/src/graphql-api/branch/inputs/index.d.ts +5 -0
- package/dist/src/graphql-api/branch/inputs/index.js +22 -0
- package/dist/src/graphql-api/branch/inputs/index.js.map +1 -0
- package/dist/src/graphql-api/branch/inputs/revert-changes.input.d.ts +5 -0
- package/dist/src/graphql-api/branch/inputs/revert-changes.input.js +32 -0
- package/dist/src/graphql-api/branch/inputs/revert-changes.input.js.map +1 -0
- package/dist/src/graphql-api/branch/model/branch.model.d.ts +21 -0
- package/dist/src/graphql-api/branch/model/branch.model.js +78 -0
- package/dist/src/graphql-api/branch/model/branch.model.js.map +1 -0
- package/dist/src/graphql-api/branch/model/parent-branch.model.d.ts +6 -0
- package/dist/src/graphql-api/branch/model/parent-branch.model.js +30 -0
- package/dist/src/graphql-api/branch/model/parent-branch.model.js.map +1 -0
- package/dist/src/graphql-api/branch/parent-branch.resolver.d.ts +8 -0
- package/dist/src/graphql-api/branch/parent-branch.resolver.js +51 -0
- package/dist/src/graphql-api/branch/parent-branch.resolver.js.map +1 -0
- package/dist/src/graphql-api/configuration/configuration.resolver.d.ts +7 -0
- package/dist/src/graphql-api/configuration/configuration.resolver.js +36 -0
- package/dist/src/graphql-api/configuration/configuration.resolver.js.map +1 -0
- package/dist/src/graphql-api/configuration/model/configuration.model.d.ts +13 -0
- package/dist/src/graphql-api/configuration/model/configuration.model.js +60 -0
- package/dist/src/graphql-api/configuration/model/configuration.model.js.map +1 -0
- package/dist/src/graphql-api/configuration/model/index.d.ts +1 -0
- package/dist/src/graphql-api/configuration/model/index.js +18 -0
- package/dist/src/graphql-api/configuration/model/index.js.map +1 -0
- package/dist/src/graphql-api/current-user.decorator.d.ts +1 -0
- package/dist/src/graphql-api/current-user.decorator.js +10 -0
- package/dist/src/graphql-api/current-user.decorator.js.map +1 -0
- package/dist/src/graphql-api/draft/draft.resolver.d.ts +14 -0
- package/dist/src/graphql-api/draft/draft.resolver.js +142 -0
- package/dist/src/graphql-api/draft/draft.resolver.js.map +1 -0
- package/dist/src/graphql-api/draft/input/create-row.input.d.ts +5 -0
- package/dist/src/graphql-api/draft/input/create-row.input.js +27 -0
- package/dist/src/graphql-api/draft/input/create-row.input.js.map +1 -0
- package/dist/src/graphql-api/draft/input/create-table.input.d.ts +6 -0
- package/dist/src/graphql-api/draft/input/create-table.input.js +34 -0
- package/dist/src/graphql-api/draft/input/create-table.input.js.map +1 -0
- package/dist/src/graphql-api/draft/input/index.d.ts +5 -0
- package/dist/src/graphql-api/draft/input/index.js +22 -0
- package/dist/src/graphql-api/draft/input/index.js.map +1 -0
- package/dist/src/graphql-api/draft/input/remove-row.input.d.ts +3 -0
- package/dist/src/graphql-api/draft/input/remove-row.input.js +18 -0
- package/dist/src/graphql-api/draft/input/remove-row.input.js.map +1 -0
- package/dist/src/graphql-api/draft/input/remove-table.input.d.ts +4 -0
- package/dist/src/graphql-api/draft/input/remove-table.input.js +28 -0
- package/dist/src/graphql-api/draft/input/remove-table.input.js.map +1 -0
- package/dist/src/graphql-api/draft/input/update-row.input.d.ts +5 -0
- package/dist/src/graphql-api/draft/input/update-row.input.js +27 -0
- package/dist/src/graphql-api/draft/input/update-row.input.js.map +1 -0
- package/dist/src/graphql-api/draft/input/update-table.input.d.ts +6 -0
- package/dist/src/graphql-api/draft/input/update-table.input.js +33 -0
- package/dist/src/graphql-api/draft/input/update-table.input.js.map +1 -0
- package/dist/src/graphql-api/draft/model/create-row-result.model.d.ts +7 -0
- package/dist/src/graphql-api/draft/model/create-row-result.model.js +34 -0
- package/dist/src/graphql-api/draft/model/create-row-result.model.js.map +1 -0
- package/dist/src/graphql-api/draft/model/create-table-result.model.d.ts +6 -0
- package/dist/src/graphql-api/draft/model/create-table-result.model.js +30 -0
- package/dist/src/graphql-api/draft/model/create-table-result.model.js.map +1 -0
- package/dist/src/graphql-api/draft/model/remove-row-result.model.d.ts +7 -0
- package/dist/src/graphql-api/draft/model/remove-row-result.model.js +34 -0
- package/dist/src/graphql-api/draft/model/remove-row-result.model.js.map +1 -0
- package/dist/src/graphql-api/draft/model/remove-table-result.model.d.ts +4 -0
- package/dist/src/graphql-api/draft/model/remove-table-result.model.js +25 -0
- package/dist/src/graphql-api/draft/model/remove-table-result.model.js.map +1 -0
- package/dist/src/graphql-api/draft/model/update-row-result.model.d.ts +8 -0
- package/dist/src/graphql-api/draft/model/update-row-result.model.js +38 -0
- package/dist/src/graphql-api/draft/model/update-row-result.model.js.map +1 -0
- package/dist/src/graphql-api/draft/model/update-table-result.model.d.ts +5 -0
- package/dist/src/graphql-api/draft/model/update-table-result.model.js +29 -0
- package/dist/src/graphql-api/draft/model/update-table-result.model.js.map +1 -0
- package/dist/src/graphql-api/endpoint/endpoint.resolver.d.ts +11 -0
- package/dist/src/graphql-api/endpoint/endpoint.resolver.js +83 -0
- package/dist/src/graphql-api/endpoint/endpoint.resolver.js.map +1 -0
- package/dist/src/graphql-api/endpoint/inputs/create-endpoint.input.d.ts +5 -0
- package/dist/src/graphql-api/endpoint/inputs/create-endpoint.input.js +29 -0
- package/dist/src/graphql-api/endpoint/inputs/create-endpoint.input.js.map +1 -0
- package/dist/src/graphql-api/endpoint/inputs/delete-endpoint.input.d.ts +3 -0
- package/dist/src/graphql-api/endpoint/inputs/delete-endpoint.input.js +24 -0
- package/dist/src/graphql-api/endpoint/inputs/delete-endpoint.input.js.map +1 -0
- package/dist/src/graphql-api/endpoint/inputs/get-endpoint.input.d.ts +3 -0
- package/dist/src/graphql-api/endpoint/inputs/get-endpoint.input.js +24 -0
- package/dist/src/graphql-api/endpoint/inputs/get-endpoint.input.js.map +1 -0
- package/dist/src/graphql-api/endpoint/inputs/index.d.ts +3 -0
- package/dist/src/graphql-api/endpoint/inputs/index.js +20 -0
- package/dist/src/graphql-api/endpoint/inputs/index.js.map +1 -0
- package/dist/src/graphql-api/endpoint/model/endpoint.model.d.ts +11 -0
- package/dist/src/graphql-api/endpoint/model/endpoint.model.js +42 -0
- package/dist/src/graphql-api/endpoint/model/endpoint.model.js.map +1 -0
- package/dist/src/graphql-api/endpoint/model/index.d.ts +1 -0
- package/dist/src/graphql-api/endpoint/model/index.js +18 -0
- package/dist/src/graphql-api/endpoint/model/index.js.map +1 -0
- package/dist/src/graphql-api/graphql-api.module.d.ts +2 -0
- package/dist/src/graphql-api/graphql-api.module.js +70 -0
- package/dist/src/graphql-api/graphql-api.module.js.map +1 -0
- package/dist/src/graphql-api/organization/inputs/add-user-to-organization.input.d.ts +6 -0
- package/dist/src/graphql-api/organization/inputs/add-user-to-organization.input.js +33 -0
- package/dist/src/graphql-api/organization/inputs/add-user-to-organization.input.js.map +1 -0
- package/dist/src/graphql-api/organization/inputs/get-users-organization.input.d.ts +5 -0
- package/dist/src/graphql-api/organization/inputs/get-users-organization.input.js +32 -0
- package/dist/src/graphql-api/organization/inputs/get-users-organization.input.js.map +1 -0
- package/dist/src/graphql-api/organization/inputs/index.d.ts +3 -0
- package/dist/src/graphql-api/organization/inputs/index.js +20 -0
- package/dist/src/graphql-api/organization/inputs/index.js.map +1 -0
- package/dist/src/graphql-api/organization/inputs/remove-user-from-organization.input.d.ts +4 -0
- package/dist/src/graphql-api/organization/inputs/remove-user-from-organization.input.js +28 -0
- package/dist/src/graphql-api/organization/inputs/remove-user-from-organization.input.js.map +1 -0
- package/dist/src/graphql-api/organization/model/users-organization.connection.d.ts +5 -0
- package/dist/src/graphql-api/organization/model/users-organization.connection.js +19 -0
- package/dist/src/graphql-api/organization/model/users-organization.connection.js.map +1 -0
- package/dist/src/graphql-api/organization/model/users-organization.model.d.ts +7 -0
- package/dist/src/graphql-api/organization/model/users-organization.model.js +34 -0
- package/dist/src/graphql-api/organization/model/users-organization.model.js.map +1 -0
- package/dist/src/graphql-api/organization/organization.resolver.d.ts +15 -0
- package/dist/src/graphql-api/organization/organization.resolver.js +126 -0
- package/dist/src/graphql-api/organization/organization.resolver.js.map +1 -0
- package/dist/src/graphql-api/project/inputs/add-user-to-project.input.d.ts +7 -0
- package/dist/src/graphql-api/project/inputs/add-user-to-project.input.js +37 -0
- package/dist/src/graphql-api/project/inputs/add-user-to-project.input.js.map +1 -0
- package/dist/src/graphql-api/project/inputs/create-project.input.d.ts +6 -0
- package/dist/src/graphql-api/project/inputs/create-project.input.js +36 -0
- package/dist/src/graphql-api/project/inputs/create-project.input.js.map +1 -0
- package/dist/src/graphql-api/project/inputs/delete-project.input.d.ts +4 -0
- package/dist/src/graphql-api/project/inputs/delete-project.input.js +28 -0
- package/dist/src/graphql-api/project/inputs/delete-project.input.js.map +1 -0
- package/dist/src/graphql-api/project/inputs/get-project-branches.input.d.ts +4 -0
- package/dist/src/graphql-api/project/inputs/get-project-branches.input.js +28 -0
- package/dist/src/graphql-api/project/inputs/get-project-branches.input.js.map +1 -0
- package/dist/src/graphql-api/project/inputs/get-project.input.d.ts +4 -0
- package/dist/src/graphql-api/project/inputs/get-project.input.js +28 -0
- package/dist/src/graphql-api/project/inputs/get-project.input.js.map +1 -0
- package/dist/src/graphql-api/project/inputs/get-projects.input.d.ts +5 -0
- package/dist/src/graphql-api/project/inputs/get-projects.input.js +32 -0
- package/dist/src/graphql-api/project/inputs/get-projects.input.js.map +1 -0
- package/dist/src/graphql-api/project/inputs/get-users-project.input.d.ts +6 -0
- package/dist/src/graphql-api/project/inputs/get-users-project.input.js +36 -0
- package/dist/src/graphql-api/project/inputs/get-users-project.input.js.map +1 -0
- package/dist/src/graphql-api/project/inputs/index.d.ts +7 -0
- package/dist/src/graphql-api/project/inputs/index.js +24 -0
- package/dist/src/graphql-api/project/inputs/index.js.map +1 -0
- package/dist/src/graphql-api/project/inputs/remove-user-from-project.input.d.ts +5 -0
- package/dist/src/graphql-api/project/inputs/remove-user-from-project.input.js +32 -0
- package/dist/src/graphql-api/project/inputs/remove-user-from-project.input.js.map +1 -0
- package/dist/src/graphql-api/project/inputs/update-project.input.d.ts +5 -0
- package/dist/src/graphql-api/project/inputs/update-project.input.js +32 -0
- package/dist/src/graphql-api/project/inputs/update-project.input.js.map +1 -0
- package/dist/src/graphql-api/project/model/index.d.ts +1 -0
- package/dist/src/graphql-api/project/model/index.js +18 -0
- package/dist/src/graphql-api/project/model/index.js.map +1 -0
- package/dist/src/graphql-api/project/model/project.model.d.ts +10 -0
- package/dist/src/graphql-api/project/model/project.model.js +49 -0
- package/dist/src/graphql-api/project/model/project.model.js.map +1 -0
- package/dist/src/graphql-api/project/model/projects.connection.d.ts +5 -0
- package/dist/src/graphql-api/project/model/projects.connection.js +19 -0
- package/dist/src/graphql-api/project/model/projects.connection.js.map +1 -0
- package/dist/src/graphql-api/project/model/users-project.connection.d.ts +5 -0
- package/dist/src/graphql-api/project/model/users-project.connection.js +19 -0
- package/dist/src/graphql-api/project/model/users-project.connection.js.map +1 -0
- package/dist/src/graphql-api/project/model/users-project.model.d.ts +7 -0
- package/dist/src/graphql-api/project/model/users-project.model.js +34 -0
- package/dist/src/graphql-api/project/model/users-project.model.js.map +1 -0
- package/dist/src/graphql-api/project/project.resolver.d.ts +17 -0
- package/dist/src/graphql-api/project/project.resolver.js +154 -0
- package/dist/src/graphql-api/project/project.resolver.js.map +1 -0
- package/dist/src/graphql-api/registerGraphqlEnums.d.ts +1 -0
- package/dist/src/graphql-api/registerGraphqlEnums.js +14 -0
- package/dist/src/graphql-api/registerGraphqlEnums.js.map +1 -0
- package/dist/src/graphql-api/revision/child-branch.resolver.d.ts +8 -0
- package/dist/src/graphql-api/revision/child-branch.resolver.js +51 -0
- package/dist/src/graphql-api/revision/child-branch.resolver.js.map +1 -0
- package/dist/src/graphql-api/revision/inputs/create-revision.input.d.ts +6 -0
- package/dist/src/graphql-api/revision/inputs/create-revision.input.js +36 -0
- package/dist/src/graphql-api/revision/inputs/create-revision.input.js.map +1 -0
- package/dist/src/graphql-api/revision/inputs/get-revision-tables.input.d.ts +4 -0
- package/dist/src/graphql-api/revision/inputs/get-revision-tables.input.js +28 -0
- package/dist/src/graphql-api/revision/inputs/get-revision-tables.input.js.map +1 -0
- package/dist/src/graphql-api/revision/inputs/get-revision.input.d.ts +3 -0
- package/dist/src/graphql-api/revision/inputs/get-revision.input.js +24 -0
- package/dist/src/graphql-api/revision/inputs/get-revision.input.js.map +1 -0
- package/dist/src/graphql-api/revision/model/child-branch.model.d.ts +6 -0
- package/dist/src/graphql-api/revision/model/child-branch.model.js +30 -0
- package/dist/src/graphql-api/revision/model/child-branch.model.js.map +1 -0
- package/dist/src/graphql-api/revision/model/revision.model.d.ts +24 -0
- package/dist/src/graphql-api/revision/model/revision.model.js +87 -0
- package/dist/src/graphql-api/revision/model/revision.model.js.map +1 -0
- package/dist/src/graphql-api/revision/revision.resolver.d.ts +19 -0
- package/dist/src/graphql-api/revision/revision.resolver.js +150 -0
- package/dist/src/graphql-api/revision/revision.resolver.js.map +1 -0
- package/dist/src/graphql-api/role/model/role.model.d.ts +4 -0
- package/dist/src/graphql-api/role/model/role.model.js +28 -0
- package/dist/src/graphql-api/role/model/role.model.js.map +1 -0
- package/dist/src/graphql-api/row/inputs/get-row-count-references-by.input.d.ts +5 -0
- package/dist/src/graphql-api/row/inputs/get-row-count-references-by.input.js +32 -0
- package/dist/src/graphql-api/row/inputs/get-row-count-references-by.input.js.map +1 -0
- package/dist/src/graphql-api/row/inputs/get-row-references.input.d.ts +5 -0
- package/dist/src/graphql-api/row/inputs/get-row-references.input.js +32 -0
- package/dist/src/graphql-api/row/inputs/get-row-references.input.js.map +1 -0
- package/dist/src/graphql-api/row/inputs/get-row.input.d.ts +5 -0
- package/dist/src/graphql-api/row/inputs/get-row.input.js +32 -0
- package/dist/src/graphql-api/row/inputs/get-row.input.js.map +1 -0
- package/dist/src/graphql-api/row/inputs/get-rows.input.d.ts +6 -0
- package/dist/src/graphql-api/row/inputs/get-rows.input.js +36 -0
- package/dist/src/graphql-api/row/inputs/get-rows.input.js.map +1 -0
- package/dist/src/graphql-api/row/inputs/index.d.ts +3 -0
- package/dist/src/graphql-api/row/inputs/index.js +20 -0
- package/dist/src/graphql-api/row/inputs/index.js.map +1 -0
- package/dist/src/graphql-api/row/model/row-reference.model.d.ts +6 -0
- package/dist/src/graphql-api/row/model/row-reference.model.js +30 -0
- package/dist/src/graphql-api/row/model/row-reference.model.js.map +1 -0
- package/dist/src/graphql-api/row/model/row-references-connection.model.d.ts +5 -0
- package/dist/src/graphql-api/row/model/row-references-connection.model.js +19 -0
- package/dist/src/graphql-api/row/model/row-references-connection.model.js.map +1 -0
- package/dist/src/graphql-api/row/model/row.model.d.ts +17 -0
- package/dist/src/graphql-api/row/model/row.model.js +55 -0
- package/dist/src/graphql-api/row/model/row.model.js.map +1 -0
- package/dist/src/graphql-api/row/model/rows-connection.model.d.ts +5 -0
- package/dist/src/graphql-api/row/model/rows-connection.model.js +19 -0
- package/dist/src/graphql-api/row/model/rows-connection.model.js.map +1 -0
- package/dist/src/graphql-api/row/row.resolver.d.ts +16 -0
- package/dist/src/graphql-api/row/row.resolver.js +128 -0
- package/dist/src/graphql-api/row/row.resolver.js.map +1 -0
- package/dist/src/graphql-api/share/model/paginated.model.d.ts +9 -0
- package/dist/src/graphql-api/share/model/paginated.model.js +70 -0
- package/dist/src/graphql-api/share/model/paginated.model.js.map +1 -0
- package/dist/src/graphql-api/table/inputs/get-table-references.input.d.ts +4 -0
- package/dist/src/graphql-api/table/inputs/get-table-references.input.js +28 -0
- package/dist/src/graphql-api/table/inputs/get-table-references.input.js.map +1 -0
- package/dist/src/graphql-api/table/inputs/get-table-rows.input.d.ts +4 -0
- package/dist/src/graphql-api/table/inputs/get-table-rows.input.js +28 -0
- package/dist/src/graphql-api/table/inputs/get-table-rows.input.js.map +1 -0
- package/dist/src/graphql-api/table/inputs/get-table.input.d.ts +4 -0
- package/dist/src/graphql-api/table/inputs/get-table.input.js +28 -0
- package/dist/src/graphql-api/table/inputs/get-table.input.js.map +1 -0
- package/dist/src/graphql-api/table/inputs/get-tables.input.d.ts +5 -0
- package/dist/src/graphql-api/table/inputs/get-tables.input.js +32 -0
- package/dist/src/graphql-api/table/inputs/get-tables.input.js.map +1 -0
- package/dist/src/graphql-api/table/model/table-connection.model.d.ts +5 -0
- package/dist/src/graphql-api/table/model/table-connection.model.js +19 -0
- package/dist/src/graphql-api/table/model/table-connection.model.js.map +1 -0
- package/dist/src/graphql-api/table/model/table.model.d.ts +20 -0
- package/dist/src/graphql-api/table/model/table.model.js +68 -0
- package/dist/src/graphql-api/table/model/table.model.js.map +1 -0
- package/dist/src/graphql-api/table/table.resolver.d.ts +20 -0
- package/dist/src/graphql-api/table/table.resolver.js +166 -0
- package/dist/src/graphql-api/table/table.resolver.js.map +1 -0
- package/dist/src/graphql-api/user/inputs/index.d.ts +3 -0
- package/dist/src/graphql-api/user/inputs/index.js +20 -0
- package/dist/src/graphql-api/user/inputs/index.js.map +1 -0
- package/dist/src/graphql-api/user/inputs/me-projects.input.d.ts +4 -0
- package/dist/src/graphql-api/user/inputs/me-projects.input.js +28 -0
- package/dist/src/graphql-api/user/inputs/me-projects.input.js.map +1 -0
- package/dist/src/graphql-api/user/inputs/set-username.input.d.ts +3 -0
- package/dist/src/graphql-api/user/inputs/set-username.input.js +24 -0
- package/dist/src/graphql-api/user/inputs/set-username.input.js.map +1 -0
- package/dist/src/graphql-api/user/inputs/update-password.input.d.ts +4 -0
- package/dist/src/graphql-api/user/inputs/update-password.input.js +28 -0
- package/dist/src/graphql-api/user/inputs/update-password.input.js.map +1 -0
- package/dist/src/graphql-api/user/model/user.model.d.ts +6 -0
- package/dist/src/graphql-api/user/model/user.model.js +36 -0
- package/dist/src/graphql-api/user/model/user.model.js.map +1 -0
- package/dist/src/graphql-api/user/user.resolver.d.ts +15 -0
- package/dist/src/graphql-api/user/user.resolver.js +104 -0
- package/dist/src/graphql-api/user/user.resolver.js.map +1 -0
- package/dist/src/health/health.controller.d.ts +3 -0
- package/dist/src/health/health.controller.js +31 -0
- package/dist/src/health/health.controller.js.map +1 -0
- package/dist/src/health/health.module.d.ts +2 -0
- package/dist/src/health/health.module.js +18 -0
- package/dist/src/health/health.module.js.map +1 -0
- package/dist/src/index.d.ts +2 -0
- package/dist/src/index.js +8 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/main.d.ts +1 -0
- package/dist/src/main.js +41 -0
- package/dist/src/main.js.map +1 -0
- package/dist/src/notification/endpoint-notification.service.d.ts +10 -0
- package/dist/src/notification/endpoint-notification.service.js +46 -0
- package/dist/src/notification/endpoint-notification.service.js.map +1 -0
- package/dist/src/notification/in-memory-client.d.ts +10 -0
- package/dist/src/notification/in-memory-client.js +23 -0
- package/dist/src/notification/in-memory-client.js.map +1 -0
- package/dist/src/notification/notification-event-emitter.d.ts +2 -0
- package/dist/src/notification/notification-event-emitter.js +6 -0
- package/dist/src/notification/notification-event-emitter.js.map +1 -0
- package/dist/src/notification/notification.module.d.ts +2 -0
- package/dist/src/notification/notification.module.js +56 -0
- package/dist/src/notification/notification.module.js.map +1 -0
- package/dist/src/organization/commands/handlers/add-user-to-organization.handler.d.ts +12 -0
- package/dist/src/organization/commands/handlers/add-user-to-organization.handler.js +66 -0
- package/dist/src/organization/commands/handlers/add-user-to-organization.handler.js.map +1 -0
- package/dist/src/organization/commands/handlers/index.d.ts +2 -0
- package/dist/src/organization/commands/handlers/index.js +19 -0
- package/dist/src/organization/commands/handlers/index.js.map +1 -0
- package/dist/src/organization/commands/handlers/remove-user-from-organization.handler.d.ts +11 -0
- package/dist/src/organization/commands/handlers/remove-user-from-organization.handler.js +67 -0
- package/dist/src/organization/commands/handlers/remove-user-from-organization.handler.js.map +1 -0
- package/dist/src/organization/commands/impl/add-user-to-organization.command.d.ts +14 -0
- package/dist/src/organization/commands/impl/add-user-to-organization.command.js +10 -0
- package/dist/src/organization/commands/impl/add-user-to-organization.command.js.map +1 -0
- package/dist/src/organization/commands/impl/index.d.ts +2 -0
- package/dist/src/organization/commands/impl/index.js +19 -0
- package/dist/src/organization/commands/impl/index.js.map +1 -0
- package/dist/src/organization/commands/impl/remove-user-from-organization.command.d.ts +11 -0
- package/dist/src/organization/commands/impl/remove-user-from-organization.command.js +10 -0
- package/dist/src/organization/commands/impl/remove-user-from-organization.command.js.map +1 -0
- package/dist/src/organization/commands/index.d.ts +2 -0
- package/dist/src/organization/commands/index.js +9 -0
- package/dist/src/organization/commands/index.js.map +1 -0
- package/dist/src/organization/organization.module.d.ts +2 -0
- package/dist/src/organization/organization.module.js +24 -0
- package/dist/src/organization/organization.module.js.map +1 -0
- package/dist/src/organization/queries/handlers/get-projects-by-organization-id.handler.d.ts +17 -0
- package/dist/src/organization/queries/handlers/get-projects-by-organization-id.handler.js +70 -0
- package/dist/src/organization/queries/handlers/get-projects-by-organization-id.handler.js.map +1 -0
- package/dist/src/organization/queries/handlers/get-users-organization.handler.d.ts +30 -0
- package/dist/src/organization/queries/handlers/get-users-organization.handler.js +58 -0
- package/dist/src/organization/queries/handlers/get-users-organization.handler.js.map +1 -0
- package/dist/src/organization/queries/handlers/index.d.ts +1 -0
- package/dist/src/organization/queries/handlers/index.js +18 -0
- package/dist/src/organization/queries/handlers/index.js.map +1 -0
- package/dist/src/organization/queries/impl/get-projects-by-organization-id.query.d.ts +17 -0
- package/dist/src/organization/queries/impl/get-projects-by-organization-id.query.js +10 -0
- package/dist/src/organization/queries/impl/get-projects-by-organization-id.query.js.map +1 -0
- package/dist/src/organization/queries/impl/get-users-organization.query.d.ts +19 -0
- package/dist/src/organization/queries/impl/get-users-organization.query.js +10 -0
- package/dist/src/organization/queries/impl/get-users-organization.query.js.map +1 -0
- package/dist/src/organization/queries/impl/index.d.ts +2 -0
- package/dist/src/organization/queries/impl/index.js +19 -0
- package/dist/src/organization/queries/impl/index.js.map +1 -0
- package/dist/src/organization/queries/index.d.ts +3 -0
- package/dist/src/organization/queries/index.js +10 -0
- package/dist/src/organization/queries/index.js.map +1 -0
- package/dist/src/project/commands/handlers/add-user-to-project.handler.d.ts +13 -0
- package/dist/src/project/commands/handlers/add-user-to-project.handler.js +86 -0
- package/dist/src/project/commands/handlers/add-user-to-project.handler.js.map +1 -0
- package/dist/src/project/commands/handlers/api-create-project.handler.d.ts +8 -0
- package/dist/src/project/commands/handlers/api-create-project.handler.js +32 -0
- package/dist/src/project/commands/handlers/api-create-project.handler.js.map +1 -0
- package/dist/src/project/commands/handlers/create-project.handler.d.ts +38 -0
- package/dist/src/project/commands/handlers/create-project.handler.js +176 -0
- package/dist/src/project/commands/handlers/create-project.handler.js.map +1 -0
- package/dist/src/project/commands/handlers/delete-project.handler.d.ts +17 -0
- package/dist/src/project/commands/handlers/delete-project.handler.js +73 -0
- package/dist/src/project/commands/handlers/delete-project.handler.js.map +1 -0
- package/dist/src/project/commands/handlers/index.d.ts +7 -0
- package/dist/src/project/commands/handlers/index.js +18 -0
- package/dist/src/project/commands/handlers/index.js.map +1 -0
- package/dist/src/project/commands/handlers/remove-user-from-project.handler.d.ts +11 -0
- package/dist/src/project/commands/handlers/remove-user-from-project.handler.js +68 -0
- package/dist/src/project/commands/handlers/remove-user-from-project.handler.js.map +1 -0
- package/dist/src/project/commands/handlers/update-project.handler.d.ts +13 -0
- package/dist/src/project/commands/handlers/update-project.handler.js +52 -0
- package/dist/src/project/commands/handlers/update-project.handler.js.map +1 -0
- package/dist/src/project/commands/impl/add-user-to-project.command.d.ts +16 -0
- package/dist/src/project/commands/impl/add-user-to-project.command.js +10 -0
- package/dist/src/project/commands/impl/add-user-to-project.command.js.map +1 -0
- package/dist/src/project/commands/impl/api-create-project.command.d.ts +14 -0
- package/dist/src/project/commands/impl/api-create-project.command.js +10 -0
- package/dist/src/project/commands/impl/api-create-project.command.js.map +1 -0
- package/dist/src/project/commands/impl/create-project.command.d.ts +14 -0
- package/dist/src/project/commands/impl/create-project.command.js +10 -0
- package/dist/src/project/commands/impl/create-project.command.js.map +1 -0
- package/dist/src/project/commands/impl/delete-project.command.d.ts +10 -0
- package/dist/src/project/commands/impl/delete-project.command.js +10 -0
- package/dist/src/project/commands/impl/delete-project.command.js.map +1 -0
- package/dist/src/project/commands/impl/index.d.ts +6 -0
- package/dist/src/project/commands/impl/index.js +23 -0
- package/dist/src/project/commands/impl/index.js.map +1 -0
- package/dist/src/project/commands/impl/remove-user-from-project.command.d.ts +13 -0
- package/dist/src/project/commands/impl/remove-user-from-project.command.js +10 -0
- package/dist/src/project/commands/impl/remove-user-from-project.command.js.map +1 -0
- package/dist/src/project/commands/impl/update-project.command.d.ts +12 -0
- package/dist/src/project/commands/impl/update-project.command.js +10 -0
- package/dist/src/project/commands/impl/update-project.command.js.map +1 -0
- package/dist/src/project/project.module.d.ts +2 -0
- package/dist/src/project/project.module.js +34 -0
- package/dist/src/project/project.module.js.map +1 -0
- package/dist/src/project/queries/handlers/get-all-branches-by-project.handler.d.ts +16 -0
- package/dist/src/project/queries/handlers/get-all-branches-by-project.handler.js +47 -0
- package/dist/src/project/queries/handlers/get-all-branches-by-project.handler.js.map +1 -0
- package/dist/src/project/queries/handlers/get-project-by-id.handler.d.ts +14 -0
- package/dist/src/project/queries/handlers/get-project-by-id.handler.js +31 -0
- package/dist/src/project/queries/handlers/get-project-by-id.handler.js.map +1 -0
- package/dist/src/project/queries/handlers/get-project.handler.d.ts +12 -0
- package/dist/src/project/queries/handlers/get-project.handler.js +44 -0
- package/dist/src/project/queries/handlers/get-project.handler.js.map +1 -0
- package/dist/src/project/queries/handlers/get-root-branch-by-project.handler.d.ts +14 -0
- package/dist/src/project/queries/handlers/get-root-branch-by-project.handler.js +31 -0
- package/dist/src/project/queries/handlers/get-root-branch-by-project.handler.js.map +1 -0
- package/dist/src/project/queries/handlers/get-users-project.handler.d.ts +30 -0
- package/dist/src/project/queries/handlers/get-users-project.handler.js +61 -0
- package/dist/src/project/queries/handlers/get-users-project.handler.js.map +1 -0
- package/dist/src/project/queries/handlers/index.d.ts +6 -0
- package/dist/src/project/queries/handlers/index.js +16 -0
- package/dist/src/project/queries/handlers/index.js.map +1 -0
- package/dist/src/project/queries/impl/get-all-branches-by-project.query.d.ts +12 -0
- package/dist/src/project/queries/impl/get-all-branches-by-project.query.js +10 -0
- package/dist/src/project/queries/impl/get-all-branches-by-project.query.js.map +1 -0
- package/dist/src/project/queries/impl/get-project-by-id.query.d.ts +8 -0
- package/dist/src/project/queries/impl/get-project-by-id.query.js +10 -0
- package/dist/src/project/queries/impl/get-project-by-id.query.js.map +1 -0
- package/dist/src/project/queries/impl/get-project.query.d.ts +10 -0
- package/dist/src/project/queries/impl/get-project.query.js +10 -0
- package/dist/src/project/queries/impl/get-project.query.js.map +1 -0
- package/dist/src/project/queries/impl/get-root-branch-by-project.query.d.ts +4 -0
- package/dist/src/project/queries/impl/get-root-branch-by-project.query.js +10 -0
- package/dist/src/project/queries/impl/get-root-branch-by-project.query.js.map +1 -0
- package/dist/src/project/queries/impl/get-users-project.query.d.ts +21 -0
- package/dist/src/project/queries/impl/get-users-project.query.js +10 -0
- package/dist/src/project/queries/impl/get-users-project.query.js.map +1 -0
- package/dist/src/project/queries/impl/index.d.ts +5 -0
- package/dist/src/project/queries/impl/index.js +22 -0
- package/dist/src/project/queries/impl/index.js.map +1 -0
- package/dist/src/rest-api/auth/auth.controller.d.ts +13 -0
- package/dist/src/rest-api/auth/auth.controller.js +84 -0
- package/dist/src/rest-api/auth/auth.controller.js.map +1 -0
- package/dist/src/rest-api/auth/dto/create-user.dto.d.ts +7 -0
- package/dist/src/rest-api/auth/dto/create-user.dto.js +34 -0
- package/dist/src/rest-api/auth/dto/create-user.dto.js.map +1 -0
- package/dist/src/rest-api/auth/dto/index.d.ts +2 -0
- package/dist/src/rest-api/auth/dto/index.js +19 -0
- package/dist/src/rest-api/auth/dto/index.js.map +1 -0
- package/dist/src/rest-api/auth/dto/login.dto.d.ts +4 -0
- package/dist/src/rest-api/auth/dto/login.dto.js +25 -0
- package/dist/src/rest-api/auth/dto/login.dto.js.map +1 -0
- package/dist/src/rest-api/auth/dto/update-password.dto.d.ts +4 -0
- package/dist/src/rest-api/auth/dto/update-password.dto.js +25 -0
- package/dist/src/rest-api/auth/dto/update-password.dto.js.map +1 -0
- package/dist/src/rest-api/auth/model/index.d.ts +1 -0
- package/dist/src/rest-api/auth/model/index.js +18 -0
- package/dist/src/rest-api/auth/model/index.js.map +1 -0
- package/dist/src/rest-api/auth/model/login.response.d.ts +3 -0
- package/dist/src/rest-api/auth/model/login.response.js +21 -0
- package/dist/src/rest-api/auth/model/login.response.js.map +1 -0
- package/dist/src/rest-api/branch/branch-by-name.controller.d.ts +19 -0
- package/dist/src/rest-api/branch/branch-by-name.controller.js +223 -0
- package/dist/src/rest-api/branch/branch-by-name.controller.js.map +1 -0
- package/dist/src/rest-api/branch/dto/create-branch-by-revision.dto.d.ts +3 -0
- package/dist/src/rest-api/branch/dto/create-branch-by-revision.dto.js +21 -0
- package/dist/src/rest-api/branch/dto/create-branch-by-revision.dto.js.map +1 -0
- package/dist/src/rest-api/branch/dto/create-revision.dto.d.ts +3 -0
- package/dist/src/rest-api/branch/dto/create-revision.dto.js +21 -0
- package/dist/src/rest-api/branch/dto/create-revision.dto.js.map +1 -0
- package/dist/src/rest-api/branch/dto/get-branch-revisions.dto.d.ts +5 -0
- package/dist/src/rest-api/branch/dto/get-branch-revisions.dto.js +34 -0
- package/dist/src/rest-api/branch/dto/get-branch-revisions.dto.js.map +1 -0
- package/dist/src/rest-api/branch/dto/index.d.ts +3 -0
- package/dist/src/rest-api/branch/dto/index.js +20 -0
- package/dist/src/rest-api/branch/dto/index.js.map +1 -0
- package/dist/src/rest-api/branch/model/branch.model.d.ts +11 -0
- package/dist/src/rest-api/branch/model/branch.model.js +41 -0
- package/dist/src/rest-api/branch/model/branch.model.js.map +1 -0
- package/dist/src/rest-api/branch/model/index.d.ts +2 -0
- package/dist/src/rest-api/branch/model/index.js +19 -0
- package/dist/src/rest-api/branch/model/index.js.map +1 -0
- package/dist/src/rest-api/branch/model/parent-branch.response.d.ts +8 -0
- package/dist/src/rest-api/branch/model/parent-branch.response.js +31 -0
- package/dist/src/rest-api/branch/model/parent-branch.response.js.map +1 -0
- package/dist/src/rest-api/configuration/configuration.controller.d.ts +7 -0
- package/dist/src/rest-api/configuration/configuration.controller.js +40 -0
- package/dist/src/rest-api/configuration/configuration.controller.js.map +1 -0
- package/dist/src/rest-api/configuration/model/configuration.response.d.ts +14 -0
- package/dist/src/rest-api/configuration/model/configuration.response.js +49 -0
- package/dist/src/rest-api/configuration/model/configuration.response.js.map +1 -0
- package/dist/src/rest-api/configuration/model/index.d.ts +1 -0
- package/dist/src/rest-api/configuration/model/index.js +18 -0
- package/dist/src/rest-api/configuration/model/index.js.map +1 -0
- package/dist/src/rest-api/endpoint/endpointByIdController.d.ts +6 -0
- package/dist/src/rest-api/endpoint/endpointByIdController.js +58 -0
- package/dist/src/rest-api/endpoint/endpointByIdController.js.map +1 -0
- package/dist/src/rest-api/endpoint/model/endpoint.model.d.ts +6 -0
- package/dist/src/rest-api/endpoint/model/endpoint.model.js +30 -0
- package/dist/src/rest-api/endpoint/model/endpoint.model.js.map +1 -0
- package/dist/src/rest-api/endpoint/model/index.d.ts +1 -0
- package/dist/src/rest-api/endpoint/model/index.js +18 -0
- package/dist/src/rest-api/endpoint/model/index.js.map +1 -0
- package/dist/src/rest-api/organization/dto/add-user-to-organization.dto.d.ts +5 -0
- package/dist/src/rest-api/organization/dto/add-user-to-organization.dto.js +26 -0
- package/dist/src/rest-api/organization/dto/add-user-to-organization.dto.js.map +1 -0
- package/dist/src/rest-api/organization/dto/create-project.dto.d.ts +4 -0
- package/dist/src/rest-api/organization/dto/create-project.dto.js +25 -0
- package/dist/src/rest-api/organization/dto/create-project.dto.js.map +1 -0
- package/dist/src/rest-api/organization/dto/get-projects.dto.d.ts +4 -0
- package/dist/src/rest-api/organization/dto/get-projects.dto.js +30 -0
- package/dist/src/rest-api/organization/dto/get-projects.dto.js.map +1 -0
- package/dist/src/rest-api/organization/dto/get-users-organization.dto.d.ts +4 -0
- package/dist/src/rest-api/organization/dto/get-users-organization.dto.js +30 -0
- package/dist/src/rest-api/organization/dto/get-users-organization.dto.js.map +1 -0
- package/dist/src/rest-api/organization/dto/index.d.ts +5 -0
- package/dist/src/rest-api/organization/dto/index.js +22 -0
- package/dist/src/rest-api/organization/dto/index.js.map +1 -0
- package/dist/src/rest-api/organization/dto/remove-user-from-organization.dto.d.ts +3 -0
- package/dist/src/rest-api/organization/dto/remove-user-from-organization.dto.js +21 -0
- package/dist/src/rest-api/organization/dto/remove-user-from-organization.dto.js.map +1 -0
- package/dist/src/rest-api/organization/model/index.d.ts +3 -0
- package/dist/src/rest-api/organization/model/index.js +20 -0
- package/dist/src/rest-api/organization/model/index.js.map +1 -0
- package/dist/src/rest-api/organization/model/project.connection.d.ts +4 -0
- package/dist/src/rest-api/organization/model/project.connection.js +9 -0
- package/dist/src/rest-api/organization/model/project.connection.js.map +1 -0
- package/dist/src/rest-api/organization/model/users-organization.connection.d.ts +4 -0
- package/dist/src/rest-api/organization/model/users-organization.connection.js +9 -0
- package/dist/src/rest-api/organization/model/users-organization.connection.js.map +1 -0
- package/dist/src/rest-api/organization/model/users-organization.model.d.ts +7 -0
- package/dist/src/rest-api/organization/model/users-organization.model.js +31 -0
- package/dist/src/rest-api/organization/model/users-organization.model.js.map +1 -0
- package/dist/src/rest-api/organization/organization.controller.d.ts +16 -0
- package/dist/src/rest-api/organization/organization.controller.js +145 -0
- package/dist/src/rest-api/organization/organization.controller.js.map +1 -0
- package/dist/src/rest-api/project/dto/add-user-to-project.dto.d.ts +5 -0
- package/dist/src/rest-api/project/dto/add-user-to-project.dto.js +26 -0
- package/dist/src/rest-api/project/dto/add-user-to-project.dto.js.map +1 -0
- package/dist/src/rest-api/project/dto/get-project-branches.dto.d.ts +4 -0
- package/dist/src/rest-api/project/dto/get-project-branches.dto.js +30 -0
- package/dist/src/rest-api/project/dto/get-project-branches.dto.js.map +1 -0
- package/dist/src/rest-api/project/dto/get-users-project.dto.d.ts +4 -0
- package/dist/src/rest-api/project/dto/get-users-project.dto.js +30 -0
- package/dist/src/rest-api/project/dto/get-users-project.dto.js.map +1 -0
- package/dist/src/rest-api/project/dto/update-project.dto.d.ts +3 -0
- package/dist/src/rest-api/project/dto/update-project.dto.js +21 -0
- package/dist/src/rest-api/project/dto/update-project.dto.js.map +1 -0
- package/dist/src/rest-api/project/model/index.d.ts +3 -0
- package/dist/src/rest-api/project/model/index.js +20 -0
- package/dist/src/rest-api/project/model/index.js.map +1 -0
- package/dist/src/rest-api/project/model/project.model.d.ts +6 -0
- package/dist/src/rest-api/project/model/project.model.js +33 -0
- package/dist/src/rest-api/project/model/project.model.js.map +1 -0
- package/dist/src/rest-api/project/model/users-project.connection.d.ts +4 -0
- package/dist/src/rest-api/project/model/users-project.connection.js +9 -0
- package/dist/src/rest-api/project/model/users-project.connection.js.map +1 -0
- package/dist/src/rest-api/project/model/users-project.model.d.ts +7 -0
- package/dist/src/rest-api/project/model/users-project.model.js +31 -0
- package/dist/src/rest-api/project/model/users-project.model.js.map +1 -0
- package/dist/src/rest-api/project/project.controller.d.ts +19 -0
- package/dist/src/rest-api/project/project.controller.js +204 -0
- package/dist/src/rest-api/project/project.controller.js.map +1 -0
- package/dist/src/rest-api/rest-api.module.d.ts +2 -0
- package/dist/src/rest-api/rest-api.module.js +43 -0
- package/dist/src/rest-api/rest-api.module.js.map +1 -0
- package/dist/src/rest-api/revision/dto/create-endpoint.dto.d.ts +4 -0
- package/dist/src/rest-api/revision/dto/create-endpoint.dto.js +22 -0
- package/dist/src/rest-api/revision/dto/create-endpoint.dto.js.map +1 -0
- package/dist/src/rest-api/revision/dto/create-table.dto.d.ts +5 -0
- package/dist/src/rest-api/revision/dto/create-table.dto.js +26 -0
- package/dist/src/rest-api/revision/dto/create-table.dto.js.map +1 -0
- package/dist/src/rest-api/revision/dto/get-revision-tables.dto.d.ts +4 -0
- package/dist/src/rest-api/revision/dto/get-revision-tables.dto.js +30 -0
- package/dist/src/rest-api/revision/dto/get-revision-tables.dto.js.map +1 -0
- package/dist/src/rest-api/revision/dto/index.d.ts +3 -0
- package/dist/src/rest-api/revision/dto/index.js +20 -0
- package/dist/src/rest-api/revision/dto/index.js.map +1 -0
- package/dist/src/rest-api/revision/model/child-branches.response.d.ts +8 -0
- package/dist/src/rest-api/revision/model/child-branches.response.js +31 -0
- package/dist/src/rest-api/revision/model/child-branches.response.js.map +1 -0
- package/dist/src/rest-api/revision/model/create-table.response.d.ts +6 -0
- package/dist/src/rest-api/revision/model/create-table.response.js +27 -0
- package/dist/src/rest-api/revision/model/create-table.response.js.map +1 -0
- package/dist/src/rest-api/revision/model/index.d.ts +2 -0
- package/dist/src/rest-api/revision/model/index.js +19 -0
- package/dist/src/rest-api/revision/model/index.js.map +1 -0
- package/dist/src/rest-api/revision/model/revision.model.d.ts +10 -0
- package/dist/src/rest-api/revision/model/revision.model.js +37 -0
- package/dist/src/rest-api/revision/model/revision.model.js.map +1 -0
- package/dist/src/rest-api/revision/revision-by-id.controller.d.ts +21 -0
- package/dist/src/rest-api/revision/revision-by-id.controller.js +211 -0
- package/dist/src/rest-api/revision/revision-by-id.controller.js.map +1 -0
- package/dist/src/rest-api/role/model/index.d.ts +1 -0
- package/dist/src/rest-api/role/model/index.js +18 -0
- package/dist/src/rest-api/role/model/index.js.map +1 -0
- package/dist/src/rest-api/role/model/role.model.d.ts +4 -0
- package/dist/src/rest-api/role/model/role.model.js +25 -0
- package/dist/src/rest-api/role/model/role.model.js.map +1 -0
- package/dist/src/rest-api/row/dto/get-row-references-by.dto.d.ts +5 -0
- package/dist/src/rest-api/row/dto/get-row-references-by.dto.js +34 -0
- package/dist/src/rest-api/row/dto/get-row-references-by.dto.js.map +1 -0
- package/dist/src/rest-api/row/dto/get-row-references-to.dto.d.ts +5 -0
- package/dist/src/rest-api/row/dto/get-row-references-to.dto.js +34 -0
- package/dist/src/rest-api/row/dto/get-row-references-to.dto.js.map +1 -0
- package/dist/src/rest-api/row/dto/index.d.ts +2 -0
- package/dist/src/rest-api/row/dto/index.js +19 -0
- package/dist/src/rest-api/row/dto/index.js.map +1 -0
- package/dist/src/rest-api/row/dto/update-row.dto.d.ts +4 -0
- package/dist/src/rest-api/row/dto/update-row.dto.js +22 -0
- package/dist/src/rest-api/row/dto/update-row.dto.js.map +1 -0
- package/dist/src/rest-api/row/model/index.d.ts +3 -0
- package/dist/src/rest-api/row/model/index.js +20 -0
- package/dist/src/rest-api/row/model/index.js.map +1 -0
- package/dist/src/rest-api/row/model/remove-row.response.d.ts +7 -0
- package/dist/src/rest-api/row/model/remove-row.response.js +31 -0
- package/dist/src/rest-api/row/model/remove-row.response.js.map +1 -0
- package/dist/src/rest-api/row/model/row.model.d.ts +12 -0
- package/dist/src/rest-api/row/model/row.model.js +42 -0
- package/dist/src/rest-api/row/model/row.model.js.map +1 -0
- package/dist/src/rest-api/row/model/update-row.response.d.ts +8 -0
- package/dist/src/rest-api/row/model/update-row.response.js +35 -0
- package/dist/src/rest-api/row/model/update-row.response.js.map +1 -0
- package/dist/src/rest-api/row/row-by-id.controller.d.ts +17 -0
- package/dist/src/rest-api/row/row-by-id.controller.js +209 -0
- package/dist/src/rest-api/row/row-by-id.controller.js.map +1 -0
- package/dist/src/rest-api/share/model/paginated.model.d.ts +8 -0
- package/dist/src/rest-api/share/model/paginated.model.js +69 -0
- package/dist/src/rest-api/share/model/paginated.model.js.map +1 -0
- package/dist/src/rest-api/share/utils/transformFromPrismaToBranchModel.d.ts +3 -0
- package/dist/src/rest-api/share/utils/transformFromPrismaToBranchModel.js +10 -0
- package/dist/src/rest-api/share/utils/transformFromPrismaToBranchModel.js.map +1 -0
- package/dist/src/rest-api/share/utils/transformFromPrismaToEndpointsModel.d.ts +4 -0
- package/dist/src/rest-api/share/utils/transformFromPrismaToEndpointsModel.js +16 -0
- package/dist/src/rest-api/share/utils/transformFromPrismaToEndpointsModel.js.map +1 -0
- package/dist/src/rest-api/share/utils/transformFromPrismaToRevisionModel.d.ts +5 -0
- package/dist/src/rest-api/share/utils/transformFromPrismaToRevisionModel.js +24 -0
- package/dist/src/rest-api/share/utils/transformFromPrismaToRevisionModel.js.map +1 -0
- package/dist/src/rest-api/share/utils/transformFromPrismaToRowModel.d.ts +5 -0
- package/dist/src/rest-api/share/utils/transformFromPrismaToRowModel.js +25 -0
- package/dist/src/rest-api/share/utils/transformFromPrismaToRowModel.js.map +1 -0
- package/dist/src/rest-api/share/utils/transformFromPrismaToTableModel.d.ts +5 -0
- package/dist/src/rest-api/share/utils/transformFromPrismaToTableModel.js +24 -0
- package/dist/src/rest-api/share/utils/transformFromPrismaToTableModel.js.map +1 -0
- package/dist/src/rest-api/share/utils/transformFromPrismaToUserOrganizationModel.d.ts +5 -0
- package/dist/src/rest-api/share/utils/transformFromPrismaToUserOrganizationModel.js +30 -0
- package/dist/src/rest-api/share/utils/transformFromPrismaToUserOrganizationModel.js.map +1 -0
- package/dist/src/rest-api/share/utils/transformFromPrismaToUserProjectModel.d.ts +5 -0
- package/dist/src/rest-api/share/utils/transformFromPrismaToUserProjectModel.js +30 -0
- package/dist/src/rest-api/share/utils/transformFromPrismaToUserProjectModel.js.map +1 -0
- package/dist/src/rest-api/table/dto/create-row.dto.d.ts +5 -0
- package/dist/src/rest-api/table/dto/create-row.dto.js +26 -0
- package/dist/src/rest-api/table/dto/create-row.dto.js.map +1 -0
- package/dist/src/rest-api/table/dto/get-table-references-by.dto.d.ts +4 -0
- package/dist/src/rest-api/table/dto/get-table-references-by.dto.js +30 -0
- package/dist/src/rest-api/table/dto/get-table-references-by.dto.js.map +1 -0
- package/dist/src/rest-api/table/dto/get-table-references-to.dto.d.ts +4 -0
- package/dist/src/rest-api/table/dto/get-table-references-to.dto.js +30 -0
- package/dist/src/rest-api/table/dto/get-table-references-to.dto.js.map +1 -0
- package/dist/src/rest-api/table/dto/get-table-rows.dto.d.ts +4 -0
- package/dist/src/rest-api/table/dto/get-table-rows.dto.js +30 -0
- package/dist/src/rest-api/table/dto/get-table-rows.dto.js.map +1 -0
- package/dist/src/rest-api/table/dto/index.d.ts +5 -0
- package/dist/src/rest-api/table/dto/index.js +22 -0
- package/dist/src/rest-api/table/dto/index.js.map +1 -0
- package/dist/src/rest-api/table/dto/update-table.dto.d.ts +4 -0
- package/dist/src/rest-api/table/dto/update-table.dto.js +21 -0
- package/dist/src/rest-api/table/dto/update-table.dto.js.map +1 -0
- package/dist/src/rest-api/table/model/create-row.response.d.ts +6 -0
- package/dist/src/rest-api/table/model/create-row.response.js +31 -0
- package/dist/src/rest-api/table/model/create-row.response.js.map +1 -0
- package/dist/src/rest-api/table/model/index.d.ts +1 -0
- package/dist/src/rest-api/table/model/index.js +18 -0
- package/dist/src/rest-api/table/model/index.js.map +1 -0
- package/dist/src/rest-api/table/model/table.model.d.ts +10 -0
- package/dist/src/rest-api/table/model/table.model.js +37 -0
- package/dist/src/rest-api/table/model/table.model.js.map +1 -0
- package/dist/src/rest-api/table/model/update-table.response.d.ts +5 -0
- package/dist/src/rest-api/table/model/update-table.response.js +26 -0
- package/dist/src/rest-api/table/model/update-table.response.js.map +1 -0
- package/dist/src/rest-api/table/table-by-id.controller.d.ts +23 -0
- package/dist/src/rest-api/table/table-by-id.controller.js +262 -0
- package/dist/src/rest-api/table/table-by-id.controller.js.map +1 -0
- package/dist/src/rest-api/user/model/index.d.ts +1 -0
- package/dist/src/rest-api/user/model/index.js +18 -0
- package/dist/src/rest-api/user/model/index.js.map +1 -0
- package/dist/src/rest-api/user/model/user.model.d.ts +5 -0
- package/dist/src/rest-api/user/model/user.model.js +29 -0
- package/dist/src/rest-api/user/model/user.model.js.map +1 -0
- package/dist/src/rest-api/user/user.controller.d.ts +10 -0
- package/dist/src/rest-api/user/user.controller.js +47 -0
- package/dist/src/rest-api/user/user.controller.js.map +1 -0
- package/dist/src/revision/queries/commands/get-children-by-revision.handler.d.ts +19 -0
- package/dist/src/revision/queries/commands/get-children-by-revision.handler.js +31 -0
- package/dist/src/revision/queries/commands/get-children-by-revision.handler.js.map +1 -0
- package/dist/src/revision/queries/commands/get-endpoints-by-revision-id.handler.d.ts +9 -0
- package/dist/src/revision/queries/commands/get-endpoints-by-revision-id.handler.js +31 -0
- package/dist/src/revision/queries/commands/get-endpoints-by-revision-id.handler.js.map +1 -0
- package/dist/src/revision/queries/commands/get-revision.handler.d.ts +19 -0
- package/dist/src/revision/queries/commands/get-revision.handler.js +31 -0
- package/dist/src/revision/queries/commands/get-revision.handler.js.map +1 -0
- package/dist/src/revision/queries/commands/get-tables-by-revision-id.handler.d.ts +20 -0
- package/dist/src/revision/queries/commands/get-tables-by-revision-id.handler.js +65 -0
- package/dist/src/revision/queries/commands/get-tables-by-revision-id.handler.js.map +1 -0
- package/dist/src/revision/queries/commands/index.d.ts +9 -0
- package/dist/src/revision/queries/commands/index.js +22 -0
- package/dist/src/revision/queries/commands/index.js.map +1 -0
- package/dist/src/revision/queries/commands/resolve-branch-by-revision.handler.d.ts +14 -0
- package/dist/src/revision/queries/commands/resolve-branch-by-revision.handler.js +31 -0
- package/dist/src/revision/queries/commands/resolve-branch-by-revision.handler.js.map +1 -0
- package/dist/src/revision/queries/commands/resolve-child-branches-by-revision.handler.d.ts +17 -0
- package/dist/src/revision/queries/commands/resolve-child-branches-by-revision.handler.js +53 -0
- package/dist/src/revision/queries/commands/resolve-child-branches-by-revision.handler.js.map +1 -0
- package/dist/src/revision/queries/commands/resolve-child-by-revision.handler.d.ts +21 -0
- package/dist/src/revision/queries/commands/resolve-child-by-revision.handler.js +41 -0
- package/dist/src/revision/queries/commands/resolve-child-by-revision.handler.js.map +1 -0
- package/dist/src/revision/queries/commands/resolve-parent-by-revision.handler.d.ts +19 -0
- package/dist/src/revision/queries/commands/resolve-parent-by-revision.handler.js +31 -0
- package/dist/src/revision/queries/commands/resolve-parent-by-revision.handler.js.map +1 -0
- package/dist/src/revision/queries/impl/get-children-by-revision.query.d.ts +4 -0
- package/dist/src/revision/queries/impl/get-children-by-revision.query.js +10 -0
- package/dist/src/revision/queries/impl/get-children-by-revision.query.js.map +1 -0
- package/dist/src/revision/queries/impl/get-endpoints-by-revision-id.query.d.ts +4 -0
- package/dist/src/revision/queries/impl/get-endpoints-by-revision-id.query.js +10 -0
- package/dist/src/revision/queries/impl/get-endpoints-by-revision-id.query.js.map +1 -0
- package/dist/src/revision/queries/impl/get-revision.query.d.ts +8 -0
- package/dist/src/revision/queries/impl/get-revision.query.js +10 -0
- package/dist/src/revision/queries/impl/get-revision.query.js.map +1 -0
- package/dist/src/revision/queries/impl/get-tables-by-revision-id.query.d.ts +12 -0
- package/dist/src/revision/queries/impl/get-tables-by-revision-id.query.js +10 -0
- package/dist/src/revision/queries/impl/get-tables-by-revision-id.query.js.map +1 -0
- package/dist/src/revision/queries/impl/index.d.ts +7 -0
- package/dist/src/revision/queries/impl/index.js +24 -0
- package/dist/src/revision/queries/impl/index.js.map +1 -0
- package/dist/src/revision/queries/impl/resolve-branch-by-revision.query.d.ts +4 -0
- package/dist/src/revision/queries/impl/resolve-branch-by-revision.query.js +10 -0
- package/dist/src/revision/queries/impl/resolve-branch-by-revision.query.js.map +1 -0
- package/dist/src/revision/queries/impl/resolve-child-branches-by-revision.query.d.ts +4 -0
- package/dist/src/revision/queries/impl/resolve-child-branches-by-revision.query.js +10 -0
- package/dist/src/revision/queries/impl/resolve-child-branches-by-revision.query.js.map +1 -0
- package/dist/src/revision/queries/impl/resolve-child-by-revision.query.d.ts +4 -0
- package/dist/src/revision/queries/impl/resolve-child-by-revision.query.js +10 -0
- package/dist/src/revision/queries/impl/resolve-child-by-revision.query.js.map +1 -0
- package/dist/src/revision/queries/impl/resolve-parent-by-revision.query.d.ts +4 -0
- package/dist/src/revision/queries/impl/resolve-parent-by-revision.query.js +10 -0
- package/dist/src/revision/queries/impl/resolve-parent-by-revision.query.js.map +1 -0
- package/dist/src/revision/queries/types/get-endpoints-by-revision-id.d.ts +2 -0
- package/dist/src/revision/queries/types/get-endpoints-by-revision-id.js +3 -0
- package/dist/src/revision/queries/types/get-endpoints-by-revision-id.js.map +1 -0
- package/dist/src/revision/queries/types/get-revision-tables.types.d.ts +3 -0
- package/dist/src/revision/queries/types/get-revision-tables.types.js +3 -0
- package/dist/src/revision/queries/types/get-revision-tables.types.js.map +1 -0
- package/dist/src/revision/queries/types/get-tables-by-revision-id.d.ts +2 -0
- package/dist/src/revision/queries/types/get-tables-by-revision-id.js +3 -0
- package/dist/src/revision/queries/types/get-tables-by-revision-id.js.map +1 -0
- package/dist/src/revision/queries/types/index.d.ts +4 -0
- package/dist/src/revision/queries/types/index.js +3 -0
- package/dist/src/revision/queries/types/index.js.map +1 -0
- package/dist/src/revision/revision.module.d.ts +2 -0
- package/dist/src/revision/revision.module.js +25 -0
- package/dist/src/revision/revision.module.js.map +1 -0
- package/dist/src/row/queries/handlers/get-row-by-id.handler.d.ts +19 -0
- package/dist/src/row/queries/handlers/get-row-by-id.handler.js +43 -0
- package/dist/src/row/queries/handlers/get-row-by-id.handler.js.map +1 -0
- package/dist/src/row/queries/handlers/get-row.handler.d.ts +14 -0
- package/dist/src/row/queries/handlers/get-row.handler.js +59 -0
- package/dist/src/row/queries/handlers/get-row.handler.js.map +1 -0
- package/dist/src/row/queries/handlers/get-rows.handler.d.ts +15 -0
- package/dist/src/row/queries/handlers/get-rows.handler.js +71 -0
- package/dist/src/row/queries/handlers/get-rows.handler.js.map +1 -0
- package/dist/src/row/queries/handlers/index.d.ts +8 -0
- package/dist/src/row/queries/handlers/index.js +20 -0
- package/dist/src/row/queries/handlers/index.js.map +1 -0
- package/dist/src/row/queries/handlers/resolve-row-count-references-by.handler.d.ts +16 -0
- package/dist/src/row/queries/handlers/resolve-row-count-references-by.handler.js +67 -0
- package/dist/src/row/queries/handlers/resolve-row-count-references-by.handler.js.map +1 -0
- package/dist/src/row/queries/handlers/resolve-row-count-references-to.handler.d.ts +14 -0
- package/dist/src/row/queries/handlers/resolve-row-count-references-to.handler.js +59 -0
- package/dist/src/row/queries/handlers/resolve-row-count-references-to.handler.js.map +1 -0
- package/dist/src/row/queries/handlers/resolve-row-references-by.handler.d.ts +28 -0
- package/dist/src/row/queries/handlers/resolve-row-references-by.handler.js +78 -0
- package/dist/src/row/queries/handlers/resolve-row-references-by.handler.js.map +1 -0
- package/dist/src/row/queries/handlers/resolve-row-references-to.handler.d.ts +28 -0
- package/dist/src/row/queries/handlers/resolve-row-references-to.handler.js +91 -0
- package/dist/src/row/queries/handlers/resolve-row-references-to.handler.js.map +1 -0
- package/dist/src/row/queries/impl/get-row-by-id.query.d.ts +12 -0
- package/dist/src/row/queries/impl/get-row-by-id.query.js +10 -0
- package/dist/src/row/queries/impl/get-row-by-id.query.js.map +1 -0
- package/dist/src/row/queries/impl/get-row.query.d.ts +12 -0
- package/dist/src/row/queries/impl/get-row.query.js +10 -0
- package/dist/src/row/queries/impl/get-row.query.js.map +1 -0
- package/dist/src/row/queries/impl/get-rows.query.d.ts +14 -0
- package/dist/src/row/queries/impl/get-rows.query.js +10 -0
- package/dist/src/row/queries/impl/get-rows.query.js.map +1 -0
- package/dist/src/row/queries/impl/index.d.ts +7 -0
- package/dist/src/row/queries/impl/index.js +24 -0
- package/dist/src/row/queries/impl/index.js.map +1 -0
- package/dist/src/row/queries/impl/resolve-row-count-references-by.query.d.ts +12 -0
- package/dist/src/row/queries/impl/resolve-row-count-references-by.query.js +10 -0
- package/dist/src/row/queries/impl/resolve-row-count-references-by.query.js.map +1 -0
- package/dist/src/row/queries/impl/resolve-row-count-references-to.query.d.ts +12 -0
- package/dist/src/row/queries/impl/resolve-row-count-references-to.query.js +10 -0
- package/dist/src/row/queries/impl/resolve-row-count-references-to.query.js.map +1 -0
- package/dist/src/row/queries/impl/resolve-row-references-by.query.d.ts +18 -0
- package/dist/src/row/queries/impl/resolve-row-references-by.query.js +10 -0
- package/dist/src/row/queries/impl/resolve-row-references-by.query.js.map +1 -0
- package/dist/src/row/queries/impl/resolve-row-references-to.query.d.ts +18 -0
- package/dist/src/row/queries/impl/resolve-row-references-to.query.js +10 -0
- package/dist/src/row/queries/impl/resolve-row-references-to.query.js.map +1 -0
- package/dist/src/row/queries/types/get-row-by-id.types.d.ts +2 -0
- package/dist/src/row/queries/types/get-row-by-id.types.js +3 -0
- package/dist/src/row/queries/types/get-row-by-id.types.js.map +1 -0
- package/dist/src/row/queries/types/get-row.types.d.ts +2 -0
- package/dist/src/row/queries/types/get-row.types.js +3 -0
- package/dist/src/row/queries/types/get-row.types.js.map +1 -0
- package/dist/src/row/queries/types/get-rows.types.d.ts +3 -0
- package/dist/src/row/queries/types/get-rows.types.js +3 -0
- package/dist/src/row/queries/types/get-rows.types.js.map +1 -0
- package/dist/src/row/queries/types/index.d.ts +5 -0
- package/dist/src/row/queries/types/index.js +22 -0
- package/dist/src/row/queries/types/index.js.map +1 -0
- package/dist/src/row/queries/types/resolve-row-references-by.types.d.ts +3 -0
- package/dist/src/row/queries/types/resolve-row-references-by.types.js +3 -0
- package/dist/src/row/queries/types/resolve-row-references-by.types.js.map +1 -0
- package/dist/src/row/queries/types/resolve-row-references-to.types.d.ts +3 -0
- package/dist/src/row/queries/types/resolve-row-references-to.types.js +3 -0
- package/dist/src/row/queries/types/resolve-row-references-to.types.js.map +1 -0
- package/dist/src/row/row.module.d.ts +2 -0
- package/dist/src/row/row.module.js +24 -0
- package/dist/src/row/row.module.js.map +1 -0
- package/dist/src/share/commands/handlers/index.d.ts +3 -0
- package/dist/src/share/commands/handlers/index.js +10 -0
- package/dist/src/share/commands/handlers/index.js.map +1 -0
- package/dist/src/share/commands/handlers/notify-endpoints.handler.d.ts +12 -0
- package/dist/src/share/commands/handlers/notify-endpoints.handler.js +46 -0
- package/dist/src/share/commands/handlers/notify-endpoints.handler.js.map +1 -0
- package/dist/src/share/commands/handlers/transactional/move-endpoints.handler.d.ts +11 -0
- package/dist/src/share/commands/handlers/transactional/move-endpoints.handler.js +56 -0
- package/dist/src/share/commands/handlers/transactional/move-endpoints.handler.js.map +1 -0
- package/dist/src/share/commands/impl/index.d.ts +2 -0
- package/dist/src/share/commands/impl/index.js +19 -0
- package/dist/src/share/commands/impl/index.js.map +1 -0
- package/dist/src/share/commands/impl/notify-endpoints.command.d.ts +8 -0
- package/dist/src/share/commands/impl/notify-endpoints.command.js +10 -0
- package/dist/src/share/commands/impl/notify-endpoints.command.js.map +1 -0
- package/dist/src/share/commands/impl/transactional/move-endpoints.command.d.ts +10 -0
- package/dist/src/share/commands/impl/transactional/move-endpoints.command.js +10 -0
- package/dist/src/share/commands/impl/transactional/move-endpoints.command.js.map +1 -0
- package/dist/src/share/commands/utils/getOffsetPagination.d.ts +18 -0
- package/dist/src/share/commands/utils/getOffsetPagination.js +37 -0
- package/dist/src/share/commands/utils/getOffsetPagination.js.map +1 -0
- package/dist/src/share/commands/utils/getRevisionCursorPagination.d.ts +29 -0
- package/dist/src/share/commands/utils/getRevisionCursorPagination.js +70 -0
- package/dist/src/share/commands/utils/getRevisionCursorPagination.js.map +1 -0
- package/dist/src/share/const.d.ts +2 -0
- package/dist/src/share/const.js +14 -0
- package/dist/src/share/const.js.map +1 -0
- package/dist/src/share/pagination.interface.d.ts +15 -0
- package/dist/src/share/pagination.interface.js +3 -0
- package/dist/src/share/pagination.interface.js.map +1 -0
- package/dist/src/share/queries/handlers/index.d.ts +9 -0
- package/dist/src/share/queries/handlers/index.js +22 -0
- package/dist/src/share/queries/handlers/index.js.map +1 -0
- package/dist/src/share/queries/handlers/transactional/find-branch-in-project-or-throw.handler.d.ts +10 -0
- package/dist/src/share/queries/handlers/transactional/find-branch-in-project-or-throw.handler.js +44 -0
- package/dist/src/share/queries/handlers/transactional/find-branch-in-project-or-throw.handler.js.map +1 -0
- package/dist/src/share/queries/handlers/transactional/find-draft-revision-in-branch-or-throw.handler.d.ts +10 -0
- package/dist/src/share/queries/handlers/transactional/find-draft-revision-in-branch-or-throw.handler.js +39 -0
- package/dist/src/share/queries/handlers/transactional/find-draft-revision-in-branch-or-throw.handler.js.map +1 -0
- package/dist/src/share/queries/handlers/transactional/find-head-revision-in-branch-or-throw.handler.d.ts +10 -0
- package/dist/src/share/queries/handlers/transactional/find-head-revision-in-branch-or-throw.handler.js +39 -0
- package/dist/src/share/queries/handlers/transactional/find-head-revision-in-branch-or-throw.handler.js.map +1 -0
- package/dist/src/share/queries/handlers/transactional/find-project-in-organization-or-throw.handler.d.ts +10 -0
- package/dist/src/share/queries/handlers/transactional/find-project-in-organization-or-throw.handler.js +44 -0
- package/dist/src/share/queries/handlers/transactional/find-project-in-organization-or-throw.handler.js.map +1 -0
- package/dist/src/share/queries/handlers/transactional/find-row-in-table-or-throw.handler.d.ts +10 -0
- package/dist/src/share/queries/handlers/transactional/find-row-in-table-or-throw.handler.js +42 -0
- package/dist/src/share/queries/handlers/transactional/find-row-in-table-or-throw.handler.js.map +1 -0
- package/dist/src/share/queries/handlers/transactional/find-rows-in-table-or-throw.handler.d.ts +10 -0
- package/dist/src/share/queries/handlers/transactional/find-rows-in-table-or-throw.handler.js +42 -0
- package/dist/src/share/queries/handlers/transactional/find-rows-in-table-or-throw.handler.js.map +1 -0
- package/dist/src/share/queries/handlers/transactional/find-table-in-revision-or-throw.handler.d.ts +10 -0
- package/dist/src/share/queries/handlers/transactional/find-table-in-revision-or-throw.handler.js +42 -0
- package/dist/src/share/queries/handlers/transactional/find-table-in-revision-or-throw.handler.js.map +1 -0
- package/dist/src/share/queries/handlers/transactional/get-table-schema.handler.d.ts +11 -0
- package/dist/src/share/queries/handlers/transactional/get-table-schema.handler.js +57 -0
- package/dist/src/share/queries/handlers/transactional/get-table-schema.handler.js.map +1 -0
- package/dist/src/share/queries/impl/index.d.ts +7 -0
- package/dist/src/share/queries/impl/index.js +24 -0
- package/dist/src/share/queries/impl/index.js.map +1 -0
- package/dist/src/share/queries/impl/transactional/find-branch-in-project-or-throw.query.d.ts +10 -0
- package/dist/src/share/queries/impl/transactional/find-branch-in-project-or-throw.query.js +10 -0
- package/dist/src/share/queries/impl/transactional/find-branch-in-project-or-throw.query.js.map +1 -0
- package/dist/src/share/queries/impl/transactional/find-draft-revision-in-branch-or-throw.query.d.ts +8 -0
- package/dist/src/share/queries/impl/transactional/find-draft-revision-in-branch-or-throw.query.js +10 -0
- package/dist/src/share/queries/impl/transactional/find-draft-revision-in-branch-or-throw.query.js.map +1 -0
- package/dist/src/share/queries/impl/transactional/find-head-revision-in-branch-or-throw.query.d.ts +8 -0
- package/dist/src/share/queries/impl/transactional/find-head-revision-in-branch-or-throw.query.js +10 -0
- package/dist/src/share/queries/impl/transactional/find-head-revision-in-branch-or-throw.query.js.map +1 -0
- package/dist/src/share/queries/impl/transactional/find-project-in-organization-or-throw.query.d.ts +10 -0
- package/dist/src/share/queries/impl/transactional/find-project-in-organization-or-throw.query.js +10 -0
- package/dist/src/share/queries/impl/transactional/find-project-in-organization-or-throw.query.js.map +1 -0
- package/dist/src/share/queries/impl/transactional/find-row-in-table-or-throw.query.d.ts +10 -0
- package/dist/src/share/queries/impl/transactional/find-row-in-table-or-throw.query.js +10 -0
- package/dist/src/share/queries/impl/transactional/find-row-in-table-or-throw.query.js.map +1 -0
- package/dist/src/share/queries/impl/transactional/find-rows-in-table-or-throw.query.d.ts +10 -0
- package/dist/src/share/queries/impl/transactional/find-rows-in-table-or-throw.query.js +10 -0
- package/dist/src/share/queries/impl/transactional/find-rows-in-table-or-throw.query.js.map +1 -0
- package/dist/src/share/queries/impl/transactional/find-table-in-revision-or-throw.query.d.ts +10 -0
- package/dist/src/share/queries/impl/transactional/find-table-in-revision-or-throw.query.js +10 -0
- package/dist/src/share/queries/impl/transactional/find-table-in-revision-or-throw.query.js.map +1 -0
- package/dist/src/share/queries/impl/transactional/get-table-schema.query.d.ts +10 -0
- package/dist/src/share/queries/impl/transactional/get-table-schema.query.js +10 -0
- package/dist/src/share/queries/impl/transactional/get-table-schema.query.js.map +1 -0
- package/dist/src/share/queries/types/find-branch-in-project.types.d.ts +3 -0
- package/dist/src/share/queries/types/find-branch-in-project.types.js +3 -0
- package/dist/src/share/queries/types/find-branch-in-project.types.js.map +1 -0
- package/dist/src/share/queries/types/find-draft-revision-in-branch.types.d.ts +3 -0
- package/dist/src/share/queries/types/find-draft-revision-in-branch.types.js +3 -0
- package/dist/src/share/queries/types/find-draft-revision-in-branch.types.js.map +1 -0
- package/dist/src/share/queries/types/find-head-revision-in-branch.types.d.ts +3 -0
- package/dist/src/share/queries/types/find-head-revision-in-branch.types.js +3 -0
- package/dist/src/share/queries/types/find-head-revision-in-branch.types.js.map +1 -0
- package/dist/src/share/queries/types/find-project-in-organization.types.d.ts +3 -0
- package/dist/src/share/queries/types/find-project-in-organization.types.js +3 -0
- package/dist/src/share/queries/types/find-project-in-organization.types.js.map +1 -0
- package/dist/src/share/queries/types/find-row-in-table.types.d.ts +4 -0
- package/dist/src/share/queries/types/find-row-in-table.types.js +3 -0
- package/dist/src/share/queries/types/find-row-in-table.types.js.map +1 -0
- package/dist/src/share/queries/types/find-rows-in-table.types.d.ts +5 -0
- package/dist/src/share/queries/types/find-rows-in-table.types.js +3 -0
- package/dist/src/share/queries/types/find-rows-in-table.types.js.map +1 -0
- package/dist/src/share/queries/types/find-table-in-revision.types.d.ts +5 -0
- package/dist/src/share/queries/types/find-table-in-revision.types.js +3 -0
- package/dist/src/share/queries/types/find-table-in-revision.types.js.map +1 -0
- package/dist/src/share/queries/types/index.d.ts +7 -0
- package/dist/src/share/queries/types/index.js +3 -0
- package/dist/src/share/queries/types/index.js.map +1 -0
- package/dist/src/share/references.service.d.ts +22 -0
- package/dist/src/share/references.service.js +94 -0
- package/dist/src/share/references.service.js.map +1 -0
- package/dist/src/share/schema/consts.d.ts +3 -0
- package/dist/src/share/schema/consts.js +8 -0
- package/dist/src/share/schema/consts.js.map +1 -0
- package/dist/src/share/schema/json-patch-schema.d.ts +2 -0
- package/dist/src/share/schema/json-patch-schema.js +71 -0
- package/dist/src/share/schema/json-patch-schema.js.map +1 -0
- package/dist/src/share/schema/meta-schema.d.ts +9 -0
- package/dist/src/share/schema/meta-schema.js +143 -0
- package/dist/src/share/schema/meta-schema.js.map +1 -0
- package/dist/src/share/share.commands.d.ts +8 -0
- package/dist/src/share/share.commands.js +29 -0
- package/dist/src/share/share.commands.js.map +1 -0
- package/dist/src/share/share.module.d.ts +2 -0
- package/dist/src/share/share.module.js +42 -0
- package/dist/src/share/share.module.js.map +1 -0
- package/dist/src/share/share.transactional.commands.d.ts +9 -0
- package/dist/src/share/share.transactional.commands.js +29 -0
- package/dist/src/share/share.transactional.commands.js.map +1 -0
- package/dist/src/share/share.transactional.queries.d.ts +15 -0
- package/dist/src/share/share.transactional.queries.js +73 -0
- package/dist/src/share/share.transactional.queries.js.map +1 -0
- package/dist/src/share/system-organizations.consts.d.ts +3 -0
- package/dist/src/share/system-organizations.consts.js +8 -0
- package/dist/src/share/system-organizations.consts.js.map +1 -0
- package/dist/src/share/system-tables.consts.d.ts +5 -0
- package/dist/src/share/system-tables.consts.js +15 -0
- package/dist/src/share/system-tables.consts.js.map +1 -0
- package/dist/src/share/types/row-with-context.types.d.ts +7 -0
- package/dist/src/share/types/row-with-context.types.js +3 -0
- package/dist/src/share/types/row-with-context.types.js.map +1 -0
- package/dist/src/share/types/table-with-context.types.d.ts +6 -0
- package/dist/src/share/types/table-with-context.types.js +3 -0
- package/dist/src/share/types/table-with-context.types.js.map +1 -0
- package/dist/src/share/types.d.ts +3 -0
- package/dist/src/share/types.js +3 -0
- package/dist/src/share/types.js.map +1 -0
- package/dist/src/share/utils/index.d.ts +1 -0
- package/dist/src/share/utils/index.js +18 -0
- package/dist/src/share/utils/index.js.map +1 -0
- package/dist/src/share/utils/schema/lib/applyPatches.d.ts +6 -0
- package/dist/src/share/utils/schema/lib/applyPatches.js +89 -0
- package/dist/src/share/utils/schema/lib/applyPatches.js.map +1 -0
- package/dist/src/share/utils/schema/lib/createJsonSchemaStore.d.ts +6 -0
- package/dist/src/share/utils/schema/lib/createJsonSchemaStore.js +52 -0
- package/dist/src/share/utils/schema/lib/createJsonSchemaStore.js.map +1 -0
- package/dist/src/share/utils/schema/lib/createJsonValueStore.d.ts +11 -0
- package/dist/src/share/utils/schema/lib/createJsonValueStore.js +54 -0
- package/dist/src/share/utils/schema/lib/createJsonValueStore.js.map +1 -0
- package/dist/src/share/utils/schema/lib/getJsonSchemaStoreByPath.d.ts +2 -0
- package/dist/src/share/utils/schema/lib/getJsonSchemaStoreByPath.js +50 -0
- package/dist/src/share/utils/schema/lib/getJsonSchemaStoreByPath.js.map +1 -0
- package/dist/src/share/utils/schema/lib/getParentForPath.d.ts +4 -0
- package/dist/src/share/utils/schema/lib/getParentForPath.js +45 -0
- package/dist/src/share/utils/schema/lib/getParentForPath.js.map +1 -0
- package/dist/src/share/utils/schema/lib/getPathByStore.d.ts +2 -0
- package/dist/src/share/utils/schema/lib/getPathByStore.js +23 -0
- package/dist/src/share/utils/schema/lib/getPathByStore.js.map +1 -0
- package/dist/src/share/utils/schema/lib/getReferencesFromSchema.d.ts +2 -0
- package/dist/src/share/utils/schema/lib/getReferencesFromSchema.js +16 -0
- package/dist/src/share/utils/schema/lib/getReferencesFromSchema.js.map +1 -0
- package/dist/src/share/utils/schema/lib/getReferencesFromValue.d.ts +6 -0
- package/dist/src/share/utils/schema/lib/getReferencesFromValue.js +24 -0
- package/dist/src/share/utils/schema/lib/getReferencesFromValue.js.map +1 -0
- package/dist/src/share/utils/schema/lib/getValuePathByStore.d.ts +2 -0
- package/dist/src/share/utils/schema/lib/getValuePathByStore.js +23 -0
- package/dist/src/share/utils/schema/lib/getValuePathByStore.js.map +1 -0
- package/dist/src/share/utils/schema/lib/schema-table.d.ts +17 -0
- package/dist/src/share/utils/schema/lib/schema-table.js +69 -0
- package/dist/src/share/utils/schema/lib/schema-table.js.map +1 -0
- package/dist/src/share/utils/schema/lib/traverseStore.d.ts +2 -0
- package/dist/src/share/utils/schema/lib/traverseStore.js +17 -0
- package/dist/src/share/utils/schema/lib/traverseStore.js.map +1 -0
- package/dist/src/share/utils/schema/lib/traverseValue.d.ts +2 -0
- package/dist/src/share/utils/schema/lib/traverseValue.js +19 -0
- package/dist/src/share/utils/schema/lib/traverseValue.js.map +1 -0
- package/dist/src/share/utils/schema/model/schema/json-array.store.d.ts +30 -0
- package/dist/src/share/utils/schema/model/schema/json-array.store.js +70 -0
- package/dist/src/share/utils/schema/model/schema/json-array.store.js.map +1 -0
- package/dist/src/share/utils/schema/model/schema/json-boolean.store.d.ts +17 -0
- package/dist/src/share/utils/schema/model/schema/json-boolean.store.js +40 -0
- package/dist/src/share/utils/schema/model/schema/json-boolean.store.js.map +1 -0
- package/dist/src/share/utils/schema/model/schema/json-number.store.d.ts +17 -0
- package/dist/src/share/utils/schema/model/schema/json-number.store.js +40 -0
- package/dist/src/share/utils/schema/model/schema/json-number.store.js.map +1 -0
- package/dist/src/share/utils/schema/model/schema/json-object.store.d.ts +45 -0
- package/dist/src/share/utils/schema/model/schema/json-object.store.js +142 -0
- package/dist/src/share/utils/schema/model/schema/json-object.store.js.map +1 -0
- package/dist/src/share/utils/schema/model/schema/json-schema.store.d.ts +7 -0
- package/dist/src/share/utils/schema/model/schema/json-schema.store.js +3 -0
- package/dist/src/share/utils/schema/model/schema/json-schema.store.js.map +1 -0
- package/dist/src/share/utils/schema/model/schema/json-string.store.d.ts +18 -0
- package/dist/src/share/utils/schema/model/schema/json-string.store.js +44 -0
- package/dist/src/share/utils/schema/model/schema/json-string.store.js.map +1 -0
- package/dist/src/share/utils/schema/model/value/json-array-value.store.d.ts +16 -0
- package/dist/src/share/utils/schema/model/value/json-array-value.store.js +42 -0
- package/dist/src/share/utils/schema/model/value/json-array-value.store.js.map +1 -0
- package/dist/src/share/utils/schema/model/value/json-boolean-value.store.d.ts +11 -0
- package/dist/src/share/utils/schema/model/value/json-boolean-value.store.js +18 -0
- package/dist/src/share/utils/schema/model/value/json-boolean-value.store.js.map +1 -0
- package/dist/src/share/utils/schema/model/value/json-number-value.store.d.ts +11 -0
- package/dist/src/share/utils/schema/model/value/json-number-value.store.js +18 -0
- package/dist/src/share/utils/schema/model/value/json-number-value.store.js.map +1 -0
- package/dist/src/share/utils/schema/model/value/json-object-value.store.d.ts +19 -0
- package/dist/src/share/utils/schema/model/value/json-object-value.store.js +55 -0
- package/dist/src/share/utils/schema/model/value/json-object-value.store.js.map +1 -0
- package/dist/src/share/utils/schema/model/value/json-string-value.store.d.ts +12 -0
- package/dist/src/share/utils/schema/model/value/json-string-value.store.js +21 -0
- package/dist/src/share/utils/schema/model/value/json-string-value.store.js.map +1 -0
- package/dist/src/share/utils/schema/model/value/json-value.store.d.ts +7 -0
- package/dist/src/share/utils/schema/model/value/json-value.store.js +3 -0
- package/dist/src/share/utils/schema/model/value/json-value.store.js.map +1 -0
- package/dist/src/share/utils/schema/model/value/value-transformation.d.ts +13 -0
- package/dist/src/share/utils/schema/model/value/value-transformation.js +110 -0
- package/dist/src/share/utils/schema/model/value/value-transformation.js.map +1 -0
- package/dist/src/share/utils/schema/types/json-patch.types.d.ts +21 -0
- package/dist/src/share/utils/schema/types/json-patch.types.js +3 -0
- package/dist/src/share/utils/schema/types/json-patch.types.js.map +1 -0
- package/dist/src/share/utils/schema/types/json.types.d.ts +7 -0
- package/dist/src/share/utils/schema/types/json.types.js +3 -0
- package/dist/src/share/utils/schema/types/json.types.js.map +1 -0
- package/dist/src/share/utils/schema/types/schema.types.d.ts +32 -0
- package/dist/src/share/utils/schema/types/schema.types.js +12 -0
- package/dist/src/share/utils/schema/types/schema.types.js.map +1 -0
- package/dist/src/share/utils/sort-revisions/sort-revisions.d.ts +6 -0
- package/dist/src/share/utils/sort-revisions/sort-revisions.js +36 -0
- package/dist/src/share/utils/sort-revisions/sort-revisions.js.map +1 -0
- package/dist/src/table/queries/handlers/get-count-rows-in-table.handler.d.ts +8 -0
- package/dist/src/table/queries/handlers/get-count-rows-in-table.handler.js +33 -0
- package/dist/src/table/queries/handlers/get-count-rows-in-table.handler.js.map +1 -0
- package/dist/src/table/queries/handlers/get-rows-by-table.handler.d.ts +22 -0
- package/dist/src/table/queries/handlers/get-rows-by-table.handler.js +59 -0
- package/dist/src/table/queries/handlers/get-rows-by-table.handler.js.map +1 -0
- package/dist/src/table/queries/handlers/get-table-by-id.handler.d.ts +18 -0
- package/dist/src/table/queries/handlers/get-table-by-id.handler.js +42 -0
- package/dist/src/table/queries/handlers/get-table-by-id.handler.js.map +1 -0
- package/dist/src/table/queries/handlers/get-table.handler.d.ts +14 -0
- package/dist/src/table/queries/handlers/get-table.handler.js +58 -0
- package/dist/src/table/queries/handlers/get-table.handler.js.map +1 -0
- package/dist/src/table/queries/handlers/get-tables.handler.d.ts +11 -0
- package/dist/src/table/queries/handlers/get-tables.handler.js +67 -0
- package/dist/src/table/queries/handlers/get-tables.handler.js.map +1 -0
- package/dist/src/table/queries/handlers/index.d.ts +11 -0
- package/dist/src/table/queries/handlers/index.js +26 -0
- package/dist/src/table/queries/handlers/index.js.map +1 -0
- package/dist/src/table/queries/handlers/resolve-table-count-references-by.handler.d.ts +15 -0
- package/dist/src/table/queries/handlers/resolve-table-count-references-by.handler.js +54 -0
- package/dist/src/table/queries/handlers/resolve-table-count-references-by.handler.js.map +1 -0
- package/dist/src/table/queries/handlers/resolve-table-count-references-to.handler.d.ts +12 -0
- package/dist/src/table/queries/handlers/resolve-table-count-references-to.handler.js +51 -0
- package/dist/src/table/queries/handlers/resolve-table-count-references-to.handler.js.map +1 -0
- package/dist/src/table/queries/handlers/resolve-table-references-by.handler.d.ts +17 -0
- package/dist/src/table/queries/handlers/resolve-table-references-by.handler.js +80 -0
- package/dist/src/table/queries/handlers/resolve-table-references-by.handler.js.map +1 -0
- package/dist/src/table/queries/handlers/resolve-table-references-to.handler.d.ts +14 -0
- package/dist/src/table/queries/handlers/resolve-table-references-to.handler.js +78 -0
- package/dist/src/table/queries/handlers/resolve-table-references-to.handler.js.map +1 -0
- package/dist/src/table/queries/handlers/resolve-table-schema.handler.d.ts +13 -0
- package/dist/src/table/queries/handlers/resolve-table-schema.handler.js +46 -0
- package/dist/src/table/queries/handlers/resolve-table-schema.handler.js.map +1 -0
- package/dist/src/table/queries/impl/get-count-rows-in-table.query.d.ts +8 -0
- package/dist/src/table/queries/impl/get-count-rows-in-table.query.js +10 -0
- package/dist/src/table/queries/impl/get-count-rows-in-table.query.js.map +1 -0
- package/dist/src/table/queries/impl/get-rows-by-table.query.d.ts +16 -0
- package/dist/src/table/queries/impl/get-rows-by-table.query.js +10 -0
- package/dist/src/table/queries/impl/get-rows-by-table.query.js.map +1 -0
- package/dist/src/table/queries/impl/get-table-by-id.query.d.ts +10 -0
- package/dist/src/table/queries/impl/get-table-by-id.query.js +10 -0
- package/dist/src/table/queries/impl/get-table-by-id.query.js.map +1 -0
- package/dist/src/table/queries/impl/get-table.query.d.ts +10 -0
- package/dist/src/table/queries/impl/get-table.query.js +10 -0
- package/dist/src/table/queries/impl/get-table.query.js.map +1 -0
- package/dist/src/table/queries/impl/get-tables.query.d.ts +12 -0
- package/dist/src/table/queries/impl/get-tables.query.js +10 -0
- package/dist/src/table/queries/impl/get-tables.query.js.map +1 -0
- package/dist/src/table/queries/impl/index.d.ts +6 -0
- package/dist/src/table/queries/impl/index.js +23 -0
- package/dist/src/table/queries/impl/index.js.map +1 -0
- package/dist/src/table/queries/impl/resolve-table-count-references-by.query.d.ts +10 -0
- package/dist/src/table/queries/impl/resolve-table-count-references-by.query.js +10 -0
- package/dist/src/table/queries/impl/resolve-table-count-references-by.query.js.map +1 -0
- package/dist/src/table/queries/impl/resolve-table-count-references-to.query.d.ts +10 -0
- package/dist/src/table/queries/impl/resolve-table-count-references-to.query.js +10 -0
- package/dist/src/table/queries/impl/resolve-table-count-references-to.query.js.map +1 -0
- package/dist/src/table/queries/impl/resolve-table-references-by.query.d.ts +14 -0
- package/dist/src/table/queries/impl/resolve-table-references-by.query.js +10 -0
- package/dist/src/table/queries/impl/resolve-table-references-by.query.js.map +1 -0
- package/dist/src/table/queries/impl/resolve-table-references-to.query.d.ts +14 -0
- package/dist/src/table/queries/impl/resolve-table-references-to.query.js +10 -0
- package/dist/src/table/queries/impl/resolve-table-references-to.query.js.map +1 -0
- package/dist/src/table/queries/impl/resolve-table-schema.query.d.ts +10 -0
- package/dist/src/table/queries/impl/resolve-table-schema.query.js +10 -0
- package/dist/src/table/queries/impl/resolve-table-schema.query.js.map +1 -0
- package/dist/src/table/queries/types/get-table-by-id.types.d.ts +2 -0
- package/dist/src/table/queries/types/get-table-by-id.types.js +3 -0
- package/dist/src/table/queries/types/get-table-by-id.types.js.map +1 -0
- package/dist/src/table/queries/types/get-table-rows.types.d.ts +3 -0
- package/dist/src/table/queries/types/get-table-rows.types.js +3 -0
- package/dist/src/table/queries/types/get-table-rows.types.js.map +1 -0
- package/dist/src/table/queries/types/get-table.types.d.ts +2 -0
- package/dist/src/table/queries/types/get-table.types.js +3 -0
- package/dist/src/table/queries/types/get-table.types.js.map +1 -0
- package/dist/src/table/queries/types/get-tables.types.d.ts +3 -0
- package/dist/src/table/queries/types/get-tables.types.js +3 -0
- package/dist/src/table/queries/types/get-tables.types.js.map +1 -0
- package/dist/src/table/queries/types/index.d.ts +6 -0
- package/dist/src/table/queries/types/index.js +23 -0
- package/dist/src/table/queries/types/index.js.map +1 -0
- package/dist/src/table/queries/types/resolve-table-references-by.types.d.ts +3 -0
- package/dist/src/table/queries/types/resolve-table-references-by.types.js +3 -0
- package/dist/src/table/queries/types/resolve-table-references-by.types.js.map +1 -0
- package/dist/src/table/queries/types/resolve-table-references-to.types.d.ts +3 -0
- package/dist/src/table/queries/types/resolve-table-references-to.types.js +3 -0
- package/dist/src/table/queries/types/resolve-table-references-to.types.js.map +1 -0
- package/dist/src/table/table.module.d.ts +2 -0
- package/dist/src/table/table.module.js +31 -0
- package/dist/src/table/table.module.js.map +1 -0
- package/dist/src/user/commands/handlers/index.d.ts +2 -0
- package/dist/src/user/commands/handlers/index.js +19 -0
- package/dist/src/user/commands/handlers/index.js.map +1 -0
- package/dist/src/user/commands/handlers/set-username.handler.d.ts +14 -0
- package/dist/src/user/commands/handlers/set-username.handler.js +101 -0
- package/dist/src/user/commands/handlers/set-username.handler.js.map +1 -0
- package/dist/src/user/commands/handlers/update-password.handler.d.ts +12 -0
- package/dist/src/user/commands/handlers/update-password.handler.js +59 -0
- package/dist/src/user/commands/handlers/update-password.handler.js.map +1 -0
- package/dist/src/user/commands/impl/index.d.ts +2 -0
- package/dist/src/user/commands/impl/index.js +19 -0
- package/dist/src/user/commands/impl/index.js.map +1 -0
- package/dist/src/user/commands/impl/set-username.command.d.ts +11 -0
- package/dist/src/user/commands/impl/set-username.command.js +10 -0
- package/dist/src/user/commands/impl/set-username.command.js.map +1 -0
- package/dist/src/user/commands/impl/update-password.command.d.ts +13 -0
- package/dist/src/user/commands/impl/update-password.command.js +10 -0
- package/dist/src/user/commands/impl/update-password.command.js.map +1 -0
- package/dist/src/user/commands/index.d.ts +2 -0
- package/dist/src/user/commands/index.js +6 -0
- package/dist/src/user/commands/index.js.map +1 -0
- package/dist/src/user/queries/handlers/get-projects-by-user-id.handler.d.ts +19 -0
- package/dist/src/user/queries/handlers/get-projects-by-user-id.handler.js +78 -0
- package/dist/src/user/queries/handlers/get-projects-by-user-id.handler.js.map +1 -0
- package/dist/src/user/queries/handlers/get-user-organization.handler.d.ts +8 -0
- package/dist/src/user/queries/handlers/get-user-organization.handler.js +39 -0
- package/dist/src/user/queries/handlers/get-user-organization.handler.js.map +1 -0
- package/dist/src/user/queries/handlers/get-user.handler.d.ts +12 -0
- package/dist/src/user/queries/handlers/get-user.handler.js +36 -0
- package/dist/src/user/queries/handlers/get-user.handler.js.map +1 -0
- package/dist/src/user/queries/handlers/index.d.ts +3 -0
- package/dist/src/user/queries/handlers/index.js +20 -0
- package/dist/src/user/queries/handlers/index.js.map +1 -0
- package/dist/src/user/queries/impl/get-projects-by-user-id.query.d.ts +15 -0
- package/dist/src/user/queries/impl/get-projects-by-user-id.query.js +10 -0
- package/dist/src/user/queries/impl/get-projects-by-user-id.query.js.map +1 -0
- package/dist/src/user/queries/impl/get-user-organization.query.d.ts +9 -0
- package/dist/src/user/queries/impl/get-user-organization.query.js +10 -0
- package/dist/src/user/queries/impl/get-user-organization.query.js.map +1 -0
- package/dist/src/user/queries/impl/get-user.query.d.ts +10 -0
- package/dist/src/user/queries/impl/get-user.query.js +10 -0
- package/dist/src/user/queries/impl/get-user.query.js.map +1 -0
- package/dist/src/user/queries/impl/index.d.ts +3 -0
- package/dist/src/user/queries/impl/index.js +20 -0
- package/dist/src/user/queries/impl/index.js.map +1 -0
- package/dist/src/user/queries/index.d.ts +2 -0
- package/dist/src/user/queries/index.js +10 -0
- package/dist/src/user/queries/index.js.map +1 -0
- package/dist/src/user/user.module.d.ts +2 -0
- package/dist/src/user/user.module.js +25 -0
- package/dist/src/user/user.module.js.map +1 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -0
- package/package.json +122 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LoginCommand = void 0;
|
|
4
|
+
class LoginCommand {
|
|
5
|
+
constructor(data) {
|
|
6
|
+
this.data = data;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
exports.LoginCommand = LoginCommand;
|
|
10
|
+
//# sourceMappingURL=login.command.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"login.command.js","sourceRoot":"","sources":["../../../../../src/auth/commands/impl/login.command.ts"],"names":[],"mappings":";;;AAAA,MAAa,YAAY;IACvB,YACkB,IAGf;QAHe,SAAI,GAAJ,IAAI,CAGnB;IACA,CAAC;CACL;AAPD,oCAOC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare class SignUpCommand {
|
|
2
|
+
readonly data: {
|
|
3
|
+
email: string;
|
|
4
|
+
username: string;
|
|
5
|
+
password: string;
|
|
6
|
+
};
|
|
7
|
+
constructor(data: {
|
|
8
|
+
email: string;
|
|
9
|
+
username: string;
|
|
10
|
+
password: string;
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
export type SignUpCommandReturnType = boolean;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SignUpCommand = void 0;
|
|
4
|
+
class SignUpCommand {
|
|
5
|
+
constructor(data) {
|
|
6
|
+
this.data = data;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
exports.SignUpCommand = SignUpCommand;
|
|
10
|
+
//# sourceMappingURL=sign-up.command.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sign-up.command.js","sourceRoot":"","sources":["../../../../../src/auth/commands/impl/sign-up.command.ts"],"names":[],"mappings":";;;AAAA,MAAa,aAAa;IACxB,YACkB,IAIf;QAJe,SAAI,GAAJ,IAAI,CAInB;IACA,CAAC;CACL;AARD,sCAQC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { CheckOrganizationPermissionHandler, CheckProjectPermissionHandler, CheckSystemPermissionHandler, ConfirmEmailCodeHandler, CreateUserHandler, LoginGithubHandler, LoginGoogleHandler, LoginHandler, SignUpHandler } from 'src/auth/commands/handlers';
|
|
2
|
+
export declare const AUTH_COMMANDS: (typeof LoginHandler | typeof CreateUserHandler | typeof CheckSystemPermissionHandler | typeof CheckOrganizationPermissionHandler | typeof CheckProjectPermissionHandler | typeof SignUpHandler | typeof LoginGoogleHandler | typeof LoginGithubHandler | typeof ConfirmEmailCodeHandler)[];
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AUTH_COMMANDS = void 0;
|
|
4
|
+
const handlers_1 = require("./handlers");
|
|
5
|
+
exports.AUTH_COMMANDS = [
|
|
6
|
+
handlers_1.LoginHandler,
|
|
7
|
+
handlers_1.CreateUserHandler,
|
|
8
|
+
handlers_1.CheckSystemPermissionHandler,
|
|
9
|
+
handlers_1.CheckProjectPermissionHandler,
|
|
10
|
+
handlers_1.CheckOrganizationPermissionHandler,
|
|
11
|
+
handlers_1.SignUpHandler,
|
|
12
|
+
handlers_1.ConfirmEmailCodeHandler,
|
|
13
|
+
handlers_1.LoginGoogleHandler,
|
|
14
|
+
handlers_1.LoginGithubHandler,
|
|
15
|
+
];
|
|
16
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/auth/commands/index.ts"],"names":[],"mappings":";;;AAAA,yCAUoC;AAEvB,QAAA,aAAa,GAAG;IAC3B,uBAAY;IACZ,4BAAiB;IACjB,uCAA4B;IAC5B,wCAA6B;IAC7B,6CAAkC;IAClC,wBAAa;IACb,kCAAuB;IACvB,6BAAkB;IAClB,6BAAkB;CACnB,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
export declare enum UserRole {
|
|
2
|
+
systemAdmin = "systemAdmin",
|
|
3
|
+
systemFullApiRead = "systemFullApiRead",
|
|
4
|
+
systemUser = "systemUser",
|
|
5
|
+
organizationOwner = "organizationOwner",
|
|
6
|
+
organizationAdmin = "organizationAdmin",
|
|
7
|
+
developer = "developer",
|
|
8
|
+
editor = "editor",
|
|
9
|
+
reader = "reader",
|
|
10
|
+
guest = "guest",
|
|
11
|
+
user = "user"
|
|
12
|
+
}
|
|
13
|
+
export declare enum UserSystemRoles {
|
|
14
|
+
systemAdmin = "systemAdmin",
|
|
15
|
+
systemFullApiRead = "systemFullApiRead",
|
|
16
|
+
systemUser = "systemUser"
|
|
17
|
+
}
|
|
18
|
+
export declare enum UserOrganizationRoles {
|
|
19
|
+
organizationOwner = "organizationOwner",
|
|
20
|
+
organizationAdmin = "organizationAdmin",
|
|
21
|
+
developer = "developer",
|
|
22
|
+
editor = "editor",
|
|
23
|
+
reader = "reader"
|
|
24
|
+
}
|
|
25
|
+
export declare enum UserProjectRoles {
|
|
26
|
+
developer = "developer",
|
|
27
|
+
editor = "editor",
|
|
28
|
+
reader = "reader"
|
|
29
|
+
}
|
|
30
|
+
export declare const isValidSystemRole: (roleId: string) => boolean;
|
|
31
|
+
export declare const isValidOrganizationRole: (roleId: string) => boolean;
|
|
32
|
+
export declare const isValidProjectRole: (roleId: string) => boolean;
|
|
33
|
+
export declare enum PermissionAction {
|
|
34
|
+
create = "create",
|
|
35
|
+
delete = "delete",
|
|
36
|
+
read = "read",
|
|
37
|
+
revert = "revert",
|
|
38
|
+
update = "update",
|
|
39
|
+
add = "add"
|
|
40
|
+
}
|
|
41
|
+
export declare enum PermissionSubject {
|
|
42
|
+
Organization = "Organization",
|
|
43
|
+
Project = "Project",
|
|
44
|
+
Branch = "Branch",
|
|
45
|
+
Revision = "Revision",
|
|
46
|
+
Table = "Table",
|
|
47
|
+
Row = "Row",
|
|
48
|
+
Endpoint = "Endpoint",
|
|
49
|
+
User = "User"
|
|
50
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PermissionSubject = exports.PermissionAction = exports.isValidProjectRole = exports.isValidOrganizationRole = exports.isValidSystemRole = exports.UserProjectRoles = exports.UserOrganizationRoles = exports.UserSystemRoles = exports.UserRole = void 0;
|
|
4
|
+
var UserRole;
|
|
5
|
+
(function (UserRole) {
|
|
6
|
+
UserRole["systemAdmin"] = "systemAdmin";
|
|
7
|
+
UserRole["systemFullApiRead"] = "systemFullApiRead";
|
|
8
|
+
UserRole["systemUser"] = "systemUser";
|
|
9
|
+
UserRole["organizationOwner"] = "organizationOwner";
|
|
10
|
+
UserRole["organizationAdmin"] = "organizationAdmin";
|
|
11
|
+
UserRole["developer"] = "developer";
|
|
12
|
+
UserRole["editor"] = "editor";
|
|
13
|
+
UserRole["reader"] = "reader";
|
|
14
|
+
UserRole["guest"] = "guest";
|
|
15
|
+
UserRole["user"] = "user";
|
|
16
|
+
})(UserRole || (exports.UserRole = UserRole = {}));
|
|
17
|
+
var UserSystemRoles;
|
|
18
|
+
(function (UserSystemRoles) {
|
|
19
|
+
UserSystemRoles["systemAdmin"] = "systemAdmin";
|
|
20
|
+
UserSystemRoles["systemFullApiRead"] = "systemFullApiRead";
|
|
21
|
+
UserSystemRoles["systemUser"] = "systemUser";
|
|
22
|
+
})(UserSystemRoles || (exports.UserSystemRoles = UserSystemRoles = {}));
|
|
23
|
+
var UserOrganizationRoles;
|
|
24
|
+
(function (UserOrganizationRoles) {
|
|
25
|
+
UserOrganizationRoles["organizationOwner"] = "organizationOwner";
|
|
26
|
+
UserOrganizationRoles["organizationAdmin"] = "organizationAdmin";
|
|
27
|
+
UserOrganizationRoles["developer"] = "developer";
|
|
28
|
+
UserOrganizationRoles["editor"] = "editor";
|
|
29
|
+
UserOrganizationRoles["reader"] = "reader";
|
|
30
|
+
})(UserOrganizationRoles || (exports.UserOrganizationRoles = UserOrganizationRoles = {}));
|
|
31
|
+
var UserProjectRoles;
|
|
32
|
+
(function (UserProjectRoles) {
|
|
33
|
+
UserProjectRoles["developer"] = "developer";
|
|
34
|
+
UserProjectRoles["editor"] = "editor";
|
|
35
|
+
UserProjectRoles["reader"] = "reader";
|
|
36
|
+
})(UserProjectRoles || (exports.UserProjectRoles = UserProjectRoles = {}));
|
|
37
|
+
const systemRoles = Object.values(UserSystemRoles).map((role) => role.toString());
|
|
38
|
+
const organizationRoles = Object.values(UserOrganizationRoles).map((role) => role.toString());
|
|
39
|
+
const projectRoles = Object.values(UserProjectRoles).map((role) => role.toString());
|
|
40
|
+
const isValidSystemRole = (roleId) => systemRoles.includes(roleId);
|
|
41
|
+
exports.isValidSystemRole = isValidSystemRole;
|
|
42
|
+
const isValidOrganizationRole = (roleId) => organizationRoles.includes(roleId);
|
|
43
|
+
exports.isValidOrganizationRole = isValidOrganizationRole;
|
|
44
|
+
const isValidProjectRole = (roleId) => projectRoles.includes(roleId);
|
|
45
|
+
exports.isValidProjectRole = isValidProjectRole;
|
|
46
|
+
var PermissionAction;
|
|
47
|
+
(function (PermissionAction) {
|
|
48
|
+
PermissionAction["create"] = "create";
|
|
49
|
+
PermissionAction["delete"] = "delete";
|
|
50
|
+
PermissionAction["read"] = "read";
|
|
51
|
+
PermissionAction["revert"] = "revert";
|
|
52
|
+
PermissionAction["update"] = "update";
|
|
53
|
+
PermissionAction["add"] = "add";
|
|
54
|
+
})(PermissionAction || (exports.PermissionAction = PermissionAction = {}));
|
|
55
|
+
var PermissionSubject;
|
|
56
|
+
(function (PermissionSubject) {
|
|
57
|
+
PermissionSubject["Organization"] = "Organization";
|
|
58
|
+
PermissionSubject["Project"] = "Project";
|
|
59
|
+
PermissionSubject["Branch"] = "Branch";
|
|
60
|
+
PermissionSubject["Revision"] = "Revision";
|
|
61
|
+
PermissionSubject["Table"] = "Table";
|
|
62
|
+
PermissionSubject["Row"] = "Row";
|
|
63
|
+
PermissionSubject["Endpoint"] = "Endpoint";
|
|
64
|
+
PermissionSubject["User"] = "User";
|
|
65
|
+
})(PermissionSubject || (exports.PermissionSubject = PermissionSubject = {}));
|
|
66
|
+
//# sourceMappingURL=consts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"consts.js","sourceRoot":"","sources":["../../../src/auth/consts.ts"],"names":[],"mappings":";;;AAAA,IAAY,QAWX;AAXD,WAAY,QAAQ;IAClB,uCAA2B,CAAA;IAC3B,mDAAuC,CAAA;IACvC,qCAAyB,CAAA;IACzB,mDAAuC,CAAA;IACvC,mDAAuC,CAAA;IACvC,mCAAuB,CAAA;IACvB,6BAAiB,CAAA;IACjB,6BAAiB,CAAA;IACjB,2BAAe,CAAA;IACf,yBAAa,CAAA;AACf,CAAC,EAXW,QAAQ,wBAAR,QAAQ,QAWnB;AAED,IAAY,eAIX;AAJD,WAAY,eAAe;IACzB,8CAAkC,CAAA;IAClC,0DAA8C,CAAA;IAC9C,4CAAgC,CAAA;AAClC,CAAC,EAJW,eAAe,+BAAf,eAAe,QAI1B;AAED,IAAY,qBAMX;AAND,WAAY,qBAAqB;IAC/B,gEAA8C,CAAA;IAC9C,gEAA8C,CAAA;IAC9C,gDAA8B,CAAA;IAC9B,0CAAwB,CAAA;IACxB,0CAAwB,CAAA;AAC1B,CAAC,EANW,qBAAqB,qCAArB,qBAAqB,QAMhC;AAED,IAAY,gBAIX;AAJD,WAAY,gBAAgB;IAC1B,2CAA8B,CAAA;IAC9B,qCAAwB,CAAA;IACxB,qCAAwB,CAAA;AAC1B,CAAC,EAJW,gBAAgB,gCAAhB,gBAAgB,QAI3B;AAED,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAC9D,IAAI,CAAC,QAAQ,EAAE,CAChB,CAAC;AAEF,MAAM,iBAAiB,GAAG,MAAM,CAAC,MAAM,CAAC,qBAAqB,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAC1E,IAAI,CAAC,QAAQ,EAAE,CAChB,CAAC;AAEF,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAChE,IAAI,CAAC,QAAQ,EAAE,CAChB,CAAC;AAEK,MAAM,iBAAiB,GAAG,CAAC,MAAc,EAAE,EAAE,CAClD,WAAW,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;AADlB,QAAA,iBAAiB,qBACC;AAExB,MAAM,uBAAuB,GAAG,CAAC,MAAc,EAAE,EAAE,CACxD,iBAAiB,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;AADxB,QAAA,uBAAuB,2BACC;AAE9B,MAAM,kBAAkB,GAAG,CAAC,MAAc,EAAE,EAAE,CACnD,YAAY,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;AADnB,QAAA,kBAAkB,sBACC;AAEhC,IAAY,gBAOX;AAPD,WAAY,gBAAgB;IAC1B,qCAAiB,CAAA;IACjB,qCAAiB,CAAA;IACjB,iCAAa,CAAA;IACb,qCAAiB,CAAA;IACjB,qCAAiB,CAAA;IACjB,+BAAW,CAAA;AACb,CAAC,EAPW,gBAAgB,gCAAhB,gBAAgB,QAO3B;AAED,IAAY,iBASX;AATD,WAAY,iBAAiB;IAC3B,kDAA6B,CAAA;IAC7B,wCAAmB,CAAA;IACnB,sCAAiB,CAAA;IACjB,0CAAqB,CAAA;IACrB,oCAAe,CAAA;IACf,gCAAW,CAAA;IACX,0CAAqB,CAAA;IACrB,kCAAa,CAAA;AACf,CAAC,EATW,iBAAiB,iCAAjB,iBAAiB,QAS5B"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ConfigService } from '@nestjs/config';
|
|
2
|
+
export declare class GitHubAuthService {
|
|
3
|
+
private readonly configService;
|
|
4
|
+
readonly clientId: string | undefined;
|
|
5
|
+
private readonly secretId;
|
|
6
|
+
constructor(configService: ConfigService);
|
|
7
|
+
get isAvailable(): boolean;
|
|
8
|
+
getEmail(code: string): Promise<string>;
|
|
9
|
+
private exchangeCodeForToken;
|
|
10
|
+
private getUserData;
|
|
11
|
+
private getUserEmails;
|
|
12
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.GitHubAuthService = void 0;
|
|
13
|
+
const common_1 = require("@nestjs/common");
|
|
14
|
+
const config_1 = require("@nestjs/config");
|
|
15
|
+
let GitHubAuthService = class GitHubAuthService {
|
|
16
|
+
constructor(configService) {
|
|
17
|
+
this.configService = configService;
|
|
18
|
+
this.clientId = this.configService.get('OAUTH_GITHUB_CLIENT_ID');
|
|
19
|
+
this.secretId = this.configService.get('OAUTH_GITHUB_SECRET_ID');
|
|
20
|
+
}
|
|
21
|
+
get isAvailable() {
|
|
22
|
+
return Boolean(this.clientId && this.secretId);
|
|
23
|
+
}
|
|
24
|
+
async getEmail(code) {
|
|
25
|
+
const token = await this.exchangeCodeForToken(code);
|
|
26
|
+
const userEmail = (await this.getUserData(token)) || (await this.getUserEmails(token));
|
|
27
|
+
if (!userEmail) {
|
|
28
|
+
throw new Error('Invalid user email');
|
|
29
|
+
}
|
|
30
|
+
return userEmail;
|
|
31
|
+
}
|
|
32
|
+
async exchangeCodeForToken(code) {
|
|
33
|
+
const url = 'https://github.com/login/oauth/access_token';
|
|
34
|
+
if (!this.clientId) {
|
|
35
|
+
throw new Error('Client ID is missing');
|
|
36
|
+
}
|
|
37
|
+
if (!this.secretId) {
|
|
38
|
+
throw new Error('Secret ID is missing');
|
|
39
|
+
}
|
|
40
|
+
const params = new URLSearchParams({
|
|
41
|
+
client_id: this.clientId,
|
|
42
|
+
client_secret: this.secretId,
|
|
43
|
+
code,
|
|
44
|
+
});
|
|
45
|
+
const response = await fetch(url, {
|
|
46
|
+
method: 'POST',
|
|
47
|
+
headers: {
|
|
48
|
+
Accept: 'application/json',
|
|
49
|
+
'Content-Type': 'application/x-www-form-urlencoded',
|
|
50
|
+
},
|
|
51
|
+
body: params.toString(),
|
|
52
|
+
});
|
|
53
|
+
return (await response.json()).access_token;
|
|
54
|
+
}
|
|
55
|
+
async getUserData(accessToken) {
|
|
56
|
+
const url = 'https://api.github.com/user';
|
|
57
|
+
const response = await fetch(url, {
|
|
58
|
+
method: 'GET',
|
|
59
|
+
headers: {
|
|
60
|
+
Authorization: `Bearer ${accessToken}`,
|
|
61
|
+
Accept: 'application/json',
|
|
62
|
+
},
|
|
63
|
+
});
|
|
64
|
+
const data = await response.json();
|
|
65
|
+
return data.email;
|
|
66
|
+
}
|
|
67
|
+
async getUserEmails(accessToken) {
|
|
68
|
+
const url = 'https://api.github.com/user/emails';
|
|
69
|
+
const response = await fetch(url, {
|
|
70
|
+
method: 'GET',
|
|
71
|
+
headers: {
|
|
72
|
+
Authorization: `Bearer ${accessToken}`,
|
|
73
|
+
Accept: 'application/json',
|
|
74
|
+
},
|
|
75
|
+
});
|
|
76
|
+
const emails = await response.json();
|
|
77
|
+
const primaryEmail = emails.find((email) => email.primary);
|
|
78
|
+
return primaryEmail?.email;
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
exports.GitHubAuthService = GitHubAuthService;
|
|
82
|
+
exports.GitHubAuthService = GitHubAuthService = __decorate([
|
|
83
|
+
(0, common_1.Injectable)(),
|
|
84
|
+
__metadata("design:paramtypes", [config_1.ConfigService])
|
|
85
|
+
], GitHubAuthService);
|
|
86
|
+
//# sourceMappingURL=github-oauth.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"github-oauth.service.js","sourceRoot":"","sources":["../../../src/auth/github-oauth.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,2CAA+C;AAGxC,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;IAI5B,YAA6B,aAA4B;QAA5B,kBAAa,GAAb,aAAa,CAAe;QACvD,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,aAAa,CAAC,GAAG,CAAS,wBAAwB,CAAC,CAAC;QACzE,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,aAAa,CAAC,GAAG,CAAS,wBAAwB,CAAC,CAAC;IAC3E,CAAC;IAED,IAAW,WAAW;QACpB,OAAO,OAAO,CAAC,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,QAAQ,CAAC,CAAC;IACjD,CAAC;IAEM,KAAK,CAAC,QAAQ,CAAC,IAAY;QAChC,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC,CAAC;QACpD,MAAM,SAAS,GACb,CAAC,MAAM,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,MAAM,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,CAAC;QAEvE,IAAI,CAAC,SAAS,EAAE,CAAC;YACf,MAAM,IAAI,KAAK,CAAC,oBAAoB,CAAC,CAAC;QACxC,CAAC;QAED,OAAO,SAAS,CAAC;IACnB,CAAC;IAEO,KAAK,CAAC,oBAAoB,CAAC,IAAY;QAC7C,MAAM,GAAG,GAAG,6CAA6C,CAAC;QAE1D,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC;YACnB,MAAM,IAAI,KAAK,CAAC,sBAAsB,CAAC,CAAC;QAC1C,CAAC;QAED,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC;YACnB,MAAM,IAAI,KAAK,CAAC,sBAAsB,CAAC,CAAC;QAC1C,CAAC;QAED,MAAM,MAAM,GAAG,IAAI,eAAe,CAAC;YACjC,SAAS,EAAE,IAAI,CAAC,QAAQ;YACxB,aAAa,EAAE,IAAI,CAAC,QAAQ;YAC5B,IAAI;SACL,CAAC,CAAC;QAEH,MAAM,QAAQ,GAAG,MAAM,KAAK,CAAC,GAAG,EAAE;YAChC,MAAM,EAAE,MAAM;YACd,OAAO,EAAE;gBACP,MAAM,EAAE,kBAAkB;gBAC1B,cAAc,EAAE,mCAAmC;aACpD;YACD,IAAI,EAAE,MAAM,CAAC,QAAQ,EAAE;SACxB,CAAC,CAAC;QAEH,OAAO,CAAC,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,YAAY,CAAC;IAC9C,CAAC;IAEO,KAAK,CAAC,WAAW,CAAC,WAAmB;QAC3C,MAAM,GAAG,GAAG,6BAA6B,CAAC;QAE1C,MAAM,QAAQ,GAAG,MAAM,KAAK,CAAC,GAAG,EAAE;YAChC,MAAM,EAAE,KAAK;YACb,OAAO,EAAE;gBACP,aAAa,EAAE,UAAU,WAAW,EAAE;gBACtC,MAAM,EAAE,kBAAkB;aAC3B;SACF,CAAC,CAAC;QAEH,MAAM,IAAI,GAAuB,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;QACvD,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;IAEO,KAAK,CAAC,aAAa,CACzB,WAAmB;QAEnB,MAAM,GAAG,GAAG,oCAAoC,CAAC;QAEjD,MAAM,QAAQ,GAAG,MAAM,KAAK,CAAC,GAAG,EAAE;YAChC,MAAM,EAAE,KAAK;YACb,OAAO,EAAE;gBACP,aAAa,EAAE,UAAU,WAAW,EAAE;gBACtC,MAAM,EAAE,kBAAkB;aAC3B;SACF,CAAC,CAAC;QAEH,MAAM,MAAM,GAA0C,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;QAC5E,MAAM,YAAY,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QAC3D,OAAO,YAAY,EAAE,KAAK,CAAC;IAC7B,CAAC;CACF,CAAA;AAtFY,8CAAiB;4BAAjB,iBAAiB;IAD7B,IAAA,mBAAU,GAAE;qCAKiC,sBAAa;GAJ9C,iBAAiB,CAsF7B"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ConfigService } from '@nestjs/config';
|
|
2
|
+
import { JwtService } from '@nestjs/jwt';
|
|
3
|
+
export declare class GoogleOauthService {
|
|
4
|
+
private readonly configService;
|
|
5
|
+
private readonly jwtService;
|
|
6
|
+
readonly clientId: string | undefined;
|
|
7
|
+
private readonly secretId;
|
|
8
|
+
constructor(configService: ConfigService, jwtService: JwtService);
|
|
9
|
+
get isAvailable(): boolean;
|
|
10
|
+
getInfo(redirectUrl: string, authCode: string): Promise<{
|
|
11
|
+
email: string;
|
|
12
|
+
}>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.GoogleOauthService = void 0;
|
|
13
|
+
const common_1 = require("@nestjs/common");
|
|
14
|
+
const config_1 = require("@nestjs/config");
|
|
15
|
+
const jwt_1 = require("@nestjs/jwt");
|
|
16
|
+
let GoogleOauthService = class GoogleOauthService {
|
|
17
|
+
constructor(configService, jwtService) {
|
|
18
|
+
this.configService = configService;
|
|
19
|
+
this.jwtService = jwtService;
|
|
20
|
+
this.clientId = this.configService.get('OAUTH_GOOGLE_CLIENT_ID');
|
|
21
|
+
this.secretId = this.configService.get('OAUTH_GOOGLE_SECRET_ID');
|
|
22
|
+
}
|
|
23
|
+
get isAvailable() {
|
|
24
|
+
return Boolean(this.clientId && this.secretId);
|
|
25
|
+
}
|
|
26
|
+
async getInfo(redirectUrl, authCode) {
|
|
27
|
+
if (!this.clientId) {
|
|
28
|
+
throw new Error('Client ID is missing');
|
|
29
|
+
}
|
|
30
|
+
if (!this.secretId) {
|
|
31
|
+
throw new Error('Secret ID is missing');
|
|
32
|
+
}
|
|
33
|
+
const params = new URLSearchParams({
|
|
34
|
+
code: authCode,
|
|
35
|
+
client_id: this.clientId,
|
|
36
|
+
client_secret: this.secretId,
|
|
37
|
+
redirect_uri: redirectUrl,
|
|
38
|
+
grant_type: 'authorization_code',
|
|
39
|
+
});
|
|
40
|
+
const response = await fetch('https://oauth2.googleapis.com/token', {
|
|
41
|
+
method: 'POST',
|
|
42
|
+
headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
|
|
43
|
+
body: params.toString(),
|
|
44
|
+
});
|
|
45
|
+
const { email } = this.jwtService.decode((await response.json()).id_token);
|
|
46
|
+
return {
|
|
47
|
+
email,
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
exports.GoogleOauthService = GoogleOauthService;
|
|
52
|
+
exports.GoogleOauthService = GoogleOauthService = __decorate([
|
|
53
|
+
(0, common_1.Injectable)(),
|
|
54
|
+
__metadata("design:paramtypes", [config_1.ConfigService,
|
|
55
|
+
jwt_1.JwtService])
|
|
56
|
+
], GoogleOauthService);
|
|
57
|
+
//# sourceMappingURL=google-oauth.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"google-oauth.service.js","sourceRoot":"","sources":["../../../src/auth/google-oauth.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,2CAA+C;AAC/C,qCAAyC;AAGlC,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;IAI7B,YACmB,aAA4B,EAC5B,UAAsB;QADtB,kBAAa,GAAb,aAAa,CAAe;QAC5B,eAAU,GAAV,UAAU,CAAY;QAEvC,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,aAAa,CAAC,GAAG,CAAS,wBAAwB,CAAC,CAAC;QACzE,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,aAAa,CAAC,GAAG,CAAS,wBAAwB,CAAC,CAAC;IAC3E,CAAC;IAED,IAAW,WAAW;QACpB,OAAO,OAAO,CAAC,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,QAAQ,CAAC,CAAC;IACjD,CAAC;IAED,KAAK,CAAC,OAAO,CACX,WAAmB,EACnB,QAAgB;QAEhB,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC;YACnB,MAAM,IAAI,KAAK,CAAC,sBAAsB,CAAC,CAAC;QAC1C,CAAC;QAED,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC;YACnB,MAAM,IAAI,KAAK,CAAC,sBAAsB,CAAC,CAAC;QAC1C,CAAC;QAED,MAAM,MAAM,GAAG,IAAI,eAAe,CAAC;YACjC,IAAI,EAAE,QAAQ;YACd,SAAS,EAAE,IAAI,CAAC,QAAQ;YACxB,aAAa,EAAE,IAAI,CAAC,QAAQ;YAC5B,YAAY,EAAE,WAAW;YACzB,UAAU,EAAE,oBAAoB;SACjC,CAAC,CAAC;QAEH,MAAM,QAAQ,GAAG,MAAM,KAAK,CAAC,qCAAqC,EAAE;YAClE,MAAM,EAAE,MAAM;YACd,OAAO,EAAE,EAAE,cAAc,EAAE,mCAAmC,EAAE;YAChE,IAAI,EAAE,MAAM,CAAC,QAAQ,EAAE;SACxB,CAAC,CAAC;QAEH,MAAM,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC,UAAU,CAAC,MAAM,CACtC,CAAC,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,QAAQ,CAGjC,CAAC;QAEF,OAAO;YACL,KAAK;SACN,CAAC;IACJ,CAAC;CACF,CAAA;AApDY,gDAAkB;6BAAlB,kBAAkB;IAD9B,IAAA,mBAAU,GAAE;qCAMuB,sBAAa;QAChB,gBAAU;GAN9B,kBAAkB,CAoD9B"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { CanActivate, ExecutionContext } from '@nestjs/common';
|
|
2
|
+
import { Reflector } from '@nestjs/core';
|
|
3
|
+
import { CommandBus } from '@nestjs/cqrs';
|
|
4
|
+
import { IPermissionParams } from 'src/auth/guards/permission-params';
|
|
5
|
+
import { IOptionalAuthUser } from 'src/auth/types';
|
|
6
|
+
export declare abstract class BasePermissionGuard<T = Record<string, never>> implements CanActivate {
|
|
7
|
+
protected reflector: Reflector;
|
|
8
|
+
protected commandBus: CommandBus;
|
|
9
|
+
constructor(reflector: Reflector, commandBus: CommandBus);
|
|
10
|
+
protected getFromHttpContext(context: ExecutionContext): {
|
|
11
|
+
user: IOptionalAuthUser;
|
|
12
|
+
params: T;
|
|
13
|
+
};
|
|
14
|
+
protected getFromGqlContext(context: ExecutionContext): {
|
|
15
|
+
user: IOptionalAuthUser;
|
|
16
|
+
params: T;
|
|
17
|
+
};
|
|
18
|
+
protected abstract getParams(context: ExecutionContext): {
|
|
19
|
+
user: IOptionalAuthUser;
|
|
20
|
+
params: T;
|
|
21
|
+
};
|
|
22
|
+
protected abstract getCommand(params: T, permissions: IPermissionParams[], userId?: string): any;
|
|
23
|
+
canActivate(context: ExecutionContext): Promise<boolean>;
|
|
24
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.BasePermissionGuard = void 0;
|
|
13
|
+
const common_1 = require("@nestjs/common");
|
|
14
|
+
const core_1 = require("@nestjs/core");
|
|
15
|
+
const cqrs_1 = require("@nestjs/cqrs");
|
|
16
|
+
const graphql_1 = require("@nestjs/graphql");
|
|
17
|
+
const permission_params_1 = require("./permission-params");
|
|
18
|
+
let BasePermissionGuard = class BasePermissionGuard {
|
|
19
|
+
constructor(reflector, commandBus) {
|
|
20
|
+
this.reflector = reflector;
|
|
21
|
+
this.commandBus = commandBus;
|
|
22
|
+
}
|
|
23
|
+
getFromHttpContext(context) {
|
|
24
|
+
return context.switchToHttp().getRequest();
|
|
25
|
+
}
|
|
26
|
+
getFromGqlContext(context) {
|
|
27
|
+
const gqlContext = graphql_1.GqlExecutionContext.create(context);
|
|
28
|
+
const user = gqlContext.getContext()
|
|
29
|
+
.req.user;
|
|
30
|
+
const args = gqlContext.getArgs();
|
|
31
|
+
return {
|
|
32
|
+
user,
|
|
33
|
+
params: args.data,
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
async canActivate(context) {
|
|
37
|
+
const permissions = [];
|
|
38
|
+
const classPermission = this.reflector.get(permission_params_1.PERMISSION_PARAMS_KEY, context.getClass());
|
|
39
|
+
if (classPermission) {
|
|
40
|
+
permissions.push(classPermission);
|
|
41
|
+
}
|
|
42
|
+
const methodPermission = this.reflector.get(permission_params_1.PERMISSION_PARAMS_KEY, context.getHandler());
|
|
43
|
+
if (methodPermission) {
|
|
44
|
+
permissions.push(methodPermission);
|
|
45
|
+
}
|
|
46
|
+
const { user, params } = this.getParams(context);
|
|
47
|
+
if (!params) {
|
|
48
|
+
throw new common_1.NotFoundException('Required parameters not found');
|
|
49
|
+
}
|
|
50
|
+
try {
|
|
51
|
+
const command = this.getCommand(params, permissions, user?.userId);
|
|
52
|
+
await this.commandBus.execute(command);
|
|
53
|
+
}
|
|
54
|
+
catch (e) {
|
|
55
|
+
console.error(e);
|
|
56
|
+
if (e instanceof Error) {
|
|
57
|
+
throw new common_1.ForbiddenException(e.message);
|
|
58
|
+
}
|
|
59
|
+
else {
|
|
60
|
+
throw new common_1.InternalServerErrorException();
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
return true;
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
exports.BasePermissionGuard = BasePermissionGuard;
|
|
67
|
+
exports.BasePermissionGuard = BasePermissionGuard = __decorate([
|
|
68
|
+
(0, common_1.Injectable)(),
|
|
69
|
+
__metadata("design:paramtypes", [core_1.Reflector,
|
|
70
|
+
cqrs_1.CommandBus])
|
|
71
|
+
], BasePermissionGuard);
|
|
72
|
+
//# sourceMappingURL=base-persmission.guard.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base-persmission.guard.js","sourceRoot":"","sources":["../../../../src/auth/guards/base-persmission.guard.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAOwB;AACxB,uCAAyC;AACzC,uCAA0C;AAC1C,6CAAsD;AACtD,2DAG2C;AAIpC,IAAe,mBAAmB,GAAlC,MAAe,mBAAmB;IAGvC,YACY,SAAoB,EACpB,UAAsB;QADtB,cAAS,GAAT,SAAS,CAAW;QACpB,eAAU,GAAV,UAAU,CAAY;IAC/B,CAAC;IAEM,kBAAkB,CAAC,OAAyB;QACpD,OAAO,OAAO,CAAC,YAAY,EAAE,CAAC,UAAU,EAGpC,CAAC;IACP,CAAC;IAES,iBAAiB,CAAC,OAAyB;QACnD,MAAM,UAAU,GAAG,6BAAmB,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QACvD,MAAM,IAAI,GAAG,UAAU,CAAC,UAAU,EAAwC;aACvE,GAAG,CAAC,IAAI,CAAC;QACZ,MAAM,IAAI,GAAG,UAAU,CAAC,OAAO,EAAe,CAAC;QAE/C,OAAO;YACL,IAAI;YACJ,MAAM,EAAE,IAAI,CAAC,IAAI;SAClB,CAAC;IACJ,CAAC;IAaD,KAAK,CAAC,WAAW,CAAC,OAAyB;QACzC,MAAM,WAAW,GAAwB,EAAE,CAAC;QAE5C,MAAM,eAAe,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,CACxC,yCAAqB,EACrB,OAAO,CAAC,QAAQ,EAAE,CACnB,CAAC;QAEF,IAAI,eAAe,EAAE,CAAC;YACpB,WAAW,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QACpC,CAAC;QAED,MAAM,gBAAgB,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,CACzC,yCAAqB,EACrB,OAAO,CAAC,UAAU,EAAE,CACrB,CAAC;QAEF,IAAI,gBAAgB,EAAE,CAAC;YACrB,WAAW,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;QACrC,CAAC;QAED,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;QAEjD,IAAI,CAAC,MAAM,EAAE,CAAC;YACZ,MAAM,IAAI,0BAAiB,CAAC,+BAA+B,CAAC,CAAC;QAC/D,CAAC;QAED,IAAI,CAAC;YACH,MAAM,OAAO,GAAG,IAAI,CAAC,UAAU,CAAC,MAAM,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;YACnE,MAAM,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QACzC,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC;YACX,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;YAEjB,IAAI,CAAC,YAAY,KAAK,EAAE,CAAC;gBACvB,MAAM,IAAI,2BAAkB,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;YAC1C,CAAC;iBAAM,CAAC;gBACN,MAAM,IAAI,qCAA4B,EAAE,CAAC;YAC3C,CAAC;QACH,CAAC;QAED,OAAO,IAAI,CAAC;IACd,CAAC;CACF,CAAA;AAhFqB,kDAAmB;8BAAnB,mBAAmB;IADxC,IAAA,mBAAU,GAAE;qCAKY,gBAAS;QACR,iBAAU;GALd,mBAAmB,CAgFxC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ExecutionContext } from '@nestjs/common';
|
|
2
|
+
declare const GqlJwtAuthGuard_base: import("@nestjs/passport").Type<import("@nestjs/passport").IAuthGuard>;
|
|
3
|
+
export declare class GqlJwtAuthGuard extends GqlJwtAuthGuard_base {
|
|
4
|
+
getRequest(context: ExecutionContext): any;
|
|
5
|
+
}
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.GqlJwtAuthGuard = void 0;
|
|
10
|
+
const common_1 = require("@nestjs/common");
|
|
11
|
+
const graphql_1 = require("@nestjs/graphql");
|
|
12
|
+
const passport_1 = require("@nestjs/passport");
|
|
13
|
+
let GqlJwtAuthGuard = class GqlJwtAuthGuard extends (0, passport_1.AuthGuard)('jwt') {
|
|
14
|
+
getRequest(context) {
|
|
15
|
+
const ctx = graphql_1.GqlExecutionContext.create(context);
|
|
16
|
+
return ctx.getContext().req;
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
exports.GqlJwtAuthGuard = GqlJwtAuthGuard;
|
|
20
|
+
exports.GqlJwtAuthGuard = GqlJwtAuthGuard = __decorate([
|
|
21
|
+
(0, common_1.Injectable)()
|
|
22
|
+
], GqlJwtAuthGuard);
|
|
23
|
+
//# sourceMappingURL=gql-jwt-auth-guard.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gql-jwt-auth-guard.service.js","sourceRoot":"","sources":["../../../../../src/auth/guards/jwt/gql-jwt-auth-guard.service.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAA8D;AAC9D,6CAAsD;AACtD,+CAA6C;AAGtC,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,IAAA,oBAAS,EAAC,KAAK,CAAC;IACnD,UAAU,CAAC,OAAyB;QAClC,MAAM,GAAG,GAAG,6BAAmB,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QAChD,OAAO,GAAG,CAAC,UAAU,EAAE,CAAC,GAAG,CAAC;IAC9B,CAAC;CACF,CAAA;AALY,0CAAe;0BAAf,eAAe;IAD3B,IAAA,mBAAU,GAAE;GACA,eAAe,CAK3B"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.HttpJwtAuthGuard = void 0;
|
|
10
|
+
const common_1 = require("@nestjs/common");
|
|
11
|
+
const passport_1 = require("@nestjs/passport");
|
|
12
|
+
let HttpJwtAuthGuard = class HttpJwtAuthGuard extends (0, passport_1.AuthGuard)('jwt') {
|
|
13
|
+
};
|
|
14
|
+
exports.HttpJwtAuthGuard = HttpJwtAuthGuard;
|
|
15
|
+
exports.HttpJwtAuthGuard = HttpJwtAuthGuard = __decorate([
|
|
16
|
+
(0, common_1.Injectable)()
|
|
17
|
+
], HttpJwtAuthGuard);
|
|
18
|
+
//# sourceMappingURL=http-jwt-auth-guard.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"http-jwt-auth-guard.service.js","sourceRoot":"","sources":["../../../../../src/auth/guards/jwt/http-jwt-auth-guard.service.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAA4C;AAC5C,+CAA6C;AAGtC,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,IAAA,oBAAS,EAAC,KAAK,CAAC;CAAG,CAAA;AAA5C,4CAAgB;2BAAhB,gBAAgB;IAD5B,IAAA,mBAAU,GAAE;GACA,gBAAgB,CAA4B"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.LocalAuthGuard = void 0;
|
|
10
|
+
const common_1 = require("@nestjs/common");
|
|
11
|
+
const passport_1 = require("@nestjs/passport");
|
|
12
|
+
let LocalAuthGuard = class LocalAuthGuard extends (0, passport_1.AuthGuard)('local') {
|
|
13
|
+
};
|
|
14
|
+
exports.LocalAuthGuard = LocalAuthGuard;
|
|
15
|
+
exports.LocalAuthGuard = LocalAuthGuard = __decorate([
|
|
16
|
+
(0, common_1.Injectable)()
|
|
17
|
+
], LocalAuthGuard);
|
|
18
|
+
//# sourceMappingURL=local-auth.guard.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"local-auth.guard.js","sourceRoot":"","sources":["../../../../../src/auth/guards/jwt/local-auth.guard.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAA4C;AAC5C,+CAA6C;AAGtC,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,IAAA,oBAAS,EAAC,OAAO,CAAC;CAAG,CAAA;AAA5C,wCAAc;yBAAd,cAAc;IAD1B,IAAA,mBAAU,GAAE;GACA,cAAc,CAA8B"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ExecutionContext } from '@nestjs/common';
|
|
2
|
+
declare const OptionalGqlJwtAuthGuard_base: import("@nestjs/passport").Type<import("@nestjs/passport").IAuthGuard>;
|
|
3
|
+
export declare class OptionalGqlJwtAuthGuard extends OptionalGqlJwtAuthGuard_base {
|
|
4
|
+
getRequest(context: ExecutionContext): any;
|
|
5
|
+
handleRequest(err: any, user: any): any;
|
|
6
|
+
}
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.OptionalGqlJwtAuthGuard = void 0;
|
|
10
|
+
const common_1 = require("@nestjs/common");
|
|
11
|
+
const graphql_1 = require("@nestjs/graphql");
|
|
12
|
+
const passport_1 = require("@nestjs/passport");
|
|
13
|
+
let OptionalGqlJwtAuthGuard = class OptionalGqlJwtAuthGuard extends (0, passport_1.AuthGuard)('jwt') {
|
|
14
|
+
getRequest(context) {
|
|
15
|
+
const ctx = graphql_1.GqlExecutionContext.create(context);
|
|
16
|
+
return ctx.getContext().req;
|
|
17
|
+
}
|
|
18
|
+
handleRequest(err, user) {
|
|
19
|
+
if (err) {
|
|
20
|
+
return err;
|
|
21
|
+
}
|
|
22
|
+
return user || null;
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
exports.OptionalGqlJwtAuthGuard = OptionalGqlJwtAuthGuard;
|
|
26
|
+
exports.OptionalGqlJwtAuthGuard = OptionalGqlJwtAuthGuard = __decorate([
|
|
27
|
+
(0, common_1.Injectable)()
|
|
28
|
+
], OptionalGqlJwtAuthGuard);
|
|
29
|
+
//# sourceMappingURL=optional-gql-jwt-auth-guard.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"optional-gql-jwt-auth-guard.service.js","sourceRoot":"","sources":["../../../../../src/auth/guards/jwt/optional-gql-jwt-auth-guard.service.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAA8D;AAC9D,6CAAsD;AACtD,+CAA6C;AAGtC,IAAM,uBAAuB,GAA7B,MAAM,uBAAwB,SAAQ,IAAA,oBAAS,EAAC,KAAK,CAAC;IAC3D,UAAU,CAAC,OAAyB;QAClC,MAAM,GAAG,GAAG,6BAAmB,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QAChD,OAAO,GAAG,CAAC,UAAU,EAAE,CAAC,GAAG,CAAC;IAC9B,CAAC;IAED,aAAa,CAAC,GAAQ,EAAE,IAAS;QAC/B,IAAI,GAAG,EAAE,CAAC;YACR,OAAO,GAAG,CAAC;QACb,CAAC;QAED,OAAO,IAAI,IAAI,IAAI,CAAC;IACtB,CAAC;CACF,CAAA;AAbY,0DAAuB;kCAAvB,uBAAuB;IADnC,IAAA,mBAAU,GAAE;GACA,uBAAuB,CAanC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ExecutionContext } from '@nestjs/common';
|
|
2
|
+
declare const OptionalHttpJwtAuthGuard_base: import("@nestjs/passport").Type<import("@nestjs/passport").IAuthGuard>;
|
|
3
|
+
export declare class OptionalHttpJwtAuthGuard extends OptionalHttpJwtAuthGuard_base {
|
|
4
|
+
canActivate(context: ExecutionContext): boolean | Promise<boolean> | import("rxjs").Observable<boolean>;
|
|
5
|
+
}
|
|
6
|
+
export {};
|