@revisium/core 2.8.0-alpha.3 → 2.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/README.md +4 -3
- package/dist/package.json +35 -14
- package/dist/prisma/migrations/20260222210834_add_oauth/migration.sql +110 -0
- package/dist/prisma/schema.prisma +72 -0
- package/dist/src/__generated__/client/browser.d.ts +4 -0
- package/dist/src/__generated__/client/browser.js.map +1 -1
- package/dist/src/__generated__/client/client.d.ts +9 -5
- package/dist/src/__generated__/client/client.js.map +1 -1
- package/dist/src/__generated__/client/commonInputTypes.d.ts +49 -3
- package/dist/src/__generated__/client/enums.js +2 -2
- package/dist/src/__generated__/client/enums.js.map +1 -1
- package/dist/src/__generated__/client/internal/class.d.ts +15 -3
- package/dist/src/__generated__/client/internal/class.js +19 -22
- package/dist/src/__generated__/client/internal/class.js.map +1 -1
- package/dist/src/__generated__/client/internal/prismaNamespace.d.ts +394 -10
- package/dist/src/__generated__/client/internal/prismaNamespace.js +117 -41
- package/dist/src/__generated__/client/internal/prismaNamespace.js.map +1 -1
- package/dist/src/__generated__/client/internal/prismaNamespaceBrowser.d.ts +87 -4
- package/dist/src/__generated__/client/internal/prismaNamespaceBrowser.js +112 -37
- package/dist/src/__generated__/client/internal/prismaNamespaceBrowser.js.map +1 -1
- package/dist/src/__generated__/client/models/Branch.d.ts +48 -48
- package/dist/src/__generated__/client/models/Endpoint.d.ts +54 -54
- package/dist/src/__generated__/client/models/EndpointVersion.d.ts +35 -35
- package/dist/src/__generated__/client/models/Instance.d.ts +25 -25
- package/dist/src/__generated__/client/models/OAuthAccessToken.d.ts +777 -0
- package/dist/src/__generated__/client/models/OAuthAccessToken.js +3 -0
- package/dist/src/__generated__/client/models/OAuthAccessToken.js.map +1 -0
- package/dist/src/__generated__/client/models/OAuthAuthorizationCode.d.ts +862 -0
- package/dist/src/__generated__/client/models/OAuthAuthorizationCode.js +3 -0
- package/dist/src/__generated__/client/models/OAuthAuthorizationCode.js.map +1 -0
- package/dist/src/__generated__/client/models/OAuthClient.d.ts +748 -0
- package/dist/src/__generated__/client/models/OAuthClient.js +3 -0
- package/dist/src/__generated__/client/models/OAuthClient.js.map +1 -0
- package/dist/src/__generated__/client/models/OAuthRefreshToken.d.ts +818 -0
- package/dist/src/__generated__/client/models/OAuthRefreshToken.js +3 -0
- package/dist/src/__generated__/client/models/OAuthRefreshToken.js.map +1 -0
- package/dist/src/__generated__/client/models/Organization.d.ts +30 -30
- package/dist/src/__generated__/client/models/Permission.d.ts +47 -47
- package/dist/src/__generated__/client/models/Project.d.ts +54 -54
- package/dist/src/__generated__/client/models/Revision.d.ts +75 -75
- package/dist/src/__generated__/client/models/Role.d.ts +51 -51
- package/dist/src/__generated__/client/models/Row.d.ts +77 -77
- package/dist/src/__generated__/client/models/Table.d.ts +58 -58
- package/dist/src/__generated__/client/models/User.d.ts +422 -62
- package/dist/src/__generated__/client/models/UserOrganization.d.ts +49 -49
- package/dist/src/__generated__/client/models/UserProject.d.ts +49 -49
- package/dist/src/__generated__/client/models.d.ts +4 -0
- package/dist/src/__generated__/client/sql/$DbEnums.d.ts +2 -2
- package/dist/src/__generated__/client/sql/countRowChangesBetweenRevisions.d.ts +9 -2
- package/dist/src/__generated__/client/sql/countRowChangesBetweenRevisions.js +1 -1
- package/dist/src/__generated__/client/sql/countRowChangesBetweenRevisions.js.map +1 -1
- package/dist/src/__generated__/client/sql/countTableDiffsBetweenRevisions.d.ts +7 -2
- package/dist/src/__generated__/client/sql/countTableDiffsBetweenRevisions.js +1 -1
- package/dist/src/__generated__/client/sql/countTableDiffsBetweenRevisions.js.map +1 -1
- package/dist/src/__generated__/client/sql/getRowChangesPaginatedBetweenRevisions.d.ts +11 -2
- package/dist/src/__generated__/client/sql/getRowChangesPaginatedBetweenRevisions.js +1 -1
- package/dist/src/__generated__/client/sql/getRowChangesPaginatedBetweenRevisions.js.map +1 -1
- package/dist/src/__generated__/client/sql/getRowChangesStatsBetweenRevisions.d.ts +7 -2
- package/dist/src/__generated__/client/sql/getRowChangesStatsBetweenRevisions.js +1 -1
- package/dist/src/__generated__/client/sql/getRowChangesStatsBetweenRevisions.js.map +1 -1
- package/dist/src/__generated__/client/sql/getTableDiffsPaginatedBetweenRevisions.d.ts +9 -2
- package/dist/src/__generated__/client/sql/getTableDiffsPaginatedBetweenRevisions.js +1 -1
- package/dist/src/__generated__/client/sql/getTableDiffsPaginatedBetweenRevisions.js.map +1 -1
- package/dist/src/__generated__/client/sql/getTableDiffsStatsBetweenRevisions.d.ts +6 -2
- package/dist/src/__generated__/client/sql/getTableDiffsStatsBetweenRevisions.js +1 -1
- package/dist/src/__generated__/client/sql/getTableDiffsStatsBetweenRevisions.js.map +1 -1
- package/dist/src/__generated__/client/sql/hasRowDiffsBetweenRevisions.d.ts +6 -2
- package/dist/src/__generated__/client/sql/hasRowDiffsBetweenRevisions.js +1 -1
- package/dist/src/__generated__/client/sql/hasRowDiffsBetweenRevisions.js.map +1 -1
- package/dist/src/__generated__/client/sql/hasTableDiffsBetweenRevisions.d.ts +1 -1
- package/dist/src/__generated__/client/sql/hasTableDiffsBetweenRevisions.js +1 -1
- package/dist/src/__generated__/client/sql/hasTableDiffsBetweenRevisions.js.map +1 -1
- package/dist/src/__generated__/client/sql.d.ts +9 -9
- package/dist/src/__generated__/client/sql.js.map +1 -1
- package/dist/src/api/graphql-api/branch/model/branch.model.d.ts +6 -5
- package/dist/src/api/graphql-api/branch/model/branch.model.js +5 -5
- package/dist/src/api/graphql-api/branch/model/branch.model.js.map +1 -1
- package/dist/src/api/graphql-api/branch/model/parent-branch.model.d.ts +3 -2
- package/dist/src/api/graphql-api/branch/model/parent-branch.model.js +2 -2
- package/dist/src/api/graphql-api/branch/model/parent-branch.model.js.map +1 -1
- package/dist/src/api/graphql-api/endpoint/model/endpoint.model.d.ts +2 -1
- package/dist/src/api/graphql-api/endpoint/model/endpoint.model.js +1 -1
- package/dist/src/api/graphql-api/endpoint/model/endpoint.model.js.map +1 -1
- package/dist/src/api/graphql-api/project/model/project.model.d.ts +3 -2
- package/dist/src/api/graphql-api/project/model/project.model.js +2 -2
- package/dist/src/api/graphql-api/project/model/project.model.js.map +1 -1
- package/dist/src/api/graphql-api/revision/model/child-branch.model.d.ts +3 -2
- package/dist/src/api/graphql-api/revision/model/child-branch.model.js +2 -2
- package/dist/src/api/graphql-api/revision/model/child-branch.model.js.map +1 -1
- package/dist/src/api/graphql-api/revision/model/revision.model.d.ts +4 -3
- package/dist/src/api/graphql-api/revision/model/revision.model.js +3 -3
- package/dist/src/api/graphql-api/revision/model/revision.model.js.map +1 -1
- package/dist/src/api/graphql-api/row/inputs/get-rows.input.d.ts +2 -0
- package/dist/src/api/graphql-api/row/inputs/get-rows.input.js +8 -0
- package/dist/src/api/graphql-api/row/inputs/get-rows.input.js.map +1 -1
- package/dist/src/api/graphql-api/row/model/row.model.d.ts +3 -2
- package/dist/src/api/graphql-api/row/model/row.model.js +2 -2
- package/dist/src/api/graphql-api/row/model/row.model.js.map +1 -1
- package/dist/src/api/graphql-api/share/model/relation.type.d.ts +1 -0
- package/dist/src/api/graphql-api/share/model/relation.type.js +3 -0
- package/dist/src/api/graphql-api/share/model/relation.type.js.map +1 -0
- package/dist/src/api/graphql-api/table/model/table.model.d.ts +3 -2
- package/dist/src/api/graphql-api/table/model/table.model.js +2 -2
- package/dist/src/api/graphql-api/table/model/table.model.js.map +1 -1
- package/dist/src/api/graphql-api/views/input/update-table-views.input.d.ts +1 -0
- package/dist/src/api/graphql-api/views/input/update-table-views.input.js +4 -0
- package/dist/src/api/graphql-api/views/input/update-table-views.input.js.map +1 -1
- package/dist/src/api/graphql-api/views/model/view-column.model.d.ts +1 -0
- package/dist/src/api/graphql-api/views/model/view-column.model.js +4 -0
- package/dist/src/api/graphql-api/views/model/view-column.model.js.map +1 -1
- package/dist/src/api/mcp-api/mcp-auth.service.d.ts +21 -0
- package/dist/src/api/mcp-api/mcp-auth.service.js +82 -0
- package/dist/src/api/mcp-api/mcp-auth.service.js.map +1 -0
- package/dist/src/api/mcp-api/mcp-server.service.d.ts +5 -8
- package/dist/src/api/mcp-api/mcp-server.service.js +50 -86
- package/dist/src/api/mcp-api/mcp-server.service.js.map +1 -1
- package/dist/src/api/mcp-api/mcp.controller.d.ts +7 -4
- package/dist/src/api/mcp-api/mcp.controller.js +74 -78
- package/dist/src/api/mcp-api/mcp.controller.js.map +1 -1
- package/dist/src/api/mcp-api/mcp.module.js +4 -2
- package/dist/src/api/mcp-api/mcp.module.js.map +1 -1
- package/dist/src/api/mcp-api/resources/schema.resource.js +6 -12
- package/dist/src/api/mcp-api/resources/schema.resource.js.map +1 -1
- package/dist/src/api/mcp-api/tools/branch.tools.js +116 -12
- package/dist/src/api/mcp-api/tools/branch.tools.js.map +1 -1
- package/dist/src/api/mcp-api/tools/endpoint.tools.js +12 -18
- package/dist/src/api/mcp-api/tools/endpoint.tools.js.map +1 -1
- package/dist/src/api/mcp-api/tools/file.tools.js +2 -3
- package/dist/src/api/mcp-api/tools/file.tools.js.map +1 -1
- package/dist/src/api/mcp-api/tools/index.d.ts +0 -1
- package/dist/src/api/mcp-api/tools/index.js +1 -3
- package/dist/src/api/mcp-api/tools/index.js.map +1 -1
- package/dist/src/api/mcp-api/tools/migration.tools.js +4 -6
- package/dist/src/api/mcp-api/tools/migration.tools.js.map +1 -1
- package/dist/src/api/mcp-api/tools/organization.tools.js +5 -7
- package/dist/src/api/mcp-api/tools/organization.tools.js.map +1 -1
- package/dist/src/api/mcp-api/tools/project.tools.js +39 -8
- package/dist/src/api/mcp-api/tools/project.tools.js.map +1 -1
- package/dist/src/api/mcp-api/tools/revision-changes.tools.js +6 -9
- package/dist/src/api/mcp-api/tools/revision-changes.tools.js.map +1 -1
- package/dist/src/api/mcp-api/tools/revision.tools.js +27 -6
- package/dist/src/api/mcp-api/tools/revision.tools.js.map +1 -1
- package/dist/src/api/mcp-api/tools/row.tools.d.ts +39 -0
- package/dist/src/api/mcp-api/tools/row.tools.js +129 -34
- package/dist/src/api/mcp-api/tools/row.tools.js.map +1 -1
- package/dist/src/api/mcp-api/tools/table.tools.js +55 -28
- package/dist/src/api/mcp-api/tools/table.tools.js.map +1 -1
- package/dist/src/api/mcp-api/tools/user.tools.js +3 -5
- package/dist/src/api/mcp-api/tools/user.tools.js.map +1 -1
- package/dist/src/api/mcp-api/types.d.ts +1 -5
- package/dist/src/features/branch/commands/handlers/delete-branch.handler.js +1 -2
- package/dist/src/features/branch/commands/handlers/delete-branch.handler.js.map +1 -1
- package/dist/src/features/branch/quieries/handlers/get-branch.handler.js +1 -4
- package/dist/src/features/branch/quieries/handlers/get-branch.handler.js.map +1 -1
- package/dist/src/features/draft/commands/handlers/api-create-revision.handler.js +2 -2
- package/dist/src/features/draft/commands/handlers/api-create-revision.handler.js.map +1 -1
- package/dist/src/features/draft/commands/handlers/create-rows.handler.js.map +1 -1
- package/dist/src/features/draft/commands/handlers/patch-rows.handler.js.map +1 -1
- package/dist/src/features/draft/commands/handlers/transactional/internal-rename-row.handler.js.map +1 -1
- package/dist/src/features/draft/commands/handlers/transactional/validate-schema.handler.js +4 -1
- package/dist/src/features/draft/commands/handlers/transactional/validate-schema.handler.js.map +1 -1
- package/dist/src/features/draft/commands/handlers/update-rows.handler.js.map +1 -1
- package/dist/src/features/draft/commands/handlers/update-table.handler.js +4 -1
- package/dist/src/features/draft/commands/handlers/update-table.handler.js.map +1 -1
- package/dist/src/features/draft-revision/commands/handlers/draft-revision-recompute-has-changes.handler.js +6 -5
- package/dist/src/features/draft-revision/commands/handlers/draft-revision-recompute-has-changes.handler.js.map +1 -1
- package/dist/src/features/oauth/oauth-authorization.service.d.ts +22 -0
- package/dist/src/features/oauth/oauth-authorization.service.js +78 -0
- package/dist/src/features/oauth/oauth-authorization.service.js.map +1 -0
- package/dist/src/features/oauth/oauth-client.service.d.ts +25 -0
- package/dist/src/features/oauth/oauth-client.service.js +82 -0
- package/dist/src/features/oauth/oauth-client.service.js.map +1 -0
- package/dist/src/features/oauth/oauth-token.service.d.ts +27 -0
- package/dist/src/features/oauth/oauth-token.service.js +190 -0
- package/dist/src/features/oauth/oauth-token.service.js.map +1 -0
- package/dist/src/features/oauth/oauth.controller.d.ts +88 -0
- package/dist/src/features/oauth/oauth.controller.js +285 -0
- package/dist/src/features/oauth/oauth.controller.js.map +1 -0
- package/dist/src/features/oauth/oauth.module.d.ts +2 -0
- package/dist/src/features/oauth/oauth.module.js +29 -0
- package/dist/src/features/oauth/oauth.module.js.map +1 -0
- package/dist/src/features/plugin/file/file.plugin.js.map +1 -1
- package/dist/src/features/plugin/plugin.service.js.map +1 -1
- package/dist/src/features/plugin/row-created-at/row-created-at.plugin.js.map +1 -1
- package/dist/src/features/plugin/row-created-id/row-created-id.plugin.js.map +1 -1
- package/dist/src/features/plugin/row-hash/row-hash.plugin.js.map +1 -1
- package/dist/src/features/plugin/row-id/row-id.plugin.js.map +1 -1
- package/dist/src/features/plugin/row-published-at/row-published-at.plugin.js.map +1 -1
- package/dist/src/features/plugin/row-schema-hash/row-schema-hash.plugin.js.map +1 -1
- package/dist/src/features/plugin/row-updated-at/row-updated-at.plugin.js.map +1 -1
- package/dist/src/features/plugin/row-version-id/row-version-id.plugin.js.map +1 -1
- package/dist/src/features/project/commands/handlers/delete-project.handler.js +1 -4
- package/dist/src/features/project/commands/handlers/delete-project.handler.js.map +1 -1
- package/dist/src/features/project/commands/handlers/update-project.handler.js +1 -4
- package/dist/src/features/project/commands/handlers/update-project.handler.js.map +1 -1
- package/dist/src/features/project/queries/handlers/get-project.handler.js +1 -4
- package/dist/src/features/project/queries/handlers/get-project.handler.js.map +1 -1
- package/dist/src/features/row/queries/handlers/get-rows.handler.d.ts +0 -2
- package/dist/src/features/row/queries/handlers/get-rows.handler.js +7 -13
- package/dist/src/features/row/queries/handlers/get-rows.handler.js.map +1 -1
- package/dist/src/features/row/queries/handlers/resolve-row-count-foreign-keys-to.handler.js.map +1 -1
- package/dist/src/features/row/queries/handlers/resolve-row-foreign-keys-to.handler.js.map +1 -1
- package/dist/src/features/row/services/system-column-mapping.service.js +5 -1
- package/dist/src/features/row/services/system-column-mapping.service.js.map +1 -1
- package/dist/src/features/row/utils/get-keyset-pagination.d.ts +17 -0
- package/dist/src/features/row/utils/get-keyset-pagination.js +61 -0
- package/dist/src/features/row/utils/get-keyset-pagination.js.map +1 -0
- package/dist/src/features/row/utils/get-rows-sql.d.ts +2 -1
- package/dist/src/features/row/utils/get-rows-sql.js +76 -21
- package/dist/src/features/row/utils/get-rows-sql.js.map +1 -1
- package/dist/src/features/share/schema/table-views-schema.js +1 -0
- package/dist/src/features/share/schema/table-views-schema.js.map +1 -1
- package/dist/src/features/share/utils/validateUrlLikeId/reserved-names.d.ts +1 -1
- package/dist/src/features/share/utils/validateUrlLikeId/reserved-names.js +3 -0
- package/dist/src/features/share/utils/validateUrlLikeId/reserved-names.js.map +1 -1
- package/dist/src/features/share/views-migration.service.js.map +1 -1
- package/dist/src/features/sub-schema/queries/handlers/get-sub-schema-items.handler.js.map +1 -1
- package/dist/src/features/views/services/view-validation.service.js +10 -1
- package/dist/src/features/views/services/view-validation.service.js.map +1 -1
- package/dist/src/features/views/types/views.types.d.ts +1 -0
- package/dist/src/features/views/types/views.types.js.map +1 -1
- package/dist/src/infrastructure/clean/clean.service.d.ts +1 -0
- package/dist/src/infrastructure/clean/clean.service.js +23 -0
- package/dist/src/infrastructure/clean/clean.service.js.map +1 -1
- package/dist/src/infrastructure/clean/commands/handlers/clean-oauth-expired-access-tokens.handler.d.ts +8 -0
- package/dist/src/infrastructure/clean/commands/handlers/clean-oauth-expired-access-tokens.handler.js +33 -0
- package/dist/src/infrastructure/clean/commands/handlers/clean-oauth-expired-access-tokens.handler.js.map +1 -0
- package/dist/src/infrastructure/clean/commands/handlers/clean-oauth-expired-codes.handler.d.ts +8 -0
- package/dist/src/infrastructure/clean/commands/handlers/clean-oauth-expired-codes.handler.js +33 -0
- package/dist/src/infrastructure/clean/commands/handlers/clean-oauth-expired-codes.handler.js.map +1 -0
- package/dist/src/infrastructure/clean/commands/handlers/clean-oauth-expired-refresh-tokens.handler.d.ts +8 -0
- package/dist/src/infrastructure/clean/commands/handlers/clean-oauth-expired-refresh-tokens.handler.js +33 -0
- package/dist/src/infrastructure/clean/commands/handlers/clean-oauth-expired-refresh-tokens.handler.js.map +1 -0
- package/dist/src/infrastructure/clean/commands/handlers/index.d.ts +4 -1
- package/dist/src/infrastructure/clean/commands/handlers/index.js +10 -1
- package/dist/src/infrastructure/clean/commands/handlers/index.js.map +1 -1
- package/dist/src/infrastructure/clean/commands/impl/clean-oauth-expired-access-tokens.command.d.ts +2 -0
- package/dist/src/infrastructure/clean/commands/impl/clean-oauth-expired-access-tokens.command.js +7 -0
- package/dist/src/infrastructure/clean/commands/impl/clean-oauth-expired-access-tokens.command.js.map +1 -0
- package/dist/src/infrastructure/clean/commands/impl/clean-oauth-expired-codes.command.d.ts +2 -0
- package/dist/src/infrastructure/clean/commands/impl/clean-oauth-expired-codes.command.js +7 -0
- package/dist/src/infrastructure/clean/commands/impl/clean-oauth-expired-codes.command.js.map +1 -0
- package/dist/src/infrastructure/clean/commands/impl/clean-oauth-expired-refresh-tokens.command.d.ts +2 -0
- package/dist/src/infrastructure/clean/commands/impl/clean-oauth-expired-refresh-tokens.command.js +7 -0
- package/dist/src/infrastructure/clean/commands/impl/clean-oauth-expired-refresh-tokens.command.js.map +1 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +35 -14
- package/dist/src/api/mcp-api/mcp-session.service.d.ts +0 -19
- package/dist/src/api/mcp-api/mcp-session.service.js +0 -57
- package/dist/src/api/mcp-api/mcp-session.service.js.map +0 -1
- package/dist/src/api/mcp-api/tools/auth.tools.d.ts +0 -12
- package/dist/src/api/mcp-api/tools/auth.tools.js +0 -182
- package/dist/src/api/mcp-api/tools/auth.tools.js.map +0 -1
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@ Backend API for [Revisium](https://github.com/revisium/revisium) — unopinionat
|
|
|
6
6
|
|
|
7
7
|
[](LICENSE)
|
|
8
8
|
[](https://sonarcloud.io/summary/new_code?id=revisium_revisium-core)
|
|
9
|
-
[](https://sonarcloud.io/summary/new_code?id=revisium_revisium-core)
|
|
10
10
|
[](https://www.npmjs.com/package/@revisium/core)
|
|
11
11
|
[](https://hub.docker.com/r/revisium/revisium-core)
|
|
12
12
|
|
|
@@ -76,9 +76,10 @@ CQRS pattern separates read and write operations:
|
|
|
76
76
|
| **S3** | File storage |
|
|
77
77
|
| **SMTP** | Email notifications |
|
|
78
78
|
|
|
79
|
-
##
|
|
79
|
+
## Documentation
|
|
80
80
|
|
|
81
|
-
|
|
81
|
+
- [ENV.md](./ENV.md) — Environment variables
|
|
82
|
+
- [docs/](./docs/index.md) — Technical documentation
|
|
82
83
|
|
|
83
84
|
## Related Packages
|
|
84
85
|
|
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@revisium/core",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.9.0",
|
|
4
4
|
"description": "Revisium is a tool (UI/API) inspired by JSON (JSON Schema) and Git, designed to provide a flexible and low-level headless CMS solution.",
|
|
5
5
|
"private": false,
|
|
6
6
|
"homepage": "https://revisium.io",
|
|
@@ -33,11 +33,10 @@
|
|
|
33
33
|
"start:prod": "NODE_ENV=production npm run prisma:migrate:deploy && npm run seed:prod && node --experimental-require-module dist/src/main",
|
|
34
34
|
"lint:ci": "eslint \"{src,apps,libs,test}/**/*.ts\" --max-warnings 0",
|
|
35
35
|
"lint:fix": "eslint \"{src,apps,libs,test}/**/*.ts\" --max-warnings 0 --fix",
|
|
36
|
-
"test": "NODE_ENV=test jest",
|
|
36
|
+
"test": "NODE_ENV=test jest --maxWorkers=50% --forceExit",
|
|
37
37
|
"test:watch": "NODE_ENV=test jest --watch",
|
|
38
|
-
"test:cov": "NODE_ENV=test jest --coverage --silent",
|
|
38
|
+
"test:cov": "NODE_ENV=test jest --maxWorkers=50% --forceExit --coverage --silent",
|
|
39
39
|
"test:debug": "NODE_ENV=test node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
|
|
40
|
-
"test:e2e": "NODE_ENV=test jest --config ./test/jest-e2e.json",
|
|
41
40
|
"tsc": "tsc -p tsconfig.json",
|
|
42
41
|
"docker:test-container-up": "docker compose -f docker-compose-test.yml -p revisium-core-test up -d && sleep 1 && dotenv -e .env.test npm run prisma:migrate:deploy && dotenv -e .env.test npm run seed",
|
|
43
42
|
"docker:test-container-down": "docker compose -f docker-compose-test.yml -p revisium-core-test down --volumes",
|
|
@@ -47,6 +46,7 @@
|
|
|
47
46
|
"dependencies": {
|
|
48
47
|
"@aws-sdk/client-s3": "^3.816.0",
|
|
49
48
|
"@casl/ability": "^6.7.5",
|
|
49
|
+
"@graphql-yoga/nestjs": "^3.8.0",
|
|
50
50
|
"@modelcontextprotocol/sdk": "^1.25.3",
|
|
51
51
|
"@nestjs/cache-manager": "^3.1.0",
|
|
52
52
|
"@nestjs/common": "^11.1.11",
|
|
@@ -54,7 +54,6 @@
|
|
|
54
54
|
"@nestjs/core": "^11.1.11",
|
|
55
55
|
"@nestjs/cqrs": "^11.0.3",
|
|
56
56
|
"@nestjs/event-emitter": "^3.0.1",
|
|
57
|
-
"@graphql-yoga/nestjs": "^3.8.0",
|
|
58
57
|
"@nestjs/graphql": "^13.2.3",
|
|
59
58
|
"@nestjs/jwt": "^11.0.2",
|
|
60
59
|
"@nestjs/microservices": "^11.1.11",
|
|
@@ -66,8 +65,8 @@
|
|
|
66
65
|
"@nestjs/terminus": "^11.0.0",
|
|
67
66
|
"@prisma/adapter-pg": "^7.4.0",
|
|
68
67
|
"@prisma/client": "^7.4.0",
|
|
69
|
-
"@revisium/prisma-pg-json": "^1.
|
|
70
|
-
"@revisium/schema-toolkit": "^0.
|
|
68
|
+
"@revisium/prisma-pg-json": "^1.5.0",
|
|
69
|
+
"@revisium/schema-toolkit": "^0.23.0",
|
|
71
70
|
"ajv": "^8.17.1",
|
|
72
71
|
"bcrypt": "^6.0.0",
|
|
73
72
|
"bentocache": "^1.6.0",
|
|
@@ -77,8 +76,8 @@
|
|
|
77
76
|
"compression": "^1.8.1",
|
|
78
77
|
"dotenv": "^17.2.3",
|
|
79
78
|
"graphql": "^16.12.0",
|
|
80
|
-
"graphql-yoga": "^5.18.0",
|
|
81
79
|
"graphql-scalars": "^1.25.0",
|
|
80
|
+
"graphql-yoga": "^5.18.0",
|
|
82
81
|
"handlebars": "^4.7.8",
|
|
83
82
|
"ioredis": "^5.9.0",
|
|
84
83
|
"lru-cache": "^11.2.4",
|
|
@@ -94,10 +93,12 @@
|
|
|
94
93
|
"sharp": "^0.34.5"
|
|
95
94
|
},
|
|
96
95
|
"devDependencies": {
|
|
97
|
-
"@eslint/js": "^9.
|
|
96
|
+
"@eslint/js": "^9.39.3",
|
|
98
97
|
"@nestjs/cli": "^11.0.14",
|
|
99
98
|
"@nestjs/schematics": "^11.0.9",
|
|
100
99
|
"@nestjs/testing": "^11.1.11",
|
|
100
|
+
"@swc/core": "^1.15.11",
|
|
101
|
+
"@swc/jest": "^0.2.39",
|
|
101
102
|
"@types/bcrypt": "^5.0.2",
|
|
102
103
|
"@types/compression": "^1.8.1",
|
|
103
104
|
"@types/express": "^5.0.6",
|
|
@@ -111,13 +112,13 @@
|
|
|
111
112
|
"@types/supertest": "^6.0.3",
|
|
112
113
|
"aws-sdk-client-mock": "^4.1.0",
|
|
113
114
|
"dotenv-cli": "^8.0.0",
|
|
114
|
-
"eslint": "^9.
|
|
115
|
+
"eslint": "^9.39.3",
|
|
115
116
|
"eslint-config-prettier": "^10.1.8",
|
|
116
|
-
"eslint-plugin-prettier": "^5.
|
|
117
|
+
"eslint-plugin-prettier": "^5.5.5",
|
|
117
118
|
"globals": "^16.1.0",
|
|
118
119
|
"jest": "^29.7.0",
|
|
119
120
|
"jest-mock-extended": "^3.0.7",
|
|
120
|
-
"prettier": "^3.
|
|
121
|
+
"prettier": "^3.8.1",
|
|
121
122
|
"prisma": "^7.4.0",
|
|
122
123
|
"shx": "^0.4.0",
|
|
123
124
|
"source-map-support": "^0.5.21",
|
|
@@ -129,7 +130,7 @@
|
|
|
129
130
|
"tsc-alias": "^1.8.16",
|
|
130
131
|
"tsconfig-paths": "^4.2.0",
|
|
131
132
|
"typescript": "^5.9.3",
|
|
132
|
-
"typescript-eslint": "^8.
|
|
133
|
+
"typescript-eslint": "^8.56.0"
|
|
133
134
|
},
|
|
134
135
|
"overrides": {
|
|
135
136
|
"lodash": "^4.17.23",
|
|
@@ -147,7 +148,26 @@
|
|
|
147
148
|
"rootDir": "./",
|
|
148
149
|
"testRegex": ".*\\.spec\\.ts$",
|
|
149
150
|
"transform": {
|
|
150
|
-
"^.+\\.(t|j)
|
|
151
|
+
"^.+\\.(t|j)sx?$": [
|
|
152
|
+
"@swc/jest",
|
|
153
|
+
{
|
|
154
|
+
"jsc": {
|
|
155
|
+
"target": "es2021",
|
|
156
|
+
"parser": {
|
|
157
|
+
"syntax": "typescript",
|
|
158
|
+
"tsx": false,
|
|
159
|
+
"decorators": true
|
|
160
|
+
},
|
|
161
|
+
"transform": {
|
|
162
|
+
"decoratorMetadata": true
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
"module": {
|
|
166
|
+
"type": "commonjs"
|
|
167
|
+
},
|
|
168
|
+
"sourceMaps": "inline"
|
|
169
|
+
}
|
|
170
|
+
]
|
|
151
171
|
},
|
|
152
172
|
"collectCoverageFrom": [
|
|
153
173
|
"<rootDir>/src/**/*.(t|j)s",
|
|
@@ -162,6 +182,7 @@
|
|
|
162
182
|
"text-summary",
|
|
163
183
|
"lcov"
|
|
164
184
|
],
|
|
185
|
+
"testTimeout": 30000,
|
|
165
186
|
"testEnvironment": "node",
|
|
166
187
|
"setupFiles": [
|
|
167
188
|
"<rootDir>/jest.setup.ts"
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
-- CreateTable
|
|
2
|
+
CREATE TABLE "OAuthClient" (
|
|
3
|
+
"id" TEXT NOT NULL,
|
|
4
|
+
"clientSecretHash" TEXT NOT NULL,
|
|
5
|
+
"clientName" VARCHAR(255) NOT NULL,
|
|
6
|
+
"redirectUris" TEXT[],
|
|
7
|
+
"grantTypes" TEXT[] DEFAULT ARRAY['authorization_code', 'refresh_token']::TEXT[],
|
|
8
|
+
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
9
|
+
|
|
10
|
+
CONSTRAINT "OAuthClient_pkey" PRIMARY KEY ("id")
|
|
11
|
+
);
|
|
12
|
+
|
|
13
|
+
-- CreateTable
|
|
14
|
+
CREATE TABLE "OAuthAuthorizationCode" (
|
|
15
|
+
"id" TEXT NOT NULL,
|
|
16
|
+
"code" TEXT NOT NULL,
|
|
17
|
+
"clientId" TEXT NOT NULL,
|
|
18
|
+
"userId" TEXT NOT NULL,
|
|
19
|
+
"redirectUri" TEXT NOT NULL,
|
|
20
|
+
"codeChallenge" TEXT NOT NULL,
|
|
21
|
+
"scope" TEXT,
|
|
22
|
+
"expiresAt" TIMESTAMP(3) NOT NULL,
|
|
23
|
+
"usedAt" TIMESTAMP(3),
|
|
24
|
+
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
25
|
+
|
|
26
|
+
CONSTRAINT "OAuthAuthorizationCode_pkey" PRIMARY KEY ("id")
|
|
27
|
+
);
|
|
28
|
+
|
|
29
|
+
-- CreateTable
|
|
30
|
+
CREATE TABLE "OAuthAccessToken" (
|
|
31
|
+
"id" TEXT NOT NULL,
|
|
32
|
+
"tokenHash" TEXT NOT NULL,
|
|
33
|
+
"clientId" TEXT NOT NULL,
|
|
34
|
+
"userId" TEXT NOT NULL,
|
|
35
|
+
"scope" TEXT,
|
|
36
|
+
"expiresAt" TIMESTAMP(3) NOT NULL,
|
|
37
|
+
"revokedAt" TIMESTAMP(3),
|
|
38
|
+
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
39
|
+
|
|
40
|
+
CONSTRAINT "OAuthAccessToken_pkey" PRIMARY KEY ("id")
|
|
41
|
+
);
|
|
42
|
+
|
|
43
|
+
-- CreateTable
|
|
44
|
+
CREATE TABLE "OAuthRefreshToken" (
|
|
45
|
+
"id" TEXT NOT NULL,
|
|
46
|
+
"tokenHash" TEXT NOT NULL,
|
|
47
|
+
"clientId" TEXT NOT NULL,
|
|
48
|
+
"userId" TEXT NOT NULL,
|
|
49
|
+
"scope" TEXT,
|
|
50
|
+
"expiresAt" TIMESTAMP(3) NOT NULL,
|
|
51
|
+
"lastUsedAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
52
|
+
"revokedAt" TIMESTAMP(3),
|
|
53
|
+
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
54
|
+
|
|
55
|
+
CONSTRAINT "OAuthRefreshToken_pkey" PRIMARY KEY ("id")
|
|
56
|
+
);
|
|
57
|
+
|
|
58
|
+
-- CreateIndex
|
|
59
|
+
CREATE UNIQUE INDEX "OAuthAuthorizationCode_code_key" ON "OAuthAuthorizationCode"("code");
|
|
60
|
+
|
|
61
|
+
-- CreateIndex
|
|
62
|
+
CREATE INDEX "OAuthAuthorizationCode_clientId_idx" ON "OAuthAuthorizationCode"("clientId");
|
|
63
|
+
|
|
64
|
+
-- CreateIndex
|
|
65
|
+
CREATE INDEX "OAuthAuthorizationCode_userId_idx" ON "OAuthAuthorizationCode"("userId");
|
|
66
|
+
|
|
67
|
+
-- CreateIndex
|
|
68
|
+
CREATE INDEX "OAuthAuthorizationCode_expiresAt_idx" ON "OAuthAuthorizationCode"("expiresAt");
|
|
69
|
+
|
|
70
|
+
-- CreateIndex
|
|
71
|
+
CREATE UNIQUE INDEX "OAuthAccessToken_tokenHash_key" ON "OAuthAccessToken"("tokenHash");
|
|
72
|
+
|
|
73
|
+
-- CreateIndex
|
|
74
|
+
CREATE INDEX "OAuthAccessToken_clientId_idx" ON "OAuthAccessToken"("clientId");
|
|
75
|
+
|
|
76
|
+
-- CreateIndex
|
|
77
|
+
CREATE INDEX "OAuthAccessToken_userId_idx" ON "OAuthAccessToken"("userId");
|
|
78
|
+
|
|
79
|
+
-- CreateIndex
|
|
80
|
+
CREATE INDEX "OAuthAccessToken_expiresAt_idx" ON "OAuthAccessToken"("expiresAt");
|
|
81
|
+
|
|
82
|
+
-- CreateIndex
|
|
83
|
+
CREATE UNIQUE INDEX "OAuthRefreshToken_tokenHash_key" ON "OAuthRefreshToken"("tokenHash");
|
|
84
|
+
|
|
85
|
+
-- CreateIndex
|
|
86
|
+
CREATE INDEX "OAuthRefreshToken_clientId_idx" ON "OAuthRefreshToken"("clientId");
|
|
87
|
+
|
|
88
|
+
-- CreateIndex
|
|
89
|
+
CREATE INDEX "OAuthRefreshToken_userId_idx" ON "OAuthRefreshToken"("userId");
|
|
90
|
+
|
|
91
|
+
-- CreateIndex
|
|
92
|
+
CREATE INDEX "OAuthRefreshToken_expiresAt_idx" ON "OAuthRefreshToken"("expiresAt");
|
|
93
|
+
|
|
94
|
+
-- AddForeignKey
|
|
95
|
+
ALTER TABLE "OAuthAuthorizationCode" ADD CONSTRAINT "OAuthAuthorizationCode_clientId_fkey" FOREIGN KEY ("clientId") REFERENCES "OAuthClient"("id") ON DELETE CASCADE ON UPDATE CASCADE;
|
|
96
|
+
|
|
97
|
+
-- AddForeignKey
|
|
98
|
+
ALTER TABLE "OAuthAuthorizationCode" ADD CONSTRAINT "OAuthAuthorizationCode_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User"("id") ON DELETE CASCADE ON UPDATE CASCADE;
|
|
99
|
+
|
|
100
|
+
-- AddForeignKey
|
|
101
|
+
ALTER TABLE "OAuthAccessToken" ADD CONSTRAINT "OAuthAccessToken_clientId_fkey" FOREIGN KEY ("clientId") REFERENCES "OAuthClient"("id") ON DELETE CASCADE ON UPDATE CASCADE;
|
|
102
|
+
|
|
103
|
+
-- AddForeignKey
|
|
104
|
+
ALTER TABLE "OAuthAccessToken" ADD CONSTRAINT "OAuthAccessToken_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User"("id") ON DELETE CASCADE ON UPDATE CASCADE;
|
|
105
|
+
|
|
106
|
+
-- AddForeignKey
|
|
107
|
+
ALTER TABLE "OAuthRefreshToken" ADD CONSTRAINT "OAuthRefreshToken_clientId_fkey" FOREIGN KEY ("clientId") REFERENCES "OAuthClient"("id") ON DELETE CASCADE ON UPDATE CASCADE;
|
|
108
|
+
|
|
109
|
+
-- AddForeignKey
|
|
110
|
+
ALTER TABLE "OAuthRefreshToken" ADD CONSTRAINT "OAuthRefreshToken_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User"("id") ON DELETE CASCADE ON UPDATE CASCADE;
|
|
@@ -31,6 +31,10 @@ model User {
|
|
|
31
31
|
|
|
32
32
|
userOrganizations UserOrganization[]
|
|
33
33
|
userProjects UserProject[]
|
|
34
|
+
|
|
35
|
+
oauthAuthorizationCodes OAuthAuthorizationCode[]
|
|
36
|
+
oauthAccessTokens OAuthAccessToken[]
|
|
37
|
+
oauthRefreshTokens OAuthRefreshToken[]
|
|
34
38
|
}
|
|
35
39
|
|
|
36
40
|
enum RoleLevel {
|
|
@@ -220,3 +224,71 @@ model Row {
|
|
|
220
224
|
@@index([schemaHash])
|
|
221
225
|
@@index([publishedAt])
|
|
222
226
|
}
|
|
227
|
+
|
|
228
|
+
model OAuthClient {
|
|
229
|
+
id String @id @default(nanoid())
|
|
230
|
+
clientSecretHash String
|
|
231
|
+
clientName String @db.VarChar(255)
|
|
232
|
+
redirectUris String[]
|
|
233
|
+
grantTypes String[] @default(["authorization_code", "refresh_token"])
|
|
234
|
+
createdAt DateTime @default(now())
|
|
235
|
+
|
|
236
|
+
authorizationCodes OAuthAuthorizationCode[]
|
|
237
|
+
accessTokens OAuthAccessToken[]
|
|
238
|
+
refreshTokens OAuthRefreshToken[]
|
|
239
|
+
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
model OAuthAuthorizationCode {
|
|
243
|
+
id String @id @default(nanoid())
|
|
244
|
+
code String @unique
|
|
245
|
+
clientId String
|
|
246
|
+
client OAuthClient @relation(fields: [clientId], references: [id], onDelete: Cascade)
|
|
247
|
+
userId String
|
|
248
|
+
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
|
|
249
|
+
redirectUri String
|
|
250
|
+
codeChallenge String
|
|
251
|
+
scope String?
|
|
252
|
+
expiresAt DateTime
|
|
253
|
+
usedAt DateTime?
|
|
254
|
+
createdAt DateTime @default(now())
|
|
255
|
+
|
|
256
|
+
@@index([clientId])
|
|
257
|
+
@@index([userId])
|
|
258
|
+
@@index([expiresAt])
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
model OAuthAccessToken {
|
|
262
|
+
id String @id @default(nanoid())
|
|
263
|
+
tokenHash String @unique
|
|
264
|
+
clientId String
|
|
265
|
+
client OAuthClient @relation(fields: [clientId], references: [id], onDelete: Cascade)
|
|
266
|
+
userId String
|
|
267
|
+
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
|
|
268
|
+
scope String?
|
|
269
|
+
expiresAt DateTime
|
|
270
|
+
revokedAt DateTime?
|
|
271
|
+
createdAt DateTime @default(now())
|
|
272
|
+
|
|
273
|
+
@@index([clientId])
|
|
274
|
+
@@index([userId])
|
|
275
|
+
@@index([expiresAt])
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
model OAuthRefreshToken {
|
|
279
|
+
id String @id @default(nanoid())
|
|
280
|
+
tokenHash String @unique
|
|
281
|
+
clientId String
|
|
282
|
+
client OAuthClient @relation(fields: [clientId], references: [id], onDelete: Cascade)
|
|
283
|
+
userId String
|
|
284
|
+
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
|
|
285
|
+
scope String?
|
|
286
|
+
expiresAt DateTime
|
|
287
|
+
lastUsedAt DateTime @default(now())
|
|
288
|
+
revokedAt DateTime?
|
|
289
|
+
createdAt DateTime @default(now())
|
|
290
|
+
|
|
291
|
+
@@index([clientId])
|
|
292
|
+
@@index([userId])
|
|
293
|
+
@@index([expiresAt])
|
|
294
|
+
}
|
|
@@ -16,3 +16,7 @@ export type EndpointVersion = Prisma.EndpointVersionModel;
|
|
|
16
16
|
export type Endpoint = Prisma.EndpointModel;
|
|
17
17
|
export type Table = Prisma.TableModel;
|
|
18
18
|
export type Row = Prisma.RowModel;
|
|
19
|
+
export type OAuthClient = Prisma.OAuthClientModel;
|
|
20
|
+
export type OAuthAuthorizationCode = Prisma.OAuthAuthorizationCodeModel;
|
|
21
|
+
export type OAuthAccessToken = Prisma.OAuthAccessTokenModel;
|
|
22
|
+
export type OAuthRefreshToken = Prisma.OAuthRefreshTokenModel;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"browser.js","sourceRoot":"","sources":["../../../../src/__generated__/client/browser.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"browser.js","sourceRoot":"","sources":["../../../../src/__generated__/client/browser.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAcA,0EAA4D;AACnD,wBAAM;AACf,kDAAkC;AAClC,0CAAwB"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as runtime from
|
|
2
|
-
import * as $Class from
|
|
3
|
-
import * as Prisma from
|
|
1
|
+
import * as runtime from '@prisma/client/runtime/client';
|
|
2
|
+
import * as $Class from './internal/class';
|
|
3
|
+
import * as Prisma from './internal/prismaNamespace';
|
|
4
4
|
export * as $Enums from './enums';
|
|
5
|
-
export * from
|
|
5
|
+
export * from './enums';
|
|
6
6
|
export declare const PrismaClient: $Class.PrismaClientConstructor;
|
|
7
|
-
export type PrismaClient<LogOpts extends Prisma.LogLevel = never, OmitOpts extends Prisma.PrismaClientOptions[
|
|
7
|
+
export type PrismaClient<LogOpts extends Prisma.LogLevel = never, OmitOpts extends Prisma.PrismaClientOptions['omit'] = Prisma.PrismaClientOptions['omit'], ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = $Class.PrismaClient<LogOpts, OmitOpts, ExtArgs>;
|
|
8
8
|
export { Prisma };
|
|
9
9
|
export type Instance = Prisma.InstanceModel;
|
|
10
10
|
export type User = Prisma.UserModel;
|
|
@@ -20,3 +20,7 @@ export type EndpointVersion = Prisma.EndpointVersionModel;
|
|
|
20
20
|
export type Endpoint = Prisma.EndpointModel;
|
|
21
21
|
export type Table = Prisma.TableModel;
|
|
22
22
|
export type Row = Prisma.RowModel;
|
|
23
|
+
export type OAuthClient = Prisma.OAuthClientModel;
|
|
24
|
+
export type OAuthAuthorizationCode = Prisma.OAuthAuthorizationCodeModel;
|
|
25
|
+
export type OAuthAccessToken = Prisma.OAuthAccessTokenModel;
|
|
26
|
+
export type OAuthRefreshToken = Prisma.OAuthRefreshTokenModel;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.js","sourceRoot":"","sources":["../../../../src/__generated__/client/client.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"client.js","sourceRoot":"","sources":["../../../../src/__generated__/client/client.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgBA,yDAA2C;AAC3C,mEAAqD;AAyB5C,wBAAM;AAvBf,kDAAkC;AAClC,0CAAwB;AAcX,QAAA,YAAY,GAAG,MAAM,CAAC,oBAAoB,EAAE,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type * as runtime from
|
|
2
|
-
import * as $Enums from
|
|
3
|
-
import type * as Prisma from
|
|
1
|
+
import type * as runtime from '@prisma/client/runtime/client';
|
|
2
|
+
import * as $Enums from './enums';
|
|
3
|
+
import type * as Prisma from './internal/prismaNamespace';
|
|
4
4
|
export type StringFilter<$PrismaModel = never> = {
|
|
5
5
|
equals?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
6
6
|
in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>;
|
|
@@ -234,6 +234,29 @@ export type JsonWithAggregatesFilterBase<$PrismaModel = never> = {
|
|
|
234
234
|
_min?: Prisma.NestedJsonFilter<$PrismaModel>;
|
|
235
235
|
_max?: Prisma.NestedJsonFilter<$PrismaModel>;
|
|
236
236
|
};
|
|
237
|
+
export type DateTimeNullableFilter<$PrismaModel = never> = {
|
|
238
|
+
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null;
|
|
239
|
+
in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null;
|
|
240
|
+
notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null;
|
|
241
|
+
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
242
|
+
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
243
|
+
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
244
|
+
gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
245
|
+
not?: Prisma.NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null;
|
|
246
|
+
};
|
|
247
|
+
export type DateTimeNullableWithAggregatesFilter<$PrismaModel = never> = {
|
|
248
|
+
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null;
|
|
249
|
+
in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null;
|
|
250
|
+
notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null;
|
|
251
|
+
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
252
|
+
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
253
|
+
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
254
|
+
gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
255
|
+
not?: Prisma.NestedDateTimeNullableWithAggregatesFilter<$PrismaModel> | Date | string | null;
|
|
256
|
+
_count?: Prisma.NestedIntNullableFilter<$PrismaModel>;
|
|
257
|
+
_min?: Prisma.NestedDateTimeNullableFilter<$PrismaModel>;
|
|
258
|
+
_max?: Prisma.NestedDateTimeNullableFilter<$PrismaModel>;
|
|
259
|
+
};
|
|
237
260
|
export type NestedStringFilter<$PrismaModel = never> = {
|
|
238
261
|
equals?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
239
262
|
in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>;
|
|
@@ -439,3 +462,26 @@ export type NestedJsonFilterBase<$PrismaModel = never> = {
|
|
|
439
462
|
gte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
|
|
440
463
|
not?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter;
|
|
441
464
|
};
|
|
465
|
+
export type NestedDateTimeNullableFilter<$PrismaModel = never> = {
|
|
466
|
+
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null;
|
|
467
|
+
in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null;
|
|
468
|
+
notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null;
|
|
469
|
+
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
470
|
+
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
471
|
+
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
472
|
+
gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
473
|
+
not?: Prisma.NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null;
|
|
474
|
+
};
|
|
475
|
+
export type NestedDateTimeNullableWithAggregatesFilter<$PrismaModel = never> = {
|
|
476
|
+
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null;
|
|
477
|
+
in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null;
|
|
478
|
+
notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null;
|
|
479
|
+
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
480
|
+
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
481
|
+
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
482
|
+
gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
483
|
+
not?: Prisma.NestedDateTimeNullableWithAggregatesFilter<$PrismaModel> | Date | string | null;
|
|
484
|
+
_count?: Prisma.NestedIntNullableFilter<$PrismaModel>;
|
|
485
|
+
_min?: Prisma.NestedDateTimeNullableFilter<$PrismaModel>;
|
|
486
|
+
_max?: Prisma.NestedDateTimeNullableFilter<$PrismaModel>;
|
|
487
|
+
};
|
|
@@ -4,10 +4,10 @@ exports.EndpointType = exports.RoleLevel = void 0;
|
|
|
4
4
|
exports.RoleLevel = {
|
|
5
5
|
System: 'System',
|
|
6
6
|
Organization: 'Organization',
|
|
7
|
-
Project: 'Project'
|
|
7
|
+
Project: 'Project',
|
|
8
8
|
};
|
|
9
9
|
exports.EndpointType = {
|
|
10
10
|
GRAPHQL: 'GRAPHQL',
|
|
11
|
-
REST_API: 'REST_API'
|
|
11
|
+
REST_API: 'REST_API',
|
|
12
12
|
};
|
|
13
13
|
//# sourceMappingURL=enums.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../../src/__generated__/client/enums.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../../src/__generated__/client/enums.ts"],"names":[],"mappings":";;;AAUa,QAAA,SAAS,GAAG;IACvB,MAAM,EAAE,QAAQ;IAChB,YAAY,EAAE,cAAc;IAC5B,OAAO,EAAE,SAAS;CACV,CAAC;AAIE,QAAA,YAAY,GAAG;IAC1B,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,UAAU;CACZ,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as runtime from
|
|
2
|
-
import type * as Prisma from
|
|
1
|
+
import * as runtime from '@prisma/client/runtime/client';
|
|
2
|
+
import type * as Prisma from './prismaNamespace';
|
|
3
3
|
export type LogOptions<ClientOptions extends Prisma.PrismaClientOptions> = 'log' extends keyof ClientOptions ? ClientOptions['log'] extends Array<Prisma.LogLevel | Prisma.LogDefinition> ? Prisma.GetEvents<ClientOptions['log']> : never : never;
|
|
4
4
|
export interface PrismaClientConstructor {
|
|
5
5
|
new <Options extends Prisma.PrismaClientOptions = Prisma.PrismaClientOptions, LogOpts extends LogOptions<Options> = LogOptions<Options>, OmitOpts extends Prisma.PrismaClientOptions['omit'] = Options extends {
|
|
@@ -26,7 +26,7 @@ export interface PrismaClient<in LogOpts extends Prisma.LogLevel = never, in out
|
|
|
26
26
|
timeout?: number;
|
|
27
27
|
isolationLevel?: Prisma.TransactionIsolationLevel;
|
|
28
28
|
}): runtime.Types.Utils.JsPromise<R>;
|
|
29
|
-
$extends: runtime.Types.Extensions.ExtendsHook<
|
|
29
|
+
$extends: runtime.Types.Extensions.ExtendsHook<'extends', Prisma.TypeMapCb<OmitOpts>, ExtArgs, runtime.Types.Utils.Call<Prisma.TypeMapCb<OmitOpts>, {
|
|
30
30
|
extArgs: ExtArgs;
|
|
31
31
|
}>>;
|
|
32
32
|
get instance(): Prisma.InstanceDelegate<ExtArgs, {
|
|
@@ -71,5 +71,17 @@ export interface PrismaClient<in LogOpts extends Prisma.LogLevel = never, in out
|
|
|
71
71
|
get row(): Prisma.RowDelegate<ExtArgs, {
|
|
72
72
|
omit: OmitOpts;
|
|
73
73
|
}>;
|
|
74
|
+
get oAuthClient(): Prisma.OAuthClientDelegate<ExtArgs, {
|
|
75
|
+
omit: OmitOpts;
|
|
76
|
+
}>;
|
|
77
|
+
get oAuthAuthorizationCode(): Prisma.OAuthAuthorizationCodeDelegate<ExtArgs, {
|
|
78
|
+
omit: OmitOpts;
|
|
79
|
+
}>;
|
|
80
|
+
get oAuthAccessToken(): Prisma.OAuthAccessTokenDelegate<ExtArgs, {
|
|
81
|
+
omit: OmitOpts;
|
|
82
|
+
}>;
|
|
83
|
+
get oAuthRefreshToken(): Prisma.OAuthRefreshTokenDelegate<ExtArgs, {
|
|
84
|
+
omit: OmitOpts;
|
|
85
|
+
}>;
|
|
74
86
|
}
|
|
75
87
|
export declare function getPrismaClientClass(): PrismaClientConstructor;
|